/* ========================================================================== 
   Need Kala Color Mode System
   Consolidated dark-mode architecture. One authoritative layer, loaded last.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Theme toggle — mode independent
   -------------------------------------------------------------------------- */
body.papillon-theme .theme-toggle{appearance:none;display:inline-grid;place-items:center;overflow:hidden;}
body.papillon-theme .theme-toggle .theme-icon{grid-area:1/1;display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:opacity var(--pap-motion-fast) var(--pap-ease),transform var(--pap-motion-fast) var(--pap-ease);}
body.papillon-theme .theme-toggle .theme-icon-sun{opacity:0;transform:rotate(-28deg) scale(.75);}
body.papillon-theme .theme-toggle .theme-icon-moon{opacity:1;transform:none;}
body.papillon-theme .theme-toggle-desktop{width:42px;min-width:42px;height:42px;padding:8px;background:transparent;}
body.papillon-theme .mobile-navigation-tools{display:flex;align-items:center;gap:7px;}
body.papillon-theme .mobile-theme-toggle{width:40px;height:40px;padding:0;border:1px solid var(--pap-line);border-radius:10px;background:var(--pap-panel);color:var(--pap-purple);}
html[data-theme="dark"] body.papillon-theme .theme-toggle .theme-icon-sun{opacity:1;transform:none;}
html[data-theme="dark"] body.papillon-theme .theme-toggle .theme-icon-moon{opacity:0;transform:rotate(28deg) scale(.75);}
@media(max-width:1024px){body.papillon-theme .theme-toggle-desktop{display:none!important;}}

/* --------------------------------------------------------------------------
   2. Semantic dark palette
   WCAG-aware hierarchy: canvas -> surface -> raised surface -> interactive.
   -------------------------------------------------------------------------- */
