:root {
  --bg: #001E2E;
  --navy: #013047;
  --card: #062B40;
  --card-deep: #04233A;
  --line: #1B4A63;
  --grid: #2B5470;
  --text: #FFFFFF;
  --soft: #B9D3E0;
  --muted: #9DB8C8;
  --d: #8FCAE5;
  --r: #FF9A92;
  --gold: #FDB614;
  --col-likely-d: #4A90D9;
  --col-lean-d: #8FCAE5;
  --col-toss: #FDB614;
  --col-lean-r: #FF9A92;
  --col-likely-r: #E05050;
  --font: 'Barlow', Arial, Helvetica, sans-serif;
  --cond: 'Barlow Condensed', 'Barlow', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.4; }
a { color: var(--d); }
a:hover { color: var(--text); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 1440px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* Masthead */
.masthead { background: var(--navy); border-bottom: 1px solid var(--line); }
.masthead__inner { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.masthead__intro { display: flex; flex-direction: column; gap: 10px; flex: 1 1 480px; min-width: 0; }
.brandline { display: flex; align-items: center; gap: 12px; }
.logo { height: 28px; width: auto; }
.eyebrow { font-size: 13px; color: var(--d); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
h1 { margin: 0; font-family: var(--cond); font-weight: 800; font-size: 52px; line-height: 1; letter-spacing: -.01em; }
.dek { margin: 0; color: var(--soft); font-size: 16px; max-width: 640px; }
.chambers { display: flex; flex-wrap: wrap; gap: 12px; }
.chamber { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; min-width: 210px; display: flex; flex-direction: column; gap: 6px; }
.chamber__label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.chamber__nums { display: flex; align-items: baseline; gap: 10px; }
.chamber__d { font-family: var(--cond); font-weight: 800; font-size: 34px; color: var(--d); }
.chamber__r { font-size: 14px; color: var(--r); font-weight: 600; }
.chamber__src { font-size: 12px; color: var(--muted); }
.chamber__src strong { color: var(--text); }
.chamber__src strong.p { color: var(--gold); }
.bar { height: 6px; border-radius: 3px; background: var(--r); overflow: hidden; }
.bar__d { height: 6px; width: 50%; background: var(--d); transition: width .6s ease; }

/* Toolbar */
.toolbar { padding-top: 20px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { font-weight: 600; font-size: 15px; min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.tab[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--bg); font-weight: 700; }
.tab__n::before { content: '· '; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 13px; color: var(--soft); }
.legend__item { display: inline-flex; align-items: center; gap: 6px; }

/* Rating chips (phones only) */
.chips { display: none; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 4px; }
.chip { font-size: 14px; font-weight: 600; min-height: 44px; padding: 0 14px; border-radius: 22px; white-space: nowrap; cursor: pointer; border: 1px solid var(--line); border-left-width: 4px; background: transparent; color: var(--text); }
.chip[aria-selected="true"] { color: var(--bg); font-weight: 700; }

/* Board */
main { padding-top: 20px; padding-bottom: 32px; }
.board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 16px; align-items: start; overflow-x: auto; }
.col { display: flex; flex-direction: column; gap: 12px; min-width: 220px; }
.col__head { border-top: 4px solid var(--c); padding: 10px 2px 4px; display: flex; justify-content: space-between; align-items: baseline; }
.col__head h2 { margin: 0; font-family: var(--cond); font-weight: 700; font-size: 22px; letter-spacing: .02em; text-transform: uppercase; }
.col__n { font-size: 14px; color: var(--muted); font-weight: 600; }
.col__empty { font-size: 14px; color: var(--muted); padding: 8px 2px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.card--called { border: 2px solid var(--gold); padding-top: 0; overflow: hidden; }
.call { background: var(--gold); color: var(--bg); margin: 0 -14px; padding: 8px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.call small { font-size: 12px; font-weight: 600; text-align: right; }
.card__top { display: flex; align-items: center; gap: 8px; }
.st { font-size: 12px; font-weight: 700; letter-spacing: .06em; background: var(--navy); border: 1px solid var(--line); color: var(--soft); padding: 2px 6px; border-radius: 4px; }
.card h3 { margin: 0; font-size: 17px; font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
.tag { border: 1px solid var(--line); color: var(--soft); padding: 2px 8px; border-radius: 10px; }
.tag--cs { border-color: var(--gold); color: var(--gold); font-weight: 700; }
.matchup { font-size: 14px; color: var(--soft); }
.lead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.lead__name { font-size: 15px; font-weight: 600; }
.lead__pct { font-family: var(--cond); font-weight: 800; font-size: 34px; line-height: 1; }
.is-d { color: var(--d); }
.is-r { color: var(--r); }
.nomarket { font-size: 14px; color: var(--muted); }
.spark-wrap { position: relative; background: var(--card-deep); border-radius: 6px; padding-right: 26px; }
.spark { width: 100%; height: 48px; display: block; }
.spark__hi, .spark__lo { position: absolute; right: 4px; transform: translateY(-50%); font-size: 11px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1; }
.spark__axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: -6px; padding-right: 26px; }
.card .chg { font-size: 13px; margin-top: -4px; }
.odds { display: flex; justify-content: space-between; font-size: 13px; color: var(--soft); }
.odds strong { color: var(--text); }
.odds strong.p { color: var(--gold); }
.foot { border-top: 1px solid var(--line); padding-top: 8px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 2px 6px; }
.foot strong { color: var(--text); }
.results { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.vote { display: flex; flex-direction: column; gap: 4px; }
.vote__row { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.vote__row span:first-child { font-weight: 600; }
.vote__n { color: var(--muted); }
.vbar { height: 6px; background: var(--card-deep); border-radius: 3px; }
.vbar > div { height: 6px; border-radius: 3px; }
.vbar--d > div { background: var(--d); }
.vbar--r > div { background: var(--r); }
.reporting { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 8px; font-size: 12px; color: var(--muted); }

.empty { color: var(--soft); text-align: center; padding: 40px 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); }
.footer__inner { padding-top: 20px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 10px 32px; font-size: 13px; color: var(--muted); }

/* Winner check, favorite stars */
.win { display: inline-flex; vertical-align: -2px; margin: 0 4px; }
.win svg { width: 15px; height: 15px; }
.tvcard .win svg { width: 18px; height: 18px; }
.star { margin-left: auto; flex: none; width: 32px; height: 32px; margin-top: -6px; margin-right: -6px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; border-radius: 16px; cursor: pointer; color: var(--muted); }
.star svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.star:hover { color: var(--gold); background: var(--card-deep); }
.star.is-on { color: var(--gold); }
.star.is-on svg { fill: var(--gold); }
.tab--fav { display: inline-flex; align-items: center; gap: 6px; }
.tab--fav svg { width: 15px; height: 15px; fill: var(--gold); }
.tab--fav[aria-pressed="true"] svg { fill: var(--bg); }
.favbar { padding-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 14px; color: var(--soft); }
.favbar[hidden] { display: none; }
.inline-star { width: 14px; height: 14px; vertical-align: -2px; fill: none; stroke: var(--gold); stroke-width: 1.6; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--d); font-weight: 600; text-decoration: underline; cursor: pointer; min-height: 32px; }
.linkbtn:hover { color: var(--text); }
body.tv .favbar { font-size: 16px; }
body.tv .star { width: 36px; height: 36px; }
body.tv .star svg { width: 22px; height: 22px; }

/* One-hour swing alert */
:root { --up: #3DDC84; --down: #FF4D4D; }
.lead__num, .bigwrap { display: inline-flex; align-items: center; gap: 6px; }
.swing__arrow { font-size: 26px; line-height: 1; animation: swingpulse 1.6s ease-in-out infinite; }
.swing__arrow--up { color: var(--up); }
.swing__arrow--down { color: var(--down); }
.is-swing { border-radius: 6px; padding: 0 6px; }
.is-swing--up { background: rgba(61, 220, 132, .16); box-shadow: inset 0 0 0 2px var(--up); }
.is-swing--down { background: rgba(255, 77, 77, .16); box-shadow: inset 0 0 0 2px var(--down); }
.swing-note { font-size: 13px; font-weight: 700; margin-top: -4px; }
.swing-note--up { color: var(--up); }
.swing-note--down { color: var(--down); }
.tvcard .swing__arrow { font-size: 38px; }
.tvcard .swing-note { font-size: 16px; }
@keyframes swingpulse { 50% { opacity: .45; transform: scale(.9); } }
@media (prefers-reduced-motion: reduce) { .swing__arrow { animation: none; } }

/* Vote lead */
.margin { font-size: 14px; font-weight: 700; }
.margin__pts { font-weight: 600; color: var(--muted); }
.tvcard .margin { font-size: 17px; }

/* Latest updates + change flash */
.updates { margin-top: 16px; }
.updates > * { background: var(--card); }
.updates__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; padding: 8px 14px; }
.updates__head h2 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); display: flex; align-items: center; gap: 8px; }
.live-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--gold); animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { opacity: .25; } }
.updates__list { list-style: none; margin: 0; padding: 6px; border: 1px solid var(--line); border-radius: 0 0 10px 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; }
.updates.is-closed .updates__list { display: none; }
.updates.is-closed .updates__head { border-bottom: 1px solid var(--line); border-radius: 10px; }
.updates__empty { grid-column: 1 / -1; color: var(--muted); font-size: 14px; padding: 6px 8px; }
.update { width: 100%; display: flex; gap: 10px; align-items: baseline; text-align: left; background: transparent; border: 0; border-radius: 6px; padding: 6px 8px; color: var(--soft); font-size: 14px; cursor: pointer; border-left: 3px solid transparent; }
.update:hover { background: var(--card-deep); color: var(--text); }
.update strong { color: var(--text); }
.update__time { flex: none; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; min-width: 56px; }
.update__text { min-width: 0; }
.update--call { border-left-color: var(--gold); }
.update--flip { border-left-color: var(--r); }
.update--first { border-left-color: var(--d); }
.update.is-fresh { animation: freshrow 3s ease-out; }
@keyframes freshrow { 0%, 30% { background: rgba(253, 182, 20, .28); } 100% { background: transparent; } }
.card.flash { animation: flash 1.1s ease-out 4; border-color: var(--gold); }
@keyframes flash {
  0% { box-shadow: 0 0 0 0 rgba(253, 182, 20, .85), inset 0 0 0 200px rgba(253, 182, 20, .10); }
  100% { box-shadow: 0 0 0 14px rgba(253, 182, 20, 0), inset 0 0 0 200px rgba(253, 182, 20, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .card.flash { animation: none; box-shadow: 0 0 0 3px var(--gold); }
  .update.is-fresh, .live-dot { animation: none; }
}
body.tv .updates { margin-top: 12px; }
body.tv .updates__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.tv .update { font-size: 16px; }
body.tv .update__time { font-size: 14px; }

/* Demo banner */
.demobar { background: var(--gold); color: var(--bg); text-align: center; padding: 8px 16px; font-size: 14px; font-weight: 600; }
.demobar strong { text-transform: uppercase; letter-spacing: .08em; margin-right: 8px; }
.demobar a { color: var(--bg); margin-left: 8px; }
body.tv .demobar { font-size: 16px; }

/* View controls */
.viewctl { display: flex; gap: 8px; }
.vbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line); background: transparent; color: var(--soft); font-size: 14px; font-weight: 600; cursor: pointer; }
.vbtn:hover { color: var(--text); border-color: var(--d); }
.vbtn[aria-pressed="true"] { color: var(--bg); background: var(--d); border-color: var(--d); }
#tv-rotate, .tvinfo, .tv-only { display: none; }

/* ---------- TV mode ---------- */
/* Laid out at 1920px wide; app.js zooms the page to fit whatever screen it's on. */
body.tv .wrap { max-width: none; padding-left: 28px; padding-right: 28px; }
body.tv .dek, body.tv .footer, body.tv .chips { display: none; }
body.tv .tv-only { display: revert; }
body.tv.idle, body.tv.idle * { cursor: none !important; }
body.tv .masthead__inner { padding-top: 16px; padding-bottom: 16px; flex-wrap: nowrap; }
body.tv .masthead__intro { flex: 0 1 auto; gap: 6px; }
body.tv h1 { font-size: 46px; }
body.tv .logo { height: 26px; }
body.tv .tvinfo { display: flex; flex-direction: column; gap: 4px; margin-left: auto; text-align: right; padding-right: 8px; }
.tvinfo__clock { font-family: var(--cond); font-weight: 800; font-size: 44px; line-height: 1; }
.tvinfo__next { font-size: 17px; color: var(--soft); }
.tvinfo__next strong { color: var(--gold); }
body.tv .chamber { min-width: 250px; padding: 12px 18px; }
body.tv .chamber__d { font-size: 40px; }
body.tv .chamber__r { font-size: 17px; }
body.tv .chamber__src { font-size: 14px; }
body.tv .toolbar { padding-top: 14px; }
body.tv #tv-rotate { display: inline-flex; }
body.tv .tab { font-size: 18px; min-height: 46px; }
body.tv .legend { font-size: 15px; }
body.tv main { padding-top: 14px; padding-bottom: 90px; }
body.tv .board { gap: 18px; overflow: visible; grid-template-columns: var(--tvcols, repeat(5, minmax(0, 1fr))); }
body.tv .col { min-width: 0; }
body.tv .col__head { position: sticky; top: 0; z-index: 2; background: var(--bg); }
body.tv .col__head h2 { font-size: 26px; }
body.tv .col__n { font-size: 17px; }
body.tv .col__cards { display: grid; grid-template-columns: repeat(var(--per, 1), minmax(0, 1fr)); gap: 12px; align-items: start; }
.col__cards { display: flex; flex-direction: column; gap: 12px; }

/* TV cards */
.tvcard { gap: 9px; padding: 14px 16px; }
.tvcard.card--called { padding-top: 0; }
.tvcard .call { margin: 0 -16px; padding: 8px 16px; font-size: 17px; }
.tvcard .call small { font-size: 14px; white-space: nowrap; }
.tvcard h3 { font-size: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tvcard .st { font-size: 14px; }
.tvcard .close { font-size: 15px; color: var(--soft); margin-top: -4px; }
.tvcard .close strong { color: var(--text); }
.tvcard .tags { font-size: 13px; }
.cands { display: flex; justify-content: space-between; gap: 10px; font-size: 16px; font-weight: 600; }
.cands span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cands span:last-child { text-align: right; }
.split__nums { display: flex; justify-content: space-between; align-items: baseline; }
.split__nums .big { font-family: var(--cond); font-weight: 800; font-size: 44px; line-height: 1; }
.split__nums .small { font-family: var(--cond); font-weight: 700; font-size: 26px; line-height: 1; opacity: .8; }
.sbar { height: 8px; border-radius: 4px; background: var(--r); overflow: hidden; margin-top: 6px; }
.sbar > div { height: 8px; background: var(--d); }
.chg { font-size: 15px; font-weight: 600; color: var(--muted); margin-top: -2px; }
.chg.is-d, .chg.is-r { font-weight: 700; }
.tvcard .spark { height: 70px; }
.tvcard .spark__axis { font-size: 12px; margin-top: -4px; }
.tvcard .spark__hi, .tvcard .spark__lo { font-size: 13px; }
.tvcard .chg { font-size: 15px; }
.tvcard .odds { font-size: 15px; }
.tvcard .results { gap: 7px; }
.tvcard .vote__row { font-size: 17px; }
.tvcard .vbar, .tvcard .vbar > div { height: 8px; }
.tvcard .reporting { font-size: 14px; }
.tvcard .foot { font-size: 15px; }

/* Called-race strip along the bottom in TV mode */
.callbar[hidden] { display: none; }
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: var(--navy); border-top: 2px solid var(--gold); padding: 12px 28px; display: flex; gap: 22px; align-items: center; font-size: 17px; white-space: nowrap; overflow: hidden; }
.callbar__label { color: var(--gold); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 15px; }
.callbar__tally { font-weight: 700; }
.callbar__list { display: flex; gap: 22px; overflow: hidden; }
.callbar__item { color: var(--soft); }
.callbar__list { flex: 1; min-width: 0; }
.callbar__track { display: inline-flex; gap: 22px; animation: ticker linear infinite; }
.callbar__gap { width: 40px; flex: none; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .callbar__track { animation: none; } }
.callbar__item strong { color: var(--text); }

/* Race-call alert */
.callalert[hidden] { display: none; }
.callalert { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 20, 32, 0); transition: background .3s ease; }
.callalert.is-on { background: rgba(0, 20, 32, .72); }
.callalert__box { width: min(760px, 100%); background: var(--navy); border: 4px solid var(--gold); border-radius: 16px; padding: 24px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; transform: scale(.85); opacity: 0; transition: transform .35s cubic-bezier(.2, 1.4, .4, 1), opacity .25s ease; box-shadow: 0 0 0 0 rgba(253, 182, 20, .7); }
.callalert.is-on .callalert__box { transform: scale(1); opacity: 1; animation: callglow 1.2s ease-out 3; }
.callalert__box--d { border-color: var(--d); }
.callalert__box--r { border-color: var(--r); }
.callalert__sirens { font-size: 46px; line-height: 1.1; letter-spacing: 8px; animation: siren .5s steps(2) infinite; }
.callalert__kicker { font-size: 16px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.callalert__who { font-family: var(--cond); font-weight: 800; font-size: 64px; line-height: 1; }
.callalert__race { font-size: 26px; font-weight: 700; }
.callalert__actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: center; margin-top: 10px; }
.callalert__go, .callalert__x { min-height: 44px; padding: 0 18px; border-radius: 22px; font-weight: 700; font-size: 15px; cursor: pointer; }
.callalert__go { background: var(--gold); border: 1px solid var(--gold); color: var(--bg); }
.callalert__x { background: transparent; border: 1px solid var(--line); color: var(--soft); }
.callalert__more { font-size: 14px; color: var(--soft); }
@keyframes siren { 50% { opacity: .35; transform: scale(1.08); } }
@keyframes callglow { 0% { box-shadow: 0 0 0 0 rgba(253, 182, 20, .7); } 100% { box-shadow: 0 0 0 40px rgba(253, 182, 20, 0); } }
@media (prefers-reduced-motion: reduce) { .callalert__sirens, .callalert.is-on .callalert__box { animation: none; } .callalert__box { transition: none; } }
.update--call { font-weight: 600; }
.update--call .update__text { color: var(--text); }
body.tv .callalert__box { width: 1100px; padding: 36px 40px; }
body.tv .callalert__sirens { font-size: 72px; }
body.tv .callalert__kicker { font-size: 22px; }
body.tv .callalert__who { font-size: 104px; }
body.tv .callalert__race { font-size: 40px; }

