/* ═══════════════════════════════════════════════════════════
   COMMAND CENTER — the no-symbol overview ("the pit wall").
   Full-bleed four-zone layout:
     1. Command band — session lamp, live ET clock, NY session
        race-track, book-level gauge cluster
     2. Watchlist board — one dense exchange row per ticker
     3. Account rail — AI Trader + paper wallet panels
     4. Catalyst tape — newest-first headline stream
   Rows are the focal point. Click → selectStock().
═══════════════════════════════════════════════════════════ */
.command-center{
  flex:1;display:flex;flex-direction:column;
  position:relative;overflow:hidden;
  background:var(--bg-primary);
  opacity:0;
  transition:opacity 420ms var(--ease-out);
}
.command-center.visible{opacity:1;}
.command-center.hidden{display:none!important;}

/* Atmosphere: teal pool bottom-right + a faint crimson ember on the
   far left — the graph-ink palette's two poles, barely there. */
/* (Ambient breathing glow removed at owner request.) */

/* Inner scroll container. It ONLY scrolls — no background of its own. The
   line-grid texture lives on .cc-canvas (the content layer) so it travels WITH
   the cards as one connected surface, but because it's a normal painted
   background of the scrolling content (not `background-attachment:local` on the
   scroller, which repaints on the main thread every frame and made the grid lag
   the cards / shake), the whole surface scrolls as one GPU-composited layer —
   connected AND jank-free. */
.cc-inner{
  position:relative;z-index:2;
  flex:1;overflow-y:auto;overflow-x:hidden;
  width:100%;
  /* NO visible scrollbar on Home (owner 2026-10-05: "I see a scrolling bar
     on the home page"). The board still scrolls (wheel, trackpad, keys,
     touch); the cards cut at the bottom edge already say there is more.
     The thin bar this used to ask for was meant to be "nearly invisible",
     but since Chrome 121 the standard scrollbar-width/-color win over the
     ::-webkit-scrollbar styling, so Chrome drew a classic bar, arrows
     included, down the board's right edge (beside the docked Chat Bot
     panel when it is open). */
  scrollbar-width:none;
}
.cc-inner::-webkit-scrollbar{display:none;}
/* Content layer: carries the grid + the page padding, grows to the full content
   height, and scrolls as one piece with the cards on top of it.
   `will-change:transform` promotes this whole layer (grid + cards) onto the GPU
   as ONE cached texture, so a fast scroll is a pure compositor transform — the
   grid can never lag/re-rasterize behind the cards (which is what made the
   background look unsynced while scrolling fast). */
.cc-canvas{
  display:flex;flex-direction:column;gap:0.875rem;   /* matches the .cc-layout gutter */
  /* Page-edge inset = the panel gutter: one spacing value everywhere. The old
     clamp() grew the walls to ~26px while panels sat 12px apart — the frame
     read heavier than the grid. */
  padding:0.875rem;
  min-height:100%;
  background-image:
    linear-gradient(color-mix(in srgb, var(--text-primary) 3.5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--text-primary) 3.5%, transparent) 1px, transparent 1px);
  /* 60px — matches home's hero grid so the ENTER/brand transitions read as
     one continuous surface (owner request 2026-07-24) */
  background-size:60px 60px;
  will-change:transform;
}
/* Full-bleed: no max-width cap — the board always absorbs the width the
   collapsing sidebar frees instead of centering with dead space on both
   sides (owner request 2026-07-24). The grid's 2-col minmax split keeps
   panel proportions; only the columns widen. */
.cc-canvas > *{width:100%;}

/* Aesthetic scrollbars — teal-on-dark, thin, idle is nearly invisible. */
.cc-activity-feed::-webkit-scrollbar{
  width:0.375rem;height:0.375rem;
}
.cc-activity-feed::-webkit-scrollbar-track{
  background:transparent;
}
.cc-activity-feed::-webkit-scrollbar-thumb{
  background:var(--border-default);
  border-radius:0.25rem;
}
.cc-activity-feed:hover::-webkit-scrollbar-thumb{
  background:color-mix(in srgb, var(--accent) 28%, transparent);
}
.cc-activity-feed::-webkit-scrollbar-thumb:hover{
  background:color-mix(in srgb, var(--accent) 50%, transparent);
}
.cc-activity-feed::-webkit-scrollbar-corner{
  background:transparent;
}
.cc-activity-feed{
  scrollbar-width:thin;
  scrollbar-color:color-mix(in srgb, var(--accent) 22%, transparent) transparent;
}

/* Hide the floating command cluster while the command center is on
   screen — no chart to switch views for. Restores on stock select.
   (Duplicate of the body.cc-on rule above — kept as the class form.) */
body.cc-on .top-cluster{display:none!important;}

/* ── 1 · COMMAND BAND ────────────────────────────────────
   A panel like the rest of the page: same card chrome (bg-tertiary fill +
   hairline inset ring + radius, applied in the flat-cards group below). No
   phase-colored left edge, no lamp — the market status is TYPOGRAPHY
   (Robinhood/Webull archetype) and the session strip is a chart time axis. */
.cc-band{
  position:relative;
  display:grid;
  grid-template-columns:minmax(11rem,15rem) auto minmax(12rem,1fr) auto auto;
  align-items:center;
  gap:clamp(1rem, 2.2vw, 2.5rem);
  flex-shrink:0;
  padding:0.875rem clamp(1rem, 1.6vw, 1.5rem);
  border-radius:var(--radius-lg);
  /* Entry via a FROM-keyframe + backwards fill (not the shared to{}+forwards
     recipe): a forwards fill would pin `transform` forever and block the
     hover lift below. Same visual, but transform stays free after entry. */
  animation:cc-band-in 540ms var(--ease-out) 60ms backwards;
}
@keyframes cc-band-in{from{opacity:0;transform:translateY(8px);}}

/* Typographic market status — TEXT is the indicator, no dot/circle/pill.
   Phase word (small caps) colored by session state; grey caption below. */
.cc-band-phase{display:flex;align-items:center;min-width:0;}
.cc-phase-txt{display:flex;flex-direction:column;gap:0.1875rem;min-width:0;}
.cc-phase-label{
  font-family:var(--font-sans);font-size:max(0.6875rem, var(--fs-floor));font-weight:700;
  text-transform:uppercase;letter-spacing:var(--tr-caps);
  color:var(--text-muted);line-height:1.1;white-space:nowrap;
}
.cc-phase-label.live{color:var(--green);}
.cc-phase-label.extended{color:var(--amber);}
.cc-phase-label.closed{color:var(--text-muted);}
.cc-phase-sub{
  font-family:var(--font-mono);font-size:max(0.625rem, var(--fs-floor));font-weight:600;
  color:var(--text-muted);letter-spacing:0.04em;white-space:nowrap;
  font-variant-numeric:tabular-nums;
}

/* Live ET clock — ticking seconds are the page's heartbeat */
.cc-clockbox{display:flex;flex-direction:column;align-items:flex-start;gap:0.125rem;}
.cc-clock{
  font-family:var(--font-mono);font-size:1.375rem;font-weight:600;
  color:var(--text-primary);letter-spacing:0.02em;line-height:1;
  font-variant-numeric:tabular-nums;
}
.cc-clock .cl-s{color:var(--text-muted);font-size:0.875rem;}
.cc-clock-tz{
  font-family:var(--font-sans);font-size:max(0.5625rem, var(--fs-floor));font-weight:700;
  text-transform:uppercase;letter-spacing:var(--tr-caps);
  color:var(--text-muted);
}

/* NY session time-axis: a slim chart-style ruler over the 04:00→20:00 domain.
   Flat extended-hours shading (thinkorswim/TradingView idiom) — pre & post are
   a barely-there tint, RTH (09:30→16:00) a slightly stronger one so the regular
   session visually dominates. The 09:30 open is the shading boundary itself, no
   label. No pill ends, no gradient, no glow. */
.cc-session{display:flex;flex-direction:column;gap:0.3125rem;min-width:0;}
.cc-session-track{
  position:relative;height:0.5rem;border-radius:1px;
  display:flex;overflow:visible;
}
.cc-seg{height:100%;}
.cc-seg.pre {flex:0 0 34.375%;background:color-mix(in srgb, var(--text-primary) 5%, transparent);}
.cc-seg.open{flex:0 0 40.625%;background:color-mix(in srgb, var(--text-primary) 12%, transparent);}
.cc-seg.post{flex:0 0 25%;    background:color-mix(in srgb, var(--text-primary) 5%, transparent);}
/* "Now" — a 1px crosshair hairline (chart cursor idiom): full strip height plus
   a 3px riser above. No dot, no glow. JS positions it by percent along the
   04:00→20:00 domain and hides it outside those hours. */
.cc-session-now{
  position:absolute;top:-3px;bottom:0;left:0;width:1px;
  transform:translateX(-50%);
  background:color-mix(in srgb, var(--text-primary) 70%, transparent);
  transition:left 1s linear;pointer-events:none;
}
.cc-session-now[hidden]{display:none;}
/* Hour labels below the strip, styled like the chart's own time-axis ticks:
   monospace, muted, every 4h at 0/25/50/75/100% (space-between). */
.cc-session-ticks{
  display:flex;justify-content:space-between;
  font-family:var(--font-mono);font-size:max(0.5625rem, var(--fs-floor));font-weight:600;
  color:var(--text-muted);letter-spacing:0.03em;
  font-variant-numeric:tabular-nums;
}