html[data-theme="dark"]{
  color-scheme:dark;
  --pap-ink:#f4f7f7;
  --pap-ink-2:#c7d3d4;
  --pap-purple:#69c8c0;
  --pap-purple-strong:#0f6367;
  --pap-purple-soft:#132a30;
  --pap-pink:#d3af70;
  --pap-gold:#d3af70;
  --pap-gold-text:#d3af70;
  --pap-gradient-primary:linear-gradient(135deg,#0f6367 0%,#137479 100%);
  --pap-bg:#071114;
  --pap-surface:#0c191e;
  --pap-panel:#0c191e;
  --pap-panel-soft:#10242b;
  --pap-field:#09171b;
  --pap-control-surface:#09171b;
  --pap-line:#23414a;
  --pap-line-strong:#345963;
  /* متن‌های کم‌رنگ روی پس‌زمینهٔ تیره: مقدارهای روشن `#6f8589` زیر ۴٫۵:۱ می‌دادند
     (روی #0c191e حدود ۴٫۴:۱ و روی کارت‌های روشن‌تر کمتر)؛ این دو حالا ۷ تا ۸:۱ می‌دهند. */
  --pap-muted:#9db3b7;
  --pap-muted-2:#8ea2a6;
  --pap-success:#76cfa8;
  --pap-danger:#ff91a3;
  --pap-shadow-sm:0 6px 18px rgba(0,0,0,.26);
  --pap-shadow-md:0 20px 52px rgba(0,0,0,.34);

  --dk-canvas:#071114;
  --dk-canvas-2:#09161a;
  --dk-surface-1:#0c191e;
  --dk-surface-2:#10242b;
  --dk-surface-3:#152c34;
  --dk-surface-4:#1a343d;
  --dk-field:#09171b;
  --dk-hover:#17323a;
  --dk-border:#23414a;
  --dk-border-soft:#1b353d;
  --dk-border-strong:#345963;
  --dk-text:#f4f7f7;
  --dk-text-2:#c7d3d4;
  --dk-muted:#9db3b7;
  --dk-muted-2:#8ea2a6;
  --dk-accent:#69c8c0;
  --dk-accent-fill:#0f6367;
  --dk-accent-hover:#137479;
  --dk-gold:#d3af70;
  --dk-danger-bg:#2c171e;
  --dk-danger-border:#63333f;
  --dk-danger-text:#ff9cad;
  --dk-success-bg:#102820;
  --dk-success-border:#285447;
  --dk-success-text:#99ddbd;
  --dk-warning-bg:#2a2419;
  --dk-warning-border:#5c4b2d;
  --dk-warning-text:#e8cb92;
  --dk-media:#111f25;
  --dk-media-border:#1d363e;
  --dk-shadow:0 20px 52px rgba(0,0,0,.34);
  --dk-shadow-soft:0 10px 30px rgba(0,0,0,.22);
}

html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] body.papillon-theme{background:var(--dk-canvas)!important;color:var(--dk-text);}
html[data-theme="dark"] body.papillon-theme :where(main,.site-main,.site-content,.content-area){background-color:transparent;}
html[data-theme="dark"] body.papillon-theme :where(button,a,input,textarea,select):focus-visible{outline-color:var(--dk-accent);}
html[data-theme="dark"] body.papillon-theme :where(hr){border-color:var(--dk-border);}
html[data-theme="dark"] body.papillon-theme ::selection{background:#145f64;color:#fff;}
html[data-theme="dark"] body.papillon-theme :where(input,textarea,select){caret-color:var(--dk-accent);}
html[data-theme="dark"] body.papillon-theme :where(input,textarea)::placeholder{color:var(--dk-muted-2)!important;opacity:1;}
html[data-theme="dark"]{scrollbar-color:#36555e var(--dk-canvas-2);}

/* --------------------------------------------------------------------------
   3. Global typography, surfaces, form controls and notices
   -------------------------------------------------------------------------- */
html[data-theme="dark"] body.papillon-theme :where(h1,h2,h3,h4,h5,h6){color:var(--dk-text);}
html[data-theme="dark"] body.papillon-theme :where(p,li,dd,td){border-color:var(--dk-border);}
html[data-theme="dark"] body.papillon-theme :where(.surface-card,.fallback-form,.account-empty-state,.search-page-empty){border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;box-shadow:var(--pap-shadow-sm)!important;}
html[data-theme="dark"] body.papillon-theme .pill-list>:where(a,button){border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-theme :where(.btn.outline,.btn.light){border-color:var(--dk-border-strong)!important;background:var(--dk-surface-2)!important;color:var(--dk-text)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-theme :where(.btn.outline,.btn.light):hover{border-color:#3d7078!important;background:var(--dk-hover)!important;color:#fff!important;}
html[data-theme="dark"] body.papillon-theme :where(.btn.primary,.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt,.wc-block-components-button,.all-categories,.single_add_to_cart_button,#place_order){border-color:transparent!important;background:var(--dk-accent-fill)!important;color:#fff!important;box-shadow:0 8px 20px rgba(0,0,0,.22)!important;}
/* دکمه‌های سادهٔ ووکامرس (مثل «ذخیره تغییرات» در فرم‌های حساب) در دارک‌مود
   پس‌زمینهٔ روشن `--pap-purple` می‌گرفتند و متن سفید روی آن ۲:۱ می‌شد. */
html[data-theme="dark"] body.papillon-theme :where(.woocommerce button.button:not(.alt),.woocommerce a.button:not(.alt),.woocommerce input.button:not(.alt),.woocommerce-Button,button.woocommerce-Button,input.woocommerce-Button){border-color:transparent!important;background:var(--dk-accent-fill)!important;color:#fff!important;box-shadow:0 8px 20px rgba(0,0,0,.22)!important;}
@media(hover:hover){html[data-theme="dark"] body.papillon-theme :where(.woocommerce button.button:not(.alt),.woocommerce a.button:not(.alt),.woocommerce input.button:not(.alt),.woocommerce-Button):hover{background:var(--dk-accent-hover)!important;color:#fff!important;}}
@media(hover:hover){html[data-theme="dark"] body.papillon-theme :where(.btn.primary,.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt,.wc-block-components-button,.all-categories,.single_add_to_cart_button,#place_order):hover{background:var(--dk-accent-hover)!important;color:#fff!important;}}

html[data-theme="dark"] body.papillon-theme :where(select,.woocommerce select,.select2-container .select2-selection--single){border-color:var(--dk-border)!important;background:var(--dk-field)!important;color:var(--dk-text)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-theme :where(select,.woocommerce select):focus{border-color:#3d7278!important;background:var(--dk-field)!important;color:var(--dk-text)!important;box-shadow:0 0 0 4px rgba(102,201,194,.1)!important;}
html[data-theme="dark"] body.papillon-theme :where(select,.woocommerce select):disabled{background:#102027!important;color:var(--dk-muted-2)!important;}
html[data-theme="dark"] body.papillon-theme :where(.woocommerce form,.fallback-form,.wc-block-components-form) input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
html[data-theme="dark"] body.papillon-theme :where(.woocommerce form,.fallback-form,.wc-block-components-form) textarea,
html[data-theme="dark"] body.papillon-theme :where(.woocommerce form,.fallback-form,.wc-block-components-form) select{border-color:var(--dk-border)!important;background:var(--dk-field)!important;color:var(--dk-text)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-theme :where(.woocommerce form,.fallback-form,.wc-block-components-form) input:focus,
html[data-theme="dark"] body.papillon-theme :where(.woocommerce form,.fallback-form,.wc-block-components-form) textarea:focus,
html[data-theme="dark"] body.papillon-theme :where(.woocommerce form,.fallback-form,.wc-block-components-form) select:focus{border-color:#3e757a!important;box-shadow:0 0 0 4px rgba(102,201,194,.1)!important;}
html[data-theme="dark"] .select2-container--default .select2-selection--single,
html[data-theme="dark"] .select2-dropdown,
html[data-theme="dark"] .select2-search--dropdown .select2-search__field{border-color:var(--dk-border)!important;background:var(--dk-field)!important;color:var(--dk-text)!important;}
html[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered{color:var(--dk-text)!important;}
html[data-theme="dark"] .select2-container--default .select2-results__option{background:var(--dk-surface-1);color:var(--dk-text-2);}
html[data-theme="dark"] .select2-container--default .select2-results__option[aria-selected="true"]{background:var(--dk-surface-3)!important;color:var(--dk-text)!important;}
html[data-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected]{background:var(--dk-accent-fill)!important;color:#fff!important;}

html[data-theme="dark"] body.papillon-theme :where(.woocommerce-message,.woocommerce-info,ul.woocommerce-error,.contact-notice,.newsletter-notice){border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-text)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-theme :where(.woocommerce-message,.contact-notice.is-success,.newsletter-notice.is-success){border-color:var(--dk-success-border)!important;background:var(--dk-success-bg)!important;color:var(--dk-success-text)!important;}
html[data-theme="dark"] body.papillon-theme :where(ul.woocommerce-error,.contact-notice.is-error,.newsletter-notice.is-error){border-color:var(--dk-danger-border)!important;background:var(--dk-danger-bg)!important;color:var(--dk-danger-text)!important;}
html[data-theme="dark"] body.papillon-theme .woocommerce-message::before{background:var(--dk-success-bg)!important;color:var(--dk-success-text)!important;}
html[data-theme="dark"] body.papillon-theme .woocommerce-info::before{background:var(--dk-surface-3)!important;color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-theme ul.woocommerce-error::before{background:var(--dk-danger-bg)!important;color:var(--dk-danger-text)!important;}
html[data-theme="dark"] body.papillon-theme .woocommerce table.shop_table{border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-theme .woocommerce table.shop_table :is(th,td){border-color:var(--dk-border)!important;color:var(--dk-text-2)!important;}

/* --------------------------------------------------------------------------
   4. Header, navigation and search
   -------------------------------------------------------------------------- */
html[data-theme="dark"] body.papillon-theme .topbar{background:#082730!important;color:#eaf4f4!important;}
html[data-theme="dark"] body.papillon-theme .site-header{border-bottom-color:#1d353d!important;background:#08161b!important;box-shadow:0 7px 24px rgba(0,0,0,.28)!important;}
html[data-theme="dark"] body.papillon-theme .brand-logo-image{filter:brightness(0) invert(1);opacity:.96;}
html[data-theme="dark"] body.papillon-theme .brand .custom-logo{filter:none;}
html[data-theme="dark"] body.papillon-theme .header-main>.site-search{border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-theme .site-search:focus-within{border-color:#3d7278!important;background:#11272d!important;box-shadow:0 0 0 4px rgba(102,201,194,.1)!important;}
html[data-theme="dark"] body.papillon-theme .site-search-kbd{border-color:var(--dk-border)!important;background:var(--dk-surface-3)!important;color:#a9c8ca!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-theme :where(.header-action,.mobile-menu,.mobile-theme-toggle,.mobile-menu-close){border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-text-2)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-theme :where(.header-action svg,.site-search svg,.mobile-theme-toggle){color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-theme .header-action:hover{border-color:var(--dk-border-strong)!important;background:var(--dk-hover)!important;color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-theme .header-cart-count{border-color:#08161b!important;background:#50676c!important;color:#fff!important;}
html[data-theme="dark"] body.papillon-theme .category-nav{border-top-color:#193039!important;background:#08161b!important;}
html[data-theme="dark"] body.papillon-theme .category-nav a{color:var(--dk-text-2);}
html[data-theme="dark"] body.papillon-theme .category-mega-menu{border-color:var(--dk-border)!important;background:rgba(11,25,30,.985)!important;box-shadow:0 28px 70px rgba(0,0,0,.5)!important;}
html[data-theme="dark"] body.papillon-theme .category-mega-item{border-color:var(--dk-border)!important;background:linear-gradient(145deg,var(--dk-surface-2),var(--dk-surface-1))!important;color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-theme .category-mega-item:hover{border-color:#3b737a!important;background:var(--dk-hover)!important;box-shadow:0 9px 22px rgba(0,0,0,.24)!important;}
html[data-theme="dark"] body.papillon-theme .mobile-navigation{background:#08161b!important;color:var(--dk-text)!important;box-shadow:-20px 0 52px rgba(0,0,0,.52)!important;}
html[data-theme="dark"] body.papillon-theme .mobile-navigation-head{background:#08161b!important;border-bottom-color:var(--dk-border)!important;}
html[data-theme="dark"] body.papillon-theme .mobile-navigation>a{border-bottom-color:var(--dk-border)!important;color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-theme .mobile-navigation-backdrop{background:rgba(0,7,10,.76)!important;}

html[data-theme="dark"] body.papillon-theme :where(.papillon-search-dialog,.papillon-search-dialog-head,.papillon-search-result-section,.papillon-search-dialog-foot){border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-theme :where(.papillon-search-close,.papillon-search-command,.papillon-search-meta,.papillon-search-result,.papillon-search-view-all,.papillon-search-empty,.papillon-search-dialog-foot button){border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-theme .papillon-search-result:hover{background:var(--dk-hover)!important;}
html[data-theme="dark"] body.papillon-theme :where(.papillon-search-command,.papillon-search-keys) kbd{border-color:var(--dk-border-strong)!important;background:var(--dk-surface-3)!important;color:#bbcbcd!important;}
html[data-theme="dark"] body.papillon-theme .papillon-search-overlay{background:rgba(0,7,10,.76)!important;}

/* --------------------------------------------------------------------------
   5. Homepage — every UI surface mapped to dark hierarchy
   -------------------------------------------------------------------------- */
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine{--home-panel:var(--dk-surface-1);--home-soft:var(--dk-canvas-2);--home-line:var(--dk-border);--home-shadow:0 18px 48px rgba(0,0,0,.28);background:radial-gradient(circle at 92% 9%,rgba(102,201,194,.055),transparent 24%),linear-gradient(180deg,var(--dk-canvas) 0%,var(--dk-canvas-2) 72%,var(--dk-canvas) 100%)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine :where(.section-head h2,.home-order-guide h2,.home-category-spotlight h2,.reviews-intro h2,.home-newsletter h2){color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine :where(.section-copy,.home-service-card small,.shortcut-grid small,.home-order-steps small,.review-card p,.newsletter-form small,.spotlight-list small){color:var(--dk-muted)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine :where(.section-head .eyebrow,.home-newsletter .eyebrow,.deal-kicker){color:var(--dk-gold)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .text-link{color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .text-link:hover{background:var(--dk-hover)!important;color:#8eddd7!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .home-products::before{background:linear-gradient(180deg,rgba(18,39,46,.62),rgba(6,16,20,0))!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine :where(.home-trend-tags a,.home-services,.home-service-card,.shortcut-grid a,.rail-actions button,.home-catalog-empty,.market-tabs,.market-tabs button.is-active,.spotlight-list,.home-order-guide,.home-order-steps li,.papillon-brand-item,.home-editorial-empty,.review-card,.review-muted,.conversion-gateway-card){border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;box-shadow:0 12px 30px rgba(0,0,0,.17)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .home-service-card{background:linear-gradient(145deg,var(--dk-surface-2),var(--dk-surface-1))!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .service-icon{background:linear-gradient(145deg,#15333a,#10262d)!important;color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .shortcut-grid a>span{background:var(--dk-media)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine :where(.editorial-carousel-controls,.category-carousel-controls,.reviews-carousel-controls)>button{border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-accent)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .home-deals{background:radial-gradient(circle at 12% 20%,rgba(102,201,194,.08),transparent 28%),linear-gradient(110deg,#08161b 0%,#10242a 100%)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .home-deals::before,
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .home-deals::after{background:rgba(73,145,151,.07)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine :where(.deal-all,.deal-live-badge){border-color:var(--dk-border)!important;background:var(--dk-surface-3)!important;color:#83d4cf!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .promo-soft{background:var(--dk-surface-2)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .promo-soft::after{background:linear-gradient(270deg,rgba(15,32,38,.98),rgba(15,32,38,.25))!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .promo-soft>span{color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .promo-soft :where(small,em){color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .promo-soft img{mix-blend-mode:normal!important;opacity:.86;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .market-tabs{background:var(--dk-surface-2)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .market-tabs button{color:var(--dk-muted)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .market-tabs button.is-active{background:var(--dk-surface-4)!important;color:#8bdad4!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .home-category-spotlight{border-color:var(--dk-border)!important;background:linear-gradient(135deg,var(--dk-surface-2),var(--dk-surface-1))!important;box-shadow:var(--pap-shadow-md)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .spotlight-list{background:var(--dk-surface-1)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .spotlight-list a{border-bottom-color:var(--dk-border)!important;color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .spotlight-list em{background:var(--dk-surface-3)!important;color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .spotlight-list a:hover em{background:var(--dk-accent-fill)!important;color:#fff!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .conversion-gateway-card.is-primary{border-color:rgba(255,255,255,.09)!important;background:linear-gradient(160deg,#073f4f,#0b5965 72%,#0e6266)!important;color:#fff!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .conversion-gateway-card.is-soft{background:linear-gradient(180deg,#282017,#181915)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .gateway-eyebrow{background:#112d33!important;color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .gateway-meta{background:var(--dk-surface-3)!important;color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .conversion-gateway-card.is-primary :where(.gateway-meta,.gateway-eyebrow){background:rgba(255,255,255,.11)!important;color:#f2dfbb!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .conversion-gateway-card em{color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .conversion-gateway-card.is-primary em{color:#f2dfbb!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .papillon-brand-item{background:var(--dk-surface-2)!important;color:#91bdc0!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .review-muted{background:#181c1b!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .review-card strong{color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .home-trend-tags a:hover{border-color:#3c7d82!important;background:var(--dk-hover)!important;color:#8bdad4!important;}

/* Homepage newsletter: standalone dark composition. */
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .home-newsletter{border-color:#294850!important;background:radial-gradient(circle at 8% 18%,rgba(102,201,194,.12),transparent 27%),radial-gradient(circle at 92% 88%,rgba(216,183,122,.07),transparent 24%),linear-gradient(135deg,#0a181d 0%,#10262c 52%,#0b191e 100%)!important;color:var(--dk-text)!important;box-shadow:0 22px 56px rgba(0,0,0,.3)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .home-newsletter>div{color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .home-newsletter h2{color:var(--dk-text)!important;text-shadow:none!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .home-newsletter h2 b{color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .newsletter-form{border-color:#2b4b54!important;background:#08161b!important;box-shadow:0 12px 30px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.025)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .newsletter-form:focus-within{border-color:#3e777d!important;box-shadow:0 0 0 4px rgba(102,201,194,.1),0 12px 30px rgba(0,0,0,.25)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .newsletter-form input[type="email"]{border:0!important;background:transparent!important;color:var(--dk-text)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .newsletter-form button{border:1px solid rgba(255,255,255,.05)!important;background:linear-gradient(135deg,#0e6266,#11747a)!important;color:#fff!important;box-shadow:0 9px 20px rgba(0,0,0,.22)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .newsletter-honeypot,
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .newsletter-honeypot input{position:absolute!important;inline-size:1px!important;block-size:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;opacity:0!important;pointer-events:none!important;}

/* --------------------------------------------------------------------------
   6. Catalog + reusable product cards
   -------------------------------------------------------------------------- */
html[data-theme="dark"] body.papillon-market-screen :where(.shop-page,.pap-shop-page,.page-shop-content,.shop-results){background:transparent!important;color:var(--dk-text);}
html[data-theme="dark"] body.papillon-market-screen .market-product-card{border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;box-shadow:0 10px 28px rgba(0,0,0,.18)!important;}
html[data-theme="dark"] body.papillon-market-screen .market-product-image{background:var(--dk-media)!important;}
html[data-theme="dark"] body.papillon-market-screen .market-product-copy :where(h2,h3){color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-market-screen :where(.market-product-brand,.market-product-category,.shop-result-note){color:var(--dk-muted)!important;}
html[data-theme="dark"] body.papillon-market-screen :where(.category-pills a,.shop-toolbar select,.mobile-filter-toggle,.shop-filter,.catalog-filter-actions a,.woocommerce-pagination a,.woocommerce-pagination span,.home-catalog-empty){border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-market-screen :where(.category-pills a:hover,.category-pills a.is-active,.shop-filter a:hover,.shop-filter a.is-active,.woocommerce-pagination .current){border-color:#3c777e!important;background:var(--dk-hover)!important;color:#8bdad4!important;}
html[data-theme="dark"] body.papillon-market-screen .shop-filter a{color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-market-screen .market-buy-button{border-color:var(--dk-border-strong)!important;background:var(--dk-surface-2)!important;color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-market-screen .market-buy-button:hover{border-color:var(--dk-accent-hover)!important;background:var(--dk-accent-fill)!important;color:#fff!important;}
html[data-theme="dark"] body.papillon-market-screen .market-buy-arrow{background:var(--dk-surface-4)!important;color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-market-screen .price-stack strong{color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-market-screen .price-stack del{color:var(--dk-muted-2)!important;}

/* --------------------------------------------------------------------------
   7. Single product
   -------------------------------------------------------------------------- */
html[data-theme="dark"] body.papillon-product-screen :where(.pap-product-page,.pap-product-content,.pap-single-product-main,.pap-product-after-summary){background:transparent;color:var(--dk-text);}
html[data-theme="dark"] body.papillon-product-screen .pap-product-gallery-column{border-color:var(--dk-border)!important;background:linear-gradient(145deg,var(--dk-surface-2),var(--dk-surface-1))!important;box-shadow:0 18px 46px rgba(0,0,0,.26)!important;}
html[data-theme="dark"] body.papillon-product-screen div.product .woocommerce-product-gallery .flex-viewport,
html[data-theme="dark"] body.papillon-product-screen div.product .woocommerce-product-gallery__wrapper,
html[data-theme="dark"] body.papillon-product-screen div.product .flex-control-thumbs li{border-color:var(--dk-border)!important;background:var(--dk-media)!important;}
html[data-theme="dark"] body.papillon-product-screen div.product .woocommerce-product-gallery__trigger{border-color:var(--dk-border)!important;background:rgba(15,32,38,.94)!important;color:var(--dk-accent)!important;box-shadow:0 8px 20px rgba(0,0,0,.24)!important;}
html[data-theme="dark"] body.papillon-product-screen div.product :where(.pap-product-summary-card,form.grouped_form,form.variations_form.cart,.product_meta>span),
html[data-theme="dark"] body.papillon-product-screen .pap-product-after-summary .woocommerce-tabs,
html[data-theme="dark"] body.papillon-product-screen .pap-product-after-summary .woocommerce-Tabs-panel,
html[data-theme="dark"] body.papillon-product-screen #reviews #comments,
html[data-theme="dark"] body.papillon-product-screen #reviews #review_form_wrapper,
html[data-theme="dark"] body.papillon-product-screen #reviews #comments ol.commentlist li .comment-text{border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-product-screen div.product .product_title{color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-product-screen div.product :where(.woocommerce-product-details__short-description,.product_meta,.woocommerce-review-link){color:var(--dk-muted)!important;}
html[data-theme="dark"] body.papillon-product-screen div.product :where(p.price,span.price){border-color:var(--dk-border)!important;background:#10262c!important;color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-product-screen div.product :where(p.price ins,span.price ins){color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-product-screen div.product :where(p.price del,span.price del){color:var(--dk-muted-2)!important;}
html[data-theme="dark"] body.papillon-product-screen div.product :where(.quantity,.quantity.pap-quantity-enhanced,.quantity .qty,.quantity.pap-quantity-enhanced .qty,form.cart .variations select,.reset_variations,.variable-item,.cfvsw-swatches-option,.swatch,.pap-quantity-button:disabled){border-color:var(--dk-border)!important;background:var(--dk-field)!important;color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-product-screen div.product form.grouped_form table.group_table td{border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-product-screen .pap-product-after-summary .woocommerce-tabs ul.tabs{border-color:var(--dk-border)!important;background:var(--dk-canvas-2)!important;}
html[data-theme="dark"] body.papillon-product-screen .pap-product-after-summary .woocommerce-tabs ul.tabs li a{color:var(--dk-muted)!important;}
html[data-theme="dark"] body.papillon-product-screen .pap-product-after-summary .woocommerce-tabs ul.tabs li.active a{background:var(--dk-surface-4)!important;color:#8bdad4!important;}
html[data-theme="dark"] body.papillon-product-screen table.shop_attributes,
html[data-theme="dark"] body.papillon-product-screen table.shop_attributes :is(th,td){border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-product-screen table.shop_attributes tr:nth-child(even) :is(th,td){background:var(--dk-surface-2)!important;}
html[data-theme="dark"] body.papillon-product-screen #review_form_wrapper :where(input:not([type=submit]),textarea){border-color:var(--dk-border)!important;background:var(--dk-field)!important;color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-product-screen .pap-product-sale-banner{border-color:rgba(216,183,122,.25)!important;background:#0b5965!important;color:#fff!important;box-shadow:0 7px 18px rgba(0,0,0,.22)!important;}

/* --------------------------------------------------------------------------
   8. Cart
   -------------------------------------------------------------------------- */
html[data-theme="dark"] body.papillon-cart-screen{--cart-border:var(--dk-border);--cart-border-soft:#1b343c;}
html[data-theme="dark"] body.papillon-cart-screen :where(.cart-page-shell,.woocommerce-cart-form,.cart-collaterals,.wc-block-cart){background:transparent;color:var(--dk-text);}
html[data-theme="dark"] body.papillon-cart-screen :where(.cross-sells,.cart_totals,.wc-block-cart__main,.wc-block-cart__sidebar,.woocommerce .cart-empty,.shop_table.cart tbody>tr.cart_item,.shop_table.cart td.actions,.wc-block-cart-items tr.wc-block-cart-items__row){border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart thead th{color:var(--dk-muted)!important;}
html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart :where(.product-name>a,.product-subtotal,.product-subtotal .amount){color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart :where(.product-price,.variation){color:var(--dk-muted)!important;}
html[data-theme="dark"] body.papillon-cart-screen :where(.shop_table.cart .quantity,.shop_table.cart .quantity.pap-cart-quantity,.shop_table.cart .quantity .qty,.pap-cart-quantity-button,.shop_table.cart .coupon .input-text,.shop_table.cart .pap-cart-continue-shopping,.wc-block-components-quantity-selector,.cart_totals .shipping-calculator-form input,.cart_totals .shipping-calculator-form select){border-color:var(--dk-border)!important;background:var(--dk-field)!important;color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-cart-screen :where(.shop_table.cart .product-thumbnail a,.wc-block-cart-item__image){border-color:var(--dk-border)!important;background:var(--dk-media)!important;}
html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart .product-remove a{border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-muted)!important;}
html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart .product-remove a:hover{border-color:var(--dk-danger-border)!important;background:var(--dk-danger-bg)!important;color:var(--dk-danger-text)!important;}
html[data-theme="dark"] body.papillon-cart-screen .pap-cart-quantity-button:hover:not(:disabled){background:var(--dk-hover)!important;color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart button[name="update_cart"],
html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart button[name="update_cart"]:disabled{border-color:var(--dk-border)!important;background:var(--dk-surface-3)!important;color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-cart-screen .cart_totals table :is(th,td){border-color:var(--dk-border)!important;color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-cart-screen .cart_totals .order-total :is(th,td,.amount){color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-cart-screen .wc-block-cart-items td{border-bottom-color:var(--dk-border)!important;}
html[data-theme="dark"] body.papillon-cart-screen .wc-block-components-product-name{color:var(--dk-text)!important;}

/* --------------------------------------------------------------------------
   9. Checkout
   -------------------------------------------------------------------------- */
html[data-theme="dark"] body.papillon-checkout-screen :where(.checkout-page-shell,.woocommerce-checkout,#customer_details){background:transparent;color:var(--dk-text);}
html[data-theme="dark"] body.papillon-checkout-screen :where(.checkout-progress li,.woocommerce-form-login,.checkout_coupon,#customer_details .col-1,#customer_details .col-2,#order_review_heading,#order_review,#payment,.papillon-checkout-address-option,.papillon-checkout-address-radio,.woocommerce-order-overview,.woocommerce-order-details,.woocommerce-customer-details){border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-checkout-screen .checkout-progress li.is-complete{border-color:var(--dk-success-border)!important;background:var(--dk-success-bg)!important;color:var(--dk-success-text)!important;}
html[data-theme="dark"] body.papillon-checkout-screen :is(.woocommerce-form-login-toggle,.woocommerce-form-coupon-toggle) .woocommerce-info{border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-checkout-screen :where(.papillon-checkout-address-count,.papillon-checkout-address-edit){border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-checkout-screen .papillon-checkout-address-edit:hover{background:var(--dk-hover)!important;}
html[data-theme="dark"] body.papillon-checkout-screen :where(.form-row .input-text,.form-row input.input-text,.form-row textarea,.form-row select,.select2-container .select2-selection--single,.wc-block-components-text-input input,.wc-block-components-combobox .wc-block-components-combobox-control input,.wc-block-components-address-form select){border-color:var(--dk-border)!important;background:var(--dk-field)!important;color:var(--dk-text)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-checkout-screen .woocommerce-checkout-review-order-table :is(th,td){border-color:var(--dk-border)!important;color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-checkout-screen .woocommerce-checkout-review-order-table .order-total :is(th,td,.amount){color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-checkout-screen #payment{background:var(--dk-surface-2)!important;}
html[data-theme="dark"] body.papillon-checkout-screen #payment div.payment_box{border-color:var(--dk-border)!important;background:var(--dk-surface-3)!important;color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-checkout-screen #payment div.payment_box::before{border-bottom-color:var(--dk-surface-3)!important;}
html[data-theme="dark"] body.papillon-checkout-screen :where(.woocommerce-privacy-policy-text,.woocommerce-terms-and-conditions-wrapper){color:var(--dk-muted)!important;}

/* --------------------------------------------------------------------------
   10. Account, orders and addresses
   -------------------------------------------------------------------------- */
html[data-theme="dark"] body.papillon-account-screen :where(.papillon-account-page,.account-content-shell,.woocommerce:has(>.woocommerce-MyAccount-navigation)){background:transparent!important;color:var(--dk-text);}
html[data-theme="dark"] body.papillon-account-screen :where(.account-content-shell>.woocommerce-MyAccount-content,main .woocommerce:has(>.woocommerce-MyAccount-navigation)>.woocommerce-MyAccount-content,.woocommerce-MyAccount-content,.papillon-profile-sidebar,.papillon-login-shell,.profile-stat,.profile-data-card,.profile-data-grid>div,.profile-quick-links a,.papillon-saved-address-card,.woocommerce-orders-table,.woocommerce-order-details,.woocommerce-customer-details,.support-options a,.account-form-heading,.papillon-order-facts,.papillon-order-notes,.papillon-order-native-details .woocommerce-order-details,.papillon-order-delivery-address,.woocommerce-MyAccount-content form.woocommerce-EditAccountForm,.woocommerce-MyAccount-content form.edit-account,.papillon-edit-address-form .woocommerce-address-fields,.address-not-set){border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-account-screen .papillon-account-page{background:transparent!important;}
html[data-theme="dark"] body.papillon-account-screen :where(.account-nav-icon,.profile-edit-link,.papillon-saved-address-card header>a,.woocommerce-orders-table__cell-order-actions .button,.login-tabs button.is-active,.account-nav-toggle,.papillon-address-compact-action,.papillon-address-cancel,.woocommerce-MyAccount-content .woocommerce-Address .title .edit,.woocommerce-MyAccount-content .woocommerce-Address-title .edit){border-color:var(--dk-border)!important;background:var(--dk-surface-3)!important;color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-account-screen .papillon-profile-sidebar.is-expanded .papillon-account-nav a{border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-account-screen .papillon-account-nav a{color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-account-screen .papillon-account-nav a:hover{background:var(--dk-hover)!important;color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-account-screen .papillon-account-nav a.is-active{background:#123139!important;color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-account-screen .papillon-account-nav a.is-active .account-nav-icon{background:#173b42!important;color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-account-screen .papillon-account-nav .woocommerce-MyAccount-navigation-link--customer-logout :where(.account-nav-icon){background:var(--dk-danger-bg)!important;color:var(--dk-danger-text)!important;}
html[data-theme="dark"] body.papillon-account-screen .papillon-account-nav .woocommerce-MyAccount-navigation-link--customer-logout:hover{background:var(--dk-danger-bg)!important;color:var(--dk-danger-text)!important;}
html[data-theme="dark"] body.papillon-account-screen .woocommerce-MyAccount-content>p:first-child{border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-account-screen .woocommerce-MyAccount-content form fieldset{border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-account-screen .woocommerce-MyAccount-content :where(input.input-text,select,textarea){border-color:var(--dk-border)!important;background:var(--dk-field)!important;color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-account-screen .woocommerce-orders-table thead th,
html[data-theme="dark"] body.papillon-account-screen .woocommerce-table--order-details thead th{background:var(--dk-surface-2)!important;color:var(--dk-muted)!important;}
html[data-theme="dark"] body.papillon-account-screen .woocommerce-orders-table :is(th,td),
html[data-theme="dark"] body.papillon-account-screen .papillon-order-native-details .woocommerce-table--order-details :is(th,td){border-color:var(--dk-border)!important;background:transparent!important;color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-account-screen .woocommerce-orders-table tbody tr:hover td{background:var(--dk-hover)!important;}
html[data-theme="dark"] body.papillon-account-screen .woocommerce-order-overview li,
html[data-theme="dark"] body.papillon-account-screen .woocommerce-customer-details .woocommerce-column{border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-account-screen :where(.papillon-order-status.status-cancelled,.papillon-order-status.status-failed,.papillon-order-status.status-refunded){border-color:var(--dk-danger-border)!important;background:var(--dk-danger-bg)!important;color:var(--dk-danger-text)!important;}
/* Neutral status pill. Its light-mode surface (#edf7f7) survived dark mode while
   the semantic-color guard below flipped the label to light green: light green
   on near-white is ~1.35:1. The chip needs a dark surface of its own. Completed,
   pending and on-hold chips are excluded because they carry their own dark
   colors (account-orders.css). */
html[data-theme="dark"] body.papillon-account-screen .papillon-order-status:not(.status-completed):not(.status-pending):not(.status-on-hold):not(.status-cancelled):not(.status-failed):not(.status-refunded){border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-accent)!important;}

/* --------------------------------------------------------------------------
   11. Generic pages, privacy/legal/FAQ, blog, about/contact
   -------------------------------------------------------------------------- */
html[data-theme="dark"] body.papillon-generic-page-screen :where(.page-entry-content,.pap-rich-content,.page-native-heading),
html[data-theme="dark"] body.papillon-article-screen :where(.pap-article-card,.pap-article-footer,.pap-article-tags a),
html[data-theme="dark"] body.papillon-search-results-screen :where(.search-page-card,.search-page-empty),
html[data-theme="dark"] body.papillon-legal-screen :where(.legal-card,.faq-item,.faq-toggle,.faq-hero-mark,.privacy-page .privacy-hero-icon),
html[data-theme="dark"] :where(body.blog,body.papillon-blog-screen) :where(.niazkala-blog-topics a,.niazkala-blog-section-head>span,.niazkala-blog-card,.niazkala-blog-pagination a,.niazkala-blog-pagination span,.niazkala-blog-skeleton__card),
html[data-theme="dark"] body.papillon-about-contact-screen :where(.about-page,.contact-page,.content-page-proof,.about-checklist li,.about-stats>div,.about-value-grid article,.about-value-grid b,.contact-hero-card,.contact-channels article,.contact-form-card,.contact-help-card){border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-generic-page-screen .page-native-heading{background:linear-gradient(135deg,var(--dk-surface-3),var(--dk-surface-1))!important;}
html[data-theme="dark"] body.papillon-generic-page-screen :where(.page-entry-content,.pap-rich-content) blockquote,
html[data-theme="dark"] body.papillon-article-screen .pap-article-content blockquote{border-color:#31535d!important;background:#102b31!important;color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-article-screen .pap-article-footer{background:var(--dk-surface-2)!important;}
html[data-theme="dark"] body.papillon-search-results-screen .search-page-card:hover{border-color:#3c757b!important;background:var(--dk-hover)!important;}
html[data-theme="dark"] body.papillon-legal-screen :where(.legal-page,.papillon-faq-page,.privacy-page){background:transparent!important;color:var(--dk-text);}
html[data-theme="dark"] body.papillon-legal-screen :where(.legal-hero,.faq-hero,.privacy-hero){border-color:var(--dk-border)!important;background:linear-gradient(135deg,var(--dk-surface-2),var(--dk-surface-1))!important;color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-legal-screen .faq-toggle:hover{background:var(--dk-hover)!important;}
/* On dark accent chips/buttons the accent token flips to a LIGHT teal, so the
   label must flip to dark ink to stay readable (white on #69c8c0 is ~1.98:1). */
html[data-theme="dark"] body.papillon-legal-screen .faq-support-link{background:var(--pap-purple)!important;color:#06282c!important;}
html[data-theme="dark"] body.papillon-legal-screen .faq-support-link .papillon-icon{color:#06282c!important;}
html[data-theme="dark"] body.papillon-legal-screen :where(.legal-card p,.faq-answer,.privacy-page p,.privacy-page li){color:var(--dk-text-2)!important;}
html[data-theme="dark"] :where(body.blog,body.papillon-blog-screen) .niazkala-blog-page{background:transparent!important;color:var(--dk-text);}
html[data-theme="dark"] :where(body.blog,body.papillon-blog-screen) .niazkala-blog-topics a:hover{background:var(--dk-hover)!important;color:#8bdad4!important;}
html[data-theme="dark"] :where(body.blog,body.papillon-blog-screen) .niazkala-blog-card :where(h2,h3){color:var(--dk-text)!important;}
html[data-theme="dark"] :where(body.blog,body.papillon-blog-screen) .niazkala-blog-card :where(p,small,time){color:var(--dk-muted)!important;}
html[data-theme="dark"] body.papillon-about-contact-screen :where(.about-page,.contact-page){background:transparent!important;}
html[data-theme="dark"] body.papillon-about-contact-screen :where(.about-hero,.contact-hero,.about-values-band){border-color:var(--dk-border)!important;background:linear-gradient(135deg,var(--dk-surface-2),var(--dk-surface-1))!important;color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-about-contact-screen :where(.contact-form-card input,.contact-form-card textarea,.contact-form-card select){border-color:var(--dk-border)!important;background:var(--dk-field)!important;color:var(--dk-text)!important;}

/* --------------------------------------------------------------------------
   12. Final anti-light-leak guard
   Exact high-risk surfaces from page-specific CSS that previously stayed white.
   -------------------------------------------------------------------------- */
html[data-theme="dark"] body.papillon-theme .woocommerce :where(.woocommerce-form-login,.woocommerce-form-coupon,.woocommerce-form-track-order,.lost_reset_password),
html[data-theme="dark"] body.papillon-theme .woocommerce :where(.woocommerce-order-details,.woocommerce-customer-details),
html[data-theme="dark"] body.papillon-theme .woocommerce-order-overview li{border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-theme .woocommerce :where(input,select,textarea){border-color:var(--dk-border)!important;background:var(--dk-field)!important;color:var(--dk-text)!important;}

/* Preserve semantic status colors after the anti-leak guard. */
html[data-theme="dark"] body.papillon-theme :where(.is-success,.status-completed,.status-processing){color:var(--dk-success-text);}
html[data-theme="dark"] body.papillon-theme :where(.is-error,.status-failed,.status-cancelled){color:var(--dk-danger-text);}

/* --------------------------------------------------------------------------
   14. Mobile dark-mode audit
   -------------------------------------------------------------------------- */
@media(max-width:700px){
  html[data-theme="dark"] body.papillon-theme .mobile-navigation{background:#08161b!important;}
  html[data-theme="dark"] body.papillon-theme .mobile-navigation-head{background:#08161b!important;}
  html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine :where(.editorial-carousel-controls,.category-carousel-controls,.reviews-carousel-controls)>button{background:var(--dk-surface-2)!important;color:var(--dk-accent)!important;}
  html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .home-newsletter{border-color:#244149!important;background:linear-gradient(155deg,#0a181d,#10242a 55%,#08161b)!important;box-shadow:0 16px 38px rgba(0,0,0,.26)!important;}
  html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .newsletter-form{background:#071419!important;border-color:#294952!important;}
  html[data-theme="dark"] body.papillon-account-screen .account-nav-toggle{background:var(--dk-surface-2)!important;}
  html[data-theme="dark"] body.papillon-cart-screen :where(.shop_table.cart tbody>tr.cart_item,.shop_table.cart td.actions,.wc-block-cart-items tr.wc-block-cart-items__row){background:var(--dk-surface-1)!important;}
}

@media(prefers-reduced-motion:reduce){
  body.papillon-theme .theme-toggle .theme-icon{transition:none!important;}
}

/* Toasts and transient UI. */
html[data-theme="dark"] body.papillon-theme .pap-toast{border-color:var(--dk-border)!important;background:rgba(11,25,30,.98)!important;color:var(--dk-text)!important;box-shadow:0 18px 44px rgba(0,0,0,.38)!important;}
html[data-theme="dark"] body.papillon-theme .pap-toast-icon{background:var(--dk-success-bg)!important;color:var(--dk-success-text)!important;}
html[data-theme="dark"] body.papillon-theme .pap-toast.is-error .pap-toast-icon{background:var(--dk-danger-bg)!important;color:var(--dk-danger-text)!important;}
html[data-theme="dark"] body.papillon-theme .pap-toast.is-warning .pap-toast-icon{background:var(--dk-warning-bg)!important;color:var(--dk-warning-text)!important;}
html[data-theme="dark"] body.papillon-theme .pap-toast.is-info .pap-toast-icon{background:var(--dk-surface-3)!important;color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-theme .pap-toast-close:hover{background:var(--dk-hover)!important;color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-theme .pap-toast-action{border-color:var(--dk-border-strong)!important;background:var(--dk-surface-2)!important;color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-theme .pap-toast-progress{background:rgba(255,255,255,.08)!important;}

/* Auth + empty cart additions */
html[data-theme="dark"] body.papillon-account-screen .papillon-login-form{background:var(--dk-surface-1)!important;color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-account-screen .auth-panel-heading{border-bottom-color:var(--dk-border)!important;}
html[data-theme="dark"] body.papillon-account-screen .auth-panel-heading h3,
html[data-theme="dark"] body.papillon-account-screen .password-recovery-content>h2{color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-account-screen .auth-panel-heading small,
html[data-theme="dark"] body.papillon-account-screen .auth-remember,
html[data-theme="dark"] body.papillon-account-screen .password-recovery-content>p:not(.eyebrow),
html[data-theme="dark"] body.papillon-account-screen .password-recovery-form .auth-field label,
html[data-theme="dark"] body.papillon-account-screen .auth-privacy-note{color:var(--dk-muted)!important;}
html[data-theme="dark"] body.papillon-account-screen .auth-checkmark{border-color:var(--dk-border-strong)!important;background:var(--dk-field)!important;}
html[data-theme="dark"] body.papillon-account-screen .auth-remember input:checked+.auth-checkmark{border-color:#4fa39f!important;background:#18736f!important;box-shadow:0 0 0 3px rgba(82,178,171,.10)!important;}
html[data-theme="dark"] body.papillon-account-screen .auth-forgot-link{color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-account-screen .auth-forgot-link:hover{background:var(--dk-hover)!important;color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-account-screen .papillon-login-form .auth-field .input-text,
html[data-theme="dark"] body.papillon-account-screen .password-recovery-form .input-text{border-color:var(--dk-border)!important;background:var(--dk-field)!important;color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-account-screen .papillon-login-form .auth-field .input-text:focus,
html[data-theme="dark"] body.papillon-account-screen .password-recovery-form .input-text:focus{border-color:#427d81!important;background:var(--dk-surface-2)!important;box-shadow:0 0 0 4px rgba(80,159,159,.10)!important;}
html[data-theme="dark"] body.papillon-account-screen :where(.register-hint,.papillon-login-form .woocommerce-privacy-policy-text){border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-muted)!important;}
html[data-theme="dark"] body.papillon-account-screen .papillon-password-recovery-shell{border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-account-screen .password-recovery-content{background:var(--dk-surface-1)!important;}
html[data-theme="dark"] body.papillon-account-screen .password-recovery-actions>a{color:var(--dk-accent)!important;}

html[data-theme="dark"] body.papillon-cart-screen .pap-empty-cart{border-color:var(--dk-border)!important;background:radial-gradient(circle at 50% -20%,rgba(72,151,154,.10),transparent 40%),linear-gradient(180deg,var(--dk-surface-1),var(--dk-surface-2))!important;color:var(--dk-text)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-cart-screen .pap-empty-cart-ring{border-color:#31555b!important;}
html[data-theme="dark"] body.papillon-cart-screen .pap-empty-cart-icon{border-color:var(--dk-border)!important;background:var(--dk-surface-3)!important;color:var(--dk-accent)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-cart-screen .pap-empty-cart-zero{border-color:var(--dk-surface-1)!important;background:#9b7e50!important;}
html[data-theme="dark"] body.papillon-cart-screen .pap-empty-cart-copy h2{color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-cart-screen .pap-empty-cart-copy>p:last-child{color:var(--dk-muted)!important;}
html[data-theme="dark"] body.papillon-cart-screen .pap-empty-cart-benefits>span{border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-cart-screen .pap-empty-cart-benefits i{background:#11332b!important;color:#6fd0a5!important;}
html[data-theme="dark"] body.papillon-cart-screen .pap-empty-cart-secondary{border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-accent)!important;}

/* ==========================================================================
   Dark color harmony pass
   Neutral petrol hierarchy, controlled teal accents and warm-gold highlights.
   ========================================================================== */
html[data-theme="dark"] body.papillon-theme{
  background:
    radial-gradient(circle at 92% 8%,rgba(112,207,198,.035),transparent 24%),
    radial-gradient(circle at 8% 58%,rgba(209,175,112,.025),transparent 26%),
    var(--dk-canvas)!important;
}
html[data-theme="dark"] body.papillon-theme :where(.site-header,.header-main,.header-navigation,.search-panel,.mobile-navigation){border-color:var(--dk-border)!important;}
html[data-theme="dark"] body.papillon-theme :where(.site-header,.header-main){background:rgba(9,20,25,.94)!important;box-shadow:0 8px 28px rgba(0,0,0,.18)!important;backdrop-filter:blur(18px);}
html[data-theme="dark"] body.papillon-theme :where(.header-action,.theme-toggle,.mobile-theme-toggle,.search-trigger){border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-text-2)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-theme :where(.header-action,.theme-toggle,.mobile-theme-toggle,.search-trigger):hover{border-color:var(--dk-border-strong)!important;background:var(--dk-hover)!important;color:var(--dk-accent)!important;}

/* Homepage: every light surface follows one dark surface ladder. */
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine{background:
  radial-gradient(circle at 94% 12%,rgba(112,207,198,.035),transparent 22%),
  radial-gradient(circle at 6% 44%,rgba(209,175,112,.025),transparent 24%),
  var(--dk-canvas)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .home-purchase-pulse{border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;box-shadow:var(--dk-shadow-soft)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .purchase-pulse-intro{border:1px solid #244853!important;background:linear-gradient(145deg,#0a2630,#0d414d 58%,#0f5a5d)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .purchase-pulse-kicker{color:var(--dk-gold)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .purchase-pulse-intro strong{color:#f7f9f9!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .purchase-pulse-intro>a{color:#c7d3d4!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .purchase-pulse-item{border-color:var(--dk-border)!important;background:linear-gradient(155deg,var(--dk-surface-2),var(--dk-surface-1))!important;color:var(--dk-text)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .purchase-pulse-icon{border-color:var(--dk-border)!important;background:var(--dk-surface-3)!important;color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .purchase-pulse-copy small{color:var(--dk-gold)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .purchase-pulse-copy b{color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .purchase-pulse-copy em{color:var(--dk-muted)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .purchase-pulse-arrow{background:var(--dk-surface-3)!important;color:var(--dk-accent)!important;}
@media(hover:hover){
  html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .purchase-pulse-item:hover{border-color:var(--dk-border-strong)!important;background:linear-gradient(155deg,var(--dk-surface-3),var(--dk-surface-2))!important;box-shadow:var(--dk-shadow-soft)!important;}
  html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .purchase-pulse-item:hover .purchase-pulse-arrow{background:var(--dk-accent-fill)!important;color:#fff!important;}
}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine #popular-products{border-color:var(--dk-border)!important;background:linear-gradient(180deg,rgba(22,43,50,.72),rgba(13,26,31,.34))!important;box-shadow:var(--dk-shadow-soft)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine :where(.home-services,.home-service-card,.shortcut-grid a,.conversion-gateway-card,.home-order-guide,.home-order-steps li,.home-reviews,.review-card,.home-editorial-empty,.papillon-brand-item){border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .home-services{background:var(--dk-surface-1)!important;box-shadow:var(--dk-shadow-soft)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .home-service-card{background:transparent!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .home-service-card:not(:last-child)::after{background:var(--dk-border)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .home-service-card .service-icon{border-color:var(--dk-border)!important;background:var(--dk-surface-3)!important;color:var(--dk-accent)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .shortcut-grid a>span,
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .market-product-image{background:var(--dk-media)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .conversion-gateway-card:nth-child(2),
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .conversion-gateway-card:nth-child(3){background:linear-gradient(155deg,var(--dk-surface-2),var(--dk-surface-1))!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .conversion-gateway-card.is-primary{border-color:#28525d!important;background:linear-gradient(155deg,#0b2d37,#0f515a 64%,#0f6568)!important;box-shadow:0 18px 40px rgba(0,0,0,.22)!important;}
/* Primary gateway card gradient ends in bright teal (#0f6367), so gold text on
   the translucent chip falls to ~2.8:1 at the bright end. Use the light gold
   (#f2dfbb) and near-white meta text to keep >=4.5:1 across the gradient. */
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .conversion-gateway-card.is-primary .gateway-eyebrow{background:rgba(255,255,255,.08)!important;color:#f2dfbb!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .conversion-gateway-card.is-primary .gateway-meta{background:rgba(255,255,255,.075)!important;color:#f7fbfb!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .gateway-eyebrow{background:#132f35!important;color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .gateway-meta{background:var(--dk-surface-3)!important;color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .conversion-gateway-card em{color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .home-reviews{background:linear-gradient(145deg,var(--dk-surface-2),var(--dk-surface-1))!important;box-shadow:var(--dk-shadow-soft)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .review-card{background:var(--dk-surface-2)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .review-card::before{color:rgba(112,207,198,.075)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .review-stars{color:var(--dk-gold)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .home-newsletter{border-color:var(--dk-border-strong)!important;background:
  radial-gradient(circle at 8% 16%,rgba(112,207,198,.07),transparent 28%),
  radial-gradient(circle at 92% 86%,rgba(209,175,112,.05),transparent 25%),
  linear-gradient(145deg,#0b1a1f,#10252b 58%,#0d1a1f)!important;box-shadow:var(--dk-shadow)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .home-newsletter h2 b{color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .newsletter-form{border-color:var(--dk-border)!important;background:rgba(9,23,28,.86)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .newsletter-form input{border-color:var(--dk-border)!important;background:var(--dk-field)!important;color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .newsletter-form button{background:var(--dk-accent-fill)!important;color:#fff!important;box-shadow:0 9px 20px rgba(0,0,0,.22)!important;}

/* Product surfaces: keep dark depth without muddy grey/green casts. */
html[data-theme="dark"] body.papillon-market-screen .market-product-card{border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;box-shadow:var(--dk-shadow-soft)!important;}
html[data-theme="dark"] body.papillon-market-screen .market-product-image{background:var(--dk-media)!important;}
html[data-theme="dark"] body.papillon-market-screen :where(.market-product-copy h2,.market-product-copy h3,.market-product-brand){color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-market-screen :where(.market-product-category,.market-stock){color:var(--dk-muted)!important;}
html[data-theme="dark"] body.papillon-market-screen .price-stack strong{color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-market-screen .price-stack del{color:var(--dk-muted-2)!important;}
html[data-theme="dark"] body.papillon-market-screen .market-buy-button{border-color:#2b535b!important;background:var(--dk-surface-3)!important;color:var(--dk-accent)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-front-screen #popular-products .market-buy-button{border-color:transparent!important;background:var(--dk-accent-fill)!important;color:#fff!important;box-shadow:0 9px 20px rgba(0,0,0,.22)!important;}
html[data-theme="dark"] body.papillon-market-screen .market-buy-arrow{background:var(--dk-surface-4)!important;color:var(--dk-accent)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-front-screen #popular-products .market-buy-arrow{background:rgba(255,255,255,.10)!important;color:#fff!important;}
@media(hover:hover){
  html[data-theme="dark"] body.papillon-market-screen .market-product-card:hover{border-color:var(--dk-border-strong)!important;background:#0f2026!important;box-shadow:var(--dk-shadow)!important;}
  html[data-theme="dark"] body.papillon-market-screen .market-buy-button:hover{border-color:transparent!important;background:var(--dk-accent-fill)!important;color:#fff!important;}
}

/* Commerce, account and content: unify bright leftovers and eliminate mixed surfaces. */
html[data-theme="dark"] body.papillon-theme :where(.woocommerce-cart-form,.cart_totals,.cross-sells,#customer_details .col-1,#customer_details .col-2,#order_review,#payment,.woocommerce-MyAccount-content,.papillon-profile-sidebar,.papillon-login-form,.papillon-password-recovery-shell,.legal-card,.legal-toc,.faq-card,.faq-item,.about-card,.contact-card,.contact-form-card,.page-content-card,.single-article,.article-content){border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;box-shadow:var(--dk-shadow-soft)!important;}
html[data-theme="dark"] body.papillon-theme :where(.woocommerce form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),.woocommerce form textarea,.woocommerce form select,.fallback-form input,.fallback-form textarea,.fallback-form select){border-color:var(--dk-border)!important;background:var(--dk-field)!important;color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-theme :where(.woocommerce form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),.woocommerce form textarea,.woocommerce form select,.fallback-form input,.fallback-form textarea,.fallback-form select):focus{border-color:#3f7378!important;background:#0b1c21!important;box-shadow:0 0 0 4px rgba(112,207,198,.09)!important;}
html[data-theme="dark"] body.papillon-theme :where(.woocommerce-message,.woocommerce-info,ul.woocommerce-error,.newsletter-notice,.contact-notice){box-shadow:none!important;}

/* Multi-address surfaces */
html[data-theme="dark"] body.papillon-account-screen :where(.papillon-address-book-summary,.papillon-address-book-card,.papillon-address-book-empty,.papillon-address-label-field input,.papillon-address-edit-action,.papillon-address-default-form button){border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-account-screen .papillon-address-book-card.is-default{border-color:rgba(112,207,198,.34)!important;box-shadow:0 0 0 2px rgba(112,207,198,.06)!important;}
html[data-theme="dark"] body.papillon-account-screen :where(.papillon-address-book-summary span,.papillon-address-book-card address,.papillon-address-phone b,.papillon-address-label-field label,.papillon-address-default-choice){color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-account-screen :where(.papillon-address-book-summary small,.papillon-address-phone span,.papillon-address-book-empty p,.papillon-address-label-field label small){color:var(--dk-muted)!important;}
html[data-theme="dark"] body.papillon-account-screen .papillon-address-default-badge{background:rgba(112,207,198,.12)!important;color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-account-screen .papillon-address-card-actions,
html[data-theme="dark"] body.papillon-account-screen .papillon-address-phone,
html[data-theme="dark"] body.papillon-account-screen .papillon-address-book-card>header{border-color:var(--dk-border)!important;}
html[data-theme="dark"] body.papillon-checkout-screen .papillon-checkout-address-option.is-selected{border-color:rgba(112,207,198,.48)!important;background:var(--dk-surface-2)!important;box-shadow:0 0 0 2px rgba(112,207,198,.07)!important;}


/* ===== Integrated mobile dark-mode rules ===== */
/* ========================================================================== 
   Need Kala Mobile Dark Mode Layer
   Integrated mobile-specific dark-mode corrections.
   Purpose: eliminate light leaks introduced by responsive/mobile overrides.
   ========================================================================== */

@media (max-width: 820px){
  html[data-theme="dark"] body.papillon-theme{
    background:var(--dk-canvas)!important;
    color:var(--dk-text)!important;
  }

  /* Mobile shell / header / drawers / overlays */
  html[data-theme="dark"] body.papillon-theme :where(.site-header,.header-main,.mobile-header-row,.mobile-navigation,.mobile-navigation-head,.mobile-search-panel,.search-overlay-panel){
    border-color:var(--dk-border)!important;
    background:#08161b!important;
    color:var(--dk-text)!important;
  }
  html[data-theme="dark"] body.papillon-theme :where(.mobile-menu,.mobile-menu-close,.mobile-theme-toggle,.header-action,.mobile-search-toggle,.search-close){
    border-color:var(--dk-border)!important;
    background:var(--dk-surface-2)!important;
    color:var(--dk-text-2)!important;
    box-shadow:none!important;
  }
  html[data-theme="dark"] body.papillon-theme :where(.mobile-navigation a,.mobile-navigation button,.mobile-navigation .menu-item>a){color:var(--dk-text)!important;}
  html[data-theme="dark"] body.papillon-theme :where(.mobile-navigation .sub-menu,.mobile-navigation .children){border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;}
  html[data-theme="dark"] body.papillon-theme :where(.mobile-navigation-backdrop,.search-overlay-backdrop){background:rgba(0,7,10,.78)!important;}
  html[data-theme="dark"] body.papillon-theme :where(.site-search,.mobile-search-panel form,.search-overlay-panel form){border-color:var(--dk-border)!important;background:var(--dk-field)!important;box-shadow:none!important;}
  html[data-theme="dark"] body.papillon-theme :where(.site-search input,.mobile-search-panel input,.search-overlay-panel input){background:transparent!important;color:var(--dk-text)!important;}

  /* Common mobile surfaces */
  html[data-theme="dark"] body.papillon-theme :where(.transaction-page-heading,.page-heading-card,.page-hero,.content-card,.surface-card,.account-empty-state,.search-page-empty){
    border-color:var(--dk-border)!important;
    background:var(--dk-surface-1)!important;
    color:var(--dk-text)!important;
    box-shadow:0 10px 28px rgba(0,0,0,.22)!important;
  }
  html[data-theme="dark"] body.papillon-theme :where(.checkout-progress li,.progress-step,.status-chip,.filter-chip,.sort-chip){
    border-color:var(--dk-border)!important;
    background:var(--dk-surface-2)!important;
    color:var(--dk-text-2)!important;
  }
  html[data-theme="dark"] body.papillon-theme :where(.checkout-progress li.is-active,.progress-step.is-active,.filter-chip.is-active,.sort-chip.is-active){
    border-color:#376d72!important;
    background:#112c32!important;
    color:#83d8d2!important;
  }

  /* Homepage mobile */
  html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine{background:var(--dk-canvas)!important;}
  html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine :where(.home-services,.home-service-card,.shortcut-grid>a,.conversion-gateway-card:not(.is-primary),.home-order-guide,.home-tabbed,.tab-panel,.review-card,.home-editorial-empty,.editorial-cards>a,.papillon-brand-marquee-section,.home-newsletter){
    border-color:var(--dk-border)!important;
    background:var(--dk-surface-1)!important;
    color:var(--dk-text)!important;
    box-shadow:none!important;
  }
  html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine :where(.service-icon,.gateway-meta,.home-trend-tags a,.tab-buttons button,.rail-actions button,.editorial-carousel-controls button,.category-carousel-controls button,.reviews-carousel-controls button){
    border-color:var(--dk-border)!important;
    background:var(--dk-surface-2)!important;
    color:var(--dk-text-2)!important;
    box-shadow:none!important;
  }
  html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine :where(.conversion-gateway-card p,.section-copy,.home-service-card small,.shortcut-grid small,.review-card p,.review-card strong,.editorial-cards span){color:var(--dk-muted)!important;}
  html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine :where(.conversion-gateway-card strong,.shortcut-grid b,.section-head h2,.review-card b,.editorial-cards b){color:var(--dk-text)!important;}
  html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .conversion-gateway-card.is-soft,
  html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .conversion-gateway-card.is-outline,
  html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .conversion-gateway-card.is-minimal{background:linear-gradient(160deg,var(--dk-surface-2),var(--dk-surface-1))!important;}
  html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .shortcut-grid a>span{background:var(--dk-media)!important;}
  html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .home-category-spotlight{border-color:var(--dk-border)!important;background:linear-gradient(150deg,#0d2026,#0a181d)!important;box-shadow:none!important;}
  html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .spotlight-list a{border-color:var(--dk-border)!important;color:var(--dk-text)!important;}
  html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .home-newsletter{background:linear-gradient(155deg,#0a181d,#10242a 55%,#08161b)!important;}
  html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .newsletter-form{border-color:#294952!important;background:#071419!important;}
  html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .newsletter-form input{border-color:var(--dk-border)!important;background:var(--dk-field)!important;color:var(--dk-text)!important;}

  /* Catalog / product cards */
  html[data-theme="dark"] body.papillon-market-screen :where(.shop-toolbar,.shop-filter,.catalog-sidebar,.market-product-card,.category-card,.catalog-empty,.mobile-filter-panel){
    border-color:var(--dk-border)!important;
    background:var(--dk-surface-1)!important;
    color:var(--dk-text)!important;
    box-shadow:none!important;
  }
  html[data-theme="dark"] body.papillon-market-screen :where(.market-product-image,.product-thumbnail-wrap,.category-card-image){background:var(--dk-media)!important;}
  html[data-theme="dark"] body.papillon-market-screen :where(.market-product-brand,.market-product-category,.shop-result-count,.woocommerce-result-count,.filter-group label){color:var(--dk-muted)!important;}
  html[data-theme="dark"] body.papillon-market-screen :where(.market-product-card h2,.market-product-card h3,.market-product-details,.market-product-price strong){color:var(--dk-text)!important;}
  html[data-theme="dark"] body.papillon-market-screen :where(.category-pills a,.mobile-filter-toggle,.catalog-filter-actions a,.woocommerce-pagination a,.woocommerce-pagination span){border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-text-2)!important;}

  /* Single product mobile */
  html[data-theme="dark"] body.papillon-product-screen :where(.pap-product-gallery-column,.pap-product-summary-card,.pap-product-after-summary,.woocommerce-tabs,.woocommerce-Tabs-panel,#reviews #review_form_wrapper,.related,.upsells){
    border-color:var(--dk-border)!important;
    background:var(--dk-surface-1)!important;
    color:var(--dk-text)!important;
    box-shadow:none!important;
  }
  html[data-theme="dark"] body.papillon-product-screen div.product :where(.woocommerce-product-gallery .flex-viewport,.woocommerce-product-gallery__wrapper,.flex-control-thumbs li,.woocommerce-product-gallery__trigger){
    border-color:var(--dk-border)!important;
    background:var(--dk-media)!important;
  }
  html[data-theme="dark"] body.papillon-product-screen div.product :where(.quantity,.quantity .qty,.pap-quantity-button,form.cart .variations select,.reset_variations,.variable-item,.cfvsw-swatches-option,.swatch){
    border-color:var(--dk-border)!important;
    background:var(--dk-field)!important;
    color:var(--dk-text)!important;
  }
  html[data-theme="dark"] body.papillon-product-screen div.product :where(.product_meta,.woocommerce-product-details__short-description,.stock,.sku_wrapper,.posted_in,.tagged_as){color:var(--dk-muted)!important;}
  html[data-theme="dark"] body.papillon-product-screen .pap-product-after-summary .woocommerce-tabs ul.tabs{border-bottom-color:var(--dk-border)!important;background:transparent!important;}
  html[data-theme="dark"] body.papillon-product-screen .pap-product-after-summary .woocommerce-tabs ul.tabs li{border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;}
  html[data-theme="dark"] body.papillon-product-screen .pap-product-after-summary .woocommerce-tabs ul.tabs li.active{background:var(--dk-hover)!important;}

  /* CART — classic Woo mobile reconstruction */
  html[data-theme="dark"] body.papillon-cart-screen :where(.cart-page-shell,.woocommerce-cart-form,.shop_table.cart,.cart-collaterals){background:transparent!important;color:var(--dk-text)!important;}
  html[data-theme="dark"] body.papillon-cart-screen .transaction-page-heading{border-color:var(--dk-border)!important;background:linear-gradient(145deg,var(--dk-surface-2),var(--dk-surface-1))!important;color:var(--dk-text)!important;}
  html[data-theme="dark"] body.papillon-cart-screen .checkout-progress li{border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-muted)!important;}
  html[data-theme="dark"] body.papillon-cart-screen .checkout-progress li.is-active{border-color:#376d72!important;background:#112c32!important;color:#83d8d2!important;}
  html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart tbody>tr.cart_item{
    border-color:var(--dk-border)!important;
    background:var(--dk-surface-1)!important;
    color:var(--dk-text)!important;
    box-shadow:0 8px 22px rgba(0,0,0,.22)!important;
  }
  html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart tbody>tr.cart_item>td{background:transparent!important;color:var(--dk-text-2)!important;}
  html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart td.product-name,
  html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart td.product-name>a{color:var(--dk-text)!important;}
  html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart td.product-price,
  html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart td.product-quantity,
  html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart td.product-subtotal{border-top-color:var(--dk-border)!important;color:var(--dk-text-2)!important;}
  html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart td.product-price::before,
  html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart td.product-quantity::before,
  html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart td.product-subtotal::before{color:var(--dk-muted)!important;}
  html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart :where(.product-price .amount,.product-subtotal .amount){color:var(--dk-text)!important;}
  html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart .product-thumbnail a{border:1px solid var(--dk-border)!important;background:var(--dk-media)!important;}
  html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart .product-remove a{border:1px solid var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-muted)!important;}
  html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart .quantity.pap-cart-quantity,
  html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart .quantity:not(.pap-cart-quantity){border-color:var(--dk-border)!important;background:var(--dk-field)!important;}
  html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart .quantity .qty,
  html[data-theme="dark"] body.papillon-cart-screen .pap-cart-quantity-button{border-color:var(--dk-border)!important;background:var(--dk-field)!important;color:var(--dk-text)!important;}
  html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart td.actions{
    border-color:var(--dk-border)!important;
    background:var(--dk-surface-1)!important;
    color:var(--dk-text)!important;
  }
  html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart .coupon .input-text{border-color:var(--dk-border)!important;background:var(--dk-field)!important;color:var(--dk-text)!important;}
  html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart :where(.coupon .button,.pap-cart-continue-shopping,button[name="update_cart"]){border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-text)!important;box-shadow:none!important;}
  html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart .coupon .button{border-color:transparent!important;background:var(--dk-accent-fill)!important;color:#fff!important;}
  html[data-theme="dark"] body.papillon-cart-screen :where(.cart_totals,.cross-sells){border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;box-shadow:none!important;}
  html[data-theme="dark"] body.papillon-cart-screen .cart_totals h2{color:var(--dk-text)!important;}
  html[data-theme="dark"] body.papillon-cart-screen .cart_totals table :where(th,td){border-color:var(--dk-border)!important;color:var(--dk-text-2)!important;background:transparent!important;}
  html[data-theme="dark"] body.papillon-cart-screen .cart_totals .order-total :where(th,td,.amount){color:var(--dk-text)!important;}
  html[data-theme="dark"] body.papillon-cart-screen .cart_totals :where(.woocommerce-shipping-methods label,.shipping-calculator-button,.woocommerce-shipping-destination){color:var(--dk-text-2)!important;}
  html[data-theme="dark"] body.papillon-cart-screen .cart_totals :where(.shipping-calculator-form input,.shipping-calculator-form select){border-color:var(--dk-border)!important;background:var(--dk-field)!important;color:var(--dk-text)!important;}

  /* CART — Woo blocks mobile */
  html[data-theme="dark"] body.papillon-cart-screen :where(.wc-block-cart,.wc-block-components-sidebar-layout,.wc-block-cart__main){background:transparent!important;color:var(--dk-text)!important;}
  html[data-theme="dark"] body.papillon-cart-screen .wc-block-cart-items tr.wc-block-cart-items__row{
    border-color:var(--dk-border)!important;
    background:var(--dk-surface-1)!important;
    color:var(--dk-text)!important;
    box-shadow:0 8px 22px rgba(0,0,0,.22)!important;
  }
  html[data-theme="dark"] body.papillon-cart-screen .wc-block-cart-items tr.wc-block-cart-items__row>td{background:transparent!important;color:var(--dk-text-2)!important;}
  html[data-theme="dark"] body.papillon-cart-screen :where(.wc-block-cart-item__image,.wc-block-components-product-image){border-color:var(--dk-border)!important;background:var(--dk-media)!important;}
  html[data-theme="dark"] body.papillon-cart-screen :where(.wc-block-components-product-name,.wc-block-components-product-price,.wc-block-formatted-money-amount){color:var(--dk-text)!important;}
  html[data-theme="dark"] body.papillon-cart-screen :where(.wc-block-components-product-metadata,.wc-block-cart-item__prices,.wc-block-components-sale-badge){color:var(--dk-muted)!important;}
  html[data-theme="dark"] body.papillon-cart-screen .wc-block-components-quantity-selector{border-color:var(--dk-border)!important;background:var(--dk-field)!important;color:var(--dk-text)!important;}
  html[data-theme="dark"] body.papillon-cart-screen .wc-block-components-quantity-selector :where(input,button){background:transparent!important;color:var(--dk-text)!important;}
  html[data-theme="dark"] body.papillon-cart-screen .wc-block-cart__sidebar{border:1px solid var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;box-shadow:none!important;}
  html[data-theme="dark"] body.papillon-cart-screen :where(.wc-block-components-totals-wrapper,.wc-block-components-totals-item){border-color:var(--dk-border)!important;background:transparent!important;color:var(--dk-text-2)!important;}

  /* Checkout mobile */
  html[data-theme="dark"] body.papillon-checkout-screen :where(#customer_details .col-1,#customer_details .col-2,#order_review_heading,#order_review,#payment,.papillon-checkout-address-picker,.papillon-checkout-address-option){
    border-color:var(--dk-border)!important;
    background:var(--dk-surface-1)!important;
    color:var(--dk-text)!important;
    box-shadow:none!important;
  }
  html[data-theme="dark"] body.papillon-checkout-screen #order_review_heading{border-bottom-color:var(--dk-border)!important;}
  html[data-theme="dark"] body.papillon-checkout-screen .woocommerce-checkout-review-order-table :where(th,td){border-color:var(--dk-border)!important;color:var(--dk-text-2)!important;background:transparent!important;}
  html[data-theme="dark"] body.papillon-checkout-screen .woocommerce-checkout-review-order-table .order-total :where(th,td,.amount){color:var(--dk-text)!important;}
  html[data-theme="dark"] body.papillon-checkout-screen #payment :where(.payment_box,.wc_payment_method){border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-text-2)!important;}
  html[data-theme="dark"] body.papillon-checkout-screen :where(.form-row label,.woocommerce-privacy-policy-text,.woocommerce-terms-and-conditions-checkbox-text){color:var(--dk-muted)!important;}

  /* Account mobile */
  html[data-theme="dark"] body.papillon-account-screen :where(.woocommerce-MyAccount-navigation,.woocommerce-MyAccount-content,.papillon-profile-sidebar,.papillon-login-shell,.profile-stat,.profile-data-card,.profile-data-grid>div,.profile-quick-links a,.papillon-saved-address-card,.account-support-intro,.support-options a,.account-form-heading,.papillon-order-hero,.papillon-order-facts,.papillon-order-notes,.papillon-order-native-details,.papillon-edit-address-form .woocommerce-address-fields){
    border-color:var(--dk-border)!important;
    background:var(--dk-surface-1)!important;
    color:var(--dk-text)!important;
    box-shadow:none!important;
  }
  html[data-theme="dark"] body.papillon-account-screen :where(.woocommerce-MyAccount-navigation a,.account-nav-toggle,.papillon-address-cancel,.papillon-address-compact-action,.profile-edit-link,.papillon-order-back){border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-text-2)!important;}
  html[data-theme="dark"] body.papillon-account-screen .woocommerce-MyAccount-navigation .is-active a{border-color:#376d72!important;background:#112c32!important;color:#83d8d2!important;}
  html[data-theme="dark"] body.papillon-account-screen :where(.profile-card-kicker,.profile-stat span,.profile-data-card small,.support-meta,.account-form-heading p,.papillon-order-facts small,.papillon-order-notes p){color:var(--dk-muted)!important;}

  /* Blog / search / static / legal / contact mobile */
  html[data-theme="dark"] body.papillon-theme :where(.blog-card,.post-card,.article-card,.search-card,.legal-card,.legal-toc,.faq-card,.faq-item,.about-card,.contact-card,.contact-form-card,.single-article,.article-content,.page-content-card){
    border-color:var(--dk-border)!important;
    background:var(--dk-surface-1)!important;
    color:var(--dk-text)!important;
    box-shadow:none!important;
  }
  html[data-theme="dark"] body.papillon-theme :where(.blog-card small,.post-card small,.article-meta,.search-meta,.legal-card p,.faq-item p,.about-card p,.contact-card p){color:var(--dk-muted)!important;}

  /* Footer / mobile bottom dock */
  html[data-theme="dark"] body.papillon-theme .site-footer{border-color:#213a42!important;background:#071419!important;color:var(--dk-text-2)!important;}
  html[data-theme="dark"] body.papillon-theme .site-footer :where(h2,h3,h4,strong){color:var(--dk-text)!important;}
  html[data-theme="dark"] body.papillon-theme .site-footer :where(p,small,a){color:#9cafb2!important;}

  /* Forms, notices, popovers and third-party Woo mobile UI */
  html[data-theme="dark"] body.papillon-theme :where(.woocommerce-message,.woocommerce-info,ul.woocommerce-error,.newsletter-notice,.contact-notice){border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-text)!important;box-shadow:none!important;}
  html[data-theme="dark"] body.papillon-theme :where(.select2-dropdown,.select2-results,.select2-search--dropdown){border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;}
  html[data-theme="dark"] body.papillon-theme :where(.select2-search__field,input:not([type="checkbox"]):not([type="radio"]),textarea,select){border-color:var(--dk-border)!important;background:var(--dk-field)!important;color:var(--dk-text)!important;}
  html[data-theme="dark"] body.papillon-theme :where(.pap-toast,.woocommerce-store-notice){border-color:var(--dk-border)!important;background:#0b191e!important;color:var(--dk-text)!important;}
}

/* Narrow phones: keep dark hierarchy while compact responsive rules are active. */
@media (max-width: 480px){
  html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart tbody>tr.cart_item,
  html[data-theme="dark"] body.papillon-cart-screen .wc-block-cart-items tr.wc-block-cart-items__row{border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;}
  html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart td.actions,
  html[data-theme="dark"] body.papillon-cart-screen :where(.cart_totals,.cross-sells,.wc-block-cart__sidebar){border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;}
}

/* High-specificity fixes for responsive rules that use !important. */
@media (max-width: 700px){
  html[data-theme="dark"] body.papillon-theme .mobile-navigation{background:#08161b!important;color:var(--dk-text)!important;}
  html[data-theme="dark"] body.papillon-theme .mobile-navigation-head{border-bottom-color:var(--dk-border)!important;background:rgba(8,22,27,.985)!important;color:var(--dk-text)!important;}

  html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine :where(.category-carousel-controls,.reviews-carousel-controls)>button,
  html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .editorial-carousel-controls>button{border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-accent)!important;box-shadow:none!important;}
  html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .mobile-carousel-dots button::before,
  html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .editorial-carousel-dots button::before{background:#4e686e!important;}
  html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .mobile-carousel-dots button.is-active::before,
  html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .editorial-carousel-dots button.is-active::before{background:var(--dk-accent)!important;}

  html[data-theme="dark"] body.papillon-account-screen .woocommerce-orders-table tr{border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;box-shadow:none!important;}
  html[data-theme="dark"] body.papillon-account-screen .woocommerce-orders-table td{border-bottom-color:var(--dk-border)!important;background:transparent!important;color:var(--dk-text-2)!important;}
  html[data-theme="dark"] body.papillon-account-screen .woocommerce-orders-table td::before{color:var(--dk-muted)!important;}
  html[data-theme="dark"] body.papillon-account-screen .support-options a,
  html[data-theme="dark"] body.papillon-account-screen .papillon-saved-address-card{border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;box-shadow:none!important;}
  html[data-theme="dark"] body.papillon-account-screen .papillon-order-native-details .woocommerce-table--order-details{border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;}
  html[data-theme="dark"] body.papillon-account-screen .papillon-order-native-details .woocommerce-table--order-details td{border-bottom-color:var(--dk-border)!important;background:transparent!important;color:var(--dk-text-2)!important;}
}

@media(max-width:700px){
  html[data-theme="dark"] body.papillon-account-screen .papillon-login-form,
  html[data-theme="dark"] body.papillon-account-screen .password-recovery-content{background:var(--dk-surface-1)!important;}
  html[data-theme="dark"] body.papillon-account-screen .auth-panel-heading{border-bottom-color:var(--dk-border)!important;}
  html[data-theme="dark"] body.papillon-account-screen .auth-benefit-list>span{border-color:rgba(255,255,255,.10)!important;background:rgba(255,255,255,.055)!important;color:rgba(255,255,255,.88)!important;}
  html[data-theme="dark"] body.papillon-cart-screen .pap-empty-cart-benefits>span{border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-text-2)!important;}
}

/* ==========================================================================
   Mobile dark precision pass
   Keeps compact responsive rules from reintroducing light surfaces.
   ========================================================================== */
@media(max-width:700px){
  html[data-theme="dark"] body.papillon-theme{background:var(--dk-canvas)!important;}
  html[data-theme="dark"] body.papillon-theme :where(.mobile-navigation,.mobile-navigation-head,.mobile-navigation-body){border-color:var(--dk-border)!important;background:rgba(9,20,25,.985)!important;color:var(--dk-text)!important;}

  html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .home-purchase-pulse{border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;box-shadow:0 12px 30px rgba(0,0,0,.22)!important;}
  html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .purchase-pulse-intro{border-color:#244853!important;background:linear-gradient(145deg,#0a2630,#0d414d 62%,#0f5a5d)!important;}
  html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .purchase-pulse-item{border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;box-shadow:none!important;}
  html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine #popular-products{border-color:var(--dk-border)!important;background:linear-gradient(180deg,rgba(22,43,50,.72),rgba(13,26,31,.30))!important;box-shadow:none!important;}
  html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .home-service-card{border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-text)!important;box-shadow:none!important;}
  html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .home-service-card .service-icon{border-color:var(--dk-border)!important;background:var(--dk-surface-3)!important;color:var(--dk-accent)!important;}
  html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .conversion-gateway-card{border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;box-shadow:none!important;}
  html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .conversion-gateway-card.is-primary{background:linear-gradient(155deg,#0b2d37,#0f515a 64%,#0f6568)!important;}

  html[data-theme="dark"] body.papillon-market-screen .market-product-card{border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;box-shadow:none!important;}
  html[data-theme="dark"] body.papillon-market-screen .market-product-actions{background:transparent!important;}
  html[data-theme="dark"] body.papillon-market-screen .market-buy-button{border-color:#2b535b!important;background:var(--dk-surface-3)!important;color:var(--dk-accent)!important;box-shadow:none!important;}
  html[data-theme="dark"] body.papillon-front-screen #popular-products .market-buy-button{border-color:transparent!important;background:var(--dk-accent-fill)!important;color:#fff!important;}

  html[data-theme="dark"] body.papillon-cart-screen :where(.shop_table.cart tbody>tr.cart_item,.shop_table.cart td.actions,.cart_totals,.cross-sells,.pap-empty-cart,.wc-block-cart-items tr.wc-block-cart-items__row,.wc-block-cart__sidebar){border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;box-shadow:none!important;}
  html[data-theme="dark"] body.papillon-checkout-screen :where(#customer_details .col-1,#customer_details .col-2,#order_review,#payment,.papillon-checkout-address-picker,.papillon-checkout-address-option){border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;box-shadow:none!important;}
  html[data-theme="dark"] body.papillon-account-screen :where(.papillon-login-form,.papillon-password-recovery-shell,.woocommerce-MyAccount-content,.papillon-profile-sidebar,.profile-stat,.profile-data-card,.profile-data-grid>div,.profile-quick-links a,.papillon-saved-address-card,.support-options a){border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;box-shadow:none!important;}
  html[data-theme="dark"] body.papillon-account-screen :where(.login-tabs,.auth-panel-heading,.register-hint,.woocommerce-privacy-policy-text){border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-text-2)!important;}
  html[data-theme="dark"] body.papillon-theme :where(.legal-card,.legal-toc,.faq-card,.faq-item,.about-card,.contact-card,.contact-form-card,.page-content-card,.single-article,.article-content,.blog-card,.post-card,.article-card,.search-card){border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;box-shadow:none!important;}
}

@media(max-width:700px){
  html[data-theme="dark"] body.papillon-account-screen :where(.papillon-address-book-summary,.papillon-address-book-card,.papillon-address-book-empty,.papillon-address-label-field input,.papillon-address-edit-action,.papillon-address-default-form button){border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;box-shadow:none!important;}
  html[data-theme="dark"] body.papillon-checkout-screen .papillon-checkout-address-options .papillon-checkout-address-option{border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;}
  html[data-theme="dark"] body.papillon-checkout-screen .papillon-checkout-address-options .papillon-checkout-address-option.is-selected{border-color:rgba(112,207,198,.48)!important;background:var(--dk-surface-2)!important;}
}

/* ========================================================================== 
   Final full-site dark audit
   This section is intentionally last inside the only dark-mode stylesheet.
   It neutralizes page-specific light surfaces while preserving product media.
   ========================================================================== */


/* Shared text hierarchy and separators. */
html[data-theme="dark"] body.papillon-theme :where(.eyebrow,.section-copy,small,.woocommerce-LostPassword a){color:var(--dk-muted)!important;}
html[data-theme="dark"] body.papillon-theme :where(.text-link,.search-page-card-link,.niazkala-blog-card__action,.contact-help-link i){color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-theme :where(.section-head,.page-native-heading,.account-form-heading,.contact-section-heading){border-color:var(--dk-border)!important;}

/* Header, search, menus, mobile drawer. */
html[data-theme="dark"] body.papillon-theme :where(.site-header,.category-nav,.category-mega-menu,.mobile-menu,.mobile-navigation,.mobile-navigation-head,.search-overlay,.search-panel){border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-theme :where(.header-action,.mobile-menu-close,.site-search,.site-search-kbd,.theme-toggle,.mobile-theme-toggle){border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-text-2)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-theme .site-search:focus-within{border-color:var(--dk-border-strong)!important;background:var(--dk-field)!important;box-shadow:0 0 0 4px rgba(105,200,192,.08)!important;}
html[data-theme="dark"] body.papillon-theme :where(.category-mega-menu a,.mobile-navigation a,.mobile-menu a){color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-theme :where(.category-mega-menu a,.mobile-navigation a,.mobile-menu a):hover{background:var(--dk-hover)!important;color:var(--dk-text)!important;}

/* Product cards — removes the bright separator line and all internal light leaks. */
html[data-theme="dark"] body.papillon-market-screen .market-product-card{border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;box-shadow:var(--dk-shadow-soft)!important;}
html[data-theme="dark"] body.papillon-market-screen .market-product-image{border:1px solid var(--dk-media-border)!important;background:linear-gradient(145deg,#122128,#0f1d22)!important;}
html[data-theme="dark"] body.papillon-market-screen .market-product-image::after{background:linear-gradient(180deg,transparent,rgba(0,0,0,.08))!important;}
html[data-theme="dark"] body.papillon-market-screen .market-product-price{border-top-color:var(--dk-border)!important;}
html[data-theme="dark"] body.papillon-market-screen .market-product-actions{border-color:var(--dk-border)!important;}
html[data-theme="dark"] body.papillon-market-screen .market-buy-button{border-color:var(--dk-border-strong)!important;background:var(--dk-surface-2)!important;color:var(--dk-accent)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-market-screen .market-buy-arrow{background:var(--dk-surface-3)!important;color:var(--dk-accent)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-market-screen .market-buy-button.added{border-color:#285447!important;background:#102820!important;color:#99ddbd!important;}
html[data-theme="dark"] body.papillon-market-screen :where(.market-product-brand,.market-product-category,.market-stock){color:var(--dk-muted)!important;}
html[data-theme="dark"] body.papillon-market-screen .price-stack strong{color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-market-screen .price-stack del{color:var(--dk-muted-2)!important;}
@media(hover:hover){html[data-theme="dark"] body.papillon-market-screen .market-product-card:hover{border-color:var(--dk-border-strong)!important;background:#0f2026!important;box-shadow:var(--dk-shadow)!important;}}

/* Catalog and filters. */
html[data-theme="dark"] body.papillon-catalog-screen :where(.shop-toolbar,.shop-filter,.catalog-filter-actions,.mobile-filter-toggle,.category-pills a){border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text-2)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-catalog-screen :where(.shop-filter input,.shop-filter select,.shop-toolbar select){border-color:var(--dk-border)!important;background:var(--dk-field)!important;color:var(--dk-text)!important;}
/* Catalog filter submit sits on the LIGHT teal accent in dark mode; its label
   must be dark ink, not white (white on #69c8c0 is ~1.98:1). */
html[data-theme="dark"] body.papillon-catalog-screen .catalog-filter-actions button{color:#06282c!important;}
html[data-theme="dark"] body.papillon-catalog-screen .category-pills a:hover{border-color:var(--dk-border-strong)!important;background:var(--dk-hover)!important;color:var(--dk-accent)!important;}

/* About + Contact: complete component-level coverage. */
html[data-theme="dark"] body.papillon-about-contact-screen :where(.about-page,.contact-page){background:var(--dk-canvas)!important;color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-about-contact-screen .content-page-hero{border-color:var(--dk-border)!important;background:linear-gradient(132deg,var(--dk-surface-2),var(--dk-surface-1) 58%,#13252a)!important;box-shadow:var(--dk-shadow-soft)!important;}
html[data-theme="dark"] body.papillon-about-contact-screen .content-page-hero::before{border-color:rgba(105,200,192,.055)!important;}
html[data-theme="dark"] body.papillon-about-contact-screen .content-page-hero::after{background:radial-gradient(circle,rgba(211,175,112,.20) 0 2px,transparent 3px) 0 0/17px 17px!important;}
html[data-theme="dark"] body.papillon-about-contact-screen .content-page-hero-copy h1{color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-about-contact-screen .content-page-hero-copy h1 em{color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-about-contact-screen :where(.content-page-hero-copy>p:not(.eyebrow),.about-story-copy>p:not(.eyebrow),.content-page-cta>div>p:not(.eyebrow),.contact-section-heading>p:last-child,.contact-help-card>p:not(.eyebrow)){color:var(--dk-muted)!important;}
html[data-theme="dark"] body.papillon-about-contact-screen :where(.content-page-proof,.about-checklist li,.about-stats>div,.contact-hero-card,.contact-channels article,.contact-form-card,.contact-help-card){border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;box-shadow:var(--dk-shadow-soft)!important;}
html[data-theme="dark"] body.papillon-about-contact-screen :where(.content-page-proof-icon,.contact-channel-icon,.faq-aside-icon){background:var(--dk-surface-3)!important;color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-about-contact-screen .about-story-media::before{border-color:var(--dk-border-strong)!important;}
html[data-theme="dark"] body.papillon-about-contact-screen .content-page-cta{border-color:var(--dk-border)!important;background:linear-gradient(135deg,var(--dk-surface-2),var(--dk-surface-1))!important;box-shadow:var(--dk-shadow-soft)!important;}
html[data-theme="dark"] body.papillon-about-contact-screen .contact-hero-card-icon{background:linear-gradient(145deg,var(--dk-surface-3),#1b302f)!important;color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-about-contact-screen :where(.contact-hero-card>p,.contact-help-link){border-color:var(--dk-border)!important;}
html[data-theme="dark"] body.papillon-about-contact-screen :where(.contact-channels strong,.contact-channels a,.contact-help-link,.contact-form-fields label){color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-about-contact-screen .contact-help-card{background:linear-gradient(145deg,var(--dk-surface-1),var(--dk-surface-2))!important;}
html[data-theme="dark"] body.papillon-about-contact-screen .contact-form-fields :where(input,select,textarea){border-color:var(--dk-border)!important;background:var(--dk-field)!important;color:var(--dk-text)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-about-contact-screen .contact-form-fields :where(input,select,textarea):focus{border-color:var(--dk-border-strong)!important;box-shadow:0 0 0 4px rgba(105,200,192,.08)!important;}
html[data-theme="dark"] body.papillon-about-contact-screen .contact-notice.is-success{border-color:#285447!important;background:#102820!important;color:#99ddbd!important;}
html[data-theme="dark"] body.papillon-about-contact-screen .contact-notice.is-error{border-color:#63333f!important;background:#2c171e!important;color:#ff9cad!important;}

/* About values band stays intentionally deeper than regular surfaces. */
html[data-theme="dark"] body.papillon-about-contact-screen .about-values-band{background:linear-gradient(130deg,#06171c,#0b2931 56%,#0c2026)!important;}
html[data-theme="dark"] body.papillon-about-contact-screen .about-value-grid article{border-color:rgba(105,200,192,.13)!important;background:rgba(255,255,255,.035)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.035)!important;}
html[data-theme="dark"] body.papillon-about-contact-screen .about-value-grid b{background:rgba(105,200,192,.10)!important;color:var(--dk-accent)!important;}

/* Legal / FAQ / privacy / shipping / returns / terms. */
html[data-theme="dark"] body.papillon-legal-screen .legal-page{color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-legal-screen .legal-hero{border-color:var(--dk-border)!important;background:linear-gradient(132deg,var(--dk-surface-2),var(--dk-surface-1) 62%,#13252a)!important;box-shadow:var(--dk-shadow-soft)!important;}
html[data-theme="dark"] body.papillon-legal-screen .legal-hero::before{border-color:rgba(105,200,192,.055)!important;}
html[data-theme="dark"] body.papillon-legal-screen :where(.legal-card,.legal-aside,.faq-item,.faq-hero-mark,.privacy-page .privacy-hero-icon){border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;box-shadow:var(--dk-shadow-soft)!important;}
html[data-theme="dark"] body.papillon-legal-screen .legal-aside{background:linear-gradient(145deg,var(--dk-surface-1),var(--dk-surface-2))!important;}
html[data-theme="dark"] body.papillon-legal-screen :where(.legal-aside>a,.faq-quick-links a,.faq-answer p){border-color:var(--dk-border)!important;color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-legal-screen .faq-item[open]{border-color:var(--dk-border-strong)!important;background:linear-gradient(180deg,var(--dk-surface-2),var(--dk-surface-1))!important;box-shadow:var(--dk-shadow-soft)!important;}
html[data-theme="dark"] body.papillon-legal-screen .faq-icon{border-color:var(--dk-border)!important;background:var(--dk-surface-3)!important;color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-legal-screen .faq-toggle{border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;}
html[data-theme="dark"] body.papillon-legal-screen .faq-toggle::before,
html[data-theme="dark"] body.papillon-legal-screen .faq-toggle::after{background:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-legal-screen :where(.legal-card p,.legal-card li,.faq-answer p,.legal-aside>p,.privacy-page p,.privacy-page li){color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-legal-screen .privacy-page .privacy-hero-icon{background:var(--dk-surface-3)!important;color:var(--dk-accent)!important;}

/* Blog index and archive. */
html[data-theme="dark"] :where(body.blog,body.papillon-blog-screen) .niazkala-blog-page{background:var(--dk-canvas)!important;color:var(--dk-text)!important;}
html[data-theme="dark"] :where(body.blog,body.papillon-blog-screen) :where(.niazkala-blog-hero,.niazkala-blog-archive-hero){border-color:var(--dk-border)!important;background:linear-gradient(132deg,var(--dk-surface-2),var(--dk-surface-1) 60%,#13252a)!important;box-shadow:var(--dk-shadow-soft)!important;}
html[data-theme="dark"] :where(body.blog,body.papillon-blog-screen) .niazkala-blog-hero::before{border-color:rgba(105,200,192,.055)!important;}
html[data-theme="dark"] :where(body.blog,body.papillon-blog-screen) .niazkala-blog-hero__media{background:var(--dk-media)!important;box-shadow:var(--dk-shadow)!important;}
html[data-theme="dark"] :where(body.blog,body.papillon-blog-screen) :where(.niazkala-blog-topics a,.niazkala-blog-section-head>span,.niazkala-blog-card,.niazkala-blog-pagination a,.niazkala-blog-pagination span,.niazkala-blog-empty,.niazkala-blog-skeleton__card){border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text-2)!important;box-shadow:none!important;}
html[data-theme="dark"] :where(body.blog,body.papillon-blog-screen) .niazkala-blog-card__media{background:linear-gradient(145deg,var(--dk-media),var(--dk-surface-2))!important;}
html[data-theme="dark"] :where(body.blog,body.papillon-blog-screen) .niazkala-blog-card__title a{color:var(--dk-text)!important;}
html[data-theme="dark"] :where(body.blog,body.papillon-blog-screen) :where(.niazkala-blog-card__excerpt,.niazkala-blog-card__meta,.niazkala-blog-archive-description){color:var(--dk-muted)!important;}
html[data-theme="dark"] :where(body.blog,body.papillon-blog-screen) .niazkala-blog-skeleton__card>*{background:linear-gradient(90deg,#13252b 25%,#1a3037 42%,#13252b 65%)!important;background-size:400% 100%!important;}

/* Generic content, article, search and 404. */
html[data-theme="dark"] body.papillon-generic-page-screen :where(.page-native-heading,.page-entry-content,.pap-rich-content),
html[data-theme="dark"] body.papillon-article-screen .pap-single-article,
html[data-theme="dark"] body.papillon-search-results-screen :where(.search-page-heading,.search-page-card,.search-page-empty),
html[data-theme="dark"] body.papillon-not-found-screen .pap-not-found-card{border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;box-shadow:var(--dk-shadow-soft)!important;}
html[data-theme="dark"] body.papillon-generic-page-screen .page-native-heading,
html[data-theme="dark"] body.papillon-search-results-screen .search-page-heading,
html[data-theme="dark"] body.papillon-not-found-screen .pap-not-found-card{background:linear-gradient(135deg,var(--dk-surface-2),var(--dk-surface-1))!important;}
html[data-theme="dark"] body.papillon-theme :where(.page-native-heading,.search-page-heading)::after{border-color:rgba(105,200,192,.08)!important;}
html[data-theme="dark"] body.papillon-article-screen .pap-article-header{background:linear-gradient(145deg,var(--dk-surface-2),var(--dk-surface-1))!important;}
html[data-theme="dark"] body.papillon-article-screen .pap-article-footer{border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-article-screen .pap-article-tags a{border-color:var(--dk-border)!important;background:var(--dk-surface-3)!important;color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-search-results-screen .search-page-card-media{background:var(--dk-media)!important;color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-search-results-screen .search-page-pagination :where(a,span){border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-not-found-screen .pap-not-found-code{color:#31545e!important;}

/* Homepage final surfaces, including files loaded late in light mode. */
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine{background:radial-gradient(circle at 92% 9%,rgba(105,200,192,.045),transparent 24%),linear-gradient(180deg,var(--dk-canvas),#081519)!important;color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine :where(.home-services,.home-service-card,.shortcut-grid a,.conversion-gateway-card,.home-purchase-pulse,.review-card,.home-order-guide,.home-order-steps li,.papillon-brand-item,.home-editorial-empty,.newsletter-form,.newsletter-input-shell,.newsletter-mark,.rail-actions button,.deal-all,.market-tabs button,.spotlight-list,.spotlight-list>a){border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine :where(.home-service-card,.conversion-gateway-card,.home-order-guide,.home-purchase-pulse){background:linear-gradient(145deg,var(--dk-surface-1),var(--dk-surface-2))!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .conversion-gateway-card.is-primary{border-color:#28545a!important;background:linear-gradient(155deg,#0a3037,#0d5156 70%,#0f6367)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine :where(.home-trend-tags a,.market-tabs button,.deal-all,.text-link){border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine :where(.market-tabs button.is-active,.home-trend-tags a:hover){border-color:var(--dk-border-strong)!important;background:var(--dk-hover)!important;color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .home-newsletter{border-color:var(--dk-border)!important;background:linear-gradient(155deg,#0a181d,#10252b 56%,#0b1b20)!important;box-shadow:var(--dk-shadow-soft)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .newsletter-input-shell{background:var(--dk-field)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .newsletter-input-shell input{background:transparent!important;color:var(--dk-text)!important;}

/* Product detail. Product image remains neutral; surrounding chrome is dark. */
html[data-theme="dark"] body.papillon-product-screen :where(.pap-product-gallery-column,.pap-product-summary-card,.pap-product-after-summary .woocommerce-tabs,.pap-product-after-summary :is(.related,.upsells),form.variations_form.cart,form.grouped_form,.quantity,.variable-item,.cfvsw-swatches-option,.swatch,table.shop_attributes){border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-product-screen div.product .woocommerce-product-gallery :where(.flex-viewport,.woocommerce-product-gallery__wrapper,.flex-control-thumbs li){border-color:var(--dk-media-border)!important;background:var(--dk-media)!important;}
html[data-theme="dark"] body.papillon-product-screen div.product .woocommerce-product-gallery__trigger{border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-accent)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-product-screen div.product :where(.variations select,.quantity .qty){border-color:var(--dk-border)!important;background:var(--dk-field)!important;color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-product-screen .pap-product-after-summary .woocommerce-tabs :where(ul.tabs,ul.tabs li,.woocommerce-Tabs-panel){border-color:var(--dk-border)!important;background:transparent!important;color:var(--dk-text-2)!important;}

/* Cart: classic + block + empty cart. */
html[data-theme="dark"] body.papillon-cart-screen :where(.woocommerce-cart-form,.cart_totals,.cross-sells,.shop_table.cart tbody>tr.cart_item,.shop_table.cart td.actions,.wc-block-cart__main,.wc-block-cart__sidebar,.wc-block-cart-items tr.wc-block-cart-items__row,.pap-empty-cart-benefits>span){border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-cart-screen :where(.shop_table.cart .quantity,.wc-block-components-quantity-selector,.shop_table.cart .product-remove a,.pap-empty-cart-secondary,.pap-cart-continue-shopping){border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-text-2)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-cart-screen :where(.shop_table.cart .quantity .qty,.shop_table.cart .coupon .input-text){border-color:var(--dk-border)!important;background:var(--dk-field)!important;color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart :where(th,td){border-color:var(--dk-border)!important;}

/* Checkout including saved/new-address transitions and payment notices. */
html[data-theme="dark"] body.papillon-checkout-screen :where(.checkout-shell,.woocommerce-form-login,.checkout_coupon,#customer_details .col-1,#customer_details .col-2,#order_review,#payment,.papillon-checkout-address-picker,.papillon-checkout-address-option,.woocommerce-order-overview,.woocommerce-order-details,.woocommerce-customer-details){border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-checkout-screen :where(#order_review_heading,#payment div.payment_box,.papillon-checkout-address-radio){border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-checkout-screen :where(.form-row .input-text,.form-row select,.select2-container .select2-selection--single){border-color:var(--dk-border)!important;background:var(--dk-field)!important;color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-checkout-screen :where(.woocommerce-checkout-review-order-table th,.woocommerce-checkout-review-order-table td,#payment ul.payment_methods,.woocommerce-privacy-policy-text){border-color:var(--dk-border)!important;color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-checkout-screen .woocommerce-checkout-payment .woocommerce-info,
html[data-theme="dark"] body.papillon-checkout-screen #payment .woocommerce-info{border-color:var(--dk-warning-border)!important;background:var(--dk-warning-bg)!important;color:var(--dk-warning-text)!important;}

/* Account/auth/address book/editor. */
html[data-theme="dark"] body.papillon-account-screen :where(.woocommerce-MyAccount-content,.papillon-profile-sidebar,.papillon-login-shell,.papillon-login-form,.papillon-password-recovery-shell,.profile-stat,.profile-data-card,.profile-data-grid>div,.profile-quick-links a,.support-options a,.woocommerce-orders-table,.woocommerce-order-details,.woocommerce-customer-details,.papillon-order-facts,.papillon-order-notes,.papillon-order-delivery-address,.papillon-address-book-summary,.papillon-address-book-card,.papillon-address-book-empty,.papillon-address-book-form){border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-account-screen :where(.account-nav-icon,.login-mark,.password-recovery-visual svg,.auth-benefit-list>span,.papillon-address-checkbox-ui,.papillon-address-edit-action,.papillon-address-default-form button,.papillon-address-form-actions .papillon-address-cancel){border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-accent)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-account-screen .papillon-address-book-form :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea){border-color:var(--dk-border)!important;background:var(--dk-field)!important;color:var(--dk-text)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-account-screen :where(.papillon-address-card-actions,.papillon-address-phone,.papillon-address-book-card>header,.woocommerce-orders-table th,.woocommerce-orders-table td){border-color:var(--dk-border)!important;}

/* Floating mobile navigation — final mode-specific styling. */
@media(max-width:700px){
  html[data-theme="dark"] body.papillon-theme .mobile-bottom-nav{border:1px solid var(--dk-border)!important;background:rgba(8,20,25,.96)!important;box-shadow:0 14px 38px rgba(0,0,0,.44),inset 0 1px 0 rgba(255,255,255,.025)!important;backdrop-filter:blur(20px) saturate(1.08)!important;-webkit-backdrop-filter:blur(20px) saturate(1.08)!important;}
  html[data-theme="dark"] body.papillon-theme .mobile-bottom-nav a{border-color:transparent!important;background:transparent!important;color:var(--dk-muted)!important;box-shadow:none!important;}
  html[data-theme="dark"] body.papillon-theme .mobile-bottom-nav a.is-active{border-color:#285058!important;background:linear-gradient(135deg,#13363c,#153f44)!important;color:#7ad4cc!important;box-shadow:inset 0 0 0 1px rgba(122,212,204,.035),0 6px 18px rgba(0,0,0,.18)!important;}
  html[data-theme="dark"] body.papillon-theme .mobile-bottom-nav a:focus-visible{outline-color:rgba(122,212,204,.48)!important;}
  html[data-theme="dark"] body.papillon-theme .mobile-bottom-nav :where(svg,.papillon-icon){color:currentColor!important;}

  /* Prevent late responsive white surfaces on all transactional mobile screens. */
  html[data-theme="dark"] body.papillon-theme :where(.woocommerce,.woocommerce-page) :where(.button:not(.alt),.input-text,select,textarea){border-color:var(--dk-border)!important;}
  html[data-theme="dark"] body.papillon-cart-screen :where(.shop_table.cart tbody>tr.cart_item,.shop_table.cart td.actions,.cart_totals,.cross-sells){background:var(--dk-surface-1)!important;}
  html[data-theme="dark"] body.papillon-checkout-screen :where(#customer_details .col-1,#customer_details .col-2,#order_review,#payment,.papillon-checkout-address-option){background:var(--dk-surface-1)!important;}
  html[data-theme="dark"] body.papillon-account-screen :where(.woocommerce-MyAccount-content,.papillon-profile-sidebar,.papillon-login-form,.papillon-address-book-card,.papillon-address-book-form){background:var(--dk-surface-1)!important;}
}

/* Absolute last anti-light-leak guard: only known UI surfaces, never media/images. */
html[data-theme="dark"] body.papillon-theme :where(
  .surface-card,
  .legal-card,.legal-aside,.faq-item,
  .contact-form-card,.contact-help-card,.contact-hero-card,.contact-channels article,
  .search-page-card,.search-page-empty,
  .pap-not-found-card,
  .niazkala-blog-card,.niazkala-blog-empty,
  .woocommerce-cart-form,.cart_totals,.cross-sells,
  #customer_details .col-1,#customer_details .col-2,#order_review,#payment,
  .woocommerce-MyAccount-content,.papillon-profile-sidebar,
  .papillon-address-book-card,.papillon-address-book-form
){border-color:var(--dk-border)!important;}

/* Small late surfaces caught by the final static light-leak scan. */
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .promo-card em{border-color:var(--dk-border)!important;background:rgba(12,25,30,.88)!important;color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .hero-ribbon{border-color:rgba(255,255,255,.13)!important;background:rgba(6,31,38,.58)!important;color:#eef7f7!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .hero-quick-links a{border-color:rgba(255,255,255,.13)!important;background:rgba(6,31,38,.34)!important;color:#eaf3f4!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .hero-quick-links a:hover{border-color:rgba(105,200,192,.34)!important;background:rgba(15,99,103,.30)!important;color:#fff!important;}

/* ========================================================================== 
   Final visual QA — account, legal, footer, cart, checkout and product cards
   ========================================================================== */
html[data-theme="dark"] body.papillon-account-screen .papillon-address-summary-note-icon{
  border-color:var(--dk-border)!important;
  background:rgba(112,207,198,.10)!important;
  color:var(--dk-accent)!important;
}
html[data-theme="dark"] body.papillon-account-screen .papillon-address-summary-note small{color:var(--dk-muted)!important;}
html[data-theme="dark"] body.papillon-account-screen .account-password-section{
  border-color:var(--dk-border)!important;
  background:var(--dk-surface-2)!important;
  color:var(--dk-text)!important;
}
html[data-theme="dark"] body.papillon-account-screen .account-password-heading{border-color:var(--dk-border)!important;}
html[data-theme="dark"] body.papillon-account-screen .account-password-icon{
  background:rgba(112,207,198,.10)!important;
  color:var(--dk-accent)!important;
}
html[data-theme="dark"] body.papillon-account-screen .account-password-heading h3{color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-account-screen .account-password-heading p{color:var(--dk-muted)!important;}

html[data-theme="dark"] body.papillon-legal-screen .legal-hero-icon{
  border-color:var(--dk-border)!important;
  background:var(--dk-surface-3)!important;
  color:var(--dk-accent)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.papillon-legal-screen .legal-hero-copy h1{color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-legal-screen .legal-hero-copy>p:not(.eyebrow){color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-legal-screen .legal-card :where(h2,h3,strong){color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-legal-screen .legal-aside>a:hover{border-color:var(--dk-border-strong)!important;background:var(--dk-hover)!important;color:var(--dk-accent)!important;}

/* Footer: dark mode uses hierarchy and separators, not a stack of boxed panels. */
html[data-theme="dark"] body.papillon-theme .site-footer{
  border-color:#203a43!important;
  background:linear-gradient(145deg,#05161b,#07272f 58%,#061b21)!important;
  color:var(--dk-text-2)!important;
}
html[data-theme="dark"] body.papillon-theme .site-footer .footer-grid>div{
  border-color:transparent!important;
  background:transparent!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.papillon-theme .site-footer .brand-light{
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.papillon-theme .site-footer :where(.brand-logo-image,.footer-logo-image){
  filter:brightness(1.55) saturate(.9) contrast(1.06)!important;
  opacity:1!important;
}
html[data-theme="dark"] body.papillon-theme .site-footer :where(.footer-grid h4,.footer-social-copy strong){color:#f5f9f9!important;}
html[data-theme="dark"] body.papillon-theme .site-footer :where(.footer-grid a,.footer-grid span,.footer-brand>p,.footer-social-copy span){color:#bccbce!important;}
html[data-theme="dark"] body.papillon-theme .site-footer .footer-grid a:hover{color:#fff!important;}
html[data-theme="dark"] body.papillon-theme .site-footer :where(.footer-badges,.footer-social-row){
  border-color:rgba(112,207,198,.11)!important;
  background:transparent!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.papillon-theme .site-footer :where(.footer-socials a,.social-links a){
  border-color:#2d4b54!important;
  background:#0d252c!important;
  color:#d8e5e6!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.papillon-theme .site-footer :where(.footer-socials a,.social-links a):hover{
  border-color:#44717a!important;
  background:#123139!important;
  color:var(--dk-accent)!important;
}
@media(max-width:700px){
  html[data-theme="dark"] body.papillon-theme .site-footer .footer-grid{gap:0!important;}
  html[data-theme="dark"] body.papillon-theme .site-footer .footer-grid>div{
    padding:17px 4px!important;
    border:0!important;
    border-bottom:1px solid rgba(112,207,198,.10)!important;
    border-radius:0!important;
  }
  html[data-theme="dark"] body.papillon-theme .site-footer .footer-grid>div:last-child{border-bottom:0!important;}
  html[data-theme="dark"] body.papillon-theme .site-footer .footer-grid h4{border-bottom-color:rgba(112,207,198,.08)!important;}
}

/* Cart action bar and checkout messages must keep contrast in dark mode. */
html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart td.actions{
  border-color:var(--dk-border)!important;
  background:var(--dk-surface-1)!important;
}
html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart .coupon .input-text{
  border-color:var(--dk-border)!important;
  background:var(--dk-field)!important;
  color:var(--dk-text)!important;
}
html[data-theme="dark"] body.papillon-checkout-screen #payment .woocommerce-info{
  border-color:var(--dk-border)!important;
  background:var(--dk-surface-3)!important;
  color:var(--dk-text-2)!important;
}

/* Product cards: eliminate light internal separators in dark mode. */
html[data-theme="dark"] body.papillon-market-screen .market-product-card,
html[data-theme="dark"] body.papillon-front-screen .market-product-card{
  border-color:var(--dk-border)!important;
  background:var(--dk-surface-1)!important;
}
html[data-theme="dark"] body.papillon-market-screen .market-product-card :where(.market-product-price,.market-product-actions,.market-product-copy),
html[data-theme="dark"] body.papillon-front-screen .market-product-card :where(.market-product-price,.market-product-actions,.market-product-copy){
  border-color:var(--dk-border)!important;
}
html[data-theme="dark"] body.papillon-market-screen .market-product-card :where(hr,.separator),
html[data-theme="dark"] body.papillon-front-screen .market-product-card :where(hr,.separator){border-color:var(--dk-border)!important;background:var(--dk-border)!important;}

/* Final footer hierarchy: no boxed-column appearance in dark mode. */
html[data-theme="dark"] body.papillon-theme .site-footer .footer-grid>div{
  padding-inline:0!important;
  border-inline:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.papillon-theme .site-footer .footer-badge{
  border-color:rgba(105,200,192,.12)!important;
  background:rgba(105,200,192,.05)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.papillon-theme .site-footer .footer-badge-icon{
  background:rgba(105,200,192,.09)!important;
  color:var(--dk-accent)!important;
}
html[data-theme="dark"] body.papillon-theme .site-footer .footer-badge-label{
  color:#d7e2e4!important;
}
html[data-theme="dark"] body.papillon-theme .site-footer .footer-contact-icon{
  color:var(--dk-accent)!important;
}
/* Trust badges + the support column (added with the four-slot badge work).
   The footer is dark in both themes, so these rules only mirror the teal accent
   and give the hover states a surface the light rules cannot paint: in dark mode
   the `.footer-badge` background above is `!important`, so a plain
   `.footer-badge:hover` would never show. */
html[data-theme="dark"] body.papillon-theme .site-footer .footer-contact-badge{
  border-color:rgba(105,200,192,.14)!important;
  background:rgba(105,200,192,.06)!important;
  color:#cfe6e4!important;
}
html[data-theme="dark"] body.papillon-theme .site-footer a.footer-contact-line{
  border-color:rgba(105,200,192,.13)!important;
  background:rgba(105,200,192,.045)!important;
}
html[data-theme="dark"] body.papillon-theme .site-footer a.footer-contact-line:hover{
  border-color:rgba(105,200,192,.30)!important;
  background:rgba(105,200,192,.11)!important;
}
html[data-theme="dark"] body.papillon-theme .site-footer .footer-contact-value{
  color:#e2eef0!important;
}
html[data-theme="dark"] body.papillon-theme .site-footer .footer-support-cta{
  border-color:rgba(105,200,192,.30)!important;
  background:rgba(105,200,192,.10)!important;
  color:#eaf6f5!important;
}
html[data-theme="dark"] body.papillon-theme .site-footer .footer-support-cta:hover{
  border-color:rgba(216,183,123,.45)!important;
  background:rgba(105,200,192,.17)!important;
  color:#fff!important;
}
html[data-theme="dark"] body.papillon-theme .site-footer .footer-legal{
  border-top-color:rgba(105,200,192,.10)!important;
}
html[data-theme="dark"] body.papillon-theme .site-footer .footer-legal a{
  border-color:rgba(105,200,192,.14)!important;
  background:rgba(105,200,192,.05)!important;
}
html[data-theme="dark"] body.papillon-theme .site-footer .footer-legal a:hover{
  border-color:rgba(105,200,192,.32)!important;
  background:rgba(105,200,192,.12)!important;
  color:#fff!important;
}
html[data-theme="dark"] body.papillon-theme .site-footer a.footer-badge:hover{
  border-color:rgba(216,183,123,.42)!important;
  background:rgba(105,200,192,.12)!important;
}
html[data-theme="dark"] body.papillon-theme .site-footer .footer-badge-embed{
  border-color:transparent!important;
  background:transparent!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.papillon-theme .site-footer .footer-social-row{
  border-top-color:rgba(105,200,192,.10)!important;
  border-bottom:0!important;
  border-radius:0!important;
  background:transparent!important;
}
@media(max-width:700px){
  html[data-theme="dark"] body.papillon-theme .site-footer .footer-grid>div{
    padding:16px 0!important;
    border:0!important;
    border-bottom:1px solid rgba(105,200,192,.09)!important;
  }
  html[data-theme="dark"] body.papillon-theme .site-footer .footer-brand{padding-top:0!important;}
}

/* Final third-party notice + address-field dark coverage. */
html[data-theme="dark"] body.papillon-theme :where(.wc-block-components-notice-banner,.elementor-message,.wpcf7-response-output){
  border-color:var(--dk-border)!important;
  background:var(--dk-surface-2)!important;
  color:var(--dk-text)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.papillon-theme :where(.elementor-message-danger,.wpcf7 form.invalid .wpcf7-response-output,.wpcf7 form.failed .wpcf7-response-output){
  border-color:var(--dk-danger-border)!important;
  background:var(--dk-danger-bg)!important;
  color:var(--dk-danger-text)!important;
}
html[data-theme="dark"] body.papillon-account-screen .papillon-address-book-form .woocommerce-address-fields__field-wrapper{
  background:transparent!important;
}
html[data-theme="dark"] body.papillon-account-screen .papillon-address-book-form :where(.select2-container--focus,.select2-container--open) .select2-selection--single{
  border-color:var(--dk-border-strong)!important;
  background:var(--dk-field)!important;
  color:var(--dk-text)!important;
  box-shadow:0 0 0 4px rgba(105,200,192,.09)!important;
}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .hero-actions .btn.primary{
  border-color:transparent!important;
  background:linear-gradient(135deg,#c8a461,#d8ba7d)!important;
  color:#102127!important;
}
/* Product-card price spacing stays clean in dark mode; no bright divider line. */
html[data-theme="dark"] body.papillon-market-screen .market-product-card .market-product-price{
  border-top:0!important;
}

/* Footer final dark hierarchy: no card-within-card surfaces. */
html[data-theme="dark"] body.papillon-theme .site-footer .footer-badges{
  margin-top:0!important;
  border-top:1px solid rgba(112,207,198,.10)!important;
  background:transparent!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.papillon-theme .site-footer .footer-social-row{
  padding-inline:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

/* Final search and Checkout Block surface coverage. */
html[data-theme="dark"] body.papillon-theme .papillon-search-result-media{
  border-color:var(--dk-border)!important;
  background:var(--dk-surface-3)!important;
  color:var(--dk-accent)!important;
}
html[data-theme="dark"] body.papillon-checkout-screen .wc-block-components-order-summary-item{
  border-bottom-color:var(--dk-border)!important;
  background:transparent!important;
  color:var(--dk-text)!important;
}

/* Final control/detail integrity: retain affordances and contrast in dark mode. */
html[data-theme="dark"] body.papillon-theme select,
html[data-theme="dark"] body.papillon-theme .woocommerce select{
  background-color:var(--dk-field)!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2370cfc6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:left 15px center!important;
  background-size:14px!important;
}
html[data-theme="dark"] body.papillon-theme :where(input,textarea):-webkit-autofill,
html[data-theme="dark"] body.papillon-theme :where(input,textarea):-webkit-autofill:hover,
html[data-theme="dark"] body.papillon-theme :where(input,textarea):-webkit-autofill:focus{
  -webkit-text-fill-color:var(--dk-text)!important;
  caret-color:var(--dk-text)!important;
  box-shadow:0 0 0 1000px var(--dk-field) inset!important;
  border-color:var(--dk-border)!important;
}
html[data-theme="dark"] body.papillon-theme ::selection{background:rgba(112,207,198,.28);color:#fff;}
html[data-theme="dark"] body.papillon-theme .site-footer :where(.brand-logo-image,.footer-logo-image){filter:brightness(1.85) saturate(.82) contrast(1.04)!important;}

/* Auth decoration is explicitly color-mode aware; no light translucent surface leaks. */
html[data-theme="dark"] body.papillon-account-screen .papillon-login-aside::after{
  border-color:rgba(112,207,198,.10)!important;
  background:rgba(112,207,198,.035)!important;
}

/* Search empty-state mark uses an explicit dark token so static surface coverage is complete. */
html[data-theme="dark"] body.papillon-theme .papillon-search-empty-mark{
  background:var(--dk-accent-fill)!important;
  color:#fff!important;
  box-shadow:0 10px 26px rgba(0,0,0,.24)!important;
}

/* Final explicit coverage for legacy light surfaces that may be emitted by
 * WooCommerce Blocks or older account/home markup. Keep these selectors
 * explicit so no upstream light gradient can win at any breakpoint. */
html[data-theme="dark"] body.papillon-account-screen .account-page-heading{
  border-color:var(--dk-border)!important;
  background:transparent!important;
  color:var(--dk-text)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.papillon-account-screen .profile-welcome{
  border-color:var(--dk-border)!important;
  background:linear-gradient(135deg,var(--dk-surface-2),var(--dk-surface-1))!important;
  color:var(--dk-text)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.papillon-account-screen .wallet-state{
  border-color:var(--dk-border)!important;
  background:transparent!important;
  color:var(--dk-text)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .papillon-brand-marquee{
  border-color:var(--dk-border)!important;
  background:linear-gradient(90deg,transparent,var(--dk-surface-1) 8%,var(--dk-surface-1) 92%,transparent)!important;
}
html[data-theme="dark"] body.papillon-checkout-screen :where(.wc-block-components-checkout-step,.wc-block-checkout__sidebar){
  border-color:var(--dk-border)!important;
  background:linear-gradient(180deg,var(--dk-surface-1),var(--dk-surface-2))!important;
  color:var(--dk-text)!important;
  box-shadow:none!important;
}

/* ========================================================================== 
   Cart system — final dark contract
   ========================================================================== */
html[data-theme="dark"] body.papillon-cart-screen .papillon-cart-hero{
  border-color:var(--dk-border)!important;
  background:
    radial-gradient(circle at 92% 18%,rgba(211,175,112,.08),transparent 28%),
    linear-gradient(135deg,var(--dk-surface-2),var(--dk-surface-1))!important;
  box-shadow:var(--dk-shadow-soft)!important;
}
html[data-theme="dark"] body.papillon-cart-screen .papillon-cart-hero h1{color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-cart-screen .papillon-cart-hero>div>p:last-child{color:var(--dk-muted)!important;}
html[data-theme="dark"] body.papillon-cart-screen .papillon-cart-hero .eyebrow{color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-cart-screen .papillon-cart-hero .checkout-progress li{
  border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-muted)!important;
}
html[data-theme="dark"] body.papillon-cart-screen .papillon-cart-hero .checkout-progress li>span{background:var(--dk-surface-3)!important;color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-cart-screen .papillon-cart-hero .checkout-progress li.is-current{
  border-color:rgba(112,207,198,.24)!important;background:rgba(112,207,198,.08)!important;color:var(--dk-accent)!important;
}
html[data-theme="dark"] body.papillon-cart-screen .papillon-cart-hero .checkout-progress li.is-current>span{background:var(--dk-accent-fill)!important;color:#fff!important;}

html[data-theme="dark"] body.papillon-cart-screen .woocommerce-cart-form,
html[data-theme="dark"] body.papillon-cart-screen .cart_totals,
html[data-theme="dark"] body.papillon-cart-screen .cross-sells,
html[data-theme="dark"] body.papillon-cart-screen .wc-block-cart__main,
html[data-theme="dark"] body.papillon-cart-screen .wc-block-cart__sidebar,
html[data-theme="dark"] body.papillon-cart-screen .pap-empty-cart{
  border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;color:var(--dk-text)!important;box-shadow:var(--dk-shadow-soft)!important;
}
html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart thead th{border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-muted)!important;}
html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart tbody tr.cart_item td{border-color:var(--dk-border)!important;background:transparent!important;color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart .product-name>a{color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart :where(.product-price,.product-subtotal){color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart .product-subtotal{color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart .product-thumbnail a,
html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart .product-remove a,
html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart .quantity.pap-cart-quantity,
html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart .quantity.pap-cart-quantity .qty,
html[data-theme="dark"] body.papillon-cart-screen .pap-cart-quantity-button,
html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart .coupon .input-text,
html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart .actions :is(.button,.pap-cart-continue-shopping),
html[data-theme="dark"] body.papillon-cart-screen .cart_totals .shipping-calculator-form :is(input,select){
  border-color:var(--dk-border)!important;background:var(--dk-field)!important;color:var(--dk-text)!important;box-shadow:none!important;
}
html[data-theme="dark"] body.papillon-cart-screen .pap-cart-quantity-button{background:var(--dk-surface-2)!important;color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart .quantity.pap-cart-quantity .qty{border-inline-color:var(--dk-border)!important;}
html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart .product-remove a{background:var(--dk-surface-2)!important;color:#f08ca3!important;}
html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart td.actions{border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;}
html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart .coupon .button,
html[data-theme="dark"] body.papillon-cart-screen .cart_totals .checkout-button,
html[data-theme="dark"] body.papillon-cart-screen .wc-block-cart__submit-button{border-color:transparent!important;background:var(--dk-accent-fill)!important;color:#fff!important;}
html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart button[name="update_cart"]{border-color:var(--dk-border)!important;background:var(--dk-surface-3)!important;color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-cart-screen .cart_totals{background:linear-gradient(180deg,var(--dk-surface-1),var(--dk-surface-2))!important;}
html[data-theme="dark"] body.papillon-cart-screen .cart_totals h2,
html[data-theme="dark"] body.papillon-cart-screen .cross-sells>h2,
html[data-theme="dark"] body.papillon-cart-screen .pap-empty-cart-copy h2{border-color:var(--dk-border)!important;color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-cart-screen .cart_totals table :where(th,td){border-color:var(--dk-border)!important;background:transparent!important;color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-cart-screen .cart_totals table th,
html[data-theme="dark"] body.papillon-cart-screen .pap-empty-cart-copy>p:last-child{color:var(--dk-muted)!important;}
html[data-theme="dark"] body.papillon-cart-screen .cart_totals .order-total :where(th,td){color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-cart-screen .cart_totals .order-total td{color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-cart-screen .pap-empty-cart-benefits>span,
html[data-theme="dark"] body.papillon-cart-screen .pap-empty-cart-secondary{border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-cart-screen .pap-empty-cart-icon{border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-accent)!important;}

@media(max-width:700px){
  html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart tbody>tr.cart_item{
    border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;box-shadow:none!important;
  }
  html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart td.actions{
    border-color:var(--dk-border)!important;background:var(--dk-surface-1)!important;
  }
}

/* ========================================================================== 
   Transactional surfaces — final no-light-leak contract
   These four screens are high-interaction areas. Their page-local light-mode
   tokens and legacy hard-coded surfaces are normalized here, after every other
   stylesheet, so a white card/gradient cannot leak into dark mode.
   ========================================================================== */

/* Account ------------------------------------------------------------------ */
html[data-theme="dark"] body.papillon-account-screen{
  --account-accent:var(--dk-accent);
  --account-accent-strong:#8bdad4;
  --account-gold:var(--dk-gold);
  --account-ink:var(--dk-text);
  --account-text:var(--dk-text-2);
  --account-muted:var(--dk-muted);
  --account-surface:var(--dk-surface-1);
  --account-soft:var(--dk-surface-2);
  --account-soft-2:var(--dk-surface-2);
  --account-line:var(--dk-border);
  --account-line-soft:var(--dk-border-soft);
  --account-shadow:var(--dk-shadow-soft);
  background:var(--dk-canvas)!important;
}
html[data-theme="dark"] body.papillon-account-screen .papillon-account-page{
  background:linear-gradient(180deg,var(--dk-canvas) 0%,var(--dk-canvas-2) 100%)!important;
  color:var(--dk-text-2)!important;
}
html[data-theme="dark"] body.papillon-account-screen :where(
  .woocommerce-MyAccount-content,
  .papillon-profile-sidebar,
  .profile-stat,
  .profile-data-card,
  .profile-data-grid>div,
  .profile-quick-links>a,
  .papillon-saved-address-card,
  .woocommerce-orders-table,
  .woocommerce-order-details,
  .woocommerce-customer-details,
  .account-support-intro,
  .support-options>a,
  .papillon-login-shell,
  .papillon-login-form,
  .papillon-password-recovery-shell,
  .account-form-heading,
  .papillon-order-facts,
  .papillon-order-notes,
  .papillon-order-native-details .woocommerce-order-details,
  .papillon-order-delivery-address,
  .papillon-address-book-summary,
  .papillon-address-book-card,
  .papillon-address-book-empty,
  .papillon-address-book-form,
  .account-password-section
){
  border-color:var(--dk-border)!important;
  background:var(--dk-surface-1)!important;
  color:var(--dk-text)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.papillon-account-screen :where(
  .profile-sidebar-user,
  .profile-welcome,
  .wallet-balance,
  .login-tabs,
  .register-hint,
  .woocommerce-order-overview li,
  .woocommerce-customer-details .woocommerce-column,
  .woocommerce-orders-table thead th,
  .woocommerce-table--order-details thead th,
  .account-password-heading,
  .papillon-address-summary-note
){
  border-color:var(--dk-border)!important;
  background:var(--dk-surface-2)!important;
  color:var(--dk-text-2)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.papillon-account-screen .profile-welcome{
  background:linear-gradient(135deg,var(--dk-surface-2),var(--dk-surface-1))!important;
}
html[data-theme="dark"] body.papillon-account-screen :where(
  .account-nav-icon,
  .papillon-account-nav a.is-active .account-nav-icon,
  .profile-edit-link,
  .papillon-saved-address-card header>a,
  .woocommerce-orders-table__cell-order-actions .button,
  .account-nav-toggle,
  .papillon-address-compact-action,
  .papillon-address-edit-action,
  .papillon-address-default-form button,
  .papillon-address-cancel,
  .auth-benefit-list>span,
  .login-mark,
  .password-recovery-visual svg,
  .account-password-icon
){
  border-color:var(--dk-border)!important;
  background:var(--dk-surface-2)!important;
  color:var(--dk-accent)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.papillon-account-screen .papillon-account-nav a{
  border-color:transparent!important;
  background:transparent!important;
  color:var(--dk-text-2)!important;
}
html[data-theme="dark"] body.papillon-account-screen .papillon-account-nav a:hover{
  border-color:var(--dk-border)!important;
  background:var(--dk-hover)!important;
  color:var(--dk-text)!important;
}
html[data-theme="dark"] body.papillon-account-screen .papillon-account-nav a.is-active{
  border-color:rgba(105,200,192,.32)!important;
  background:#102d33!important;
  color:#8bdad4!important;
}
html[data-theme="dark"] body.papillon-account-screen .papillon-account-nav .woocommerce-MyAccount-navigation-link--customer-logout,
html[data-theme="dark"] body.papillon-account-screen .papillon-account-nav .woocommerce-MyAccount-navigation-link--customer-logout:hover{
  border-top-color:var(--dk-danger-border)!important;
  background:transparent!important;
  color:var(--dk-danger-text)!important;
}
html[data-theme="dark"] body.papillon-account-screen .papillon-account-nav .woocommerce-MyAccount-navigation-link--customer-logout .account-nav-icon{
  border-color:var(--dk-danger-border)!important;
  background:var(--dk-danger-bg)!important;
  color:var(--dk-danger-text)!important;
}
html[data-theme="dark"] body.papillon-account-screen :where(
  .woocommerce-MyAccount-content input.input-text,
  .woocommerce-MyAccount-content input[type="text"],
  .woocommerce-MyAccount-content input[type="email"],
  .woocommerce-MyAccount-content input[type="tel"],
  .woocommerce-MyAccount-content input[type="password"],
  .woocommerce-MyAccount-content input[type="number"],
  .woocommerce-MyAccount-content textarea,
  .woocommerce-MyAccount-content select,
  .papillon-login-form .auth-field .input-text,
  .password-recovery-form .input-text,
  .papillon-address-label-field input,
  .papillon-address-book-form input:not([type="checkbox"]):not([type="radio"]),
  .papillon-address-book-form textarea,
  .papillon-address-book-form select
){
  border-color:var(--dk-border)!important;
  background:var(--dk-field)!important;
  color:var(--dk-text)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.papillon-account-screen :where(.woocommerce-orders-table tr,.woocommerce-orders-table td,.woocommerce-table--order-details th,.woocommerce-table--order-details td){
  border-color:var(--dk-border)!important;
  background:transparent!important;
  color:var(--dk-text-2)!important;
}
html[data-theme="dark"] body.papillon-account-screen .woocommerce-orders-table tbody tr:hover td{background:var(--dk-hover)!important;}
html[data-theme="dark"] body.papillon-account-screen :where(.profile-sidebar-user strong,.profile-welcome h2,.profile-data-card h3,.profile-data-grid strong,.papillon-saved-address-card h3,.woocommerce-order-details__title,.woocommerce-column__title,.account-support-panel h2,.account-form-heading h2,.account-password-heading h3){color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-account-screen :where(.profile-sidebar-user small,.profile-welcome p:not(.eyebrow),.profile-data-grid span,.profile-quick-links small,.papillon-saved-address-card address,.account-password-heading p,.address-not-set){color:var(--dk-muted)!important;}
@media(max-width:960px){
  html[data-theme="dark"] body.papillon-account-screen .papillon-profile-sidebar[data-account-nav-state="expanded"] .papillon-account-nav a,
  html[data-theme="dark"] body.papillon-account-screen .papillon-profile-sidebar.is-expanded .papillon-account-nav a{
    border-color:var(--dk-border)!important;
    background:var(--dk-surface-2)!important;
    color:var(--dk-text-2)!important;
  }
  html[data-theme="dark"] body.papillon-account-screen .papillon-profile-sidebar[data-account-nav-state="expanded"] .papillon-account-nav a.is-active,
  html[data-theme="dark"] body.papillon-account-screen .papillon-profile-sidebar.is-expanded .papillon-account-nav a.is-active{
    border-color:rgba(105,200,192,.32)!important;
    background:#102d33!important;
    color:#8bdad4!important;
  }
}

/* Single product ----------------------------------------------------------- */
html[data-theme="dark"] body.papillon-product-screen{
  background:var(--dk-canvas)!important;
}
html[data-theme="dark"] body.papillon-product-screen :where(.pap-product-page,.pap-product-content,.pap-single-product-main,.pap-product-after-summary){
  background:transparent!important;
  color:var(--dk-text-2)!important;
}
html[data-theme="dark"] body.papillon-product-screen :where(
  .pap-product-gallery-column,
  div.product .pap-product-summary-card,
  div.product form.variations_form.cart,
  div.product form.grouped_form,
  div.product.product-type-simple form.cart,
  div.product .woocommerce-variation-add-to-cart,
  .pap-product-after-summary .woocommerce-tabs,
  .pap-product-after-summary .woocommerce-Tabs-panel,
  #reviews #comments,
  #reviews #review_form_wrapper,
  #reviews #comments ol.commentlist li .comment-text,
  table.shop_attributes
){
  border-color:var(--dk-border)!important;
  background:var(--dk-surface-1)!important;
  color:var(--dk-text)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.papillon-product-screen .pap-product-gallery-column{
  background:linear-gradient(145deg,var(--dk-surface-2),var(--dk-surface-1))!important;
}
html[data-theme="dark"] body.papillon-product-screen div.product .woocommerce-product-gallery :where(.flex-viewport,.woocommerce-product-gallery__wrapper,.flex-control-thumbs li){
  border-color:var(--dk-media-border)!important;
  background:var(--dk-media)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.papillon-product-screen div.product .woocommerce-product-gallery__trigger{
  border-color:var(--dk-border)!important;
  background:rgba(12,25,30,.94)!important;
  color:var(--dk-accent)!important;
  box-shadow:var(--dk-shadow-soft)!important;
}
html[data-theme="dark"] body.papillon-product-screen div.product :where(p.price,span.price,.woocommerce-variation-price,.woocommerce-variation-availability){
  border-color:var(--dk-border)!important;
  background:var(--dk-surface-2)!important;
  color:var(--dk-text)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.papillon-product-screen div.product :where(
  .quantity,
  .quantity.pap-quantity-enhanced,
  .quantity .qty,
  form.cart .variations select,
  .reset_variations,
  .variable-item,
  .cfvsw-swatches-option,
  .swatch
){
  border-color:var(--dk-border)!important;
  background:var(--dk-field)!important;
  color:var(--dk-text)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.papillon-product-screen div.product :where(.product_meta>span,.woocommerce-variation-description,.stock,.woocommerce-product-details__short-description){
  border-color:var(--dk-border)!important;
  color:var(--dk-text-2)!important;
}
html[data-theme="dark"] body.papillon-product-screen .pap-product-after-summary .woocommerce-tabs ul.tabs{
  border-color:var(--dk-border)!important;
  background:var(--dk-surface-2)!important;
}
html[data-theme="dark"] body.papillon-product-screen .pap-product-after-summary .woocommerce-tabs ul.tabs li,
html[data-theme="dark"] body.papillon-product-screen .pap-product-after-summary .woocommerce-tabs ul.tabs li a{
  border-color:var(--dk-border)!important;
  background:transparent!important;
  color:var(--dk-muted)!important;
}
html[data-theme="dark"] body.papillon-product-screen .pap-product-after-summary .woocommerce-tabs ul.tabs li.active a{
  background:var(--dk-surface-3)!important;
  color:var(--dk-accent)!important;
}
html[data-theme="dark"] body.papillon-product-screen table.shop_attributes :where(th,td),
html[data-theme="dark"] body.papillon-product-screen table.shop_attributes tr:nth-child(even) :where(th,td){
  border-color:var(--dk-border)!important;
  background:var(--dk-surface-2)!important;
  color:var(--dk-text-2)!important;
}
html[data-theme="dark"] body.papillon-product-screen #review_form_wrapper :where(input:not([type="submit"]),textarea){
  border-color:var(--dk-border)!important;
  background:var(--dk-field)!important;
  color:var(--dk-text)!important;
}
/* Related/up-sell cards share marketplace markup on the single-product page. */
html[data-theme="dark"] body.papillon-product-screen :where(.related,.upsells) .market-product-card{
  border-color:var(--dk-border)!important;
  background:var(--dk-surface-1)!important;
  color:var(--dk-text)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.papillon-product-screen :where(.related,.upsells) .market-product-image{border-color:var(--dk-media-border)!important;background:var(--dk-media)!important;}
html[data-theme="dark"] body.papillon-product-screen :where(.related,.upsells) .market-product-price{border-top-color:var(--dk-border)!important;}

/* Cart --------------------------------------------------------------------- */
html[data-theme="dark"] body.papillon-cart-screen{
  --cart-line:var(--dk-border);
  --cart-line-soft:var(--dk-border-soft);
  --cart-surface:var(--dk-surface-1);
  --cart-surface-soft:var(--dk-surface-2);
  --cart-ink:var(--dk-text);
  --cart-text:var(--dk-text-2);
  --cart-muted:var(--dk-muted);
  --cart-accent:var(--dk-accent);
  --cart-accent-strong:#8bdad4;
  --cart-gold:var(--dk-gold);
  background:var(--dk-canvas)!important;
}
html[data-theme="dark"] body.papillon-cart-screen :where(.cart-page-shell,.papillon-cart-content,.papillon-cart-content>.woocommerce,.cart-collaterals){background:transparent!important;color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-cart-screen :where(
  .woocommerce-cart-form,
  .cart_totals,
  .cross-sells,
  .shop_table.cart tbody>tr.cart_item,
  .shop_table.cart td.actions,
  .wc-block-cart__main,
  .wc-block-cart__sidebar,
  .wc-block-cart-items tr.wc-block-cart-items__row,
  .pap-empty-cart
){
  border-color:var(--dk-border)!important;
  background:var(--dk-surface-1)!important;
  color:var(--dk-text)!important;
  box-shadow:none!important;
}
/* Cart accent token flips to LIGHT teal in dark mode, so its white label must
   flip to dark ink (white on #69c8c0 is ~1.98:1). */
html[data-theme="dark"] body.papillon-cart-screen .woocommerce .pap-empty-cart-primary{color:#06282c!important;}
html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart{
  border-color:var(--dk-border)!important;
  background:transparent!important;
}
html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart thead th{
  border-color:var(--dk-border)!important;
  background:var(--dk-surface-2)!important;
  color:var(--dk-muted)!important;
}
html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart tbody tr.cart_item td{
  border-color:var(--dk-border-soft)!important;
  background:transparent!important;
  color:var(--dk-text-2)!important;
}
html[data-theme="dark"] body.papillon-cart-screen :where(
  .shop_table.cart .product-thumbnail>a,
  .shop_table.cart .product-remove>a,
  .shop_table.cart .quantity.pap-cart-quantity,
  .pap-cart-quantity-button,
  .shop_table.cart .actions :is(.button,.pap-cart-continue-shopping),
  .pap-empty-cart-benefits>span,
  .pap-empty-cart-secondary
){
  border-color:var(--dk-border)!important;
  background:var(--dk-surface-2)!important;
  color:var(--dk-text-2)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.papillon-cart-screen :where(.shop_table.cart .quantity .qty,.shop_table.cart .coupon .input-text,.cart_totals .shipping-calculator-form input,.cart_totals .shipping-calculator-form select){
  border-color:var(--dk-border)!important;
  background:var(--dk-field)!important;
  color:var(--dk-text)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.papillon-cart-screen .shop_table.cart td.actions{
  border-color:var(--dk-border)!important;
  background:var(--dk-surface-2)!important;
}
html[data-theme="dark"] body.papillon-cart-screen .cart_totals{
  background:linear-gradient(180deg,var(--dk-surface-1),var(--dk-surface-2))!important;
}
html[data-theme="dark"] body.papillon-cart-screen .cart_totals :where(table,tbody,tr,th,td){
  border-color:var(--dk-border)!important;
  background:transparent!important;
  color:var(--dk-text-2)!important;
}
html[data-theme="dark"] body.papillon-cart-screen :where(.woocommerce-message,.woocommerce-info,.woocommerce-error){
  border-color:var(--dk-border)!important;
  background:var(--dk-surface-2)!important;
  color:var(--dk-text)!important;
}
html[data-theme="dark"] body.papillon-cart-screen .wc-block-components-totals-wrapper,
html[data-theme="dark"] body.papillon-cart-screen .wc-block-cart-items td{border-color:var(--dk-border)!important;}

/* Checkout ----------------------------------------------------------------- */
html[data-theme="dark"] body.papillon-checkout-screen{background:var(--dk-canvas)!important;}
html[data-theme="dark"] body.papillon-checkout-screen :where(.checkout-page-shell,.papillon-checkout-content,.papillon-checkout-content>.woocommerce,form.checkout,#customer_details){background:transparent!important;color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-checkout-screen :where(
  .transaction-page-heading,
  .woocommerce-form-login,
  .checkout_coupon,
  #customer_details .col-1,
  #customer_details .col-2,
  #order_review_heading,
  #order_review,
  #payment,
  .papillon-checkout-address-picker,
  .papillon-checkout-address-option,
  .woocommerce-order-overview,
  .woocommerce-order-details,
  .woocommerce-customer-details,
  .wc-block-components-checkout-step,
  .wc-block-checkout__sidebar,
  .wc-block-cart__sidebar
){
  border-color:var(--dk-border)!important;
  background:var(--dk-surface-1)!important;
  color:var(--dk-text)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.papillon-checkout-screen .transaction-page-heading{
  background:linear-gradient(135deg,var(--dk-surface-2),var(--dk-surface-1))!important;
}
html[data-theme="dark"] body.papillon-checkout-screen .checkout-progress{
  border-color:transparent!important;
  background:transparent!important;
}
html[data-theme="dark"] body.papillon-checkout-screen .checkout-progress li{
  border-color:var(--dk-border)!important;
  background:var(--dk-surface-2)!important;
  color:var(--dk-muted)!important;
}
html[data-theme="dark"] body.papillon-checkout-screen .checkout-progress li.is-current,
html[data-theme="dark"] body.papillon-checkout-screen .checkout-progress li.is-complete{
  border-color:rgba(105,200,192,.30)!important;
  background:#102d33!important;
  color:var(--dk-accent)!important;
}
html[data-theme="dark"] body.papillon-checkout-screen :where(.woocommerce-billing-fields>h3,.woocommerce-shipping-fields>h3,.woocommerce-additional-fields>h3,#ship-to-different-address,.wc-block-components-checkout-step__heading){border-color:var(--dk-border)!important;color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-checkout-screen :where(
  .form-row input.input-text,
  .form-row textarea,
  .form-row select,
  .select2-container .select2-selection--single,
  .wc-block-components-text-input input,
  .wc-block-components-combobox .wc-block-components-combobox-control input,
  .wc-block-components-address-form select
){
  border-color:var(--dk-border)!important;
  background:var(--dk-field)!important;
  color:var(--dk-text)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.papillon-checkout-screen :where(.papillon-checkout-address-count,.papillon-checkout-address-edit,.papillon-checkout-address-radio){
  border-color:var(--dk-border)!important;
  background:var(--dk-surface-2)!important;
  color:var(--dk-accent)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.papillon-checkout-screen .papillon-checkout-address-option.is-selected{
  border-color:rgba(105,200,192,.40)!important;
  background:#102d33!important;
}
html[data-theme="dark"] body.papillon-checkout-screen :where(.woocommerce-checkout-review-order-table,.woocommerce-checkout-review-order-table tbody,.woocommerce-checkout-review-order-table tfoot,.woocommerce-checkout-review-order-table tr,.woocommerce-checkout-review-order-table th,.woocommerce-checkout-review-order-table td){
  border-color:var(--dk-border)!important;
  background:transparent!important;
  color:var(--dk-text-2)!important;
}
html[data-theme="dark"] body.papillon-checkout-screen .woocommerce-checkout-review-order-table .order-total :where(th,td,.amount){color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-checkout-screen #payment{
  background:linear-gradient(145deg,var(--dk-surface-2),var(--dk-surface-1))!important;
}
html[data-theme="dark"] body.papillon-checkout-screen #payment :where(ul.payment_methods,ul.payment_methods li,.place-order){border-color:var(--dk-border)!important;background:transparent!important;color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-checkout-screen #payment div.payment_box{
  border-color:var(--dk-border)!important;
  background:var(--dk-surface-3)!important;
  color:var(--dk-text-2)!important;
}
html[data-theme="dark"] body.papillon-checkout-screen #payment div.payment_box::before{border-bottom-color:var(--dk-surface-3)!important;}
html[data-theme="dark"] body.papillon-checkout-screen :where(.wc-block-components-order-summary-item,.wc-block-components-totals-wrapper){border-color:var(--dk-border)!important;background:transparent!important;color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-checkout-screen :where(.wc-block-components-order-summary__button-text,.wc-block-components-checkout-order-summary__title-text,.wc-block-components-checkout-step__title){color:var(--dk-text)!important;}

/* Notification system — final dark-mode typography and semantic accents. */
html[data-theme="dark"] body.papillon-theme .pap-toast-copy>strong{color:var(--dk-text)!important;}
html[data-theme="dark"] body.papillon-theme .pap-toast-copy>span{color:var(--dk-text-2)!important;}
html[data-theme="dark"] body.papillon-theme .pap-toast-close{color:var(--dk-muted)!important;}
html[data-theme="dark"] body.papillon-theme .pap-toast.is-success{border-inline-start-color:var(--dk-success-text)!important;}
html[data-theme="dark"] body.papillon-theme .pap-toast.is-error{border-inline-start-color:var(--dk-danger-text)!important;}
html[data-theme="dark"] body.papillon-theme .pap-toast.is-warning{border-inline-start-color:var(--dk-warning-text)!important;}
html[data-theme="dark"] body.papillon-theme .pap-toast.is-info{border-inline-start-color:var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-theme :where(.woocommerce-notice--success,.woocommerce-notice--error,.woocommerce-notice--info){border-color:var(--dk-border)!important;background:var(--dk-surface-2)!important;color:var(--dk-text)!important;box-shadow:none!important;}
html[data-theme="dark"] body.papillon-theme .woocommerce-notice--success{border-color:var(--dk-success-border)!important;background:var(--dk-success-bg)!important;color:var(--dk-success-text)!important;}
html[data-theme="dark"] body.papillon-theme .woocommerce-notice--error{border-color:var(--dk-danger-border)!important;background:var(--dk-danger-bg)!important;color:var(--dk-danger-text)!important;}

/* Filled account controls (buttons, checked boxes, initials tiles) are handled
 * by the last-loaded hardening layer, which gives them the deep teal fill of
 * the rest of the dark theme instead of the light accent teal. */

/* -------------------------------------------------------------------------
 * Mobile drawer — primary menu rows and the category group label.
 * The light rules live in header.css; these keep the same contrast once the
 * drawer turns into a dark surface (mobile precision pass, <=700px).
 * ---------------------------------------------------------------------- */
html[data-theme="dark"] body.papillon-theme .mobile-navigation-title{color:var(--dk-muted)!important;}
html[data-theme="dark"] body.papillon-theme .mobile-navigation>a.is-current{color:var(--dk-accent)!important;box-shadow:inset -3px 0 0 var(--dk-accent)!important;}
html[data-theme="dark"] body.papillon-theme .mobile-navigation>a.is-current span{color:var(--dk-accent)!important;}

/* --------------------------------------------------------------------------
   Homepage brand cards
   Three tiles on the front page are deep-teal gradients with light-on-dark
   text in BOTH modes (the light stylesheet paints them that way). The generic
   dark rule that softens eyebrows and `small` text to `--dk-muted` is meant
   for dark *surfaces*, and on these cards it measured 2.1–3.8:1 — so the cards
   keep their own inks. The one that was too light for small text even for
   near-white ink gets a deeper gradient in dark mode (its lightest stop,
   #38808e, caps every ink at ~4.5:1).
   -------------------------------------------------------------------------- */
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .purchase-pulse-kicker{color:#e8cb92!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .conversion-gateway-card.is-primary :is(p,li,small,span){color:rgba(241,247,248,.9)!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .promo-card.promo-purple :is(small,p,span,li){color:#dee6e8!important;}
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .reviews-intro{background-image:linear-gradient(145deg,#0f2f3a,#154650)!important;}
/* The gold highlight inside the headline used to be the weakest ink in the whole
   dark theme: 4.03:1 against the old lightest stop (#1b5560). The stop is now
   #154650, which lifts that phrase to 5.01:1 — over the 4.5 bar, not merely over
   the 3:1 large-text bar — and lifts the eyebrow and the headline with it. */
html[data-theme="dark"] body.papillon-front-screen .papillon-home-vitrine .reviews-intro .eyebrow{color:#d2dfe2!important;}
