/* ═══════════════════════════════════════════════════════════════════
   YOUNG BULL — Bloomberg Dark Terminal design system
   Base: #0c0d10 · JetBrains Mono · Gold conviction · Green/Red P&L
   DESIGN_VARIANCE=5 · MOTION_INTENSITY=3 · VISUAL_DENSITY=9
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Geist:wght@300;400;500;600;700&display=swap');

:root {
  /* ─── Surfaces ───────────────────────────────────────────────── */
  --surface:        #0c0d10;          /* page base */
  --surface-sunk:   #08090b;          /* deeper recess */
  --surface-raised: #14161b;          /* card / panel */
  --surface-elev:   #181b21;          /* hover */
  --surface-hover:  #1c2027;
  --ink:            #e8eaed;          /* primary text */
  --ink-dim:        #9ca3af;          /* secondary */
  --ink-mute:       #6b7280;          /* tertiary / labels */
  --ink-faint:      #4b5159;
  --ink-ghost:      #2f343c;

  /* Borders / hairlines */
  --line:           #1f2228;
  --line-soft:      #15171c;
  --line-strong:    #2a2e36;
  --hairline:       #1f2228;          /* alias used by some pages */
  --rule:           #2a2e36;          /* alias */

  /* ─── Brand & semantic ───────────────────────────────────────── */
  --accent:         #d4a843;          /* GOLD — conviction */
  --accent-soft:    #e6bd5e;
  --accent-wash:    rgba(212, 168, 67, 0.10);
  --accent-line:    rgba(212, 168, 67, 0.35);

  --gain:           #22c55e;          /* gains */
  --gain-wash:      rgba(34, 197, 94, 0.12);
  --loss:           #ef4444;          /* losses */
  --loss-wash:      rgba(239, 68, 68, 0.14);
  --warn:           #f59e0b;          /* warning amber */
  --warn-wash:      rgba(245, 158, 11, 0.12);
  --info:           #3b82f6;          /* info / agents */
  --info-wash:      rgba(59, 130, 246, 0.10);

  /* ─── Sleeve tints (dark-adapted, disciplined) ───────────────── */
  --sleeve-core:          #d4a843;    /* gold — compounders */
  --sleeve-core-wash:     rgba(212, 168, 67, 0.10);
  --sleeve-frontier:      #a78bfa;    /* violet — moonshots (used sparingly) */
  --sleeve-frontier-wash: rgba(167, 139, 250, 0.10);
  --sleeve-neutral:       #6b7280;    /* warm gray — pharma / index */
  --sleeve-neutral-wash:  rgba(107, 114, 128, 0.08);

  /* ─── Iridescent (replaced — pure gold for conviction) ───────── */
  --iri-a:          #d4a843;
  --iri-b:          #d4a843;
  --iri-c:          #d4a843;
  --iri-soft:       rgba(212, 168, 67, 0.18);
  --iri-gradient:   linear-gradient(120deg, #d4a843 0%, #c8983a 50%, #b88728 100%);
  --iri-gradient-h: linear-gradient(90deg,  #d4a843 0%, #c8983a 50%, #b88728 100%);
  --iri-gradient-r: linear-gradient(60deg,  #b88728 0%, #c8983a 50%, #d4a843 100%);

  /* ─── Type ───────────────────────────────────────────────────── */
  --serif: 'Geist', 'Inter Tight', system-ui, -apple-system, 'SF Pro Text', sans-serif;
  --sans:  'Geist', 'Inter Tight', system-ui, -apple-system, 'SF Pro Text', sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', 'Menlo', monospace;

  /* ─── Scale ──────────────────────────────────────────────────── */
  --col:       720px;
  --col-wide: 1280px;
  --col-mega: 1480px;
  --gap-xs:   6px;
  --gap-sm:   12px;
  --gap:      18px;
  --gap-lg:   28px;
  --gap-xl:   56px;

  --radius:    2px;                   /* terminal — minimal radius */
  --radius-sm: 0;

  /* Motion — exponential ease-out, no bounce */
  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-fast: cubic-bezier(0.4, 0, 0.2, 1);

  /* Aliases used by inline page styles — wired so light mode can flip them */
  --cream:    #14161b;                /* alias of --surface-raised in dark */
  --cream-2:  rgba(255, 255, 255, 0.02);
}

/* ═══ Light mode — cream editorial, gold conviction preserved ════ */
/* Activated by inline FOUC script: html[data-yb-theme="light"]      */
/* Default (no attr) and "dark" both render dark via :root above.    */
html[data-yb-theme="light"] {
  --surface:        #fafaf7;          /* warm cream paper */
  --surface-sunk:   #f1efe8;          /* deeper recess */
  --surface-raised: #ffffff;          /* card / panel */
  --surface-elev:   #f7f5ee;          /* hover */
  --surface-hover:  #efece4;
  --ink:            #15181d;          /* primary text — near black */
  --ink-dim:        #3d4148;          /* secondary */
  --ink-mute:       #6b7077;          /* tertiary / labels */
  --ink-faint:      #9499a1;
  --ink-ghost:      #c4c8d0;

  /* Borders / hairlines (warm cream-grays) */
  --line:           #e6e3dc;
  --line-soft:      #efece5;
  --line-strong:    #d4d0c6;
  --hairline:       #e6e3dc;
  --rule:           #d4d0c6;

  /* Brand & semantic — deepened gold for white-bg contrast */
  --accent:         #b8861f;
  --accent-soft:    #d4a843;
  --accent-wash:    rgba(184, 134, 31, 0.10);
  --accent-line:    rgba(184, 134, 31, 0.35);

  /* P&L semantics — deeper for legibility on cream */
  --gain:           #1f6b3a;
  --gain-wash:      rgba(31, 107, 58, 0.10);
  --loss:           #a3341f;
  --loss-wash:      rgba(163, 52, 31, 0.10);
  --warn:           #a87427;
  --warn-wash:      rgba(168, 116, 39, 0.10);
  --info:           #1d4ed8;
  --info-wash:      rgba(29, 78, 216, 0.08);

  /* Sleeve tints — light-adapted */
  --sleeve-core:          #b8861f;
  --sleeve-core-wash:     rgba(184, 134, 31, 0.08);
  --sleeve-frontier:      #6d28d9;
  --sleeve-frontier-wash: rgba(109, 40, 217, 0.08);
  --sleeve-neutral:       #6b7077;
  --sleeve-neutral-wash:  rgba(107, 112, 119, 0.06);

  /* Iridescent — keep gold gradient for conviction */
  --iri-soft:       rgba(184, 134, 31, 0.18);
  --iri-gradient:   linear-gradient(120deg, #b8861f 0%, #c8983a 50%, #d4a843 100%);
  --iri-gradient-h: linear-gradient(90deg,  #b8861f 0%, #c8983a 50%, #d4a843 100%);
  --iri-gradient-r: linear-gradient(60deg,  #d4a843 0%, #c8983a 50%, #b8861f 100%);

  /* Aliases */
  --cream:    #ffffff;
  --cream-2:  rgba(0, 0, 0, 0.02);
}

/* ═══ Base ═══════════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'tnum' 1, 'cv11' 1, 'ss01' 1;
  text-rendering: geometricPrecision;
  min-height: 100vh;
}

img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: inherit; }

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 140ms var(--ease), color 140ms var(--ease);
}
a:hover { color: var(--accent); border-bottom-color: var(--accent); }
a.plain { border-bottom: 0; }
a.plain:hover { color: var(--accent); }

::selection { background: var(--accent); color: var(--surface-sunk); }

/* Tabular numbers — always on for prices & percentages */
.num, td.num, .price, .pct, .ticker-num,
.sov-stat-value, .stat-value, .sleeve-alloc, .level-value {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

/* ═══ Typography ═════════════════════════════════════════════════ */
h1, h2, h3, .serif {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.2;
  font-weight: 600;
}
h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.display {
  font-family: var(--mono);
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.0;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.h-display {
  font-family: var(--sans);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.h-serif {
  font-family: var(--sans);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.lede {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 64ch;
}
.meta { color: var(--ink-mute); font-size: 12px; font-family: var(--mono); letter-spacing: 0.02em; }
.dim  { color: var(--ink-dim); }
.mono { font-family: var(--mono); font-size: 0.92em; }

/* ═══ Layout ═════════════════════════════════════════════════════ */
.container        { max-width: var(--col-wide); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--col); margin: 0 auto; padding: 0 24px; }
.container-wide   { max-width: var(--col-wide); margin: 0 auto; padding: 0 24px; }
.section          { padding: var(--gap-xl) 0 var(--gap-lg); }
.section-tight    { padding: var(--gap-lg) 0; }
.section-pad      { padding: var(--gap-xl) 0 var(--gap-lg); }
.section-pad-sm   { padding: var(--gap-lg) 0; }
.section-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--gap);
  margin-bottom: var(--gap);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.hero {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--line);
}

/* ═══ Nav ════════════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--surface-sunk);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.1) blur(10px);
  -webkit-backdrop-filter: saturate(1.1) blur(10px);
}
.nav-inner {
  max-width: var(--col-wide);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
}
.nav-brand {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 0;
}
.nav-brand:hover { color: var(--accent-soft); }
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a {
  color: var(--ink-dim);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 11px;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--mono);
  text-transform: uppercase;
  transition: background 140ms var(--ease), color 140ms var(--ease);
}
.nav-links a:hover { background: var(--surface-raised); color: var(--ink); }
.nav-links a.active { color: var(--accent); }
.nav-cta,
.nav-links a.nav-cta {
  padding: 7px 14px;
  background: var(--accent);
  color: var(--surface-sunk);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-cta:hover,
.nav-links a.nav-cta:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--surface-sunk);
}

.yb-auth-slot { display: inline-flex; align-items: center; }
.yb-auth-link {
  color: var(--ink-dim);
  font-size: 11px;
  font-weight: 500;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-right: 4px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background 140ms var(--ease), color 140ms var(--ease), border-color 140ms var(--ease);
}
.yb-auth-link:hover { background: var(--surface-raised); color: var(--ink); border-color: var(--line-strong); }
.yb-auth-link.active { color: var(--accent); border-color: var(--accent-line); }

.yb-theme-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; margin-right: 4px;
  background: transparent; color: var(--ink-dim);
  border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; transition: border-color 140ms var(--ease), color 140ms var(--ease);
}
.yb-theme-toggle:hover { border-color: var(--accent-line); color: var(--accent); }
.yb-theme-toggle .yb-theme-label { font-weight: 600; }
.menu-toggle { display: none; font-size: 22px; padding: 4px 8px; color: var(--ink); }

/* ═══ Panel / Card ═══════════════════════════════════════════════ */
.panel {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--gap);
}
.panel-sunk   { background: var(--surface-sunk); }
.panel-accent {
  border-color: var(--accent-line);
  background: var(--accent-wash);
}
.panel-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  background: var(--line);
  border: 1px solid var(--line);
}
.panel-grid > * { background: var(--surface-raised); }

.panel-head { margin-bottom: 14px; }
.panel-head .eyebrow { margin-bottom: 4px; }

/* ═══ Stat cell ══════════════════════════════════════════════════ */
.stat {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
}
.stat-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.stat-value {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.stat-sub {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-dim);
}
.stat-sub.gain { color: var(--gain); }
.stat-sub.loss { color: var(--loss); }

.stat-value.flash-up   { animation: flash-gain 900ms var(--ease); }
.stat-value.flash-down { animation: flash-loss 900ms var(--ease); }
@keyframes flash-gain { 0% { color: var(--gain); } 100% { color: var(--ink); } }
@keyframes flash-loss { 0% { color: var(--loss); } 100% { color: var(--ink); } }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stats-grid > * { background: var(--surface-raised); border: 0; }

/* ═══ Sleeve allocation bar ══════════════════════════════════════ */
.sleeve-bar {
  display: grid;
  grid-template-columns: var(--core-fr, 62fr) var(--frontier-fr, 25fr) var(--neutral-fr, 13fr);
  height: 6px;
  overflow: hidden;
  background: var(--line);
  margin: 16px 0;
}
.sleeve-bar > * { height: 100%; }
.sleeve-bar-core     { background: var(--sleeve-core); }
.sleeve-bar-frontier { background: var(--sleeve-frontier); }
.sleeve-bar-neutral  { background: var(--sleeve-neutral); }

.sleeve-bar-seg {
  position: relative;
  height: 100%;
  transition: filter 140ms var(--ease);
}
.sleeve-bar-seg:hover { filter: brightness(1.15); }
.sleeve-bar-label {
  position: absolute;
  top: 12px;
  left: 0;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sleeve-bar-label strong { color: var(--ink); font-weight: 600; }

.sleeve-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
}
.sleeve-legend-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 2px 0;
}
.sleeve-legend-item .num { font-weight: 500; color: var(--ink); margin-left: 4px; }
.sleeve-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  vertical-align: middle;
}
.sleeve-dot.core,
.sleeve-legend-item .sleeve-dot.core     { background: var(--sleeve-core); }
.sleeve-dot.frontier,
.sleeve-legend-item .sleeve-dot.frontier { background: var(--sleeve-frontier); }
.sleeve-dot.neutral,
.sleeve-legend-item .sleeve-dot.neutral  { background: var(--sleeve-neutral); }

/* ═══ Sleeve section (portfolio page) ════════════════════════════ */
.sleeve-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  margin-bottom: var(--gap-lg);
  overflow: hidden;
}
.sleeve-section.core     { border-top: 2px solid var(--sleeve-core); }
.sleeve-section.frontier { border-top: 2px solid var(--sleeve-frontier); }
.sleeve-section.neutral  { border-top: 2px solid var(--sleeve-neutral); }
.sleeve-section-hd {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--gap);
}
.sleeve-head {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
}
.sleeve-name {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.sleeve-alloc {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-dim);
}
.sleeve-target {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sleeve-kpi { text-align: right; }
.sleeve-kpi .num {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
}

/* ═══ Table ══════════════════════════════════════════════════════ */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px 16px;
}
.table-wrap .table { margin-top: 6px; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 12px;
}
.table thead th {
  text-align: left;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  white-space: nowrap;
}
.table tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr {
  transition: background 140ms var(--ease);
}
.table tbody tr:hover { background: var(--surface-elev); }
.table td.num, .table th.num { text-align: right; }
.table td.ticker { font-weight: 600; color: var(--ink); letter-spacing: 0.02em; }
.table td.ticker a { border-bottom: 0; color: var(--ink); }
.table td.ticker a:hover { color: var(--accent); }
.table .gain { color: var(--gain); }
.table .loss { color: var(--loss); }
.table .thesis-cell {
  max-width: 320px;
  color: var(--ink-dim);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
}