/* Gauge cluster */
.cc-gauges{display:flex;gap:0;align-items:stretch;}
.cc-gauge{
  display:flex;flex-direction:column;justify-content:center;gap:0.1875rem;
  padding:0 clamp(0.875rem, 1.4vw, 1.5rem);
  position:relative;
}
.cc-g-l{
  font-family:var(--font-sans);font-size:max(0.5625rem, var(--fs-floor));font-weight:700;
  text-transform:uppercase;letter-spacing:var(--tr-caps);
  color:var(--text-muted);white-space:nowrap;
}
.cc-g-v{
  font-family:var(--font-mono);font-size:1.125rem;font-weight:700;
  color:var(--text-primary);letter-spacing:var(--tr-mono);line-height:1.1;
  font-variant-numeric:tabular-nums;white-space:nowrap;
}
.cc-g-s{
  font-family:var(--font-mono);font-size:max(0.625rem, var(--fs-floor));font-weight:500;
  color:var(--text-muted);white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.cc-g-s.up{color:var(--green);}
.cc-g-s.down{color:var(--red);}

/* ── Section headers (shared) ────────────────────────────── */
.cc-section{display:flex;flex-direction:column;gap:0.625rem;min-width:0;}
.cc-section-head{
  display:flex;align-items:baseline;gap:0.75rem;
  padding-bottom:0.4375rem;
}
.cc-section-title{
  font-family:var(--font-sans);font-size:max(0.6875rem, var(--fs-floor));font-weight:700;
  text-transform:uppercase;letter-spacing:var(--tr-caps);
  color:var(--text-secondary);
}
.cc-section-sub{
  font-family:var(--font-mono);font-size:max(0.625rem, var(--fs-floor));font-weight:500;
  color:var(--text-muted);margin-left:auto;
  font-variant-numeric:tabular-nums;
}

/* Watchlist sort tabs (merged Rankings) — chip row in the board header */
.cc-board-tabs{display:inline-flex;align-items:center;gap:0.3125rem;flex-wrap:wrap;}
.cc-btab{
  font-family:var(--font-mono);font-size:max(0.625rem, var(--fs-floor));font-weight:700;letter-spacing:0.03em;
  color:var(--text-muted);background:transparent;border:none;border-radius:0.1875rem;
  height:1.375rem;min-height:var(--ctl-floor);padding:0 0.5625rem;cursor:pointer;
  box-shadow:inset 0 0 0 1px var(--border-default);
  transition:color .14s var(--ease-out), background .14s var(--ease-out), box-shadow .14s var(--ease-out);
}
.cc-btab:hover{color:var(--text-primary);box-shadow:inset 0 0 0 1px var(--border-strong);}
.cc-btab.on{
  color:var(--accent);background:var(--accent-dim);
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
}

/* Sparkline range selector (1D/2D/7D) — owns the far-right edge of the board
   header. The ticker-count meta (#cc-grid-meta) normally floats right via
   margin-left:auto; inside the board head we cancel that so the order reads
   [title][sort tabs][meta][range tabs], range tabs flush right. */
.cc-board-wrap .cc-section-sub{margin-left:0;}
.cc-range-tabs{display:inline-flex;align-items:center;gap:0.3125rem;margin-left:auto;}
.cc-rtab{min-width:2.125rem;justify-content:center;text-align:center;}

/* ONE shared grid template for the board rows. Six tracks: logo · name ·
   spark · change($) · change(%) · price. The name is capped so the sparkline
   takes the leftover width; the three numeric columns are fixed so values in
   adjacent rows always line up. (A labelled header strip briefly lived here —
   owner cut it 2026-07-17: it cost the panel a row of height.) */
.cc-board-wrap{--cc-row-grid:2.5rem minmax(6rem,10rem) minmax(0,1fr) 4.75rem 5.25rem 5.75rem;}

/* Watchlist board — dense exchange rows */
.cc-board{
  display:flex;flex-direction:column;
  /* 95%-opaque card (was a fainter 45% fill + 1px border) to match the rest
     of the dashboard cards; inset ring instead of the border. */
  border-radius:var(--radius-lg);
  background:color-mix(in srgb, var(--bg-tertiary) 90%, transparent);
  box-shadow:inset 0 0 0 1px var(--border-default), var(--shadow-pop);
  overflow:hidden;
}
.cc-row{
  position:relative;
  display:grid;
  /* logo · name · spark · change · change% · price — the shared template
     (see .cc-board-wrap) keeps the header labels aligned with these cells. */
  grid-template-columns:var(--cc-row-grid);
  align-items:center;
  gap:clamp(0.75rem, 1.4vw, 1.5rem);
  height:3.75rem;padding:0 1rem 0 0.875rem;
  cursor:pointer;
  /* Entry via a FROM-keyframe + backwards fill (same recipe as .cc-band): a
     forwards fill would pin `transform` forever and block the hover lift. */
  animation:cc-row-in 600ms var(--ease-out) calc(160ms + var(--i, 0) * 70ms) backwards;
  transition:background 140ms var(--ease-out), transform 140ms var(--ease-out);
}
@keyframes cc-row-in{from{opacity:0;transform:translateY(6px);}}
/* Sort/range click feedback (stadium wave) lives in command-center.js as a
   Web Animations API call, not CSS keyframes: script animations survive the
   reorder's appendChild moves, so rapid clicks overlap waves instead of
   snapping the running one dead. */
.cc-row + .cc-row{border-top:1px solid var(--border-subtle);}
/* Hover lift: a whisper of scale so the row answers the cursor. z-index lets
   the grown edges ride over the neighbouring rows instead of under them. */
.cc-row:hover{
  background:var(--bg-row-hover);
  transform:scale(1.01);
  z-index:1;
}
.cc-row:focus-visible{outline:none;background:color-mix(in srgb, var(--text-primary) 3%, transparent);}

.cc-row-logo{
  width:2.125rem;height:2.125rem;border-radius:0.4375rem;
  background:var(--logo-plate);overflow:hidden;flex:none;
  display:flex;align-items:center;justify-content:center;
  /* Same knight-white ring as the sidebar tiles (.si-logo) so the two
     watchlists read as one family. */
  box-shadow:0 0 0 0.17rem color-mix(in srgb, var(--text-primary) 92%, transparent), var(--shadow-tile);
}
/* Provider logos carry a baked-in margin (the mark sits on its own plate that
   stops short of the file edge), which read as a gap between our ring and the
   art. Scale the image past the tile so the tile's overflow clip crops that
   margin and the art meets the ring. */
.cc-row-logo img{width:100%;height:100%;object-fit:cover;transform:scale(1.22);}
.cc-row-logo.fallback{
  background:var(--bg-elevated);color:var(--text-secondary);
  font-family:var(--font-display);font-weight:700;font-size:0.875rem;
}
.cc-row-id{display:flex;flex-direction:column;gap:0.125rem;min-width:0;}
.cc-row-id b{
  font-family:var(--font-display);font-size:0.9375rem;font-weight:700;
  letter-spacing:var(--tr-heading);color:var(--text-primary);line-height:1.1;
}
.cc-row-id span{
  font-family:var(--font-sans);font-size:max(0.625rem, var(--fs-floor));font-weight:500;
  color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.cc-row-spark{height:2.25rem;min-width:0;}
.cc-row-spark svg{width:100%;height:100%;display:block;}
/* Empty trend cell (provider has no bars yet, e.g. brand-new listings). */
.cc-spark-none{
  display:flex;align-items:center;height:100%;
  font-family:var(--font-mono);font-size:max(0.625rem, var(--fs-floor));font-weight:500;
  color:var(--text-muted);letter-spacing:0.04em;
}
.cc-spark-line{
  fill:none;stroke-width:1.25;vector-effect:non-scaling-stroke;
  stroke-linejoin:round;stroke-linecap:round;
}
/* Faint dotted open-price reference the hairline reads against (replaces the
   old neon gradient area fill). */
.cc-spark-base{
  stroke:color-mix(in srgb, var(--text-muted) 42%, transparent);
  stroke-width:1;vector-effect:non-scaling-stroke;
  stroke-dasharray:1 3;stroke-linecap:round;
}
/* The draw-on used to be a stroke-dash trick: dasharray 600, offset 600 → 0.
   With vector-effect:non-scaling-stroke (above), dash lengths are measured in
   SCREEN pixels, not viewBox units — so once a row's on-screen path ran past
   600px (which it does at any decent column width) its tail landed in the dash's
   OFF gap and simply stopped being painted. The line looked truncated, and got
   worse the wider the column. Nothing here should depend on guessing a path
   length, so the reveal is a fade instead. */
.cc-board .cc-spark-line{
  animation:cc-spark-in 0.5s var(--ease-out) calc(300ms + var(--i,0) * 70ms) both;
}
@keyframes cc-spark-in{from{opacity:0;}to{opacity:1;}}

/* Three right-aligned numeric columns (change $ · change % · price) — mono,
   tabular, no boxed chip. Price stays neutral + slightly larger/bolder; the two
   change columns carry the up/down/flat colour (never colour alone — the % cell
   also renders a directional chevron). */
.cc-row-delta,.cc-row-pct,.cc-row-price{
  justify-self:end;text-align:right;
  font-family:var(--font-mono);letter-spacing:var(--tr-mono);line-height:1;
  font-variant-numeric:tabular-nums;
}
.cc-row-delta,.cc-row-pct{font-size:0.8125rem;font-weight:600;}
.cc-row-pct{display:inline-flex;align-items:center;justify-content:flex-end;gap:0.25rem;}
.cc-row-price{font-size:1rem;font-weight:700;color:var(--text-primary);}
.cc-row-delta.up,.cc-row-pct.up{color:var(--green);}
.cc-row-delta.down,.cc-row-pct.down{color:var(--red);}
.cc-row-delta.flat,.cc-row-pct.flat{color:var(--text-secondary);}

.cc-sig{
  font-family:var(--font-mono);font-size:max(0.625rem, var(--fs-floor));font-weight:800;
  letter-spacing:0.12em;text-transform:uppercase;
  padding:0.125rem 0.4375rem;border-radius:0.1875rem;
}
.cc-sig.buy {color:var(--green);background:var(--green-dim);}
.cc-sig.sell{color:var(--red);background:var(--red-dim);}
.cc-sig.hold{color:var(--amber);background:color-mix(in srgb, var(--amber) 10%, transparent);}
.cc-sig.none{color:var(--text-xmuted);background:transparent;}
/* Account panels (rail removed 2026-07 — kept for the renderAccount
   helper should a panel come back) */
.cc-panel{
  border:1px solid var(--border-subtle);
  border-radius:0.5rem;
  background:color-mix(in srgb, var(--bg-primary) 45%, transparent);
  padding:0.875rem 1rem;
  cursor:pointer;
  opacity:0;transform:translateY(6px);
  animation:cc-piece-in 600ms var(--ease-out) 320ms forwards;
  transition:background 140ms var(--ease-out), border-color 140ms var(--ease-out);
}
.cc-panel:hover{background:color-mix(in srgb, var(--text-primary) 2.5%, transparent);border-color:var(--border-default);}
.cc-panel:focus-visible{outline:none;border-color:color-mix(in srgb, var(--accent) 40%, transparent);}
.cc-panel-top{display:flex;align-items:baseline;gap:0.625rem;}
.cc-panel-equity{
  font-family:var(--font-mono);font-size:1.375rem;font-weight:700;
  color:var(--text-primary);letter-spacing:var(--tr-mono);line-height:1.1;
  font-variant-numeric:tabular-nums;
}
.cc-panel-pnl{
  font-family:var(--font-mono);font-size:max(0.6875rem, var(--fs-floor));font-weight:700;
  padding:0.125rem 0.375rem;border-radius:0.1875rem;
  font-variant-numeric:tabular-nums;margin-left:auto;
}
.cc-panel-pnl.up{color:var(--green);background:var(--green-dim);}
.cc-panel-pnl.down{color:var(--red);background:var(--red-dim);}
.cc-panel-pnl.flat{color:var(--text-secondary);}
.cc-panel-sub{
  font-family:var(--font-mono);font-size:max(0.625rem, var(--fs-floor));font-weight:500;
  color:var(--text-muted);margin-top:0.25rem;
  font-variant-numeric:tabular-nums;
}
.cc-panel-rows{margin-top:0.625rem;display:flex;flex-direction:column;}
.cc-panel-row{
  display:flex;align-items:center;gap:0.5rem;
  padding:0.375rem 0;
  border-top:1px solid var(--border-subtle);
  font-family:var(--font-mono);font-size:max(0.6875rem, var(--fs-floor));font-weight:600;
  font-variant-numeric:tabular-nums;
}
.cc-panel-row b{color:var(--text-primary);font-weight:700;min-width:3.25rem;}
.cc-panel-row .qty{color:var(--text-muted);font-weight:500;}
.cc-panel-row .pnl{margin-left:auto;}
.cc-panel-row .pnl.up{color:var(--green);}
.cc-panel-row .pnl.down{color:var(--red);}
.cc-panel-empty{
  font-family:var(--font-mono);font-size:max(0.6875rem, var(--fs-floor));color:var(--text-muted);
  padding:0.375rem 0 0.125rem;
}

/* ── 3 · CATALYST TAPE ──────────────────────────────────── */
.cc-activity{
  display:flex;flex-direction:column;gap:0.625rem;
  flex-shrink:0;min-height:0;
  opacity:0;transform:translateY(6px);
  animation:cc-piece-in 600ms var(--ease-out) 480ms forwards;
}
.cc-act-row{
  position:relative;
  display:grid;
  grid-template-columns:3rem 3.75rem minmax(0,1fr) auto auto;
  align-items:center;gap:0.875rem;
  padding:0.5rem 0.75rem;
  border-bottom:1px solid var(--border-subtle);
  cursor:pointer;
  transition:background 120ms var(--ease-out);
}
.cc-act-row:hover{background:var(--bg-row-hover);}
.cc-act-time{
  font-family:var(--font-mono);font-size:max(0.625rem, var(--fs-floor));font-weight:500;
  color:var(--text-muted);font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.cc-act-sym{
  display:inline-flex;align-items:center;justify-content:center;
  font-family:var(--font-mono);font-size:max(0.625rem, var(--fs-floor));font-weight:700;
  letter-spacing:0.04em;color:var(--text-secondary);
  padding:0.125rem 0.375rem;border-radius:0.1875rem;
  background:color-mix(in srgb, var(--text-primary) 4%, transparent);
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--text-primary) 6%, transparent);
}
.cc-act-headline{
  font-family:var(--font-sans);font-size:0.8125rem;font-weight:500;
  color:var(--text-primary);letter-spacing:var(--tr-body);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;
}
.cc-act-row:hover .cc-act-headline{color:var(--on-accent-bright);}
/* Machine-written note on a catalyst row. The AI tag is not decoration: it is
   the only thing separating a model's sentence from the publisher's headline
   on a single-line row, so it always renders even when the note itself
   ellipsises away. */
.cc-act-ai{
  display:inline-flex;align-items:baseline;gap:0.25rem;min-width:0;
  overflow:hidden;
}
.cc-act-ai-tag{
  flex:none;
  font-family:var(--font-mono);font-size:max(0.5625rem, var(--fs-floor));font-weight:700;
  letter-spacing:0.08em;
  /* 55/45 toward --text-primary — see the note on .tt-ai-tag. */
  color:color-mix(in srgb, var(--orchid) 55%, var(--text-primary));
  padding:0.0625rem 0.25rem;border-radius:0.1875rem;
  background:color-mix(in srgb, var(--orchid) 14%, transparent);
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--orchid) 30%, transparent);
}
.cc-act-ai-body{
  font-family:var(--font-sans);font-size:0.75rem;font-weight:400;
  color:var(--text-muted);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;
}
.cc-act-score{
  font-family:var(--font-mono);font-size:max(0.625rem, var(--fs-floor));font-weight:700;
  font-variant-numeric:tabular-nums;white-space:nowrap;
}
.cc-act-score.up{color:var(--green);}
.cc-act-score.down{color:var(--red);}
.cc-act-score.flat{color:var(--text-xmuted);}
.cc-act-src{
  font-family:var(--font-sans);font-size:max(0.625rem, var(--fs-floor));font-weight:500;
  color:var(--text-muted);text-transform:capitalize;
  white-space:nowrap;min-width:5.5rem;text-align:right;
}
.cc-act-empty{
  padding:2rem 1.25rem;text-align:center;
  font-family:var(--font-sans);font-size:0.8125rem;
  color:var(--text-muted);
}

