/* ════════════════════════════════════════════════════════════════════════
   Loryn Command · Tableau styles
   ────────────────────────────────────────────────────────────────────────
   Self-contained CSS for the v3 telemetry tableaux. Owns the panel,
   the row layouts, the magnitude bars, the mode switcher, the dense
   audit table. Travels with command-tableaux.js when integrated into
   the live journal.

   Tokens (--cyan, --ash, etc.) are declared inside .ct-panel so the
   tableaux are portable into any chamber — they don't depend on
   journal.css's globals.
   ════════════════════════════════════════════════════════════════════════ */

.ct-panel {
  /* Self-contained design tokens — namespace-prefixed (ct = command tableau) */
  --ct-cyan:        #7ab8f5;
  --ct-cyan-bright: #b8d4f5;
  --ct-cyan-glow:   rgba(122, 184, 245, 0.36);
  --ct-cyan-soft:   rgba(122, 184, 245, 0.22);
  --ct-cyan-faint:  rgba(122, 184, 245, 0.06);
  --ct-ash:        rgba(180, 188, 200, 0.78);
  --ct-ash-soft:   rgba(180, 188, 200, 0.48);
  --ct-ash-dim:    rgba(180, 188, 200, 0.22);
  --ct-hairline:        rgba(255, 255, 255, 0.06);
  --ct-hairline-bright: rgba(255, 255, 255, 0.14);
  --ct-text:   rgba(232, 240, 255, 0.96);
  --ct-text-2: rgba(232, 240, 255, 0.68);
  --ct-text-3: rgba(232, 240, 255, 0.42);
  --ct-text-q: rgba(232, 240, 255, 0.24);
  --ct-font: -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
  --ct-mono: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  --ct-ease: cubic-bezier(0.32, 0.7, 0.32, 1);

  width: 100%;
  /* EXACT v9-cinematic .room-panel treatment — Jake pointed at v9 as the
     premium target ("sleeker, more horizontal"). Earlier I over-widened
     (1320), over-padded, and heavied the shadow, turning v9's airy
     instrument into a boxed card. These are v9's real values. */
  /* v9 treatment, but a touch longer horizontally per Jake — wider span,
     same airy shadow + tight rows. 1100 (v9) → 1280. */
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 30px 20px 34px;
  background: rgba(255, 255, 255, 0.014);
  border-left: 2px solid var(--ct-cyan);
  border-radius: 8px;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.36),
    0 0 28px rgba(122, 184, 245, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  display: flex; flex-direction: column;
  gap: 12px;
  font-family: var(--ct-font);
  color: var(--ct-text);
  font-variant-numeric: tabular-nums;
  position: relative;
  /* When the chamber gives the panel a bounded height (in a room), the
     panel fills it and only the active VIEW scrolls — head, mode switcher
     and footer stay pinned. max-height:100% needs a flexed holder parent
     (see .cc-stage > div). */
  max-height: 100%;
  overflow: hidden;
}
/* Head, mode switcher and footer never scroll — they're fixed chrome. */
.ct-panel > .ct-head,
.ct-panel > .ct-modes,
.ct-panel > .ct-foot { flex: 0 0 auto; }
/* The active view takes the remaining height and scrolls its rows. */
.ct-panel > .ct-view.is-active {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(122, 184, 245, 0.18) transparent;
}
.ct-panel > .ct-view.is-active::-webkit-scrollbar { width: 6px; }
.ct-panel > .ct-view.is-active::-webkit-scrollbar-track { background: transparent; }
.ct-panel > .ct-view.is-active::-webkit-scrollbar-thumb {
  background: rgba(122, 184, 245, 0.18); border-radius: 3px;
}

.ct-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ct-hairline);
}
.ct-eyebrow {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ct-cyan);
  display: inline-flex; gap: 8px; align-items: baseline;
}
.ct-eyebrow .ct-num {
  font-family: var(--ct-mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.10em;
  opacity: 0.7;
}
.ct-meta {
  font-family: var(--ct-mono);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ct-text-3);
}

/* ─── Mode switcher (own row, right-aligned) ──────────────────────────── */
.ct-modes {
  align-self: flex-end;
  display: inline-flex; gap: 4px;
  padding: 4px;
  margin-bottom: 4px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid var(--ct-hairline);
}
.ct-mode-btn {
  border: 0; background: transparent;
  padding: 5px 10px;
  font-family: var(--ct-font);
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--ct-text-3);
  border-radius: 4px;
  cursor: pointer;
  transition: color 220ms var(--ct-ease), background 220ms;
}
.ct-mode-btn:hover { color: var(--ct-text); }
.ct-mode-btn.is-active {
  color: var(--ct-cyan);
  background: rgba(122, 184, 245, 0.08);
}
/* Press + keyboard-focus feedback (sweep P2/P3): tableau controls lacked
   :active press states and :focus-visible rings. */
.ct-mode-btn:active, .ct-more-link:active, .ct-pill:active,
.ct-row:active, .ct-tile:active { transform: scale(0.985); }
.ct-mode-btn:focus-visible, .ct-pill:focus-visible, .ct-more-link:focus-visible,
.ct-search:focus-visible {
  outline: none;
  box-shadow: 0 0 0 1px rgba(122, 184, 245, 0.5);
}
.ct-mode-btn .ct-count {
  font-family: var(--ct-mono);
  font-weight: 500;
  opacity: 0.6;
  margin-left: 4px;
}

/* ─── View containers (only one active at a time) ────────────────────── */
.ct-view { display: none; }
.ct-view.is-active { display: block; }
/* Switching modes (Curated / Distribution / Audit) fades the incoming view in
   smoothly so it matches the table's motion — the rows stay instant (they keep
   cc-no-entrance), only the view as a whole eases in. */
/* A clear sweep-in: the incoming view slides in from the side + fades + lifts
   out of a touch of blur — unmistakably animated, not a 7px nudge you'd miss. */
@keyframes ctViewSwitch {
  0%   { opacity: 0; transform: translateX(34px); filter: blur(3px); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
.ct-view.is-active.ct-switching { animation: ctViewSwitch 460ms cubic-bezier(0.22, 1, 0.36, 1); }
/* the clicked mode button pulses so the switch is felt on the control too */
@keyframes ctModePulse { 0% { transform: scale(0.93); } 60% { transform: scale(1.05); } 100% { transform: scale(1); } }
.ct-mode-btn.ct-mode-just { animation: ctModePulse 300ms var(--ct-ease); }

/* ─── CURATED view ───────────────────────────────────────────────────── */
/* EXACT v9 .vault-row grid + gap. (Earlier widened to 1.6fr/gap-16 which
   read stretched; v9's 1fr/gap-12 is the sleek, horizontal balance.) */
.ct-curated .ct-cols,
.ct-curated .ct-row {
  display: grid;
  grid-template-columns: 22px 60px 90px 1fr 110px 70px 88px;
  gap: 12px;
  align-items: center;
}
.ct-curated .ct-cols {
  padding: 4px 0;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ct-text-q);
}
.ct-curated .ct-cols .c-bar  { text-align: center; }
.ct-curated .ct-cols .c-pnl,
.ct-curated .ct-cols .c-pct,
.ct-curated .ct-cols .c-stat { text-align: right; }

/* Curated drawdown cue — a quiet left-weighted wash on rows whose account is
   near its trailing line. The "tint, not a column" risk hint Jake asked for:
   brightness carries the band (healthy rows stay clean), ash — never red.
   Danger pops; warning is a whisper. Per-account cushion lives in Audit + the
   row title (hover). When accounts are mirrored they share a band, so this
   reads as an ambient "the book's under pressure" wash; it differentiates as
   soon as accounts diverge. */
.ct-curated .ct-row.band-warning {
  background: linear-gradient(90deg, rgba(202, 208, 218, 0.045) 0%, transparent 52%);
  box-shadow: inset 2px 0 0 rgba(202, 208, 218, 0.30);
}
.ct-curated .ct-row.band-danger {
  background: linear-gradient(90deg, rgba(240, 244, 250, 0.11) 0%, transparent 58%);
  box-shadow: inset 3px 0 0 rgba(240, 244, 250, 0.85);
}

.ct-section-label {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ct-text-q);
  padding: 14px 0 6px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.ct-section-label .ct-badge {
  font-family: var(--ct-mono);
  letter-spacing: 0.10em;
  color: var(--ct-cyan); opacity: 0.7;
}

.ct-row {
  padding: 7px 0;   /* v9 row rhythm — tighter = more horizontal, more rows */
  border-bottom: 1px solid var(--ct-hairline);
  transition: background 280ms var(--ct-ease);
}
.ct-row:last-child { border-bottom: 0; }
/* v9 hover affordance — rows read as drillable (was missing live). */
.ct-curated .ct-row:hover {
  background: linear-gradient(90deg, rgba(122, 184, 245, 0.05) 0%, transparent 100%);
}

.ct-dot { display: flex; justify-content: center; }
.ct-dot span {
  width: 7px; height: 7px; border-radius: 50%;
  display: inline-block;
}
.ct-dot.is-pressured span { background: var(--ct-ash); box-shadow: 0 0 6px rgba(180, 188, 200, 0.30); }
.ct-dot.is-carrying  span { background: var(--ct-cyan); box-shadow: 0 0 8px var(--ct-cyan-glow); }
.ct-dot.is-inactive  span {
  background: transparent;
  border: 1px solid var(--ct-text-q);
  box-shadow: none;
}

.ct-acct { font-family: var(--ct-mono); font-size: 11px; font-weight: 500; color: var(--ct-cyan); opacity: 0.85; }
.ct-prop { font-family: var(--ct-mono); font-size: 10.5px; color: var(--ct-text-2); }
.ct-pnl  {
  font-family: var(--ct-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.02em; text-align: right;
}
.ct-pnl.is-win  { color: var(--ct-cyan-bright); text-shadow: 0 0 8px rgba(122, 184, 245, 0.30); }
.ct-pnl.is-loss { color: var(--ct-ash); }
.ct-pnl.is-zero { color: var(--ct-text-q); }
.ct-pct { font-family: var(--ct-mono); font-size: 11px; text-align: right; color: var(--ct-text-3); }
.ct-stat {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  text-align: right;
}
.ct-stat.is-pressured { color: var(--ct-ash-soft); }
.ct-stat.is-carrying  { color: var(--ct-cyan); opacity: 0.7; }
.ct-stat.is-inactive  { color: var(--ct-text-q); }

/* Magnitude bar — centered on zero hairline */
.ct-bar { position: relative; height: 14px; display: flex; align-items: center; }
.ct-bar-track { position: relative; width: 100%; height: 1px; background: var(--ct-hairline); }
.ct-bar-zero  {
  position: absolute; left: 50%; top: -5px; bottom: -5px;
  width: 1px; background: var(--ct-hairline-bright);
}
.ct-bar-fill { position: absolute; top: -4px; height: 8px; border-radius: 1.5px; }
.ct-bar-fill.is-win {
  left: 50%;
  background: linear-gradient(90deg, rgba(122, 184, 245, 0.20) 0%, var(--ct-cyan) 100%);
  box-shadow: 0 0 6px rgba(122, 184, 245, 0.35);
}
.ct-bar-fill.is-loss {
  right: 50%;
  background: linear-gradient(90deg, var(--ct-ash) 0%, rgba(180, 188, 200, 0.18) 100%);
}

.ct-more-link {
  display: block; text-align: center;
  padding: 14px 0 4px;
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ct-cyan); opacity: 0.75;
  background: transparent; border: 0;
  cursor: pointer;
  width: 100%;
  font-family: var(--ct-font);
  transition: color 220ms var(--ct-ease), opacity 220ms;
}
.ct-more-link:hover { color: var(--ct-cyan-bright); opacity: 1; }
.ct-more-link .ct-arrow { font-family: var(--ct-mono); margin-left: 6px; opacity: 0.6; }

/* ─── DISTRIBUTION view — 10×N tile grid ─────────────────────────────── */
.ct-dist-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
  padding: 8px 0 0;
}
.ct-tile {
  position: relative;
  padding: 6px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.014);
  border-left: 2px solid transparent;
  display: flex; flex-direction: column; gap: 2px;
  cursor: pointer;
  transition: background 220ms var(--ct-ease);
}
.ct-tile:hover { background: rgba(255, 255, 255, 0.04); }
.ct-tile.is-pressured { border-left-color: var(--ct-ash); }
.ct-tile.is-carrying  { border-left-color: var(--ct-cyan); }
.ct-tile.is-inactive  { border-left-color: rgba(232, 240, 255, 0.10); }
.ct-tile-acct {
  font-family: var(--ct-mono);
  font-size: 9px; font-weight: 500;
  color: var(--ct-cyan); opacity: 0.7;
}
.ct-tile-pnl {
  font-family: var(--ct-mono);
  font-size: 10px; font-weight: 500;
}
.ct-tile-pnl.is-win  { color: var(--ct-cyan-bright); }
.ct-tile-pnl.is-loss { color: var(--ct-ash); }
.ct-tile-pnl.is-zero { color: var(--ct-text-q); }
.ct-tile.is-inactive .ct-tile-acct,
.ct-tile.is-inactive .ct-tile-pnl { opacity: 0.42; }

