/* night.css - GENERATED by android-work/gen_night.py from the light stylesheets (v13s). Do not edit by hand; edit night-extra.css. */
/* ---- from style.css (57 rules) ---- */
html[data-theme=dark]{--bg:#1c232c;--ink:#bec7d2;--muted:#9eabb8;--card:#191d21;--male:#498fdd;--female:#dd5e90;--accent:#17a27a}
html[data-theme=dark] header.top{background:#191d21}
html[data-theme=dark] .btn{color:#e0e0e0}
html[data-theme=dark] .toggle:hover{background:#202831}
html[data-theme=dark] .stage{background:radial-gradient(circle at 50% 40%,#191d21,#232c35)}
html[data-theme=dark] .tip{color:#e0e0e0}
html[data-theme=dark] .info .sys{background:#23352e}
html[data-theme=dark] .list button:hover{background:#202831}
html[data-theme=dark] #search{border:1px solid #3e4c59}
html[data-theme=dark] .sexswitch{background:#191d21}
html[data-theme=dark] .sexswitch button.on{color:#e0e0e0}
html[data-theme=dark] .presets button,html[data-theme=dark] .chip,html[data-theme=dark] .small,html[data-theme=dark] .acts button,html[data-theme=dark] .quizbar button{border:1px solid #3a4653;background:#191d21}
html[data-theme=dark] .presets button:hover,html[data-theme=dark] .chip:hover,html[data-theme=dark] .small:hover,html[data-theme=dark] .acts button:hover{background:#202831}
html[data-theme=dark] .chip.on{color:#e0e0e0}
html[data-theme=dark] .stage3d{background:radial-gradient(circle at 50% 35%,#191d21,#27313c)}
html[data-theme=dark] .status{color:#e0e0e0}
html[data-theme=dark] .help{background:#191d21cc}
html[data-theme=dark] .quizbar{background:#191d21d9}
html[data-theme=dark] .info .reg{background:#1f222f;color:#7889cf}
html[data-theme=dark] .info .fact{background:#322f23}
html[data-theme=dark] .tree button:hover{background:#202831}
html[data-theme=dark] .credits section{background:#191d21}
html[data-theme=dark] .csec{border-top:1px solid #333f49}
html[data-theme=dark] .clink,html[data-theme=dark] .cext,html[data-theme=dark] .cplain{border:1px solid #3b554b;background:#1f2f28;color:#17a277}
html[data-theme=dark] .cext{background:#1d232c;border-color:#384250;color:#a7b2c2}
html[data-theme=dark] .cplain{background:#20252b;border-color:#3b424b;color:#b5b5b5}
html[data-theme=dark] .flag{background:#302a22;border:1px solid #5b4f3f}
html[data-theme=dark] .skip{background:#191d21}
html[data-theme=dark] .partial{color:#c5801c;background:#302a22;border:1px solid #5b4f3f}
html[data-theme=dark] .coverage{color:#c4821c;background:#2d281f;border:1px solid #554b3b}
html[data-theme=dark] .presets button.on{color:#e0e0e0}
html[data-theme=dark] .showall{color:#e0e0e0}
html[data-theme=dark] .unhl-chip,html[data-theme=dark] .acts button.unhl{background:#1e8a68;color:#f2fbf7;border-color:#1e8a68}
html[data-theme=dark] .crumb{background:#1f222f;color:#7889cf}
html[data-theme=dark] .x{background:#202831}
html[data-theme=dark] .x:hover{background:#28323d}
html[data-theme=dark] .ac{background:#191d21;border:1px solid #3a4653}
html[data-theme=dark] .ac li[aria-selected=true],html[data-theme=dark] .ac li:hover{background:#23352e}
@media(max-width:1100px){
html[data-theme=dark] .sheet-tabs{background:#191d21}
html[data-theme=dark] .sheet-tabs button[role=tab]{border:1px solid #3a4653;background:#191d21}
html[data-theme=dark] .sheet-tabs button[role=tab].on{color:#e0e0e0}
html[data-theme=dark] .grip span{background:#373f49}
html[data-theme=dark] .explore3d .panel{background:#191d21}
html[data-theme=dark] .pop{background:#191d21}
html[data-theme=dark] .pop .acts .pri{color:#e0e0e0}
}
html[data-theme=dark] .features .feat{background:#191d21}
html[data-theme=dark] .features .feat .go{color:var(--accent,#17a27a)}
html[data-theme=dark] .bv-btn{background:#191d21f2;color:#169d76}
html[data-theme=dark] .bv-btn:hover{background:#191d21}
html[data-theme=dark] .bv-back{color:#e0e0e0}
html[data-theme=dark] .bv-mode{background:#191d21f2;color:#169d76}
html[data-theme=dark] .bv-mini{background:#191d21f2;border:1px solid #3a4653}
html[data-theme=dark] .bv-mbtns button{border:1px solid #3e4c5a;background:#191d21}
html[data-theme=dark] .bv-mbtns button.pri,html[data-theme=dark] .bv-mbtns button[aria-pressed=true]{color:#e0e0e0}
html[data-theme=dark] .bv-mbtns button.ok{background:#263a30}
html[data-theme=dark] .bv-mbtns button.bad{background:#342222}
html[data-theme=dark] body.holi-on .bv-btn{color:#b1c9bf}
html[data-theme=dark] body.holi-on .bv-back{background:#486c5b}
html[data-theme=dark] body.holi-on .bv-mode{color:#b1c9bf}
html[data-theme=dark] body.holi-on .bv-mbtns button.pri{background:#486c5b}
html[data-theme=dark] .fun-chead .fun-cbig{border:1px solid #3a4653;background:#191d21}
@media(max-width:1100px) and (orientation:landscape){
html[data-theme=dark] body.x3d:not(.fun-embed):not(.bv-on) main.explore3d>.sheet-tabs{box-shadow:inset 1px 0 0 #00000066}
}
@media(max-width:1100px) and (orientation:portrait){
html[data-theme=dark] body.x3d:not(.fun-embed):not(.bv-on) main.explore3d>.sheet-tabs{box-shadow:0 -1px 0 #00000066}
html[data-theme=dark] body.x3d:not(.fun-embed):not(.bv-on) main.explore3d>.holi-panel{box-shadow:0 -1px 0 #00000066}
}
html[data-theme=dark] body.x3d:not(.fun-embed) .fun-drawer .fun-back{background:#15273c1a}
/* ---- from fun.css (58 rules) ---- */
html[data-theme=dark] .fun-open{background:linear-gradient(135deg,#1a8969,#227cb6);color:#e0e0e0}
@media(max-width:1100px){
html[data-theme=dark] .sheet-tabs .fun-tab{background:#23352e;color:#18a57c}
}
html[data-theme=dark] .fun-back{background:#15273c55}
html[data-theme=dark] .fun-panel{background:#191d21}
html[data-theme=dark] .fun-dhead{border-bottom:1px solid #333f49}
html[data-theme=dark] .fun-x{background:#202831}
html[data-theme=dark] .fun-x:hover{background:#28323d}
html[data-theme=dark] .fun-flag{background:#302a22;border:1px solid #5b4f3f}
html[data-theme=dark] .fun-card{border:1px solid #35404d;background:#191d21}
html[data-theme=dark] .fun-card:hover{background:#1d2c26}
html[data-theme=dark] .fun-seg button,html[data-theme=dark] .fun-btn,html[data-theme=dark] .fun-row button,html[data-theme=dark] .fun-row a,html[data-theme=dark] .fun-chips button{border:1px solid #3a4653;background:#191d21}
html[data-theme=dark] .fun-seg button[aria-checked=true],html[data-theme=dark] .fun-chips button[aria-pressed=true]{color:#e0e0e0}
html[data-theme=dark] .fun-go{color:#e0e0e0}
html[data-theme=dark] .fun-row .pri{color:#e0e0e0}
html[data-theme=dark] .fun-feature{background:linear-gradient(135deg,#23352e,#1f2730)}
html[data-theme=dark] .fun-fact,html[data-theme=dark] .fun-fact2{background:#322f23}
html[data-theme=dark] .fun-chip{border:1px solid #3b554b;background:#1d2d26;color:#17a078}
html[data-theme=dark] .fun-chip:hover{background:#263a31}
html[data-theme=dark] .fun-feed li{border-top:1px solid #333f49}
html[data-theme=dark] .fun-badges li{border:1px solid #333f49}
html[data-theme=dark] .fun-badges li.on{background:#1d2c26;border-color:#405c50}
html[data-theme=dark] .fun-bar,html[data-theme=dark] .fun-prog{background:#242f38}
html[data-theme=dark] .fun-sysdot{background:#202831}
html[data-theme=dark] .fun-sysdot.on{background:#23352e;color:#17a078}
html[data-theme=dark] .fun-weights button:hover{background:#1d2c26}
html[data-theme=dark] .fun-wb{background:#202831}
html[data-theme=dark] .fun-wb i{background:linear-gradient(90deg,#1a8969,#227cb6)}
html[data-theme=dark] .fun-field input{border:1px solid #3a4653}
html[data-theme=dark] .fun-tools button{border:1px solid #3a4653;background:#191d21eb}
html[data-theme=dark] .fun-tools button:hover{background:#191d21}
html[data-theme=dark] .fun-tools button[aria-pressed=true] small{color:#e0e0e0}
html[data-theme=dark] .fun-activity{background:#191d21f2}
html[data-theme=dark] .fun-hud .hot b{color:#e06928}
html[data-theme=dark] .fun-time.low b{color:#e06691}
html[data-theme=dark] .fun-q q{color:#b8b8c9}
html[data-theme=dark] .fun-opts button{border:2px solid #3a4653;background:#191d21}
html[data-theme=dark] .fun-opts button:hover:not(:disabled){background:#1d2c26}
html[data-theme=dark] .fun-opts button.ok{background:#23352e}
html[data-theme=dark] .fun-opts button.bad{background:#2f1f24}
html[data-theme=dark] .fun-opts kbd{background:#202831}
html[data-theme=dark] .fun-fb.ok{color:#18a57c}
html[data-theme=dark] .fun-fb.bad{color:#da6690}
html[data-theme=dark] .fun-disc{background:#202831}
html[data-theme=dark] .fun-toast{color:#e0e0e0}
html[data-theme=dark] .fun-tip{color:#e0e0e0}
html[data-theme=dark] .fun-tip button{background:#191d21}
html[data-theme=dark] .fun-compare{background:#1c232c}
html[data-theme=dark] .fun-panes figure{background:#191d21}
html[data-theme=dark] .fun-panes figcaption{background:#191d21d9}
html[data-theme=dark] .fun-moremenu{background:#191d21f2;border:1px solid #3a4653}
/* ---- from tours2.css (21 rules) ---- */
html[data-theme=dark] .stage3d.t2-cinema{background:radial-gradient(circle at 50% 38%,#20345a 0%,#13213f 55%,#13223e 100%)!important}
html[data-theme=dark] .fun-activity.tour2{background:#14233eee;color:#dcdfe5;box-shadow:0 14px 40px #000a,inset 0 0 0 1px #0000001a}
html[data-theme=dark] .fun-activity.tour2 .fun-actx{color:#dcdfe5;background:#191d2114}
html[data-theme=dark] .fun-activity.tour2 button{color:#dcdfe5;background:#191d2114;border:1px solid #2d333926}
html[data-theme=dark] .fun-activity.tour2 button:hover{background:#191d2126}
html[data-theme=dark] .fun-activity.tour2 button.pri{background:var(--tc,#227cb6);color:#d4d4d4}
html[data-theme=dark] .fun-activity.tour2 button:focus-visible,html[data-theme=dark] .fun-activity.tour2 input:focus-visible{outline:3px solid #4a5c6b}
html[data-theme=dark] .t2-top b{color:#e0e0e0}
html[data-theme=dark] .t2-km{background:#191d2114}
html[data-theme=dark] .t2-prog i{background:#191d2126}
html[data-theme=dark] .t2-h{color:#e0e0e0}
html[data-theme=dark] .t2-cap span.on{color:#e0e0e0}
html[data-theme=dark] .t2-fact{color:#f4e4b3}
html[data-theme=dark] .fun-activity.tour2 .t2-say[aria-pressed=true]{background:#227cb633;border-color:#4a5c6b88}
html[data-theme=dark] .t2-hint{color:#eecd8b}
html[data-theme=dark] .fun-activity.tour2 .t2-speed button[aria-pressed=true]{background:#191d2133;border-color:#2d333988}
html[data-theme=dark] .t2-sh h3{color:#e0e0e0}
html[data-theme=dark] .t2-pick .fun-hud b{color:#e0e0e0}
html[data-theme=dark] .t2-recap{color:#dcdfe5}
html[data-theme=dark] .t2-call i{background:#191d21;box-shadow:0 0 0 3px #00000055,0 0 16px 4px #00000088}
html[data-theme=dark] .t2-call span{color:#e0e0e0;background:#14233ed9}
/* ---- from holistic.css (32 rules) ---- */
html[data-theme=dark]{--holi-bg:#272c20;--holi-card:#191d21;--holi-ink:#bfd2cb;--holi-muted:#a6b4ad;--holi-sage:#63957d;--holi-sage2:#2b392f;--holi-line:#3c5243;--holi-warn:#332e24;--holi-warnb:#746850;--holi-preg:#e1692a}
html[data-theme=dark] .holi-head h2{color:#b5ccc2}
html[data-theme=dark] .holi-ib{background:#191d21}
html[data-theme=dark] .holi-tabs button{background:#191d21}
html[data-theme=dark] .holi-tabs button[aria-selected=true]{color:#e0e0e0}
html[data-theme=dark] .holi-search input{background:#191d21}
html[data-theme=dark] .holi-favbtn{color:#d46d93}
html[data-theme=dark] .holi-foot{background:#262f26}
html[data-theme=dark] .holi-link{color:#abc5bb}
html[data-theme=dark] .holi-panel h3{color:#b5ccc2}
html[data-theme=dark] .holi-warn{color:#b38530}
html[data-theme=dark] .holi-btn{color:#e0e0e0}
html[data-theme=dark] .holi-btn.ghost{background:#191d21;color:#b1c9bf}
html[data-theme=dark] .holi-btn[aria-pressed=true]{background:#322026;border-color:#7f5967;color:#d66b94}
html[data-theme=dark] .holi-back{color:#abc5bb}
html[data-theme=dark] .holi-chips button,html[data-theme=dark] .holi-views button{background:#191d21}
html[data-theme=dark] .holi-sel select{background:#191d21}
html[data-theme=dark] .holi-plist button,html[data-theme=dark] .holi-mlist button,html[data-theme=dark] .holi-res button{background:#191d21}
html[data-theme=dark] .holi-kind{color:#e0e0e0}
html[data-theme=dark] .holi-code{color:#c7d8d0}
html[data-theme=dark] .holi-swatch{box-shadow:0 0 0 2px #00000066,0 0 8px var(--c)}
html[data-theme=dark] .holi-preg{background:#382d27;border:1px solid #695549}
html[data-theme=dark] .holi-np{background:#272b2e;color:#a8b3bf}
html[data-theme=dark] .ev-some{background:#273b30;color:#2ca369;border:1px solid #4c6d5a}
html[data-theme=dark] .ev-lim{background:#212832;color:#5d8ccf;border:1px solid #455163}
html[data-theme=dark] .ev-trad{background:#241f2f;color:#a49cba;border:1px solid #473f5b}
html[data-theme=dark] .holi-tip{color:#e0e0e0}
html[data-theme=dark] body.holi-on .stage3d::after{background:radial-gradient(ellipse at 50% 40%,#29292900 55%,#567c6a18 100%)}
html[data-theme=dark] .holi-timer{color:#b5ccc2}
html[data-theme=dark] .holi-step{background:#191d21}
html[data-theme=dark] .holi-breath{background:radial-gradient(circle,#191d21 0,var(--c,#497064) 70%);box-shadow:0 0 30px var(--c,#00000066)}
@media(max-width:1100px){
html[data-theme=dark] .holi-grip span{background:#4f5c54}
}
/* ---- from spine.css (66 rules) ---- */
html[data-theme=dark]{--sp-bg:#2a261c;--sp-ink:#c0c6d3;--sp-mut:#a1a9b6;--sp-acc:#3792c7;--sp-acc2:#3695ce;--sp-line:#37404f;--sp-hot:#e75a7e;--sp-tight:#e46742;--sp-weak:#538ce6;--sp-nerve:#c49a1c}
@media(max-width:1100px) and (orientation:portrait){
html[data-theme=dark] body.x3d:not(.fun-embed):not(.bv-on) main.explore3d>.sp-panel{box-shadow:0 -1px 0 #00000066}
}
html[data-theme=dark] .sp-ib{background:#191d21}
html[data-theme=dark] .sp-tabs button{background:#191d21}
html[data-theme=dark] .sp-tabs button[aria-selected=true]{color:#e0e0e0}
html[data-theme=dark] .sp-back{background:#191d21}
html[data-theme=dark] .sp-btn{color:#e0e0e0}
html[data-theme=dark] .sp-btn.sec{background:#191d21}
html[data-theme=dark] .sp-btn.sec:hover{background:#1f292f}
html[data-theme=dark] .sp-btn[aria-pressed=true]{color:#e0e0e0}
html[data-theme=dark] .sp-btn.warn{background:#191d21;color:#e6675b}
html[data-theme=dark] .sp-card{background:#191d21}
html[data-theme=dark] .sp-warn{background:#302b22}
html[data-theme=dark] .sp-honest{background:#1f262f}
html[data-theme=dark] .ev-good{background:#293f33;color:#179f68}
html[data-theme=dark] .ev-some{background:#222a34;color:#5690dd}
html[data-theme=dark] .ev-lim{background:#3d382b;color:#b28519}
html[data-theme=dark] .ev-none{background:#342222;color:#e86066}
html[data-theme=dark] .sp-tile{background:#191d21}
html[data-theme=dark] .sp-time li>span{background:#191d21}
html[data-theme=dark] .sp-red{border-left:4px solid #888888;background:#191d21}
html[data-theme=dark] .sp-red.sp-urgent{background:#291d1d}
html[data-theme=dark] .sp-player{background:#1e262e}
html[data-theme=dark] .sp-prog{background:#2a343f}
html[data-theme=dark] .sp-pchip{background:#191d21}
html[data-theme=dark] .sp-pchip[aria-pressed=true]{background:#ed8e0c;color:#c0c6d3}
html[data-theme=dark] .sp-lab select{background:#191d21}
html[data-theme=dark] .sp-meter{background:#1e2534;color:#dce0e5}
html[data-theme=dark] .sp-meter b{color:#e7c557}
html[data-theme=dark] .sw.n{background:#887e5f}
html[data-theme=dark] .sp-chip{background:#191d21}
html[data-theme=dark] .sp-chip.tight[aria-pressed=true]{color:#e0e0e0}
html[data-theme=dark] .sp-chip.weak[aria-pressed=true]{color:#e0e0e0}
html[data-theme=dark] .sp-chip.nerve[aria-pressed=true]{background:#887e5f}
html[data-theme=dark] .sp-vb{border:1px solid #00000022;color:#c5d0d7}
html[data-theme=dark] .sp-vb.r-cervical{background:#2fa69b}
html[data-theme=dark] .sp-vb.r-thoracic{background:#3c3856}
html[data-theme=dark] .sp-vb.r-lumbar{background:#81715b}
html[data-theme=dark] .sp-vb.r-sacral{background:#5a8a6f}
html[data-theme=dark] .sp-rchip{color:#c5d0d7}
html[data-theme=dark] .sp-lv>div{background:#191d21}
html[data-theme=dark] .sp-lv .pinch{border-color:#5c4040;background:#271b1b}
html[data-theme=dark] .sp-vs .old{background:#352d23;border:1px dashed #816b5a;color:#c6b9ad}
html[data-theme=dark] .sp-vs .old p{text-decoration-color:#e8606688}
html[data-theme=dark] .sp-vs .real{background:#22342b;border:1px solid #517462}
html[data-theme=dark] .sp-tbl td.old{color:#bbab9e;text-decoration-color:#e8606666}
html[data-theme=dark] .sp-figwrap{background:linear-gradient(#1c242b,#222b34)}
html[data-theme=dark] .sp-rep{color:#179f68}
html[data-theme=dark] .sp-steps li.on{background:#222a34}
html[data-theme=dark] .sp-gauge{background:#1e2534;color:#e0e0e0}
html[data-theme=dark] .sp-gauge .big{color:#e7c557}
html[data-theme=dark] .sp-gauge .bar i{background:linear-gradient(90deg,#2c9a65,#887e5f,#cc4b25)}
html[data-theme=dark] .sp-desk{background:#1c242b}
html[data-theme=dark] .sp-chain li{background:#191d21}
html[data-theme=dark] .sp-chain li::before{color:#c0c6d3}
html[data-theme=dark] .sp-flash{background:#191d21}
html[data-theme=dark] .sp-flash.back{background:#1f292f}
html[data-theme=dark] .sp-opt{background:#191d21}
html[data-theme=dark] .sp-opt.ok{background:#293f33}
html[data-theme=dark] .sp-opt.bad{background:#342222}
html[data-theme=dark] .sp-good{color:#179f68}
html[data-theme=dark] .sp-bad{color:#e86066}
html[data-theme=dark] .sp-find{background:#1e2534;color:#e0e0e0}
html[data-theme=dark] .sp-target{color:#e7c557}
html[data-theme=dark] .sp-find .sp-good{color:#82edb5}
html[data-theme=dark] .sp-find .sp-bad{color:#f2a7a7}
/* ---- from surgery.css (28 rules) ---- */
html[data-theme=dark]{--sg-bg:#1d2428;--sg-ink:#c0c6d3;--sg-mut:#a3aab8;--sg-acc:#1b96bd;--sg-acc2:#1b97be;--sg-line:#384450;--sg-card:#191d21;--sg-cut:#df6f20}
@media(max-width:1100px) and (orientation:portrait){
html[data-theme=dark] body.x3d:not(.fun-embed):not(.bv-on) main.explore3d>.sg-panel{box-shadow:0 -1px 0 #00000066}
}
html[data-theme=dark] .sg-gentle[aria-pressed=true]{background:#2c6b50;color:#e0e0e0}
html[data-theme=dark] .sg-btn{color:#e0e0e0}
html[data-theme=dark] .sg-btn.sec:hover{background:#212e33}
html[data-theme=dark] .sg-chip[aria-pressed=true]{color:#e0e0e0}
html[data-theme=dark] .sg-warn{background:#302b22}
html[data-theme=dark] .sg-note{background:#212e33}
html[data-theme=dark] .sg-seen{background:#2c6b50;color:#e0e0e0}
html[data-theme=dark] .sg-player{background:#202a31}
html[data-theme=dark] .sg-dots button.done{background:#2e3f46}
html[data-theme=dark] .sg-dots button[aria-current=step]{color:#e0e0e0}
html[data-theme=dark] .sg-secs button[aria-selected=true]{color:#e0e0e0}
html[data-theme=dark] .sg-stepb::before{color:#e0e0e0}
html[data-theme=dark] .sg-rate{background:#3d382b;color:#b6881a}
html[data-theme=dark] .sg-qo.ok{background:#293f33;color:#1a9e66}
html[data-theme=dark] .sg-qo.no{background:#342222;color:#e76156}
html[data-theme=dark] .sg-infolink{background:#191d21;color:#1b97be}
html[data-theme=dark] .sg-infolink:hover{background:#212e33}
html[data-theme=dark] .sg-lbl{background:#191d21eb;color:#c0c6d3;border:1px solid #3f4c5b}
html[data-theme=dark] .sg-lapv{background:radial-gradient(circle at 50% 48%,transparent 0 33%,#18263a88 45%,#18263af0 60%)}
html[data-theme=dark] .sg-lapv span{color:#a8e0f2;background:#18263a99}
html[data-theme=dark] .sg-sitesbtn{background:#1f2b2f}
html[data-theme=dark] .sg-sitelist .sg-dot{background:#098db3}
html[data-theme=dark] .sg-lbl.sg-site.on,html[data-theme=dark] .sg-lbl.sg-site:hover{background:#098db3;color:#e0e0e0}
html[data-theme=dark] .sg-lbl.sg-warnlbl{background:#2c261f;color:#e2653a}
html[data-theme=dark] .sg-911{background:#2c261f}
html[data-theme=dark] .sg-911 a{color:#e36439}
/* ---- hand-tuned (night-extra.css) ---- */
/* theme toggle (both themes) */
.theme-tg{flex:none;box-sizing:border-box;width:40px;height:40px;margin:-8px auto -8px 10px;vertical-align:middle;padding:0;border-radius:999px;border:1px solid #d5dee8;background:#fff;color:#1d2b3a;font:inherit;font-size:1.1rem;line-height:1;cursor:pointer;display:inline-grid;place-items:center}
.theme-tg:hover{background:#eef3f8}.theme-tg:focus-visible{outline:3px solid #16a37a;outline-offset:2px}
.theme-tg .tg-sun,html[data-theme=dark] .theme-tg .tg-moon{display:none}html[data-theme=dark] .theme-tg .tg-sun{display:inline}
@media(pointer:coarse){.theme-tg{width:44px;height:44px}}
@media(max-width:1100px){.theme-tg,html .theme-tg{width:36px;height:36px;margin:-6px auto -6px 6px;font-size:1rem;position:relative}.theme-tg::after{content:"";position:absolute;inset:-4px}}
/* night base */
html[data-theme=dark]{color-scheme:dark;--bg:#121417;--card:#1b1f24;--ink:#d8dde3;--muted:#a3afbb;--accent:#1d9a75;--male:#6ea6e6;--female:#e47aa3;background:#121417}
html[data-theme=dark] body{background:#121417;color:#d8dde3}
html[data-theme=dark] a{color:#8cc4ee}
html[data-theme=dark] header.top{background:#171a1e;box-shadow:0 1px 0 #262c33}
html[data-theme=dark] header.top nav a{color:#b5c0cb}html[data-theme=dark] header.top nav a.on{color:#e8ecf0}
html[data-theme=dark] .brand{color:#e2e7ec}
html[data-theme=dark] .theme-tg{background:#232830;border-color:#38414c;color:#e8ecf0}html[data-theme=dark] .theme-tg:hover{background:#2b313a}
html[data-theme=dark] footer{color:#a3afbb}
/* reduced-glare images and posters */
html[data-theme=dark] img:not([src^="data:"]){filter:brightness(.82) contrast(1.03)}
/* 3D stage background: dark slate to match */
html[data-theme=dark] .stage3d,html[data-theme=dark] .stage{background:radial-gradient(circle at 50% 35%,#2a3139,#14181c)!important;box-shadow:inset 0 0 0 1px #ffffff0d}
html[data-theme=dark] .solo .fig,html[data-theme=dark] .prev3d{background-color:transparent}
/* form controls */
html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{background:#15191d;color:#d8dde3;border-color:#3a434e}
html[data-theme=dark] ::placeholder{color:#8794a1}
@media (prefers-reduced-motion:no-preference){html[data-theme] body,html[data-theme] header.top{transition:background-color .2s,color .2s}}
/* panel palettes: neutral dark slate (generated values are too tinted for big areas) */
html[data-theme=dark]{--holi-bg:#171b1f;--holi-card:#1f242a;--holi-sage2:#21302a;--holi-line:#33403a;--holi-warn:#2b2619;--holi-warnb:#7a6638;--sp-bg:#171a1f;--sp-line:#343c48}
/* home/credits: the toggle ends the nav row (flows with the links, no extra header row on wide screens) */
nav .theme-tg,html nav .theme-tg{margin:-10px 0 -10px 12px}
@media(max-width:1100px){nav .theme-tg,html nav .theme-tg{margin:-10px 0 -10px 8px}}
/* audit fixes: elements whose light-mode background was var(--ink) (dark chips/tooltips) */
html[data-theme=dark] .fun-tip,html[data-theme=dark] .fun-toast,html[data-theme=dark] .showall,html[data-theme=dark] #showAll{background:#2b333d!important;color:#e8ecf0!important;border-color:#3a4450}
html[data-theme=dark] .unhl-chip,html[data-theme=dark] .acts button.unhl{background:#1e8a68!important;color:#f2fbf7!important;border-color:#1e8a68}
html[data-theme=dark] .fun-tip *,html[data-theme=dark] .fun-toast *{color:inherit}
html[data-theme=dark] .fun-tip::before,html[data-theme=dark] .fun-tip::after{border-bottom-color:#2b333d;border-top-color:#2b333d}
/* accent used as text: lighter green for AA on dark */
html[data-theme=dark] .clink,html[data-theme=dark] .fun-tab,html[data-theme=dark] .fun-ok,html[data-theme=dark] .fun-sys,html[data-theme=dark] .sys,html[data-theme=dark] .info .sys{color:#5fd0a8}
html[data-theme=dark] .partial{color:#e8a84a}
html[data-theme=dark] .fun-open{background:linear-gradient(135deg,#0f6e53,#155f99);color:#fff;box-shadow:none}
html[data-theme=dark] .pri.t2-play1,html[data-theme=dark] .pri.t2-pp,html[data-theme=dark] .t2-play1,html[data-theme=dark] .t2-pp{color:#1a1208}
html[data-theme=dark] .solo .btn,html[data-theme=dark] span.btn{color:#0e1a26}
html[data-theme=dark]{--male:#3a78c0;--female:#c0467b}
html[data-theme=dark] .fun-tip button{background:#e8ecf0;color:#121417;border-color:#e8ecf0}
/* colour-coded chips keep their colours (spine regions, meridians, posture, tour) and get dark text */
html[data-theme=dark] .sp-vb,html[data-theme=dark] .holi-code,html[data-theme=dark] .sp-pchip[aria-pressed=true],html[data-theme=dark] .t2-play1,html[data-theme=dark] .t2-pp,html[data-theme=dark] .pri.t2-play1,html[data-theme=dark] .pri.t2-pp{color:#10161c!important}
html[data-theme=dark] .holi-btn{background:#3a7259;color:#fff}
html[data-theme=dark] .sp-btn{background:#1f5f86;color:#fff}
html[data-theme=dark] .fun-tab,html[data-theme=dark] .fun-tab span{color:#5fd0a8!important}
html[data-theme=dark] .fun-tab.on,html[data-theme=dark] .fun-tab[aria-selected=true]{color:#fff!important}
/* spine region colour coding kept (slightly dimmed), posture chips: light text unless active (orange) */
html[data-theme=dark] .sp-vb.r-cervical{background:#28a99d}html[data-theme=dark] .sp-vb.r-thoracic{background:#9d93e6}html[data-theme=dark] .sp-vb.r-lumbar{background:#e39b3a}html[data-theme=dark] .sp-vb.r-sacral{background:#5cba86}
html[data-theme=dark] .sp-pchip{color:#d8dde3}html[data-theme=dark] .sp-pchip[aria-pressed=true]{background:#e58e16;border-color:#c77400}

/* NURO v13r: 44px hit area for theme toggle (moved from live night.css tail) */
.theme-tg{position:relative}.theme-tg::after{content:"";position:absolute;inset:-2px;border-radius:inherit}
@media(max-width:1100px){.theme-tg::after{inset:-4px}}

/* v13s Surgery Theater (css/surgery.css): neutral dark panel, readable 3D labels on the dark stage, AA buttons/chips */
html[data-theme=dark]{--sg-bg:#171a1f;--sg-card:#1f242a;--sg-line:#343c48;--sg-ink:#e8ecf0;--sg-mut:#aab4c0;--sg-acc:#3aa6c9;--sg-acc2:#7fd0ea}
html[data-theme=dark] .sg-btn{background:#1f6f8c;border-color:#3aa6c9;color:#fff}html[data-theme=dark] .sg-btn:hover{background:#25819f}
html[data-theme=dark] .sg-btn.sec{background:#1f242a;color:#9bdcf0}html[data-theme=dark] .sg-btn.sec:hover{background:#26303a}
html[data-theme=dark] .sg-lbl{background:#171a1fee;color:#eef2f6;border-color:#3a4450;box-shadow:0 2px 8px #0008}
html[data-theme=dark] .sg-player{background:#1c2229}html[data-theme=dark] .sg-note{background:#16303a}html[data-theme=dark] .sg-warn{background:#2b2619;border-left-color:#b8932c}
html[data-theme=dark] .sg-chip[aria-pressed=true],html[data-theme=dark] .sg-dots button[aria-current=step]{background:#3aa6c9;color:#0b1a22;border-color:#3aa6c9}
html[data-theme=dark] .sg-dots button{background:#1f242a;color:#9bdcf0;border-color:#3aa6c9}html[data-theme=dark] .sg-dots button.done{background:#20414e}
html[data-theme=dark] .sg-secs button[aria-selected=true]{background:#2a6a82;color:#fff;border-color:#4fa3c2}
html[data-theme=dark] .sg-rate{background:#3b3014;color:#ffd98a}html[data-theme=dark] .sg-gentle[aria-pressed=true],html[data-theme=dark] .sg-seen{background:#2a6b4f;border-color:#3a8f69;color:#fff}
html[data-theme=dark] .sg-stepb::before{background:#3aa6c9;color:#0b1a22}html[data-theme=dark] .sg-time li::before{background:#171a1f}
html[data-theme=dark] .sg-infolink{background:#1f242a;color:#9bdcf0;border-color:#3aa6c9}html[data-theme=dark] .sg-infolink:hover{background:#26303a}
html[data-theme=dark] .sg-qo.ok{background:#173a2a;border-color:#3a8f69;color:#bff0d6}html[data-theme=dark] .sg-qo.no{background:#3e1c1c;border-color:#c0574b;color:#ffd0ca}
html[data-theme=dark] body.sg-fluoro #stage3d canvas{filter:grayscale(1) contrast(1.25) brightness(1.15)}
/* v13t surgery: artery cleaning */
html[data-theme=dark] .sg-sitesbtn{background:#16303a;border-color:#3aa6c9;color:#e8ecf0}
html[data-theme=dark] .sg-sitelist .sg-dot{background:#7ff3ff;box-shadow:0 0 0 4px #7ff3ff33}
html[data-theme=dark] .sg-sitelist em{color:#7fd0ea}
html[data-theme=dark] .sg-lbl.sg-site{border-color:#7ff3ff}
html[data-theme=dark] .sg-lbl.sg-site.on,html[data-theme=dark] .sg-lbl.sg-site:hover{background:#1f6f8c;color:#fff}
/* v13t batch 2 */
.sg-lbl.sg-warnlbl{background:#3b1d0ef2;color:#fed7aa;border-color:#fb923c}
.sg-911{background:#2a1a10;border-left-color:#fb923c}.sg-911 a{color:#fdba74}