/* The tape scrolls past ~12 rows instead of growing the page. */
.cc-activity-feed{max-height:26.25rem;overflow-y:auto;overscroll-behavior:contain;}

/* Ticker filter chips in the tape header */
.cc-act-filters{display:flex;align-items:center;gap:0.375rem;margin-left:0.5rem;}
.cc-chip{
  display:inline-flex;align-items:center;gap:0.3125rem;
  height:1.375rem;min-height:var(--ctl-floor);padding:0 0.5625rem;
  font-family:var(--font-mono);font-size:max(0.625rem, var(--fs-floor));font-weight:700;
  letter-spacing:0.04em;
  color:var(--text-muted);
  background:transparent;border:none;border-radius:0.1875rem;
  box-shadow:inset 0 0 0 1px var(--border-default);
  cursor:pointer;
  transition:color .14s var(--ease-out), background .14s var(--ease-out), box-shadow .14s var(--ease-out);
}
.cc-chip i{
  font-style:normal;font-size:max(0.5625rem, var(--fs-floor));font-weight:600;
  color:var(--text-xmuted);font-variant-numeric:tabular-nums;
}
.cc-chip:hover{color:var(--text-primary);box-shadow:inset 0 0 0 1px var(--border-strong);}
.cc-chip.on{
  color:var(--accent);background:var(--accent-dim);
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
}
.cc-chip.on i{color:var(--accent);opacity:0.7;}