.ct-dist-legend {
  display: flex; justify-content: center; gap: 24px;
  padding: 16px 0 0;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ct-text-q);
}
.ct-dist-legend .ct-swatch {
  display: inline-block;
  width: 8px; height: 2px; margin-right: 8px;
  vertical-align: middle;
  border-radius: 1px;
}
.ct-dist-legend .ct-swatch.s-cyan  { background: var(--ct-cyan); }
.ct-dist-legend .ct-swatch.s-ash   { background: var(--ct-ash); }
.ct-dist-legend .ct-swatch.s-ghost {
  background: transparent;
  border: 1px solid rgba(232, 240, 255, 0.18);
}

/* ─── AUDIT view — scrollable virtualized table ──────────────────────── */
.ct-audit-toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--ct-hairline);
}
.ct-filters { display: inline-flex; gap: 6px; }
.ct-pill {
  border: 0;
  padding: 6px 12px;
  font-family: var(--ct-font);
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ct-text-3);
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid var(--ct-hairline);
  border-radius: 999px;
  cursor: pointer;
  transition: color 220ms var(--ct-ease), background 220ms;
}
.ct-pill:hover { color: var(--ct-text); }
.ct-pill.is-active {
  color: var(--ct-cyan);
  background: rgba(122, 184, 245, 0.08);
  border-color: var(--ct-cyan-soft);
}
.ct-pill .ct-count {
  font-family: var(--ct-mono);
  font-weight: 500;
  opacity: 0.6;
  margin-left: 4px;
}
.ct-search {
  flex: 0 1 220px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ct-hairline);
  color: var(--ct-text);
  font-family: var(--ct-font);
  font-size: 11px; font-weight: 300;
  letter-spacing: 0.02em;
  padding: 4px 8px 6px;
  outline: none;
  transition: border-color 220ms var(--ct-ease);
}
.ct-search:focus { border-bottom-color: var(--ct-cyan-soft); }
.ct-search::placeholder {
  color: var(--ct-text-q);
  letter-spacing: 0.08em;
}

.ct-audit-table {
  /* No own max-height/scroll — the parent .ct-view (flex:1 1 auto; overflow-y:auto)
     owns scrolling so the panel flows as one column instead of double-scrolling.
     The sticky thead sticks to that view's scroll container. */
  overflow-x: hidden;
  position: relative;
  margin-top: 4px;
}
.ct-audit-table::-webkit-scrollbar { width: 6px; }
.ct-audit-table::-webkit-scrollbar-track { background: transparent; }
.ct-audit-table::-webkit-scrollbar-thumb {
  background: rgba(122, 184, 245, 0.18);
  border-radius: 3px;
}
.ct-audit-thead {
  position: sticky; top: 0;
  background: linear-gradient(180deg, #050507 0%, rgba(5, 5, 7, 0.92) 80%, rgba(5, 5, 7, 0) 100%);
  backdrop-filter: blur(8px);
  z-index: 2;
  padding: 6px 0 8px;
}
.ct-audit-cols,
.ct-audit-row {
  display: grid;
  grid-template-columns: 22px 60px 90px 1fr 104px 110px 70px 88px;
  gap: 12px;
  align-items: center;
}
.ct-audit-cols {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ct-text-q);
}
.ct-audit-cols .sortable {
  cursor: pointer;
  transition: color 200ms;
}
.ct-audit-cols .sortable:hover { color: var(--ct-text-3); }
.ct-audit-cols .sortable.is-active { color: var(--ct-cyan); }
.ct-audit-cols .sortable .dir {
  font-family: var(--ct-mono);
  margin-left: 4px;
  opacity: 0.7;
}
.ct-audit-cols .c-bal, .ct-audit-cols .c-pnl, .ct-audit-cols .c-pct { text-align: right; }
.ct-audit-cols .c-room { text-align: right; }
.ct-audit-cols .c-stat { text-align: right; }

/* Drawdown-proximity cell — cushion to the trailing line + a heat meter.
   Heat is carried by BRIGHTNESS (ash → near-white at the line), never red. */
.ct-room {
  display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px;
}
.ct-room.is-na { color: var(--ct-text-q); font-family: var(--ct-mono); font-size: 11px; }
.ct-room-meter {
  position: relative; width: 36px; height: 3px; border-radius: 2px;
  background: rgba(180, 188, 200, 0.10); overflow: hidden; flex: 0 0 auto;
}
.ct-room-fill {
  position: absolute; left: 0; top: 0; height: 100%; border-radius: 2px;
  background: rgba(180, 188, 200, 0.42);
  transition: width 480ms cubic-bezier(0.22, 1, 0.36, 1);
}
.ct-room-val {
  font-family: var(--ct-mono); font-size: 11px;
  color: var(--ct-text-3); min-width: 44px; text-align: right;
}
.ct-room.is-warning .ct-room-fill { background: rgba(202, 208, 218, 0.74); }
.ct-room.is-warning .ct-room-val  { color: var(--ct-text); }
.ct-room.is-danger  .ct-room-fill { background: rgba(234, 238, 244, 0.96); }
.ct-room.is-danger  .ct-room-val  { color: #eef1f6; font-weight: 600; }
/* A breath of brightness across a row sitting right at its line. */
.ct-audit-row.band-danger {
  background: linear-gradient(90deg, rgba(202, 208, 218, 0.05) 0%, transparent 62%);
}
.ct-audit-row {
  padding: 5px 0;
  border-bottom: 1px solid var(--ct-hairline);
}
.ct-audit-row:hover {
  background: linear-gradient(90deg, rgba(122, 184, 245, 0.04) 0%, transparent 100%);
}
.ct-audit-row .ct-dot span { width: 6px; height: 6px; }
.ct-audit-row .ct-bal {
  font-family: var(--ct-mono); font-size: 11px;
  text-align: right; color: var(--ct-text);
}

.ct-audit-empty {
  padding: 32px 0;
  text-align: center;
  font-size: 11px;
  color: var(--ct-text-q);
  letter-spacing: 0.08em;
}

/* ─── HERO VERDICT — single dominant answer for low-variance books ──── */
.ct-hero-verdict {
  align-items: center;
  text-align: center;
  padding: 36px 32px 30px;
  gap: 14px;
}
.ct-hv-eyebrow {
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ct-text-q);
}
/* A REFINED figure, not a giant slab (Jake: "a giant number? that doesn't look
   premium"). 84px read as a dashboard gauge — and it just repeats the net her
   spoken verdict line already states, so it's supporting data, not the headline.
   ~40px, light, quiet glow = an elegant figure that supports rather than shouts. */
.ct-hv-number {
  font-size: 40px; font-weight: 200;
  letter-spacing: -0.01em;
  line-height: 1.05;
  font-family: var(--ct-font);
  font-variant-numeric: tabular-nums;
}
.ct-hv-number.is-win {
  color: var(--ct-cyan-bright);
  text-shadow: 0 0 14px var(--ct-cyan-glow);
}
.ct-hv-number.is-loss {
  /* Negative book — ash, NEVER red, ever. */
  color: var(--ct-ash);
  text-shadow: none;
}
.ct-hv-number.is-flat {
  /* Flat day (~$0) — quiet neutral, no win-cyan glow. Nothing happened. */
  color: rgba(232, 240, 255, 0.55);
}
.ct-hv-verdict {
  font-size: 14px; font-weight: 300;
  letter-spacing: 0.012em;
  color: var(--ct-text-2);
  max-width: 640px;
  line-height: 1.55;
}
.ct-hv-bars {
  display: flex; gap: 14px; align-items: flex-end;
  padding: 18px 0 4px;
  min-height: 64px;
}
.hv-bar-cell {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 36px;
}
.hv-bar {
  width: 14px; height: 48px;
  display: flex; align-items: flex-end;
  background: transparent;
}
.hv-bar-fill {
  width: 100%;
  border-radius: 2px;
  min-height: 4px;
  transition: height 480ms var(--ct-ease);
}
.hv-bar-fill.is-win {
  background: linear-gradient(180deg, var(--ct-cyan) 0%, rgba(122, 184, 245, 0.45) 100%);
  box-shadow: 0 0 8px rgba(122, 184, 245, 0.32);
}
/* Loss bars are ASH — never red. This is the explicit anti-rule against
   the legacy `.tone-bad` red bars. */
