/* Explicit color tokens keep both themes readable in every store panel. */
:root[data-theme="light"]{color-scheme:light;--bg:#f6f0e9;--surface:#fffaf5;--surface2:#eee2d6;--text:#3a2418;--muted:#876e5c;--line:#d8c4b4;--accent:#5a3827;--accentText:#fffaf5}
:root[data-theme="dark"]{color-scheme:dark;--bg:#171412;--surface:#221c18;--surface2:#2d241e;--text:#f6eee6;--muted:#cbb6a4;--line:#574437;--accent:#ead0ba;--accentText:#302117}
.themeToggle{flex-shrink:0;display:inline-grid;place-items:center;width:44px;height:44px;padding:10px;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--text);cursor:pointer}.themeToggle[hidden]{display:none}.themeToggle svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.themeToggle .themeSun{display:none}:root[data-theme="dark"] .themeToggle .themeMoon{display:none}:root[data-theme="dark"] .themeToggle .themeSun{display:block}.themeToggle:hover{background:var(--surface2)}.themeToggle:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
:root[data-theme="dark"] .nav,:root[data-theme="dark"] .modalBox,:root[data-theme="dark"] .customerChatBox{background:var(--surface);color:var(--text)}
:root[data-theme="dark"] footer{background:var(--surface2)}:root[data-theme="dark"] .copy,:root[data-theme="dark"] .nav,:root[data-theme="dark"] .nav .links{border-color:var(--line)}
:root[data-theme="dark"] .nav .logo img{filter:brightness(0) invert(.94) sepia(.14)}
:root[data-theme="dark"] .wishlistHeart{background:var(--surface);border-color:var(--line);color:var(--text)}:root[data-theme="dark"] .wishlistHeart:hover{background:var(--surface2)}
:root[data-theme="dark"] .cart,:root[data-theme="dark"] .toast{background:var(--accent);color:var(--accentText)}
:root[data-theme="dark"] input::placeholder,:root[data-theme="dark"] textarea::placeholder{color:var(--muted);opacity:1}
:root[data-theme="dark"] .drfCheckout{background:var(--surface);color:var(--text)}:root[data-theme="dark"] .checkoutAside,:root[data-theme="dark"] .checkoutNotice,:root[data-theme="dark"] .checkoutChoice:has(input:checked){background:var(--surface2);border-color:var(--line);box-shadow:none}
:root[data-theme="dark"] .checkoutTop,:root[data-theme="dark"] .checkoutLine{border-color:var(--line)}
:root[data-theme="dark"] .checkoutFields input,:root[data-theme="dark"] .checkoutFields textarea,:root[data-theme="dark"] .checkoutFields select,:root[data-theme="dark"] .shippingServices select,:root[data-theme="dark"] .checkoutChoice{background:var(--bg);border-color:var(--line);color:var(--text)}
:root[data-theme="dark"] .checkoutOrigin,:root[data-theme="dark"] .checkoutFine,:root[data-theme="dark"] .checkoutTop small,:root[data-theme="dark"] .checkoutChoice small,:root[data-theme="dark"] .checkoutClose,:root[data-theme="dark"] .checkoutBack,:root[data-theme="dark"] .checkoutAside .checkoutBack{color:var(--muted)}
:root[data-theme="dark"] .checkoutAside button:not(.checkoutBack),:root[data-theme="dark"] .regionRetry{background:var(--accent);color:var(--accentText)}
@media(max-width:700px){.nav .themeToggle{width:38px;height:44px;padding:8px}.nav .actions{gap:2px}}
@media print{.themeToggle{display:none!important}}
