/* The landing page's hero demo (src/_demo.ts): the TRENCHCOMMS panel, clicking through its features by itself.
   Everything below .tcd is the real panel's own CSS (extension/src/panel/styles.css and the styles.css of each
   feature folder), copied rule for rule and scoped under .tcd, with the real design tokens. Only the stage (frame,
   float, cursor) and the hover stand-ins are the landing page's own: .hov, since the demo's cursor never makes a
   real :hover. */

/* ------------------------------------------------------------------ the stage */
/* (the slot itself, .hero-demo, is sized by landing.css: it reserves the panel's box before this file arrives) */
/* the panel's own size; the script sets it from the slot (a little wider when there is room, shorter on a short screen) */
.tcd-zoom { position: absolute; left: 0; top: 0; width: 520px; height: 700px; transform-origin: 0 0; opacity: 0; transition: opacity 700ms ease; }
.tcd-zoom.ready { opacity: 1; }
.tcd-zoom.nar { width: 380px; height: 600px; }
.tcd-float { position: relative; width: 100%; height: 100%; transform-origin: 50% 55%; }
/* a faint halo behind the panel: it lifts the dark glass off the true black page */
.tcd-float::before {
  content: ''; position: absolute; inset: -18% -22%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025) 55%, transparent 100%);
}
/* the real floating panel's frame (content/index.ts .frame.float), with a soft rim and a deep shadow for the page */
.tcd.app {
  width: 100%; height: 100%; border-radius: 12px; background: var(--bg);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .1),
    inset 0 1px 0 rgba(255, 255, 255, .05),
    0 0 48px -6px rgba(255, 255, 255, .07),
    0 18px 48px rgba(0, 0, 0, .55),
    0 50px 110px -30px rgba(0, 0, 0, .95);
}
/* the swap between the end of the loop and its start (the end's feed fades out on top of the start's), and the
   reduced-motion stills (the panel's contents fade, its frame and shadow stay) */
.tcd .fade, .tcd.fade > * { transition: opacity 420ms ease; }
.tcd .fade.out, .tcd.fade.out > * { opacity: 0; }
.tcd.app > .tcd-ghost { position: absolute; z-index: 2; background: var(--bg); pointer-events: none; }
/* the Updates dot, back when the loop comes around */
.tcd .tab .dot-new.arrive { animation: tcd-tab-in 900ms ease 500ms both; }
.tcd.paused *, .tcd.paused *::before, .tcd.paused *::after { animation-play-state: paused !important; }

/* the cursor: a small arrow, its click a ring */
.tcd-cur { position: absolute; left: 0; top: 0; z-index: 90; width: 17px; height: 22px; pointer-events: none; opacity: 0; transition: opacity 260ms ease; will-change: transform; }
.tcd-cur.on { opacity: 1; }
.tcd-cur svg { position: relative; z-index: 1; display: block; width: 17px; height: 22px; transform-origin: 2px 2px; transition: transform 110ms ease; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .55)); }
.tcd-cur.down svg { transform: scale(.86); }
.tcd-rip { position: absolute; left: -15px; top: -15px; width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); opacity: 0; }
.tcd-cur.click .tcd-rip { animation: tcd-rip 600ms cubic-bezier(.2, .8, .2, 1); }
@keyframes tcd-rip { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.5); } }

/* ------------------------------------------------------------------ tokens and base (styles.css :root, body) */
.tcd {
  --bg: #08090a; --surface: #0e1011; --surface-2: #15181a; --line: #1d2124; --line-strong: #2a2f33;
  --text: #d6dade; --text-2: #959ca2; --text-3: #7c8389; --hi: #ffffff; --accent: #ffffff; --accent-text: #08090a;
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --fs: 13px;
  --row-py: 6px; --row-px: 12px; --gap: 8px; --av: 22px;
  --r-sm: 6px; --r: 8px; --r-lg: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 120ms; --t: 180ms; --t-slow: 320ms;
  --header-h: 38px;
  --vc-green: #23a55a; --vc-green-soft: rgb(35 165 90 / 0.28); --vc-green-text: #3ba55d; --vc-join: #248046; --vc-join-hover: #1a6334;
  --vc-red: #da373c; --vc-red-hover: #c3282d; --vc-red-text: #f0595e; --vc-surface: var(--surface); --vc-raise: var(--surface-2); --vc-tint-l: 24%;
  --vc-shadow: 0 14px 34px -18px rgb(0 0 0 / 0.8), 0 2px 6px -2px rgb(0 0 0 / 0.35);
  --vc-shadow-sm: 0 6px 18px -12px rgb(0 0 0 / 0.7);
  color-scheme: dark;
  color: var(--text); font: 400 var(--fs)/1.42 var(--font); letter-spacing: -0.011em; text-align: left;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; user-select: none;
}
.tcd button { font: inherit; color: inherit; }
.tcd .mono, .tcd .num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.tcd .sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* the landing page's own element and class rules (landing.css) must not reach the panel */
.tcd code { font: inherit; color: inherit; user-select: none; }
.tcd h2, .tcd h3 { margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit; color: inherit; }
.tcd p { margin: 0; }
.tcd ul, .tcd ol { margin: 0; padding: 0; }

/* ------------------------------------------------------------------ app shell */
.tcd.app { position: relative; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.tcd .header {
  height: var(--header-h); flex: none; display: flex; align-items: center; gap: 2px; padding: 0 6px 0 8px;
  border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent);
  position: relative; z-index: 3;
}
.tcd .header .mark { width: 22px; height: 22px; display: grid; place-items: center; flex: none; color: var(--hi); margin-right: 2px; }
.tcd .header .mark svg { width: 18px; height: 15px; display: block; }
.tcd .tabs { display: flex; align-items: stretch; height: 100%; gap: 0; position: relative; min-width: 0; flex: 1; margin: 0; padding: 0; justify-content: flex-start; order: 0; }
.tcd .tab {
  position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; height: 100%; border: 0; background: none;
  color: var(--text-2); font-weight: 500; font-size: 12.5px; letter-spacing: -0.01em; cursor: pointer; white-space: nowrap;
  transition: color var(--t-fast) ease;
}
.tcd .tab.hov { color: var(--text); }
.tcd .tab[aria-selected='true'] { color: var(--hi); }
.tcd .tab .count { font: 600 10px/16px var(--mono); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; text-align: center; background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tcd .tab-ink { position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--accent); border-radius: 2px; transition: transform var(--t) var(--ease), width var(--t) var(--ease); pointer-events: none; }
.tcd .hbtn {
  width: 28px; height: 28px; flex: none; border: 0; background: none; border-radius: var(--r-sm); color: var(--text-2);
  display: grid; place-items: center; cursor: pointer; transition: background var(--t-fast), color var(--t-fast); padding: 0;
}
.tcd .hbtn.hov { background: var(--surface-2); color: var(--hi); }
.tcd .hbtn svg { width: 16px; height: 16px; }
.tcd .hbtn.on { color: var(--hi); }