.ticker-cell { position: relative; padding-right: 32px !important; }
.ticker-cell .rank {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-mute);
  font-size: 10px;
  font-family: var(--mono);
}
.triggers-cell { min-width: 180px; }
.triggers-cell .trigger { margin-right: 4px; margin-bottom: 4px; }

/* ═══ Badge ══════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  color: var(--ink-dim);
  background: var(--surface-sunk);
  line-height: 1.4;
}
.badge-live {
  color: var(--gain);
  border-color: color-mix(in srgb, var(--gain) 38%, var(--line-strong));
  background: var(--gain-wash);
}
.badge-live::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gain);
  animation: pulse 2.4s var(--ease) infinite;
}
.badge-accent {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-wash);
}
.badge-moonshot {
  color: var(--sleeve-frontier);
  border-color: color-mix(in srgb, var(--sleeve-frontier) 40%, var(--line-strong));
  background: var(--sleeve-frontier-wash);
}
.badge-core {
  color: var(--sleeve-core);
  border-color: color-mix(in srgb, var(--sleeve-core) 40%, var(--line-strong));
  background: var(--sleeve-core-wash);
}
.badge-neutral {
  color: var(--sleeve-neutral);
  border-color: color-mix(in srgb, var(--sleeve-neutral) 40%, var(--line-strong));
  background: var(--sleeve-neutral-wash);
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* ═══ Trigger pill ═══════════════════════════════════════════════ */
.triggers { display: flex; flex-wrap: wrap; gap: 4px; }
.trigger {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 1px 7px;
  font-size: 10px;
  font-family: var(--mono);
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-sunk);
  letter-spacing: 0.02em;
}
.trigger-label {
  color: var(--ink-mute);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}
