/* Live estimator contrast. Paint-only overrides keep the approved geometry,
   chart palettes, animated layers, and PDF snapshot styles independent. */
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) {
  --roi-surface:#0d2a22;
  --roi-surface-deep:#092019;
  --roi-outline:#4b8878;
  --roi-divider:#3b695d;
  --muted:#bed3cb;
  border-color:var(--roi-outline);
  background-color:#071d17;
}
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) .roi-tabs {
  border-color:var(--roi-outline);
  background-color:var(--roi-surface-deep);
}
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) .roi-tab {
  border-color:#47766b;
  background-color:#102b23;
  color:#d5e7e0;
}
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) .roi-tab:not(.active)::before { opacity:.8; }
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) .roi-tab:is(.active,:hover,:focus-visible) {
  border-color:var(--tab-accent);
  background-color:#1b3c32;
  color:#f3fbf8;
}
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) .roi-summary {
  --roi-summary-edge-inset:24px;
  background-color:var(--roi-surface);
  border-color:var(--roi-outline);
  box-shadow:inset 0 0 0 1px var(--roi-outline);
}
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) .roi-summary[data-presentation="v76"] .result {
  border-color:var(--roi-outline);
}
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) .roi-summary[data-presentation="v76"] .result > span { color:#e0eee8; }

/* Bridge the summary padding without changing the approved text positions.
   The 1+2 layout starts at 720px; its padding changes only at 620px. */
@media (max-width:720px) {
  body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) .roi-summary[data-presentation="v76"] .energy-summary-detail-v74 {
    position:relative;
  }
  body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) .roi-summary[data-presentation="v76"] .energy-summary-detail-v74::after {
    content:"";
    position:absolute;
    left:calc(-1 * var(--roi-summary-edge-inset));
    right:calc(-1 * var(--roi-summary-edge-inset));
    bottom:-1px;
    height:1px;
    background:var(--roi-outline);
    pointer-events:none;
  }
}
@media (max-width:620px) {
  body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) .roi-summary {
    --roi-summary-edge-inset:14px;
  }
}

/* 01: keep the equipment groups already approved in V77f. */
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewInputs .common-parameters { border-color:var(--roi-divider); }

/* 02: category cards include conventional equipment, heat pumps and solar. */
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewResults :is(.equipment-category-v50,.roi-chart.finance) {
  border-color:var(--roi-outline);
  background-color:var(--roi-surface);
}

