/* ── TrueTail: Ink & Copper ───────────────────────────────────────────────
   Deep teal-ink base, molten copper accent, bone-white text. No green, no red -
   results read as copper (won) / gunmetal (lost) / bone (push), never traffic-
   light colors. THE FOX (brand mark, F:\Wynfall\TrueTail-Brain\Brand) is the
   logo/nav/loader identity as of brand-fox1; the comet-tail motif (bright head,
   fading tail) remains the language for sparklines, seal stamps, and empty
   states - it was never the brand mark, just the house "verify" visual idiom. */
:root {
  --bg: #0A1214;
  --bg-panel: #10191C;
  --bg-panel-2: #142124;
  --line: rgba(200, 230, 235, 0.08);
  --line-strong: rgba(200, 230, 235, 0.16);

  --accent: #D97B4A;            /* molten copper base */
  --accent-highlight: #E89A5E;  /* copper highlight */
  --accent-dim: rgba(217, 123, 74, 0.14);
  --accent-gradient: linear-gradient(180deg, var(--accent-highlight) 0%, var(--accent) 100%);

  --text: #F1EDE6;              /* bone-white */
  --text-dim: #B9C7CA;
  --text-faint: #7E959B;        /* steel-cyan, secondary text */

  --gunmetal: #5A6468;          /* LOST */
  --bone: #F1EDE6;              /* PUSH */
  --copper: var(--accent);      /* WON */

  --red: var(--gunmetal);       /* legacy var name kept - no red anywhere in this theme */
  --green: var(--accent);       /* legacy var name kept - no green anywhere in this theme */
  --amber: #E89A5E;

  /* Racing-form editorial type system - deliberately distinct from the Inter/JetBrains/Clash
     stack used elsewhere in the Wynfall/Arcbound house style. Display = Instrument Serif
     (headings, hero stat numerals, italic for editorial accents like the tagline). Body/UI =
     Instrument Sans. Numbers/odds/units/tables = IBM Plex Mono, always. All three self-hosted,
     SIL Open Font License. */
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
  --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  /* The comet-tail mark, inlined as an SVG data URI so it can be reused as a CSS background
     (nav wordmark glyph, empty-state accent) without a network request. Three tapered, fading
     tail segments streaking up into a checkmark head - copper on transparent. */
  --comet-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cdefs%3E%3ClinearGradient id='t' x1='0' y1='1' x2='1' y2='0'%3E%3Cstop offset='0%25' stop-color='%23D97B4A' stop-opacity='0'/%3E%3Cstop offset='60%25' stop-color='%23D97B4A' stop-opacity='0.6'/%3E%3Cstop offset='100%25' stop-color='%23E89A5E' stop-opacity='1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M6 52 L20 40' stroke='url(%23t)' stroke-width='5' stroke-linecap='round' fill='none' opacity='0.35'/%3E%3Cpath d='M14 44 L30 30' stroke='url(%23t)' stroke-width='5.5' stroke-linecap='round' fill='none' opacity='0.6'/%3E%3Cpath d='M22 36 L40 20' stroke='url(%23t)' stroke-width='6' stroke-linecap='round' fill='none' opacity='0.85'/%3E%3Cpath d='M22 40 L30 48 L52 12' stroke='%23E89A5E' stroke-width='6' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
}

/* Self-hosted, SIL Open Font License. Instrument Serif (Rodrigo Fuenzalida) - a high-contrast
   editorial serif used for headings and oversized stat numerals; italic used for the racing-
   form-style tagline/accents. Instrument Sans (same foundry) for body/UI, variable weight axis
   400-700. IBM Plex Mono (IBM) for every number/odd/unit/table figure, without exception. */
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/instrument-sans-var.woff2') format('woff2-variations'), url('/fonts/instrument-sans-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/ibm-plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/ibm-plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/ibm-plex-mono-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  background-image: radial-gradient(ellipse 900px 500px at 15% -10%, rgba(217,123,74,0.05), transparent 60%);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
}

a { color: var(--accent-highlight); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--accent-highlight); }

.label {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--text-faint);
}

h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: 0.005em; }

/* Editorial header signature: left-weighted heading with a hairline ledger rule extending
   the rest of the row width - "the racing form, reborn". Used on every page header. */
.page-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 4px;
}
.page-head h1 { margin-bottom: 0; white-space: nowrap; }
.page-head .ledger-rule { flex: 1; height: 1px; background: var(--line-strong); transform: translateY(-2px); }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg) 140%);
  flex-wrap: wrap;
  gap: 10px;
}

/* Nav brand: THE FOX horizontal lockup (mark + wordmark), inlined as SVG in header.ejs so the
   l-flick tail can animate. Swap target if the owner ever wants the no-flick wordmark variant:
   the <path class="brand-flick"> inside the inlined SVG in views/partials/header.ejs. */
.brand-link {
  display: inline-flex;
  align-items: center;
  transition: transform 150ms ease;
}
.brand-link:hover { transform: translateY(-1px); }
.brand-group { display: flex; align-items: center; min-height: 48px; }
.brand-lockup { height: 46px; width: auto; display: block; }
/* At topbar scale the wordmark's tail-flick reads as a smudge - hide it here only
   (the full lockup with the flick still renders at hero/OG sizes). */
.topbar .brand-flick { display: none; }
.topbar .tagline {
  color: var(--text-faint);
  font-size: 15px;
  font-family: var(--display);
  font-style: italic;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  line-height: 1;
  white-space: nowrap;
}
@media (max-width: 560px) { .topbar .tagline { display: none; } }

.topbar nav a {
  color: var(--text-dim);
  margin-left: 18px;
  font-size: 13px;
  font-family: var(--mono);
}
.topbar nav a:hover { color: var(--accent-highlight); text-decoration: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 32px 24px 80px; }
.wrap-narrow { max-width: 460px; margin: 0 auto; padding: 60px 24px; }

h1 { font-size: 34px; margin: 0 0 6px; color: var(--text); }
h2 { font-size: 21px; margin: 0 0 14px; color: var(--text); }
.sub { color: var(--text-faint); margin: 0 0 26px; font-size: 14px; font-family: var(--display); font-style: italic; }

/* Thin ledger rule between rows, used in place of heavy card borders where a list reads
   better as a form/ledger than as boxed panels. */
.ledger-list > * { border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 10px; }
.ledger-list > *:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 18px;
  position: relative;
}
.panel-tight { padding: 14px 18px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 720px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Stat tiles: thin top ledger rule instead of a full boxed border, oversized serif numeral
   as the hero figure (editorial "racing form" read) - the label is the only mono/uppercase
   note beneath it, everything else is whitespace. */
.stat { border: none; border-top: 1px solid var(--line-strong); border-radius: 0; padding: 14px 2px 0; background: transparent; }
.stat .num { font-family: var(--display); font-size: 40px; line-height: 1.05; color: var(--accent-highlight); font-variant-numeric: oldstyle-nums; }
.stat .num.neg { color: var(--gunmetal); }
.stat .label { margin-top: 6px; }

label { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin: 14px 0 6px; }
label:first-child { margin-top: 0; }

input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=url], textarea, select {
  width: 100%;
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  padding: 9px 11px;
  font-size: 14px;
  font-family: var(--sans);
}
textarea { resize: vertical; min-height: 70px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }

