.theme-toggle{min-width:44px;min-height:44px}.readonly-board header>.theme-toggle{float:right}.theme-toggle:focus-visible{outline:3px solid #73adff;outline-offset:3px}
html[data-theme=dark]{color-scheme:dark;--trial-blue:#77adff;--trial-ink:#e8eff8;--trial-muted:#b2c2d5;--trial-line:#425368;--trial-bg:#101923;--ink:#e8eff8;--muted:#b2c2d5;--line:#425368;--surface:#1b2938;--paper:#101923;--green:#87c6ac}
html[data-theme=dark] body{background:#101923;color:#e8eff8}
html[data-theme=dark] :is(.app-header,#nav,.activity,.metric,.panel,.court,.queue-card,.strict-level-controls,.live-other-tools,.live-rules-fold,.auto-dispatch-control,.wish-card,.menu-grid button,.workflow-card,.board-court,#live-queue,#live-waiting,dialog,.dialog-actions,.directory-row,.directory-card,.quick-level,.level-control){background:#1b2938;color:#e8eff8;border-color:#425368;box-shadow:none}
html[data-theme=dark] :is(.brand,.activity h1,.court-top h3,h1,h2,h3,label,.dispatch-caption){color:#e8eff8}
html[data-theme=dark] :is(.brand small,.activity p,.activity .eyebrow,.activity .version,.page-title>span,.metric small,.hint,.reason,.court-empty,.elapsed,.doubles-label,.person-main small,.runtime-strip,footer,.secondary-tools>summary,.live-rules-fold>summary,.live-other-tools>summary,.workflow-card>p,#live-courts .court-jump label){color:#b2c2d5}
html[data-theme=dark] :is(button,.header-actions button,.activity .hero-link,.court-filters button,.court-choice,.wish-shortcut,.live-tabs button,.live-actions .secondary-action,.replace-action,.workflow-card .actions button,.directory-level,.browse-toolbar button,.board-jump a){background:#26384b;color:#e2ecf9;border-color:#526981;box-shadow:none}
html[data-theme=dark] button:hover{background:#344e69;border-color:#87a9cc}
html[data-theme=dark] :is(button.primary,.dispatch-start,.workflow-card .actions button:first-child){background:#77adff;color:#0c2342;border-color:#77adff}
html[data-theme=dark] button.primary:hover{background:#9cc4ff;color:#0c2342}
html[data-theme=dark] :is(.live-tabs button.active,.court-filters button.active,.court-choice[aria-pressed=true],#nav button.active){background:#294b75;color:#eef5ff;border-color:#8eb9ef;box-shadow:none}
html[data-theme=dark] .court .primary.full{background:#294b75;color:#eef5ff;border-color:#8eb9ef}
html[data-theme=dark] .live-tabs{background:#101923;border-color:#425368}
html[data-theme=dark] .metrics{background:#425368;border-color:#425368}
html[data-theme=dark] .metric strong{color:#eef5ff}
html[data-theme=dark] :is(input,select,textarea,.form-grid input,.form-grid select,.form-grid textarea,#live-courts .court-jump select){background:#12202e;color:#e8eff8;border-color:#657b94}
html[data-theme=dark] :is(.tag,.fairness-strip>span){background:#2b3e53;color:#d5e4f5}
html[data-theme=dark] :is(.tag.warn,.overdue-shortcut,.queue-alert,.waiting-alerts,.wish-queue-note,.backup-reminder){background:#392d19;color:#ffdf9a;border-color:#987537}
html[data-theme=dark] :is(.waiting-alerts .reason,.waiting-alerts button,.alert-primary-reason,.alert-names){color:#ffdf9a}
html[data-theme=dark] .waiting-alert-person button{background:#44351e;border-color:#987537}
html[data-theme=dark] .waiting-alert-person{border-color:#71592e}
html[data-theme=dark] .person-row.overdue{background:#312a1e;border-color:#987537}
html[data-theme=dark] :is(.dispatch-bar,.wish-policy){background:#192f49;border-color:#526e91;color:#dceafe}
html[data-theme=dark] .court.live{border-top-color:#82d0b5}
html[data-theme=dark] .court.assigned{background:#302a20;border-top-color:#e8b65d}
html[data-theme=dark] .court.disabled{background:#202831}
html[data-theme=dark] :is(.activity-right>.tag,.auto-dispatch-toggle[aria-pressed=true]){background:#1c3b32;color:#a3e5c8;border-color:#6caa91}
html[data-theme=dark] :is(.board-player,.board-waiter){background:#26384b;color:#e2ecf9}
html[data-theme=dark] [data-level="1"]{--level:#81b7ff;--level-pale:#1a3557;--level-ink:#bbd9ff}
html[data-theme=dark] [data-level="2"]{--level:#66dce7;--level-pale:#123b43;--level-ink:#9ee8ef}
html[data-theme=dark] [data-level="3"]{--level:#7bd8a1;--level-pale:#183c2b;--level-ink:#a2e9bf}
html[data-theme=dark] [data-level="4"]{--level:#edce69;--level-pale:#3c3417;--level-ink:#f6df99}
html[data-theme=dark] [data-level="5"]{--level:#ffb579;--level-pale:#432b19;--level-ink:#ffd0aa}
html[data-theme=dark] [data-level="6"]{--level:#bf9aff;--level-pale:#332246;--level-ink:#decbff}
html[data-theme=dark] [data-level="unknown"]{--level:#a9bbce;--level-pale:#2a3644;--level-ink:#d9e3ee}
html[data-theme=dark] :is(.team-name[data-level],.wish-name,.directory-name[data-level],.avatar,.board-player[data-level]){background:var(--level-pale);color:var(--level-ink);border-color:var(--level)}
html[data-theme=dark] .directory-name[data-level] :is(strong,small){color:var(--level-ink)}
html[data-theme=dark] :is(button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,[role=button]:focus-visible){outline-color:#9fc7ff}
html[data-theme=dark] dialog::backdrop{background:#000b}
html[data-theme=dark] :is(.statistics-browser th,.stats-table th){background:#26384b;color:#e8eff8}
html[data-theme=dark] :is(.stats-table td,.stats-table th,.person-row){border-color:#425368}
html[data-theme=dark] .board-qr{background:white}
@media(max-width:700px){.header-actions{gap:4px}.header-actions button{padding:8px 7px;font-size:12px}.theme-toggle{min-width:44px}.brand small{display:none}}
html[data-theme=dark] :is(.announcement-board,.announcement-item,.display-next){background:#392d19;color:#ffdf9a;border-color:#987537;box-shadow:none}html[data-theme=dark] .announcement-board :is(h2,p,small,.announcement-names,.hint){color:#ffdf9a}html[data-theme=dark] :is(.display-court,.display-queue){background:#1b2938;color:#e8eff8;border-color:#425368}html[data-theme=dark] .auto-dispatch-toggle[aria-pressed=true]{background:#1c3b32;color:#a3e5c8;border-color:#6caa91}
html[data-theme=dark] :is(.doubles-label,.court .secondary-tools,.court .secondary-tools>summary,.queue-card .secondary-tools,.secondary-tools>summary,.decision-details>summary,.details-list>summary){background:#26384b;color:#d9e7f7;border-color:#425368}html[data-theme=dark] .doubles-label{color:#b2c2d5}
