/* Client surfaces share the saved account theme, including legacy light styles. */
html:root[data-theme=dark]{color-scheme:dark;--paper:var(--sm-paper);--card:var(--sm-panel);--surface:var(--sm-panel);--soft:var(--sm-soft);--brand-light:var(--sm-soft);--muted:var(--sm-muted);--border:var(--sm-border);--line:var(--sm-border);--ink:var(--sm-ink);--brand:var(--sm-brand);--green:var(--sm-brand)}
html:root[data-theme=dark] body{background:var(--sm-paper)!important;color:var(--sm-ink)!important}
html:root[data-theme=dark] body :is(#main,.market-app,.header,.app-header,.account-header,.desktop-store-navigation,.store-channel-navigation,.shop-tabs,.bottom-nav,.cart-preview,footer,.supplier-selector,.category-strip,.product-row,.product,.home-section,.home-shelf,.home-providers,.products-panel,.catalog-heading,.supplier-caption,.purchase-summary,.supplier-cart,.sf-supplier-cart,.cart-product,.cart-line,.cart,.order-card,.empty-state,.account-card,.profile-tabs,.info-card,.supplier-public-info,.supplier-option,.alternative-option,.alternative-current,.alternative-supplier-group,.store-menu-sheet,.ux-modal,dialog){background-color:var(--sm-panel)!important;color:var(--sm-ink)!important;border-color:var(--sm-border)!important}
html:root[data-theme=dark] body :is(.demo-strip,.catalog-footnote,.supplier-subtotal,.cart-heading,.category-strip button>span,.home-category>span,.quantity-control,.quantity-control button,.image-placeholder,.secondary,.button.secondary,.store-menu-channels a,.member-heading,.shared-cart-notice){background-color:var(--sm-soft)!important;color:var(--sm-ink)!important;border-color:var(--sm-border)!important;background-image:none!important}
html:root[data-theme=dark] body :is(input,select,textarea){background-color:var(--sm-soft)!important;color:var(--sm-ink)!important;border-color:var(--sm-border)!important}
html:root[data-theme=dark] body :is(input,textarea)::placeholder{color:var(--sm-muted)!important;opacity:1}
html:root[data-theme=dark] body :is(.primary,.button:not(.secondary),.add-button,.cart-button,.store-menu-channels a[aria-current=page]){background:var(--sm-brand)!important;color:#102219!important;border-color:var(--sm-brand)!important}
html:root[data-theme=dark] body :is(a,.text-button,.product-name,.product-price,.location-button,.retail-location-button,.store-menu-options>a,.store-menu-options>button,.store-menu-trigger){color:var(--sm-brand)!important}
html:root[data-theme=dark] body :is(.pack-label,.product-supplier,.demo-strip>span,.demo-strip button,.simulation-note,.catalog-footnote,.sf-cart-summary small,.cart-product small,.wholesale-line-prices small,.store-menu-heading small,.store-menu-options small,.category-strip button){color:var(--sm-muted)!important}
html:root[data-theme=dark] body :is(.supplier-cart,.cart-product,.purchase-summary,.account-card,.store-menu-sheet,.alternative-option) strong{color:var(--sm-ink)}
html:root[data-theme=dark] body :is(.cart-heading,.supplier-subtotal,.store-menu-options>a,.store-menu-options>button){border-color:var(--sm-border)!important}
html:root[data-theme=dark] dialog::backdrop{background:#0009}
html:root[data-theme=dark] body :is(form,.search>div,.catalog-controls,.faq-item,#household-form details){background:var(--sm-panel)!important;color:var(--sm-ink)!important;border-color:var(--sm-border)!important}
html:root[data-theme=dark] body :is(.home-basket,.retail-promo-banner,.promo-banner.gold,.promo-banner.mint){background:var(--sm-soft)!important;color:var(--sm-ink)!important;border-color:var(--sm-border)!important}
html:root[data-theme=dark] body :is(.home-basket,.retail-promo-banner,.promo-banner.gold,.promo-banner.mint) :is(strong,small,span){color:var(--sm-ink)!important}
html:root[data-theme=dark] body :is(p,small){color:var(--sm-muted)!important}
html:root[data-theme=dark] body :is(h1,h2,h3,h4,label,summary){color:var(--sm-ink)!important}
html:root[data-theme=dark] body :is(.retail-location-button,.location-button,.retail-shelf-controls button,.more-button,.alternatives-button,.store-menu-heading>button,.skip-link,.product-image.no-image){background:var(--sm-soft)!important;color:var(--sm-brand)!important;border-color:var(--sm-border)!important}
html:root[data-theme=dark] body :is(.bottom-nav button,.shop-tabs a,.shop-tabs button){background:transparent!important;color:var(--sm-muted)!important}
html:root[data-theme=dark] body :is(.bottom-nav button,.shop-tabs a,.shop-tabs button)[aria-current=page]{background:var(--sm-soft)!important;color:var(--sm-brand)!important}
html:root[data-theme=dark] body :is(section,article,details,hr,footer){border-color:var(--sm-border)!important}
html:root[data-theme=dark] body.home-shop #main>.home-shopping-section[id]{border-bottom-color:var(--sm-border)!important}
html:root[data-theme=dark] body button{color:var(--sm-ink)!important}

.retail-measure{font-size:13px;line-height:1.45;margin:8px 0;color:inherit}.retail-best-measure{display:inline-block;margin-top:4px;padding:4px 8px;border-radius:6px;background:#dff2dc;color:#194e2e;font-size:12px}[data-theme=dark] .retail-best-measure{background:#244a34;color:#bff0c9}[data-supply] input[type=checkbox]{width:20px!important;min-height:20px!important;vertical-align:middle}