/* numbers/odds/units always mono, even inside otherwise-sans inputs */
input[name="units"], input[name="odds_american"], input[name="unit_value"], input[name="bankroll"],
input[name="line"], input[name$="_units"], input[name$="_cap_units"] { font-family: var(--mono); }

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 9px 18px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: linear-gradient(180deg, rgba(232,154,94,0.18), rgba(217,123,74,0.10));
  color: var(--accent-highlight);
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: linear-gradient(180deg, rgba(232,154,94,0.30), rgba(217,123,74,0.18)); text-decoration: none; }
.btn-ghost { border-color: var(--line-strong); background: transparent; color: var(--text-dim); }
.btn-ghost:hover { border-color: var(--text-faint); background: transparent; }
.btn-danger { border-color: var(--gunmetal); color: var(--gunmetal); background: rgba(90,100,104,0.12); }
.btn-sm { padding: 5px 11px; font-size: 11px; }

form { margin: 0; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 9px 11px; border-bottom: 1px solid var(--line); }
th { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); font-weight: 400; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(200,230,235,0.02); }

/* numbers/odds/units in tables always mono */
td.mono, .mono { font-family: var(--mono); }

.badge { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 8px; border-radius: 4px; border: 1px solid var(--line-strong); color: var(--text-faint); }
.badge-pending { color: var(--amber); border-color: var(--amber); }
.badge-won { color: var(--copper); border-color: var(--copper); }
.badge-lost { color: var(--gunmetal); border-color: var(--gunmetal); }
.badge-push, .badge-void { color: var(--bone); border-color: rgba(241,237,230,0.4); }

/* ── Seal stamps: graded results get a circular pressed-seal badge instead of
   a flat pill. Engraved ring + faint radial texture + slight rotation, with a
   300ms press-in on first paint (respects reduced-motion). */
.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border-width: 2px;
  transform: rotate(-4deg);
  padding: 7px 10px;
  background-image: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.10), transparent 60%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 1px 2px rgba(0,0,0,0.4);
  animation: seal-press 300ms ease-out;
}
.seal-sm { padding: 3px 7px; font-size: 9px; }
.seal.badge-won { box-shadow: inset 0 0 0 1px rgba(232,154,94,0.25), 0 1px 4px rgba(217,123,74,0.25); }
.seal.badge-lost { box-shadow: inset 0 0 0 1px rgba(90,100,104,0.3), 0 1px 4px rgba(0,0,0,0.3); }
.seal.badge-push, .seal.badge-void { box-shadow: inset 0 0 0 1px rgba(241,237,230,0.15), 0 1px 4px rgba(0,0,0,0.3); }

