/* ============================================================
   Alphixir — 1a "Research Desk" design system
   Dark, hairline precision, terminal calm. Mark: Spark ✦.
   Legacy variable names (--gray-*, --brand-*) are remapped to
   1a dark values so existing page markup adopts the theme.
   ============================================================ */

/* ---- Self-hosted fonts (Geist / Geist Mono, OFL) ----
   woff2 latin subset in /assets/fonts/. If a file is missing,
   the font-family fallback stack below keeps the UI intact. */
@font-face {
  font-family: 'Geist';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/Geist-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/Geist-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/Geist-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/GeistMono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/GeistMono-500.woff2') format('woff2');
}

/* ============================================================
   Theme tokens — dark is the default (current 1a look).
   Every component styles ONLY through var(--…). Themes below
   just swap token values. Toggle = :root[data-theme="…"];
   OS default respected via prefers-color-scheme when the user
   has not made an explicit choice.
   ============================================================ */
:root, :root[data-theme="dark"] {
  /* --- 1a core tokens (DARK) --- */
  --bg: #090D17;
  --surface: #0D1322;
  --surface-2: #10182A;
  --hairline: rgba(146,160,184,.15);
  --hairline-hi: rgba(146,160,184,.28);

  --text: #E7EBF3;      /* primary */
  --body: #C0C8D6;      /* body copy */
  --muted: #8B95A9;     /* secondary */
  --dim: #5B6478;       /* muted labels */

  /* persona: color + shape dual-encoding */
  --p-aggressive: #F471B5;
  --p-core: #8B5CF6;
  --p-conservative: #2DD4BF;
  --p-champ: #60A5FA;

  /* regime */
  --regime-on: #3ECF8E;
  --regime-neutral: #E8B93E;
  --regime-off: #F0716A;

  --gold: #C9A23F;

  /* --- brand --- */
  --brand-primary: #E7EBF3;
  --brand-accent: #8B5CF6;
  --brand-accent-dark: #7C4DEF;
  --brand-green: #3ECF8E;
  --brand-red: #F0716A;
  --brand-yellow: #E8B93E;
  --brand-purple: #8B5CF6;
  --brand-blue: #60A5FA;

  /* nav backdrop tint (theme-aware) */
  --nav-bg: rgba(9,13,23,.82);
  --overlay-bg: rgba(4,6,14,.7);

  /* --- legacy gray remap (light->dark inverted) --- */
  --gray-50:  #0D1322;
  --gray-100: rgba(146,160,184,.06);
  --gray-200: rgba(146,160,184,.15);
  --gray-300: rgba(146,160,184,.28);
  --gray-400: #5B6478;
  --gray-500: #8B95A9;
  --gray-600: #A9B2C3;
  --gray-700: #C0C8D6;
  --gray-800: #D7DEEA;
  --gray-900: #E7EBF3;
}

/* ---- LIGHT theme tokens ---- */
:root[data-theme="light"] {
  --bg: #F7F8FA;          /* soft off-white, not pure #FFF */
  --surface: #FFFFFF;
  --surface-2: #EEF1F6;
  --hairline: rgba(28,40,66,.12);
  --hairline-hi: rgba(28,40,66,.24);

  --text: #10182A;        /* near-ink primary */
  --body: #2E3950;        /* body copy */
  --muted: #566078;       /* secondary */
  --dim: #8A94A8;         /* muted labels */

  /* persona colours — deepened for contrast on light bg */
  --p-aggressive: #D6337E;
  --p-core: #6D3EE0;
  --p-conservative: #0E9E8C;
  --p-champ: #2E6FD6;

  /* regime — deepened so the green/amber/red read on white */
  --regime-on: #12A86B;
  --regime-neutral: #B5860B;
  --regime-off: #D2453B;

  --gold: #9A7A1E;

  --brand-primary: #10182A;
  --brand-accent: #6D3EE0;
  --brand-accent-dark: #5A2EC9;
  --brand-green: #12A86B;
  --brand-red: #D2453B;
  --brand-yellow: #B5860B;
  --brand-purple: #6D3EE0;
  --brand-blue: #2E6FD6;

  --nav-bg: rgba(247,248,250,.85);
  --overlay-bg: rgba(28,40,66,.4);

  --gray-50:  #FFFFFF;
  --gray-100: rgba(28,40,66,.05);
  --gray-200: rgba(28,40,66,.12);
  --gray-300: rgba(28,40,66,.24);
  --gray-400: #8A94A8;
  --gray-500: #566078;
  --gray-600: #414D66;
  --gray-700: #2E3950;
  --gray-800: #1C2740;
  --gray-900: #10182A;

  --shadow-sm: 0 1px 2px rgba(28,40,66,.06);
  --shadow-md: 0 8px 24px rgba(28,40,66,.10);
  --shadow-lg: 0 24px 60px rgba(28,40,66,.16);
}