/* ── Signal engine band (event log + predictor calls, Banneret+) ──── */
.cc-engine-track{
  font-family:var(--font-mono);font-size:max(0.625rem, var(--fs-floor));font-weight:600;
  color:var(--text-secondary);letter-spacing:0.03em;
  margin-left:0.75rem;white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
/* Per-session track-record strip (pre/regular/after-hours/closed, ET) */
.cc-engine-sessions{
  display:flex;flex-wrap:wrap;gap:0.375rem 1rem;
  padding:0.375rem 1rem;
  border-bottom:1px solid var(--border-subtle);
  font-family:var(--font-mono);font-size:max(0.625rem, var(--fs-floor));font-weight:500;
  color:var(--text-muted);letter-spacing:0.03em;
  font-variant-numeric:tabular-nums;
}
.cc-engine-sessions[hidden]{display:none;}
.cc-engine-sessions .cc-sess-label{color:var(--text-xmuted);font-weight:600;}
.cc-engine-sessions .cc-sess-ret.up{color:var(--green);}
.cc-engine-sessions .cc-sess-ret.down{color:var(--red);}
.cc-engine-sessions .cc-sess-fuel{color:var(--amber);}
.cc-engine-calls{
  display:flex;flex-wrap:wrap;gap:0.5rem;
  padding:0.625rem 1rem;
  border-bottom:1px solid var(--border-subtle);
}
.cc-engine-calls[hidden]{display:none;}
.cc-call-card{
  display:inline-flex;align-items:center;gap:0.5rem;
  height:1.75rem;padding:0 0.75rem;
  background:var(--bg-tertiary);border-radius:0.25rem;
  box-shadow:inset 0 0 0 1px var(--border-default);
  font-family:var(--font-sans);font-size:max(0.6875rem, var(--fs-floor));
  white-space:nowrap;
}
.cc-call-dir{font-size:max(0.625rem, var(--fs-floor));}
.cc-call-dir.up{color:var(--green);}
.cc-call-dir.down{color:var(--red);}
.cc-call-sym{
  font-family:var(--font-mono);font-size:0.75rem;font-weight:700;
  color:var(--text-primary);letter-spacing:0.03em;
}
.cc-call-meta{color:var(--text-muted);}
.cc-call-when{color:var(--text-xmuted);font-size:max(0.625rem, var(--fs-floor));}
.cc-call-ret{
  font-family:var(--font-mono);font-size:max(0.6875rem, var(--fs-floor));font-weight:700;
  font-variant-numeric:tabular-nums;
}
.cc-call-ret.up{color:var(--green);}
.cc-call-ret.down{color:var(--red);}
.cc-call-ret.pending{color:var(--text-xmuted);font-weight:500;}
.cc-ev-strength{
  font-family:var(--font-mono);font-size:max(0.5625rem, var(--fs-floor));font-weight:600;
  color:var(--text-xmuted);margin-left:0.25rem;
}

/* ── Top picks (both models' live calls, sorted by probability) ────
   Styles for picks.js's cc-pick-* markup (/watchlist/picks). Restored
   2026-07-26: the ui-finalization merge dropped this block while picks.js
   still emits every class in it. ── */
.cc-picks-list{display:flex;flex-direction:column;}
/* Picks charts row (says-vs-does calibration + graded-outcome histogram). */
.cc-picks-charts{
  display:flex;flex-wrap:wrap;gap:1.25rem;
  padding:0.75rem 1.25rem;border-bottom:1px solid var(--border-subtle);
}
.cc-picks-chart{flex:1 1 18rem;max-width:24rem;}
.cc-picks-chart svg{display:block;width:100%;height:auto;}
/* Recent graded calls — "how did the picks do". */
.cc-graded{padding:0.625rem 1.25rem 0.875rem;border-top:1px solid var(--border-subtle);}
.cc-graded-row{
  display:grid;grid-template-columns:4rem 4.5rem auto 5rem 1fr;
  gap:0.75rem;align-items:center;padding:0.25rem 0;
  font-family:var(--font-mono);font-size:0.6875rem;
  font-variant-numeric:tabular-nums;color:var(--text-muted);
}
.cc-graded-when{color:var(--text-xmuted);font-size:0.625rem;}
.cc-graded-prob{color:var(--text-xmuted);}
.cc-graded-ret{text-align:right;font-weight:700;}
.cc-graded-ret.up,.cc-pick-px .up{color:var(--green);}
.cc-graded-ret.down,.cc-pick-px .down{color:var(--red);}
.cc-graded-more{
  margin-top:0.25rem;font-family:var(--font-mono);font-size:0.625rem;
  color:var(--text-xmuted);
}
.cc-pick-px{
  font-family:var(--font-mono);font-size:0.6875rem;white-space:nowrap;
  color:var(--text-muted);font-variant-numeric:tabular-nums;
}
/* Per-source track-record strip above the picks — the honesty anchor. */
.cc-picks-track{
  display:flex;flex-wrap:wrap;gap:0.375rem 1.25rem;
  padding:0.5rem 1.25rem;border-bottom:1px solid var(--border-subtle);
  font-family:var(--font-mono);font-size:0.6875rem;
  color:var(--text-muted);
}
.cc-picks-track b{color:var(--text-primary);font-weight:600;}
.cc-picks-track-seg{white-space:nowrap;}
.cc-pick-card{border-bottom:1px solid var(--border-subtle);}
.cc-pick-card:last-child{border-bottom:none;}
.cc-pick-card.top5 .cc-pick-rank{color:var(--green);font-weight:700;}
.cc-pick-card.agree .cc-pick-sym{color:var(--accent);}
.cc-pick-row{
  display:flex;align-items:center;gap:0.75rem;
  padding:0.5rem 1rem;cursor:pointer;
  font-family:var(--font-sans);font-size:max(0.6875rem, var(--fs-floor));
}
.cc-pick-row:hover{background:var(--bg-row-hover);}
.cc-pick-rank{
  font-family:var(--font-mono);font-size:max(0.6875rem, var(--fs-floor));width:1.25rem;
  color:var(--text-xmuted);font-variant-numeric:tabular-nums;
}
.cc-pick-sym{
  font-family:var(--font-mono);font-size:0.8125rem;font-weight:700;
  color:var(--text-primary);letter-spacing:0.03em;min-width:4.5rem;
}
.cc-pick-prob{
  font-family:var(--font-mono);font-size:0.75rem;font-weight:700;
  color:var(--green);font-variant-numeric:tabular-nums;min-width:2.5rem;
}
.cc-pick-srcs{display:inline-flex;gap:0.375rem;align-items:center;flex:1;}
.cc-pick-src{
  font-size:max(0.5625rem, var(--fs-floor));letter-spacing:0.04em;text-transform:uppercase;
  padding:0.0625rem 0.375rem;border-radius:0.1875rem;
  box-shadow:inset 0 0 0 1px var(--border-default);color:var(--text-muted);
}
.cc-pick-src.model{color:var(--azure);}
.cc-pick-src.engine{color:var(--violet);}
.cc-pick-agree{
  font-size:max(0.5625rem, var(--fs-floor));font-weight:700;letter-spacing:0.04em;
  text-transform:uppercase;color:var(--green);
}
.cc-pick-when{color:var(--text-xmuted);font-size:max(0.625rem, var(--fs-floor));}
.cc-pick-caret{color:var(--text-xmuted);font-size:max(0.625rem, var(--fs-floor));transition:transform 0.15s;}
.cc-pick-card.open .cc-pick-caret{transform:rotate(180deg);}
.cc-pick-detail{
  padding:0.25rem 1rem 0.75rem 3rem;
  /* display:none by default — an unconditional display:flex would defeat
     the collapse (author display beats the hidden attribute's UA rule) */
  display:none;gap:2rem;flex-wrap:wrap;
  font-size:max(0.6875rem, var(--fs-floor));color:var(--text-muted);
}
.cc-pick-card.open .cc-pick-detail{display:flex;}
.cc-pick-h{
  display:block;font-size:max(0.5625rem, var(--fs-floor));font-weight:700;letter-spacing:0.06em;
  text-transform:uppercase;color:var(--text-xmuted);margin-bottom:0.25rem;
}
.cc-pick-why ul{margin:0;padding-left:1rem;}
.cc-pick-why li{margin:0.125rem 0;}
.cc-pick-why b{color:var(--text-primary);font-weight:600;}
.cc-pick-plan span{display:block;margin:0.125rem 0;}

/* ── Squeeze Watch view (log-only squeeze/SSR/halt surface) ─────────────
   Standalone /watchlist/squeeze view (squeeze-watch.js); shares the
   .pf-scroll shell with Top Picks and the .cc-act-* feed scaffolding
   above for its event list. */
.sq-track{
  display:flex;flex-wrap:wrap;gap:0.375rem 1.5rem;
  padding:0.5rem 0 0.75rem;
  font-family:var(--font-mono);font-size:0.625rem;font-weight:500;
  color:var(--text-muted);letter-spacing:0.03em;
  font-variant-numeric:tabular-nums;
  border-bottom:1px solid var(--border-subtle);
}
.sq-track b{color:var(--text-secondary);font-weight:600;}
.sq-track .up{color:var(--green);}
.sq-track .down{color:var(--red);}
.sq-section-h{
  margin:1rem 0 0.375rem;
  font-size:0.625rem;font-weight:700;letter-spacing:0.06em;
  text-transform:uppercase;color:var(--text-xmuted);
}
.sq-cands{display:flex;flex-direction:column;}
.sq-cand-row{
  display:grid;
  grid-template-columns:4.5rem 2.5rem 2.5rem auto minmax(8rem,auto) minmax(0,1fr) 6.5rem auto;
  gap:0.75rem;align-items:center;
  padding:0.4375rem 0.5rem;
  border-bottom:1px solid var(--border-subtle);
  font-size:0.6875rem;color:var(--text-muted);
}
.sq-cand-row.tracked{cursor:pointer;}
.sq-cand-row.tracked:hover{background:var(--bg-row-hover);}
.sq-cand-sym{
  font-family:var(--font-mono);font-size:0.75rem;font-weight:700;
  color:var(--text-primary);letter-spacing:0.03em;
}
.sq-cand-badges{display:inline-flex;gap:0.375rem;align-items:center;}
.sq-badge{
  font-size:0.5625rem;font-weight:700;letter-spacing:0.04em;
  text-transform:uppercase;
  padding:0.0625rem 0.375rem;border-radius:0.1875rem;
  box-shadow:inset 0 0 0 1px var(--border-default);
}
.sq-badge.sq-ssr{color:var(--cat-3);}
.sq-badge.sq-halt{color:var(--violet);}
.sq-badge.sq-gamma{color:var(--gold);}
.sq-badge.sq-dilution{color:var(--red);}
.sq-cand-cell{
  font-family:var(--font-mono);font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.sq-cand-when{color:var(--text-xmuted);font-size:0.625rem;white-space:nowrap;}
/* Live fuel×ignition score chip — the band sorts by it ("who is lit now"). */
.sq-cand-score{
  font-family:var(--font-mono);font-variant-numeric:tabular-nums;
  font-size:0.6875rem;font-weight:700;white-space:nowrap;
  color:var(--amber);
}
.sq-cand-score.quiet{color:var(--text-xmuted);font-weight:400;}
/* Fuel/ignition component mini-bars (thin marks, shared baseline). */
.sq-bars{display:inline-flex;flex-direction:column;gap:2px;width:2.5rem;}
.sq-bars i{display:block;height:4px;border-radius:2px;}
.sq-bar-fuel{background:var(--amber);}
.sq-bar-ign{background:var(--accent);}
/* 7d borrow-fee sparkline cell. */
.sq-cand-spark{line-height:0;}
.sq-spark{display:block;}
/* Candidate filter chips. */
.sq-filters{display:flex;gap:0.375rem;margin:0.625rem 0 0.375rem;}
.sq-filter-chip{
  font-family:var(--font-mono);font-size:0.625rem;font-weight:700;
  letter-spacing:0.04em;text-transform:uppercase;
  padding:0.125rem 0.5rem;border-radius:0.1875rem;
  background:none;border:none;cursor:pointer;
  color:var(--text-xmuted);
  box-shadow:inset 0 0 0 1px var(--border-default);
}
.sq-filter-chip span{font-weight:400;color:var(--text-xmuted);}
.sq-filter-chip:hover{color:var(--text-primary);}
.sq-filter-chip.on{color:var(--text-primary);background:var(--bg-tertiary);}
/* Fuel map + outcome histogram (inline SVG; text wears text tokens). */
.sq-map-wrap,.sq-hist-wrap{margin:0.75rem 0 0.25rem;}
.sq-map,.sq-hist{display:block;width:100%;height:auto;max-width:46rem;}
.sq-map-tick{
  font-family:var(--font-mono);font-size:9px;fill:var(--text-xmuted);
}
.sq-map-axis{
  font-family:var(--font-mono);font-size:9px;font-weight:700;
  letter-spacing:0.05em;fill:var(--text-xmuted);text-transform:uppercase;
}
.sq-map-lbl{
  font-family:var(--font-mono);font-size:10px;font-weight:700;
  fill:var(--text-secondary);
}
.sq-map-note{
  margin-top:0.25rem;
  font-family:var(--font-mono);font-size:0.625rem;color:var(--text-xmuted);
}
.sq-hist-wrap{flex-basis:100%;}
/* Track-record horizon toggle (1d / 5d / 21d). */
.sq-track-h{display:inline-flex;gap:0.25rem;margin-right:0.625rem;vertical-align:middle;}
.sq-track-hbtn{
  font-family:var(--font-mono);font-size:0.5625rem;font-weight:700;
  letter-spacing:0.04em;text-transform:uppercase;
  padding:0.0625rem 0.375rem;border-radius:0.1875rem;
  background:none;border:none;cursor:pointer;
  color:var(--text-xmuted);
  box-shadow:inset 0 0 0 1px var(--border-default);
}
.sq-track-hbtn:hover{color:var(--text-primary);}
.sq-track-hbtn.on{color:var(--text-primary);background:var(--bg-tertiary);}
.sq-events{margin-bottom:0.75rem;}
/* Cohort scoreboard text (the "did the screen work" chart). */
.sq-cohort-lbl{
  font-family:var(--font-mono);font-size:10px;fill:var(--text-secondary);
}
.sq-cohort-n{
  font-family:var(--font-mono);font-size:9px;fill:var(--text-xmuted);
}
/* "Did the calls work?" scoreboard v2 (fed by /api/signals/squeeze-eval).
   Verdict tiles + four small charts; tail = --green, crash = --red (the
   genuine up/down pair), everything textual in text tokens. */
.sq-eval{
  padding:0.5rem 0 0.75rem;
  border-bottom:1px solid var(--border-subtle);
}
.sq-eval-head{display:flex;align-items:center;gap:0.625rem;flex-wrap:wrap;}
.sq-eval-head .sq-section-h{margin:0;}
.sq-eval-win{
  font-family:var(--font-mono);font-size:0.625rem;color:var(--text-xmuted);
  font-variant-numeric:tabular-nums;
}
.sq-eval-tiles{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0.5rem;
  margin:0.625rem 0 0.25rem;max-width:46rem;
}
.sq-eval-tile{
  padding:0.5rem 0.625rem;border-radius:0.375rem;
  background:var(--bg-tertiary);
  box-shadow:inset 0 0 0 1px var(--border-subtle);
  font-family:var(--font-mono);font-variant-numeric:tabular-nums;min-width:0;
}
.sq-eval-tile-k{
  font-size:0.5625rem;font-weight:700;letter-spacing:0.06em;
  text-transform:uppercase;color:var(--text-xmuted);
}
.sq-eval-tile-v{
  margin-top:0.125rem;font-size:1.125rem;font-weight:700;
  color:var(--text-primary);line-height:1.2;
}
.sq-eval-tile-v.good{color:var(--green);}
.sq-eval-tile-v.bad{color:var(--red);}
.sq-eval-tile-s{
  margin-top:0.125rem;font-size:0.625rem;line-height:1.45;
  color:var(--text-muted);overflow-wrap:anywhere;
}
.sq-eval-tile-s .good{color:var(--green);}
.sq-eval-tile-s .bad{color:var(--red);}
.sq-eval-legend{
  margin:0.25rem 0;
  font-family:var(--font-mono);font-size:0.625rem;color:var(--text-xmuted);
}
.sq-eval-legend i{
  display:inline-block;width:0.625rem;height:0.375rem;border-radius:1px;
  margin:0 0.3125rem 0 0.875rem;vertical-align:middle;
}
.sq-eval-legend i:first-child{margin-left:0;}
.sq-eval-legend i.tail{background:var(--green);}
.sq-eval-legend i.crash{background:var(--red);}
.sq-eval-legend i.base{height:0;width:0.75rem;border-top:1px dashed var(--text-xmuted);border-radius:0;}
.sq-eval-svg{max-width:46rem;}
.sq-eval-tbl{
  margin-top:0.25rem;max-width:46rem;
  font-family:var(--font-mono);font-size:0.625rem;color:var(--text-muted);
  font-variant-numeric:tabular-nums;
}
.sq-eval-tbl summary{cursor:pointer;color:var(--text-xmuted);}
.sq-eval-tbl summary:hover{color:var(--text-primary);}
.sq-eval-tbl table{border-collapse:collapse;margin-top:0.25rem;}
.sq-eval-tbl th,.sq-eval-tbl td{
  padding:0.125rem 0.75rem 0.125rem 0;text-align:right;white-space:nowrap;
}
.sq-eval-tbl th:first-child,.sq-eval-tbl td:first-child{text-align:left;}
.sq-eval-tbl th{
  font-weight:700;color:var(--text-xmuted);letter-spacing:0.04em;
  text-transform:uppercase;
}
.sq-eval-tbl tbody tr{border-top:1px solid var(--border-subtle);}
/* Candidate detail drawer (opened by a row click; fetched on expand). */
.sq-detail{
  padding:0.625rem 0.875rem 0.875rem;
  background:var(--bg-tertiary);
  border-top:1px solid var(--border-subtle);
  border-bottom:1px solid var(--border-subtle);
}
.sq-detail.hidden{display:none;}
.sq-detail-head{
  display:flex;align-items:center;gap:0.75rem;flex-wrap:wrap;
  margin-bottom:0.375rem;
  font-family:var(--font-mono);font-size:0.6875rem;
  color:var(--text-muted);font-variant-numeric:tabular-nums;
}
.sq-detail-head b{color:var(--text-primary);font-size:0.75rem;letter-spacing:0.03em;}
.sq-detail-facts{flex:1 1 auto;min-width:0;}
.sq-detail-open{
  font-family:var(--font-mono);font-size:0.625rem;font-weight:700;
  letter-spacing:0.04em;text-transform:uppercase;
  padding:0.125rem 0.5rem;border-radius:0.1875rem;
  background:none;border:none;cursor:pointer;
  color:var(--accent);
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}
.sq-detail-open:hover{background:color-mix(in srgb, var(--accent) 10%, transparent);}
.sq-detail-chart{display:block;width:100%;height:auto;max-width:42rem;}
.sq-line-fee{stroke:var(--amber);}
.sq-line-avail{stroke:var(--text-muted);}
.sq-detail-ev{
  display:grid;grid-template-columns:4rem 1fr auto;gap:0.75rem;
  padding:0.1875rem 0;align-items:center;
  font-family:var(--font-mono);font-size:0.6875rem;
  color:var(--text-muted);font-variant-numeric:tabular-nums;
}
.sq-detail-ev .up{color:var(--green);}
.sq-detail-ev .down{color:var(--red);}
.sq-detail-ev .flat{color:var(--text-xmuted);}
.sq-detail-ev-t{color:var(--text-xmuted);font-size:0.625rem;}
/* Narrow widths: drop the shape columns (spark + component bars), keep the
   numbers — the row grid loses those two tracks so nothing overflows. */
@media (max-width: 900px){
  .sq-cand-row{grid-template-columns:4.5rem 2.5rem auto minmax(8rem,auto) minmax(0,1fr) auto;}
  .sq-cand-spark,.sq-bars{display:none;}
  .sq-eval-tiles{grid-template-columns:repeat(2,minmax(0,1fr));}
}

@keyframes cc-piece-in{to{opacity:1;transform:translateY(0);}}

/* ── Responsive ─────────────────────────────────────────── */
.cc-mkt-wrap{min-width:0;}

/* ── Command-center 4-row panel grid ──────────────────────────────────────
   Row 1 movers (full) · Row 2 watchlist | heatmap · Row 3 sectors | breadth
   · Row 4 risk/return (full). Grid items stretch to their row height, so the
   heatmap fills the taller watchlist column. ─────────────────────────────────*/
.cc-layout{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  /* Dense-dashboard gutter (12px @14px root). 1.5rem read as editorial next
     to TradingView/exchange panels (4-12px); the titles moving INSIDE the
     cards is what pays for the tightening — see the flat-cards block. */
  gap:0.875rem;
  align-items:stretch;
}
@media (max-width:900px){
  .cc-layout{ grid-template-columns:1fr; }
}

/* Each card fills the FULL height allocated to its grid row. The grid stretches
   every item to the row height; the panel's card body then flexes to fill it,
   so a card's background spans its whole row and any spare space sits INSIDE
   the card (e.g. a 3-row watchlist still shows a full-height card). This is
   background only — the content is not stretched. */
/* Sequential panel entrance (wallet parity): each grid child rises in reading
   order via its --ci slot (app.html), same curve + cadence as the wallet's
   .wc-rise (560ms, 120ms base + 70ms/panel). Backwards fill ONLY — a forwards
   fill would pin transform and kill the card hover lift (the .cc-row lesson).
   Replay comes free: #command-center cycles display:none on every view entry
   (hide()/revealRoot()), which restarts CSS animations; the silent 30s refresh
   repaints inner hosts only, so the shells never re-animate there. */
/* :not(.wc-rise): the wallet reuses .cc-layout and runs its own gated cascade
   (.wc-anim .wc-rise) — without the guard its silent 30s re-render (which has
   no .wc-anim) would fall through to this rule and re-animate every panel. */
.cc-layout > *:not(.wc-rise){
  /* 90ms/panel (vs the wallet's 70ms): the watchlist's heavy inner entrances
     (donut sweeps, tile pops) need a slightly wider gap to read as sequential
     — 140ms felt too slow (owner), 90ms keeps the sweep brisk. */
  animation:cc-rise 480ms var(--ease-out) calc(80ms + var(--ci,0) * 90ms) backwards;
}
@keyframes cc-rise{from{opacity:0;transform:translateY(8px);}}

.cc-layout > .cc-section{ height:100%; }
.cc-layout > .cc-xgraph:not(:empty){ display:flex; min-width:0; }
.cc-layout > .cc-xgraph > .cc-section{ flex:1 1 auto; width:100%; min-width:0; height:100%; }
.cc-layout .cc-board,
.cc-layout .cc-sector-body,
.cc-layout .cc-mkt-body,
.cc-layout .cc-tm-body,
.cc-layout .brd-card{ flex:1 1 auto; min-height:0; }
.cc-layout .rr-body,
.cc-layout .brd-body{ display:flex; flex-direction:column; flex:1 1 auto; min-height:0; }
/* Taller floor than the other cards: the scatter needs vertical room for its
   above-dot ticker labels to breathe (owner: "make the row bigger in Y"). */
.cc-layout .rr-card{ flex:1 1 auto; min-height:20rem; }

/* The Watchlist | Heatmap row: NO fixed floor here. The watchlist board's
   row cap (below) is the row's single height authority; the heatmap flexes to
   match it exactly. A fixed .cc-r2 min-height taller than the cap made the
   heatmap outgrow the board card (owner: they must always match). */
/* Row 2 height budget: the board shows a fixed number of stock rows and
   scrolls the rest, so a long book can't blow up the row (the heatmap
   stretches to match whatever height the board settles at). 6 rows on a
   laptop, 7 on a big desktop monitor. The math mirrors .cc-row: 3.75rem row
   height + 1px border between rows. */
.cc-layout{ --cc-board-rows:6; }
@media (min-width:1800px){ .cc-layout{ --cc-board-rows:7; } }
.cc-layout .cc-board{
  max-height:calc(var(--cc-board-rows) * 3.75rem + (var(--cc-board-rows) - 1) * 1px);
  overflow-y:auto;
  overflow-x:hidden;   /* the hover scale pokes ~0.5% past each side — clip it */
  scrollbar-width:thin;
  scrollbar-color:color-mix(in srgb, var(--accent) 22%, transparent) transparent;
}
/* Rows keep their designed height and the card scrolls, rather than squishing
   to fit the bounded row. */
.cc-layout .cc-board .cc-row{ flex:none; }
/* Third-row donuts (Sectors + Market breadth) trimmed a little so that row
   stays compact while row 2 gets a bit more height. */
.cc-layout .cc-sector-donut,
.cc-layout .brd-donut{ width:clamp(10rem, 60%, 20rem); }

/* Flat cards: solid fill, no elevation drop shadow (just a hairline ring).
   The scrolling page grid shows through the gaps between panels.
   THE CARD IS THE SECTION SHELL — the title row renders INSIDE it as a card
   header (dense-dashboard standard: TradingView/exchange panels carry their
   label in-card; the old outside labels cost ~25px of vertical rhythm per
   row). Scoped to .cc-layout so the same section markup rendered anywhere
   else keeps the outside-label style. Wallet parity is free: the wc-layout
   panels are .cc-sections in the same grid (12-trade-wallet.css strips the
   inner .wc-card chrome to match). */
.cc-band,
.cc-layout .cc-section{
  background:var(--bg-tertiary);   /* fully opaque (was 90% — owner call 2026-07-22) */
  box-shadow:inset 0 0 0 1px var(--border-default);
}
.cc-layout .cc-section{
  gap:0;                       /* the head's own padding sets the rhythm now */
  border-radius:var(--radius-lg);
  overflow:hidden;             /* clip board scroll + tile pops to the card radius */
}
/* In-card header: title (+ tabs/controls) on a hairline shelf. */
.cc-layout .cc-section-head{
  flex:none;
  padding:0.6875rem 1.25rem 0.5625rem;
  border-bottom:1px solid var(--border-subtle);
}
/* Board heads align their title/tabs with the row grid underneath
   (rows pad 0 1rem 0 0.875rem), not the donut-card 1.25rem inset. */
.cc-layout .cc-board-wrap .cc-section-head,
.cc-layout .wc-board-wrap .cc-section-head{padding-left:0.875rem;padding-right:1rem;}
/* The bodies stop being cards of their own — chrome lives on the shell. */
.cc-layout .cc-board,
.cc-layout .cc-tm-body,
.cc-layout .cc-sector-body,
.cc-layout .cc-mkt-body,
.cc-layout .brd-card,
.cc-layout .rr-card{
  background:transparent;
  box-shadow:none;
  border-radius:0;
}

/* ── Watchlist heatmap — market-cap treemap (size = mkt cap, colour = %chg) ── */
.cc-tm-wrap{min-width:0;}
.cc-tm-controls{display:inline-flex;align-items:center;gap:0.375rem;}
.cc-tm-size{
  font-family:var(--font-mono);font-size:max(0.625rem, var(--fs-floor));font-weight:700;letter-spacing:0.03em;
  color:var(--text-muted);background:transparent;border:none;border-radius:0.1875rem;
  height:1.375rem;min-height:var(--ctl-floor);padding:0 0.5625rem;cursor:pointer;
  box-shadow:inset 0 0 0 1px var(--border-default);
  transition:color .14s var(--ease-out), background .14s var(--ease-out), box-shadow .14s var(--ease-out);
}
.cc-tm-size:hover{color:var(--text-primary);box-shadow:inset 0 0 0 1px var(--border-strong);}
.cc-tm-size.on{
  color:var(--accent);background:var(--accent-dim);
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
}
.cc-tm-body{
  position:relative;width:100%;
  flex:1 1 auto;min-height:7.5rem;   /* fills the row beside the watchlist; the
     board's row cap is the height authority, so keep this floor low enough
     that even a short book stays matched (only guards the empty state) */
  border-radius:var(--radius-lg);overflow:hidden;
  background:color-mix(in srgb, var(--bg-tertiary) 90%, transparent);
  box-shadow:inset 0 0 0 1px var(--border-default), var(--shadow-pop);
}
.cc-tm-tile{
  position:absolute;
  display:flex;flex-direction:column;justify-content:flex-end;gap:0.0625rem;
  padding:0.4375rem 0.5rem;overflow:hidden;cursor:pointer;
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--bg-primary) 24%, transparent);
  transition:box-shadow 140ms var(--ease-out), filter 140ms var(--ease-out),
             transform 140ms var(--ease-out);
}
/* First-paint entrance: tiles pop in one by one in RANDOM order (JS shuffles
   and hands each tile its slot via --tm-pop-delay). Each pop is the hover move
   writ large — grow past rest size, settle back — plus a fade and a blur that
   snaps to focus. Ends AT the natural state, backwards fill ONLY: a forwards
   fill would pin transform and kill the hover lift (same lesson as .cc-row). */
