/* cnc-nav.css — designer-owned visual layer. Contract v1. Do not add functional rules (display toggling of panel/windows, positioning of launcher/windows) — JS owns those. */

/* =============================================================================
   C&C COMMAND DECK — visual layer for intel.threadlinqs.com
   Builds on the SIGNAL tokens declared in styles.css (:root + [data-theme]).
   This sheet only paints; JS owns state attributes, launcher/window transforms,
   sizes, and every z-index (chrome 250-270, windows 400-600).

   Division of ownership (see CNC-DESIGN-NOTES.md):
     · JS  — #cncRoot/launcher/window z-index; launcher transform (--cnc-x/-y);
             window transform + width/height; #cncPanel & .cnc-dock top/left/inset.
     · CSS — everything visual, plus the grow-from-launcher animation on
             #cncPanel / .cnc-dock via `transform` (NOT owned by JS per contract).
   ========================================================================== */

/* ----------------------------------------------------------------------------
   0 · SCOPE TOKENS  (specificity 0 via :where so nothing here fights the app)
   Radius discipline: rectangles use --cnc-rad (6) / --cnc-rad-sm (3) at most;
   ONLY circles (launcher, satellites, badges, dots) are fully round.
   Feed colors mirror SIGNAL rose/peach/lavender/mint; sky = lang-sigma blue,
   yellow = a warm amber kept distinct from enterprise gold.
---------------------------------------------------------------------------- */
:where(#cncRoot, .tl-win, .cnc-pinform, .cnc-chipstrip, .tl-win-switcher) {
    --cnc-size: 56px;          /* launcher diameter */
    --cnc-sat-size: 44px;      /* satellite diameter */
    --cnc-gap: 14px;
    --cnc-rad: 6px;
    --cnc-rad-sm: 3px;
    --cnc-panel-w: 300px;
    --cnc-dur: .22s;

    --cnc-c-rose: #fb6f84;
    --cnc-c-peach: #fdba74;
    --cnc-c-lavender: #c4b5fd;
    --cnc-c-mint: #6ee7b7;
    --cnc-c-sky: #7dd3fc;
    --cnc-c-yellow: #f2c94c;

    --cnc-surface: var(--bg-1);
    --cnc-surface-2: var(--bg-2);
    --cnc-shadow: 0 24px 60px -24px rgba(0,0,0,.72), 0 6px 18px -8px rgba(0,0,0,.5);
}

/* =============================================================================
   1 · ROOT OVERLAY
   ========================================================================== */
#cncRoot {
    position: fixed;
    inset: 0;
    pointer-events: none;                 /* click-through except on real controls */
    font-family: var(--font-mono);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}
#cncRoot .cnc-launcher,
#cncRoot .cnc-dock,
#cncRoot .cnc-panel { pointer-events: auto; }

/* SecOS-ONLY context level: Chrome flattens the #cncRoot subtree into one
   stacking context regardless of children's z-index (verified empirically —
   a child at z99999 lost to a sibling at z2), so the level must be set on the
   root itself for the start button to beat the desktop (z2) and taskbar (670).
   Scoped to SecOS: in classic cnc mode the root must stay at z:auto so the
   search modal (400), app toast (500), detail modal (300) and notif dropdown
   keep painting ABOVE the deck chrome as they always did. */
html[data-secos] #cncRoot { z-index: 697; }

/* =============================================================================
   2 · LAUNCHER  (56px circle — JS provides its transform via --cnc-x/--cnc-y)
   ========================================================================== */
.cnc-launcher {
    position: fixed;                       /* positioning scheme only; coords = JS */
    width: var(--cnc-size);
    height: var(--cnc-size);
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid color-mix(in oklab, var(--violet-bright) 55%, transparent);
    background:
        radial-gradient(120% 120% at 32% 26%, var(--violet) 0%, var(--violet-deep) 62%, #5a24b8 100%);
    color: #fff;
    box-shadow: var(--shadow-violet), 0 8px 22px -8px rgba(0,0,0,.6);
    cursor: pointer;
    /* `scale` (not `transform`) is used for lift so it composes with JS's transform */
    scale: 1;
    transition: scale .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
/* hover is PAINT-ONLY (no scale): geometry changes under the cursor can
   feedback-loop into a vibrating, uncatchable button (field bug 2026-07-04) */
.cnc-launcher:hover { border-color: var(--violet-bright); filter: brightness(1.12); }
.cnc-launcher:active { scale: .96; }
.cnc-launcher[aria-expanded="true"] {
    border-color: var(--violet-bright);
    box-shadow: var(--shadow-violet), 0 0 0 4px var(--violet-tint);
}
.cnc-launcher[data-dragging="true"] {
    scale: 1.1;
    box-shadow: var(--shadow-violet), 0 22px 48px -14px rgba(0,0,0,.7);
    cursor: grabbing;
}
.cnc-launcher-glyph {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -.03em;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
/* snap hint: a thin edge tab when magnetised to a screen side */
.cnc-launcher[data-snapped="left"]  { box-shadow: var(--shadow-violet), -3px 0 0 -1px var(--violet-bright), 0 8px 22px -8px rgba(0,0,0,.6); }
.cnc-launcher[data-snapped="right"] { box-shadow: var(--shadow-violet),  3px 0 0 -1px var(--violet-bright), 0 8px 22px -8px rgba(0,0,0,.6); }

/* =============================================================================
   3 · BADGES  (round; hidden at 0, capped visual for 99+)
   ========================================================================== */
.cnc-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--violet);
    color: #fff;
    border: 1.5px solid var(--bg);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
    pointer-events: none;
}
.cnc-badge:empty,
.cnc-badge[hidden],
.cnc-badge[data-count="0"] { display: none; }

/* =============================================================================
   4 · SATELLITE DOCK
   JS positions .cnc-dock + arms per quadrant; satellites pop in on open.
   ========================================================================== */
.cnc-dock {
    position: fixed;                       /* scheme only; coords = JS */
    display: flex;
    gap: calc(var(--cnc-gap) * 1.4);
    align-items: flex-end;
    overflow: visible;
    opacity: 0;
    visibility: hidden;
    transition: opacity .16s var(--ease), visibility 0s linear .26s;
}
#cncRoot[data-state="open"] .cnc-dock {
    opacity: 1;
    visibility: visible;
    transition: opacity .16s var(--ease), visibility 0s;
}
.cnc-dock-arm {
    display: flex;
    align-items: flex-end;
    gap: calc(var(--cnc-gap) + 6px);
    overflow: visible;
}
.cnc-dock-utility { gap: var(--cnc-gap); }

