.studio-theme-switch { min-width:44px; min-height:44px; padding:4px; font:24px/1 system-ui; background:transparent; color:var(--ink); border-color:var(--line); }
.studio-theme-switch:hover { background:var(--line); }
:root[data-reader-theme=dark] {
    color-scheme:dark; --paper:#17151a; --ink:#f2e7ea; --line:#584752; --green:#ffacc6;
    --cherry-dark:#ffb6cc; --studio-card:#231f25; --studio-raised:#302930; --studio-subtle:#d1b9c4;
}
:root[data-reader-theme=dark] body { background:var(--paper); }
:root[data-reader-theme=dark] :is(body>header,.panel,.novel-panel,.detail-panel,.manuscript-panel,.assistant-panel,.create-panel,.editor-savebar) { background:var(--studio-card); border-color:var(--line); }
:root[data-reader-theme=dark] .desk-mast { background:radial-gradient(at 95% 0%,#462a3b,transparent 65%),var(--studio-card); }
:root[data-reader-theme=dark] :is(.workspace-heading h1,.desk-copy h2,.desk-disclosure>summary,.suggestion-empty strong){ color:var(--ink); }
:root[data-reader-theme=dark] :is(.muted,.eyebrow,.hint,small,.date,.empty-state,.desk-byline,.generation-context,.workspace-stats span,.panel-title span,.choice-copy>span,.chapter-heading h3 span,.editor-panel-heading>span,.desk-copy .synopsis-excerpt){color:var(--studio-subtle);}
:root[data-reader-theme=dark] :is(input,select,textarea,.manuscript-fields #body,#suggestion) { background:#1d191e; color:var(--ink); border-color:var(--line); }
:root[data-reader-theme=dark] :is(.chapter-create,.desk-disclosure .panel,.desk-disclosure section[aria-label="Bulk chapter publication"],.cover-manager,.suggestion-empty,.table-scroll th,.table-scroll tr:hover td,.chapter-number,.notice) {background:var(--studio-raised);color:var(--studio-subtle);border-color:var(--line);}
:root[data-reader-theme=dark] :is(.desk-disclosure,.editor-panel-heading,.workspace-filters,.table-scroll td,.novel-choice){border-color:var(--line);}
:root[data-reader-theme=dark] :is(.novel-choice:hover,.novel-choice.is-selected,.mini-cover,.cover-preview){background:#462e3b;color:#ffd6e5;}
:root[data-reader-theme=dark] .novel-choice.is-selected{border-left-color:var(--green);}
:root[data-reader-theme=dark] :is(button,.button){background:#933852;color:white;border-color:#a44a66;}
:root[data-reader-theme=dark] :is(.button.secondary,button.secondary,.studio-theme-switch){background:var(--studio-raised);color:var(--green);border-color:var(--line);}
:root[data-reader-theme=dark] button.quiet{background:transparent;color:var(--green);}
:root[data-reader-theme=dark] .status{background:#44392f;color:#f2d8ae;}
:root[data-reader-theme=dark] .status-published{background:#263e36;color:#b3e6ce;}
:root[data-reader-theme=dark] .status-hidden{background:#373045;color:#dbccef;}
:root[data-reader-theme=dark] .revision{color:#efc085;}
:root[data-reader-theme=dark] #desk-feedback:not(:empty){background:#3a2f34;border-color:var(--line);}