@keyframes seal-press {
  0% { transform: rotate(-4deg) scale(1.6); opacity: 0; }
  60% { transform: rotate(-4deg) scale(0.94); opacity: 1; }
  100% { transform: rotate(-4deg) scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .seal { animation: none; }
}

.flash { font-family: var(--mono); font-size: 13px; padding: 10px 14px; border-radius: 6px; margin-bottom: 20px; }
.flash-error { color: var(--gunmetal); border: 1px solid var(--gunmetal); background: rgba(90,100,104,0.10); }
.flash-ok { color: var(--accent-highlight); border: 1px solid var(--accent); background: rgba(217,123,74,0.08); }
.flash-warn { color: var(--amber); border: 1px solid var(--amber); background: rgba(232,154,94,0.08); }

.leg-row { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 90px 1fr auto; gap: 8px; align-items: end; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.leg-row label { margin: 0 0 4px; }
@media (max-width: 900px) { .leg-row { grid-template-columns: 1fr 1fr; } }

.muted { color: var(--text-faint); font-size: 12px; }
.row-actions { display: flex; gap: 8px; }
.empty { color: var(--text-faint); font-size: 13px; padding: 20px 0; text-align: center; }
.empty.comet-empty::before {
  content: '';
  display: block;
  width: 40px; height: 40px;
  margin: 0 auto 8px;
  background-image: var(--comet-mark);
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.5;
}

.footer-line { color: var(--text-faint); font-size: 11.5px; text-align: center; padding: 24px 16px 8px; font-family: var(--mono); }
.sample-badge { color: var(--amber); border-color: var(--amber); }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.checkbox-row input { width: auto; }
.checkbox-row label { margin: 0; }

/* Comet sparkline head: leading point brighter than the fading gradient tail. */
.comet-head { fill: var(--accent-highlight); filter: drop-shadow(0 0 3px rgba(232,154,94,0.8)); }

/* ── Onboarding (4-step tailored setup) ─────────────────────────────────── */
.onboarding-steps { display: flex; gap: 6px; margin-bottom: 22px; }
.onboarding-steps .step-dot {
  flex: 1; height: 4px; border-radius: 2px; background: var(--line-strong);
}
.onboarding-steps .step-dot.done, .onboarding-steps .step-dot.active { background: var(--accent-gradient); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 10px 0 6px; }
.choice-card {
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px;
  background: var(--bg-panel-2); cursor: pointer; font-size: 12.5px; display: flex; align-items: flex-start; gap: 8px;
  word-break: break-word; line-height: 1.35;
}
.choice-card input { margin-top: 2px; flex-shrink: 0; }
.choice-card:has(input:checked) { border-color: var(--accent); background: var(--accent-dim); color: var(--accent-highlight); }
.choice-card input { width: auto; margin: 0; }
.choice-group-label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin: 18px 0 4px; }
.choice-group-label:first-child { margin-top: 0; }

/* engraved texture strip used behind panel headings on graded/report surfaces */
.engraved-rule { height: 1px; margin: 14px 0; background: linear-gradient(90deg, transparent, var(--line-strong) 20%, var(--line-strong) 80%, transparent); }

/* ── THE ENGINES wave: orchestrated page-load motion, one signature per screen ────────────
   Header ledger-rule draws left-to-right on first paint; stat numerals "count-settle" (a
   brief scale/opacity settle, not a numeric tween - simple, once); Best Bets cards enter with
   a short staggered rise. All once-only (animation runs on load, not on every interaction),
   and all respect prefers-reduced-motion. */
.page-head .ledger-rule {
  animation: ledger-draw 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: left center;
}
@keyframes ledger-draw {
  0% { transform: scaleX(0) translateY(-2px); opacity: 0; }
  100% { transform: scaleX(1) translateY(-2px); opacity: 1; }
}
.stat .num { animation: stat-settle 380ms cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes stat-settle {
  0% { opacity: 0; transform: translateY(6px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.ev-stagger .ev-card {
  animation: card-rise 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}
@keyframes card-rise {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .page-head .ledger-rule, .stat .num, .ev-stagger .ev-card { animation: none; }
}

/* Best Bets +EV card layout */
.ev-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ev-num-wrap { text-align: right; flex-shrink: 0; }
.ev-num { font-size: 32px; color: var(--accent-highlight); }
.ev-card-line { margin-top: 8px; font-size: 13px; color: var(--text-dim); }
.show-math { margin-top: 10px; font-family: var(--mono); font-size: 12px; }
.show-math summary { cursor: pointer; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; font-size: 11px; }
.show-math summary:hover { color: var(--accent-highlight); }
.show-math table { margin-top: 4px; }

/* THE FOX loader (brand-fox1): fox-mark-small draws in as a stroke outline (tail-first read,
   using the SVG pathLength=1000 trick so stroke-dasharray math doesn't need the real path
   length), then cross-fades to the flat fill - the "verified/settled" beat - and loops for an
   indefinite loading state, per Motion-Identity.md section 1/4. */
.fox-loader { display: inline-flex; align-items: center; justify-content: center; padding: 30px; }
.fox-loader svg { width: 64px; height: 64px; }
.fox-loader .fox-loader-stroke {
  fill: none; stroke: var(--accent-highlight); stroke-width: 26; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
  filter: drop-shadow(0 0 3px rgba(232,154,94,0.6));
  animation: fox-draw 1600ms ease-in-out infinite;
}
.fox-loader .fox-loader-fill {
  fill: var(--accent); opacity: 0;
  animation: fox-fill 1600ms ease-in-out infinite;
}
@keyframes fox-draw {
  0% { stroke-dashoffset: 1000; opacity: 1; }
  55% { stroke-dashoffset: 0; opacity: 1; }
  68% { opacity: 0; }
  100% { opacity: 0; stroke-dashoffset: -1000; }
}
@keyframes fox-fill {
  0%, 58% { opacity: 0; }
  70%, 88% { opacity: 1; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fox-loader .fox-loader-stroke { display: none; }
  .fox-loader .fox-loader-fill { opacity: 1; animation: none; }
}

/* THE FOX assembly moment (brand-fox1, Motion-Identity.md section 2): a simplified but
   spec-faithful version - the shipped lockup SVG isn't split per-glyph, so the wordmark fades+
   rises as one group rather than per-character, the fox mark then cross-fades in from 60% scale,
   and the l-flick tail settles last with a small overshoot-and-settle. ~800ms total, one-shot.
   Shared by the login stacked lockup and the landing page's horizontal hero lockup - both
   contain a .lockup-word-wrap / .lockup-fox-wrap / .lockup-flick, scoped under .assembly-lockup. */
.assembly-lockup svg { width: 100%; height: auto; display: block; }
.assembly-lockup .lockup-word-wrap {
  opacity: 0; transform: translateY(8px);
  animation: assembly-word 300ms cubic-bezier(0.22, 1, 0.36, 1) 0ms both;
}
.assembly-lockup .lockup-fox-wrap {
  opacity: 0; transform: scale(0.6);
  transform-box: fill-box; transform-origin: center;
  animation: assembly-fox 350ms cubic-bezier(0.34, 1.56, 0.64, 1) 280ms both;
}
.assembly-lockup .lockup-flick {
  opacity: 0; transform: scale(0.7);
  transform-box: fill-box; transform-origin: center;
  animation: assembly-flick 200ms cubic-bezier(0.34, 1.56, 0.64, 1) 650ms both;
}
@keyframes assembly-word {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes assembly-fox {
  0% { opacity: 0; transform: scale(0.6); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes assembly-flick {
  0% { opacity: 0; transform: scale(0.7); }
  70% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .assembly-lockup .lockup-word-wrap, .assembly-lockup .lockup-fox-wrap, .assembly-lockup .lockup-flick {
    animation: none !important; opacity: 1; transform: none;
  }
}
.login-lockup { max-width: 260px; margin: 0 auto 22px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Public landing page v2 (landing-fox2) ─────────────────────────────────────────────────
   Signature: THE TAIL-THREAD - one continuous copper SVG path running from the hero fox's
   tail down through every section, drawn progressively via scroll (public/js/landing-thread.js,
   vanilla, no deps). Editorial asymmetry throughout: no centered-everything, no floating blobs,
   no purple. Everything below is scoped to .landing-thread-scope so it never leaks into the
   authenticated app screens. */
.landing-thread-scope { position: relative; max-width: 1080px; margin: 0 auto; padding: 0 24px; overflow: hidden; }

.thread-layer { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 1080px; height: 100%; z-index: 0; pointer-events: none; }
.thread-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.thread-path { opacity: 0.5; }
.thread-mobile { display: none; }
@media (max-width: 760px) {
  .thread-desktop { display: none; }
  .thread-mobile { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .thread-path { stroke-dashoffset: 0 !important; }
}

/* ── Hero: the fox owns the moment - big mark left-of-center, headline column right, on
   desktop; centered stack on mobile. Ambient constellation + bloom stay inside the fox's own
   box (the hard-cutoff bloom bug is a known class - never repeat it: bloom falloff completes
   well inside its container). */
.landing-hero2 {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(280px, 46vh) 1fr; align-items: center; gap: 48px;
  min-height: 86vh; padding: 90px 0 40px;
}
.hero-fox-col { position: relative; display: flex; flex-direction: column; align-items: center; justify-self: start; }
.hero-fox-lockup { width: 100%; max-width: 420px; position: relative; z-index: 2; }
.hero-fox-lockup svg { width: 100%; height: auto; display: block; }
.hero-bloom {
  position: absolute; inset: -10% -10% -10% -10%; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(217,123,74,0.16), rgba(217,123,74,0.05) 55%, transparent 78%);
}
.hero-constellation { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-constellation span {
  position: absolute; width: 2.5px; height: 2.5px; border-radius: 50%;
  background: var(--accent-highlight); opacity: 0.35;
  animation: constellation-drift 14s ease-in-out infinite;
}
.hero-constellation span:nth-child(1) { top: 12%; left: 18%; animation-delay: 0s; }
.hero-constellation span:nth-child(2) { top: 68%; left: 8%; animation-delay: 3.2s; }
.hero-constellation span:nth-child(3) { top: 22%; left: 82%; animation-delay: 6.4s; }
.hero-constellation span:nth-child(4) { top: 78%; left: 74%; animation-delay: 9.6s; }
@keyframes constellation-drift {
  0%, 100% { transform: translate(0, 0); opacity: 0.25; }
  50% { transform: translate(3px, -4px); opacity: 0.5; }
}
@media (prefers-reduced-motion: reduce) { .hero-constellation span { animation: none; } }

.hero-wordmark-small { margin-top: 14px; display: flex; align-items: center; justify-content: center; opacity: 0; animation: hero-reveal 420ms cubic-bezier(0.22,1,0.36,1) 900ms both; }
.hero-wordmark-small svg { display: none; }
.hero-wordmark-text { font-family: var(--display); font-size: 18px; letter-spacing: 0.03em; color: var(--text-dim); }

.hero-copy-col { position: relative; z-index: 1; justify-self: start; max-width: 560px; }
.hero-h1 { display: flex; flex-direction: column; margin: 0 0 14px; }
.hero-h1 .hero-line {
  font-family: var(--display); font-size: clamp(34px, 5vw, 58px); line-height: 1.08; color: var(--text);
  opacity: 0; transform: translateY(14px);
  animation: hero-reveal 420ms cubic-bezier(0.22,1,0.36,1) both;
}
.hero-line-1 { animation-delay: 950ms; }
.hero-line-2 { animation-delay: 1030ms; }
.hero-tagline {
  font-family: var(--display); font-style: italic; color: var(--accent-highlight);
  font-size: clamp(18px, 2vw, 22px); margin: 0 0 16px;
}
.hero-sub { color: var(--text-dim); font-size: 15.5px; max-width: 480px; margin: 0 0 26px; }
.hero-reveal { opacity: 0; transform: translateY(10px); animation: hero-reveal 380ms cubic-bezier(0.22,1,0.36,1) 1140ms both; }
.hero-sub.hero-reveal { animation-delay: 1200ms; }
.hero-cta-row.hero-reveal { animation-delay: 1260ms; }
@keyframes hero-reveal {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}
.hero-cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.btn-hero-cta { font-size: 13px; padding: 12px 24px; }
.hero-cta-quiet { color: var(--text-faint); font-family: var(--mono); font-size: 13px; }
.hero-cta-quiet:hover { color: var(--accent-highlight); }

/* Tail-first load: fox body cross-fades in, tail settles last with a slight overshoot -
   approximation of the assembly-lockup pattern (filled paths, no reliable stroke-trace). */
.hero-fox-lockup .hero-fox-body { opacity: 0; transform-box: fill-box; transform-origin: center; animation: fox-body-in 380ms cubic-bezier(0.22,1,0.36,1) 80ms both; }
.hero-fox-lockup .hero-fox-tail { opacity: 0; transform-box: fill-box; transform-origin: 70% 10%; transform: translate(6px, -10px) scale(0.94); animation: fox-tail-settle 420ms cubic-bezier(0.34,1.56,0.64,1) 360ms both; }
.hero-fox-lockup .hero-fox-tail-hi { opacity: 0; transform-box: fill-box; transform-origin: 70% 10%; transform: translate(6px, -10px) scale(0.94); animation: fox-tail-settle 420ms cubic-bezier(0.34,1.56,0.64,1) 420ms both; }
@keyframes fox-body-in { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes fox-tail-settle {
  0% { opacity: 0; transform: translate(6px, -10px) scale(0.94); }
  70% { opacity: 1; transform: translate(-1px, 2px) scale(1.02); }
  100% { opacity: 1; transform: translate(0, 0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-h1 .hero-line, .hero-reveal, .hero-wordmark-small, .hero-fox-lockup .hero-fox-body, .hero-fox-lockup .hero-fox-tail, .hero-fox-lockup .hero-fox-tail-hi {
    animation: none !important; opacity: 1; transform: none;
  }
}

@media (max-width: 900px) {
  .landing-hero2 { grid-template-columns: 1fr; text-align: center; min-height: 0; padding: 56px 0 30px; }
  .hero-fox-col { justify-self: center; margin-bottom: 8px; }
  .hero-fox-lockup { max-width: 220px; }
  .hero-copy-col { justify-self: center; max-width: 480px; }
  .hero-h1 { align-items: center; }
  .hero-cta-row { justify-content: center; }
}

/* ── Proof sections: alternating editorial rows along the thread, ledger hairline top. ── */
.proof-row {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center;
  max-width: 920px; margin: 0 auto; padding: 64px 0;
}
.proof-row-reverse { grid-template-columns: 1fr 220px; }
.proof-row-reverse .proof-visual { order: 2; }
.proof-row-reverse .proof-copy { order: 1; }
.proof-visual { text-align: center; }
.proof-copy .engraved-rule { margin: 0 0 12px; }
.proof-copy h3 { font-size: 19px; margin: 0 0 8px; }
.proof-copy p { color: var(--text-dim); font-size: 14.5px; line-height: 1.55; margin: 0; max-width: 460px; }
.proof-row-reverse .proof-copy p { margin-left: auto; }
@media (max-width: 720px) {
  .proof-row, .proof-row-reverse { grid-template-columns: 1fr; text-align: center; padding: 40px 0; gap: 18px; }
  .proof-row-reverse .proof-visual, .proof-row-reverse .proof-copy { order: initial; }
  .proof-copy p, .proof-row-reverse .proof-copy p { margin: 0 auto; }
}

.proof-num-big { font-family: var(--display); font-size: 56px; color: var(--accent-highlight); line-height: 1; }
.proof-math {
  font-family: var(--mono); font-size: 12px; color: var(--text-faint); margin-top: 10px;
  opacity: 0; transform: translateY(4px);
}
[data-proof].in-view .proof-math { opacity: 1; transform: translateY(0); transition: opacity 400ms cubic-bezier(0.22,1,0.36,1) 650ms, transform 400ms cubic-bezier(0.22,1,0.36,1) 650ms; }

.comet-sparkline { width: 200px; height: 72px; }
.comet-tail { stroke-dasharray: 260; stroke-dashoffset: 260; }
[data-proof].in-view .comet-tail { transition: stroke-dashoffset 600ms cubic-bezier(0.22,1,0.36,1); stroke-dashoffset: 0; }
.comet-head { fill: var(--accent-highlight); opacity: 0; filter: drop-shadow(0 0 4px rgba(232,154,94,0.8)); }
[data-proof].in-view .comet-head { transition: opacity 200ms ease 560ms; opacity: 1; }
.proof-num-label { display: block; margin-top: 4px; font-family: var(--display); font-size: 22px; color: var(--accent-highlight); }

.seal.seal-big { font-family: var(--display); font-size: 22px; padding: 20px 26px; animation: none; opacity: 0; transform: rotate(-4deg) scale(1.5); }
[data-proof].in-view .seal.seal-big { animation: seal-press 380ms cubic-bezier(0.22,1,0.36,1) both; }
@media (prefers-reduced-motion: reduce) {
  .seal-big { opacity: 1 !important; transform: rotate(-4deg) scale(1) !important; }
}

/* ── How it works: racing-form numbered strip. ── */
.how-strip {
  position: relative; z-index: 1; max-width: 920px; margin: 20px auto 10px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  border-top: 1px solid var(--line-strong); padding-top: 32px;
}
.how-step { text-align: left; }
.how-num { font-family: var(--display); font-size: 44px; color: var(--accent-highlight); line-height: 1; margin-bottom: 6px; }
.how-step p { color: var(--text-dim); font-size: 15px; margin: 0; }
@media (max-width: 720px) { .how-strip { grid-template-columns: 1fr; text-align: center; } .how-step { text-align: center; } }

/* ── Waitlist: the thread's destination, a small fox settled beside the form. ── */
.landing-status {
  position: relative; z-index: 1;
  max-width: 460px; margin: 60px auto 60px; padding: 30px 24px 26px; text-align: center;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg-panel);
}
.thread-resolve { display: flex; justify-content: center; margin-bottom: 10px; }
.waitlist-fox { width: 34px; height: 34px; opacity: 0.9; }
.landing-status .status-line { font-family: var(--mono); font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.landing-status form { display: flex; gap: 8px; flex-wrap: wrap; }
.landing-status input[type="email"] { flex: 1; min-width: 160px; margin: 0; }
@media (max-width: 480px) {
  .landing-status form { flex-direction: column; }
  .landing-status input[type="email"] { min-width: 0; }
}
.landing-status .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.landing-status .waitlist-ok { color: var(--accent-highlight); font-family: var(--mono); font-size: 13px; }
.landing-status .waitlist-invite { margin-top: 14px; font-size: 12.5px; color: var(--text-faint); }
.waitlist-fox.fox-nod { animation: fox-nod 500ms cubic-bezier(0.22,1,0.36,1); }
@keyframes fox-nod {
  0% { transform: translateY(0) rotate(0deg); }
  35% { transform: translateY(2px) rotate(-3deg); }
  70% { transform: translateY(0) rotate(1deg); }
  100% { transform: translateY(0) rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) { .waitlist-fox.fox-nod { animation: none; } }

.landing-footer {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--text-faint); font-size: 11.5px; font-family: var(--mono);
  padding: 8px 16px 0;
}
.landing-footer svg { height: 14px; width: auto; color: var(--text-faint); }

/* ── Ease wave: tooltips, tail confirm sheet, thread onboarding, guide page ──────────── */

/* Plain-English jargon tooltip: a dotted-underline "?" badge, CSS-only popover on
   hover/focus (attr(data-tip) content) so it works without JS and is keyboard-reachable. */
.tt-tip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%;
  border: 1px dotted var(--accent-highlight); color: var(--accent-highlight);
  font-size: 10px; font-family: var(--mono); cursor: help; position: relative;
  margin-left: 3px; vertical-align: middle;
}
.tt-tip:hover::after, .tt-tip:focus::after {
  content: attr(data-tip);
  position: absolute; left: 50%; bottom: 130%; transform: translateX(-50%);
  width: 220px; max-width: 60vw; padding: 8px 10px; border-radius: 6px;
  background: var(--bg-panel-2); border: 1px solid var(--line-strong);
  color: var(--text-dim); font-size: 11.5px; font-family: var(--sans);
  line-height: 1.4; white-space: normal; z-index: 40;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

/* Tail confirm sheet: a small centered modal, same panel language as everywhere else. */
.tail-sheet-overlay {
  position: fixed; inset: 0; background: rgba(6,10,11,0.72); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px;
}
.tail-sheet { max-width: 360px; width: 100%; }
.tail-btn { display: inline-block; }
.tailing-count { font-size: 11px; color: var(--text-faint); font-family: var(--mono); margin-left: 6px; }

/* ── Onboarding redesign: the thread draws one segment per completed step, resolving
   into the fox mark at finish. Reuses the landing's thread language, scoped to onboarding. */
.thread-progress { display: flex; align-items: center; gap: 4px; margin-bottom: 26px; }
.thread-progress .thread-seg {
  flex: 1; height: 3px; border-radius: 2px; background: var(--line-strong);
  position: relative; overflow: hidden;
}
.thread-progress .thread-seg::after {
  content: ''; position: absolute; inset: 0; background: var(--accent-gradient);
  transform: scaleX(0); transform-origin: left; transition: transform 500ms cubic-bezier(0.22,1,0.36,1);
}
.thread-progress .thread-seg.done::after, .thread-progress .thread-seg.active::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .thread-progress .thread-seg::after { transition: none; } }

.onboarding-question { font-family: var(--display); font-size: 26px; margin: 0 0 6px; }
.onboarding-micro { color: var(--text-dim); font-size: 13.5px; margin: 0 0 18px; }
.choice-card-lg {
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 16px 14px;
  background: var(--bg-panel-2); cursor: pointer; font-size: 14px;
  display: flex; align-items: center; gap: 10px; min-height: 52px; transition: border-color 150ms, background 150ms;
}
.choice-card-lg:has(input:checked) { border-color: var(--accent); background: var(--accent-dim); color: var(--accent-highlight); }
.choice-card-lg input { width: auto; margin: 0; accent-color: var(--accent); }
.onboarding-finish-fox { width: 64px; height: 64px; margin: 0 auto 14px; display: block; opacity: 0; }
.onboarding-finish-fox.show { opacity: 1; animation: fox-nod 600ms cubic-bezier(0.22,1,0.36,1); }
@media (prefers-reduced-motion: reduce) { .onboarding-finish-fox.show { animation: none; } }

/* ── Interior elevation wave (interior-wave5): editorial compositions replacing card grids on
   the dashboard, Best Bets, slip detail, capper cards, and leaderboard. Shared primitives below;
   per-screen rules follow in their own blocks. ───────────────────────────────────────────── */

/* Folio numbers: small mono section numerals, ledger-catalog read, never decorative. */
.folio { font-family: var(--mono); font-size: 11px; color: var(--text-faint); letter-spacing: 0.04em; }

/* Numeric micro-rules: right-aligned, decimal-tabular number columns. */
.num-col { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.num-pos { color: var(--accent-highlight); }
.num-neg { color: var(--gunmetal); }
.num-ctx { color: var(--text-faint); font-size: 0.85em; }

/* The evidence thread: a thin copper rule that runs through a claim's supporting evidence,
   drawn once (400ms) on data resolve, then sits as a quiet structural rule. Reduced-motion:
   static (no draw animation, just present). */
.evidence-thread { position: relative; }
.evidence-thread::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--accent-gradient); border-radius: 1px;
  transform: scaleY(0); transform-origin: top;
  animation: thread-draw 400ms cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes thread-draw { 0% { transform: scaleY(0); opacity: 0.3; } 100% { transform: scaleY(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .evidence-thread::before { animation: none; transform: scaleY(1); } }
.evidence-thread-h { position: relative; padding-top: 10px; }
.evidence-thread-h::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent-gradient); border-radius: 1px;
  transform: scaleX(0); transform-origin: left;
  animation: thread-draw-h 400ms cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes thread-draw-h { 0% { transform: scaleX(0); opacity: 0.3; } 100% { transform: scaleX(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .evidence-thread-h::before { animation: none; transform: scaleX(1); } }

/* VERIFIED seal: small copper stamp, appears only when n>=30 AND CLV>0 (capper cards). */
.verified-seal {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent-highlight); border: 1px solid var(--accent); border-radius: 20px;
  padding: 3px 9px 3px 7px; transform: rotate(-2deg);
}
.verified-seal .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-highlight); box-shadow: 0 0 4px rgba(232,154,94,0.8); }

/* Freshness dot: a small pulsing indicator next to a rank/timestamp. */
.freshness-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-highlight); box-shadow: 0 0 4px rgba(232,154,94,0.7); margin-right: 5px; }

/* ── Dashboard: command ledger ──────────────────────────────────────────── */
.truth-panel { padding-top: 26px; }
.truth-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .truth-grid { grid-template-columns: 1fr; } }
.truth-figure { font-family: var(--display); font-size: 58px; line-height: 1; color: var(--text); font-variant-numeric: oldstyle-nums; }
.truth-rows { margin-top: 18px; }
.truth-row { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); }
.truth-row:last-child { border-bottom: none; }
.truth-row .label { margin: 0; }
.truth-row .val { font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums; }
.since-visit { margin-top: 18px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.since-visit ul { list-style: none; margin: 8px 0 0; padding: 0; }
.since-visit li { font-size: 12.5px; color: var(--text-dim); padding: 3px 0; }
.since-visit li .mono { color: var(--text-faint); }

.activity-ledger { position: relative; padding-left: 20px; }
.activity-ledger::before { content: ''; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 1px; background: var(--line-strong); }
.activity-row { position: relative; padding: 10px 0; border-bottom: 1px solid var(--line); }
.activity-row:last-child { border-bottom: none; }
.activity-row::before {
  content: ''; position: absolute; left: -20px; top: 15px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--bg-panel); border: 1.5px solid var(--text-faint);
}
.activity-row.is-won::before, .activity-row.is-lost::before { border-color: var(--accent-highlight); background: var(--accent-highlight); }
.activity-row.is-lost::before { border-color: var(--gunmetal); background: var(--gunmetal); }
.activity-row-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.activity-row-meta { color: var(--text-faint); font-size: 12px; margin-top: 2px; }

.exceptions-list li { font-size: 12.5px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.exceptions-list li:last-child { border-bottom: none; }

/* ── Best Bets: analyst sheets ───────────────────────────────────────────── */
.analyst-card { display: grid; grid-template-columns: 46px 1fr; gap: 14px; }
.rank-gutter { font-family: var(--mono); text-align: center; padding-top: 2px; }
.rank-gutter .rank-num { font-size: 20px; color: var(--text-faint); line-height: 1; }
.rank-gutter .rank-meta { font-size: 9.5px; color: var(--text-faint); margin-top: 6px; line-height: 1.4; }
.evidence-strip { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 12px 0 6px; font-family: var(--mono); font-size: 14px; }
.evidence-strip .book-price { color: var(--text-dim); }
.evidence-strip .arrow { color: var(--text-faint); }
.evidence-strip .fair-price { color: var(--text-dim); }
.evidence-strip .ev-proof { color: var(--accent-highlight); font-weight: 600; }
.calib-scale { position: relative; height: 6px; border-radius: 3px; background: var(--line-strong); margin: 10px 0 4px; }
.calib-scale .calib-fair { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--text-faint); }
.calib-scale .calib-book { position: absolute; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-highlight); box-shadow: 0 0 5px rgba(232,154,94,0.7); transform: translateX(-50%); }
.decision-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.decision-footer .stake-line { font-family: var(--mono); font-size: 12.5px; color: var(--text-dim); }
.audit-worksheet { margin-top: 10px; }
.audit-worksheet .audit-eq { font-family: var(--mono); font-size: 12px; color: var(--text-dim); padding: 8px 0; }

/* ── Slip detail: stake -> legs -> seal ─────────────────────────────────── */
.slip-stake-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.slip-stake-figure { font-family: var(--display); font-size: 34px; color: var(--text); }
.parlay-eq { font-family: var(--mono); font-size: 12.5px; color: var(--text-dim); background: var(--bg-panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; margin: 10px 0; }
.leg-thread-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.leg-thread-row .leg-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--text-faint); }
.leg-thread-row.is-won .leg-dot { background: var(--accent-highlight); }
.leg-thread-row.is-lost .leg-dot { background: var(--gunmetal); }

/* ── Capper dossier / leaderboard ledger ─────────────────────────────────── */
.dossier-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.dossier-stat-row { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 14px; }
.dossier-stat-row .dstat .val { font-family: var(--mono); font-size: 20px; }
.dossier-stat-row .dstat .lbl { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); margin-top: 3px; }
.rank-folio { font-family: var(--mono); color: var(--text-faint); width: 30px; }

/* ── Guide page: racing-form editorial layout, thread motif as a left rule. ─────────── */
.guide-section { border-left: 2px solid var(--line-strong); padding-left: 18px; margin-bottom: 28px; position: relative; }
.guide-section::before {
  content: ''; position: absolute; left: -5px; top: 2px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent-highlight); box-shadow: 0 0 6px rgba(232,154,94,0.7);
}
.guide-section h2 { margin-top: 0; }
.guide-toc { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 14px 0 30px; font-family: var(--mono); font-size: 12.5px; }

/* ── board-wave6: confidence + grade chip + Kelly + EV filter bar ────────── */
.ev-filter-bar { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin: 10px 0 20px; padding: 12px 14px; background: var(--bg-panel-2); border: 1px solid var(--line); border-radius: 8px; }
.ev-filter-bar label { margin: 0; }
.ev-filter-item { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); display: flex; flex-direction: column; gap: 4px; }
.ev-filter-item select, .ev-filter-item input { margin: 0; min-width: 120px; }
.confidence-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0; flex-wrap: wrap; }
.confidence-fig { display: flex; align-items: center; gap: 6px; }
.confidence-num { font-family: var(--mono); font-size: 15px; color: var(--text); }
.grade-chip { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 20px; border: 1px solid; white-space: nowrap; }
.grade-chip.grade-a { color: var(--accent-highlight); border-color: var(--accent); background: var(--accent-dim); }
.grade-chip.grade-b { color: var(--bone); border-color: rgba(241,237,230,0.4); background: rgba(241,237,230,0.06); }
.grade-chip.grade-c { color: var(--gunmetal); border-color: var(--gunmetal); background: rgba(90,100,104,0.10); }

/* ── TODAY'S TAILS (presentation wave) ─────────────────────────────────── */
.tails-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.tail-card { display: flex; flex-direction: column; gap: 8px; }
.tail-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tail-pick { margin: 0; font-family: var(--display); font-size: 22px; color: var(--bone); }
.tail-meta { font-size: 12px; }
.tail-chip { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 9px; border-radius: 20px; border: 1px solid var(--accent); color: var(--accent-highlight); background: var(--accent-dim); white-space: nowrap; }
.tail-chip.tail-chip-strong_edge { color: var(--accent-highlight); border-color: var(--accent-highlight); background: rgba(232,154,94,0.16); }
.tail-chip.tail-chip-solid { color: var(--bone); border-color: rgba(241,237,230,0.4); background: rgba(241,237,230,0.06); }
.tail-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.tail-arrow { color: var(--text-faint); }
.tail-stake-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }

/* ── PARLAY BUILDER ───────────────────────────────────────────────────────
   Left: board plays + manual leg form. Right: the slip under construction and
   the honest verdict panel. No green/red, no gamified progress bars - the
   verdict is plain text plus mono numbers, same as everywhere else. */
.parlay-layout { display: grid; grid-template-columns: 1fr 420px; gap: 24px; align-items: start; }
@media (max-width: 960px) { .parlay-layout { grid-template-columns: 1fr; } }
.parlay-play-list { display: flex; flex-direction: column; gap: 14px; max-height: 900px; overflow-y: auto; padding-right: 4px; }
.parlay-play-card .tail-fields { font-size: 12.5px; }
.parlay-slip-leg { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.parlay-slip-leg:last-child { border-bottom: none; }
.parlay-slip-leg-info { display: flex; flex-direction: column; gap: 2px; }
.parlay-slip-leg-label { color: var(--bone); font-size: 14px; }
.parlay-slip-leg-meta { font-size: 12px; color: var(--text-faint); }
.parlay-slip-leg-odds { font-family: var(--mono); color: var(--text-dim); white-space: nowrap; }
.parlay-verdict { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-strong); }
.parlay-verdict-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; font-size: 13.5px; }
.parlay-verdict-text { margin: 10px 0 0; font-size: 14px; color: var(--bone); }
.parlay-warning-chip { display: inline-block; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 10px; border-radius: 20px; border: 1px solid var(--amber); color: var(--amber); background: rgba(232,154,94,0.08); margin: 6px 6px 0 0; }

/* ── board-wave6: Today's board (per-sport tabs, expandable game rows) ──── */
.board-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.board-tab { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; padding: 6px 14px; border-radius: 20px; border: 1px solid var(--line); color: var(--text-faint); background: transparent; cursor: pointer; }
.board-tab.active { color: var(--accent-highlight); border-color: var(--accent); background: var(--accent-dim); }
.board-day-toggle { display: flex; gap: 6px; margin: 0 0 16px; }
.board-game-row { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.board-game-summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; cursor: pointer; flex-wrap: wrap; }
.board-game-summary:hover { background: var(--bg-panel-2); }
.board-game-matchup { font-family: var(--display); font-size: 16px; }
.board-game-meta { font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); margin-top: 2px; }
.board-game-favorite { font-family: var(--mono); font-size: 13px; color: var(--text); }
.board-game-lines { display: flex; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 12.5px; color: var(--text-dim); }
.board-game-detail { padding: 0 16px 16px; border-top: 1px solid var(--line); display: none; }
.board-game-row.open .board-game-detail { display: block; }
.board-game-row.open .board-game-summary { background: var(--bg-panel-2); }
.board-books-table { width: 100%; margin-top: 12px; font-size: 12.5px; }
.board-books-table td.best-price { color: var(--accent-highlight); font-weight: 600; background: var(--accent-dim); border-radius: 4px; }
.props-note { font-family: var(--mono); font-size: 11px; color: var(--text-faint); margin-top: 8px; }
.props-loading { font-style: italic; color: var(--text-faint); }