/* --- satellite base --- */
.cnc-sat {
    position: relative;
    flex: none;
    width: var(--cnc-sat-size);
    height: var(--cnc-sat-size);
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1.5px solid var(--line-2);
    background: var(--bg-2);
    color: var(--ink-2);
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-mono);
    box-shadow: 0 6px 16px -8px rgba(0,0,0,.6);
    transform: none;
    transition: transform var(--cnc-dur) var(--ease), opacity var(--cnc-dur) var(--ease),
                scale .15s var(--ease), background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.cnc-sat svg { width: 20px; height: 20px; display: block; }
.cnc-sat:hover { border-color: var(--line-3); color: var(--ink); filter: brightness(1.15); }
.cnc-sat:active { scale: .95; }

/* pop-in choreography — individual scale keeps the "expand around launcher" feel */
#cncRoot[data-state="closed"] .cnc-sat { opacity: 0; transform: scale(.4); }
#cncRoot[data-state="open"]   .cnc-sat { opacity: 1; transform: none; }
#cncRoot[data-state="open"] .cnc-dock-content .cnc-sat:nth-child(1) { transition-delay: .02s; }
#cncRoot[data-state="open"] .cnc-dock-content .cnc-sat:nth-child(2) { transition-delay: .05s; }
#cncRoot[data-state="open"] .cnc-dock-content .cnc-sat:nth-child(3) { transition-delay: .08s; }
#cncRoot[data-state="open"] .cnc-dock-content .cnc-sat:nth-child(4) { transition-delay: .11s; }
#cncRoot[data-state="open"] .cnc-dock-content .cnc-sat:nth-child(5) { transition-delay: .14s; }
#cncRoot[data-state="open"] .cnc-dock-content .cnc-sat:nth-child(6) { transition-delay: .17s; }
#cncRoot[data-state="open"] .cnc-dock-content .cnc-sat:nth-child(7) { transition-delay: .20s; }
#cncRoot[data-state="open"] .cnc-dock-content .cnc-sat:nth-child(8) { transition-delay: .23s; }
#cncRoot[data-state="open"] .cnc-dock-content .cnc-sat:nth-child(n+9) { transition-delay: .26s; }

/* --- search satellite — direct descendant of legacy .tb-ask --- */
.cnc-sat--search {
    background: var(--violet-tint);
    border-color: color-mix(in oklab, var(--violet) 58%, transparent);
    color: var(--violet-ink);
}
.cnc-sat--search:hover {
    background: color-mix(in oklab, var(--violet) 26%, var(--bg-2));
    border-color: var(--violet);
    color: #fff;
}

/* --- utility satellites --- */
.cnc-sat--profile { color: var(--ink-2); }
.cnc-sat--theme   { color: var(--ink-2); }

/* --- create (+) satellite --- */
.cnc-sat--plus {
    border-style: dashed;
    border-color: color-mix(in oklab, var(--violet) 45%, var(--line-3));
    color: var(--violet-ink);
    font-size: 22px;
    font-weight: 500;
    line-height: 0;
    background: transparent;
}
.cnc-sat--plus:hover {
    border-style: solid;
    background: var(--violet-tint);
    color: #fff;
}

/* --- feed satellites: per-feed color ring + fill --- */
.cnc-sat--feed { border-width: 1.5px; }
.cnc-sat--feed[data-color="rose"]     { --sat-c: var(--cnc-c-rose); }
.cnc-sat--feed[data-color="peach"]    { --sat-c: var(--cnc-c-peach); }
.cnc-sat--feed[data-color="lavender"] { --sat-c: var(--cnc-c-lavender); }
.cnc-sat--feed[data-color="mint"]     { --sat-c: var(--cnc-c-mint); }
.cnc-sat--feed[data-color="sky"]      { --sat-c: var(--cnc-c-sky); }
.cnc-sat--feed[data-color="yellow"]   { --sat-c: var(--cnc-c-yellow); }
.cnc-sat--feed[data-color] {
    border-color: color-mix(in oklab, var(--sat-c) 70%, transparent);
    background: color-mix(in oklab, var(--sat-c) 15%, var(--bg-2));
    color: var(--sat-c);
}
.cnc-sat--feed[data-color]:hover {
    border-color: var(--sat-c);
    background: color-mix(in oklab, var(--sat-c) 26%, var(--bg-2));
}
.cnc-sat-short {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1;
}
.cnc-sat-badge {
    background: var(--sev-critical);
    color: #240a10;
}