.hv-bar-fill.is-loss {
  background: linear-gradient(180deg, var(--ct-ash) 0%, rgba(180, 188, 200, 0.32) 100%);
}
.hv-bar-cell.is-today .hv-bar-fill { filter: brightness(1.15); }
.hv-bar-label {
  font-size: 8.5px; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ct-text-q);
}
.hv-bar-cell.is-today .hv-bar-label { color: var(--ct-text-2); }
.ct-hv-sub {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ct-text-3);
  padding-top: 4px;
}
.ct-empty {
  padding: 32px 24px;
  text-align: center;
  color: var(--ct-text-q);
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* ─── Footer — aggregate stats always visible ────────────────────────── */
.ct-foot {
  padding-top: 10px;
  border-top: 1px solid var(--ct-hairline);
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ct-text-q);
  flex-wrap: wrap;
  gap: 16px;
}
.ct-foot .ct-v {
  font-family: var(--ct-mono);
  letter-spacing: 0.10em;
  color: var(--ct-text-2);
}

/* ════════════════════════════════════════════════════════════════════════
   DAY tableau — Daily Timeline (horizontal bars centered on zero)
   ════════════════════════════════════════════════════════════════════════ */
.ct-day-grid {
  display: flex; flex-direction: column;
  gap: 6px;
  padding: 4px 0 2px;
  border-top: 1px solid var(--ct-hairline);
}
.ct-day-row {
  display: grid;
  grid-template-columns: 80px 1fr 110px;
  align-items: center;
  gap: 14px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  transition: background 280ms var(--ct-ease);
}
.ct-day-row:last-child { border-bottom: 0; }
.ct-day-row.is-today { background: rgba(122, 184, 245, 0.025); }
.ct-day-row.is-best  .ct-day-pnl { color: var(--ct-cyan-bright); }
.ct-day-row.is-worst .ct-day-pnl { color: var(--ct-ash); }
.ct-day-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ct-text-3);
  font-family: var(--ct-mono);
}
.ct-day-row.is-today .ct-day-label { color: var(--ct-cyan); }
.ct-day-pnl {
  text-align: right;
  font-size: 13px; font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.ct-day-pnl.is-win  { color: var(--ct-cyan-bright); }
.ct-day-pnl.is-loss { color: var(--ct-ash); }

/* ════════════════════════════════════════════════════════════════════════
   WEEK tableau — vertical bars, hero number, label grid
   ════════════════════════════════════════════════════════════════════════ */
/* WEEK — v9 horizontal day-rows (Day | Magnitude | P&L | Pct). Consistent
   with the Vault + Session Log, NOT a separate vertical bar chart. */
.ct-week-cols,
.ct-week-row {
  display: grid;
  grid-template-columns: 70px 1fr 130px 70px;
  gap: 16px;
  align-items: center;
}
.ct-week-cols {
  padding: 4px 0;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ct-text-q);
}
.ct-week-cols .c-bar { text-align: center; }
.ct-week-cols .c-pnl, .ct-week-cols .c-pct { text-align: right; }
.ct-week-row {
  padding: 9px 0;
  border-bottom: 1px solid var(--ct-hairline);
  font-variant-numeric: tabular-nums;
}
.ct-week-row:last-child { border-bottom: 0; }
.ct-week-row.is-today {
  padding: 12px 0;
  background: linear-gradient(90deg, rgba(122, 184, 245, 0.05) 0%, transparent 100%);
}
.ct-w-day {
  font-family: var(--ct-mono); font-size: 11px;
  color: var(--ct-text-3); text-transform: uppercase; letter-spacing: 0.10em;
}
.ct-week-row.is-today .ct-w-day { color: var(--ct-text); font-weight: 600; }
.ct-w-bar { position: relative; height: 14px; }
.ct-w-bar-track {
  position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: var(--ct-hairline); transform: translateY(-50%);
}
.ct-w-bar-fill {
  position: absolute; left: 0; top: 50%; height: 8px;
  transform: translateY(-50%); border-radius: 1.5px;
}
.ct-w-bar-fill.is-win {
  background: linear-gradient(90deg, rgba(122, 184, 245, 0.20) 0%, var(--ct-cyan) 100%);
  box-shadow: 0 0 6px rgba(122, 184, 245, 0.32);
}
.ct-w-bar-fill.is-loss {
  background: linear-gradient(90deg, var(--ct-ash) 0%, rgba(180, 188, 200, 0.18) 100%);
}
.ct-w-pnl { font-family: var(--ct-mono); font-size: 13px; text-align: right; }
.ct-w-pnl.is-win  { color: var(--ct-cyan-bright); }
.ct-w-pnl.is-loss { color: var(--ct-ash); }
.ct-w-pct { font-family: var(--ct-mono); font-size: 11px; text-align: right; color: var(--ct-text-3); }

/* ════════════════════════════════════════════════════════════════════════
   STRATEGY tableau — 4-tile aggregate read
   ════════════════════════════════════════════════════════════════════════ */
/* STRATEGY — v9 row-list. We don't track named hypotheses, so the honest
   "book read" is the real book broken into account-size TIERS, one row each,
   same airy row grammar as the Week panel. Tier | Book | Net | Avg | Win%. */
.ct-strat-cols,
.ct-strat-row {
  display: grid;
  grid-template-columns: 64px 1fr 110px 92px 60px;
  gap: 16px;
  align-items: center;
}
.ct-strat-cols {
  padding: 4px 0;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ct-text-q);
  border-bottom: 1px solid var(--ct-hairline);
}
.ct-strat-cols .c-net, .ct-strat-cols .c-avg, .ct-strat-cols .c-wr { text-align: right; }
.ct-strat-row {
  padding: 11px 0;
  border-bottom: 1px solid var(--ct-hairline);
  font-variant-numeric: tabular-nums;
}
.ct-strat-row:last-child { border-bottom: 0; }
.ct-s-id {
  font-family: var(--ct-mono); font-size: 13px; font-weight: 600;
  color: var(--ct-text); letter-spacing: 0.02em;
}
.ct-s-name {
  font-size: 12px; color: var(--ct-text-2);
  letter-spacing: 0.01em; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.ct-s-net {
  text-align: right; font-size: 14px; font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.ct-s-net.is-win  { color: var(--ct-text); }
.ct-s-net.is-loss { color: rgba(180, 188, 200, 0.78); }
.ct-s-avg {
  text-align: right; font-size: 12px;
  color: var(--ct-text-3); font-variant-numeric: tabular-nums;
}
.ct-s-wr {
  text-align: right; font-size: 12px;
  color: var(--ct-text-2); font-variant-numeric: tabular-nums;
}

/* ════════════════════════════════════════════════════════════════════════
   MEMOIR tableau — curated observation list
   ════════════════════════════════════════════════════════════════════════ */
/* Memoir observations — flat rows separated by hairlines, no card backgrounds.
   The prototypes (v3-gallery, v9-cinematic) show observations as airy items
   with date on left, prose on right, dotted separator. Removed the boxy
   `background: rgba(255,255,255,0.014)` Jake called out as "gray boxes". */
/* MEMOIR — v9 dated notes: a date column + Loryn's prose with an inline tag,
   each note a faint cyan-edged card. */
/* Brief synthesis lead — her stated finding above the itemized observations,
   so the room opens like a research note. Reads as her voice, set off above
   the rows by a hairline. */
/* Brief = HER EARNED READ. The lead is Loryn's stated verdict on the book and
   must carry the weight of a headline finding, not read like a caption — so it's
   set large + bright, in deliberate space, with the itemized observations
   beneath as her supporting points. (Jake: "the Brief needs a real overhaul.") */
.ct-memoir { padding-top: 18px; }
.ct-mem-lead {
  font-size: 21px; font-weight: 300; line-height: 1.5; letter-spacing: 0.004em;
  color: rgba(238, 244, 255, 0.94); padding: 2px 0 22px; max-width: 60ch;
  margin-bottom: 14px; border-bottom: 1px solid var(--ct-hairline, rgba(255,255,255,0.06));
  animation: ccMonthArea 600ms ease 120ms both;
}
.ct-mem-rows { display: flex; flex-direction: column; gap: 11px; padding: 10px 0; }
.ct-mem-row {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.012);
  border-left: 2px solid var(--ct-cyan-soft);
  border-radius: 5px;
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 18px;
  align-items: baseline;
}
.ct-mem-when {
  font-family: var(--ct-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ct-text-3);
}
.ct-mem-text {
  font-size: 13.5px; font-weight: 300; line-height: 1.55;
  color: var(--ct-text); letter-spacing: 0.005em;
}
.ct-mem-tag {
  display: inline-block; margin-left: 10px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ct-cyan); opacity: 0.65;
  white-space: nowrap; vertical-align: baseline;
}

/* ════════════════════════════════════════════════════════════════════════
   SESSION LOG (v9 Daily Timeline) — per-trade rows
   ════════════════════════════════════════════════════════════════════════ */
.ct-session .ct-log-cols,
.ct-session .ct-log-row {
  display: grid;
  grid-template-columns: 56px 48px 150px 1fr 110px 92px;
  gap: 14px;
  align-items: center;
}
.ct-session .ct-log-cols {
  padding: 4px 0;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ct-text-q);
  border-bottom: 1px solid var(--ct-hairline);
}
.ct-session .ct-log-cols .c-bar { text-align: center; }
.ct-session .ct-log-cols .c-pnl,
.ct-session .ct-log-cols .c-stat { text-align: right; }
.ct-log-row {
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-variant-numeric: tabular-nums;
  transition: background 280ms var(--ct-ease);
}
.ct-log-row:last-child { border-bottom: 0; }
/* v9 hover affordance — session-log rows read as drillable (was missing live).
   Layered above the press/recovery washes on hover. */