/* ── board-wave6: dashboard TODAY strip ──────────────────────────────────── */
.today-strip-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.today-strip-row:last-child { border-bottom: none; }
.today-strip-game { font-family: var(--display); font-size: 14.5px; }
.today-strip-meta { font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); }
.today-strip-fair { font-family: var(--mono); font-size: 12.5px; }

/* ── board-wave6: empty-state first-day guide ────────────────────────────── */
.first-day-guide { text-align: center; padding: 10px 0; }
.first-day-steps { display: flex; flex-direction: column; gap: 10px; max-width: 340px; margin: 14px auto 0; text-align: left; }
.first-day-step { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.first-day-step .fd-num { font-family: var(--mono); font-size: 11px; color: var(--accent-highlight); border: 1px solid var(--accent); border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ── board-wave6: landing product showcase ───────────────────────────────── */
.showcase-section { padding: 60px 0; }
.showcase-frame { border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg-panel); box-shadow: 0 24px 60px rgba(0,0,0,0.35); overflow: hidden; max-width: 900px; margin: 0 auto; }
.showcase-frame .frame-chrome { display: flex; gap: 6px; padding: 10px 12px; background: var(--bg-panel-2); border-bottom: 1px solid var(--line); }
.showcase-frame .frame-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.showcase-frame img { display: block; width: 100%; height: auto; }
.showcase-caption { text-align: center; font-family: var(--display); font-style: italic; color: var(--text-faint); margin-top: 14px; font-size: 15px; }
.showcase-row { margin-bottom: 56px; }
.showcase-row:nth-child(even) .showcase-frame { transform: rotate(-0.6deg); }
.showcase-row:nth-child(odd) .showcase-frame { transform: rotate(0.6deg); }

/* landing v2 ─────────────────────────────────────────────────────────────
   Additive-only block for the rebuilt landing page copy/sections. Nothing
   above this line is touched; every selector here is new. */

.hero-sub-2 { color: var(--text-dim); }

.tails-open-section {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 60px 24px;
}
.tails-open-copy p.label { margin: 0 0 6px; }
.tails-open-h2 { font-size: 34px; margin: 0 0 14px; }
.tails-open-copy p:not(.label) { color: var(--text-dim); max-width: 42ch; }
.tails-open-mock { min-width: 0; }
.tails-open-mock .tail-card { max-width: 420px; margin: 0 auto; }
@media (max-width: 860px) {
  .tails-open-section { grid-template-columns: 1fr; text-align: center; padding: 44px 20px; gap: 28px; }
  .tails-open-copy p:not(.label) { margin: 0 auto; }
  .tails-open-mock .tail-card { max-width: 100%; }
}

.feature-grid-section { max-width: 1080px; margin: 0 auto; padding: 40px 24px 60px; text-align: center; }
.feature-grid-section .engraved-rule { max-width: 220px; margin: 0 auto 14px; }
.feature-grid-h2 { font-size: 30px; margin: 6px 0 32px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: left;
}
.feature-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 18px; }
.feature-card p { margin: 0; color: var(--text-dim); font-size: 13.5px; line-height: 1.55; }
.feature-card .feature-building {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10.5px;
  color: var(--accent-highlight);
  margin: 0 0 6px;
}
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid-section { text-align: center; padding: 32px 20px 48px; }
  .feature-card { text-align: left; }
}