.trigger-buy   { color: var(--gain); border-color: color-mix(in srgb, var(--gain) 30%, var(--line)); }
.trigger-trim  { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, var(--line)); }
.trigger-sell  { color: var(--loss); border-color: color-mix(in srgb, var(--loss) 30%, var(--line)); }
.trigger-watch { color: var(--ink-dim); }
.trigger-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* ═══ Button ═════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--surface-sunk);
  border-bottom: 1px solid var(--ink);
  transition: background 140ms var(--ease), border-color 140ms var(--ease), color 140ms var(--ease), transform 140ms var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--surface-sunk); }
.btn:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--surface-raised); border-color: var(--accent-line); color: var(--accent); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--surface-sunk); }
.btn-accent:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--surface-sunk); }

/* ═══ Hero block (landing) ═══════════════════════════════════════ */
.hero-kicker {
  font-family: var(--mono);
  color: var(--ink-mute);
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero-sub {
  font-size: 16px;
  color: var(--ink-dim);
  max-width: 60ch;
  margin-top: var(--gap);
  line-height: 1.55;
}

.figure-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: var(--gap-lg);
}

/* ═══ Footer ═════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--line);
  padding: var(--gap-lg) 0;
  margin-top: var(--gap-xl);
  color: var(--ink-mute);
  font-size: 12px;
  background: var(--surface-sunk);
}
.footer-inner {
  max-width: var(--col-wide);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  justify-content: space-between;
  align-items: flex-end;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.2fr;
  gap: var(--gap-lg);
  align-items: start;
}
.footer-grid .footer-links {
  flex-direction: row;
  flex-wrap: wrap;
  font-family: var(--mono);
}
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-dim); font-size: 12px; border-bottom-color: transparent; }
.footer-links a:hover { color: var(--accent); }
.footer-brand {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.footer-meta {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.55;
  max-width: 360px;
  color: var(--ink-mute);
}

/* ═══ Cmd+K palette ══════════════════════════════════════════════ */
.cmdk-trigger {
  position: fixed;
  bottom: 22px;
  /* Bottom-LEFT to avoid colliding with bottom-right Vestor button.
     Per Quinn directive 2026-05-02 — 8px+ separation across all viewports. */
  left: 22px;
  padding: 9px 14px;
  background: var(--ink);
  color: var(--surface-sunk);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 140ms var(--ease), border-color 140ms var(--ease);
}
.cmdk-trigger:hover { background: var(--accent); border-color: var(--accent); }
.cmdk-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 2px;
  background: rgba(255,255,255,0.12);
  font-family: var(--mono);
  font-size: 10px;
}
.cmdk-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
}
.cmdk-overlay.open { display: flex; }
.cmdk-box {
  width: 92%;
  max-width: 580px;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.cmdk-input-wrap {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.cmdk-prompt { color: var(--accent); font-weight: 600; font-family: var(--mono); }
.cmdk-input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.cmdk-input::placeholder { color: var(--ink-mute); }
.cmdk-results { max-height: 52vh; overflow-y: auto; }
.cmdk-section-label {
  padding: 9px 18px 5px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
}
.cmdk-result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  cursor: pointer;
  border-left: 2px solid transparent;
  font-size: 13px;
  font-family: var(--mono);
  transition: background 140ms var(--ease);
}
.cmdk-result:hover, .cmdk-result.selected {
  background: var(--accent-wash);
  border-left-color: var(--accent);
}
.cmdk-result-sym { color: var(--accent); font-weight: 600; min-width: 56px; font-size: 12px; }
.cmdk-result-label { color: var(--ink); flex: 1; font-family: var(--sans); }
.cmdk-result-meta { color: var(--ink-mute); font-size: 11px; }
.cmdk-footer {
  padding: 9px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ═══ Capture bar ═══════════════════════════════════════════════ */
.yb-capture-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  padding: 12px 22px calc(12px + env(safe-area-inset-bottom, 0px)) 22px;
  background: var(--surface-sunk);
  border-top: 1px solid var(--accent-line);
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-family: var(--mono);
  transform: translateY(110%);
  transition: transform 380ms var(--ease);
}
.yb-capture-bar.visible { transform: translateY(0); }
.yb-cap-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; }
.yb-cap-text strong { color: var(--accent); font-weight: 600; }
.yb-cap-sub {
  color: var(--ink-mute);
  font-size: 11px; letter-spacing: 0.04em;
}
.yb-cap-form { display: flex; gap: 6px; flex-shrink: 0; }
.yb-cap-form input {
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-raised);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  width: 220px;
  outline: none;
  transition: border-color 140ms var(--ease);
}
.yb-cap-form input::placeholder { color: var(--ink-mute); }
.yb-cap-form input:focus { border-color: var(--accent); }
.yb-cap-form button {
  padding: 7px 14px;
  background: var(--accent);
  color: var(--surface-sunk);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.yb-cap-form button:hover { background: var(--accent-soft); }
.yb-cap-close {
  color: var(--ink-mute);
  font-size: 20px;
  line-height: 1;
  padding: 4px 8px;
  flex-shrink: 0;
}
.yb-cap-close:hover { color: var(--ink); }

/* ═══ Inline form ═══════════════════════════════════════════════ */
.inline-form {
  display: inline-flex;
  gap: 6px;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}
.inline-form input {
  flex: 1;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-raised);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  outline: none;
  transition: border-color 140ms var(--ease);
}
.inline-form input::placeholder { color: var(--ink-mute); }
.inline-form input:focus { border-color: var(--accent); }
.inline-form .btn { padding: 10px 18px; }