.ct-log-row:hover {
  background: linear-gradient(90deg, rgba(122, 184, 245, 0.06) 0%, transparent 100%);
}
/* Press = revenge loss after a win — faint ash wash, left-anchored. */
.ct-log-row.is-press-row {
  background: linear-gradient(90deg, rgba(180, 188, 200, 0.045) 0%, transparent 70%);
}
/* Recovery = win after a loss — faint cyan wash. */
.ct-log-row.is-recovery-row {
  background: linear-gradient(90deg, rgba(122, 184, 245, 0.045) 0%, transparent 70%);
}
.ct-log-time { font-family: var(--ct-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; color: var(--ct-text-3); }
.ct-log-id   { font-family: var(--ct-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; color: var(--ct-cyan); opacity: 0.7; }
.ct-log-instr { font-family: var(--ct-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.04em; color: var(--ct-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-log-instr .ct-arrow { font-size: 9px; }
.ct-log-instr.is-long  .ct-arrow { color: var(--ct-cyan); }
.ct-log-instr.is-short .ct-arrow { color: var(--ct-ash); }
.ct-log-stat {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  text-align: right;
}
.ct-log-stat.is-win      { color: var(--ct-cyan); opacity: 0.7; }
.ct-log-stat.is-loss     { color: var(--ct-ash-soft); }
.ct-log-stat.is-press    { color: var(--ct-ash); }
.ct-log-stat.is-recovery { color: var(--ct-cyan-bright); }

/* ════════════════════════════════════════════════════════════════════════
   DECISION STACK — a SEPARATE tableau (v3). Trade CARDS: sparkline (visual),
   tiny inline fields, moderate P&L, an insight line on the story trades.
   Clickable (hover-lift). No number over ~22px. Does NOT affect the Daily.
   ════════════════════════════════════════════════════════════════════════ */
.ct-decision .ct-stack { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 8px; }
.ct-tray {
  padding: 13px 18px;
  border: 1px solid var(--ct-hairline, rgba(255,255,255,0.06));
  border-radius: 13px;
  background: rgba(255,255,255,0.012);
  cursor: pointer;
  transition: transform 300ms cubic-bezier(0.22,1,0.36,1),
              border-color 300ms ease, background 300ms ease;
}
.ct-tray:hover, .ct-tray:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(122,184,245,0.30);
  background: rgba(122,184,245,0.045);
  outline: none;
}
.ct-tray.is-story { border-left: 2px solid rgba(122,184,245,0.55); }
.ct-tray.is-story.is-loss, .ct-tray.is-story.is-press { border-left-color: rgba(180,188,200,0.5); }
.ct-tray-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 8px; border-bottom: 1px solid var(--ct-hairline, rgba(255,255,255,0.06));
}
.ct-tray-id {
  font-family: var(--ct-mono, ui-monospace, monospace);
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  color: var(--ct-cyan-bright, #9cc6f5);
  display: inline-flex; gap: 10px; align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.ct-tray-side { color: var(--ct-ash, rgba(180,188,200,0.9)); letter-spacing: 0.05em; }
.ct-tray-side.is-long { color: var(--ct-cyan-bright, #9cc6f5); }
.ct-tray-time {
  font-family: var(--ct-mono, ui-monospace, monospace);
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em;
  color: var(--ct-text-q, rgba(232,240,255,0.4)); font-variant-numeric: tabular-nums;
}
.ct-tray-row {
  display: grid; grid-template-columns: 78px 78px 60px 1fr 128px;
  gap: 16px; align-items: center; padding-top: 11px;
}
.ct-tray-flabel {
  font-size: 9px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ct-text-q, rgba(232,240,255,0.36)); display: block; margin-bottom: 4px;
}
.ct-tray-fval {
  font-family: var(--ct-mono, ui-monospace, monospace);
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--ct-text, rgba(232,240,255,0.88)); font-variant-numeric: tabular-nums;
}
.ct-tray-spark { display: flex; align-items: center; justify-content: center; min-height: 30px; }
.ct-tray-spark svg { display: block; }
.ct-tray-pnl { text-align: right; }
.ct-tray-pnl .v {
  font-family: var(--ct-mono, ui-monospace, monospace);
  font-weight: 500; letter-spacing: 0.02em; font-size: 22px; line-height: 1;
  display: block; font-variant-numeric: tabular-nums;
}
.ct-tray-pnl .p {
  font-family: var(--ct-mono, ui-monospace, monospace);
  font-size: 11px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--ct-text-q, rgba(232,240,255,0.4)); margin-top: 4px; display: block;
}
.ct-tray-pnl.is-win .v  { color: var(--ct-cyan-bright, #9cc6f5); text-shadow: 0 0 10px rgba(122,184,245,0.3); }
.ct-tray-pnl.is-loss .v,
.ct-tray-pnl.is-press .v { color: var(--ct-ash, rgba(180,188,200,0.9)); }
.ct-tray-note {
  margin-top: 13px; padding-top: 13px;
  border-top: 1px solid var(--ct-hairline, rgba(255,255,255,0.06));
  font-size: 13px; font-weight: 300; line-height: 1.55;
  color: var(--ct-text-2, rgba(232,240,255,0.66)); letter-spacing: 0.01em;
}
.ct-tray-note::before { content: '— '; color: var(--ct-text-q, rgba(232,240,255,0.4)); }

/* ════════════════════════════════════════════════════════════════════════
   RISK BOARD — drawdown proximity. The BARS are the visual; numbers small.
   Risk shown in ASH, never red (the house rule). Rows clickable.
   ════════════════════════════════════════════════════════════════════════ */
.ct-risk-view { display: flex; flex-direction: column; gap: 18px; padding: 6px 0 8px; }
.ct-risk-list { display: flex; flex-direction: column; gap: 11px; }
.ct-risk-row {
  display: grid; grid-template-columns: 120px 1fr 150px; gap: 18px; align-items: center;
  padding: 12px 16px; border: 1px solid var(--ct-hairline, rgba(255,255,255,0.06));
  border-radius: 11px; background: rgba(255,255,255,0.012); cursor: pointer;
  transition: transform 280ms cubic-bezier(0.22,1,0.36,1), border-color 280ms ease, background 280ms ease;
}
.ct-risk-row:hover, .ct-risk-row:focus-visible {
  transform: translateY(-2px); border-color: rgba(180,188,200,0.28);
  background: rgba(180,188,200,0.04); outline: none;
}
.ct-risk-row.is-danger { border-left: 2px solid rgba(180,188,200,0.6); }
.ct-risk-acct { display: flex; flex-direction: column; gap: 3px; }
.ct-risk-tag { font-family: var(--ct-mono, ui-monospace, monospace); font-size: 13px; font-weight: 500; color: var(--ct-text, rgba(232,240,255,0.9)); letter-spacing: 0.04em; }
.ct-risk-size { font-size: 9px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ct-text-q, rgba(232,240,255,0.36)); }
.ct-risk-bar { position: relative; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.06); overflow: hidden; }
.ct-risk-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; }
.ct-risk-bar-fill.is-watch  { background: rgba(180,188,200,0.5); }
.ct-risk-bar-fill.is-danger { background: rgba(180,188,200,0.88); box-shadow: 0 0 10px rgba(180,188,200,0.22); }
.ct-risk-meta { text-align: right; display: flex; flex-direction: column; gap: 3px; }
.ct-risk-pct { font-family: var(--ct-mono, ui-monospace, monospace); font-size: 14px; font-weight: 500; color: var(--ct-ash, rgba(180,188,200,0.9)); font-variant-numeric: tabular-nums; }
.ct-risk-room { font-size: 9.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ct-text-q, rgba(232,240,255,0.4)); }
.ct-risk-note { font-size: 13px; font-weight: 300; line-height: 1.55; color: var(--ct-text-2, rgba(232,240,255,0.66)); letter-spacing: 0.01em; }
.ct-risk-note::before { content: '— '; color: var(--ct-text-q, rgba(232,240,255,0.4)); }
.ct-risk-clear { padding: 22px 4px; }
.ct-risk-clear-line { font-size: 16px; font-weight: 300; color: var(--ct-text, rgba(232,240,255,0.85)); letter-spacing: 0.01em; line-height: 1.5; }
.ct-risk-clear-sub { margin-top: 10px; font-size: 9.5px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ct-text-q, rgba(232,240,255,0.36)); }

/* ════════════════════════════════════════════════════════════════════════
   NOTES — quiet readable cards (notes are prose). Text-forward, minimal.
   ════════════════════════════════════════════════════════════════════════ */
.ct-notes-view { display: flex; flex-direction: column; gap: 12px; padding: 6px 0 8px; }
.ct-note-card {
  padding: 14px 18px; border: 1px solid var(--ct-hairline, rgba(255,255,255,0.06));
  border-radius: 12px; background: rgba(255,255,255,0.012); cursor: pointer;
  transition: transform 280ms cubic-bezier(0.22,1,0.36,1), border-color 280ms ease, background 280ms ease;
}
.ct-note-card:hover, .ct-note-card:focus-visible {
  transform: translateY(-2px); border-color: rgba(122,184,245,0.22);
  background: rgba(122,184,245,0.035); outline: none;
}
.ct-note-date { font-size: 9px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ct-text-q, rgba(232,240,255,0.36)); margin-bottom: 7px; }
.ct-note-text { font-size: 14px; font-weight: 300; line-height: 1.6; color: var(--ct-text, rgba(232,240,255,0.86)); letter-spacing: 0.01em; white-space: pre-wrap; }
.ct-notes-empty { padding: 26px 4px; font-size: 15px; font-weight: 300; line-height: 1.6; color: var(--ct-text-2, rgba(232,240,255,0.6)); letter-spacing: 0.01em; }
.ct-notes-foot { margin-top: 6px; padding: 12px 2px 0; font-size: 12px; font-weight: 300; color: var(--ct-text-q, rgba(232,240,255,0.42)); letter-spacing: 0.02em; font-style: italic; }

/* ════════════════════════════════════════════════════════════════════════
   WORKSPACE (Notes / Objectives) — a two-pane WORKING surface, not a passive
   tableau. LEFT: your content (read + write). RIGHT: Loryn (her responses) — a
   designed companion panel, not the bare strip the Vault had. (Jake, 2026-06-03)
   ════════════════════════════════════════════════════════════════════════ */
.ct-workspace .ct-ws {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px;
  /* BOUND the single row to the grid's height (was implicit `auto` → the panes
     stretched to CONTENT, so the inner lists were content-height and never
     overflowed THEMSELVES → never scrolled; goals/notes/long answers just grew
     past the panel and got clipped — Jake's "goals disappear, unscrollable").
     minmax(0,1fr) caps the row, so the panes are bounded and their lists scroll. */
  grid-template-rows: minmax(0, 1fr);
  flex: 1 1 auto; min-height: 0; padding-top: 6px;
}
.ct-ws-pane { display: flex; flex-direction: column; min-height: 0; max-height: 100%; overflow: hidden; }

/* LEFT — your notes: a dense, scannable LIST that fills the pane, with a slim
   composer pinned at the BOTTOM (where you add, like a log input). */
.ct-ws-list {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  display: flex; flex-direction: column;
  margin: -2px -4px 0 0; padding-right: 6px;
}
.ct-ws-list .ct-note-card {
  cursor: default; padding: 6px 2px; border: 0; border-radius: 0; background: transparent;
  display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: baseline;
  transition: none;
}
/* The day MARKER (first note of a date) carries the separator + breathing room;
   the rest of that day's notes continue beneath it with no rule, so each day
   reads as one grouped block. */
.ct-ws-list .ct-note-card.is-day-start {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 12px; padding-top: 14px;
}
.ct-ws-list .ct-note-card.is-day-start:first-child {
  border-top: 0; margin-top: 0; padding-top: 2px;
}
.ct-ws-list .ct-note-card:hover { transform: none; background: rgba(122, 184, 245, 0.02); }
.ct-ws-list .ct-note-date {
  margin: 0; font-family: var(--ct-mono); font-size: 9px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ct-text-3);
}
.ct-ws-list .ct-note-text { font-size: 12.5px; font-weight: 300; line-height: 1.5; color: rgba(232, 240, 255, 0.82); white-space: pre-wrap; }
.ct-ws-empty { padding: 18px 2px; font-size: 12.5px; font-weight: 300; line-height: 1.6; color: rgba(233, 241, 255, 0.38); }

