/* ─────────────────────────────────────────────────────────────────────
   Finaz C02-B · Tokens
   Two style directions (A = editorial functional, B = editorial libre)
   ───────────────────────────────────────────────────────────────────── */

/* Style A — Editorial functional (Stripe / Linear / Bloomberg refined) */
.style-a {
  --bg: #FFFFFF;
  --bg-elev-1: #F7F8FA;
  --bg-elev-2: #F0F2F5;
  --bg-card: #FFFFFF;
  --bg-inverse: #0E1116;

  --ink: #0E1116;
  --ink-strong: #050709;
  --ink-muted: #5A6473;
  --ink-quiet: #8C95A3;
  --ink-on-inverse: #F7F8FA;

  --rule: #E5E8EC;
  --rule-strong: #C8CDD4;
  --rule-quiet: #EFF1F4;

  --accent: #0F766E;
  --accent-soft: #E6F2F0;
  --accent-deep: #0A5A54;

  --green: #15803D;
  --green-soft: #E7F3EC;
  --amber: #B45309;
  --amber-soft: #FBEFDC;
  --red: #B91C1C;
  --red-soft: #FCE7E7;

  --type-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --type-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --type-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  --type-serif: "Source Serif 4", Georgia, serif;

  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-1: 0 1px 0 rgba(14, 17, 22, 0.04), 0 1px 3px rgba(14, 17, 22, 0.03);
  --shadow-2: 0 1px 0 rgba(14, 17, 22, 0.04), 0 8px 24px rgba(14, 17, 22, 0.06);
  --shadow-pop: 0 12px 36px rgba(14, 17, 22, 0.12), 0 0 0 0.5px rgba(14, 17, 22, 0.06);

  --motion-fast: 120ms cubic-bezier(0.2, 0.7, 0.3, 1);
  --motion: 180ms cubic-bezier(0.2, 0.7, 0.3, 1);

  --letter-tight: -0.012em;
  --letter-display: -0.022em;
}

/* Style A · dark */
.style-a.dark {
  --bg: #0B0D10;
  --bg-elev-1: #14181D;
  --bg-elev-2: #1B2026;
  --bg-card: #14181D;
  --bg-inverse: #F7F8FA;

  --ink: #E7EAEE;
  --ink-strong: #FFFFFF;
  --ink-muted: #9098A4;
  --ink-quiet: #6B7280;
  --ink-on-inverse: #0E1116;

  --rule: #232931;
  --rule-strong: #313943;
  --rule-quiet: #1B2026;

  --accent: #2DD4BF;
  --accent-soft: #0E2E2B;
  --accent-deep: #5EEAD4;

  --green: #4ADE80;
  --green-soft: #0F2A1A;
  --amber: #F59E0B;
  --amber-soft: #2A1F0B;
  --red: #F87171;
  --red-soft: #2B1414;

  --shadow-1: 0 1px 0 rgba(0,0,0,0.4), 0 1px 3px rgba(0,0,0,0.3);
  --shadow-2: 0 1px 0 rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.5);
  --shadow-pop: 0 16px 48px rgba(0,0,0,0.6), 0 0 0 0.5px rgba(255,255,255,0.06);
}

/* Style B — Editorial libre (FT Weekend / Pentagram digital) */
.style-b {
  --bg: #F5EFE6;
  --bg-elev-1: #EDE5D7;
  --bg-elev-2: #E4DAC8;
  --bg-card: #FFFFFF;
  --bg-inverse: #1A1410;

  --ink: #1A1410;
  --ink-strong: #0A0604;
  --ink-muted: #5E544B;
  --ink-quiet: #8B8073;
  --ink-on-inverse: #F5EFE6;

  --rule: #D9CFBE;
  --rule-strong: #B8AC97;
  --rule-quiet: #E5DCCB;

  --accent: #C2410C;
  --accent-soft: #F4DCC9;
  --accent-deep: #9A330A;
  --accent-2: #1E3A5F;
  --accent-2-soft: #D7DDE6;

  --green: #3F6212;
  --green-soft: #E2E5C8;
  --amber: #A16207;
  --amber-soft: #F1DDBA;
  --red: #9F1239;
  --red-soft: #ECCBD2;

  --type-display: "Source Serif 4", "Charter", Georgia, serif;
  --type-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --type-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  --type-serif: "Source Serif 4", "Charter", Georgia, serif;

  --radius-xs: 0px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 10px;

  --shadow-1: 0 1px 0 rgba(26, 20, 16, 0.06), 0 2px 6px rgba(26, 20, 16, 0.04);
  --shadow-2: 0 1px 0 rgba(26, 20, 16, 0.06), 0 12px 28px rgba(26, 20, 16, 0.08);
  --shadow-pop: 0 18px 48px rgba(26, 20, 16, 0.18), 0 0 0 0.5px rgba(26, 20, 16, 0.08);

  --motion-fast: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --motion: 320ms cubic-bezier(0.16, 1, 0.3, 1);

  --letter-tight: -0.018em;
  --letter-display: -0.024em;
}

