/* Night mode: html[data-theme=dark] */
html[data-theme=dark]{color-scheme:dark;--ink:#efe4da;--soft:#bcab9c;--line:#3b2b23;--cream:#0e0a09;--accent:#e0b58c;--gold:#d9b48f}
html[data-theme=dark] body{background:#0e0a09;color:#efe4da}
html[data-theme=dark] .head{background:#0e0a09;border-bottom-color:#2b1f19}
html[data-theme=dark] .mark,html[data-theme=dark] .btn{background:#7a4630!important;color:#fff4ea!important}
html[data-theme=dark] .btn.ghost{background:transparent!important;color:#efe4da!important}
html[data-theme=dark] .btn.light,html[data-theme=dark] .btn.ol{background:transparent!important;color:#f3e3d3!important;border:1px solid #d9bfa5}
html[data-theme=dark] .row,html[data-theme=dark] .chapters,html[data-theme=dark] .reader,html[data-theme=dark] .lib-card,html[data-theme=dark] .acct-pop,html[data-theme=dark] .hist-list,html[data-theme=dark] .srch input,html[data-theme=dark] .srch-res,html[data-theme=dark] .libm-list,html[data-theme=dark] .bk-bal,html[data-theme=dark] .tk,html[data-theme=dark] .acct-btn,html[data-theme=dark] .acct-sum,html[data-theme=dark] .head nav a.lang,html[data-theme=dark] .head nav .libm-list a{background:#1a1311!important;border-color:#3b2b23;color:#efe4da}
html[data-theme=dark] .chap:hover,html[data-theme=dark] .acct-pop a:hover,html[data-theme=dark] .acct-pop button:hover,html[data-theme=dark] .hist-row:hover{background:#261b17}
html[data-theme=dark] .tag,html[data-theme=dark] .cn,html[data-theme=dark] .mi,html[data-theme=dark] .rs,html[data-theme=dark] .gpanel a,html[data-theme=dark] .mc{background:#2a1d17;color:#efe4da}
html[data-theme=dark] .rs.on{background:#3a2a22}
html[data-theme=dark] .mc.on{background:#6b3f2a;color:#fff4ea;border-color:#d9bfa5}
html[data-theme=dark] .gpanel a:hover{background:#3a2a22}
html[data-theme=dark] .rhero{background:radial-gradient(120% 90% at 70% 20%,#2a1b15,#120c0a)}
html[data-theme=dark] .rhero h1{text-shadow:none}
html[data-theme=dark] .rhero p{color:#cdbcad}
html[data-theme=dark] .wave{background:#120c0a}
html[data-theme=dark] .month{background:linear-gradient(#1a1210,#120c0a)}
html[data-theme=dark] .ped{background:linear-gradient(#3a2a22,#1c130f);box-shadow:0 10px 20px rgba(0,0,0,.5)}
html[data-theme=dark] .mood,html[data-theme=dark] .cta{background:#2a1710}
html[data-theme=dark] .foot,html[data-theme=dark] footer{background:transparent;color:#bcab9c}
html[data-theme=dark] a:hover{color:#e0b58c}
html[data-theme=dark] .head nav a,html[data-theme=dark] .head nav .nl{color:#efe4da!important}
html[data-theme=dark] .srch input::placeholder{color:#9c8b7c}
html[data-theme=dark] .cover,html[data-theme=dark] .pc .cover{box-shadow:0 6px 16px rgba(0,0,0,.6)}
html[data-theme=dark] .static-page p,html[data-theme=dark] .static-page li{color:#dccfc3}
html[data-theme=dark] .reader{color:#e8e0ea}
html[data-theme=dark] .reader.is-dark{background:#17131a}
html[data-theme=dark] .rd-book .pgL,html[data-theme=dark] .pgL .ptx p,html[data-theme=dark] .pgL h2{color:#2e1710}
html[data-theme=dark] .rd-book .pgL .bl{color:#5b4337}
/* toggle button */
.theme-btn{width:40px;height:40px;border-radius:50%;border:0;background:none;color:var(--ink);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.theme-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.theme-btn .i-sun{display:none}
html[data-theme=dark] .theme-btn .i-sun{display:block}
html[data-theme=dark] .theme-btn .i-moon{display:none}
.theme-btn:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
html[data-theme=dark] .bl-bar input,html[data-theme=dark] .bl-bar select{background:#2a1d17;color:#efe4da;border-color:#3d2a20}
