/* "Open in canvas" split button + canvas picker (js/tf-canvas-link.js). */
.tf-cl-group {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    gap: 8px; /* the caret is its own button, never touching the link */
}
.tf-cl-group .tf-cl-caret {
    padding: 0 10px;
    flex: 0 0 auto;
    position: relative;
}
.tf-cl-caret[aria-expanded='true'] .chev { transform: rotate(180deg); }
.tf-cl-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 1000;
    width: 260px;
    max-width: calc(100vw - 32px);
    background: #09090b;
    border: 1px solid #292929;
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    text-align: left;
}
.tf-cl-menu.open { display: block; animation: tf-cl-in 0.14s ease-out; }
@keyframes tf-cl-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .tf-cl-menu.open { animation: none; }
}
.tf-cl-title {
    font-size: 10.5px;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    padding: 8px 10px 4px;
}
.tf-cl-list { max-height: 240px; overflow-y: auto; }
.tf-cl-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 7px;
    color: #e4e4e7;
    text-decoration: none;
    font-size: 13px;
}
.tf-cl-item:hover, .tf-cl-item:focus-visible { background: #18181b; outline: none; }
.tf-cl-item i { width: 16px; text-align: center; color: #e5564b; flex: 0 0 auto; }
.tf-cl-main { display: flex; flex-direction: column; min-width: 0; }
.tf-cl-main b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-cl-main small { color: #71717a; font-size: 11.5px; }
.tf-cl-empty { padding: 8px 10px; color: #71717a; font-size: 12.5px; }
button.tf-cl-item { width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
[data-canvas-link].tf-cl-error span { color: #f87171; }