.honesty-ledger-section {
  max-width: 780px;
  margin: 0 auto;
  padding: 50px 24px 70px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
  align-items: start;
}
.honesty-seal { display: flex; justify-content: center; padding-top: 6px; }
.honesty-h2 { font-size: 30px; margin: 6px 0 10px; }
.honesty-line { font-family: var(--display); font-style: italic; font-size: 19px; color: var(--text); margin: 0 0 10px; }
.honesty-copy p:not(.honesty-line) { color: var(--text-dim); }
@media (max-width: 620px) {
  .honesty-ledger-section { grid-template-columns: 1fr; text-align: center; padding: 40px 20px 56px; }
  .honesty-seal { padding-top: 0; }
}

/* legal pages */
.legal-footer {
  text-align: center;
  padding: 18px 16px 0;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 11px;
}
.legal-footer-links a { color: var(--text-faint); text-decoration: underline; text-underline-offset: 2px; }
.legal-footer-links a:hover { color: var(--accent-highlight); }
.legal-footer-line { margin-top: 4px; }

.legal-rg-panel {
  background: var(--gunmetal);
  color: var(--bone);
  border-radius: 8px;
  padding: 20px 22px;
  margin: 8px 0 28px;
}
.legal-rg-panel h2 { color: var(--bone); margin-top: 0; }
.legal-rg-panel p { color: var(--bone); }
.legal-rg-panel a { color: var(--bone); text-decoration: underline; }