.cta-band {
  background: var(--surface-sunk);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ═══ Rule grid (mandate) ═══════════════════════════════════════ */
.rule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 24px;
}
.rule {
  padding-top: 12px;
  border-top: 1px solid var(--accent-line);
}
.rule-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.rule h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--ink);
}
.rule p { font-size: 13px; line-height: 1.55; color: var(--ink-dim); }

/* ═══ Seat counter ══════════════════════════════════════════════ */
.seat-counter {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: var(--accent-wash);
  max-width: 520px;
}
.seat-meta { margin-bottom: 10px; }
.seat-stats {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}
.seat-claimed {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--accent);
}
.seat-bar-wrap {
  height: 4px;
  background: var(--line);
  overflow: hidden;
}
.seat-bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 600ms var(--ease);
}

/* ═══ Pro features ══════════════════════════════════════════════ */
.pro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.pro-feature {
  padding-top: 12px;
  border-top: 1px solid var(--accent-line);
}
.pro-feat-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pro-feature h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 6px;
  color: var(--ink);
}
.pro-feature p { font-size: 13px; line-height: 1.55; color: var(--ink-dim); }

/* ═══ Pricing ═══════════════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
  max-width: 780px;
  margin: 0 auto;
}
.pricing-card {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
}
.pricing-card-featured {
  border: 1px solid var(--accent);
  background: var(--accent-wash);
}
.price-amount {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price-amount .num {
  font-family: var(--mono);
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--accent);
}
.feature-list {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.feature-list li {
  padding-left: 20px;
  position: relative;
  font-size: 13px;
  font-family: var(--mono);
  color: var(--ink-dim);
  letter-spacing: 0.01em;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 1px;
  background: var(--accent);
}

/* ═══ FAQ ════════════════════════════════════════════════════════ */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--mono);
  font-size: 18px;
  color: var(--accent);
  transition: transform 200ms var(--ease);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.6;
  max-width: 640px;
}

/* ═══ Ticker picker (research) ══════════════════════════════════ */
.ticker-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}
.picker-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-raised);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 140ms var(--ease);
  cursor: pointer;
}
.picker-chip .chip-t { font-weight: 600; }
.picker-chip .chip-rank { font-size: 10px; color: var(--ink-mute); }
.picker-chip:hover { background: var(--surface-elev); border-color: var(--accent-line); color: var(--accent); }
.picker-chip.active {
  background: var(--accent);
  color: var(--surface-sunk);
  border-color: var(--accent);
}
.picker-chip.active .chip-rank { color: rgba(8, 9, 11, 0.6); }

/* ═══ Ticker head ═══════════════════════════════════════════════ */
.ticker-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
  flex-wrap: wrap;
}
.ticker-head-price {
  text-align: right;
  min-width: 220px;
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
}

/* ═══ Tabs ═══════════════════════════════════════════════════════ */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab {
  padding: 10px 16px;
  border: 0;
  background: transparent;
  color: var(--ink-dim);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 140ms var(--ease), border-color 140ms var(--ease);
  cursor: pointer;
}
.tab:hover { color: var(--ink); }
.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade 240ms var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }

/* ═══ Level grid (technical) ════════════════════════════════════ */
.level-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.level-item {
  padding: 11px 13px;
  background: var(--surface-raised);
}
.level-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 5px;
}
.level-value {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* ═══ Action grid (morning brief) ═══════════════════════════════ */
.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.action-col {
  padding: 16px;
  background: var(--surface-raised);
}
.action-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.action-list { display: flex; flex-direction: column; gap: 10px; }
.action-row {
  padding: 9px 0;
  border-bottom: 1px dashed var(--line-soft);
}
.action-row:last-child { border-bottom: 0; }
.action-row-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.action-row-note {
  font-size: 12px;
  font-family: var(--sans);
  line-height: 1.45;
  color: var(--ink-dim);
  margin-bottom: 6px;
  max-width: 42ch;
}
.action-row-trigger { font-family: var(--mono); font-size: 11px; }

/* ═══ Catalyst list ═════════════════════════════════════════════ */
.catalyst-list { display: flex; flex-direction: column; gap: 0; }
.catalyst {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.catalyst:last-child { border-bottom: 0; }
.cat-date {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.cat-body { font-size: 13px; line-height: 1.55; color: var(--ink); }
.cat-body strong { font-weight: 600; }
.cat-body .muted { display: block; margin-top: 4px; font-size: 12px; font-family: var(--mono); color: var(--ink-mute); }

/* ═══ Heartbeat indicator ═══════════════════════════════════════ */
.yb-heartbeat {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  background: var(--surface-sunk);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  pointer-events: auto;
  user-select: none;
}
.yb-heartbeat-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gain);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: yb-pulse 2.4s var(--ease) infinite;
}
.yb-heartbeat-err .yb-heartbeat-dot {
  background: var(--loss);
  animation: yb-pulse-err 1.2s var(--ease) infinite;
}
.yb-heartbeat-stale .yb-heartbeat-dot {
  background: var(--warn);
  animation: yb-pulse-stale 2.4s var(--ease) infinite;
}
.yb-heartbeat-label { font-weight: 600; color: var(--ink); }
@keyframes yb-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
@keyframes yb-pulse-err {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
@keyframes yb-pulse-stale {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* ═══ Stale tag (inline) ════════════════════════════════════════ */
.yb-stale-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--warn);
  border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--line));
  padding: 1px 5px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ═══ Performance curve mount ═══════════════════════════════════ */
