/* Planter v15.1 core: semantic themes, accessible motion, soft navigation and mobile-safe configurator UX. */
:root{
  --pl-bg:#fffdf8;--pl-surface:#fffaf1;--pl-surface-2:#f4f0e7;--pl-text:#183025;--pl-muted:#68746c;
  --pl-border:rgba(39,63,48,.14);--pl-forest:#315c42;--pl-forest-strong:#214a34;--pl-accent:#9a6d3e;
  --pl-focus:#527f62;--pl-shadow:0 18px 48px rgba(31,49,38,.10);--pl-overlay:rgba(21,34,26,.48);
  --pl-danger:#a64236;--pl-success:#2f6f4b;color-scheme:light;
}
html[data-theme="dark"]{
  --pl-bg:#18211c;--pl-surface:#202b24;--pl-surface-2:#263329;--pl-text:#f0eee5;--pl-muted:#b6c1b9;
  --pl-border:rgba(224,233,225,.14);--pl-forest:#7aa087;--pl-forest-strong:#8eb19a;--pl-accent:#c59a67;
  --pl-focus:#9bc6aa;--pl-shadow:0 20px 54px rgba(0,0,0,.28);--pl-overlay:rgba(5,10,7,.7);--pl-danger:#e18f84;--pl-success:#85bd9a;color-scheme:dark;
}
html{background:var(--pl-bg);scroll-padding-top:88px}
body{background:var(--pl-bg);color:var(--pl-text)}
html[data-theme="dark"] body,
html[data-theme="dark"] .page-shell,
html[data-theme="dark"] main,
html[data-theme="dark"] .home-v5{background:var(--pl-bg)!important;color:var(--pl-text)!important}
html[data-theme="dark"] .site-header{background:color-mix(in srgb,var(--pl-bg) 90%,transparent)!important;border-color:var(--pl-border)!important}
html[data-theme="dark"] .site-header a,html[data-theme="dark"] .mobile-nav a{color:var(--pl-text)!important}
html[data-theme="dark"] .mobile-nav{background:var(--pl-surface)!important;border-color:var(--pl-border)!important}
html[data-theme="dark"] .section-inner,
html[data-theme="dark"] .product-editorial,
html[data-theme="dark"] .page-cta,
html[data-theme="dark"] .project-layout,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .legal,
html[data-theme="dark"] .runtime-product-card,
html[data-theme="dark"] .p4c14,
html[data-theme="dark"] .p4c14-note,
html[data-theme="dark"] .quote-dialog-shell,
html[data-theme="dark"] .summary-card,
html[data-theme="dark"] .summary-specs,
html[data-theme="dark"] .summary-price,
html[data-theme="dark"] .config-panel,
html[data-theme="dark"] .config-option,
html[data-theme="dark"] .option-card,
html[data-theme="dark"] .swatch-card,
html[data-theme="dark"] .seat-card,
html[data-theme="dark"] .plant-card,
html[data-theme="dark"] .feature-toggle,
html[data-theme="dark"] .privacy-center-shell,
html[data-theme="dark"] .privacy-banner,
html[data-theme="dark"] .cookie-banner{
  background:var(--pl-surface)!important;color:var(--pl-text)!important;border-color:var(--pl-border)!important;box-shadow:var(--pl-shadow)!important
}
html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,html[data-theme="dark"] h4,
html[data-theme="dark"] strong,html[data-theme="dark"] .p4-title,html[data-theme="dark"] .p4c14-note strong{color:var(--pl-text)!important}
html[data-theme="dark"] p,html[data-theme="dark"] small,html[data-theme="dark"] .p4-copy,html[data-theme="dark"] .metric-note{color:var(--pl-muted)!important}
html[data-theme="dark"] input,html[data-theme="dark"] textarea,html[data-theme="dark"] select{
  background:var(--pl-surface-2)!important;color:var(--pl-text)!important;border-color:var(--pl-border)!important
}
html[data-theme="dark"] input:-webkit-autofill,
html[data-theme="dark"] textarea:-webkit-autofill,
html[data-theme="dark"] select:-webkit-autofill{-webkit-text-fill-color:var(--pl-text);box-shadow:0 0 0 1000px var(--pl-surface-2) inset!important}
html[data-theme="dark"] .footer-v10{background:#122018!important;color:#e9eee8!important}
html[data-theme="dark"] .p4-btn.primary,html[data-theme="dark"] .btn-primary,html[data-theme="dark"] .config-actions .primary,
html[data-theme="dark"] .privacy-action.primary{background:#355f44!important;color:#fff!important;border-color:#355f44!important}

/* Appearance + motion preferences */
.pl-preferences{position:relative;display:inline-flex;align-items:center}
.pl-pref-button{min-width:42px;min-height:42px;display:inline-grid;place-items:center;border:1px solid var(--pl-border);border-radius:999px;background:var(--pl-surface);color:var(--pl-text);cursor:pointer}
.pl-pref-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.pl-pref-menu{position:absolute;right:0;top:calc(100% + 9px);z-index:1000;display:none;min-width:230px;padding:10px;background:var(--pl-surface);border:1px solid var(--pl-border);border-radius:18px;box-shadow:var(--pl-shadow)}
.pl-preferences.open .pl-pref-menu{display:grid;gap:12px}
.pl-pref-menu section{display:grid;gap:6px}
.pl-pref-menu section+section{padding-top:10px;border-top:1px solid var(--pl-border)}
.pl-pref-menu section>strong{padding:0 7px;color:var(--pl-muted);font:800 8px/1.2 Manrope,system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase}
.pl-pref-menu [role="radiogroup"]{display:grid;grid-template-columns:1fr;gap:3px}
.pl-pref-menu button{min-height:40px;padding:9px 11px;border:0;border-radius:10px;background:transparent;color:var(--pl-text);text-align:left;font:700 12px/1.2 Manrope,system-ui,sans-serif;cursor:pointer}
.pl-pref-menu button[aria-checked="true"]{background:color-mix(in srgb,var(--pl-forest) 13%,transparent);color:var(--pl-forest-strong)}

/* Accessibility + soft navigation */
:where(a,button,input,select,textarea,[tabindex]):focus-visible{outline:3px solid color-mix(in srgb,var(--pl-focus) 72%,white);outline-offset:3px}
:where(button,a,[role="button"],input[type="checkbox"],input[type="radio"]){touch-action:manipulation}
.site-header a,.site-header button,.mobile-nav a,.mobile-nav button,.privacy-action,.p4-btn,.btn{min-height:24px;min-width:24px}
[data-live-price],#planter-live-region{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
html[data-route-loading] main{opacity:.64;pointer-events:none;transition:opacity .16s ease}
html[data-route-loading]::before{content:"";position:fixed;inset:0;z-index:9997;pointer-events:none;background:linear-gradient(100deg,transparent 24%,rgba(255,255,255,.16) 38%,transparent 52%);background-size:220% 100%;animation:pl-route-sheen 1.05s linear infinite}
html[data-route-loading]::after{content:"";position:fixed;left:0;right:0;top:0;height:2px;z-index:99999;background:linear-gradient(90deg,transparent,var(--pl-forest),transparent);animation:pl-route-load .85s linear infinite;transform-origin:left}
@keyframes pl-route-load{from{transform:translateX(-60%)}to{transform:translateX(60%)}}
@keyframes pl-route-sheen{from{background-position:110% 0}to{background-position:-110% 0}}
.pl-route-error{position:fixed;left:50%;bottom:max(18px,env(safe-area-inset-bottom));z-index:99999;transform:translateX(-50%);padding:10px 14px;border-radius:12px;background:var(--pl-surface);color:var(--pl-text);border:1px solid var(--pl-border);box-shadow:var(--pl-shadow);font:700 12px/1.4 Manrope,sans-serif}

/* Configurator: one mobile action bar only — back + live price + primary action. */
.config-mobile-price{display:none}
.page-configurator .mobile-config-bar,.page-configurator .pl-mobile-config-bar{display:none!important}
.page-configurator .config-actions{padding-bottom:max(14px,env(safe-area-inset-bottom))!important}
@media(max-width:700px){
  .pl-pref-button{min-width:38px;min-height:38px}
  .pl-pref-menu{position:fixed;left:10px;right:10px;top:76px;min-width:0;max-height:calc(100dvh - 96px);overflow:auto}
  .page-configurator{padding-bottom:calc(76px + env(safe-area-inset-bottom))}
  .page-configurator .config-actions{
    grid-template-columns:46px minmax(0,1fr) auto!important;align-items:center!important;gap:9px!important;
    padding:9px 10px max(9px,env(safe-area-inset-bottom))!important;background:color-mix(in srgb,var(--pl-surface) 94%,transparent)!important;
    box-shadow:0 -10px 34px rgba(19,38,27,.10)!important;backdrop-filter:blur(16px)!important
  }
  .page-configurator .config-actions #cfg-reset{display:none!important}
  .config-mobile-price{display:block;min-width:0;padding:0 5px}
  .config-mobile-price small{display:block;color:var(--pl-muted);font:800 7px/1.2 Manrope,sans-serif;letter-spacing:.12em;text-transform:uppercase;white-space:nowrap}
  .config-mobile-price strong{display:block;margin-top:3px;color:var(--pl-text);font:800 16px/1.05 Manrope,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .page-configurator .config-actions #cfg-next{min-width:112px!important}
}

/* Motion modes */
html[data-motion="reduced"] [data-reveal]{transition-duration:.16s!important;transform:none!important}
html[data-motion="static"] [data-reveal]{opacity:1!important;transform:none!important;transition:none!important}
html[data-motion="static"] .pl-preloader__wind,html[data-motion="static"] .pl-preloader__leaf,html[data-motion="static"] .pl-preloader__spark{display:none!important}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  [data-reveal]{transform:none!important;transition-property:opacity!important;transition-duration:.16s!important}
  html[data-route-loading]::before,html[data-route-loading]::after{animation:none!important}
}
@media(forced-colors:active){
  .pl-pref-button,.pl-pref-menu,.p4-btn,.btn,.privacy-action{forced-color-adjust:auto;border:1px solid ButtonText!important}
  :focus-visible{outline:3px solid Highlight!important}
}
.p3d-static-poster{display:none;width:100%;height:100%;object-fit:cover;object-position:center}
html[data-motion="static"] .p3d-canvas,html[data-motion="static"] .p3d-loading{display:none!important}
html[data-motion="static"] .p3d-static-poster{display:block!important}
html[data-motion="static"] .p3d-reset,html[data-motion="static"] .p3d-hint{display:none!important}

/* =========================================================
   Planter v15.2 — definitive premium dark-theme correction.
   Keeps the approved light theme untouched and maps all hard-coded
   legacy ivory/paper surfaces to semantic graphite/forest surfaces.
   ========================================================= */
html[data-theme="dark"]{
  --ivory:#172019;
  --paper:#1b251f;
  --graphite:#eef1eb;
  --muted:#aeb9b1;
  --line:rgba(226,236,228,.14);
  --forest:#4f765d;
  --forest-2:#3d624b;
  --sage:#94aa9a;
  --moss:#9aae9f;
  --white:#f7f4eb;
  --v5-ink:#eef1eb;
  --v5-deep:#dce7df;
  --v5-green:#456e53;
  --v5-green-2:#365a45;
  --v5-ivory:#172019;
  --v5-paper:#1c2720;
  --v5-sand:#26342b;
  --v5-line:rgba(226,236,228,.14);
  --v5-muted:#aeb9b1;
  --v5-shadow:0 28px 80px rgba(0,0,0,.24);
}
html[data-theme="dark"] body.v5-site,
html[data-theme="dark"] body.v5-site main,
html[data-theme="dark"] body.v5-site .p4-shell{
  background:#121a15!important;
  color:var(--pl-text)!important;
}
html[data-theme="dark"] body.v5-site .p4-shell{
  border-color:rgba(226,236,228,.08)!important;
  box-shadow:0 30px 90px rgba(0,0,0,.24)!important;
}
html[data-theme="dark"] body.v5-site .site-header{
  background:rgba(17,27,21,.94)!important;
  border-color:rgba(226,236,228,.12)!important;
  box-shadow:0 1px 0 rgba(255,255,255,.025)!important;
}
html[data-theme="dark"] body.v5-site .brand-mark-img,
html[data-theme="dark"] body.v5-site .brand-wordmark{
  filter:brightness(0) invert(1)!important;
  opacity:.88!important;
}
html[data-theme="dark"] body.v5-site .desktop-nav,
html[data-theme="dark"] body.v5-site .desktop-nav a,
html[data-theme="dark"] body.v5-site .lang-switch a,
html[data-theme="dark"] body.v5-site .menu-btn{color:#e8ede7!important}
html[data-theme="dark"] body.v5-site .lang-switch{
  background:#263129!important;
  border:1px solid rgba(226,236,228,.10)!important;
}
html[data-theme="dark"] body.v5-site .lang-switch a[aria-current="page"],
html[data-theme="dark"] body.v5-site .lang-switch a.active{
  background:#f0ede5!important;
  color:#172019!important;
}

/* Home: every light hard-coded panel gets a real dark surface. */
html[data-theme="dark"] body.home-v5 .p4-hero,
html[data-theme="dark"] body.home-v5 .p4-featured,
html[data-theme="dark"] body.home-v5 .p4-config,
html[data-theme="dark"] body.home-v5 .p4-apps,
html[data-theme="dark"] body.home-v5 .p4-materials,
html[data-theme="dark"] body.home-v5 .p4-irrigation,
html[data-theme="dark"] body.home-v5 .p4-project,
html[data-theme="dark"] body.home-v5 .p4-concept{
  border-color:var(--v5-line)!important;
}
html[data-theme="dark"] body.home-v5 .p4-hero{background:#1a241e!important}
html[data-theme="dark"] body.home-v5 .p4-hero-copy{background:linear-gradient(145deg,#1c2720,#18221c)!important}
html[data-theme="dark"] body.home-v5 .p4-featured{background:#202b24!important}
html[data-theme="dark"] body.home-v5 .p4-featured-copy{background:linear-gradient(145deg,#202b24,#1a251e)!important}
html[data-theme="dark"] body.home-v5 .p4-config{background:#17211b!important}
html[data-theme="dark"] body.home-v5 .p4-config-intro{background:#19241d!important;border-color:var(--v5-line)!important}
html[data-theme="dark"] body.home-v5 .p4-config-preview{
  background:radial-gradient(circle at 46% 36%,#2a372d 0,#202c24 58%,#18221c 100%)!important;
  border-color:var(--v5-line)!important;
}
html[data-theme="dark"] body.home-v5 .p4-config-controls{background:#1b261f!important}
html[data-theme="dark"] body.home-v5 .p4-apps{background:#18221c!important}
html[data-theme="dark"] body.home-v5 .p4-materials{background:#141e18!important}
html[data-theme="dark"] body.home-v5 .p4-irrigation{background:#1e2922!important}
html[data-theme="dark"] body.home-v5 .p4-project{background:#17211b!important}
html[data-theme="dark"] body.home-v5 .p4-project-form{background:#1e2922!important}
html[data-theme="dark"] body.home-v5 .p4-project-copy{background:#183522!important;color:#eef1eb!important}

/* Concept block has inline light-theme critical CSS, so dark wins explicitly. */
html[data-theme="dark"] body.home-v5 .p4-concept.p4-concept--v141{background:#121a15!important;border-color:var(--v5-line)!important}
html[data-theme="dark"] body.home-v5 .p4c14{
  background:linear-gradient(145deg,#1d2821 0%,#162019 100%)!important;
  border-color:rgba(226,236,228,.13)!important;
  box-shadow:0 18px 44px rgba(0,0,0,.20)!important;
}
html[data-theme="dark"] body.home-v5 .p4c14::before{
  opacity:.34!important;
  background:linear-gradient(rgba(230,239,232,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(230,239,232,.035) 1px,transparent 1px)!important;
  background-size:42px 42px,42px 42px!important;
}
html[data-theme="dark"] body.home-v5 .p4c14-note{
  background:rgba(31,43,35,.90)!important;
  color:#eef1eb!important;
  border-color:rgba(226,236,228,.12)!important;
  box-shadow:0 12px 30px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] body.home-v5 .p4c14-note strong{color:#f0eee6!important}
html[data-theme="dark"] body.home-v5 .p4c14-note small{color:#b3beb6!important}
html[data-theme="dark"] body.home-v5 .p4c14-caption{
  background:rgba(28,40,32,.90)!important;color:#b8c3bb!important;border-color:rgba(226,236,228,.12)!important;
}

/* Typography that previously turned nearly invisible on ivory backgrounds. */
html[data-theme="dark"] body.home-v5 .p4-title,
html[data-theme="dark"] body.home-v5 .p4-hero h1,
html[data-theme="dark"] body.home-v5 .p4-featured h2,
html[data-theme="dark"] body.home-v5 .p4-featured h3,
html[data-theme="dark"] body.home-v5 .p4-config h2,
html[data-theme="dark"] body.home-v5 .p4-apps h2,
html[data-theme="dark"] body.home-v5 .p4-materials h2,
html[data-theme="dark"] body.home-v5 .p4-irrigation h2,
html[data-theme="dark"] body.home-v5 .p4-project h2,
html[data-theme="dark"] body.home-v5 .p4-project-form h3{color:#f0eee6!important}
html[data-theme="dark"] body.home-v5 .p4-kicker{color:#9fb6a6!important}
html[data-theme="dark"] body.home-v5 .p4-copy,
html[data-theme="dark"] body.home-v5 .p4-capability,
html[data-theme="dark"] body.home-v5 .p4-specs span,
html[data-theme="dark"] body.home-v5 .p4-checklist li,
html[data-theme="dark"] body.home-v5 .p4-process,
html[data-theme="dark"] body.home-v5 .p4-app-card p,
html[data-theme="dark"] body.home-v5 .p4-app-card h3,
html[data-theme="dark"] body.home-v5 .p4-materials figcaption,
html[data-theme="dark"] body.home-v5 .p4-form-grid label,
html[data-theme="dark"] body.home-v5 .p4-submit-note{color:#b5c0b8!important}
html[data-theme="dark"] body.home-v5 .p4-capability i,
html[data-theme="dark"] body.home-v5 .p4-capability svg{color:#9fc0aa!important;stroke:currentColor!important}

/* Controls/cards inside the configurator teaser. */
html[data-theme="dark"] body.home-v5 .p4-row{border-color:rgba(226,236,228,.12)!important}
html[data-theme="dark"] body.home-v5 .p4-pills button,
html[data-theme="dark"] body.home-v5 .p4-seat-options button,
html[data-theme="dark"] body.home-v5 .p4-plant-options button,
html[data-theme="dark"] body.home-v5 .p4-qty button{
  background:#253229!important;color:#edf1eb!important;border-color:rgba(226,236,228,.16)!important;
}
html[data-theme="dark"] body.home-v5 .p4-pills button.active,
html[data-theme="dark"] body.home-v5 .p4-pills button:hover,
html[data-theme="dark"] body.home-v5 .p4-seat-options button.active,
html[data-theme="dark"] body.home-v5 .p4-seat-options button:hover,
html[data-theme="dark"] body.home-v5 .p4-plant-options button.active,
html[data-theme="dark"] body.home-v5 .p4-plant-options button:hover{
  background:#304437!important;border-color:#6c9679!important;color:#f5f2ea!important;
}
html[data-theme="dark"] body.home-v5 .p4-checklist li:before{
  background:#243229!important;border-color:#668a70!important;color:#b9d1c0!important;
}
html[data-theme="dark"] body.home-v5 .p4-swatches button{border-color:#263229!important;box-shadow:0 0 0 1px rgba(226,236,228,.28)!important}
html[data-theme="dark"] body.home-v5 .p4-btn:not(.primary){
  background:#263229!important;color:#eef1eb!important;border-color:rgba(226,236,228,.16)!important;
}
html[data-theme="dark"] body.home-v5 .p4-btn.primary{background:#426c50!important;border-color:#426c50!important;color:#fff!important}

/* 3D preview chrome remains legible in dark mode without changing the rendered model. */
html[data-theme="dark"] body.home-v5 .p3d-preview,
html[data-theme="dark"] body.home-v5 .pv5-preview{background:#202c24!important;border-color:rgba(226,236,228,.12)!important}
html[data-theme="dark"] body.home-v5 .p3d-canvas-wrap,
html[data-theme="dark"] body.home-v5 .p3d-preview.is-compact .p3d-canvas-wrap{
  background:linear-gradient(180deg,#28352c 0%,#1d2821 100%)!important;
}
html[data-theme="dark"] body.home-v5 .p3d-meta,
html[data-theme="dark"] body.home-v5 .p3d-selection>div{
  background:rgba(31,43,35,.96)!important;border-color:rgba(226,236,228,.10)!important;
}
html[data-theme="dark"] body.home-v5 .p3d-meta strong,
html[data-theme="dark"] body.home-v5 .p3d-selection strong{color:#eef1eb!important}
html[data-theme="dark"] body.home-v5 .p3d-meta span,
html[data-theme="dark"] body.home-v5 .p3d-selection small{color:#aeb9b1!important}

/* Applications/materials: keep photography natural, darken only UI chrome. */
html[data-theme="dark"] body.home-v5 .p4-app-card,
html[data-theme="dark"] body.home-v5 .p4-materials figure{background:#202b24!important;border-color:rgba(226,236,228,.10)!important}
html[data-theme="dark"] body.home-v5 .p4-materials figure figcaption{background:#202b24!important;color:#c4cec6!important}
html[data-theme="dark"] body.home-v5 .p4-tech-note{border-color:rgba(226,236,228,.12)!important;color:#bdc9c0!important}

/* Forms + dialogs. */
html[data-theme="dark"] body.home-v5 .p4-project-form .input,
html[data-theme="dark"] body.home-v5 .p4-project-form .file-drop,
html[data-theme="dark"] body.home-v5 .p4-upload{
  background:#263229!important;color:#eef1eb!important;border-color:rgba(226,236,228,.16)!important;
}
html[data-theme="dark"] body.home-v5 .p4-project-form .input::placeholder{color:#87958b!important}
html[data-theme="dark"] body.home-v5 .p4-project-form .input:hover{background:#2a382e!important;border-color:rgba(154,190,165,.34)!important}
html[data-theme="dark"] body.home-v5 .p4-project-form .input:focus{background:#2b392f!important;border-color:#7aa087!important;box-shadow:0 0 0 3px rgba(122,160,135,.13)!important}

/* Generic public pages: dark theme is a complete theme, not light cards with light text. */
html[data-theme="dark"] body.v5-site .hero,
html[data-theme="dark"] body.v5-site .subhero,
html[data-theme="dark"] body.v5-site .section,
html[data-theme="dark"] body.v5-site .featured-product,
html[data-theme="dark"] body.v5-site .config-teaser,
html[data-theme="dark"] body.v5-site .legal-hero,
html[data-theme="dark"] body.v5-site .legal-center{background:#151e19!important;color:#eef1eb!important}
html[data-theme="dark"] body.v5-site .section:nth-of-type(even){background:#19231d!important}
html[data-theme="dark"] body.v5-site .product-editorial,
html[data-theme="dark"] body.v5-site .teaser-card,
html[data-theme="dark"] body.v5-site .detail-card,
html[data-theme="dark"] body.v5-site .application,
html[data-theme="dark"] body.v5-site .material,
html[data-theme="dark"] body.v5-site .project-layout,
html[data-theme="dark"] body.v5-site .project-form,
html[data-theme="dark"] body.v5-site .lead-form,
html[data-theme="dark"] body.v5-site .faq-item,
html[data-theme="dark"] body.v5-site .legal-document,
html[data-theme="dark"] body.v5-site .legal-toc,
html[data-theme="dark"] body.v5-site .legal-center-grid>*{
  background:#1f2a23!important;color:#eef1eb!important;border-color:rgba(226,236,228,.13)!important;
}
html[data-theme="dark"] body.v5-site .product-visual,
html[data-theme="dark"] body.v5-site .teaser-preview,
html[data-theme="dark"] body.v5-site .irrigation-diagram{background:#26342b!important}
html[data-theme="dark"] body.v5-site .section-head p,
html[data-theme="dark"] body.v5-site .hero-copy p,
html[data-theme="dark"] body.v5-site .product-copy>p,
html[data-theme="dark"] body.v5-site .teaser-controls p,
html[data-theme="dark"] body.v5-site .detail-card p,
html[data-theme="dark"] body.v5-site .faq-answer,
html[data-theme="dark"] body.v5-site .legal-document p,
html[data-theme="dark"] body.v5-site .legal-document li{color:#b4bfb7!important}
html[data-theme="dark"] body.v5-site .input,
html[data-theme="dark"] body.v5-site input,
html[data-theme="dark"] body.v5-site textarea,
html[data-theme="dark"] body.v5-site select{
  background:#263229!important;color:#eef1eb!important;border-color:rgba(226,236,228,.16)!important;
}
html[data-theme="dark"] body.v5-site .btn-ghost,
html[data-theme="dark"] body.v5-site .btn-light{background:#263229!important;color:#eef1eb!important;border-color:rgba(226,236,228,.16)!important}
html[data-theme="dark"] body.v5-site .progress,
html[data-theme="dark"] body.v5-site .config-actions{background:rgba(26,36,29,.96)!important;border-color:rgba(226,236,228,.12)!important}

/* Preference popover itself. */
html[data-theme="dark"] .pl-pref-menu{background:#202b24!important;border-color:rgba(226,236,228,.14)!important}
html[data-theme="dark"] .pl-pref-menu button[aria-checked="true"]{background:#304437!important;color:#eef1eb!important}

/* =========================================================
   Planter v15.3 — full-site dark theme coverage.
   Loaded last and intentionally scoped to html[data-theme="dark"].
   Approved light theme stays untouched.
   ========================================================= */
html[data-theme="dark"]{
  --dt-bg:#111a15;
  --dt-bg-2:#151f19;
  --dt-surface:#1d2921;
  --dt-surface-2:#243229;
  --dt-surface-3:#2a3a2f;
  --dt-text:#f1efe6;
  --dt-muted:#b4c0b7;
  --dt-dim:#8f9d94;
  --dt-line:rgba(234,241,235,.13);
  --dt-line-strong:rgba(234,241,235,.22);
  --dt-green:#456f53;
  --dt-green-hover:#527f60;
  --dt-green-soft:#9db7a4;
  --dt-warm:#c49a6c;
  --dt-shadow:0 24px 64px rgba(0,0,0,.22);
}

/* Base canvas / global typography */
html[data-theme="dark"] body.v5-site,
html[data-theme="dark"] body.v5-site main,
html[data-theme="dark"] body.v5-site .main{
  background:var(--dt-bg)!important;
  color:var(--dt-text)!important;
}
html[data-theme="dark"] body.v5-site :is(h1,h2,h3,h4,h5,h6){
  color:var(--dt-text)!important;
}
html[data-theme="dark"] body.v5-site :is(.eyebrow,.legal-kicker,.p4-kicker,.micro-label){
  color:var(--dt-green-soft)!important;
}
html[data-theme="dark"] body.v5-site :is(p,.breadcrumbs,.form-status){
  color:var(--dt-muted)!important;
}
html[data-theme="dark"] body.v5-site hr,
html[data-theme="dark"] body.v5-site :is(.section,.subhero,.hero,.legal-hero,.legal-center,.company-section,.contact-project,.company-about){
  border-color:var(--dt-line)!important;
}

/* Header / nav / preference controller */
html[data-theme="dark"] body.v5-site .site-header{
  background:rgba(15,25,19,.95)!important;
  border-color:var(--dt-line)!important;
}
html[data-theme="dark"] body.v5-site .mobile-nav{
  background:#142019!important;
  border-color:var(--dt-line)!important;
  box-shadow:var(--dt-shadow)!important;
}
html[data-theme="dark"] body.v5-site :is(.desktop-nav a,.mobile-nav a,.menu-btn){
  color:var(--dt-text)!important;
}
html[data-theme="dark"] body.v5-site .lang-switch{
  background:#243129!important;
  border-color:var(--dt-line)!important;
}
html[data-theme="dark"] body.v5-site .lang-switch a{
  color:#c4cec6!important;
}
html[data-theme="dark"] body.v5-site .lang-switch a[aria-current="page"],
html[data-theme="dark"] body.v5-site .lang-switch a.active{
  background:#ece9df!important;
  color:#172019!important;
}
html[data-theme="dark"] .pl-pref-button,
html[data-theme="dark"] .pl-pref-menu{
  background:#202c24!important;
  color:var(--dt-text)!important;
  border-color:var(--dt-line)!important;
}
html[data-theme="dark"] .pl-pref-menu section+section{border-color:var(--dt-line)!important}
html[data-theme="dark"] .pl-pref-menu section>strong{color:#9aa99f!important}
html[data-theme="dark"] .pl-pref-menu button{color:#e8ede7!important}
html[data-theme="dark"] .pl-pref-menu button:hover{background:#2a382e!important}
html[data-theme="dark"] .pl-pref-menu button[aria-checked="true"]{
  background:#304437!important;color:#f4f1e9!important;
}

/* Shared page sections. Keep inner layout transparent instead of creating accidental cards. */
html[data-theme="dark"] body.v5-site :is(
  .hero,.subhero,.section,.featured-product,.config-teaser,
  .legal-hero,.legal-center,.company-section,.contact-project,.company-about
){
  background:var(--dt-bg-2)!important;
  color:var(--dt-text)!important;
}
html[data-theme="dark"] body.v5-site .section:nth-of-type(even){
  background:#17221b!important;
}
html[data-theme="dark"] body.v5-site :is(
  .section-inner,.hero-inner,.subhero-inner,.legal-hero-inner,.legal-center-grid,
  .company-shell,.contact-project-inner,.company-about-inner,.project-layout
){
  background:transparent!important;
  color:inherit!important;
  border-color:transparent!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.v5-site :is(.hero-copy p,.subhero p,.section-head p){
  color:var(--dt-muted)!important;
}

/* Generic cards / product / solutions */
html[data-theme="dark"] body.v5-site :is(
  .product-editorial,.teaser-card,.detail-card,.runtime-product-card,
  .project-layout,.faq-item,.legal,.legal-document,
  .application,.material
){
  background:var(--dt-surface)!important;
  color:var(--dt-text)!important;
  border-color:var(--dt-line)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.v5-site :is(.product-visual,.teaser-preview,.irrigation-diagram,.visual-frame){
  background:linear-gradient(145deg,#26342b,#1d2921)!important;
  border-color:var(--dt-line)!important;
}
html[data-theme="dark"] body.v5-site :is(
  .product-copy>p,.teaser-controls p,.detail-card p,.application p,.material p,
  .faq-answer,.legal p,.legal li
){
  color:var(--dt-muted)!important;
}
html[data-theme="dark"] body.v5-site .detail-card.large{
  background:linear-gradient(145deg,#1f2c23,#26342b)!important;
}
html[data-theme="dark"] body.v5-site .application{
  background:linear-gradient(145deg,#243229,#1b271f)!important;
}
html[data-theme="dark"] body.v5-site .application::before{
  opacity:.18!important;
  background-image:
    linear-gradient(90deg,transparent 48%,rgba(255,255,255,.12) 49%,rgba(255,255,255,.12) 50%,transparent 51%),
    linear-gradient(transparent 48%,rgba(255,255,255,.12) 49%,rgba(255,255,255,.12) 50%,transparent 51%)!important;
}
html[data-theme="dark"] body.v5-site .application b{color:#9eaea3!important}
html[data-theme="dark"] body.v5-site .application .arch-shape{border-color:rgba(225,235,228,.20)!important}
html[data-theme="dark"] body.v5-site .breadcrumbs{color:#9aa79f!important}

/* Project pages / lead forms */
html[data-theme="dark"] body.v5-site .project-section{
  background:#173522!important;
  color:var(--dt-text)!important;
}
html[data-theme="dark"] body.v5-site :is(.project-form,.lead-form){
  background:#1e2a22!important;
  color:var(--dt-text)!important;
  border-color:var(--dt-line)!important;
  box-shadow:var(--dt-shadow)!important;
}
html[data-theme="dark"] body.v5-site :is(.project-form label,.lead-form label,.form-grid label){
  color:#aebbb2!important;
}
html[data-theme="dark"] body.v5-site :is(.input,input,textarea,select){
  background:#26342b!important;
  color:#f1efe7!important;
  border-color:var(--dt-line-strong)!important;
}
html[data-theme="dark"] body.v5-site :is(.input,input,textarea)::placeholder{
  color:#87958c!important;
  opacity:1!important;
}
html[data-theme="dark"] body.v5-site :is(.input,input,textarea,select):focus{
  background:#2a392f!important;
  border-color:#739982!important;
  box-shadow:0 0 0 3px rgba(115,153,130,.13)!important;
}
html[data-theme="dark"] body.v5-site .file-drop{
  background:#243229!important;
  color:var(--dt-text)!important;
  border-color:#587364!important;
}
html[data-theme="dark"] body.v5-site .file-drop small{color:#9eaaa2!important}
html[data-theme="dark"] body.v5-site .consent,
html[data-theme="dark"] body.v5-site .p4-consent{color:#aeb9b1!important}
html[data-theme="dark"] body.v5-site .consent a,
html[data-theme="dark"] body.v5-site .p4-consent a{color:#9ec3aa!important}

/* Contact + legal pages — the area missed in v15.2. */
html[data-theme="dark"] body.page-contact :is(.company-section,.contact-project,.company-about),
html[data-theme="dark"] body:is(.page-privacy,.page-cookies) :is(.legal-hero,.legal-center){
  background:var(--dt-bg-2)!important;
}
html[data-theme="dark"] body.page-contact .company-card{
  background:linear-gradient(145deg,#173b27,#244d35)!important;
  color:#f3f1e8!important;
  border:1px solid rgba(225,237,228,.10)!important;
  box-shadow:0 24px 60px rgba(0,0,0,.20)!important;
}
html[data-theme="dark"] body.page-contact .company-card :is(h2,dd){color:#f4f1e9!important}
html[data-theme="dark"] body.page-contact .company-card :is(p,dt){color:#a9b9ae!important}
html[data-theme="dark"] body.page-contact :is(.contact-cards>a,.contact-cards>div){
  background:#1f2b23!important;
  color:var(--dt-text)!important;
  border-color:var(--dt-line)!important;
  box-shadow:0 10px 28px rgba(0,0,0,.12)!important;
}
html[data-theme="dark"] body.page-contact .contact-cards :is(span){color:#90a096!important}
html[data-theme="dark"] body.page-contact .contact-cards :is(strong,a){color:#eef1eb!important}
html[data-theme="dark"] body.page-contact .contact-cards>a:hover{
  background:#25352a!important;
  border-color:#5f826b!important;
  box-shadow:0 18px 38px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] body.page-contact .bank-card{
  background:#1d2921!important;
  border-color:var(--dt-line)!important;
}
html[data-theme="dark"] body.page-contact .bank-card summary{color:#e9eee8!important}
html[data-theme="dark"] body.page-contact .bank-card dl>div{border-color:var(--dt-line)!important}
html[data-theme="dark"] body.page-contact .bank-card dt{color:#94a39a!important}
html[data-theme="dark"] body.page-contact .bank-card dd{color:#dce6df!important}
html[data-theme="dark"] body.page-contact .contact-project-copy{
  background:linear-gradient(145deg,#202c24,#18231c)!important;
  color:var(--dt-text)!important;
  border:1px solid var(--dt-line)!important;
}
html[data-theme="dark"] body.page-contact .contact-project-copy h2{color:#f1eee6!important}
html[data-theme="dark"] body.page-contact .contact-project-copy p{color:#b0bbb3!important}
html[data-theme="dark"] body.page-contact .contact-project-copy li{
  background:#26352b!important;
  color:#d7e0d9!important;
}
html[data-theme="dark"] body.page-contact .project-form-v10{
  background:#1f2b23!important;
  color:var(--dt-text)!important;
  border-color:var(--dt-line)!important;
  box-shadow:0 24px 60px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] body.page-contact .project-form-v10 .form-head-v10>span,
html[data-theme="dark"] body.page-contact .project-form-v10 label{color:#9ca9a1!important}
html[data-theme="dark"] body.page-contact .project-form-v10 .input{
  background:#27362c!important;
  color:#f0eee6!important;
  border-color:var(--dt-line-strong)!important;
}
html[data-theme="dark"] body.page-contact .project-form-v10 .input:focus{
  background:#2b3b30!important;
  border-color:#739982!important;
}
html[data-theme="dark"] body.page-contact .company-about h2{color:var(--dt-text)!important}
html[data-theme="dark"] body.page-contact .company-about p{color:var(--dt-muted)!important}
html[data-theme="dark"] body.page-contact .company-about-facts>span,
html[data-theme="dark"] body.page-contact .company-about-facts>a{
  background:#1f2b23!important;
  color:#dce6df!important;
  border-color:var(--dt-line)!important;
}
html[data-theme="dark"] body.page-contact .company-about-facts small{color:#92a197!important}
html[data-theme="dark"] body.page-contact .company-about-facts strong{color:#e7ece8!important}

/* Legal / cookies */
html[data-theme="dark"] body.v5-site .legal-operator,
html[data-theme="dark"] body.v5-site .legal-toc,
html[data-theme="dark"] body.v5-site .legal-facts>div,
html[data-theme="dark"] body.v5-site .legal-basis-grid>div,
html[data-theme="dark"] body.v5-site .legal-callout,
html[data-theme="dark"] body.v5-site .legal-update,
html[data-theme="dark"] body.v5-site .cookie-status-grid>div,
html[data-theme="dark"] body.v5-site .cookie-table,
html[data-theme="dark"] body.v5-site .cookie-row{
  background:#1f2b23!important;
  color:var(--dt-text)!important;
  border-color:var(--dt-line)!important;
}
html[data-theme="dark"] body.v5-site .legal-toc a,
html[data-theme="dark"] body.v5-site .legal-toc button{
  color:#c6d1c9!important;
}
html[data-theme="dark"] body.v5-site .legal-toc a:hover,
html[data-theme="dark"] body.v5-site .legal-toc button:hover{
  background:#2a392f!important;
  color:#fff!important;
}
html[data-theme="dark"] body.v5-site .legal-num{
  background:#294033!important;color:#a9c8b2!important;
}
html[data-theme="dark"] body.v5-site .legal-document h2,
html[data-theme="dark"] body.v5-site .legal-operator strong,
html[data-theme="dark"] body.v5-site .legal-facts strong,
html[data-theme="dark"] body.v5-site .legal-facts a,
html[data-theme="dark"] body.v5-site .legal-basis-grid strong{
  color:#edf0eb!important;
}
html[data-theme="dark"] body.v5-site .legal-document :is(p,li),
html[data-theme="dark"] body.v5-site .legal-operator :is(span,a),
html[data-theme="dark"] body.v5-site .legal-facts small,
html[data-theme="dark"] body.v5-site .legal-basis-grid p{
  color:#aebbb2!important;
}
html[data-theme="dark"] body.v5-site .legal-document a,
html[data-theme="dark"] body.v5-site .legal-inline-button{color:#9fc7ac!important}
html[data-theme="dark"] body.v5-site .legal-external{
  background:#294033!important;color:#bfe0c8!important;
}
html[data-theme="dark"] body.v5-site .cookie-status-grid span{color:#aebbb2!important}
html[data-theme="dark"] body.v5-site .cookie-status-grid strong{
  background:#2b3a30!important;color:#b8d4c1!important;
}
html[data-theme="dark"] body.v5-site .cookie-row.head{
  background:#2a392f!important;color:#b9c7bd!important;
}
html[data-theme="dark"] body.v5-site .cookie-row code{color:#b7dac2!important}

/* Cookie banner + privacy center */
html[data-theme="dark"] body.v5-site .privacy-banner,
html[data-theme="dark"] body.v5-site .cookie-banner{
  background:rgba(27,39,31,.96)!important;
  color:var(--dt-text)!important;
  border-color:var(--dt-line)!important;
  box-shadow:0 24px 74px rgba(0,0,0,.34)!important;
}
html[data-theme="dark"] body.v5-site .privacy-banner-icon{
  background:linear-gradient(145deg,#294033,#1d2b22)!important;
  color:#a9c6b2!important;
}
html[data-theme="dark"] body.v5-site .privacy-banner-copy strong{color:#eff1ec!important}
html[data-theme="dark"] body.v5-site .privacy-banner-copy p,
html[data-theme="dark"] body.v5-site .cookie-banner p{color:#aebbb2!important}
html[data-theme="dark"] body.v5-site .privacy-action:not(.primary){
  background:#26352b!important;color:#e8ede8!important;border-color:var(--dt-line)!important;
}
html[data-theme="dark"] body.v5-site .privacy-action.text{background:transparent!important}
html[data-theme="dark"] body.v5-site .privacy-center-shell{
  background:#1c2820!important;
  border-color:var(--dt-line)!important;
}
html[data-theme="dark"] body.v5-site .privacy-center-body,
html[data-theme="dark"] body.v5-site .privacy-center-actions{
  background:#1c2820!important;
  border-color:var(--dt-line)!important;
}
html[data-theme="dark"] body.v5-site .privacy-company-card{
  background:#25352b!important;border-color:var(--dt-line)!important;
}
html[data-theme="dark"] body.v5-site .privacy-company-card strong,
html[data-theme="dark"] body.v5-site .privacy-choice strong{color:#edf0eb!important}
html[data-theme="dark"] body.v5-site .privacy-company-card :is(span,small),
html[data-theme="dark"] body.v5-site .privacy-choice p{color:#aab8ae!important}
html[data-theme="dark"] body.v5-site .privacy-choice{border-color:var(--dt-line)!important}
html[data-theme="dark"] body.v5-site .privacy-required{
  background:#2b4033!important;color:#b8d2c0!important;
}
html[data-theme="dark"] body.v5-site .privacy-switch i{
  background:#3b4940!important;box-shadow:inset 0 0 0 1px var(--dt-line)!important;
}
html[data-theme="dark"] body.v5-site .privacy-switch i::after{background:#e9ece8!important}
html[data-theme="dark"] body.v5-site .privacy-center-links a{color:#9fc7ac!important}

/* FAQ */
html[data-theme="dark"] body.page-faq .faq-item{
  background:transparent!important;
  border-color:var(--dt-line)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.page-faq .faq button{color:#edf0eb!important}
html[data-theme="dark"] body.page-faq .faq-answer>div{color:#abb8af!important}

/* Home sections */
html[data-theme="dark"] body.home-v5 :is(
  .p4-hero,.p4-featured,.p4-config,.p4-apps,.p4-materials,.p4-irrigation,.p4-project,.p4-concept
){
  background:var(--dt-bg-2)!important;border-color:var(--dt-line)!important;
}
html[data-theme="dark"] body.home-v5 :is(.p4-hero-copy,.p4-featured-copy,.p4-config-intro,.p4-config-controls,.p4-project-form){
  background:var(--dt-surface)!important;color:var(--dt-text)!important;border-color:var(--dt-line)!important;
}
html[data-theme="dark"] body.home-v5 .p4-project-copy{
  background:linear-gradient(145deg,#183522,#214a31)!important;color:#f0eee6!important;
}
html[data-theme="dark"] body.home-v5 :is(.p4-title,.p4-hero h1,.p4-featured h2,.p4-featured h3,.p4-config h2,.p4-apps h2,.p4-materials h2,.p4-irrigation h2,.p4-project h2,.p4-project-form h3){
  color:#f0eee6!important;
}
html[data-theme="dark"] body.home-v5 :is(.p4-copy,.p4-capability,.p4-specs span,.p4-checklist li,.p4-process,.p4-app-card p,.p4-app-card h3,.p4-materials figcaption,.p4-form-grid label,.p4-submit-note){
  color:#b5c0b8!important;
}
html[data-theme="dark"] body.home-v5 :is(.p4-app-card,.p4-materials figure,.p4-project-note,.p4-total,.p4-row){
  background:#202c24!important;color:var(--dt-text)!important;border-color:var(--dt-line)!important;
}
html[data-theme="dark"] body.home-v5 .p4-materials figure figcaption{
  background:#202c24!important;color:#c4cec6!important;
}
html[data-theme="dark"] body.home-v5 :is(.p4-pills button,.p4-seat-options button,.p4-plant-options button,.p4-qty button){
  background:#253229!important;color:#edf1eb!important;border-color:var(--dt-line)!important;
}
html[data-theme="dark"] body.home-v5 :is(.p4-pills button.active,.p4-seat-options button.active,.p4-plant-options button.active){
  background:#304437!important;border-color:#6c9679!important;color:#f5f2ea!important;
}
html[data-theme="dark"] body.home-v5 .p4-btn:not(.primary){
  background:#263229!important;color:#eef1eb!important;border-color:var(--dt-line)!important;
}

/* Concept section */
html[data-theme="dark"] body.home-v5 .p4c14{
  background:linear-gradient(145deg,#1d2821,#162019)!important;
  border-color:var(--dt-line)!important;
}
html[data-theme="dark"] body.home-v5 .p4c14-note{
  background:rgba(31,43,35,.94)!important;color:#eef1eb!important;border-color:var(--dt-line)!important;
}
html[data-theme="dark"] body.home-v5 .p4c14-note strong{color:#f0eee6!important}
html[data-theme="dark"] body.home-v5 .p4c14-note small{color:#b3beb6!important}
html[data-theme="dark"] body.home-v5 .p4c14-caption{
  background:rgba(28,40,32,.94)!important;color:#b8c3bb!important;border-color:var(--dt-line)!important;
}

/* Configurator: all dynamically-rendered states and the modal. */
html[data-theme="dark"] body.page-configurator .config-page,
html[data-theme="dark"] body.page-configurator .config-shell{
  background:#111a15!important;
}
html[data-theme="dark"] body.page-configurator .preview-panel{
  background:linear-gradient(155deg,#213027,#18231c)!important;
  color:var(--dt-text)!important;
}
html[data-theme="dark"] body.page-configurator :is(.config-brandline,.preview-caption){color:#a8b5ac!important}
html[data-theme="dark"] body.page-configurator .config-panel{
  background:#17221b!important;color:var(--dt-text)!important;
}
html[data-theme="dark"] body.page-configurator .config-intro p,
html[data-theme="dark"] body.page-configurator .step-section>p{color:#aebbb2!important}
html[data-theme="dark"] body.page-configurator .demo-pill{
  border-color:#54715f!important;color:#a9c9b3!important;background:#203027!important;
}
html[data-theme="dark"] body.page-configurator .progress{
  background:transparent!important;border-color:var(--dt-line)!important;
}
html[data-theme="dark"] body.page-configurator .progress-step{color:#8f9c94!important}
html[data-theme="dark"] body.page-configurator .progress-step::before{background:#35433a!important}
html[data-theme="dark"] body.page-configurator .progress-step:is(.is-active,.is-done)::before{background:#739982!important}
html[data-theme="dark"] body.page-configurator :is(
  .option-card,.swatch-card,.seat-card,.plant-card,.feature-toggle,.model-card,
  .plant-card-pro,.seat-card-pro,.quantity-panel,.demo-hint,
  .summary-specs,.summary-price
){
  background:#202c24!important;color:var(--dt-text)!important;border-color:var(--dt-line)!important;
}
html[data-theme="dark"] body.page-configurator :is(.option-card,.swatch-card,.seat-card,.plant-card,.feature-toggle,.model-card,.plant-card-pro,.seat-card-pro):hover{
  background:#26362c!important;border-color:#617f6b!important;
}
html[data-theme="dark"] body.page-configurator :is(.option-card,.swatch-card,.seat-card,.plant-card,.feature-toggle,.model-card,.plant-card-pro,.seat-card-pro).selected{
  background:#283a2f!important;border-color:#739982!important;box-shadow:0 0 0 3px rgba(115,153,130,.11)!important;
}
html[data-theme="dark"] body.page-configurator :is(.option-card small,.swatch-card small,.seat-card small,.plant-card small,.feature-toggle small,.plant-badge,.plant-guide,.seat-guide){
  color:#a9b6ad!important;
}
html[data-theme="dark"] body.page-configurator :is(.option-index,.field-label){color:#9ca9a1!important}
html[data-theme="dark"] body.page-configurator .dimension-icon{border-color:#9bafa1!important}
html[data-theme="dark"] body.page-configurator .dimension-icon::after{border-color:#647b6b!important}
html[data-theme="dark"] body.page-configurator .feature-symbol{
  background:#2b3c31!important;color:#b6d1be!important;
}
html[data-theme="dark"] body.page-configurator .switch span{
  background:#435047!important;
}
html[data-theme="dark"] body.page-configurator .switch span::after{background:#edf0ec!important}
html[data-theme="dark"] body.page-configurator .qty{
  background:#202c24!important;color:#e9eee8!important;border-color:var(--dt-line)!important;
}
html[data-theme="dark"] body.page-configurator .qty.selected{
  background:#456f53!important;color:#fff!important;border-color:#456f53!important;
}
html[data-theme="dark"] body.page-configurator .demo-hint{
  background:#223129!important;color:#b3beb6!important;border:1px solid var(--dt-line)!important;
}
html[data-theme="dark"] body.page-configurator .demo-hint span{border-color:#70877a!important}
html[data-theme="dark"] body.page-configurator .config-actions{
  background:transparent!important;border-color:var(--dt-line)!important;
}
html[data-theme="dark"] body.page-configurator .summary-specs>div{border-color:var(--dt-line)!important}
html[data-theme="dark"] body.page-configurator .summary-specs span,
html[data-theme="dark"] body.page-configurator .summary-price>span,
html[data-theme="dark"] body.page-configurator .summary-price small{color:#aebbb2!important}
html[data-theme="dark"] body.page-configurator .summary-model span{
  background:#2b4033!important;color:#b8d2c0!important;
}
html[data-theme="dark"] body.page-configurator .quote-dialog{color:var(--dt-text)!important}
html[data-theme="dark"] body.page-configurator .quote-dialog-shell{
  background:linear-gradient(180deg,#1d2921,#17221b)!important;
  border-color:var(--dt-line)!important;
  box-shadow:0 42px 120px rgba(0,0,0,.42)!important;
}
html[data-theme="dark"] body.page-configurator .quote-dialog-head{
  background:#1d2921!important;border-color:var(--dt-line)!important;
}
html[data-theme="dark"] body.page-configurator .quote-dialog-head .eyebrow{color:#9dadA2!important}
html[data-theme="dark"] body.page-configurator .quote-dialog-head h3{color:#f1efe7!important}
html[data-theme="dark"] body.page-configurator .quote-dialog-head p{color:#aebbb2!important}
html[data-theme="dark"] body.page-configurator .quote-dialog-price{
  background:#273a2e!important;border-color:#486653!important;
}
html[data-theme="dark"] body.page-configurator .quote-dialog-price span{color:#9cadA2!important}
html[data-theme="dark"] body.page-configurator .quote-dialog-price strong{color:#dce9df!important}
html[data-theme="dark"] body.page-configurator .quote-dialog-close{
  background:#27362c!important;color:#dce8df!important;border-color:var(--dt-line)!important;
}
html[data-theme="dark"] body.page-configurator .quote-dialog-close:hover{
  background:#304238!important;border-color:#5f806a!important;
}
html[data-theme="dark"] body.page-configurator .quote-form-grid label{color:#9eaaa2!important}
html[data-theme="dark"] body.page-configurator .quote-form-grid .input{
  background:#26352b!important;color:#f1efe7!important;border-color:var(--dt-line-strong)!important;
}
html[data-theme="dark"] body.page-configurator .quote-file-drop{
  background:#233128!important;color:#dce5de!important;border-color:#5b7464!important;
}
html[data-theme="dark"] body.page-configurator .quote-file-drop small{color:#9ca9a1!important}
html[data-theme="dark"] body.page-configurator .quote-dialog-footer{
  background:#19241d!important;border-color:var(--dt-line)!important;
}
html[data-theme="dark"] body.page-configurator .quote-consent{color:#aebbb2!important}
html[data-theme="dark"] body.page-configurator .quote-lead-form .form-status{color:#9fbea9!important}

/* Success dialogs + legacy cookie popup */
html[data-theme="dark"] body.v5-site .success-dialog{
  background:#1f2b23!important;color:var(--dt-text)!important;border:1px solid var(--dt-line)!important;
  box-shadow:var(--dt-shadow)!important;
}
html[data-theme="dark"] body.v5-site .dialog-body{background:#1f2b23!important;color:var(--dt-text)!important}
html[data-theme="dark"] body.v5-site .dialog-body p{color:#aebbb2!important}

/* Buttons: never black, keep Planter forest. */
html[data-theme="dark"] body.v5-site :is(.btn-primary,.p4-btn.primary,.privacy-action.primary,.config-actions .primary){
  background:#456f53!important;color:#fff!important;border-color:#456f53!important;
}
html[data-theme="dark"] body.v5-site :is(.btn-primary,.p4-btn.primary,.privacy-action.primary,.config-actions .primary):hover{
  background:#527f60!important;border-color:#527f60!important;
}
html[data-theme="dark"] body.v5-site :is(.btn-ghost,.btn-light,.p4-btn:not(.primary)){
  background:#25342a!important;color:#eef1eb!important;border-color:var(--dt-line)!important;
}

/* Footer is already dark but normalize any light-theme inheritance. */
html[data-theme="dark"] body.v5-site .footer-v10,
html[data-theme="dark"] body.v5-site .footer{
  background:linear-gradient(155deg,#0d2116,#153523 52%,#0b1d13)!important;
  color:#eef2ee!important;
}
html[data-theme="dark"] body.v5-site .footer-v10 :is(h2,h3,strong){color:#f3f4ef!important}

/* Dark-aware version of the approved Leaf Reveal preloader. */
html[data-theme="dark"] .pl-preloader{
  background:
    radial-gradient(circle at 50% 43%,rgba(41,58,47,.98) 0 10%,rgba(27,42,33,.96) 34%,rgba(20,32,25,.98) 72%,rgba(15,25,19,.99) 100%),
    linear-gradient(135deg,#17231c,#213127 54%,#111b15)!important;
}
html[data-theme="dark"] .pl-preloader::before{
  background:
    radial-gradient(circle at 22% 28%,rgba(120,164,124,.18),transparent 24%),
    radial-gradient(circle at 79% 71%,rgba(196,154,103,.10),transparent 23%),
    radial-gradient(circle at 68% 20%,rgba(105,137,111,.10),transparent 21%)!important;
}
html[data-theme="dark"] .pl-preloader__brand img{
  filter:brightness(0) invert(1) drop-shadow(0 10px 20px rgba(0,0,0,.16))!important;
}
html[data-theme="dark"] .pl-preloader__tag{color:rgba(218,229,220,.68)!important}
html[data-theme="dark"] .pl-preloader__line{background:rgba(210,226,214,.12)!important}
html[data-theme="dark"] .pl-preloader__wind path{stroke:rgba(159,196,169,.22)!important}
html[data-theme="dark"] .pl-preloader__halo{
  border-color:rgba(171,205,181,.10)!important;
  box-shadow:0 0 0 34px rgba(117,154,126,.035),0 0 0 96px rgba(110,150,120,.022)!important;
}

/* Mobile sticky surfaces */
@media(max-width:760px){
  html[data-theme="dark"] body.page-configurator .progress{
    background:rgba(23,34,27,.95)!important;
    border-color:var(--dt-line)!important;
  }
  html[data-theme="dark"] body.page-configurator .config-actions{
    background:rgba(25,37,29,.96)!important;
    border-color:var(--dt-line)!important;
    box-shadow:0 -10px 34px rgba(0,0,0,.20)!important;
  }
}

/* v15.3 coverage tail — selectors with their own legacy light !important rules. */
html[data-theme="dark"] body.v5-site .skip-link{background:#26352b!important;color:#f0eee6!important;border:1px solid var(--dt-line)!important}
html[data-theme="dark"] body.page-despre .function-line{border-color:var(--dt-line)!important}
html[data-theme="dark"] body.page-despre .function-item{color:#eef1eb!important;border-color:var(--dt-line)!important}
html[data-theme="dark"] body.page-despre .function-item:hover{background:rgba(255,255,255,.045)!important}
html[data-theme="dark"] body.page-despre .function-item strong{color:#f3f1e9!important}
html[data-theme="dark"] body.page-despre .function-item small{color:#b7c2ba!important}
html[data-theme="dark"] body.v5-site .cookie-hero-button{background:#456f53!important;color:#fff!important;border-color:#567b63!important}
html[data-theme="dark"] body.v5-site .privacy-center-head{background:linear-gradient(145deg,#153624,#214a34)!important;color:#f7f4ec!important}
html[data-theme="dark"] body.v5-site .privacy-center-head h2{color:#f7f4ec!important}
html[data-theme="dark"] body.v5-site .privacy-center-head p{color:rgba(239,245,240,.72)!important}
html[data-theme="dark"] body.v5-site .privacy-close{background:rgba(255,255,255,.07)!important;color:#fff!important;border-color:rgba(255,255,255,.17)!important}
html[data-theme="dark"] body.home-v5 .p4-premium-options button.active strong{color:#f5f2ea!important}
html[data-theme="dark"] body.home-v5 .p4-premium-options button strong{color:#e9eee8!important}
html[data-theme="dark"] body.home-v5 .p4-premium-options button small{color:#9eaaa2!important}
html[data-theme="dark"] body.home-v5 .p4-choice-check{background:#456f53!important;color:#fff!important;border-color:#60836b!important}
html[data-theme="dark"] body.home-v5 .p4-premium-options .p4-seat-thumb{background:#2b392f!important;border-color:rgba(225,235,228,.12)!important}
html[data-theme="dark"] body.home-v5 .p4-plant-visual{background:linear-gradient(145deg,#2b3c31,#213027)!important;border-color:rgba(225,235,228,.11)!important}
html[data-theme="dark"] body.home-v5 .p4c14-watermark{background:rgba(16,32,22,.82)!important;border-color:rgba(255,255,255,.22)!important;color:#fff!important}


/* =========================================================
   Planter v15.4 — dark-theme visual hardening.
   Final high-specificity coverage for legacy light fragments.
   Light theme is intentionally untouched.
   ========================================================= */
html[data-theme="dark"] body.v5-site{
  --dt-bg:#111a15;
  --dt-bg-2:#151f19;
  --dt-surface:#1d2921;
  --dt-surface-2:#233128;
  --dt-surface-3:#29382e;
  --dt-text:#f0eee6;
  --dt-muted:#aebbb2;
  --dt-line:rgba(224,235,226,.14);
  --dt-line-strong:rgba(224,235,226,.24);
}

/* Header wordmark: never expose a pale raster rectangle in dark mode. */
html[data-theme="dark"] body.v5-site .brand-combo .brand-wordmark{display:none!important}
html[data-theme="dark"] body.v5-site .brand-combo::after{
  content:"planter.md";display:block;color:#f0eee6!important;
  font:800 clamp(20px,1.5vw,27px)/1 Manrope,Arial,sans-serif;letter-spacing:-.045em;white-space:nowrap
}
html[data-theme="dark"] body.v5-site .brand-combo .brand-mark-img{filter:brightness(0) invert(1)!important;opacity:.94!important}

/* Home hero: remove pale seams and restore the icon/capability rail. */
html[data-theme="dark"] body.home-v5 .p4-hero{gap:0!important;overflow:hidden!important;background:#1a241e!important}
html[data-theme="dark"] body.home-v5 .p4-hero-media{
  align-self:stretch!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  background:#172019!important;overflow:hidden!important;min-height:100%!important
}
html[data-theme="dark"] body.home-v5 .p4-hero-media img{
  display:block!important;width:100%!important;height:100%!important;min-height:100%!important;object-fit:cover!important;
  object-position:center!important;border-radius:0!important
}
html[data-theme="dark"] body.home-v5 .p4-capabilities{
  border-top-color:var(--dt-line)!important;background:transparent!important
}
html[data-theme="dark"] body.home-v5 .p4-capability{color:#c3cec6!important;opacity:1!important}
html[data-theme="dark"] body.home-v5 .p4-capability span{color:#b8c5bc!important;opacity:1!important}
html[data-theme="dark"] body.home-v5 .p4-capability-icon{
  background:#26362c!important;border-color:var(--dt-line-strong)!important;color:#c8ddce!important;
  box-shadow:0 8px 24px rgba(0,0,0,.12)!important
}
html[data-theme="dark"] body.home-v5 .p4-capability-icon :is(svg,path,circle,rect,line){stroke:currentColor!important}

/* Applications: no muddy footer bars; readable titles/captions. */
html[data-theme="dark"] body.home-v5 .p4-app-card{
  background:transparent!important;border-color:transparent!important;box-shadow:none!important;color:var(--dt-text)!important
}
html[data-theme="dark"] body.home-v5 .p4-app-card figure{
  background:#202c24!important;border:1px solid var(--dt-line)!important;border-radius:16px!important;overflow:hidden!important
}
html[data-theme="dark"] body.home-v5 .p4-app-card h3{color:#eef1eb!important;opacity:1!important}
html[data-theme="dark"] body.home-v5 .p4-app-card p{color:#aebbb2!important;opacity:1!important}
html[data-theme="dark"] body.home-v5 .p4-link{color:#dce6df!important;border-color:#667d6d!important}

/* Smart irrigation diagram: dark-native SVG rather than an ivory card. */
html[data-theme="dark"] body.home-v5 .p4-irrigation-diagram{
  background:linear-gradient(145deg,#1c2921,#17221b)!important;border-color:var(--dt-line)!important;
  box-shadow:0 20px 48px rgba(0,0,0,.18)!important
}
html[data-theme="dark"] body.home-v5 .p4-irrigation-diagram svg>rect:first-of-type{
  fill:#202e25!important;stroke:#506758!important
}
html[data-theme="dark"] body.home-v5 .p4-irrigation-diagram svg text{fill:#b9d2c0!important}
html[data-theme="dark"] body.home-v5 .p4-irrigation-diagram svg path[stroke="#315c42"],
html[data-theme="dark"] body.home-v5 .p4-irrigation-diagram svg g[fill="#315c42"]{stroke:#76a184!important;fill:#76a184!important}
html[data-theme="dark"] body.home-v5 .p4-tech-note{color:#c8d2ca!important;border-color:var(--dt-line)!important}

/* Project form: file drop, consent and status must not turn ivory/white. */
html[data-theme="dark"] body.home-v5 .p4-project-form .p4-upload,
html[data-theme="dark"] body.home-v5 .p4-project-form .file-drop{
  background:#223027!important;color:#dce6df!important;border-color:#607769!important
}
html[data-theme="dark"] body.home-v5 .p4-project-form .p4-upload:hover{background:#28382e!important;border-color:#7a9b84!important}
html[data-theme="dark"] body.home-v5 .p4-project-form .p4-upload small{color:#a8b5ac!important}
html[data-theme="dark"] body.home-v5 .p4-consent{background:transparent!important;color:#aebbb2!important;border:0!important}
html[data-theme="dark"] body.home-v5 .p4-consent input{accent-color:#5d8b6a!important;background:#243229!important}
html[data-theme="dark"] body.home-v5 .p4-project-form .form-status{
  display:block!important;min-height:18px!important;height:auto!important;margin:8px 0 0!important;padding:0!important;
  background:transparent!important;border:0!important;color:#9fc5aa!important;box-shadow:none!important
}

/* Product catalogue: always provide a real visual fallback behind WebGL. */
html[data-theme="dark"] body.v5-site .product-visual{
  position:relative!important;background:radial-gradient(circle at 48% 38%,#314238 0,#25332b 52%,#1d2821 100%)!important;
  overflow:hidden!important
}
html[data-theme="dark"] body.v5-site .product-visual [data-static-preview],
html[data-theme="dark"] body.v5-site .product-visual .p3d-preview,
html[data-theme="dark"] body.v5-site .product-visual .p3d-canvas-wrap{height:100%!important;min-height:100%!important}
html[data-theme="dark"] body.v5-site .product-visual .p3d-canvas-wrap{position:relative!important;background:transparent!important}
html[data-theme="dark"] body.v5-site .product-visual .p3d-static-poster{
  display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
  object-fit:cover!important;object-position:center!important;z-index:0!important;opacity:.92!important
}
html[data-theme="dark"] body.v5-site .product-visual .p3d-canvas{position:relative!important;z-index:1!important;background:transparent!important}
html[data-theme="dark"] body.v5-site .product-visual .p3d-loading{z-index:2!important}
html[data-theme="dark"] body.v5-site .product-editorial{overflow:hidden!important}

/* Configurator progress: active step must never become a light card. */
html[data-theme="dark"] body.page-configurator .progress-step,
html[data-theme="dark"] body.page-configurator .progress-step.is-done{
  background:transparent!important;color:#a9b6ad!important;border-color:transparent!important;box-shadow:none!important
}
html[data-theme="dark"] body.page-configurator .progress-step.is-active{
  background:#26382d!important;color:#eef1eb!important;border:1px solid #587463!important;
  box-shadow:0 10px 26px rgba(0,0,0,.14)!important
}
html[data-theme="dark"] body.page-configurator .progress-step.is-active :is(span,small,strong){color:#eef1eb!important}
html[data-theme="dark"] body.page-configurator .progress-step.is-active::before{background:#5f8a6c!important;color:#fff!important}

/* Quantity/location: legacy inner white cards are overridden too. */
html[data-theme="dark"] body.page-configurator .quantity-panel{
  background:transparent!important;border:0!important;box-shadow:none!important;gap:14px!important
}
html[data-theme="dark"] body.page-configurator .quantity-panel>div,
html[data-theme="dark"] body.page-configurator .quantity-panel>label{
  background:#202c24!important;color:#edf1eb!important;border:1px solid var(--dt-line)!important;border-radius:18px!important;
  box-shadow:0 10px 26px rgba(0,0,0,.10)!important
}
html[data-theme="dark"] body.page-configurator .quantity-panel .field-label{color:#9eaaa2!important}
html[data-theme="dark"] body.page-configurator .quantity-panel :is(input,select){
  background:#28372d!important;color:#f0eee6!important;border-color:#566d5e!important
}
html[data-theme="dark"] body.page-configurator .quantity-panel .qty{
  background:#27352c!important;color:#e9eee8!important;border-color:#566d5e!important
}
html[data-theme="dark"] body.page-configurator .quantity-panel .qty.selected{background:#4e795b!important;color:#fff!important;border-color:#4e795b!important}

/* Quote modal: remove the white consent slab/status footer and native file chrome contrast bugs. */
html[data-theme="dark"] body.page-configurator .quote-consent{
  background:transparent!important;color:#aebbb2!important;border:0!important;box-shadow:none!important;padding:0!important
}
html[data-theme="dark"] body.page-configurator .quote-consent input{accent-color:#5d8b6a!important;background:#26352b!important}
html[data-theme="dark"] body.page-configurator .quote-lead-form .form-status{
  min-height:18px!important;height:auto!important;background:transparent!important;border:0!important;box-shadow:none!important;
  color:#9fc5aa!important;padding:0!important;margin:0!important
}
html[data-theme="dark"] body.page-configurator .quote-file-drop input[type="file"]{color:#b9c4bc!important;background:transparent!important;border:0!important}
html[data-theme="dark"] body.page-configurator .quote-file-drop input[type="file"]::file-selector-button{
  background:#304238!important;color:#eef1eb!important;border:1px solid #5c7463!important;border-radius:9px!important;padding:7px 10px!important
}

/* Generic form status / hidden honeypot must never paint a white stripe. */
html[data-theme="dark"] body.v5-site .form-status{
  background:transparent!important;border-color:transparent!important;box-shadow:none!important;color:#a8cbb1!important
}
html[data-theme="dark"] body.v5-site .hp-field{display:none!important;background:transparent!important}

/* Contact page leftovers and upload controls. */
html[data-theme="dark"] body.page-contact :is(.file-drop,.upload-drop,.project-upload){
  background:#223027!important;color:#dce6df!important;border-color:#607769!important
}
html[data-theme="dark"] body.page-contact input[type="file"]{color:#b6c1b9!important}
html[data-theme="dark"] body.page-contact input[type="file"]::file-selector-button{
  background:#304238!important;color:#eef1eb!important;border:1px solid #5c7463!important;border-radius:9px!important
}

/* Dark scrollbars, autofill and native controls. */
html[data-theme="dark"] body.v5-site{color-scheme:dark}
html[data-theme="dark"] body.v5-site ::-webkit-scrollbar{width:10px;height:10px}
html[data-theme="dark"] body.v5-site ::-webkit-scrollbar-track{background:#121a15}
html[data-theme="dark"] body.v5-site ::-webkit-scrollbar-thumb{background:#405548;border:2px solid #121a15;border-radius:999px}
html[data-theme="dark"] body.v5-site input:-webkit-autofill,
html[data-theme="dark"] body.v5-site textarea:-webkit-autofill,
html[data-theme="dark"] body.v5-site select:-webkit-autofill{
  -webkit-text-fill-color:#f0eee6!important;-webkit-box-shadow:0 0 0 1000px #26352b inset!important;caret-color:#f0eee6!important
}
