/* Palette layer. Geometry, gestures, image files and photo-zone sizing are preserved. */
.store-theme-picker{margin:22px 0 0;padding-top:18px;border-top:1px solid var(--lab-line,#e8ded3)}
.store-theme-picker h4{font:700 15px/1.4 var(--font-body,system-ui);margin:0 0 12px;color:var(--lab-ink,#292c28)}
.store-theme-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.store-theme-options button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;min-width:0;min-height:84px;padding:10px 4px;border:1px solid var(--lab-line,#e8ded3);border-radius:14px;background:var(--theme-surface,#fff);color:var(--lab-ink,#292c28);font:650 12px/1.4 var(--font-body,system-ui);cursor:pointer}
.store-theme-options button[aria-pressed=true]{border:2px solid var(--lab-brick,#cd492e);padding:9px 3px;background:var(--theme-tonal,#f5ece3)}
.store-theme-options button:focus-visible{outline:3px solid var(--lab-brick,#cd492e);outline-offset:3px}
.store-theme-swatch{display:block;width:38px;height:26px;border-radius:8px;border:1px solid #8885;box-shadow:none}
html[data-store-theme=graphite]{--theme-bg:#18191b;--theme-surface:#222326;--theme-raised:#292a2e;--theme-tonal:#392d29;--theme-line:#414246;--theme-ink:#f4f0eb;--theme-muted:#b5b0a9;--theme-accent:#e67e5c;--theme-on-accent:#241c18;--theme-hero:#2e2523;--theme-glow:#654336}
html[data-store-theme=olive]{--theme-bg:#171c18;--theme-surface:#222a22;--theme-raised:#2b352b;--theme-tonal:#323d2a;--theme-line:#445046;--theme-ink:#f1f0e5;--theme-muted:#afb6a8;--theme-accent:#c3d18e;--theme-on-accent:#20271c;--theme-hero:#293427;--theme-glow:#586644}
html[data-store-theme=sage]{--theme-bg:#f7f9f5;--theme-surface:#ffffff;--theme-raised:#eef2eb;--theme-tonal:#e2ebe1;--theme-line:#d7dfd3;--theme-ink:#25372e;--theme-muted:#68766b;--theme-accent:#3d6553;--theme-on-accent:#ffffff;--theme-hero:#e6eee2;--theme-glow:#b9cbb2}
html[data-store-theme]{color-scheme:dark;--bg:var(--theme-bg)!important;--bg-card:var(--theme-surface)!important;--bg-card-hover:var(--theme-raised)!important;--text-main:var(--theme-ink)!important;--text-muted:var(--theme-muted)!important;--border:var(--theme-line)!important;--lab-paper:var(--theme-bg)!important;--lab-ink:var(--theme-ink)!important;--lab-muted:var(--theme-muted)!important;--lab-line:var(--theme-line)!important;--lab-brick:var(--theme-accent)!important;--approved-accent:var(--theme-accent)!important;--accent-brick:var(--theme-accent)!important;--accent-green:var(--theme-accent)!important;--accent-green-dark:var(--theme-accent)!important;--accent-gold:var(--theme-accent)!important;--accent-gold-hover:var(--theme-accent)!important;--accent-active:var(--theme-accent)!important;--accent-active-text:var(--theme-on-accent)!important;--panel-dark:var(--theme-surface)!important;--panel-dark-deep:var(--theme-bg)!important;--panel-dark-text:var(--theme-ink)!important;--panel-dark-hover:var(--theme-raised)!important;--panel-dark-border:var(--theme-line)!important;--glass-bg:var(--theme-surface)!important;background:var(--theme-bg)!important}
html[data-store-theme] body{background:var(--theme-bg)!important;color:var(--theme-ink)!important}
html[data-store-theme] :is(h1,h2,h3,h4,.studio-heading,.subcat-title,.section-title){color:var(--theme-ink)!important}
html[data-store-theme] #searchBtn{background:var(--theme-surface)!important;color:var(--theme-accent)!important}
html[data-store-theme] :is(input,select,textarea){accent-color:var(--theme-accent);caret-color:var(--theme-accent)}
html[data-store-theme] :is(input,textarea)::placeholder{color:var(--theme-muted)!important;opacity:1}
html[data-store-theme] :is(.form-input,.search-input,#searchInput,#studioSearch,.lab-sheet-close,.lab-picker-close,.lab-history-close,.loyalty-code-close,.close-btn,.privacy-modal-box .close-btn,.lab-qr-button,.approved-qr,.lab-account-button,.lab-account-shortcuts button,.lab-volume-options button,.approved-subcategory-volumes button,.category-btn,.product-card .add-to-cart,.qty-stepper,.weight-stepper,.customer-push-controls button,.lab-welcome-guest,.lab-welcome-cancel,.login-guest-button,.login-cancel-button){background:var(--theme-surface)!important;border-color:var(--theme-line)!important;color:var(--theme-ink)!important}
html[data-store-theme] :is(.category-btn.active,.category-btn.active:hover,.checkout-btn,.lab-hero-cta,.project-shop-button,#projectInstallApp,.lab-tip-actions button,.approved-search-empty button,#labDetailAction .add-to-cart,#cartFab,.lab-account-current,#loyaltyShow,#loyaltyLink,.loyalty-register-action,.approved-subcategory-volumes button[aria-pressed=true],.lab-volume-options button[aria-pressed=true]){background:var(--theme-accent)!important;border-color:var(--theme-accent)!important;color:var(--theme-on-accent)!important}
html[data-store-theme] :is(.checkout-btn:hover,.product-card .add-to-cart:hover){background:var(--theme-tonal)!important;color:var(--theme-ink)!important}
html[data-store-theme] :is(.qty-stepper-btn,.weight-stepper-btn,.cart-item-controls button){background:transparent!important;color:var(--theme-accent)!important}
html[data-store-theme] :is(.qty-stepper-value,.weight-stepper-value,.qty-stepper-count,.weight-stepper-count,.qty-display,.weight-display){color:var(--theme-ink)!important}
html[data-store-theme] #labDetailAction :is(.qty-stepper,.weight-stepper){background:var(--theme-raised)!important;color:var(--theme-ink)!important;border-color:var(--theme-line)!important}
html[data-store-theme] #labDetailAction :is(span,input){color:var(--theme-ink)!important}
html[data-store-theme] :is(.product-card,.privacy-modal-box,.age-gate-box,.alcohol-age-panel,.cart-sheet,#cartSheet,#productModalSheet,.project-seller-chat,dialog,.lab-welcome-sheet,.lab-history-order,.lab-tip-card,.loyalty-card,.loyalty-rules-dialog,#labStoreInfoButton,#labStoreInfoInformation,.lab-account-benefits>div,.lab-account-shortcuts button,.max-login-box,#evoLoginFields,#maxLoginPending,.approved-receiving-hint,.payment-note,.loyalty-home-banner,.loyalty-mini-card){background:var(--theme-surface)!important;border-color:var(--theme-line)!important;color:var(--theme-ink)!important}
html[data-store-theme] :is(#labSearchPanel,.lab-search-footer,#labWelcome,#labWelcomeLogo,#labCatalogUtility,#catalogSafeTop,.catalog-subcategory-row,#categoriesBar,#categoriesBar.stuck){background:var(--theme-bg)!important;color:var(--theme-ink)!important}
html[data-store-theme] :is(.studio-hero,.lab-welcome-art){background:var(--theme-hero)!important;color:var(--theme-ink)!important}
html[data-store-theme] .studio-hero::after,html[data-store-theme] .lab-welcome-art::before{background:var(--theme-glow)!important}
html[data-store-theme] :is(.studio-open,.audit-pickup-benefit b,.studio-hero h1,.product-name,.product-price,.product-modal-name,.product-modal-price,.cart-item-name,.cart-item-line-total,.cart-content,.consent-row,.consent-row span,.payment-title,.privacy-modal-box h3,.privacy-modal-box p,.age-gate-title,.age-gate-box p,.loyalty-cart-mode strong){color:var(--theme-ink)!important}
html[data-store-theme] :is(.product-modal-desc,.product-modal-stock,.cart-item-price,.cart-empty,.account-note,.loyalty-hint,#loyaltyStatus,.loyalty-cart-mode,.loyalty-mini-card span,.loyalty-home-copy p,.loyalty-home-copy small,.customer-push-controls p,.payment-note,.stash-block-note,.stash-item-qty,.lab-photo-placeholder small,.lab-account-current small){color:var(--theme-muted)!important}
html[data-store-theme] :is(.lab-qr-button,.approved-qr,.lab-account-button,.lab-help-link,.lab-store-section a,.consent-row a,.loyalty-new-card-link,.loyalty-rules-link,.loyalty-home-copy strong,.project-cart-remove,.subcat-chip.active,#productModalEmoji svg){color:var(--theme-accent)!important}
html[data-store-theme] :is(.approved-shop-switch button[aria-pressed=false]){color:var(--theme-muted)!important}
html[data-store-theme] .approved-shop-switch button[aria-pressed=true]{background:var(--theme-tonal)!important;border-color:var(--theme-line)!important;color:var(--theme-ink)!important}
html[data-store-theme] :is(.product-card .qty-stepper,.product-card .weight-stepper,.lab-account-benefits>div,.loyalty-cart-mode){background:var(--theme-tonal)!important;border-color:var(--theme-line)!important}
html[data-store-theme] #cartModal #cartItems,html[data-store-theme] #cartModal .cart-item-swipe{background:var(--theme-surface)!important;color:var(--theme-ink)!important}
html[data-store-theme] #cartModal #cartItems>.cart-item+.cart-item{border-color:var(--theme-line)!important}
html[data-store-theme] #cartModal .cart-item-controls{background:var(--theme-raised)!important;color:var(--theme-ink)!important}
html[data-store-theme] #cartModal .approved-checkout-modes button{background:var(--theme-surface)!important;border-color:var(--theme-line)!important;color:var(--theme-ink)!important}
html[data-store-theme] #cartModal .approved-checkout-modes button[aria-pressed=true]{background:var(--theme-tonal)!important;border-color:var(--theme-accent)!important;color:var(--theme-accent)!important}
html[data-store-theme] :is(.cart-page-header,.project-profile-hint,#cartSearchBtn,#clearCartBtn,.address-clear-button){background:var(--theme-surface)!important;color:var(--theme-ink)!important;border-color:var(--theme-line)!important}
html[data-store-theme] :is(.cart-page-title,.summary-row,.summary-row span,.summary-total,.recommendations-title,.recommendations-note,.recommendations-subtitle){color:var(--theme-ink)!important}
html[data-store-theme] #cartModal :is(.cart-page-title,.cart-summary,.cart-summary span,.recommendations-title){color:var(--theme-ink)!important}
html[data-store-theme] #cartModal :is(.recommendations,.cart-summary,.summary-total-row){border-color:var(--theme-line)!important}
html[data-store-theme] :is(.cart-recommendation-note,.project-seller-chat-empty){color:var(--theme-muted)!important}
html[data-store-theme] :is(#cartFab .cart-fab-total,.cart-fab-label,.cart-fab-count){color:var(--theme-on-accent)!important}
html[data-store-theme] #cartFab .cart-fab-badge{background:var(--theme-on-accent)!important;color:var(--theme-accent)!important}
html[data-store-theme] :is(.project-seller-chat-header,.project-seller-chat-messages,.project-seller-chat-form){background:var(--theme-surface)!important;border-color:var(--theme-line)!important;color:var(--theme-ink)!important}
html[data-store-theme] .project-seller-chat-form input{background:var(--theme-bg)!important;border-color:var(--theme-line)!important;color:var(--theme-ink)!important}
html[data-store-theme] .project-seller-chat-form button{background:var(--theme-accent)!important;color:var(--theme-on-accent)!important}
html[data-store-theme] :is(.product-modal-alcohol-warning,.account-error,#evoLoginError){color:#ffb59f!important}
html[data-store-theme] .product-modal-alcohol-warning{background:#6b2d252e!important;border-color:#e67e5c77!important}
html[data-store-theme] #labBackTop{background:var(--theme-accent)!important;color:var(--theme-on-accent)!important;border-color:var(--theme-line)!important}
html[data-store-theme] #labOrderStatusHint{background:var(--theme-surface)!important;color:var(--theme-ink)!important;border-color:var(--theme-line)!important}
html[data-store-theme] #labOrderStatusHint::before{background:var(--theme-surface)!important}
html[data-store-theme].approved-storefront #firstOrderPromo{background:var(--theme-tonal)!important;border-color:var(--theme-line)!important;color:var(--theme-ink)!important}
html[data-store-theme].approved-storefront :is(.first-order-promo-title,.first-order-promo-main,.first-order-promo-close){color:var(--theme-ink)!important}
html[data-store-theme].approved-storefront :is(.first-order-promo-note,.first-order-promo-more){color:var(--theme-muted)!important}
html[data-store-theme] #categoriesBar .categories-row::before,html[data-store-theme] #subcategoriesWrap::before{background:linear-gradient(to right,var(--theme-bg),transparent)!important}
html[data-store-theme] #categoriesBar .categories-row::after,html[data-store-theme] #subcategoriesWrap::after{background:linear-gradient(to left,var(--theme-bg),transparent)!important}
/* Keep brand artwork and scannable codes on their required original backgrounds. */
html[data-store-theme] :is(#loyaltyQR,#loyaltyQR svg,.alex-evo-button){color-scheme:light}
html[data-store-theme] .alex-evo-button{background:#fff!important;color:#222!important}
html[data-store-theme] :is(.loyalty-brand-logo){mix-blend-mode:normal}
/* No filter, opacity or blend mode is applied to product photographs. */
html[data-store-theme] :is(.product-image .lab-photo-placeholder,.product-photo-fallback){background:var(--theme-surface)!important;color:var(--theme-muted)!important}
html[data-store-theme] #productModalEmojiRing{background:var(--theme-surface)!important;color:var(--theme-muted)!important}
/* Additional light palette shares the same component geometry and saved selection. */
html[data-store-theme=sage]{color-scheme:light}
html[data-store-theme=sage] .category-btn{background:var(--theme-raised)!important}
html[data-store-theme=sage] :is(.category-btn.active,.category-btn.active:hover){background:var(--theme-tonal)!important;border-color:#829d87!important;color:var(--theme-accent)!important}
html[data-store-theme=sage] :is(.product-modal-alcohol-warning,.account-error,#evoLoginError){color:#963c29!important}
html[data-store-theme=sage] .product-modal-alcohol-warning{background:#f9ece5!important;border-color:#dfb5a6!important}

/* Complete palette coverage for secondary screens and dynamically created dialogs. */
html[data-store-theme]{--hero:var(--theme-raised)!important;--hero-accent:var(--theme-accent)!important;--surface:var(--theme-surface)!important;--theme-danger:#ffb59f;--theme-danger-bg:#4e2c29;--theme-scrim:#080b0cb3}
html[data-store-theme=sage]{--theme-danger:#963c29;--theme-danger-bg:#f9ece5;--theme-scrim:#23372c66}
html[data-store-theme] :is(.cart-modal,.privacy-modal,.product-modal,.alcohol-age-gate,.age-gate){background:var(--theme-scrim)!important}
html[data-store-theme] dialog::backdrop{background:var(--theme-scrim)!important}
html[data-store-theme] :is(#checkoutSheet,#orderStatusSheet,#maxLoginDialog,#loyaltyCode[open],#loyaltyRules[open],#labOrderHistory[open],#labStoreInformation[open],#labCategoryPicker[open],#cartClearConfirmation[open],#projectLogoutConfirm[open],#loyaltyUnlinkConfirm[open],#modeGate .age-gate-box,.project-account-actions,.project-address-options,.project-address-options button,.project-alcohol-search-access,.studio-order-review,.stash-block,.project-tracked-order,.loyalty-registration-modes,.project-seller-messages,#orderChatMessages){background:var(--theme-surface)!important;border-color:var(--theme-line)!important;color:var(--theme-ink)!important}
html[data-store-theme] :is(.project-address-options button:hover,.project-address-options button[aria-selected=true],.loyalty-registration-modes button,.project-logout-dialog button,.cart-confirm-actions button,#maxLoginDialog button,#maxLoginCancel,#orderStatusDone,#projectDemoOrderStatus,#enableOrderPush,.stash-delete-btn,.stash-restore-btn,.product-modal-meta){background:var(--theme-raised)!important;color:var(--theme-ink)!important;border-color:var(--theme-line)!important}
html[data-store-theme] :is(.cart-confirm-actions #cartClearYes,#projectLogoutConfirm #projectLogoutCancel,#loyaltyUnlinkConfirm #loyaltyUnlinkNo,.account-primary-btn,.project-catalog-age-confirm,.project-alcohol-search-access button,.order-status-close,#orderChatForm button,.loyalty-registration-modes button[aria-pressed=true],.loyalty-home-copy button){background:var(--theme-accent)!important;color:var(--theme-on-accent)!important;border-color:var(--theme-accent)!important}
html[data-store-theme] :is(#loyaltyCardMode,#customerAccountModal #loyaltyCardMode){background:var(--theme-tonal)!important;border-color:var(--theme-line)!important;color:var(--theme-accent)!important}
html[data-store-theme] :is(.loyalty-card .loyalty-rules-link,.loyalty-home-copy .loyalty-rules-link,#loyaltyUnlink,.loyalty-profile-logout,#removeCustomerProfile){color:var(--theme-muted)!important}
html[data-store-theme] :is(.order-status-current,.order-status-title,#orderStatusTitle,.project-order-total,.project-order-summary .project-order-total,.studio-order-review strong,.stash-block-title,.stash-block-total,.stash-item-name,.stash-item-price,.qty-value,.bottle-inline,#modeGate .age-gate-title,.project-tracked-order,.cart-page-title,#orderChatMessages p){color:var(--theme-ink)!important}
html[data-store-theme] :is(.order-status-view p,#orderStatusDescription,.project-order-summary>div,.project-tracked-order small,.project-chat-hours,.project-chat-empty,.project-address-help,.project-address-attribution,.project-address-attribution a,.address-selected-locality,.project-account-scroll-hint,.loyalty-rules-dialog small,.loyalty-ruble,.cart-age-restriction-note,.project-seller-messages small,#orderChatMessages small){color:var(--theme-muted)!important}
html[data-store-theme] :is(.project-order-state-icon,.order-status-number,.project-order-timeline span,.lab-account-progress .is-future){background:var(--theme-raised)!important;color:var(--theme-muted)!important}
html[data-store-theme] .project-order-timeline span.on{background:var(--theme-accent)!important}
html[data-store-theme] :is(#orderChatInput,#searchCloseBtn){background:var(--theme-surface)!important;color:var(--theme-ink)!important;border-color:var(--theme-line)!important}
html[data-store-theme] :is(.form-input:focus,#searchInput:focus,.project-seller-chat-form input:focus,#orderChatInput:focus){border-color:var(--theme-accent)!important}
html[data-store-theme] :is(.project-account-heading .loyalty-profile-logout,.lab-store-section a,.project-address-attribution a,.age-gate-yes){color:var(--theme-accent)!important}
html[data-store-theme] :is(.age-gate-no,.age-gate-yes){background:var(--theme-surface)!important;border-color:var(--theme-line)!important}
html[data-store-theme] :is(.account-error,#evoLoginError,.product-modal-stock.out,.product-modal-alcohol-warning){color:var(--theme-danger)!important}
html[data-store-theme] .product-modal-alcohol-warning{background:var(--theme-danger-bg)!important;border-color:var(--theme-danger)!important}
html[data-store-theme] :is(.customer-push-controls,.loyalty-rules-dialog td,.loyalty-rules-dialog th,.project-seller-chat-header,.project-seller-chat-form,.lab-store-section,.project-account-actions){border-color:var(--theme-line)!important}
html[data-store-theme] .app-toast{background:var(--theme-surface)!important;color:var(--theme-ink)!important;border-color:var(--theme-line)!important}
html[data-store-theme] .app-toast.danger .app-toast-title{color:var(--theme-danger)!important}
html[data-store-theme] #loyaltyCode::before,html[data-store-theme] #labCategoryPicker::before{background:var(--theme-line)!important}
/* Specific legacy selectors also used !important: keep selected actions readable. */
html[data-store-theme].approved-storefront :is(.checkout-btn,#loyaltyShow,.category-btn.active,.category-btn.active:hover){background:var(--theme-accent)!important;border-color:var(--theme-accent)!important;color:var(--theme-on-accent)!important}
html[data-store-theme=sage].approved-storefront :is(.category-btn.active,.category-btn.active:hover){background:var(--theme-tonal)!important;color:var(--theme-accent)!important;border-color:#829d87!important}
/* QR quiet zone and product files keep their original, unfiltered colours. */
html[data-store-theme] #loyaltyQR,html[data-store-theme] #loyaltyQR svg{background:#fff!important;color:#000!important}
html[data-store-theme] .age-gate-no{color:var(--theme-ink)!important}
html[data-store-theme] #projectSellerChat .project-seller-chat-header p{color:var(--theme-muted)!important}
html[data-store-theme] #cartDeliveryAddressField small{color:var(--theme-muted)!important}
html[data-store-theme] .project-message{background:var(--theme-raised)!important;color:var(--theme-ink)!important}
html[data-store-theme] .project-message.customer{background:var(--theme-tonal)!important;color:var(--theme-ink)!important}
html[data-store-theme] .project-message :is(small,time){color:var(--theme-muted)!important}
html[data-store-theme=sage] :is(#projectSellerChat,#orderChatMessages) .project-message :is(small,time){color:#526153!important}
