:root {
  --bg: #0f1115;
  --panel: #171a21;
  --border: #2a2e38;
  --text: #e8e9ec;
  --muted: #9099a8;
  --accent: #4f8cff;
  --good: #35c46f;
  --standout: #06b6d4;  /* a couple shades deeper/richer than the original #22d3ee -- still clearly cyan, clearly distinct from --money-pick's violet */
  --bad: #e0715a;  /* same red already used by .result-wrong/.error-state -- one red across the site */
  --moderate: #64748b;  /* blue-grey -- a real recommended bet with no strong confidence or edge signal either way */
  --money-pick: #a78bfa;  /* violet -- a real sizable edge on its own, see pick_card.py::MONEY_PICK_EDGE_MIN */
  --orange: #f5a524;  /* low/medium confidence -- distinct from --bad's red and --money-pick's violet, checked for the same clear contrast against white text as every other tier color here */

  /* One shade of green per board tab (BOARD_SPORTS order in board.py),
     swept across the green family (teal-green -> yellow-green) rather
     than picked by eye, so each is genuinely distinguishable from its
     neighbors while every one still reads as "green" -- all checked
     against white text and clear 4.1-4.5:1 (better than --accent's own
     3.2:1 against white, so no regression in readability). */
  --tab-nfl: #248957;
  --tab-cfb: #248949;
  --tab-nba: #24893b;
  --tab-cbb: #24892e;
  --tab-mlb: #298924;
  --tab-nhl: #368924;
  --tab-ufc: #448924;
  --tab-atp: #518924;
  --tab-wta: #5f8924;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.25rem;
  font-size: 0.95rem;
}

.site-header nav a:hover { color: var(--text); }

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

h1 { font-size: 1.5rem; margin-bottom: 1.25rem; }

.sport-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.sport-tile {
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text);
}

.sport-tile h2 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.sport-tile p { margin: 0.15rem 0; font-size: 0.9rem; }

.meta { color: var(--muted); font-size: 0.85rem; }

.sport-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

button {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  cursor: pointer;
}

button:hover { opacity: 0.9; }

.picks-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.pick-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  position: relative;
}

/* Every pick card gets exactly one of five colors -- per explicit
   request, "make sure every box is highlighted," not just recommended
   ones (see web/generate.py::_pick_tier, which computes a real tier for
   every pick from either its recommended-side confidence or, absent a
   recommendation, the model's own raw favorite-side probability).
   Ranked worst to best:
     red    -- worst bets to place: the model itself doesn't favor the
               recommended side, with no redeeming edge.
     orange -- low confidence: a middling-confidence recommendation, or
               a low-confidence pick redeemed by a real backtested-sized
               edge (never flatly "worst" just for being low-confidence
               -- a real edge is real value, not a risk flag).
     green  -- confident: the model favors this side strongly.
     purple -- high confidence AND high money: a strong favorite with a
               real sizable edge on top.
     cyan   -- the strongest combined signal: high confidence and the
               specific backtested-profitable value profile
               (pick_card.py::standout_note's +25.5% ROI bucket). The
               single best tier this project has real evidence for --
               deliberately never called "guaranteed" anywhere in the
               product, since nothing in sports betting actually is. */