/* Density modifiers — applied on screen root */
.density-compact   { --pad-screen: 24px; --gap-block: 16px; --pad-card: 14px; --type-scale: 0.95; }
.density-regular   { --pad-screen: 40px; --gap-block: 24px; --pad-card: 20px; --type-scale: 1.00; }
.density-comfy     { --pad-screen: 56px; --gap-block: 32px; --pad-card: 28px; --type-scale: 1.08; }

/* ─────────────────────────────────────────────────────────────────────
   Shared base inside any .screen
   ───────────────────────────────────────────────────────────────────── */
.screen {
  font-family: var(--type-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: calc(15px * var(--type-scale, 1));
  letter-spacing: var(--letter-tight);
  font-feature-settings: "cv11", "ss01";
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.screen *, .screen *::before, .screen *::after { box-sizing: border-box; }

.screen p { margin: 0; }
.screen h1, .screen h2, .screen h3, .screen h4 { margin: 0; font-weight: 500; }

.style-a h1, .style-a h2, .style-a h3, .style-a h4 { font-family: var(--type-display); letter-spacing: var(--letter-display); font-weight: 550; }
.style-b h1, .style-b h2, .style-b h3 { font-family: var(--type-display); letter-spacing: var(--letter-display); font-weight: 400; }
.style-b h4 { font-family: var(--type-body); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 11px; color: var(--ink-muted); }

.mono { font-family: var(--type-mono); font-feature-settings: "tnum", "zero"; }
.tabular { font-variant-numeric: tabular-nums; }

/* Buttons & chips */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: var(--radius-sm);
  font: inherit; font-weight: 500; font-size: 13px;
  border: 0.5px solid var(--rule-strong); background: var(--bg);
  color: var(--ink); cursor: pointer; transition: all var(--motion-fast);
  white-space: nowrap;
}
.btn:hover { background: var(--bg-elev-1); border-color: var(--ink-quiet); }
.btn-primary {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.style-b .btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--ink-strong); }
.style-b .btn-primary:hover { background: var(--accent-deep); }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.style-a.dark .btn-accent { color: var(--bg); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--ink-muted); }
.btn-quiet:hover { background: var(--bg-elev-1); color: var(--ink); }
.btn-sm { padding: 5px 10px; font-size: 12px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.01em;
  background: var(--bg-elev-1); color: var(--ink-muted);
  border: 0.5px solid var(--rule);
}
.chip-mono { font-family: var(--type-mono); font-size: 10.5px; letter-spacing: 0; }
.chip-accent { background: var(--accent-soft); color: var(--accent-deep); border-color: transparent; }
.chip-green  { background: var(--green-soft); color: var(--green); border-color: transparent; }
.chip-amber  { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.chip-red    { background: var(--red-soft);   color: var(--red);   border-color: transparent; }

.kicker {
  font-family: var(--type-mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-muted);
}
.style-b .kicker { font-family: var(--type-body); letter-spacing: 0.16em; font-weight: 600; font-size: 10.5px; }

/* Generic surface */
.card {
  background: var(--bg-card); border: 0.5px solid var(--rule);
  border-radius: var(--radius-md); padding: var(--pad-card, 20px);
}
.style-b .card { box-shadow: var(--shadow-1); }

/* Rule */
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.rule-strong { background: var(--rule-strong); }

/* Disclaimer band */
.disclaimer {
  font-size: 10.5px; color: var(--ink-quiet);
  border-top: 0.5px solid var(--rule);
  padding: 10px 24px;
  letter-spacing: 0.005em;
  flex-shrink: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.disclaimer .mono { color: var(--ink-quiet); font-size: 10px; }

/* Top bar (used by every episode/lab screen) */
.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px;
  border-bottom: 0.5px solid var(--rule);
  background: var(--bg);
  flex-shrink: 0;
}
.topbar .brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink);
}
.topbar .brand-glyph {
  width: 22px; height: 22px; border-radius: 5px;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
  font-family: var(--type-mono);
}
.style-b .topbar .brand-glyph { background: var(--accent); color: #fff; border-radius: 2px; }
.topbar .crumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--ink-muted);
}
.topbar .crumbs .sep { color: var(--ink-quiet); }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* Regla Finaz · breadcrumb stepper */
.regla {
  display: flex; align-items: center; gap: 0; padding: 10px 24px;
  border-bottom: 0.5px solid var(--rule);
  background: var(--bg);
  flex-shrink: 0;
  overflow: hidden;
}
.regla-step {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: var(--ink-quiet);
  font-family: var(--type-mono); letter-spacing: 0.02em;
  white-space: nowrap;
}
.style-b .regla-step { font-family: var(--type-body); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; font-size: 10.5px; }
.regla-step.active { color: var(--ink); }
.regla-step.done { color: var(--ink-muted); }
.regla-num {
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 600;
  border: 0.5px solid var(--rule-strong); color: var(--ink-quiet);
  background: var(--bg);
}
.regla-step.active .regla-num { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.style-b .regla-step.active .regla-num { background: var(--accent); border-color: var(--accent); color: #fff; }
.regla-step.done .regla-num { background: var(--accent-soft); color: var(--accent-deep); border-color: transparent; }
.regla-arrow { color: var(--ink-quiet); margin: 0 12px; font-size: 12px; }

/* Voice player */
.voiceplayer {
  border-top: 0.5px solid var(--rule);
  background: var(--bg-elev-1);
  padding: 14px 24px 12px;
  display: flex; flex-direction: column; gap: 8px;
  flex-shrink: 0;
}
.style-b .voiceplayer { background: var(--bg-card); border-top-color: var(--rule); }
.vp-row { display: flex; align-items: center; gap: 12px; }
.vp-ctrl { display: flex; align-items: center; gap: 4px; }
.vp-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: 0.5px solid var(--rule-strong); background: var(--bg);
  display: grid; place-items: center; cursor: pointer; color: var(--ink);
  transition: all var(--motion-fast);
}
.vp-btn.play { width: 34px; height: 34px; background: var(--ink); color: var(--bg); border-color: var(--ink); }
.style-b .vp-btn.play { background: var(--accent); border-color: var(--accent); color: #fff; }
.vp-btn:hover { background: var(--bg-elev-2); }
.vp-track {
  flex: 1; height: 3px; border-radius: 999px; background: var(--rule);
  position: relative; overflow: hidden;
}
.vp-track-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); border-radius: 999px; }
.style-b .vp-track-fill { background: var(--accent); }
.vp-time { font-family: var(--type-mono); font-size: 11px; color: var(--ink-muted); min-width: 78px; text-align: right; }

