/* FirmEdge Portal — Page-Component CSS
 * Extracted from FirmEdge Design System (redesign/styles.css, source of truth).
 * Tokens live in static/css/redesign.css :root block — do NOT redefine here.
 *
 * Loaded after redesign.css in base_portal.html so per-page BEM components
 * (.po-, .qu-, .ca-, .bi-, .se-, .ma-, .md-, .dv-, .cd-, .in-, .a-, .b-)
 * pick up the canonical design-system values.
 *
 * Stripped from source (already in redesign.css):
 *   - Google Fonts at-rule
 *   - :root token block
 *   - [data-theme="light"] base token block
 *
 * Kept here (extensions, not duplicates):
 *   - [data-theme="light"] adds --ink-blue* family ONLY (legal-pad blue)
 *   - [data-accent="duo"] / [data-accent="blue"] accent variants
 *   - All marketing + portal page CSS
 *
 * PR #129 P0 fix: removed duplicate light-theme color/shadow tokens that
 * were redeclared identically here, plus a renamed `--shadow-lift` shadow
 * that diverged from canonical `--shadow-card-lift`. Cascade ordering hid
 * a future-edit silent-override; this block now contains zero overlaps
 * with redesign.css and references canonical token names verbatim.
 */

/* ── LIGHT THEME — INK-BLUE EXTENSIONS ──
 * Color/shadow tokens for [data-theme="light"] are canonical in
 * static/css/redesign.css. This block ONLY adds the --ink-blue* family
 * consumed by the [data-accent="duo"] / [data-accent="blue"] variants
 * below and a handful of page components.
 */
[data-theme="light"] {
  --ink-blue:               #28407a;
  --ink-blue-hover:         #3b5499;
  --ink-blue-soft:          rgba(40,64,122,0.10);
  --ink-blue-border:        rgba(40,64,122,0.28);
  --ink-blue-border-strong: rgba(40,64,122,0.50);
}

/* ═════ ACCENT VARIANTS (light theme) ═════
 * Repaints the "gold" semantic tokens so every existing rule picks up
 * the new accent without per-rule overrides. */

/* Duo — gold stays on CTAs (money-green instinct), blue on italic serif + rules */
[data-theme="light"][data-accent="duo"] {
  /* Italic emphasis, section marks, digest headers → blue */
  --gold:                 #28407a;
  --gold-hover:           #3b5499;
  /* CTAs + soft backgrounds keep gold warmth */
  --cta-bg:               #a88a30;
  --cta-bg-hover:         #c9a84c;
  --cta-ink:              #ffffff;
  /* Subtle gold-tint borders on cards — keeps editorial paper feel */
  --gold-border:          rgba(40,64,122,0.22);
  --gold-border-strong:   rgba(40,64,122,0.45);
  --gold-soft:            rgba(40,64,122,0.08);
  --shadow-cta:           0 4px 24px rgba(169,136,48,0.22);
  --shadow-cta-hover:     0 8px 32px rgba(169,136,48,0.32);
}

/* All-blue — ink replaces gold entirely */
[data-theme="light"][data-accent="blue"] {
  --gold:                 #28407a;
  --gold-hover:           #3b5499;
  --gold-border:          rgba(40,64,122,0.28);
  --gold-border-strong:   rgba(40,64,122,0.50);
  --gold-soft:            rgba(40,64,122,0.08);
  --cta-bg:               #28407a;
  --cta-bg-hover:         #3b5499;
  --cta-ink:              #f4efe6;
  --shadow-cta:           0 4px 24px rgba(40,64,122,0.25);
  --shadow-cta-hover:     0 8px 32px rgba(40,64,122,0.38);
  --shadow-card-lift:     0 10px 30px rgba(40,64,122,0.14);
}

/* Dark theme variants — blue reads brighter on navy */
[data-theme="dark"][data-accent="duo"],
[data-theme="dark"][data-accent="blue"] {
  --cta-bg:               var(--gold);
  --cta-bg-hover:         var(--gold-hover);
  --cta-ink:              #0a1628;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* scroll-padding-top clears the fixed .fe-nav (~60px) so in-page anchor
 * jumps (#alex, #how, #pricing, #faq, …) land the section mark below the
 * nav instead of tucked under it. Without it, every anchored section
 * reads as "content cut off at the top". Scoped via :has(.fe-nav) to the
 * marketing landing, which is the only surface that renders that class —
 * this stylesheet is shared with base_portal.html (whose nav is
 * .fe-nav-portal) and the editorial error pages (.fe-nav-monogram), so an
 * unscoped html rule would change anchor-jump behavior across the portal.
 * Old browsers without :has() simply get no scroll-padding (today's
 * behavior) — graceful degradation, no breakage. */
html:has(.fe-nav) { scroll-padding-top: 92px; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); font-weight: 700; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: var(--bg); }

.fe-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}

/* ── BUTTONS ── */
.fe-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 700; font-size: 14px;
  padding: 11px 22px; border-radius: 7px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease, box-shadow .2s ease, border-color .15s ease, color .15s ease, transform .15s ease;
  white-space: nowrap; text-decoration: none;
  line-height: 1;
}
.fe-btn-primary {
  background: var(--cta-bg, var(--gold));
  color: var(--cta-ink, #0a1628);
  box-shadow: var(--shadow-cta);
}
.fe-btn-primary:hover {
  background: var(--cta-bg-hover, var(--gold-hover));
  box-shadow: var(--shadow-cta-hover);
}
.fe-btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--border-strong);
}
.fe-btn-ghost:hover {
  border-color: var(--gold); color: var(--gold);
}

/* ════════════════════════════════════════════════════
   NAV
   ════════════════════════════════════════════════════ */
.fe-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px;
  padding: 18px 40px;
  background: rgba(10,22,40,0.00);
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  transition: background .2s ease, -webkit-backdrop-filter .2s ease, backdrop-filter .2s ease, border-color .2s ease;
  border-bottom: 1px solid transparent;
}
[data-theme="light"] .fe-nav { background: rgba(244,239,230,0.00); }
.fe-nav.scrolled {
  background: rgba(10,22,40,0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
[data-theme="light"] .fe-nav.scrolled {
  background: rgba(244,239,230,0.88);
  border-bottom-color: var(--border);
}
.fe-nav-brand {
  font-family: var(--font-serif); font-weight: 700; font-size: 22px;
  letter-spacing: 0.01em;
}
.fe-brand-firm { color: var(--text); }
.fe-brand-edge { color: var(--gold); font-style: italic; }
.fe-nav-links {
  list-style: none; display: flex; gap: 34px;
}
.fe-nav-links a {
  font-size: 14px; color: var(--text-muted); font-weight: 500;
  transition: color .15s;
}
.fe-nav-links a:hover { color: var(--gold); }
.fe-nav-cta-group { display: flex; align-items: center; gap: 16px; }
.fe-nav-signin {
  font-size: 14px; color: var(--text-muted); font-weight: 500;
  transition: color .15s;
}
.fe-nav-signin:hover { color: var(--gold); }
.fe-nav-cta {
  background: var(--cta-bg, var(--gold));
  color: var(--cta-ink, #0a1628);
  padding: 11px 18px; border-radius: 6px;
  font-weight: 700; font-size: 14px;
  box-shadow: 0 2px 12px rgba(201,168,76,0.25);
  transition: background .15s, box-shadow .2s;
}
.fe-nav-cta:hover { background: var(--gold-hover); box-shadow: 0 4px 18px rgba(201,168,76,0.40); }

/* ── Hamburger button (hidden on desktop, shown at ≤860px) ── */
.fe-nav-hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--border, rgba(255,255,255,0.15));
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 0;
  transition: border-color .15s, color .15s;
}
.fe-nav-hamburger:hover { border-color: var(--gold-border, rgba(201,168,76,0.4)); color: var(--gold); }

/* ── Mobile dropdown menu (hidden by default) ── */
.fe-nav-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  flex-direction: column;
  gap: 0;
  background: var(--bg);
  border-top: 1px solid var(--border, rgba(255,255,255,0.12));
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.12));
  padding: 12px 20px 16px;
  z-index: 99;
}
[data-theme="light"] .fe-nav-mobile-menu { background: var(--bg, #f4efe6); }
.fe-nav-mobile-menu a {
  display: block;
  font-size: 15px; font-weight: 500;
  color: var(--text-muted);
  padding: 12px 0;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.08));
  transition: color .15s;
}
.fe-nav-mobile-menu a:last-child { border-bottom: none; }
.fe-nav-mobile-menu a:hover { color: var(--gold); }
.fe-nav-mobile-cta {
  margin-top: 8px;
  padding: 11px 0 !important;
  text-align: center;
  background: var(--cta-bg, var(--gold));
  color: var(--cta-ink, #0a1628) !important;
  border-radius: 6px;
  font-weight: 700 !important;
  border: none !important;
}

@media (max-width: 860px) {
  .fe-nav { padding: 14px 20px; position: relative; }
  .fe-nav-links { display: none; }
  .fe-nav-signin { display: none; }
  .fe-nav-hamburger { display: flex; align-items: center; }
  .fe-nav--open .fe-nav-mobile-menu { display: flex; }
}

/* ════════════════════════════════════════════════════
   ALEX CALL DEMO (shared)
   ════════════════════════════════════════════════════ */
.fe-call {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card-lift);
  display: flex; flex-direction: column;
  min-height: 460px;
}

.fe-call-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.10);
}
[data-theme="light"] .fe-call-head { background: rgba(26,38,66,0.03); }
.fe-call-head-left { display: flex; align-items: center; gap: 10px; }
.fe-call-status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-dim);
  transition: background .2s;
}
.fe-call-status-dot.live {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(74,222,128,0.18);
  animation: fePulse 1.4s infinite;
}
@keyframes fePulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(74,222,128,0.18); }
  50%     { box-shadow: 0 0 0 7px rgba(74,222,128,0.08); }
}
.fe-call-status-label {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 700;
}
.fe-call-head-right {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-muted); display: flex; gap: 4px; align-items: center;
}
.fe-call-total, .fe-call-sep { color: var(--text-dim); }

.fe-call-caller {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.fe-call-caller-id { display: flex; align-items: center; gap: 12px; }
.fe-call-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.fe-call-caller-name {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--text); font-weight: 700;
}
.fe-call-caller-meta {
  font-size: 11px; color: var(--text-muted); margin-top: 2px;
}
.fe-call-waveform {
  display: flex; align-items: center; gap: 2px; height: 24px;
  margin: 0 14px; flex: 0 0 auto;
}
.fe-call-waveform span {
  display: block; width: 2px; border-radius: 1px;
  background: var(--gold);
  opacity: 0.55;
  height: var(--h, 8px);
  transition: height .12s ease, opacity .15s ease;
}
/* While the demo plays, the bars come alive — each animates on its own
   --d delay so the band ripples like live audio. Flat + calm at rest. */
.fe-call[data-demo-state="playing"] .fe-call-waveform span {
  opacity: 0.85;
  animation: feWave .9s ease-in-out infinite;
  animation-delay: var(--d, 0ms);
}
@keyframes feWave {
  0%, 100% { height: 4px; }
  50%      { height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .fe-call[data-demo-state="playing"] .fe-call-waveform span { animation: none; }
}
/* Caller row gets tight on the narrowest cards — drop the waveform there
   so the number + play button keep their breathing room. */
@media (max-width: 480px) {
  .fe-call-waveform { display: none; }
}

.fe-call-log {
  flex: 1; padding: 18px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 240px; max-height: 340px;
  scroll-behavior: smooth;
}

.fe-call-empty {
  margin: auto; text-align: center; max-width: 320px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.fe-call-empty-ring {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.fe-call-empty-title {
  font-family: var(--font-serif); font-size: 20px; font-weight: 600;
  color: var(--text); line-height: 1.3;
}
.fe-call-empty-sub {
  font-size: 13px; color: var(--text-muted); line-height: 1.55;
  margin-bottom: 6px;
}

.fe-call-msg {
  display: flex; flex-direction: column; gap: 3px;
  animation: feFadeIn .25s ease;
}
@keyframes feFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fe-call-msg-who {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 700;
}
.fe-call-msg-bubble {
  font-size: 14px; line-height: 1.55;
  padding: 10px 14px; border-radius: 10px;
  max-width: 85%;
}
.fe-call-msg.alex { align-items: flex-start; }
.fe-call-msg.alex .fe-call-msg-bubble {
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  color: var(--text);
  border-top-left-radius: 4px;
}
.fe-call-msg.alex .fe-call-msg-who { color: var(--gold); }
.fe-call-msg.caller { align-items: flex-end; }
.fe-call-msg.caller .fe-call-msg-bubble {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  border-top-right-radius: 4px;
}

.fe-call-system {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 4px 0;
  animation: feFadeIn .25s ease;
}
.fe-call-system-tick {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold);
}

.fe-call-footer {
  border-top: 1px solid var(--border);
  padding: 12px 18px;
  background: rgba(0,0,0,0.15);
}
[data-theme="light"] .fe-call-footer { background: rgba(26,38,66,0.03); }
.fe-call-action {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
}
.fe-call-action-label {
  color: var(--text-dim); letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 700;
}
.fe-call-action-verb {
  color: var(--text); font-weight: 500; flex: 1;
}
.fe-call-reset {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 16px; padding: 4px 8px; border-radius: 4px;
}
.fe-call-reset:hover { color: var(--gold); }

.fe-call-attorney-card {
  background: var(--bg-elevated);
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  padding: 12px 14px;
  animation: feFadeIn .3s ease;
}
.fe-call-attorney-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.fe-call-attorney-bolt {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold); color: #0a1628;
  display: flex; align-items: center; justify-content: center;
}
.fe-call-attorney-head > span:first-of-type {
  font-size: 12px; font-weight: 700; color: var(--text);
  letter-spacing: 0.04em;
}
.fe-call-attorney-time {
  margin-left: auto; font-size: 11px; color: var(--text-dim);
}
.fe-call-attorney-body {
  font-size: 13px; line-height: 1.5; color: var(--text-muted);
  margin-bottom: 10px;
}
.fe-call-attorney-body strong { color: var(--text); font-weight: 700; }
.fe-call-attorney-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.fe-btn-ghost {
  font-family: var(--font-sans); font-size: 12px; font-weight: 700;
  padding: 6px 12px; border-radius: 6px; cursor: pointer;
  background: transparent; transition: background .15s, color .15s, border-color .15s;
}
.fe-btn-approve {
  background: var(--gold); color: #0a1628; border: 1px solid var(--gold);
}
.fe-btn-approve:hover { background: var(--gold-hover); }
.fe-btn-edit, .fe-btn-dismiss {
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
}
.fe-btn-edit:hover, .fe-btn-dismiss:hover {
  border-color: var(--gold); color: var(--gold);
}

/* ════════════════════════════════════════════════════
   DIRECTION A — "Evolution"
   ════════════════════════════════════════════════════ */

.fe-dir-a { width: 100%; }

.a-h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 600; line-height: 1.12;
  letter-spacing: -0.018em;
  color: var(--text);
  text-wrap: balance;
}
.a-h2 em {
  font-style: italic; color: var(--gold); font-weight: 500;
}
.a-sub {
  font-size: 15.5px; line-height: 1.6;
  color: var(--text-muted);
  max-width: 560px; margin-top: 12px;
}
.a-section-head { margin-bottom: 36px; }
.a-section-head.a-center { text-align: center; margin-left: auto; margin-right: auto; max-width: 720px; }
.a-section-head.a-center .a-sub { margin-left: auto; margin-right: auto; }

/* The full .au-* (auth / login) system already exists later in this
 * file at line ~7612 (canonical port from the design's auth.jsx —
 * signup, login, forgot, reset, verify, 2fa, expired). It was ported
 * dark-only with a few hardcoded values that block theme switching.
 * Theme corrections live at the END of this file (search "AUTH ·
 * theme corrections") so they're later in source order and win the
 * cascade against the dark-default rules. */


/* ── CALL CARD · play button + progressive reveal ─────────────
 *    The hero call card defaults to all transcript children visible
 *    (works with JS off / for SEO / LLM crawlers). When JS loads, the
 *    container picks up data-demo-state="paused" and the script
 *    fades children out by adding .is-hidden. Pressing the play
 *    button flips data-demo-state to "playing" and the JS reveals
 *    children one-by-one by their data-at second offset.
 * ────────────────────────────────────────────────────────────── */
.fe-call-play {
  margin-left: auto;
  padding: 8px 14px;
  font-size: 12.5px;
  border-radius: 999px;
  gap: 6px;
}
.fe-call-play-icon {
  flex-shrink: 0;
}
.fe-call[data-demo-state="playing"] .fe-call-play .fe-call-play-icon {
  /* Flip to a pause glyph by clipping the play polygon to two bars */
  display: none;
}
.fe-call[data-demo-state="playing"] .fe-call-play::before {
  content: "";
  /* 9px width = 3 × 3px bar width. Whole-pixel multiple keeps the
     gradient bars on integer pixel boundaries → crisp on retina /
     HiDPI Safari. (P1-3 redteam fix.) */
  width: 9px; height: 12px;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 3px 100% no-repeat,
    linear-gradient(currentColor, currentColor) 100% 0 / 3px 100% no-repeat;
  flex-shrink: 0;
}
.fe-call[data-demo-state="playing"] .fe-call-play-label::before { content: "Pause"; }
.fe-call[data-demo-state="playing"] .fe-call-play-label { font-size: 0; }
.fe-call[data-demo-state="playing"] .fe-call-play-label::before { font-size: 12.5px; }

/* Reveal uses display: grid + grid-template-rows: 0fr ↔ 1fr on a
 * wrapper because max-height: 0 ↔ none does not animate (CSS can't
 * transition to/from `none`). Each transcript row is its own grid
 * track that goes from 0fr (collapsed) to 1fr (full content height)
 * over 0.35s, with overflow-clip on the row so content doesn't bleed
 * during the collapse. (P1-1 redteam fix.) */
.fe-call-log > * {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows .35s ease, opacity .35s ease, transform .35s ease, margin .35s ease;
}
.fe-call-log > * > * {
  min-height: 0;
  overflow: hidden;
}
.fe-call-log .is-hidden {
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  margin-top: 0;
  margin-bottom: 0;
}
.fe-call-log .is-revealed {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fe-call-log > * { transition: none; }
}

/* ── EDITORIAL DATELINE — newspaper masthead-style line that
 *    sits above the hero h1. "VOL. 01 · ISSUE 03 · TUESDAY · 9:47 PM"
 *    style. Small, tracked-out caps in mono for the wire-service feel.
 * ────────────────────────────────────────────────────────────── */
.a-dateline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.a-dateline-sep {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.a-dateline em {
  font-style: italic;
  color: var(--text);
  font-family: var(--font-serif);
  letter-spacing: 0;
  text-transform: none;
  font-size: 12.5px;
  font-weight: 500;
}
/* Audience tag below the dateline — smaller / lighter than the
   original .a-hero-eyebrow so it doesn't fight the editorial
   masthead. Tracked caps in --text-dim. */
.a-hero-audience {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}

/* ── CHAPTER NUMBERING — italic gold serial number + small-caps
 *    title. "01 THE 9:47 PM CALL". Sits above the demo card to
 *    give the right-rail a magazine-chapter feel.
 * ────────────────────────────────────────────────────────────── */
.a-chapter {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.a-chapter-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 30px;
  color: var(--gold);
  line-height: 1;
}
.a-chapter-title {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
}

/* ── DEMO-FIRST PROMPT — gentle copy above the call card directing
 *    visitors to play the demo first. Pulses a small chevron so the
 *    eye lands here before the rest of the right-rail content.
 * ────────────────────────────────────────────────────────────── */
.a-demo-prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold);
  width: fit-content;
}
.a-demo-prompt-arrow {
  display: inline-block;
  animation: aDemoPromptBob 1.6s ease-in-out infinite;
}
@keyframes aDemoPromptBob {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .a-demo-prompt-arrow { animation: none; }
}

/* ── HERO A ── */
.a-hero {
  position: relative;
  padding: 96px 40px 56px;
  overflow: hidden;
}
.a-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--gold-soft) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(201,168,76,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.a-hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 70%);
  pointer-events: none;
}
.a-hero-inner {
  position: relative;
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.a-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 50px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 22px;
}
.a-hero-eyebrow-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.20);
}
.a-hero-h1 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.024em;
  color: var(--text);
  margin-bottom: 18px;
  text-wrap: balance;
}
.a-hero-h1 em {
  font-style: italic; color: var(--gold); font-weight: 500;
}
.fe-hero-sub {
  font-size: 16.5px; line-height: 1.58;
  color: var(--gray-light);
  max-width: 560px; margin: 0 auto 28px;
  text-wrap: pretty;
}
[data-theme="light"] .fe-hero-sub { color: var(--text-muted); }
.a-hero-ctas {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 14px;
}
.a-hero-primary { padding: 12px 22px; font-size: 14.5px; }
.a-hero-secondary { padding: 12px 20px; font-size: 14.5px; }
.a-hero-trust {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  justify-content: center;
  font-size: 12.5px; color: var(--text-muted);
  margin-bottom: 40px;
}
.a-hero-trust-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--text-dim);
}
.a-hero-demo {
  width: 100%; max-width: 860px;
  margin: 0 auto;
}

/* ── TRUST STRIP ── */
.a-trust {
  padding: 18px 40px;
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
  background: rgba(201,168,76,0.04);
}
.a-trust-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center;
  justify-content: center; text-align: center;
}
.a-trust-label {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
}
.a-trust-stmt {
  font-family: var(--font-serif); font-size: 16.5px; font-style: italic;
  color: var(--text); font-weight: 500;
}
.a-trust-stmt strong { font-weight: 700; font-style: normal; }
.a-trust-price { color: var(--gold); font-family: var(--font-serif); }

/* ── MARQUEE A — editorial cream-on-cream scrolling band ──
 * Used on the landing.html below the trust strip. Matches the
 * design-app reference: italic EB Garamond serif, em-dash
 * separators between items, slightly tinted band with a single
 * subtle top-border line, infinite continuous left-scroll, no gap.
 *
 * Implementation note: the track contains TWO copies of the
 * item list back-to-back, animated to translateX(-50%). At the
 * loop point the second copy is exactly where the first started,
 * so the seam is invisible. If markup changes to a single copy,
 * the loop will have a visible gap. */
.a-marquee {
  overflow: hidden;
  padding: 14px 0;
  /* No top border — the .a-trust strip directly above already has a
     1px gold-border-bottom that serves as our top edge. Adding our
     own would render as a doubled 2px stripe. (P1-1 redteam fix.) */
  background: rgba(201,168,76,0.05);
  /* Edge mask so items fade in/out instead of clipping at the
     viewport edge — feels more refined per the reference. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.a-marquee:focus-visible {
  /* Visible focus ring when keyboard-tabbed onto. tabindex="0" on
     the band makes this reachable; the focus pause below stops the
     scroll for keyboard users in parallel with the hover pause. */
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.a-marquee-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: aMarqueeScroll 64s linear infinite;
}
@keyframes aMarqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.a-marquee:hover .a-marquee-track,
.a-marquee:focus-within .a-marquee-track {
  /* Hover pauses for pointer users; focus-within pauses for keyboard
     users (band carries tabindex="0" so it's reachable via Tab). The
     two together give parity across input modalities. (P1-2 redteam
     fix — items are aria-hidden and decorative, so the SR pattern
     stays "announce the band as a complementary landmark, but don't
     read each looping item.") */
  animation-play-state: paused;
}
.a-marquee-item {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--text);
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
}
.a-marquee-item::after {
  /* Em-dash separator — sits AFTER each item, so the natural item
     order produces "item — item — item — ..." regardless of how
     many copies the track holds. The very last visible separator
     is hidden by the right-edge mask. */
  content: "—";
  margin-left: 18px;
  color: var(--gold);
  font-style: normal;
}
@media (prefers-reduced-motion: reduce) {
  /* Honor the OS-level reduced-motion preference: stop the scroll
     and let the user read the visible band statically. */
  .a-marquee-track { animation: none; transform: translateX(0); }
}

/* ── PROBLEM ── */
.a-problem {
  padding: 72px 40px;
  max-width: 1100px; margin: 0 auto;
}
.a-problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.a-problem-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  padding: 24px 22px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.a-problem-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-lift);
  border-color: var(--gold-border-strong);
}
.a-problem-num {
  font-family: var(--font-serif);
  font-size: 34px; font-weight: 500; font-style: italic;
  color: var(--gold); line-height: 1;
  margin-bottom: 10px;
}
.a-problem-title {
  font-family: var(--font-serif);
  font-size: 17px; font-weight: 600;
  color: var(--text); margin-bottom: 10px;
  line-height: 1.3;
}
.a-problem-body {
  font-size: 13.5px; line-height: 1.6;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .a-problem-grid { grid-template-columns: 1fr; }
}

/* ── ALEX section ── */
.a-alex {
  padding: 72px 40px;
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.a-alex-copy .fe-eyebrow { margin-bottom: 14px; }
.a-alex-lede {
  font-size: 15.5px; line-height: 1.65;
  color: var(--text-muted);
  margin: 16px 0 26px;
}
.a-alex-list {
  list-style: none; display: flex; flex-direction: column; gap: 14px;
}
.a-alex-list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14px; line-height: 1.55;
  color: var(--text-muted);
}
.a-alex-list li strong { color: var(--text); font-weight: 700; }
.a-alex-check {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold);
  border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.a-alex-note {
  margin-top: 28px; padding: 14px 18px;
  background: rgba(96,165,250,0.06);
  border: 1px solid rgba(96,165,250,0.18);
  border-radius: 8px;
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; line-height: 1.55;
  color: var(--text-muted);
}
.a-alex-note svg { color: var(--blue); flex-shrink: 0; margin-top: 2px; }

.a-digest {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card-lift);
}
.a-digest-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.a-digest-title {
  font-family: var(--font-serif); font-size: 15.5px; font-weight: 600;
  color: var(--text);
}
.a-digest-sub {
  font-size: 11.5px; color: var(--text-muted); margin-top: 2px;
}
.a-digest-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 50px;
  background: rgba(74,222,128,0.10);
  border: 1px solid rgba(74,222,128,0.30);
  color: var(--green);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.a-digest-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(74,222,128,0.20);
}
.a-digest-rows { display: flex; flex-direction: column; }
.a-digest-row {
  display: grid;
  grid-template-columns: 60px 1fr 1fr 88px 1.4fr;
  gap: 14px; align-items: center;
  padding: 12px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.a-digest-row:last-child { border-bottom: none; }
.a-digest-time { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }
.a-digest-name { color: var(--text); font-weight: 700; }
.a-digest-kind { color: var(--text-muted); font-size: 12px; }
.a-digest-status {
  display: inline-flex; padding: 3px 9px; border-radius: 50px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; justify-self: start;
}
.a-status-booked { background: rgba(74,222,128,0.12); color: var(--green); border: 1px solid rgba(74,222,128,0.28); }
.a-status-qualified { background: rgba(96,165,250,0.10); color: var(--blue); border: 1px solid rgba(96,165,250,0.28); }
.a-status-declined { background: rgba(248,113,113,0.08); color: var(--red); border: 1px solid rgba(248,113,113,0.22); }
.a-digest-note { font-size: 12px; color: var(--text-muted); }
.a-digest-foot {
  padding: 14px 22px;
  background: rgba(201,168,76,0.06);
  border-top: 1px solid var(--gold-border);
  color: var(--gold); font-size: 13px; font-weight: 700;
  font-family: var(--font-sans);
}

@media (max-width: 960px) {
  .a-alex { grid-template-columns: 1fr; gap: 50px; }
  .a-digest-row { grid-template-columns: 60px 1fr 80px; }
  .a-digest-row > *:nth-child(3), .a-digest-row > *:nth-child(5) { display: none; }
}

/* ── BENTO A ── */
.a-bento {
  padding: 72px 40px;
  max-width: 1200px; margin: 0 auto;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--gold-border);
  margin-left: 40px; margin-right: 40px;
}
/* Equal 3-col tracks so cells align across rows: row 1 [span-2 | 1] and
   row 2 [1 | span-2] share the same column boundaries instead of
   producing the 2fr/1fr/1fr asymmetry of an earlier draft. */
.a-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}
.a-bento-cell {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  transition: border-color .2s ease, transform .2s ease;
}
.a-bento-cell:hover { border-color: var(--gold-border-strong); transform: translateY(-2px); }
.a-bento-cell-lg { grid-column: span 2; }
.a-bento-eyebrow {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 10px;
}
.a-bento-h {
  font-family: var(--font-serif); font-size: 19px; font-weight: 600;
  color: var(--text); line-height: 1.3; margin-bottom: 10px;
  text-wrap: balance;
}
.a-bento-h em { font-style: italic; color: var(--gold); font-weight: 500; }
.a-bento-sub {
  font-size: 13.5px; line-height: 1.6; color: var(--text-muted);
}

@media (max-width: 860px) {
  .a-bento { margin-left: 20px; margin-right: 20px; padding: 60px 24px; }
  .a-bento-grid { grid-template-columns: 1fr; }
  .a-bento-cell-lg { grid-column: span 1; }
}

/* ── PRICING A ── */
.a-pricing {
  padding: 72px 40px;
  max-width: 1200px; margin: 0 auto;
}
.a-pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.a-price-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  padding: 28px 26px;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.a-price-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-lift);
}
.a-price-card.highlight {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(201,168,76,0.08) 0%, var(--bg-card) 50%);
}
.a-price-badge {
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold); color: #0a1628;
  padding: 4px 14px; border-radius: 50px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  white-space: nowrap;
}
.a-price-name {
  font-family: var(--font-serif); font-size: 22px; font-weight: 700;
  color: var(--text); margin-bottom: 4px;
}
.a-price-tag {
  font-size: 11.5px; color: var(--text-muted);
  letter-spacing: 0.06em; margin-bottom: 20px;
}
.a-price-amount-row {
  display: flex; align-items: baseline; gap: 4px;
  color: var(--gold);
  font-family: var(--font-serif);
  margin-bottom: 12px;
}
.a-price-currency { font-size: 20px; font-weight: 500; margin-right: 2px; }
.a-price-amount { font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -0.028em; }
.a-price-period { font-size: 13px; color: var(--text-muted); font-family: var(--font-sans); margin-left: 6px; }
.a-price-lede {
  font-size: 13.5px; line-height: 1.55;
  color: var(--text-muted); min-height: 40px;
  margin-bottom: 16px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.a-price-features {
  list-style: none; display: flex; flex-direction: column; gap: 9px;
  margin-bottom: 22px; flex: 1;
}
.a-price-features li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: var(--text-muted); line-height: 1.5;
}
.a-price-check {
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.a-price-cta { width: 100%; padding: 11px; font-size: 13.5px; }

@media (max-width: 960px) {
  .a-pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}

/* ── FAQ A ── */
.a-faq { padding: 72px 40px; max-width: 860px; margin: 0 auto; }
.a-faq-list { display: flex; flex-direction: column; gap: 6px; }
.a-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s;
}
.a-faq-item.open { border-color: var(--gold-border-strong); }
.a-faq-q {
  width: 100%; padding: 16px 20px;
  background: none; border: none;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  font-family: var(--font-serif); font-size: 16px; font-weight: 600;
  color: var(--text); text-align: left; cursor: pointer;
}
.a-faq-chev {
  font-size: 20px; color: var(--gold); font-weight: 300;
  width: 22px; text-align: center;
}
.a-faq-a {
  padding: 0 20px 18px;
  font-size: 14px; line-height: 1.65;
  color: var(--text-muted);
  max-width: 700px;
  animation: feFadeIn .2s ease;
}

/* ── FINAL A ── */
.a-final {
  padding: 88px 40px 76px;
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse 60% 100% at 50% 100%, var(--gold-soft) 0%, transparent 60%);
  border-top: 1px solid var(--gold-border);
}
.a-final-inner { max-width: 700px; margin: 0 auto; }
.a-final-eyebrow { display: block; text-align: center; }
.a-final .a-sub { margin-left: auto; margin-right: auto; margin-bottom: 28px; }
.a-final-ctas {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 14px;
}
.a-final-primary { padding: 14px 28px; font-size: 15px; }
.a-final-trust {
  font-size: 12.5px; color: var(--text-muted);
}

/* ════════════════════════════════════════════════════
   DIRECTION B — "Editorial"
   ════════════════════════════════════════════════════ */

.fe-dir-b { width: 100%; }

.b-h2 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 500; line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--text);
  text-wrap: balance;
}
.b-h2 em {
  font-style: italic; color: var(--gold); font-weight: 500;
}