/* ------------------------------------------------------------------ feed */
.tcd .feed-wrap { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
/* (the real feed scrolls; here its content slides up by transform, and the 8 px scrollbar gutter stays reserved) */
.tcd .feed { flex: 1; overflow: hidden; padding: 6px 8px 10px 0; position: relative; }
.tcd .feed-in { position: relative; transition: transform 420ms var(--ease); }
.tcd .day { display: flex; align-items: center; gap: 8px; padding: 10px var(--row-px) 4px; color: var(--text-3); font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.tcd .day::before, .tcd .day::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.tcd .msg { position: relative; display: grid; grid-template-columns: var(--av) 1fr; column-gap: var(--gap); padding: var(--row-py) var(--row-px); transition: background var(--t-fast); }
.tcd .msg.cont { padding-top: 1px; }
.tcd .msg.hov { background: color-mix(in srgb, var(--surface) 80%, transparent); }
.tcd .msg.highlight { background: color-mix(in srgb, var(--hi) 7%, transparent); transition: background 900ms ease; }
.tcd .msg .gutter { display: flex; justify-content: center; }
.tcd .msg .gutter .ts-mini { opacity: 0; font: 400 9.5px/18px var(--mono); color: var(--text-3); transition: opacity var(--t-fast); }
.tcd .msg .main { min-width: 0; }
.tcd .msg .meta { display: flex; align-items: baseline; gap: 6px; min-width: 0; line-height: 18px; }
.tcd .msg .handle { font-weight: 600; color: var(--text); font-size: 12.5px; letter-spacing: -0.012em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 0; background: none; padding: 0; cursor: pointer; }
.tcd .msg .ts { margin-left: auto; flex: none; font: 400 10.5px var(--mono); color: var(--text-3); white-space: nowrap; }
.tcd .msg .body { color: var(--text); word-wrap: break-word; overflow-wrap: anywhere; white-space: pre-wrap; transition: color 1.6s ease; }
.tcd .msg .reply-ref { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--text-3); margin-bottom: 2px; min-width: 0; cursor: pointer; border: 0; background: none; padding: 0; text-align: left; width: 100%; }
.tcd .msg .reply-ref svg { width: 12px; height: 12px; flex: none; }
.tcd .msg .reply-ref span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcd .msg .reply-ref b { color: var(--text-2); font-weight: 600; }
.tcd .msg .actions {
  position: absolute; right: 8px; top: -12px; display: flex; gap: 1px; padding: 2px; border-radius: var(--r); background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--line-strong), 0 6px 18px rgba(0,0,0,.35); opacity: 0; transform: translateY(2px); pointer-events: none;
  transition: opacity var(--t-fast), transform var(--t-fast); z-index: 2;
}
.tcd .msg.hov .actions { opacity: 1; transform: none; }
.tcd .msg .actions button { width: 26px; height: 24px; border: 0; background: none; color: var(--text-2); border-radius: 6px; display: grid; place-items: center; cursor: pointer; padding: 0; }
.tcd .msg .actions button.hov { background: var(--line); color: var(--hi); }
.tcd .msg .actions svg { width: 14px; height: 14px; }

.tcd .tr-line { display: flex; align-items: center; gap: 6px; margin-top: 2px; font: 400 10.5px var(--mono); color: var(--text-3); }
.tcd .tr-line button { border: 0; background: none; color: var(--text-2); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 2px; }
.tcd .tr-line button.hov { color: var(--hi); }

/* rich text segments */
.tcd .seg-addr { display: inline-flex; align-items: center; gap: 3px; font: 500 0.92em var(--mono); color: var(--hi); background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 5px; padding: 0 4px; cursor: copy; vertical-align: 1px; white-space: nowrap; }
.tcd .seg-addr svg { width: 11px; height: 11px; opacity: .6; }
.tcd .seg-ticker { font-weight: 650; color: var(--hi); }
.tcd .seg-handle { color: var(--hi); font-weight: 500; }
.tcd .seg-handle.me { background: color-mix(in srgb, var(--hi) 14%, transparent); border-radius: 4px; padding: 0 2px; }
.tcd .seg-num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .96em; }

/* badges */
.tcd .badge { display: inline-flex; align-items: center; gap: 2px; height: 15px; padding: 0 4px; border-radius: 4px; font: 600 9.5px/15px var(--mono); letter-spacing: .04em; flex: none; vertical-align: 1px; }
.tcd .badge.kol { color: var(--bg); background: var(--hi); }
.tcd .badge.kol .tro { font-size: 10px; line-height: 1; font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; }

/* avatar (components/Avatar.tsx: a generated mirrored 5 x 5 mark) */
.tcd .av { width: var(--av); height: var(--av); border-radius: 6px; flex: none; overflow: hidden; background: var(--surface-2); display: block; border: 0; padding: 0; cursor: pointer; }
.tcd .av svg, .tcd .pf-av svg { width: 100%; height: 100%; display: block; }
.tcd .gen-bg { fill: var(--surface-2); }
.tcd .gen-px { fill: var(--text-2); }