/* diagonal `.my` label above the circle */
.cnc-sat-label {
    position: absolute;
    left: 52%;
    bottom: calc(100% + 5px);
    transform-origin: left bottom;
    transform: rotate(-32deg);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .01em;
    color: var(--ink-2);
    white-space: nowrap;
    pointer-events: none;
    text-shadow: 0 1px 3px var(--bg);
}
.cnc-sat--feed:hover .cnc-sat-label { color: var(--ink); }

/* =============================================================================
   5 · MENU PANEL
   Grows FROM the launcher; transform-origin follows [data-quadrant].
   ========================================================================== */
.cnc-panel {
    position: fixed;                       /* scheme only; coords = JS */
    width: var(--cnc-panel-w);
    max-width: calc(100vw - 24px);
    display: flex;
    flex-direction: column;
    background: var(--cnc-surface);
    border: 1px solid var(--line-2);
    border-radius: var(--cnc-rad);
    box-shadow: var(--cnc-shadow), var(--shadow-violet);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: scale(.92);
    transform-origin: bottom left;
    transition: opacity .16s var(--ease), transform var(--cnc-dur) var(--ease),
                visibility 0s linear var(--cnc-dur);
}
#cncRoot[data-state="open"] .cnc-panel {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: opacity .18s var(--ease), transform .24s var(--ease), visibility 0s;
}

/* quadrant-adaptive growth origin (both panel + dock) */
#cncRoot[data-quadrant="tl"] .cnc-panel,
#cncRoot[data-quadrant="tl"] .cnc-dock { transform-origin: top left; }
#cncRoot[data-quadrant="tr"] .cnc-panel,
#cncRoot[data-quadrant="tr"] .cnc-dock { transform-origin: top right; }
#cncRoot[data-quadrant="bl"] .cnc-panel,
#cncRoot[data-quadrant="bl"] .cnc-dock { transform-origin: bottom left; }
#cncRoot[data-quadrant="br"] .cnc-panel,
#cncRoot[data-quadrant="br"] .cnc-dock { transform-origin: bottom right; }

/* --- panel head --- */
.cnc-panel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, var(--bg-2), var(--cnc-surface));
}
.cnc-panel-head .cnc-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: -.02em;
    color: var(--violet-ink);
    flex: none;
}
.cnc-search {
    flex: 1;
    min-width: 0;
    background: var(--bg-inset);
    border: 1px solid var(--line-2);
    border-radius: var(--cnc-rad-sm);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 7px 10px;
    transition: border-color .15s var(--ease);
}
.cnc-search::placeholder { color: var(--ink-4); }
.cnc-search:focus { outline: none; border-color: var(--violet); }

/* --- panel body --- */
.cnc-panel-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px 14px 12px;
    max-height: min(70dvh, 640px);
}
.cnc-panel-body::-webkit-scrollbar { width: 6px; }
.cnc-panel-body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; }

/* --- section --- */
.cnc-section { padding-top: 2px; }
.cnc-section-head {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: lowercase;
    color: var(--ink-3);
    padding: 13px 2px 7px;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}
.cnc-section-head--link {
    color: var(--violet-ink);
    cursor: pointer;
    text-decoration: none;
    border-radius: var(--cnc-rad-sm);
    transition: color .15s var(--ease);
}
.cnc-section-head--link:hover { color: var(--violet-bright); }
.cnc-section-head--link::after {
    content: "\2197";                     /* ↗ affordance for clickable headers */
    font-size: 10px;
    opacity: .5;
}

/* =============================================================================
   6 · BRANCH TREE  (file-tree rails + elbow ticks, recursive at every level)
   ========================================================================== */
.cnc-branch {
    position: relative;
    padding-left: 16px;
    display: flex;
    flex-direction: column;
}
.cnc-branch > .cnc-item,
.cnc-branch > .cnc-branch { position: relative; }

/* vertical rail piece owned by each child so the last child truncates cleanly */
.cnc-branch > .cnc-item::before,
.cnc-branch > .cnc-branch::before {
    content: "";
    position: absolute;
    left: -9px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--line-2);
}
.cnc-branch > .cnc-item:last-child::before,
.cnc-branch > .cnc-branch:last-child::before { bottom: calc(100% - 15px); }

/* elbow tick */
.cnc-branch > .cnc-item::after,
.cnc-branch > .cnc-branch::after {
    content: "";
    position: absolute;
    left: -9px;
    top: 15px;
    width: 8px;
    height: 1px;
    background: var(--line-2);
}
.cnc-branch > .cnc-branch::after { top: 16px; }

/* =============================================================================
   7 · MENU ITEMS + STATES
   ========================================================================== */
