/* Customer navigation and a persistent, device-local color preference. */
.header-store-actions{display:flex;align-items:center;gap:12px;margin-left:auto;flex-shrink:0}
.header-store-actions .header-cart{margin-left:0}
.header-zones{display:inline-flex;align-items:center;justify-content:center;min-height:40px;font-size:13px;white-space:nowrap;color:var(--navy)}
.profile-header-hidden{display:none!important}
.appearance-settings{max-width:780px;margin:20px auto 0}
.theme-toggle{display:flex;align-items:center;gap:12px;width:100%;min-height:62px;padding:15px 18px;border:1px solid var(--line);border-radius:12px;background:var(--white);color:var(--ink);text-align:left}
.theme-toggle>.icon{width:22px;height:22px;color:var(--navy)}
.theme-label{flex:1;font-size:14px}
.theme-status{font-size:12px;color:var(--muted)}
.theme-track{display:block;width:40px;height:24px;flex-shrink:0;border-radius:14px;background:#c7d0da;padding:3px}
.theme-track::after{content:'';display:block;width:18px;height:18px;background:#fff;border-radius:50%;box-shadow:0 1px 3px #0002;transition:transform .16s}
.theme-toggle[aria-checked=true] .theme-track{background:#507bab}
.theme-toggle[aria-checked=true] .theme-track::after{transform:translateX(16px)}
@media(min-width:701px){.profile-header-hidden~.mobile-nav{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));max-width:780px;margin:24px auto 36px;border:1px solid var(--line);border-radius:12px;background:var(--white);padding:15px;gap:15px}.profile-header-hidden~.mobile-nav a{display:flex;align-items:center;justify-content:center;gap:8px;font-size:14px}.profile-header-hidden~.mobile-nav a.active{color:var(--navy);font-weight:600}.profile-header-hidden~.store-main{min-height:0;padding-top:30px}}
@media(max-width:700px){.header-store-actions{gap:9px}.header-zones{font-size:12px;min-height:40px}.compact-header .brand{max-width:calc(100% - 108px)}.appearance-settings{margin-top:16px}.theme-toggle{min-height:56px;padding:13px 15px;border-radius:10px}.profile-header-hidden~.store-main{padding-top:24px}}
@media(prefers-reduced-motion:reduce){.theme-track::after{transition:none}}

/* Real surface and text colors, without changing product photography. */
:root[data-theme=dark]{--navy:#dce8f6;--blue:#9bbce2;--orange:#f3ac70;--ink:#e2e8f0;--muted:#a5b1c1;--line:#344152;--page:#111822;--white:#1b2633;--soft:#233345;--green:#8cd5ae;--red:#ffaaa4;background:var(--page);color:var(--ink)}
[data-theme=dark] body{background:var(--page);color:var(--ink)}
[data-theme=dark] :is(.header,.mobile-nav,.surface,.summary-panel,.account-tile,.product-card,.selection-dock,.cart-summary,.purchase-dock,.cart-checkout-dock,dialog,.zone-card){background:var(--white);border-color:var(--line);color:var(--ink)}
[data-theme=dark] :is(.product-title,.record-side>strong,.selection-dock strong,.cart-checkout-dock strong,.line-right>strong,.amount-row>span:last-child,.amount-total strong,.order-inline-amounts b,.order-inline-amounts strong,.meta-list dd,.product-facts b,.campaign-meter strong,.record-title){color:var(--ink)}
[data-theme=dark] :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:var(--white);color:var(--ink);border-color:var(--line)}
[data-theme=dark] :is(input,textarea)::placeholder{color:#8e9bad;opacity:1}
[data-theme=dark] :is(input[type=checkbox],input[type=radio]){accent-color:#7aa8df}
[data-theme=dark] :is(.search-box,.category-select select,.selection-panel,.shipping-info,.campaign-progress,.campaign-meter,.inline-note,.order-text,.default-badge,.return-notice,.batch-notice,.cart-note-preview,.wish-reply,.wish-detail-reply,.product-points,.points-rule,.points-overview,.pickup-code,.payment-note){background:var(--soft);color:var(--ink);border-color:var(--line)}
[data-theme=dark] :is(.sku-options button,.selection-panel .sku-options button,.quantity,.selection-panel .quantity,.quantity button,.selection-panel .quantity button,.btn.secondary,.btn.ghost,.wish-support.selected){background:var(--white);color:var(--ink);border-color:var(--line)}
[data-theme=dark] :is(.sku-options button.selected,.selection-panel .sku-options .selected){background:#2b4564;border-color:#8eb4de;color:#edf5ff}
[data-theme=dark] :is(.btn.primary,.filter-tabs button.active,.brand-icon){background:#304e72;border-color:#4d6d94;color:#fff}
[data-theme=dark] .btn.primary:hover{background:#3c5d85}
[data-theme=dark] :is(.btn.danger,.form-error,.line-info em,.points-row .negative){color:#ffaaa4}
[data-theme=dark] :is(.round-button,.round-button:hover,.account-tile:hover){background:var(--soft);color:var(--navy)}
[data-theme=dark] :is(.catalog-price,.price,.detail-price,.shopping-detail .detail-price,.points-price,.reward-dock>strong,.wish-count strong){color:#ffb779}
[data-theme=dark] :is(.record-status,.activity-card-note){color:#efc287}
[data-theme=dark] :is(.activity-entry,.activity-price-panel,.wish-support,.wish-ranking-vote){background:#3c3023;border-color:#786047;color:#f4cc94}
[data-theme=dark] .wish-ranking-vote.is-supported{background:#26382f;color:#b8deca}
[data-theme=dark] :is(.message-card.read,.message-row.read){background:var(--white)}
[data-theme=dark] :is(.order-topline,.order-footer-meta,.selectable-cart-row,.message-row,.wish-suggestion,.product-introduction,.cart-address,.registered-intents,.order-inline-amounts,.order-points,.points-row,.simple-order-lines>div,.address-actions,.local-buy-row){border-color:var(--line)}
[data-theme=dark] :is(.line-info span,.line-info small,.line-right>span,.cart-address p,.address-block p,.address-card p,.order-footer-meta,.message-row.read>span,.message-row time,.message-card p,.campaign-description,.campaign-terms,.detail-story>p,.detail-note,.detail-price small,.catalog-price small,.product-facts dt,.copy-reminder,.contact-strip>span,.cart-summary .checkout-help,.cart-note-disclosure summary small,.campaign-meter>p,.campaign-meter small,.record-copy time,.selection-dock small,.compact-aftersale>summary,.wish-suggestion>summary,.minimal-batch dt,.about-copy p,.wish-detail-total span,.wish-ranking-copy p,.wish-ranking-copy>span,.wish-excerpt,.ranking-meta,dialog p){color:var(--muted)}
[data-theme=dark] :is(.status-pending,.status-reported){background:#443622;color:#f5d294}
[data-theme=dark] :is(.status-paid,.status-shipped){background:#273d57;color:#bed9fa}
[data-theme=dark] :is(.status-ready,.status-done){background:#243f32;color:#b3e4c4}
[data-theme=dark] .status-cancelled{background:#343a44;color:#c4ccda}
[data-theme=dark] .points-mall-head{background:#263f5e;color:#fff}
[data-theme=dark] .campaign-meter progress::-webkit-progress-bar{background:#344152}
[data-theme=dark] .campaign-meter progress::-webkit-progress-value{background:#87acd7}
[data-theme=dark] .campaign-meter progress::-moz-progress-bar{background:#87acd7}
[data-theme=dark] #toast{background:#e0e8f2;color:#172335}
[data-theme=dark] dialog::backdrop{background:#0009}
