:root[data-theme="dark"]{color-scheme:dark;--ink:#eef1f7;--muted:#aab4c4;--bg:#10141c;--panel:#1b2230;--panel-2:#252e3e;--line:#384458;--gold:#f4cf60;--gold-soft:#f4cf60;--blue:#83baff;--green:#7fcea9;--red:#ff9393}
[data-theme="dark"] body,[data-theme="dark"] .home-shell{background:var(--bg);color:var(--ink)}
[data-theme="dark"] :is(.home-header,.home-nav,.home-action,.home-profile-card,.home-stats>div,.card,.menu-card,.choice,.modal,.back,.icon-button,.button.secondary,.group-box,.player-pool,.group-schedule,.bracket-match,.score-intro,.net-fixture){background:var(--panel);color:var(--ink);border-color:var(--line);box-shadow:none}
[data-theme="dark"] :is(input,select,textarea,.field input:focus,.player-input-row input,.player-chip,.check-row,.distribution-values>div,.metro-beat){background:var(--panel-2);color:var(--ink);border-color:var(--line)}
[data-theme="dark"] :is(.choice.selected,.home-nav-item.active,.menu-card.primary,.metro-beat.strong,.distribution-values .value-peak){background:#3c3420;color:#ffdc79;border-color:#c3a34e}
[data-theme="dark"] :is(.home-action-icon,.mode-card .home-action-icon){background:#303948;color:#ccd4e0}
[data-theme="dark"] .home-action.home-gold .home-action-icon{background:#413721;color:#ffdc79}
[data-theme="dark"] .home-action.home-blue .home-action-icon{background:#223a56;color:#9ac9ff}
[data-theme="dark"] :is(.home-nav-item,.home-profile-card span,.home-stats span,.distribution-values span,.distribution-summary,.distribution-note,.subtle,.net-note){color:var(--muted)}
[data-theme="dark"] .home-nav-item.active span{color:#ffdc79}
[data-theme="dark"] .home-nav-item:not(.active):hover{background:var(--panel-2)}
[data-theme="dark"] #app::before{filter:none;mix-blend-mode:screen;opacity:.035}
[data-theme="dark"] .metro-beat.playing{background:#ffd21a;color:#171717}
[data-theme="dark"] .distribution-handle span{background:var(--panel-2)}
[data-theme="dark"] .distribution-ticks text{fill:var(--muted)}
.theme-toggle-row{position:relative;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:44px;cursor:pointer;font-size:18px;font-weight:600}
.theme-toggle-row input{position:absolute;width:1px;height:1px;opacity:0;padding:0;border:0}
.theme-switch-track{display:block;flex:0 0 58px;width:58px;height:34px;border-radius:999px;background:#b8bec8;box-shadow:inset 0 0 0 1px #0000000a;transition:background-color .28s ease}
.theme-switch-thumb{display:block;width:26px;height:26px;margin:4px;border-radius:50%;background:#fff;box-shadow:0 2px 5px #0003;transition:transform .32s cubic-bezier(.22,1,.36,1),box-shadow .28s ease}
.theme-toggle-row input:checked+.theme-switch-track{background:#e8b92f}
.theme-toggle-row input:checked+.theme-switch-track .theme-switch-thumb{transform:translateX(24px)}
.theme-toggle-row input:focus-visible+.theme-switch-track{outline:3px solid var(--gold);outline-offset:4px}
body,.theme-settings{transition:background-color .28s ease,color .28s ease,border-color .28s ease}
.profile-editor input{border:1px solid var(--line);border-radius:12px;padding:12px;font:inherit;background:var(--panel);color:var(--ink)}
@media(prefers-reduced-motion:reduce){body,.theme-settings,.theme-switch-track,.theme-switch-thumb{transition:none}}
.icp-footer{text-align:center;padding:24px 8px 12px;font-size:13px;line-height:1.6}.icp-footer a{color:var(--muted);text-decoration:none}.icp-footer a:hover{text-decoration:underline}.icp-footer a:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