.cnc-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 6px 8px;
    border-radius: var(--cnc-rad-sm);
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--ink-2);
    text-decoration: none;
    cursor: pointer;
    transition: background .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease);
}
.cnc-item:hover { background: var(--violet-tint); color: var(--ink); }
.cnc-item[aria-current="page"] {
    background: var(--violet-tint);
    color: var(--violet-ink);
    box-shadow: inset 2px 0 0 0 var(--violet);
}
.cnc-item[data-disabled],
.cnc-item[data-disabled="true"],
.cnc-item[aria-disabled="true"] {
    color: var(--ink-4);
    cursor: not-allowed;
    pointer-events: none;
}
.cnc-item[data-disabled]::after,
.cnc-item[data-disabled="true"]::after {
    content: "soon";
    margin-left: auto;
    font-size: 9px;
    letter-spacing: .06em;
    color: var(--ink-4);
    border: 1px solid var(--line-2);
    border-radius: var(--cnc-rad-sm);
    padding: 1px 5px;
}
.cnc-ic {
    width: 15px;
    height: 15px;
    flex: none;
    opacity: .78;
    object-fit: contain;
}
.cnc-item:hover .cnc-ic { opacity: 1; }
.cnc-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* tier lock */
.cnc-item.nav-locked { color: var(--ink-3); }
.cnc-item.nav-locked .cnc-label,
.cnc-item.nav-locked .nav-label { opacity: .85; }
.nav-tier-badge {
    flex: none;
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .04em;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 999px;
    border: 1px solid var(--violet);
    color: var(--violet-ink);
    background: var(--violet-tint);
}

/* corner-pulse: fires when the + satellite highlights the Create entry (~900ms) */
.cnc-item.cnc-pulse { position: relative; }
.cnc-item.cnc-pulse::before {
    content: "";
    position: absolute;
    inset: 1px;
    pointer-events: none;
    background:
        linear-gradient(var(--violet), var(--violet)) 0 0 / 9px 1.5px no-repeat,
        linear-gradient(var(--violet), var(--violet)) 0 0 / 1.5px 9px no-repeat,
        linear-gradient(var(--violet), var(--violet)) 100% 0 / 9px 1.5px no-repeat,
        linear-gradient(var(--violet), var(--violet)) 100% 0 / 1.5px 9px no-repeat,
        linear-gradient(var(--violet), var(--violet)) 0 100% / 9px 1.5px no-repeat,
        linear-gradient(var(--violet), var(--violet)) 0 100% / 1.5px 9px no-repeat,
        linear-gradient(var(--violet), var(--violet)) 100% 100% / 9px 1.5px no-repeat,
        linear-gradient(var(--violet), var(--violet)) 100% 100% / 1.5px 9px no-repeat;
    border-radius: var(--cnc-rad-sm);
    opacity: 0;
    animation: cncCornerPulse .9s var(--ease) 1;
}
@keyframes cncCornerPulse {
    0%   { opacity: 0; filter: drop-shadow(0 0 0 var(--violet-glow)); }
    18%  { opacity: 1; }
    50%  { opacity: 1; filter: drop-shadow(0 0 4px var(--violet-glow)); }
    82%  { opacity: 1; }
    100% { opacity: 0; filter: drop-shadow(0 0 0 var(--violet-glow)); }
}

/* =============================================================================
   8 · MY_FEEDS ROWS
   ========================================================================== */
.nav-myfeed-item { gap: 9px; }
.nav-dot {
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 50%;
    background: var(--ink-3);
    box-shadow: 0 0 0 3px color-mix(in oklab, currentColor 0%, transparent);
}
.nav-dot.color-rose     { background: var(--cnc-c-rose); }
.nav-dot.color-peach    { background: var(--cnc-c-peach); }
.nav-dot.color-lavender { background: var(--cnc-c-lavender); }
.nav-dot.color-mint     { background: var(--cnc-c-mint); }
.nav-dot.color-sky      { background: var(--cnc-c-sky); }
.nav-dot.color-yellow   { background: var(--cnc-c-yellow); }
.nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-count {
    flex: none;
    font-size: 11px;
    color: var(--ink-4);
    font-variant-numeric: tabular-nums;
}
.nav-myfeed-unread {
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--violet-bright);
    box-shadow: 0 0 6px var(--violet-glow);
}
.nav-myfeed-unread:empty { display: none; }
.cnc-pin {
    flex: none;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-2);
    border-radius: var(--cnc-rad-sm);
    background: transparent;
    color: var(--ink-3);
    cursor: pointer;
    transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.cnc-pin svg { width: 13px; height: 13px; }
.cnc-pin:hover { border-color: var(--line-3); color: var(--ink-2); }
.cnc-pin[aria-pressed="true"] {
    background: var(--violet-tint);
    border-color: var(--violet);
    color: var(--violet-ink);
}

/* =============================================================================
   9 · ENTERPRISE SECTION  (gold layer, collapsible)
   ========================================================================== */
.cnc-section--ent .cnc-section-head {
    color: var(--ent-gold);
    cursor: pointer;
    justify-content: flex-start;
}
.cnc-section--ent .cnc-section-head #entNavLogo {
    height: 14px;
    width: auto;
    margin-right: 2px;
}
.nav-chevron {
    margin-left: auto;
    font-size: 10px;
    color: var(--ent-gold);
    transition: transform .2s var(--ease);
}
#enterpriseToggle[aria-expanded="false"] .nav-chevron { transform: rotate(-90deg); }
/* collapse is visual only; JS may override inline — harmless either way */
#enterpriseToggle[aria-expanded="false"] + .cnc-branch { display: none; }

.cnc-section--ent .cnc-branch > .cnc-item::before,
.cnc-section--ent .cnc-branch > .cnc-item::after,
.cnc-section--ent .cnc-branch > .cnc-branch::before,
.cnc-section--ent .cnc-branch > .cnc-branch::after { background: var(--ent-gold-line); }
.cnc-section--ent .cnc-item:hover {
    background: var(--ent-gold-soft);
    color: var(--ent-gold);
}
.cnc-section--ent .cnc-item[aria-current="page"] {
    background: var(--ent-gold-soft);
    color: var(--ent-gold);
    box-shadow: inset 2px 0 0 0 var(--ent-gold);
}
.cnc-section--ent .nav-tier-badge {
    border-color: var(--ent-gold-line);
    color: var(--ent-gold);
    background: var(--ent-gold-soft);
}