.b-section-mark {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.b-section-mark-center { justify-content: center; }
.b-section-num {
  color: var(--gold);
  border: 1px solid var(--gold-border);
  padding: 4px 10px; border-radius: 50px;
}
.b-section-label {
  color: var(--text-muted);
}

/* ── HERO B ── */
.b-hero {
  position: relative;
  padding: 130px 60px 80px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
  min-height: 100vh;
}
.b-hero-rule {
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px;
  /* Full-height editorial column-rule. Gradient fades it in/out at the
     top and bottom edges so it reads as a deliberate seam between the two
     columns rather than a thin line that stops mid-page. */
  background: linear-gradient(
    to bottom,
    transparent 0,
    var(--gold-border-strong) 14%,
    var(--gold-border-strong) 86%,
    transparent 100%);
  transform: translateX(-10px);
  display: none; /* show on large only as editorial seam */
}
@media (min-width: 1100px) {
  .b-hero-rule { display: block; }
}
.b-hero-col-left { position: relative; }
.b-hero-meta {
  display: flex; gap: 16px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 40px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.b-hero-issue { color: var(--gold); }
.b-hero-h1 {
  font-family: var(--font-serif);
  font-size: clamp(60px, 9.5vw, 128px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.038em;
  color: var(--text);
  margin-bottom: 28px;
  text-wrap: balance;
}
.b-hero-h1 em {
  font-style: italic; color: var(--gold); font-weight: 500;
}
.b-hero-col-left .fe-hero-sub {
  font-size: 20px; line-height: 1.55;
  color: var(--gray-light);
  max-width: 520px; margin: 0 0 36px;
}
[data-theme="light"] .b-hero-col-left .fe-hero-sub { color: var(--text-muted); }
.b-hero-ctas {
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  margin-bottom: 20px;
}
.b-hero-primary { padding: 16px 28px; font-size: 16px; }
.b-hero-secondary {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-serif); font-size: 18px; font-style: italic;
  color: var(--text); font-weight: 500;
  position: relative;
  padding: 6px 2px;
  cursor: pointer;
  transition: color .15s;
}
.b-hero-secondary:hover { color: var(--gold); }
/* Persistent underline (always visible at half-opacity, solid on hover)
   so the link reads as a deliberate, tappable affordance next to the
   primary button — not a quiet run of italic text. */
.b-hero-secondary::after {
  content: ''; position: absolute; left: 38px; right: 0; bottom: 2px;
  height: 1.5px; background: currentColor;
  opacity: 0.45;
  transition: opacity .2s ease;
}
.b-hero-secondary:hover::after { opacity: 1; }
/* Play-circle pairs the secondary CTA with the demo card's play button —
   clicking it plays the same call. Fills on hover for a clear press cue. */
.b-hero-secondary-play {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border-strong);
  color: var(--gold);
  flex-shrink: 0;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.b-hero-secondary-play svg { margin-left: 1px; } /* optical-center the triangle */
.b-hero-secondary:hover .b-hero-secondary-play {
  background: var(--gold);
  color: var(--cta-ink, #fff);
  border-color: var(--gold);
  transform: scale(1.06);
}
.b-hero-trust {
  display: flex; gap: 10px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-muted);
}

.b-hero-col-right { position: relative; }
.b-hero-demo-label {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.b-hero-demo-num {
  font-family: var(--font-serif); font-style: italic;
  font-size: 20px; color: var(--gold); font-weight: 500;
}
.b-hero-demo-name {
  font-family: var(--font-sans); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 700;
}

@media (max-width: 1060px) {
  .b-hero { grid-template-columns: 1fr; padding: 120px 30px 60px; gap: 40px; }
}

/* ── MARQUEE ── */
.b-marquee {
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
  background: rgba(201,168,76,0.04);
}
.b-marquee-track {
  display: flex; gap: 60px;
  white-space: nowrap;
  animation: feMarquee 60s linear infinite;
  width: fit-content;
}
@keyframes feMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .b-marquee-track { animation: none; } }
.b-marquee-item {
  font-family: var(--font-serif); font-style: italic;
  font-size: 18px; font-weight: 500;
  color: var(--text);
}

/* ── DISPATCH ── */
.b-dispatch {
  padding: 100px 60px;
  max-width: 1400px; margin: 0 auto;
}
.b-dispatch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 56px;
  border: 1px solid var(--gold-border);
  background: var(--gold-border);
}
.b-stat {
  padding: 36px 28px;
  background: var(--bg);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 280px;
}
[data-theme="light"] .b-stat { background: var(--bg); }
.b-stat-lead { background: var(--bg-card); }
.b-stat-num {
  font-family: var(--font-serif);
  font-size: clamp(54px, 6vw, 84px);
  font-weight: 500; line-height: 0.95;
  color: var(--text);
  letter-spacing: -0.025em;
}
.b-stat-num-gold { color: var(--gold); font-style: italic; }
.b-stat-unit {
  font-size: 0.45em; color: var(--text-muted);
  font-style: italic; font-weight: 400;
  margin-left: 4px;
}
.b-stat-label {
  font-family: var(--font-serif);
  font-size: 18px; line-height: 1.35;
  color: var(--text); font-weight: 500;
  text-wrap: balance;
  margin-top: auto;
}
.b-stat-src {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text-dim); letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

@media (max-width: 1000px) {
  .b-dispatch-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .b-dispatch-grid { grid-template-columns: 1fr; }
  .b-dispatch { padding: 60px 24px; }
}

/* ── ALEX B ── */
.b-alex {
  padding: 100px 60px;
  max-width: 1400px; margin: 0 auto;
}
.b-alex-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  margin-top: 40px;
  align-items: start;
}
.b-alex-kicker {
  font-family: var(--font-serif); font-style: italic;
  font-size: 20px; line-height: 1.4;
  color: var(--gold);
  margin-bottom: 20px;
}
.b-alex-body {
  font-size: 17px; line-height: 1.7;
  color: var(--text-muted);
  max-width: 560px;
  margin-top: 28px;
}
.b-defs {
  display: flex; flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--gold-border);
}
.b-def {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--gold-border);
}
.b-def dt {
  font-family: var(--font-serif);
  font-size: 20px; font-weight: 600; font-style: italic;
  color: var(--gold);
  line-height: 1.3;
}
.b-def dd {
  font-size: 15px; line-height: 1.6;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .b-alex-grid { grid-template-columns: 1fr; gap: 40px; }
  .b-def { grid-template-columns: 1fr; gap: 6px; }
  .b-alex { padding: 60px 24px; }
}

/* ── CAPABILITIES B ── */
.b-caps {
  padding: 100px 60px;
  max-width: 1400px; margin: 0 auto;
}
.b-caps-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  grid-auto-rows: minmax(240px, auto);
  gap: 1px;
  background: var(--gold-border);
  border: 1px solid var(--gold-border);
  margin-top: 56px;
}
.b-cap {
  background: var(--bg);
  padding: 30px 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background .2s ease, box-shadow .2s ease;
  position: relative;
}
.b-cap:hover { background: var(--bg-card); box-shadow: 0 0 0 1px var(--gold) inset; }
.b-cap-feature { background: var(--bg-card); }
.b-cap-tall { grid-row: span 2; }
/* VI is the last cap; give it the full bottom row so no empty grid cell
   exposes the --gold-border background as a grey/lavender rectangle */
.b-caps-grid > .b-cap:last-child { grid-column: 1 / -1; }
.b-cap-num {
  font-family: var(--font-serif); font-style: italic;
  font-size: 18px; font-weight: 500;
  color: var(--gold);
}
.b-cap-h {
  font-family: var(--font-serif);
  font-size: 24px; font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  text-wrap: balance;
}
.b-cap-feature .b-cap-h { font-size: 28px; }
.b-cap-p {
  font-size: 14.5px; line-height: 1.6;
  color: var(--text-muted);
}
.b-cap-foot {
  margin-top: auto;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text-dim); letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.b-cap-cta-link {
  margin-top: auto;
  font-family: var(--font-mono); font-size: 13px;
  color: var(--gold); letter-spacing: 0.04em;
  text-decoration: none; font-weight: 600;
}
.b-cap-cta-link:hover { text-decoration: underline; }

/* ── TOOLS B — "try it yourself" 3-card grid (landing § 06).
   Equal thirds rather than reusing .b-caps-grid — with exactly three
   cards its last-child full-width span would orphan an empty cell and
   expose the --gold-border backing as a grey rectangle. Collapses
   straight to one column below 1000px for the same reason. ── */
.b-tools {
  padding: 100px 60px;
  max-width: 1400px; margin: 0 auto;
}
.b-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(240px, auto);
  gap: 1px;
  background: var(--gold-border);
  border: 1px solid var(--gold-border);
  margin-top: 56px;
}
@media (max-width: 1000px) {
  .b-tools { padding: 60px 24px; }
  .b-tools-grid { grid-template-columns: 1fr; }
}

/* Live-demo pointer under the hero's scripted call card */
.b-hero-demo-live {
  display: block;
  margin-top: 14px;
  text-align: right;
}

/* ── CAPABILITIES VI — Before / After split ── */
.b-ba-cell {
  flex-direction: column;
  padding: 24px 28px 20px;
  gap: 18px;
}
.b-ba-meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.b-ba-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}
/* The split visual — editorial light surfaces (cream / gold / ink).
   landing.html ships data-accent="blue", whose accent block above in
   this file (the [data-theme="light"][data-accent="blue"] rule) remaps
   the --gold token to ink-blue (#28407a). This module needs genuine
   WARM gold to carry
   Edwin's restraint-vs-warmth contrast, so it pins the canonical
   light-theme gold values locally rather than reading the blue-remapped
   token. #7a6322 is the AA-safe burnished gold (5.0:1 on paper); #a88a30
   is the warm mid-gold used for icons + accents. */
.b-ba-wrap {
  --ba-gold:        #7a6322;
  --ba-gold-bright: #a88a30;
  --ba-gold-soft:   rgba(122,99,34,0.10);
  --ba-gold-border: rgba(122,99,34,0.30);
  --ba-ink-faint:   rgba(26,38,66,0.05);

  display: flex;
  gap: 0;
  flex: 1;
  min-height: 210px;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg-card);
}
.b-ba-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  min-width: 0;
}
/* Left — drained cream, restraint (the tasteful "before") */
.b-ba-before { background: var(--bg); }
/* Right — warm paper with a faint gold wash + gold seam (the calm "after") */
.b-ba-after  {
  background:
    linear-gradient(180deg, var(--ba-gold-soft) 0%, transparent 42%),
    var(--bg-elevated);
  box-shadow: inset 3px 0 0 var(--ba-gold-border);
}

.b-ba-vs-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 30px;
  flex-shrink: 0;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* Column headers */
.b-ba-colhead {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.b-ba-before .b-ba-colhead { color: var(--text-dim); }
.b-ba-after  .b-ba-colhead { color: var(--ba-gold); border-bottom-color: var(--ba-gold-border); }
.b-ba-coltime {
  margin-left: auto;
  font-size: 10px;
  opacity: 0.7;
}
/* Before-column time label at full opacity so --text-dim (#5a6578, 5.1:1 on
   cream) is not reduced below WCAG AA by the parent's opacity:0.7 rule. */
.b-ba-before .b-ba-coltime { opacity: 1; }
.b-ba-after .b-ba-coltime { color: var(--ba-gold); opacity: 0.9; }

/* ── BEFORE items ── */
.b-ba-items { display: flex; flex-direction: column; gap: 11px; }

/* Stacked missed-call badges */
.b-ba-stack {
  position: relative;
  height: 48px;
}
.b-ba-missed {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 2px;
  white-space: nowrap;
  background: var(--ba-ink-faint);
  color: var(--text-dim);
  border: 1px solid var(--border);
}
/* Older calls fade out and strike through — accumulating neglect, quietly */
.b-ba-missed-3 { top: 8px; left: 6px;  transform: rotate(-2deg);   opacity: 0.4; text-decoration: line-through; text-decoration-color: rgba(26,38,66,0.3); }
.b-ba-missed-2 { top: 4px; left: 3px;  transform: rotate(-0.8deg); opacity: 0.6; text-decoration: line-through; text-decoration-color: rgba(26,38,66,0.3); }
.b-ba-missed-1 { top: 0;   left: 0;    transform: rotate(0.4deg);  color: var(--text-muted); font-weight: 700; }

/* Big warning number */
.b-ba-overflow {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.b-ba-overflow-n {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dim);
  line-height: 1;
}
.b-ba-overflow-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Sticky notes pile */
.b-ba-stickies {
  position: relative;
  height: 58px;
}
.b-ba-sticky {
  position: absolute;
  font-size: 11px;
  line-height: 1.35;
  padding: 5px 8px;
  border-radius: 1px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 2px 3px 7px rgba(26,38,66,0.10);
  max-width: 210px;
  color: var(--text-muted);
}
.b-ba-sticky-1 { top: 0;   left: 0;   transform: rotate(-3deg);   z-index: 1; opacity: 0.7;  }
.b-ba-sticky-2 { top: 5px; left: 14px; transform: rotate(2deg);    z-index: 2; opacity: 0.85; }
.b-ba-sticky-3 { top: 11px;left: 28px; transform: rotate(-0.8deg); z-index: 3; font-style: italic; text-decoration: line-through; text-decoration-color: rgba(26,38,66,0.25); }

/* Footnote — restrained ink, no alarm color */
.b-ba-alert {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* ── AFTER items ── */
.b-ba-check {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}
/* All checks read in warm gold — the positive-outcome accent */
.b-ba-ck,
.b-ba-ck-gold  { flex-shrink: 0; color: var(--ba-gold-bright); font-weight: 700; }
.b-ba-check strong { color: var(--text); font-weight: 600; }

/* Queue card — warm paper, gold-edged */
.b-ba-queue {
  margin-top: 6px;
  border: 1px solid var(--ba-gold-border);
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg-card);
}
.b-ba-q-head {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ba-gold);
  background: var(--ba-gold-soft);
  padding: 5px 10px;
  border-bottom: 1px solid var(--ba-gold-border);
}
.b-ba-q-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text);
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
}
.b-ba-q-row:last-child { border-bottom: none; }
.b-ba-q-arrow { color: var(--ba-gold-bright); font-size: 11px; margin-left: auto; }

/* Responsive */
@media (max-width: 1000px) {
  .b-caps-grid { grid-template-columns: 1fr 1fr; }
  .b-cap-tall  { grid-row: span 1; }
  /* stack before/after vertically on tablet */
  .b-ba-wrap { flex-direction: column; min-height: auto; }
  .b-ba-vs-divider { width: auto; height: 28px; flex-direction: row; writing-mode: initial; }
  /* flatten stacked elements for linear reading */
  .b-ba-stack, .b-ba-stickies { position: static; height: auto; display: flex; flex-direction: column; gap: 3px; }
  .b-ba-missed, .b-ba-sticky   { position: static; transform: none; opacity: 1 !important; max-width: none; }
  .b-ba-missed-3 { opacity: 0.6 !important; }
}
.b-ba-disclaimer {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1.4;
}
@media (max-width: 600px) {
  .b-caps-grid { grid-template-columns: 1fr; }
  .b-caps      { padding: 60px 24px; }
  .b-ba-cell   { padding: 20px; }
}

/* ── PRICING B ── */
.b-pricing {
  padding: 100px 60px;
  max-width: 1400px; margin: 0 auto;
}
.b-pricing-sub {
  font-size: 17px; line-height: 1.6; color: var(--text-muted);
  max-width: 640px; margin: 18px 0 48px;
}
.b-pricing-table {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--gold-border);
}
.b-pricing-row {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.9fr 2fr 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--gold-border);
  align-items: center;
  transition: background .2s ease;
  position: relative;
}
.b-pricing-row::before {
  content: ''; position: absolute; left: -60px; right: -60px; top: 0; bottom: 0;
  background: transparent; transition: background .2s ease;
  z-index: -1;
}
.b-pricing-row.best::before { background: rgba(201,168,76,0.04); }
.b-pricing-row:hover::before { background: rgba(201,168,76,0.06); }

.b-pricing-name {
  font-family: var(--font-serif);
  display: flex; flex-direction: column; gap: 6px;
}
.b-pricing-tier {
  font-size: 32px; font-weight: 600; color: var(--text);
  line-height: 1;
}
.b-pricing-row.best .b-pricing-tier { color: var(--gold); }
.b-pricing-flag {
  font-family: var(--font-sans); font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
}
.b-pricing-who {
  font-family: var(--font-serif); font-style: italic;
  font-size: 17px; color: var(--text-muted);
}
.b-pricing-amount {
  font-family: var(--font-serif);
  font-size: 44px; font-weight: 600; color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-flex; align-items: baseline;
}
.b-pricing-row.best .b-pricing-amount { color: var(--gold); }
.b-pricing-dollar { font-size: 22px; margin-right: 2px; font-weight: 500; }
.b-pricing-per {
  font-size: 13px; color: var(--text-muted);
  font-family: var(--font-sans); font-weight: 400;
  margin-left: 6px;
}
.b-pricing-take {
  font-size: 14.5px; line-height: 1.55;
  color: var(--text-muted);
  max-width: 380px;
}
.b-pricing-cta {
  font-family: var(--font-sans); font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 1px solid var(--gold-border);
  border-radius: 6px;
  transition: background .15s, border-color .15s;
  justify-self: end;
}
.b-pricing-cta:hover {
  background: var(--gold); color: var(--cta-ink, #0a1628);
  border-color: var(--gold);
}
.b-pricing-row.best .b-pricing-cta {
  background: var(--cta-bg, var(--gold));
  color: var(--cta-ink, #0a1628);
  border-color: var(--cta-bg, var(--gold));
  box-shadow: var(--shadow-cta);
}
.b-pricing-row.best .b-pricing-cta:hover { background: var(--gold-hover); }
.b-pricing-foot {
  margin-top: 32px;
  font-size: 14px; color: var(--text-muted);
}
.b-pricing-foot a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1000px) {
  .b-pricing-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .b-pricing-take { grid-column: span 2; max-width: none; }
  .b-pricing-cta { grid-column: span 2; justify-self: start; }
  .b-pricing { padding: 60px 24px; }
  /* Clamp the hover-bleed to the shrunken 24px section padding. The base
     -60px bleed assumes 60px padding; at 24px it would extend 36px past the
     viewport (masked only by body{overflow-x:hidden}). Match the padding so
     the full-width hover still reaches the section edge with zero overflow. */
  .b-pricing-row::before { left: -24px; right: -24px; }
}

/* ── VS · competitive frame ── */
.b-vs {
  padding: 100px 60px;
  max-width: 1400px; margin: 0 auto;
}
.b-vs-lede {
  font-family: var(--font-serif);
  font-size: 19px; line-height: 1.6;
  color: var(--text-muted);
  max-width: 720px;
  margin: 24px 0 56px;
}
.b-vs-lede em {
  font-style: italic; color: var(--gold);
}
.b-vs-table {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--gold-border);
}
.b-vs-head {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.1fr 2fr;
  gap: 32px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gold-border);
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-dim);
}
.b-vs-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.1fr 2fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--gold-border);
  align-items: baseline;
  position: relative;
}
.b-vs-row::before {
  content: ''; position: absolute; left: -60px; right: -60px; top: 0; bottom: 0;
  background: transparent; transition: background .2s ease;
  z-index: -1;
}
.b-vs-row:hover::before { background: rgba(201,168,76,0.04); }
.b-vs-row.us {
  background: linear-gradient(180deg, rgba(201,168,76,0.06), rgba(201,168,76,0.02));
}
.b-vs-row.us::before { background: rgba(201,168,76,0.06); }

.b-vs-name {
  display: flex; flex-direction: column; gap: 6px;
}
.b-vs-name-label {
  font-family: var(--font-serif);
  font-size: 26px; font-weight: 600;
  color: var(--text);
  line-height: 1;
}
.b-vs-row.us .b-vs-name-label { color: var(--gold); font-style: italic; }
.b-vs-name-flavor {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}
.b-vs-price {
  font-family: var(--font-serif);
  display: flex; flex-direction: column; gap: 2px;
}
.b-vs-price-amt {
  font-size: 28px; font-weight: 600; color: var(--text);
  letter-spacing: -0.02em; line-height: 1;
}
.b-vs-row.us .b-vs-price-amt { color: var(--gold); }
.b-vs-price-unit {
  font-size: 13px; font-style: italic;
  color: var(--text-muted);
}
.b-vs-monthly {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.b-vs-row.us .b-vs-monthly { color: var(--text); }
.b-vs-gap-text {
  font-family: var(--font-serif);
  font-size: 15px; line-height: 1.55;
  color: var(--text-muted);
  font-style: italic;
}
.b-vs-gap-none {
  font-family: var(--font-serif);
  font-size: 15px; line-height: 1.55;
  color: var(--gold);
  font-style: italic;
}
.b-vs-foot {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.05em;
  color: var(--text-dim);
}

@media (max-width: 1000px) {
  .b-vs-head { display: none; }
  .b-vs-row {
    grid-template-columns: 1fr 1fr;
    gap: 16px 32px;
    padding: 24px 0;
  }
  .b-vs-gap { grid-column: span 2; }
  .b-vs { padding: 60px 24px; }
  /* Clamp the hover-bleed to the shrunken 24px section padding (see the
     matching .b-pricing-row note). Base -60px assumes 60px padding. */
  .b-vs-row::before { left: -24px; right: -24px; }
}
@media (max-width: 560px) {
  .b-vs-row { grid-template-columns: 1fr; gap: 10px; }
  .b-vs-gap { grid-column: span 1; }
}

/* ── QUOTE B ── */
.b-quote {
  padding: 80px 60px;
  max-width: 1000px; margin: 0 auto;
  text-align: center;
  position: relative;
}
.b-quote-marks {
  font-family: var(--font-serif); font-style: italic;
  font-size: 120px; font-weight: 500;
  color: var(--gold);
  line-height: 0.5;
  margin-bottom: 20px;
}
.b-quote-text {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin-bottom: 32px;
}
.b-quote-attr {
  display: flex; flex-direction: column; gap: 4px;
  align-items: center;
}
.b-quote-name {
  font-family: var(--font-serif); font-size: 18px; font-weight: 600;
  color: var(--gold);
}
.b-quote-meta {
  font-size: 12px; color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ── FAQ B ── */
.b-faq {
  padding: 100px 60px;
  max-width: 980px; margin: 0 auto;
}
.b-faq-list {
  margin-top: 24px;
  border-top: 1px solid var(--gold-border);
}
.b-faq-item {
  border-bottom: 1px solid var(--gold-border);
}
.b-faq-q {
  width: 100%; background: none; border: none;
  display: grid; grid-template-columns: 60px 1fr 32px;
  gap: 24px; align-items: baseline;
  padding: 24px 0;
  cursor: pointer; text-align: left;
  transition: color .15s;
}
.b-faq-q:hover .b-faq-qtxt { color: var(--gold); }
.b-faq-qnum {
  font-family: var(--font-serif); font-style: italic;
  font-size: 20px; color: var(--gold); font-weight: 500;
}
.b-faq-qtxt {
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 600;
  color: var(--text); line-height: 1.3;
  transition: color .15s;
}
.b-faq-chev {
  font-size: 26px; color: var(--gold); font-weight: 300;
  line-height: 1;
}
.b-faq-a {
  padding: 0 0 24px 84px;
  font-size: 16px; line-height: 1.7;
  color: var(--text-muted);
  max-width: 680px;
  animation: feFadeIn .2s ease;
}
@media (max-width: 680px) {
  .b-faq-q { grid-template-columns: 40px 1fr 28px; gap: 12px; }
  .b-faq-a { padding-left: 52px; }
  .b-faq-qtxt { font-size: 18px; }
  .b-faq { padding: 60px 24px; }
}

/* ── FINAL B ── */
.b-final {
  padding: 140px 60px;
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%, var(--gold-soft) 0%, transparent 60%);
  border-top: 1px solid var(--gold-border);
}
.b-final-inner { max-width: 820px; margin: 0 auto; }
.b-final-h {
  font-family: var(--font-serif);
  font-size: clamp(56px, 8vw, 120px);
  font-weight: 500; line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
  text-wrap: balance;
}
.b-final-h em { font-style: italic; color: var(--gold); font-weight: 500; }
.b-final-sub {
  font-size: 19px; line-height: 1.55;
  color: var(--text-muted);
  max-width: 580px; margin: 0 auto 40px;
}
.b-final-ctas {
  display: flex; gap: 22px; justify-content: center; align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.b-final-primary { padding: 18px 32px; font-size: 17px; }
.b-final-secondary {
  font-family: var(--font-serif); font-style: italic;
  font-size: 17px; color: var(--text);
  position: relative; padding: 6px 2px;
}
.b-final-secondary:hover { color: var(--gold); }
.b-final-secondary::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
}
.b-final-trust {
  font-size: 13px; color: var(--text-muted);
}

@media (max-width: 600px) {
  .b-final { padding: 80px 24px; }
}

/* ════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════ */
.fe-footer {
  border-top: 1px solid var(--gold-border);
  background: var(--bg);
  padding: 80px 60px 40px;
}
.fe-footer-grid {
  max-width: 1400px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 80px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}
.fe-footer-wordmark {
  font-family: var(--font-serif); font-size: 28px; font-weight: 700;
  margin-bottom: 16px;
}
.fe-footer-tag {
  font-size: 14px; line-height: 1.65;
  color: var(--text-muted);
  max-width: 360px; margin-bottom: 24px;
}
.fe-footer-compliance {
  font-size: 12px; color: var(--text-dim);
  display: flex; gap: 10px; flex-wrap: wrap;
}
.fe-footer-links {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
.fe-footer-links > div { display: flex; flex-direction: column; gap: 10px; }
.fe-footer-head {
  font-family: var(--font-sans); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 8px;
}
.fe-footer-links a {
  font-size: 14px; color: var(--text-muted);
  transition: color .15s;
}
.fe-footer-links a:hover { color: var(--gold); }
.fe-footer-meta {
  max-width: 1400px; margin: 0 auto;
  padding-top: 32px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-dim);
}
.fe-footer-meta-right { font-style: italic; }

@media (max-width: 860px) {
  .fe-footer { padding: 60px 24px 40px; }
  .fe-footer-grid { grid-template-columns: 1fr; gap: 50px; }
  .fe-footer-links { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

/* ════════════════════════════════════════════════════
   TWEAKS PANEL
   ════════════════════════════════════════════════════ */
.fe-tweaks {
  position: fixed; bottom: 20px; right: 20px;
  z-index: 200;
  width: 300px;
  background: var(--bg-card);
  border: 1px solid var(--gold-border-strong);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  overflow: hidden;
  font-family: var(--font-sans);
}
[data-theme="light"] .fe-tweaks {
  box-shadow: 0 16px 48px rgba(26,38,66,0.18);
}
.fe-tweaks-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gold-border);
  display: flex; justify-content: space-between; align-items: baseline;
  background: rgba(201,168,76,0.06);
}
.fe-tweaks-title {
  font-family: var(--font-serif); font-size: 18px; font-weight: 700;
  color: var(--gold);
}
.fe-tweaks-sub {
  font-size: 11px; color: var(--text-muted);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.fe-tweaks-group { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.fe-tweaks-group:last-of-type { border-bottom: none; }
.fe-tweaks-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 10px;
}
.fe-tweaks-segment { display: flex; gap: 6px; }
.fe-tweaks-segbtn {
  flex: 1; padding: 10px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted); cursor: pointer;
  text-align: left;
  display: flex; flex-direction: column; gap: 2px;
  transition: border-color .15s, color .15s, background .15s;
  font-family: var(--font-sans);
}
.fe-tweaks-segbtn:hover { border-color: var(--gold-border-strong); }
.fe-tweaks-segbtn.on {
  border-color: var(--gold);
  background: rgba(201,168,76,0.08);
  color: var(--text);
}
.fe-tweaks-segname {
  font-size: 13px; font-weight: 700; color: var(--text);
}
.fe-tweaks-segsub {
  font-size: 11px; color: var(--text-muted); line-height: 1.3;
}
.fe-tweaks-radios { display: flex; flex-direction: column; gap: 6px; }
.fe-tweaks-radio {
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; flex-direction: column; gap: 2px;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.fe-tweaks-radio:hover { border-color: var(--gold-border-strong); }
.fe-tweaks-radio.on {
  border-color: var(--gold);
  background: rgba(201,168,76,0.08);
}
.fe-tweaks-radio input { position: absolute; opacity: 0; pointer-events: none; }
.fe-tweaks-foot {
  padding: 10px 16px;
  font-size: 11px; color: var(--text-dim);
  border-top: 1px solid var(--border);
  text-align: center;
}

@media (max-width: 600px) {
  .fe-tweaks { width: calc(100% - 24px); right: 12px; bottom: 12px; }
}


/* ═════════════════════════════════════════════════════════
   PORTAL — signed-in Home dashboard.
   Editorial continuation of landing: §-marks, cream paper,
   duo accent (ink blue type + gold CTA).
   ═════════════════════════════════════════════════════════ */

/* ── NAV · portal variant ────────────────────────────── */
.fe-nav-portal {
  background: rgba(10,22,40,0.88);
  backdrop-filter: saturate(1.2) blur(14px);
}
[data-theme="light"] .fe-nav-portal {
  background: rgba(244,239,230,0.88);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--border);
}
.fe-nav-portal .fe-nav-links a.fe-nav-active {
  color: var(--gold);
  position: relative;
}
.fe-nav-portal .fe-nav-links a.fe-nav-active::after {
  content: ''; position: absolute;
  left: 0; right: 0; bottom: -22px; height: 2px;
  background: var(--gold);
}
.fe-nav-icon-btn {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color .15s, border-color .15s, background .15s;
}
.fe-nav-icon-btn:hover {
  color: var(--gold);
  border-color: var(--gold-border-strong);
  background: var(--gold-soft);
}
.fe-nav-dot {
  position: absolute; top: 6px; right: 6px;
  width: 6px; height: 6px; border-radius: 50%;
  background: #c94c4c;
  box-shadow: 0 0 0 2px var(--bg);
}
.fe-nav-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border-strong);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
  cursor: pointer;
}

/* ── PAGE WRAPPER ────────────────────────────────────── */
.po-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 110px 40px 80px;
  color: var(--text);
}
@media (max-width: 900px) {
  .po-page { padding: 92px 20px 60px; }
}

/* ── SECTION MARK — reused editorial motif ───────────── */
.po-section-mark {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted);
}
.po-section-num {
  color: var(--gold);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: none;
}
.po-section-label {
  padding-top: 1px;
}

/* ── HERO ────────────────────────────────────────────── */
.po-hero {
  padding: 24px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.po-hero-meta {
  display: flex; justify-content: space-between;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.po-hero-issue { color: var(--gold); }
.po-hero-main {
  max-width: 820px;
  margin-bottom: 44px;
}
.po-hero-h {
  font-family: var(--font-serif);
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0 0 20px;
  text-wrap: balance;
}
.po-hero-h em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.po-hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 640px;
  text-wrap: pretty;
}
.po-hero-sub strong {
  color: var(--text);
  font-weight: 600;
}

.po-counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.po-counter {
  padding: 24px 28px;
  border-right: 1px solid var(--border);
}
.po-counter:last-child { border-right: none; }
.po-counter-accent {
  background: var(--gold-soft);
  position: relative;
}
.po-counter-accent::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--gold);
}
.po-counter-num {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 400;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.po-counter-accent .po-counter-num {
  color: var(--gold);
  font-style: italic;
}
.po-counter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.po-counter-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 900px) {
  .po-counters { grid-template-columns: repeat(2, 1fr); }
  .po-counter { border-right: none; border-bottom: 1px solid var(--border); }
  .po-counter:nth-child(odd) { border-right: 1px solid var(--border); }
  .po-counter:nth-last-child(-n+2) { border-bottom: none; }
}

/* ── MAIN GRID ───────────────────────────────────────── */
.po-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
@media (max-width: 1100px) {
  .po-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ── SHARED PANEL ────────────────────────────────────── */
.po-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px 32px 24px;
  position: relative;
}
/* Vertical rhythm when multiple panels stack directly under each other
   (Billing, Settings, etc. don't use .po-grid so they need this) */
.po-page > .po-panel + .po-panel { margin-top: 36px; }

/* Shared focus-visible treatment — kicks in on keyboard nav only */
.po-page :focus-visible,
.ma-page :focus-visible,
.bi-page :focus-visible,
.in-page :focus-visible,
.cd-page :focus-visible,
.dv-page :focus-visible,
.qu-page :focus-visible,
.se-page :focus-visible,
.ca-page :focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}
.po-page button:focus-visible,
.po-page a:focus-visible,
.ma-page button:focus-visible,
.ma-page a:focus-visible,
.bi-page button:focus-visible,
.bi-page a:focus-visible,
.in-page button:focus-visible,
.in-page a:focus-visible,
.qu-page button:focus-visible,
.qu-page a:focus-visible,
.se-page button:focus-visible,
.se-page a:focus-visible,
.ca-page button:focus-visible,
.ca-page a:focus-visible {
  outline-offset: 3px;
}
.po-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.po-panel-h {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 6px;
}
.po-panel-h em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.po-panel-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 20px;
  max-width: 440px;
}
.po-panel-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
  transition: opacity .15s;
}
.po-panel-link:hover { opacity: 0.72; }
.po-panel-actions { display: flex; gap: 10px; align-items: center; }
.po-panel-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.po-foot-note {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--font-serif);
}
.po-foot-link {
  font-size: 12px; font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}
.po-foot-link:hover { opacity: 0.72; }

.po-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 50px;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}
.po-badge-live .po-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #2e7d4f;
  box-shadow: 0 0 0 3px rgba(46,125,79,0.18);
  animation: po-pulse 2.4s ease-in-out infinite;
}
@keyframes po-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.42; }
}