.yb-perf-mount {
  width: 100%;
  max-width: 720px;
  min-height: 200px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 11px;
}
.yb-perf-mount svg { width: 100%; height: auto; display: block; }
.yb-spark { display: inline-block; vertical-align: middle; line-height: 0; }
.yb-spark svg { display: block; }

/* ═══ Command center (footer band) ══════════════════════════════ */
.yb-command-center {
  background: var(--surface-sunk);
  color: var(--ink);
  padding: 40px 0 48px;
  border-top: 1px solid var(--accent-line);
}
.yb-cc-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.yb-cc-hd { margin-bottom: 22px; }
.yb-cc-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.yb-cc-title {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.yb-cc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.yb-cc-tile {
  background: var(--surface-raised);
  padding: 18px 16px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 0;
  position: relative;
  overflow: hidden;
  display: block;
  transition: background 140ms var(--ease), color 140ms var(--ease);
}
.yb-cc-tile:hover {
  background: var(--surface-elev);
  color: var(--accent);
}
.yb-cc-tile::after {
  content: '→';
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 14px;
  transition: color 140ms var(--ease), transform 140ms var(--ease);
}
.yb-cc-tile:hover::after {
  color: var(--accent);
  transform: translateX(3px);
}
.yb-cc-k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.yb-cc-l {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.3;
  margin-bottom: 4px;
}
.yb-cc-h {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  line-height: 1.45;
}

/* ═══════════════════════════════════════════════════════════════════
   SOV-* CLASSES (formerly sovereign.css — folded into base)
   ═══════════════════════════════════════════════════════════════════ */

/* Hero block */
.sov-hero {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.sov-hero-kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.sov-hero-title {
  font-family: var(--sans);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 18px;
}
.sov-hero-sub {
  font-size: 16px;
  color: var(--ink-dim);
  line-height: 1.55;
  max-width: 60ch;
  margin-bottom: 28px;
}
.sov-hero-sub a { color: var(--accent); border-bottom-color: var(--accent-line); }
.sov-hero-sub a:hover { color: var(--accent-soft); border-bottom-color: var(--accent); }

/* Stat strip */
.sov-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 10px;
}
.sov-stat {
  padding: 16px 18px;
  background: var(--surface-raised);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sov-stat-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.sov-stat-value {
  font-family: var(--mono);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.sov-stat-value.iri { color: var(--accent); }
.sov-stat-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
}

/* Scarcity strip */
.sov-scarcity {
  background: var(--surface-sunk);
  border-bottom: 1px solid var(--accent-line);
  position: relative;
  overflow: hidden;
}
.sov-scarcity-inner {
  max-width: var(--col-wide);
  margin: 0 auto;
  padding: 7px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
}
.sov-scarcity-inner strong { color: var(--accent); font-weight: 600; }
.sov-scarcity-inner a { color: var(--accent); border-bottom-color: var(--accent-line); }
.sov-scarcity-inner a:hover { color: var(--accent-soft); }
.sov-scarcity-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--gain);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-size: 10px;
}
.sov-scarcity-live::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--gain);
  border-radius: 50%;
  animation: pulse 2.4s var(--ease) infinite;
}

/* Classify CTA */
.sov-classify-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid var(--accent-line);
  background: var(--accent-wash);
  border-radius: var(--radius);
  transition: border-color 140ms var(--ease), background 140ms var(--ease);
}
.sov-classify-cta:hover {
  border-color: var(--accent);
  background: rgba(212, 168, 67, 0.14);
}
.sov-classify-cta-body { display: flex; flex-direction: column; gap: 6px; }
.sov-classify-cta-kicker {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.sov-classify-cta-title {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.25;
}
.sov-classify-cta-sub {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.55;
  max-width: 64ch;
}
.sov-cta-text { display: flex; flex-direction: column; gap: 4px; }
.sov-cta-arrow { color: var(--accent); font-family: var(--mono); font-size: 18px; }

/* Audit layer rows */
.sov-audit-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface-raised);
}
.sov-audit-disclaimer {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.sov-audit-result {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface-raised);
}
.sov-audit-headline {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}
.sov-audit-layer-row {
  display: grid;
  grid-template-columns: 140px 1fr 60px 80px;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 12px;
}
.sov-audit-layer-row:last-child { border-bottom: 0; }
.sov-audit-layer-name { color: var(--ink); font-weight: 500; }
.sov-audit-layer-bar {
  height: 4px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.sov-audit-layer-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--accent);
  transition: width 600ms var(--ease);
}
.sov-audit-layer-pct { color: var(--accent); text-align: right; font-variant-numeric: tabular-nums; }
.sov-audit-layer-tickers { color: var(--ink-mute); font-size: 11px; }
.sov-audit-layer-val { color: var(--ink-dim); text-align: right; font-variant-numeric: tabular-nums; }

