/* Shared night palette: presentation only. */
:root[data-theme="dark"]{color-scheme:dark;--ink:#e6edf5;--muted:#a6b5c6;--blue:#8eb6ff;--line:#34455a;--paper:#0e1622;--white:#182435;--surface:#182435;--raised:#213147}
html[data-theme="dark"] .puck{background:var(--surface)}
html[data-theme="dark"] .edition{color:var(--muted)}
html[data-theme="dark"] .coverage{background:var(--surface)}
html[data-theme="dark"] .tag{background:var(--raised)}
html[data-theme="dark"] .game{background:var(--surface)}
html[data-theme="dark"] .game:hover{border-color:var(--line)}
html[data-theme="dark"] .at{color:var(--muted)}
html[data-theme="dark"] .outline{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .search{background:var(--surface)}
html[data-theme="dark"] .search span{color:var(--muted)}
html[data-theme="dark"] select{background:var(--surface)}
html[data-theme="dark"] .chip{background:var(--surface)}
html[data-theme="dark"] .watchfilter span{background:var(--raised)}
html[data-theme="dark"] .tablewrap{background:var(--surface)}
html[data-theme="dark"] th{background:var(--raised);color:var(--muted)}
html[data-theme="dark"] th span{color:var(--muted)}
html[data-theme="dark"] td{border-top:1px solid var(--line)}
html[data-theme="dark"] tr.playerrow:hover{background:var(--raised)}
html[data-theme="dark"] .rank{color:var(--muted)}
html[data-theme="dark"] .initials{background:var(--raised);color:var(--muted)}
html[data-theme="dark"] .sample{background:var(--raised);color:#f5cf83}
html[data-theme="dark"] .matchup span{color:var(--muted)}
html[data-theme="dark"] .observed{color:var(--muted)}
html[data-theme="dark"] .deployment b{color:var(--muted)}
html[data-theme="dark"] .deployment .alert{color:#f5cf83}
html[data-theme="dark"] .missing-val{color:var(--muted)}
html[data-theme="dark"] .star{color:var(--muted)}
html[data-theme="dark"] .empty{border:1px dashed var(--line);background:var(--surface)}
html[data-theme="dark"] dialog{background:var(--surface)}
html[data-theme="dark"] .close{background:var(--surface)}
html[data-theme="dark"] .estimatebox{background:var(--raised);border:1px solid var(--line)}
html[data-theme="dark"] .estimatebox.alt{background:var(--raised)}
html[data-theme="dark"] .read{background:var(--raised)}
html[data-theme="dark"] .read p{color:var(--muted)}
html[data-theme="dark"] .availability-alert{background:var(--raised);color:#f5cf83}
html[data-theme="dark"] .missing-panel{background:var(--raised)}
html[data-theme="dark"] .method-dialog p{color:var(--muted)}
html[data-theme="dark"] .formula{background:var(--raised)}
html[data-theme="dark"] .goal-panel{border:1px solid var(--line);background:var(--raised)}
html[data-theme="dark"] .goal-panel>span{color:var(--blue)}
html[data-theme="dark"] .goal-panel>p{color:var(--muted)}
html[data-theme="dark"] .info-value{color:var(--muted)}
html[data-theme="dark"] .infohead{color:var(--muted)}
html[data-theme="dark"] .goalie-info{background:var(--surface)}
html[data-theme="dark"] .goalie-info>p{color:var(--muted)}
html[data-theme="dark"] .goalie-badge.confirmed{color:#80d8b0;background:var(--raised)}
html[data-theme="dark"] .goalie-badge.pending{color:#f5cf83;background:var(--raised)}
html[data-theme="dark"] .player-dialog .dialogtop{background:var(--surface)}
html[data-theme="dark"] .tablewrap td:nth-child(2),html[data-theme="dark"] .tablewrap th:nth-child(2){background:var(--surface)}
html[data-theme="dark"] .player-result{color:var(--muted)}
html[data-theme="dark"] .player-result.scored{color:#80d8b0}
html[data-theme="dark"] .date-nav a{background:var(--surface)}
html[data-theme="dark"] .deployment-change .toi-up{color:#80d8b0}
html[data-theme="dark"] .deployment-change .toi-down{color:#ffa1ad}
html[data-theme="dark"] .ranking-picker summary{background:var(--surface)}
html[data-theme="dark"] .ranking-options{background:var(--surface)}
html[data-theme="dark"] .ranking-note{background:var(--raised)}
html[data-theme="dark"] .ixg-panel{background:var(--raised)}
html[data-theme="dark"] .goalie-candidate{border-top:1px solid var(--line)}
html[data-theme="dark"] .game-menu select{background:var(--surface)}
html[data-theme="dark"] .breakdown-section{background:var(--surface)}
html[data-theme="dark"] .breakdown-fixed{background:var(--surface)}
html[data-theme="dark"] .results-summary{border:1px solid var(--line,var(--line));background:var(--surface)}
html[data-theme="dark"] .result-panel{border:1px solid var(--line,var(--line))}
html[data-theme="dark"] .zone-tabs button{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .zone-positive{color:#80d8b0}
html[data-theme="dark"] .zone-negative{color:#ffa1ad}
html[data-theme="dark"] .zone-neutral{color:var(--muted)}
html[data-theme="dark"] .sample-badge{border:1px solid var(--line);background:var(--raised);color:#f5cf83}
html[data-theme="dark"] .metric-value:hover{background:var(--raised)}
html[data-theme="dark"] .metric-topic{color:var(--ink)}
html[data-theme="dark"] .focused-story{border-top:1px solid var(--line)}
html[data-theme="dark"] .regression-stat{color:#ffa1ad}
html[data-theme="dark"] .regression-stat:hover,html[data-theme="dark"] .regression-chip:hover{background:var(--raised)}
html[data-theme="dark"] .regression-chip{border:1px solid var(--line);background:var(--raised);color:#ffa1ad}
html[data-theme="dark"] .regression-topic{color:#ffa1ad}
html[data-theme="dark"] .review-rules .regression-mark{color:#ffa1ad}
html[data-theme="dark"] .line-matchup .metric-value{color:var(--muted)}
html[data-theme="dark"] .player-rankings button{background:var(--surface)}
html[data-theme="dark"] .player-dialog:has(.breakdown-dashboard){background:var(--surface)}
html[data-theme="dark"] .player-dialog:has(.breakdown-dashboard)>.dialogtop .eyebrow{color:var(--muted)}
html[data-theme="dark"] .breakdown-kicker{color:var(--ink)}
html[data-theme="dark"] .breakdown-watch[aria-pressed="true"]{color:#f5cf83}
html[data-theme="dark"] .breakdown-status{color:var(--ink)}
html[data-theme="dark"] .breakdown-headline>small{color:var(--ink)}
html[data-theme="dark"] .breakdown-headline:hover{border-color:var(--line)}
html[data-theme="dark"] .breakdown-defense-card{background:var(--raised);border:1px solid var(--line);color:var(--ink)}
html[data-theme="dark"] .breakdown-defense-card>span{color:var(--muted)}
html[data-theme="dark"] .breakdown-defense-card>small{color:var(--muted)}
html[data-theme="dark"] .breakdown-defense-card:hover{background:var(--raised);border-color:var(--line)}
html[data-theme="dark"] .breakdown-snapshot-note{color:var(--muted)}
html[data-theme="dark"] .breakdown-dashboard .breakdown-section{border-top:1px solid var(--line)}
html[data-theme="dark"] .breakdown-section>summary::after{color:var(--muted)}
html[data-theme="dark"] .breakdown-section>summary:hover{color:var(--blue)}
html[data-theme="dark"] .breakdown-section>summary small{color:var(--muted)}
html[data-theme="dark"] .custom-builder{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .custom-body>p:first-child{color:var(--muted)}
html[data-theme="dark"] .weight-row{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .weight-row>label{color:var(--ink)}
html[data-theme="dark"] .weight-input input{border:1px solid var(--line)}
html[data-theme="dark"] .weight-row select{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .weight-total{color:#80d8b0}
html[data-theme="dark"] .weight-total.invalid{color:#ffa1ad}
html[data-theme="dark"] .column-sort:hover{color:var(--blue)}
html[data-theme="dark"] .preset-library{background:var(--raised);border:1px solid var(--line)}
html[data-theme="dark"] .preset-heading h3{color:var(--ink)}
html[data-theme="dark"] .preset-heading span{color:var(--muted)}
html[data-theme="dark"] .preset-library>select,html[data-theme="dark"] .preset-library>input{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .preset-use-row select,html[data-theme="dark"] .preset-save-row input{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .preset-status{color:var(--ink)}
html[data-theme="dark"] .preset-manage{border-top:1px solid var(--line)}
html[data-theme="dark"] .preset-manage>summary{color:var(--muted)}
html[data-theme="dark"] .preset-storage-note{color:var(--muted)}
html[data-theme="dark"] .ranking-intro{color:var(--muted)}
html[data-theme="dark"] .shortlist-heading>span{color:var(--muted)}
html[data-theme="dark"] .ranking-shortlist{border-left:1px solid var(--line)}
html[data-theme="dark"] .top-ten-player{background:var(--surface);border-bottom:1px solid var(--line)}
html[data-theme="dark"] .top-ten-player:hover{background:var(--raised)}
html[data-theme="dark"] .top-ten-player:first-child{background:var(--raised)}
html[data-theme="dark"] .top-ten-rank,html[data-theme="dark"] .top-ten-score{color:var(--blue)}
html[data-theme="dark"] .top-ten-identity strong{color:var(--ink)}
html[data-theme="dark"] .top-ten-identity small,html[data-theme="dark"] .top-ten-score small{color:var(--muted)}
html[data-theme="dark"] .ranking-shortlist{border-top:1px solid var(--line)}
html[data-theme="dark"] .preset-dropdown>summary{color:var(--ink)}
html[data-theme="dark"] .preset-dropdown>summary>span{color:var(--muted)}
html[data-theme="dark"] .model-shortlist{background:var(--surface);border:1px solid var(--line)}
html[data-theme="dark"] #browseAllPlayers[aria-expanded="true"]{background:var(--raised);color:var(--ink)}
html[data-theme="dark"] .update-note{border:1px solid var(--line);background:var(--raised);color:var(--ink)}
html[data-theme="dark"] .football-mark{border:2px solid var(--line)}
html[data-theme="dark"] .coverage-chips button{background:var(--surface)}
html[data-theme="dark"] .market-tabs button{background:var(--surface)}
html[data-theme="dark"] .nfl-controls select,html[data-theme="dark"] .nfl-controls input{background:var(--surface)}
html[data-theme="dark"] .nfl-controls .search{background:var(--surface)}
html[data-theme="dark"] .nfl-sort select{background:var(--surface)}
html[data-theme="dark"] .nfl-table{background:var(--surface)}
html[data-theme="dark"] .nfl-table tbody tr:hover{background:var(--raised)}
html[data-theme="dark"] .nfl-table .nfl-rank{color:var(--muted)}
html[data-theme="dark"] .nfl-star{color:var(--muted)}
html[data-theme="dark"] .nfl-star[aria-pressed=true]{color:#f5cf83}
html[data-theme="dark"] .nfl-badge{background:var(--raised);color:var(--muted)}
html[data-theme="dark"] .nfl-badge.review{background:var(--raised);color:#f5cf83}
html[data-theme="dark"] .nfl-badge.out{background:var(--raised);color:#ffa1ad}
html[data-theme="dark"] .nfl-badge.hold{background:var(--raised);color:var(--muted)}
html[data-theme="dark"] .nfl-shortlist{background:var(--surface)}
html[data-theme="dark"] .nfl-top-row{border-top:1px solid var(--line)}
html[data-theme="dark"] .nfl-top-row .top-rank{color:var(--muted)}
html[data-theme="dark"] .nfl-method{background:var(--surface)}
html[data-theme="dark"] .nfl-builder{border:1px solid var(--line);background:var(--raised)}
html[data-theme="dark"] .preset-row{border-top:1px solid var(--line)}
html[data-theme="dark"] .preset-row input,html[data-theme="dark"] .preset-row select{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .nfl-player-header p{color:var(--muted)}
html[data-theme="dark"] .nfl-metric-card{background:var(--raised);border:1px solid var(--line)}
html[data-theme="dark"] .nfl-metric-card.selected{background:var(--raised);border-color:var(--line)}
html[data-theme="dark"] .nfl-status-box{background:var(--raised)}
html[data-theme="dark"] .nfl-evidence>div{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .nfl-defense-context{background:var(--surface,var(--surface));border:1px solid var(--line,var(--line))}
html[data-theme="dark"] .nfl-defense-game,html[data-theme="dark"] .nfl-defense-player{border:1px solid var(--line)}
html[data-theme="dark"] .nfl-defense-summary span{background:var(--raised)}
html[data-theme="dark"] .nfl-defense-table td small{color:var(--muted,var(--muted))}
html[data-theme="dark"] .nfl-defense-rank.permissive{color:#80d8b0;background:var(--raised)}
html[data-theme="dark"] .nfl-defense-rank.restrictive{color:#ffa1ad;background:var(--raised)}
html[data-theme="dark"] .nfl-defense-toolbar select{background:var(--surface)}
html[data-theme="dark"] .nfl-latest-news{background:var(--surface)}
html[data-theme="dark"] .nfl-final-results{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .nfl-score-story{background:var(--raised)}
html[data-theme="dark"] .sport-switch>a{border:1px solid var(--line);color:var(--muted)}

.theme-toggle{border:1px solid #63768c;background:transparent;color:#eef4fc;border-radius:7px;padding:8px 11px;font-size:12px;font-weight:600;white-space:nowrap;min-height:38px;flex-shrink:0}
.theme-toggle:hover{background:#28415b}.theme-toggle:focus-visible{outline:3px solid #a9c7ff;outline-offset:3px}
html[data-theme="dark"] body{background:var(--paper);color:var(--ink)}
html[data-theme="dark"] input::placeholder{color:var(--muted);opacity:1}
html[data-theme="dark"] .chip.active,html[data-theme="dark"] .date-nav a[aria-current=page]{background:#284f85;color:#fff}
html[data-theme="dark"] input,html[data-theme="dark"] select{color-scheme:dark}
html[data-theme="dark"] .sample,html[data-theme="dark"] .sample-badge,html[data-theme="dark"] .availability-alert,html[data-theme="dark"] .nfl-badge.review{background:#493919;color:#f5cf83}
html[data-theme="dark"] .goalie-badge.confirmed,html[data-theme="dark"] .nfl-defense-rank.permissive{background:#183e33;color:#80d8b0}
html[data-theme="dark"] .nfl-badge.out,html[data-theme="dark"] .nfl-defense-rank.restrictive{background:#492833;color:#ffa1ad}
@media(max-width:600px){.brandrow{flex-wrap:wrap;gap:8px 12px;padding-top:12px;padding-bottom:10px}.brandrow .theme-toggle{margin-left:auto}.brandrow .edition{order:3;flex-basis:100%;margin-left:0;font-size:10px}.brandrow .brand{font-size:14px}}