/* Entrance = a hover cycle, verbatim: 0→50% is hover-enter (140ms ease-out to
   scale 1.03 + brightness 1.08 + --shadow-pop), 50→100% is hover-leave (140ms
   ease-out back) — per-keyframe timing functions make each half match the
   hover transition exactly. Opacity fades in during the rise. 100% omits
   box-shadow on purpose so it eases back to the resting inset ring (implicit
   underlying value). Backwards fill only — forwards would pin transform and
   kill the real hover. */
@keyframes cc-tm-pop{
  0%  {opacity:0;transform:scale(1);filter:brightness(1);
       box-shadow:0 0 0 transparent;animation-timing-function:var(--ease-out);}
  50% {opacity:1;transform:scale(1.03);filter:brightness(1.08);
       box-shadow:var(--shadow-pop);animation-timing-function:var(--ease-out);}
  100%{opacity:1;transform:scale(1);filter:none;}
}
.cc-tm-tile.pop-in{
  animation:cc-tm-pop 280ms linear var(--tm-pop-delay, 0ms) backwards;
}
/* Hover lift: same "answers the cursor" feel as .cc-row — a touch of scale plus
   a real drop shadow so the tile rides above its neighbours. Edge tiles clip
   against the body's overflow:hidden, which keeps the rounded frame clean. */