/* ── DIGEST (call log) ───────────────────────────────── */
.po-filters {
  display: flex; gap: 4px; align-items: center;
  padding: 6px;
  background: rgba(26,38,66,0.03);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.po-filter {
  padding: 6px 12px;
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s, color .15s;
  font-family: inherit;
}
.po-filter:hover { color: var(--text); }
.po-filter.on {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.po-filter-count {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 13px;
  font-weight: 500;
}
.po-filter-spacer { flex: 1; }
.po-filter-meta {
  padding: 6px 12px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.po-filter-meta:hover { color: var(--gold); }

.po-digest-rows {
  display: flex; flex-direction: column;
}
.po-row {
  display: grid;
  grid-template-columns: 78px 170px 120px 92px 1fr 24px;
  gap: 14px;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.po-row:hover { background: rgba(26,38,66,0.02); }
.po-row:last-child { border-bottom: none; }
.po-row-time {
  display: flex; flex-direction: column; gap: 2px;
}
.po-row-t {
  font-family: var(--font-serif);
  font-size: 15px; font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}
.po-row-dur {
  font-size: 10px; font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.po-row-caller { display: flex; flex-direction: column; gap: 2px; }
.po-row-name {
  font-size: 14px; font-weight: 600;
  color: var(--text);
}
.po-row-phone {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-style: italic;
}
.po-row-kind {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.po-row-status {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px;
  display: inline-block;
  justify-self: start;
  text-align: center;
  width: fit-content;
}
.po-st-booked {
  background: rgba(46,125,79,0.12);
  color: #2e7d4f;
  border: 1px solid rgba(46,125,79,0.24);
}
.po-st-qualified {
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}
.po-st-declined {
  background: rgba(26,38,66,0.06);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.po-st-dropped {
  background: transparent;
  color: var(--text-muted);
  border: 1px dashed var(--border-strong, var(--border));
  opacity: 0.7;
}
.po-row-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  font-family: var(--font-serif);
  font-style: italic;
}
.po-row-open {
  width: 24px; height: 24px;
  background: transparent; border: none;
  color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  transition: background .12s, color .12s;
}
.po-row-open:hover {
  background: var(--gold-soft);
  color: var(--gold);
}

@media (max-width: 760px) {
  .po-row {
    grid-template-columns: 60px 1fr auto;
    grid-template-areas:
      'time caller status'
      'kind kind  status'
      'note note  open';
    row-gap: 6px;
  }
  .po-row-time   { grid-area: time; }
  .po-row-caller { grid-area: caller; }
  .po-row-kind   { grid-area: kind; }
  .po-row-status { grid-area: status; }
  .po-row-note   { grid-area: note; }
  .po-row-open   { grid-area: open; }
}

/* ── APPROVALS ───────────────────────────────────────── */
.po-approval {
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 10px;
  background: var(--bg);
  overflow: hidden;
  transition: border-color .15s, box-shadow .2s;
}
.po-approval.open {
  border-color: var(--gold-border-strong);
  box-shadow: 0 4px 18px rgba(40,64,122,0.06);
}
.po-approval-head {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background .12s;
}
.po-approval-head:hover { background: rgba(26,38,66,0.02); }
.po-approval.open .po-approval-head {
  background: var(--gold-soft);
  border-bottom: 1px solid var(--gold-border);
}
.po-approval-kind {
  display: flex; align-items: center; gap: 14px;
  flex: 1;
  min-width: 0;
}
.po-approval-icon {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 16px;
  font-style: italic;
  flex-shrink: 0;
}
.po-approval-meta { min-width: 0; flex: 1; }
.po-approval-kindlabel {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}
.po-approval-client {
  font-size: 14px; font-weight: 600;
  color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.po-approval-client span {
  font-weight: 400;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-style: italic;
}
.po-approval-right {
  display: flex; align-items: center; gap: 12px;
}
.po-urgency {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px;
}
.po-urgency.now {
  background: rgba(201,76,76,0.10);
  color: #b94040;
  border: 1px solid rgba(201,76,76,0.22);
}
.po-urgency.today {
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}
.po-approval-chev {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--gold);
  font-weight: 400;
  line-height: 1;
}

.po-approval-body {
  padding: 20px 22px 22px;
  border-top: 1px solid var(--gold-border);
}
.po-approval.open .po-approval-body {
  border-top: none;
}
.po-approval-drafted {
  margin-bottom: 16px;
}
.po-approval-drafted-label {
  display: block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.po-approval-drafted p {
  font-size: 14px; line-height: 1.55;
  color: var(--text);
  margin: 0;
}
.po-approval-note {
  padding: 10px 14px;
  background: rgba(26,38,66,0.04);
  border-left: 2px solid var(--gold);
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.5;
}
.po-approval-note-label {
  display: block;
  font-style: normal;
  font-family: inherit;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3px;
}

/* Preview cards — letter & message */
.po-preview {
  background: #fefcf6;
  border: 1px solid var(--border);
  border-radius: 3px;
  margin-bottom: 18px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.04);
}
[data-theme="dark"] .po-preview { background: var(--bg-elevated); }
.po-preview-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 14px;
  background: rgba(26,38,66,0.04);
  border-bottom: 1px solid var(--border);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
}
.po-preview-meta {
  font-style: italic;
  font-family: var(--font-serif);
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 11px;
  font-weight: 500;
}
.po-preview-body {
  padding: 20px 22px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  font-family: var(--font-serif);
}
.po-preview-body p { margin: 0 0 10px; }
.po-preview-body hr {
  border: none; border-top: 1px solid var(--border);
  margin: 10px 0 12px;
}
.po-preview-muted {
  color: var(--text-muted);
  font-style: italic;
  font-size: 12px;
}
.po-preview-letterhead {
  text-align: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.po-preview-firm {
  font-family: var(--font-serif);
  font-size: 20px; font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.po-preview-firm-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: 0.02em;
}
.po-preview-date {
  margin-bottom: 16px;
  color: var(--text-muted);
}
.po-preview-salutation {
  margin-bottom: 12px;
  font-weight: 500;
}
.po-preview-msg-line {
  font-family: var(--font-sans, system-ui);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.po-preview-msg-line strong {
  color: var(--text);
  font-weight: 600;
}

.po-approval-actions {
  display: flex; gap: 10px; align-items: center;
  flex-wrap: wrap;
}
.po-btn-approve { min-width: 160px; justify-content: center; }
.po-approval-dismiss {
  margin-left: auto;
  padding: 10px 14px;
  background: transparent;
  border: none;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.04em;
}
.po-approval-dismiss:hover { color: var(--text); text-decoration: underline; }

/* ── INSIGHTS ROW ────────────────────────────────────── */
.po-insights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) {
  .po-insights { grid-template-columns: 1fr; }
}
.po-small { padding: 22px 24px 20px; }
.po-small-h {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--text);
}

/* Calendar */
.po-cal { display: flex; flex-direction: column; }
.po-cal-row {
  display: grid;
  grid-template-columns: 62px 1fr 20px;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.po-cal-row:last-child { border-bottom: none; }
.po-cal-time { display: flex; flex-direction: column; gap: 1px; }
.po-cal-t {
  font-family: var(--font-serif);
  font-size: 17px; font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1;
}
.po-cal-dur {
  font-size: 10px; font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}
.po-cal-name {
  font-size: 14px; font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.po-cal-kind {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-style: italic;
}
.po-cal-mark {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--gold);
  font-style: italic;
  text-align: center;
}
.po-cal-you .po-cal-mark { color: var(--text-muted); }
.po-cal-court .po-cal-mark { color: #8a3a3a; }

/* Matters */
.po-matters { display: flex; flex-direction: column; }
.po-matter {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.po-matter:last-child { border-bottom: none; }
.po-matter-name {
  font-size: 14px; font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.po-matter-stage {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.po-matter-action {
  font-size: 11px; font-weight: 600;
  color: var(--gold);
  text-align: right;
  font-family: var(--font-serif);
  font-style: italic;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  padding-top: 2px;
}

/* Pulse */
.po-pulse {}
.po-pulse-big {
  padding: 6px 0 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.po-pulse-num {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 6px;
}
.po-pulse-num em {
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
}
.po-pulse-label {
  font-size: 13px; font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.po-pulse-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--font-serif);
}
.po-pulse-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.po-pulse-cell {
  padding: 8px 0;
}
.po-pulse-n {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.po-pulse-s {
  font-size: 10px; font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.po-pulse-chart {
  color: var(--gold);
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}
.po-pulse-axis {
  display: flex; justify-content: space-between;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}


/* ═══════════════════════════════════════════════════════
   CALENDAR PAGE
   ═══════════════════════════════════════════════════════ */

.ca-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 48px 80px;
  font-family: var(--font-sans);
  color: var(--text);
}

.ca-hero { margin-bottom: 28px; }
.ca-hero-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.ca-view-toggle {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg-card);
}
.ca-view-toggle button {
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 14px;
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-right: 1px solid var(--border);
  cursor: pointer;
}
.ca-view-toggle button:last-child { border-right: none; }
.ca-view-toggle button.on {
  background: var(--gold-soft);
  color: var(--gold);
}
.ca-view-toggle button:disabled {
  opacity: 0.4; cursor: not-allowed;
}

.ca-hero-main { max-width: 880px; }
.ca-hero-h {
  font-family: var(--font-serif);
  font-size: 56px; font-weight: 400;
  letter-spacing: -0.02em; line-height: 1.05;
  margin: 12px 0 8px;
  color: var(--text);
  text-wrap: pretty;
}
.ca-hero-h em {
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
}
.ca-hero-sub {
  font-family: var(--font-serif);
  font-size: 18px; font-style: italic;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 720px;
}

.ca-legend {
  margin-top: 22px;
  display: flex; flex-wrap: wrap; gap: 20px;
  padding: 14px 18px;
  border: 1px solid var(--gold-border);
  background: var(--bg-card);
  border-radius: 2px;
}
.ca-legend-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
  color: var(--text);
}
.ca-legend-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.ca-k-alex         { --k: var(--gold); }
.ca-k-court        { --k: #c23a3a; }
.ca-k-you          { --k: #28407a; }
.ca-k-ext-private  { --k: #8892a4; }
.ca-legend-dot.ca-k-alex         { background: var(--gold); }
.ca-legend-dot.ca-k-court        { background: #c23a3a; }
.ca-legend-dot.ca-k-you          { background: #28407a; }
.ca-legend-dot.ca-k-ext-private  { background: #8892a4; }
.ca-legend-label { color: var(--text); }
.ca-legend-count {
  font-family: var(--font-serif);
  color: var(--text-muted);
  font-style: italic;
}

/* Integration rail */
.ca-rail {
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 18px;
  margin-bottom: 28px;
}
.ca-rail-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.ca-rail-title {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted);
}
.ca-rail-manage {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--gold);
  text-decoration: none;
}
.ca-rail-items {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}
.ca-rail-item {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 10px; align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 2px;
}
.ca-rail-logo {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 4px;
  font-weight: 700; font-family: var(--font-serif);
  color: #fff;
}
.ca-logo-google  { background: #4285f4; }
.ca-logo-icloud  { background: #1a2642; }
.ca-logo-outlook { background: #0078d4; }
.ca-logo-clio    { background: #28407a; }
.ca-rail-name { font-size: 13px; font-weight: 600; color: var(--text); }
.ca-rail-note { font-size: 11px; color: var(--text-muted); font-family: var(--font-serif); font-style: italic; }
.ca-rail-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.ca-rail-s-connected { color: #2a7a4a; }
.ca-rail-s-paused    { color: var(--text-muted); }
.ca-rail-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ca-rail-foot {
  margin-top: 12px;
  font-size: 12px; font-family: var(--font-serif);
  color: var(--text-muted); line-height: 1.5;
}
.ca-rail-key {
  font-family: var(--font-sans);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
  margin-right: 6px;
}

/* Week grid */
.ca-week {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 2px;
}
.ca-week-grid {
  display: grid;
  grid-template-columns: 64px repeat(5, 1fr);
}
.ca-gutter, .ca-col { position: relative; }
.ca-gutter-spacer, .ca-col-head {
  height: 48px;
  border-bottom: 1px solid var(--border);
}
.ca-gutter-hour {
  height: 56px;
  padding: 4px 8px 0 0;
  text-align: right;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border-right: 1px solid var(--border);
}
.ca-col {
  border-left: 1px solid var(--border);
}
.ca-col.today { background: rgba(201,168,76,0.04); }
.ca-col-head {
  padding: 8px 12px;
  display: flex; align-items: baseline; gap: 8px;
  position: relative;
}
.ca-col-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
}
.ca-col-num {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--text);
}
.ca-col.today .ca-col-num { color: var(--gold); }
.ca-col-today {
  position: absolute; top: 8px; right: 12px;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-family: var(--font-sans);
}
.ca-col-body {
  position: relative;
  height: 616px;
}
.ca-hour-line {
  position: absolute; left: 0; right: 0;
  border-top: 1px dashed var(--border);
  height: 0;
}
.ca-ev {
  position: absolute;
  left: 4px; right: 4px;
  padding: 6px 8px;
  border-left: 3px solid var(--k, var(--gold));
  background: var(--bg-elevated);
  font-size: 11px;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.ca-ev.hot {
  box-shadow: 0 2px 10px rgba(201,168,76,0.25);
  background: rgba(201,168,76,0.10);
}
.ca-ev-time {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.ca-ev-title { font-weight: 700; color: var(--text); line-height: 1.2; }
.ca-ev-sub { font-family: var(--font-serif); font-style: italic; color: var(--text-muted); font-size: 11px; margin-top: 2px; }

/* Day view */
.ca-day {
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 24px 28px;
}
.ca-day-head { border-bottom: 1px solid var(--border); padding-bottom: 14px; margin-bottom: 18px; }
.ca-day-head h3 {
  font-family: var(--font-serif);
  font-size: 32px; font-weight: 500;
  margin: 0 0 4px;
  color: var(--text);
}
.ca-day-meta { font-family: var(--font-serif); font-style: italic; color: var(--text-muted); }
.ca-day-list { list-style: none; padding: 0; margin: 0; }
.ca-day-row {
  display: grid;
  grid-template-columns: 90px 4px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.ca-day-row:last-child { border-bottom: none; }
.ca-day-start { font-family: var(--font-serif); font-size: 18px; color: var(--text); }
.ca-day-dur   { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.ca-day-rail  { background: var(--k, var(--gold)); }
.ca-day-title { font-size: 15px; font-weight: 700; color: var(--text); }
.ca-day-sub   { font-family: var(--font-serif); font-style: italic; color: var(--text-muted); margin: 2px 0 6px; }
.ca-day-source { font-size: 11px; color: var(--text-dim); letter-spacing: 0.04em; }

/* Footer */
.ca-foot {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.ca-foot-k {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.ca-foot-col p, .ca-foot-col li {
  font-size: 13px; line-height: 1.6; color: var(--text-muted);
  font-family: var(--font-serif);
}
.ca-foot-col ul { padding-left: 18px; margin: 0; }
.ca-foot-col ul li { margin-bottom: 4px; }
.ca-foot-li-new { color: var(--gold) !important; font-style: italic; }
.ca-foot-link { color: var(--gold); font-family: var(--font-serif); font-style: italic; text-decoration: none; font-size: 13px; display: inline-block; margin-top: 6px; }

/* ═══════════════════════════════════════════════════════
   MATTERS PAGE
   ═══════════════════════════════════════════════════════ */

.ma-page {
  max-width: 1400px; margin: 0 auto;
  padding: 40px 48px 80px;
  font-family: var(--font-sans); color: var(--text);
}
.ma-hero { margin-bottom: 28px; max-width: 880px; }
.ma-hero-h {
  font-family: var(--font-serif);
  font-size: 56px; font-weight: 400;
  letter-spacing: -0.02em; line-height: 1.05;
  margin: 12px 0 8px;
}
.ma-hero-h em { color: var(--gold); font-style: italic; font-weight: 500; }
.ma-hero-sub {
  font-family: var(--font-serif); font-size: 18px; font-style: italic;
  line-height: 1.5; color: var(--text-muted); max-width: 720px;
}

.ma-split {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  min-height: 700px;
}

.ma-list {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 2px;
  overflow: hidden;
}
.ma-list-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 14px;
  border-bottom: 1px solid var(--border);
}
.ma-list-title { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.ma-list-new { background: transparent; border: 1px solid var(--gold-border); color: var(--gold); padding: 4px 10px; border-radius: 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; cursor: pointer; }
.ma-list-new:hover { background: var(--gold-soft); }
.ma-list-rows { max-height: 900px; overflow-y: auto; }

.ma-item {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  cursor: pointer;
  display: block;
  font-family: inherit;
  color: inherit;
  transition: background 0.1s, border-left-color 0.1s;
}
.ma-item:hover { background: var(--bg-elevated); }
.ma-item.on {
  background: var(--bg-elevated);
  border-left-color: var(--gold);
}
.ma-item-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; align-items: flex-start; }
.ma-item-name { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.3; min-width: 0; flex: 1; }
.ma-item-stage {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 2px;
  background: var(--gold-soft);
  color: var(--gold);
  flex-shrink: 0;
}
.ma-item-type { font-family: var(--font-serif); font-style: italic; font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.ma-item-foot {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 11px;
}
.ma-item-age { color: var(--text-dim); }
.ma-item-next { font-weight: 600; text-align: right; }
.ma-urg-ok    { color: #2a7a4a; }
.ma-urg-warn  { color: #b5791f; }
.ma-urg-muted { color: var(--text-dim); }

/* Matter detail */
.ma-detail {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 2px;
  display: flex; flex-direction: column;
}
.ma-detail-head {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--border);
}
.ma-detail-type {
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 4px;
}
.ma-detail-h {
  font-family: var(--font-serif);
  font-size: 32px; font-weight: 500; line-height: 1.1;
  margin: 0 0 6px;
  color: var(--text);
}
.ma-detail-meta { font-family: var(--font-serif); font-style: italic; font-size: 13px; color: var(--text-muted); }
.ma-detail-acts { display: flex; gap: 8px; align-items: flex-start; flex-shrink: 0; }

.ma-tabs {
  display: flex;
  gap: 0;
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
}
.ma-tabs button {
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 12px 18px;
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.1s, border-bottom-color 0.1s;
}
.ma-tabs button:hover { color: var(--text); }
.ma-tabs button.on {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.ma-detail-body { padding: 22px 28px 28px; overflow-y: auto; max-height: 900px; }

/* Timeline */
.ma-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.ma-timeline::before {
  content: '';
  position: absolute; left: 14px; top: 0; bottom: 0;
  width: 1px; background: var(--border);
}
.ma-tl {
  position: relative;
  padding: 10px 0 14px 42px;
  border-bottom: 1px dashed var(--border);
}
.ma-tl:last-child { border-bottom: none; }
.ma-tl-marker {
  position: absolute;
  left: 6px; top: 12px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-size: 11px; font-weight: 600;
  color: var(--text-muted);
}
.ma-tl-alex     .ma-tl-marker { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.ma-tl-call     .ma-tl-marker { border-color: #2a7a4a; color: #2a7a4a; }
.ma-tl-email-in .ma-tl-marker,
.ma-tl-email-out .ma-tl-marker { border-color: #28407a; color: #28407a; }
.ma-tl-doc      .ma-tl-marker { border-color: var(--text-muted); color: var(--text-muted); }
.ma-tl-open     .ma-tl-marker { border-color: var(--gold); background: var(--gold); color: #fff; }
.ma-tl-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.ma-tl-title { font-size: 13px; font-weight: 700; color: var(--text); }
.ma-tl-time { font-family: var(--font-serif); font-style: italic; font-size: 11px; color: var(--text-dim); flex-shrink: 0; }
.ma-tl-text { font-family: var(--font-serif); font-size: 14px; line-height: 1.5; color: var(--text-muted); margin-top: 3px; }

/* Alex notes */
.ma-notes-hint {
  font-family: var(--font-serif); font-style: italic; font-size: 14px;
  padding: 12px 16px;
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  color: var(--text);
  margin-bottom: 16px; line-height: 1.5;
}
.ma-note {
  border: 1px solid var(--border);
  padding: 14px 16px;
  margin-bottom: 10px;
  background: var(--bg-elevated);
}
.ma-note-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.ma-note-who { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.ma-note-time { font-family: var(--font-serif); font-style: italic; font-size: 12px; color: var(--text-muted); }
.ma-note-body { font-family: var(--font-serif); font-size: 15px; line-height: 1.55; color: var(--text); margin: 0 0 10px; }
.ma-note-foot { display: flex; gap: 8px; }
.ma-note-foot button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 10px;
  font-size: 11px; font-family: var(--font-sans); font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
}
.ma-note-foot button:hover { border-color: var(--gold-border); color: var(--gold); }

/* Tasks */
.ma-tasks { list-style: none; padding: 0; margin: 0; }
.ma-task {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 14px; align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.ma-task-who {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 2px; text-align: center;
}
.ma-task-who-you  { color: #28407a; background: rgba(40,64,122,0.10); }
.ma-task-who-alex { color: var(--gold); background: var(--gold-soft); }
.ma-task-text { font-size: 14px; color: var(--text); }
.ma-task-due  { font-family: var(--font-serif); font-style: italic; color: var(--text-muted); font-size: 13px; }

/* Contacts */
.ma-contacts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.ma-contact {
  border: 1px solid var(--border);
  padding: 12px 14px;
  background: var(--bg-elevated);
}
.ma-contact-role { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.ma-contact-name { font-size: 15px; font-weight: 700; color: var(--text); }
.ma-contact-meta { font-family: var(--font-serif); font-style: italic; font-size: 13px; color: var(--text-muted); margin-top: 3px; }

/* ═══════════════════════════════════════════════════════
   SETTINGS PAGE
   ═══════════════════════════════════════════════════════ */

.se-page {
  max-width: 1200px; margin: 0 auto;
  padding: 40px 48px 80px;
  font-family: var(--font-sans); color: var(--text);
}
.se-hero { margin-bottom: 32px; max-width: 800px; }
.se-hero-h {
  font-family: var(--font-serif);
  font-size: 56px; font-weight: 400;
  letter-spacing: -0.02em; line-height: 1.05;
  margin: 12px 0 8px;
}
.se-hero-h em { color: var(--gold); font-style: italic; font-weight: 500; }
.se-hero-sub {
  font-family: var(--font-serif); font-size: 18px; font-style: italic;
  line-height: 1.5; color: var(--text-muted);
}

.se-split {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
}
.se-tabs {
  display: flex; flex-direction: column;
  border-right: 1px solid var(--border);
  padding-right: 20px;
  align-self: start;
  position: sticky; top: 80px;
}
.se-tabs button {
  text-align: left;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 2px;
  transition: border-left-color 0.1s, color 0.1s, background 0.1s;
}
.se-tabs button:hover { color: var(--text); }
.se-tabs button.on {
  color: var(--gold);
  border-left-color: var(--gold);
  background: var(--gold-soft);
}

.se-body { max-width: 760px; }
.se-section { padding-bottom: 20px; }
.se-sec-head { display: flex; gap: 14px; margin: 32px 0 16px; align-items: baseline; }
.se-sec-head:first-child { margin-top: 0; }
.se-sec-num {
  font-family: var(--font-serif);
  font-size: 18px; font-style: italic;
  color: var(--gold); font-weight: 500;
  line-height: 1;
}
.se-sec-title { font-family: var(--font-serif); font-size: 24px; font-weight: 500; margin: 0; color: var(--text); }
.se-sec-sub { font-family: var(--font-serif); font-style: italic; font-size: 14px; color: var(--text-muted); margin: 4px 0 0; }

/* Fields */
.se-field { margin-bottom: 16px; }
.se-field-label {
  display: block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.se-field-input, .se-field-area {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
}
.se-field-area { font-family: var(--font-serif); font-size: 15px; line-height: 1.5; resize: vertical; }
.se-field-input:focus, .se-field-area:focus {
  outline: none; border-color: var(--gold);
}
.se-field-hint {
  margin-top: 4px;
  font-family: var(--font-serif); font-style: italic;
  font-size: 12px; color: var(--text-muted);
}

.se-field-radios { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.se-rad {
  display: flex; gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  background: var(--bg-elevated);
}
.se-rad.on {
  border-color: var(--gold);
  background: var(--gold-soft);
}
.se-rad input { margin-top: 3px; accent-color: var(--gold); }
.se-rad-n { font-size: 13px; font-weight: 700; color: var(--text); }
.se-rad-s { font-family: var(--font-serif); font-style: italic; font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Rules (toggles) */
.se-rules { display: flex; flex-direction: column; gap: 8px; }
.se-rule {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 14px; align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  cursor: pointer;
}
.se-rule.disabled { cursor: default; opacity: 0.75; }
.se-rule-switch {
  width: 36px; height: 20px;
  background: var(--border-strong);
  border-radius: 10px;
  position: relative;
  transition: background 0.15s;
  cursor: pointer;
}
.se-rule-switch.on { background: var(--gold); }
.se-rule-knob {
  position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s;
}
.se-rule-switch.on .se-rule-knob { transform: translateX(16px); }
.se-rule-label { font-size: 14px; font-weight: 600; color: var(--text); }
.se-rule-sub { font-family: var(--font-serif); font-style: italic; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.se-rule-locked {
  font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim); padding: 3px 6px; border: 1px solid var(--border); border-radius: 2px;
}

/* Integrations */
.se-int { display: flex; flex-direction: column; }
.se-int-row {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  gap: 14px; align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
}
.se-int-row:last-child { border-bottom: none; }
.se-int-logo {
  width: 40px; height: 40px;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-weight: 700; font-size: 18px;
  color: var(--gold);
}
.se-int-name { font-size: 15px; font-weight: 700; color: var(--text); }
.se-int-cat { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin: 1px 0 3px; }
.se-int-note { font-family: var(--font-serif); font-style: italic; font-size: 13px; color: var(--text-muted); }
.se-int-status {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
}
.se-int-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.se-int-live          { color: #2a7a4a; }
.se-int-pending       { color: #b5791f; }
.se-int-not-connected { color: var(--text-dim); }
.se-int-act {
  background: transparent;
  border: 1px solid var(--gold-border);
  color: var(--gold);
  padding: 6px 14px;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.15s;
}
.se-int-act:hover { background: var(--gold-soft); }

/* Training recordings */
.se-training { display: flex; flex-direction: column; }
.se-training-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px; align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}
.se-training-mark { color: var(--gold); font-size: 18px; }
.se-training-len { font-family: var(--font-serif); font-style: italic; color: var(--text-muted); font-size: 12px; }
.se-training-add {
  margin-top: 12px;
  padding: 10px; width: 100%;
  background: transparent;
  border: 1px dashed var(--gold-border-strong);
  color: var(--gold);
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  border-radius: 2px; cursor: pointer;
}
.se-training-add:hover { background: var(--gold-soft); }

/* First-week mode banner */
.se-firstweek {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 14px;
  align-items: center;
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  border-radius: 2px;
}
.se-firstweek-mark {
  font-family: var(--font-serif); font-size: 32px;
  color: var(--gold); line-height: 1; text-align: center;
}
.se-firstweek strong { color: var(--text); display: block; margin-bottom: 2px; }
.se-firstweek { font-family: var(--font-serif); font-size: 14px; line-height: 1.5; color: var(--text-muted); }

/* Hours */
.se-hours { display: flex; flex-direction: column; border: 1px solid var(--border); }
.se-hours-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 14px; align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.se-hours-row:last-child { border-bottom: none; }
.se-hours-day { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.se-hours-times { font-size: 14px; color: var(--text); }
.se-hours-off .se-hours-times { color: var(--text-muted); font-family: var(--font-serif); font-style: italic; }
.se-hours-edit {
  background: transparent; border: 1px solid var(--border-strong);
  color: var(--text-muted);
  padding: 4px 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  border-radius: 2px; cursor: pointer;
}
.se-hours-edit:hover { border-color: var(--gold-border); color: var(--gold); }

/* Plan / team */
.se-plan {
  padding: 18px 20px;
  border: 1px solid var(--gold-border);
  background: var(--gold-soft);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px; align-items: center;
  border-radius: 2px;
}
.se-plan-name { font-family: var(--font-serif); font-size: 24px; color: var(--text); font-weight: 500; }
.se-plan-meta { font-family: var(--font-serif); font-style: italic; color: var(--text-muted); font-size: 13px; margin-top: 2px; }

.se-team { display: flex; flex-direction: column; }
.se-team-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 14px; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.se-team-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold); color: #1a2642;
  font-weight: 700; display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 14px;
}
.se-team-name { font-size: 15px; font-weight: 700; color: var(--text); }
.se-team-role { font-family: var(--font-serif); font-style: italic; font-size: 13px; color: var(--text-muted); }
.se-team-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--gold); padding: 3px 8px;
  background: var(--gold-soft); border-radius: 2px;
}
.se-team-add {
  margin-top: 12px; padding: 10px;
  background: transparent; border: 1px dashed var(--gold-border-strong);
  color: var(--gold); font-size: 13px; font-weight: 600; cursor: pointer;
  border-radius: 2px;
}

.se-danger { display: flex; gap: 10px; }
.se-danger-btn {
  background: transparent; border: 1px solid #c23a3a; color: #c23a3a;
  padding: 8px 16px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; border-radius: 2px; cursor: pointer;
  font-family: var(--font-sans);
}

/* ═══════════════════════════════════════════════════════
   SHARED QUEUE BUTTON STYLES (referenced by settings)
   ═══════════════════════════════════════════════════════ */

.qu-btn {
  padding: 8px 16px;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.qu-btn-primary {
  background: var(--cta-bg, var(--gold));
  color: var(--cta-ink, #1a2642);
  border: 1px solid var(--cta-bg, var(--gold));
}
.qu-btn-primary:hover { background: var(--cta-bg-hover, var(--gold-hover)); }
.qu-btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-strong);
}
.qu-btn-ghost:hover { border-color: var(--gold-border); color: var(--gold); }

.qu-icon-btn {
  width: 32px; height: 32px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-muted);
  cursor: pointer;
  display: grid; place-items: center;
}
.qu-icon-btn:hover { border-color: var(--gold-border); color: var(--gold); }

.qu-open-doc {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid var(--gold-border-strong);
  border-radius: 6px;
  text-decoration: none;
  transition: all .15s;
  margin-right: 6px;
  white-space: nowrap;
}
.qu-open-doc:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--cta-ink, #fff);
}
[data-theme="dark"] .qu-open-doc:hover { color: #0a1628; }
.qu-open-doc svg { flex-shrink: 0; }


/* ═══════════════════════════════════════════════════════
   QUEUE PAGE
   ═══════════════════════════════════════════════════════ */

.qu-page {
  max-width: 1400px; margin: 0 auto;
  padding: 40px 48px 80px;
  font-family: var(--font-sans); color: var(--text);
}

.qu-hero { margin-bottom: 28px; }
.qu-hero-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 16px;
}
.qu-hero-count {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--text-muted);
}
.qu-hero-count em { color: var(--gold); font-weight: 600; font-style: italic; font-size: 18px; }
.qu-hero-h {
  font-family: var(--font-serif);
  font-size: 56px; font-weight: 400;
  letter-spacing: -0.02em; line-height: 1.05;
  margin: 12px 0 8px;
  color: var(--text);
  text-wrap: pretty;
}
.qu-hero-h em { color: var(--gold); font-style: italic; font-weight: 500; }
.qu-hero-sub {
  font-family: var(--font-serif);
  font-size: 18px; font-style: italic;
  line-height: 1.5; color: var(--text-muted);
  max-width: 720px;
}

/* Split: list | preview */
.qu-split {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
  min-height: 700px;
}

/* ── LIST column ── */
.qu-list {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 2px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.qu-list-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.qu-list-filters {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.qu-chip {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: border-color 0.1s, color 0.1s;
}
.qu-chip:hover { border-color: var(--gold-border); color: var(--text); }
.qu-chip.on {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold);
}
.qu-chip-count {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  font-size: 12px;
  opacity: 0.85;
}

.qu-list-rows {
  flex: 1;
  overflow-y: auto;
  max-height: 900px;
}

.qu-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  width: 100%;
  padding: 14px 14px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  text-align: left;
  font-family: inherit; color: inherit;
  cursor: pointer;
  transition: background 0.1s, border-left-color 0.1s;
}
.qu-item:hover { background: var(--bg-elevated); }
.qu-item.on {
  background: var(--bg-elevated);
  border-left-color: var(--gold);
}

.qu-item-rail {
  display: grid; place-items: start center;
  padding-top: 2px;
}
.qu-item-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 700;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 14px;
  line-height: 1;
}
.qu-item-icon svg { width: 14px; height: 14px; }
.qu-kind-email    { background: rgba(40,64,122,0.12); color: #28407a; }
.qu-kind-letter   { background: var(--gold-soft); color: var(--gold); }
.qu-kind-callback { background: rgba(42,122,74,0.12); color: #2a7a4a; }
.qu-kind-filing   { background: rgba(194,58,58,0.12); color: #c23a3a; }
.qu-kind-invoice  { background: rgba(181,121,31,0.14); color: #b5791f; }
.qu-kind-intake   { background: rgba(40,64,122,0.10); color: #28407a; }

.qu-item-body { min-width: 0; }
.qu-item-top {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px;
}
.qu-item-kind {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
}
.qu-urg {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 2px;
}
.qu-urg.now   { background: rgba(194,58,58,0.12); color: #c23a3a; }
.qu-urg.today { background: var(--gold-soft); color: var(--gold); }

.qu-item-client {
  font-size: 14px; font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 2px;
}
.qu-item-matter {
  font-family: var(--font-serif); font-style: italic;
  font-size: 12px; color: var(--text-muted);
  margin-bottom: 6px;
}
.qu-item-preview {
  font-size: 13px; color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.qu-item-foot {
  display: flex; gap: 6px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 11px;
  color: var(--text-dim);
}
.qu-item-note { color: var(--gold); }

.qu-empty {
  padding: 60px 20px;
  text-align: center;
}
.qu-empty-mark {
  font-family: var(--font-serif);
  font-size: 48px; font-style: italic;
  color: var(--gold);
  margin-bottom: 10px;
  line-height: 1;
}
.qu-empty-h {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--text);
  margin-bottom: 6px;
}
.qu-empty-p {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
}

/* ── PREVIEW column ── */
.qu-preview {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 2px;
  display: flex; flex-direction: column;
}
.qu-preview-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.qu-preview-lead { min-width: 0; }
.qu-preview-kind {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.qu-preview-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 700;
  font-size: 11px;
}
.qu-preview-icon svg { width: 12px; height: 12px; }
.qu-preview-client {
  font-family: var(--font-serif);
  font-size: 28px; font-weight: 500;
  line-height: 1.15;
  margin: 0 0 4px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.qu-preview-matter {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 22px;
}
.qu-preview-meta {
  font-family: var(--font-serif); font-style: italic;
  font-size: 13px;
  color: var(--text-muted);
}
.qu-edited-pill {
  display: inline-block;
  margin-left: 10px;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
  padding: 3px 6px;
  background: var(--gold-soft);
  border-radius: 2px;
}
.qu-preview-acts {
  display: flex; gap: 6px;
  flex-shrink: 0;
}

.qu-preview-body {
  padding: 22px 28px;
  overflow-y: auto;
  max-height: 900px;
}

/* Context block */
.qu-context {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 24px;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 2px;
  margin-bottom: 22px;
}
.qu-ctx-row { display: flex; flex-direction: column; }
.qu-ctx-row dt {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.qu-ctx-row dd {
  font-size: 13px; color: var(--text);
  margin: 0;
  display: flex; align-items: center; gap: 6px;
}
.qu-ctx-row dd.ok   { color: #2a7a4a; }
.qu-ctx-row dd.warn { color: #b5791f; }
.qu-ctx-check, .qu-ctx-warn {
  display: inline-grid; place-items: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  font-size: 10px; font-weight: 700;
  flex-shrink: 0;
}
.qu-ctx-check { background: rgba(42,122,74,0.15); color: #2a7a4a; }
.qu-ctx-warn  { background: rgba(181,121,31,0.18); color: #b5791f; }

/* Document preview */
.qu-doc {
  padding: 24px 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 2px;
  margin-bottom: 22px;
}
.qu-doc-metaline {
  display: flex; gap: 10px;
  font-size: 13px;
  color: var(--text);
  padding-bottom: 6px;
}
.qu-doc-k {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted);
  min-width: 70px;
  padding-top: 2px;
}
.qu-doc-sep {
  height: 1px; background: var(--border);
  margin: 12px 0 18px;
}
.qu-doc-body {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  outline: none;
  min-height: 80px;
}
.qu-doc-body:focus {
  box-shadow: 0 0 0 2px var(--gold-soft);
  border-radius: 2px;
}
.qu-doc-body p { margin: 0 0 14px; }
.qu-doc-body .qu-doc-sign {
  margin-top: 24px;
  font-style: italic;
  color: var(--text-muted);
}
.qu-doc-body ul { margin: 10px 0 14px 20px; }

/* Alex's sideline note */
.qu-sideline {
  border-left: 3px solid var(--gold);
  background: var(--gold-soft);
  padding: 12px 16px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}
.qu-sideline-k {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

/* Footer */
.qu-preview-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.qu-foot-hint {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}
.qu-foot-acts { display: flex; gap: 8px; }


/* ═══════════════════════════════════════════════════════
   MATTER DETAIL (md-*) — full-bleed single-matter page
   ═══════════════════════════════════════════════════════ */

.md-page {
  padding: 106px 40px 80px;
  max-width: 1440px;
  margin: 0 auto;
}

/* ── HERO ── */
.md-hero {
  border-bottom: 1px solid var(--border);
  padding-bottom: 32px;
  margin-bottom: 40px;
}
.md-hero-crumb {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 24px;
}
.md-hero-crumb a {
  color: var(--text-muted); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.md-hero-crumb a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.md-hero-crumb-sep { opacity: 0.5; }
.md-hero-crumb-id {
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.md-hero-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; margin-bottom: 28px; flex-wrap: wrap;
}
.md-hero-lede { flex: 1 1 auto; min-width: 0; }
.md-hero-type {
  font-family: var(--font-sans); font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 12px;
}
.md-hero-h {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.02; letter-spacing: -0.01em;
  color: var(--text); margin: 0 0 12px;
  font-style: italic;
}
.md-hero-client {
  font-family: var(--font-sans); font-size: 14px;
  color: var(--text-muted);
}
.md-hero-client strong {
  color: var(--text); font-weight: 600;
}

.md-hero-acts {
  display: flex; gap: 10px; flex-wrap: wrap;
  flex-shrink: 0;
}

.md-hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr) minmax(240px, 1.6fr);
  gap: 28px;
  margin: 0;
  font-family: var(--font-sans);
}
.md-hero-meta > div { min-width: 0; }
.md-hero-meta dt {
  font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.md-hero-meta dd {
  margin: 0;
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}
.md-hero-meta-note {
  color: var(--text-muted); font-weight: 400; font-size: 13px;
  font-style: italic;
}
.md-hero-next dd { font-size: 14px; }

.md-stage {
  display: inline-block;
  font-family: var(--font-sans); font-size: 11px;
  padding: 3px 10px;
  border-radius: 2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.md-stage-active { background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-border); }
.md-stage-new    { background: rgba(69,123,157,0.12); color: var(--ink-blue, #457b9d); border: 1px solid rgba(69,123,157,0.35); }
.md-stage-muted  { background: transparent; color: var(--text-muted); border: 1px solid var(--border-strong); }

.md-urg-warn  { color: var(--warn, #b45309); }
.md-urg-ok    { color: var(--ok, #15803d); }
.md-urg-muted { color: var(--text-muted); }

/* ── GRID ── */
.md-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
}
@media (max-width: 1100px) {
  .md-grid { grid-template-columns: 1fr; }
}

.md-main { min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.md-aside {
  position: sticky; top: 96px;
  display: flex; flex-direction: column; gap: 20px;
}
@media (max-width: 1100px) {
  .md-aside { position: static; }
}

/* ── SECTION SHARED ── */
.md-section { min-width: 0; }
.md-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 20px; gap: 20px; flex-wrap: wrap;
}
.md-section-action { flex-shrink: 0; }

/* ── PINNED NOTE (Alex) ── */
.md-pinned-card {
  background: var(--bg-elevated, var(--bg-card));
  border: 1px solid var(--gold-border);
  border-radius: 4px;
  padding: 28px 32px;
  position: relative;
}
.md-pinned-card::before {
  content: '';
  position: absolute;
  left: 0; top: 20px; bottom: 20px;
  width: 3px;
  background: var(--gold);
}
.md-pinned-who {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.md-pinned-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  font-family: var(--font-serif); font-style: italic;
  font-size: 18px;
  display: grid; place-items: center;
  border: 1px solid var(--gold-border);
}
.md-pinned-name {
  font-family: var(--font-sans); font-weight: 600;
  font-size: 14px; color: var(--text);
}
.md-pinned-time {
  font-family: var(--font-sans); font-size: 12px;
  color: var(--text-muted);
}
.md-pinned-body {
  font-family: var(--font-serif); font-size: 18px;
  line-height: 1.55; color: var(--text);
  margin: 0 0 20px;
  max-width: 62ch;
}
.md-pinned-acts {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.md-pinned-acts button {
  font-family: var(--font-sans); font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 2px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.md-pinned-acts button:hover { border-color: var(--gold); color: var(--gold); }
.md-pinned-acts button.md-pinned-primary {
  background: var(--cta-bg, var(--gold));
  color: var(--cta-ink, #0a1628);
  border-color: var(--cta-bg, var(--gold));
}
.md-pinned-acts button.md-pinned-primary:hover {
  background: var(--cta-bg-hover, var(--gold-hover));
}

/* ── ACTIVITY FILTERS ── */
.md-filters {
  display: flex; gap: 4px; flex-wrap: wrap;
}
.md-filters button {
  font-family: var(--font-sans); font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 2px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.md-filters button:hover { color: var(--text); border-color: var(--border-strong); }
.md-filters button.on {
  color: var(--gold); border-color: var(--gold-border);
  background: var(--gold-soft);
}
.md-filter-count {
  font-size: 11px; opacity: 0.7;
  font-variant-numeric: tabular-nums;
}

/* ── TIMELINE ── */
.md-timeline {
  list-style: none; padding: 0; margin: 0;
  position: relative;
}
.md-tl {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 16px 0 18px;
  border-bottom: 1px solid var(--border);
}
.md-tl:last-child { border-bottom: none; }
.md-tl-rail {
  position: absolute;
  left: 19px; top: 40px; bottom: -2px;
  width: 1px; background: var(--border);
}
.md-tl:last-child .md-tl-rail { display: none; }
.md-tl-marker {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 18px;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  z-index: 1;
}
.md-tl-alex .md-tl-marker {
  color: var(--gold); border-color: var(--gold-border);
  background: var(--gold-soft);
  font-style: italic;
}
.md-tl-call-in .md-tl-marker,
.md-tl-call-out .md-tl-marker {
  color: var(--ink-blue, #457b9d);
  border-color: rgba(69,123,157,0.3);
}
.md-tl-body { min-width: 0; padding-top: 8px; }
.md-tl-top {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 4px;
}
.md-tl-kind {
  font-family: var(--font-sans); font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.md-tl-time {
  font-family: var(--font-sans); font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.md-tl-title {
  font-family: var(--font-serif); font-size: 17px;
  color: var(--text); margin-bottom: 4px;
  line-height: 1.3;
}
.md-tl-text {
  font-family: var(--font-sans); font-size: 13px;
  color: var(--text-muted); line-height: 1.5;
  max-width: 62ch;
}

/* ── DOCUMENTS TABLE ── */
.md-doc-table {
  border-top: 1px solid var(--border);
}
.md-doc-row {
  display: grid;
  grid-template-columns: minmax(0, 2.6fr) 1fr 1.2fr 0.8fr 0.6fr 1.2fr;
  gap: 16px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-sans); font-size: 13px;
  color: var(--text);
  align-items: center;
}
.md-doc-row > span { min-width: 0; }
.md-doc-head {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 4px;
  font-weight: 600;
}
.md-doc-name {
  display: flex; align-items: center; gap: 10px;
  font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.md-doc-icon {
  font-family: var(--font-serif); font-size: 16px;
  color: var(--gold); font-style: italic;
  flex-shrink: 0;
}
.md-doc-type, .md-doc-who, .md-doc-when, .md-doc-size {
  color: var(--text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.md-doc-size {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.md-doc-status {
  font-size: 12px;
}
.md-doc-status.warn { color: var(--warn, #b45309); }

/* ── TASKS ── */
.md-tasks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 720px) {
  .md-tasks-grid { grid-template-columns: 1fr; }
}
.md-tasks-col {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-card);
}
.md-tasks-col-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-sans); font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600;
}
.md-tasks-count {
  background: var(--bg-elevated, var(--bg));
  color: var(--text);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  border: 1px solid var(--border);
}
.md-tasks-list {
  list-style: none; padding: 0; margin: 0;
}
.md-task {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-sans); font-size: 13px;
}
.md-task:last-child { border-bottom: none; }
.md-task.urgent .md-task-text { color: var(--text); font-weight: 500; }
.md-task.urgent .md-task-due  { color: var(--warn, #b45309); font-weight: 600; }
.md-task-check input { display: none; }
.md-task-check span {
  display: block; width: 16px; height: 16px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color .15s;
}
.md-task-check:hover span { border-color: var(--gold); }
.md-task-check input:checked + span {
  background: var(--gold);
  border-color: var(--gold);
}
.md-task-alex-mark {
  font-family: var(--font-serif); font-style: italic;
  color: var(--gold); font-size: 16px;
  text-align: center;
}
.md-task-text {
  color: var(--text);
  overflow: hidden; text-overflow: ellipsis;
}
.md-task-due {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.md-tasks-empty {
  padding: 24px 18px;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

/* ── BILLING ── */
.md-billing-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0 0 24px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-sans);
}
.md-billing-stats > div { min-width: 0; }
.md-billing-stats dt {
  font-size: 11px; color: var(--text-muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 6px;
}
.md-billing-stats dd {
  margin: 0; font-size: 16px;
  color: var(--text); font-weight: 600;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 720px) {
  .md-billing-stats { grid-template-columns: repeat(2, 1fr); }
}

.md-invoices {
  border-top: 1px solid var(--border);
}
.md-invoice {
  display: grid;
  grid-template-columns: 110px 1fr 90px 110px 130px;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-sans); font-size: 13px;
  align-items: center;
}
.md-invoice-num {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px; color: var(--text-muted);
}
.md-invoice-label { color: var(--text); }
.md-invoice-date, .md-invoice-amt {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.md-invoice-amt { text-align: right; color: var(--text); font-weight: 600; }
.md-invoice-status {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 2px;
  text-align: center;
  border: 1px solid var(--border);
  justify-self: end;
}
.md-invoice-status.ok   { color: var(--ok, #15803d); border-color: rgba(21,128,61,0.25); background: rgba(21,128,61,0.06); }
.md-invoice-status.warn { color: var(--warn, #b45309); border-color: rgba(180,83,9,0.3); background: rgba(180,83,9,0.08); }

.md-invoices-empty {
  padding: 28px;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: 4px;
}

/* ── ASIDE CARDS ── */
.md-aside-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 18px 20px;
}
.md-aside-head {
  font-family: var(--font-sans); font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

/* ── KEY DATES ── */
.md-keydates { list-style: none; padding: 0; margin: 0; }
.md-keydate {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-sans);
  position: relative;
  padding-left: 14px;
}
.md-keydate:last-child { border-bottom: none; }
.md-keydate::before {
  content: ''; position: absolute; left: 0; top: 16px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-muted);
}
.md-keydate.md-urg-warn::before { background: var(--warn, #b45309); }
.md-keydate.md-urg-ok::before   { background: var(--ok, #15803d); }
.md-keydate-label {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 4px;
  font-weight: 500;
}
.md-keydate-meta {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.md-keydate.md-urg-warn .md-keydate-days { color: var(--warn, #b45309); font-weight: 600; }

/* ── CONTACTS (aside) ── */
.md-contacts { list-style: none; padding: 0; margin: 0; }
.md-contact {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-sans);
}
.md-contact:last-child { border-bottom: none; }
.md-contact-role {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.md-contact-name {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 2px;
}
.md-contact.primary .md-contact-name { color: var(--gold); }
.md-contact-meta {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── LINKED ── */
.md-linked { list-style: none; padding: 0; margin: 0; }
.md-linked-item {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-sans); font-size: 13px;
  align-items: center;
  cursor: pointer;
  transition: color .15s;
}
.md-linked-item:last-child { border-bottom: none; }
.md-linked-item:hover { color: var(--gold); }
.md-linked-mark {
  font-family: var(--font-serif); font-size: 15px;
  color: var(--gold); font-style: italic;
  text-align: center;
}
.md-linked-label {
  color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.md-linked-item:hover .md-linked-label { color: var(--gold); }
.md-linked-date {
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}


/* ═══════════════════════════════════════════════════════
   CALL DETAIL (cd-*) — single-call drill-down
   ═══════════════════════════════════════════════════════ */

.cd-page {
  padding: 106px 40px 80px;
  max-width: 1440px;
  margin: 0 auto;
}

/* ── HERO ── */
.cd-hero {
  border-bottom: 1px solid var(--border);
  padding-bottom: 28px;
  margin-bottom: 40px;
}
.cd-hero-crumb {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 24px;
}
.cd-hero-crumb a {
  color: var(--text-muted); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.cd-hero-crumb a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.cd-hero-crumb-sep { opacity: 0.5; }

.cd-hero-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 32px; margin-bottom: 28px; flex-wrap: wrap;
}
.cd-hero-lede { flex: 1 1 auto; min-width: 0; }
.cd-hero-type {
  font-family: var(--font-sans); font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 10px;
}
.cd-hero-h {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.04; letter-spacing: -0.01em;
  color: var(--text); margin: 0 0 8px;
  font-style: italic;
}
.cd-hero-client {
  font-family: var(--font-sans); font-size: 14px;
  color: var(--text-muted);
}
.cd-hero-disposition {
  flex-shrink: 0;
  text-align: right;
  font-family: var(--font-sans);
  max-width: 280px;
}
.cd-hero-disposition-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.cd-hero-disposition-value {
  font-size: 18px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 8px;
}
.cd-hero-disposition-firstline {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.4;
}

.cd-hero-meta {
  display: grid;
  grid-template-columns: 180px 140px 1fr;
  gap: 32px;
  margin: 0 0 28px;
  font-family: var(--font-sans);
}
.cd-hero-meta dt {
  font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.cd-hero-meta dd {
  margin: 0;
  font-size: 14px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 720px) {
  .cd-hero-meta { grid-template-columns: 1fr; gap: 16px; }
  .cd-hero-disposition { text-align: left; }
}

/* ── AUDIO SCRUBBER ── */
.cd-audio {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.cd-audio-play {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
  background: var(--gold-soft);
  color: var(--gold);
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s, border-color .15s;
}
.cd-audio-play:hover {
  background: var(--gold);
  color: #0a1628;
  border-color: var(--gold);
}
.cd-audio-track {
  flex: 1 1 auto; min-width: 0;
  height: 48px;
  position: relative;
  cursor: pointer;
  border-radius: 2px;
}
.cd-audio-waveform {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  gap: 2px;
}
.cd-audio-bar {
  flex: 1;
  background: var(--border-strong);
  border-radius: 1px;
  min-height: 4px;
  transition: background .15s;
}
.cd-audio-bar.on { background: var(--gold); }
.cd-audio-progress {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 0;
  border-right: 2px solid var(--gold);
  pointer-events: none;
  transition: width .05s linear;
}
.cd-audio-time {
  flex-shrink: 0;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  display: flex; gap: 4px;
  min-width: 84px;
  justify-content: flex-end;
}
.cd-audio-time-sep { opacity: 0.4; }
.cd-audio-time-total { color: var(--text-muted); }
.cd-audio-time span:first-child { color: var(--text); }

/* ── GRID ── */
.cd-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
}
@media (max-width: 1100px) {
  .cd-grid { grid-template-columns: 1fr; }
}
.cd-main { min-width: 0; }
.cd-aside {
  position: sticky; top: 96px;
  display: flex; flex-direction: column; gap: 20px;
}
@media (max-width: 1100px) {
  .cd-aside { position: static; }
}

/* ── TRANSCRIPT ── */
.cd-section { min-width: 0; }
.cd-transcript-ctrls {
  display: flex; gap: 12px; align-items: center;
}
.cd-follow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-size: 12px;
  color: var(--text-muted); cursor: pointer;
  user-select: none;
}
.cd-follow input { accent-color: var(--gold); }

.cd-transcript {
  list-style: none; padding: 0; margin: 0;
  max-height: 70vh;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-card);
  scroll-behavior: smooth;
}
.cd-transcript::-webkit-scrollbar { width: 8px; }
.cd-transcript::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }

.cd-turn {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  transition: background .2s;
}
.cd-turn:last-child { border-bottom: none; }
.cd-turn.active {
  background: var(--gold-soft);
}
.cd-turn-time {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  color: var(--text-muted);
  background: transparent;
  border: none;
  padding: 2px 4px;
  cursor: pointer;
  align-self: start;
  text-align: left;
  border-radius: 2px;
  transition: color .15s, background .15s;
  font-variant-numeric: tabular-nums;
}
.cd-turn-time:hover {
  color: var(--gold);
  background: var(--gold-soft);
}
.cd-turn-body { min-width: 0; }
.cd-turn-who {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.cd-turn-alex .cd-turn-who { color: var(--gold); }
.cd-turn-caller .cd-turn-who { color: var(--ink-blue, #457b9d); }
.cd-turn-text {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  max-width: 62ch;
}
.cd-turn-alex .cd-turn-text { font-style: normal; }
.cd-turn-caller .cd-turn-text { font-style: italic; color: var(--text); opacity: 0.92; }

.cd-turn-internal {
  background: transparent;
}
.cd-turn-system {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  padding: 4px 0;
}
.cd-turn-system-mark {
  font-family: var(--font-serif);
  color: var(--gold);
  font-style: italic;
  font-size: 14px;
}
.cd-turn-summary {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  font-style: italic;
  padding: 8px 0;
  border-left: 2px solid var(--gold-border);
  padding-left: 14px;
}

/* ── ASIDE CARDS ── */
.cd-aside-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 18px 20px;
}
.cd-aside-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-sans); font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.cd-aside-count {
  background: var(--bg-elevated, var(--bg));
  color: var(--text);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  border: 1px solid var(--border);
  font-weight: 500;
}

/* ── DECISIONS ── */
.cd-decisions { list-style: none; padding: 0; margin: 0; counter-reset: cd-dec; }
.cd-decision {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.cd-decision:last-child { border-bottom: none; }
.cd-decision-t {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: 2px;
  padding: 3px 6px;
  cursor: pointer;
  align-self: start;
  font-variant-numeric: tabular-nums;
  transition: background .15s;
  text-align: center;
}
.cd-decision-t:hover {
  background: var(--gold);
  color: #0a1628;
}
.cd-decision-body { min-width: 0; }
.cd-decision-label {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text);
  margin-bottom: 2px;
  line-height: 1.35;
  font-weight: 500;
}
.cd-decision-result {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
}
.cd-decision.md-urg-warn .cd-decision-result { color: var(--warn, #b45309); }

/* ── DRAFTED ── */
.cd-drafted { list-style: none; padding: 0; margin: 0; }
.cd-drafted-item {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.cd-drafted-item:last-child { border-bottom: none; }
.cd-drafted-mark {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 16px;
  text-align: center;
}
.cd-drafted-body { min-width: 0; }
.cd-drafted-label {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text);
  margin-bottom: 2px;
  font-weight: 500;
}
.cd-drafted-status {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-muted);
}
.cd-drafted-status.warn { color: var(--warn, #b45309); }
.cd-drafted-open {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 2px;
  border: 1px solid var(--border);
  transition: color .15s, border-color .15s;
}
.cd-drafted-open:hover { color: var(--gold); border-color: var(--gold); }
.cd-drafted-empty {
  padding: 16px 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

/* ── BOOKED ── */
.cd-booked { list-style: none; padding: 0; margin: 0; }
.cd-booked-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-sans);
}
.cd-booked-item:last-child { border-bottom: none; }
.cd-booked-label {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 3px;
}
.cd-booked-when {
  font-size: 12px;
  color: var(--gold);
  margin-bottom: 3px;
  font-variant-numeric: tabular-nums;
}
.cd-booked-meta {
  font-size: 11px;
  color: var(--text-muted);
}
.cd-booked-empty {
  padding: 16px 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

/* ── DOWNLOAD ── */
.cd-download { }
.cd-download-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}
.cd-download-acts {
  display: flex; flex-direction: column; gap: 6px;
}
.cd-download-acts button {
  font-family: var(--font-sans); font-size: 12px; font-weight: 500;
  padding: 8px 12px;
  border-radius: 2px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: color .15s, border-color .15s;
  text-align: left;
}
.cd-download-acts button:hover { color: var(--gold); border-color: var(--gold); }

.md-tl-link {
  color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--gold-border);
  transition: color .15s, border-color .15s;
}
.md-tl-link:hover { color: var(--gold); border-bottom-color: var(--gold); }


/* ═══════════════════════════════════════════════════════
   DOC VIEWER (dv-*) — document read/edit view
   ═══════════════════════════════════════════════════════ */

.dv-page {
  padding: 106px 40px 80px;
  max-width: 1440px;
  margin: 0 auto;
}

/* ── HERO ── */
.dv-hero {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 32px;
}
.dv-hero-crumb {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 20px;
}
.dv-hero-crumb a {
  color: var(--text-muted); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.dv-hero-crumb a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.dv-hero-crumb-sep { opacity: 0.5; }

.dv-hero-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.dv-hero-lede { flex: 1 1 auto; min-width: 0; }
.dv-hero-type {
  font-family: var(--font-sans); font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 8px;
}
.dv-hero-h {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08; letter-spacing: -0.01em;
  color: var(--text); margin: 0 0 12px;
  font-style: italic;
  max-width: 22ch;
}
.dv-hero-meta {
  font-family: var(--font-sans); font-size: 13px;
  color: var(--text-muted);
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.dv-hero-status { font-weight: 600; }
.dv-hero-dot { opacity: 0.5; }

.dv-hero-acts {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  flex-shrink: 0;
}
.dv-mode {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  overflow: hidden;
}
.dv-mode button {
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  padding: 8px 14px;
  background: transparent;
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: background .15s, color .15s;
}
.dv-mode button:hover { color: var(--text); }
.dv-mode button.on {
  background: var(--text);
  color: var(--bg);
}

/* ── GRID ── */
.dv-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 1100px) {
  .dv-grid { grid-template-columns: 1fr; }
}
.dv-main { min-width: 0; }
.dv-aside {
  position: sticky; top: 96px;
  display: flex; flex-direction: column; gap: 16px;
}
@media (max-width: 1100px) {
  .dv-aside { position: static; }
}

/* ── PAPER ── */
.dv-paper-wrap {
  padding: 0;
}
.dv-paper {
  background: #fafaf7;
  color: #1a1a1a;
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 80px 72px;
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.62;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 8px 24px rgba(0,0,0,0.06),
    0 32px 64px rgba(0,0,0,0.06);
  border-radius: 2px;
  position: relative;
}
[data-theme="dark"] .dv-paper {
  background: #f2f1ec;
  color: #16161a;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.2),
    0 8px 24px rgba(0,0,0,0.3),
    0 32px 64px rgba(0,0,0,0.3);
}

@media (max-width: 720px) {
  .dv-paper { padding: 48px 32px; }
}

/* Letterhead */
.dv-paper-letterhead {
  text-align: center;
  margin-bottom: 40px;
}
.dv-paper-firm {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-style: italic;
  color: #1a1a1a;
  margin-bottom: 2px;
}
[data-theme="dark"] .dv-paper-firm { color: #16161a; }
.dv-paper-firm-sub {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #6a6a6a;
  margin-bottom: 14px;
}
.dv-paper-addr, .dv-paper-contact {
  font-family: var(--font-sans);
  font-size: 11px;
  color: #6a6a6a;
  line-height: 1.5;
}
.dv-paper-contact { margin-top: 2px; }

.dv-paper-rule {
  border-top: 1px solid #d0cfc7;
  margin-bottom: 32px;
}
[data-theme="dark"] .dv-paper-rule { border-color: #c8c6be; }

/* Meta block */
.dv-paper-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 20px;
  margin: 0 0 32px;
  font-family: var(--font-sans);
  font-size: 12px;
}
.dv-paper-meta > div {
  display: contents;
}
.dv-paper-meta dt {
  color: #6a6a6a;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 10px;
  padding-top: 2px;
  font-weight: 600;
}
.dv-paper-meta dd {
  margin: 0;
  color: #1a1a1a;
}
[data-theme="dark"] .dv-paper-meta dd { color: #16161a; }

/* Salutation */
.dv-paper-sal {
  font-family: var(--font-serif);
  font-size: 15px;
  margin: 0 0 20px;
  color: #1a1a1a;
}
[data-theme="dark"] .dv-paper-sal { color: #16161a; }

/* Body paragraphs */
.dv-paper-body {
  margin-bottom: 32px;
}
.dv-paper-p {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.7;
  color: #1a1a1a;
  margin: 0 0 18px;
  position: relative;
  padding: 4px 0;
  border-radius: 2px;
  transition: background .2s;
}
[data-theme="dark"] .dv-paper-p { color: #16161a; }

.dv-paper-p.has-comment {
  cursor: pointer;
  padding-right: 24px;
}
.dv-paper-p.has-comment:hover {
  background: rgba(201, 162, 39, 0.08);
}
.dv-paper-p.active {
  background: rgba(201, 162, 39, 0.14);
  box-shadow:
    -8px 0 0 -4px rgba(201, 162, 39, 0.14),
     8px 0 0 -4px rgba(201, 162, 39, 0.14);
}

.dv-paper-anchor {
  position: absolute;
  right: -48px;
  top: 4px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: 50%;
}
@media (max-width: 900px) {
  .dv-paper-anchor {
    right: 0;
    top: 4px;
    width: 20px; height: 20px;
    font-size: 12px;
  }
}

/* Closing */
.dv-paper-closing {
  margin: 40px 0 24px;
  font-family: var(--font-serif);
  color: #1a1a1a;
}
[data-theme="dark"] .dv-paper-closing { color: #16161a; }
.dv-paper-sign {
  font-size: 15px;
  margin: 0 0 36px;
}
.dv-paper-name {
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid #d0cfc7;
  display: inline-block;
  padding-bottom: 2px;
  margin-bottom: 6px;
}
.dv-paper-title {
  font-family: var(--font-sans);
  font-size: 12px;
  color: #6a6a6a;
}
.dv-paper-bar {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #8a8a8a;
  margin-top: 4px;
}

/* Enclosures */
.dv-paper-encl {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #d0cfc7;
  font-family: var(--font-sans);
}
.dv-paper-encl-h {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a6a6a;
  margin-bottom: 8px;
  font-weight: 600;
}
.dv-paper-encl ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  color: #1a1a1a;
}
.dv-paper-encl li {
  padding: 2px 0;
}
[data-theme="dark"] .dv-paper-encl li { color: #16161a; }

/* ── ASIDE CARDS ── */
.dv-aside-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 18px 20px;
}
.dv-aside-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-sans); font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}
.dv-aside-count {
  background: var(--bg-elevated, var(--bg));
  color: var(--text);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  border: 1px solid var(--border);
  font-weight: 500;
}
.dv-aside-t {
  text-transform: none; letter-spacing: 0;
  font-weight: 400;
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--text-muted);
}

/* Author note */
.dv-author {
  border-color: var(--gold-border);
  background: var(--gold-soft);
  position: relative;
}
.dv-author::before {
  content: '';
  position: absolute;
  left: 0; top: 16px; bottom: 16px;
  width: 3px;
  background: var(--gold);
}
.dv-author-body {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
}

/* Comments */
.dv-comments { list-style: none; padding: 0; margin: 0; }
.dv-comment {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
  margin: 0 -8px;
  padding-left: 8px; padding-right: 8px;
  border-radius: 2px;
}
.dv-comment:last-child { border-bottom: none; }
.dv-comment:hover { background: var(--gold-soft); }
.dv-comment.active { background: var(--gold-soft); }
.dv-comment-mark {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 16px;
  text-align: center;
  padding-top: 2px;
}
.dv-comment-body { min-width: 0; }
.dv-comment-t {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.dv-comment-body p {
  font-family: var(--font-serif);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 8px;
}
.dv-comment-acts {
  display: flex; gap: 6px;
}
.dv-comment-acts button {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 2px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.dv-comment-acts button:hover { color: var(--gold); border-color: var(--gold); }

/* Versions */
.dv-versions { list-style: none; padding: 0; margin: 0; counter-reset: dv-v; }
.dv-version {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-sans);
}
.dv-version:last-child { border-bottom: none; }
.dv-version.current {
  background: var(--gold-soft);
  margin: 0 -12px;
  padding: 10px 12px;
  border-radius: 2px;
  border-color: var(--gold-border);
}
.dv-version-v {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.dv-version.current .dv-version-v { color: var(--gold); font-weight: 600; }
.dv-version-body { min-width: 0; }
.dv-version-top {
  display: flex; justify-content: space-between; gap: 10px;
  margin-bottom: 2px;
}
.dv-version-who {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.dv-version-t {
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.dv-version-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Metadata */
.dv-meta {
  display: flex; flex-direction: column;
  margin: 0;
  font-family: var(--font-sans);
}
.dv-meta > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 12px;
}
.dv-meta > div:last-child { border-bottom: none; }
.dv-meta dt {
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  padding-top: 1px;
}
.dv-meta dd {
  margin: 0;
  color: var(--text);
}

/* Related */
.dv-related-matter {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--gold);
  text-decoration: none;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  transition: color .15s;
}
.dv-related-matter:hover { color: var(--gold-hover, var(--gold)); }

.dv-related { list-style: none; padding: 0; margin: 0; }
.dv-related-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  padding: 8px 0;
  font-family: var(--font-sans); font-size: 12px;
  color: var(--text);
  align-items: center;
  cursor: pointer;
  transition: color .15s;
}
.dv-related-item:hover { color: var(--gold); }
.dv-related-mark {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 14px;
  text-align: center;
}

.md-doc-row-link {
  text-decoration: none; color: inherit;
  cursor: pointer;
  transition: background .15s;
}
.md-doc-row-link:hover { background: var(--gold-soft); }
.md-doc-row-link:hover .md-doc-name { color: var(--gold); }

/* ═════════════════════════════════════════════════════
   INTAKE — first-48-hours onboarding flow
   ═════════════════════════════════════════════════════ */

.in-page {
  max-width: 1320px; margin: 0 auto;
  padding: 120px 60px 120px;
}

/* ── HERO ────────────────────────────────────── */
.in-hero { max-width: 820px; margin-bottom: 70px; }
.in-hero-h {
  font-family: var(--font-serif);
  font-size: clamp(42px, 5vw, 62px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 14px 0 22px;
}
.in-hero-h em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.in-hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 32px;
}
.in-hero-progress {
  display: flex; align-items: center; gap: 18px;
  max-width: 520px;
}
.in-hero-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--gold-soft);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--gold-border);
}
.in-hero-progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 3px;
  transition: width .4s cubic-bezier(.2,.7,.3,1);
}
.in-hero-progress-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}
.in-hero-progress-label strong { color: var(--gold); font-weight: 700; }

/* ── LAYOUT ──────────────────────────────────── */
.in-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: flex-start;
}

.in-rail {
  position: sticky;
  top: 110px;
}
.in-rail-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 2px;
}
.in-rail-item {
  width: 100%;
  display: grid;
  grid-template-columns: 32px 1fr 10px;
  align-items: center;
  gap: 14px;
  padding: 14px 14px 14px 0;
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  cursor: pointer;
  text-align: left;
  transition: background .15s;
  font-family: var(--font-sans);
}
.in-rail-list li:last-child .in-rail-item { border-bottom: 1px solid var(--border); }
.in-rail-item:hover { background: var(--gold-soft); }
.in-rail-item.on { background: var(--gold-soft); }
.in-rail-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--gold);
  font-weight: 500;
  padding-left: 4px;
}
.in-rail-body {
  display: flex; flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.in-rail-label {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.3;
}
.in-rail-hint {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}
.in-rail-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: transparent;
  justify-self: end;
}
.in-rail-dot-done {
  background: var(--gold);
  border-color: var(--gold);
}
.in-rail-dot-in-progress {
  background: var(--gold-soft);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.in-rail-dot-not-started { background: transparent; }

.in-rail-done .in-rail-num { color: var(--gold); }
.in-rail-done .in-rail-label { color: var(--text-muted); }

/* ── MAIN COLUMN ─────────────────────────────── */
.in-main {
  display: flex; flex-direction: column;
  gap: 100px;
}

.in-section {
  max-width: 780px;
  scroll-margin-top: 110px;
}
.in-section-h {
  font-family: var(--font-serif);
  font-size: clamp(34px, 3.6vw, 46px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 14px 0 16px;
}
.in-section-blurb {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 38px;
  max-width: 640px;
}
.in-section-body { }

.in-section-foot {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.in-section-note {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  flex: 1;
  min-width: 200px;
}

/* ── FIELDS ──────────────────────────────────── */
.in-field { margin-bottom: 32px; }
.in-field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 12px;
}
.in-field-hint {
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: none;
  font-style: italic;
}
.in-field input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  color: var(--text);
  transition: border-color .15s;
}
.in-field input[type="text"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.in-chips {
  display: flex; flex-wrap: wrap;
  gap: 8px;
}
.in-chip {
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font-sans);
}
.in-chip:hover {
  border-color: var(--gold-border-strong);
  color: var(--text);
}
.in-chip.on {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--cta-ink, #fff);
}
[data-theme="dark"] .in-chip.on { color: #0a1628; }
.in-chip-state {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  min-width: 54px;
  text-align: center;
}

/* ── STEP 2 · VOICE ──────────────────────────── */
.in-voice-progress {
  margin-bottom: 32px;
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
}
.in-voice-progress-bar {
  flex: 1; min-width: 200px;
  height: 8px;
  background: var(--gold-soft);
  border-radius: 4px;
  overflow: hidden;
}
.in-voice-progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 4px;
  transition: width .5s cubic-bezier(.2,.7,.3,1);
}
.in-voice-progress-label {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}
.in-voice-progress-label strong {
  color: var(--gold);
  font-weight: 700;
  font-style: normal;
  font-size: 15px;
}

.in-calls {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}
.in-call {
  padding: 18px 4px;
  border-bottom: 1px solid var(--border);
}
.in-call-head {
  display: flex; align-items: center;
  gap: 16px;
}
.in-call-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--gold);
  font-weight: 500;
  width: 24px;
}
.in-call-titles {
  flex: 1; min-width: 0;
}
.in-call-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.in-call-meta {
  display: flex; gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.in-call-status { font-weight: 500; }
.in-call-status-transcribed { color: var(--gold); }
.in-call-status-processing,
.in-call-status-uploading { color: var(--gold); font-style: italic; }
.in-call-status-queued,
.in-call-status-not-uploaded { color: var(--text-dim); }
.in-call-act {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--gold-border-strong);
  color: var(--gold);
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font-sans);
  white-space: nowrap;
}
.in-call-act:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
}
.in-call-spin {
  display: flex; gap: 4px;
  padding: 0 6px;
}
.in-call-spin span {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: inSpin 1.2s infinite ease-in-out;
}
.in-call-spin span:nth-child(2) { animation-delay: .15s; }
.in-call-spin span:nth-child(3) { animation-delay: .3s; }
@keyframes inSpin {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}
.in-call-sample {
  margin: 10px 0 0 40px;
  padding-left: 14px;
  border-left: 2px solid var(--gold-border-strong);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}
.in-call-sample-mark {
  display: inline-block;
  margin-right: 6px;
  color: var(--gold);
  font-style: normal;
  font-weight: 700;
}
.in-call-not-uploaded { opacity: 0.65; }

/* ── STEP 3 · CLIO ──────────────────────────── */
.in-clio {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  overflow: hidden;
}
.in-clio-head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--gold-soft);
}
.in-clio-logo {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.in-clio-status-on { color: var(--green, #4ade80); font-size: 13px; font-weight: 600; }
[data-theme="light"] .in-clio-status-on { color: #2d8757; }
.in-clio-status-loading { color: var(--gold); font-size: 13px; font-style: italic; }
.in-clio-status-off { color: var(--text-dim); font-size: 13px; }
.in-clio-body { padding: 32px 28px; }
.in-clio-body p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 540px;
}
.in-clio-import {
  display: flex; align-items: center; gap: 24px;
  flex-wrap: wrap;
}
.in-clio-count {
  display: flex; align-items: baseline; gap: 10px;
}
.in-clio-count-num {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.in-clio-count-label {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}
.in-clio-import-bar {
  flex: 1; min-width: 200px;
  height: 6px;
  background: var(--gold-soft);
  border-radius: 3px;
  overflow: hidden;
}
.in-clio-import-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 3px;
  transition: width .4s cubic-bezier(.2,.7,.3,1);
}
.in-clio-done { }
.in-clio-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.in-clio-stat dt {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 6px;
}
.in-clio-stat dd {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
  margin: 0;
}
.in-clio-scope {
  display: flex; flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  align-items: center;
}
.in-clio-scope-h {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}
.in-clio-scope-item {
  color: var(--text);
  font-weight: 500;
}
.in-clio-scope-item.muted {
  color: var(--text-dim);
  font-weight: 400;
}

@media (max-width: 720px) {
  .in-clio-summary { grid-template-columns: repeat(2, 1fr); }
}

/* ── STEP 4 · HANDOFF RULES ──────────────────── */
.in-rules {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}
.in-rule {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: flex-start;
}
.in-rule-label {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}
.in-rule-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.in-rule-opts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.in-rule-opt {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s;
  background: var(--bg-card);
}
.in-rule-opt:hover {
  border-color: var(--gold-border-strong);
  color: var(--text);
}
.in-rule-opt.on {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--text);
  font-weight: 600;
}
.in-rule-opt input { accent-color: var(--gold); cursor: pointer; }

@media (max-width: 720px) {
  .in-rule { grid-template-columns: 1fr; gap: 14px; }
  .in-rule-opts { grid-template-columns: 1fr; }
}

/* ── STEP 5 · TEST CALL ──────────────────────── */
.in-test {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  overflow: hidden;
}
.in-test-idle {
  padding: 56px 40px;
  text-align: center;
}
.in-test-phone {
  width: 88px; height: 88px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.in-test-idle h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
}
.in-test-idle p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 420px;
  margin-left: auto; margin-right: auto;
}

.in-test-live { }
.in-test-live-head {
  display: flex; align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--gold-soft);
}
.in-test-live-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
  animation: inPulse 1.6s infinite ease-in-out;
}
.in-test-done .in-test-live-dot {
  animation: none;
  background: var(--text-dim);
  box-shadow: none;
}
@keyframes inPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.in-test-live-status {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.in-test-live-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 2px;
}
.in-test-live-time {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.in-test-transcript {
  list-style: none;
  margin: 0; padding: 22px;
  display: flex; flex-direction: column;
  gap: 14px;
  max-height: 440px;
  overflow-y: auto;
}
.in-test-turn {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: flex-start;
  animation: inTurnIn .35s ease-out;
}
@keyframes inTurnIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.in-test-turn-t {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}
.in-test-turn-body { min-width: 0; }
.in-test-turn-who {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 3px;
}
.in-test-turn-alex .in-test-turn-who { color: var(--gold); }
.in-test-turn-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}
.in-test-system {
  grid-column: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-style: italic;
  padding: 4px 0;
}
.in-test-system span {
  color: var(--gold);
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 700;
  margin-right: 6px;
}
.in-test-turn-system { }

.in-test-summary {
  padding: 22px 28px;
  border-top: 1px solid var(--border);
  background: var(--gold-soft);
}
.in-test-summary-h {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--gold);
  margin-bottom: 10px;
}
.in-test-summary ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 6px;
}
.in-test-summary li {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}
.in-test-summary strong {
  color: var(--gold);
  font-weight: 700;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  margin-right: 4px;
}

/* ── STEP 6 · GO LIVE ───────────────────────── */
.in-golive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}
.in-golive-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  overflow: hidden;
}
.in-golive-card-h {
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--gold-soft);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.in-golive-card-body { padding: 24px 22px; }
.in-golive-card-body p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.in-golive-number {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.in-golive-number-digits {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.in-golive-copy {
  padding: 5px 12px;
  font-size: 12px;
  background: transparent;
  border: 1px solid var(--gold-border-strong);
  color: var(--gold);
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
}
.in-golive-copy:hover { background: var(--gold-soft); }
.in-golive-fine {
  font-size: 13px !important;
  color: var(--text-muted) !important;
  line-height: 1.55;
  font-style: italic;
}
.in-golive-date {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 12px;
}
.in-golive-date-day {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
}
.in-golive-date-time {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--gold);
}
.in-golive .fe-btn-primary:disabled,
.in-section-foot .fe-btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.in-checklist {
  padding: 22px 26px;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 10px;
}
.in-checklist-h {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 500;
}
.in-checklist ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 8px;
}
.in-checklist li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.in-checklist li.done { color: var(--text); }
.in-checklist-mark {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
}
.in-checklist li.done .in-checklist-mark {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--cta-ink, #fff);
}
[data-theme="dark"] .in-checklist li.done .in-checklist-mark { color: #0a1628; }

@media (max-width: 960px) {
  .in-grid { grid-template-columns: 1fr; gap: 32px; }
  .in-rail { position: static; }
  .in-rail-list { display: grid; grid-template-columns: repeat(2, 1fr); }
  .in-golive { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .in-page { padding: 100px 24px 80px; }
  .in-main { gap: 70px; }
  .in-rail-list { grid-template-columns: 1fr; }
}

/* ═════════════════════════════════════════════════════
   BILLING — invoicing, time capture, receivables
   ═════════════════════════════════════════════════════ */

.bi-page { }
.bi-hero { }
.bi-counters { }

/* Big total pill shown in panel headers */
.bi-total-pill {
  display: inline-flex; align-items: baseline; gap: 10px;
  padding: 6px 14px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: 100px;
}
.bi-total-pill-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}
.bi-total-pill-num {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

/* ── § 01 DRAFTS ─────────────────────────────── */
.bi-draft-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: flex-start;
}

.bi-draft-list {
  display: flex; flex-direction: column;
  gap: 8px;
}
.bi-draft-row {
  display: flex; flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  transition: all .15s;
}
.bi-draft-row:hover {
  border-color: var(--gold-border-strong);
  background: var(--bg-elevated);
}
.bi-draft-row.on {
  border-color: var(--gold);
  background: var(--gold-soft);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.bi-draft-row-top {
  display: flex; align-items: center; justify-content: space-between;
}
.bi-draft-row-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.bi-urg-pill {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}
.bi-urg-pill.now {
  background: var(--gold);
  color: var(--cta-ink, #fff);
}
[data-theme="dark"] .bi-urg-pill.now { color: #0a1628; }
.bi-urg-pill.soon {
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid var(--gold-border-strong);
}
.bi-urg-pill.later {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border-strong);
}
.bi-draft-row-client {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}
.bi-draft-row-meta {
  display: flex; justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.bi-draft-row-total {
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.bi-draft-row-hold {
  font-size: 11px;
  font-style: italic;
  color: var(--text-muted);
  font-family: var(--font-serif);
}

/* Invoice preview — paper feel */
.bi-draft-preview {
  background: var(--bg-elevated);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  overflow: hidden;
}
.bi-preview-head {
  display: flex; justify-content: space-between;
  align-items: flex-start;
  padding: 22px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--gold-soft);
  gap: 20px;
}
.bi-preview-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.bi-preview-client {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 4px;
}
.bi-preview-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}
.bi-preview-total {
  text-align: right;
  flex-shrink: 0;
}
.bi-preview-total-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 4px;
}
.bi-preview-total-num {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.bi-lines {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 13px;
}
.bi-lines thead th {
  padding: 12px 20px;
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.bi-lines tbody td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}
.bi-lines .bi-col-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  width: 80px;
}
.bi-lines .bi-col-desc { line-height: 1.45; }
.bi-lines .bi-col-hrs,
.bi-lines .bi-col-rate,
.bi-lines .bi-col-amt {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
}
.bi-lines .bi-col-amt { color: var(--text); font-weight: 600; }
.bi-lines-total td {
  border-bottom: none;
  padding-top: 14px;
  padding-bottom: 14px;
  background: var(--gold-soft);
  font-weight: 700;
}
.bi-col-totals-label {
  text-align: right;
  font-family: var(--font-serif) !important;
  font-style: italic;
  font-size: 14px !important;
  color: var(--text-muted) !important;
  font-weight: 500 !important;
}
.bi-lines-total .bi-col-amt {
  font-family: var(--font-serif) !important;
  font-size: 18px !important;
  color: var(--gold) !important;
  font-weight: 600 !important;
}

.bi-alex-note {
  margin: 0 22px 18px;
  padding: 14px 18px;
  border-left: 2px solid var(--gold);
  background: var(--gold-soft);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  border-radius: 0 6px 6px 0;
}
.bi-alex-note-k {
  display: inline-block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-right: 10px;
  vertical-align: baseline;
}

.bi-preview-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  flex-wrap: wrap;
}
.bi-preview-matter {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s;
}
.bi-preview-matter:hover { opacity: 0.8; }
.bi-preview-acts {
  display: flex; gap: 8px;
  flex-wrap: wrap;
}

/* ── § 02 TIME ───────────────────────────────── */
.bi-time-filters { }
.bi-time-running {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 4px 12px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: 100px;
}
.bi-time-running-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}
.bi-time-running-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.bi-time-rows {
  display: flex; flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.bi-time-row {
  display: grid;
  grid-template-columns: 80px 26px minmax(180px, 1.4fr) minmax(220px, 2.2fr) 56px 90px 20px;
  gap: 16px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  font-size: 13px;
  line-height: 1.45;
  transition: background .15s;
}
.bi-time-row:hover { background: var(--gold-soft); }
.bi-time-when {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}
.bi-time-src {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--gold);
  text-align: center;
  font-weight: 700;
}
.bi-time-matter a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.bi-time-matter a:hover { color: var(--gold); }
.bi-time-desc {
  color: var(--text-muted);
  min-width: 0;
}
.bi-time-hrs {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--text);
}
.bi-time-status {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-align: right;
}
.bi-time-status.bi-time-st-captured { color: var(--gold); }
.bi-time-status.bi-time-st-draft {
  color: var(--text-dim);
  font-style: italic;
}
.bi-time-open {
  color: var(--text-dim);
  font-size: 14px;
  text-decoration: none;
  text-align: center;
  transition: color .15s;
}
.bi-time-open:hover { color: var(--gold); }
.bi-time-open-empty { }

.bi-time-empty {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 15px;
}

/* ── § 03 AGING ──────────────────────────────── */
.bi-aging-buckets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.bi-bucket {
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  border-left: 3px solid var(--border-strong);
}
.bi-bucket-soft { border-left-color: var(--gold); }
.bi-bucket-warn {
  border-left-color: #c87a1e;
  background: rgba(200,122,30,0.05);
}
.bi-bucket-risk {
  border-left-color: #c94a3a;
  background: rgba(201,74,58,0.06);
}
[data-theme="dark"] .bi-bucket-warn { background: rgba(200,122,30,0.08); }
[data-theme="dark"] .bi-bucket-risk { background: rgba(201,74,58,0.10); }
.bi-bucket-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 6px;
}
.bi-bucket-num {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.bi-bucket-count {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

.bi-aging-rows {
  display: flex; flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}
.bi-aging-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) 90px 90px 120px 100px minmax(220px, 2fr);
  gap: 18px;
  padding: 16px 6px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  font-size: 13px;
  transition: background .15s;
}
.bi-aging-row:hover { background: var(--gold-soft); }
.bi-aging-warn {
  background: rgba(200,122,30,0.03);
}
.bi-aging-risk {
  background: rgba(201,74,58,0.04);
}
[data-theme="dark"] .bi-aging-warn { background: rgba(200,122,30,0.05); }
[data-theme="dark"] .bi-aging-risk { background: rgba(201,74,58,0.07); }

.bi-aging-client {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.bi-aging-inv {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.bi-aging-due {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}
.bi-aging-overdue {
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--font-serif);
}
.bi-aging-overdue-num {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.bi-aging-warn .bi-aging-overdue-num { color: #c87a1e; }
.bi-aging-risk .bi-aging-overdue-num { color: #c94a3a; }
.bi-aging-overdue-unit {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}
.bi-aging-amt {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.bi-aging-action {
  display: flex; flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.bi-aging-last {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}
.bi-aging-suggest {
  font-size: 12px;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  line-height: 1.4;
}

.bi-aging-empty {
  padding: 40px 30px;
  text-align: center;
  background: var(--bg-card);
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
}
.bi-aging-empty-mark {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 42px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
}
.bi-aging-empty-h {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.bi-aging-empty-p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 440px;
  margin: 0 auto;
}

@media (max-width: 1080px) {
  .bi-draft-grid { grid-template-columns: 1fr; }
  .bi-aging-buckets { grid-template-columns: 1fr; }
  .bi-aging-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
  }
  .bi-aging-action { grid-column: 1 / -1; }
  .bi-time-row {
    grid-template-columns: 70px 20px 1fr 60px;
    row-gap: 4px;
  }
  .bi-time-desc, .bi-time-status, .bi-time-open { grid-column: 3; }
}


/* ═══════════════════════════════════════════════════════
   AUTH · sign up, log in, 2FA, password reset, verify
   Split layout: editorial lantern left + form card right
   ═══════════════════════════════════════════════════════ */

.au-root {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 520px 1fr;
  background: var(--bg-body);
  color: var(--text);
  font-family: var(--font-sans);
}

/* ── LANTERN (left editorial panel) ────────────────── */

.au-lantern {
  background: #0a1628;
  color: #f6f3ea;
  padding: 56px 48px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 0;
  height: 100vh;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(201,168,76,0.08) 0%, transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(201,168,76,0.06) 0%, transparent 60%);
}
[data-theme="light"] .au-lantern {
  background: #0a1628;
  color: #f6f3ea;
}
.au-lantern-mark {
  display: flex;
  align-items: center;
  gap: 12px;
}
.au-lantern-f {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold);
  color: #0a1628;
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  font-weight: 600;
  border-radius: 4px;
}
.au-lantern-wm {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 0.02em;
  color: #f6f3ea;
}
.au-lantern-body { max-width: 420px; }
.au-lantern-eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
  font-weight: 500;
}
.au-lantern-h {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(38px, 4.2vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.012em;
  margin: 0 0 24px;
  color: #f6f3ea;
  text-wrap: pretty;
}
.au-lantern-h em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.au-lantern-p {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(246, 243, 234, 0.72);
  margin: 0;
  max-width: 400px;
}
.au-lantern-foot { display: flex; align-items: center; gap: 16px; }
.au-lantern-rule { width: 48px; height: 1px; background: var(--gold); }
.au-lantern-note {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246, 243, 234, 0.55);
  font-weight: 500;
}

/* ── STAGE (right form panel) ─────────────────────── */

.au-stage {
  padding: 48px 64px 80px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Designer-only screen jumper — prominent in prototype */
.au-jumper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 40px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px dashed var(--gold-border);
  border-radius: 4px;
}
.au-jumper-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 6px;
  font-weight: 600;
}
.au-jumper-chip {
  font: inherit;
  font-size: 12px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  border-radius: 2px;
  cursor: pointer;
  font-weight: 500;
  transition: border-color .1s, color .1s, background .1s;
}
.au-jumper-chip:hover { border-color: var(--gold-border); color: var(--text); }
.au-jumper-chip.on {
  background: var(--gold);
  border-color: var(--gold);
  color: #0a1628;
  font-weight: 600;
}

/* ── CARD (the form itself) ──────────────────────── */

.au-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px 44px 36px;
}
.au-card-head { margin-bottom: 28px; }
.au-card-h {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 8px;
  color: var(--text);
}
.au-card-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
  max-width: 460px;
}
.au-card-body { display: flex; flex-direction: column; gap: 20px; }
.au-card-foot {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ── FIELDS ──────────────────────────────────────── */

.au-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.au-field-center { align-items: center; }
.au-field-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.au-field-opt {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  opacity: 0.7;
  font-style: italic;
}
.au-input {
  font: inherit;
  font-size: 15px;
  padding: 11px 14px;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text);
  font-family: var(--font-sans);
  transition: border-color .1s;
  width: 100%;
  box-sizing: border-box;
}
.au-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18);
}
.au-select {
  -webkit-appearance: none;  /* iOS/older Safari: strip native chrome so the custom arrow isn't doubled */
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%238a6a1f' stroke-width='1.5' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  padding-right: 38px;
}
.au-field-hint, .au-field-err {
  font-size: 13px;
  line-height: 1.45;
}
.au-field-hint { color: var(--text-muted); }
.au-field-err  { color: #b4452a; font-weight: 500; }

.au-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Input + inline action (e.g. show password) */
.au-input-row { position: relative; }
.au-input-row .au-input { padding-right: 64px; }
.au-input-btn {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  cursor: pointer;
  padding: 6px 8px;
  font-weight: 600;
}
.au-input-btn:hover { color: var(--text); }

/* Checkbox */
.au-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}
.au-check input {
  margin-top: 2px;
  width: 16px; height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
}

/* Section separator within a card */
.au-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}
.au-sep::before, .au-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.au-sep-mark, .au-sep span {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  font-style: italic;
}
.au-sep-or span { font-style: normal; }

/* ── ACTIONS ─────────────────────────────────────── */

.au-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin-top: 8px;
}
.au-submit {
  padding: 14px 24px;
  font-size: 16px;
  width: 100%;
  justify-content: center;
}
.au-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.au-subtle {
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  align-self: center;
  padding: 4px 0;
}
.au-subtle:hover { color: var(--gold); text-decoration: underline; }

/* ── SSO buttons ─────────────────────────────────── */

.au-sso {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text);
  cursor: pointer;
  transition: border-color .1s;
  width: 100%;
  font-family: var(--font-sans);
}
.au-sso:hover { border-color: var(--text); }
.au-sso-ico {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  color: #4285f4;
}
.au-sso-ico-ms { color: #0078d4; }

/* ── LEGAL FOOTER ────────────────────────────────── */

.au-legal {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
}
.au-legal a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.au-legal-center { text-align: center; }

/* ── PASSWORD METER ──────────────────────────────── */

.au-pw-meter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: -6px;
  height: 16px;
}
.au-pw-meter::before {
  content: '';
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  position: relative;
}
.au-pw-bar {
  position: absolute;
  left: 0; top: 0;
  height: 4px;
  border-radius: 2px;
  transition: width .15s, background .15s;
  margin-top: -6px;
  margin-left: 0;
  margin-right: 0;
  /* Actual positioning via wrapper trick: */
}
/* Make the meter track via flex so bar lives on top of ::before */
.au-pw-meter {
  position: relative;
}
.au-pw-meter .au-pw-bar {
  position: absolute;
  left: 0; top: 6px;
  height: 4px;
  margin: 0;
  max-width: calc(100% - 80px);
}
.au-pw-none   { background: transparent; }
.au-pw-weak   { background: #b4452a; }
.au-pw-ok     { background: #c9a84c; }
.au-pw-strong { background: #2f7a4f; }
.au-pw-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: auto;
  min-width: 68px;
  text-align: right;
}

.au-pw-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 20px;
  padding: 0;
  margin: 4px 0 0;
  list-style: none;
  font-size: 12px;
  color: var(--text-muted);
}
.au-pw-rules li {
  position: relative;
  padding-left: 20px;
}
.au-pw-rules li::before {
  content: '○';
  position: absolute;
  left: 0;
  opacity: 0.5;
}
.au-pw-rules li.ok { color: var(--text); }
.au-pw-rules li.ok::before {
  content: '✓';
  color: #2f7a4f;
  opacity: 1;
  font-weight: 700;
}

/* ── EMPTY / SENT STATES ──────────────────────────── */

.au-empty {
  text-align: center;
  padding: 32px 16px;
  border: 1px dashed var(--gold-border);
  border-radius: 3px;
  background: var(--gold-soft, rgba(201,168,76,0.08));
}
.au-empty-mark {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 8px;
}
.au-empty p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text); }
.au-empty-sub { color: var(--text-muted); font-size: 13px !important; margin-top: 8px !important; }

/* ── 2FA SETUP ───────────────────────────────────── */

.au-steps {
  counter-reset: s;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.au-steps li {
  position: relative;
  padding-left: 48px;
  counter-increment: s;
}
.au-steps li::before {
  content: counter(s);
  position: absolute;
  left: 0; top: -2px;
  width: 30px; height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: #0a1628;
  border-radius: 50%;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 15px;
  font-style: italic;
}
.au-steps li strong {
  display: block;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
  font-weight: 600;
}
.au-steps-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.au-qr-wrap {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 14px;
}
.au-qr {
  width: 200px; height: 200px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px;
  box-sizing: content-box;
  background: #fff;
  flex-shrink: 0;
}
.au-qr-fallback {
  flex: 1;
  min-width: 0;
}
.au-qr-fallback-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}
.au-qr-fallback-code {
  display: block;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  color: var(--text);
  background: var(--bg-body);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 3px;
  margin-bottom: 10px;
  word-break: break-all;
  line-height: 1.45;
}

/* 6-digit code boxes */
.au-code {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  justify-content: center;
}
.au-code-box {
  width: 48px; height: 56px;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  text-align: center;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text);
  transition: border-color .1s;
}
.au-code-box:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18);
}

.au-backup {
  margin-top: 12px;
  padding: 22px 24px;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.au-backup-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 12px;
}
.au-backup-mark {
  color: var(--gold);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0;
}
.au-backup-p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 14px;
  line-height: 1.5;
}
.au-backup-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.au-backup-code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  padding: 8px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text);
  text-align: center;
}

/* ── 2FA CHALLENGE ───────────────────────────────── */

.au-2fa-target {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: 3px;
  margin-bottom: 8px;
}
.au-2fa-mark {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: var(--gold);
  color: #0a1628;
  border-radius: 50%;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
}
.au-2fa-acct { font-size: 14px; color: var(--text); font-weight: 600; }
.au-2fa-device { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── EXPIRED ─────────────────────────────────────── */

.au-expired {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.au-expired-where, .au-expired-ok {
  padding: 16px 18px;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: 3px;
}
.au-expired-ok {
  border-left: 2px solid var(--gold);
}
.au-expired-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.au-expired-loc {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--text);
  line-height: 1.25;
}
.au-expired-note {
  font-size: 13px;
  color: var(--text);
  line-height: 1.45;
}

/* ── RESPONSIVE ───────────────────────────────────── */

@media (max-width: 900px) {
  .au-root {
    grid-template-columns: 1fr;
  }
  .au-lantern {
    position: relative;
    height: auto;
    padding: 40px 32px 36px;
  }
  .au-lantern-body { margin: 32px 0 24px; }
  .au-stage { padding: 32px 20px 60px; }
  .au-card { padding: 28px 24px; }
  .au-card-h { font-size: 26px; }
  .au-row { grid-template-columns: 1fr; gap: 20px; }
  .au-qr-wrap { flex-direction: column; align-items: flex-start; }
  .au-qr { width: 180px; height: 180px; }
  .au-backup-grid { grid-template-columns: repeat(2, 1fr); }
  .au-expired { grid-template-columns: 1fr; }
  .au-code-box { width: 42px; height: 50px; font-size: 24px; }
}


/* ═══════════════════════════════════════════════════════
   ROI · editorial client-facing dashboard
   ═══════════════════════════════════════════════════════ */

.ro-page {
  /* inherits .po-page container; just slot-specific tweaks */
}

/* ── Hero-level tweak: shorten counter grid gap on ROI ──
   (the counters are narrower than Portal) */
.ro-hero .po-hero-h { font-size: clamp(38px, 5vw, 64px); }
.ro-counters { margin-top: 36px; }

/* ── PANEL chrome (inherits po-panel look) ──────────── */

.ro-panel {
  margin-bottom: 36px;
}
.ro-panel .po-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}
.po-panel-caption {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  max-width: 620px;
  line-height: 1.5;
  margin-top: 6px;
  text-wrap: pretty;
}

/* ── §01 RECEIPTS TABLE ─────────────────────────────── */

.ro-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 15px;
}
.ro-table tr {
  border-bottom: 1px solid var(--border);
}
.ro-table tr:last-child { border-bottom: none; }
.ro-table td {
  padding: 14px 0;
  vertical-align: baseline;
}
.ro-table-label {
  color: var(--text);
  font-weight: 500;
  width: 40%;
}
.ro-table-value {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  text-align: right;
  width: 20%;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.ro-table-hint {
  color: var(--text-muted);
  font-size: 13px;
  text-align: right;
  font-style: italic;
  padding-left: 24px;
  width: 40%;
}
.ro-table-gold .ro-table-value {
  color: var(--gold);
  font-style: italic;
}

/* ── §02 SAVES ─────────────────────────────────────── */

.ro-saves-panel .po-panel-head { margin-bottom: 24px; }
.ro-saves {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ro-save {
  padding: 24px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ro-save:last-child { border-right: none; }
.ro-save-when {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  font-family: var(--font-sans);
}
.ro-save-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.ro-save-caller {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.005em;
}
.ro-save-value {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--gold);
  white-space: nowrap;
}
.ro-save-what {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}
.ro-save-outcome {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  font-style: italic;
  display: flex;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  margin-top: auto;
}
.ro-save-outcome-mark {
  color: var(--gold);
  font-style: normal;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  margin-top: 2px;
}

.ro-saves-foot {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 4px 0;
}
.ro-saves-foot-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 64px;
  color: var(--gold);
  line-height: 0.9;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.ro-saves-foot-text {
  font-size: 17px;
  color: var(--text);
  line-height: 1.45;
  text-wrap: pretty;
}
.ro-saves-foot-sub {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* ── §03 TREND CHART ───────────────────────────────── */

.ro-legend {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  flex-wrap: wrap;
}
.ro-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ro-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 1px;
}
.ro-legend-calls  { background: #2d4a6e; }
.ro-legend-leads  { background: var(--gold); }
.ro-legend-booked { background: #2f7a4f; }
[data-theme="dark"] .ro-legend-calls { background: #4a6b90; }

.ro-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 200px;
  margin: 32px 0 8px;
  padding: 0 8px;
  position: relative;
}
.ro-chart::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 24px;
  height: 1px;
  background: var(--border);
}
.ro-chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  gap: 8px;
  min-width: 0;
}
.ro-chart-bars {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding: 0 2px;
}
.ro-chart-bar {
  flex: 1;
  min-height: 2px;
  border-radius: 2px 2px 0 0;
  position: relative;
  transition: height 0.3s ease;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 4px;
}
.ro-chart-bar-val {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  opacity: 0.9;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.ro-chart-bar-calls  { background: #2d4a6e; }
.ro-chart-bar-leads  { background: var(--gold); }
.ro-chart-bar-booked { background: #2f7a4f; }
.ro-chart-bar-leads .ro-chart-bar-val { color: #0a1628; }
[data-theme="dark"] .ro-chart-bar-calls { background: #4a6b90; }
.ro-chart-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding-bottom: 6px;
}
.ro-chart-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  border: 1px dashed var(--gold-border);
  border-radius: 3px;
  margin-top: 16px;
}

/* ── §04 COMPARE TABLE ─────────────────────────────── */

.ro-compare-panel .po-panel-head { margin-bottom: 24px; }
.ro-compare {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 15px;
}
.ro-compare th {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px 14px 0;
  border-bottom: 1px solid var(--border);
}
.ro-compare td {
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: baseline;
}
.ro-compare tr:last-child td { border-bottom: none; }
.ro-compare-you td {
  background: var(--gold-soft);
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
}
.ro-compare-you td:first-child { padding-left: 16px; }
.ro-compare-you td:last-child { padding-right: 16px; }
.ro-compare-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 500;
  font-size: 16px;
}
.ro-compare-you .ro-compare-opt {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.ro-compare-star {
  color: var(--gold);
  font-size: 14px;
}
.ro-compare-num {
  font-family: var(--font-serif);
  font-variant-numeric: tabular-nums;
  color: var(--text);
  font-size: 16px;
  white-space: nowrap;
}
.ro-compare-you .ro-compare-num {
  font-style: italic;
  color: var(--gold);
  font-size: 17px;
}
.ro-compare-cov {
  color: var(--text-muted);
  font-style: italic;
  font-size: 14px;
}
.ro-compare-you .ro-compare-cov {
  color: var(--text);
  font-style: normal;
}
.ro-compare-badge {
  text-align: right;
  white-space: nowrap;
}
.ro-compare-you-chip {
  display: inline-block;
  background: var(--gold);
  color: #0a1628;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}
.ro-compare-save {
  font-size: 13px;
  color: #2f7a4f;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
[data-theme="dark"] .ro-compare-save { color: #62b18a; }

.ro-compare-foot {
  margin-top: 20px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
  display: flex;
  gap: 10px;
  border-left: 2px solid var(--gold);
  background: var(--bg-body);
}
.ro-compare-foot-mark {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1;
  font-style: normal;
}

/* ── §05 QUOTE PANEL ───────────────────────────────── */

.ro-quote-panel {
  padding: 56px 48px 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.ro-quote-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold);
}
.ro-quote {
  margin: 0;
  max-width: 780px;
  position: relative;
}
.ro-quote-mark {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 96px;
  color: var(--gold);
  line-height: 0.6;
  position: absolute;
  top: -24px;
  left: -12px;
  opacity: 0.4;
}
.ro-quote-text {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
  color: var(--text);
  margin: 0 0 28px;
  letter-spacing: -0.01em;
  text-wrap: balance;
  position: relative;
}
.ro-quote-text em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.ro-quote-small {
  font-size: 0.7em;
  letter-spacing: 0.04em;
  vertical-align: 0.1em;
  font-family: var(--font-sans);
  font-variant-caps: small-caps;
  font-weight: 500;
}
.ro-quote-attr {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.ro-quote-attr-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  color: var(--text);
}
.ro-quote-attr-firm {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.ro-quote-disclaimer {
  margin-top: 28px;
  padding: 16px 20px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  display: flex;
  gap: 10px;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-style: italic;
}
.ro-disclaimer-mark {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.2;
  font-style: normal;
  flex-shrink: 0;
}

/* ── RESPONSIVE ───────────────────────────────────── */

@media (max-width: 1020px) {
  .ro-saves {
    grid-template-columns: 1fr;
  }
  .ro-save {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .ro-save:last-child { border-bottom: none; }
}

@media (max-width: 760px) {
  .ro-table-label { width: 50%; }
  .ro-table-value { font-size: 18px; }
  .ro-table-hint { display: none; }
  .ro-saves-foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .ro-saves-foot-num { font-size: 52px; }
  .ro-compare { font-size: 13px; }
  .ro-compare th, .ro-compare td { padding: 12px 8px 12px 0; }
  .ro-compare-cov { display: none; }
  .ro-compare-you .ro-compare-opt { font-size: 16px; }
  .ro-quote-panel { padding: 36px 24px 28px; }
  .ro-quote-mark { font-size: 72px; top: -18px; left: -6px; }
  .ro-chart { height: 160px; }
  .ro-chart-bars { gap: 2px; }
}


/* ═══════════════════════════════════════════════════════
   DEMO · public lead-capture conversion surface
   Editorial split: lantern (left) + form card (right)
   ═══════════════════════════════════════════════════════ */

.de-root {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 540px 1fr;
  background: var(--bg-body);
  color: var(--text);
  font-family: var(--font-sans);
}

/* ── LANTERN (left editorial panel) ─────────────────── */

.de-lantern {
  background: #0a1628;
  color: #f6f3ea;
  padding: 44px 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  position: sticky;
  top: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(201,168,76,0.10) 0%, transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(201,168,76,0.06) 0%, transparent 60%);
}
.de-lantern-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  align-self: flex-start;
  transition: opacity .15s;
}
.de-lantern-mark:hover { opacity: 0.8; }
.de-lantern-f {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold);
  color: #0a1628;
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  font-weight: 600;
  border-radius: 4px;
}
.de-lantern-wm {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 0.02em;
  color: #f6f3ea;
}
.de-lantern-body {
  max-width: 440px;
  margin: 40px 0;
}
.de-lantern-eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  font-weight: 500;
}
.de-lantern-h {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(38px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  color: #f6f3ea;
  text-wrap: balance;
}
.de-lantern-h em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.de-lantern-p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(246, 243, 234, 0.72);
  margin: 0 0 32px;
  max-width: 420px;
  text-wrap: pretty;
}

/* ── Pulse · "Alex just called [someone]" ───────── */

.de-pulse {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(201, 168, 76, 0.2);
  background: rgba(201, 168, 76, 0.06);
  border-radius: 3px;
  margin-bottom: 28px;
  min-height: 68px;
}
.de-pulse-dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
  animation: dePulse 2s infinite;
  box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.5);
}
@keyframes dePulse {
  0%   { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(201, 168, 76, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0); }
}
.de-pulse-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.de-pulse-lead {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.de-pulse-who {
  font-size: 14px;
  color: #f6f3ea;
  line-height: 1.3;
}
.de-pulse-who strong { font-weight: 600; }
.de-pulse-when {
  font-size: 12px;
  color: rgba(246, 243, 234, 0.5);
  font-style: italic;
  margin-top: 2px;
}

/* ── Timeline · "What happens after you submit" ─ */

.de-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: de-tl;
}
.de-timeline li {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid rgba(246, 243, 234, 0.08);
}
.de-timeline li:first-child {
  border-top: 1px solid rgba(246, 243, 234, 0.15);
}
.de-timeline-t {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.de-timeline-c {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(246, 243, 234, 0.78);
  text-wrap: pretty;
}
.de-timeline-c strong {
  color: #f6f3ea;
  font-weight: 600;
}

/* ── Lantern foot ──────────────────────────────── */

.de-lantern-foot {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.de-lantern-rule { width: 48px; height: 1px; background: var(--gold); margin-top: 8px; flex-shrink: 0; }
.de-lantern-note {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(246, 243, 234, 0.45);
  font-weight: 500;
  line-height: 1.55;
}

/* ── STAGE (right form panel) ───────────────────── */

.de-stage {
  padding: 32px 56px 32px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

.de-close-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
  min-height: 32px;
}
.de-close {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 3px;
  transition: background .1s, color .1s;
}
.de-close:hover { background: var(--bg-card); color: var(--text); }

/* ── FORM CARD ────────────────────────────────── */

.de-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px 44px 36px;
  margin: auto 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.de-card-head {
  margin-bottom: 28px;
}
.de-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #2f7a4f;
  background: rgba(47, 122, 79, 0.08);
  border: 1px solid rgba(47, 122, 79, 0.22);
  padding: 5px 12px;
  border-radius: 50px;
  font-weight: 600;
  margin-bottom: 20px;
}
[data-theme="dark"] .de-badge {
  color: #62b18a;
  background: rgba(98, 177, 138, 0.1);
  border-color: rgba(98, 177, 138, 0.28);
}
.de-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: dePulseSmall 1.6s infinite;
}
@keyframes dePulseSmall {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.4; transform: scale(1.4); }
}
.de-card-h {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(30px, 3.2vw, 40px);
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0 0 12px;
  color: var(--text);
  text-wrap: balance;
}
.de-card-h em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.de-card-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
  max-width: 500px;
  text-wrap: pretty;
}

/* ── FIELDS ────────────────────────────────────── */

.de-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.de-field-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.de-field-opt {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--text-muted);
  font-weight: 400;
  font-style: italic;
  opacity: 0.8;
}
.de-input {
  font: inherit;
  font-family: var(--font-sans);
  font-size: 17px;
  padding: 13px 16px;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text);
  transition: border-color .12s, box-shadow .12s;
  width: 100%;
  box-sizing: border-box;
}
.de-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18);
}
.de-input:disabled { opacity: 0.6; }

.de-consent {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 4px;
}
.de-consent a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

.de-err {
  padding: 10px 14px;
  background: rgba(180, 69, 42, 0.08);
  border-left: 2px solid #b4452a;
  color: #b4452a;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 14px;
  border-radius: 0 3px 3px 0;
}
[data-theme="dark"] .de-err { color: #e88a6a; }

.de-submit {
  width: 100%;
  padding: 15px 24px !important;
  font-size: 17px !important;
  justify-content: center;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.de-submit-ico {
  transition: transform .15s;
}
.de-submit:hover:not(:disabled) .de-submit-ico { transform: translateX(3px); }

.de-trust {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: space-between;
}
.de-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.de-check {
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
}

/* ── SUCCESS CARD ──────────────────────────────── */

.de-card-success {
  text-align: center;
  padding: 40px 44px 36px;
}
.de-ringing {
  width: 120px;
  height: 120px;
  position: relative;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.de-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: deRing 2.2s infinite ease-out;
}
.de-ring-2 { animation-delay: 0.7s; }
.de-ring-3 { animation-delay: 1.4s; }
@keyframes deRing {
  0%   { opacity: 0.6; transform: scale(0.5); }
  100% { opacity: 0;   transform: scale(1.3); }
}
.de-ringing-core {
  width: 72px; height: 72px;
  background: var(--gold);
  color: #0a1628;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.de-success-eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}
.de-success-h {
  margin-bottom: 16px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}
.de-card-success .de-card-sub {
  margin: 0 auto 28px;
  text-align: center;
}

.de-success-after {
  text-align: left;
  padding: 22px 24px;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: 3px;
  margin: 0 auto 24px;
  max-width: 480px;
}
.de-success-after-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 10px;
}
.de-success-after-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.de-success-after-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}
.de-success-after-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
}

.de-success-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.de-success-actions .fe-btn-ghost {
  padding: 10px 16px;
  font-size: 14px;
}

/* ── STAGE FOOT ────────────────────────────────── */

.de-stage-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  flex-wrap: wrap;
  gap: 14px;
}
.de-stage-foot a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.de-stage-foot a:hover { color: var(--gold); }
.de-stage-foot-right {
  letter-spacing: 0.02em;
}

/* ── RESPONSIVE ────────────────────────────────── */

@media (max-width: 960px) {
  .de-root {
    grid-template-columns: 1fr;
  }
  .de-lantern {
    position: relative;
    min-height: auto;
    padding: 32px 28px 36px;
  }
  .de-lantern-body { margin: 24px 0; max-width: 100%; }
  .de-stage {
    padding: 20px 24px 40px;
    min-height: auto;
  }
  .de-card, .de-card-success { padding: 28px 24px; }
  .de-stage-foot { flex-direction: column; text-align: center; align-items: center; }
}

@media (max-width: 480px) {
  .de-lantern { padding: 24px 20px 28px; }
  .de-lantern-h { font-size: 34px; }
  .de-trust { gap: 10px 18px; }
  .de-trust-item { font-size: 11px; }
  .de-ringing { width: 100px; height: 100px; }
  .de-ringing-core { width: 60px; height: 60px; }
  .de-ringing-core svg { width: 26px; height: 26px; }
}


/* ═══════════════════════════════════════════════════════
   STATES · 404 / 500 / Alex-down / empty / maintenance
   Editorial centered card on cream paper.
   ═══════════════════════════════════════════════════════ */

.st-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-body);
  color: var(--text);
  font-family: var(--font-sans);
}

/* Tinted variant for degraded/maintenance — gold-leaning paper */
.st-chrome-tinted {
  background:
    radial-gradient(circle at 20% 0%, var(--gold-soft) 0%, transparent 40%),
    radial-gradient(circle at 90% 100%, var(--gold-soft) 0%, transparent 50%),
    var(--bg-body);
}

/* ── TOPBAR ───────────────────────────────────────── */

.st-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  border-bottom: 1px solid var(--border);
}
.st-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.st-mark-f {
  width: 30px; height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--cta-ink, #fff);
  font-family: var(--font-serif);
  font-size: 17px;
  font-style: italic;
  font-weight: 600;
  border-radius: 3px;
}
.st-mark-wm {
  font-family: var(--font-serif);
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--text);
}
.st-topbar-back {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border-radius: 3px;
  transition: color .12s, background .12s;
}
.st-topbar-back:hover { color: var(--text); background: var(--bg-card); }

/* ── STAGE ────────────────────────────────────────── */

.st-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 32px;
}
.st-card {
  max-width: 640px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 56px 56px 44px;
  position: relative;
}
.st-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold);
  border-radius: 4px 0 0 4px;
}

.st-eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 22px;
}
.st-h {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: var(--text);
  text-wrap: balance;
}
.st-h em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.st-p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 30px;
  text-wrap: pretty;
}

/* ── TIMELINE (degraded, maintenance, empty) ─────── */

.st-timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.st-timeline-row {
  display: grid;
  grid-template-columns: 96px 24px 1fr;
  gap: 0;
  align-items: center;
  padding: 14px 4px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.st-timeline-row:first-child { border-top: none; }
.st-timeline-t {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.st-timeline-rule {
  width: 12px;
  height: 1px;
  background: var(--border-strong, var(--border));
  justify-self: center;
}
.st-timeline-label {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}
.st-tone-muted .st-timeline-t,
.st-tone-muted .st-timeline-label {
  color: var(--text-muted);
}
.st-tone-gold .st-timeline-t {
  color: var(--gold);
}
.st-tone-live {
  background: var(--gold-soft);
  margin: 0 -4px;
  padding: 14px 8px;
  border-radius: 2px;
}
.st-tone-live .st-timeline-t {
  color: var(--gold);
  font-weight: 500;
}
.st-live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  animation: stPulse 1.6s infinite;
}
@keyframes stPulse {
  0%   { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(201, 168, 76, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0); }
}

/* ── STEPS (matters-empty onboarding) ────────────── */

.st-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 3px;
}
.st-step {
  padding: 22px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-right: 1px solid var(--border);
  background: var(--bg-body);
}
.st-step:last-child { border-right: none; }
.st-step-n {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 32px;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.st-step-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.st-step-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.st-step-hint {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.4;
}

/* ── SUGGEST LINKS ───────────────────────────────── */

.st-suggest {
  margin-bottom: 28px;
}
.st-suggest-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 10px;
}
.st-suggest-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}
.st-suggest-link {
  display: grid;
  grid-template-columns: 1fr auto 16px;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: padding .12s, background .12s;
  position: relative;
}
.st-suggest-link:hover {
  padding-left: 12px;
  padding-right: 12px;
  background: var(--gold-soft);
}
.st-suggest-link-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.st-suggest-link-hint {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  text-align: right;
}
.st-suggest-arrow {
  color: var(--gold);
  font-size: 16px;
  text-align: right;
  transition: transform .15s;
}
.st-suggest-link:hover .st-suggest-arrow { transform: translateX(3px); }
.st-suggest-ext {
  font-size: 11px;
  color: var(--text-muted);
}
.st-suggest-primary .st-suggest-link-label { color: var(--gold); font-weight: 600; }

/* ── NOTE ────────────────────────────────────────── */

.st-note {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  font-style: italic;
}
.st-note-mark {
  font-family: var(--font-serif);
  font-size: 17px;
  font-style: normal;
  color: var(--gold);
  line-height: 1.2;
  flex-shrink: 0;
}

/* ── FOOTER ──────────────────────────────────────── */

.st-foot {
  text-align: center;
  padding: 22px 32px 28px;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  border-top: 1px solid var(--border);
}
.st-foot a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.st-foot a:hover { color: var(--gold); }
.st-foot-index { border-top: none; padding-top: 32px; }

/* ── INDEX PAGE ──────────────────────────────────── */

.st-index {
  min-height: 100vh;
  background: var(--bg-body);
  color: var(--text);
  font-family: var(--font-sans);
  padding: 60px 48px 40px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}
.st-index-head {
  margin-bottom: 48px;
  max-width: 720px;
}
.st-index-eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 20px;
}
.st-index-h {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(38px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--text);
}
.st-index-p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  text-wrap: pretty;
}
.st-index-p code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 2px;
  color: var(--text);
  border: 1px solid var(--border);
}
.st-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}
.st-index-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 24px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .12s, transform .12s;
  position: relative;
}
.st-index-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--gold);
  transition: height .15s;
}
.st-index-card:hover {
  border-color: var(--gold-border-strong);
  transform: translateY(-1px);
}
.st-index-card:hover::before { height: 100%; }
.st-index-card-key {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.st-index-card-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.005em;
  color: var(--text);
}
.st-index-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}
.st-index-card-arrow {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-top: 4px;
}

/* ── RESPONSIVE ──────────────────────────────────── */

@media (max-width: 720px) {
  .st-card { padding: 40px 28px 32px; }
  .st-h { font-size: 32px; }
  .st-suggest-link {
    grid-template-columns: 1fr 16px;
    gap: 8px 14px;
  }
  .st-suggest-link-hint {
    grid-column: 1 / -1;
    text-align: left;
  }
  .st-steps {
    grid-template-columns: 1fr;
  }
  .st-step {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .st-step:last-child { border-bottom: none; }
  .st-timeline-row {
    grid-template-columns: 80px 16px 1fr;
    font-size: 13px;
  }
  .st-index { padding: 40px 24px; }
}


/* ═══════════════════════════════════════════════════════
   EMAILS · template gallery + iframe preview
   ═══════════════════════════════════════════════════════ */

.em-root {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 360px 1fr;
  background: var(--bg-body);
  color: var(--text);
  font-family: var(--font-sans);
}

.em-sidebar {
  border-right: 1px solid var(--border);
  background: var(--bg-card);
  padding: 32px 28px 24px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.em-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 28px;
  color: var(--text);
}
.em-mark-f {
  width: 28px; height: 28px;
  background: var(--gold);
  color: var(--cta-ink, #fff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 16px;
}
.em-mark-wm {
  font-family: var(--font-serif);
  font-size: 17px;
  letter-spacing: 0.02em;
}
.em-sidebar-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}
.em-sidebar-h {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 12px;
  text-wrap: balance;
}
.em-sidebar-p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 24px;
  text-wrap: pretty;
}

.em-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.em-list-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background .12s, border-color .12s;
}
.em-list-row:hover {
  background: var(--bg-body);
  border-color: var(--border);
}
.em-list-row.em-active {
  background: var(--gold-soft);
  border-color: var(--gold-border);
}
.em-list-when {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.em-list-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.005em;
  color: var(--text);
  line-height: 1.2;
}
.em-list-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  font-style: italic;
}

.em-sidebar-foot {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  letter-spacing: 0.02em;
}

/* ── STAGE ────────────────────────────────────── */

.em-stage {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.em-stage-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 28px 40px 22px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.em-stage-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.em-stage-subject {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.005em;
  color: var(--text);
  line-height: 1.25;
  max-width: 720px;
}
.em-stage-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.em-tab {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background .1s, color .1s, border-color .1s;
}
.em-tab:first-of-type { border-radius: 3px 0 0 3px; }
.em-tab + .em-tab { border-left: none; border-radius: 0 3px 3px 0; }
.em-tab.em-tab-on {
  background: var(--gold);
  color: var(--cta-ink, #fff);
  border-color: var(--gold);
}
.em-copy {
  margin-left: 10px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .1s, border-color .1s;
}
.em-copy:hover { border-color: var(--gold); background: var(--gold-soft); }

.em-frame-wrap {
  flex: 1;
  background: var(--bg-card);
  padding: 32px;
  display: flex;
  justify-content: center;
  overflow-y: auto;
}
.em-frame {
  width: 100%;
  max-width: 660px;
  height: 1100px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #f4efe6;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.em-source {
  width: 100%;
  max-width: 960px;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  margin: 0;
}

.em-stage-foot {
  display: flex;
  gap: 28px;
  padding: 16px 40px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  background: var(--bg-card);
}
.em-stage-foot strong { color: var(--text); font-weight: 600; }

@media (max-width: 920px) {
  .em-root { grid-template-columns: 1fr; }
  .em-sidebar { position: relative; height: auto; }
  .em-frame { height: 900px; }
}


/* ═══════════════════════════════════════════════════════
   PRICING · public marketing pricing surface
   Editorial system: cream paper, gold accent, serif italic.
   ═══════════════════════════════════════════════════════ */

.pr-root {
  background: var(--bg-body);
  color: var(--text);
  font-family: var(--font-sans);
  min-height: 100vh;
}

.pr-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.pr-eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
}

/* ── HERO ───────────────────────────────────────── */

.pr-hero {
  padding: 80px 0 48px;
  border-bottom: 1px solid var(--border);
}
.pr-hero-inner {
  max-width: 760px;
}
.pr-hero-h {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--text);
  text-wrap: balance;
}
.pr-hero-h em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.pr-hero-p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 600px;
  text-wrap: pretty;
}

/* ── BILLING TOGGLE ─────────────────────────────── */

.pr-toggle {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 4px;
  gap: 0;
}
.pr-toggle-opt {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 30px;
  cursor: pointer;
  transition: background .12s, color .12s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pr-toggle-opt.pr-toggle-on {
  background: var(--gold);
  color: var(--cta-ink, #fff);
}
.pr-toggle-save {
  font-size: 11px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  opacity: 0.85;
}

/* ── TIERS ──────────────────────────────────────── */

.pr-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 60px 0 72px;
}

.pr-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color .15s;
}
.pr-card:hover {
  border-color: var(--gold-border);
}
.pr-spotlight {
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--bg-card) 60%);
  border-color: var(--gold);
  box-shadow: 0 24px 60px -32px rgba(201, 168, 76, 0.45);
  transform: translateY(-8px);
  position: relative;
}
.pr-spotlight::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--gold);
  border-radius: 4px 0 0 4px;
}

.pr-card-head {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--border);
}
.pr-card-badge {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}
.pr-card-name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 38px;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 18px;
  color: var(--text);
}
.pr-card-name em {
  font-style: italic;
  color: var(--text);
  font-weight: 500;
}
.pr-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.pr-card-currency {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  color: var(--gold);
  line-height: 1;
}
.pr-card-price {
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
  font-size: 64px;
  color: var(--gold);
  letter-spacing: -0.025em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pr-card-pricelabel {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 38px;
  color: var(--gold);
  letter-spacing: -0.015em;
  line-height: 1;
}
.pr-card-cadence {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  margin-left: 6px;
}
.pr-card-yearnote {
  font-size: 12px;
  color: var(--gold);
  font-style: italic;
  margin: 6px 0 0;
}
.pr-card-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 16px 0 0;
  text-wrap: pretty;
}

/* ── FEATURES LIST ──────────────────────────────── */

.pr-card-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  margin-bottom: 28px;
}
.pr-feat {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: flex-start;
}
.pr-feat-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
  border: 1px solid var(--gold-border);
}
.pr-feat-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 2px;
}
.pr-feat-hint {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  font-style: italic;
}