.vp-caption {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12.5px; color: var(--ink); line-height: 1.55;
  min-height: 36px;
}
.style-b .vp-caption { font-size: 13.5px; }
.vp-voice {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 10px; font-weight: 600;
  font-family: var(--type-mono); letter-spacing: 0;
  flex-shrink: 0; margin-top: 1px;
}
.vp-voice.s { background: #DCE5DD; color: #1f4d2b; }
.vp-voice.m { background: #E5E0D2; color: #6e5a18; }
.vp-voice.t { background: #DAE3EC; color: #1c3956; }
.style-a.dark .vp-voice.s { background: #1f4d2b; color: #C7E5CC; }
.style-a.dark .vp-voice.m { background: #4d3f10; color: #E5DEC9; }
.style-a.dark .vp-voice.t { background: #1c3956; color: #C7D9E5; }
.vp-cap-text { flex: 1; }
.vp-cap-name { font-weight: 600; color: var(--ink); font-size: 11.5px; margin-right: 6px; }
.vp-cap-cue { font-family: var(--type-mono); font-size: 10px; color: var(--ink-quiet); text-transform: uppercase; letter-spacing: 0.06em; margin-left: 6px; }
.vp-speed {
  font-family: var(--type-mono); font-size: 11px; color: var(--ink-muted);
  padding: 3px 8px; border-radius: var(--radius-sm); border: 0.5px solid var(--rule-strong);
  background: var(--bg); cursor: pointer;
}

/* Info "i" icon */
.info-i {
  display: inline-grid; place-items: center;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-deep);
  font-family: var(--type-mono); font-size: 9px; font-weight: 700;
  cursor: pointer; vertical-align: 1px;
  border: 0.5px solid transparent;
  transition: all var(--motion-fast);
  font-style: normal;
}
.style-b .info-i {
  font-family: var(--type-display); font-style: italic; font-weight: 400;
  font-size: 11px; background: transparent; color: var(--accent);
  border: 0.5px solid var(--accent); width: 16px; height: 16px;
}
.info-i:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.info-i.consulted { background: var(--ink-quiet); color: var(--bg); }
.style-b .info-i.consulted { background: var(--ink-muted); border-color: var(--ink-muted); color: var(--bg); }

/* Token (clickable term inside narrative / formula) */
.tok {
  position: relative; cursor: pointer;
  border-bottom: 1px dashed var(--accent);
  padding: 0 1px;
  transition: background var(--motion-fast);
}
.tok:hover { background: var(--accent-soft); }
.tok-mono { font-family: var(--type-mono); font-size: 0.95em; }

/* Flash card popover */
.flashcard {
  position: absolute; z-index: 50;
  width: 320px; max-width: calc(100% - 32px);
  background: var(--bg-card);
  border: 0.5px solid var(--rule);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  padding: 16px; font-size: 12.5px; line-height: 1.5;
  color: var(--ink);
}
.flashcard .fc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.flashcard .fc-term { font-weight: 600; font-size: 13.5px; color: var(--ink-strong); letter-spacing: -0.005em; }
.style-b .flashcard .fc-term { font-family: var(--type-display); font-weight: 500; font-size: 16px; }
.flashcard .fc-cat { font-size: 9.5px; }
.flashcard .fc-section { margin-top: 10px; }
.flashcard .fc-label {
  font-family: var(--type-mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-quiet); margin-bottom: 3px;
}
.style-b .flashcard .fc-label { font-family: var(--type-body); font-weight: 600; letter-spacing: 0.1em; }
.flashcard .fc-formula {
  font-family: var(--type-mono); font-size: 11.5px;
  background: var(--bg-elev-1); padding: 6px 8px; border-radius: var(--radius-sm);
  color: var(--ink-strong); display: inline-block;
}
.flashcard .fc-mini-q {
  background: var(--accent-soft); padding: 8px 10px; border-radius: var(--radius-sm);
  font-size: 11.5px; color: var(--ink-strong);
}

/* Tutor Finaz panel (right rail) */
.tutor {
  border-left: 0.5px solid var(--rule);
  background: var(--bg);
  padding: 18px;
  display: flex; flex-direction: column; gap: 14px;
  width: 280px; flex-shrink: 0;
  overflow-y: auto;
}
.style-b .tutor { background: var(--bg-elev-1); }
.tutor h4 { display: flex; align-items: center; justify-content: space-between; }
.tutor .tutor-glyph {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-deep);
  display: grid; place-items: center; font-size: 10px; font-weight: 600;
  font-family: var(--type-mono);
}
.style-b .tutor .tutor-glyph { background: var(--accent); color: #fff; }
.tutor-actions { display: flex; flex-direction: column; gap: 6px; }
.tutor-action {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px; border-radius: var(--radius-sm);
  background: var(--bg-elev-1); border: 0.5px solid var(--rule);
  color: var(--ink); font: inherit; font-size: 12px; cursor: pointer;
  text-align: left; transition: all var(--motion-fast);
}
.tutor-action:hover { background: var(--bg-elev-2); border-color: var(--rule-strong); }
.tutor-action .mono { font-size: 10px; color: var(--ink-quiet); margin-left: auto; }
.tutor-msg {
  font-size: 12px; line-height: 1.55; color: var(--ink); padding: 10px 12px;
  background: var(--accent-soft); border-radius: var(--radius-sm);
  border-left: 2px solid var(--accent);
}
.style-b .tutor-msg { border-radius: var(--radius-md); border-left-width: 3px; }
.tutor-msg-name { font-weight: 600; color: var(--accent-deep); display: block; margin-bottom: 2px; font-size: 11px; }
.style-b .tutor-msg-name { color: var(--accent); }

/* Semáforo (verdict buttons) */
.sem-group { display: flex; gap: 8px; }
.sem-btn {
  flex: 1; padding: 12px 14px; border-radius: var(--radius-md);
  border: 0.5px solid var(--rule-strong); background: var(--bg);
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
  cursor: pointer; transition: all var(--motion); font: inherit; color: var(--ink);
  text-align: left;
}
.sem-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }
.sem-btn.active { box-shadow: 0 0 0 1px currentColor inset, var(--shadow-1); }
.sem-dot {
  width: 10px; height: 10px; border-radius: 50%; display: inline-block;
  vertical-align: -1px;
}
.sem-btn.green  { color: var(--green); }
.sem-btn.green  .sem-dot { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.sem-btn.amber  { color: var(--amber); }
.sem-btn.amber  .sem-dot { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.sem-btn.red    { color: var(--red); }
.sem-btn.red    .sem-dot { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.sem-btn .sem-lbl { font-size: 12.5px; font-weight: 600; letter-spacing: -0.005em; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.sem-btn .sem-sub { font-size: 11px; color: var(--ink-muted); }
.sem-btn.active .sem-lbl { color: currentColor; }

/* Module card */
.mod-card {
  background: var(--bg-card); border: 0.5px solid var(--rule);
  border-radius: var(--radius-md); padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
  cursor: pointer; transition: all var(--motion-fast);
  position: relative; overflow: hidden;
}
.mod-card:hover { border-color: var(--rule-strong); transform: translateY(-1px); box-shadow: var(--shadow-1); }
.style-b .mod-card { box-shadow: var(--shadow-1); border-radius: var(--radius-md); }
.mod-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.mod-no { font-family: var(--type-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-quiet); }
.style-b .mod-no { font-family: var(--type-display); font-style: italic; font-size: 14px; letter-spacing: 0; color: var(--accent); font-weight: 400; }
.mod-title { font-size: 16px; font-weight: 550; letter-spacing: -0.012em; color: var(--ink); line-height: 1.3; }
.style-b .mod-title { font-family: var(--type-display); font-weight: 500; font-size: 19px; line-height: 1.2; letter-spacing: var(--letter-display); }
.mod-meta { display: flex; align-items: center; gap: 12px; font-size: 11.5px; color: var(--ink-muted); margin-top: auto; }

/* Progress bar */
.progress-bar { height: 3px; width: 100%; background: var(--rule); border-radius: 999px; overflow: hidden; position: relative; }
.progress-bar-fill { height: 100%; background: var(--accent); border-radius: 999px; }
.progress-bar-mark {
  position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--ink);
}

/* Mastery ring */
.ring { width: 56px; height: 56px; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .ring-bg { stroke: var(--rule); fill: none; }
.ring .ring-fill { stroke: var(--accent); fill: none; transition: stroke-dashoffset var(--motion); }
.ring-num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--type-mono); font-size: 13px; font-weight: 600; color: var(--ink);
}
.style-b .ring-num { font-family: var(--type-display); font-weight: 500; font-size: 17px; }

/* Tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.tbl th, .tbl td { padding: 8px 10px; text-align: left; border-bottom: 0.5px solid var(--rule); vertical-align: middle; }
.tbl th { font-weight: 600; font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); border-bottom: 0.5px solid var(--rule-strong); }
.tbl tbody tr:hover { background: var(--bg-elev-1); }
.tbl .num { font-family: var(--type-mono); font-variant-numeric: tabular-nums; text-align: right; }
.tbl .delta-up { color: var(--red); }
.tbl .delta-down { color: var(--green); }
.tbl .delta-warn { color: var(--amber); }

/* big display number */
.bignum {
  font-family: var(--type-mono); font-size: 56px; line-height: 1; font-weight: 500;
  letter-spacing: -0.03em; color: var(--ink);
}
.style-b .bignum {
  font-family: var(--type-display); font-weight: 400; font-size: 88px;
  letter-spacing: -0.04em; font-feature-settings: "lnum","onum" off;
}

/* Editorial pull (used in style B headlines) */
.style-b .editorial-display {
  font-family: var(--type-display); font-weight: 400;
  font-size: 44px; line-height: 1.05; letter-spacing: -0.025em;
  text-wrap: balance;
}
.style-a .editorial-display {
  font-family: var(--type-display); font-weight: 550;
  font-size: 32px; line-height: 1.15; letter-spacing: -0.022em;
  text-wrap: balance;
}

/* Scrollable inner regions */
.scroll-y { overflow-y: auto; min-height: 0; }
.scroll-y::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll-y::-webkit-scrollbar-thumb { background: var(--rule-strong); border-radius: 4px; }
.scroll-y::-webkit-scrollbar-track { background: transparent; }

/* Status dots */
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; vertical-align: 2px; margin-right: 6px; }
.status-dot.done { background: var(--accent); }
.status-dot.now  { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.status-dot.next { background: var(--rule-strong); }
.status-dot.lock { background: transparent; border: 1px solid var(--ink-quiet); }

/* Highlights */
.hl { background: linear-gradient(180deg, transparent 60%, var(--amber-soft) 60%); padding: 0 2px; }
.style-b .hl { background: linear-gradient(180deg, transparent 55%, #f3e3c4 55%); }

/* utility */
.hstack { display: flex; align-items: center; gap: 8px; }
.vstack { display: flex; flex-direction: column; gap: 12px; }
.spacer { flex: 1; }
.muted { color: var(--ink-muted); }
.quiet { color: var(--ink-quiet); }
.strong { color: var(--ink-strong); font-weight: 600; }
