/* Dark mode (J 2026-11-29, "Venom"): night ground, paper ink, the band inverts to paper; buttons and tags keep the deep
   blue so white text holds AA. System dark is the default; the switch (theme.js) sets data-theme. Screens only: print
   stays paper. The takeover itself (2026-11-29, "mold that travels in a maze"): theme.js grows the new ground over the
   page on one fixed canvas (.mold), out of the switch; the switch wears the new theme while it grows. */
@media screen and (prefers-color-scheme:dark){:root:not([data-theme="light"]){--void:#0B1020;--room:#111830;--panel:#0B1020;--panel-2:#111830;--panel-3:#18213D;--paper:#0B1020;--paper-ink:#EEF1F7;--paper-mute:#B4BCCF;--ink:#EEF1F7;--ink-soft:#B4BCCF;--ink-mute:#B4BCCF;--blu:#7D9DFF;--blu-lit:#9DB5FF;--blu-press:#5E84FF;--edge:rgba(238,241,247,.18);--edge-2:rgba(238,241,247,.36);--link-line:#9DB5FF;--bad:#FF8A80;--good:#7EE2A8;color-scheme:dark}:root:not([data-theme="light"]) body{background:var(--paper);color:var(--ink)}:root:not([data-theme="light"]) .btn{background:#1D48C9;border-color:#1D48C9;color:#fff}:root:not([data-theme="light"]) .btn:hover{background:#2B57DD;border-color:#2B57DD;color:#fff}:root:not([data-theme="light"]) .sx-tag{background:#1D48C9;color:#fff}:root:not([data-theme="light"]) .sx-stage{background:#111830}:root:not([data-theme="light"]) .sx-stage::before{background-image:linear-gradient(rgba(125,157,255,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(125,157,255,.12) 1px,transparent 1px)}:root:not([data-theme="light"]) .sx-drawing svg{stroke:#7D9DFF}:root:not([data-theme="light"]) .sx-draw{background-image:linear-gradient(rgba(125,157,255,.1) 1px,transparent 1px),linear-gradient(90deg,rgba(125,157,255,.1) 1px,transparent 1px)}:root:not([data-theme="light"]) #watch .hero-copy{background:#EEF1F7;color:#0B1020}:root:not([data-theme="light"]) .receipt b,:root:not([data-theme="light"]) .receipt span{color:#0B1020}:root:not([data-theme="light"]) .receipt li{border-top-color:#9AA3B8}:root:not([data-theme="light"]) #price{background:#1D48C9;--edge:rgba(255,255,255,.4)}:root:not([data-theme="light"]) #price .btn{background:#fff;border-color:#fff;color:#1D48C9}}
@media screen{:root[data-theme="dark"]{--void:#0B1020;--room:#111830;--panel:#0B1020;--panel-2:#111830;--panel-3:#18213D;--paper:#0B1020;--paper-ink:#EEF1F7;--paper-mute:#B4BCCF;--ink:#EEF1F7;--ink-soft:#B4BCCF;--ink-mute:#B4BCCF;--blu:#7D9DFF;--blu-lit:#9DB5FF;--blu-press:#5E84FF;--edge:rgba(238,241,247,.18);--edge-2:rgba(238,241,247,.36);--link-line:#9DB5FF;--bad:#FF8A80;--good:#7EE2A8;color-scheme:dark}:root[data-theme="dark"] body{background:var(--paper);color:var(--ink)}:root[data-theme="dark"] .btn{background:#1D48C9;border-color:#1D48C9;color:#fff}:root[data-theme="dark"] .btn:hover{background:#2B57DD;border-color:#2B57DD;color:#fff}:root[data-theme="dark"] .sx-tag{background:#1D48C9;color:#fff}:root[data-theme="dark"] .sx-stage{background:#111830}:root[data-theme="dark"] .sx-stage::before{background-image:linear-gradient(rgba(125,157,255,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(125,157,255,.12) 1px,transparent 1px)}:root[data-theme="dark"] .sx-drawing svg{stroke:#7D9DFF}:root[data-theme="dark"] .sx-draw{background-image:linear-gradient(rgba(125,157,255,.1) 1px,transparent 1px),linear-gradient(90deg,rgba(125,157,255,.1) 1px,transparent 1px)}:root[data-theme="dark"] #watch .hero-copy{background:#EEF1F7;color:#0B1020}:root[data-theme="dark"] .receipt b,:root[data-theme="dark"] .receipt span{color:#0B1020}:root[data-theme="dark"] .receipt li{border-top-color:#9AA3B8}:root[data-theme="dark"] #price{background:#1D48C9;--edge:rgba(255,255,255,.4)}:root[data-theme="dark"] #price .btn{background:#fff;border-color:#fff;color:#1D48C9}}
.theme-tg{flex:none;width:40px;height:40px;display:grid;place-items:center;margin-left:8px;border:2px solid var(--ink);background:var(--paper);color:var(--ink);cursor:pointer;border-radius:0}.theme-tg svg{width:20px;height:20px}.theme-tg:hover{background:var(--room)}.theme-tg:focus-visible{outline:2px solid var(--blu);outline-offset:2px}.theme-tg[hidden]{display:none}
@media(max-width:899px){.hdr .wrap{gap:8px}.theme-tg{width:34px;height:34px;margin-left:0}.hdr .nav .btn{padding:0 10px;font-size:14px}}@media(max-width:374px){.brand{gap:6px}.brand span{font-size:13px}.hdr .nav .btn{padding:0 8px;font-size:13px}}
canvas.mold{position:fixed;inset:0;width:100%;height:100%;z-index:2147483000;pointer-events:none;display:block}
.theme-tg.mold-dark{background:#0B1020;color:#EEF1F7;border-color:#7D9DFF}.theme-tg.mold-light{background:#F3F0E8;color:#14161C;border-color:#1D48C9}
@media print{.theme-tg{display:none}canvas.mold{display:none}}