/* ── CARD FOOT ──────────────────────────────────── */

.pr-card-foot {
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.pr-card-cta {
  width: 100%;
  justify-content: center;
  margin-bottom: 14px;
  text-align: center;
}
.pr-card-fineprint {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.55;
  text-align: center;
  letter-spacing: 0.02em;
}

/* ── MODULES ────────────────────────────────────── */

.pr-modules {
  padding: 60px 0 72px;
  border-top: 1px solid var(--border);
}
.pr-modules-head {
  max-width: 720px;
  margin-bottom: 48px;
}
.pr-modules-h {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--text);
  text-wrap: balance;
}
.pr-modules-h em { font-style: italic; color: var(--gold); font-weight: 500; }
.pr-modules-p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  max-width: 580px;
  text-wrap: pretty;
}

.pr-modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.pr-module {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 22px 22px 20px;
  position: relative;
  transition: border-color .12s, transform .12s;
}
.pr-module:hover {
  border-color: var(--gold-border-strong);
  transform: translateY(-1px);
}
.pr-module-pop {
  border-color: var(--gold-border);
  background: var(--gold-soft);
}
.pr-module-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}
.pr-module-code {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
  width: 18px;
}
.pr-module-name {
  flex: 1;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.pr-module-price {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.005em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pr-module-mo {
  font-style: italic;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}
.pr-module-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}
.pr-module-pop-tag {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.pr-modules-foot {
  display: flex;
  gap: 12px;
  padding: 18px 22px;
  background: var(--bg-card);
  border-left: 2px solid var(--gold);
  border-radius: 0 3px 3px 0;
  font-size: 13px;
  color: var(--text);
  line-height: 1.55;
  font-style: italic;
}
.pr-modules-foot-mark {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--gold);
  line-height: 1.2;
  font-style: normal;
  flex-shrink: 0;
}

/* ── RECEIPT ────────────────────────────────────── */

.pr-receipt {
  padding: 64px 0 72px;
  border-top: 1px solid var(--border);
}
.pr-receipt-h {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 36px;
  color: var(--text);
  text-wrap: balance;
}
.pr-receipt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pr-receipt-cell {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pr-receipt-cell:last-child { border-right: none; }
.pr-receipt-num {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 56px;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.pr-receipt-num em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.pr-receipt-num span {
  font-style: italic;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 2px;
}
.pr-receipt-label {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.35;
}
.pr-receipt-hint {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

/* ── FAQ ────────────────────────────────────────── */

.pr-faq {
  padding: 64px 0 72px;
  border-top: 1px solid var(--border);
}
.pr-faq-head {
  max-width: 720px;
  margin-bottom: 36px;
}
.pr-faq-h {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}
.pr-faq-list {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pr-faq-item {
  border-bottom: 1px solid var(--border);
}
.pr-faq-item:last-child { border-bottom: none; }
.pr-faq-q {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  gap: 14px;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  transition: background .12s;
}
.pr-faq-q::-webkit-details-marker { display: none; }
.pr-faq-q:hover { background: var(--gold-soft); }
.pr-faq-q-mark {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
  line-height: 1;
  text-align: center;
  width: 32px;
}
.pr-faq-q-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.005em;
  color: var(--text);
  line-height: 1.3;
}
.pr-faq-q-chev {
  width: 32px;
  text-align: center;
  font-size: 22px;
  color: var(--gold);
  line-height: 1;
  font-weight: 300;
  transition: transform .15s;
}
.pr-faq-item[open] .pr-faq-q-chev {
  transform: rotate(45deg);
}
.pr-faq-a {
  padding: 0 4px 24px 50px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 760px;
  text-wrap: pretty;
}

/* ── CLOSER ─────────────────────────────────────── */

.pr-closer {
  padding: 80px 0 100px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.pr-closer-inner {
  max-width: 600px;
  margin: 0 auto;
}
.pr-closer-h {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--text);
  text-wrap: balance;
}
.pr-closer-h em { font-style: italic; color: var(--gold); font-weight: 500; }
.pr-closer-p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 32px;
}
.pr-closer-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.pr-closer-cta {
  font-size: 16px !important;
  padding: 14px 28px !important;
}
.pr-closer-alt {
  padding: 12px 18px !important;
}

/* ── RESPONSIVE ─────────────────────────────────── */

@media (max-width: 1080px) {
  .pr-tiers { grid-template-columns: 1fr; gap: 20px; max-width: 560px; margin-left: auto; margin-right: auto; }
  .pr-spotlight { transform: none; }
  .pr-modules-grid { grid-template-columns: repeat(2, 1fr); }
  .pr-receipt-grid { grid-template-columns: repeat(2, 1fr); }
  .pr-receipt-cell:nth-child(2) { border-right: none; }
  .pr-receipt-cell:nth-child(1), .pr-receipt-cell:nth-child(2) { border-bottom: 1px solid var(--border); }
}

@media (max-width: 640px) {
  .pr-main { padding: 0 20px; }
  .pr-hero { padding: 56px 0 36px; }
  .pr-tiers, .pr-modules, .pr-receipt, .pr-faq, .pr-closer {
    padding: 48px 0 56px;
  }
  .pr-modules-grid { grid-template-columns: 1fr; }
  .pr-receipt-grid { grid-template-columns: 1fr; }
  .pr-receipt-cell { border-right: none; border-bottom: 1px solid var(--border); }
  .pr-receipt-cell:last-child { border-bottom: none; }
  .pr-card-price { font-size: 52px; }
  .pr-faq-q-text { font-size: 17px; }
  .pr-faq-a { padding-left: 50px; font-size: 14px; }
}


/* ── COMPARISON MATRIX (replaces modules grid) ──── */

.pr-compare {
  padding: 60px 0 72px;
  border-top: 1px solid var(--border);
}
.pr-compare-head {
  max-width: 720px;
  margin-bottom: 40px;
}
.pr-compare-h {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--text);
  text-wrap: balance;
}
.pr-compare-h em { font-style: italic; color: var(--gold); font-weight: 500; }
.pr-compare-p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  max-width: 620px;
  text-wrap: pretty;
}

/* The table proper */
.pr-compare-table {
  display: grid;
  grid-template-columns: minmax(280px, 1.6fr) repeat(3, minmax(140px, 1fr));
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.pr-compare-header,
.pr-compare-row,
.pr-compare-grouphead {
  display: contents;
}

.pr-compare-cell {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  min-height: 48px;
}

/* Header row */
.pr-compare-header .pr-compare-cell {
  background: var(--bg-body);
  border-bottom: 1px solid var(--border-strong, var(--border));
  padding: 22px 18px;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.pr-compare-cell-tier {
  align-items: center !important;
  text-align: center;
}
.pr-compare-tier-name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1;
}
.pr-compare-tier-name em { font-style: italic; color: var(--text); font-weight: 500; }
.pr-compare-tier-price {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: -0.005em;
  font-variant-numeric: tabular-nums;
}
.pr-compare-tier-price span {
  font-weight: 400;
  font-style: italic;
}

/* Spotlight column (Growth) */
.pr-compare-spotlight {
  background: var(--gold-soft);
  position: relative;
}
.pr-compare-header .pr-compare-spotlight {
  background: var(--gold-soft);
  border-top: 3px solid var(--gold);
  padding-top: 19px;
}
.pr-compare-header .pr-compare-spotlight .pr-compare-tier-name em {
  color: var(--gold);
}

/* Group separator */
.pr-compare-grouphead .pr-compare-grouphead-label {
  grid-column: 1 / -1;
  padding: 22px 18px 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  background: var(--bg-body);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

/* Feature label cells */
.pr-compare-cell-feat {
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
}

/* Value cells */
.pr-compare-cell-val {
  justify-content: center;
  text-align: center;
}
.pr-compare-tick {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.pr-compare-dash {
  color: var(--text-muted);
  opacity: 0.4;
  font-size: 18px;
  font-weight: 300;
}
.pr-compare-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: -0.005em;
}

/* Last row removes bottom border */
.pr-compare-row:last-child .pr-compare-cell {
  border-bottom: none;
}

/* Compare foot */
.pr-compare-foot {
  display: flex;
  gap: 12px;
  padding: 18px 22px;
  margin-top: 24px;
  background: var(--bg-card);
  border-left: 2px solid var(--gold);
  border-radius: 0 3px 3px 0;
  font-size: 13px;
  color: var(--text);
  line-height: 1.55;
  font-style: italic;
  max-width: 720px;
}
.pr-compare-foot-mark {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--gold);
  line-height: 1.2;
  font-style: normal;
  flex-shrink: 0;
}

/* Responsive — collapse to stacked card layout below 760px */
@media (max-width: 760px) {
  .pr-compare-table {
    grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(70px, 1fr));
  }
  .pr-compare-cell {
    padding: 12px 10px;
    font-size: 12.5px;
  }
  .pr-compare-tier-name { font-size: 17px; }
  .pr-compare-tier-price { font-size: 11px; }
  .pr-compare-grouphead .pr-compare-grouphead-label {
    padding: 16px 10px 8px;
    font-size: 10px;
  }
  .pr-compare-text { font-size: 12px; }
}


/* ═══════════════════════════════════════════════════════
   CONFLICT CHECK · compliance proof surface
   Inherits .po-page wrapper. Uses portal grid + editorial
   serif italics. Verdict tones: clear (green-leaning),
   review (gold), block (red).
   ═══════════════════════════════════════════════════════ */

.cf-page {
  --cf-clear:  #2d8a5f;
  --cf-clear-soft: rgba(45,138,95,0.10);
  --cf-clear-border: rgba(45,138,95,0.32);

  --cf-review: var(--gold);
  --cf-review-soft: var(--gold-soft);
  --cf-review-border: var(--gold-border-strong);

  --cf-block:  #c2451f;
  --cf-block-soft: rgba(194,69,31,0.08);
  --cf-block-border: rgba(194,69,31,0.32);
}
[data-theme="dark"] .cf-page {
  --cf-clear: #5cc299;
  --cf-clear-soft: rgba(92,194,153,0.10);
  --cf-clear-border: rgba(92,194,153,0.32);
  --cf-block: #ee7d5b;
  --cf-block-soft: rgba(238,125,91,0.10);
  --cf-block-border: rgba(238,125,91,0.32);
}

/* ── PAGE HEAD ───────────────────────────────── */

.cf-head {
  margin-bottom: 36px;
  padding-bottom: 0;
}
.cf-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.cf-head-meta { min-width: 0; flex: 1; }
.cf-head-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0;
  text-transform: none;
  margin-left: 4px;
  font-weight: 400;
}
.cf-head-h {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 12px 0 8px;
  color: var(--text);
}
.cf-head-h em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
  font-size: 0.78em;
  margin: 0 4px;
  letter-spacing: 0.01em;
}
.cf-head-sub {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.005em;
}
.cf-head-sub em {
  font-style: italic;
  color: var(--text);
  font-weight: 500;
}
.cf-head-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cf-btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px !important;
  padding: 7px 12px !important;
  letter-spacing: 0.01em !important;
}

