/* 中性界面色与实验内容色分离：图片、光线、磁极和仪表纸盘不反色。 */
:root{--science-bg:#f2f5f3;--science-surface:#fff;--science-raised:#f5f8f7;--science-text:#243b46;--science-muted:#607782;--science-border:#d3dfdf;--science-accent:#087f75;--science-focus:#008e83}
html[data-science-theme="dark"]{--science-bg:#151a20;--science-surface:#20272f;--science-raised:#29333d;--science-text:#e5edf3;--science-muted:#a9bac8;--science-border:#40505b;--science-accent:#66cfc0;--science-focus:#76ded0;background:var(--science-bg);color:var(--science-text)}
html body #science-theme-toggle{box-sizing:border-box;display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;min-width:42px;min-height:42px;margin:0;padding:10px;border:1px solid var(--science-border);border-radius:13px;background:var(--science-surface);color:var(--science-text);box-shadow:0 2px 8px #00000009;cursor:pointer;touch-action:manipulation;line-height:1;transition:background-color .15s,color .15s;z-index:2147483604}
html body #science-theme-toggle.is-floating{position:fixed;top:12px;right:16px}
html body #science-theme-toggle.is-inline{position:relative}
html body #science-theme-toggle:hover{background:var(--science-raised);color:var(--science-accent)}
html body #science-theme-toggle:focus-visible{outline:3px solid var(--science-focus);outline-offset:3px}
html body #science-theme-toggle svg{width:20px;height:20px;min-width:20px;border:0;background:none}
[data-science-theme-slot]{display:flex;align-items:center;flex-shrink:0}
html[data-science-theme="dark"] body{background:var(--science-bg);color:var(--science-text)}
html[data-science-theme="dark"] #physics-classroom-toolbar{background:var(--science-surface);border-color:var(--science-border);box-shadow:0 4px 18px #0003}
html[data-science-theme="dark"] #physics-classroom-toolbar button{color:var(--science-muted)}
html[data-science-theme="dark"] #physics-classroom-toolbar button:hover,html[data-science-theme="dark"] #physics-classroom-toolbar button[aria-pressed="true"]{color:var(--science-accent);background:var(--science-raised)}
html[data-science-theme="dark"] #physics-classroom-toolbar button[data-tool="play"]{color:#fff}
html[data-science-theme="dark"] :is(#physics-demo-panel,#physics-record-dialog,#physics-rollcall,#physics-subtitle-options){background:var(--science-surface);color:var(--science-text);border-color:var(--science-border)}
html[data-science-theme="dark"] :is(#physics-demo-panel,#physics-record-dialog,#physics-rollcall,#physics-subtitle-options) :is(input,select,textarea,button){background:var(--science-raised);color:var(--science-text);border-color:var(--science-border)}
html[data-science-theme="dark"] #physics-rollcall .rc-stage{background:radial-gradient(ellipse at center,#29403f,#20282f)}
html[data-science-theme="dark"] #physics-rollcall :is(.rc-name,h2,h3){color:var(--science-text)}
@media(prefers-reduced-motion:reduce){html body #science-theme-toggle{transition:none}}