/* =============================================================================
   10 · PANEL FOOTER  (identity strip; legacy ids styled in place)
   ========================================================================== */
.cnc-panel-foot {
    border-top: 1px solid var(--line);
    padding: 10px 13px;
    background: var(--bg-2);
}
.cnc-panel-foot .user-info {
    align-items: center;
    gap: 10px;
    width: 100%;
}
#sbThemeMount { display: inline-flex; flex: none; }
#sbProfileBtn {
    flex: none;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    color: var(--ink-2);
    background: var(--bg-1);
    transition: border-color .15s var(--ease), color .15s var(--ease);
}
#sbProfileBtn:hover { border-color: var(--violet); color: var(--violet-ink); }
#sbProfileBtn svg { width: 15px; height: 15px; }
.user-tier {
    flex: none;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .04em;
    color: var(--ent-gold);
}
.user-email {
    flex: 1;
    min-width: 0;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .15s var(--ease);
}
.user-email:hover { color: var(--ink-2); }
#logoutBtn {
    flex: none;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--line-2);
    border-radius: var(--cnc-rad-sm);
    background: transparent;
    color: var(--ink-3);
    cursor: pointer;
    transition: border-color .15s var(--ease), color .15s var(--ease);
}
#logoutBtn:hover { border-color: var(--sev-critical); color: var(--sev-critical); }
#logoutBtn svg { width: 14px; height: 14px; }
.auth-buttons {
    display: flex;
    gap: 8px;
    width: 100%;
}
.auth-buttons a,
.auth-buttons button {
    flex: 1;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 8px 10px;
    border: 1px solid var(--line-2);
    border-radius: var(--cnc-rad-sm);
    background: transparent;
    color: var(--ink-2);
    cursor: pointer;
    transition: border-color .15s var(--ease), color .15s var(--ease), background .15s var(--ease);
}
.auth-buttons a:last-child,
.auth-buttons button:last-child {
    border-color: color-mix(in oklab, var(--violet) 55%, transparent);
    background: var(--violet-tint);
    color: var(--violet-ink);
}
.auth-buttons a:hover,
.auth-buttons button:hover { border-color: var(--violet); color: #fff; }

/* =============================================================================
   11 · DESKTOP WINDOW CHROME  (JS owns transform / size / z-index)
   ========================================================================== */
.tl-win {
    position: fixed;                       /* scheme only; coords + size = JS */
    min-width: 640px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    background: var(--cnc-surface);
    border: 1px solid var(--line-2);
    border-radius: var(--cnc-rad);
    box-shadow: var(--cnc-shadow);
    overflow: hidden;
    color: var(--ink);
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease), opacity .16s var(--ease);
}
.tl-win.tl-focused {
    border-color: color-mix(in oklab, var(--violet) 62%, var(--line-2));
    box-shadow: var(--cnc-shadow), var(--shadow-violet);
}
.tl-win:not(.tl-focused) { opacity: .97; }

.tl-win-titlebar {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 38px;
    padding: 0 6px 0 14px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    cursor: move;
    user-select: none;
    transition: background .18s var(--ease), opacity .18s var(--ease);
}
.tl-win:not(.tl-focused) .tl-win-titlebar { background: var(--bg-1); opacity: .72; }
.tl-win-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: -.01em;
    color: var(--ink-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tl-win.tl-focused .tl-win-title { color: var(--ink); }
.tl-win-title::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--line-3);
    vertical-align: middle;
}
.tl-win.tl-focused .tl-win-title::before {
    background: var(--violet);
    box-shadow: 0 0 8px var(--violet-glow);
}
.tl-win-actions { display: flex; align-items: center; gap: 2px; flex: none; }
.tl-win-btn {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--ink-3);
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1;
    border-radius: var(--cnc-rad-sm);
    cursor: pointer;
    transition: background .15s var(--ease), color .15s var(--ease);
}
.tl-win-btn svg { width: 14px; height: 14px; }
.tl-win-btn:hover { background: var(--bg-3); color: var(--ink); }
.tl-win-btn--close:hover {
    background: color-mix(in oklab, var(--sev-critical) 22%, transparent);
    color: var(--sev-critical);
}

.tl-win-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    background: var(--bg-1);
    position: relative;
}

.tl-win-resize {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 16px;
    height: 16px;
    cursor: nwse-resize;
    background:
        linear-gradient(135deg, transparent 0 48%, var(--line-3) 48% 56%, transparent 56% 74%, var(--line-3) 74% 82%, transparent 82%);
    opacity: .8;
}
.tl-win.tl-focused .tl-win-resize { background:
        linear-gradient(135deg, transparent 0 48%, var(--violet) 48% 56%, transparent 56% 74%, var(--violet) 74% 82%, transparent 82%); }

/* fullscreen — square the corners, drop the resize affordance */
.tl-win[data-fullscreen="true"] { border-radius: 0; border-color: color-mix(in oklab, var(--violet) 40%, var(--line-2)); }
.tl-win[data-fullscreen="true"] .tl-win-resize { display: none; }
.tl-win[data-fullscreen="true"] .tl-win-titlebar { cursor: default; }

/* =============================================================================
   12 · TERMINAL SKIN  (search TUI + feature-request console)
   ========================================================================== */
