:root{--theme-action:#1e3179;--theme-on-action:#fff;--paper:#f6f7fa;--surface:#fff;--ink:#141c33;--muted:#4e5a73;--line:#e1e5ec}
html[data-theme=dark]{--paper:#111827;--surface:#1b2536;--ink:#eef2fa;--muted:#b2bed3;--line:#39465b;--blue:#a6c2ff;--blue-900:#14213e;--blue-500:#819fe1;--steel:#a9b6cd;--steel-200:#53617a;--act:#325bac;--act-soft:#263859;--theme-action:#325bac;--ok:#75db9f;--warn:#f5c76b;--bad:#ffaba6;color-scheme:dark}
html[data-theme=light]{color-scheme:light}
html[data-theme] body{background:var(--paper);color:var(--ink)}
html[data-theme=dark] body.retail{--act:#496080;--act-soft:#29354a}
.site-theme-mode{font:inherit;font-size:14px;min-height:44px;max-width:140px;width:auto!important;padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);flex:none}
.site-theme-bar{position:absolute;inset-block-start:12px;inset-inline-end:16px;z-index:20}body.standalone-theme{padding-top:76px}
button.close-control,#closeCart,#mClose,#lbClose,#dtClose,#storeSideClose{min-width:48px!important;min-height:48px!important;width:48px!important;height:48px!important;font-family:system-ui!important;font-size:30px!important;line-height:1!important;display:inline-grid;place-items:center;padding:6px!important;flex-shrink:0;border-radius:10px}
button.close-control svg,#dtClose svg{width:27px!important;height:27px!important}
#invClose,#alertsClose{min-width:48px;min-height:48px}
html[data-theme=dark] :is(input,select,textarea){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.card,.panel,.shell,.mbox,.drawer,.co,.dfoot,.store-sidebar,.hero,.toolbar){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(h1,h2,h3,h4){color:var(--ink)}
html[data-theme=dark] :is(.card p,.hint,.count){color:var(--muted)}
html[data-theme=dark] :is(.btn:not(.ghost),.mini,.go,.primary,.add,.dhead,.brandside,.pm b,.badge,.tabsw button[aria-pressed=true],.chip[aria-pressed=true],.store-sidebar .chip[aria-pressed=true],.nav a.on){background:var(--theme-action);color:white}
html[data-theme=dark] .pay .wa{background:#e3eaf7;color:#142035}
html[data-theme=dark] .dhead h2,html[data-theme=dark] .brandside :is(h1,h2,h3){color:white}
html[data-theme=dark] :is(.slide h3,.slide .txt,.slide .price,.slide .cur){color:white}
html[data-theme=dark] :is(.msg.err,.err,.p-bad){background:#432b30;color:#ffb8b0}
html[data-theme=dark] :is(.msg.ok,.p-ok){background:#17392d;color:#75db9f}
html[data-theme=dark] :is(.msg.info,.p-new){background:#263859;color:#c5d6ff}
html[data-theme=dark] :is(.offline,.p-warn){background:#3e3320;color:#f5c76b}
html[data-theme=dark] .track{background:#39465b}
html[data-theme=dark] .card>a,html[data-theme=dark] .card>button{background:var(--theme-action);color:white}
.msg.info{background:var(--act-soft,#e9edf8);color:var(--ink)}
#drawer .dhead,#drawer .shipbar,#drawer .dfoot{flex-shrink:0}#drawer .co,#drawer .items{min-height:0;overscroll-behavior:contain}
#drawer .dfoot{max-height:50dvh;overflow:auto;padding-bottom:max(12px,env(safe-area-inset-bottom))}
#payMsg.on{display:block;overflow-wrap:anywhere;max-height:120px;overflow:auto;margin:0 0 10px}
#checkout[aria-busy=true]{cursor:wait}input[aria-invalid=true]{border:2px solid #c4493e}
@media(max-width:760px){.co input,.co textarea{font-size:16px}#drawer{height:100dvh}.site-theme-mode{font-size:13px}.store-shell header .bar{gap:7px}.store-shell header .word b{font-size:17px}}
@media print{html[data-theme]{--paper:#fff;--surface:#fff;--ink:#111;--muted:#555;--line:#ddd;--blue:#1e3179;color-scheme:light!important}.site-theme-mode,.site-theme-bar,.close-control{display:none!important}html[data-theme] body{background:#fff!important;color:#111!important;padding-top:0}}

html[data-theme=dark]{--blue:#a6c2ff!important;--steel:#a9b6cd!important}
html[data-theme=dark] .flag:not(.low){background:var(--theme-action);color:white}html[data-theme=dark] .step button{color:var(--blue)}
button.close-control[hidden]{display:none!important}
@media(min-width:901px){#storeSideClose{display:none!important}}

.site-theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;flex:none;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--blue,#1e3179);padding:9px;cursor:pointer;margin:0;vertical-align:middle}
.site-theme-toggle:hover{border-color:var(--blue);background:var(--paper)}.site-theme-toggle:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
@media print{.site-theme-toggle{display:none!important}}