/* OS preference honoured ONLY when the user hasn't chosen (no data-theme) */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #F7F8FA;
    --surface: #FFFFFF;
    --surface-2: #EEF1F6;
    --hairline: rgba(28,40,66,.12);
    --hairline-hi: rgba(28,40,66,.24);
    --text: #10182A;
    --body: #2E3950;
    --muted: #566078;
    --dim: #8A94A8;
    --p-aggressive: #D6337E;
    --p-core: #6D3EE0;
    --p-conservative: #0E9E8C;
    --p-champ: #2E6FD6;
    --regime-on: #12A86B;
    --regime-neutral: #B5860B;
    --regime-off: #D2453B;
    --gold: #9A7A1E;
    --brand-primary: #10182A;
    --brand-accent: #6D3EE0;
    --brand-accent-dark: #5A2EC9;
    --brand-green: #12A86B;
    --brand-red: #D2453B;
    --brand-yellow: #B5860B;
    --brand-purple: #6D3EE0;
    --brand-blue: #2E6FD6;
    --nav-bg: rgba(247,248,250,.85);
    --overlay-bg: rgba(28,40,66,.4);
    --gray-50: #FFFFFF;
    --gray-100: rgba(28,40,66,.05);
    --gray-200: rgba(28,40,66,.12);
    --gray-300: rgba(28,40,66,.24);
    --gray-400: #8A94A8;
    --gray-500: #566078;
    --gray-600: #414D66;
    --gray-700: #2E3950;
    --gray-800: #1C2740;
    --gray-900: #10182A;
    --shadow-sm: 0 1px 2px rgba(28,40,66,.06);
    --shadow-md: 0 8px 24px rgba(28,40,66,.10);
    --shadow-lg: 0 24px 60px rgba(28,40,66,.16);
  }
}

:root {
  /* --- typography --- */
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  /* --- spacing --- */
  --space-1: 0.25rem;  --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem;     --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem;    --space-20: 5rem;

  /* --- radius --- */
  --radius-sm: 6px; --radius-md: 8px; --radius-lg: 12px;
  --radius-xl: 16px; --radius-full: 9999px;

  /* --- shadows (subtle on dark) --- */
  --shadow-sm: 0 1px 2px rgba(4,6,16,.4);
  --shadow-md: 0 8px 24px rgba(6,8,20,.35);
  --shadow-lg: 0 24px 60px rgba(8,10,26,.45);

  --max-width: 1120px;
}

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

/* Type scale +~17% vs. the original 1a build (root 15px→17.5px).
   All rem-based text/spacing lifts together; px chrome (nav/buttons)
   is bumped explicitly below. Keeps proportions, improves legibility. */
html { -webkit-text-size-adjust: 100%; font-size: 109.375%; } /* 17.5px */

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  font-size: 1rem;
  transition: background .2s ease, color .2s ease;
}

h1, h2, h3, h4 { color: var(--text); font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }

a { color: var(--brand-accent); text-decoration: none; }
a:hover { color: var(--brand-blue); }

.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ============================================================
   Layout
   ============================================================ */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

main { min-height: 60vh; }

.section { padding: var(--space-12) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.section-header { margin-bottom: var(--space-6); }
.section-title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600; letter-spacing: -.02em; color: var(--text);
}
.section-sub { color: var(--muted); margin-top: var(--space-2); font-size: .95rem; }

.page-header { padding: var(--space-10) 0 var(--space-6); border-bottom: 1px solid var(--hairline); margin-bottom: var(--space-8); }