.tl-term {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-inset);
    font-family: var(--font-mono);
    color: var(--ink-2);
}
.tl-term-screen {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 16px 18px;
    font-size: 13px;
    line-height: 1.75;
}
.tl-term-line { white-space: pre-wrap; word-break: break-word; }
.tl-term-line--dim { color: var(--ink-4); }
.tl-term-line--ok { color: var(--sev-low); }
.tl-term-line--head { color: var(--violet-ink); }
.tl-term-prompt {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 6px;
}
.tl-term-ps1 { color: var(--violet-bright); flex: none; }
.tl-term-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: none;
    color: var(--ink);
    font: inherit;
    caret-color: var(--violet-bright);
}
/* block cursor for the MOTD/idle state */
.tl-term-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    vertical-align: -2px;
    background: var(--violet-bright);
    animation: cncBlink 1s steps(1) infinite;
}
@keyframes cncBlink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

/* --- TUI form --- */
.tl-term-form {
    padding: 16px 18px 18px;
    display: grid;
    gap: 12px;
    font-family: var(--font-mono);
    align-content: start;
    overflow: auto;
}
.tl-term-form[hidden] { display: none; }   /* honor the hidden attr so JS can toggle TUI mode */
.tl-term-form-head {
    color: var(--violet-ink);
    font-size: 13px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 2px;
}
.tl-term-field {
    display: grid;
    grid-template-columns: 132px 1fr;
    align-items: start;
    gap: 12px;
}
.tl-term-field-label {
    color: var(--ink-3);
    font-size: 12px;
    padding-top: 9px;
}
.tl-term-field-label[data-required]::after,
.tl-term-field-label.is-required::after { content: " *"; color: var(--sev-critical); }
.tl-term-field input,
.tl-term-field select,
.tl-term-field textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--line-2);
    border-radius: var(--cnc-rad-sm);
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    padding: 8px 10px;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.tl-term-field textarea { min-height: 74px; resize: vertical; line-height: 1.6; }
.tl-term-field input::placeholder,
.tl-term-field textarea::placeholder { color: var(--ink-4); }
.tl-term-field input:focus,
.tl-term-field select:focus,
.tl-term-field textarea:focus {
    outline: none;
    border-color: var(--violet);
    box-shadow: 0 0 0 3px var(--violet-tint);
}
.tl-term-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    padding-left: 144px;
}
.tl-term-btn {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .02em;
    padding: 8px 14px;
    border: 1px solid color-mix(in oklab, var(--violet) 55%, transparent);
    border-radius: var(--cnc-rad-sm);
    background: var(--violet-tint);
    color: var(--violet-ink);
    cursor: pointer;
    transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.tl-term-btn:hover { background: color-mix(in oklab, var(--violet) 30%, var(--bg)); border-color: var(--violet); color: #fff; }
.tl-term-btn--ghost {
    background: transparent;
    border-color: var(--line-2);
    color: var(--ink-3);
}
.tl-term-btn--ghost:hover { background: var(--bg-3); border-color: var(--line-3); color: var(--ink-2); }

/* =============================================================================
   13 · PIN / CREATE-CIRCLE MINI-FORM
   ========================================================================== */
.cnc-pinform {
    position: fixed;                       /* scheme only; coords = JS */
    width: 244px;
    max-width: calc(100vw - 24px);
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    border-radius: var(--cnc-rad);
    box-shadow: var(--cnc-shadow), var(--shadow-violet);
    padding: 14px;
    font-family: var(--font-mono);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.cnc-pinform-head {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .04em;
    color: var(--ink-3);
}
.cnc-pinform label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 10.5px;
    color: var(--ink-3);
}
.cnc-pinform input {
    background: var(--bg-inset);
    border: 1px solid var(--line-2);
    border-radius: var(--cnc-rad-sm);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 8px 10px;
    transition: border-color .15s var(--ease);
}
.cnc-pinform input:focus { outline: none; border-color: var(--violet); }
.cnc-pinform-swatches {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.cnc-swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: var(--sw, var(--ink-3));
    cursor: pointer;
    padding: 0;
    box-shadow: inset 0 0 0 1.5px var(--bg-2);
    transition: transform .12s var(--ease), box-shadow .12s var(--ease);
}
.cnc-swatch[data-color="rose"]     { --sw: var(--cnc-c-rose); }
.cnc-swatch[data-color="peach"]    { --sw: var(--cnc-c-peach); }
.cnc-swatch[data-color="lavender"] { --sw: var(--cnc-c-lavender); }
.cnc-swatch[data-color="mint"]     { --sw: var(--cnc-c-mint); }
.cnc-swatch[data-color="sky"]      { --sw: var(--cnc-c-sky); }
.cnc-swatch[data-color="yellow"]   { --sw: var(--cnc-c-yellow); }
.cnc-swatch:hover { box-shadow: inset 0 0 0 1.5px var(--bg-2), 0 0 0 2px var(--ink-3); }
.cnc-swatch[aria-pressed="true"] {
    border-color: var(--ink);
    box-shadow: inset 0 0 0 1.5px var(--bg-2), 0 0 0 1px var(--ink);
}
.cnc-pinform-actions { display: flex; gap: 8px; margin-top: 2px; }
.cnc-pinform-actions button {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 8px 10px;
    border-radius: var(--cnc-rad-sm);
    border: 1px solid color-mix(in oklab, var(--violet) 55%, transparent);
    background: var(--violet-tint);
    color: var(--violet-ink);
    cursor: pointer;
    transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.cnc-pinform-actions button:hover { background: color-mix(in oklab, var(--violet) 30%, var(--bg)); color: #fff; }
.cnc-pinform-actions .cnc-pinform-cancel {
    background: transparent;
    border-color: var(--line-2);
    color: var(--ink-3);
}
.cnc-pinform-actions .cnc-pinform-cancel:hover { background: var(--bg-3); color: var(--ink-2); }

/* =============================================================================
   14 · MOBILE  ([data-mode="docked"] — bottom sheet, chip strip, window sheets)
   ========================================================================== */
#cncRoot[data-mode="docked"] .cnc-dock { display: none; }   /* no free-floating satellites */

#cncRoot[data-mode="docked"] .cnc-panel {
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    max-width: 100%;
    max-height: 72dvh;
    border-radius: var(--cnc-rad) var(--cnc-rad) 0 0;
    border-bottom: 0;
    transform-origin: bottom center;
    transform: translateY(12px);
    padding-bottom: env(safe-area-inset-bottom, 0);
}
#cncRoot[data-mode="docked"][data-state="open"] .cnc-panel { transform: translateY(0); }
#cncRoot[data-mode="docked"] .cnc-panel-head::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: var(--line-3);
}
#cncRoot[data-mode="docked"] .cnc-panel-head { position: relative; padding-top: 16px; }
#cncRoot[data-mode="docked"] .cnc-panel-body { max-height: none; }

/* pinned-feed chip strip inside the sheet */
.cnc-chipstrip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 10px 13px;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
}
.cnc-chipstrip::-webkit-scrollbar { display: none; }
.cnc-chipstrip .cnc-chip {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: var(--bg-1);
    color: var(--ink-2);
    font-family: var(--font-mono);
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
}
.cnc-chip .nav-dot { width: 7px; height: 7px; }
.cnc-chip:hover { border-color: var(--line-3); color: var(--ink); }

/* windows become fullscreen sheets on mobile */
#cncRoot[data-mode="docked"] ~ .tl-win,
.tl-win[data-fullscreen="true"] .tl-win-btn { }
@media (max-width: 768px) {
    .tl-win {
        min-width: 0;
        min-height: 0;
        border-radius: 0;
    }
    .tl-win-resize { display: none; }
    .tl-win-btn { width: 44px; height: 44px; }   /* 44px touch targets */
    .cnc-pin { width: 32px; height: 32px; }
    .cnc-item { min-height: 40px; }
    .tl-term-field { grid-template-columns: 1fr; gap: 5px; }
    .tl-term-field-label { padding-top: 0; }
    .tl-term-actions { padding-left: 0; }
    .cnc-sat-label { display: none; }
}

/* open-windows switcher strip (mobile) */
.tl-win-switcher {
    position: fixed;                       /* scheme only; coords = JS */
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0));
    background: var(--bg-2);
    border-top: 1px solid var(--line);
    scrollbar-width: none;
}
.tl-win-switcher::-webkit-scrollbar { display: none; }
.tl-win-switcher .tl-win-tab {
    flex: none;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--line-2);
    border-radius: var(--cnc-rad-sm);
    background: var(--bg-1);
    color: var(--ink-2);
    font-family: var(--font-mono);
    font-size: 12px;
    cursor: pointer;
}
.tl-win-switcher .tl-win-tab[aria-current="true"] {
    border-color: var(--violet);
    color: var(--violet-ink);
    background: var(--violet-tint);
}

