:root {
  --board: #263530;
  --panel: #2f403a;
  --panel-2: #364a43;
  --line: #44594f;
  --chalk: #eceFe6;
  --muted: #a7b3ac;
  --home: #f08a3c;
  --away: #86bedd;
  --value: #f2d35b;
  --bad: #e5806f;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0; background: var(--board); color: var(--chalk);
  font-family: var(--body); line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
button, input, select { font: inherit; color: inherit; }
button {
  background: var(--chalk); color: var(--board); border: 0; border-radius: 6px;
  padding: .45rem .85rem; font-weight: 600; cursor: pointer;
}
button.ghost { background: transparent; color: var(--chalk); border: 1px solid var(--line); }
button:hover { filter: brightness(1.08); }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 2px solid var(--value); outline-offset: 2px; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* top bar */
.topbar {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .8rem 1.5rem; border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--cond); font-weight: 700; font-size: 1.6rem; letter-spacing: .01em; }
.season { font-weight: 500; color: var(--muted); font-size: 1.1rem; margin-left: .3rem; }
.views { display: flex; gap: .25rem; }
.view-btn { background: transparent; color: var(--muted); border-radius: 6px; }
.view-btn.active { color: var(--chalk); background: var(--panel); }
.data-status { margin-left: auto; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .85rem; }
.demo { background: var(--value); color: var(--board); padding: .2rem .55rem; border-radius: 4px; font-weight: 600; }
.progress { display: flex; align-items: center; gap: 1rem; padding: .6rem 1.5rem; background: var(--panel); font-size: .9rem; }
.progress .bar { width: 240px; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--value); transition: width .4s; }
.alert { margin: 1rem 1.5rem 0; padding: .7rem 1rem; border-left: 3px solid var(--bad); background: var(--panel); }

/* layout */
.layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: calc(100vh - 60px); }
.rail { border-right: 1px solid var(--line); padding: 1rem; }
@media (min-width: 901px) {
  .rail { position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto; }
}
.view-btn { white-space: nowrap; }
.date-nav { display: flex; gap: .4rem; margin-bottom: 1rem; }
.date-nav input { flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: .35rem .5rem; color-scheme: dark; }
.icon { padding: .3rem .7rem; font-size: 1.1rem; line-height: 1; }
.games { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.game {
  display: grid; grid-template-columns: 1fr auto; gap: .1rem .5rem; width: 100%; text-align: left;
  background: transparent; color: var(--chalk); padding: .6rem .7rem; border-radius: 6px; font-weight: 500;
}
.game:hover { background: var(--panel); }
.game.active { background: var(--panel-2); box-shadow: inset 3px 0 0 var(--value); }
.game .teams { font-family: var(--cond); font-size: 1.25rem; font-weight: 600; }
.game .at { color: var(--muted); font-weight: 500; margin: 0 .2rem; }
.game .line { font-family: var(--cond); font-size: 1.1rem; text-align: right; white-space: nowrap; }
.game .sub { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); display: flex; justify-content: space-between; }
.empty { color: var(--muted); padding: 2rem 1rem; max-width: 46ch; }
.empty strong { color: var(--chalk); }