/* tail rating */
.tail-rating { display: inline-flex; align-items: center; gap: 2px; cursor: help; }
.tail-glyph { width: 13px; height: 9px; display: block; }
.tail-glyph-filled path { fill: var(--accent); stroke: none; }
.tail-glyph-empty path { fill: none; stroke: var(--gunmetal); stroke-width: 1.3; }

/* props browser */
.props-filter-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.props-game-group { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 18px; overflow: hidden; }
.props-game-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 12px 16px; background: var(--bg-panel-2); border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.props-market-group { padding: 10px 16px; border-bottom: 1px solid var(--line); }
.props-market-group:last-child { border-bottom: none; }
.props-market-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.props-row-list { display: flex; flex-direction: column; gap: 6px; }
.props-row {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr 0.7fr 0.9fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.props-row-thin { border-style: dashed; opacity: 0.85; }
.props-row-pick { font-size: 13px; }
.props-row-fair { font-size: 12.5px; display: flex; flex-direction: column; gap: 2px; }
.props-row-ev { text-align: right; }
/* Deliberately gunmetal for EV in every case (positive AND negative) - no green/red
   traffic-light coloring anywhere in this theme, an honest negative number is not an "error". */
.props-ev-neutral { color: var(--gunmetal); font-size: 14px; }
.props-row-rating { text-align: right; }
.props-row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

@media (max-width: 760px) {
  .props-row { grid-template-columns: 1fr; text-align: left; }
  .props-row-ev, .props-row-rating, .props-row-actions { text-align: left; justify-content: flex-start; }
  .props-game-head { flex-direction: column; }
}
.tail-rating-compact { display: inline-block; font-size: 11px; color: var(--accent-highlight); border: 1px solid var(--line-strong); border-radius: 20px; padding: 2px 8px; letter-spacing: 0.03em; }

/* filters wave */
.filters-books-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px 14px; margin: 10px 0 14px; }
.filters-wave-bar {
  display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  margin: 10px 0 6px; padding: 12px 14px;
  background: var(--bg-panel-2); border: 1px solid var(--line); border-radius: 8px;
}
.filters-wave-item { display: flex; flex-direction: column; gap: 5px; margin: 0; min-width: 0; }
.filters-wave-label {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-faint); white-space: nowrap;
}
.filters-wave-item select, .filters-wave-item input[type="search"] { margin: 0; min-width: 130px; }
.filters-wave-search { flex: 1 1 180px; }
.filters-wave-search input { width: 100%; min-width: 0; }
.tail-rating-picker { display: inline-flex; align-items: center; gap: 3px; }
.tail-rating-pick-btn {
  background: none; border: none; padding: 3px; margin: 0; cursor: pointer; line-height: 0;
}
.tail-rating-pick-btn .tail-glyph { width: 15px; height: 11px; }
.tail-rating-pick-btn .tail-glyph path { fill: none; stroke: var(--gunmetal); stroke-width: 1.3; }
.tail-rating-pick-btn.tail-rating-pick-filled .tail-glyph path { fill: var(--accent); stroke: none; }
.tail-rating-pick-btn:hover .tail-glyph path { stroke: var(--accent-highlight); }
.filters-hidden-note { margin: 0 0 18px; }
@media (max-width: 620px) {
  .filters-wave-bar { flex-direction: column; align-items: stretch; gap: 12px; }
  .filters-wave-item, .filters-wave-search { width: 100%; }
  .filters-wave-item select, .filters-wave-item input[type="search"], .filters-wave-item input { width: 100%; min-width: 0; box-sizing: border-box; }
  .filters-books-grid { grid-template-columns: 1fr 1fr; }
}