/* chart card */
.tcd .chart {
  margin-top: 5px; border: 1px solid var(--line-strong); border-radius: var(--r); background: color-mix(in srgb, var(--surface) 92%, transparent);
  padding: 8px 10px; display: grid; gap: 5px; max-width: 420px;
}
.tcd .chart .top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tcd .chart .glyph, .tcd .composer .chip .glyph { width: 24px; height: 24px; border-radius: 6px; background: var(--hi); color: var(--bg); display: grid; place-items: center; font: 700 11px var(--mono); flex: none; letter-spacing: -0.02em; }
.tcd .chart .name { min-width: 0; display: flex; align-items: baseline; gap: 6px; }
.tcd .chart .name .tk { display: inline-flex; align-items: baseline; gap: 6px; flex: 0 1 auto; min-width: 0; max-width: 100%; }
.tcd .chart .name b { color: var(--hi); font-weight: 650; letter-spacing: -0.01em; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tcd .chart .name .nm { color: var(--text-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcd .chart .mint { display: flex; align-items: center; gap: 6px; font: 400 11px var(--mono); color: var(--text-2); min-width: 0; }
.tcd .btn-xs { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font: 500 11px var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast); }
.tcd .btn-xs.hov { border-color: var(--text-3); color: var(--hi); }
.tcd .btn-xs.primary { background: var(--hi); color: var(--bg); border-color: var(--hi); }
.tcd .btn-xs svg { width: 12px; height: 12px; }
.tcd .btn-xs.ok { color: var(--hi); }
.tcd .chart-links { display: inline-flex; gap: 4px; flex: none; align-items: center; }

.tcd .empty { margin: auto; padding: 28px 22px; text-align: center; color: var(--text-2); max-width: 280px; text-wrap: balance; }
.tcd .empty .em-title { color: var(--hi); font-weight: 600; letter-spacing: -0.02em; font-size: 15px; margin: 8px 0 4px; }
.tcd .empty .em-mark { width: 30px; height: 30px; margin: 0 auto; color: var(--text-3); }
.tcd .empty .em-mark svg { width: 30px; height: 25px; display: block; }

/* ------------------------------------------------------------------ composer */
.tcd .composer { flex: none; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); padding: 7px 8px 8px; display: grid; gap: 6px; position: relative; z-index: 2; }
.tcd .composer .ctx { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 11.5px; color: var(--text-2); }
.tcd .composer .ctx .x { margin-left: auto; }
.tcd .composer .ctx span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tcd .composer .ctx b { color: var(--hi); font-weight: 600; }
.tcd .composer .ctx > svg { width: 13px; height: 13px; flex: none; }
.tcd .composer .row { display: flex; align-items: flex-end; gap: 4px; }
.tcd .composer .field {
  flex: 1; min-width: 0; display: flex; align-items: flex-end; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 9px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.tcd .composer .field.focus { border-color: var(--text-3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hi) 7%, transparent); }
/* the textarea, drawn as text (the same box, padding and line) so a caret can blink in it */
.tcd .composer .ta {
  flex: 1; min-width: 0; color: var(--hi); padding: 6px 9px; line-height: 18px; font-size: var(--fs); height: 32px;
  white-space: nowrap; overflow: hidden;
}
.tcd .composer .ta .ph { color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.tcd .caret { display: inline-block; width: 1px; height: 15px; margin-left: 1px; vertical-align: -3px; background: var(--hi); animation: tcd-caret 1s steps(1) infinite; }
@keyframes tcd-caret { 50% { opacity: 0; } }
.tcd .composer .ibtn { width: 32px; height: 32px; flex: none; border: 0; background: none; border-radius: 8px; color: var(--text-2); display: grid; place-items: center; cursor: pointer; transition: background var(--t-fast), color var(--t-fast); padding: 0; }
.tcd .composer .ibtn.hov { background: var(--surface-2); color: var(--hi); }
.tcd .composer .ibtn.on { color: var(--hi); }
.tcd .composer .ibtn svg { width: 17px; height: 17px; }
.tcd .composer .send { color: var(--hi); }
.tcd .composer .send.dis { color: var(--text-3); cursor: default; background: none; }
.tcd .composer .chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 6px 3px 4px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line-strong); font-size: 11.5px; color: var(--text); }
.tcd .composer .chip .glyph { width: 18px; height: 18px; border-radius: 5px; font: 700 9px var(--mono); }
.tcd .composer .chip b { color: var(--hi); }
.tcd .composer .chip code { font: 400 10.5px var(--mono); color: var(--text-2); }
.tcd .composer .chip button { border: 0; background: none; color: var(--text-3); cursor: pointer; padding: 0 2px; display: grid; place-items: center; }
.tcd .composer .chip svg { width: 12px; height: 12px; }
.tcd .composer { grid-template-columns: minmax(0, 1fr); }