/* matchup */
.matchup { padding: 1.5rem 2rem 4rem; max-width: 1180px; }
.board {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 1rem 2rem;
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--line);
}
.side { display: flex; flex-direction: column; }
.side.home { align-items: flex-end; text-align: right; }
.side .abbr { font-family: var(--cond); font-weight: 700; font-size: 4.5rem; line-height: .9; }
.side.away .abbr { color: var(--away); }
.side.home .abbr { color: var(--home); }
.side .name { color: var(--muted); }
.side .pts { font-family: var(--cond); font-size: 2.4rem; font-weight: 600; line-height: 1; margin-top: .4rem; }
.side .meta { font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.center { text-align: center; padding-bottom: .3rem; }
.center .spread { font-family: var(--cond); font-weight: 700; font-size: 3.2rem; line-height: 1; }
.center .spread-label { color: var(--muted); font-size: .85rem; }
.center .total { font-family: var(--cond); font-size: 1.5rem; margin-top: .5rem; }
.winbar { grid-column: 1 / -1; display: flex; height: 10px; border-radius: 5px; overflow: hidden; }
.winbar .a { background: var(--away); }
.winbar .h { background: var(--home); }
.winlabels { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: .9rem; margin-top: -.5rem; }

.why { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding: .9rem 0; font-size: .9rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.why b { color: var(--chalk); font-weight: 600; }
.why .moved { color: var(--value); }

h2 { font-family: var(--cond); font-weight: 600; font-size: 1.6rem; margin: 2rem 0 .75rem; }
h2 small { font-family: var(--body); font-size: .9rem; color: var(--muted); font-weight: 400; margin-left: .5rem; }
h3 { font-family: var(--cond); font-weight: 600; font-size: 1.25rem; margin: 0 0 .5rem; }

/* live */
.dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--bad); margin-right: .35rem; vertical-align: .08em; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.game .teams { white-space: nowrap; }
.game .teams .won { color: var(--chalk); font-weight: 700; }
.game .teams .lost { color: var(--muted); font-weight: 500; }
.games .group { font-size: .78rem; color: var(--muted); padding: .9rem .7rem .3rem; font-weight: 600; letter-spacing: .02em; }
.games .group:first-child { padding-top: .2rem; }
.game.is-final { opacity: .9; }
.sec-lbl { font-size: .8rem; color: var(--muted); margin: .6rem 0 .1rem; }
.auto-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: .6rem; padding-top: .6rem; font-size: .82rem; }
.auto-actions button { padding: .3rem .7rem; font-size: .82rem; }
.auto-actions #updated { margin-right: auto; }
.game.is-live .teams, .game.is-final .teams { font-size: 1.12rem; }
.live { border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.25rem 1.25rem; margin-bottom: 1.5rem; background: var(--panel); }
.live-top { display: flex; align-items: center; gap: 1rem; }
.live-tag { font-family: var(--cond); font-weight: 700; font-size: 1.1rem; color: var(--bad); }
.live-tag.final { color: var(--muted); }
.live-clock { font-family: var(--body); font-size: 1.15rem; font-weight: 600; letter-spacing: .01em; }
.live-upd { margin-left: auto; font-size: .8rem; }
.live-score { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--cond); font-weight: 700; font-size: 2.2rem; margin: .4rem 0 .6rem; }
.live-score b { font-size: 4.4rem; line-height: 1; margin: 0 .4rem; }
.live-score .away { color: var(--away); }
.live-score .home { color: var(--home); }
.periods { border-collapse: collapse; font-size: .9rem; margin-bottom: 1rem; }
.periods td { padding: .2rem .7rem; text-align: center; border-top: 1px solid var(--line); }
.periods thead td { border-top: 0; color: var(--muted); font-size: .8rem; }
.periods .pa { color: var(--away); font-weight: 600; text-align: left; }
.periods .ph { color: var(--home); font-weight: 600; text-align: left; }
.live-model { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.live-model div { display: flex; flex-direction: column; }
.live-model .big { font-family: var(--cond); font-weight: 700; font-size: 2rem; line-height: 1.1; }
.live-model .muted { font-size: .82rem; }
.pre-h { margin-top: 0; color: var(--muted); }
.live-halves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; border-top: 1px solid var(--line); padding: .8rem 0 .9rem; }
.live-halves div { display: flex; flex-direction: column; }
.live-halves .lbl { font-size: .8rem; color: var(--muted); }
.live-halves .big { font-family: var(--cond); font-weight: 700; font-size: 1.7rem; line-height: 1.15; color: var(--value); }
.live-halves .muted { font-size: .8rem; }
.h1line { margin-top: .35rem; font-size: .95rem; }
.h1line .muted { font-size: .82rem; }