/* sweat screen */
.sweat-teaser {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em;
  margin-bottom: 14px; padding: 9px 12px;
  background: var(--accent-dim); border: 1px solid rgba(217,123,74,0.3); border-radius: 6px;
}
.sweat-teaser a { color: var(--accent-highlight); text-decoration: none; }
.sweat-teaser a:hover { text-decoration: underline; }
.sweat-strip { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0 20px; }
.sweat-stat {
  flex: 1 1 220px; padding: 12px 14px;
  background: var(--bg-panel-2); border: 1px solid var(--line); border-radius: 8px;
}
.sweat-stat-figure { font-size: 22px; margin-top: 4px; }
.sweat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.sweat-card { padding: 14px 16px; }
.sweat-card-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; margin-bottom: 10px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.sweat-card-view { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--text-faint); text-decoration: none; }
.sweat-card-view:hover { color: var(--accent-highlight); }
.sweat-leg { padding: 10px 0; border-bottom: 1px solid var(--line); }
.sweat-leg:last-child { border-bottom: none; }
.sweat-leg-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.sweat-leg-event { font-size: 12px; margin-top: 2px; }
.sweat-leg-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 12.5px; }
.sweat-score { color: var(--text-faint); white-space: nowrap; }
.sweat-need { flex: 1; }
/* Copper accent = currently hitting, gunmetal = currently behind - never green/red. */
.sweat-leg-ahead .sweat-need, .sweat-leg-push .sweat-need { color: var(--accent-highlight); }
.sweat-leg-behind .sweat-need { color: var(--gunmetal); }
.sweat-leg-ahead { border-left: 2px solid var(--accent); padding-left: 10px; }
.sweat-leg-behind { border-left: 2px solid var(--gunmetal); padding-left: 10px; }
.sweat-leg-push { border-left: 2px solid rgba(241,237,230,0.35); padding-left: 10px; }
@media (max-width: 620px) {
  .sweat-grid { grid-template-columns: 1fr; }
  .sweat-strip { flex-direction: column; }
}