/* slim composer, pinned bottom */
.ct-ws-composer {
  display: flex; gap: 8px; align-items: stretch; flex: 0 0 auto;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.ct-ws-input {
  flex: 1 1 auto; resize: none; height: 38px; max-height: 96px;
  background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px; padding: 9px 12px;
  color: rgba(233, 241, 255, 0.92); font-family: inherit; font-size: 12.5px; line-height: 1.45;
  outline: none; transition: border-color 200ms ease, background 200ms ease;
}
.ct-ws-input:focus { border-color: rgba(122, 184, 245, 0.4); background: rgba(122, 184, 245, 0.04); }
.ct-ws-input::placeholder { color: rgba(233, 241, 255, 0.3); }
.ct-ws-add {
  flex: 0 0 auto; cursor: pointer;
  background: rgba(122, 184, 245, 0.1); border: 1px solid rgba(122, 184, 245, 0.26);
  color: rgba(207, 227, 255, 0.92); border-radius: 8px; padding: 0 16px;
  font-family: inherit; font-size: 11.5px; letter-spacing: 0.04em;
  transition: background 180ms ease, border-color 180ms ease, transform 120ms ease;
}
.ct-ws-add:hover { background: rgba(122, 184, 245, 0.18); border-color: rgba(122, 184, 245, 0.44); }
.ct-ws-add:active { transform: translateY(0.5px) scale(0.985); }

/* RIGHT — LORYN'S READ. Minimal + sleek: no boxed card, no second orb. Just a
   quiet vertical divider setting it off from your notes, a small label, and her
   voice (the cyan channel) below. The chamber orb is the only orb. */
.ct-ws-loryn {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2px 0 2px 28px;
}
.ct-ws-loryn-label {
  flex: 0 0 auto; margin-bottom: 16px;
  font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(170, 205, 255, 0.55);
}
.ct-ws-loryn-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.ct-ws-idle { font-size: 12.5px; font-weight: 300; line-height: 1.6; color: rgba(233, 241, 255, 0.38); }
.ct-ws-loryn-body .cc-spoken, .ct-ws-loryn-body .cc-walk { width: 100%; max-width: none; margin: 0; padding-left: 16px; text-align: left; }
.ct-ws-loryn-body .cc-spoken.is-plain { text-align: left; padding-left: 16px; }
.ct-ws-loryn-body .cc-spoken.is-plain .cc-sp-channel { display: block; }
/* small + tight type in the pane — selectors carry .cc-spoken(.is-plain) so they
   beat the standby .cc-spoken.is-plain sizing (which was leaving it gigantic). */
.ct-ws-loryn-body .cc-spoken .cc-sp-lead,
.ct-ws-loryn-body .cc-spoken.is-plain .cc-sp-lead { font-size: 13px; font-weight: 400; line-height: 1.5; }
.ct-ws-loryn-body .cc-spoken .cc-sp-read,
.ct-ws-loryn-body .cc-spoken.is-plain .cc-sp-read { font-size: 12px; line-height: 1.55; margin-top: 8px; }
.ct-ws-loryn-body .cc-lane-actions { margin-top: 16px; padding-left: 16px; }
.ct-ws-loryn-body .cc-offer { font-size: 12px; padding: 7px 0 7px 18px; }

/* ════════════════════════════════════════════════════════════════════════
   OBJECTIVES — four horizon blocks, each a progress BAR (the visual) + items.
   Numbers tiny; the bars carry it.
   ════════════════════════════════════════════════════════════════════════ */
.ct-obj-view { display: flex; flex-direction: column; gap: 16px; padding: 6px 0 8px; }
.ct-obj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ct-obj-block {
  padding: 14px 16px; border: 1px solid var(--ct-hairline, rgba(255,255,255,0.06));
  border-radius: 12px; background: rgba(255,255,255,0.012); cursor: pointer;
  transition: transform 280ms cubic-bezier(0.22,1,0.36,1), border-color 280ms ease;
}
.ct-obj-block:hover, .ct-obj-block:focus-visible { transform: translateY(-2px); border-color: rgba(122,184,245,0.22); outline: none; }
.ct-obj-head { display: flex; justify-content: space-between; align-items: baseline; }
.ct-obj-title { font-size: 9px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ct-text-q, rgba(232,240,255,0.42)); }
.ct-obj-count { font-family: var(--ct-mono, ui-monospace, monospace); font-size: 11px; font-weight: 500; color: var(--ct-cyan-bright, #9cc6f5); font-variant-numeric: tabular-nums; }
.ct-obj-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.06); overflow: hidden; margin: 9px 0 11px; }
.ct-obj-bar-fill { height: 100%; border-radius: 2px; background: rgba(122,184,245,0.7); }
.ct-obj-rows { display: flex; flex-direction: column; gap: 6px; }
.ct-obj-row { display: flex; gap: 9px; align-items: baseline; font-size: 12.5px; font-weight: 300; line-height: 1.4; color: var(--ct-text, rgba(232,240,255,0.84)); }
.ct-obj-row.is-done { color: var(--ct-text-q, rgba(232,240,255,0.4)); text-decoration: line-through; }
.ct-obj-check { width: 12px; flex: 0 0 12px; color: var(--ct-cyan-bright, #9cc6f5); font-size: 11px; }
.ct-obj-empty-row { font-size: 12px; font-weight: 300; color: var(--ct-text-q, rgba(232,240,255,0.36)); font-style: italic; }
.ct-obj-note { font-size: 13px; font-weight: 300; line-height: 1.55; color: var(--ct-text-2, rgba(232,240,255,0.66)); letter-spacing: 0.01em; }
.ct-obj-note::before { content: '— '; color: var(--ct-text-q, rgba(232,240,255,0.4)); }

/* Objectives-as-workspace (two-pane, like Notes). The four horizons sit in a
   2×2 GRID (Today | This Week / This Month | Long Term) instead of a tall
   full-width stack — Jake: "it's just a stack, rework the whole UI." The grid
   uses the pane's width, reads as four organized cards of equal weight, and
   keeps the time-progression order left→right, top→bottom. The cadence tag
   ("resets daily") sits beside the title; the done-count anchors right. */
.ct-obj-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  align-content: start;
}
.ct-ws-objectives .ct-obj-block { margin: 0; }   /* grid gap owns the spacing */
.ct-ws-objectives .ct-obj-head { justify-content: flex-start; flex-wrap: wrap; row-gap: 2px; }
.ct-ws-objectives .ct-obj-count { margin-left: auto; }
/* Narrow chamber widths (laptop / lane open) → single column so cards never
   crush their objective text. */
@media (max-width: 1180px) {
  .ct-obj-list { grid-template-columns: 1fr; }
}
.ct-obj-cadence {
  margin-left: 10px; font-size: 8px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(232, 240, 255, 0.28);
}
/* A just-added objective/note eases in (instead of the page reloading with no
   animation). Set to opacity:0 + slight rise; JS adds .is-in on the next frame. */
/* Long goal/note text must WRAP, never overflow the pane (large entries were a
   reported break). */
.ct-obj-text, .ct-ws-list .ct-note-text, .ct-obj-row { overflow-wrap: anywhere; min-width: 0; }
.ct-row-just-added { opacity: 0; transform: translateY(7px); }
.ct-row-just-added.is-in {
  opacity: 1; transform: none;
  transition: opacity 460ms cubic-bezier(0.32, 0.5, 0.32, 1),
              transform 460ms cubic-bezier(0.32, 0.5, 0.32, 1);
}
/* A row Loryn just removed eases OUT (fade + slight rise + collapse) before the
   list is rebuilt — so removes feel like SHE took it off the board, not like
   the page jumped. Matches the .ct-row-just-added vocabulary (same duration +
   curve) so add and remove read as one gesture in two directions. JS sets
   .ct-row-leaving on the matching row, waits the duration, then commits the
   state swap. (Jake 2026-06-04 handoff item #2.) */
.ct-row-leaving {
  opacity: 0 !important;
  transform: translateY(-4px) !important;
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  pointer-events: none;
  overflow: hidden !important;
  /* !important on the TRANSITION itself, not just the values: note cards inside
     .ct-ws-list carry `transition: none` at a HIGHER specificity (0,2,0), which
     was killing the exit transition so the card SNAPPED out with no animation
     (Jake 2026-06-04: voice note-removal "did not have a smooth animation"). The
     !important guarantees the exit eases on every surface regardless of any base
     transition rule. */
  transition: opacity 380ms cubic-bezier(0.32, 0.5, 0.32, 1),
              transform 380ms cubic-bezier(0.32, 0.5, 0.32, 1),
              max-height 380ms cubic-bezier(0.32, 0.5, 0.32, 1),
              padding 380ms cubic-bezier(0.32, 0.5, 0.32, 1),
              margin 380ms cubic-bezier(0.32, 0.5, 0.32, 1) !important;
}
/* Pulse a row Loryn just AMENDED so the change is felt, not silent — a quiet
   cyan wash that comes up and fades. TRANSITION-driven (box-shadow + background),
   NOT a keyframe animation: a freshly-rendered row is still running its ENTRANCE
   animation (opacity/transform), and a second `animation` shorthand would
   override that — on rows with base opacity:0 (e.g. .ct-doc-stave) the row would
   either vanish or never pulse depending on source order. box-shadow + background
   don't touch opacity/transform, so the pulse layers cleanly on top of the
   entrance. JS adds .ct-row-just-edited (peak), then .is-settling (fade back). */
.ct-row-just-edited {
  background-color: rgba(122, 184, 245, 0.10);
  box-shadow: inset 2px 0 0 0 rgba(122, 184, 245, 0.55);
}
.ct-row-just-edited.is-settling {
  background-color: rgba(122, 184, 245, 0);
  box-shadow: inset 0 0 0 0 rgba(122, 184, 245, 0);
  transition: background-color 820ms cubic-bezier(0.32, 0.5, 0.32, 1),
              box-shadow 820ms cubic-bezier(0.32, 0.5, 0.32, 1);
}
@media (prefers-reduced-motion: reduce) {
  .ct-row-leaving { transition: none !important; }
  .ct-row-just-edited.is-settling { transition: none !important; }
}

/* ════════════════════════════════════════════════════════════════════════
   CAPABILITY GUIDE — the front door. Doorway cards staggered in; each opens a
   room. Warm, minimal, no feature list.
   ════════════════════════════════════════════════════════════════════════ */
.ct-capability { display: flex; flex-direction: column; align-items: center; padding: 4vh 0 2vh; }
.ct-cap-lead { font-size: 17px; font-weight: 300; color: var(--ct-text, rgba(232,240,255,0.86)); letter-spacing: 0.01em; margin-bottom: 26px; }
.ct-cap-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; max-width: 760px; width: 100%; }
.ct-cap-card {
  display: flex; flex-direction: column; gap: 5px; text-align: left;
  padding: 16px 18px; border: 1px solid var(--ct-hairline, rgba(255,255,255,0.07));
  border-radius: 14px; background: rgba(255,255,255,0.014); cursor: pointer;
  font-family: inherit; color: inherit;
  transition: transform 320ms cubic-bezier(0.22,1,0.36,1), border-color 320ms ease, background 320ms ease;
  animation: ccCapRise 620ms cubic-bezier(0.32,0.5,0.32,1) both;
  animation-delay: calc(120ms + var(--cap-idx, 0) * 80ms);
}
.ct-cap-card:hover, .ct-cap-card:focus-visible { transform: translateY(-3px); border-color: rgba(122,184,245,0.34); background: rgba(122,184,245,0.05); outline: none; }
.ct-cap-label { font-size: 14px; font-weight: 400; color: var(--ct-text, rgba(232,240,255,0.92)); letter-spacing: 0.01em; }
.ct-cap-sub { font-size: 11px; font-weight: 300; color: var(--ct-text-q, rgba(232,240,255,0.46)); letter-spacing: 0.02em; }
.ct-cap-foot { margin-top: 24px; font-size: 12.5px; font-weight: 300; font-style: italic; color: var(--ct-text-q, rgba(232,240,255,0.42)); }
@keyframes ccCapRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ════════════════════════════════════════════════════════════════════════
   MONTH — equity curve. The arc of the period as a drawn line (the hero),
   numbers stay small and inline in the foot. Slow cinematic draw-in.
   ════════════════════════════════════════════════════════════════════════ */