/* Tabs */
.cf-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-top: 8px;
}
.cf-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  cursor: pointer;
  transition: color .12s, border-color .12s;
}
.cf-tab:hover { color: var(--text); }
.cf-tab.on {
  color: var(--text);
  border-bottom-color: var(--gold);
}
.cf-tab-dot {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  padding: 1px 7px;
  border-radius: 50px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.cf-tab-dot.bad   { background: var(--cf-block-soft);  color: var(--cf-block);  border: 1px solid var(--cf-block-border); }
.cf-tab-dot.warn  { background: var(--cf-review-soft); color: var(--cf-review); border: 1px solid var(--cf-review-border); }
.cf-tab-dot.quiet { background: var(--bg-elevated);    color: var(--text-muted); }

/* ── VERDICT GRID ────────────────────────────── */

.cf-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  margin-bottom: 48px;
}
@media (max-width: 980px) {
  .cf-grid { grid-template-columns: 1fr; }
}

.cf-verdict {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px 32px 28px;
  position: relative;
  overflow: hidden;
}
.cf-verdict::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
}
.cf-verdict-clear  { background: linear-gradient(180deg, var(--cf-clear-soft) 0%, var(--bg-card) 60%); border-color: var(--cf-clear-border); }
.cf-verdict-clear::before  { background: var(--cf-clear); }
.cf-verdict-review { background: linear-gradient(180deg, var(--cf-review-soft) 0%, var(--bg-card) 60%); border-color: var(--cf-review-border); }
.cf-verdict-review::before { background: var(--cf-review); }
.cf-verdict-block  { background: linear-gradient(180deg, var(--cf-block-soft) 0%, var(--bg-card) 60%); border-color: var(--cf-block-border); }
.cf-verdict-block::before  { background: var(--cf-block); }
.cf-verdict-waiver { background: linear-gradient(180deg, var(--cf-review-soft) 0%, var(--bg-card) 60%); border-color: var(--cf-review-border); }
.cf-verdict-waiver::before { background: var(--cf-review); }