/* dashboard wave */
.tails-record-stat { text-decoration: none; }
.tails-record-stat:hover { color: var(--accent-highlight); }

/* Week Ahead planner: compact horizontal day-strip on desktop, stacked vertically on mobile
   at the same 620px breakpoint every other dashboard module already uses. */
.week-ahead-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 2px; }
.week-ahead-day {
  flex: 1 1 0; min-width: 118px; padding: 10px 12px;
  background: var(--bg-panel-2); border: 1px solid var(--line); border-radius: 8px;
}
.week-ahead-day.is-today { border-color: rgba(217,123,74,0.4); background: var(--accent-dim); }
.week-ahead-day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.week-ahead-weekday { font-family: var(--display); font-size: 14px; }
.week-ahead-count { font-size: 18px; margin-top: 6px; }
.week-ahead-notable { font-size: 11.5px; color: var(--text-faint); margin-top: 2px; }
.week-ahead-edges { font-family: var(--mono); font-size: 11px; margin-top: 8px; color: var(--text-faint); }
.week-ahead-edges.has-edges { color: var(--accent-highlight); }
@media (max-width: 620px) {
  .week-ahead-strip { flex-direction: column; overflow-x: visible; }
  .week-ahead-day { min-width: 0; }
}

/* Your Edge Report: ROI tables + habit lines, numbers always in IBM Plex Mono, copper for
   positive / gunmetal for negative - never red/green. */
.edge-report-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.edge-report-table td { padding: 6px 4px; border-bottom: 1px solid var(--line); }
.edge-report-table td:last-child, .edge-report-table td:nth-child(2) { text-align: right; white-space: nowrap; }
.edge-report-habits { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13px; }
.edge-report-habits li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.edge-report-habits li:last-child { border-bottom: none; }
@media (max-width: 620px) {
  .edge-report-table { font-size: 12px; }
}

/* matchup lab */
/* Racing-form editorial: dense stat tables ARE the aesthetic - IBM Plex Mono numbers, copper
   only for genuinely notable OPS (>=.900 hot / <=.550 cold, min 20 PA - see lib/matchup-lab.js
   notableOps), gunmetal for honesty caveats, never green/red/checkmarks. Mobile: the table
   scrolls inside its own container (the page body never scrolls horizontally), first column
   pinned so the player/window name stays visible while stats scroll under it. */
.matchup-index-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 10px; }
.matchup-index-card {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--bg-panel);
  text-decoration: none; color: var(--text);
}
.matchup-index-card:hover { border-color: var(--line-strong); background: var(--bg-panel-2); }
.matchup-index-teams { font-family: var(--display); font-size: 17px; }
.matchup-index-card .badge { align-self: flex-start; margin-top: 4px; }

.matchup-side-panel + .matchup-side-panel { margin-top: 16px; }
.matchup-pitcher-panel { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.matchup-pitcher-name { display: flex; align-items: baseline; gap: 8px; font-size: 15px; }
.matchup-pitcher-name a { color: var(--text); }
.matchup-pitcher-stats { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-dim); }

.matchup-table-container { overflow-x: auto; margin-top: 6px; }
.matchup-lineup-table { width: 100%; border-collapse: collapse; font-size: 12.5px; white-space: nowrap; }
.matchup-lineup-table th, .matchup-lineup-table td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: right; }
.matchup-lineup-table th:first-child, .matchup-lineup-table td:first-child { text-align: left; }
.matchup-lineup-table thead th { color: var(--text-faint); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 0.02em; }
.matchup-lineup-table a { color: var(--text); }
.mtl-sticky { position: sticky; left: 0; background: var(--bg-panel); z-index: 1; }
.mtl-notable-hot { color: var(--accent-highlight); font-weight: 600; }
.mtl-notable-cold { color: var(--gunmetal); font-weight: 600; }
.mtl-caveat-row td { border-bottom: 1px solid var(--line); padding-top: 0; padding-bottom: 8px; }
.mtl-caveat, p.mtl-caveat { color: var(--gunmetal); font-size: 11.5px; text-align: left; white-space: normal; }

.matchup-connects-list { display: flex; flex-direction: column; gap: 2px; }
.matchup-connects-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.matchup-connects-row:last-child { border-bottom: none; }

.player-hub-stat-row { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--text-dim); }

@media (max-width: 620px) {
  .matchup-index-grid { grid-template-columns: 1fr; }
  .matchup-lineup-table { font-size: 11.5px; }
}

/* view modes */
.view-mode-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.view-mode-option {
  background: none;
  border: none;
  padding: 2px 2px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  cursor: pointer;
}
.view-mode-option:hover { color: var(--text-dim); }
.view-mode-option.is-active { color: var(--accent-highlight); }
.view-mode-sep { color: var(--line-strong); font-size: 12px; }
@media (max-width: 560px) { .view-mode-toggle { margin-left: 0; padding-left: 0; border-left: none; } }
.tail-simple-sentence { margin: 8px 0 10px; font-size: 14px; line-height: 1.4; }
.board-game-row-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.props-row-simple { margin-bottom: 10px; }
.props-row-simple .props-row-pick { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.matchup-simple-takeaways { margin: 6px 0 0; padding-left: 18px; }
.matchup-simple-takeaways li { margin-bottom: 6px; font-size: 14px; line-height: 1.4; }