.ct-month-view { display: flex; flex-direction: column; gap: 14px; padding: 6px 2px 2px; }
.ct-month-curve {
  width: 100%; height: 200px; display: block;
  overflow: visible;
}
.ct-mc-zero {
  stroke: var(--ct-hairline, rgba(255,255,255,0.08));
  stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke;
}
.ct-mc-area { opacity: 0; animation: ccMonthArea 900ms ease 720ms forwards; }
.ct-mc-area.is-win  { fill: url(#mcGradWin); fill: rgba(122,184,245,0.10); }
.ct-mc-area.is-loss { fill: rgba(180,188,200,0.07); }
.ct-mc-line {
  fill: none; stroke-width: 2.5; vector-effect: non-scaling-stroke;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: ccMonthDraw 1600ms cubic-bezier(0.4,0,0.2,1) 120ms forwards;
}
.ct-mc-line.is-win  { stroke: var(--ct-cyan, #7ab8f5); filter: drop-shadow(0 0 6px rgba(122,184,245,0.28)); }
.ct-mc-line.is-loss { stroke: var(--ct-ash, rgba(180,188,200,0.78)); }
.ct-mc-dot { opacity: 0; animation: ccMonthDot 520ms cubic-bezier(0.32,0.5,0.32,1) 1500ms forwards; }
.ct-mc-dot.is-win  { fill: var(--ct-cyan-bright, #b8d4f5); filter: drop-shadow(0 0 7px rgba(122,184,245,0.5)); }
.ct-mc-dot.is-loss { fill: var(--ct-ash, rgba(180,188,200,0.82)); }
.ct-month-note {
  font-size: 13px; font-weight: 300; line-height: 1.55; letter-spacing: 0.01em;
  color: var(--ct-text-2, rgba(232,240,255,0.66));
  opacity: 0; animation: ccMonthNote 700ms ease 1300ms forwards;
}
.ct-month-note::before { content: '— '; color: var(--ct-text-q, rgba(232,240,255,0.4)); }
.ct-foot .ct-v.is-win  { color: var(--ct-cyan-bright, #b8d4f5); }
.ct-foot .ct-v.is-loss { color: var(--ct-ash, rgba(180,188,200,0.82)); }
@keyframes ccMonthDraw { to { stroke-dashoffset: 0; } }
@keyframes ccMonthArea { from { opacity: 0; } to { opacity: 1; } }
@keyframes ccMonthDot  { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: scale(1); } }
@keyframes ccMonthNote { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ── THE MONTH — interactive calendar ─────────────────────────────────────
   7-column grid; each traded day carries its net P&L. Wins cyan, losses ASH
   (never red), flat dim, untraded days faint. Today gets a cyan ring. Traded
   cells are clickable (data-prompt → ask Loryn about that day). */
.ct-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.ct-cal-head { margin-bottom: 2px; }
.ct-cal-dow {
  text-align: center; font-size: 9px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(232, 240, 255, 0.28);
}
.ct-cal-days { animation: ccMonthArea 600ms ease 160ms both; }
.ct-cal-cell {
  min-height: 50px; border-radius: 9px; padding: 7px 9px;
  border: 1px solid transparent; background: rgba(255, 255, 255, 0.012);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform 220ms cubic-bezier(0.22,1,0.36,1), border-color 220ms ease, background 220ms ease;
}
.ct-cal-cell.is-pad   { background: transparent; border: none; }
.ct-cal-cell.is-empty { background: rgba(255, 255, 255, 0.012); }
.ct-cal-num { font-size: 11px; font-weight: 500; color: rgba(232, 240, 255, 0.48); font-variant-numeric: tabular-nums; }
.ct-cal-pnl { font-family: var(--ct-mono, ui-monospace, monospace); font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.ct-cal-cell.cal-win  { background: rgba(122, 184, 245, 0.06); border-color: rgba(122, 184, 245, 0.16); }
.ct-cal-cell.cal-win  .ct-cal-pnl { color: var(--ct-cyan-bright, #9cc6f5); }
.ct-cal-cell.cal-loss { background: rgba(180, 188, 200, 0.045); border-color: rgba(180, 188, 200, 0.12); }
.ct-cal-cell.cal-loss .ct-cal-pnl { color: var(--ct-ash, rgba(180, 188, 200, 0.82)); }
.ct-cal-cell.cal-flat .ct-cal-pnl { color: rgba(232, 240, 255, 0.38); }
.ct-cal-cell.is-today { box-shadow: inset 0 0 0 1px rgba(122, 184, 245, 0.5); }
.ct-cal-cell.is-today .ct-cal-num { color: var(--ct-cyan-bright, #9cc6f5); }
.ct-cal-cell[role="button"] { cursor: pointer; }
.ct-cal-cell[role="button"]:hover,
.ct-cal-cell[role="button"]:focus-visible {
  transform: translateY(-2px); border-color: rgba(122, 184, 245, 0.4);
  background: rgba(122, 184, 245, 0.08); outline: none;
}

/* ════════════════════════════════════════════════════════════════════════
   SPOKEN RESPONSE — the composed answer, surfacing from the void.
   Slow, subtle, varied gestures (lead rises from the deep; read settles in
   place; the move blooms). Her words, not a paragraph. Nothing flashy.
   ════════════════════════════════════════════════════════════════════════ */
.cc-spoken {
  position: relative; width: min(680px, 86%); margin: 0 auto; padding-left: 30px;
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
}
/* ORDINARY CONVERSATION — a greeting, a check-in, an acknowledgment. No data,
   no recommendation. Drop the left voice-channel bar and the left-aligned
   pull-quote feel: just a calm, centered line (or two) near the orb. This is
   what a simple "Good morning, sir." should look like — not a formatted quote
   jammed against the top-left. */
.cc-spoken.is-plain { padding-left: 0; text-align: center; width: min(620px, 80%); }
.cc-spoken.is-plain .cc-sp-channel { display: none; }
.cc-spoken.is-plain .cc-sp-lead { font-size: 17px; font-weight: 400; }
.cc-spoken.is-plain .cc-sp-read { margin-top: 10px; color: rgba(233,241,255,0.52); max-width: none; }

/* her voice channel — draws down the left */
.cc-sp-channel {
  position: absolute; left: 0; top: 4px; width: 2px; height: 0; border-radius: 2px; opacity: 0;
  background: linear-gradient(180deg, rgba(170,205,255,0.6), rgba(122,184,245,0.28) 40%, rgba(122,184,245,0.02));
}
.cc-spoken.play .cc-sp-channel { animation: ccSpDraw 2000ms cubic-bezier(0.14,0.7,0.22,1) 150ms forwards; }
@keyframes ccSpDraw { 0%{height:0;opacity:0;} 22%{opacity:1;} 100%{height:calc(100% - 8px);opacity:1;} }

.cc-sp-b { opacity: 0; }   /* hidden until the chamber plays it */

/* lead — rises up out of the deep (the biggest emergence) */
.cc-sp-lead {
  font-size: 18px; font-weight: 400; line-height: 1.5; letter-spacing: 0.004em;
  color: rgba(233,241,255,0.97);
  transform: translateY(38px) scale(0.96); filter: blur(10px);
}
.cc-spoken.play .cc-sp-lead {
  animation: ccSpSurface 1700ms cubic-bezier(0.14,0.7,0.22,1) both;
  animation-delay: calc(320ms + var(--sp-i) * 440ms);
}
@keyframes ccSpSurface { 0%{opacity:0;transform:translateY(38px) scale(0.96);filter:blur(10px);} 30%{opacity:.5;} 100%{opacity:1;transform:none;filter:none;} }

/* read — just settles into focus in place (quieter, barely travels) */
.cc-sp-read {
  margin-top: 14px; font-size: 14px; font-weight: 300; line-height: 1.7;
  color: rgba(233,241,255,0.6); max-width: 600px; filter: blur(4px);
}
.cc-spoken.play .cc-sp-read,
.cc-spoken.play .cc-sp-visual {
  animation: ccSpSettle 1500ms cubic-bezier(0.33,0,0.2,1) both;
  animation-delay: calc(320ms + var(--sp-i) * 440ms);
}
@keyframes ccSpSettle { 0%{opacity:0;filter:blur(4px);} 100%{opacity:1;filter:blur(0);} }

/* the visual (engine's primary, rendered compact) */
.cc-sp-visual { margin-top: 20px; }
.cc-sp-stat { display: flex; flex-direction: column; gap: 4px; }
.cc-sp-vk { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(233,241,255,0.34); }
.cc-sp-vv { font-size: 18px; font-weight: 400; color: rgba(207,227,255,0.95); font-variant-numeric: tabular-nums; }
.cc-sp-vv.is-loss { color: rgba(188,196,208,0.94); }

/* the move — the dot blooms from a point, the text settles after */
.cc-sp-move { margin-top: 22px; display: flex; gap: 12px; align-items: flex-start; max-width: 600px; }
.cc-sp-dot {
  margin-top: 7px; width: 6px; height: 6px; border-radius: 50%; background: #7ab8f5;
  box-shadow: 0 0 6px rgba(122,184,245,0.4); flex: 0 0 auto; transform: scale(0); opacity: 0;
}
.cc-spoken.play .cc-sp-move .cc-sp-dot { animation: ccSpBloom 1300ms cubic-bezier(0.14,0.7,0.22,1) both; animation-delay: calc(320ms + var(--sp-i) * 440ms); }
@keyframes ccSpBloom { 0%{transform:scale(0);opacity:0;} 55%{opacity:1;} 100%{transform:scale(1);opacity:1;} }
.cc-sp-mtxt { font-size: 14px; font-weight: 300; line-height: 1.6; color: rgba(233,241,255,0.8); }
.cc-spoken.play .cc-sp-move .cc-sp-mtxt { animation: ccSpSettle 1400ms cubic-bezier(0.33,0,0.2,1) both; animation-delay: calc(440ms + var(--sp-i) * 440ms); }
.cc-spoken.play .cc-sp-move { opacity: 1; }

/* $ figures lit inline — ash for losses, cyan for gains (show, don't tell) */
.cc-sp-fig { font-variant-numeric: tabular-nums; }
.cc-sp-fig.is-loss { color: rgba(188,196,208,0.94); }
.cc-sp-fig.is-win  { color: rgba(184,212,245,0.95); }

/* ════════════════════════════════════════════════════════════════════════
   WALK-THROUGH — long answers presented as wide chapters you advance through.
   No scroll, no block: one chapter at a time, each surfacing from the void;
   the previous recedes as the next rises. Continue / dots / arrow keys.
   ════════════════════════════════════════════════════════════════════════ */
.cc-walk { position: relative; width: min(680px, 86%); margin: 0 auto; }
.cc-wk-stage { position: relative; }
.cc-wk-chapter { display: none; position: relative; padding-left: 30px; }
.cc-wk-chapter.is-active { display: block; }
.cc-wk-chapter.cc-wk-recede {
  display: block; position: absolute; top: 0; left: 0; right: 0;
  animation: ccVoidRecede 460ms cubic-bezier(0.4,0,0.7,1) forwards; pointer-events: none;
}
/* her voice channel per chapter (reuses ccSpDraw from the Spoken block) */
.cc-wk-chapter .cc-sp-channel { position: absolute; left: 0; top: 4px; }
.cc-wk-chapter.play .cc-sp-channel { animation: ccSpDraw 1600ms cubic-bezier(0.14,0.7,0.22,1) 120ms forwards; }
/* the chapter text surfaces from the deep */
.cc-wk-text {
  font-size: 15px; font-weight: 300; line-height: 1.72; color: rgba(233,241,255,0.74);
  max-width: 620px; letter-spacing: 0.005em;
  opacity: 0; transform: translateY(34px) scale(0.96); filter: blur(9px);
}
.cc-wk-text.is-lead { font-size: 18px; font-weight: 400; color: rgba(233,241,255,0.97); }
.cc-wk-chapter.play .cc-wk-text { animation: ccSpSurface 1600ms cubic-bezier(0.14,0.7,0.22,1) 240ms both; }
.cc-wk-visual { margin-top: 18px; opacity: 0; }
.cc-wk-chapter.play .cc-wk-visual { animation: ccSpSettle 1300ms cubic-bezier(0.33,0,0.2,1) 900ms both; }

/* nav — quiet dots + a Continue cue */
.cc-wk-nav { display: flex; align-items: center; gap: 18px; margin-top: 28px; padding-left: 30px; }
.cc-wk-dots { display: flex; gap: 7px; }
.cc-wk-dot {
  width: 5px; height: 5px; border-radius: 50%; background: rgba(233,241,255,0.18); cursor: pointer;
  transition: background 320ms ease, transform 320ms ease, box-shadow 320ms ease;
}
.cc-wk-dot.is-on { background: #7ab8f5; box-shadow: 0 0 6px rgba(122,184,245,0.5); transform: scale(1.2); }
.cc-wk-next {
  background: transparent; border: 0; padding: 0; cursor: pointer; font-family: inherit;
  font-size: 12.5px; font-weight: 300; letter-spacing: 0.02em; color: rgba(122,184,245,0.9);
  transition: opacity 320ms ease, color 220ms ease;
}
.cc-wk-next:hover { color: rgba(170,210,255,1); }
.cc-wk-next.is-done { opacity: 0; pointer-events: none; }

/* ════════════════════════════════════════════════════════════════════════
   STRATEGY workbench — the rules you trade by, split into what she can hold you
   to (fills) vs what's yours to judge. Participatory, not a data mirror.
   ════════════════════════════════════════════════════════════════════════ */
.ct-strat-brief {
  font-size: 14px; font-weight: 300; line-height: 1.6; color: var(--ct-text-2);
  letter-spacing: 0.01em; padding: 4px 2px 8px;
}
.ct-rule-group { margin-top: 16px; }
.ct-rule-gk {
  font-size: 9px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ct-cyan); margin-bottom: 8px;
}
.ct-rule-group.is-disc .ct-rule-gk { color: var(--ct-ash); }
.ct-rule-row {
  display: flex; align-items: baseline; gap: 12px; padding: 7px 0;
  border-bottom: 1px solid var(--ct-hairline);
}
.ct-rule-row:last-child { border-bottom: 0; }
.ct-rule-dot {
  flex: 0 0 auto; width: 5px; height: 5px; border-radius: 50%; margin-top: 6px;
  background: var(--ct-cyan); box-shadow: 0 0 6px rgba(122,184,245,0.45);
}
.ct-rule-group.is-disc .ct-rule-dot { background: var(--ct-ash); box-shadow: none; opacity: 0.7; }
.ct-rule-text {
  font-size: 14px; font-weight: 300; line-height: 1.5; color: var(--ct-text);
  letter-spacing: 0.005em;
}
.ct-strat-foot-note {
  margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--ct-hairline);
  font-size: 12px; font-weight: 300; font-style: italic; color: var(--ct-text-3);
  letter-spacing: 0.01em;
}
/* ── Adherence scorecard rows (measurable rules scored vs today + history) ── */
.ct-sc-row { padding: 9px 0 8px; border-bottom: 1px solid var(--ct-hairline); }
.ct-sc-row:last-child { border-bottom: 0; }
.ct-sc-main { display: flex; align-items: baseline; gap: 11px; }
.ct-sc-dot {
  flex: 0 0 auto; width: 5px; height: 5px; border-radius: 50%; margin-top: 6px;
  background: var(--ct-ash); transition: background 0.3s ease, box-shadow 0.3s ease;
}
.ct-sc-row.is-kept  .ct-sc-dot { background: var(--ct-cyan); box-shadow: 0 0 7px rgba(122,184,245,0.5); }
.ct-sc-row.is-broke .ct-sc-dot { background: var(--ct-ash); box-shadow: 0 0 6px rgba(180,188,200,0.28); }
.ct-sc-text {
  flex: 1 1 auto; font-size: 14px; font-weight: 300; line-height: 1.5;
  color: var(--ct-text); letter-spacing: 0.005em;
}
.ct-sc-status {
  flex: 0 0 auto; display: inline-flex; align-items: baseline; gap: 7px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ct-ash);
}
.ct-sc-row.is-kept  .ct-sc-status { color: var(--ct-cyan); }
.ct-sc-row.is-broke .ct-sc-status { color: var(--ct-text-2); }
.ct-sc-metric {
  font-size: 11px; font-weight: 400; letter-spacing: 0.02em; text-transform: none;
  color: var(--ct-text-3);
}
.ct-sc-evidence {
  margin: 5px 0 0 16px; font-size: 11px; font-weight: 300; letter-spacing: 0.01em;
  color: var(--ct-text-3); display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline;
}
.ct-sc-ev-kept  { color: var(--ct-cyan); opacity: 0.85; }
.ct-sc-ev-broke { color: var(--ct-ash); }
.ct-sc-ev-sep   { opacity: 0.4; }
/* empty — the invitation to tell her your strategy */
.ct-strat-empty { padding: 8vh 8% 6vh; text-align: center; }
.ct-strat-empty-lead { font-size: 17px; font-weight: 400; color: var(--ct-text); letter-spacing: 0.01em; }
.ct-strat-empty-sub {
  margin-top: 12px; font-size: 13px; font-weight: 300; line-height: 1.6;
  color: var(--ct-text-3); max-width: 460px; margin-left: auto; margin-right: auto;
}

/* Her read on top of the Notes / Objectives workbenches — the participatory
   "she's reading across this" line (matches the Strategy brief). */
.ct-notes-brief, .ct-obj-brief {
  font-size: 14px; font-weight: 300; line-height: 1.6; color: var(--ct-text-2);
  letter-spacing: 0.01em; padding: 2px 2px 14px; margin-bottom: 4px;
  border-bottom: 1px solid var(--ct-hairline);
}
.ct-obj-brief { margin-bottom: 14px; }

/* Workbench launchpad CTAs — tap to drop into working on it with Loryn.
   These route through .cc-action (into a real turn). Quiet, tappable, on-brand. */
.ct-cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--ct-hairline); }
.ct-cta {
  font-family: var(--ct-font); font-size: 12.5px; font-weight: 300; letter-spacing: 0.01em;
  color: var(--ct-cyan); background: rgba(122,184,245,0.05);
  border: 1px solid rgba(122,184,245,0.18); border-radius: 999px;
  padding: 7px 15px; cursor: pointer;
  transition: background 240ms var(--ct-ease), border-color 240ms var(--ct-ease), transform 140ms var(--ct-ease), color 240ms var(--ct-ease);
}
.ct-cta:hover { background: rgba(122,184,245,0.10); border-color: rgba(122,184,245,0.42); color: var(--ct-cyan-bright); }
.ct-cta:active { transform: scale(0.97); }
.ct-cta:focus-visible { outline: none; box-shadow: 0 0 0 1px rgba(122,184,245,0.5); }

/* ════════════════════════════════════════════════════════════════════════
   THE DOCTRINE — Strategy room. An accountability ledger, NOT a rule list.
   Engraved / instrument-panel feel; deliberately unlike the Objectives cards.
   Broke = muted ember (warm gold), NEVER red (ASH house rule). Held = cyan.
   ════════════════════════════════════════════════════════════════════════ */
/* "Broke" is NOT a warm/alarm colour — no yellow, no red (ASH house rule). It's a
   muted, desaturated COOL grey: the ABSENCE of cyan reads as "this line went dark
   today". Held = cyan (the life). Your-call = dimmest. Everything stays in the
   cyan / white / black world. */
.ct-panel.ct-doc { --doc-ember: rgba(232, 240, 255, 0.58); --doc-ember-soft: rgba(232, 240, 255, 0.10);
  display: flex; flex-direction: column; height: 100%; min-height: 0; }
.ct-doc-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0 2px 14px; border-bottom: 1px solid var(--ct-hairline); margin-bottom: 16px;
}
.ct-doc-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.30em; text-transform: uppercase;
  color: var(--ct-text-2); font-weight: 600;
}
.ct-doc-num {
  font-variant-numeric: tabular-nums; font-size: 10px; letter-spacing: 0.1em;
  color: var(--ct-cyan); border: 1px solid var(--ct-cyan-soft);
  border-radius: 5px; padding: 2px 6px;
}
.ct-doc-sub { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ct-text-3); }

/* Two-column grid — ledger left, Loryn's witness column right. */
.ct-doc-grid { display: grid; grid-template-columns: 1fr 230px; gap: 26px; min-height: 0; flex: 1 1 auto; }
.ct-doc-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }

/* ── Integrity hero — the discipline gauge. ── */
.ct-doc-integrity { display: flex; align-items: center; gap: 22px; padding: 4px 2px 18px; }
.ct-doc-gauge { position: relative; width: 104px; height: 104px; flex: 0 0 auto; }
.ct-doc-gauge svg { width: 100%; height: 100%; display: block; }
.ct-doc-g-track { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 5; }
.ct-doc-g-fill {
  fill: none; stroke: var(--ct-cyan); stroke-width: 5; stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: 55px 55px;
  stroke-dasharray: 289.03; stroke-dashoffset: 289.03;
  filter: drop-shadow(0 0 4px var(--ct-cyan-glow));
  animation: ctDocGauge 1150ms cubic-bezier(0.22, 1, 0.36, 1) 220ms forwards;
}
@keyframes ctDocGauge { to { stroke-dashoffset: var(--doc-off, 289.03); } }
/* Gauge ring is ALWAYS cyan (the life source) — the NUMBER carries low vs high,
   not a warm colour. Weak just dims the glow a touch. */
.ct-doc-gauge.is-weak  .ct-doc-g-fill { stroke: var(--ct-cyan); filter: none; opacity: 0.7; }
.ct-doc-gauge.is-idle  .ct-doc-g-fill { stroke: var(--ct-text-q); filter: none; }
.ct-doc-g-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px;
}
.ct-doc-g-num {
  font-size: 30px; font-weight: 300; letter-spacing: -0.02em; color: var(--ct-text);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.ct-doc-gauge.is-strong .ct-doc-g-num { color: var(--ct-cyan-bright); }
.ct-doc-g-unit { font-size: 8.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ct-text-3); }
.ct-doc-int-meta { display: flex; flex-direction: column; gap: 9px; }
.ct-doc-int-row { display: flex; align-items: baseline; gap: 9px; }
.ct-doc-int-k { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ct-text-3); min-width: 52px; }
.ct-doc-int-v { font-size: 13px; color: var(--ct-text); font-variant-numeric: tabular-nums; }

/* ── The ledger — staves. ── */
.ct-doc-ledger { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 6px; margin: 0 -2px; }
.ct-doc-ledger::-webkit-scrollbar { width: 5px; }
.ct-doc-ledger::-webkit-scrollbar-thumb { background: var(--ct-hairline-bright); border-radius: 3px; }

.ct-doc-stave {
  display: grid; grid-template-columns: 26px 3px 1fr; gap: 12px; align-items: stretch;
  padding: 13px 4px; border-bottom: 1px solid var(--ct-hairline);
  opacity: 0; transform: translateY(7px); animation: ctDocStave 620ms cubic-bezier(0.22,1,0.36,1) both;
}
.ct-doc-ledger .ct-doc-stave:nth-child(1) { animation-delay: 260ms; }
.ct-doc-ledger .ct-doc-stave:nth-child(2) { animation-delay: 320ms; }
.ct-doc-ledger .ct-doc-stave:nth-child(3) { animation-delay: 380ms; }
.ct-doc-ledger .ct-doc-stave:nth-child(4) { animation-delay: 440ms; }
.ct-doc-ledger .ct-doc-stave:nth-child(n+5) { animation-delay: 500ms; }
@keyframes ctDocStave { to { opacity: 1; transform: none; } }
.ct-doc-stave:last-child { border-bottom: 0; }
.ct-doc-n {
  font-variant-numeric: tabular-nums; font-size: 11px; letter-spacing: 0.06em;
  color: var(--ct-text-q); padding-top: 2px; font-feature-settings: 'tnum';
}
.ct-doc-rail { background: var(--ct-hairline); border-radius: 2px; }
.ct-doc-stave.is-held  .ct-doc-rail { background: linear-gradient(var(--ct-cyan), var(--ct-cyan-soft)); box-shadow: 0 0 7px var(--ct-cyan-glow); }
.ct-doc-stave.is-broke .ct-doc-rail { background: linear-gradient(var(--doc-ember), var(--doc-ember-soft)); }
.ct-doc-stave.is-disc  .ct-doc-rail { background: var(--ct-hairline-bright); }
.ct-doc-body { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ct-doc-line { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.ct-doc-text { font-size: 14px; line-height: 1.34; color: var(--ct-text); letter-spacing: -0.005em; }
.ct-doc-stave.is-disc .ct-doc-text { color: var(--ct-text-2); }

.ct-doc-verdict {
  flex: 0 0 auto; display: inline-flex; align-items: baseline; gap: 8px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ct-text-3); white-space: nowrap;
}
.ct-doc-stave.is-held  .ct-doc-verdict { color: var(--ct-cyan); }
.ct-doc-stave.is-broke .ct-doc-verdict { color: var(--doc-ember); }
/* Stated intentions (un-gradeable) — quiet, lowercase, NON-judgmental. Reads
   "not in fills", not "your call": she's holding it, not handing the work back. */
.ct-doc-verdict.is-stated { color: var(--ct-text-q); font-weight: 500; font-style: italic; text-transform: none; letter-spacing: 0.02em; opacity: 0.7; }
.ct-doc-metric { font-weight: 500; letter-spacing: 0.02em; color: var(--ct-text-2); text-transform: none; font-variant-numeric: tabular-nums; }

.ct-doc-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ct-doc-streak {
  position: relative; font-size: 10.5px; letter-spacing: 0.04em; color: var(--ct-cyan);
  padding-left: 13px; text-transform: lowercase;
}
.ct-doc-streak::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ct-cyan); box-shadow: 0 0 6px var(--ct-cyan-glow), -4px 0 0 -2px var(--ct-cyan-soft);
}
.ct-doc-ev { font-size: 10.5px; letter-spacing: 0.02em; color: var(--ct-text-3); font-variant-numeric: tabular-nums; }
.ct-doc-ev-k { color: var(--ct-cyan); opacity: 0.82; }
.ct-doc-ev-b { color: var(--doc-ember); opacity: 0.82; }
.ct-doc-ev-sep { color: var(--ct-text-q); margin: 0 6px; }

.ct-doc-divider {
  display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; padding-left: 4px;
  font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ct-text-q);
}
.ct-doc-divider::after { content: ''; flex: 1 1 auto; height: 1px; background: var(--ct-hairline); }

.ct-doc-foot { padding-top: 14px; }
.ct-doc-add {
  font-size: 12px; letter-spacing: 0.04em; color: var(--ct-text-2);
  background: transparent; border: 1px dashed var(--ct-hairline-bright);
  border-radius: 9px; padding: 9px 15px; cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.ct-doc-add:hover { color: var(--ct-cyan); border-color: var(--ct-cyan-soft); background: var(--ct-cyan-faint); }

/* ── Loryn's witness column (right). ── */
.ct-doc-aside {
  border-left: 1px solid var(--ct-hairline); padding-left: 22px;
  display: flex; flex-direction: column; gap: 13px;
  opacity: 0; animation: ctDocAside 800ms cubic-bezier(0.22,1,0.36,1) 420ms forwards;
}
@keyframes ctDocAside { to { opacity: 1; } }
@keyframes ctDocBreath { 0%,100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.07); opacity: 1; } }
.ct-doc-aside-k { font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ct-text-3); }
.ct-doc-verdict-line { font-size: 13.5px; line-height: 1.5; color: var(--ct-text); letter-spacing: -0.003em; }
.ct-doc-verdict-line b { color: var(--ct-cyan-bright); font-weight: 600; }
.ct-doc-aside-hint { margin-top: auto; font-size: 11px; line-height: 1.5; color: var(--ct-text-q); letter-spacing: 0.01em; }

