html[data-theme=dark]{color-scheme:dark;
 --bg:#0E1420;--surface:#162033;--ink:#ECE6DA;--muted:#A7B0C0;--rule:#2B3750;
 --accent:#5468D4;--accent-soft:#232C47;--gold:#E0B55A;--gold-soft:#2C2616;
 --ok:#72D3A2;--ok-soft:#173326;--bad:#F2A091;--bad-soft:#3A1F1C;--mid:#E3C46A;--mid-soft:#332B16}
html[data-theme=dark] body{background:var(--bg);color:var(--ink)}
html[data-theme=dark] a{color:#9AABF7}
html[data-theme=dark] img:not([src*="rashi"]):not([src$=".svg"]){filter:brightness(.92)}
html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{background:#101828;color:var(--ink);border-color:#3A4763}
html[data-theme=dark] ::placeholder{color:#7E889B}
.nv-theme{display:flex;align-items:center;justify-content:center;width:40px;height:40px;margin-left:.3rem;border:1px solid var(--rule);background:var(--surface);color:var(--ink);border-radius:8px;cursor:pointer;flex:none;order:2}
.nv-theme svg{width:18px;height:18px}
@media (max-width:960px){.nv-theme{order:2;width:44px;height:44px;margin-left:auto}.nv-theme+.nv-search{margin-left:.4rem}}
html[data-theme=dark] .h8-tile i,html[data-theme=dark] .ex-grid i{background:#24304D !important;color:#B3C2FF}
html[data-theme=dark] svg [fill="#2B3A8F"]{fill:#B3C2FF}html[data-theme=dark] svg [stroke="#2B3A8F"]{stroke:#B3C2FF}html[data-theme=dark] svg [fill="#8A5A00"]{fill:#D9A441}html[data-theme=dark] svg [stroke="#8A5A00"]{stroke:#D9A441}html[data-theme=dark] svg [fill="#A33A2C"]{fill:#F2A091}html[data-theme=dark] svg [stroke="#A33A2C"]{stroke:#F2A091}html[data-theme=dark] svg [fill="#1F7A4D"]{fill:#72D3A2}html[data-theme=dark] svg [stroke="#1F7A4D"]{stroke:#72D3A2}
html[data-theme=dark] .h8-tile i svg [stroke],html[data-theme=dark] .h8-tile i svg[stroke]{stroke:#B3C2FF}html[data-theme=dark] .h8-tile i svg [fill]:not([fill=none]){fill:#B3C2FF}

html[data-theme=dark] [style*="background:#FBF3E2"]{background:#332D22 !important}
html[data-theme=dark] [style*="border:1px solid #EAD9B0"]{border:1px solid #534932 !important}
html[data-theme=dark] [style*="background:#F5E6C4"]{background:#3F382A !important}
html[data-theme=dark] [style*="background:#F5ECD9':'')+'"]{background:#383225':'')+' !important}
html[data-theme=dark] [style*="background:#f6eedf"]{background:#352F24 !important}
html[data-theme=dark] [style*="background:#DCEFE3"]{background:#26392D !important}
html[data-theme=dark] [style*="background:#DDE3F6"]{background:#242836 !important}
html[data-theme=dark] [style*="background:#F6DCD7"]{background:#382825 !important}
html[data-theme=dark] [style*="background:'+(i===k?'#DDB257':'#E6DACA')+'"]{background:'+(i===k?'#DDB257':'#42382C')+' !important}
html[data-theme=dark] .brand .wm .lt{color:#9CA6E1}
html[data-theme=dark] .brand .wm .as{color:#CFDBED}
html[data-theme=dark] .ex-grid a{background:#171E2B}
html[data-theme=dark] .ex-grid i{background:#3C3428}
html[data-theme=dark] .ex-grid em{color:#9CA6E1}
html[data-theme=dark] .gtile .go{background:#171E2B}
html[data-theme=dark] .vb.ben{color:#AFE8C4;background:#223229}
html[data-theme=dark] .vb.mal{color:#E2A49C;background:#302220}
html[data-theme=dark] .vb.mk{color:#E7D3AE;background:#352F24}
html[data-theme=dark] .g-form select,html[data-theme=dark] .g-form input{background:#171E2B}
html[data-theme=dark] .koota button{border-right:1px solid #424242}
html[data-theme=dark] .ok{color:#AFE8C4}
html[data-theme=dark] .no{color:#E2A49C}
html[data-theme=dark] .ftab td.diff{background:#353024}
html[data-theme=dark] .diffkey{background:#353024}
html[data-theme=dark] .signnav a{background:#171E2B}
html[data-theme=dark] .verdict-chip.ok{background:#24362B;color:#A8E6C7}
html[data-theme=dark] .verdict-chip.mid{background:#202731 !important;color:#B6BECB !important}
html[data-theme=dark] .verdict-chip.no{background:#383325 !important;color:#E5D5A7 !important}
html[data-theme=dark] .ref .kv{background:#171E2B}
html[data-theme=dark] .bloom .n{color:#E1C797}
html[data-theme=dark] #hread .pill.no{background:#383325;color:#E5D5A7}
html[data-theme=dark] #hread .pill.mid{background:#202731;color:#B6BECB}
html[data-theme=dark] .h8-hero h1 .h1-sub{color:#9CA6E1}
html[data-theme=dark] .h8-ticks span::before{color:#A8E6C7}
html[data-theme=dark] .h8-tile i{background:#3C3428}
html[data-theme=dark] .h8-seg{background:#332C22}
html[data-theme=dark] .h8-seg button[aria-pressed="true"]{background:#171E2B}
html[data-theme=dark] .h8-signs button{background:#171E2B}
html[data-theme=dark] .h8-signs button[aria-pressed="true"]{background:#3C3428}
html[data-theme=dark] .pill.ok{background:#24362B;color:#A8E6C7}
html[data-theme=dark] .pill.mid{background:#383325;color:#E5D5A7}
html[data-theme=dark] .pill.no{background:#342523;color:#E09C93}
html[data-theme=dark] .h8 .h8-reports{background:#383225}
html[data-theme=dark] .h8-reports p{color:#EDE0C0}
html[data-theme=dark] .cc{background:#171E2B}
html[data-theme=dark] .jrow{background:#171E2B}
html[data-theme=dark] .tool{background:#171E2B}
html[data-theme=dark] .sbox a{background:#171E2B}
html[data-theme=dark] .learnbox{background:#171E2B}
html[data-theme=dark] .lab{background:linear-gradient(180deg,#171E2B 0%,#1D222C 100%)}
html[data-theme=dark] .seg.on{stroke:#CFDBED}
html[data-theme=dark] .qo button{background:#171E2B}
html[data-theme=dark] .qo button.right{background:#24362B}
html[data-theme=dark] .qo button.wrong{background:#342523}
html[data-theme=dark] .terms div{background:#171E2B}
html[data-theme=dark] .ex{background:#171E2B}
html[data-theme=dark] .tw{background:#171E2B}
html[data-theme=dark] .form select,html[data-theme=dark] .form input{background:#171E2B}
html[data-theme=dark] .chip.g{color:#E7D3AE}
html[data-theme=dark] .chip.r{background:#342523;color:#E09C93}
html[data-theme=dark] .chip.ok{background:#24362B;color:#A8E6C7}
html[data-theme=dark] .tl div{border-right:1px solid #424242}
html[data-theme=dark] .book{background:#171E2B}
html[data-theme=dark] .lessons li{background:#171E2B}
html[data-theme=dark] .sgrid button[aria-pressed="true"]{background:#171E2B}
html[data-theme=dark] .toc{background:#171E2B}
html[data-theme=dark] .next2 a{background:#171E2B}
html[data-theme=dark] .faq details{background:#171E2B}
html[data-theme=dark] .ladder2 div{background:#171E2B}
html[data-theme=dark] .sum6{background:#171E2B}
html[data-theme=dark] .ct-facts li{background:#171E2B}
html[data-theme=dark] .ct-box{background:#171E2B}
html[data-theme=dark] .ct-prog{background:#222833}
html[data-theme=dark] .ct-o button{background:#171E2B}
html[data-theme=dark] .ct-o button.sel{background:#1F232F}
html[data-theme=dark] .ct-rev div{background:#2F2320}
html[data-theme=dark] .geo{color:#E5D5A7}
html[data-theme=dark] .cho td.q-Best,html[data-theme=dark] .cho td.q-Good{color:#A8E6C7}
html[data-theme=dark] .cho td.q-Bad{color:#E09C93}
html[data-theme=dark] .cho tr.now td{background:#2F2B20}
html[data-theme=dark] .mu tr.now td{background:#2F2B20}
html[data-theme=dark] .mucard.g h2{color:#A8E6C7}
html[data-theme=dark] .mucard.b h2{color:#E09C93}
html[data-theme=dark] .wz-hero{background:linear-gradient(180deg,#302B20 0%,#383225 100%);border-bottom:1px solid #534932}
html[data-theme=dark] .wz-lede{color:#BFC6D4}
html[data-theme=dark] .wz-toc a{background:#2A271C}
html[data-theme=dark] .wz-v{background:#2A271C;border:1px solid #534A32}
html[data-theme=dark] .wz-v::before,html[data-theme=dark] .wz-v::after{background:#4E4734}
html[data-theme=dark] .wz-dev{color:#ECD8BC}
html[data-theme=dark] .wz-iast{color:#D5CAB3}
html[data-theme=dark] .wz-note{border-top:1px dashed #534A32;color:#B6BDCB}
html[data-theme=dark] .wz-karma{background:#171E2B}
html[data-theme=dark] .wz-karma li{background:#1C212A}
html[data-theme=dark] .wz-karma li+li::before{background:#171E2B}
html[data-theme=dark] .wz-karma li.on{background:#302B20}
html[data-theme=dark] .wz-karma li p{color:#BFC6D4}
html[data-theme=dark] .wz-three>div{background:#171E2B}
html[data-theme=dark] .wz-three p{color:#BFC6D4}
html[data-theme=dark] .wz-limbs li.on{background:#302B20}
html[data-theme=dark] .wz-maha>div{background:#2A271C;border:1px solid #534A32}
html[data-theme=dark] .wz-maha p{color:#ECD8BC}
html[data-theme=dark] .wz-maha i{color:#D5CAB3}
html[data-theme=dark] .wz-g{background:#171E2B}
html[data-theme=dark] .wz-nak{background:#171E2B}
html[data-theme=dark] .wz-sel{background:#171E2B}
html[data-theme=dark] .wz-tbl{background:#171E2B}
html[data-theme=dark] .wz-story,html[data-theme=dark] .wz-kid{background:#171E2B}
html[data-theme=dark] .wz-sky{background:#1E222D}
html[data-theme=dark] .wz-cal>div{background:#171E2B}
html[data-theme=dark] .wz-cal p{color:#BFC6D4}
html[data-theme=dark] .wz-sages::before{background:#4E4734}
html[data-theme=dark] .wz-dot{background:#302B20}
html[data-theme=dark] .wz-work{color:#ECD8BC}
html[data-theme=dark] .wz-kid{background:#2A271C;border-color:#534A32}
html[data-theme=dark] .ll-zs{fill:#453F2E}
html[data-theme=dark] .ll-sn{fill:#2B2F40}
html[data-theme=dark] .ll-nn{fill:#2B2F40}
html[data-theme=dark] .ll-hn{fill:#212431}
html[data-theme=dark] .ll-hn.one{fill:#CCD3F0}
html[data-theme=dark] .ll-pl{fill:#212431}
html[data-theme=dark] .ll-tok.drag:focus-visible circle:nth-child(2){stroke:#171E2B}
html[data-theme=dark] .ll-seg button[aria-pressed="true"]{color:#CCD3F0}
html[data-theme=dark] .ll-play{color:#CCD3F0}
html[data-theme=dark] .ll-badge{color:#CCD3F0}
html[data-theme=dark] .ll-dbar b{color:#CCD3F0}
html[data-theme=dark] .card{background:#171E2B}
html[data-theme=dark] .exk-frame{fill:#2A261C}
html[data-theme=dark] .exk-cell{fill:#2A261C}
html[data-theme=dark] .exk-cell.exk-asc{fill:#332D22}
html[data-theme=dark] .exk-p{fill:#CFDBED;stroke:#2A261C}
html[data-theme=dark] .exk-t{color:#B0B8C5}
html[data-theme=dark] .exk-lg{color:#CFDBED}
html[data-theme=dark] .exk figcaption{color:#B0B8C5}
html[data-theme=dark] .exk-tg button{background:#171E2B}
html[data-theme=dark] .nv-item.open,html[data-theme=dark] .nv-item:hover{background:#3C3428}
html[data-theme=dark] .nv-item.open>.nv-name,html[data-theme=dark] .nv-item:hover>.nv-name{color:#9CA6E1 !important}
html[data-theme=dark] .nv-link:hover{background:#332C22}
html[data-theme=dark] .nv-signs a:hover{background:#332C22}
html[data-theme=dark] .la-join input{background:#171E2B;color:#CFDBED}
html[data-theme=dark] .la-msg.ok{color:#A8E6C7}
html[data-theme=dark] .la-msg.err{color:#E09C93}
html[data-theme=dark] .nv-search:hover{color:#9CA6E1}
html[data-theme=dark] .ss-box{background:var(--surface,#171E2B)}
html[data-theme=dark] .ss-list li.on a,html[data-theme=dark] .ss-list a:hover{background:#332C22}
html[data-theme=dark] .ss-list mark{background:#3C3428}
html[data-theme=dark] #ss-page .ss-row{background:var(--surface,#171E2B)}
html[data-theme=dark] .bf select,html[data-theme=dark] .bf input[type=text],html[data-theme=dark] .bf input[type=number]{background:#171E2B}
html[data-theme=dark] .pl-list{background:#171E2B}
html[data-theme=dark] .btn.ghost{color:#9CA6E1}
html[data-theme=dark] .kc-frame{fill:#171E2B;stroke:#9CA6E1}
html[data-theme=dark] .kc-cell{fill:#2E281F;stroke:#9CA6E1}
html[data-theme=dark] .kc-asc{fill:#3C3428}
html[data-theme=dark] .kc-mid{fill:#171E2B;stroke:#9CA6E1}
html[data-theme=dark] .kc-p{fill:#CFDBED}
html[data-theme=dark] .kc-p.kc-r{fill:#E09C93}
html[data-theme=dark] .kc-p.kc-ascl{fill:#9CA6E1}
html[data-theme=dark] .kc-ascmark{stroke:#9CA6E1}
html[data-theme=dark] .seg2 button{background:#171E2B}
html[data-theme=dark] .tbl th{background:#2E281F}
html[data-theme=dark] .tbl .now td{background:#2F2B20}
html[data-theme=dark] .tag.r{color:#E09C93}
html[data-theme=dark] .tag.c{color:#E7D3AE;border:1px solid #534932}
html[data-theme=dark] .tag.ex{color:#A8E6C7;border:1px solid #32533F}
html[data-theme=dark] .tag.db{color:#E09C93}
html[data-theme=dark] .dasha .now>summary{background:#2F2B20}
html[data-theme=dark] .next .btn{background:#171E2B;color:#9CA6E1;border-color:#424242}
html[data-theme=dark] .good{color:#A8E6C7}
html[data-theme=dark] .bad{color:#E09C93}
html[data-theme=dark] .neutral{color:#E5D5A7}
html[data-theme=dark] .verdict.ok{background:#24362B}
html[data-theme=dark] .verdict.no{background:#342523}
html[data-theme=dark] .verdict.mid{background:#383325}
html[data-theme=dark] .meter{background:#3C3428}
html[data-theme=dark] .ov{background:var(--surface,#171E2B)}
html[data-theme=dark] .area{background:var(--surface,#171E2B)}
html[data-theme=dark] .remedy{background:#332C22}
html[data-theme=dark] .finder summary::after{color:#DFB792}