.cf-verdict-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.cf-verdict-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}
.cf-verdict-h {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--text);
  text-wrap: balance;
}
.cf-verdict-h em {
  font-style: italic;
  font-weight: 500;
}
.cf-verdict-clear  .cf-verdict-h em { color: var(--cf-clear);  }
.cf-verdict-review .cf-verdict-h em { color: var(--cf-review); }
.cf-verdict-block  .cf-verdict-h em { color: var(--cf-block);  }
.cf-verdict-waiver .cf-verdict-h em { color: var(--cf-review); }

.cf-verdict-p {
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.55;
  margin: 0 0 24px;
  max-width: 56ch;
  text-wrap: pretty;
}

.cf-verdict-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  margin: 0 -32px -28px;
  padding: 22px 0 0;
}
.cf-meta-cell {
  padding: 0 24px 4px;
  border-right: 1px solid var(--border);
}
.cf-meta-cell:last-child { border-right: none; }
.cf-meta-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 32px;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
}
.cf-meta-num-sm { font-size: 22px; }
.cf-meta-lab {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

/* Pills */
.cf-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid;
  white-space: nowrap;
}
.cf-pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.cf-pill-clear  { background: var(--cf-clear-soft);  color: var(--cf-clear);  border-color: var(--cf-clear-border);  }
.cf-pill-review { background: var(--cf-review-soft); color: var(--cf-review); border-color: var(--cf-review-border); }
.cf-pill-block  { background: var(--cf-block-soft);  color: var(--cf-block);  border-color: var(--cf-block-border);  }

