/* DOJO 2.9: dark theme tokens. Original light colors remain the fallback. */
@media screen {
html[data-theme="dark"]{color-scheme:dark;--bg:#171917;--paper:#222521;--ink:#f1f0eb;--muted:#b1b5ad;--line:#41483e;--red:#b64437;--accent:#ef9582;--redlite:#3c2926;--shadow:0 5px 22px #0002;--tone-8b8c85:#a7ada3;--tone-555951:#c2c8bd;--tone-f4f3ef:#30362f;--tone-a43a2e:#f09a88;--tone-f7f6f2:#2a2f29;--tone-ffffffd9:#222521ed;--tone-f8f7f4:#292e28;--tone-f6f5f1:#30362f;--tone-bc5448:#da8a79;--tone-fcf4f1:#3a2926;--tone-f7f6f3:#292e28;--tone-eeede8:#393e36;--tone-f4f1ea:#34372e;--tone-716d61:#c1b7a1;--tone-fbfaf7:#2b302a;--tone-f5f7f3:#26382e;--tone-dce5d7:#425b48;--tone-4d8064:#79b58f;--tone-f8f6f0:#302e25;--tone-575a50:#d1cdbb;--tone-ede9de:#494638;--tone-45473e:#e3decd;--tone-f2f1eb:#34382f;--tone-5d6055:#c9cec0;--tone-edf3eb:#29392e;--tone-47734b:#a4d5a7;--tone-f5eee2:#393125;--tone-89673e:#e1c08f;--tone-f5f2eb:#343228;--tone-776e5c:#cfc0a3;--tone-deded6:#50574e;--tone-f1f0ec:#343933;--tone-b9b8af:#737b70;--tone-f0eee9:#343933;--tone-d6d3ca:#676e62;--tone-c7b5aa:#a08176;--tone-f5f3ee:#343933;--tone-d6a49b:#b4776b;--tone-d5a49b:#a96659;--tone-f3efe7:#35382e;--tone-686356:#c5c0ae;--tone-ebe4da:#424438;--tone-f7eae6:#3c2926;--tone-fcf8f6:#2b2725;--tone-deddd7:#41473e;--tone-faf9f6:#292e28;--tone-f1ebe3:#35352c;--tone-686b64:#b1b5ad;--tone-ead2cc:#73483e;--tone-f2ded8:#4a302b;--tone-f8ead7:#392d21;--tone-74501f:#efc68e;--tone-ead5b9:#604a35;background:var(--bg)}
html[data-theme="dark"] .belt-icon,html[data-theme="dark"] .dojo-select-belt{box-shadow:inset 0 0 0 1px #ffffff48}
html[data-theme="dark"] .belt-icon:after,html[data-theme="dark"] .dojo-select-belt:after{box-shadow:0 0 0 1px #ffffff48}
html[data-theme="dark"] .btn.primary,html[data-theme="dark"] .brandmark,html[data-theme="dark"] .video-play{color:#fff}
html[data-theme="dark"] :focus-visible{outline-color:var(--accent)}
html[data-theme="dark"] input::placeholder{color:var(--muted);opacity:1}
html[data-theme="dark"] .video-consent .btn.primary{color:#fff}
}
.theme-toggle{flex:none;display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:10px;padding:0}
.theme-toggle:hover,.theme-settings:hover{background:var(--tone-f4f3ef,#f4f3ef)}
.theme-settings{width:100%;justify-content:flex-start;margin-bottom:12px;min-height:44px;text-align:left;gap:8px}.theme-settings small{margin-left:auto;font-size:11px}
.theme-dialog{color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:22px;width:min(420px,calc(100% - 28px));max-height:calc(100dvh - 28px);overflow:auto;box-shadow:0 24px 80px #0004}.theme-dialog::backdrop{background:#20221e80;backdrop-filter:blur(3px)}
.theme-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.theme-dialog>p{color:var(--muted);font-size:14px;margin-bottom:16px}.theme-options{display:grid;gap:8px;border:0;padding:0;margin:0;min-width:0}.theme-option{position:relative;display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:12px;cursor:pointer;min-height:64px}.theme-option:has(input:checked){background:var(--redlite);border-color:var(--accent,var(--red))}.theme-option:has(input:focus-visible){outline:2px solid var(--accent,var(--red));outline-offset:3px}.theme-option input{accent-color:var(--red);width:19px;height:19px;flex:none;margin-left:auto}.theme-option span{flex:1;min-width:0}.theme-option strong,.theme-option small{display:block}.theme-option small{font-size:13px}.theme-option .icon{color:var(--accent,var(--red))}.theme-dialog .btn{min-width:44px;min-height:44px}.theme-settings .icon{width:18px;height:18px}
@media(max-width:850px){.top .crumb{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.theme-toggle{width:42px;height:42px}}
@media(min-width:851px){.top .crumb{margin-right:auto}}
@media print{.theme-toggle,.theme-settings,.theme-dialog{display:none!important}}
.theme-option input:focus-visible{outline:none!important}
