/* CONFLUA v183. All changes are restricted to the existing mobile breakpoint. */
.conflua-mobile-header { display:none; }
@media (max-width:680px) {
  html[data-shopper-theme], html[data-shopper-theme] body {
    --mh-bg:#f5f8f5; --mh-surface:#fff; --mh-ink:#17392d; --mh-muted:#63776e;
    --mh-line:#d9e5df; --mh-soft:#e7f2eb; --mh-accent:#1e7150;
    color-scheme:light;
  }
  html[data-shopper-theme="dark"], html[data-shopper-theme="dark"] body:not([data-shopper-theme="light"]) {
    --mh-bg:#111a16; --mh-surface:#1d2b23; --mh-ink:#f1f7f2; --mh-muted:#b0c2b5;
    --mh-line:#37493e; --mh-soft:#293d30; --mh-accent:#a3eb8c;
    --ink:var(--mh-ink); --muted:var(--mh-muted); --line:var(--mh-line); --soft:var(--mh-soft);
    color-scheme:dark; background:var(--mh-bg) !important; color:var(--mh-ink) !important;
  }
  /* A normal-flow header cannot cover the content or collide with the search dock. */
  html[data-shopper-theme] body > #confluaMobileHeader,
  html[data-shopper-theme] body dialog .conflua-mobile-header {
    display:flex !important; align-items:center; box-sizing:border-box; flex-shrink:0;
    width:100%; min-height:60px; padding:12px max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left));
    margin:0; position:relative; inset:auto; z-index:1;
    background:var(--mh-bg); color:var(--mh-ink); border:0; box-shadow:none;
  }
  html[data-shopper-theme] body > #confluaMobileHeader { padding-top:calc(12px + env(safe-area-inset-top)); }
  html[data-shopper-theme] .conflua-mobile-brand {
    display:inline-flex; align-items:center; gap:9px; min-height:36px; width:max-content; max-width:100%;
    color:var(--mh-ink) !important; text-decoration:none; font:700 19px/1.2 Inter,system-ui,sans-serif; letter-spacing:-.5px;
  }
  html[data-shopper-theme] .conflua-mobile-brand img { display:block; width:34px; height:34px; padding:0; border:0; border-radius:10px; object-fit:contain; }
  html[data-shopper-theme] .conflua-mobile-brand strong { color:inherit !important; }
  html[data-shopper-theme] body .mobile-home-brand,
  html[data-shopper-theme] body > .seo-header .seo-brand,
  html[data-shopper-theme] body .staff-access-brand,
  html[data-shopper-theme] body.shared-shop-page > .topbar,
  html[data-shopper-theme] body.shared-product-page > .topbar { display:none !important; }
  html[data-shopper-theme] body:not(.mobile-shopper-home) > .topbar .brand { display:none; }
  html[data-shopper-theme] body #mobileHomeHeader { padding-top:0; }
  html[data-shopper-theme] body:has(> .staff-access-shell) { display:block; padding:0; }
  html[data-shopper-theme] body:has(> .staff-access-shell) .staff-access-shell { width:100%; padding:16px; box-sizing:border-box; }
  html[data-shopper-theme] body .seo-header { position:static; min-height:0; border-top:0; padding:0 14px 12px; }
  html[data-shopper-theme] body .seo-header nav { margin:0; flex-wrap:wrap; }
  /* Standalone product actions are below the brand, all on one touch-friendly row. */
  html[data-shopper-theme] body.shared-product-page #productDialog[open],
  html[data-shopper-theme] body.shared-shop-page #shopProfileDialog[open] { margin-top:0 !important; }
  html[data-shopper-theme] body.shared-product-page #productDialog .dialog-navigation {
    display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:stretch;
    position:static !important; inset:auto !important; width:100%; max-width:100%;
    margin:0 0 16px !important; padding:0 0 14px !important; gap:8px; overflow:visible;
    background:transparent !important; border-bottom:1px solid var(--mh-line); box-sizing:border-box;
  }
  html[data-shopper-theme] body.shared-product-page #productDialog .dialog-navigation .nav-control {
    display:flex; align-items:center; justify-content:center; gap:4px; min-width:0; width:100%; min-height:44px;
    margin:0; padding:8px 4px; flex:auto; border-radius:14px; font-size:12px; white-space:nowrap;
  }
  html[data-shopper-theme] body.shared-product-page #productDialog .dialog-navigation .nav-account { display:none !important; }
  html[data-shopper-theme] body.shared-product-page #productDialog .dialog-navigation svg { width:15px; height:15px; flex:0 0 15px; }
  html[data-shopper-theme] body dialog.conflua-branded-dialog .conflua-mobile-header { padding-left:0; padding-right:52px; margin-bottom:12px; }
  html[data-shopper-theme] body dialog.conflua-branded-dialog > :is(.buyer-profile-menu-shell,.buyer-workspace-shell,.registration-menu-shell) > .conflua-mobile-header { padding-left:16px; margin:0; }
  html[data-shopper-theme] body dialog.conflua-branded-dialog .dialog-navigation { position:relative !important; top:auto !important; margin-right:0; }
  /* Shared surfaces, including dynamically inserted account and legal dialogs. */
  html[data-shopper-theme="dark"] body :is(
    dialog,.dialog-card,.dialog-panel,.band,.panel,.order-panel,.product-card,.shop-card,.supplier-card,.registration-card,.buyer-cabinet-card,
    .shared-product-page-status,.shared-shop-page-status,.topbar,.side-rail,.search-panel,.retail-hero,
    .marketplace-category-card,.marketplace-subcategory-panel,.category-button,
    .product-purchase-card,.product-purchase-delivery,.product-detailed-description,.product-description-cards article,.dialog-section,.dialog-review,.empty-state,
    .dialog-buy-bar,.wb-product-seller-card,.wb-seller-card,.product-specification-card,
    .wb-shop-page,.wb-shop-topbar,.wb-shop-community-head,.wb-shop-summary-card,.wb-shop-products-section,.wb-shop-about-card,.wb-store-product-card,
    .wb-account-page,.wb-account-hero,.wb-account-section,.wb-account-menu,.wb-account-card,.wb-benefit-card,.wb-active-order-card,.buyer-order-card,.buyer-orders-shell,
    .buyer-workspace-shell,.buyer-workspace-toolbar,.buyer-profile-menu-shell,.buyer-profile-menu-toolbar,.buyer-profile-menu-content,.buyer-profile-inline-editor,
    .registration-menu-shell,.registration-menu-toolbar,.simple-registration-shell,.buyer-purchase-center,.buyer-purchase-card,
    .cart-shop-group,.cart-shop-heading,.cart-shop-footer,.cart-checkout-summary,.cart-item,
    .legal-dialog-card,.conflua-faq,.conflua-faq details,.privacy-center-section,.privacy-history-row,.privacy-request-row,.legal-empty,.conflua-cookie-notice,
    .staff-access-card,.staff-access-note,.network-section-hero,.network-access-note,.network-guide,.branch-access-form,.branch-team-card,
    .messages-center-shell,.messages-center-toolbar,.order-chat-thread,.order-action-panel,.b2b-chat-message,
    .seo-header,.seo-hero,.seo-shop-hero,.seo-description,.seo-shop-list,.seo-shop-list li,.seo-product-card,.seo-buy
  ) { background:var(--mh-surface) !important; color:var(--mh-ink) !important; border-color:var(--mh-line) !important; }
  /* IDs intentionally match legacy !important rules on the standalone product. */
  html[data-shopper-theme="dark"] body #productDialog,
  html[data-shopper-theme="dark"] body #productDialog > .dialog-card,
  html[data-shopper-theme="dark"] body #productDialog :is(.product-purchase-card,.product-purchase-delivery,.product-detailed-description,.product-description-cards article),
  html[data-shopper-theme="dark"] body #shopProfileDialog > .dialog-card,
  html[data-shopper-theme="dark"] body #cartMenuDialog #orderForm {
    background:var(--mh-surface) !important; color:var(--mh-ink) !important; border-color:var(--mh-line) !important;
  }
  html[data-shopper-theme="dark"] body :is(h1,h2,h3,h4,h5,strong,label,dt,dd,summary,.nav-control,.wb-shop-name,.cart-product-title,.seo-price) { color:var(--mh-ink) !important; }
  html[data-shopper-theme="dark"] body :is(p,li,.muted,small,.product-article,.product-card-desc,.delivery-line,.product-shop-line,.spec-list,.product-spec-table,.seo-lead,.status-text) { color:var(--mh-muted); }
  html[data-shopper-theme="dark"] body :is(.product-dialog-description,.product-detailed-description p,.legal-document-content,.privacy-center-section p,.staff-access-note,.seo-description p,.seo-product-card p) { color:var(--mh-muted) !important; }
  html[data-shopper-theme="dark"] body :is(.price,.price strong,.product-price,.shared-product-price,.eyebrow,.seo-eyebrow,.seo-link) { color:var(--mh-accent) !important; }
  html[data-shopper-theme="dark"] body :is(input,select,textarea) { background:var(--mh-bg) !important; color:var(--mh-ink) !important; border-color:var(--mh-line) !important; }
  html[data-shopper-theme="dark"] body :is(input,textarea)::placeholder { color:var(--mh-muted) !important; opacity:1; }
  html[data-shopper-theme="dark"] body :is(
    .nav-control,.secondary-action,.mini-action,.secondary-link,.icon-button,.category-button,.marketplace-subcategory-chip,.search-suggestion-chip,.city-suggestion-chip,
    .wb-shop-search,.wb-shop-heart,.wb-shop-back,.wb-shop-top-icons button,.wb-shop-filter-row button,.wb-shop-info-strip span,
    .wb-shop-top-actions a,.wb-shop-top-actions button,.wb-store-fav,.product-share,.product-favorite,
    .wb-account-menu button,.wb-benefit-row button,.buyer-orders-summary > div,.buyer-mini-product,.buyer-purchase-summary > div,
    .cart-overview > div,.cart-quantity-control,.cart-quantity-control button,.registration-role-switch,.buyer-workspace-count,
    .buyer-workspace-close,.buyer-profile-menu-close,.registration-menu-close,.legal-dialog-close,
    .check-row,.legal-consent-block,.legal-document-meta span,.legal-operator-card div,.legal-support-card div,.privacy-marketing-state,.privacy-request-grid label,
    .profile-spec-grid div,.metric,.network-guide > summary,.network-guide-intro,.network-guide-steps li,.network-guide-hint,.branch-access-activation-details div,
    .product-delivery-terms,.product-review-snippet,.seo-chip,.seo-chip span,.seo-secondary,.seo-header nav a,.seo-section-title span,.seo-business-link-list-v173 a
  ) { background:var(--mh-soft) !important; color:var(--mh-ink) !important; border-color:var(--mh-line) !important; box-shadow:none; }
  html[data-shopper-theme="dark"] body #productDialog :is(.product-dialog-rating-line button,.product-section-heading > button,.product-purchase-social button,.product-media-thumb-button,.product-media-viewport,.product-media-slide) {
    background:var(--mh-soft) !important; color:var(--mh-ink) !important; border-color:var(--mh-line) !important;
  }
  html[data-shopper-theme="dark"] body :is(.product-media-slide img,.product-media-slide video,.product-media-viewport,.product-media-slide,.product-media-thumb-button,.product-image-button,.wb-store-product-image,.seo-main-image,.seo-main-image img,.seo-thumb,.seo-product-photo,.cart-product-image,.media-preview-item) { background-color:var(--mh-soft) !important; }
  html[data-shopper-theme="dark"] body #productDialog :is(.product-media-arrow,.product-video-center-play) { background:#173f31 !important; color:#fff !important; border-color:#b0c2b5 !important; }
  html[data-shopper-theme="dark"] body :is(.primary-action,.nav-home,.cart-now-action,.buy-now-action,.seo-primary),
  html[data-shopper-theme="dark"] body #productDialog :is(#dialogAddButton,#dialogBuyNowButton) { background:#247550 !important; color:#fff !important; border-color:#408966 !important; }
  html[data-shopper-theme="dark"] body :is(.primary-action,.nav-home,.cart-now-action,.buy-now-action,.seo-primary) :is(strong,small,span) { color:inherit !important; }
  html[data-shopper-theme="dark"] body :is(.product-availability-chip.is-available,.pill,.seo-buy > span) { background:#244c35 !important; color:#bdebb7 !important; }
  html[data-shopper-theme="dark"] body :is(.product-availability-chip.is-order,.legal-operator-warning) { background:#463b24 !important; color:#f0d89c !important; }
  html[data-shopper-theme="dark"] body :is(.danger-action,.product-availability-chip.is-unavailable) { background:#472b2c !important; color:#ffc0b9 !important; }
  html[data-shopper-theme="dark"] body :is(.market-bottom-nav,.conflua-footer,.seo-footer) { background:var(--mh-bg) !important; color:var(--mh-ink) !important; border-color:var(--mh-line) !important; box-shadow:none !important; }
  html[data-shopper-theme="dark"] body .market-bottom-nav button { color:var(--mh-ink) !important; }
  html[data-shopper-theme="dark"] body .market-bottom-nav small { color:inherit !important; }
  html[data-shopper-theme="dark"] body :is(.dialog-navigation,.product-spec-table > div,.spec-list > div,.cart-shop-heading,.cart-shop-footer) { border-color:var(--mh-line) !important; }
  html[data-shopper-theme="dark"] body :is(button,a,input,select,textarea):focus-visible { outline:2px solid var(--mh-accent); outline-offset:3px; }
}
@media(max-width:680px) {
  html[data-shopper-theme] body dialog.conflua-branded-dialog .messages-center-shell { grid-template-rows:auto auto auto minmax(0,1fr); }
  html[data-shopper-theme] body .hello-header .hello-brand { display:none; }
  html[data-shopper-theme="dark"] body :is(
    .manager-card,.admin-panel,.admin-application-details,.admin-secondary-section,.admin-verification-checklist,.admin-help-card,.admin-overview-card,
    .hello-header,.hello-shell,.hello-copy-column,.hello-phone-screen,.hello-page,.hello-visual,.hello-feature-card,
    .messages-center-header,.messages-thread-panel,.messages-scope-tabs,.messages-conversation,.activity-history-empty,
    .product-availability-fieldset,.product-fulfillment-fieldset,.product-publication-fieldset,.product-publication-note,
    .dialog-navigation,.supplier-profile-sticky-actions,.admin-tabs,.desktop-main-navigation,.role-switcher,
    .operation-toast,.account-security-contact,.production-account,.retail-search-suggestions,.wb-avatar,.wb-shop-avatar
  ), html[data-shopper-theme="dark"] body #admin {
    background:var(--mh-surface) !important; color:var(--mh-ink) !important; border-color:var(--mh-line) !important;
  }
  html[data-shopper-theme="dark"] body :is(
    .production-cart-button,.desktop-logout-button,.production-security-button,.desktop-messages-button,.hello-enter-button,.hello-secondary,
    .messages-center-close,.messages-inline-action,.product-publication-button,.supplier-rail-button,.supplier-history-link,.review-star-button,
    .password-reset-email,.search-input-wrap,.search-suggestion-text,.city-field-hint,.branch-legal-check,
    .admin-tabs b,.admin-overview-icon,.buyer-purchase-icon,.buyer-purchase-status,.desktop-profile-icon,
    .hello-phone-flower,.marketplace-category-icon,.search-icon,.operation-toast-icon,.wb-product-seller-icon
  ) { background:var(--mh-soft) !important; color:var(--mh-ink) !important; border-color:var(--mh-line) !important; }
  html[data-shopper-theme="dark"] body #mobileDiscoveryGrid :is(.product-favorite,.product-share),
  html[data-shopper-theme="dark"] body #productDialog > .product-dialog-close { background:var(--mh-soft) !important; color:var(--mh-ink) !important; }
  html[data-shopper-theme="dark"] body :is(.account-security-danger,.production-error) { background:#472b2c !important; color:#ffc0b9 !important; }
  html[data-shopper-theme="dark"] body :is(.auth-forgot-button,.legal-inline-link,.guest-registration-prompt button) { color:var(--mh-accent) !important; }
  html[data-shopper-theme="dark"] body .product-publication-badge.is-published { background:#244c35 !important; color:#bdebb7 !important; }
  html[data-shopper-theme="dark"] body .conflua-product-image-placeholder { background:var(--mh-soft) !important; color:var(--mh-muted) !important; }
  html[data-shopper-theme="dark"] body .fm-search-row { background:var(--mh-surface) !important; }
}
@media(max-width:680px) {
  html[data-shopper-theme="dark"] body :is(.desktop-main-navigation button,.hello-business-grid button,.market-header-icons button,.hello-more span,.hello-phone-categories span,.hello-phone-head span,.conflua-product-image-placeholder svg) { background:var(--mh-soft) !important; color:var(--mh-ink) !important; }
  html[data-shopper-theme="dark"] body :is(.admin-application-facts p,.admin-order-grid p,.admin-check-groups section,.admin-settings-grid section) { background:var(--mh-soft) !important; color:var(--mh-ink) !important; border-color:var(--mh-line) !important; }
  html[data-shopper-theme="dark"] body .admin-verification-result { background:#463b24 !important; color:#f0d89c !important; }
}
@media(max-width:680px) {
  html[data-shopper-theme="dark"] body #admin .admin-verification-checklist > summary > b { background:#463b24 !important; color:#f0d89c !important; }
  html[data-shopper-theme="dark"] body .conflua-faq summary span { background:var(--mh-soft) !important; color:var(--mh-ink) !important; }
}
@media(max-width:680px) {
  html[data-shopper-theme="dark"] body .seo-product-photo img { background:var(--mh-soft) !important; }
}

/* v186: shared header retains the original theme and profile shortcuts. */
@media(max-width:680px) {
  html[data-shopper-theme] body .conflua-mobile-header { justify-content:space-between; gap:8px; }
  html[data-shopper-theme] body .conflua-mobile-actions { display:flex; align-items:center; flex:0 0 auto; gap:6px; margin-left:auto; }
  html[data-shopper-theme] body .conflua-mobile-actions > :is(button,a) {
    display:flex; align-items:center; justify-content:center; box-sizing:border-box;
    width:44px; height:44px; min-width:44px; padding:0; margin:0;
    border:1px solid var(--mh-line); border-radius:50%;
    background:var(--mh-surface); color:var(--mh-ink); font:24px/1 system-ui,sans-serif;
    text-decoration:none; cursor:pointer;
  }
  html[data-shopper-theme] body .conflua-mobile-actions svg { width:22px; height:22px; }
  html[data-shopper-theme] body dialog.conflua-branded-dialog .conflua-mobile-header { flex-wrap:wrap; }
}

/* v187: same palette and dark surface fixes on every viewport. */
html[data-shopper-theme], html[data-shopper-theme] body {
    --mh-bg:#f5f8f5; --mh-surface:#fff; --mh-ink:#17392d; --mh-muted:#63776e;
    --mh-line:#d9e5df; --mh-soft:#e7f2eb; --mh-accent:#1e7150;
    color-scheme:light;
  }
html[data-shopper-theme="dark"], html[data-shopper-theme="dark"] body:not([data-shopper-theme="light"]) {
    --mh-bg:#111a16; --mh-surface:#1d2b23; --mh-ink:#f1f7f2; --mh-muted:#b0c2b5;
    --mh-line:#37493e; --mh-soft:#293d30; --mh-accent:#a3eb8c;
    --ink:var(--mh-ink); --muted:var(--mh-muted); --line:var(--mh-line); --soft:var(--mh-soft);
    color-scheme:dark; background:var(--mh-bg) !important; color:var(--mh-ink) !important;
  }
html[data-shopper-theme="dark"] body :is(
    dialog,.dialog-card,.dialog-panel,.band,.panel,.order-panel,.product-card,.shop-card,.supplier-card,.registration-card,.buyer-cabinet-card,
    .shared-product-page-status,.shared-shop-page-status,.topbar,.side-rail,.search-panel,.retail-hero,
    .marketplace-category-card,.marketplace-subcategory-panel,.category-button,
    .product-purchase-card,.product-purchase-delivery,.product-detailed-description,.product-description-cards article,.dialog-section,.dialog-review,.empty-state,
    .dialog-buy-bar,.wb-product-seller-card,.wb-seller-card,.product-specification-card,
    .wb-shop-page,.wb-shop-topbar,.wb-shop-community-head,.wb-shop-summary-card,.wb-shop-products-section,.wb-shop-about-card,.wb-store-product-card,
    .wb-account-page,.wb-account-hero,.wb-account-section,.wb-account-menu,.wb-account-card,.wb-benefit-card,.wb-active-order-card,.buyer-order-card,.buyer-orders-shell,
    .buyer-workspace-shell,.buyer-workspace-toolbar,.buyer-profile-menu-shell,.buyer-profile-menu-toolbar,.buyer-profile-menu-content,.buyer-profile-inline-editor,
    .registration-menu-shell,.registration-menu-toolbar,.simple-registration-shell,.buyer-purchase-center,.buyer-purchase-card,
    .cart-shop-group,.cart-shop-heading,.cart-shop-footer,.cart-checkout-summary,.cart-item,
    .legal-dialog-card,.conflua-faq,.conflua-faq details,.privacy-center-section,.privacy-history-row,.privacy-request-row,.legal-empty,.conflua-cookie-notice,
    .staff-access-card,.staff-access-note,.network-section-hero,.network-access-note,.network-guide,.branch-access-form,.branch-team-card,
    .messages-center-shell,.messages-center-toolbar,.order-chat-thread,.order-action-panel,.b2b-chat-message,
    .seo-header,.seo-hero,.seo-shop-hero,.seo-description,.seo-shop-list,.seo-shop-list li,.seo-product-card,.seo-buy
  ) { background:var(--mh-surface) !important; color:var(--mh-ink) !important; border-color:var(--mh-line) !important; }
html[data-shopper-theme="dark"] body #productDialog,
  html[data-shopper-theme="dark"] body #productDialog > .dialog-card,
  html[data-shopper-theme="dark"] body #productDialog :is(.product-purchase-card,.product-purchase-delivery,.product-detailed-description,.product-description-cards article),
  html[data-shopper-theme="dark"] body #shopProfileDialog > .dialog-card,
  html[data-shopper-theme="dark"] body #cartMenuDialog #orderForm {
    background:var(--mh-surface) !important; color:var(--mh-ink) !important; border-color:var(--mh-line) !important;
  }
html[data-shopper-theme="dark"] body :is(h1,h2,h3,h4,h5,strong,label,dt,dd,summary,.nav-control,.wb-shop-name,.cart-product-title,.seo-price) { color:var(--mh-ink) !important; }
html[data-shopper-theme="dark"] body :is(p,li,.muted,small,.product-article,.product-card-desc,.delivery-line,.product-shop-line,.spec-list,.product-spec-table,.seo-lead,.status-text) { color:var(--mh-muted); }
html[data-shopper-theme="dark"] body :is(.product-dialog-description,.product-detailed-description p,.legal-document-content,.privacy-center-section p,.staff-access-note,.seo-description p,.seo-product-card p) { color:var(--mh-muted) !important; }
html[data-shopper-theme="dark"] body :is(.price,.price strong,.product-price,.shared-product-price,.eyebrow,.seo-eyebrow,.seo-link) { color:var(--mh-accent) !important; }
html[data-shopper-theme="dark"] body :is(input,select,textarea) { background:var(--mh-bg) !important; color:var(--mh-ink) !important; border-color:var(--mh-line) !important; }
html[data-shopper-theme="dark"] body :is(input,textarea)::placeholder { color:var(--mh-muted) !important; opacity:1; }
html[data-shopper-theme="dark"] body :is(
    .nav-control,.secondary-action,.mini-action,.secondary-link,.icon-button,.category-button,.marketplace-subcategory-chip,.search-suggestion-chip,.city-suggestion-chip,
    .wb-shop-search,.wb-shop-heart,.wb-shop-back,.wb-shop-top-icons button,.wb-shop-filter-row button,.wb-shop-info-strip span,
    .wb-shop-top-actions a,.wb-shop-top-actions button,.wb-store-fav,.product-share,.product-favorite,
    .wb-account-menu button,.wb-benefit-row button,.buyer-orders-summary > div,.buyer-mini-product,.buyer-purchase-summary > div,
    .cart-overview > div,.cart-quantity-control,.cart-quantity-control button,.registration-role-switch,.buyer-workspace-count,
    .buyer-workspace-close,.buyer-profile-menu-close,.registration-menu-close,.legal-dialog-close,
    .check-row,.legal-consent-block,.legal-document-meta span,.legal-operator-card div,.legal-support-card div,.privacy-marketing-state,.privacy-request-grid label,
    .profile-spec-grid div,.metric,.network-guide > summary,.network-guide-intro,.network-guide-steps li,.network-guide-hint,.branch-access-activation-details div,
    .product-delivery-terms,.product-review-snippet,.seo-chip,.seo-chip span,.seo-secondary,.seo-header nav a,.seo-section-title span,.seo-business-link-list-v173 a
  ) { background:var(--mh-soft) !important; color:var(--mh-ink) !important; border-color:var(--mh-line) !important; box-shadow:none; }
html[data-shopper-theme="dark"] body #productDialog :is(.product-dialog-rating-line button,.product-section-heading > button,.product-purchase-social button,.product-media-thumb-button,.product-media-viewport,.product-media-slide) {
    background:var(--mh-soft) !important; color:var(--mh-ink) !important; border-color:var(--mh-line) !important;
  }
html[data-shopper-theme="dark"] body :is(.product-media-slide img,.product-media-slide video,.product-media-viewport,.product-media-slide,.product-media-thumb-button,.product-image-button,.wb-store-product-image,.seo-main-image,.seo-main-image img,.seo-thumb,.seo-product-photo,.cart-product-image,.media-preview-item) { background-color:var(--mh-soft) !important; }
html[data-shopper-theme="dark"] body #productDialog :is(.product-media-arrow,.product-video-center-play) { background:#173f31 !important; color:#fff !important; border-color:#b0c2b5 !important; }
html[data-shopper-theme="dark"] body :is(.primary-action,.nav-home,.cart-now-action,.buy-now-action,.seo-primary),
  html[data-shopper-theme="dark"] body #productDialog :is(#dialogAddButton,#dialogBuyNowButton) { background:#247550 !important; color:#fff !important; border-color:#408966 !important; }
html[data-shopper-theme="dark"] body :is(.primary-action,.nav-home,.cart-now-action,.buy-now-action,.seo-primary) :is(strong,small,span) { color:inherit !important; }
html[data-shopper-theme="dark"] body :is(.product-availability-chip.is-available,.pill,.seo-buy > span) { background:#244c35 !important; color:#bdebb7 !important; }
html[data-shopper-theme="dark"] body :is(.product-availability-chip.is-order,.legal-operator-warning) { background:#463b24 !important; color:#f0d89c !important; }
html[data-shopper-theme="dark"] body :is(.danger-action,.product-availability-chip.is-unavailable) { background:#472b2c !important; color:#ffc0b9 !important; }
html[data-shopper-theme="dark"] body :is(.market-bottom-nav,.conflua-footer,.seo-footer) { background:var(--mh-bg) !important; color:var(--mh-ink) !important; border-color:var(--mh-line) !important; box-shadow:none !important; }
html[data-shopper-theme="dark"] body .market-bottom-nav button { color:var(--mh-ink) !important; }
html[data-shopper-theme="dark"] body .market-bottom-nav small { color:inherit !important; }
html[data-shopper-theme="dark"] body :is(.dialog-navigation,.product-spec-table > div,.spec-list > div,.cart-shop-heading,.cart-shop-footer) { border-color:var(--mh-line) !important; }
html[data-shopper-theme="dark"] body :is(button,a,input,select,textarea):focus-visible { outline:2px solid var(--mh-accent); outline-offset:3px; }
html[data-shopper-theme="dark"] body :is(
    .manager-card,.admin-panel,.admin-application-details,.admin-secondary-section,.admin-verification-checklist,.admin-help-card,.admin-overview-card,
    .hello-header,.hello-shell,.hello-copy-column,.hello-phone-screen,.hello-page,.hello-visual,.hello-feature-card,
    .messages-center-header,.messages-thread-panel,.messages-scope-tabs,.messages-conversation,.activity-history-empty,
    .product-availability-fieldset,.product-fulfillment-fieldset,.product-publication-fieldset,.product-publication-note,
    .dialog-navigation,.supplier-profile-sticky-actions,.admin-tabs,.desktop-main-navigation,.role-switcher,
    .operation-toast,.account-security-contact,.production-account,.retail-search-suggestions,.wb-avatar,.wb-shop-avatar
  ), html[data-shopper-theme="dark"] body #admin {
    background:var(--mh-surface) !important; color:var(--mh-ink) !important; border-color:var(--mh-line) !important;
  }
html[data-shopper-theme="dark"] body :is(
    .production-cart-button,.desktop-logout-button,.production-security-button,.desktop-messages-button,.hello-enter-button,.hello-secondary,
    .messages-center-close,.messages-inline-action,.product-publication-button,.supplier-rail-button,.supplier-history-link,.review-star-button,
    .password-reset-email,.search-input-wrap,.search-suggestion-text,.city-field-hint,.branch-legal-check,
    .admin-tabs b,.admin-overview-icon,.buyer-purchase-icon,.buyer-purchase-status,.desktop-profile-icon,
    .hello-phone-flower,.marketplace-category-icon,.search-icon,.operation-toast-icon,.wb-product-seller-icon
  ) { background:var(--mh-soft) !important; color:var(--mh-ink) !important; border-color:var(--mh-line) !important; }
html[data-shopper-theme="dark"] body #mobileDiscoveryGrid :is(.product-favorite,.product-share),
  html[data-shopper-theme="dark"] body #productDialog > .product-dialog-close { background:var(--mh-soft) !important; color:var(--mh-ink) !important; }
html[data-shopper-theme="dark"] body :is(.account-security-danger,.production-error) { background:#472b2c !important; color:#ffc0b9 !important; }
html[data-shopper-theme="dark"] body :is(.auth-forgot-button,.legal-inline-link,.guest-registration-prompt button) { color:var(--mh-accent) !important; }
html[data-shopper-theme="dark"] body .product-publication-badge.is-published { background:#244c35 !important; color:#bdebb7 !important; }
html[data-shopper-theme="dark"] body .conflua-product-image-placeholder { background:var(--mh-soft) !important; color:var(--mh-muted) !important; }
html[data-shopper-theme="dark"] body .fm-search-row { background:var(--mh-surface) !important; }
html[data-shopper-theme="dark"] body :is(.desktop-main-navigation button,.hello-business-grid button,.market-header-icons button,.hello-more span,.hello-phone-categories span,.hello-phone-head span,.conflua-product-image-placeholder svg) { background:var(--mh-soft) !important; color:var(--mh-ink) !important; }
html[data-shopper-theme="dark"] body :is(.admin-application-facts p,.admin-order-grid p,.admin-check-groups section,.admin-settings-grid section) { background:var(--mh-soft) !important; color:var(--mh-ink) !important; border-color:var(--mh-line) !important; }
html[data-shopper-theme="dark"] body .admin-verification-result { background:#463b24 !important; color:#f0d89c !important; }
html[data-shopper-theme="dark"] body #admin .admin-verification-checklist > summary > b { background:#463b24 !important; color:#f0d89c !important; }
html[data-shopper-theme="dark"] body .conflua-faq summary span { background:var(--mh-soft) !important; color:var(--mh-ink) !important; }
html[data-shopper-theme="dark"] body .seo-product-photo img { background:var(--mh-soft) !important; }
html[data-shopper-theme="dark"], html[data-shopper-theme="dark"] body {
 --paper:var(--mh-bg); --surface:var(--mh-surface); --ink:var(--mh-ink); --muted:var(--mh-muted); --line:var(--mh-line);
 --fm-bg:var(--mh-bg); --fm-card:var(--mh-surface); --fm-text:var(--mh-ink); --fm-muted:var(--mh-muted); --fm-line:var(--mh-line);
 --fm-deep:var(--mh-accent); --fm-main:var(--mh-accent); --fm-active:var(--mh-accent); --fm-mint:var(--mh-soft);
 --market-bg:var(--mh-bg); --market-soft:var(--mh-soft);
}
html[data-shopper-theme="dark"] body :is(.profile-form,.review-form,.manager-list,.manager-item,.network-card,.branch-card,.supplier-workspace,.shop-workspace,.admin-workspace,.supplier-tab,.shop-tab,.admin-content,.admin-settings-grid,.header-marketplace-search,.header-marketplace-search-suggestions,.hello-card,table,thead,tbody,tr,th,td) {
 background:var(--mh-surface) !important; color:var(--mh-ink) !important; border-color:var(--mh-line) !important;
}
html[data-shopper-theme="dark"] body :is(.staff-access-brand,.brand,.wb-shop-brand,.desktop-main-navigation button,.rail-button,.supplier-rail-button,.admin-tab-button,.role-button,.legal-support-card a,.profile-spec-grid dd) { color:var(--mh-ink) !important; }
html[data-shopper-theme="dark"] body :is(.rail-button,.supplier-rail-button,.admin-tab-button,.role-button) { background:var(--mh-soft) !important; border-color:var(--mh-line) !important; }
html[data-shopper-theme="dark"] body :is(.rail-button,.supplier-rail-button,.admin-tab-button,.role-button,.desktop-main-navigation button).is-active { background:#247550 !important; color:#fff !important; }
@media(min-width:681px) {
 html[data-shopper-theme] body > #confluaMobileHeader {
  display:flex !important; align-items:center; justify-content:space-between; gap:16px;
  box-sizing:border-box; width:100%; min-height:68px; padding:12px clamp(20px,4vw,64px);
  background:var(--mh-bg); color:var(--mh-ink); border-bottom:1px solid var(--mh-line);
 }
 html[data-shopper-theme] .conflua-mobile-brand { display:inline-flex; align-items:center; gap:9px; color:var(--mh-ink); text-decoration:none; font:700 19px/1.2 Inter,system-ui,sans-serif; }
 html[data-shopper-theme] .conflua-mobile-brand img { width:34px; height:34px; border-radius:10px; }
 html[data-shopper-theme] #confluaMobileHeader .conflua-mobile-actions { display:flex; gap:8px; }
 html[data-shopper-theme] #confluaMobileHeader .conflua-mobile-actions > :is(a,button) { display:flex; align-items:center; justify-content:center; width:44px; height:44px; padding:0; border:1px solid var(--mh-line); border-radius:50%; background:var(--mh-surface); color:var(--mh-ink); font:24px/1 system-ui; text-decoration:none; }
 html[data-shopper-theme] #confluaMobileHeader .conflua-mobile-actions svg { width:22px; height:22px; }
 html[data-shopper-theme] body:has(> .staff-access-shell) { display:block; padding:0; }
 html[data-shopper-theme] body > .staff-access-shell { margin:36px auto; padding:0 20px; box-sizing:border-box; }
}
/* One responsive banner, with explicit light/dark artwork made from CSS. */
.conflua-price-banner { --price-bg:#e8f4df; --price-ink:#173e2d; --price-muted:#45624b; --price-art:#c9e7b4; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:28px; position:relative; isolation:isolate; overflow:hidden; padding:32px 38px; margin:24px 0; border:1px solid #b9d5ad; border-radius:24px; background:var(--price-bg); color:var(--price-ink); }
html[data-shopper-theme="dark"] .conflua-price-banner { --price-bg:#203b2b; --price-ink:#f1f7f2; --price-muted:#bdd1bf; --price-art:#345b3c; border-color:#48674b; }
.conflua-price-banner::after { content:'↘'; position:absolute; z-index:-1; right:12%; top:-65px; font:700 270px/1 system-ui; color:var(--price-art); transform:rotate(-10deg); pointer-events:none; }
.conflua-price-banner .price-eyebrow { display:block; margin:0 0 8px; font:700 11px/1.4 system-ui; letter-spacing:.14em; text-transform:uppercase; color:var(--price-muted) !important; }
.conflua-price-banner h2 { margin:0; max-width:650px; font-size:clamp(25px,2.6vw,38px); line-height:1.12; letter-spacing:-.03em; color:var(--price-ink) !important; }
.conflua-price-banner p { margin:12px 0 0; max-width:620px; font-size:15px; line-height:1.5; color:var(--price-muted) !important; }
.conflua-price-banner button { flex-shrink:0; min-height:48px; padding:12px 22px; border:0; border-radius:14px; background:#a8eb79; color:#183321; font:700 14px/1.3 system-ui; cursor:pointer; }
.conflua-price-banner button:focus-visible { outline:3px solid var(--price-ink); outline-offset:4px; }
#priceReportDialog { width:min(520px,calc(100vw - 24px)); max-height:90dvh; padding:0; overflow:auto; }
#priceReportDialog .dialog-card { padding:24px; }
#priceReportDialog h2 { font-size:26px; margin:16px 0; }
#priceReportDialog p { line-height:1.6; }
#priceReportDialog .price-report-actions { display:flex; flex-wrap:wrap; gap:10px; }
@media(max-width:680px) {
 .conflua-price-banner { grid-template-columns:minmax(0,1fr); padding:24px 20px; gap:20px; margin:18px 0; border-radius:20px; }
 .conflua-price-banner h2 { font-size:27px; max-width:330px; }
 .conflua-price-banner p { font-size:14px; }
 .conflua-price-banner button { width:100%; }
 .conflua-price-banner::after { right:-25px; top:-20px; font-size:230px; opacity:.65; }
}
html[data-shopper-theme="dark"] body #citySelect { background:var(--mh-bg) !important; color:var(--mh-ink) !important; border-color:var(--mh-line) !important; }

/* v188: compact price notice, original desktop header, consistent theme icons. */
html[data-shopper-theme] body [data-mobile-theme] > svg { width:20px; height:20px; flex:0 0 20px; }
.conflua-desktop-theme { display:none !important; }
.conflua-hello-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; justify-self:end; }
@media(min-width:681px) {
 html[data-shopper-theme] body > #confluaMobileHeader { display:none !important; }
 html[data-shopper-theme] body .conflua-desktop-theme {
  display:inline-flex !important; align-items:center; justify-content:center; flex:0 0 38px;
  width:38px; min-width:38px; height:38px; min-height:38px; margin:0; padding:0;
  border:1px solid var(--mh-line); border-radius:12px;
  background:var(--mh-soft); color:var(--mh-ink); cursor:pointer;
 }
 html[data-shopper-theme] body .conflua-desktop-theme:focus-visible { outline:2px solid var(--mh-accent); outline-offset:3px; }
 html[data-shopper-theme] body > .staff-access-shell > .conflua-desktop-theme { float:right; }
 html[data-shopper-theme] body:has(> .staff-access-shell) { display:grid; padding:24px; }
 html[data-shopper-theme] body > .staff-access-shell { margin:0; padding:0; }
 #retail > .conflua-price-banner { width:min(1180px,calc(100% - 32px)); margin:16px auto; box-sizing:border-box; }
}
html[data-shopper-theme] body .conflua-price-banner {
 --price-bg:#f0f5ef; --price-ink:#254635; --price-muted:#5e7164;
 padding:16px 20px; gap:20px; border-radius:14px; border-color:var(--mh-line); box-shadow:none;
}
html[data-shopper-theme="dark"] body .conflua-price-banner { --price-bg:#1b2a21; --price-ink:#e2eee4; --price-muted:#acbfb0; }
html[data-shopper-theme] body .conflua-price-banner::after { content:none; }
html[data-shopper-theme] body .conflua-price-banner h2 { font-size:18px; line-height:1.35; letter-spacing:-.02em; max-width:none; }
html[data-shopper-theme] body .conflua-price-banner p { font-size:13px; line-height:1.45; margin:5px 0 0; max-width:760px; }
html[data-shopper-theme] body .conflua-price-banner button { background:transparent; color:var(--price-ink); border:1px solid var(--mh-line); border-radius:10px; min-height:40px; padding:8px 14px; font-size:13px; }
@media(max-width:680px) {
 html[data-shopper-theme] body .conflua-price-banner { grid-template-columns:minmax(0,1fr); padding:14px 16px; gap:6px; margin:12px 0; }
 html[data-shopper-theme] body .conflua-price-banner h2 { font-size:16px; }
 html[data-shopper-theme] body .conflua-price-banner p { font-size:12px; margin-top:4px; }
 html[data-shopper-theme] body .conflua-price-banner button { width:auto; justify-self:start; padding:5px 0; min-height:44px; border:0; border-radius:0; text-decoration:underline; text-underline-offset:3px; }
}
/* The phone is a product illustration, always in its original light palette. */
html[data-shopper-theme] body .hello-phone .hello-phone-screen { color-scheme:light; background:linear-gradient(160deg,#fff,#f3fbf6) !important; color:#254a3b !important; }
html[data-shopper-theme] body .hello-phone :is(h3,strong,.hello-phone-head,.hello-phone-status) { color:#173e30 !important; }
html[data-shopper-theme] body .hello-phone :is(p,small) { color:#65776f !important; }
html[data-shopper-theme] body .hello-phone .hello-phone-head > span { background:#e5f6ec !important; color:#254a3b !important; }
html[data-shopper-theme] body .hello-phone .hello-phone-flower { background:#f0faf4 !important; color:#6bcf31 !important; }
html[data-shopper-theme] body .hello-phone .hello-phone-categories span { background:#fff !important; color:#254a3b !important; border-color:#ddebe3 !important; }
html[data-shopper-theme] body .hello-phone .hello-phone-content > button { background:#1f5c45 !important; color:#fff !important; }
html[data-shopper-theme] body .hello-phone .hello-phone-head > span b { background:#e5424a !important; color:#fff !important; }

/* v189: category cards share the subcategory palette; no decorative corners. */
html[data-shopper-theme] body[data-shopper-theme] button:is(.marketplace-category-card,.marketplace-subcategory-chip) {
 background:var(--mh-soft) !important; color:var(--mh-ink) !important;
 border:1px solid var(--mh-line) !important; box-shadow:none !important; outline:none;
}
html[data-shopper-theme] body .marketplace-category-card::after { content:none !important; display:none !important; }
html[data-shopper-theme] body[data-shopper-theme] button:is(.marketplace-category-card,.marketplace-subcategory-chip) :is(span,strong) { color:var(--mh-ink) !important; }
html[data-shopper-theme] body[data-shopper-theme] button:is(.marketplace-category-card,.marketplace-subcategory-chip) small { color:var(--mh-muted) !important; }
html[data-shopper-theme] body .marketplace-category-card .marketplace-category-icon { background:var(--mh-surface) !important; color:var(--mh-accent) !important; }
html[data-shopper-theme] body[data-shopper-theme] button:is(.marketplace-category-card,.marketplace-subcategory-chip).is-active {
 background:#247550 !important; border-color:#408966 !important; color:#fff !important;
 outline:0 !important; box-shadow:none !important;
}
html[data-shopper-theme] body[data-shopper-theme] button:is(.marketplace-category-card,.marketplace-subcategory-chip).is-active :is(span,strong,small) { color:#fff !important; }
html[data-shopper-theme] body .marketplace-category-card.is-active .marketplace-category-icon { background:#1d5940 !important; }
html[data-shopper-theme] body[data-shopper-theme] button:is(.marketplace-category-card,.marketplace-subcategory-chip):hover { border-color:var(--mh-accent) !important; }
html[data-shopper-theme] body[data-shopper-theme] button:is(.marketplace-category-card,.marketplace-subcategory-chip):focus-visible { outline:2px solid var(--mh-accent) !important; outline-offset:3px; }
/* Chat: dark surfaces with explicit readable text, including selected items. */
html[data-shopper-theme="dark"] body :is(.messages-scope-tabs button,.messages-thread-item,.messages-conversation-header,.messages-compose,.messages-first-note) {
 background:#1d2b23 !important; color:#f1f7f2 !important; border-color:#41594a !important; box-shadow:none !important;
}
html[data-shopper-theme="dark"] body :is(.messages-scope-tabs button,.messages-thread-item):is(.is-active,:hover) {
 background:#294936 !important; color:#f1f7f2 !important; border-color:#6ea17c !important;
}
html[data-shopper-theme="dark"] body :is(.messages-scope-tabs button,.messages-thread-item,.messages-conversation-header,.messages-first-note) :is(strong,span) { color:#f1f7f2 !important; }
html[data-shopper-theme="dark"] body :is(.messages-scope-tabs button,.messages-thread-item,.messages-conversation-header,.messages-first-note) :is(small,time,p) { color:#c3d3c7 !important; }
html[data-shopper-theme="dark"] body .messages-bubble { background:#293d30 !important; border-color:#41594a !important; color:#f1f7f2 !important; }
html[data-shopper-theme="dark"] body .messages-bubble.is-own { background:#24583d !important; border-color:#427657 !important; }
html[data-shopper-theme="dark"] body .messages-bubble p { color:#f1f7f2 !important; }
html[data-shopper-theme="dark"] body .messages-bubble time { color:#c3d3c7 !important; }
html[data-shopper-theme="dark"] body :is(.messages-thread-avatar,.messages-empty-icon,.messages-online-pill,.messages-mobile-back) { background:#304c39 !important; color:#d1edc7 !important; border-color:#41594a !important; }
html[data-shopper-theme="dark"] body .messages-thread-meta b { background:#a3eb8c !important; color:#183321 !important; }
html[data-shopper-theme="dark"] body .messages-compose textarea { background:#111a16 !important; color:#f1f7f2 !important; border-color:#41594a !important; }
html[data-shopper-theme="dark"] body .messages-compose textarea::placeholder { color:#c3d3c7 !important; }
html[data-shopper-theme="dark"] body .messages-send-button { background:#247550 !important; color:#fff !important; }
/* v190: search options and address suggestions use the selected theme. */
.conflua-address-suggestions { display:grid; gap:6px; width:100%; min-width:0; margin:6px 0; padding:6px; box-sizing:border-box; background:var(--mh-surface,#fff); border:1px solid var(--mh-line,#d9e5df); border-radius:12px; color:var(--mh-ink,#17392d); }
.conflua-address-suggestions[hidden] { display:none !important; }
.conflua-address-suggestions [role="listbox"] { max-height:260px; overflow-y:auto; }
.conflua-address-suggestions button { display:grid; gap:3px; width:100%; min-height:44px; padding:10px; margin:0; border:0; border-radius:8px; text-align:left; white-space:normal; overflow-wrap:anywhere; background:var(--mh-surface,#fff); color:var(--mh-ink,#17392d); font:inherit; }
.conflua-address-suggestions small { font-size:12px; line-height:1.4; color:var(--mh-muted,#63776e); }
.conflua-address-suggestions button:is(:hover,[aria-selected="true"]) { background:var(--mh-soft,#e7f2eb); }
html[data-shopper-theme="dark"] body :is(#retailSearchSuggestions,#headerMarketplaceSearchSuggestions,.conflua-address-suggestions) { background:#1d2b23 !important; border-color:#41594a !important; color:#f1f7f2 !important; }
html[data-shopper-theme="dark"] body :is(#retailSearchSuggestions,#headerMarketplaceSearchSuggestions,.conflua-address-suggestions) button { background:#293d30 !important; color:#f1f7f2 !important; border-color:#41594a !important; box-shadow:none !important; }
html[data-shopper-theme="dark"] body :is(#retailSearchSuggestions,#headerMarketplaceSearchSuggestions,.conflua-address-suggestions) :is(strong,span,b) { color:#f1f7f2 !important; }
html[data-shopper-theme="dark"] body :is(#retailSearchSuggestions,#headerMarketplaceSearchSuggestions,.conflua-address-suggestions) :is(small,p) { color:#c3d3c7 !important; }
html[data-shopper-theme="dark"] body :is(#retailSearchSuggestions,#headerMarketplaceSearchSuggestions,.conflua-address-suggestions) button:is(:hover,:focus-visible,[aria-selected="true"],.is-active) { background:#294936 !important; outline-color:#a3eb8c; }
html[data-shopper-theme="dark"] body :is(#searchInput,#headerMarketplaceSearchInput) { color:#f1f7f2 !important; -webkit-text-fill-color:#f1f7f2; caret-color:#f1f7f2; }