/* ── SCOPE CARD ──────────────────────────────── */

.cf-scope {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
}
.cf-scope-head {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border);
}
.cf-scope-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.cf-scope-sub {
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}
.cf-scope-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}
.cf-scope-row {
  border-bottom: 1px dashed var(--border);
}
.cf-scope-row:last-child { border-bottom: none; }
.cf-scope-row label {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px 12px;
  align-items: start;
  padding: 10px 0;
  cursor: pointer;
}
.cf-scope-row input[type=checkbox] {
  margin-top: 3px;
  accent-color: var(--gold);
  width: 14px; height: 14px;
}
.cf-scope-row-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.cf-scope-row-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
}
.cf-scope-row-count {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.cf-scope-row-note {
  grid-column: 2;
  font-size: 11.5px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 1px;
  line-height: 1.4;
}
.cf-scope-rerun {
  width: 100%;
  justify-content: center;
  font-size: 12px !important;
  padding: 10px 14px !important;
}

/* ── SECTION SHELL ───────────────────────────── */

.cf-section {
  margin-bottom: 48px;
}
.cf-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.cf-section-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: 0.01em;
}

/* ── ENTITIES ────────────────────────────────── */

.cf-entities {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.cf-entity {
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.cf-entity:last-child { border-bottom: none; }
.cf-entity:hover { background: var(--bg-elevated); }
.cf-entity.open { background: var(--bg-elevated); }

.cf-entity-row {
  width: 100%;
  display: grid;
  grid-template-columns: 24px minmax(0,1fr) 180px auto 24px;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--text);
}
.cf-entity-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  flex-shrink: 0;
}
.cf-entity.open .cf-entity-icon { background: var(--bg-elevated); }
.cf-entity-block .cf-entity-icon  { background: var(--cf-block-soft);  border-color: var(--cf-block-border);  color: var(--cf-block);  }
.cf-entity-review .cf-entity-icon { background: var(--cf-review-soft); border-color: var(--cf-review-border); color: var(--cf-review); }

.cf-entity-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cf-entity-label {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cf-entity-role {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.3;
}

.cf-entity-score {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 180px;
}
.cf-score-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.cf-entity-clear  .cf-score-fill { background: var(--cf-clear);  }
.cf-entity-review .cf-score-fill { background: var(--cf-review); }
.cf-entity-block  .cf-score-fill { background: var(--cf-block);  }
.cf-score-fill {
  height: 100%;
  background: var(--text-muted);
  transition: width .3s ease;
}
.cf-score-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0;
  width: 28px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.cf-entity-block  .cf-score-num { color: var(--cf-block);  }
.cf-entity-review .cf-score-num { color: var(--cf-review); }

.cf-entity-chev {
  width: 24px;
  text-align: center;
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 300;
}

.cf-entity-body {
  padding: 0 22px 20px 62px;
  border-top: 1px dashed var(--border);
  margin-top: -1px;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cf-entity-note {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.55;
  font-style: italic;
  max-width: 70ch;
  text-wrap: pretty;
}
.cf-entity-note-mark {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--gold);
  line-height: 1.15;
  font-style: normal;
  flex-shrink: 0;
}

/* Match rows */
.cf-entity-matches {
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg-card);
  overflow: hidden;
}
.cf-entity-matches-h {
  padding: 10px 14px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.cf-match {
  display: grid;
  grid-template-columns: 76px minmax(0,1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px dashed var(--border);
}
.cf-match:last-child { border-bottom: none; }
.cf-match-kind {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  border: 1px solid var(--border);
  padding: 3px 6px;
  border-radius: 2px;
  text-align: center;
  width: 76px;
}
.cf-match.adverse .cf-match-kind {
  color: var(--cf-block);
  border-color: var(--cf-block-border);
  background: var(--cf-block-soft);
}
.cf-match-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cf-match-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.cf-match-meta {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}
.cf-match-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.005em;
}
.cf-match-link:hover { text-decoration: underline; }

/* Sources chips */
.cf-entity-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.cf-entity-sources-l {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-right: 4px;
}
.cf-entity-chip {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
}

/* ── DECISION ────────────────────────────────── */

.cf-decision {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px 32px 24px;
}
.cf-decision-rule {
  padding: 16px 20px;
  background: var(--bg-elevated);
  border-left: 2px solid var(--gold);
  border-radius: 0 3px 3px 0;
  margin-bottom: 24px;
}
.cf-decision-rule-h {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}
.cf-decision-rule-p {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  font-style: italic;
  text-wrap: pretty;
}
.cf-decision-rule-p em {
  font-style: italic;
  color: var(--gold);
  font-weight: 600;
}

.cf-decision-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 800px) {
  .cf-decision-options { grid-template-columns: 1fr; }
}

.cf-decision-opt {
  text-align: left;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 18px 18px 16px;
  cursor: pointer;
  transition: border-color .12s, transform .12s, background .12s;
  font-family: inherit;
  color: var(--text);
}
.cf-decision-opt:hover {
  border-color: var(--gold-border-strong);
  transform: translateY(-1px);
}
.cf-decision-opt.on {
  border-color: var(--gold);
  background: var(--gold-soft);
  box-shadow: 0 0 0 2px var(--gold-border);
}
.cf-decision-opt-clear.on   { border-color: var(--cf-clear);  background: var(--cf-clear-soft);  box-shadow: 0 0 0 2px var(--cf-clear-border); }
.cf-decision-opt-decline.on { border-color: var(--cf-block);  background: var(--cf-block-soft);  box-shadow: 0 0 0 2px var(--cf-block-border); }

.cf-decision-opt-h {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.005em;
  margin-bottom: 6px;
  color: var(--text);
}
.cf-decision-opt-h em {
  font-style: italic;
  font-weight: 500;
  color: var(--text);
}
.cf-decision-opt-clear .cf-decision-opt-h em   { color: var(--cf-clear);  }
.cf-decision-opt-waiver .cf-decision-opt-h em  { color: var(--cf-review); }
.cf-decision-opt-decline .cf-decision-opt-h em { color: var(--cf-block);  }
.cf-decision-opt-p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Confirmation row */
.cf-decision-confirm {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: center;
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--cf-clear-soft);
  border: 1px solid var(--cf-clear-border);
  border-radius: 3px;
}
.cf-decision-confirm-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--cf-clear);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.cf-decision-confirm-h {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 16px;
  color: var(--text);
  letter-spacing: -0.005em;
  margin-bottom: 2px;
}
.cf-decision-confirm-p {
  font-size: 12px;
  color: var(--text-muted);
}
.cf-decision-confirm-p code {
  font-family: var(--font-mono);
  background: var(--bg-card);
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 11px;
  border: 1px solid var(--border);
}
.cf-decision-undo {
  background: transparent;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 3px;
  cursor: pointer;
}
.cf-decision-undo:hover { color: var(--text); border-color: var(--gold-border-strong); }

/* ── LEDGER ──────────────────────────────────── */

.cf-ledger {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.cf-ledger-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 720px) {
  .cf-ledger-summary { grid-template-columns: repeat(2, 1fr); }
}
.cf-ledger-stat {
  padding: 22px 24px;
  border-right: 1px solid var(--border);
}
.cf-ledger-stat:last-child { border-right: none; }
.cf-ledger-stat-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 36px;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.cf-ledger-stat-lab {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.cf-ledger-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: ledger;
}
.cf-ledger-row {
  display: grid;
  grid-template-columns: 180px 160px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
}
.cf-ledger-row:last-child { border-bottom: none; }
.cf-ledger-row.current {
  background: var(--gold-soft);
}
.cf-ledger-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.005em;
}
.cf-ledger-actor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.005em;
}
.cf-ledger-actor-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cf-ledger-actor-dot.alex  { background: var(--gold); }
.cf-ledger-actor-dot.sys   { background: var(--text-muted); }
.cf-ledger-actor-dot.human { background: var(--cf-clear); }

.cf-ledger-action {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cf-ledger-action-h {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.cf-ledger-action-p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}
.cf-ledger-link {
  background: transparent;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  padding: 5px 10px;
  border-radius: 2px;
  cursor: pointer;
  letter-spacing: 0.005em;
  white-space: nowrap;
}
.cf-ledger-link:hover { border-color: var(--gold-border-strong); background: var(--gold-soft); }

.cf-ledger-foot {
  display: flex;
  gap: 12px;
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.55;
  font-style: italic;
}
.cf-ledger-foot-mark {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--gold);
  line-height: 1.2;
  font-style: normal;
  flex-shrink: 0;
}

/* ── RESPONSIVE TIDY ───────────────────────────── */

@media (max-width: 720px) {
  .cf-entity-row {
    grid-template-columns: 22px minmax(0,1fr) auto 18px;
    gap: 12px;
    padding: 12px 16px;
  }
  .cf-entity-score { display: none; }
  .cf-entity-body { padding-left: 50px; }
  .cf-ledger-row {
    grid-template-columns: 1fr auto;
    gap: 6px;
    padding: 14px 16px;
  }
  .cf-ledger-time { grid-column: 1; }
  .cf-ledger-actor { grid-column: 2; justify-self: end; }
  .cf-ledger-action { grid-column: 1 / -1; }
  .cf-ledger-link { grid-column: 1 / -1; justify-self: start; }
  .cf-verdict { padding: 24px 22px 22px; }
  .cf-verdict-meta { margin: 0 -22px -22px; grid-template-columns: repeat(2, 1fr); }
  .cf-meta-cell { padding: 18px 18px 4px; border-bottom: 1px solid var(--border); }
  .cf-meta-cell:nth-child(2) { border-right: none; }
  .cf-meta-cell:nth-child(3), .cf-meta-cell:nth-child(4) { border-bottom: none; padding-bottom: 18px; }
  .cf-decision { padding: 22px 20px 18px; }
}


/* ═══════════════════════════════════════════════════════
   SEARCH · global search results
   Inherits .po-page wrapper + portal nav. Uses editorial
   serif italics for query echo, mono for meta + shortcuts.
   ═══════════════════════════════════════════════════════ */

.sr-page {
  max-width: 1100px;
}

/* ── HEADER ─────────────────────────────────────────── */

.sr-head {
  margin-bottom: 36px;
}
.sr-head-eyebrow {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.sr-head-num { color: var(--gold); font-weight: 600; }
.sr-head-scope { color: var(--text-dim); }

.sr-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--gold-border);
  background: var(--bg-card);
  border-radius: 4px;
  padding: 0 18px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.sr-input-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}
.sr-input-icon {
  display: flex; align-items: center;
  color: var(--gold);
  margin-right: 14px;
  flex-shrink: 0;
}
.sr-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
  padding: 22px 0;
  letter-spacing: -0.01em;
  width: 100%;
  min-width: 0;
}
.sr-input::placeholder {
  color: var(--text-dim);
  font-style: italic;
}
.sr-input::-webkit-search-cancel-button { display: none; }

.sr-input-clear {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-serif);
  font-size: 28px; line-height: 1;
  color: var(--text-dim);
  padding: 0 14px;
  transition: color .15s;
}
.sr-input-clear:hover { color: var(--gold); }

.sr-input-shortcut {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  padding: 4px 8px;
  border: 1px solid var(--gold-border);
  border-radius: 3px;
  background: var(--bg);
  flex-shrink: 0;
  margin-left: 6px;
}

.sr-head-summary {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.sr-head-summary em {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0;
}
.sr-head-summary-sep { color: var(--text-dim); }
.sr-head-filter {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px dotted var(--gold);
  padding-bottom: 1px;
}
.sr-head-filter:hover { color: var(--gold-hover); }

/* ── READY STATE ────────────────────────────────────── */

.sr-ready {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
}
.sr-ready-section {
  padding: 28px 0;
  border-top: 1px solid var(--gold-border);
}
.sr-ready-section:nth-child(3) {
  grid-column: span 2;
  border-bottom: 1px solid var(--gold-border);
}
.sr-ready-h {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 18px;
  font-weight: 600;
}
.sr-recent {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 2px;
}
.sr-recent-item {
  display: grid;
  grid-template-columns: 20px 1fr auto 22px;
  gap: 14px;
  align-items: baseline;
  padding: 10px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: background .15s;
}
.sr-recent-item:hover { background: var(--bg-card); }
.sr-recent-icon {
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.sr-recent-q {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--text);
}
.sr-recent-when {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.sr-recent-clear {
  background: none; border: none; cursor: pointer;
  font-size: 16px; color: var(--text-dim); line-height: 1;
  opacity: 0;
  transition: opacity .15s, color .15s;
}
.sr-recent-item:hover .sr-recent-clear { opacity: 1; }
.sr-recent-clear:hover { color: var(--gold); }

.sr-suggestions {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 2px;
}
.sr-sug-item {
  display: grid;
  grid-template-columns: 24px 1fr 16px;
  gap: 14px;
  align-items: center;
  padding: 12px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: background .15s;
}
.sr-sug-item:hover { background: var(--bg-card); }
.sr-sug-icon { color: var(--gold); display: flex; }
.sr-sug-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--text);
}
.sr-sug-arrow {
  font-size: 14px; color: var(--text-dim);
  transition: color .15s, transform .15s;
}
.sr-sug-item:hover .sr-sug-arrow {
  color: var(--gold);
  transform: translateX(2px);
}

.sr-ready-tip {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  align-items: start;
}
.sr-tip-mark {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 56px;
  color: var(--gold);
  line-height: 0.8;
  font-weight: 500;
}
.sr-tip-h {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 600;
}
.sr-tip-p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0;
}

@media (max-width: 720px) {
  .sr-ready { grid-template-columns: 1fr; gap: 0; }
  .sr-ready-section:nth-child(3) { grid-column: span 1; }
}

/* ── RESULTS ────────────────────────────────────────── */

.sr-results {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.sr-group { }

.sr-group-head {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
}
.sr-group-h {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 26px;
  font-weight: 500;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
}
.sr-group-count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
  padding: 3px 9px;
  border-radius: 100px;
  font-weight: 600;
}
.sr-group-rule {
  height: 1px;
  background: var(--gold-border);
  align-self: center;
}
.sr-group-more {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px dotted var(--gold);
  padding-bottom: 1px;
}
.sr-group-more:hover { color: var(--gold-hover); }

.sr-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.sr-item {
  border-top: 1px solid var(--gold-border);
}
.sr-item:last-child { border-bottom: 1px solid var(--gold-border); }
.sr-item.on .sr-item-link,
.sr-item:hover .sr-item-link {
  background: var(--bg-card);
}
.sr-item.accent-gold .sr-item-title { color: var(--gold); }
.sr-item.accent-gold.on .sr-item-link,
.sr-item.accent-gold:hover .sr-item-link {
  background: linear-gradient(180deg, rgba(201,168,76,0.06), rgba(201,168,76,0.02));
}

.sr-item-link {
  display: block;
  padding: 18px 16px;
  text-decoration: none;
  color: inherit;
  transition: background .15s ease;
  border-radius: 2px;
}

.sr-item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 6px;
}
.sr-item-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.sr-item-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50%;
}
.sr-item-snippet {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sr-item-tags {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sr-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 2px;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--gold-border);
}
.sr-tag-active,
.sr-tag-draft,
.sr-tag-awaiting,
.sr-tag-flagged,
.sr-tag-client {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(201,168,76,0.06);
}
.sr-tag-pi,
.sr-tag-nj { color: var(--text-dim); }
.sr-item-arrow {
  margin-left: auto;
  font-size: 14px;
  color: var(--text-dim);
  transition: color .15s, transform .15s;
}
.sr-item:hover .sr-item-arrow {
  color: var(--gold);
  transform: translate(2px, -2px);
}

/* highlight */
.sr-mark {
  background: rgba(201, 168, 76, 0.22);
  color: var(--text);
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 700;
}
.sr-item-snippet .sr-mark { font-weight: 600; }

@media (max-width: 720px) {
  .sr-item-top { flex-direction: column; gap: 4px; }
  .sr-item-meta { max-width: none; }
}

/* ── EMPTY STATE ────────────────────────────────────── */

.sr-empty {
  padding: 48px 0 32px;
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
  max-width: 720px;
}
.sr-empty-mark {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 600;
}
.sr-empty-h {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 16px;
  letter-spacing: -0.015em;
  font-weight: 500;
  text-wrap: balance;
}
.sr-empty-h em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.sr-empty-p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 0 28px;
}
.sr-empty-tips {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sr-empty-tip {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-items: start;
}
.sr-empty-tip-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
  font-weight: 500;
  line-height: 1;
}
.sr-empty-tip-h {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.sr-empty-tip-p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}
.sr-empty-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  flex-wrap: wrap;
}
.sr-empty-link {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
  font-family: var(--font-serif);
  font-size: 16px;
}
.sr-empty-link:hover { color: var(--gold-hover); }
.sr-empty-or {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-dim);
}

/* ── SHORTCUTS FOOT ─────────────────────────────────── */

.sr-shortcuts {
  margin-top: 56px;
  padding-top: 24px;
}
.sr-shortcuts-rule {
  height: 1px;
  background: var(--gold-border);
  margin-bottom: 18px;
}
.sr-shortcuts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}
.sr-sc {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sr-kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border: 1px solid var(--gold-border);
  border-radius: 3px;
  background: var(--bg);
  color: var(--text-muted);
  letter-spacing: 0;
  min-width: 16px;
  text-align: center;
}
.sr-sc-label {
  margin-left: 2px;
  letter-spacing: 0.06em;
}

@media (max-width: 600px) {
  .sr-input { font-size: 22px; padding: 18px 0; }
  .sr-input-shortcut { display: none; }
  .sr-shortcuts-row { gap: 8px 18px; font-size: 10px; }
}

/* ════════════════════════════════════════════════════
   LIGHT THEME — INK OVERRIDES FOR GOLD-BG ICONS/CHIPS
   ════════════════════════════════════════════════════
 * Selectors below pair `background: var(--gold)` with `color: #0a1628`
 * (navy ink). On the deeper light-theme gold (#7a6322) navy ink reads
 * at 3.06:1 — fails AA Normal. White ink reads at 5.36:1.
 *
 * Existing rules elsewhere in this file already use the sturdier
 *   color: var(--cta-ink, #fff);
 *   [data-theme="dark"] selector { color: #0a1628; }
 * pattern — those need no light-theme work. The block below is for
 * the legacy rules that hardcode `color: #0a1628` unconditionally.
 *
 * Listing each selector explicitly (rather than a generic
 * `[data-theme="light"] [style*="0a1628"]` hack) preserves cascade
 * specificity and lets future audits tie an override to the rule it
 * fixes.
 */
[data-theme="light"] .fe-call-attorney-bolt,
[data-theme="light"] .fe-btn-approve,
[data-theme="light"] .a-price-badge,
[data-theme="light"] .b-pricing-cta:hover,
[data-theme="light"] .cd-audio-play:hover,
[data-theme="light"] .cd-decision-t:hover,
[data-theme="light"] .au-lantern-f,
[data-theme="light"] .au-jumper-chip.on,
[data-theme="light"] .au-steps li::before,
[data-theme="light"] .au-2fa-mark,
[data-theme="light"] .ro-chart-bar-leads .ro-chart-bar-val,
[data-theme="light"] .ro-compare-you-chip,
[data-theme="light"] .de-lantern-f,
[data-theme="light"] .de-ringing-core,
[data-theme="light"] .se-team-avatar {
  color: #ffffff;
}


/* ════════════════════════════════════════════════════════════════════
 *  Portal-Pages-Rebuild-1 — Queue + Settings v2 (PR #140)
 *  Appended after design-system block. Cascade order ensures v2 .qu-/.se-
 *  rules override any v1 equivalents above.
 * ════════════════════════════════════════════════════════════════════ */

/* FirmEdge Portal — Per-Page Component Styles
 *
 * Companion to static/css/redesign.css (which carries tokens + shell).
 * Loaded only by Queue and Settings via {% block extra_css %}.
 *
 * Prefixes:
 *   .qu-  Queue page (templates/portal_queue.html)
 *   .se-  Settings page (templates/portal_settings.html)
 *   .ps-  Settings toast container (kept stable — class names are hardcoded
 *         in app.py:_ps_render_toast and rendered into innerHTML by htmx
 *         afterbegin swap, so renaming would silently break the toast flow).
 *
 * Color contract: every color is a token from redesign.css. Both light
 * (data-theme="light") and dark must remain WCAG AA legible.
 */

/* ──────────────────────────────────────────────────────────────────
 *  Shared "po-section-mark" — used by both pages' heroes.
 * ────────────────────────────────────────────────────────────────── */
.po-section-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
}
.po-section-num {
  color: var(--gold);
  font-weight: 700;
}
.po-section-label { color: var(--text-muted); }

/* ──────────────────────────────────────────────────────────────────
 *  QUEUE — two-pane split (list / preview)
 * ────────────────────────────────────────────────────────────────── */

.qu-page { display: flex; flex-direction: column; gap: 28px; }

/* — Hero — */
.qu-hero {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.qu-hero-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.qu-hero-count {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--text-muted);
}
.qu-hero-count em {
  font-style: normal;
  color: var(--gold);
  font-weight: 700;
  margin-right: 4px;
}
.qu-hero-h {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--fs-h1);
  letter-spacing: var(--ls-heading);
  line-height: var(--lh-snug);
  color: var(--text);
  margin: 0;
}
.qu-hero-h em { font-style: italic; color: var(--gold); }
.qu-hero-sub {
  color: var(--text-muted);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  max-width: 720px;
}

/* — Split — */
.qu-split {
  display: grid;
  grid-template-columns: minmax(320px, 380px) 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1024px) {
  .qu-split { grid-template-columns: 1fr; }
}

/* — List (left) — */
.qu-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 16px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  max-height: calc(100vh - var(--nav-h) - 48px);
  overflow: hidden;
}
.qu-list-head { flex-shrink: 0; }
.qu-list-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.qu-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: var(--fs-micro);
  font-weight: 600;
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.qu-chip:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.qu-chip.on {
  background: var(--gold-soft);
  color: var(--gold);
  border-color: var(--gold-border);
}
.qu-chip-count {
  font-family: var(--font-mono);
  opacity: 0.75;
  font-weight: 500;
}

.qu-list-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  flex: 1;
  margin: 0 -4px;
  padding: 0 4px;
}

.qu-item {
  display: flex;
  gap: 12px;
  padding: 12px 12px 12px 10px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  color: var(--text);
  transition: background .12s, border-color .12s;
}
.qu-item:hover {
  background: var(--bg-elevated);
  border-color: var(--border);
}
.qu-item.on {
  background: var(--gold-soft);
  border-color: var(--gold-border);
}
.qu-item-removing {
  opacity: 0;
  transform: scale(0.97);
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}

.qu-item-rail {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
}
.qu-item-icon {
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--border);
}
.qu-item.on .qu-item-icon {
  background: var(--gold-soft);
  color: var(--gold);
  border-color: var(--gold-border);
}
.qu-kind-engagement-letter { color: var(--gold); }
.qu-kind-callback          { color: var(--blue); }
.qu-kind-billing           { color: var(--green); }
.qu-kind-intake            { color: var(--gold); }
.qu-kind-followup          { color: var(--yellow); }
.qu-kind-review            { color: var(--gold); }

.qu-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.qu-item-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.qu-item-kind {
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--text-muted);
  font-weight: 700;
}
.qu-urg {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--ls-badge);
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
}
.qu-urg.now {
  background: rgba(248,113,113,0.10);
  color: var(--red);
  border-color: rgba(248,113,113,0.30);
}
.qu-urg.today {
  background: rgba(251,191,36,0.10);
  color: var(--yellow);
  border-color: rgba(251,191,36,0.30);
}
.qu-item-client {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-body);
  color: var(--text);
  line-height: var(--lh-snug);
}
.qu-item-matter {
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: var(--lh-snug);
}
.qu-item-preview {
  font-size: var(--fs-small);
  color: var(--text-dim);
  line-height: var(--lh-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
}
.qu-item-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
  font-family: var(--font-mono);
}
.qu-item-note { color: var(--text-muted); }

/* Empty state — list pane */
.qu-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 16px;
  color: var(--text-muted);
}
.qu-empty-mark {
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 12px;
}
.qu-empty-h {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-h3);
  color: var(--text);
  margin-bottom: 4px;
}
.qu-empty-p {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

/* — Preview (right) — */
.qu-preview {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  min-height: 600px;
}
.qu-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--border);
}
.qu-preview-lead { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qu-preview-kind {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--text-muted);
  font-weight: 700;
}
.qu-preview-icon {
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--gold-border);
}
.qu-preview-client {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--fs-h3);
  color: var(--text);
  line-height: var(--lh-snug);
  margin: 0;
}
.qu-preview-matter {
  color: var(--text-muted);
  font-weight: 400;
  font-size: var(--fs-body);
}
.qu-preview-meta {
  font-size: var(--fs-micro);
  color: var(--text-dim);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.qu-edited-pill {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--ls-badge);
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}

.qu-preview-acts {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.qu-open-doc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-micro);
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: color .12s, border-color .12s;
}
.qu-open-doc:hover {
  color: var(--gold);
  border-color: var(--gold-border-strong);
}
.qu-icon-btn {
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: inherit;
}
.qu-icon-btn:hover {
  color: var(--gold);
  border-color: var(--gold-border-strong);
  background: var(--gold-soft);
}

.qu-preview-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 26px;
  flex: 1;
}

/* Context table */
.qu-context {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  row-gap: 6px;
  column-gap: 16px;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin: 0;
}
.qu-ctx-row { display: contents; }
.qu-context dt {
  font-size: var(--fs-micro);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  font-weight: 700;
  align-self: center;
}
.qu-context dd {
  font-size: var(--fs-small);
  color: var(--text);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.qu-context dd.ok    { color: var(--green); }
.qu-context dd.warn  { color: var(--yellow); }
.qu-ctx-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(74,222,128,0.15);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}
.qu-ctx-warn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(251,191,36,0.15);
  color: var(--yellow);
  font-size: 10px;
  font-weight: 700;
}

/* Document body */
.qu-doc {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.qu-doc-metaline {
  font-size: var(--fs-small);
  color: var(--text);
  display: flex;
  gap: 10px;
  padding: 6px 0;
}
.qu-doc-k {
  width: 70px;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  font-size: var(--fs-micro);
  color: var(--text-muted);
  font-weight: 700;
  padding-top: 1px;
}
.qu-doc-sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 8px 0 14px;
}
.qu-doc-body {
  font-family: var(--font-serif);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text);
  outline: none;
  white-space: pre-wrap;
  word-break: break-word;
}
.qu-doc-body:focus {
  outline: 2px dashed var(--gold-border-strong);
  outline-offset: 6px;
  border-radius: var(--radius-sm);
}
.qu-doc-body p { margin: 0 0 14px; }
.qu-doc-body p:last-child { margin-bottom: 0; }
.qu-doc-letterhead {
  text-align: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.qu-doc-firm {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--fs-h3);
  color: var(--gold);
}
.qu-doc-firm-meta {
  font-size: var(--fs-micro);
  color: var(--text-muted);
  font-family: var(--font-sans);
  margin-top: 4px;
}
.qu-doc-date {
  font-size: var(--fs-small);
  color: var(--text-muted);
  font-family: var(--font-sans);
  margin: 0 0 12px;
}
.qu-doc-sal {
  font-weight: 600;
  margin-bottom: 14px !important;
}
.qu-doc-sign {
  font-family: var(--font-serif);
  font-size: var(--fs-body);
  color: var(--text);
  white-space: pre-wrap;
  margin-top: 18px;
}
.qu-doc-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-body);
  color: var(--text-muted);
  border-left: 3px solid var(--gold-border);
  padding: 4px 14px;
  margin: 0 0 14px;
}

/* Sideline note */
.qu-sideline {
  background: rgba(251,191,36,0.06);
  border: 1px solid rgba(251,191,36,0.22);
  border-left-width: 3px;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: var(--fs-small);
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.qu-sideline-k {
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--yellow);
  font-weight: 700;
}

/* Footer (action bar) */
.qu-preview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 26px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  background: var(--bg-card);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.qu-foot-hint {
  font-size: var(--fs-micro);
  color: var(--text-dim);
  flex: 1;
  min-width: 240px;
}
.qu-foot-acts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.qu-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: 600;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
/* Disabled state — opacity bumped above WCAG AA 3:1 floor for both
   themes (0.55 on light backgrounds dipped under the threshold). */
.qu-btn:disabled,
.qu-btn[aria-disabled="true"] {
  opacity: 0.7;
  cursor: not-allowed;
  filter: grayscale(0.4);
}
.qu-btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.qu-btn-ghost:hover:not(:disabled) {
  border-color: var(--gold-border-strong);
  color: var(--gold);
}
.qu-btn-primary {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}
.qu-btn-primary:hover:not(:disabled) {
  background: var(--gold-hover);
  box-shadow: var(--shadow-cta-hover);
}

/* Inline error banner inside the preview pane */
.qu-error {
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.25);
  color: var(--red);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: var(--fs-small);
}

/* Reject form (toggled inside preview footer area) */
.qu-reject-form {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 14px 26px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}
.qu-reject-form[data-open="1"] { display: flex; }
.qu-reject-form label {
  font-size: var(--fs-micro);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  font-weight: 700;
}
.qu-reject-form textarea {
  width: 100%;
  min-height: 80px;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: inherit;
  font-size: var(--fs-small);
  resize: vertical;
}
.qu-reject-form textarea:focus {
  outline: 2px solid var(--gold-border-strong);
  outline-offset: 1px;
}
.qu-reject-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* Source-degraded banner */
.qu-degraded {
  border: 1px solid rgba(248,113,113,0.25);
  background: rgba(248,113,113,0.06);
  color: var(--red);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: var(--fs-small);
}

/* ──────────────────────────────────────────────────────────────────
 *  SETTINGS — 7 tabs
 * ────────────────────────────────────────────────────────────────── */

.se-page { display: flex; flex-direction: column; gap: 24px; }

.se-hero {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.se-hero-h {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--fs-h1);
  letter-spacing: var(--ls-heading);
  line-height: var(--lh-snug);
  color: var(--text);
  margin: 0;
}
.se-hero-h em { font-style: italic; color: var(--gold); }
.se-hero-sub {
  color: var(--text-muted);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  max-width: 720px;
}

.se-split {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 1024px) {
  .se-split { grid-template-columns: 1fr; }
}

.se-tabs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
@media (max-width: 1024px) {
  .se-tabs {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }
}
.se-tabs button {
  text-align: left;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.se-tabs button:hover {
  background: var(--bg-elevated);
  color: var(--text);
}
.se-tabs button.on {
  background: var(--gold-soft);
  color: var(--gold);
  border-color: var(--gold-border);
}

.se-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}
.se-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px 26px;
}
.se-section + .se-section { margin-top: 0; }

.se-sec-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.se-sec-num {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--gold);
  letter-spacing: var(--ls-eyebrow);
  font-weight: 700;
  padding-top: 2px;
}
.se-sec-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-h3);
  color: var(--text);
  margin: 0;
  line-height: var(--lh-snug);
}
.se-sec-sub {
  margin: 4px 0 0;
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: var(--lh-normal);
  max-width: 680px;
}

/* Field primitives */
.se-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.se-field-label {
  font-size: var(--fs-micro);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  font-weight: 700;
}
.se-field-input,
.se-field-area,
.se-field input[type="text"],
.se-field input[type="email"],
.se-field input[type="tel"],
.se-field input[type="time"],
.se-field select,
.se-field textarea {
  width: 100%;
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: var(--fs-small);
  font-family: inherit;
  box-sizing: border-box;
}
.se-field-area, .se-field textarea {
  resize: vertical;
  line-height: var(--lh-normal);
}
.se-field-input:focus,
.se-field-area:focus,
.se-field input:focus,
.se-field select:focus,
.se-field textarea:focus {
  outline: 2px solid var(--gold-border-strong);
  outline-offset: 1px;
}
.se-field input[readonly],
.se-field input:disabled,
.se-field select:disabled,
.se-field textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.se-field-hint {
  font-size: var(--fs-micro);
  color: var(--text-dim);
  line-height: var(--lh-normal);
}

/* Two-column field grid */
.se-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px 18px;
}
.se-grid-narrow {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
}
@media (max-width: 720px) {
  .se-grid-narrow { grid-template-columns: 1fr; }
}

/* Radio group as cards */
.se-field-radios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.se-rad {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.se-rad:hover { border-color: var(--border-strong); }
.se-rad.on {
  border-color: var(--gold-border-strong);
  background: var(--gold-soft);
}
.se-rad input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--gold);
}
.se-rad-n {
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--text);
}
.se-rad-s {
  font-size: var(--fs-micro);
  color: var(--text-muted);
}