.eyebrow-mono {
  font-family: var(--font-mono); font-size: .62rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--dim);
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 16px; }
.nav-logo { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; color: var(--text); letter-spacing: -.01em; }
.nav-logo:hover { color: var(--text); }
.nav-logo-icon { display: inline-flex; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-links a {
  display: block; padding: 7px 12px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--muted);
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: var(--hairline); }
.nav-links a.active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-menu-btn { display: none; background: none; border: none; color: var(--text); font-size: 20px; cursor: pointer; }

/* theme toggle button in nav */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid var(--hairline-hi);
  color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s, background .15s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--brand-accent); }
.theme-toggle svg { display: block; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: block; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  padding: 9px 16px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .1s;
  white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-accent); color: #fff; }
.btn-primary:hover { background: var(--brand-accent-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--hairline-hi); color: var(--text); }
.btn-outline:hover { border-color: var(--brand-accent); color: var(--text); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--hairline); }
.btn-lg { font-size: 15px; padding: 12px 22px; }

/* ============================================================
   Cards
   ============================================================ */
.card, .stat-card, .track-card, .report-card, .verify-card, .lens-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
}
.card { overflow: hidden; }
.card-clickable { transition: border-color .18s, background .18s; cursor: pointer; }
.card-clickable:hover { border-color: var(--hairline-hi); background: var(--surface-2); }
.card-header { padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--hairline); }
.card-body { padding: var(--space-5); }
.card-footer { padding: var(--space-4) var(--space-5); border-top: 1px solid var(--hairline); }

/* ============================================================
   Badges
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: .62rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: var(--radius-sm);
  border: 1px solid var(--hairline-hi); color: var(--muted); background: transparent;
}
.badge-sim { color: var(--dim); border-color: var(--hairline); }
.badge-free { color: var(--regime-on); border-color: rgba(62,207,142,.4); }
.badge-gated { color: var(--brand-accent); border-color: rgba(139,92,246,.4); }
.badge-regime { color: var(--brand-blue); border-color: rgba(96,165,250,.4); }
.badge-hit { color: var(--regime-on); border-color: rgba(62,207,142,.4); }
.badge-miss { color: var(--regime-off); border-color: rgba(240,113,106,.4); }

/* ============================================================
   Regime pill
   ============================================================ */
.regime-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  padding: 4px 11px; border-radius: var(--radius-sm);
  border: 1px solid var(--hairline-hi); color: var(--muted);
}
.regime-pill::before { content:''; width:6px; height:6px; border-radius:50%; background: currentColor; }
.regime-pill.risk-on  { color: var(--regime-on);  border-color: rgba(62,207,142,.4); }
.regime-pill.neutral  { color: var(--regime-neutral); border-color: rgba(232,185,62,.4); }
.regime-pill.risk-off { color: var(--regime-off); border-color: rgba(240,113,106,.4); }
.regime-pill.unknown  { color: var(--dim); border-color: var(--hairline); }

/* ============================================================
   Forms
   ============================================================ */
.form-field { margin-bottom: var(--space-4); }
.form-label { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.form-input, input[type=email], input[type=text], input[type=password] {
  width: 100%; background: var(--surface-2);
  border: 1px solid var(--hairline-hi); border-radius: var(--radius-sm);
  padding: 11px 13px; color: var(--text); font-size: 15px; font-family: var(--font-sans); outline: none;
  transition: border-color .15s;
}
.form-input:focus, input[type=email]:focus, input[type=text]:focus, input[type=password]:focus { border-color: var(--brand-accent); }
.form-input::placeholder, input::placeholder { color: var(--dim); }
.form-divider { text-align: center; color: var(--dim); font-size: .78rem; margin: var(--space-4) 0; position: relative; }
.form-divider::before, .form-divider::after { content:''; position:absolute; top:50%; width:42%; height:1px; background: var(--hairline); }
.form-divider::before { left: 0; } .form-divider::after { right: 0; }
.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  background: var(--surface-2); border: 1px solid var(--hairline-hi); border-radius: var(--radius-sm);
  padding: 11px; color: var(--text); font-size: 15px; font-weight: 600; cursor: pointer; transition: border-color .15s;
}
.google-btn:hover { border-color: var(--hairline-hi); background: var(--surface); }