/* =============================================================================
   15 · FOCUS-VISIBLE  (violet, 2px, offset — everywhere interactive)
   ========================================================================== */
.cnc-launcher:focus-visible,
.cnc-sat:focus-visible,
.cnc-item:focus-visible,
.cnc-section-head--link:focus-visible,
.cnc-pin:focus-visible,
.cnc-swatch:focus-visible,
.tl-win-btn:focus-visible,
.tl-term-btn:focus-visible,
.tl-win-tab:focus-visible,
.cnc-chip:focus-visible,
.auth-buttons a:focus-visible,
.auth-buttons button:focus-visible,
#sbProfileBtn:focus-visible,
#logoutBtn:focus-visible {
    outline: 2px solid var(--violet);
    outline-offset: 2px;
}
.cnc-search:focus-visible,
.tl-term-input:focus-visible,
.tl-term-field input:focus-visible,
.tl-term-field select:focus-visible,
.tl-term-field textarea:focus-visible,
.cnc-pinform input:focus-visible {
    outline: 2px solid var(--violet);
    outline-offset: 1px;
}
.cnc-panel:focus-visible,
.tl-win:focus-visible { outline: none; }

/* =============================================================================
   16 · LIGHT THEME  (colors flow from tokens; these fix hardcoded rgba/glass)
   ========================================================================== */