/* ------------------------------------------------------------------ sheets, menus, toasts */
.tcd .sheet { position: absolute; inset: 0; z-index: 20; background: var(--bg); display: flex; flex-direction: column; animation: tcd-sheet-slide 160ms var(--ease); }
@keyframes tcd-sheet-slide { from { transform: translateX(10px); } }
.tcd .sheet.leaving { animation: tcd-sheet-out 140ms ease forwards; }
@keyframes tcd-sheet-out { to { transform: translateX(10px); opacity: 0; } }
.tcd .sheet-head { height: var(--header-h); flex: none; display: flex; align-items: center; gap: 6px; padding: 0 6px; border-bottom: 1px solid var(--line); }
.tcd .sheet-head h2 { margin: 0; font-size: 14.5px; font-weight: 720; letter-spacing: -0.03em; color: var(--hi); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcd .sheet-body { flex: 1; overflow: hidden; padding: 10px 12px 24px; }
.tcd .menu { position: absolute; z-index: 50; min-width: 180px; max-width: 260px; background: var(--surface-2); border-radius: var(--r); padding: 4px; box-shadow: 0 0 0 1px var(--line-strong), 0 14px 34px rgba(0,0,0,.5); animation: tcd-pop var(--t-fast) var(--ease); }
@keyframes tcd-pop { from { transform: scale(.97); opacity: 0; } }
.tcd .menu button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 0; background: none; border-radius: 6px; color: var(--text); cursor: pointer; text-align: left; font-size: 12.5px; }
.tcd .menu button.hov { background: var(--line); color: var(--hi); }
.tcd .menu button svg { width: 14px; height: 14px; color: var(--text-2); flex: none; }
.tcd .menu hr { border: 0; border-top: 1px solid var(--line-strong); margin: 4px 2px; }
.tcd .toasts { position: absolute; left: 8px; right: 8px; top: calc(var(--header-h) + 6px); z-index: 40; display: grid; gap: 6px; pointer-events: none; }
.tcd .toast { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 8px 10px; border-radius: var(--r); background: var(--surface-2); box-shadow: 0 0 0 1px var(--line-strong), 0 12px 30px rgba(0,0,0,.45); animation: tcd-toast-in var(--t) var(--ease); font-size: 12px; }
@keyframes tcd-toast-in { from { transform: translateY(-6px); opacity: 0; } }
.tcd .toast.leaving { animation: tcd-toast-out 180ms ease forwards; }
@keyframes tcd-toast-out { to { transform: translateY(-6px); opacity: 0; } }
.tcd .toast .t { color: var(--hi); font-weight: 600; }
.tcd .toast .b { grid-column: 1; color: var(--text-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.tcd .toast .x { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: 4px; align-items: start; }
.tcd .toast .x button { border: 0; background: none; color: var(--text-2); cursor: pointer; padding: 0 2px; }
.tcd .toast .x button svg { width: 12px; height: 12px; display: block; margin-top: 2px; }
.tcd .toast .x button.act { color: var(--hi); text-decoration: underline; }
.tcd .note { font-size: 11.5px; color: var(--text-2); line-height: 1.45; }
.tcd .seg { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); gap: 2px; }
.tcd .seg button { border: 0; background: none; color: var(--text-2); padding: 3px 9px; border-radius: 6px; cursor: pointer; font-size: 12px; }
.tcd .seg button[aria-pressed='true'] { background: var(--hi); color: var(--bg); }

/* ------------------------------------------------------------------ updates tab */
.tcd .tab-updates { gap: 4px; }
.tcd .tab-updates .tab-label-icon { display: block; width: 14px; height: 14px; }
.tcd .tab .dot-new { width: 6px; height: 6px; border-radius: 50%; background: var(--hi); box-shadow: 0 0 0 2px var(--bg); }
.tcd .updates { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.tcd .up-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.tcd .up-ver { font-size: 10.5px; color: var(--text-3); }
.tcd .up-scroll { flex: 1; overflow: hidden; }
.tcd .up-list { list-style: none; margin: 0; padding: 4px 0 20px; }
.tcd .up-item { padding: 12px 12px 10px; border-bottom: 1px solid var(--line); animation: tcd-toast-in var(--t) var(--ease) both; }
.tcd .up-item h3 { margin: 4px 0 4px; font-size: 13.5px; font-weight: 740; letter-spacing: -0.03em; color: var(--text); }
.tcd .up-item.newest h3 { color: var(--hi); }
.tcd .up-meta { display: flex; align-items: center; gap: 8px; font: 400 10.5px var(--mono); color: var(--text-3); flex-wrap: wrap; }
.tcd .up-tag { font: 600 9.5px/16px var(--mono); text-transform: uppercase; letter-spacing: .05em; padding: 0 5px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text-2); }
.tcd .up-tag.new { background: var(--hi); color: var(--bg); box-shadow: none; }
.tcd .up-new { color: var(--hi); font-weight: 600; }
.tcd .up-body { color: var(--text-2); font-size: 12.5px; line-height: 1.5; }
.tcd .up-body p { margin: 2px 0 4px; }
.tcd .up-body ul { margin: 2px 0 4px; padding-left: 16px; }
.tcd .up-body li { margin: 1px 0; }
.tcd .up-body li::marker { color: var(--text-3); }

/* ------------------------------------------------------------------ type: bold Geist with tight tracking (calm pass) */
.tcd .tab { font-weight: 600; font-size: 13px; letter-spacing: -0.02em; }
.tcd .msg .handle { font-weight: 680; letter-spacing: -0.022em; }
.tcd .empty .em-title { font-size: 18px; font-weight: 740; letter-spacing: -0.04em; }
.tcd .chart .name b { font-weight: 740; letter-spacing: -0.025em; }
.tcd .btn-xs { font-weight: 600; letter-spacing: -0.012em; }
.tcd .tr-line { font: 450 11px var(--font); letter-spacing: -0.005em; margin-top: 1px; }
.tcd .tr-line button { text-decoration-color: var(--text-3); }
.tcd .header { gap: 0; padding: 0 4px 0 8px; }
.tcd .tab { padding: 0 9px; }
.tcd.nar .tab { padding: 0 7px; }
.tcd.nar .header .pro-hgroup, .tcd.nar .header .pf-hbtn { display: none; }
.tcd .tab .count { box-shadow: none; background: var(--surface-2); color: var(--text-2); }
.tcd .msg.fresh { animation: tcd-calm-in 380ms var(--ease) both; }
@keyframes tcd-calm-in { from { opacity: 0; transform: translateY(3px); } }
.tcd .msg.latest .body { color: var(--hi); }

/* calm chart card (General) */
.tcd .chart.calm { gap: 6px; }
.tcd .chart.calm .top { align-items: flex-start; flex-wrap: wrap; row-gap: 6px; }
.tcd .chart.calm .top > .chart-links { margin-left: auto; }
.tcd .chart.calm .glyph { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tcd .chart.calm .ident { flex: 1 1 150px; min-width: 0; display: grid; gap: 1px; }
.tcd .chart.calm .mint { font-size: 10.5px; }
.tcd .chart.calm .mint .seg-addr { font-size: 10.5px; padding: 0 4px; }
.tcd .chart.calm .open { flex: none; padding: 0 8px; }
.tcd .chart.calm .open svg { opacity: .7; }
.tcd .chart.calm .name { flex-wrap: wrap; line-height: 18px; max-height: 18px; overflow: hidden; }
.tcd .chart.calm .name .nm { flex: 1 0 44px; max-width: max-content; }
.tcd .chart.calm .mcline { font-size: 11.5px; color: var(--text); }
.tcd .chart.calm .mcline i { font-style: normal; font-size: 10.5px; color: var(--text-3); margin-right: 3px; }

/* room tabs always stay inside their strip (Header.tsx fit, data-fit / data-squeeze) */
.tcd .tabs { overflow-x: clip; }
.tcd .tab { flex: 0 1 auto; min-width: 0; }
.tcd .tab .tab-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tcd .tab .count, .tcd .tab .dot-new, .tcd .tab .tab-label-icon { flex: none; }
.tcd .header > .hbtn, .tcd .header > .pro-hgroup, .tcd .header > .pf-hbtn { position: relative; z-index: 1; }
.tcd .tabs[data-fit] .tab .count, .tcd .tabs[data-fit] .tab .dot-new {
  position: absolute; top: calc(50% - 10px); right: -1px; width: 6px; height: 6px; min-width: 0; padding: 0; border-radius: 50%;
  font-size: 0; line-height: 0; color: transparent; background: var(--text-2); box-shadow: none;
}
.tcd .tabs[data-fit] .tab .dot-new { background: var(--hi); }
.tcd .tabs[data-fit] .tab-updates .dot-new { right: 0; }
.tcd .tabs[data-fit='tighter'] .tab { padding: 0 4px; }
.tcd .tabs[data-fit='tightest'] .tab { padding: 0 3px; }
.tcd .tabs[data-measure] .tab { flex-shrink: 0; }

/* ------------------------------------------------------------------ coin room (features/coin/styles.css) */
.tcd .empty .coin-em-label { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.tcd .empty .coin-quiet { margin-top: 6px; color: var(--text-3); font-size: 11.5px; overflow-wrap: anywhere; }
.tcd .coin-note { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 2px 8px; padding: 8px var(--row-px, 12px) 2px; color: var(--text-3); font-size: 11.5px; text-align: center; }
.tcd .coin-note code { font: 10.5px var(--mono); color: var(--text-3); }
.tcd .tabs:not([data-measure]) .tab[data-room='coin'] { flex-shrink: 1000; min-width: min(3.5em, 25%); }
.tcd .tabs[data-squeeze='coin']:not([data-measure]) .tab:not([data-room='coin']) { flex-shrink: 0; }
.tcd .tab[data-room='coin'] .tab-label { transition: opacity 300ms ease; }
.tcd .tab[data-room='coin'] .tab-label.swap { opacity: 0; }
.tcd .tab.arrive { animation: tcd-tab-in 320ms var(--ease) both; }
@keyframes tcd-tab-in { from { opacity: 0; } }

/* ------------------------------------------------------------------ callouts (features/callouts/styles.css) */
.tcd .co-card {
  container-type: inline-size; margin-top: 4px; max-width: 440px; display: grid; gap: 7px; padding: 8px 10px 8px;
  border: 1px solid var(--line-strong); border-radius: var(--r); background: color-mix(in srgb, var(--surface) 92%, transparent);
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.tcd .msg.hov .co-card { border-color: color-mix(in srgb, var(--text-3) 70%, var(--line-strong)); }
.tcd .co-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tcd .co-card .glyph {
  width: 26px; height: 26px; flex: none; border-radius: 7px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--hi); box-shadow: inset 0 0 0 1px var(--line-strong);
  font: 700 10px var(--mono); letter-spacing: -0.03em; transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.tcd .co-id { flex: 1; min-width: 0; display: grid; gap: 1px; }
.tcd .co-l1 { display: flex; align-items: baseline; gap: 6px; min-width: 0; line-height: 16px; }
.tcd .co-tick { flex: 0 0 auto; max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--hi); font-weight: 680; font-size: 13.5px; letter-spacing: -0.02em; white-space: nowrap; }
.tcd .co-name { flex: 0 1 auto; min-width: 0; color: var(--text-2); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcd .co-card:not(.unverified) .co-l1 { flex-wrap: wrap; max-height: 16px; overflow: hidden; }
.tcd .co-card:not(.unverified) .co-name { flex: 1 0 44px; max-width: max-content; }
.tcd .co-l2 { display: flex; align-items: center; gap: 6px; min-width: 0; line-height: 17px; font: 400 10.5px var(--mono); color: var(--text-3); }
.tcd .co-l2 .seg-addr { flex: none; font-size: 10.5px; padding: 0 4px; color: var(--text); }
.tcd .co-why { margin: 0; color: var(--text); line-height: 1.42; overflow-wrap: anywhere; white-space: pre-wrap; }
.tcd .co-trline .tr-line { margin-top: -4px; flex-wrap: wrap; row-gap: 0; }
.tcd .co-trline .tr-line > * { white-space: nowrap; }
.tcd .co-d > * { white-space: nowrap; }
.tcd .co-d b { font-weight: 620; color: var(--text); }
.tcd .co-d .w { color: var(--text-2); font-weight: 560; }
.tcd .co-d .x { color: var(--text-3); }
.tcd .co-card.calm { gap: 7px; }
.tcd .co-card.calm .co-head { align-items: flex-start; }
.tcd .co-card.calm .co-id { flex: 1; min-width: 0; }
.tcd .co-card.calm .co-open { flex: none; margin-left: auto; padding: 0 8px; font-weight: 600; color: var(--text); }
.tcd .co-card.calm .co-open svg { opacity: .7; }
.tcd .co-card.calm .co-why { color: var(--text); }
.tcd .co-line { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11.5px; color: var(--text); font-variant-numeric: tabular-nums; }
.tcd .co-line i { font: 500 10.5px var(--font); font-style: normal; color: var(--text-3); margin-right: 3px; }
.tcd .co-line .co-d { font-size: 11px; display: inline; margin-left: 2px; }
.tcd .co-line .co-d .x { display: none; }
.tcd .co-line .co-d .w { font: 500 10.5px var(--font); color: var(--text-2); margin-left: 1px; }
.tcd .msg .main:has(> .co-card) > .body, .tcd .msg .main:has(> .co-card) > .tr-line { display: none; }
/* (the live value: a number that changes, drawn a touch brighter for a moment so the change can be seen) */
.tcd .co-line .lv { transition: color 600ms ease; }
.tcd .co-line .lv.up { color: var(--hi); transition: none; }
/* composer, idle: one row */
.tcd .co-composer { grid-template-columns: minmax(0, 1fr); }
.tcd .co-idle { container-type: inline-size; display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 34px; }
.tcd .co-attach {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 10px;
  border: 1px solid var(--hi); border-radius: 9px; background: var(--hi); color: var(--bg);
  font: 620 12.5px var(--font); letter-spacing: -0.012em; cursor: pointer; white-space: nowrap;
}
.tcd .co-attach svg { width: 15px; height: 15px; flex: none; }
.tcd .co-inview { flex: 1; min-width: 0; display: flex; align-items: center; gap: 5px; overflow: hidden; white-space: nowrap; font: 400 10.5px var(--mono); color: var(--text-3); }
.tcd .co-inview .dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--hi); }
.tcd .co-inview b { flex: none; color: var(--hi); font: 640 11.5px var(--font); letter-spacing: -0.01em; }
.tcd .co-inview code { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.tcd .co-inview .calls { flex: none; color: var(--text-3); display: none; }
@container (min-width: 330px) { .tcd .co-inview .calls { display: inline; } }

/* ------------------------------------------------------------------ PnL (features/pnl/styles.css) */
.tcd .pl-card {
  margin-top: 4px; max-width: 440px; display: grid; gap: 5px; padding: 6px 8px 6px 7px;
  border: 1px solid var(--line-strong); border-radius: var(--r); background: color-mix(in srgb, var(--surface) 92%, transparent);
}
.tcd .msg.latest .pl-card { border-color: var(--text-3); }
.tcd .pl-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-width: 0; }
.tcd .pl-word { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px 0 6px; border-radius: 5px; font: 650 10px/20px var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.tcd .pl-word .tri { font-size: 8px; line-height: 1; }
.tcd .pl-card.gain .pl-word { background: var(--hi); color: var(--bg); }
.tcd .pl-card.loss .pl-word { color: var(--hi); box-shadow: inset 0 0 0 1.5px var(--hi); }
.tcd .pl-amt { min-width: 0; color: var(--hi); font-size: 14px; font-weight: 650; letter-spacing: -0.02em; overflow-wrap: anywhere; line-height: 20px; }
.tcd .pl-self { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 3px; font: 500 9px/16px var(--mono); text-transform: uppercase; letter-spacing: .07em; color: color-mix(in srgb, var(--text-2) 70%, var(--text-3)); }
.tcd .pl-tx { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 11px; line-height: 16px; color: var(--text-2); }
.tcd .pl-tx svg { width: 12px; height: 12px; flex: none; }
.tcd .pl-tx.ok { color: var(--text); }
.tcd .pl-tx.ok > svg { color: var(--hi); }
.tcd .pl-tx.ok a { display: inline-flex; align-items: center; gap: 3px; color: var(--hi); font-weight: 560; text-decoration: underline; text-decoration-color: var(--text-3); text-underline-offset: 2px; white-space: nowrap; }
.tcd .pl-tx.ok a svg { width: 11px; height: 11px; opacity: .7; }
.tcd .pl-composer { grid-template-columns: minmax(0, 1fr); }
.tcd .pl-shot {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px 0 9px; border-radius: 9px;
  border: 1px solid var(--hi); background: var(--hi); color: var(--bg); font: 620 12px var(--font); letter-spacing: -0.01em; cursor: pointer; white-space: nowrap;
}
.tcd .pl-shot svg { width: 15px; height: 15px; flex: none; }
.tcd .pl-composer .field { align-items: center; }
.tcd .pl-composer .ta { height: 32px; }

/* ------------------------------------------------------------------ images (features/media/styles.css) */
.tcd .mm { margin-top: 5px; display: grid; gap: 5px; justify-items: start; min-width: 0; }
.tcd .mm-grid { position: relative; display: grid; gap: 2px; width: min(100%, 300px); border-radius: 10px; overflow: hidden; }
.tcd .mm-grid.n1 { grid-template-columns: 1fr; }
.tcd .mm-tile { position: relative; display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; border: 0; padding: 0; margin: 0; background: var(--surface-2); overflow: hidden; cursor: zoom-in; isolation: isolate; }
.tcd .mm-tile::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hi) 8%, transparent); z-index: 2; }
.tcd .mm-grid.n1 .mm-tile::after { border-radius: 10px; }
.tcd .mm-tile svg { width: 100%; height: 100%; display: block; }
/* (a single image: the real grid takes the picture's own box) */
.tcd .mm-grid.shot { width: min(100%, 260px); aspect-ratio: 16 / 10; }