/* Layer cards (physical layer breakdown) */
.sov-layers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.sov-layer-card {
  background: var(--surface-raised);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sov-layer-card-hd {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.sov-layer-card-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.sov-layer-card-pct {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.sov-layer-card-desc {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  line-height: 1.5;
}

/* Seat counter (pro page hero) */
.sov-seat-counter {
  margin: 22px 0;
  padding: 22px;
  background: var(--surface-raised);
  border: 1px solid var(--accent-line);
}
.sov-seat-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
}
.sov-seat-claimed {
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.025em;
  line-height: 1;
}
.sov-seat-of {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-mute);
  margin-left: 4px;
}
.sov-seat-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}
.sov-seat-bar-wrap {
  height: 4px;
  background: var(--line);
  margin-top: 12px;
  overflow: hidden;
}
.sov-seat-bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 600ms var(--ease);
}
.sov-seat-remaining {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  margin-top: 8px;
}
.sov-seat-price { text-align: right; }
.sov-seat-price-main {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.sov-seat-price-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════════════
   IRI-* CLASSES — gold conviction (replaced iridescent)
   ═══════════════════════════════════════════════════════════════════ */
.iri-text {
  color: var(--accent);
  font-weight: 600;
}
.iri-glow {
  color: var(--accent);
  text-shadow: 0 0 28px rgba(212, 168, 67, 0.18);
}
.iri-border {
  border: 1px solid var(--accent-line);
}

/* ═══ Utility ════════════════════════════════════════════════════ */
.sep { height: 1px; background: var(--line); margin: var(--gap-lg) 0; }
.hstack { display: flex; align-items: center; gap: var(--gap-sm); }
.vstack { display: flex; flex-direction: column; gap: var(--gap-sm); }
.between { display: flex; justify-content: space-between; align-items: baseline; gap: var(--gap); }
.grow { flex: 1; }
.wrap { flex-wrap: wrap; }
.hidden { display: none !important; }
.gain { color: var(--gain); }
.loss { color: var(--loss); }
.warn { color: var(--warn); }
.muted { color: var(--ink-dim); }
.accent { color: var(--accent); }

/* ═══ Responsive ════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .sov-stats { grid-template-columns: repeat(2, 1fr); }
  .action-grid { grid-template-columns: 1fr; }
  .sov-classify-cta { grid-template-columns: 1fr; gap: 14px; }
  .sov-seat-inner { grid-template-columns: 1fr; }
  .sov-seat-price { text-align: left; }
}
@media (max-width: 860px) {
  .sleeve-head { grid-template-columns: 1fr; }
  .sleeve-kpi { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .triggers-cell { min-width: 140px; }
  .inline-form { flex-direction: column; }
  .inline-form input, .inline-form .btn { width: 100%; }
  .table-wrap { padding: 0 12px 14px; }
  .catalyst { grid-template-columns: 1fr; gap: 4px; }
  .nav-links { gap: 1px; }
  .nav-links a { font-size: 11px; padding: 5px 8px; }
  .container, .nav-inner, .footer-inner { padding-left: 16px; padding-right: 16px; }
  .hero { padding: 36px 0 24px; }
  .section { padding: 36px 0 22px; }
  .display { font-size: clamp(36px, 7vw, 52px); }
  .thesis-cell { max-width: 220px; }
  .sov-audit-layer-row { grid-template-columns: 1fr 70px; gap: 8px; }
  .sov-audit-layer-tickers, .sov-audit-layer-val { display: none; }
}
@media (max-width: 640px) {
  .sov-stats { grid-template-columns: 1fr; }
  .nav-links .nav-desktop-only { display: none; }
  .menu-toggle { display: inline-flex; }
  .yb-capture-bar { flex-wrap: wrap; gap: 8px; }
  .yb-cap-text { flex: 1 1 100%; }
  .yb-cap-form { flex: 1 1 100%; }
  .yb-cap-form input { width: 100%; flex: 1; }
  .cmdk-trigger { bottom: 12px; left: 12px; right: auto; padding: 7px 11px; }
  .yb-heartbeat { right: 10px; bottom: 70px; padding: 4px 8px; font-size: 9px; }
  .sov-scarcity-inner { flex-direction: column; gap: 5px; font-size: 11px; padding: 7px 14px; }
}

/* ═══ Print ══════════════════════════════════════════════════════ */
@media print {
  .yb-capture-bar, .cmdk-trigger, .cmdk-overlay, .nav, .yb-heartbeat { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; border-bottom: 0; }
}

/* ═══ Embeds · iframe-tab panels ═══════════════════════════════════
   When ?embed=1 is in the URL, claude.js sets body[data-yb-embed='1'] and
   we hide every chrome element so the iframe content can fill the tab. */
body[data-yb-embed="1"] .sov-scarcity,
body[data-yb-embed="1"] nav.nav,
body[data-yb-embed="1"] .footer,
body[data-yb-embed="1"] footer.footer,
body[data-yb-embed="1"] [data-yb-workspace-footer],
body[data-yb-embed="1"] #yb-command-center,
body[data-yb-embed="1"] #yb-mobile-nav,
body[data-yb-embed="1"] .yb-capture-bar,
body[data-yb-embed="1"] .cmdk-trigger,
body[data-yb-embed="1"] .cmdk-overlay {
  display: none !important;
}
body[data-yb-embed="1"] main { padding-top: 0 !important; }
body[data-yb-embed="1"] .hero,
body[data-yb-embed="1"] .vlt-hero,
body[data-yb-embed="1"] .hm-hero,
body[data-yb-embed="1"] .tw-hero,
body[data-yb-embed="1"] .rsx-hero,
body[data-yb-embed="1"] .sov-hero { padding-top: 24px !important; border-top: 0 !important; }
body[data-yb-embed="1"] body { padding-bottom: 0 !important; }

/* ═══ Tab system (Portfolio + Research) ═════════════════════════════
   5-tab Portfolio (Quinn's Book / Score Mine / Signals / Compare /
   Trim or Hold) and 4-tab Research (Search / Vault / Tools / Smart Money)
   share this. Buttons + content pattern mirrors intelligence.html. */
.yb-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin: 0 0 24px;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  background: var(--surface);
  position: sticky;
  top: 30px; /* sit just below ticker tape */
  z-index: 40;
}
.yb-tabs::-webkit-scrollbar { display: none; }
.yb-tabs .tab {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-height: 44px;            /* spec: every touch target ≥44px */
  padding: 12px 18px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--ink-dim);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: color 140ms var(--ease), border-color 140ms var(--ease), background 140ms var(--ease);
}
.yb-tabs .tab:hover { color: var(--ink); background: var(--surface-elev); }
.yb-tabs .tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.yb-tabs .tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.yb-panel { display: none; min-height: 50vh; }
.yb-panel.active { display: block; animation: yb-panel-fade 240ms var(--ease); }
@keyframes yb-panel-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.yb-panel-iframe {
  width: 100%;
  border: 0;
  background: transparent;
  min-height: clamp(640px, 86vh, 1200px);
  display: block;
}
@media (max-width: 720px) {
  .yb-tabs { top: 30px; padding-left: 16px; padding-right: 16px; }
  .yb-tabs .tab { padding: 12px 14px; font-size: 10px; }
}

/* ═══ Mobile bottom nav (5 items, <768px) ═════════════════════════
   Replaces top nav-links on small screens per spec
   (Home · Portfolio · Research · Scenarios · Pro). 44px+ touch targets,
   gold active. */
.yb-mobile-nav { display: none; }
@media (max-width: 768px) {
  /* Top nav links collapse on mobile — bottom nav takes over */
  .nav .nav-links a:not(.nav-cta),
  .nav .yb-theme-toggle,
  .nav .nav-links a.nav-cta {
    display: none;
  }
  .nav .nav-inner { justify-content: center; }
  .nav-brand { font-size: 13px; }

  .yb-mobile-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 70;
    background: var(--surface-sunk);
    border-top: 1px solid var(--line-strong);
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
    backdrop-filter: saturate(1.1) blur(10px);
    -webkit-backdrop-filter: saturate(1.1) blur(10px);
  }
  .yb-mobile-nav .yb-mnav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 0; /* let repeat(5, 1fr) divide width equally — labels truncate via overflow */
    padding: 8px 4px;
    color: var(--ink-dim);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 0;
    overflow: hidden;
    transition: color 140ms var(--ease);
  }
  .yb-mobile-nav .yb-mnav-item.active { color: var(--accent); }
  .yb-mobile-nav .yb-mnav-item:hover { color: var(--ink); }
  .yb-mobile-nav .yb-mnav-label { line-height: 1; }
  /* Push site content above bottom nav */
  body { padding-bottom: 64px; }
  /* Lift the cmdK trigger so it's not stuck under the bottom nav */
  .cmdk-trigger { bottom: 80px !important; }
  /* Hide capture bar on mobile when bottom nav present (it covers nav) */
  .yb-capture-bar { bottom: 64px; }
}

