.theme-toggle{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;min-height:40px;padding:8px 11px;font-size:11px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink)}.theme-toggle>span:first-child{font-size:19px;line-height:1}.theme-toggle:hover{border-color:var(--gold)}.choice-fieldset{border:0;padding:0;margin:0}.day-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:-2px 0 20px;padding:0 12px}.day-choice{display:flex;gap:10px;align-items:flex-start;padding:16px 13px;margin:0;border:1px solid var(--line);border-radius:10px;cursor:pointer}.day-choice>span{display:grid;gap:4px}.day-choice input{width:18px;height:18px;min-height:18px;flex:0 0 18px;margin-top:3px;accent-color:#986b1d}.day-choice strong{font-size:14px}.day-choice small{font-size:12px;font-weight:400}.day-choice .qualification{color:#855607;font-weight:650}.day-choice:has(input:checked){background:#f5f0e4;border-color:#c6973e}.day-choice:has(input:disabled){opacity:.55;cursor:default}
@media(max-width:1200px){.theme-text{display:none}.theme-toggle{width:40px;justify-content:center;padding:8px}.header-actions{gap:8px}}
@media(max-width:480px){.day-choices{grid-template-columns:1fr;padding:0 8px}.day-choice{padding:13px}.header .brand span{font-size:8px}.header .wrap{gap:10px}}
html[data-theme=dark]{--ink:#f3f3f5;--muted:#b4b4bd;--paper:#0b0b0d;--surface:#19191d;--line:#35353c;--gold:#edb13c;--gold-dark:#e7bc6b;--green:#b8b8c0;--soft-green:#29292f;--shadow:none;color-scheme:dark}
html[data-theme=dark] :is(body,.admin-page){background:var(--paper);color:var(--ink)}
html[data-theme=dark] :is(.header,.admin-page .header,.mobilebottom,.schedule-toolbar,.season-schedule,.faq details,.prose,.empty,.admin-sidebar.is-open,.admin-content[data-view=zgloszenia] tr,.plan-month,.admin-roundline,.admin-stat,.quick-option,.day-choice){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.brand,.desktopnav a,.account-link,.mobile-menu,.admin-content h1,.admin-content h2,.admin-content h3,.admin-content label,label,legend,summary,.quick-option strong,.subnav a.active,.profile-grid strong,.summary dd,.summary h2,.fixture-info h2){color:var(--ink)}
html[data-theme=dark] :is(input,select,textarea){background:#101013;color:var(--ink);border-color:#484850;box-shadow:none}
html[data-theme=dark] :is(input,select,textarea):focus{background:#202026;border-color:var(--gold)}
html[data-theme=dark] input[readonly]{background:#2a2a31;color:#ceced5}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#9d9da8}
html[data-theme=dark] :is(.summary,.optional-profile,.private-link,.quick-identity,.fixture-date,.segmented,.subnav,.roster-toolbar,.plan-counts,.admin-checklist,.admin-roundline:hover,.roundbottom,.darkband,.assignment-note){background:#24242a;color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.fixture-row:hover,tbody tr:hover){background:#242429}
html[data-theme=dark] :is(th,.admin-content th){background:#28282e;color:#c0c0c9;border-color:var(--line)}
html[data-theme=dark] :is(td,.admin-content td,.form-section,.plan-grid,.summary dl,.registration-row,.listline,.facts,.footer-meta,.admin-topbar){border-color:var(--line)}
html[data-theme=dark] :is(.quick-option:has(input:checked),.day-choice:has(input:checked)){background:#3a321f;border-color:#d0a34c;color:#fff0cc}
html[data-theme=dark] :is(.quick-option small,.day-choice small,.prose p,.darkband p,.summary dt,.fixture-date span,.roundtop p,.roundbottom small,.admin-stat small,.admin-stat>span,.admin-topbar,.admin-roundline small,.admin-dl dt,.group-card p,.form-note,.fieldhint,.muted,.empty p,.page-head p,.faq p,.steps p,.quick-identity>span,.assignment-note small){color:var(--muted)}
html[data-theme=dark] :is(.day-choice .qualification,.eyebrow,.stepnum,.darkband .eyebrow){color:#e7bc6b}
html[data-theme=dark] :is(button,.btn){background:#2c2c33;color:#f0f0f3;border-color:#51515b}
html[data-theme=dark] :is(.gold,.btn.gold,.mobilebottom .join){background:#edb13c;color:#201a0e;border-color:#edb13c}
html[data-theme=dark] :is(.dark,.btn.dark){background:#e3e3e8;color:#18181c;border-color:#e3e3e8}
html[data-theme=dark] :is(.text,.btn.text,.fixture-actions button){background:transparent;color:#c9c9d1}
html[data-theme=dark] .segmented button{background:transparent;color:#c1c1ca}
html[data-theme=dark] :is(.segmented button[aria-pressed=true],.subnav a.active){background:#41414a;color:#fff}
html[data-theme=dark] :is(.badge,.empty-label){background:#303037;color:#dddde5}
html[data-theme=dark] :is(.badge.green,.status-accepted,.status-running,.match-status-live){background:#244b36;color:#b4ebc6}
html[data-theme=dark] :is(.status-pending,.status-draft,.status-waitlist){background:#493d20;color:#f4d997}
html[data-theme=dark] :is(.status-cancelled,.form-error){background:#4c2926;color:#ffd0c5;border-color:#94594e}
html[data-theme=dark] .notice{background:#3c321e;color:#f1dca9;border-color:#d5a344}
html[data-theme=dark] .plan-day{background:#1e1e24;color:#e6e6ec;border-color:#43434d}
html[data-theme=dark] .plan-day:has(input:checked){background:#d8a83f;color:#1e1b11;border-color:#e9bb57}
html[data-theme=dark] .plan-day.open:has(input:checked){background:#44444e;color:#fafafa;border-color:#7b7b88}
html[data-theme=dark] :is(.plan-other,.plan-weekday,.plan-day small){color:#aaaab4}
html[data-theme=dark] .plan-day:has(input:checked) :is(small,.plan-kind,.plan-number){color:inherit}
html[data-theme=dark] :is(.plan-count strong,.admin-stat strong){color:#f4f4f6}
html[data-theme=dark] .plan-count.top strong{color:#edbf63}html[data-theme=dark] .plan-count.open strong{color:#d6d6df}
html[data-theme=dark] .admin-sidebar{background:#08080a;border-color:#35353c}
html[data-theme=dark] .admin-sidebar nav a{color:#c2c2cb}html[data-theme=dark] .admin-sidebar nav a.active{background:#e6ca80;color:#242119}
html[data-theme=dark] .mobilebottom a{color:#c2c2cb}html[data-theme=dark] .mobilebottom a.active{color:#f1c65b}
html[data-theme=dark] .hero-stage{background:#0a0a0c}html[data-theme=dark] .footer{background:#08080a}
html[data-theme=dark] .theme-toggle{background:#2c2c33;color:#f2dba1}

html[data-theme=dark] :is(.admin-content,.admin-shell){background:var(--paper)}
html[data-theme=dark] :is(.panel,.admin-content .panel,.admin-match,.match-card,.group-card,.roundcard,.tablewrap){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.plan-count span,.admin-nav-group,.round-picker-meta,.admin-topbar a,.plan-month h4,.plan-month h3,.plan-summary,.admin-controls small){color:var(--muted)}
html[data-theme=dark] .admin-match :is(h3,strong,.admin-pair){color:var(--ink)}

html[data-theme=dark] .round-picker{background:var(--surface);border-color:var(--line)}
html[data-theme=dark] .admin-content td small,html[data-theme=dark] .admin-content td:before{color:var(--muted)}
html[data-theme=dark] .roster-history a,html[data-theme=dark] .admin-content td small a{color:var(--muted);text-decoration-color:var(--muted)}

/* Shared surfaces and interaction states, including nested admin tables. */
html[data-theme=dark]{--surface-raised:#24242a;--surface-hover:#303037;--match-accent:#b9a36b;--control-border:#62626e;scrollbar-color:#696975 #19191d}
html[data-theme=dark] :is(table,.admin-content table){background:var(--surface);color:var(--ink)}
html[data-theme=dark] :is(thead,tbody,tfoot){background:transparent}
html[data-theme=dark] :is(.admin-empty,.admin-set,.plan-count,.calendar-date,.admin-rounds a){background:var(--surface-raised);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.admin-empty p,.admin-empty small,.prose li,.facts span,.section-head p,.roundtime,.fixture-info p,.fixture-availability span,.calendar-row p,.points td:first-child,.subnav a,.admin-rounds span){color:var(--muted)}
html[data-theme=dark] :is(.admin-content .admin-set input,.admin-content td input,.admin-content td select){background:#101013;color:var(--ink);border-color:var(--control-border)}
html[data-theme=dark] :is(.admin-pair,.admin-message,.message,.plan-existing,.plan-count,.plan-count.top,.plan-count.open,.facts div,.stepnum){border-color:var(--line)}
html[data-theme=dark] :is(.plan-summary strong,.admin-pair>b,.fixture-date strong){color:var(--ink)}
html[data-theme=dark] .admin-kind{background:#303037;color:#e0e0e8;border-color:#62626e}
html[data-theme=dark] .admin-content .checked{background:#244b36;color:#b4ebc6;border-color:#76b28b}
html[data-theme=dark] :is(.match-status-confirmed,.success-mark){background:#244b36;color:#b4ebc6}
html[data-theme=dark] .match-status-ready{background:#273a50;color:#c1ddff}
html[data-theme=dark] :is(.admin-page .footer,.admin-page .footer-meta){background:#08080a;color:var(--muted);border-color:var(--line)}
html[data-theme=dark] :is(.admin-avatar,.admin-menu-toggle){background:#29292f;color:#ececf1;border-color:#62626e}
html[data-theme=dark] :is(.admin-label span,.nav-group,.admin-identity small,.admin-menu-toggle span:last-child){color:var(--muted)}
html[data-theme=dark] .admin-identity{border-color:var(--line)}
html[data-theme=dark] .header.menu-open .desktopnav{background:var(--surface);border-color:var(--line);box-shadow:0 12px 25px #0006}
html[data-theme=dark] .fixture-row{background:var(--surface);border-color:var(--line)}
html[data-theme=dark] :is(.admin-stat:hover,.admin-menu-toggle:hover,.admin-rounds a:hover){background:var(--surface-hover);color:var(--ink);border-color:var(--control-border)}
html[data-theme=dark] :is(button,.btn):hover{background:#3d3d46;color:#fff;border-color:#9696a3}
html[data-theme=dark] :is(button.gold,.btn.gold):hover{background:#f7c35b;color:#201a0e;border-color:#f7c35b}
html[data-theme=dark] :is(button.dark,.btn.dark):hover{background:#fff;color:#18181c;border-color:#fff}
html[data-theme=dark] :is(.btn.text,.fixture-actions button):hover{background:var(--surface-hover);color:#fff}
html[data-theme=dark] :is(input,select,textarea):hover{border-color:#9696a3}
html[data-theme=dark] :is(input,select,textarea):focus{background:#202026;border-color:var(--gold)}
html[data-theme=dark] :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid var(--gold);outline-offset:3px}
html[data-theme=dark] input[aria-invalid=true]{background:#3e2427;border-color:#f09e91}
html[data-theme=dark] .error-text{color:#ffb8ad}
html[data-theme=dark] :is(input[type=checkbox],input[type=radio]){accent-color:var(--gold)}
html[data-theme=dark] .admin-content label.plan-day{background:#1e1e24;color:#e6e6ec;border-color:#62626e}
html[data-theme=dark] .admin-content label.plan-day:has(input:checked){background:#d8a83f;color:#1e1b11;border-color:#e9bb57}
html[data-theme=dark] .admin-content label.plan-day.open:has(input:checked){background:#44444e;color:#fafafa;border-color:#7b7b88}
html[data-theme=dark] .plan-day:not(.locked):hover{box-shadow:0 0 0 2px #c6ab70}
html[data-theme=dark] .plan-day:focus-within{outline:3px solid var(--gold);outline-offset:2px}
html[data-theme=dark] .plan-day.locked{opacity:.8}
html[data-theme=dark] :is(.subnav a.active,.admin-rounds .selected){background:#41414a;color:#fff}
html[data-theme=dark] .admin-rounds .selected span{color:#d0d0d9}
html[data-theme=dark] #toast{background:#29292f;color:#fff;border:1px solid #62626e}