/* ============================================================
   Modal
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: var(--overlay-bg); backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal {
  width: 100%; max-width: 420px; background: var(--surface);
  border: 1px solid var(--hairline-hi); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.modal-header { padding: var(--space-6) var(--space-6) var(--space-4); position: relative; border-bottom: 1px solid var(--hairline); }
.modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.modal-logo { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-accent); margin-bottom: 10px; }
.modal-title { font-size: 1.15rem; font-weight: 600; color: var(--text); }
.modal-sub { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.modal-body { padding: var(--space-6); }
.modal-footer-note { font-size: .72rem; color: var(--dim); margin-top: var(--space-4); line-height: 1.6; text-align: center; }

/* ============================================================
   Skeleton (1a shimmer, ~8% opacity feel)
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, rgba(146,160,184,.05) 25%, rgba(146,160,184,.11) 50%, rgba(146,160,184,.05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.empty-state {
  border: 1px dashed var(--hairline-hi); border-radius: var(--radius-md);
  padding: var(--space-6); text-align: center; color: var(--muted);
}
.empty-state .es-title { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.empty-state .es-copy { font-size: .9rem; color: var(--muted); margin-top: 8px; }

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--surface-2); border: 1px solid var(--hairline-hi); color: var(--text);
  padding: 11px 18px; border-radius: var(--radius-md); font-size: 14px; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 300;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   Footer & disclaimer
   ============================================================ */
footer { border-top: 1px solid var(--hairline); background: var(--surface); margin-top: var(--space-16); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-8); padding: var(--space-10) 0 var(--space-8); }
.footer-brand h3 { font-size: 1rem; color: var(--text); }
.footer-brand .tagline { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; color: var(--muted); margin-top: 6px; }
.footer-disclaimer { font-size: .72rem; color: var(--dim); line-height: 1.65; margin-top: var(--space-4); max-width: 460px; }
.footer-links h4 { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: .85rem; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: var(--space-5) 0; border-top: 1px solid var(--hairline); font-size: .72rem; color: var(--dim); }

.disclaimer-box {
  border: 1px solid var(--hairline); border-left: 2px solid var(--dim);
  border-radius: var(--radius-md); background: var(--surface);
  padding: var(--space-4) var(--space-5); font-size: .76rem; color: var(--muted); line-height: 1.7;
  margin: var(--space-8) 0;
}
.disclaimer-box strong { display: block; color: var(--body); font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.sim-disclaimer { font-size: .72rem; color: var(--dim); }

/* ============================================================
   Persona sigil (SVG injected by JS) — sizing helpers
   ============================================================ */
.sigil { display: inline-flex; flex-shrink: 0; line-height: 0; }
.persona-avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ============================================================
   Persona cards / grids
   ============================================================ */
.personas-grid, .persona-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-4); margin-top: var(--space-6);
  /* Uniform card height across every row, regardless of pick count (e.g. Sector Champ = 1 holding). */
  align-items: stretch; grid-auto-rows: 1fr;
}
.persona-card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3);
  transition: border-color .18s, background .18s; height: 100%;
}
.persona-card:hover { border-color: var(--hairline-hi); background: var(--surface-2); }
.persona-card-header { display: flex; align-items: center; gap: 10px; }
.persona-name { font-size: 1rem; font-weight: 600; color: var(--text); }
.persona-tagline, .persona-desc { font-size: .82rem; color: var(--muted); }
/* min-height keeps "Invested today" / TWR rows aligned across cards despite
   varying description length (e.g. Aggressive's tagline runs long). */
.persona-desc { min-height: 4.6rem; }
.persona-meta-row { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; gap: 8px; }
.persona-meta-row .text-muted { display: inline-flex; align-items: center; gap: 5px; }
.persona-ytd { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; }
/* info affordance explaining the "Invested today" % (of book invested, cash excluded) */
.help-i { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border: 1px solid var(--hairline-hi); border-radius: 50%; font-size: .58rem; font-weight: 600; line-height: 1; color: var(--dim); cursor: help; font-family: var(--font-sans); }
.help-i:hover { color: var(--text); border-color: var(--brand-accent); }

