/*
 * Theming.
 * Every surface color reads from a CSS variable so the whole app can be
 * re-skinned by overriding these tokens on <html data-theme="...">.
 * Semantic tokens:
 *   --green   primary accent (eyebrows, section titles, ghost text, borders)
 *   --lime    action fill (button/tab backgrounds); pair with --btn-ink text
 *   --pos     positive / highlight text (profit, value, winner) — must contrast --bg
 *   --btn-ink text drawn on --lime fills
 * Themes: paper (light tennis, default) · gridiron (dark football).
 */
:root {
  color-scheme: light;
  --ink: #122019;
  --muted: #5c7167;
  --line: rgba(16, 45, 32, .14);
  --panel: rgba(255, 255, 255, .92);
  --green: #1c7a49;
  --lime: #cbee4f;
  --pos: #0f7a43;
  --red: #c9463a;
  --bg: #eef2ea;
  --input-bg: #ffffff;
  --card-bg: #ffffff;
  --switcher-bg: #ffffff;
  --sunken-bg: #f2f5ef;
  --btn-ink: #0c2414;
  --tooltip-bg: #102a21;
  --tooltip-ink: #edf7ef;
  --report-bg: linear-gradient(145deg, #e6f2ea, #f6f9f4);
  --body-bg:
    radial-gradient(circle at 100% 0%, rgba(28, 122, 73, .10), transparent 35rem),
    radial-gradient(circle at 0% 35%, rgba(135, 181, 75, .10), transparent 28rem),
    var(--bg);
}

/* Gridiron — dark "night stadium" football theme: charcoal field, chalk-white
   hairlines (--line), amber accent (--green) and gold action fills (--lime). */
html[data-theme="gridiron"] {
  color-scheme: dark;
  --ink: #f5f1e8;
  --muted: #a49b8c;
  --line: rgba(245, 241, 232, .13);
  --panel: rgba(26, 24, 19, .80);
  --green: #e6a445;
  --lime: #ffc24d;
  --pos: #ffc24d;
  --red: #ff8266;
  --bg: #13110d;
  --input-bg: #1c1913;
  --card-bg: rgba(32, 29, 22, .82);
  --switcher-bg: rgba(14, 12, 8, .72);
  --sunken-bg: rgba(14, 12, 8, .55);
  --btn-ink: #241703;
  --report-bg: linear-gradient(145deg, #2a2013, #171207);
  --body-bg:
    radial-gradient(circle at 100% 0%, rgba(230, 164, 69, .18), transparent 35rem),
    radial-gradient(circle at 0% 35%, rgba(255, 194, 77, .06), transparent 28rem),
    var(--bg);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--body-bg);
  min-height: 100vh;
}
p { max-width: 60ch; }
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .17;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 52px 52px; mask-image: linear-gradient(to bottom, black, transparent 70%);
}
main { width: min(1080px, 100%); margin: 0 auto; padding: max(28px, env(safe-area-inset-top)) 18px 64px; }
.hero { padding: 34px 2px 30px; }
.hero-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.hero-copy { max-width: 760px; }
.hero-account-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 14px; }
.hero-create-account { flex: 0 0 auto; width: auto; min-width: 170px; }
.hero-login { margin: 0; white-space: nowrap; }
.sport-data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.sport-data-card { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: 0 18px 45px rgba(0,0,0,.12); backdrop-filter: blur(18px); }
.sport-data-heading { display: flex; align-items: center; gap: 12px; }
.sport-data-heading > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--sunken-bg); font-size: 22px; }
.sport-data-heading small { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.sport-data-heading h2 { margin-top: 2px; font-size: 20px; }
.sport-data-card ul { display: grid; gap: 13px; margin: 20px 0 0; padding: 0; list-style: none; }
.sport-data-card li { position: relative; padding-left: 16px; }
.sport-data-card li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.sport-data-card li strong, .sport-data-card li span { display: block; }
.sport-data-card li strong { font-size: 13px; }
.sport-data-card li span { margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.hero-bottom-action { display: flex; justify-content: center; margin-top: 18px; }
.hero-bottom-action .hero-create-account { min-width: 240px; }
.signup-stage { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr); gap: 18px; align-items: stretch; margin-bottom: 24px; scroll-margin-top: 24px; }
.signup-stage > .panel { height: 100%; }
.historical-example { background: var(--report-bg); }
.historical-label { display: inline-block; margin-top: 18px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 700; }
.historical-example h2 { margin-top: 14px; font: 750 26px/1.12 Georgia, serif; }
.historical-meta { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.historical-pick { position: relative; margin-top: 20px; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: var(--card-bg); }
.historical-pick small, .historical-pick strong { display: block; }
.historical-pick small { color: var(--muted); }
.historical-pick strong { margin-top: 5px; padding-right: 82px; font-size: 20px; }
.historical-won { position: absolute; top: 16px; right: 16px; padding: 6px 10px; border-radius: 999px; background: var(--lime); color: var(--btn-ink); font-size: 12px; font-weight: 850; }
.historical-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.historical-metrics > div { padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--sunken-bg); }
.historical-metrics small, .historical-metrics strong { display: block; }
.historical-metrics small { color: var(--muted); font-size: 10px; line-height: 1.25; }
.historical-metrics strong { margin-top: 5px; font-size: 15px; }
.historical-explanation { margin: 16px 0 8px; color: var(--ink); font-size: 14px; line-height: 1.5; }
.historical-disclaimer { color: var(--muted); line-height: 1.4; }
.auth-card { display: flex; flex-direction: column; justify-content: center; }
.auth-value { margin: 8px 0 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.sportsbook-onboarding { max-width: 600px; margin: 24px auto; }
.sportsbook-onboarding label { display: block; margin-top: 18px; color: var(--muted); font-size: 12px; font-weight: 700; }
.sportsbook-onboarding select { margin-top: 7px; }
.sportsbook-onboarding #onboarding-skip { margin-top: 12px; }
/* After the first visit the hero collapses to just the Pregame IQ wordmark, so
 * the app opens on the section you're in rather than a tall title block. */
body.hero-compact .hero { padding: 16px 2px 6px; }
body.hero-compact .hero h1,
body.hero-compact .hero p { display: none; }
body.hero-compact .hero .hero-create-account,
body.hero-compact .hero .hero-login,
body.hero-compact .hero .sport-data-grid,
body.hero-compact .hero .hero-bottom-action { display: none; }
body.hero-compact main { width: min(1120px, 100%); }
.eyebrow { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; display: flex; align-items: center; gap: 9px; }
.eyebrow span { width: 22px; height: 2px; background: var(--green); display: inline-block; }
h1 { font: 750 clamp(25px, 6vw, 38px)/1.05 Georgia, serif; letter-spacing: -.04em; margin: 12px 0; }
h1 em { color: var(--pos); font-weight: 400; }
.hero p { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 560px; }
.hero p.hero-supporting { margin-top: 8px; max-width: 760px; font-size: 14px; }
h2 { margin: 5px 0 0; font-size: 23px; letter-spacing: -.025em; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 20px; backdrop-filter: blur(18px); box-shadow: 0 20px 55px rgba(0,0,0,.18); }
.gate label, .selectors label { display: block; color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.password-toggle { display: flex !important; align-items: center; gap: 7px; margin: 9px 0 14px !important; width: fit-content; cursor: pointer; }
.password-toggle input { width: 16px; height: 16px; margin: 0; accent-color: var(--lime); }
.link-button { min-height: auto; margin-top: 13px; padding: 0; border-radius: 0; background: transparent; color: var(--green); font-size: 13px; text-decoration: underline; }
.field-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
input, select { width: 100%; border: 1px solid var(--line); background: var(--input-bg); color: var(--ink); border-radius: 12px; padding: 14px; font: inherit; }
input:focus, select:focus, button:focus-visible, .upload-button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
button { border: 0; border-radius: 12px; background: var(--lime); color: var(--btn-ink); padding: 0 18px; font-weight: 850; cursor: pointer; min-height: 48px; }
button:active { transform: translateY(1px); }
button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.hint, .status { color: var(--muted); font-size: 13px; }
.hint { margin: 12px 0 0; }
.toolbar { display: flex; justify-content: space-between; align-items: end; margin: 12px 2px 18px; }
.bet-ledger { margin-bottom: 18px; }
.ledger-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ledger-controls, .ledger-actions { display: flex; align-items: center; gap: 10px; }
.ledger-actions { justify-content: space-between; }
.record-summary small { display: block; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.compact-record { display: block; margin-top: 3px; color: var(--pos); font-size: 22px; white-space: nowrap; }
.ledger-actions .hint { margin: 0; }
.ledger-section-title { color: var(--green); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin: 18px 0 0; }
.ledger-section-title span { color: var(--muted); }
.lifetime-block { margin-top: 26px; padding-top: 4px; border-top: 1px solid var(--line); }
.pending-block, .completed-block { margin-top: 0; }
.lifetime-overview { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.lifetime-overview .metric { padding: 12px; }
.lifetime-overview .profit { color: var(--pos); }
.lifetime-overview .loss { color: var(--red); }
.bet-list-tabs { display: flex; gap: 6px; margin-top: 22px; border-bottom: 1px solid var(--line); }
.bet-list-tab { min-height: 40px; padding: 0 12px; border-radius: 10px 10px 0 0; background: transparent; color: var(--muted); }
.bet-list-tab.active { color: var(--green); box-shadow: inset 0 -2px var(--green); }
.bet-list-tab span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; padding: 0 5px; border-radius: 999px; background: var(--sunken-bg); font-size: 11px; }
.detail-toggle { min-height: 36px; margin-top: 10px; padding: 0 12px; font-size: 12px; }
.bet-empty-state { margin-top: 20px; padding: 28px 20px; border: 1px dashed var(--line); border-radius: 16px; text-align: center; background: var(--sunken-bg); }
.bet-empty-state h3 { margin: 0; }
.bet-empty-state p { margin: 8px auto 18px; max-width: 460px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.bet-empty-state > div { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
/* Collapsed pending list: keep only the first few open bets on screen. */
.bet-list.pending-collapsed > .bet-row:nth-child(n+4) { display: none; }
#toggle-pending-bets { margin-top: 12px; }
.lifetime-results { margin-top: 10px; padding-top: 1px; }
.danger { color: var(--red); border-color: rgba(239, 112, 112, .45); margin-top: 18px; }
.danger-solid { background: var(--red); color: #fff; }
.clear-history-confirmation { margin-top: 12px; padding: 14px; border: 1px solid rgba(239, 112, 112, .45); border-radius: 12px; background: rgba(239, 112, 112, .08); }
.clear-history-confirmation strong { color: var(--red); }
.clear-history-confirmation p { color: var(--muted); font-size: 13px; line-height: 1.45; }
.clear-history-confirmation > div { display: flex; flex-wrap: wrap; gap: 8px; }
.ledger-summary { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
.ledger-summary .metric { padding: 12px; }
.ledger-summary .profit { color: var(--pos); }
.ledger-summary .loss { color: var(--red); }
.bet-list { display: grid; gap: 10px; margin-top: 12px; }
.bet-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card-bg); }
.bet-row small, .bet-row span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.bet-row > div:last-child { text-align: right; }
.bet-card-main > strong { display: block; margin-top: 5px; font-size: 15px; }
.bet-card-main .bet-selection { margin-top: 9px; color: var(--ink); font-weight: 750; }
.bet-card-summary { min-width: 145px; }
.bet-card-summary > strong { display: block; }
.bet-card-summary .bet-grade { margin-top: 8px; font-weight: 750; }
.bet-actions-menu { position: relative; display: inline-block; margin-top: 8px; }
.bet-actions-menu summary { display: grid; place-items: center; width: 32px; height: 28px; margin-left: auto; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); cursor: pointer; list-style: none; letter-spacing: 2px; }
.bet-actions-menu summary::-webkit-details-marker { display: none; }
.bet-actions-menu > div { position: absolute; z-index: 5; top: 34px; right: 0; display: grid; gap: 4px; min-width: 170px; padding: 6px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
.bet-actions-menu button { min-height: 34px; padding: 4px 9px; text-align: left; font-size: 11px; }
.bet-actions-menu .remove-bet { color: var(--red); }
.bet-edit-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-width: min(360px, 48vw); }
.bet-edit-fields label { color: var(--muted); font-size: 11px; text-align: left; }
.bet-edit-fields input { padding: 8px; margin-top: 4px; }
.bet-edit-fields > div { grid-column: 1 / -1; display: flex; justify-content: end; gap: 6px; }
.bet-edit-fields button { min-height: 34px; padding: 4px 12px; }
.bet-breakdown { margin: 18px 0; overflow-x: auto; }
.bet-breakdown h3 { color: var(--green); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.breakdown-row { display: grid; grid-template-columns: minmax(88px, 1.4fr) repeat(6, minmax(58px, 1fr)); gap: 8px; align-items: center; min-width: 620px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.breakdown-row span, .breakdown-row small { color: var(--muted); }
.breakdown-row .profit { color: var(--pos); }
.breakdown-row .loss { color: var(--red); }
.breakdown-header { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.bet-grade { text-transform: capitalize; }
.bet-grade.win { color: var(--pos); }
.bet-grade.loss { color: var(--red); }
.empty-ledger { margin-bottom: 0; }
.bet-outcome { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.bet-margin { font-style: normal; font-weight: 600; color: var(--muted); }
.bet-margin.win { color: var(--pos); }
.bet-margin.loss { color: var(--red); }
.bet-deeper-stats-wrap { margin: 4px 0 8px; overflow-x: auto; }
details.bet-deeper-stats > summary { cursor: pointer; color: var(--green); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 0; }
details.bet-deeper-stats .hint { margin: 6px 0 10px; }
details.bet-deeper-stats .breakdown-row { grid-template-columns: minmax(120px, 1.6fr) repeat(4, minmax(58px, 1fr)) 74px; min-width: 520px; }
.toolbar-actions { display: flex; align-items: center; gap: 10px; }
.account-email { color: var(--muted, #7c8a85); font-size: 0.85rem; overflow-wrap: anywhere; }
.app-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin: 0 2px 18px; }
.view-switcher { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 15px; background: var(--switcher-bg); }
.view-tab { min-height: 40px; min-width: 84px; padding: 0 14px; color: var(--muted); background: transparent; }
.view-tab.active { color: var(--btn-ink); background: var(--lime); box-shadow: 0 6px 20px rgba(0, 0, 0, .12); }
.workspace { animation: workspace-in .2s ease-out; }
.icon-button { display: inline-grid; place-items: center; width: 40px; min-width: 40px; padding: 0; color: var(--green); }
.icon-button.active { color: var(--btn-ink); background: var(--lime); border-color: transparent; }
.settings-field { display: block; margin-top: 20px; color: var(--muted); font-size: 12px; font-weight: 700; }
.settings-field:first-child { margin-top: 0; }
.settings-field select { margin-top: 8px; }
.settings-sports { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.settings-sports legend { padding: 0 6px; }
.settings-check { display: flex; align-items: center; gap: 9px; margin-top: 10px; color: var(--ink); font-weight: 600; text-transform: none; letter-spacing: normal; cursor: pointer; }
.settings-check input { width: 17px; height: 17px; margin: 0; accent-color: var(--lime); }
/* Account row (email + log out) inside Settings — the only place the signed-in
 * email is shown. */
.settings-account { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.settings-account-label { color: var(--muted); }
.settings-account .account-email { color: var(--ink); font-size: 0.95rem; font-weight: 700; }
.settings-account #logout { margin-left: auto; }
.optional { font-weight: 400; text-transform: none; letter-spacing: normal; color: var(--muted); }
.ledger-action-buttons { display: flex; gap: 8px; }
.manual-bet-form { margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--sunken-bg); }
.manual-bet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.manual-bet-grid label { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.manual-bet-grid input, .manual-bet-grid select { margin-top: 6px; padding: 11px; }
.manual-bet-grid .manual-full { grid-column: 1 / -1; }
.manual-bet-actions { display: flex; gap: 8px; }
.manual-bet-actions .primary { width: auto; }
.edit-status-field { grid-column: 1 / -1; }
@keyframes workspace-in { from { opacity: .5; transform: translateY(3px); } to { opacity: 1; transform: none; } }
#bet-sport-filter { width: auto; min-width: 110px; padding: 9px 30px 9px 11px; font-size: 12px; }
.nfl-week-actions label { color: var(--muted); font-size: 12px; font-weight: 750; }
.nfl-week-actions select { width: auto; padding: 10px 32px 10px 12px; }
.nfl-slate-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 12px; margin-top: 14px;
}
.nfl-slate-row {
  display: flex; flex-direction: column; gap: 9px; width: 100%; text-align: left;
  background: var(--card-bg); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 16px; font: inherit; color: inherit; cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.nfl-slate-row:hover { border-color: var(--green); transform: translateY(-1px); }
/* .nfl-slate-row is a <div> for a trackable row (it holds the nav button
 * plus the separate Track control as siblings -- a <button> can't contain
 * another <button>) but stays a plain clickable <button> for the other two
 * branches, so the interactive/hover styles above apply there directly; here
 * they're re-targeted at the nested nav button instead. */
.nfl-slate-row-trackable { cursor: default; }
.nfl-slate-row-trackable:hover { border-color: var(--line); transform: none; }
.nfl-slate-row-trackable:has(.nfl-slate-row-nav:hover) { border-color: var(--green); transform: translateY(-1px); }
.nfl-slate-row-trackable .nfl-slate-row-nav {
  display: flex; flex-direction: column; gap: 9px; width: 100%; text-align: left;
  background: none; border: none; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer;
}
.nfl-slate-track { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 2px; }
.nfl-slate-track-toggle {
  width: 100%; background: none; border: 1px dashed var(--line); border-radius: 999px;
  padding: 5px 10px; font-size: 11px; font-weight: 700; color: var(--muted); cursor: pointer;
}
.nfl-slate-track-toggle:hover { border-color: var(--green); color: var(--green); }
.nfl-slate-track-side, .nfl-slate-track-price, .nfl-slate-track-stake {
  padding: 6px 8px; font-size: 12px; border-radius: 8px;
}
.nfl-slate-track-side { flex: 1 1 96px; }
.nfl-slate-track-price { width: 84px; }
.nfl-slate-track-stake { width: 64px; }
.nfl-slate-track-save {
  flex: 0 0 auto; padding: 6px 10px; font-size: 11px; font-weight: 700;
  background: var(--sunken-bg); border: 1px solid var(--line); border-radius: 8px;
  color: inherit; cursor: pointer;
}
.nfl-slate-track-save:hover { border-color: var(--green); color: var(--green); }
.nfl-slate-track-status { flex-basis: 100%; margin: 0; }
.nfl-slate-matchup { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.nfl-slate-matchup strong { font-size: 14px; }
.nfl-slate-kickoff { flex: 0 0 auto; color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.nfl-slate-pick { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nfl-slate-pick-team { font-size: 16px; font-weight: 800; }
.nfl-slate-pick-pct {
  flex: 0 0 auto; padding: 4px 10px; border-radius: 999px;
  background: var(--sunken-bg); color: var(--green); font-size: 12px; font-weight: 800;
}
.nfl-slate-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.nfl-slate-badge {
  flex: 0 0 auto; padding: 3px 9px; border-radius: 999px; font-size: 10px;
  font-weight: 900; letter-spacing: .05em; text-transform: uppercase;
}
.nfl-slate-badge.final { background: rgba(112, 176, 255, .15); color: #70b0ff; }
.nfl-slate-badge.partial { background: rgba(255, 194, 77, .18); color: var(--pos); }
.nfl-slate-row-final { background: var(--sunken-bg); }
.nfl-slate-final-score { font-size: 17px; font-weight: 800; }
.nfl-slate-grade { flex: 0 0 auto; font-size: 11px; font-weight: 850; letter-spacing: .03em; text-transform: uppercase; }
.nfl-slate-grade.correct { color: var(--green); }
.nfl-slate-grade.missed { color: var(--red); }
.nfl-matchup-picker { margin: 14px 0; }
.nfl-matchup-picker > label { display: block; color: var(--muted); font-size: 12px; font-weight: 750; }
.nfl-matchup-picker select { margin-top: 10px; font-size: 15px; }
.nfl-matchup-picker .hint { margin-bottom: 0; }
.step-number { display: inline-grid; place-items: center; width: 23px; height: 23px; margin-right: 6px; border-radius: 50%; background: var(--lime); color: var(--btn-ink); font-size: 12px; font-weight: 900; }
.nfl-data-receipt { margin: 14px 0; }
.nfl-receipt-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.nfl-receipt-header h2 { margin: 8px 0 0; }
.receipt-time { flex: 0 0 auto; color: var(--muted); font-size: 11px; }
.nfl-receipt-summary > p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.nfl-receipt-summary > p strong { color: var(--ink); }
.nfl-receipt-caveats { padding-left: 11px; border-left: 3px solid var(--red); }
.nfl-data-details { margin-top: 15px; border-top: 1px solid var(--line); }
.nfl-data-details > summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0 0; color: var(--green); cursor: pointer; font-size: 13px; font-weight: 750; }
.nfl-data-details > summary span { color: var(--muted); font-size: 12px; font-weight: 500; }
.nfl-timing-guide { margin: 16px 0; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--card-bg); }
.nfl-timing-guide.best_window { border-color: rgba(127, 242, 157, .45); }
.nfl-timing-guide.waiting { border-color: rgba(255, 194, 77, .45); }
.nfl-timing-summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.nfl-timing-summary small { display: block; color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.nfl-timing-summary strong { display: block; margin-top: 4px; font-size: 15px; }
.nfl-timing-summary > span { flex: 0 0 auto; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.nfl-timing-guide.best_window .nfl-timing-summary > span { border-color: rgba(127, 242, 157, .4); color: var(--green); }
.nfl-timing-guide.waiting .nfl-timing-summary > span { border-color: rgba(255, 194, 77, .5); color: var(--pos); }
.nfl-timing-guide > p { margin: 8px 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.nfl-timing-list { margin-top: 12px; border-top: 1px solid var(--line); }
.nfl-timing-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.nfl-timing-row strong, .nfl-timing-row small { display: block; }
.nfl-timing-row strong { font-size: 12px; }
.nfl-timing-row small { margin-top: 3px; max-width: 62ch; color: var(--muted); font-size: 12px; line-height: 1.4; }
.nfl-timing-row > div:last-child { min-width: 130px; text-align: right; }
.nfl-timing-row span { display: block; font-size: 11px; font-weight: 750; }
.timing-confidence { display: inline-block; margin-top: 4px; color: var(--muted); font-size: 11px; font-style: normal; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.timing-confidence.high { color: var(--green); }
.timing-confidence.medium { color: var(--pos); }
.timing-confidence.low { color: var(--red); }
.nfl-timing-refresh { margin-top: 11px !important; }
.nfl-timing-caveat { font-size: 12px !important; }
.nfl-data-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.nfl-data-legend span { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.nfl-data-legend .used { border-color: rgba(127, 242, 157, .4); color: var(--green); }
.nfl-data-legend .shadow { border-color: rgba(112, 176, 255, .4); color: #70b0ff; }
.nfl-data-legend .needed { border-color: rgba(239, 112, 112, .4); color: var(--red); }
.nfl-data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.nfl-data-item { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--sunken-bg); }
.nfl-data-item.used { border-left: 3px solid var(--green); }
.nfl-data-item.shadow { border-left: 3px solid #70b0ff; }
.nfl-data-item.needed, .nfl-data-item.missing, .nfl-data-item.unverified, .nfl-data-item.neutral { border-left: 3px solid var(--red); }
.nfl-data-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.nfl-data-heading strong { font-size: 13px; }
.data-status { flex: 0 0 auto; color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .05em; text-align: right; text-transform: uppercase; }
.nfl-data-item.used .data-status { color: var(--green); }
.nfl-data-item.shadow .data-status { color: #70b0ff; }
.nfl-data-item.missing .data-status, .nfl-data-item.unverified .data-status, .nfl-data-item.neutral .data-status { color: var(--red); }
.nfl-data-item p { margin: 8px 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.nfl-data-item small { display: block; color: var(--muted); font-size: 12px; line-height: 1.45; }
.nfl-data-item small strong { color: var(--ink); }
.nfl-data-item .data-detail { margin-top: 5px; }
.nfl-game-topline { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.nfl-game-topline small { margin: 0; }
.readiness { border: 1px solid var(--line); border-radius: 999px; padding: 4px 7px; color: var(--muted); font-size: 11px; font-style: normal; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.readiness.ready { border-color: rgba(127, 242, 157, .4); color: var(--green); }
.readiness.partial { border-color: rgba(255, 194, 77, .5); color: var(--pos); }
.readiness.unavailable { border-color: rgba(239, 112, 112, .4); color: var(--red); }
.model-description { margin: 12px 0 20px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--sunken-bg); }
.model-description p { margin: 8px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.model-description .model-readiness-reason { padding-top: 8px; border-top: 1px solid var(--line); }
.model-description small { color: var(--green); line-height: 1.45; }
.nfl-model-guide-head, .model-summary-head, .nfl-training-head, .nfl-model-choice-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.nfl-model-guide-head { margin-bottom: 12px; }
.nfl-model-guide-head h3, .nfl-training-head h4 { margin: 3px 0 0; }
.nfl-model-guide-head > span { color: var(--muted); font-size: 12px; }
.nfl-model-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
button.nfl-model-choice { min-width: 0; min-height: 0; padding: 13px; border: 1px solid var(--line); background: var(--card-bg); color: var(--ink); text-align: left; box-shadow: none; }
button.nfl-model-choice:hover { border-color: var(--green); }
button.nfl-model-choice.selected { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.nfl-model-choice-head { margin-bottom: 9px; }
.nfl-model-choice-head strong { font-size: 13px; }
.nfl-model-choice > small { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.nfl-model-choice > span:not(.nfl-model-choice-head) { display: block; margin-top: 2px; color: var(--ink); font-size: 11px; font-weight: 600; line-height: 1.4; }
.nfl-selected-model-detail { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--card-bg); }
.model-summary-head strong { display: block; margin-top: 2px; font-size: 17px; }
.model-choice-answer { color: var(--ink) !important; }
.nfl-model-pro-con { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.nfl-model-pro-con > div { padding: 11px; border-radius: 11px; background: var(--sunken-bg); }
.nfl-model-pro-con h4 { margin: 0; color: var(--green); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.nfl-model-pro-con ul { margin: 8px 0 0; padding-left: 17px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.nfl-model-pro-con li + li { margin-top: 5px; }
.nfl-training-card { margin-top: 13px; padding: 14px; border-top: 1px solid var(--line); }
.nfl-training-head > span { color: var(--muted); font-size: 12px; font-weight: 750; }
.nfl-evidence-metrics, .nfl-season-history { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 11px; }
.nfl-evidence-metrics > div, .nfl-season-history > div { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-bg); }
.nfl-evidence-metrics small, .nfl-season-history small { display: block; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.nfl-evidence-metrics strong, .nfl-season-history strong { display: block; margin-top: 4px; color: var(--ink); font-size: 14px; }
.nfl-evidence-metrics span, .nfl-season-history span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.model-description .nfl-evidence-warning { margin-top: 11px; padding-left: 9px; border-left: 2px solid var(--red); font-size: 11px; }
.nfl-model-explanation p { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.nfl-model-explanation p strong { color: var(--ink); }
.nfl-primary-result h2 { margin-top: 12px; color: var(--muted); font-size: 16px; }
.nfl-result-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.nfl-result-facts > div { padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--sunken-bg); }
.nfl-result-facts small, .nfl-result-facts strong { display: block; }
.nfl-result-facts small { color: var(--muted); font-size: 12px; }
.nfl-result-facts strong { margin-top: 4px; font-size: 15px; }
.nfl-why-model { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.nfl-why-model > summary { color: var(--green); cursor: pointer; font-size: 13px; font-weight: 750; }
/* Standalone above the matchup picker -- no preceding content in its own
 * panel, so the separator border/margin that makes sense nested inside the
 * per-game report would just be a stray line at the top of the panel. */
#nfl-model-explainer > .nfl-why-model { margin-top: 0; padding-top: 0; border-top: none; }
.nfl-primary-track { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.nfl-primary-track label { color: var(--muted); font-size: 12px; font-weight: 700; }
.nfl-primary-track input { margin-top: 6px; padding: 10px; }
.nfl-primary-track .hint { margin: 0; }
.nfl-track-side-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.nfl-track-side-buttons button { flex: 1 1 auto; font-size: 12px; }
#nfl-save-bet-extra:empty { display: none; }
#nfl-save-bet-extra { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.nfl-model-comparison, .nfl-manual-odds { border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; background: var(--sunken-bg); }
.nfl-model-comparison > summary, .nfl-manual-odds > summary { padding: 11px 0; color: var(--green); cursor: pointer; font-weight: 750; }
.model-row-head > div { min-width: 0; }
.model-row-head strong, .model-row-head small { display: block; }
.model-row-head small { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.nfl-line-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 15px 0 20px; }
.nfl-line-grid label { color: var(--muted); font-size: 11px; font-weight: 750; }
.nfl-line-grid input { margin-top: 6px; }
.football-loader { width: 80px; height: 48px; margin: 0 auto 24px; border: 2px solid var(--green); border-radius: 50%; position: relative; transform: rotate(-18deg); }
.football-loader::before { content: ""; position: absolute; width: 34px; height: 2px; left: 21px; top: 21px; background: var(--lime); }
.football-loader i, .football-loader i::before, .football-loader i::after { position: absolute; width: 2px; height: 13px; background: var(--lime); }
.football-loader i { left: 38px; top: 15px; animation: football-pulse 1.2s infinite ease-in-out; }
.football-loader i::before, .football-loader i::after { content: ""; top: 0; }
.football-loader i::before { left: -8px; }.football-loader i::after { left: 8px; }
@keyframes football-pulse { 50% { opacity: .35; } }
.context-note { margin-top: 18px; padding: 13px 15px; border-left: 3px solid var(--green); border-radius: 0 12px 12px 0; background: rgba(127, 242, 157, .07); color: var(--muted); font-size: 13px; line-height: 1.5; }
.context-note strong { color: var(--ink); }
.nfl-unavailable p { color: var(--muted); line-height: 1.55; }
.nfl-unavailable .model-description { margin-top: 18px; }
.nfl-back { margin-top: 20px; }
.notice { margin: 8px 0 14px; padding: 10px 12px; border-radius: 8px;
  background: rgba(51, 173, 118, 0.12); border: 1px solid rgba(51, 173, 118, 0.4);
  color: var(--green, #33ad76); font-size: 0.9rem; line-height: 1.4; }
.ghost { background: transparent; color: var(--green); border: 1px solid var(--line); min-height: 40px; }
.tournament-picker { margin: 14px 0 18px; }
.tournament-picker label { display: block; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .12em; margin-bottom: 9px; text-transform: uppercase; }
.match-list { display: grid; gap: 10px; margin-bottom: 18px; }
.match-day-heading { color: var(--green); font-size: 11px; letter-spacing: .14em; margin: 10px 2px 0; text-transform: uppercase; }
.match-card { width: 100%; text-align: left; background: var(--card-bg); color: var(--ink); border: 1px solid var(--line); padding: 16px; min-height: auto; }
.match-card strong { display: block; font-size: 16px; }
.match-card small { color: var(--muted); display: block; margin-top: 6px; }
.match-card.active { border-color: var(--green); box-shadow: inset 3px 0 var(--green); }
.selected-title span { color: var(--green); font-size: 12px; font-weight: 700; }
.selectors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.primary { width: 100%; font-size: 15px; }
.hero-intro .hero-create-account,
.hero-bottom-action .hero-create-account { width: auto; }
.analysis-loading { text-align: center; padding: 48px 16px; }
.analysis-loading p { color: var(--muted); line-height: 1.5; }
.analysis-status:not(:empty) { margin-top: 12px; padding: 12px 14px; color: var(--red); background: rgba(239, 112, 112, .08); border: 1px solid rgba(239, 112, 112, .35); border-radius: 10px; line-height: 1.45; }
.court-loader { width: 54px; height: 78px; border: 2px solid var(--green); margin: 0 auto 24px; position: relative; }
.court-loader::before, .court-loader::after { content: ""; position: absolute; background: var(--green); }
.court-loader::before { width: 100%; height: 1px; top: 50%; left: 0; }
.court-loader::after { width: 1px; height: 100%; top: 0; left: 50%; }
.court-loader i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); position: absolute; animation: rally 1.5s infinite ease-in-out; z-index: 2; }
@keyframes rally { 0%,100% { transform: translate(7px,8px); } 50% { transform: translate(35px,58px); } }
.report-hero { padding: 24px; border-radius: 22px; background: var(--report-bg); border: 1px solid var(--line); }
.model-badge { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0,0,0,.25); color: var(--muted); font-size: 12px; }
.model-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.slate-bet-price { text-align: right; white-space: nowrap; }
#slate-results { margin-bottom: 18px; }
.slate-bulk-track {
  display: grid; grid-template-columns: minmax(120px, .75fr) minmax(180px, 1fr) minmax(220px, 1.25fr);
  gap: 12px; align-items: end; margin: 14px 0; padding: 14px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--sunken-bg); position: sticky; top: 8px; z-index: 5;
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
}
.slate-selection-controls { align-self: center; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.slate-selection-controls strong { font-size: 14px; }
.slate-bulk-track > label { color: var(--muted); font-size: 12px; font-weight: 700; }
.slate-bulk-track input[type="number"] { margin-top: 6px; padding: 10px; }
.slate-bulk-action { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 6px 10px; align-items: center; }
.slate-bulk-action .primary { width: auto; grid-row: 1 / span 2; }
.slate-bulk-action small { color: var(--muted); line-height: 1.35; }
.slate-bet-select { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.slate-bet-select input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--lime); flex: 0 0 auto; }
.slate-bet-select input:disabled { cursor: not-allowed; opacity: .45; }
.slate-bet-stake {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  margin-top: 10px; color: var(--muted); font-size: 12px; font-weight: 700;
}
.slate-bet-stake input { width: 90px; padding: 8px 10px; font-size: 13px; font-weight: 400; }
.model-badge strong { color: var(--pos); font-weight: 700; }
.report-hero .winner { color: var(--pos); font: 700 34px/1.1 Georgia, serif; margin: 8px 0 4px; }
.probability { font-size: 14px; color: var(--muted); }
.heading-with-tip { display: flex; align-items: center; gap: 7px; }
.info-tip {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px;
  margin: -13px; border: 0; color: var(--green); font-size: 0;
  font-weight: 850; line-height: 1; cursor: help; vertical-align: middle; text-transform: none;
  letter-spacing: normal; min-height: 44px; padding: 0; background: transparent;
}
.info-tip::before { content: "?"; display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid currentColor; border-radius: 50%; font-size: 11px; }
.info-tip::after {
  content: attr(data-tooltip); position: absolute; z-index: 10; left: 50%; bottom: calc(100% + 9px);
  width: min(260px, calc(100vw - 52px)); padding: 9px 11px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--tooltip-bg); color: var(--tooltip-ink); box-shadow: 0 12px 30px rgba(0,0,0,.35);
  font-size: 12px; font-weight: 600; line-height: 1.4; text-align: left;
  transform: translateX(calc(-50% + var(--tip-shift, 0px)));
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s ease;
}
.info-tip:hover::after, .info-tip:focus::after, .info-tip:focus-visible::after, .info-tip.open::after { opacity: 1; visibility: visible; }
.nfl-plain-summary { margin: 10px 0 14px; font-size: 15px; line-height: 1.5; }
.nfl-prob-compare { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; }
.nfl-prob-row { display: flex; align-items: center; gap: 10px; }
.nfl-prob-label { flex: 0 0 84px; color: var(--muted); font-size: 12px; font-weight: 700; }
.nfl-prob-track { flex: 1 1 auto; height: 10px; border-radius: 999px; background: var(--sunken-bg); border: 1px solid var(--line); overflow: hidden; }
.nfl-prob-fill { height: 100%; border-radius: 999px; }
.nfl-prob-fill--model { background: var(--lime); }
.nfl-prob-fill--market { background: var(--muted); }
.nfl-prob-value { flex: 0 0 50px; text-align: right; font-weight: 700; font-size: 13px; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 0; }
.metric { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.metric small { color: var(--muted); display: block; margin-bottom: 7px; }
.metric strong { font-size: 20px; }
.metric > span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.prediction-context { margin: 12px 0; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 14px; background: var(--panel); }
.prediction-context.caution { border-left-color: var(--red); }
.prediction-context-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.prediction-context-grid > div { padding: 10px 12px; border-radius: 11px; background: var(--sunken-bg); }
.prediction-context small, .prediction-context strong { display: block; }
.prediction-context small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.prediction-context strong { margin-top: 4px; font-size: 16px; }
.prediction-context p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.matchup-outlook-label { display: inline-block; margin: 8px 0 10px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--green); font-size: 12px; font-weight: 750; }
.evidence-summary > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.evidence-summary span { display: block; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--sunken-bg); }
.evidence-summary small, .evidence-summary strong { display: block; }
.evidence-summary small { margin-bottom: 5px; color: var(--muted); font-size: 12px; }
.evidence-summary strong { font-size: 14px; line-height: 1.35; }
.model-method-details > .section:first-of-type { margin-top: 10px; }
.section { margin-top: 22px; }
.section h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--green); }
.model-row-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.model-row-head .hint { margin: 0 0 0 auto; }
.model-row-odds { margin-top: 14px; }
.track-bet-row { margin-top: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.driver, .market-row, .profile-row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 12px 0; }
.driver span:last-child, .market-row span:last-child { color: var(--pos); text-align: right; }
.market-row.negative span:last-child { color: var(--red); }
.upload-button { display: block; width: 100%; margin-top: 14px; border-radius: 12px; background: var(--lime); color: var(--btn-ink); padding: 15px 18px; font-weight: 850; text-align: center; cursor: pointer; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.odds-preview { display: block; width: min(100%, 360px); max-height: 420px; object-fit: contain; margin: 14px auto; border: 1px solid var(--line); border-radius: 14px; background: var(--input-bg); }
.confirm-copy { color: var(--muted); line-height: 1.5; }
.odds-edit-grid { display: grid; gap: 12px; margin: 14px 0; }
.odds-edit-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--sunken-bg); }
.odds-edit-row input, .odds-edit-row select { padding: 10px; min-width: 0; }
.odds-edit-row small { grid-column: 1 / -1; color: var(--muted); }
.remove-odds { min-height: 42px; }
.extraction-warning { color: #ffd0c8; background: rgba(102, 34, 27, .35); border: 1px solid rgba(255, 142, 125, .28); border-radius: 12px; padding: 12px; line-height: 1.45; }
/* Paper is light: the translucent dark-red fill would composite to ~1:1 over
   the white panel, so give warnings a light, opaque background and dark text. */
html[data-theme="paper"] .extraction-warning { color: #7a1f16; background: #ffe4df; border-color: rgba(122, 31, 22, .3); }
.extraction-warning ul { margin-bottom: 0; padding-left: 20px; }
#value-results { margin-top: 22px; }
.odds-result-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.odds-result-heading h3, .odds-result-heading p { margin-top: 0; }
.detected-odds { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 12px 0 18px; }
.detected-odds > small { color: var(--muted); display: block; margin-bottom: 6px; }
.detected-odd { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; text-transform: capitalize; }
.value-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-top: 9px; background: var(--card-bg); }
.value-card > div:nth-child(2) { text-align: right; }
.value-card strong, .value-card small { display: block; }
.value-card small { color: var(--muted); margin-bottom: 4px; }
.value-explanation { grid-column: 1 / -1; color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; }
.track-bet { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; border-top: 1px solid var(--line); padding-top: 12px; }
.track-bet label { color: var(--muted); font-size: 12px; font-weight: 700; }
.track-bet input { margin-top: 6px; padding: 10px; }
.track-bet button { min-height: 42px; }
.track-note { grid-column: 1 / -1; color: var(--red); }
.value-card.positive { border-color: rgba(127, 242, 157, .5); box-shadow: inset 3px 0 var(--green); }
.value-card.positive > div:nth-child(2) strong { color: var(--pos); }
.value-card.negative > div:nth-child(2) small { color: var(--red); }
.pill { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 6px 9px; color: var(--muted); font-size: 11px; }
.risks { padding-left: 20px; color: var(--muted); line-height: 1.55; }
/* One-sentence explainer shown under a section headline. */
.section-lead { margin: 6px 0 0; max-width: 60ch; color: var(--muted); font-size: 13px; line-height: 1.5; }
.hidden { display: none !important; }
footer { color: var(--muted); font-size: 11px; text-align: center; margin-top: 36px; }
@media (min-width: 640px) {
  main { padding-left: 24px; padding-right: 24px; }
  .metric-grid { grid-template-columns: repeat(4, 1fr); }
  .odds-edit-row { grid-template-columns: 1.2fr 1.5fr 1fr .7fr .8fr auto; align-items: center; }
}
@media (max-width: 520px) {
  .app-nav { align-items: flex-start; }
  .app-nav .toolbar-actions { flex-direction: column; align-items: flex-end; }
  .view-tab { min-width: 64px; padding: 0 10px; }
  #theme-select { min-width: 0; }
  .nfl-week-actions { align-items: end; flex-wrap: wrap; justify-content: flex-end; }
  .nfl-data-grid { grid-template-columns: 1fr; }
  .nfl-receipt-header { flex-direction: column; }
  .nfl-timing-summary { flex-direction: column; }
  .nfl-timing-row { grid-template-columns: 1fr; }
  .nfl-timing-row > div:last-child { text-align: left; }
  .nfl-model-choice-grid, .nfl-model-pro-con { grid-template-columns: 1fr; }
  .nfl-evidence-metrics { grid-template-columns: 1fr; }
  .nfl-line-grid { grid-template-columns: 1fr; }
  .nfl-data-details > summary { align-items: flex-start; flex-direction: column; }
  .evidence-summary > div { grid-template-columns: 1fr; }
  .forecast-metrics .metric:last-child { grid-column: 1 / -1; }
  .manual-bet-grid { grid-template-columns: 1fr; }
  .bet-row { grid-template-columns: 1fr; }
  .bet-row > div:last-child { text-align: left; }
  .bet-edit-fields { min-width: 0; }
  .ledger-actions { align-items: start; flex-direction: column; }
  .ledger-heading { align-items: stretch; flex-direction: column; }
  .ledger-controls { align-items: center; flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
}

@media (max-width: 720px) {
  .hero-intro { display: block; }
  .hero-account-actions { display: grid; justify-items: center; gap: 0; margin-top: 14px; }
  .hero-intro .hero-create-account { width: 100%; margin-top: 14px; }
  .hero-account-actions .hero-create-account { margin-top: 0; }
  .hero-account-actions .hero-login { margin-top: 12px; }
  .sport-data-grid, .signup-stage { grid-template-columns: 1fr; }
  .sport-data-card { padding: 18px; }
  .hero-bottom-action .hero-create-account { width: 100%; }
  .historical-example h2 { font-size: 23px; }
  .historical-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 640px) {
  .forecast-metrics { grid-template-columns: repeat(3, 1fr); }
}

/* ------------------------------------------------------------------ *
 * Pregame IQ UX refresh: educational analysis, descriptive states,
 * My Bets relocation, mobile bottom navigation.
 * ------------------------------------------------------------------ */

/* Forecast hero: both players' win probabilities. */
.win-split { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 6px 0 4px; font-size: 15px; color: var(--muted); }
.win-split strong { color: var(--ink); }
.win-split-dot { color: var(--line); }

/* (2) 80/20 blend table. */
.blend-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
.blend-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.blend-table th:last-child, .blend-table td:last-child { text-align: right; }
.blend-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.blend-table td small { color: var(--muted); font-size: 11px; }
.blend-table tr.blend-final td { font-weight: 750; color: var(--ink); border-bottom: none; }

/* (3) Two-directional evidence. */
.evidence-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 6px; }
.evidence-col { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--sunken-bg); }
.evidence-col h4 { margin: 0 0 6px; font-size: 13px; }
.evidence-col.supports { box-shadow: inset 3px 0 var(--green); }
.evidence-col.competitive { box-shadow: inset 3px 0 var(--muted); }
.evidence-list { margin: 0; padding-left: 18px; }
.evidence-list li { padding: 3px 0; }

/* (4) Totals & spread. */
.estimate-block { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 9px; background: var(--sunken-bg); }
.estimate-headline { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.estimate-headline span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.estimate-headline strong { font-size: 17px; }
.estimate-block p { margin: 8px 0 0; }
.range-note { color: var(--muted); font-size: 12px; }

/* (8) Three confidence dimensions. */
.confidence-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 4px; }
.confidence-dim { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--card-bg); }
.confidence-dim small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.confidence-dim strong { font-size: 15px; }
.confidence-dim.strong strong, .confidence-dim.complete strong, .confidence-dim.high strong { color: var(--pos); }
.confidence-dim.low strong, .confidence-dim.limited strong { color: var(--red); }

/* (5,6) Descriptive states on market-comparison cards. */
.value-card.state-positive, .value-card.state-warn, .value-card.state-neutral { display: block; grid-template-columns: none; }
.value-card.state-positive { border-color: rgba(127, 242, 157, .5); box-shadow: inset 3px 0 var(--green); }
.value-card.state-warn { box-shadow: inset 3px 0 var(--red); }
.value-card.state-neutral { box-shadow: inset 3px 0 var(--muted); }
.value-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.value-card-head strong { display: block; }
.value-card-numbers { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 4px; font-size: 12px; color: var(--muted); }
.value-card-numbers strong { color: var(--ink); font-weight: 700; }
.value-explanation { margin: 8px 0 0; font-size: 13px; line-height: 1.5; }
.failed-criteria { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 12px; }

/* Descriptive state pill. */
.state-pill { display: inline-block; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; font-size: 11px; font-weight: 650; color: var(--muted); }
.state-pill.positive { color: var(--btn-ink); background: var(--lime); border-color: transparent; }
.state-pill.warn { color: var(--red); border-color: var(--red); }
.state-pill.neutral { color: var(--muted); }

/* (7) Best Bet criteria + advanced details disclosure. */
.criteria-section, .advanced-details, .nfl-manual-odds { border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; background: var(--sunken-bg); }
.criteria-section summary, .advanced-details summary { cursor: pointer; font-weight: 700; padding: 10px 0; color: var(--green); }
.criteria-list { margin: 4px 0 8px; padding-left: 18px; }
.criteria-list li { padding: 3px 0; }

/* Empty states (Best Bets, NFL coming soon). */
.empty-state { border: 1px dashed var(--line); border-radius: 12px; padding: 18px; text-align: center; background: var(--sunken-bg); }
.empty-state strong { display: block; margin-bottom: 6px; }
.empty-state p { margin: 0; color: var(--muted); }

/* (12) Best Bets controls share one aligned row and wrap together on narrow screens.
 * flex-end (not center): the NFL fields stack a label above their select, so
 * centering against the plain sport-switcher pill left the pill sitting
 * noticeably lower than the "Week"/"Sportsbook" labels and its own selects.
 * flex-end keeps every select and the pill level at the row's baseline, with
 * the labels naturally above it. */
.best-bets-filter-region { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.best-bets-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; }
/* Best Bets day selector (Today / Tomorrow). */
.day-filter { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--switcher-bg); }
.day-filter-tab { min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--muted); background: transparent; border: none; cursor: pointer; font: inherit; }
.day-filter-tab.active { color: var(--btn-ink); background: var(--lime); }
#slate-scan { min-height: 46px; white-space: nowrap; }
.best-bets-scan { width: auto; }
.coming-soon-note { color: var(--muted); font-size: 12px; }
.slate-model-note strong { color: var(--ink); }
/* Best Bets sport switcher (Tennis / NFL) -- same pill-tab look as the day filter. */
.bets-sport-switcher { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--switcher-bg); }
.bets-sport-tab { min-height: 44px; padding: 0 16px; border-radius: 999px; color: var(--muted); background: transparent; border: none; cursor: pointer; font: inherit; }
.bets-sport-tab.active { color: var(--btn-ink); background: var(--lime); }
.nfl-bets-field { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.nfl-bets-field select { min-width: 150px; }
#nfl-bets-scan { min-height: 46px; white-space: nowrap; align-self: flex-end; }
.nfl-best-bet-card { margin-top: 16px; }
.nfl-best-bet-stake { width: 130px; border: 1px solid var(--line); background: var(--input-bg); color: var(--ink); border-radius: 12px; padding: 10px; font: inherit; }

/* (9) Compact My Bets shortcut on content views. */
.bets-shortcut { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-bg); color: var(--ink); cursor: pointer; font: inherit; text-align: left; }
.bets-shortcut:hover { border-color: var(--green); }
.bets-shortcut-go { color: var(--green); font-weight: 700; white-space: nowrap; }
.ledger-title { margin: 0; font-size: 15px; }

/* (10) Mobile bottom navigation. Hidden on desktop, where the top view-switcher
 * is used instead. (No persistent primary-action button — each screen's action
 * lives in its own toolbar.) */
.mobile-dock { display: none; }
.bottom-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.bottom-nav-item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 56px; padding: 6px 2px; border: none; background: transparent; color: var(--muted);
  font: inherit; cursor: pointer;
}
.bottom-nav-item.active { color: var(--green); background: var(--sunken-bg); }
.bottom-nav-item.active::after { content: ""; position: absolute; top: 2px; width: 22px; height: 3px; border-radius: 999px; background: var(--green); }
.bottom-nav-icon { display: grid; place-items: center; width: 22px; height: 22px; line-height: 1; }
.bottom-nav-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bottom-nav-label { font-size: 11px; }
.mobile-prediction-action { padding: 6px 0 8px; }
.mobile-prediction-action .primary { width: 100%; }
.nfl-report-sidebar { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.nfl-report-sidebar .nfl-result-facts { margin-top: 0; }

@media (min-width: 800px) {
  #report:not(.hidden), #nfl-report:not(.hidden) {
    display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, .85fr);
    gap: 16px 22px; align-items: start;
  }
  #report > .report-hero, #report > .forecast-metrics, #report > .evidence-summary,
  #report > .odds-upload, #nfl-report > .report-hero, #nfl-report > .nfl-projection,
  #nfl-report > .model-row-odds, #nfl-report > .nfl-manual-odds, #nfl-report > .nfl-back { grid-column: 1; }
  #report > .prediction-context, #nfl-report > .report-sidebar {
    grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 16px; margin-top: 0;
  }
  #report > .report-disclosures { grid-column: 1 / -1; margin-top: 6px; }
  .report-disclosures { padding-top: 10px; border-top: 1px solid var(--line); }
  .report-disclosures > .criteria-section,
  .report-disclosures > .advanced-details {
    border-width: 0 0 1px; border-radius: 0; padding-inline: 0; background: transparent;
  }
  .forecast-metrics .metric, .evidence-summary span { border-color: transparent; }
}

@media (max-width: 720px) {
  /* Show the nav dock, fixed above the safe area, and keep content clear of it.
   * Clearance covers the nav (52) + padding (16) with headroom. */
  main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  body:has(#mobile-prediction-action:not(.hidden)) main { padding-bottom: calc(152px + env(safe-area-inset-bottom)); }
  .mobile-dock {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 6px 14px calc(6px + env(safe-area-inset-bottom));
    background: var(--panel); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  /* The four top tabs are redundant with the bottom dock on mobile — hide them
   * so navigation lives only at the bottom, and let the settings gear sit alone
   * in the upper right. */
  .app-nav .view-switcher { display: none; }
  .app-nav { justify-content: flex-end; }
  .best-bets-filter-region { display: grid; grid-template-columns: 1fr; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--sunken-bg); }
  .bets-sport-switcher, .day-filter { width: 100%; }
  .bets-sport-tab, .day-filter-tab { flex: 1; }
  .best-bets-controls { display: grid; grid-template-columns: 1fr; width: 100%; }
  .best-bets-scan, #nfl-bets-scan { width: 100%; }
  #analyze, #nfl-analyze { width: 100%; }
  .section-lead, .analysis-loading p, .prediction-context p, .odds-upload > .hint,
  .empty-state p, .manual-bet-form > .hint, .sportsbook-onboarding > .hint {
    font-size: 15px; line-height: 1.55;
  }
  .slate-bulk-track { position: static; grid-template-columns: 1fr; }
  .slate-bulk-action { grid-template-columns: 1fr; }
  .slate-bulk-action .primary { width: 100%; grid-row: auto; }
}
@media (min-width: 721px) {
  /* On desktop the bottom dock is unused; the top tabs remain the nav. */
  .mobile-dock { display: none !important; }
}

/* Two-column evidence on wider screens. */
@media (min-width: 560px) {
  .evidence-grid { grid-template-columns: 1fr 1fr; }
}