/* ═══ Skeleton loader (gold shimmer) ═════════════════════════════
   Use class .yb-skeleton on any block while data is loading. Never a
   blank white flash, never a layout shift. Spec: gold shimmer, smooth. */
.yb-skeleton {
  position: relative;
  background: linear-gradient(
    90deg,
    var(--surface-sunk) 0%,
    color-mix(in srgb, var(--accent) 12%, var(--surface-sunk)) 50%,
    var(--surface-sunk) 100%
  );
  background-size: 200% 100%;
  animation: yb-skeleton-shimmer 1.4s ease-in-out infinite;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: transparent;
  user-select: none;
  pointer-events: none;
  min-height: 14px;
}
@keyframes yb-skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.yb-skeleton-row {
  height: 18px;
  margin: 6px 0;
}
.yb-skeleton-block {
  min-height: 80px;
  margin: 12px 0;
}
@media (prefers-reduced-motion: reduce) {
  .yb-skeleton { animation: none; background: var(--surface-sunk); }
}

/* ═══ Physical Layer ring + grid (Score Mine results) ════════════
   Visual snapshot: 5 segments. Gold = user owns ≥1 ticker in that layer,
   Dark = missing. Used in Portfolio → Score Mine after results render. */
.yb-layer-ring {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 24px auto;
}
.yb-layer-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.yb-layer-ring-seg {
  fill: none;
  stroke-width: 22;
  transition: stroke 240ms var(--ease);
}
.yb-layer-ring-seg.owned   { stroke: var(--accent); }
.yb-layer-ring-seg.missing { stroke: var(--line); }
.yb-layer-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}
.yb-layer-ring-pct {
  font-family: var(--mono);
  font-size: 36px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.yb-layer-ring-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}
.yb-layer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 18px 0;
}
.yb-layer-grid-cell {
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-sunk);
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-mute);
  transition: all 200ms var(--ease);
}
.yb-layer-grid-cell.owned {
  border-color: var(--accent);
  background: var(--accent-wash);
  color: var(--accent);
}
.yb-layer-grid-cell-count {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: inherit;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 540px) {
  .yb-layer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══ A-F Portfolio Grade Card ══════════════════════════════════
   Big gold letter for A/B, dimmed for C/D/F. Shareable summary line. */
.yb-grade {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
  margin: 18px 0;
}
.yb-grade.tier-a, .yb-grade.tier-b {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-wash), var(--surface-raised));
}
.yb-grade-letter {
  font-family: var(--sans);
  font-size: clamp(64px, 9vw, 96px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink-mute);
  flex-shrink: 0;
}
.yb-grade.tier-a .yb-grade-letter,
.yb-grade.tier-b .yb-grade-letter { color: var(--accent); }
.yb-grade-body { flex: 1; min-width: 0; }
.yb-grade-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.yb-grade-line {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
}
.yb-grade-line strong { color: var(--accent); font-weight: 600; }
.yb-grade-share {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: transparent;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.yb-grade-share:hover { background: var(--accent); color: var(--surface-sunk); }
.yb-grade-share[data-flash="1"] { background: var(--accent); color: var(--surface-sunk); }
@media (max-width: 540px) {
  .yb-grade { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; }
  .yb-grade-letter { font-size: 80px; }
}

/* ═══ Market clock strip + Memory bar (Portfolio top) ════════════ */
.pf-top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 0 10px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.pf-market-clock { color: var(--ink-dim); }
.pf-market-clock.is-open { color: var(--gain); }
.pf-market-clock.is-open::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gain);
  margin-right: 6px; vertical-align: 0;
  animation: pulse 2.4s var(--ease) infinite;
}
.pf-memory-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-dim);
}
.pf-memory-bar strong { color: var(--ink); }
.pf-memory-bar button {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  cursor: pointer;
}
.pf-memory-bar button:hover { border-color: var(--accent); }

/* ═══ Trim or Hold verdict card ════════════════════════════════ */
.tor-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: stretch;
  margin: 18px 0;
}
.tor-form input {
  flex: 1 1 280px;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tor-form input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-wash); }
