:root{color-scheme:light;--surface:#fff;--soft:#f1f5f2}
.theme-toggle{white-space:nowrap;flex-shrink:0;padding:10px 12px;font-size:.85rem}.header-inner{gap:14px}.desktop-nav{gap:14px}.visibility-control{display:flex;flex-wrap:wrap;gap:9px;align-items:center;min-width:175px}.visibility-state{font-size:.72rem;font-weight:750;white-space:nowrap}.visibility-setting{display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line);padding:14px 0}.visibility-selection{margin:0}.visibility-select,.visibility-selection input{width:19px;height:19px;min-height:19px}.visibility-bulk{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:20px 0;padding:14px;border:1px solid var(--line);border-radius:9px;background:var(--surface)}.visibility-bulk .help{flex-basis:100%;margin:0}.visibility-bulk .check-label{margin:0}.private-profile-reference{display:inline-flex;align-items:center;gap:12px}.admin-row{flex-wrap:wrap}.admin-row>.visibility-control{order:2}.admin-row>.actions{order:3}.section-switch{accent-color:var(--green)}
/* Existing sports palette, with readable surfaces instead of replacing the video. */
html[data-theme=dark]{color-scheme:dark;--ink:#edf5f0;--muted:#b6c8be;--green:#8ad7b1;--line:#40574d;--lime:#c6e979;--surface:#182a23;--soft:#22382e;background:#0d1914}
html[data-theme=dark] body{color:var(--ink);background:transparent}
html[data-theme=dark] .container{background:rgba(13,25,20,.94)}
html[data-theme=dark] .background-shade{background:rgba(0,0,0,.56)}
html[data-theme=dark] :is(.topbar,.mobile-nav,.footer,.panel,.team-card,.player-card,.match-card,.scoreboard,.stat-grid,.tournament-card,.reel-caption,dialog,.save-bar){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(input,textarea,select){background:#102019;color:var(--ink);border-color:#607b6e}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#b0c1b7;opacity:1}
html[data-theme=dark] :is(thead,th,.status,.count,.rank,.season-tag,.player-initial,.goals-team,.social-editor,.resolution-team,.roster-identity,.video-admin-preview){background:var(--soft);color:var(--ink)}
html[data-theme=dark] :is(.match-meta,.match-bottom,.match-line,.card-foot,.section-label,.eyebrow,.brand,.brand-title,.admin-link,.public-notice time,.help,.muted){color:var(--muted)}
html[data-theme=dark] :is(h1,h2,h3,h4,.points,.accent,.team-cell a,.player-card h3,.score,.result-score input){color:var(--ink)}
html[data-theme=dark] .btn,html[data-theme=dark] .zone-pills .selected{background:#9fe0bc;color:#10251b;border-color:#9fe0bc}
html[data-theme=dark] .btn.secondary,html[data-theme=dark] .admin-link{background:#20382c;color:#e5f6ec;border-color:#658370}
html[data-theme=dark] :is(.btn.danger,.delete-btn){background:#502824;color:#ffded9;border-color:#a36a61}
html[data-theme=dark] :is(.form-error,.disqualified){color:#ffb6ab}
html[data-theme=dark] .sanction-warning{background:#3a321b;color:#ffe8a1;border-color:#b39d5a}
html[data-theme=dark] :is(.notice,.announcement){color:var(--ink)}
html[data-theme=dark] :is(.scorer-callout,.tournament-card.featured){background:#193c2d;color:#f0f7f3}
html[data-theme=dark] :is(.scorer-callout h2,.featured-scorer,.scorer-callout .eyebrow,.tournament-card.featured h2){color:#f0f7f3}
html[data-theme=dark] :is(a:hover,.desktop-nav a.selected,.section-tabs .selected,.admin-nav .selected){color:#b1edcd}
html[data-theme=dark] .btn:hover{color:#10251b;background:#b9f1d1}
html[data-theme=dark] :is(.btn.secondary:hover,.btn.danger:hover){color:#fff;background:#375947}
html[data-theme=dark] tr:hover td{background:#223b2e}
html[data-theme=dark] .crest{background:#294738;color:#edfff4}
html[data-theme=dark] :focus-visible{outline:3px solid #c6e979;outline-offset:3px}
html[data-theme=dark] .reel-frame{background:#050907}
html[data-theme=dark] :is(.empty,.notice,.skip,.related-videos>a,.reel-card){background:var(--surface);color:var(--ink)}
html[data-theme=dark] :is(.section-head>a,.text-link,.zone-links a,.video-permalink,.back-link){color:#a8e7c6}
html[data-theme=dark] #toast{background:#244a35;color:#effff5;border:1px solid #6d977c}
.video-admin-row .actions .btn:not(.secondary):not(.danger),.section-head>a.btn:not(.secondary){color:white}
.section-switch{appearance:none!important;width:44px!important;height:26px!important;min-height:26px!important;padding:0!important;border-radius:20px!important;position:relative;background:#657369!important;border:1px solid #657369!important;cursor:pointer;flex-shrink:0}
.section-switch:before{content:'';position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:transform .15s}
.section-switch:checked{background:#226953!important;border-color:#226953!important}.section-switch:checked:before{transform:translateX(18px)}
html[data-theme=dark] .section-switch:checked{background:#8ad7b1!important;border-color:#8ad7b1!important}html[data-theme=dark] .section-switch:checked:before{background:#10251b}
html[data-theme=dark] .section-head>a.btn:not(.secondary){color:#10251b}
@media(max-width:1150px){.header-inner{flex-wrap:wrap}.desktop-nav{order:4;flex-basis:100%;justify-content:center;overflow:auto}.topbar{height:auto}.header-inner{padding-top:12px;padding-bottom:12px}.theme-toggle{margin-left:auto}}
@media(max-width:760px){.desktop-nav{display:none}.theme-toggle{font-size:.73rem;padding:9px}.header-inner{gap:7px}.visibility-setting{flex-wrap:wrap}.visibility-control{min-width:0}.visibility-bulk .btn{white-space:normal}.visibility-bulk{gap:9px}.admin-row>.visibility-control{flex-basis:100%}.admin-row .actions{max-width:100%}.sanctions-table .visibility-control{min-width:0}.private-profile-reference{flex-wrap:wrap}}