.cc-tm-tile:hover{
  box-shadow:var(--shadow-pop);   /* ring dropped on hover — lift + brightness carry it */
  filter:brightness(1.08);
  transform:scale(1.03);
  z-index:2;
}
.cc-tm-tile:focus-visible{outline:1px solid var(--accent);outline-offset:-1px;z-index:3;}
/* Solo tile (a single holding fills the whole panel): the hover/entrance
   scale would push its bottom-left labels past the panel clip — no room to
   grow into, so lift with light only. */
.cc-tm-tile.solo:hover{transform:none;}
.cc-tm-tile.solo.pop-in{animation-name:cc-tm-pop-flat;}
@keyframes cc-tm-pop-flat{
  0%  {opacity:0;filter:brightness(1);}
  50% {opacity:1;filter:brightness(1.08);}
  100%{opacity:1;filter:none;}
}
.cc-tm-sym{
  font-family:var(--font-mono);font-size:0.8125rem;font-weight:700;letter-spacing:0.02em;
  color:var(--text-primary);line-height:1;
  text-shadow:0 1px 2px color-mix(in srgb, var(--bg-primary) 55%, transparent);
}
.cc-tm-pct{
  font-family:var(--font-mono);font-size:max(0.6875rem, var(--fs-floor));font-weight:600;
  font-variant-numeric:tabular-nums;color:var(--text-secondary);line-height:1;
  text-shadow:0 1px 2px color-mix(in srgb, var(--bg-primary) 55%, transparent);
}
/* Market cap (what the tile's AREA encodes) — hidden until hover, then fades
   in centered. pointer-events:none so it never steals the tile's click. */
.cc-tm-cap{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  font-family:var(--font-mono);font-size:0.75rem;font-weight:700;
  font-variant-numeric:tabular-nums;color:var(--text-primary);
  text-shadow:0 1px 3px color-mix(in srgb, var(--bg-primary) 65%, transparent);
  opacity:0;transform:translateY(0.375rem);pointer-events:none;
  /* Leave fast and delay-free so sweeping across tiles never strobes labels. */
  transition:opacity 120ms var(--ease-out), transform 120ms var(--ease-out);
}
.cc-tm-tile:hover .cc-tm-cap,
.cc-tm-tile:focus-visible .cc-tm-cap{
  opacity:1;transform:none;
  /* Appear as a slow drift up + fade, held back a beat — calm, not a pop. */
  transition:opacity 300ms cubic-bezier(0.22,1,0.36,1) 90ms,
             transform 300ms cubic-bezier(0.22,1,0.36,1) 90ms;
}
.cc-tm-tile.tiny{padding:0.25rem 0.3125rem;justify-content:center;gap:0;}
.cc-tm-tile.tiny .cc-tm-pct{display:none;}
.cc-tm-tile.tiny .cc-tm-sym{font-size:max(0.625rem, var(--fs-floor));}
.cc-tm-tile.tiny .cc-tm-cap{display:none;}   /* no room — title tooltip covers it */
/* Single-column regime (.cc-layout collapses at 900px): the board no longer
   sits beside the heatmap to lend it a height, so the treemap needs its own —
   without this it rendered 0-tall from 641-900px (longstanding 1-col bug). */
@media (max-width:900px){ .cc-tm-body{height:13rem;} }

/* ── Extra watchlist graphs (research picks) — stacked cards below the heatmap.
   Each module (static/js/graphs/*.js + static/css/graphs/*.css) paints its own
   #cc-<id> container; an empty container (module hid itself / not yet painted)
   collapses so it leaves no gap. ─────────────────────────────────────────────*/
.cc-xgraph{min-width:0;}
.cc-xgraph:empty{display:none;}
.cc-mkt-body,.cc-sector-body{
  padding:0.875rem 1.25rem 1.125rem;
  /* Sectors + Movers each become their own 95%-opaque card, matching the
     watchlist board and the top band. */
  border-radius:var(--radius-lg);
  background:color-mix(in srgb, var(--bg-tertiary) 90%, transparent);
  box-shadow:inset 0 0 0 1px var(--border-default), var(--shadow-pop);
}
/* Diverging bar rows (movers + sentiment) */
.cc-mkt-bars{display:flex;flex-direction:column;gap:0.5rem;}
/* First-load entrance (staggered top-down via --i): the row fades in (opacity
   only, so hover/transform stay untouched) while its fill grows out of the
   centre zero line. `backwards` holds the from{} during the stagger delay and
   leaves NO persisted style after — never a forwards fill. The 30s refresh adds
   .no-fx on the container to suppress both (owner rule: silent repaints). */
/* Row delay = the host panel's cascade slot (--ci, inherited from the
   .cc-layout child) + a beat into its rise + the per-row stagger, so the bars
   grow while their panel is visible instead of finishing behind its fade. */
.cc-mkt-row{display:grid;grid-template-columns:3.25rem minmax(0,1fr) 4rem;align-items:center;gap:0.625rem;
  animation:cc-mv-in 300ms var(--ease-out) calc(80ms + var(--ci,0) * 90ms + 120ms + var(--i,0) * 45ms) backwards;}
.cc-mkt-sym{font-family:var(--font-display);font-size:0.75rem;font-weight:700;color:var(--text-primary);letter-spacing:0.02em;}
.cc-mkt-track{position:relative;height:0.375rem;border-radius:0.1875rem;background:var(--bg-tertiary);overflow:hidden;}
.cc-mkt-track::before{content:"";position:absolute;left:50%;top:0;bottom:0;width:1px;background:var(--border-default);}
.cc-mkt-fill{position:absolute;top:0;bottom:0;border-radius:0.125rem;
  animation:cc-mv-grow 420ms var(--ease-out) calc(80ms + var(--ci,0) * 90ms + 120ms + var(--i,0) * 45ms) backwards;}