/* Summary tab */
:root { --ind: #C3A6F2; }
.is-i { color: var(--ind); }
body.view-summary .chips, body.view-summary .legend > span:not(#updated) { display: none; }
body.view-summary .board { display: block; overflow: visible; }
.summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.sumcard { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sumcard__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sumcard__head h2 { margin: 0; font-family: var(--cond); font-weight: 800; font-size: 34px; text-transform: uppercase; letter-spacing: .02em; }
.sumcard__ctl { font-size: 13px; color: var(--soft); }
.sumnums { display: flex; justify-content: space-between; gap: 12px; }
.sumnum { display: flex; flex-direction: column; gap: 2px; }
.sumnum--open { align-items: center; text-align: center; }
.sumnum--r { align-items: flex-end; text-align: right; }
.sumnum__label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sumnum__big { font-family: var(--cond); font-weight: 800; font-size: 56px; line-height: 1; }
.sumnum--open .sumnum__big { color: var(--soft); }
.sumnum__sub { font-size: 13px; color: var(--soft); }
.sumnum__sub strong { color: var(--text); }
.seatbar { position: relative; display: flex; height: 30px; border-radius: 6px; overflow: hidden; background: var(--card-deep); gap: 1px; }
.seg { min-width: 2px; }
.seg--d { background: var(--d); }
.seg--d-safe { background: repeating-linear-gradient(90deg, #5E9BB8 0 3px, #4F8AA6 3px 4px); }
.seg--i { background: var(--ind); }
.seg--open { background: repeating-linear-gradient(135deg, #59636B 0 6px, #464F57 6px 12px); }
.seg--r-safe { background: repeating-linear-gradient(90deg, #C27670 0 3px, #AE6660 3px 4px); }
.seg--r { background: var(--r); }
.seatbar__mid { position: absolute; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: var(--gold); box-shadow: 0 0 0 1px var(--bg); }
.sumlegend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.sumlegend span { display: inline-flex; align-items: center; gap: 5px; }
.sw { display: inline-block; width: 14px; height: 10px; border-radius: 2px; }
.sumnote, .sumproj { margin: 0; font-size: 14px; color: var(--soft); }
.sumproj { font-size: 15px; color: var(--text); }
.sumsub { margin: 6px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.olist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 4px 14px; }
.orow { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "race lead" "bar src"; gap: 3px 10px; align-items: center; text-align: left; background: var(--card-deep); border: 1px solid transparent; border-radius: 8px; padding: 8px 10px; color: var(--text); font-size: 14px; cursor: default; }
.orow[data-goto] { cursor: pointer; }
.orow[data-goto]:hover { border-color: var(--d); }
.orow__race { grid-area: race; min-width: 0; display: flex; gap: 8px; align-items: baseline; overflow: hidden; white-space: nowrap; }
.orow__names { color: var(--soft); overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.orow__lead { grid-area: lead; font-weight: 800; font-family: var(--cond); font-size: 20px; line-height: 1; text-align: right; }
.orow__bar { grid-area: bar; height: 5px; border-radius: 3px; background: var(--r); overflow: hidden; }
.orow__bar span { display: block; height: 5px; background: var(--d); }
.orow__src { grid-area: src; font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; }
.orow__none { grid-area: lead; font-size: 13px; color: var(--muted); }
.safe summary { cursor: pointer; font-size: 13px; color: var(--soft); }
.safe p { margin: 6px 0 0; font-size: 13px; line-height: 1.7; }
body.tv .summary { gap: 24px; }
body.tv .sumcard__head h2 { font-size: 44px; }
body.tv .sumcard__ctl, body.tv .sumnote { font-size: 17px; }
body.tv .sumproj { font-size: 19px; }
body.tv .sumnum__big { font-size: 84px; }
body.tv .sumnum__label { font-size: 15px; }
body.tv .sumnum__sub { font-size: 16px; }
body.tv .seatbar { height: 42px; }
body.tv .olist { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
body.tv .orow { font-size: 16px; }
body.tv .orow__lead { font-size: 24px; }
body.tv .orow__src { font-size: 14px; }

/* Likely-call hints */
.card--likely { border: 2px dashed var(--gold); }
.likely { margin: -4px -4px 0; padding: 6px 8px; border-radius: 6px; background: rgba(253, 182, 20, .12); display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.likely__head { font-weight: 700; color: var(--gold); }
.likely__head strong { font-weight: 800; }
.likely__src { color: var(--soft); font-size: 12px; }
.likely__src a { color: var(--soft); }
.likely--mixed .likely__head { color: var(--r); }
.tvcard .likely { font-size: 16px; }
.tvcard .likely__src { font-size: 14px; }
.update--likely { border-left-color: var(--gold); border-left-style: dashed; }
.orow--likely { border: 1px dashed var(--gold); }
.orow__lk { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--bg); background: var(--gold); border-radius: 4px; padding: 1px 5px; flex: none; }
.sumlikely { border: 1px dashed var(--gold); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.sumlikely .sumsub { margin: 0; color: var(--gold); }
.lklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px 12px; }
.lklist li { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.lklist .likely { margin: 0; }
body.tv .lklist li { font-size: 16px; }

/* Phones: one rating column at a time, picked with chips */
@media (max-width: 760px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 36px; }
  .masthead__inner { padding-top: 18px; padding-bottom: 18px; gap: 14px; }
  .chambers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; }
  .chamber { min-width: 0; padding: 10px 12px; }
  .chamber__d { font-size: 26px; }
  .tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .tab--sum { grid-column: 1 / -1; }
  .tab--fav { justify-content: center; }
  .tab { padding: 0 8px; }
  .legend { font-size: 12px; }
  .chips { display: flex; }
  .board { display: block; overflow: visible; }
  .col { display: none; min-width: 0; }
  .col.is-active { display: flex; }
  .viewctl { display: none; }
  .updates__list { grid-template-columns: 1fr; }
  .callalert__sirens { font-size: 34px; }
  .callalert__who { font-size: 40px; }
  .callalert__race { font-size: 20px; }
  .callalert__box { padding: 18px 16px; }
  .summary { grid-template-columns: 1fr; }
  .sumnum__big { font-size: 44px; }
  .olist { grid-template-columns: 1fr; }
}