/* box score */
.floors { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1rem; }
.floor h3 small { font-family: var(--body); font-size: .82rem; color: var(--muted); font-weight: 400; margin-left: .4rem; }
.floor.away h3 { color: var(--away); } .floor.home h3 { color: var(--home); }
.floor ul { list-style: none; margin: 0; padding: 0; }
.floor li { display: grid; grid-template-columns: 1fr 3.5rem 3rem 3rem; gap: .5rem; padding: .3rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
.floor li span:not(.nm) { text-align: right; }
.boxteam { margin-bottom: 1.25rem; }
.scroll { overflow-x: auto; }
.boxt { border-collapse: collapse; width: 100%; font-size: .88rem; min-width: 760px; }
.boxt td { padding: .32rem .45rem; border-top: 1px solid var(--line); text-align: right; white-space: nowrap; }
.boxt td:first-child { text-align: left; }
.boxt thead td { border-top: 0; color: var(--muted); font-size: .76rem; }
.boxt tr.on td:first-child { font-weight: 600; }
.boxt tr.bench-start td { border-top: 2px solid var(--line); }
.boxt tr.dnp td { color: var(--muted); }
.on-dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: #8fd18a; margin-right: .4rem; vertical-align: .08em; }
.foul-warn { color: var(--value); font-weight: 600; }
.foul-out { color: var(--bad); font-weight: 700; }
.team-box { max-width: 640px; }
.auto { position: relative; }
.auto summary { cursor: pointer; color: var(--muted); list-style: none; padding: .3rem .5rem; border-radius: 6px; }
.auto summary::-webkit-details-marker { display: none; }
.auto summary.has-err { color: var(--bad); }
.auto[open] summary { background: var(--panel); color: var(--chalk); }
.auto-panel { position: absolute; right: 0; top: 2.2rem; z-index: 50; box-shadow: 0 10px 30px rgba(0,0,0,.35); background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: .75rem 1rem; width: min(560px, 92vw); font-size: .85rem; }
.auto-panel table { border-collapse: collapse; width: 100%; }
.auto-panel td:nth-child(2) { white-space: nowrap; }
.auto-panel td { padding: .3rem .4rem; border-top: 1px solid var(--line); vertical-align: top; }
.auto-panel tr:first-child td { border-top: 0; }
.auto-panel .small-note { border-top: 0; padding-top: 0; font-size: .8rem; }
.auto-panel .err { color: var(--bad); border-top: 0; padding-top: 0; }

/* lines */
.lines-head { align-items: flex-end; gap: 1rem; }
.src { font-size: .85rem; color: var(--muted); padding-bottom: .35rem; max-width: 70ch; }
.src select { background: var(--board); border: 1px solid var(--line); border-radius: 5px; padding: .15rem .3rem; color: var(--chalk); }
.inputs input.fed { border-color: #5c7a6d; }
.inputs input.mine { border-color: var(--value); }
#reset-lines { padding: .3rem .6rem; font-size: .8rem; margin-bottom: .2rem; }
.lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.market { background: var(--panel); padding: 1rem; }
.inputs { display: flex; gap: .5rem; margin-bottom: .75rem; flex-wrap: wrap; }
.inputs label { display: flex; flex-direction: column; font-size: .8rem; color: var(--muted); gap: .2rem; }
.inputs input::placeholder { color: var(--muted); opacity: .45; }
.inputs input { width: 5.5rem; background: var(--board); border: 1px solid var(--line); border-radius: 5px; padding: .35rem .45rem; }
.bet { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .6rem; padding: .4rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
.bet .what { font-weight: 600; }
.bet .num { text-align: right; }
.bet .ev { font-size: .8rem; color: var(--muted); display: block; }
.bet.value .what::before { content: ""; display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--value); margin-right: .4rem; }
.bet.value .ev { color: var(--value); }
.bet button { padding: .25rem .6rem; font-size: .8rem; }
.note { font-size: .82rem; color: var(--muted); margin-top: .6rem; max-width: 80ch; }

/* lineups */
.lineups { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.lineup h3 .tag { display: inline-block; width: .7rem; height: .7rem; border-radius: 2px; margin-right: .4rem; }
.player { display: grid; grid-template-columns: 1fr 3.2rem 3.6rem 5.8rem; align-items: center; gap: .5rem; padding: .4rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
.player.head { color: var(--muted); font-size: .78rem; border-top: 0; padding-bottom: .1rem; }
.player .pname { font-weight: 500; }
.player .status { display: block; font-size: .78rem; color: var(--muted); }
.player .status.out, .player .status.doubtful, .player .status.suspended { color: var(--bad); }
.player .status.questionable { color: var(--value); }
.player .r { text-align: right; }
.player.is-out .pname { text-decoration: line-through; text-decoration-color: var(--bad); color: var(--muted); }
.toggle { padding: .2rem .5rem; font-size: .8rem; width: 100%; }
.toggle.out { background: var(--bad); color: var(--board); }
.toggle.in { background: transparent; color: var(--chalk); border: 1px solid var(--line); }
.adj { display: block; font-size: .75rem; color: var(--value); }
.more { margin-top: .5rem; font-size: .85rem; }

/* comparison */
.tabs { display: flex; gap: .25rem; margin-bottom: .75rem; }
.tabs button { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.tabs button.active { background: var(--chalk); color: var(--board); border-color: var(--chalk); }
.cmp { width: 100%; max-width: 860px; border-collapse: collapse; font-size: .93rem; }
.cmp td { padding: .38rem .5rem; border-top: 1px solid var(--line); }
.cmp .sec td { border-top: 0; padding-top: 1.1rem; font-family: var(--cond); font-size: 1.1rem; color: var(--muted); }
.cmp .lbl { text-align: center; color: var(--muted); width: 34%; }
.cmp .v { width: 22%; font-weight: 500; }
.cmp .v.h { text-align: right; }
.cmp .rk { color: var(--muted); font-size: .78rem; width: 11%; }
.cmp .rk.h { text-align: right; }
.cmp .v.win-h { color: var(--home); font-weight: 700; }
.cmp .v.win-a { color: var(--away); font-weight: 700; }
.cmp thead td { border-top: 0; font-family: var(--cond); font-size: 1.15rem; font-weight: 600; }

.two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; }
.seg td:first-child { color: var(--muted); }
.form { display: flex; flex-direction: column; gap: .4rem; }
.form-row { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.form-row .who { font-family: var(--cond); font-weight: 600; width: 3rem; }
.chip { font-size: .8rem; padding: .15rem .45rem; border-radius: 4px; background: var(--panel); border: 1px solid var(--line); }
.chip.W { border-color: #7fae7a; }
.chip.L { border-color: var(--bad); }

/* rest & travel */
.rest { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.rest-col.away h3 { color: var(--away); } .rest-col.home h3 { color: var(--home); }
.rest-col p { margin: 0 0 .4rem; font-size: .92rem; }
.rest-col ul { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.rest-col li { display: flex; justify-content: space-between; padding: .3rem 0; border-top: 1px solid var(--line); }
.rest-col li.tot { font-weight: 600; }

/* model record */
.rec-head { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.rec-head h2 { margin: 0; }
.rec-head .tabs { margin: 0; }
.rec-sec { margin-top: 1.5rem; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.tile { background: var(--panel); padding: .9rem 1rem; display: flex; flex-direction: column; box-shadow: inset -1px -1px 0 var(--line); }
.verdict { padding: .6rem .9rem; border-left: 3px solid var(--muted); background: var(--panel); max-width: 80ch; }
.verdict.good { border-left-color: #9fd08f; }
.tile b { font-family: var(--cond); font-size: 2rem; font-weight: 600; line-height: 1.1; }
.tile b small { font-family: var(--body); font-size: .8rem; color: var(--muted); font-weight: 400; }
.tile .pc { color: var(--muted); font-size: .9rem; min-height: 1.2em; }
.tile .lbl { font-size: .85rem; color: var(--muted); margin-top: .2rem; }
.tile.good b { color: #9fd08f; }
.tile.bad b { color: var(--bad); }
.cal td { white-space: nowrap; }
.calbar { width: 40%; position: relative; }
.calbar .act { display: block; height: 8px; background: var(--away); border-radius: 4px; }
.calbar .pred { position: absolute; top: 4px; width: 2px; height: 16px; background: var(--value); }
.ok { color: #9fd08f; font-weight: 700; } .no { color: var(--bad); font-weight: 700; }
.log td, .log th { white-space: nowrap; font-size: .85rem; }

/* parlays */
.parlay-view { padding: 1.5rem 2rem 4rem; }
.parlay-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; max-width: 1300px; }
.suggs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.sugg { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.sugg-top { display: flex; justify-content: space-between; align-items: center; }
.sugg h3 { margin: 0; }
.sugg ul, .slip ul { list-style: none; margin: 0; padding: 0; }
.sugg li, .slip li { display: flex; justify-content: space-between; gap: .5rem; padding: .3rem 0; border-top: 1px solid var(--line); font-size: .9rem; }
.sugg-num { display: flex; gap: 1.2rem; font-size: .85rem; color: var(--muted); }
.sugg-num b { color: var(--chalk); font-family: var(--cond); font-size: 1.25rem; }
.sugg button { align-self: flex-start; }
.conf { display: inline-flex; align-items: center; gap: .4rem; }
.conf { --c: var(--muted); }
.conf i { display: block; width: 54px; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.conf s { display: block; height: 100%; background: var(--c); }
.conf b { font-family: var(--cond); font-size: 1.05rem; color: var(--c); min-width: 2ch; }
.conf.c1, .conf.c2, .conf.c3, .conf.c4 { --c: var(--bad); }
.conf.c5 { --c: var(--muted); }
.conf.c6, .conf.c7 { --c: var(--value); }
.conf.c8, .conf.c9, .conf.c10 { --c: #9fd08f; }
.legs .grp td { padding-top: 1rem; font-family: var(--cond); font-size: 1.1rem; border-top: 0; }
.legs .grp .muted { font-family: var(--body); font-size: .8rem; }
.legs td { white-space: nowrap; }
.legs button { padding: .2rem .6rem; font-size: .8rem; }
.pos { color: #9fd08f; } .neg { color: var(--muted); }
.slip { position: sticky; top: 1rem; align-self: start; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem;
  max-height: calc(100vh - 2rem); overflow-y: auto; overscroll-behavior: contain; }
.slip h3 small { font-family: var(--body); font-size: .85rem; color: var(--muted); font-weight: 400; }
.slip li .x { background: transparent; color: var(--muted); padding: 0 .3rem; font-size: 1.1rem; line-height: 1; }
.slip-num { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .9rem 0; }
.slip-num div { display: flex; flex-direction: column; }
.slip-num b { font-family: var(--cond); font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.slip-num span { font-size: .8rem; color: var(--muted); }
.slip-conf { margin-bottom: .8rem; }
.stake { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); margin-bottom: .7rem; }
.stake input { width: 4rem; background: var(--board); border: 1px solid var(--line); border-radius: 5px; padding: .3rem .4rem; }
.warn { font-size: .82rem; color: var(--value); }

/* explanations */
.why-box { font-size: .88rem; margin-top: .2rem; }
.why-box summary { cursor: pointer; color: var(--value); font-size: .82rem; font-weight: 600; width: fit-content; }
.why-box[open] > summary { margin-bottom: .4rem; }
.why-box p { margin: .35rem 0; max-width: 70ch; white-space: normal; }
.why-box .small { font-size: .78rem; margin-top: .6rem; }
.reasons, .plain { list-style: none; margin: 0; padding: 0; }
.reasons li { display: grid; grid-template-columns: 3.2rem 1fr; gap: .5rem; padding: .22rem 0; border-top: 1px solid var(--line); white-space: normal; }
.plain li { padding: .15rem 0 .15rem .8rem; position: relative; }
.plain li::before { content: ""; position: absolute; left: 0; top: .7em; width: .3rem; height: 1px; background: var(--muted); }
.eff { font-family: var(--cond); font-weight: 600; text-align: right; }
.neg-r { color: var(--bad); }
.parlay-why { border-top: 1px solid var(--line); padding-top: .4rem; }
.leg-why { margin-top: .5rem; padding-left: .6rem; border-left: 2px solid var(--line); }
.legs td .why-box { max-width: 560px; }

/* market + news, alerts */
.newscard { border: 1px solid var(--line); border-radius: 10px; padding: .2rem 1.2rem 1rem; margin-top: 1.5rem; }
.newscard.behind { border-color: var(--value); }
.newscard h2 { margin-top: .9rem; }
.news-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: .6rem; }
.news-row div { display: flex; flex-direction: column; }
.news-row .big { font-family: var(--cond); font-weight: 700; font-size: 1.9rem; line-height: 1.1; }
.news-row .big.hl { color: var(--value); }
.news-row .muted { font-size: .82rem; }
.badge { font-size: .72rem; background: var(--value); color: var(--board); border-radius: 3px; padding: 0 .3rem; font-weight: 600; }
.alerts-menu summary.has-new { color: var(--value); font-weight: 600; }
.al { padding: .5rem 0; border-top: 1px solid var(--line); }
.al:first-child { border-top: 0; }
.al p { margin: .2rem 0 0; font-size: .85rem; }
.al.new b { color: var(--value); }
.al.big b::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--bad); margin-right: .35rem; }
.toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 20; display: flex; flex-direction: column; gap: .5rem; width: min(380px, 92vw); }
.toast { background: var(--panel-2); border: 1px solid var(--value); border-radius: 8px; padding: .7rem .9rem; font-size: .88rem; cursor: pointer; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.toast p { margin: .25rem 0 0; color: var(--muted); }
.toast.big { border-color: var(--bad); }

/* parlay record */
.mult td, .mult th { white-space: nowrap; }
.legs-cell { white-space: normal !important; max-width: 360px; font-size: .82rem; }
.parlay-record h3 { margin-top: 1.2rem; }

.fresh { color: var(--muted); font-size: .82rem; }
.fresh.stale, .live-upd.stale { color: var(--bad); font-weight: 600; }
#refresh-now { padding: .25rem .6rem; font-size: .8rem; margin-right: .4rem; }

/* settings */
.set-row { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 1.5rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--line); max-width: 900px; }
.set-row label { display: flex; flex-direction: column; font-weight: 500; }
.set-row label .muted { font-weight: 400; font-size: .84rem; }
.set-row.changed { box-shadow: inset 3px 0 0 var(--value); padding-left: .8rem; }
.set-in { display: flex; align-items: center; gap: .6rem; }
.set-in input[type=number], .set-in input.wide { background: var(--board); border: 1px solid var(--line); border-radius: 5px; padding: .35rem .45rem; width: 6rem; color-scheme: dark; }
.set-in input.wide { width: 100%; }
.set-in input[type=checkbox] { width: 1.2rem; height: 1.2rem; accent-color: var(--value); }
.set-in .def { font-size: .8rem; white-space: nowrap; }
.saved { color: #9fd08f; }
.replay h3 { margin-top: 1.4rem; }
.replay h3 small { font-family: var(--body); font-size: .85rem; color: var(--muted); font-weight: 400; margin-left: .4rem; }
.ptable tr.strong td { font-weight: 600; }
code { font-size: .85em; background: var(--board); padding: .05rem .3rem; border-radius: 3px; }

/* picks */
.picks-view { padding: 1.5rem 2rem 4rem; max-width: 1100px; }
.record { display: flex; gap: 2.5rem; margin: .5rem 0 1.5rem; flex-wrap: wrap; }
.record div { display: flex; flex-direction: column; }
.record b { font-family: var(--cond); font-size: 2.4rem; font-weight: 600; line-height: 1; }
.record span { color: var(--muted); font-size: .85rem; }
.ptable { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ptable th { text-align: left; color: var(--muted); font-weight: 500; padding: .4rem .5rem; }
.ptable td { padding: .45rem .5rem; border-top: 1px solid var(--line); }
.res-win { color: #9fd08f; } .res-loss { color: var(--bad); } .res-push { color: var(--muted); }

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .board { grid-template-columns: 1fr 1fr; }
  .center { grid-column: 1 / -1; order: -1; }
  .player { grid-template-columns: 1fr 2.8rem 3.2rem 5.2rem; }
  .rail { border-right: 0; border-bottom: 1px solid var(--line); }
  .games { flex-direction: row; overflow-x: auto; }
  .games .group { padding: .4rem .5rem; align-self: center; writing-mode: vertical-rl; transform: rotate(180deg); font-size: .7rem; }
  .views { overflow-x: auto; max-width: 100%; }
  .topbar { padding: .7rem 1rem; gap: .6rem; }
  .data-status { margin-left: 0; position: relative; width: 100%; }
  .auto { position: static; }
  .auto-panel { left: 0; right: auto; width: 100%; top: 100%; }
  .sec-nav { flex-wrap: nowrap; overflow-x: auto; margin-left: -1rem; margin-right: -1rem; padding-left: 1rem; }
  .sec-nav a { white-space: nowrap; }
  .game { min-width: 190px; }
  .matchup { padding: 1rem; }
  .side .abbr { font-size: 3rem; }
  .center .spread { font-size: 2.3rem; }
  .lines, .lineups, .two { grid-template-columns: 1fr; }
  .live-model { grid-template-columns: 1fr 1fr; }
  .live-halves { grid-template-columns: 1fr; }
  .floors { grid-template-columns: 1fr; }
  .news-row { grid-template-columns: 1fr; }
  .rest { grid-template-columns: 1fr; gap: 1rem; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .parlay-view { padding: 1rem; }
  .set-row { grid-template-columns: 1fr; gap: .4rem; }
  .parlay-grid { grid-template-columns: minmax(0, 1fr); }
  .rec-head { flex-wrap: wrap; }
  .props-table td:first-child { min-width: 9rem; }
  .suggs { grid-template-columns: 1fr; }
  .slip { position: static; }
  .live-score b { font-size: 3rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* game page section shortcuts */
.sec-nav { position: sticky; top: 0; z-index: 5; display: flex; gap: .2rem; flex-wrap: wrap; margin: -.4rem 0 1rem;
  padding: .45rem 0; background: var(--board); border-bottom: 1px solid var(--line); }
.sec-nav a { color: var(--muted); text-decoration: none; font-size: .85rem; font-weight: 500; padding: .25rem .65rem; border-radius: 999px; }
.sec-nav a:hover { color: var(--chalk); background: var(--panel); }
.sec { scroll-margin-top: 3.2rem; }

/* morning board */
.board-btn { border: 1px dashed var(--line); margin-bottom: .3rem; }
.board-btn .teams { font-size: 1.1rem; }
.badge.flag { background: var(--value); color: var(--board); }
.board-page h2 { margin-top: 0; }
.board-table td { vertical-align: top; }
.board-table tbody tr { cursor: pointer; }
.board-table tbody tr:hover { background: var(--panel); }
.board-table tr.flag td:first-child { box-shadow: inset 3px 0 0 var(--value); }
.board-table tr.done { opacity: .75; }
.board-table .edge { font-family: var(--cond); font-size: 1.15rem; font-weight: 600; }
.board-table .edge.big { color: var(--value); }
.small { font-size: .8rem; }
@media (max-width: 900px) {
  .board-table thead { display: none; }
  .board-table, .board-table tbody { display: block; }
  .board-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem .8rem; padding: .7rem .6rem; border-bottom: 1px solid var(--line); }
  .board-table td { display: block; border: 0; padding: 0; }
  .board-table td:first-child, .board-table td.wide { grid-column: 1 / -1; }
  .board-table td[data-l]::before { content: attr(data-l); display: block; font-size: .72rem; color: var(--muted); }
  .board-table tr.flag td:first-child { box-shadow: none; }
  .board-table tr.flag { box-shadow: inset 3px 0 0 var(--value); }
}

/* accounts */
.role-friend .admin-only { display: none !important; }
.pw-form { display: flex; flex-direction: column; gap: .45rem; margin: .4rem 0; }
.pw-form label { display: flex; flex-direction: column; font-size: .8rem; color: var(--muted); gap: .15rem; }
.pw-form input, .add-friend input { background: var(--board); border: 1px solid var(--line); border-radius: 6px; padding: .4rem .55rem; color: var(--chalk); }
.pw-form button { align-self: flex-start; }
.pw-banner { margin: 1rem 1.5rem 0; padding: .8rem 1rem; border-left: 3px solid var(--value); background: var(--panel); }
.pw-banner .pw-form { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: .8rem; }
.account-menu .auto-panel { width: min(340px, 92vw); }
.add-friend { display: flex; gap: .6rem; align-items: flex-end; margin: .8rem 0; }
.add-friend label { display: flex; flex-direction: column; font-size: .8rem; color: var(--muted); gap: .15rem; }
.friend-pass { background: var(--panel); border: 1px solid var(--value); border-radius: 8px; padding: .6rem 1rem; max-width: 520px; }
.friend-pass pre { background: var(--board); padding: .6rem .8rem; border-radius: 6px; user-select: all; white-space: pre-wrap; }
.login-body { display: grid; place-items: center; min-height: 100vh; }
.login-card { width: min(380px, 92vw); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1.6rem 1.8rem; }
.login-card .brand { margin-bottom: .6rem; }
.login-card h1 { font-family: var(--cond); font-size: 1.5rem; margin: .2rem 0 .6rem; }
.login-card .pw-form { gap: .7rem; }
.login-card .pw-form button { align-self: stretch; padding: .55rem; }
.bad-msg { color: var(--bad); min-height: 1.2em; margin: 0; font-size: .9rem; }

.chip-lbl { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; }
.sugg li .vo { display: block; font-size: .75rem; color: var(--value); margin-top: .1rem; }

/* props */
.props-table td, .players td { vertical-align: top; }
.props-table .nowrap, .nowrap { white-space: nowrap; }
.tagno { font-size: .7rem; background: var(--line); border-radius: 3px; padding: 0 .3rem; }
.badge.k { background: var(--away); color: var(--board); }
.badge.q { background: var(--bad); color: var(--board); }
.players .prow { cursor: pointer; }
.players .prow:hover, .players .prow.open { background: var(--panel); }
.players .pdetail td { background: var(--panel); padding: .4rem .8rem .8rem; }
.ladder { margin-top: .4rem; }
details.pgame { border: 1px solid var(--line); border-radius: 8px; padding: .5rem .8rem; margin: .6rem 0; }
details.pgame summary { cursor: pointer; padding: .2rem 0; }
.alert-inline { border-left: 3px solid var(--value); background: var(--panel); padding: .6rem .9rem; margin: .6rem 0; }
.vo-note { color: var(--value); }
.num-in { width: 5rem; background: var(--board); border: 1px solid var(--line); border-radius: 6px; padding: .3rem .4rem; color: var(--chalk); }
.slip-legs { list-style: none; padding: 0; margin: .4rem 0; }
.slip-legs li { display: flex; justify-content: space-between; gap: .5rem; padding: .3rem 0; border-top: 1px solid var(--line); font-size: .9rem; }
.slip-num { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin: .6rem 0; }
.slip-num div { display: flex; flex-direction: column; }
.slip-num b { font-family: var(--cond); font-size: 1.3rem; }
.slip-num span { font-size: .75rem; color: var(--muted); }
.check-these { border: 1px solid var(--value); border-radius: 8px; padding: .5rem .9rem; margin: 1rem 0; }
.check-these summary { color: var(--value); font-weight: 600; }
.cal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* grades and plain-language numbers */
.grade { display: inline-block; font-size: .72rem; font-weight: 700; padding: .05rem .45rem; border-radius: 999px; white-space: nowrap; vertical-align: middle; }
.g-strong { background: #9fd08f; color: var(--board); }
.g-edge { background: var(--value); color: var(--board); }
.g-fair { background: var(--line); color: var(--chalk); }
.g-over { background: transparent; color: var(--bad); border: 1px solid var(--bad); }
.wtag { display: inline-block; font-size: .7rem; color: var(--value); margin-left: .35rem; white-space: nowrap; cursor: help; }
.cw { border-bottom: 1px dotted var(--muted); cursor: help; }
details.how { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .9rem; margin: .8rem 0; font-size: .88rem; max-width: 760px; }
details.how summary { cursor: pointer; font-weight: 600; color: var(--value); }
details.how li { margin: .35rem 0; }
.sugg-plain { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: .6rem 0; font-size: .9rem; }
.sugg-plain b { font-family: var(--cond); font-size: 1.15rem; }
.tagside { display: inline-block; font-size: .62rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 0 .35rem; border-radius: 3px; vertical-align: 1px; }
.tagside.over { background: var(--away); color: var(--board); }
.tagside.under { background: var(--home); color: var(--board); }
.props-table td:first-child { min-width: 10rem; }
.btn-stack { display: flex; flex-direction: column; gap: .25rem; }
.btn-stack button { padding: .2rem .6rem; font-size: .78rem; }
.trade-box { border-top: 1px solid var(--line); margin-top: .8rem; padding-top: .8rem; }
.trade-box.confirm { border: 1px solid var(--value); border-radius: 8px; padding: .7rem .9rem; }
.trade-box h4 { margin: 0 0 .4rem; }
button.buy { background: var(--value); color: var(--board); border-color: var(--value); font-weight: 700; }
.live-money { color: var(--bad); }
.ok-msg { color: #9fd08f; }
.trade-box .confirm-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: .3rem 0 .6rem; }
@media (max-width: 900px) { .slip { max-height: none; overflow: visible; } }