/* 03: brighten the existing card fills, retaining their accent edges. */
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewBusiness .business-year-row {
  border-color:var(--roi-outline);
  background-color:var(--roi-surface);
}
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewBusiness :is(.margin-comparison-card,.revenue-bridge-row) {
  border-color:var(--roi-outline);
  background-color:var(--roi-surface);
  background-image:linear-gradient(145deg,rgba(29,67,55,.72),rgba(11,35,28,.8));
}
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewBusiness .margin-comparison-card.enhanced {
  border-color:#6aab79;
  background-image:radial-gradient(circle at 50% 52%,rgba(114,237,133,.1),transparent 43%),linear-gradient(145deg,#143d2d,#0b281e);
}
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewBusiness .business-kpis article { background-color:var(--roi-surface); }

/* 04: preserve the coal/gas and carbon result colors and their motion. */
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewCarbon .carbon-dashboard-v2 {
  border-color:var(--roi-outline);
  background-image:radial-gradient(circle at 20% 44%,rgba(239,184,92,.08),transparent 24%),radial-gradient(circle at 78% 44%,rgba(122,240,132,.1),transparent 27%),radial-gradient(circle at 50% 30%,rgba(55,190,165,.14),transparent 35%),linear-gradient(135deg,#0b2821,#092019 72%);
}
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewCarbon :is(.carbon-controls-v2,.carbon-breakdown-v70 p) {
  border-color:var(--roi-outline);
  background-color:var(--roi-surface);
}
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewCarbon .carbon-formulas-v2 p { background-color:var(--roi-surface); }
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewCarbon :is(.gas-carbon-controls-v75,.heatpump-carbon-v75) { border-top-color:var(--roi-divider); }
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewCarbon .carbon-result-v2.coal {
  border-color:#ad874d;
  background-image:linear-gradient(145deg,#473a24,#162d23);
}
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewCarbon .carbon-result-v2.co2 {
  border-color:#6ca77b;
  background-image:linear-gradient(145deg,#244b33,#102d22);
}

/* 05: a restrained cool accent for EMC; buyout keeps its green theme. */
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewEmc .returns-mode-switch {
  border-color:var(--roi-outline);
  background-color:var(--roi-surface);
}
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewEmc .returns-mode-switch-track { background-color:#102c24; }
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewEmc .returns-mode-switch-tab:not([aria-selected="true"]) {
  color:#e0eee8;
  border-color:#588b7b;
  background-color:#1a3d32;
}
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewEmc .returns-mode-switch-tab:not([aria-selected="true"]) .returns-mode-switch-description { color:#c8ddd4; }
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewEmc .returns-mode-switch-backdrop {
  background-color:#15382e;
  background-image:linear-gradient(115deg,rgba(var(--returns-accent-rgb),.28),rgba(var(--returns-accent-rgb),.12));
}
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewEmc .returns-mode-switch[data-returns-mode="emc"] {
  --returns-accent:#8b8fbc;
  --returns-accent-rgb:139,143,188;
  border-color:#68768a;
  background-color:#17242b;
}
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewEmc .returns-mode-switch[data-returns-mode="emc"] .returns-mode-switch-track { background-color:#101c23; }
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewEmc .returns-mode-switch[data-returns-mode="emc"] .returns-mode-switch-backdrop { background-color:#26313e; }
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewEmc .returns-mode-switch-tab[data-returns-mode-tab="emc"]:not([aria-selected="true"]) {
  border-color:#727c91;
  background-color:#29333e;
  color:#e1e5ed;
}
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewEmc .returns-mode-switch-tab[data-returns-mode-tab="emc"] .returns-mode-switch-description { color:#cbd0e2; }
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewEmc .emc-dashboard-v2 {
  --emc-bg:#101a21;
  --emc-panel:#1a2730;
  --emc-panel-raised:#24313c;
  --emc-line:#68768a;
  --emc-line-strong:#929db3;
  --emc-muted:#c2ccd6;
  --emc-label:#dce3e9;
  --emc-ink:#f2f6f8;
  --emc-contract:#8b8fbc;
  --emc-contract-bright:#c5c9e8;
  background-color:var(--emc-bg);
  background-image:radial-gradient(circle at 88% 4%,rgba(139,143,188,.08),transparent 27%),radial-gradient(circle at 8% 44%,rgba(139,143,188,.025),transparent 30%),linear-gradient(145deg,#15212a,#101a21 72%);
}
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewEmc :is(.emc-v2-parameter,.emc-v2-chart-board,.emc-v2-details,.emc-v2-year-card) {
  background-image:linear-gradient(145deg,#26333d,#1c2831);
}
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewEmc .emc-v2-parameter.is-manual:not(.is-invalid) {
  border-color:#929bb4;
  background-image:linear-gradient(145deg,#111b25,#0b131b);
}
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewEmc .emc-v2-chart-panel {
  border-color:var(--emc-line);
  background-color:#142129;
}
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewEmc .emc-v2-year-strip {
  border-color:#78869b;
  border-left-color:var(--emc-contract);
  background-color:#26333e;
}
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewEmc .buyout-dashboard {
  --buyout-line:#517d61;
  --buyout-line-strong:#7bad8b;
  --buyout-muted:#bfd3c5;
  background-image:radial-gradient(circle at 88% 4%,rgba(107,201,137,.13),transparent 27%),radial-gradient(circle at 8% 44%,rgba(107,201,137,.055),transparent 30%),linear-gradient(145deg,#0c291c,#081f14 72%);
}
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewEmc :is(.buyout-parameter,.buyout-chart-board,.buyout-details,.buyout-year-card:not(.buyout-summary-card)) {
  background-image:linear-gradient(145deg,#173b26,#0d291b);
}
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewEmc .buyout-parameter.is-editable:not(.is-invalid) {
  border-color:#82ba8f;
  background-image:linear-gradient(145deg,#0a2418,#06190f);
}
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewEmc .buyout-chart {
  border-color:var(--buyout-line);
  background-color:#0d281b;
}
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewEmc .buyout-year-strip {
  border-color:#648a6d;
  border-left-color:var(--buyout-green);
  background-color:#193b26;
}

/* Editable controls remain recessed before focus; automatic/readonly results
   keep their lighter surfaces and invalid states keep the existing red cues. */
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewEmc :is(.emc-v2-input,.emc-v2-share-input,.emc-v2-select,.buyout-input):not([readonly]):not(:disabled):not([aria-invalid="true"]):not(.is-invalid) {
  background-color:#061813;
}
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewEmc :is(.emc-v2-input,.buyout-input)::placeholder { color:#bed6cd; opacity:1; }
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewEmc .emc-v2-parameter.is-manual:not(.is-invalid):focus-within {
  border-color:#c1c9e6;
  box-shadow:inset 0 0 0 1px #929bb4;
}
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewEmc .buyout-parameter.is-editable:not(.is-invalid):focus-within {
  border-color:#b9f6c6;
  box-shadow:inset 0 0 0 1px #82ba8f;
}

/* Keep editable EMC fields darker than the automatic results. */
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewEmc :is(.emc-v2-input,.emc-v2-share-input,.emc-v2-select):not([readonly]):not(:disabled):not([aria-invalid="true"]):not(.is-invalid) {
  background-color:#0d151c;
}
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) #roiViewEmc .emc-v2-input::placeholder { color:#c7ced8; }
/* Extend the readable input edges to the other views; keep invalid cues. */
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) :is(#roiViewBusiness,#roiViewCarbon) :is(input,select,.money-input,.carbon-region-toggle):not([aria-invalid="true"]) {
  border-color:#527f72;
}
body[data-page="project"] .roi-panel:not(.pdf-snapshot-copy-v2) :is(#roiViewBusiness,#roiViewCarbon) :is(input,select,.carbon-region-toggle):not([aria-invalid="true"]):is(:focus,:focus-visible,[aria-expanded="true"]) {
  border-color:#58e8df;
}