/* ── Empty state — the seal. ── */
.ct-doc-empty { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 30px; }
.ct-doc-seal { width: 64px; height: 64px; opacity: 0.5; animation: ctDocBreath 5s ease-in-out infinite; }
.ct-doc-seal svg { width: 100%; height: 100%; fill: none; stroke: var(--ct-cyan); stroke-width: 1; }
.ct-doc-seal circle { opacity: 0.5; } .ct-doc-seal path { opacity: 0.32; }
.ct-doc-empty-lead { font-size: 17px; font-weight: 300; color: var(--ct-text); letter-spacing: -0.01em; }
.ct-doc-empty-sub { font-size: 13px; line-height: 1.6; color: var(--ct-text-3); max-width: 420px; }

/* Narrower desktop widths: collapse the witness column under the ledger. */
@media (max-width: 1180px) {
  .ct-doc-grid { grid-template-columns: 1fr; gap: 16px; }
  .ct-doc-aside { border-left: 0; border-top: 1px solid var(--ct-hairline); padding-left: 0; padding-top: 14px; }
  .ct-doc-aside-hint { margin-top: 6px; }
}

/* In-progress (weekly rule, current week not yet closed) — cyan, alive, NOT a
   verdict. Distinct from held/broke so a tracking week never reads as a pass/fail. */