.pick-card.recommended { border-color: var(--moderate); }
.pick-card.pick-tier-red { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.pick-card.pick-tier-orange { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.pick-card.pick-tier-green { border-color: var(--good); box-shadow: 0 0 0 1px var(--good); }
.pick-card.pick-tier-purple { border-color: var(--money-pick); box-shadow: 0 0 0 1px var(--money-pick); }
.pick-card.pick-tier-cyan { border-color: var(--standout); box-shadow: 0 0 0 1px var(--standout); }

.tier-badge {
  display: inline-block;
  margin-top: 0.6rem;
  margin-left: 0.5rem;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.tier-badge.pick-tier-cyan { background: rgba(6, 182, 212, 0.15); color: var(--standout); }
.tier-badge.pick-tier-purple { background: rgba(167, 139, 250, 0.15); color: var(--money-pick); }
.tier-badge.pick-tier-green { background: rgba(53, 196, 111, 0.15); color: var(--good); }
.tier-badge.pick-tier-orange { background: rgba(245, 165, 36, 0.15); color: var(--orange); }
.tier-badge.pick-tier-red { background: rgba(224, 113, 90, 0.15); color: var(--bad); }

.pick-card pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.5;
}

.ps-matchup {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.ps-limited-data {
  margin: 0 0 0.75rem;
  color: var(--orange);
  font-size: 0.85rem;
  font-weight: 600;
}

.pick-sections { margin: 0; }

.ps-row {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}
.ps-row:first-child { border-top: none; }

.ps-row dt {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ps-row dd {
  margin: 0;
  line-height: 1.45;
}

.ps-row.ps-best-bet dd { font-weight: 600; }

.ps-row.ps-reasoning dd ul,
.ps-row.ps-other-bets dd ul {
  margin: 0;
  padding-left: 1.1rem;
}
.ps-row.ps-reasoning dd li,
.ps-row.ps-other-bets dd li { margin: 0.1rem 0; }

/* Phone width: a fixed label column plus a value column gets cramped
   below ~480px -- stack each row's label above its value instead. */
@media (max-width: 480px) {
  .ps-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

.unit-badge {
  display: inline-block;
  margin-top: 0.6rem;
  background: rgba(53, 196, 111, 0.15);
  color: var(--good);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.empty-state { color: var(--muted); }
.error-state { color: #e0715a; }

.result-correct { background: rgba(53, 196, 111, 0.15); color: var(--good); }
.result-wrong { background: rgba(224, 113, 90, 0.15); color: #e0715a; }

.game-time {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.board-tab-input { display: none; }

.board-tab-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.board-tab-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}

.board-tab-label:hover { color: var(--text); }

.tab-count {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.board-tab-panel { display: none; }

/* CSS-only tab switching -- this file is served as a plain static
   asset (not run through Jinja), so each slug is spelled out by hand
   here rather than looped. BOARD_SPORTS in board.py is a fixed, known
   list (nfl/cfb/nba/cbb/mlb/nhl/ufc/atp/wta); if that list changes,
   update the slugs below to match. Simpler and more robust than a JS
   tab controller for what the user asked to be a "simple interface". */
#tab-lines:checked ~ .board-tab-labels label[for="tab-lines"] { background: var(--good); border-color: var(--good); color: #0f1115; }
#tab-testing:checked ~ .board-tab-labels label[for="tab-testing"] { background: var(--orange); border-color: var(--orange); color: #0f1115; }
#tab-top:checked ~ .board-tab-labels label[for="tab-top"] { background: var(--standout); border-color: var(--standout); color: #0f1115; }
#tab-confident:checked ~ .board-tab-labels label[for="tab-confident"] { background: var(--good); border-color: var(--good); color: #0f1115; }
#tab-nfl:checked ~ .board-tab-labels label[for="tab-nfl"] { background: var(--tab-nfl); border-color: var(--tab-nfl); color: white; }
#tab-cfb:checked ~ .board-tab-labels label[for="tab-cfb"] { background: var(--tab-cfb); border-color: var(--tab-cfb); color: white; }
#tab-nba:checked ~ .board-tab-labels label[for="tab-nba"] { background: var(--tab-nba); border-color: var(--tab-nba); color: white; }
#tab-cbb:checked ~ .board-tab-labels label[for="tab-cbb"] { background: var(--tab-cbb); border-color: var(--tab-cbb); color: white; }
#tab-mlb:checked ~ .board-tab-labels label[for="tab-mlb"] { background: var(--tab-mlb); border-color: var(--tab-mlb); color: white; }
#tab-nhl:checked ~ .board-tab-labels label[for="tab-nhl"] { background: var(--tab-nhl); border-color: var(--tab-nhl); color: white; }
#tab-ufc:checked ~ .board-tab-labels label[for="tab-ufc"] { background: var(--tab-ufc); border-color: var(--tab-ufc); color: white; }
#tab-atp:checked ~ .board-tab-labels label[for="tab-atp"] { background: var(--tab-atp); border-color: var(--tab-atp); color: white; }
#tab-wta:checked ~ .board-tab-labels label[for="tab-wta"] { background: var(--tab-wta); border-color: var(--tab-wta); color: white; }

#tab-top:checked ~ #panel-top,
#tab-confident:checked ~ #panel-confident,
#tab-testing:checked ~ #panel-testing,
#tab-lines:checked ~ #panel-lines,
#tab-nfl:checked ~ #panel-nfl,
#tab-cfb:checked ~ #panel-cfb,
#tab-nba:checked ~ #panel-nba,
#tab-cbb:checked ~ #panel-cbb,
#tab-mlb:checked ~ #panel-mlb,
#tab-nhl:checked ~ #panel-nhl,
#tab-ufc:checked ~ #panel-ufc,
#tab-atp:checked ~ #panel-atp,
#tab-wta:checked ~ #panel-wta {
  display: block;
}

/* /results page -- same CSS-only radio-tab mechanism as /board (see its
   own comment above), reusing the identical per-sport green shades for
   a consistent visual language between the two tabbed pages. Separate
   `rtab-`/`rpanel-` id prefixes (vs. board's `tab-`/`panel-`) since both
   pages ship the same static stylesheet and id collisions across two
   *different* pages aren't possible, but keeping them visually/
   structurally parallel makes this block easy to keep in sync by hand. */
#rtab-nfl:checked ~ .board-tab-labels label[for="rtab-nfl"] { background: var(--tab-nfl); border-color: var(--tab-nfl); color: white; }
#rtab-cfb:checked ~ .board-tab-labels label[for="rtab-cfb"] { background: var(--tab-cfb); border-color: var(--tab-cfb); color: white; }
#rtab-nba:checked ~ .board-tab-labels label[for="rtab-nba"] { background: var(--tab-nba); border-color: var(--tab-nba); color: white; }
#rtab-cbb:checked ~ .board-tab-labels label[for="rtab-cbb"] { background: var(--tab-cbb); border-color: var(--tab-cbb); color: white; }
#rtab-mlb:checked ~ .board-tab-labels label[for="rtab-mlb"] { background: var(--tab-mlb); border-color: var(--tab-mlb); color: white; }
#rtab-nhl:checked ~ .board-tab-labels label[for="rtab-nhl"] { background: var(--tab-nhl); border-color: var(--tab-nhl); color: white; }
#rtab-ufc:checked ~ .board-tab-labels label[for="rtab-ufc"] { background: var(--tab-ufc); border-color: var(--tab-ufc); color: white; }
#rtab-atp:checked ~ .board-tab-labels label[for="rtab-atp"] { background: var(--tab-atp); border-color: var(--tab-atp); color: white; }
#rtab-wta:checked ~ .board-tab-labels label[for="rtab-wta"] { background: var(--tab-wta); border-color: var(--tab-wta); color: white; }

#rtab-nfl:checked ~ #rpanel-nfl,
#rtab-cfb:checked ~ #rpanel-cfb,
#rtab-nba:checked ~ #rpanel-nba,
#rtab-cbb:checked ~ #rpanel-cbb,
#rtab-mlb:checked ~ #rpanel-mlb,
#rtab-nhl:checked ~ #rpanel-nhl,
#rtab-ufc:checked ~ #rpanel-ufc,
#rtab-atp:checked ~ #rpanel-atp,
#rtab-wta:checked ~ #rpanel-wta {
  display: block;
}

.accuracy-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.accuracy-stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  min-width: 180px;
}

.accuracy-stat-value {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Same red/green language as .result-wrong/.unit-badge elsewhere on the
   site -- a real profit/loss number deserves the same at-a-glance color
   cue those already use, not a new hue invented just for this stat. */
.roi-positive { color: var(--good); }
.roi-negative { color: #e0715a; }

/* Same colors the pick-card highlight boxes use for these exact tiers
   (pick_card.py::HIGH_CONFIDENCE_MIN/LOW_CONFIDENCE_MAX) -- a bet shown
   green/red on the day it was made should read as the same tier once
   it's graded here. */
.tier-high { color: var(--good); }
.tier-low { color: var(--bad); }

.accuracy-stat-label {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.results-chart {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.results-chart-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.results-chart-label {
  width: 60px;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.results-bar-track {
  position: relative;
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  overflow: hidden;
}

.results-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 999px;
}

.results-bar-fill.win-rate { background: var(--accent); }
.results-bar-fill.roi-positive { background: var(--good); }
.results-bar-fill.roi-negative { background: #e0715a; }

/* Diverging (ROI) bars only -- a thin center line at the 0% mark so a
   negative bar (extending left of it) and a positive one (extending
   right) both read against a real zero point, not just against the
   track's own edges. */
.results-bar-track.diverging .results-bar-center {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--muted);
  opacity: 0.5;
}

.results-chart-value {
  width: 48px;
  flex-shrink: 0;
  text-align: right;
  font-size: 0.9rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* No-JS modal via the CSS :target pseudo-class: a link to #pick-<id>
   makes the matching .pick-modal match :target and show; the modal's
   own close link points back to the panel's own id, changing the URL
   fragment away from the modal's id so it stops matching :target and
   hides again -- the whole mechanism needs zero script. */
.pick-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}

.pick-link:hover { text-decoration-color: var(--text); }

.pick-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100;
  padding: 1.5rem;
  align-items: center;
  justify-content: center;
}

.pick-modal:target { display: flex; }

.pick-modal-content {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

.pick-modal-content h3 { margin: 0 0 1rem; padding-right: 2rem; font-size: 1.05rem; }

.pick-modal-content pre {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.pick-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 1.5rem;
  line-height: 1;
}

.pick-modal-close:hover { color: var(--text); }

.results-week-heading {
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.results-table th, .results-table td {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.results-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* The weekly play-by-play on /results: one row per decided Best Bet,
   left-border colored by confidence tier -- the same tier colors
   .pick-tier-* already uses for a full pick card (see that rule's own
   comment), just as a compact accent stripe instead of a full outline,
   since a dense list of rows reads better scanned by that one edge than
   by a border around each entire row. The whole row is a link to the
   same #pick-<id> :target modal .pick-link already opens elsewhere. */
.playbyplay {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.playbyplay-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  text-decoration: none;
  color: inherit;
}

.playbyplay-row.pick-tier-red { border-left-color: var(--bad); }
.playbyplay-row.pick-tier-orange { border-left-color: var(--orange); }
.playbyplay-row.pick-tier-green { border-left-color: var(--good); }
.playbyplay-row.pick-tier-purple { border-left-color: var(--money-pick); }

.playbyplay-matchup {
  font-weight: 600;
  flex: 1 1 200px;
  min-width: 0;
}

.playbyplay-bet {
  color: var(--muted);
  font-size: 0.88rem;
  flex: 2 1 220px;
  min-width: 0;
}

.playbyplay-confidence {
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
  color: var(--muted);
  width: 64px;
  flex-shrink: 0;
  text-align: right;
}

.playbyplay-result {
  font-weight: 700;
  width: 80px;
  flex-shrink: 0;
  text-align: right;
}


.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 2rem 1rem;
}

/* Market vs. model comparison table on football pick cards */
.mvm {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 0.25rem;
  font-size: 0.9rem;
}
.mvm caption {
  text-align: left;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 0.3rem;
}
.mvm th, .mvm td {
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid var(--border);
  text-align: right;
  vertical-align: top;
}
.mvm th:first-child, .mvm td:first-child { text-align: left; }
.mvm th { color: var(--muted); font-weight: 500; font-size: 0.8rem; }
.mvm-bet { font-weight: 600; }
.mvm-side { color: var(--muted); font-size: 0.8rem; }
.mvm-pos { color: var(--good); }
.mvm-neg { color: var(--bad); }

.mvm-note { color: var(--muted); font-size: 0.75rem; margin: 0.2rem 0 0.8rem; }

/* Team search */
.pick-search {
  margin-left: 1.25rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 0.35rem 0.6rem;
  font-size: 0.9rem;
  min-width: 12rem;
}
.pick-search:focus { outline: none; border-color: var(--accent); }
.search-empty { color: var(--muted); margin-top: 1rem; }
.pick-card.search-hidden { display: none; }
@media (max-width: 640px) {
  .pick-search { margin-left: 0; width: 100%; min-width: 0; }
  .mvm { font-size: 0.8rem; }
  .mvm th, .mvm td { padding: 0.3rem 0.3rem; }
}
.site-header { flex-wrap: wrap; gap: 0.75rem; }
.mvm-conf { text-align: left !important; min-width: 11rem; }
.mvm-lean { font-weight: 600; }
.conf-badge { display: inline-block; border-radius: 999px; padding: 0.05rem 0.5rem; font-size: 0.75rem; font-weight: 600; margin-right: 0.3rem; }
.conf-high { background: rgba(53, 196, 111, 0.15); color: var(--good); }
.conf-moderate { background: rgba(245, 165, 36, 0.15); color: var(--orange); }
.conf-low { background: rgba(224, 113, 90, 0.15); color: var(--bad); }

/* Model scorecard page */
.scorecard-card { margin-top: 1rem; }
.scorecard-title { margin: 0 0 0.3rem; font-size: 1.2rem; }
.scorecard-verdict { display: inline-block; border-radius: 999px; padding: 0.2rem 0.75rem; font-weight: 600; font-size: 0.9rem; margin: 0 0 0.6rem; }
.sc-collecting { background: rgba(100, 116, 139, 0.2); color: var(--muted); }
.sc-even { background: rgba(100, 116, 139, 0.2); color: var(--text); }
.sc-keep { background: rgba(79, 140, 255, 0.15); color: var(--accent); }
.sc-switch { background: rgba(53, 196, 111, 0.15); color: var(--good); }
.sc-progress { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; }
.sc-progress-fill { height: 100%; background: var(--accent); }
.scorecard-summary { margin: 0.6rem 0; }
.scorecard-help { margin-top: 1rem; }
.scorecard-help summary { cursor: pointer; }
.scorecard-help ul { margin: 0.6rem 0 0; padding-left: 1.2rem; }
.scorecard-help li { margin-bottom: 0.4rem; }

/* /results: Best Bets / Moneyline / Spread / Over-Under sub-tabs inside
   each sport's panel -- the same CSS-only radio mechanism, matched by
   position (inputs, labels and panels are in the same order). */
.market-tab-labels { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1rem; }
.market-tab-label {
  padding: 0.3rem 0.75rem; border-radius: 6px; border: 1px solid var(--border);
  color: var(--muted); font-size: 0.85rem; cursor: pointer; user-select: none;
}
.market-tab-label:hover { color: var(--text); }
.market-panel { display: none; }
.market-tabs > input:nth-of-type(1):checked ~ .market-panel:nth-of-type(1),
.market-tabs > input:nth-of-type(2):checked ~ .market-panel:nth-of-type(2),
.market-tabs > input:nth-of-type(3):checked ~ .market-panel:nth-of-type(3),
.market-tabs > input:nth-of-type(4):checked ~ .market-panel:nth-of-type(4),
.market-tabs > input:nth-of-type(5):checked ~ .market-panel:nth-of-type(5),
.market-tabs > input:nth-of-type(6):checked ~ .market-panel:nth-of-type(6),
.market-tabs > input:nth-of-type(7):checked ~ .market-panel:nth-of-type(7),
.market-tabs > input:nth-of-type(8):checked ~ .market-panel:nth-of-type(8) { display: block; }
.market-tabs > input:nth-of-type(1):checked ~ .market-tab-labels label:nth-of-type(1),
.market-tabs > input:nth-of-type(2):checked ~ .market-tab-labels label:nth-of-type(2),
.market-tabs > input:nth-of-type(3):checked ~ .market-tab-labels label:nth-of-type(3),
.market-tabs > input:nth-of-type(4):checked ~ .market-tab-labels label:nth-of-type(4),
.market-tabs > input:nth-of-type(5):checked ~ .market-tab-labels label:nth-of-type(5),
.market-tabs > input:nth-of-type(6):checked ~ .market-tab-labels label:nth-of-type(6),
.market-tabs > input:nth-of-type(7):checked ~ .market-tab-labels label:nth-of-type(7),
.market-tabs > input:nth-of-type(8):checked ~ .market-tab-labels label:nth-of-type(8) {
  background: var(--text); border-color: var(--text); color: var(--bg);
}

.top-pick-bet { margin: 1rem 0 0.35rem; color: var(--text); }

/* /results week picker */
.week-picker { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.9rem; font-size: 0.9rem; color: var(--muted); }
.week-select {
  background: var(--bg); color: var(--text); border: 1px solid var(--border);
  border-radius: 6px; padding: 0.3rem 0.5rem; font: inherit; max-width: 100%;
}
.results-tab-panel [hidden] { display: none !important; }

.spot-line { margin-top: 1.2rem; }
.spot-line .top-pick-bet { margin-top: 0; }

/* Compact game rows for big slates: one line per game, click for the full card. */
.pick-card.pick-compact { padding: 0; }
.pick-collapse > summary { list-style: none; }
.pick-collapse > summary::-webkit-details-marker { display: none; }
.pick-summary {
  display: grid; grid-template-columns: 7.5rem 1fr auto auto; gap: 0.75rem; align-items: center;
  padding: 0.65rem 0.9rem; cursor: pointer; font-size: 0.92rem;
}
.pick-summary::after { content: "▸"; color: var(--muted); }
.pick-collapse[open] > .pick-summary::after { content: "▾"; }
.pick-collapse[open] > .pick-summary { border-bottom: 1px solid var(--border); }
.pick-collapse > :not(summary) { margin-left: 0.9rem; margin-right: 0.9rem; }
.ps-time { color: var(--muted); font-size: 0.85rem; }
.ps-teams { font-weight: 600; }
.ps-bet { color: var(--text); white-space: nowrap; }
.day-heading { margin: 1.4rem 0 0.5rem; font-size: 1rem; color: var(--muted); }
.compact-controls { display: flex; align-items: center; gap: 0.75rem; }
@media (max-width: 640px) {
  .pick-summary { grid-template-columns: 1fr auto; }
  .ps-time { grid-column: 1 / -1; }
  .ps-bet { white-space: normal; }
}

/* Per-market decision block */
.decision { border: 1px solid var(--border); border-radius: 8px; padding: 0.6rem 0.8rem; margin: 0.6rem 0 1rem; }
.decision-title { margin: 0 0 0.4rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.decision-row { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.6rem; align-items: start; padding: 0.35rem 0; border-top: 1px solid var(--border); }
.decision-row:first-of-type { border-top: none; }
.decision-market { font-weight: 600; }
.verdict { display: inline-block; text-align: center; border-radius: 999px; padding: 0.1rem 0.5rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em; }
.verdict-proven { background: var(--good); color: #0f1115; }
.verdict-promising { background: var(--orange); color: #0f1115; }
.verdict-slight { border: 1px solid var(--good); color: var(--text); }
.verdict-coin-flip, .verdict-priced-in, .verdict-no-record-yet { border: 1px solid var(--border); color: var(--muted); }
.verdict-testing { background: var(--orange); color: #0f1115; }
.verdict-unproven { border: 1px solid var(--border); color: var(--muted); }
.decision-summary { margin: 0.5rem 0 0; font-weight: 600; }
@media (max-width: 640px) { .decision-row { grid-template-columns: 1fr auto; } .decision-text { grid-column: 1 / -1; } }

.legend ul ul { list-style: none; padding-left: 0.5rem; }
.legend li { margin: 0.35rem 0; }

.status-error { white-space: pre-wrap; font-size: 0.75rem; max-height: 16rem; overflow: auto; margin: 0; }

/* Best Spread & O/U: highlighted by track record */
.line-bets { display: grid; gap: 0.5rem; }
.line-bet { display: grid; grid-template-columns: 7rem 1fr auto; gap: 0.75rem; align-items: center;
  padding: 0.6rem 0.8rem; border: 1px solid var(--border); border-left-width: 5px; border-radius: 8px; }
.line-bet .lb-what .mvm-side { display: block; }
.line-bet .lb-nums { white-space: nowrap; font-size: 0.85rem; }
.track-proven { border-left-color: var(--good) !important; background: color-mix(in srgb, var(--good) 10%, transparent); }
.track-promising { border-left-color: var(--orange) !important; background: color-mix(in srgb, var(--orange) 10%, transparent); }
.track-slight { border-left-color: color-mix(in srgb, var(--good) 55%, transparent) !important; }
.decision-row.track-proven, .decision-row.track-promising, .decision-row.track-slight { border-left: 4px solid; padding-left: 0.5rem; border-radius: 4px; }
@media (max-width: 640px) { .line-bet { grid-template-columns: 1fr; } .line-bet .lb-nums { white-space: normal; } }

/* Clean card: picks box up front, only Top Picks highlighted, details behind one click */
.pick-card.top-pick { border-color: var(--good); box-shadow: inset 4px 0 0 var(--good); }
.picks-box { display: grid; gap: 0.25rem; margin: 0.5rem 0 0.75rem; }
.pick-line { display: grid; grid-template-columns: 6.5rem 1fr auto; gap: 0.6rem; align-items: baseline; padding: 0.35rem 0.5rem; border-radius: 6px; }
.pick-line .pl-market { color: var(--muted); font-size: 0.85rem; }
.pick-line .pl-pick { font-weight: 600; }
.pick-line .pl-pct { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.pick-line .pl-top { grid-column: 1 / -1; font-size: 0.85rem; }
.pick-line.is-top-pick { background: color-mix(in srgb, var(--good) 14%, transparent); }
.top-pick-badge { color: var(--good); font-weight: 700; white-space: nowrap; }
.more-details > summary { cursor: pointer; color: var(--muted); font-size: 0.9rem; margin: 0.25rem 0; }
.more-details[open] > summary { margin-bottom: 0.6rem; }
.legend-line { margin-bottom: 0.8rem; }

.snapshot-headline { margin: 0 0 0.6rem; font-size: 0.92rem; }
.snapshot-table td:first-child { color: var(--muted); }

/* Most Confident tab */
.confident-line { display: flex; gap: 0.75rem; align-items: baseline; margin: 0.75rem 0 0.25rem; }
.confident-line .cl-pct { font-weight: 700; font-size: 1.1rem; color: var(--good); min-width: 3rem; }
.confident-line .cl-pick { display: flex; flex-direction: column; }

/* Featured pick first; moneyline is an info line, not a pick */
.pick-line.is-featured .pl-pick { font-size: 1.05rem; }
.pick-line.is-featured { border-left: 3px solid var(--muted); }
.pick-line.is-featured.is-top-pick { border-left-color: var(--good); }
.pick-line.pick-info .pl-pick { font-weight: 400; color: var(--muted); }
.pl-note { margin: 0.2rem 0.5rem 0; font-size: 0.78rem; }
.confident-sport { margin: 1.2rem 0 0.4rem; font-size: 1rem; }
.price-edge-badge { color: var(--good); font-weight: 700; }
.pl-size { order: -1; margin-bottom: 0.15rem; }

/* Results: model check */
.check-head { margin: 1rem 0 0.4rem; font-size: 0.95rem; }
.check-table { border-collapse: collapse; font-size: 0.85rem; margin-bottom: 0.5rem; }
.check-table th, .check-table td { padding: 0.25rem 0.6rem; border-bottom: 1px solid var(--border, #333); text-align: left; }
.value-badge { color: var(--good); font-weight: 600; }
