:root{--ink:#172e2c;--ink-2:#294440;--muted:#586c69;--paper:#fff;--wash:#f6f5f0;--line:#d9dfd8;--orange:#db542b;--orange-dark:#b73c19;--orange-soft:#fcece3;--shadow:0 10px 30px #193a2d06;--green:#206b54}body{background:var(--wash)}h1,h2{letter-spacing:-.045em}button,a,input,select,textarea{outline-offset:4px}button,a{touch-action:manipulation}button{transition:background .2s,transform .2s}button:hover{transform:translateY(-1px)}button:disabled{transform:none;opacity:.65;cursor:wait}[hidden],.hidden{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.topbar{background:var(--paper);gap:28px;position:relative;z-index:10}.brand-mark{background:var(--ink);border-radius:7px;transform:none}.brand>span:last-child>span{color:var(--orange)}.desktop-nav{margin-left:auto;gap:26px}.desktop-nav a{color:var(--ink);text-decoration:none;font-size:14px;font-weight:650}.nav-select select{border:0;background:transparent;width:205px;font-size:14px;font-weight:650;color:var(--ink);padding:12px 6px}.nav-tools{display:flex;gap:10px}.nav-tools button{background:transparent;border:1px solid var(--line);height:42px;width:42px;border-radius:50%;display:grid;place-content:center;color:var(--ink)}#theme-toggle svg{width:20px;height:20px}#nav-toggle{display:none}.hero{max-width:1200px;margin:auto;padding:75px 24px 65px;gap:60px;align-items:center;grid-template-columns:1.1fr 1fr;background:radial-gradient(ellipse at 78% 25%,#cce1b363,transparent 55%)}.hero h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(42px,4.3vw,65px);line-height:1.08;font-weight:500;letter-spacing:-.05em;margin:22px 0}.hero h1 em{color:var(--orange);font-weight:500}.hero-copy>p{font-size:18px;line-height:1.7;max-width:490px;margin:0 0 28px;color:var(--muted)}.eyebrow{font-size:11px;letter-spacing:.14em;color:var(--orange);font-weight:750}.primary{border-radius:7px;box-shadow:none;background:var(--orange)}.hero-note{display:block;color:var(--muted);max-width:320px;line-height:1.6;margin-top:13px}.trust-row{margin-top:30px;gap:16px;font-size:11px}.trust-row span{border-left:2px solid var(--green);padding-left:9px}.live-estimator{background:#193c34;color:#fff;padding:30px;border-radius:12px;box-shadow:12px 12px 0 #d7e4c4;min-width:0}.live-top{display:flex;gap:8px;align-items:center;font-size:9px;letter-spacing:.09em;color:#d3e3d8}.live-top>span:last-child{margin-left:auto}.live-dot{width:7px;height:7px;border-radius:50%;background:#c5e887;box-shadow:0 0 0 4px #c5e88715}.live-estimator h2{font-size:29px;font-weight:500;line-height:1.2;letter-spacing:-.035em;margin:25px 0 28px;color:#fff}.area-heading{display:flex;justify-content:space-between;align-items:center}.area-heading label,.live-estimator>label{font-size:12px;color:#e1eae4}.area-heading output{font-size:23px;font-weight:600}.live-estimator input[type=range]{padding:0;width:100%;margin:18px 0 3px;height:20px;accent-color:#c5e887;cursor:pointer;border:0;background:transparent}.range-labels{display:flex;justify-content:space-between;font-size:10px;color:#bdcec5;margin-bottom:22px}.live-estimator select{margin-top:9px;width:100%;border:1px solid #657e74;border-radius:6px;background:#25493f;color:white;padding:12px}.live-total{padding:24px 0 20px;border-bottom:1px solid #5b7669}.live-total small{display:block;font-size:9px;letter-spacing:.09em;color:#c8dccf}.live-total strong{display:block;font-size:clamp(23px,2.55vw,37px);font-weight:500;letter-spacing:-.04em;margin-top:8px;font-variant-numeric:tabular-nums}.live-detail{display:flex;width:100%;justify-content:space-between;border:0;background:transparent;color:#d1efad;font-size:13px;padding:18px 0;text-align:left}.hero-assumptions{font-size:11px;color:#c7d9ce;line-height:1.65}.hero-assumptions summary{cursor:pointer}.hero-assumptions p{margin:8px 0}.value-bento{max-width:1152px;margin:15px auto 80px;display:grid;grid-template-columns:2fr 1fr 1fr;gap:16px}.value-bento article{padding:30px;background:var(--paper);border:1px solid var(--line);border-radius:10px}.value-bento .value-main{background:#e8ecd9}.value-main h2{font-size:30px;line-height:1.15;margin:12px 0}.value-bento p{font-size:13px;color:var(--muted);line-height:1.7;margin-bottom:0}.bento-number{display:block;font-size:56px;line-height:1.25;font-weight:500;letter-spacing:-.06em}.value-bento h3{font-size:17px}.inline-report{max-width:1152px;margin:0 auto 90px;display:grid;grid-template-columns:.85fr 1.15fr;gap:70px;align-items:center}.report-intro h2{font-family:Georgia,serif;font-size:42px;font-weight:500;line-height:1.15;margin:20px 0}.report-intro p{color:var(--muted);line-height:1.7;font-size:15px}.report-intro .sample-disclaimer{font-size:12px}.report-intro a{color:var(--ink);font-size:14px;font-weight:650}.report-paper{background:var(--paper);border:1px solid var(--line);border-top:4px solid var(--ink);padding:30px;box-shadow:9px 9px 0 #dce0d5;border-radius:2px}.paper-brand{font-weight:750;font-size:14px;display:flex;justify-content:space-between}.paper-brand span{font-size:9px;letter-spacing:.1em;font-weight:400}.report-paper h3{font-size:22px;margin-bottom:0}.report-paper>p{font-size:12px;color:var(--muted)}.report-comparison>div{display:grid;grid-template-columns:1fr auto;gap:8px;font-size:12px;margin:20px 0}.report-comparison i{grid-column:1/-1;display:block;background:var(--orange);height:7px;width:var(--bar);transition:width .6s}.report-comparison>div+div i{background:var(--green)}.report-paper details{border-top:1px solid var(--line);padding:14px 0;font-size:12px;line-height:1.8}.report-paper summary{font-weight:650;cursor:pointer}.sample-row{display:flex;justify-content:space-between;gap:12px;padding-top:8px}.steps-section{padding-top:0}.step-icon svg{width:28px;height:28px}.steps-grid article,.package-card{border-radius:10px;box-shadow:none;background:var(--paper)}.package-card.featured{border:2px solid var(--green);background:var(--paper)}.package-grid{align-items:stretch}.package-card{display:flex;flex-direction:column}.package-card ul{flex:1}.package-card h3{font-size:26px;letter-spacing:-.03em}.stripe-slot{text-align:center;min-height:62px;margin-top:18px;max-width:100%}stripe-buy-button{display:block;max-width:100%}.stripe-fallback{font-size:11px;color:var(--muted);line-height:1.6}.stripe-slot.ready .stripe-fallback{display:none}.stripe-slot.failed .stripe-fallback{color:var(--red)}.price-policy,.offer-audit,.quote-upload-section{border-radius:10px;background:var(--paper)}.offer-audit h2{font-size:34px}.audit-form{background:var(--paper);border-radius:8px;border:1px solid var(--line);padding:25px}.form-progress{margin-bottom:22px}.form-progress p{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted)}.form-progress progress{width:100%;height:6px;accent-color:var(--green)}.form-page h3{margin:0 0 20px;font-size:20px}.form-page{display:grid;gap:16px}.form-page>.form-grid{margin:0}.form-controls{display:flex;gap:10px;justify-content:space-between;margin-top:20px}.form-controls button{min-height:44px}.form-controls .primary{margin-left:auto}.form-page input,.form-page select,.form-page textarea{background:var(--paper);color:var(--ink)}.checkout-modal{max-height:90dvh;overflow:auto}.checkout-modal details{border-top:1px solid var(--line);padding-top:18px;margin-top:18px}.checkout-modal summary{cursor:pointer;font-size:13px;margin-bottom:14px}.checkout-modal h2{font-size:27px}.reveal-ready{opacity:0;transform:translateY(18px);transition:opacity .65s,transform .65s}.revealed{opacity:1;transform:none}.hero-copy{animation:enter .55s both}@keyframes enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}html[data-theme=dark]{color-scheme:dark;--ink:#e6ece5;--ink-2:#d5e0d9;--muted:#a9bcb4;--paper:#172a25;--wash:#0f1e1a;--line:#385047;--orange:#ff956f;--orange-dark:#ffb093;--orange-soft:#3c2b24;--green:#a5d8b2;--green-soft:#1d392e;--amber-soft:#39321e;--red:#ffaaa0;--shadow:none}html[data-theme=dark] .primary{color:#142820}html[data-theme=dark] .brand-mark{color:#142820}html[data-theme=dark] .value-bento .value-main{background:#293b2c}html[data-theme=dark] .hero{background:radial-gradient(ellipse at 80% 20%,#2d463b,transparent 65%)}html[data-theme=dark] :is(.wizard-card,.result-card,.info-card,.publish-card,.verdict,.project-summary,.modal,.retention-bubble,.scope-row,.standard-card,.shopping-row,.energy-details,.dashboard-shell,.free-verdict,.rr-report,.rr-section){background:var(--paper);color:var(--ink)}html[data-theme=dark] :is(input,select,textarea){background:var(--paper);color:var(--ink);border-color:var(--line)}html[data-theme=dark] :is(.seller-details,footer,.price-policy){background:var(--paper);color:var(--muted)}html[data-theme=dark] .report-paper{box-shadow:9px 9px 0 #263b30}html[data-theme=dark] .live-estimator{box-shadow:12px 12px 0 #324d36}.outline,.ghost{color:var(--ink);background:transparent;border-color:var(--line)}
@media(max-width:1100px){.value-bento,.inline-report{margin-left:24px;margin-right:24px}.hero{gap:32px}.desktop-nav{display:flex}.topbar{padding-left:24px;padding-right:24px}.inline-report{gap:35px}}
@media(max-width:760px){.hero{grid-template-columns:1fr;padding:38px 22px 45px;gap:35px}.hero h1{font-size:47px}.hero-copy>p{font-size:16px}.hero .primary{width:100%}.hero-note{max-width:none}.live-estimator{padding:25px;box-shadow:7px 7px 0 #d7e4c4}.live-total strong{font-size:34px}.value-bento{grid-template-columns:1fr 1fr;gap:12px;margin:15px 22px 55px}.value-bento article{padding:22px}.value-bento .value-main{grid-column:1/-1}.value-bento h3{font-size:15px}.bento-number{font-size:42px}.inline-report{grid-template-columns:1fr;margin:0 22px 60px;gap:25px}.report-intro h2{font-size:35px}.report-paper{padding:23px}.topbar{padding:16px 20px;gap:12px}.brand{font-size:19px}.nav-tools{margin-left:auto}.desktop-nav{display:none;position:absolute;top:100%;left:0;right:0;background:var(--paper);padding:22px;border-bottom:1px solid var(--line);margin:0;align-items:stretch;box-shadow:0 14px 18px #0001}.desktop-nav.is-open{display:flex;flex-direction:column;gap:15px}.desktop-nav button,.desktop-nav a{text-align:left;padding:10px 6px}.nav-select select{width:100%}#nav-toggle{display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center}#nav-toggle span{width:18px;height:2px;background:currentColor;transition:transform .2s}#nav-toggle[aria-expanded=true] span:first-child{transform:translateY(4px) rotate(45deg)}#nav-toggle[aria-expanded=true] span:last-child{transform:translateY(-4px) rotate(-45deg)}.offer-audit{padding:24px 18px}.audit-form{padding:20px 15px}.form-page .form-grid{grid-template-columns:1fr}.offer-audit h2{font-size:28px}.trust-row{flex-wrap:wrap}.package-card{padding:25px}.retention-bubble{max-width:calc(100vw - 32px)}.report-packages{padding:35px 22px}.benefits{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.reveal-ready{opacity:1;transform:none}}
@media print{.nav-tools,.stripe-slot,.form-progress,.form-controls{display:none!important}html[data-theme=dark]{--ink:#15283a;--paper:white;--muted:#52616b;--wash:white;color-scheme:light}}
.desktop-nav{align-items:center}.consent-row span{font-size:13px;line-height:1.6}.package-card button,.audit-form button{height:auto;min-height:46px;padding:12px 15px}.audit-form [role=alert]{font-size:14px;line-height:1.5}.stripe-slot{overflow-wrap:anywhere}
@media(max-width:760px){.desktop-nav{align-items:stretch}}
.package-price{font-size:clamp(36px,3.2vw,46px);line-height:1.2}.package-price small{font-size:14px;white-space:nowrap}.package-net{display:block;color:var(--muted);font-size:12px;margin-top:-8px;margin-bottom:12px}.report-price strong{font-size:26px}
.report-preview-stack{min-width:0;display:grid;gap:24px}.pdf-preview{margin:0;background:var(--paper);border:1px solid var(--line);padding:14px;border-radius:8px}.pdf-preview button{display:block;width:100%;padding:0;border:0;background:white;cursor:zoom-in;position:relative;overflow:hidden;border-radius:3px}.pdf-preview img{width:100%;height:330px;display:block;object-fit:cover;object-position:top}.pdf-preview button span{display:block;background:var(--ink);color:var(--paper);padding:14px;font-size:13px;font-weight:650}.pdf-preview figcaption{font-size:12px;line-height:1.6;color:var(--muted);margin-top:10px}#pdf-preview-dialog{width:min(850px,94vw);max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:10px;padding:24px;background:var(--paper);color:var(--ink)}#pdf-preview-dialog::backdrop{background:#071e19bc}.pdf-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.pdf-dialog-head h2{font-size:22px;margin:0}.pdf-dialog-head button{white-space:nowrap}#pdf-preview-dialog>img{display:block;width:100%;height:auto;margin-top:20px}#pdf-preview-dialog>p,#pdf-preview-dialog>a{font-size:14px;color:var(--muted)}.payment-later{font-size:13px;line-height:1.6;color:var(--muted);padding-top:8px}.order-steps{padding-left:22px;display:grid;gap:16px;margin:24px 0}.order-steps li{padding-left:8px}.order-steps b,.order-steps span{display:block}.order-steps b{font-size:15px}.order-steps span{font-size:13px;line-height:1.6;color:var(--muted);margin-top:4px}@media(max-width:600px){.pdf-preview img{height:260px}.pdf-dialog-head{align-items:flex-start}.pdf-dialog-head h2{font-size:17px}#pdf-preview-dialog{padding:16px}.pdf-dialog-head button{padding:8px;font-size:12px}}
/* Poprawki kontrastu po audycie dostępności. */
:root{--orange:#b64020;--orange-dark:#963019}.step-no{color:var(--muted)}footer .brand>span:last-child>span,footer .footer-contact{color:#ffac8e}.benefits{background:#193c34}html[data-theme=dark] .quote-file-box{background:var(--paper)}
.hero-assumptions summary{min-height:32px;padding:7px 0}.report-paper summary{min-height:32px;padding:4px 0}
/* Osobne bloki ceny końcowej i netto, bez ujemnych odstępów. */
.package-card .package-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 12px;margin:12px 0 0;line-height:1.25;flex-shrink:0}.package-card .package-net{display:flex;flex-wrap:wrap;align-items:center;align-self:flex-start;gap:6px 10px;margin:14px 0 18px;padding:10px 13px;border:1px solid var(--line);border-radius:7px;background:var(--wash);color:var(--ink);font-size:14px;line-height:1.5;flex-shrink:0}.package-net strong{font-weight:750}.package-net span{font-size:12px;color:var(--muted)}.package-card .payment-later{margin-bottom:0}
/* Czytelne wyniki i pola we wszystkich motywach. */
#result-screen .flag-item{background:#fff9ed;color:#182d27;padding:22px;border-left-width:4px}
#result-screen .flag-item.missing{background:#edf3f8}#result-screen .flag-item.red{background:#fff0ec}#result-screen .flag-item.clear{background:#edf8f1}
#result-screen .flag-item h4{font-size:18px;line-height:1.4;color:inherit;margin:10px 0}
#result-screen .flag-item p{font-size:15px;line-height:1.65;color:inherit}
#result-screen .flag-item>span{font-size:12px;font-weight:750;color:#634b16}
#result-screen .flag-item.missing>span{color:#344e65}#result-screen .flag-item.red>span{color:#982c1c}
#result-screen .flags-heading>span{background:#e7efe9;color:#183d2d;font-size:13px;font-weight:650;line-height:1.5}
#result-screen .total-card{background:#163c32;color:#fff;border:1px solid #53776b}
#result-screen .total-card small{color:#dcece6;font-size:14px;line-height:1.5}
#result-screen .total-card strong{color:#fff;font-size:clamp(25px,4vw,34px);line-height:1.4}
#result-screen .total-card>span{color:#b2efd1;font-size:12px;line-height:1.5}
#result-screen .gauge-labels{font-size:11px;color:#dcece6}
#result-screen .cost-columns p,#result-screen .cost-columns small{font-size:12px;line-height:1.5}
#result-screen .cost-icon.navy{background:#234a40;color:#fff}
#result-screen .subcopy{font-size:14px;line-height:1.65}
#result-screen .premium-context{color:var(--ink);background:var(--wash)}
html[data-theme=dark] #result-screen .flag-item{background:#342c1d;color:#fff3dc;border-color:#e9b953}
html[data-theme=dark] #result-screen .flag-item.missing{background:#203442;color:#edf6ff;border-color:#90b7d6}
html[data-theme=dark] #result-screen .flag-item.red{background:#402720;color:#ffede6;border-color:#ff9878}
html[data-theme=dark] #result-screen .flag-item.clear{background:#1c3b2e;color:#e4fff0;border-color:#8bd7ae}
html[data-theme=dark] #result-screen .flag-item>span{color:#ffe0a0}
html[data-theme=dark] #result-screen .flag-item.missing>span{color:#b8dbf6}
html[data-theme=dark] #result-screen .flag-item.red>span{color:#ffbca5}
html[data-theme=dark] #result-screen .flags-heading>span{background:#294b3c;color:#e8fff2}
#calculator-screen label{font-size:14px;line-height:1.5}#calculator-screen input,#calculator-screen select{font-size:16px;min-height:48px}#calculator-screen small{font-size:12px;line-height:1.6}
#service-description{display:block;margin-top:10px;font-weight:450;color:var(--muted)}
.city-lookup{position:relative}.city-suggestions{position:absolute;top:76px;left:0;right:0;z-index:30;margin:0;padding:5px;list-style:none;max-height:280px;overflow:auto;background:var(--paper);color:var(--ink);border:2px solid var(--line);border-radius:8px;box-shadow:0 12px 24px #0003}
.city-suggestions[hidden]{display:none}.city-suggestions li{padding:12px;font-size:14px;font-weight:450;line-height:1.5;cursor:pointer;border-bottom:1px solid var(--line)}.city-suggestions li:hover,.city-suggestions li[aria-selected=true]{background:var(--wash);outline:2px solid var(--orange);outline-offset:-2px}.location-source-note{display:block;margin-top:8px}
#result-screen :is(.shop-item,.shop-new){background:var(--paper);color:var(--ink)}
#result-screen :is(.shopping-config>p,.rr-note,.shop-item [data-line],.shop-new [data-line],.rr-table th small){color:var(--muted);font-size:13px;line-height:1.6}
#result-screen #shopping-config>p{color:var(--muted);font-size:13px}
#result-screen :is(table thead th,table th[scope=row]){color:var(--ink);background:var(--wash);font-size:13px}
#result-screen table th small{color:var(--muted);font-size:12px}
#result-screen .price-age{color:var(--orange);font-size:12px}
#result-screen #budget-verdict>span{background:var(--wash);color:var(--ink);font-size:12px}
#result-screen :is(.row-split,.breakdown-row>small,.card-title>span){font-size:12px;line-height:1.5}
#result-screen .breakdown-row{gap:12px}

/* Pomoc przy wyborze standardu, widoczna także na telefonie i bez najeżdżania. */
.live-estimator .standard-explainer{margin:14px 0 22px;padding:16px;border:1px solid #698d7b;border-radius:8px;background:#244c40;color:#f3faf4}
.standard-explainer-head{display:flex;align-items:flex-start;gap:10px}.standard-explainer-head svg{width:22px;height:22px;flex:none;color:#d1efad}.standard-explainer-head strong{font-size:15px;line-height:1.5}
.live-estimator .standard-explainer p{font-size:14px;line-height:1.65;margin:10px 0;color:#f3faf4}
.live-estimator .standard-explainer small{display:block;font-size:12px;line-height:1.6;color:#d8e9df}
/* Netto jako cena główna; kwota do zapłaty zawsze tuż pod nią. */
.package-gross{display:grid;gap:4px;margin:12px 0 18px;padding:12px 14px;border:1px solid var(--line);border-radius:7px;background:var(--wash);color:var(--ink);line-height:1.5}.package-gross strong{font-size:21px;font-weight:750}.package-gross span{font-size:13px;color:var(--muted)}.package-checkout{margin-top:auto;padding-top:18px;min-width:0}.purchase-label{display:flex;gap:8px;align-items:center;font-weight:700;font-size:15px;margin-bottom:12px}.purchase-label svg{width:22px;height:22px}.package-checkout stripe-buy-button{display:block;max-width:100%;min-height:52px}.stripe-unavailable{font-size:13px;line-height:1.6;color:var(--ink)}.stripe-unavailable a{color:inherit;overflow-wrap:anywhere}.package-checkout:focus-visible{outline:2px solid var(--orange);outline-offset:5px}

/* ============================================================
   DARK THEME — FINAL CONTRAST / SURFACE PASS
   Keeps the existing visual language but prevents light surfaces,
   dark text and low-contrast borders from leaking into dark mode.
   ============================================================ */
:root{--ink-surface:#15283a;--surface-soft:#f5f7f8;--surface-muted:#edf1f3;--border-strong:#cbd5da}
html[data-theme=dark]{
  --ink-surface:#193c34;
  --surface-soft:#20342f;
  --surface-muted:#243a34;
  --border-strong:#4a6259;
}

html[data-theme=dark] body{background:var(--wash);color:var(--ink)}
html[data-theme=dark] .topbar{background:rgba(15,30,26,.96);border-color:var(--line)}
html[data-theme=dark] .hero{background:radial-gradient(ellipse at 78% 25%,#29453a 0%,transparent 60%),var(--wash)}
html[data-theme=dark] .quick-check{background:var(--paper);border-color:var(--line)}
html[data-theme=dark] .steps-section{background:var(--paper)}
html[data-theme=dark] .steps-grid article{background:var(--paper);border-color:var(--line)}

/* Dark surfaces that previously inherited the now-light --ink variable. */
html[data-theme=dark] :is(.budget-protection,.benefits,.total-card,.report-hero,.project-summary,.contractor-hero,.toast){
  background:var(--ink-surface);
  color:#fff;
}
html[data-theme=dark] .budget-protection p{color:#d7e5df}
html[data-theme=dark] .budget-protection li{background:#ffffff0d;border-color:#ffffff2e}
html[data-theme=dark] .company-logo{background:var(--ink-surface);color:#fff}
html[data-theme=dark] .pdf-preview button span{background:var(--ink-surface);color:#fff}

/* Sections with hard-coded light backgrounds. */
html[data-theme=dark] .thanks-page{background:linear-gradient(135deg,#0f1e1a,#172a25)}
html[data-theme=dark] .progress-track{background:#30453f}
html[data-theme=dark] .cost-icon.gray{background:var(--surface-muted);color:var(--muted)}
html[data-theme=dark] .breakdown-row{border-color:#2b3b36}
html[data-theme=dark] .premium-report-card{background:linear-gradient(135deg,#2b2925,#172a25);border-color:#6b574c}
html[data-theme=dark] .verdict.good{border-color:#477662}
html[data-theme=dark] .verdict.warn{border-color:#806b3b}
html[data-theme=dark] .verdict.bad{background:#3b2928;border-color:#7b4d4a}
html[data-theme=dark] .verdict>span{background:#ffffff18;color:var(--ink)}
html[data-theme=dark] .job-tags span{background:var(--surface-muted);color:var(--ink-2)}
html[data-theme=dark] .profile-progress{background:#30413c}
html[data-theme=dark] .publish-card>small{color:#a9b7b2}
html[data-theme=dark] .store-card small{color:#a9b7b2}
html[data-theme=dark] .retention-close{background:#243831;color:var(--ink)}
html[data-theme=dark] .quote-file-box{background:#20342f;border-color:#b8795f}
html[data-theme=dark] .energy-details{background:var(--surface-soft);border-color:var(--line)}

/* Natural-language calculator blocks. */
html[data-theme=dark] .smart-example{background:#20342f;color:#e6ece5}
html[data-theme=dark] .smart-questions{background:#1b302a}
html[data-theme=dark] .smart-parsed span{background:#203831;color:var(--ink);border-color:#4b665c}
html[data-theme=dark] .smart-question-grid fieldset{background:#172a25;border-color:#4b665c}
html[data-theme=dark] .smart-answer{background:#172a25;color:var(--ink)}

/* Shopping / quote widgets. */
html[data-theme=dark] .shop-item,
html[data-theme=dark] .shop-new{background:#1b302a;border-color:#3b514a;color:var(--ink)}
html[data-theme=dark] .shop-item summary span{color:#b6c7c0}
html[data-theme=dark] [data-pending]{background:#3a3022;color:#f4dfb9}
html[data-theme=dark] .shopping-config>p{color:var(--muted)}
html[data-theme=dark] .shopping-config .report-table{background:#111b18;color:#eef4f0}
html[data-theme=dark] .shopping-config .report-table th,
html[data-theme=dark] .shopping-config .report-table td{border-color:#2b3b36}

/* Decision report: remove remaining white/light-mode-only surfaces. */
html[data-theme=dark] .rr-brand{color:#e6ece5}
html[data-theme=dark] .rr-brand span{color:#ff9d80}
html[data-theme=dark] .rr-mode{background:#3b3024;color:#f2d3a3}
html[data-theme=dark] .rr-project p{color:var(--muted)}
html[data-theme=dark] .rr-actions li{border-color:#30423c}
html[data-theme=dark] .rr-actions li::before{color:#ffd0bc;background:#3b2925}
html[data-theme=dark] .rr-table-wrap .report-table thead th{background:#243732;color:#dbe7e2}
html[data-theme=dark] .rr-table-wrap .report-table tbody th{color:#d5e2dd}
html[data-theme=dark] .rr-table-wrap .report-table th small{color:#aebeb8}
html[data-theme=dark] .rr-note{color:#afbeb8}
html[data-theme=dark] .rr-budget{background:#20342f;border-color:#6a8278;color:#dce8e3}
html[data-theme=dark] .rr-risk{background:#332e23;border-color:#9c7a43}
html[data-theme=dark] .rr-risk.red{background:#3b2927;border-color:#9a5b4f}
html[data-theme=dark] .rr-risk.missing{background:#26343a;border-color:#68849a}
html[data-theme=dark] .rr-risk small{color:#b9c6c1}
html[data-theme=dark] .rr-message{background:#14231f;color:var(--ink);border-color:#425a51}
html[data-theme=dark] .rr-checklist li{border-color:#30423c}
html[data-theme=dark] .rr-sample-page{background:#0f1e1a}
html[data-theme=dark] .rr-sample-nav a{color:#b8d0c7}

/* PDF preview / modal controls. */
html[data-theme=dark] .pdf-preview button{background:#172a25}
html[data-theme=dark] #pdf-preview-dialog{background:var(--paper);color:var(--ink);border-color:var(--line)}

/* SEO helper pages already use their own variables; make generic tables/forms consistent. */
html[data-theme=dark] .seo-table th,
html[data-theme=dark] .seo-table td{border-color:var(--seo-line)}

/* Native controls should follow the selected theme too. */
html[data-theme=dark] :is(input,select,textarea){color-scheme:dark}

/* High-contrast fallback for users explicitly requesting more contrast. */
@media (prefers-contrast: more){
  html[data-theme=dark]{--line:#5a7168}
  html[data-theme=dark] :is(button,input,select,textarea,.card,.info-card,.wizard-card,.result-card){border-color:var(--line)}
}
html[data-theme=dark] .brand-mark{background:var(--ink-surface);color:#fff}
html[data-theme=dark] .dot.navy{background:var(--ink-surface)}
html[data-theme=dark] .benefits div{border-color:#ffffff20}
html[data-theme=dark] .premium-band{background:linear-gradient(120deg,#193c34,#203f38)}