.ct-doc-stave.is-prog .ct-doc-verdict { color: var(--ct-cyan); opacity: 0.82; font-weight: 600; }
.ct-doc-stave.is-prog .ct-doc-rail { background: linear-gradient(rgba(122,184,245,0.5), rgba(122,184,245,0.12)); }
.ct-sc-row.is-prog .ct-sc-dot { background: var(--ct-cyan); opacity: 0.6; box-shadow: 0 0 6px rgba(122,184,245,0.4); }
.ct-sc-row.is-prog .ct-sc-status { color: var(--ct-cyan); opacity: 0.85; }

/* ── #14 — In-pane thinking dots. While Loryn responds in a right-pane room
   (Notes / Objectives / Strategy), the thinking animation lives in the chat pane,
   not at the center orb. Reuses the global ccThinkPulse keyframe. ── */
.ct-ws-thinking { display: none; align-items: center; gap: 6px; height: 6px; margin: 2px 0 12px; padding-left: 2px; }
body.cc-state-thinking.cc-ws-room .ct-ws-thinking { display: flex; }
.ct-ws-thinking span { width: 5px; height: 5px; border-radius: 50%; background: rgba(122,184,245,0.7); animation: ccThinkPulse 1400ms ease-in-out infinite; }
.ct-ws-thinking span:nth-child(2) { animation-delay: 220ms; }
.ct-ws-thinking span:nth-child(3) { animation-delay: 440ms; }
/* In a right-pane room the center-orb cue yields to the pane cue. */
body.cc-state-thinking.cc-ws-room .cc-thinking-cue { display: none !important; }

/* ── #13 — Strategy doctrine aside as a live chat pane. Her reply renders here
   (the .cc-spoken block) just like the Notes/Objectives right column. ── */
.ct-doc-aside-body .cc-spoken, .ct-doc-aside-body .cc-walk { width: 100%; max-width: none; margin: 0; text-align: left; }
