/* Preference is applied before the page paints, including on Safari. */
.appearancePicker{display:inline-flex;align-items:center;gap:.8rem;font-weight:650}
.gameTeam .possessionMarker{grid-column:1;grid-row:3;display:flex;height:16px;align-items:center;line-height:1;font-size:.87rem}
.gameTeam .possessionMarker>span{display:inline-block;transform:rotate(-12deg)}
html[data-theme="dark"]{
 --paper:#0d1822;--ink:#e6eef3;--muted:#afc0cb;--line:#354756;
 --panel:#152431;--inset:#1b2d3b;--raised:#243b49;--field:#101e29;--action:#a1d5e2;
 --green:#a3e4bc;--positive:#1b4034;--amber:#f5d193;--warning:#493a24;--red:#ffb4a9;--negative:#4c2c31;
 color-scheme:dark;
}
html[data-theme="dark"] body{background:var(--paper);color:var(--ink)}
html[data-theme="dark"] :is(.card,.stat,.tile,.playbar,.lastPlay,.roomMenu,.dr-panel,.dr-med-profile,.dr-feature,.dr-haul article,.lg-match,.lg-metrics>div,.lg-seed-drawer,.tx-section,.tx-builder,.tx-asset,.tx-market-card,.tx-message,.tx-pos-tile,.rr-depth-card,.rr-recovery article,.coach-card,.season-kpis>div,dialog,.gameBulletin){
 background:var(--panel);color:var(--ink);border-color:var(--line)
}
html[data-theme="dark"] :is(.data-sheet th,th){background:var(--inset);color:var(--muted);border-color:var(--line)}
html[data-theme="dark"] :is(td,.row,.wireitem,.scheduleline,.logentry,.gameStream article,.gc-players li,.sv-plays li,.cardhead,.coach-tools,.dr-stage footer,.pager){border-color:var(--line)}
html[data-theme="dark"] tbody tr:nth-child(even){background:#172733}
html[data-theme="dark"] tbody tr:hover{background:var(--raised)}
html[data-theme="dark"] :is(.lg-heat-table td:first-child,.lg-heat-table th:first-child){background:var(--panel)}
html[data-theme="dark"] :is(a,.link,.bulletinAction,.sv-extra summary,.sv-plays summary,.sv-stat-key,.fa-depth summary,.tx-offer-row .link,.tx-person .link,.tx-archive-person .link,.lg-tree-game footer button.link){color:var(--action)}
html[data-theme="dark"] :is(input:not([type=checkbox]):not([type=range]),select,textarea,.tx-filters input,.tx-filters select,.tx-bench-top select,.dr-filter select,.dr-filter input,.dr-pick-partner select){
 color:var(--ink);background-color:var(--field);border-color:#4d626f
}
html[data-theme="dark"] input::placeholder{color:#9daeb9}
html[data-theme="dark"] :is(select,option){color-scheme:dark}
html[data-theme="dark"] .btn{color:var(--ink);background:var(--raised);border-color:#4c6372}
html[data-theme="dark"] .btn.secondary{color:var(--ink);background:var(--inset);border-color:#506775}
html[data-theme="dark"] .btn.accent,html[data-theme="dark"] .playControls .primaryAction{background:#ffa363;color:#192531;border-color:#ffa363}
html[data-theme="dark"] .playControls .playOptions{color:#192531;background:#ffa363;border-color:#97552f}
html[data-theme="dark"] .btn.danger{background:var(--negative);color:var(--red);border-color:#91534e}
html[data-theme="dark"] .btn.link{background:none;border:0;color:var(--action)}
html[data-theme="dark"] :is(.save,.stat .label,.eyebrow,.pager,.data-sheet th .link,.wireitem p,.logentry small,.controls label,.sliders label,.inlineform label,.base,.tx-title small,.sv-origin,.lg-description,.lg-story p,.lg-picture-lede,.lg-hunt-head,.lg-round-conf,.lg-hunt strong,.lg-stage>h3,.tx-explain,.gameToolbar label,.gameColumns label,.gameStream time,.fa-note,.fa-list .cardhead small,.fa-offer-form label,.fa-termline,.dr-feature small,.dr-feature>div>span,.dr-call-detail small,.dr-feature-trait span:not(.dr-grade),.dr-filter label,.dr-pick-partner,.dr-help,.dr-section-head p,.dr-clear,.dr-even,.dr-td-detail,.dr-card-choice small,.dr-traits small,.dr-selection span,.dr-selection-board,.dr-haul span,.gc-spotlight .cardhead>span,.gc-slate .cardhead>span,.gc-players li small,.gc-tile small,.coach-role,.coach-pay span,.coach-card small,.staff-note,.coach-impact span,.rr-meta,.rr-info,.rr-instruction,.rr-select,.rr-return-choice label,.rr-unit>span,.rr-depth-type,.rr-slot,.rr-player-id small,.rr-empty p,.rr-grip,.rr-recovery-player small,.med-profile li span,.med-profile li small,.season-kpis span,.gameBulletin p){color:var(--muted)}
html[data-theme="dark"] :is(.roomNav,.lg-journey,.lg-bracket-switch){background:var(--field);border-color:var(--line)}
html[data-theme="dark"] :is(.roomNav .roomTab,.moreRooms summary,.roomMenu .roomChoice,.rr-tabs button,.dr-tabs .btn.dr-tab,.tx-tabs button,.tx-segments button,.lg-filter-chip,.fa-tabs button){color:var(--muted);background:transparent;border-color:transparent}
html[data-theme="dark"] :is(.moreRooms summary,.lg-filter-chip){border-color:var(--line)}
html[data-theme="dark"] :is(.roomNav .roomTab.current,.roomMenu .roomChoice.selected,.rr-tabs button.is-current,.dr-tabs .btn.dr-tab.current,.tx-tabs button[aria-current="page"],.tx-tabs button[aria-pressed=true],.tx-segments button[aria-pressed=true],.fa-tabs button[aria-pressed=true],.lg-filter-chip.on){
 background:var(--raised);color:#f4f8fa;border-color:#819aa7
}
html[data-theme="dark"] :is(.rr-tabs button:hover,.dr-tabs .btn:hover,.roomMenu .roomChoice:hover,.tx-tabs button:hover,.tx-segments button:hover,.rr-unit button:hover,.rr-nudges button:hover){background:var(--raised);color:white}
html[data-theme="dark"] :is(.lg-bracket-switch .roomTab.current,.lg-rank-tabs .roomTab.current){background:#32596b;color:white;border-bottom-color:#ff985d}
html[data-theme="dark"] :is(.gameBulletin,.roomMenu,dialog){box-shadow:0 10px 32px #0005}
html[data-theme="dark"] :is(.close,.deskTask,.lg-panel>.lg-metrics>div,.sv-compare-banner,.rr-unit-list,.rr-unit button,.rr-nudges button,.rr-health,.coach-impact,.dr-traits>div,.fa-agent,.gc-tile,.tx-rolebar button,.tx-pos-tile>strong,.tx-verdict,.lg-tree-game,.lg-tree-game.pending,.fa-need){
 background:var(--inset);color:var(--ink);border-color:var(--line)
}
html[data-theme="dark"] :is(.note,.deskTask.cutTask,.deskTask.honorTask,.dr-call,.dr-med-profile,.tx-verdict.attention,.tx-market-warning){background:var(--warning);color:var(--amber);border-color:#947545}
html[data-theme="dark"] :is(.dr-call h3,.dr-call small,.dr-signal,.dr-call article span,.fa-odds,.accenttext,.top .save.bad){color:var(--amber)}
html[data-theme="dark"] :is(.lg-match-line.won,.lg-tree-team.winner,.tx-asset.is-selected,.tx-verdict.positive,.rr-depth-card.is-starter,.dr-selection,.dr-last-pick,.fa-need.chosen){background:var(--positive);color:var(--green);border-color:#4b7c65}
html[data-theme="dark"] :is(.coach-impact strong,.rr-good,.rr-health strong,.rr-depth-card.is-starter .rr-depth-type,.rr-recovery article>strong,.gc-tile .won,.fa-odds.strong,.dr-haul small,.dr-last-pick strong,.dr-selection small,.lg-score.won,.lg-clubline.won .link,.lg-match-line.won .link,.lg-match-line.won b,.lg-tree-team.winner span){color:var(--green)}
html[data-theme="dark"] :is(.coach-short,.tx-unavailable,.fa-odds.weak,.fa-warning,.rr-crossed button){color:var(--red)}
html[data-theme="dark"] .fa-warning{background:var(--negative)}
html[data-theme="dark"] :is(.fa-value output,.dr-rank,.dr-panel h2,.dr-med-profile h3,.playbar .menu,.countdownClose,.lg-seed-drawer>summary,.rr-empty){color:var(--ink)}
html[data-theme="dark"] :is(.gc-tile:hover,.gc-tile.selected,.rr-unit button.is-selected,.rr-grip:hover,.gc-tile:focus-visible,.tx-pos-tile:hover,.tx-pos-tile:focus-visible){background:var(--raised);color:white;border-color:#76a2b1}
html[data-theme="dark"] :is(.lg-tree-team em,.lg-tree-team span,.lg-tree-team.out,.lg-tree-game footer span:only-child,.lg-score.lost,.lg-clubline.lost .link,.lg-match-line.lost strong,.lg-match-line.lost .link,.tx-pos-tile em,.tx-filters label,.tx-verdict p,.tx-market-card p,.tx-asset p,.tx-explain,.tx-count,.tx-review-rules,.sv-plays summary small){color:var(--muted)}
html[data-theme="dark"] :is(.lg-tree-bye,.nfc .lg-tree-bye){background:var(--inset)}
html[data-theme="dark"] .lg-tree-bye small{color:var(--amber)}
html[data-theme="dark"] .lg-journey{--afc:#e6a78a;--nfc:#8ac6e5;--tree-edge:#587284}
html[data-theme="dark"] .lg-conf-strip.afc{color:#e6a78a}
html[data-theme="dark"] .lg-conf-strip.nfc{color:#8ac6e5}
html[data-theme="dark"] .lg-tree-final{background:#12303b}
html[data-theme="dark"] .tx-hub{--tx-line:var(--line);--tx-ink:var(--ink);--tx-muted:var(--muted);--tx-blue:var(--action);--tx-mint:var(--positive);--tx-warm:var(--warning)}
html[data-theme="dark"] :is(.hero .eyebrow,.lg-honors .eyebrow){color:#ffb58f}
html[data-theme="dark"] :is(.rr-med-band,.rr-cut-summary,.rr-ribbon,.dr-clock,.dr-stage,.gc-match,.season-banner,.sv-player-card,.lg-honors,.staff-summary) .btn.secondary{background:#284453;color:white;border-color:#547484}
html[data-theme="dark"] :is(.rr-recovery-track,.sv-track,.fa-confidence progress){background:#354b57}
html[data-theme="dark"] .fa-confidence progress::-webkit-progress-bar{background:#354b57}
html[data-theme="dark"] :is(.coach-impact.medical,.tx-actions .tx-force){background:#21394d;color:#c5e6fb}
html[data-theme="dark"] :is(.coach-impact.medical strong,.fa-agent small){color:#acd8e6}
html[data-theme="dark"] a:focus-visible,html[data-theme="dark"] :is(button,input,select,summary):focus-visible{outline-color:#83d2ef}
html[data-theme="dark"] .sv-player-card .sv-grade small,html[data-theme="dark"] .coach-grade small{color:inherit}
html[data-theme="dark"] .lg-honors .link{color:#fff3ca}
html[data-theme="dark"] .season-highlight .link{color:white}
html[data-theme="dark"] .rr-cut-actions button:disabled{background:var(--inset);color:var(--muted)}
html[data-theme="dark"] #notice:not(:empty){border:1px solid #718693;background:#233946;color:#f4f7fa}
@media(max-width:550px){.gameTeam .possessionMarker{height:13px;font-size:.75rem}}


.saveFootprint{display:flex;gap:.45rem 1.2rem;flex-wrap:wrap;margin:.75rem 0;color:var(--muted);font-size:.86rem}
.saveFootprint b{color:var(--ink)}
.tx-fa-summary .fa-cap-projection{color:#a7e8c9}
.tx-fa-summary .fa-cap-projection.over{color:#ffbcac}
html[data-theme="dark"] .tx-response{--surface-alt:var(--inset)}
html[data-theme="dark"] .tx-response small{color:var(--muted)}

.rail .brand strong{font-size:1.85rem;line-height:1;letter-spacing:-.035em}
.rail .brand small{font-size:.74rem;letter-spacing:.14em;color:#e5ecf0;text-transform:uppercase;margin-top:.27rem}
.browserCareer{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.5rem 1rem;padding:.6rem 0;margin:0 0 .75rem;border-bottom:1px solid var(--line);color:var(--muted);font-size:.89rem}
.browserCareer div{display:flex;align-items:baseline;flex-wrap:wrap;gap:1rem}
.browserCareer a{color:var(--action);font-weight:650}

.rosterLimitNotice{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:.6rem 1rem;padding:.8rem 1rem;margin:.7rem 0 1rem;background:#fff2d9;color:#593910;border-inline-start:4px solid #ba6c16;border-radius:.28rem}
.rosterLimitNotice strong,.rosterLimitNotice span{display:block}.rosterLimitNotice span{font-size:.9rem;margin-top:.2rem}
html[data-theme=dark] .rosterLimitNotice{background:var(--warning);color:var(--amber)}
