.theme-control{display:flex;align-items:center;gap:8px;font-size:12px}.theme-control select{background:#24483f;color:#fff;border:1px solid #688378;border-radius:6px;padding:5px;max-width:120px}.access-actions{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.access-actions>.btn{margin:0 8px 12px 0}.access-actions #access-confirm,.permission-note{padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--mint);line-height:1.6}.access-actions #access-confirm .dialog-actions{flex-wrap:wrap}
html[data-theme=dark]{color-scheme:dark;--ink:#e8efe8;--muted:#b0c0b6;--green:#254f42;--mint:#273d32;--burgundy:#a95164;--paper:#14251f;--line:#41564b;--white:#1b2f26}
[data-theme=dark] body{background:var(--paper);color:var(--ink)}
[data-theme=dark] :is(.sidebar,.topbar,.panel,.form-card,.audio-card,.card-body,.player-bar,.inline-player,.audio-sheet,dialog,.management-filters input,.management-filters select,.member-edit-fields input,.search,.member-sheet-header){background:#1b2f26;color:var(--ink);border-color:var(--line)}
[data-theme=dark] :is(input,select,textarea){background:#15271f;color:var(--ink);border-color:#607569}
[data-theme=dark] :is(.welcome,.latest,.lower-strip,.stat,.batch-bar,.answer-link,.notice-summary,.member-detail-dates,.member-sheet-footer,.question-demo){background:#263c30;color:var(--ink);border-color:var(--line)}
[data-theme=dark] :is(.nav-link,.topbar,.help-text,.card-date,.count,.profile small,.meta,.page-footer,.date-label,.eyebrow){color:var(--muted)}
[data-theme=dark] :is(.nav-link.active,.nav-link:hover,.chip.active,.admin-tab.active){background:#355443;color:#fff}
[data-theme=dark] :is(.btn,.chip,.inline-btn,.admin-tab){color:var(--ink);border-color:#607569}
[data-theme=dark] .btn.primary,[data-theme=dark] .play-main{background:#38644e;color:#fff;border-color:#719982}
[data-theme=dark] :is(.tag,.tag.green){background:#355443;color:#e4f3e8}[data-theme=dark] .tag.burgundy{background:#713b49;color:#fff}
[data-theme=dark] :is(.brand,.mini-logo,.welcome-mark){color:#e9a4b6}
[data-theme=dark] :is(.latest p,.welcome p,.intro p,.panel-title p,.form-card p,.detail-line span){color:var(--muted)}
[data-theme=dark] .card-top{background:#304b3b!important;color:#e3ece3}[data-theme=dark] .episode-number{color:#cbdccc}
[data-theme=dark] :is(th,.admin-scroll thead th){background:#20372b;color:#c4d7ca}
[data-theme=dark] .audio-sheet .disc{background:radial-gradient(circle,#35533f,#243a2e);border-color:#718c77;color:#e9a4b6}
[data-theme=dark] .notice-summary:hover{background:#324b3a}[data-theme=dark] .notice-arrow{color:#edb2bf}
[data-theme=dark] .btn:hover,[data-theme=dark] .chip:hover{background:#3c5545}
@media(max-width:700px){.theme-control>span{display:none}.demo-bar{height:auto;min-height:44px;flex-wrap:wrap;gap:8px;padding-top:6px;padding-bottom:6px}.theme-control select{max-width:105px}}
/* Complete button surfaces and states for the dark palette. */
[data-theme=dark] .btn{background:#294335;color:#eef4ee;border:1px solid #688273;padding:10px 16px;min-height:42px;border-radius:8px}
[data-theme=dark] .btn.small{padding:8px 13px;min-height:38px}
[data-theme=dark] .btn.quiet{background:transparent;border-color:transparent;color:#d7e9dc;padding:8px 12px;min-height:38px}
[data-theme=dark] .btn.primary{background:#38644e;border-color:#7a9c85;color:#fff}
[data-theme=dark] .btn:not(:disabled):hover{background:#3b5947;border-color:#8aa693}
[data-theme=dark] .btn.quiet:not(:disabled):hover{background:#2e4939;border-color:transparent}
[data-theme=dark] .btn.primary:not(:disabled):hover{background:#48785d;border-color:#98b69e}
[data-theme=dark] .btn:disabled{background:#25382d;color:#9bad9f;border-color:#455c4c;opacity:1;cursor:not-allowed;filter:none}
[data-theme=dark] .inline-btn{background:transparent;color:#d7e9dc;border:0;padding:8px 10px;border-radius:6px;min-height:36px}
[data-theme=dark] .inline-btn:hover{background:#304b3b;color:#fff}
[data-theme=dark] .admin-tab{background:transparent;color:#bacfc1;border:0;border-bottom:2px solid transparent;padding:12px 16px;border-radius:6px 6px 0 0;min-height:44px}
[data-theme=dark] .admin-tab.active{background:#2b4737;color:#fff;border-bottom-color:#9bbda7}
[data-theme=dark] .admin-tab:hover{background:#2b4737;color:#fff}
[data-theme=dark] :is(.btn,.inline-btn,.admin-tab):focus-visible{outline:3px solid #edb2bf;outline-offset:3px}
[data-theme=dark] button.audio-close-active,[data-theme=dark] button[data-audio-action="stop"]{background:#914359!important;border-color:#cb8495!important;color:#fff!important}
[data-theme=dark] .avatar{background:#344d3d;color:#e5eddf}
[data-theme=dark] .admin-scroll td{border-color:#41564b}
[data-theme=dark] .chip{background:#243c2e;color:#e1ece4;border:1px solid #718779}
[data-theme=dark] .chip:not(:disabled):hover{background:#355440;border-color:#a0b5a6;color:#fff}
[data-theme=dark] .chip.active,[data-theme=dark] .chip[aria-pressed="true"]{background:#406a51;color:#fff;border-color:#adcab6}
[data-theme=dark] .chip:focus-visible,[data-theme=dark] .round:focus-visible{outline:3px solid #edb2bf;outline-offset:3px}
[data-theme=dark] .round{background:#243c2e;border-color:#819989;color:#e3ece5}
[data-theme=dark] .round.active{background:#703548;border-color:#d295a5;color:#ffe6ed}
[data-theme=dark] .round:hover{background:#405c49;color:#fff}
[data-theme=dark] .card-bottom{border-color:var(--line)}
[data-theme=dark] .card-bottom button{color:#d7e9dc}
[data-theme=dark] .player-controls button{color:#e8efe8}
[data-theme=dark] .player-controls .play-main{background:#38644e;color:#fff;border:1px solid #8aaa94}
[data-theme=dark] .stat small{color:var(--muted)}
[data-theme=dark] .lower-strip .calendar-icon{background:#355440;color:#e8efe8;border:1px solid #718779;flex-shrink:0}[data-theme=dark] .lower-strip .calendar-icon svg{color:inherit;stroke:currentColor}
[data-theme=dark] .empty{background:#1b2f26;color:#e8efe8;border-color:#718779}[data-theme=dark] .empty :is(h2,h3){color:#e8efe8}[data-theme=dark] .empty p{color:#b0c0b6}[data-theme=dark] tbody td[colspan]{background:#1b2f26;color:#e8efe8}