/* ------------------------------------------------------------------ voice (features/voice/styles.css) */
.tcd .vc-bar { flex: none; display: flex; justify-content: flex-end; padding: 4px 8px; position: relative; z-index: 3; min-width: 0; }
.tcd .vc-live { width: 7px; height: 7px; border-radius: 50%; background: var(--vc-green); flex: none; box-shadow: 0 0 0 3px var(--vc-green-soft); }
.tcd .is-pending .vc-live { background: var(--text-3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text-3) 22%, transparent); animation: tcd-vc-wait 1.4s ease-in-out infinite; }
@keyframes tcd-vc-wait { 50% { opacity: 0.45; } }
.tcd .vc-av { position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden; background: hsl(var(--vc-hue, 210) 28% var(--vc-tint-l)); box-shadow: 0 0 0 1px var(--line-strong); transition: box-shadow 160ms var(--ease); }
.tcd .vc-av svg { width: 100%; height: 100%; display: block; }
.tcd .vc-av .gen-bg { fill: hsl(var(--vc-hue, 210) 28% var(--vc-tint-l)); }
.tcd .vc-av.is-speaking { box-shadow: 0 0 0 2px var(--vc-surface), 0 0 0 3.5px var(--vc-green); animation: tcd-vc-ring 1.1s ease-in-out infinite; }
@keyframes tcd-vc-ring {
  0%, 100% { box-shadow: 0 0 0 2px var(--vc-surface), 0 0 0 3.5px var(--vc-green); }
  50% { box-shadow: 0 0 0 2px var(--vc-surface), 0 0 0 3.5px var(--vc-green), 0 0 0 6px var(--vc-green-soft); }
}
.tcd .vc-ibtn { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border: 0; border-radius: 9px; background: none; color: var(--text-2); cursor: pointer; transition: background 150ms var(--ease), color 150ms var(--ease); padding: 0; }
.tcd .vc-ibtn.hov { background: var(--vc-raise); color: var(--hi); }
.tcd .vc-ibtn.is-on { color: var(--vc-red-text); }
.tcd .vc-ibtn.vc-hang { color: #fff; background: var(--vc-red); width: 30px; height: 26px; margin-left: 2px; }
.tcd .vc-ibtn.vc-hang.hov { background: var(--vc-red-hover); color: #fff; }
.tcd .vc-ibtn svg { display: block; }
.tcd .vc-strip {
  display: flex; align-items: center; gap: 2px; min-width: 0; max-width: 100%; height: 34px; padding: 0 3px; border-radius: 12px;
  background: var(--vc-surface); border: 1px solid var(--line-strong); box-shadow: var(--vc-shadow-sm);
  animation: tcd-vc-in 160ms var(--ease);
}
.tcd .vc-strip.has-coins { height: 44px; }
.tcd .vc-toggle { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: 32px; height: 28px; border: 0; border-radius: 9px; background: none; color: var(--text-3); cursor: pointer; transition: background 150ms var(--ease); padding: 0; }
.tcd .vc-toggle.hov { background: var(--vc-raise); color: var(--hi); }
.tcd .vc-chev { flex: none; transition: transform 160ms var(--ease); }
.tcd .vc-toggle[aria-expanded='true'] .vc-chev { transform: rotate(180deg); }
.tcd .vc-tiles { list-style: none; margin: 0; padding: 0 2px; display: flex; align-items: center; gap: 1px; min-width: 0; flex: 0 1 auto; }
.tcd .vc-tiles > li { flex: 0 1 auto; min-width: 26px; max-width: 72px; display: flex; }
.tcd .vc-tile {
  width: 100%; min-width: 0; height: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0 4px; border: 0; border-radius: 8px;
  background: none; color: var(--text); cursor: pointer; transition: background 150ms var(--ease);
}
.tcd .has-coins .vc-tile { height: 40px; }
.tcd .vc-tile.hov { background: var(--vc-raise); }
.tcd .vc-tile-av { position: relative; display: inline-grid; flex: none; }
.tcd .vc-badge { position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; display: grid; place-items: center; background: var(--vc-red); color: #fff; box-shadow: 0 0 0 2px var(--vc-surface); }
.tcd .vc-badge svg { display: block; }
.tcd .vc-tile-coin { display: flex; align-items: center; max-width: 100%; min-width: 0; height: 11px; font: 600 9.5px/11px var(--mono); letter-spacing: -0.03em; color: var(--text-2); }
.tcd .vc-tile-sym { overflow: hidden; text-overflow: clip; white-space: nowrap; min-width: 0; }
.tcd .vc-tiles:has(> li:nth-child(5)) .vc-tile { padding: 0 2px; }
.tcd .vc-tiles:has(> li:nth-child(5)) .vc-tile-coin { font-size: 9px; letter-spacing: -0.05em; }
.tcd .vc-tile.hov .vc-tile-coin { color: var(--hi); }
.tcd .vc-strip.is-ambient { padding-left: 8px; gap: 4px; }
.tcd .vc-amb-ico { display: inline-grid; color: var(--vc-green-text); flex: none; }
.tcd .vc-amb-ico svg { display: block; }
.tcd .vc-amb-t { font: 500 11.5px var(--font); color: var(--text-2); white-space: nowrap; flex: none; padding: 0 2px; }
.tcd .vc-join { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 11px; border: 0; border-radius: 8px; background: var(--vc-join); color: #fff; font: 600 12px var(--font); cursor: pointer; transition: background 150ms var(--ease); }
.tcd .vc-join.hov { background: var(--vc-join-hover); }
.tcd .vc-panel {
  display: flex; flex-direction: column; min-height: 0; border-radius: 13px; overflow: hidden; container-type: inline-size;
  background: var(--vc-surface); border: 1px solid var(--line-strong); box-shadow: var(--vc-shadow);
}
.tcd .vc-popover { position: absolute; top: calc(100% - 2px); right: 8px; z-index: 40; width: min(320px, calc(100% - 16px)); max-height: 480px; animation: tcd-vc-in 160ms var(--ease); }
.tcd .vc-popover.leaving { animation: tcd-vc-out 140ms ease forwards; }
@keyframes tcd-vc-in { from { opacity: 0; transform: translateY(-4px) scale(0.985); } }
@keyframes tcd-vc-out { to { opacity: 0; transform: translateY(-4px) scale(0.985); } }
.tcd .vc-head { display: flex; align-items: center; gap: 9px; padding: 8px 6px 7px 12px; border-bottom: 1px solid var(--line); flex: none; }
.tcd .vc-title { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.tcd .vc-status { font: 600 12px var(--font); color: var(--vc-green-text); letter-spacing: -0.01em; }
.tcd .vc-group { display: inline-flex; align-items: center; gap: 4px; min-width: 0; font-size: 11px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcd .vc-group svg { flex: none; color: var(--text-3); }
.tcd .vc-time { font-size: 11px; color: var(--text-2); flex: none; padding: 0 2px; }
.tcd .vc-list { list-style: none; margin: 0; padding: 4px; overflow: hidden; flex: 1 1 auto; min-height: 0; }
.tcd .vc-row { display: flex; align-items: center; gap: 4px; min-height: 44px; padding: 2px 4px 2px 2px; border-radius: 9px; transition: background 150ms var(--ease); }
.tcd .vc-row.hov { background: var(--vc-raise); }
.tcd .vc-row-av { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; cursor: pointer; padding: 0; }
.tcd .vc-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; min-height: 36px; padding: 2px 4px; border: 0; border-radius: 7px; background: none; color: var(--text); cursor: pointer; text-align: left; }
.tcd .vc-row-l1 { display: flex; align-items: baseline; gap: 6px; max-width: 100%; min-width: 0; font: 500 12.5px/1.25 var(--font); }
.tcd .vc-name-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tcd .vc-row.is-speaking .vc-name-t { color: var(--hi); }
.tcd .vc-row.is-muted .vc-name-t { color: var(--text-2); }
.tcd .vc-you { font-size: 10.5px; color: var(--text-3); flex: none; }
.tcd .vc-row-l2 { display: flex; align-items: center; gap: 4px; max-width: 100%; min-width: 0; font: 400 11px/1.25 var(--font); color: var(--text-2); white-space: nowrap; }
.tcd .vc-coin { font: 600 11px var(--mono); letter-spacing: -0.02em; color: var(--text); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tcd .vc-flags { display: inline-flex; align-items: center; gap: 1px; flex: none; color: var(--vc-red-text); }
.tcd .vc-flag { width: 16px; height: 16px; display: grid; place-items: center; }
.tcd .vc-row-more { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 7px; background: none; color: var(--text-3); cursor: pointer; padding: 0; }
.tcd .vc-ctl { display: flex; align-items: center; gap: 4px; padding: 6px; border-top: 1px solid var(--line); flex: none; }
.tcd .vc-grow { flex: 1; }
.tcd .vc-cbtn {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 0; border-radius: 9px; background: var(--vc-raise); color: var(--text);
  font: 500 12px var(--font); cursor: pointer; white-space: nowrap; transition: background 150ms var(--ease), color 150ms var(--ease);
}
.tcd .vc-cbtn.vc-hang { background: var(--vc-red); color: #fff; font-weight: 600; }
@container (max-width: 270px) { .tcd .vc-cbtn { padding: 0 9px; } .tcd .vc-cbtn:not(.vc-hang) span { display: none; } }
.tcd .vc-gbtn {
  flex: none; display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 0 9px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--surface-2); color: var(--text); font: 600 11px var(--font); cursor: pointer; transition: border-color 150ms var(--ease), color 150ms var(--ease);
}
.tcd .vc-gbtn svg { color: var(--text-2); }
.tcd .vc-gbtn.is-in { color: var(--vc-green-text); border-color: color-mix(in srgb, var(--vc-green) 45%, var(--line-strong)); }
.tcd .vc-gbtn.is-in .vc-live { width: 6px; height: 6px; box-shadow: none; animation: none; }
.tcd .vc-gbtn.is-in.is-pending { color: var(--text-2); border-color: var(--line-strong); }
.tcd .vc-gbtn.is-in.is-pending .vc-live { background: var(--text-3); }
.tcd .vc-gbtn-n { color: var(--vc-green-text); }
.tcd .gr-note .vc-gbtn { margin-left: 2px; }
.tcd .tab .tab-voice { display: inline-flex; align-items: center; gap: 2px; color: var(--vc-green-text); font: 600 10px/1 var(--mono); flex: none; }
.tcd .tab .tab-voice svg { width: 11px; height: 11px; }
.tcd .tabs[data-fit='tighter'] .tab.has-voice .tab-lock, .tcd .tabs[data-fit='tightest'] .tab.has-voice .tab-lock { display: none; }

/* ------------------------------------------------------------------ groups (features/groups/styles.css) */
.tcd .tab .tab-lock { flex: none; width: 11px; height: 11px; margin-right: 3px; opacity: .7; }
.tcd .tab[aria-selected='true'] .tab-lock { opacity: 1; }
.tcd .gr { display: grid; gap: 14px; }
.tcd .gr-sec { display: grid; gap: 8px; }
.tcd .gr-h { margin: 0; font-size: 12px; font-weight: 650; letter-spacing: -0.01em; color: var(--hi); display: flex; align-items: center; gap: 6px; }
.tcd .gr-count { font: 500 11px var(--mono); color: var(--text-3); }
.tcd .gr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tcd .gr-item { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 8px; border-radius: 8px; background: var(--surface-2); }
.tcd .gr-item-text { flex: 1; min-width: 0; }
.tcd .gr-item-name { font-size: 12.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.tcd .gr-item-meta { font-size: 11px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcd .gr-item-actions { flex: none; display: flex; gap: 4px; }
.tcd .gr-row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.tcd .gr-small { font-size: 11px; }
.tcd .gr-back { justify-self: start; margin-bottom: 10px; }
.tcd .gr-linkbox { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 6px 6px 6px 9px; border-radius: 8px; background: var(--surface-2); }
.tcd .gr-link { flex: 1; min-width: 0; font: 11px/1.4 var(--mono); color: var(--text); overflow-wrap: anywhere; }
.tcd .gr-note { display: flex; align-items: center; gap: 6px; margin: 6px 12px 2px; font-size: 11px; color: var(--text-3); min-width: 0; }
.tcd .gr-note svg { flex: none; }
.tcd .gr-note > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcd .gr-note-btn { flex: none; border: 0; background: none; color: var(--text-2); font: 600 11px var(--font); cursor: pointer; padding: 2px 4px; border-radius: 4px; }
.tcd .gr-note-btn.hov { color: var(--hi); }
.tcd .tabs:not([data-measure]) .tab[data-room^='grp:'] { flex-shrink: 1000; min-width: min(3.5em, 25%); }
.tcd .tabs[data-squeeze='coin']:not([data-measure]) .tab[data-room^='grp:'] { flex-shrink: 1000; }

/* ------------------------------------------------------------------ search (features/pro/styles.css) */
.tcd .srch { max-width: 640px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; }
.tcd .srch-top { position: relative; z-index: 3; margin: -10px -12px 0; padding: 10px 12px 9px; background: var(--bg); border-bottom: 1px solid var(--line); }
.tcd .srch-field {
  display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 6px 0 10px; border-radius: 9px;
  background: var(--surface-2); border: 1px solid var(--line-strong); transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.tcd .srch-field.focus { border-color: var(--text-3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hi) 7%, transparent); }
.tcd .srch-field > svg { width: 15px; height: 15px; flex: none; color: var(--text-3); }
.tcd .srch-in { flex: 1; min-width: 0; color: var(--hi); font-size: 13px; white-space: nowrap; overflow: hidden; }
.tcd .srch-in .ph { color: var(--text-3); }
.tcd .srch-clear { width: 24px; height: 24px; flex: none; border: 0; border-radius: 6px; background: none; color: var(--text-3); display: grid; place-items: center; cursor: pointer; padding: 0; }
.tcd .srch-spin { width: 12px; height: 12px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-strong); border-top-color: var(--hi); animation: tcd-spin .7s linear infinite; }
@keyframes tcd-spin { to { transform: rotate(360deg); } }
.tcd .srch-scope { display: flex; gap: 4px; margin-top: 8px; overflow: hidden; padding: 1px; }
.tcd .srch-scope button {
  flex: none; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: none; cursor: pointer;
  color: var(--text-2); font-size: 11.5px; font-weight: 500; white-space: nowrap;
}
.tcd .srch-scope button[aria-pressed='true'] { background: var(--hi); border-color: var(--hi); color: var(--bg); }
.tcd .srch-window { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; font-size: 11.5px; color: var(--text-2); }
.tcd .srch-pro { display: inline-block; margin-right: 5px; padding: 0 4px; border-radius: 3px; background: var(--hi); color: var(--bg); font: 700 9px/15px var(--mono); letter-spacing: .07em; vertical-align: 1px; }
.tcd .srch-out { flex: 1; padding-top: 4px; }
.tcd .srch-count { padding: 6px 0; font: 400 10.5px var(--mono); color: var(--text-3); }
.tcd .srch-count .num { color: var(--text-2); }
.tcd .srch-empty { padding: 22px 2px 10px; color: var(--text-2); }
.tcd .srch-empty .t { margin-bottom: 10px; color: var(--hi); font: 650 14px/1.3 var(--font); letter-spacing: -0.015em; }
.tcd .srch-empty ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 12px; }
.tcd .srch-empty li { display: flex; align-items: baseline; gap: 8px; }
.tcd .srch-empty li .mono { color: var(--text); min-width: 46px; }
.tcd .sr-list { list-style: none; margin: 0 -12px; padding: 0; }
.tcd .sr-item { position: relative; display: grid; grid-template-columns: var(--av) minmax(0, 1fr) 12px; column-gap: var(--gap); padding: 7px 12px 8px; border-bottom: 1px solid var(--line); animation: tcd-toast-in var(--t) var(--ease) both; }
.tcd .sr-av { position: relative; z-index: 2; align-self: start; padding-top: 1px; }
.tcd .sr-main { min-width: 0; }
.tcd .sr-meta { display: flex; align-items: baseline; gap: 6px; min-width: 0; line-height: 18px; }
.tcd .sr-handle { min-width: 0; padding: 0; border: 0; background: none; color: var(--text); font-weight: 600; font-size: 12.5px; letter-spacing: -0.012em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcd .sr-room { flex: none; padding: 0 4px; border-radius: 4px; font: 600 9px/15px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tcd .sr-ts { margin-left: auto; flex: none; font-size: 10.5px; color: var(--text-3); }
.tcd .sr-body { margin-top: 1px; font-size: 12.5px; line-height: 1.42; color: var(--text); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tcd .sr-item mark, .tcd .sr-chart mark { background: color-mix(in srgb, var(--hi) 15%, transparent); color: var(--hi); font-weight: 600; border-radius: 3px; padding: 0 1px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--hi) 10%, transparent); }
.tcd .sr-chart { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 11.5px; min-width: 0; }
.tcd .sr-chart b { color: var(--text); font-weight: 650; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcd .sr-chart .glyph { display: grid; place-items: center; flex: none; width: 16px; height: 16px; border-radius: 4px; background: var(--hi); color: var(--bg); font: 700 7px/1 var(--mono); letter-spacing: -0.02em; }
.tcd .sr-chart .seg-addr { font-size: 10.5px; }
.tcd .sr-go { align-self: center; justify-self: end; display: grid; color: var(--text-3); opacity: 0; transform: rotate(180deg) translateX(3px); }
.tcd .sr-go svg { width: 12px; height: 12px; }
.tcd .kbd { display: inline-block; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 4px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 -1px 0 var(--line-strong); font: 500 10px/16px var(--mono); color: var(--text-2); text-align: center; vertical-align: 1px; }
.tcd .srch-keys { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 7px 12px; border-top: 1px solid var(--line); background: var(--bg); font-size: 10.5px; color: var(--text-3); }
.tcd .srch-keys .kbd { margin-right: 2px; }

/* ------------------------------------------------------------------ profile button (features/profile/styles.css) */
.tcd .pf-hbtn { position: relative; }
.tcd .pf-av { position: relative; display: inline-block; flex: none; overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); vertical-align: middle; width: 20px; height: 20px; border-radius: 6px; }

/* ------------------------------------------------------------------ reduced motion: still states, a calm cross-fade between them */
@media (prefers-reduced-motion: reduce) {
  .tcd *, .tcd *::before, .tcd *::after { animation: none !important; transition-duration: 0ms !important; }
  .tcd .fade, .tcd.fade > * { transition: opacity 700ms ease !important; }
}