[data-theme="light"] :where(#cncRoot, .tl-win, .cnc-pinform) {
    --cnc-shadow: 0 20px 50px -26px rgba(24,16,44,.28), 0 4px 14px -8px rgba(24,16,44,.16);
}
[data-theme="light"] .cnc-launcher {
    box-shadow: 0 10px 26px -10px var(--violet-glow), 0 4px 12px -6px rgba(24,16,44,.24);
}
[data-theme="light"] .cnc-launcher-glyph { text-shadow: none; }
[data-theme="light"] .cnc-sat { box-shadow: 0 4px 12px -8px rgba(24,16,44,.22); }
[data-theme="light"] .cnc-sat-label { text-shadow: 0 1px 3px rgba(255,255,255,.8); }
[data-theme="light"] .cnc-badge { border-color: var(--bg-1); }
[data-theme="light"] .tl-win-btn--close:hover { color: color-mix(in oklab, var(--sev-critical) 70%, #000); }

/* =============================================================================
   17 · REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    #cncRoot *,
    .tl-win *,
    .cnc-pinform *,
    .cnc-chipstrip *,
    .tl-win-switcher * {
        transition-duration: .01ms;
        animation-duration: .01ms;
        animation-iteration-count: 1;
    }
    .tl-term-cursor { animation: none; opacity: 1; }
    .cnc-item.cnc-pulse::before { animation: none; opacity: 1; }
    .cnc-launcher:hover,
    .cnc-sat:hover,
    .cnc-swatch:hover { scale: 1; transform: none; }
}

/* =============================================================================
   18 · LAUNCHER PRESENCE — engineer-added post-handoff enhancement (2026-07-04)
   User feedback: the C&C circle read as flat / not a real action button.
   Adds: rotating conic accent ring, specular highlight, layered depth glow,
   grab cursor affordances, stronger hover/press states. Stays inside Signal
   tokens; reduced-motion kills the rotation. Designer may restyle freely.
   ========================================================================== */
.cnc-launcher {
    cursor: grab;
    box-shadow:
        var(--shadow-violet),
        0 10px 30px -10px rgba(0, 0, 0, .65),
        0 0 0 1px color-mix(in oklab, var(--violet-bright) 40%, transparent),
        0 0 26px -6px var(--violet-glow);
}
.cnc-launcher:active,
.cnc-launcher[data-dragging="true"] { cursor: grabbing; }

/* rotating conic accent ring — sits in the 5px halo outside the button face */
.cnc-launcher::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        var(--violet-bright) 0%,
        transparent 28%,
        color-mix(in oklab, var(--violet-deep) 80%, transparent) 46%,
        transparent 62%,
        var(--violet-bright) 82%,
        transparent 96%,
        var(--violet-bright) 100%
    );
    opacity: .5;
    z-index: -1;
    animation: cncOrbit 8s linear infinite;
}
/* specular highlight — gives the face a machined-dome read */
.cnc-launcher::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background:
        radial-gradient(85% 85% at 30% 20%, rgba(255,255,255,.38), rgba(255,255,255,0) 45%),
        radial-gradient(120% 120% at 70% 95%, rgba(0,0,0,.28), rgba(0,0,0,0) 55%);
    pointer-events: none;
}
@keyframes cncOrbit { to { transform: rotate(360deg); } }

.cnc-launcher:hover {
    box-shadow:
        var(--shadow-violet),
        0 14px 38px -10px rgba(0, 0, 0, .7),
        0 0 0 1px var(--violet-bright),
        0 0 34px -4px var(--violet-glow);
}
.cnc-launcher:hover::before { opacity: .8; }
.cnc-launcher[aria-expanded="true"]::before { opacity: .85; animation-duration: 4s; }
.cnc-launcher[data-dragging="true"] { scale: 1.12; }
.cnc-launcher[data-dragging="true"]::before { opacity: .95; animation-duration: 2.2s; }

[data-theme="light"] .cnc-launcher::after {
    background:
        radial-gradient(85% 85% at 30% 20%, rgba(255,255,255,.5), rgba(255,255,255,0) 45%),
        radial-gradient(120% 120% at 70% 95%, rgba(24,16,44,.18), rgba(0,0,0,0) 55%);
}
@media (prefers-reduced-motion: reduce) {
    .cnc-launcher::before { animation: none; }
}

/* =============================================================================
   19 · MINIMIZE-TO-CIRCLE — engineer-added post-handoff (2026-07-04)
   Minimized windows become circles clustered beside the launcher (.cnc-taskdock,
   positioned by JS). Reuses the satellite look; the win-circle reads as a
   "parked window": violet ring, mono shortname, diagonal label on hover.
   ========================================================================== */
.cnc-sat--win {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    position: relative;
    border-radius: 50%;
    border: 1.5px solid color-mix(in oklab, var(--violet) 55%, var(--line-2));
    background: color-mix(in oklab, var(--violet) 12%, var(--bg-2));
    color: var(--violet-ink);
    cursor: pointer;
    font-family: var(--font-mono);
    box-shadow: 0 6px 16px -8px rgba(0,0,0,.6);
    transition: scale .15s var(--ease), border-color .15s var(--ease), background .15s var(--ease);
}
.cnc-sat--win:hover { border-color: var(--violet-bright); background: color-mix(in oklab, var(--violet) 22%, var(--bg-2)); filter: brightness(1.12); }
.cnc-sat--win:active { scale: .94; }
.cnc-sat--win .cnc-sat-short { font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.cnc-sat--win .cnc-sat-label { opacity: 0; transition: opacity .15s var(--ease); }
.cnc-sat--win:hover .cnc-sat-label { opacity: 1; }
.cnc-sat--win:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

/* the minimize titlebar button shares .tl-win-btn base styling */
.tl-win-btn--min:hover { background: var(--violet-tint); color: var(--violet-ink); }

/* mobile switcher: minimized tabs read dimmer until restored */
.tl-win-tab[data-minimized="true"] { opacity: .6; border-style: dashed; }

@media (prefers-reduced-motion: reduce) {
    .cnc-sat--win:hover { scale: 1; }
}