/* Toggle "rule" rows */
.se-rules {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.se-rule {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
  transition: background .12s, border-color .12s;
}
.se-rule:hover { background: var(--bg-elevated); border-color: var(--border); }
.se-rule.disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
.se-rule-switch {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
  position: relative;
  transition: background .15s, border-color .15s;
  margin-top: 2px;
  cursor: pointer;
}
.se-rule.disabled .se-rule-switch { cursor: not-allowed; }
.se-rule-knob {
  position: absolute;
  top: 1px; left: 1px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform .15s, background .15s;
}
.se-rule-switch.on {
  background: var(--gold-soft);
  border-color: var(--gold-border-strong);
}
.se-rule-switch.on .se-rule-knob {
  background: var(--gold);
  transform: translateX(16px);
}
.se-rule-label {
  font-size: var(--fs-small);
  color: var(--text);
  font-weight: 600;
}
.se-rule-sub {
  font-size: var(--fs-micro);
  color: var(--text-muted);
  margin-top: 2px;
}
.se-rule-locked {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--ls-badge);
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  color: var(--text-dim);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

/* Training-call list */
.se-training {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.se-training-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
}
.se-training-mark {
  color: var(--gold);
  font-size: 14px;
  flex-shrink: 0;
}
.se-training-len {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--text-muted);
}
.se-training-add {
  margin-top: 8px;
  background: transparent;
  color: var(--text-muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-family: inherit;
  font-size: var(--fs-small);
  cursor: pointer;
  transition: color .12s, border-color .12s;
}
.se-training-add:hover {
  color: var(--gold);
  border-color: var(--gold-border-strong);
}

/* Integrations grid */
.se-int {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.se-int-row {
  display: grid;
  grid-template-columns: 44px 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
@media (max-width: 720px) {
  .se-int-row {
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
  }
  .se-int-row .se-int-status,
  .se-int-row .se-int-act {
    grid-column: 2;
  }
}
.se-int-logo {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--gold);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
}
.se-int-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.se-int-name {
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--text);
}
.se-int-cat {
  font-size: var(--fs-micro);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
}
.se-int-note {
  font-size: var(--fs-micro);
  color: var(--text-muted);
  margin-top: 2px;
}
.se-int-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-micro);
  font-weight: 600;
}
.se-int-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
}
.se-int-live          { color: var(--green); }
.se-int-live .se-int-dot { background: var(--green); box-shadow: 0 0 0 3px rgba(74,222,128,0.18); }
.se-int-pending       { color: var(--yellow); }
.se-int-pending .se-int-dot { background: var(--yellow); }
.se-int-not-connected { color: var(--text-muted); }
.se-int-act {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-family: inherit;
  font-size: var(--fs-micro);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.se-int-act:hover {
  border-color: var(--gold-border-strong);
  color: var(--gold);
}
.se-int-act:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* First-week banner */
.se-firstweek {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  font-size: var(--fs-small);
  color: var(--text);
}
.se-firstweek-mark {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 24px;
  text-align: center;
}

/* Hours table */
.se-hours {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.se-hours-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.se-hours-day {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  font-weight: 700;
}
.se-hours-times {
  font-size: var(--fs-small);
  color: var(--text);
  font-family: var(--font-mono);
}
.se-hours-off .se-hours-times { color: var(--text-dim); font-style: italic; }
.se-hours-edit {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: var(--fs-micro);
  font-family: inherit;
  cursor: pointer;
  transition: color .12s, border-color .12s;
}
.se-hours-edit:hover {
  color: var(--gold);
  border-color: var(--gold-border-strong);
}

/* Hours INLINE form (server-wired, not the design's per-day modal) */
.se-hours-form-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}
.se-hours-form-table th,
.se-hours-form-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.se-hours-form-table th {
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--text-muted);
  font-weight: 700;
}
.se-hours-form-table td.se-day {
  text-transform: capitalize;
  font-weight: 600;
  width: 80px;
}
.se-hours-form-table input[type="text"] {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-family: var(--font-mono);
  width: 110px;
  font-size: var(--fs-small);
}
.se-hours-form-table input[type="text"]:focus {
  outline: 2px solid var(--gold-border-strong);
  outline-offset: 1px;
}
.se-hours-form-table tr:last-child td { border-bottom: none; }

/* Plan / billing card */
.se-plan {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.se-plan-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--fs-h3);
  color: var(--text);
}
.se-plan-meta {
  font-size: var(--fs-micro);
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Team list */
.se-team {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.se-team-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.se-team-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 13px;
}
.se-team-main { display: flex; flex-direction: column; gap: 2px; }
.se-team-name { font-weight: 600; font-size: var(--fs-small); color: var(--text); }
.se-team-role { font-size: var(--fs-micro); color: var(--text-muted); }
.se-team-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--ls-badge);
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}
.se-team-add {
  margin-top: 4px;
  background: transparent;
  color: var(--text-muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 9px 14px;
  font-family: inherit;
  font-size: var(--fs-small);
  cursor: pointer;
}
.se-team-add:hover {
  color: var(--gold);
  border-color: var(--gold-border-strong);
}

/* Account / danger zone */
.se-danger {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.se-danger-btn {
  background: transparent;
  color: var(--red);
  border: 1px solid rgba(248,113,113,0.4);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-family: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
}
.se-danger-btn:hover {
  background: rgba(248,113,113,0.08);
  border-color: var(--red);
}

/* Coming-soon panel for unwired tabs */
.se-stub {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  background: var(--bg-elevated);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.se-stub-h {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-body);
  color: var(--text);
  margin: 0;
}

/* Save / form action row */
.se-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

/* Locked banner (practice areas) */
.se-locked-banner {
  border: 1px solid rgba(248,113,113,0.25);
  background: rgba(248,113,113,0.06);
  color: var(--red);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: var(--fs-small);
}

/* Practice-area chips (kept .ps- compatible with old markup so the
   server-rendered DOM and the chip-removal JS continue to work). */
.ps-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.ps-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: var(--fs-small);
  color: var(--text);
  transition: opacity .25s ease;
}
.ps-chip[data-removing="1"] {
  opacity: 0;
  pointer-events: none;
}
.ps-chip-primary {
  background: var(--gold-soft);
  border-color: var(--gold-border);
  color: var(--gold);
  font-weight: 600;
}
.ps-chip-x {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ps-chip-x:hover { color: var(--red); }
.ps-chip-x:focus { outline: 2px solid var(--gold-border-strong); outline-offset: 1px; }

.ps-pa-add {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: stretch;
}
.ps-pa-add input { flex: 1; min-width: 200px; }

/* Notification matrix */
.se-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}
.se-matrix th, .se-matrix td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.se-matrix th {
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--text-muted);
  font-weight: 700;
}
.se-matrix td.se-matrix-channel {
  text-align: center;
  width: 90px;
}
.se-matrix tr:last-child td { border-bottom: none; }
.se-matrix input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
}

/* ──────────────────────────────────────────────────────────────────
 *  TOAST — emitted by app.py:_ps_render_toast (HTML class names
 *  are hardcoded server-side; do not rename).
 * ────────────────────────────────────────────────────────────────── */
.ps-toast-container {
  position: fixed;
  top: calc(var(--nav-h) + 16px);
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
  max-width: 360px;
}
.ps-toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: var(--fs-small);
  color: var(--text);
  box-shadow: 0 8px 22px rgba(0,0,0,0.28);
  animation: ps-toast-in .25s ease;
}
.ps-toast-success { border-left-color: var(--green); }
.ps-toast-error   { border-left-color: var(--red); }
.ps-toast[data-leaving="1"] {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .25s ease, transform .25s ease;
}
@keyframes ps-toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Light theme — soften shadows & lift toast contrast */
[data-theme="light"] .ps-toast {
  box-shadow: 0 6px 18px rgba(26,38,66,0.12);
}
[data-theme="light"] .qu-doc-firm {
  color: var(--gold);
}
[data-theme="light"] .qu-doc-body {
  color: var(--text);
}
[data-theme="light"] .qu-urg.now {
  background: rgba(248,113,113,0.12);
}
[data-theme="light"] .qu-urg.today {
  background: rgba(251,191,36,0.16);
}

/* ══════════════════════════════════════════════════════════════════
 *  PUBLIC / MARKETING SHELL — shared nav + footer for non-portal
 *  pages (blog, legal, demo, secondary landings). Built on the same
 *  cream/navy tokens as the canonical landing.html.
 * ══════════════════════════════════════════════════════════════════ */

/* ── Public nav — fixed, tinted, cream-on-cream blur ── */
.fe-pub-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  height: var(--nav-h);
  background: rgba(244,239,230,0.78);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .fe-pub-nav {
  background: rgba(10,22,40,0.78);
}
.fe-pub-nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
  letter-spacing: 0.01em;
}
.fe-pub-nav-brand .fe-brand-firm { font-weight: 600; }
.fe-pub-nav-brand .fe-brand-edge {
  font-weight: 700;
  color: var(--gold);
  font-style: italic;
}
.fe-pub-nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none; font-size: 14px; font-weight: 600;
}
.fe-pub-nav-links a {
  color: var(--text-muted);
  transition: color .15s;
}
.fe-pub-nav-links a:hover,
.fe-pub-nav-links a.is-active { color: var(--text); }
.fe-pub-nav-links a.is-active { color: var(--gold); }
.fe-pub-nav-cta-group {
  display: flex; align-items: center; gap: 14px;
}
.fe-pub-nav-signin {
  font-size: 14px; font-weight: 600;
  color: var(--text-muted);
  transition: color .15s;
}
.fe-pub-nav-signin:hover { color: var(--text); }
.fe-pub-nav-cta {
  background: var(--cta-bg, var(--gold));
  color: var(--cta-ink, #0a1628);
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-cta);
  transition: background .15s, transform .15s, box-shadow .2s;
}
.fe-pub-nav-cta:hover {
  background: var(--cta-bg-hover, var(--gold-hover));
  transform: translateY(-1px);
  box-shadow: var(--shadow-cta-hover);
}
@media (max-width: 720px) {
  .fe-pub-nav { padding: 12px 18px; gap: 12px; }
  .fe-pub-nav-links { display: none; }
  .fe-pub-nav-signin { display: none; }
}

/* ── Public footer — editorial multi-column ── */
.fe-pub-footer {
  margin-top: 80px;
  padding: 56px 32px 28px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.fe-pub-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}
.fe-pub-footer-brand .fe-pub-footer-mark {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 12px;
}
.fe-pub-footer-brand .fe-pub-footer-mark em {
  font-style: italic;
  color: var(--gold);
}
.fe-pub-footer-brand p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 320px;
}
.fe-pub-footer-col-head {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.fe-pub-footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color .15s;
}
.fe-pub-footer-col a:hover { color: var(--gold); }
.fe-pub-footer-meta {
  max-width: 1200px;
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-dim);
}
@media (max-width: 820px) {
  .fe-pub-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .fe-pub-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .fe-pub-footer-grid { grid-template-columns: 1fr; }
}

/* Page-top spacer when nav is fixed */
.fe-pub-shell { padding-top: var(--nav-h); }

/* ══════════════════════════════════════════════════════════════════
 *  PROSE — long-form reading layout for legal pages, blog posts,
 *  policy docs. AA-contrast targeted body text on cream.
 * ══════════════════════════════════════════════════════════════════ */

.fe-prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 28px 32px;
  font-family: var(--font-sans);
  color: var(--text);
}
.fe-prose-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.fe-prose-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: var(--ls-heading);
  color: var(--text);
  margin-bottom: 12px;
}
.fe-prose-title em {
  font-style: italic;
  color: var(--gold);
}
.fe-prose-meta {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.fe-prose-meta strong { color: var(--text); }

.fe-prose-body {
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--text);
}
.fe-prose-body h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.25;
  margin: 44px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gold-border);
  color: var(--text);
  scroll-margin-top: calc(var(--nav-h) + 12px);
}
.fe-prose-body h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 28px 0 10px;
  color: var(--text);
}
.fe-prose-body h2 + p,
.fe-prose-body h3 + p { margin-top: 0; }
.fe-prose-body p {
  margin-bottom: 16px;
  color: var(--text);
}
.fe-prose-body strong {
  color: var(--text);
  font-weight: 700;
}
.fe-prose-body em {
  color: var(--text);
  font-style: italic;
}
.fe-prose-body a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.fe-prose-body a:hover {
  color: var(--gold-hover);
  text-decoration-thickness: 2px;
}
.fe-prose-body ul,
.fe-prose-body ol {
  margin: 0 0 18px 22px;
  padding: 0;
}
.fe-prose-body li {
  margin-bottom: 8px;
  color: var(--text);
}
.fe-prose-body blockquote {
  margin: 24px 0;
  padding: 14px 22px;
  border-left: 3px solid var(--gold);
  background: var(--gold-soft);
  font-style: italic;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text);
}
.fe-prose-body code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  padding: 2px 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
}
.fe-prose-body pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  overflow-x: auto;
  margin: 20px 0;
  line-height: 1.6;
}
.fe-prose-body pre code {
  background: transparent;
  border: none;
  padding: 0;
}
.fe-prose-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}
.fe-prose-body img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 18px 0;
  border: 1px solid var(--border);
}

/* Tables — frequent in legal docs. display:block + overflow-x lets a wide
   table scroll inside the prose column instead of stretching the page —
   privacy.html overflowed a 390px viewport (scrollWidth 487) without it. */
.fe-prose-body table {
  display: block;
  max-width: 100%;
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0 28px;
  font-size: 14.5px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  /* must follow the shorthand: `overflow: hidden` (radius clipping) would
     reset the longhand and silently clip an unbreakable-wide table */
  overflow-x: auto;
}
.fe-prose-body th {
  text-align: left;
  font-weight: 700;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 16px;
  background: var(--gold-soft);
  color: var(--gold);
  border-bottom: 1px solid var(--gold-border);
}
.fe-prose-body td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}
.fe-prose-body tr:last-child td { border-bottom: none; }

/* Pull-quote / TL;DR card — used for "the short version" blocks */
.fe-prose-callout {
  margin: 24px 0 32px;
  padding: 20px 24px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}
.fe-prose-callout strong { color: var(--gold); }

.fe-prose-foot {
  max-width: 760px;
  margin: 60px auto 0;
  padding: 22px 28px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.fe-prose-foot a { color: var(--gold); }

/* ══════════════════════════════════════════════════════════════════
 *  BLOG INDEX — editorial list with masthead
 * ══════════════════════════════════════════════════════════════════ */

.fe-blog-shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 28px 24px;
}
.fe-blog-masthead {
  text-align: left;
  border-bottom: 1px solid var(--gold-border);
  padding-bottom: 26px;
  margin-bottom: 40px;
}
.fe-blog-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.fe-blog-masthead h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: var(--ls-heading);
  margin-bottom: 12px;
}
.fe-blog-masthead h1 em {
  font-style: italic;
  color: var(--gold);
}
.fe-blog-masthead p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 560px;
}

.fe-blog-list { list-style: none; padding: 0; margin: 0; }
.fe-blog-card {
  display: block;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: opacity .15s;
}
.fe-blog-card:hover { opacity: 0.85; }
.fe-blog-card:hover .fe-blog-card-title { color: var(--gold); }
.fe-blog-card-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.fe-blog-card-meta .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--text-dim);
  flex-shrink: 0;
}
.fe-blog-card-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  line-height: 1.25;
  margin-bottom: 10px;
  color: var(--text);
  transition: color .15s;
}
.fe-blog-card-excerpt {
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 14px;
  max-width: 660px;
}
.fe-blog-card-byline {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-dim);
}
.fe-blog-card-byline strong {
  color: var(--text-muted);
  font-weight: 600;
}

.fe-blog-empty {
  text-align: center;
  padding: 80px 24px;
}
.fe-blog-empty h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: var(--text);
}
.fe-blog-empty p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 440px;
  margin: 0 auto;
}

.fe-blog-cta {
  margin: 64px auto 0;
  max-width: 880px;
  padding: 32px 28px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-xl);
  text-align: center;
}
.fe-blog-cta p {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 18px;
}

/* ══════════════════════════════════════════════════════════════════
 *  BLOG ARTICLE — extends fe-prose with byline strip + back link
 * ══════════════════════════════════════════════════════════════════ */

.fe-article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 26px;
  transition: color .15s;
}
.fe-article-back:hover { color: var(--gold); }

.fe-article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 36px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.fe-article-byline .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--text-dim);
}
.fe-article-byline strong { color: var(--text); }

.fe-article-end-cta {
  margin: 56px auto 0;
  max-width: 760px;
  padding: 32px 28px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-xl);
  text-align: center;
}
.fe-article-end-cta h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--text);
}
.fe-article-end-cta h3 em {
  font-style: italic;
  color: var(--gold);
}
.fe-article-end-cta p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ══════════════════════════════════════════════════════════════════
 *  DEMO PAGE — "/demo" Alex live-call experience
 * ══════════════════════════════════════════════════════════════════ */

.fe-demo-shell { max-width: 980px; margin: 0 auto; padding: 64px 24px 32px; }
.fe-demo-hero {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 44px;
}
.fe-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ls-badge);
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}
.fe-demo-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: fe-demo-pulse 1.8s infinite;
}
@keyframes fe-demo-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.3); }
}
.fe-demo-hero h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: var(--ls-heading);
  margin-bottom: 16px;
}
.fe-demo-hero h1 em {
  font-style: italic;
  color: var(--gold);
}
.fe-demo-hero p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
}

.fe-demo-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 18px;
}
.fe-demo-counter strong { color: var(--green); }

.fe-demo-grid {
  display: grid;
  gap: 22px;
  max-width: 760px;
  margin: 0 auto 56px;
}
@media (min-width: 720px) {
  .fe-demo-grid { grid-template-columns: 1fr 1fr; }
}
.fe-demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 26px;
  text-align: center;
  position: relative;
}
.fe-demo-card-icon {
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  border-radius: 12px;
  margin-bottom: 18px;
}
.fe-demo-card-icon svg { width: 22px; height: 22px; }
.fe-demo-card h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--text);
}
.fe-demo-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
}
.fe-demo-phone {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--gold);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.fe-demo-phone-sub {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.fe-demo-form { display: none; margin-top: 14px; text-align: left; }
.fe-demo-form.is-open { display: block; }
.fe-demo-form input[type="tel"] {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}
.fe-demo-form input[type="tel"]:focus { border-color: var(--gold-border-strong); }
.fe-demo-form .fe-demo-fineprint {
  font-size: 11px;
  color: var(--text-dim);
  margin: 8px 0 14px;
  line-height: 1.5;
}
.fe-demo-form .fe-demo-fineprint a { color: var(--gold); text-decoration: underline; }

.fe-demo-status {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
  min-height: 18px;
}
.fe-demo-status[data-tone="success"] { color: var(--green); }
.fe-demo-status[data-tone="error"]   { color: var(--red); }

.fe-demo-feedback {
  max-width: 580px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 30px 28px;
}
.fe-demo-feedback h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: var(--text);
}
.fe-demo-feedback p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.fe-demo-stars {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.fe-demo-star {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  filter: grayscale(1);
  opacity: 0.35;
  transition: opacity .15s, filter .15s;
  padding: 4px;
  line-height: 1;
}
.fe-demo-star.is-active {
  filter: grayscale(0);
  opacity: 1;
}
.fe-demo-feedback textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  resize: vertical;
  min-height: 96px;
  outline: none;
  transition: border-color .15s;
}
.fe-demo-feedback textarea:focus { border-color: var(--gold-border-strong); }

.fe-demo-thanks {
  display: none;
  text-align: center;
  padding: 18px;
  color: var(--green);
  font-weight: 700;
}
.fe-demo-thanks.is-on { display: block; }

.fe-demo-tail {
  text-align: center;
  padding: 36px 24px 20px;
  color: var(--text-muted);
  font-size: 13.5px;
}
.fe-demo-tail a { color: var(--gold); }

/* ══════════════════════════════════════════════════════════════════
 *  THIN PUBLIC SHELL — for one-off public pages where the full nav
 *  + footer is too heavy (upload/refer pages, embedded forms).
 *  Just the brand mark + a thin "secured by FirmEdge" line.
 * ══════════════════════════════════════════════════════════════════ */

.fe-thin-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 50% 0%, var(--gold-soft) 0%, transparent 60%),
    var(--bg);
}
.fe-thin-brand {
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.fe-thin-brand em {
  font-style: italic;
  color: var(--gold);
}
.fe-thin-brand-tag {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.fe-thin-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 20px 60px;
}
.fe-thin-card {
  width: 100%;
  max-width: 560px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-card-lift);
}
.fe-thin-card h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.fe-thin-card .fe-thin-sub {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 22px;
}
.fe-thin-foot {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  padding: 18px 20px 28px;
}

/* ══════════════════════════════════════════════════════════════════
 *  AUTH · theme corrections
 *  ──────────────────────────────────────────────────────────────────
 *  The canonical .au-* block earlier in this file was ported dark-only
 *  from the design's auth.jsx and has 4 hardcoded values that block
 *  theme switching:
 *    1. .au-root background references an undefined token
 *       (var(--bg-body)) → falls through to transparent. Use --bg.
 *    2. .au-lantern hardcodes #0a1628 background — won't flip to
 *       cream on light theme.
 *    3. [data-theme="light"] .au-lantern ALSO hardcodes the same
 *       dark values (placeholder from the migration).
 *    4. .au-lantern-wm hardcodes #f6f3ea text — invisible on cream.
 *
 *  Corrections live at the END of the file so they win source order
 *  against the original rules. The auth shell now respects the
 *  data-theme attribute on .au-root: cream-on-blue (default) vs
 *  navy-on-gold (toggle), per Edwin's "light = navy accents, dark =
 *  gold accents" rule. Since [data-theme] is honored on any element
 *  by redesign.css's selectors (not just <html>), scoping it to the
 *  .au-root keeps the post-login portal's own dark tokens intact.
 * ══════════════════════════════════════════════════════════════════ */

/* (1) — fix the undefined --bg-body. Plain --bg now resolves to
 * whatever the cascading data-theme dictates. */
.au-root { background: var(--bg); }

/* (2 + 3) — light-theme-scoped lantern is cream paper with navy text.
 * Higher source order beats the earlier `[data-theme="light"] .au-lantern`
 * rule that incorrectly hardcodes dark values. */
[data-theme="light"] .au-lantern,
.au-root[data-theme="light"] .au-lantern {
  background: var(--bg-card);
  color: var(--text);
  background-image:
    radial-gradient(circle at 20% 30%, var(--gold-soft) 0%, transparent 55%),
    radial-gradient(circle at 80% 85%, var(--gold-soft) 0%, transparent 60%);
}

/* (4) — wordmark + monogram letters: token-based on light theme. */
[data-theme="light"] .au-lantern-wm,
.au-root[data-theme="light"] .au-lantern-wm {
  color: var(--text);
}
[data-theme="light"] .au-lantern-f,
.au-root[data-theme="light"] .au-lantern-f {
  /* --gold resolves to ink-blue on light/blue and gold on dark.
   * Pair with cream text for AA contrast either way. */
  color: var(--bg);
}

/* (6) — lantern body copy contrast (Cutover-Auth-Hardening-1).
 * The base .au-lantern-h / -p / -note hardcode cream (#f6f3ea and
 * translucent-cream) for the DARK navy panel. The light-theme lantern is
 * cream paper (--bg-card #fbf7ef), so that copy rendered cream-on-cream
 * (measured ~1.0:1 — e.g. the login "The office is still open." headline +
 * body + footer note were illegible). Repoint to the dark text tokens so the
 * copy meets WCAG AA against the cream panel. Measured on #fbf7ef:
 * --text #1a2642 ≈ 13:1 (headline); --text-dim #5a6578 ≈ 5.3:1 (body + note,
 * AA pass for normal text). The headline <em> + eyebrow stay on --gold
 * (ink-blue #28407a ≈ 9.3:1), already AA. Dark theme is untouched (cream on
 * navy). Contrast-only — no layout/restyle of the panel. */
[data-theme="light"] .au-lantern-h,
.au-root[data-theme="light"] .au-lantern-h {
  color: var(--text);
}
[data-theme="light"] .au-lantern-p,
.au-root[data-theme="light"] .au-lantern-p {
  color: var(--text-dim);
}
[data-theme="light"] .au-lantern-note,
[data-theme="light"] .au-lantern-note-text,
.au-root[data-theme="light"] .au-lantern-note,
.au-root[data-theme="light"] .au-lantern-note-text {
  color: var(--text-dim);
}

/* (5) — defensive submit-button rule for the dark-theme toggle.
 * The .fe-btn-primary base rule uses `var(--cta-bg, var(--gold))`
 * which SHOULD fall back to gold on dark/no-accent. Empirically,
 * inside the .au-root cascade the fallback doesn't fire reliably
 * (chased it to a getComputedStyle inconsistency that still rendered
 * the prior light/blue ink color even after data-accent was removed).
 * Setting the background + color directly here bypasses the var()
 * chain and locks dark = gold-on-navy unconditionally, which is what
 * Edwin's "dark mode = gold accents" rule asks for anyway. */
.au-root[data-theme="dark"] .au-submit {
  background: var(--gold);
  color: #0a1628;
  border-color: var(--gold);
}
.au-root[data-theme="dark"] .au-submit:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
}

/* (6) — error message default state. The canonical .au-field-err rule
 * earlier in the file styles color/font but does NOT hide the element by
 * default, so the literal text "Invalid email or password" paints on
 * first load before the user has typed anything. (P0 redteam fix.)
 * handleLogin() flips display:block on failed login and resets to none
 * at the top of each attempt — both styles use inline `display`, which
 * beats this default rule. */
.au-field-err { display: none; }
.au-field-err.is-on { display: block; }

/* ════════════════════════════════════════════════════
   MOBILE + TABLET TOUCH TARGETS (≤1024px)
   Touch devices need a ≥44px hit area (WCAG 2.5.5 / Apple HIG). These
   controls render 31–43px at their desktop sizing; bump across the phone +
   tablet range (the brief's 390 / 720 / 768–1024 bands) so every coarse-
   pointer surface clears 44px. Above 1024 the desktop mouse-density sizing is
   untouched. Loaded by every surface that links redesign-pages.css (landing,
   login, portal — the pricing page styles its own .pr-* controls inline,
   handled there).
   ════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  /* Marketing nav CTA + brand wordmark link — <a>, flex to honor min-height. */
  .fe-nav-cta {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px;
  }
  .fe-nav-brand { display: inline-flex; align-items: center; min-height: 44px; }
  /* "Play demo call" pill (was ~32px) and landing pricing CTAs (~43px). */
  .fe-call-play { min-height: 44px; }
  .b-pricing-cta { min-height: 44px; }
  /* Portal nav controls — theme/notifications icon buttons AND the avatar,
     which is an interactive account-menu trigger (role="button",
     tabindex="0", aria-label="Account menu" in base_portal.html), not
     decorative — so it gets the full 44px target like its siblings. */
  .fe-nav-icon-btn { width: 44px; height: 44px; }
  .fe-nav-avatar { width: 44px; height: 44px; }
  /* Login: in-field SHOW toggle and the "Forgot password?" / footer links. */
  .au-input-btn { min-height: 44px; min-width: 44px; }
  .au-subtle { display: inline-flex; align-items: center; min-height: 44px; }
  /* Settings section tabs (wrapping pill row on mobile) — were ~37px. */
  .se-tabs button { min-height: 44px; }
  /* Portal primary action buttons (Save / Add / Enable / Connect) — ~37px. */
  .qu-btn { min-height: 44px; }
  /* Landing "Hear Alex answer a call" secondary CTA — 1px shy at 43px. */
  .b-hero-secondary { min-height: 44px; }
  /* Landing final-CTA phone link ("or call …") — ~39px. */
  .b-final-secondary { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ════════════════════════════════════════════════════════════════════
   LUXURY ELEVATION LAYER — component elevations (Luxury-Elevation-1)
   Companion to the global primitives appended to redesign.css. Every
   rule is an additive refinement of an existing component: deeper
   layered shadows on the lux curve, tabular numerals on money/KPI
   figures, a gold hairline crown on the dashboard counters, and
   elevated nav/overlay surfaces. Token-driven; theme-aware via the
   --shadow-e* primitives. Mirrored in DESIGN.md §13.
   ════════════════════════════════════════════════════════════════════ */

/* ── Numerals — every statistic, price, and counter sets tabular
   lining figures so columns of money read like a ledger, not a flyer. ── */
.b-stat-num,
.b-pricing-amount,
.po-counter-num,
.pr-price,
.fe-call-time,
.fe-call-total {
  font-variant-numeric: lining-nums tabular-nums;
}

/* ── Marketing hero — single entrance rise (mirrors .fe-main-inner in
   the portal). One animation per page load, never scroll-triggered. ── */
.b-hero-col {
  animation: lux-rise var(--dur-slow) var(--ease-lux) both;
}
.b-hero-col-right { animation-delay: 0.08s; }

/* ── Editorial stat + capability cards — rest flat (editorial), lift
   to e2 with a gold-strong hairline on hover. ── */
.b-stat,
.b-cap {
  transition: box-shadow var(--dur-med) var(--ease-lux),
              border-color var(--dur-fast) var(--ease-lux),
              background var(--dur-fast) var(--ease-lux),
              transform var(--dur-med) var(--ease-lux);
}
.b-stat:hover,
.b-cap:hover {
  box-shadow: var(--shadow-e2);
  transform: translateY(-2px);
}

/* ── Landing demo-call card — the product's first impression. Crown it
   with the gold foil edge and let it rest on real depth. ── */
.fe-call {
  box-shadow: var(--shadow-e2);
  position: relative;
  overflow: hidden;
}
.fe-call::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-gold-edge);
  opacity: 0.85;
  pointer-events: none;
}

/* ── Dashboard hero counters — the money row. A gold foil crown across
   the full counter band, deeper resting elevation, and serif-italic
   meta so the figures read as a bound report, not a widget strip. ── */
.po-counters {
  position: relative;
  box-shadow: var(--shadow-e1);
  transition: box-shadow var(--dur-med) var(--ease-lux);
}
.po-counters::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-gold-edge);
  opacity: 0.75;
  pointer-events: none;
}
.po-counters:hover { box-shadow: var(--shadow-e2); }
/* Critique quick-win (2026-06-10): foil reads brighter on cream — ease the
   counters crown on the light theme. */
[data-theme="light"] .po-counters::after { opacity: 0.6; }
/* The accent cell's own 2px top bar (.po-counter-accent::before — defined
   in BOTH this file's §counters block and portal_editorial.css) stacks
   under the band-wide foil crown as a second, differently-colored line
   (under the duo accent it remaps to ink-blue) — the "doubled and
   misaligned" defect Edwin caught on the 2026-06-10 preview render. The
   crown owns the band's top edge; the cell keeps its gold-soft wash as
   the accent marker. Higher specificity (0,2,2) beats both (0,2,1)
   definitions regardless of load order. */
.po-counters .po-counter-accent::before { content: none; }
.po-counter-meta {
  font-family: var(--font-serif);
  font-style: italic;
}

/* ── Pricing table rows (landing §06) — the Firm row carries quiet
   weight even when Growth holds the recommendation flag. ── */
.b-pricing-row {
  transition: background var(--dur-fast) var(--ease-lux);
}

/* ── Nav elevation — scrolled marketing nav and the always-on portal
   nav rest on a soft e1 so the chrome reads as a separate plane. ── */
.fe-nav.scrolled,
.fe-nav-portal {
  box-shadow: var(--shadow-e1);
}

/* ── Overlay surfaces (notification + account panels) — theme-aware e3
   overlay depth (brand rule: never plain black shadows). The inline
   rules in base_portal.html now set the same var; this mirror keeps the
   depth if those panels are ever extracted from the template. ── */
.fe-notif-panel,
.fe-acct-panel {
  box-shadow: var(--shadow-e3);
}

/* ── FAQ + queue/list rows — hover states ride the lux curve and warm
   toward the accent hairline instead of snapping. ── */
.b-faq-item,
.pr-faq-item {
  transition: border-color var(--dur-med) var(--ease-lux);
}

/* ── Reduced motion — kill entrances and lifts wholesale. ── */
@media (prefers-reduced-motion: reduce) {
  .b-hero-col { animation: none; }
  .b-stat, .b-cap, .po-counters,
  .b-faq-item, .pr-faq-item, .b-pricing-row { transition: none; }
  .b-stat:hover, .b-cap:hover { transform: none; }
}

/* ── Portal nav 901–1280px band (Luxury-Elevation-4) — the 12-item nav
   (13 with all plan flags) runs tight between the mobile cutoff (≤900px
   hides links entirely) and full desktop. Two-step relief: compress
   gaps/type in the band, and let the link row scroll horizontally as the
   true overflow fallback (scrollbar hidden; the row pans on
   trackpad/touch — standard app-shell behavior, no wrap, so the 64px
   bar height and baseline alignment hold). The active link's underline
   normally hangs 22px below the link (outside the row box) — inside a
   scroll container that would clip, so the band moves it to an inset
   underline tucked under the label. ── */
@media (min-width: 901px) and (max-width: 1280px) {
  .fe-nav-portal .fe-nav-links {
    gap: 14px;
    font-size: 13px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;            /* room for the inset underline */
    scrollbar-width: none;          /* Firefox */
    min-width: 0;                   /* allow the flex item to shrink */
    scroll-padding-inline: 16px;    /* keyboard focus near an overflow
                                       edge scrolls fully into view
                                       (redteam a11y note — the hidden
                                       scrollbar removes the affordance,
                                       so focus must self-reveal) */
  }
  .fe-nav-portal .fe-nav-links::-webkit-scrollbar { display: none; }
  .fe-nav-portal .fe-nav-links a { white-space: nowrap; }
  .fe-nav-portal .fe-nav-links a.fe-nav-active::after {
    bottom: -4px;                   /* inset — survives the scroll clip */
  }
}
