
:root { --surface:#fff; --field:#fff; --accent-soft:#eaf0dd; }
html[data-theme="Dark"] { color-scheme:dark; --ink:#ededf0; --muted:#b4b5bf; --green:#d5d8e0; --line:#45464e; --surface:#202126; --field:#16171b; --accent-soft:#34363e; }
html[data-theme="RedWhiteBlue"] { color-scheme:light; --ink:#142e57; --muted:#526782; --green:#b02135; --line:#cbd6e7; --surface:#fff; --field:#fff; --accent-soft:#e9effa; }
html[data-theme="Dark"] body { background:#101114; color:var(--ink); }
html[data-theme="RedWhiteBlue"] body { background:#f0f4fa; color:var(--ink); }
html:not([data-theme="Light"]) :is(.panel,.stat,.topbar,dialog) { background:var(--surface); color:var(--ink); border-color:var(--line); }
html:not([data-theme="Light"]) :is(input,select,textarea,.form-control) { background:var(--field); color:var(--ink); border-color:var(--line); }
html:not([data-theme="Light"]) :is(th,.badge,.position-badge,.callout,pre,.help-button,.column-icon.selected) { background:var(--accent-soft); color:var(--ink); border-color:var(--line); }
html:not([data-theme="Light"]) :is(td,th,hr,.player-overview .league-points) { border-color:var(--line); }
html:not([data-theme="Light"]) :is(.button.secondary,.column-icon,.text-button,.star-button) { color:var(--green); border-color:var(--line); }
html[data-theme="Dark"] .button:not(.secondary) { background:#d5d8e0; color:#111218; border-color:#d5d8e0; }
html[data-theme="Dark"] .sidebar { background:#050507; }
html[data-theme="Dark"] .brand-icon { background:#dadce2; color:#111; }
html[data-theme="Dark"] .sidebar nav>a.active,html[data-theme="Dark"] .sidebar nav>a:hover { background:#34363e; color:#fff; }
html[data-theme="Dark"] .notice { background:#272d35; color:#e1e7f2; border-color:#505863; }
html[data-theme="Dark"] .notice.error { background:#3d2025; color:#ffc4c9; }
html[data-theme="Dark"] .notice.success { background:#20372c; color:#c2ecd4; }
html[data-theme="Dark"] :is(.unavailable,.text-danger,.validation-summary-errors) { color:#ff9eaa!important; }
html[data-theme="RedWhiteBlue"] .sidebar { background:#102b56; }
html[data-theme="RedWhiteBlue"] .brand-icon { background:#fff; color:#b02135; }
html[data-theme="RedWhiteBlue"] .sidebar nav>a.active,html[data-theme="RedWhiteBlue"] .sidebar nav>a:hover { background:#a82135; color:#fff; }
.home-focus-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin:16px 0; }
.home-actions { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.home-selector select { min-width:220px; }
.home-focus .section-heading { align-items:center; }
@media(max-width:700px){.home-focus-grid{grid-template-columns:1fr;gap:18px}.home-selector select{width:100%;min-width:0}}

html[data-theme="Dark"] .button.secondary { background:var(--surface); }
html[data-theme="Dark"] :is(.nav-caption,.sidebar-footer) { color:#b4b5bf; }
html[data-theme="Dark"] .column-filter::backdrop { background:#000a; }