.persona-hero { border: 1px solid var(--hairline); border-radius: var(--radius-lg); background: var(--surface); padding: var(--space-6); }
.persona-hero-inner { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.persona-hero-name { font-size: 1.5rem; font-weight: 600; color: var(--text); }
.persona-hero-tagline { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.persona-hero-stats { display: flex; gap: var(--space-6); margin-left: auto; flex-wrap: wrap; }
.persona-hero-stat-label { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.persona-hero-stat-value { font-family: var(--font-mono); font-size: 1.2rem; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }

/* ============================================================
   Track record
   ============================================================ */
.track-summary-grid, .stats-banner { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--space-4); }
.track-card, .stat-card { padding: var(--space-5); }
.track-stat-label, .stat-label { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.track-stat-value, .stat-return { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.track-persona-name, .stat-persona-label { font-size: .9rem; font-weight: 600; color: var(--text); }

/* ============================================================
   Reports list
   ============================================================ */
.reports-list { display: flex; flex-direction: column; gap: var(--space-3); }
.report-card { padding: 0; }
.report-card-inner { padding: var(--space-5); display: block; }
.report-card-date { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.report-card-title { font-size: 1.05rem; font-weight: 600; color: var(--text); margin: 8px 0; }
.report-card-summary { font-size: .88rem; color: var(--muted); line-height: 1.6; }
.report-card-meta { display: flex; gap: var(--space-4); margin-top: var(--space-3); flex-wrap: wrap; }
.report-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: var(--space-3); }

/* ============================================================
   Verify
   ============================================================ */
.verify-card { padding: var(--space-6); }
.verify-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .7rem; color: var(--regime-on); }
.verify-hash {
  font-family: var(--font-mono); font-size: .78rem; color: var(--brand-blue); word-break: break-all;
  background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--radius-sm); padding: 8px 12px;
}

/* ============================================================
   Direction labels
   ============================================================ */
.dir-up   { color: var(--regime-on); }
.dir-down { color: var(--regime-off); }

/* ============================================================
   Gating (auth blur)
   ============================================================ */
.gated-blur-wrap { position: relative; }
.gated-blur-content.active { filter: blur(6px); pointer-events: none; user-select: none; }
.gated-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; }

.region-gate-banner { display: none; align-items: center; gap: 10px; padding: 12px 16px; background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--radius-md); color: var(--muted); font-size: .85rem; }

/* Calibration banner — shown on track-record / verify while the
   live sample is still small (early sessions of engine v2.x). */
.calib-banner {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 16px; margin-bottom: var(--space-6);
  background: rgba(232,185,62,.07);
  border: 1px solid var(--hairline-hi);
  border-left: 3px solid var(--regime-neutral);
  border-radius: var(--radius-md);
  color: var(--body); font-size: .9rem; line-height: 1.55;
}
.calib-banner .cb-tag {
  font-family: var(--font-mono); font-weight: 600; font-size: .66rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--regime-neutral);
  flex-shrink: 0; padding-top: 2px;
}
.calib-banner .cb-body { color: var(--muted); }
.calib-banner .cb-body strong { color: var(--text); font-weight: 600; }

/* ============================================================
   Utilities
   ============================================================ */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: var(--space-2); } .gap-3 { gap: var(--space-3); } .gap-4 { gap: var(--space-4); }
.mb-2 { margin-bottom: var(--space-2); } .mb-4 { margin-bottom: var(--space-4); } .mb-6 { margin-bottom: var(--space-6); } .mb-8 { margin-bottom: var(--space-8); }
.mt-2 { margin-top: var(--space-2); } .mt-4 { margin-top: var(--space-4); } .mt-6 { margin-top: var(--space-6); } .mt-8 { margin-top: var(--space-8); }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; }
.font-bold { font-weight: 600; }
.font-black { font-weight: 600; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-6); }
}
@media (max-width: 600px) {
  .personas-grid, .persona-grid, .track-summary-grid, .stats-banner { grid-template-columns: 1fr; }
  .persona-hero-stats { margin-left: 0; width: 100%; }
}