.cc-mkt-fill.up{background:var(--green);transform-origin:left;}     /* grows rightward from the zero line */
.cc-mkt-fill.down{background:var(--red);transform-origin:right;}    /* grows leftward from the zero line */
.cc-mkt-val{font-family:var(--font-mono);font-size:0.75rem;text-align:right;}
.cc-mkt-val.up{color:var(--green);}
.cc-mkt-val.down{color:var(--red);}
.cc-mkt-bars.no-fx .cc-mkt-row,
.cc-mkt-bars.no-fx .cc-mkt-fill{animation:none;}
@keyframes cc-mv-grow{from{transform:scaleX(0);}}
@keyframes cc-mv-in{from{opacity:0;}}
/* Sector donut + legend — donut on the LEFT (large), legend filling the RIGHT. */
.cc-sector-body{display:flex;flex-direction:row;align-items:center;gap:1.5rem;}
.cc-sector-donut{flex:none;width:clamp(11rem, 66%, 22rem);height:auto;}
.cc-sector-leg{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:0;font-size:0.8125rem;}
.cc-sector-leg .dot{width:8px;height:8px;border-radius:50%;flex:none;}
.cc-sector-leg .k{color:var(--text-secondary);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.cc-sector-leg .v{font-family:var(--font-mono);color:var(--text-primary);}
/* Click-to-highlight: clicking a slice or a legend row selects that sector and
   dims the rest (JS toggles .has-sel on the body + .sel on the chosen pair).
   Rows are inset click targets that fill the legend column (donut sits to the
   left), so hovering or selecting a row highlights the whole rectangle. */
.cc-sector-donut circle[data-seg]{
  cursor:pointer;
  --ring-c:314.159;   /* 2·π·50 — the full ring circumference (r is always 50) */
  transition:opacity .15s ease, stroke-width .2s var(--ease-out);
}
/* Page-load ring construction (the clockwise pen-stroke) is now JS-driven — a
   frame-capped requestAnimationFrame loop in command-center.js (_secSweepTick)
   writes each slice's stroke-dasharray per frame. CSS dash animations were
   wall-clock based and jumped ahead under cold-load main-thread jank; the JS
   driver caps each frame's advance so the sweep pauses and continues instead. */
/* Legend fades in softly under the ring draw — OPACITY ONLY, backwards fill so
   it settles at the stylesheet opacity and never pins the per-row focus dimming.
   Only present on the first-load draw (JS adds .cc-leg-enter inside the window);
   a negative-ish start is unnecessary here — a late add just fades from ~here. */
@keyframes cc-leg-fade{from{opacity:0;}}
.cc-sector-leg.cc-leg-enter{animation:cc-leg-fade 300ms var(--ease-out) backwards;}
/* Selected slice grows IN PLACE — the stroke thickens around its own
   centreline (r stays 50, dash lengths untouched), no outward displacement.
   Outer edge 50 + 17/2 = 58.5 < 65, safely inside the viewBox. */
.cc-sector-body.has-sel .cc-sector-donut circle[data-seg].sel{stroke-width:17;}
.cc-sector-leg .r{display:flex;align-items:center;gap:0.5rem;cursor:pointer;
  padding:0.375rem 0.5rem;margin:0;border-radius:0.375rem;
  transition:opacity .15s ease,background .15s ease;}
.cc-sector-leg .r:hover{background:color-mix(in srgb, var(--text-primary) 6%, transparent);}
.cc-sector-body.has-sel .cc-sector-donut circle[data-seg]{opacity:0.22;}
.cc-sector-body.has-sel .cc-sector-donut circle[data-seg].sel{opacity:1;}
.cc-sector-body.has-sel .cc-sector-leg .r{opacity:0.4;}
/* Selected row: a clearly-visible SOLID accent fill across the whole rectangle
   (a faint wash read as "not highlighted"; a fading gradient would leave the
   right half empty), so the click obviously lands. */
.cc-sector-body.has-sel .cc-sector-leg .r.sel{
  opacity:1;
  background:color-mix(in srgb, var(--accent) 16%, transparent);
}
/* ── Sector focus: hover or click a sector to collapse the OTHER legend rows
   away and glide a list of that sector's stocks open underneath the focused
   row. The collapse/expand uses the grid-template-rows 0fr↔1fr trick so it stays
   smooth at unknown member-list heights with zero JS height measurement. Stretch
   the legend to the donut's height and let it scroll rather than growing the card. */
.cc-sector-body{align-items:stretch;}
.cc-sector-donut{align-self:center;}
.cc-sector-leg{
  min-height:0;overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color:var(--border-default) transparent;
}
/* Flexible spacers keep the legend vertically CENTRED in both states — the
   focused block drifts gently as its siblings collapse instead of riding to
   the top. Zero flex-basis means they vanish when content overflows, so a
   tall member list still top-aligns and scrolls. */
.cc-sector-leg .sec-sp{flex:1 1 0;min-height:0;}
.cc-sector-leg::-webkit-scrollbar{width:0.375rem;}
.cc-sector-leg::-webkit-scrollbar-thumb{background:var(--border-default);border-radius:0.25rem;}
.cc-sector-leg:hover::-webkit-scrollbar-thumb{background:color-mix(in srgb, var(--accent) 28%, transparent);}
/* Each sector = a collapsible grid block (header row + hidden member list). */
.cc-sector-leg .sec-item{
  display:grid;grid-template-rows:1fr;
  transition:grid-template-rows .22s var(--ease-out), opacity .16s ease;
}
.cc-sector-leg .sec-item > .sec-item-inner{overflow:hidden;min-height:0;}
.cc-sector-leg.focused .sec-item{grid-template-rows:0fr;opacity:0;pointer-events:none;}
.cc-sector-leg.focused .sec-item.focus{grid-template-rows:1fr;opacity:1;pointer-events:auto;}
/* Member list — collapsed by default, expands only under the focused sector.
   The inner wrapper carries a small upward offset that settles to 0 as the
   list opens, so the stocks glide in with the row instead of popping. */
.cc-sector-leg .sec-members{
  display:grid;grid-template-rows:0fr;opacity:0;
  transition:grid-template-rows .22s var(--ease-out), opacity .18s ease;
}
.cc-sector-leg .sec-members > .sec-members-inner{
  overflow:hidden;min-height:0;padding-left:1rem;
  transform:translateY(-0.375rem);
  transition:transform .22s var(--ease-out);
}
.cc-sector-leg.focused .sec-item.focus .sec-members{grid-template-rows:1fr;opacity:1;}
.cc-sector-leg.focused .sec-item.focus .sec-members > .sec-members-inner{transform:translateY(0);}
.cc-sector-leg .sec-mem{
  display:flex;align-items:center;gap:0.5rem;cursor:pointer;
  padding:0.25rem 0.5rem;border-radius:0.3125rem;
  transition:background .15s ease;
}
/* Compact company logo in each member row — same /api/logo plate treatment as
   the watchlist rows (rowLogo/wireLogoFallbacks), scaled to the small line. */
.cc-sector-leg .sec-mem .cc-row-logo{
  width:1.25rem;height:1.25rem;border-radius:0.3125rem;
  box-shadow:0 0 0 1px color-mix(in srgb, var(--text-primary) 14%, transparent);
}
.cc-sector-leg .sec-mem .cc-row-logo.fallback{font-size:max(0.5625rem, var(--fs-floor));}
.cc-sector-leg .sec-mem:hover{background:color-mix(in srgb, var(--text-primary) 6%, transparent);}
.cc-sector-leg .sec-mem .sm-sym{font-family:var(--font-mono);font-size:0.75rem;font-weight:600;color:var(--text-primary);flex:none;}
.cc-sector-leg .sec-mem .sm-name{font-size:max(0.6875rem, var(--fs-floor));color:var(--text-muted);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
/* Suppress the open/close animation for one reflow while a pinned sector is
   re-applied in its end-state after the board's 30s redraw. */
.cc-sector-body.cc-no-anim .sec-item,
.cc-sector-body.cc-no-anim .sec-members,
.cc-sector-body.cc-no-anim .sec-members > .sec-members-inner,
.cc-sector-body.cc-no-anim .sec-sp,
.cc-sector-body.cc-no-anim .cc-sector-donut circle[data-seg]{transition:none;}

.cc-signals-wrap{min-width:0;}
.cc-signals-head{flex-wrap:wrap;gap:0.5rem 0.625rem;}
.cc-signals-select{
  flex:1 1 7rem;min-width:0;max-width:11rem;
  font-family:var(--font-sans);font-size:0.75rem;font-weight:600;
  color:var(--text-primary);background:color-mix(in srgb, var(--bg-intel) 60%, transparent);
  border:1px solid var(--border-subtle);border-radius:0.3125rem;
  padding:0.25rem 0.4375rem;cursor:pointer;
}
.cc-signals-select:focus-visible{outline:none;border-color:color-mix(in srgb, var(--accent) 40%, transparent);}
.cc-signals-actions{display:flex;gap:0.375rem;flex:none;}
.cc-signals-btn{
  font-family:var(--font-mono);font-size:max(0.625rem, var(--fs-floor));font-weight:700;
  letter-spacing:0.06em;text-transform:uppercase;
  color:var(--text-secondary);background:transparent;
  border:1px solid var(--border-subtle);border-radius:0.3125rem;
  padding:0.25rem 0.5rem;cursor:pointer;
  transition:background 140ms var(--ease-out),border-color 140ms var(--ease-out),color 140ms var(--ease-out);
}
.cc-signals-btn:hover{background:color-mix(in srgb, var(--text-primary) 4%, transparent);border-color:var(--border-default);color:var(--text-primary);}
.cc-signals-btn:focus-visible{outline:none;border-color:color-mix(in srgb, var(--accent) 40%, transparent);}

.cc-signals-body{display:flex;flex-direction:column;gap:0.75rem;min-width:0;}
.cc-signals-board{max-height:28rem;overflow-y:auto;}

/* Pinned shortlist — horizontal chips above the live list */
.cc-signals-pins{display:flex;flex-wrap:wrap;gap:0.5rem;}
.cc-pin{
  display:inline-flex;align-items:center;gap:0.4375rem;
  padding:0.3125rem 0.375rem 0.3125rem 0.625rem;
  border:1px solid var(--border-subtle);border-radius:1rem;
  background:color-mix(in srgb, var(--bg-intel) 55%, transparent);font-family:var(--font-mono);
}
.cc-pin.out{opacity:0.55;}
.cc-pin b{font-size:0.8125rem;font-weight:800;color:var(--text-primary);letter-spacing:0.03em;}
.cc-pin-chg{font-size:max(0.6875rem, var(--fs-floor));font-weight:700;font-variant-numeric:tabular-nums;}
.cc-pin-chg.up{color:var(--green);}.cc-pin-chg.down{color:var(--red);}.cc-pin-chg.flat{color:var(--text-muted);}
.cc-pin-rank{font-size:max(0.625rem, var(--fs-floor));font-weight:700;color:var(--accent);}
.cc-pin-x{
  display:inline-flex;align-items:center;justify-content:center;
  width:1.125rem;height:1.125rem;min-width:var(--ctl-floor);min-height:var(--ctl-floor);border:none;border-radius:50%;
  background:color-mix(in srgb, var(--text-primary) 6%, transparent);color:var(--text-muted);
  font-size:0.875rem;line-height:1;cursor:pointer;padding:0;
}
.cc-pin-x:hover{background:var(--red-dim);color:var(--red);}

/* Live result rows — rank | id | price/chg | pin toggle */
.cc-sig-row{
  position:relative;display:grid;
  grid-template-columns:1.75rem minmax(0,1fr) auto 2.25rem;
  align-items:center;gap:0.75rem;
  height:3.5rem;padding:0 0.75rem;cursor:pointer;
  transition:background 140ms var(--ease-out);
}
.cc-sig-row + .cc-sig-row{border-top:1px solid var(--border-subtle);}
.cc-sig-row:hover{background:var(--bg-row-hover);}
.cc-sig-rank{
  font-family:var(--font-mono);font-size:max(0.6875rem, var(--fs-floor));font-weight:700;
  color:var(--text-xmuted);font-variant-numeric:tabular-nums;
}
.cc-sig-id{display:flex;flex-direction:column;gap:0.125rem;min-width:0;}
.cc-sig-id b{
  font-family:var(--font-display);font-size:0.9375rem;font-weight:700;
  color:var(--text-primary);letter-spacing:var(--tr-heading);line-height:1.1;
}
.cc-sig-id span{
  font-family:var(--font-sans);font-size:max(0.625rem, var(--fs-floor));font-weight:500;color:var(--text-muted);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.cc-sig-quote{display:flex;flex-direction:column;align-items:flex-end;gap:0.1875rem;}
.cc-sig-price{
  font-family:var(--font-mono);font-size:0.9375rem;font-weight:700;
  color:var(--text-primary);font-variant-numeric:tabular-nums;line-height:1;
}
.cc-sig-chg{font-family:var(--font-mono);font-size:max(0.6875rem, var(--fs-floor));font-weight:700;font-variant-numeric:tabular-nums;}
.cc-sig-chg.up{color:var(--green);}.cc-sig-chg.down{color:var(--red);}.cc-sig-chg.flat{color:var(--text-muted);}
.cc-sig-pin{
  display:inline-flex;align-items:center;justify-content:center;
  width:2.25rem;height:2.25rem;border:none;background:transparent;
  color:var(--text-secondary);cursor:pointer;font-size:1.375rem;line-height:1;padding:0;
  border-radius:0.3125rem;transition:color 140ms var(--ease-out),background 140ms var(--ease-out),transform 120ms var(--ease-out);
}
.cc-sig-pin:hover{background:color-mix(in srgb, var(--text-primary) 6%, transparent);color:var(--text-primary);transform:scale(1.1);}
.cc-sig-pin.pinned{color:var(--accent);}

.cc-signals-stale{
  font-family:var(--font-mono);font-size:max(0.5625rem, var(--fs-floor));font-weight:600;
  color:var(--amber);
}

/* Locked upgrade card for sub-Banneret tiers */
.cc-signals-locked{
  border:1px dashed var(--border-default);border-radius:0.5rem;
  background:color-mix(in srgb, var(--bg-intel) 40%, transparent);padding:1.25rem 1rem;text-align:center;
}
.cc-signals-lock-title{
  font-family:var(--font-display);font-size:0.875rem;font-weight:700;
  color:var(--text-primary);margin-bottom:0.375rem;
}
.cc-signals-lock-sub{
  font-family:var(--font-sans);font-size:max(0.6875rem, var(--fs-floor));line-height:1.45;
  color:var(--text-muted);margin:0 0 0.875rem;
}
.cc-signals-lock-cta{
  display:inline-block;font-family:var(--font-mono);font-size:max(0.625rem, var(--fs-floor));
  font-weight:700;letter-spacing:0.08em;text-transform:uppercase;
  color:var(--accent);text-decoration:none;
  border:1px solid color-mix(in srgb, var(--accent) 40%, transparent);border-radius:0.3125rem;
  padding:0.375rem 0.75rem;transition:background 140ms var(--ease-out);
}
.cc-signals-lock-cta:hover{background:var(--green-dim);}

/* ── Signals filter-picker modal (built by signals.js) ────────────── */
.sig-modal{
  position:fixed;inset:0;z-index:120;display:flex;
  align-items:center;justify-content:center;padding:1.5rem;
  background:var(--scrim-black);backdrop-filter:blur(3px);
}
.sig-modal.hidden{display:none;}
.sig-modal-card{
  display:flex;flex-direction:column;width:min(44rem,100%);max-height:86vh;
  background:var(--bg-elevated);border:1px solid var(--border-default);
  border-radius:0.625rem;box-shadow:var(--shadow-pop);overflow:hidden;
}
.sig-modal-head{
  display:flex;align-items:center;gap:0.75rem;
  padding:0.875rem 1rem;border-bottom:1px solid var(--border-subtle);
}
.sig-modal-title{
  font-family:var(--font-display);font-size:1rem;font-weight:700;
  color:var(--text-primary);margin-right:auto;
}
.sig-modal-name{
  font-family:var(--font-sans);font-size:0.8125rem;font-weight:600;
  color:var(--text-primary);background:color-mix(in srgb, var(--bg-intel) 60%, transparent);
  border:1px solid var(--border-subtle);border-radius:0.3125rem;
  padding:0.3125rem 0.5rem;width:13rem;
}
.sig-modal-x{
  border:none;background:transparent;color:var(--text-muted);
  font-size:1.25rem;line-height:1;cursor:pointer;padding:0.125rem 0.375rem;
}
.sig-modal-x:hover{color:var(--text-primary);}
.sig-tabs{display:flex;gap:0.25rem;padding:0.625rem 1rem 0;flex-wrap:wrap;}
.sig-tab{
  font-family:var(--font-mono);font-size:max(0.625rem, var(--fs-floor));font-weight:700;
  letter-spacing:0.06em;text-transform:uppercase;color:var(--text-muted);
  background:transparent;border:1px solid transparent;border-radius:0.3125rem;
  padding:0.25rem 0.5rem;cursor:pointer;
}
.sig-tab:hover{color:var(--text-secondary);}
.sig-tab.active{color:var(--accent);border-color:color-mix(in srgb, var(--accent) 35%, transparent);background:var(--green-dim);}
.sig-search{
  margin:0.625rem 1rem 0;font-family:var(--font-sans);font-size:0.8125rem;
  color:var(--text-primary);background:color-mix(in srgb, var(--bg-intel) 60%, transparent);
  border:1px solid var(--border-subtle);border-radius:0.3125rem;padding:0.4375rem 0.625rem;
}
.sig-groups{flex:1 1 auto;overflow-y:auto;padding:0.75rem 1rem;display:flex;flex-direction:column;gap:0.875rem;}
.sig-group-label{
  font-family:var(--font-mono);font-size:max(0.625rem, var(--fs-floor));font-weight:700;
  letter-spacing:0.08em;text-transform:uppercase;color:var(--text-muted);
  margin-bottom:0.375rem;
}
.sig-opts{display:flex;flex-wrap:wrap;gap:0.375rem;}
.sig-opt{
  font-family:var(--font-sans);font-size:max(0.6875rem, var(--fs-floor));font-weight:600;
  color:var(--text-secondary);background:color-mix(in srgb, var(--bg-intel) 50%, transparent);
  border:1px solid var(--border-subtle);border-radius:0.3125rem;
  padding:0.25rem 0.5rem;cursor:pointer;user-select:none;
  transition:background 120ms var(--ease-out),border-color 120ms var(--ease-out),color 120ms var(--ease-out);
}
.sig-opt:hover{border-color:var(--border-default);color:var(--text-primary);}
.sig-opt.on{color:var(--accent);background:var(--green-dim);border-color:color-mix(in srgb, var(--accent) 40%, transparent);}
.sig-modal-foot{
  display:flex;align-items:center;gap:0.625rem;
  padding:0.75rem 1rem;border-top:1px solid var(--border-subtle);
}
.sig-foot-count{font-family:var(--font-mono);font-size:max(0.6875rem, var(--fs-floor));color:var(--text-muted);margin-right:auto;}
.sig-sort{
  font-family:var(--font-sans);font-size:0.75rem;color:var(--text-primary);
  background:color-mix(in srgb, var(--bg-intel) 60%, transparent);border:1px solid var(--border-subtle);
  border-radius:0.3125rem;padding:0.3125rem 0.4375rem;
}
.sig-btn{
  font-family:var(--font-mono);font-size:max(0.6875rem, var(--fs-floor));font-weight:700;
  letter-spacing:0.06em;text-transform:uppercase;cursor:pointer;
  border-radius:0.3125rem;padding:0.375rem 0.75rem;border:1px solid var(--border-subtle);
  background:transparent;color:var(--text-secondary);
}
.sig-btn:hover{border-color:var(--border-default);color:var(--text-primary);}
.sig-btn.primary{color:var(--on-accent);background:var(--accent);border-color:var(--accent);}
.sig-btn.primary:hover{filter:brightness(1.08);}
.sig-btn.danger{color:var(--red);border-color:color-mix(in srgb, var(--red) 40%, transparent);}
.sig-btn.danger:hover{background:var(--red-dim);}

@media(max-width:1280px){
  .cc-band{grid-template-columns:auto auto 1fr;}
  .cc-session{display:none;}
}
@media(max-width:900px){
  .cc-row{grid-template-columns:2.5rem minmax(6rem,1fr) auto auto auto;}
  .cc-row-spark{display:none;}
  .cc-gauges{flex-wrap:wrap;}
}
@media(max-width:760px){
  .cc-band{grid-template-columns:1fr auto;row-gap:0.875rem;}
  .cc-gauges{grid-column:1 / -1;display:grid;grid-template-columns:1fr 1fr;gap:0.625rem 0;}
  .cc-gauge{padding:0 0.875rem 0 0;}
  .cc-gauge + .cc-gauge::before{display:none;}
  /* Phone board rows: logo | id | change($) | change(%) | price. Below the
     two-column breakpoint the board spans full width, so the row is actually
     WIDER than on desktop — keep all three numeric cells (the earlier 3-col
     template orphaned .cc-row-price onto a second implicit row at the left). */
  .cc-row{grid-template-columns:2.5rem minmax(0,1fr) auto auto auto;}
  .cc-act-row{grid-template-columns:2.75rem minmax(0,1fr) auto;}
  .cc-act-row .cc-act-sym{display:none;}
  .cc-act-row .cc-act-src{display:none;}
  .cc-act-filters{flex-wrap:wrap;margin-left:0;}
}

/* Large panel slides collapse to instant for users who opt out of
   motion. Near-zero (not none) so any transitionend listeners fire. */
@media (prefers-reduced-motion: reduce){
  /* .sidebar::after is the panel's right-edge seam (02-sidebar.css). Named
     explicitly because `.sidebar *` cannot match a pseudo-element; it was
     `.sidebar-clip::after` until the seam moved onto the unclipped aside. */
  .sidebar,.sidebar *,.sidebar::after,body::before,.main,.trade-overlay,.trade-drawer{
    transition-duration:0.01ms !important;
    transition-delay:0s !important;
  }
  .trade-drawer > *,.trade-rail{
    animation-duration:0.01ms !important;
    animation-delay:0s !important;
  }
}


/* ══ Card hover lift ═══════════════════════════════════════════
   The pointer entering any card lifts it: a hair of rise + scale, the inset
   ring warms toward accent, the shadow deepens and the surface brightens a
   touch. TRANSFORM-ONLY by design — neighbours never move (pushing them would
   reflow the grid and repaint every sparkline on each hover), so the whole
   effect is compositor-cheap. Hover-capable pointers only. */
@media (hover:hover){
  .cc-band,
  .cc-layout .cc-section{
    transition:transform 560ms var(--ease-glide),
               box-shadow 560ms var(--ease-glide),
               background 560ms var(--ease-glide);
    /* Keep each card on its own persistent compositor layer: without this the
       hover transform creates a layer that MERGES BACK on hover-out, and the
       re-raster snaps content (the donuts visibly wiggled ~a fraction of a px). */
    will-change:transform;
  }
  /* Barely-there by design: the ring stays the normal border (an accent ring
     read as "clickable"), the growth is sub-half-percent, and the long calm
     glide keeps it below conscious notice — felt, not seen. */
  .cc-band:hover,
  .cc-layout .cc-section:hover{
    transform:translateY(-1px) scale(1.004);
    /* Opaque cards can't brighten via opacity anymore — mix a touch of ink
       instead (brightens on dark, deepens on cream; subtle either way). */
    background:color-mix(in srgb, var(--text-primary) 3%, var(--bg-tertiary));
    box-shadow:inset 0 0 0 1px var(--border-default),
               var(--shadow-lift);
    z-index:3;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   Pro polish 2026-10-07 (owner: "very professional, like other pro apps").
   The watchlist page reads like Market Movers: ONE family (--font-sans with
   tabular figures), no UPPERCASE or letter spaced labels (grey sentence
   case), the app's 12 / 14 px sizes, the standard segment control (filled
   active, never an outline or an accent ring), smaller donuts. Scoped to
   #command-center so the id outranks every older rule above without
   touching other pages that share these graph classes.
   ════════════════════════════════════════════════════════════════════════════ */
#command-center,#command-center *{
  font-family:var(--font-sans);text-transform:none;letter-spacing:normal;
}
#command-center{font-variant-numeric:tabular-nums;}
#command-center :is(.cc-section-title,.cc-phase-label,.cc-g-l,.cc-clock-tz,.cc-phase-sub,.cc-g-s,
  .brd-leg-avg-k,.cc-session-ticks,.cc-section-sub){
  font-size:var(--fs-label);font-weight:500;color:var(--text-muted);
}
#command-center .cc-section-title{font-size:var(--fs-data);font-weight:600;color:var(--text-secondary);}
#command-center .cc-phase-label{font-size:var(--fs-data);font-weight:600;}
#command-center .cc-phase-label.live{color:var(--green);}
#command-center .cc-phase-label.extended{color:var(--amber);}
#command-center :is(.cc-row-delta,.cc-row-pct,.cc-row-price,.cc-tm-pct,.cc-tm-sym,.brd-leg-avg-v){
  font-size:var(--fs-data);
}
#command-center .cc-row-id b,#command-center .cc-row-price{font-size:var(--fs-data);}
#command-center .cc-tm-sym{font-weight:600;}
#command-center .mp-arrow{display:none;}
/* The segment control (the Market Movers segment look): one filled track,
   the active segment lifted by a filled background. */
#command-center :is(.cc-board-tabs,.cc-range-tabs,.cc-tm-controls){
  display:inline-flex;align-items:center;gap:2px;padding:2px;border-radius:var(--radius-lg);
  background:var(--bg-secondary);box-shadow:inset 0 0 0 1px var(--border-default);
}
#command-center :is(.cc-btab,.cc-tm-size){
  height:1.5rem;padding:0 0.5625rem;border-radius:var(--radius-sm);box-shadow:none;background:transparent;
  font-size:var(--fs-label);font-weight:500;color:var(--text-muted);
}
#command-center :is(.cc-btab,.cc-tm-size):hover{color:var(--text-primary);box-shadow:none;}
#command-center :is(.cc-btab,.cc-tm-size).on{background:var(--bg-tertiary);color:var(--text-primary);box-shadow:none;}
/* Smaller donuts: a ring sized to its legend, not the card. */
#command-center .cc-layout .cc-sector-donut,#command-center .cc-layout .brd-donut,
#command-center .cc-sector-donut,#command-center .brd-donut{width:clamp(8.5rem, 40%, 12.5rem);}
#command-center .brd-ring-n{font-size:20px;font-weight:600;}
#command-center .brd-ring-lbl{font-size:9px;letter-spacing:normal;}