.tor-form button {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 8px;
}
.tor-verdict {
  margin-top: 18px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink-mute);
  border-radius: 8px;
  background: var(--surface-raised);
}
.tor-verdict.hold { border-left-color: var(--gain); }
.tor-verdict.trim { border-left-color: var(--warn); }
.tor-verdict-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.tor-verdict-line {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.tor-verdict-line strong { color: var(--accent); }
.tor-verdict.hold .tor-verdict-line strong { color: var(--gain); }
.tor-verdict.trim .tor-verdict-line strong { color: var(--warn); }
.tor-verdict-detail {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-dim);
}
.tor-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.tor-stat {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.tor-stat strong { color: var(--ink); display: block; font-size: 13px; margin-top: 2px; }

/* ═══ Compare tab (yours vs Quinn's) ═══════════════════════════ */
.cmp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 18px 0;
}
@media (max-width: 720px) {
  .cmp-grid { grid-template-columns: 1fr; }
}
.cmp-col {
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
}
.cmp-col.you { border-left: 3px solid var(--ink); }
.cmp-col.quinn { border-left: 3px solid var(--accent); background: linear-gradient(180deg, var(--accent-wash), var(--surface-raised)); }
.cmp-col-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.cmp-col.quinn .cmp-col-eyebrow { color: var(--accent); }
.cmp-col-title {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.cmp-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.cmp-row:last-child { border-bottom: 0; }
.cmp-row strong { color: var(--ink); font-size: 14px; }
.cmp-row .gain { color: var(--gain); }
.cmp-row .loss { color: var(--loss); }
.cmp-summary {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  background: var(--accent-wash);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  font-family: var(--sans);
}
.cmp-summary strong { color: var(--accent); }

/* ═══ Live Connection indicator (Wave 8) ═══════════════════════
   Tiny dot in the nav. Gray = probing, gold = REST online, green
   pulse = Realtime connected. Hidden on mobile bottom-nav layout. */
.yb-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 8px 0 4px;
  border-radius: 999px;
  background: var(--ink-mute, #6b7280);
  flex-shrink: 0;
  align-self: center;
  transition: background 240ms var(--ease, ease-out), box-shadow 240ms var(--ease, ease-out);
}
.yb-live-dot.is-online { background: var(--accent, #d4a843); }
.yb-live-dot.is-live   {
  background: var(--gain, #22c55e);
  box-shadow: 0 0 0 0 rgba(34,197,94,0.55);
  animation: yb-live-dot-pulse 2.4s var(--ease, ease-out) infinite;
}
@keyframes yb-live-dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
@media (max-width: 768px) { .yb-live-dot { display: none; } }
@media (prefers-reduced-motion: reduce) { .yb-live-dot.is-live { animation: none; } }

/* ═══ Notifications bell (top-right of nav) ════════════════════ */
.yb-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  color: var(--ink-dim);
  cursor: pointer;
  margin-right: 6px;
  transition: color 140ms var(--ease), background 140ms var(--ease);
}
.yb-bell:hover { color: var(--accent); background: var(--surface-raised); }
.yb-bell-glyph { font-size: 10px; line-height: 1; }
.yb-bell.has-new .yb-bell-glyph { color: var(--accent); animation: pulse 2.4s var(--ease) infinite; }
.yb-bell-count {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--surface-sunk);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}
/* HTML [hidden] would normally do display:none, but our display:inline-flex
   above wins on equal specificity. Restore [hidden] semantics explicitly. */
.yb-bell-count[hidden] { display: none !important; }
@media (max-width: 768px) {
  .yb-bell { display: none; } /* mobile bottom nav covers this */
}

/* ═══ Pro tier lock overlay ════════════════════════════════════ */
[data-pro-required] { position: relative; }
[data-pro-required].yb-pro-locked {
  filter: grayscale(0.4);
}
[data-pro-required].yb-pro-locked > *:not(.yb-pro-lock) {
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
  filter: blur(2px);
}
.yb-pro-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(12,13,16,0.55), rgba(12,13,16,0.85));
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 5;
  border-radius: var(--radius);
  text-align: center;
}
.yb-pro-lock-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.yb-pro-lock-line {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  max-width: 32ch;
  line-height: 1.4;
}
.yb-pro-lock-cta {
  margin-top: 6px;
  padding: 9px 16px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--surface-sunk);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 0;
  border-radius: var(--radius);
}
.yb-pro-lock-cta:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--surface-sunk);
}

/* ═══ Daily brief widget (Portfolio top) ═══════════════════════ */
.yb-brief-card {
  margin: 14px 0 18px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--surface-sunk);
}
.yb-brief-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.yb-brief-headline {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 6px;
}
.yb-brief-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-dim);
}
.yb-brief-meta {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}

/* ═══ What changed since last week diff card ══════════════════ */
.yb-diff {
  margin: 14px 0;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.yb-diff-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-right: 8px;
}
.yb-diff-arrow {
  font-family: var(--mono);
  font-size: 22px;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.yb-diff-old, .yb-diff-new {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.yb-diff-new.up   { color: var(--gain); }
.yb-diff-new.down { color: var(--loss); }
.yb-diff-line { color: var(--ink-dim); font-size: 13px; line-height: 1.4; flex: 1 1 240px; min-width: 0; }

/* ═══ Generic modal · used by Bear Guard drill-down ═══════════ */
.yb-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
}
.yb-modal[hidden] { display: none; }
.yb-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: yb-fade-in 200ms var(--ease);
}
.yb-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  max-height: 86vh;
  overflow-y: auto;
  padding: 28px 28px 24px;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--accent);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.45);
  animation: yb-slide-up 280ms var(--ease);
}
@media (min-width: 720px) {
  .yb-modal { align-items: center; }
  .yb-modal-card { border-radius: 12px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55); }
}
@keyframes yb-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes yb-slide-up { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }
.yb-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  line-height: 1;
}
.yb-modal-close:hover { color: var(--ink); border-color: var(--line-strong); }
.yb-modal-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.yb-modal-title {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 18px;
}
.yb-modal-body { color: var(--ink-dim); line-height: 1.55; font-size: 14px; }
.yb-modal-section { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.yb-modal-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.yb-modal-section-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.yb-modal-line {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  line-height: 1.45;
  margin-bottom: 10px;
}
.yb-modal-list { margin: 0; padding-left: 18px; line-height: 1.6; color: var(--ink); font-size: 14px; }
.yb-modal-list li { margin-bottom: 4px; }
.yb-modal-meta {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.yb-modal-meta strong { color: var(--accent); font-weight: 600; }

/* ═══ PWA install banner ════════════════════════════════════════ */
.yb-pwa-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 80px; /* lift above mobile bottom nav */
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface-raised);
  border: 1px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  transform: translateY(140%);
  transition: transform 320ms var(--ease);
}
.yb-pwa-banner.visible { transform: none; }
.yb-pwa-text { flex: 1; min-width: 0; line-height: 1.4; }
.yb-pwa-text strong { color: var(--accent); font-weight: 600; display: block; }
.yb-pwa-add {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--surface-sunk);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
}
.yb-pwa-add:hover { background: var(--accent-soft); }
.yb-pwa-x {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}
.yb-pwa-x:hover { color: var(--ink); }
@media (min-width: 720px) {
  .yb-pwa-banner { bottom: 24px; left: auto; right: 24px; max-width: 380px; }
}

/* ═══ Tier-3 tool cards (Sleeve Allocator · Watchlist · Sizer) ════ */
.yb-tool-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
}
.yb-tool-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.yb-tool-title {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.yb-tool-sub {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.45;
  margin-bottom: 12px;
}
.yb-tool-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: stretch;
}
.yb-tool-form input,
.yb-tool-form .yb-tool-input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.yb-tool-form input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 2px var(--accent-wash); }
.yb-tool-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.yb-tool-result {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.yb-tool-stat-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.yb-tool-stat {
  flex: 1 1 140px;
  min-width: 140px;
}
.yb-tool-stat span {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.yb-tool-stat strong {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.yb-tool-arrow {
  font-family: var(--mono);
  font-size: 22px;
  color: var(--accent);
  flex: 0 0 auto;
}
.yb-tool-line {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}
.yb-tool-line strong { font-weight: 600; }
.yb-tool-meta {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.yb-tool-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Watchlist pills */
.yb-wl-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.yb-wl-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
}
.yb-wl-pill a {
  color: inherit;
  text-decoration: none;
  border-bottom: 0;
  letter-spacing: 0.02em;
}
.yb-wl-pill a:hover { color: var(--accent); }
.yb-wl-pill button {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-mute);
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}
.yb-wl-pill button:hover { color: var(--loss); border-color: var(--loss); }

/* ═══ Reduced motion ═════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .yb-heartbeat-dot { animation: none !important; }
}
