.hero-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px}.theme-toggle{display:flex;align-items:center;gap:7px;cursor:pointer;user-select:none}.theme-toggle input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.theme-toggle em{color:#607068;font-size:9px;font-style:normal;font-weight:800;letter-spacing:.04em}.toggle-track{position:relative;width:31px;height:18px;border:1px solid #c6d1ca;border-radius:99px;background:#e7ece8;box-shadow:inset 0 1px 2px #173b2515;transition:background .2s ease,border-color .2s ease}.toggle-track i{position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #173b2530;transition:transform .2s ease,background .2s ease}.theme-toggle input:checked+.toggle-track{border-color:#67736c;background:#3f4843}.theme-toggle input:checked+.toggle-track i{background:#dce7df;transform:translateX(13px)}.theme-toggle input:focus-visible+.toggle-track{outline:2px solid #4f8068;outline-offset:2px}

html[data-theme="dark"] body{background:radial-gradient(circle at 80% 0,#3b423f 0,transparent 30%),#292e2c}html[data-theme="dark"] header{border-bottom-color:#464e4a}html[data-theme="dark"] .brand h1,html[data-theme="dark"] .hero h2,html[data-theme="dark"] .season-heading h2{color:#f2f4f1}html[data-theme="dark"] .hero p,html[data-theme="dark"] .season-heading p,html[data-theme="dark"] footer{color:#bdc5c0}html[data-theme="dark"] .hero .kicker,html[data-theme="dark"] .season-heading .kicker,html[data-theme="dark"] .brand .eyebrow{color:#b8d77e}html[data-theme="dark"] .refresh{color:#c6dfcf}html[data-theme="dark"] .refresh:hover{background:#ffffff10}html[data-theme="dark"] .theme-toggle em{color:#d6dcd8}html[data-theme="dark"] header .status{border-color:#55605a;background:#343b37;color:#dfe5e1}html[data-theme="dark"] .season-mode{border-top-color:#48504c}html[data-theme="dark"] footer{border-top-color:#48504c}html[data-theme="dark"] footer code{background:#3c4540;color:#e3e8e5}@media(max-width:760px){.hero-actions{gap:5px}.theme-toggle em{display:none}}

/* Full dashboard night palette. Accent and position colors stay unchanged. */
html[data-theme="dark"]{--ink:#edf2ef;--muted:#aab5af;--card:#363d39;--line:#505a54;--soft:#414a45}
html[data-theme="dark"] .card,
html[data-theme="dark"] .toolbar,
html[data-theme="dark"] .metrics article{background:#363d39;border-color:#505a54;box-shadow:0 5px 18px #0a100d35}
html[data-theme="dark"] .attention-strip{background:#3b3e38;border-color:#5c5d4f;box-shadow:0 5px 18px #0a100d35}
html[data-theme="dark"] .attention-title{border-color:#5c5d4f}
html[data-theme="dark"] .scoreboard{background:radial-gradient(circle at 50% -35%,#3f5a4c 0,transparent 48%),linear-gradient(145deg,#39433d,#323a36);border-color:#596b61;border-top-color:#79a98f;box-shadow:0 16px 34px #080d0a42,0 3px 8px #080d0a30;color:#edf2ef}
html[data-theme="dark"] .scoreboard-heading,
html[data-theme="dark"] .scoreboard .win-meter{border-color:#536159}
html[data-theme="dark"] .scoreboard div>strong,
html[data-theme="dark"] .scoreboard>b{color:#f5f8f6}
html[data-theme="dark"] .scoreboard div>span,
html[data-theme="dark"] .scoreboard small{color:#b4c0ba}
html[data-theme="dark"] .scoreboard>i{border-color:#627169;background:#414a45;color:#c2ccc7}
html[data-theme="dark"] .scoreboard .win-meter>div:first-child span{color:#d2dbd6}
html[data-theme="dark"] .scoreboard .win-track{background:#26322c}
html[data-theme="dark"] .scoreboard .preseason-note{background:#27312c;color:#b8c3bd;border-color:#4b5851}
html[data-theme="dark"] .matchup-drawer{background:linear-gradient(180deg,#35433b,#303c35);border-color:#52655a;box-shadow:inset 0 1px 0 #ffffff0c}
html[data-theme="dark"] .matchup-drawer summary{background:linear-gradient(90deg,#39483f,#34433b 50%,#39483f)}
html[data-theme="dark"] .matchup-drawer summary:hover,
html[data-theme="dark"] .matchup-drawer[open] summary{background:linear-gradient(90deg,#405047,#394b41 50%,#405047);border-color:#53665b}
html[data-theme="dark"] .matchup-drawer summary::before,
html[data-theme="dark"] .matchup-drawer summary::after{background:#607469}
html[data-theme="dark"] .matchup-drawer summary>span>strong{color:#dbe8e1}
html[data-theme="dark"] .matchup-drawer summary>span>small{color:#aab9b1}
html[data-theme="dark"] .drawer-arrow{background:transparent;border-color:transparent;color:#e1e8e4;box-shadow:none}
html[data-theme="dark"] .matchup-drawer .lineup-matchup{background:#333a36;border-color:#536159;box-shadow:0 8px 20px #080d0a45}
html[data-theme="dark"] .matchup-drawer .lineup-teams{background:linear-gradient(90deg,#3c4640,#37423c 50%,#3c4640);border-color:#536159}
html[data-theme="dark"] .matchup-drawer .lineup-teams h4{color:#edf3ef}
html[data-theme="dark"] .matchup-drawer .lineup-teams span{background:#48564e;color:#c3cec8}
html[data-theme="dark"] .matchup-drawer .versus-row{border-color:#49534e}
html[data-theme="dark"] .matchup-drawer .versus-row:nth-child(even){background:#383f3b}
html[data-theme="dark"] .versus-row::before{background:#58645d}
html[data-theme="dark"] .shared-slot{box-shadow:0 0 0 5px #333a36}
html[data-theme="dark"] .matchup-drawer .versus-row:nth-child(even) .shared-slot{box-shadow:0 0 0 5px #383f3b}
html[data-theme="dark"] .scoreboard .drawer-game strong{color:#c9d3cd}
html[data-theme="dark"] .scoreboard .drawer-game small,
html[data-theme="dark"] .versus-points small{color:#9faaa4}
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .panel-heading,
html[data-theme="dark"] th,
html[data-theme="dark"] td,
html[data-theme="dark"] .teams div,
html[data-theme="dark"] .feed-line,
html[data-theme="dark"] .big-plays li,
html[data-theme="dark"] .news-types li,
html[data-theme="dark"] .news-list a{border-color:#4b554f}
html[data-theme="dark"] .filter.active,
html[data-theme="dark"] .feed-filter.active{background:#5a655f;color:#fff;box-shadow:0 1px 4px #0004}
html[data-theme="dark"] .waiting-state,
html[data-theme="dark"] .stat-strip div,
html[data-theme="dark"] .news-placeholder,
html[data-theme="dark"] .updated-tab,
html[data-theme="dark"] .panel-tag,
html[data-theme="dark"] .teams .mine{background:#414a45}
html[data-theme="dark"] .news-icon{background:#505b55;color:#b8d9c8}
html[data-theme="dark"] .injury-watch{background:#4b4438}
html[data-theme="dark"] .recommendation-placeholder{border-color:#69736d}
html[data-theme="dark"] .form-chart{border-color:#566159}
html[data-theme="dark"] .select-trigger{background:linear-gradient(#444d48,#3d4641);border-color:#647069;color:#edf2ef;box-shadow:0 2px 5px #0004,inset 0 1px 0 #ffffff0a}
html[data-theme="dark"] .select-trigger:hover,
html[data-theme="dark"] .select-trigger[aria-expanded="true"]{background:#4a554f;border-color:#819087}
html[data-theme="dark"] .select-trigger::after{border-color:#cad5cf}
html[data-theme="dark"] .select-menu{background:#3b433f;border-color:#606d66;box-shadow:0 15px 35px #0007}
html[data-theme="dark"] .select-option{color:#e8eeeb}
html[data-theme="dark"] .select-option:hover,
html[data-theme="dark"] .select-option:focus-visible{background:#4c5a52;color:#fff}
html[data-theme="dark"] .select-option.selected{background:#52635a;color:#fff}
html[data-theme="dark"] .compare-players>span{background:#414a45;border-color:#5c6861;color:#c1cbc5}
html[data-theme="dark"] code{background:#46504a;color:#edf2ef}

/* The theme control now carries the same visual weight as Refresh data. */
.hero-actions{gap:6px}
.theme-toggle{min-height:39px;padding:8px 12px;border:1px solid transparent;border-radius:9px;gap:9px;transition:background .18s ease,border-color .18s ease}
.theme-toggle:hover{background:var(--soft)}
.theme-toggle em{font-size:11px;letter-spacing:0;font-weight:750}
.toggle-track{width:36px;height:21px}
.toggle-track i{top:2px;left:2px;width:15px;height:15px}
.theme-toggle input:checked+.toggle-track i{transform:translateX(15px)}
html[data-theme="dark"] .theme-toggle{background:#343b37;border-color:#505a54}
html[data-theme="dark"] .theme-toggle:hover{background:#414a45}
@media(max-width:760px){.theme-toggle{width:39px;padding:8px 7px}.toggle-track{width:25px}.theme-toggle input:checked+.toggle-track i{transform:translateX(4px)}}

/* Targeted contrast refinements. */
html[data-theme="dark"] .toolbar:has(.my-team-label){background:#414a45;border-color:#647169;box-shadow:0 6px 18px #080d0a42}
html[data-theme="dark"] .my-team-label>span{background:#285941;color:#d8efba;border:1px solid #47765f}
html[data-theme="dark"] .my-team-label>strong,
html[data-theme="dark"] .record b{color:#f4f7f5}
html[data-theme="dark"] .record{color:#bcc7c1}

html[data-theme="dark"] .scoreboard .slot[data-slot="QB"],
html[data-theme="dark"] .scoreboard .slot[data-slot="TQB"]{background:#f4d7d4;border-color:#ebc1bd;color:#834a46}
html[data-theme="dark"] .scoreboard .slot[data-slot="RB"],
html[data-theme="dark"] .scoreboard .slot[data-slot="RB/WR"]{background:#f6ecc5;border-color:#ebdda9;color:#76652d}
html[data-theme="dark"] .scoreboard .slot[data-slot="WR"],
html[data-theme="dark"] .scoreboard .slot[data-slot="WR/TE"]{background:#dceaf4;border-color:#c5dce9;color:#45697e}
html[data-theme="dark"] .scoreboard .slot[data-slot="TE"]{background:#d9eadf;border-color:#c0ddca;color:#416d50}
html[data-theme="dark"] .scoreboard .slot[data-slot="FLEX"],
html[data-theme="dark"] .scoreboard .slot[data-slot="OP"]{background:#f3dfcf;border-color:#e9cdb8;color:#805b42}
html[data-theme="dark"] .scoreboard .slot[data-slot="D/ST"],
html[data-theme="dark"] .scoreboard .slot[data-slot="DP"],
html[data-theme="dark"] .scoreboard .slot[data-slot="DL"],
html[data-theme="dark"] .scoreboard .slot[data-slot="DB"],
html[data-theme="dark"] .scoreboard .slot[data-slot="LB"]{background:#dce2e6;border-color:#c9d2d8;color:#4e626f}
html[data-theme="dark"] .scoreboard .slot[data-slot="K"]{background:#e7def1;border-color:#d8c9e7;color:#67507d}

html[data-theme="dark"] .injury-watch .injury-label{padding:2px 6px;border:1px solid #89783d;border-radius:5px;background:#655a31;color:#f4dc76}
