:root{
  --ink:#111318;
  --muted:#69707d;
  --line:#e7e9ed;
  --soft:#f7f8fa;
  --accent:#6f8498;
  --ok:#167a43;
  --bad:#b42318;
  --radius:18px;
  --max:820px;
}
*{box-sizing:border-box}
html{background:#fff;color:var(--ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body{margin:0;background:#fff;min-height:100vh}
button,input,select{font:inherit}
button{cursor:pointer}
.ed-header{
  position:sticky;top:0;z-index:50;height:72px;padding:0 max(20px,calc((100vw - 1180px)/2));
  display:flex;align-items:center;justify-content:space-between;
  background:rgba(255,255,255,.88);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(17,19,24,.06)
}
.ed-brand{display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none;font-weight:680;letter-spacing:-.02em}
.ed-brand small{margin-left:7px;color:var(--muted);font-size:12px;font-weight:560}
.ed-mark{
  width:34px;height:34px;border:1px solid var(--ink);border-radius:10px;display:grid;place-items:center;
  font-size:12px;font-weight:800;letter-spacing:-.06em
}
.ed-progress{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px}
.ed-progress i{width:34px;height:1px;background:var(--line)}
.ed-progress span:first-child{color:var(--ink);font-variant-numeric:tabular-nums}
.ed-new-house{
  appearance:none;border:1px solid var(--line);background:#fff;color:var(--muted);
  border-radius:10px;padding:7px 10px;font-size:11px;font-weight:700;white-space:nowrap;
  flex:0 0 auto
}
.ed-new-house:hover{color:var(--ink);background:var(--soft)}
.ed-shell{min-height:calc(100vh - 72px)}
.ed-page{display:none;min-height:calc(100vh - 72px);padding:74px 24px 96px}
.ed-page.is-active{display:flex;justify-content:center;align-items:flex-start}
.ed-copy,.ed-form-page,.ed-run-card{width:min(100%,var(--max))}
.ed-copy{padding-top:8vh}
.ed-copy h1,.ed-report h1{
  font-size:clamp(42px,7vw,78px);line-height:.98;letter-spacing:-.055em;
  max-width:850px;margin:16px 0 24px;font-weight:680
}
.ed-eyebrow{
  margin:0;text-transform:uppercase;letter-spacing:.12em;font-size:12px;font-weight:760;color:var(--muted)
}
.ed-lead,.ed-hint{color:var(--muted);line-height:1.65;max-width:650px}
.ed-lead{font-size:18px;margin:0 0 34px}
.ed-hint{font-size:15px;margin:10px 0 34px}
.ed-primary,.ed-back,.ed-link{
  border:0;background:none;border-radius:12px;min-height:48px;padding:0 18px;font-weight:670
}
.ed-primary{background:var(--ink);color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:14px}
.ed-primary:hover{background:#252830}
.ed-primary span{font-size:18px}
.ed-back,.ed-link{color:var(--muted)}
.ed-back:hover,.ed-link:hover{color:var(--ink);background:var(--soft)}
.ed-form-page{padding-top:14px}
.ed-form-page h2,.ed-run-card h2{
  font-size:clamp(34px,5vw,58px);line-height:1.03;letter-spacing:-.045em;margin:16px 0 10px;font-weight:670
}
.ed-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.ed-field{
  display:flex;flex-direction:column;gap:9px;padding:16px;border:1px solid var(--line);
  border-radius:16px;background:#fff;transition:border-color .18s,box-shadow .18s,opacity .18s
}
.ed-field:focus-within{border-color:#aab6cf;box-shadow:0 0 0 4px rgba(23,94,232,.06)}
.ed-field>span{font-size:12px;color:var(--muted);font-weight:720;letter-spacing:.025em}
.ed-field>div{display:flex;align-items:center;gap:8px}
.ed-field input,.ed-field select,.ed-field>select{
  width:100%;border:0;outline:0;background:transparent;color:var(--ink);
  font-size:18px;font-weight:620;min-width:0;padding:2px 0
}
.ed-field em{font-style:normal;color:var(--muted);font-size:13px;white-space:nowrap}
.ed-wide{width:100%}
.ed-top-gap{margin-top:16px}
.ed-actions{display:flex;justify-content:space-between;align-items:center;margin-top:34px;padding-top:24px;border-top:1px solid var(--line)}
.ed-choice-list{display:grid;gap:10px}
.ed-choice-list button{
  width:100%;text-align:left;background:#fff;border:1px solid var(--line);border-radius:16px;
  padding:18px 20px;display:grid;gap:5px;color:var(--ink)
}
.ed-choice-list button:hover{border-color:#c8ccd4}
.ed-choice-list button.is-selected{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
.ed-choice-list b{font-size:16px}
.ed-choice-list span{color:var(--muted);font-size:14px;line-height:1.5}
.ed-toggle{
  border:0;background:transparent;padding:5px 0;display:flex;align-items:center;gap:10px;color:var(--muted)
}
.ed-toggle i{width:44px;height:26px;border-radius:99px;background:#d9dde5;position:relative;transition:.2s}
.ed-toggle i:after{
  content:"";position:absolute;width:20px;height:20px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:.2s
}
.ed-toggle[aria-pressed="true"]{color:var(--ink)}
.ed-toggle[aria-pressed="true"] i{background:var(--ink)}
.ed-toggle[aria-pressed="true"] i:after{transform:translateX(18px)}
.ed-field.is-muted{opacity:.42;pointer-events:none}
.ed-conditional{margin-top:16px}
.ed-run-card{
  margin-top:4vh;padding:32px;border:1px solid var(--line);border-radius:24px;background:rgba(255,255,255,.96);
  box-shadow:0 28px 80px rgba(22,30,45,.08)
}
.ed-spinner{width:28px;height:28px;border-radius:50%;border:2px solid #dfe3ea;border-top-color:var(--ink);animation:spin .8s linear infinite;margin-bottom:24px}
@keyframes spin{to{transform:rotate(360deg)}}
.ed-run-steps{display:grid;gap:2px;margin:28px 0 22px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.ed-run-steps>div{display:grid;grid-template-columns:14px 1fr auto;gap:12px;align-items:center;padding:15px 0;font-size:14px}
.ed-run-steps>div+div{border-top:1px solid var(--line)}
.ed-run-steps i{width:8px;height:8px;border-radius:50%;background:#d8dce3}
.ed-run-steps b{font-size:12px;color:var(--muted);font-weight:620}
.ed-run-steps .is-active i{background:var(--accent);box-shadow:0 0 0 4px rgba(23,94,232,.09)}
.ed-run-steps .is-done i{background:var(--ok)}
.ed-run-steps .is-done b{color:var(--ok)}
.ed-run-steps .is-error i{background:var(--bad)}
.ed-terminal{
  min-height:136px;max-height:220px;overflow:auto;background:#fff;border:1px solid var(--line);
  border-radius:14px;padding:14px 16px;font:12px/1.7 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#313844
}
.ed-terminal div{white-space:pre-wrap}
.ed-terminal time{color:#9aa1ad;margin-right:10px}
.ed-done{text-align:center;display:flex;flex-direction:column;align-items:center}
.ed-done .ed-lead{max-width:570px}
.ed-done-mark,.ed-error-mark{
  width:58px;height:58px;border-radius:50%;display:grid;place-items:center;margin-bottom:22px;font-size:26px;font-weight:760
}
.ed-done-mark{background:#edf8f1;color:var(--ok)}
.ed-error-mark{background:#fff0ee;color:var(--bad)}
.ed-done h1{margin-bottom:18px}
.ed-done .ed-link{margin-top:10px}
.ed-report-page.is-active{display:block}
.ed-report{width:min(100%,760px);margin:0 auto}
.ed-report>header{padding:28px 0 52px;border-bottom:1px solid var(--line)}
.ed-report h1{font-size:clamp(46px,7vw,74px)}
.ed-report>header>p:last-child{font-size:18px;color:var(--muted);line-height:1.65}
.ed-report-section{padding:44px 0;border-bottom:1px solid var(--line)}
.ed-report-section h2{font-size:28px;letter-spacing:-.035em;margin:0 0 18px}
.ed-report-section h3{font-size:17px;margin:26px 0 10px}
.ed-report-section p,.ed-report-section li{font-size:16px;line-height:1.75;color:#343943}
.ed-report-section ul{padding-left:20px}
.ed-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:24px 0}
.ed-metric{padding:18px;border:1px solid var(--line);border-radius:15px}
.ed-metric small{display:block;color:var(--muted);font-size:12px;margin-bottom:8px}
.ed-metric strong{font-size:27px;letter-spacing:-.035em}
.ed-report-callout{padding:24px;border:1px solid var(--ink);border-radius:18px;margin:24px 0}
.ed-report-callout strong{font-size:21px}
.ed-measure{display:flex;justify-content:space-between;gap:20px;padding:15px 0;border-top:1px solid var(--line)}
.ed-measure span{color:var(--muted)}
.ed-report-footer{padding:38px 0 80px;color:var(--muted);font-size:13px}
.ed-report-footer .ed-back{padding-left:0}
.ed-log-dialog{width:min(92vw,760px);max-height:80vh;border:1px solid var(--line);border-radius:18px;padding:0;box-shadow:0 30px 90px rgba(0,0,0,.15)}
.ed-log-dialog::backdrop{background:rgba(17,19,24,.25);backdrop-filter:blur(4px)}
.ed-log-dialog>div{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;border-bottom:1px solid var(--line)}
.ed-log-dialog button{border:0;background:none;font-size:24px;color:var(--muted)}
.ed-log-dialog pre{margin:0;padding:18px;white-space:pre-wrap;font:12px/1.65 ui-monospace,SFMono-Regular,Menlo,monospace;overflow:auto}

.ed-price-dialog{
  width:min(94vw,820px);
  max-height:min(86vh,760px);
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:22px;
  padding:0;
  background:#fff;
  box-shadow:0 32px 110px rgba(16,22,32,.18);
  color:var(--ink);
}
.ed-price-dialog::backdrop{
  background:rgba(17,19,24,.28);
  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
}
.ed-price-dialog-shell{
  max-height:min(86vh,760px);
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
}
.ed-price-dialog-header{
  position:sticky;
  top:0;
  z-index:2;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  padding:22px 24px 18px;
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.ed-price-dialog-header h2{font-size:27px;line-height:1.05;letter-spacing:-.035em;margin:3px 0 8px}
.ed-price-dialog-header>div>p:last-child{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.ed-price-dialog-header>button{
  width:34px;height:34px;border:0;border-radius:50%;background:var(--soft);color:var(--ink);
  font-size:23px;line-height:1;cursor:pointer;flex:0 0 auto;
}
.ed-price-reference-body{padding:20px 24px 24px}
.ed-price-reference-intro{margin:0 0 16px;color:#3c424c;font-size:13px;line-height:1.55}
.ed-price-reference-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ed-price-reference-card{border:1px solid var(--line);border-radius:15px;padding:15px;background:#fff}
.ed-price-reference-card-head{display:flex;justify-content:space-between;gap:10px;align-items:center}
.ed-price-reference-card-head>strong{font-size:14px}
.ed-price-reference-status{
  display:inline-flex;align-items:center;min-height:20px;padding:0 7px;border-radius:99px;
  background:#edf7ef;color:#27623a;font-size:9px;font-weight:750;white-space:nowrap;
}
.ed-price-reference-status.is-stale{background:#fff1e5;color:#8a4f1e}
.ed-price-reference-value{font-size:24px;font-weight:760;letter-spacing:-.035em;margin:14px 0 10px}
.ed-price-reference-value small{font-size:11px;font-weight:650;color:var(--muted);letter-spacing:0}
.ed-price-reference-contribution{margin:0 0 12px;font-size:11px;color:var(--muted)}
.ed-price-reference-card dl{margin:0;display:grid;gap:7px}
.ed-price-reference-card dl>div{display:grid;grid-template-columns:68px 1fr;gap:8px;align-items:start}
.ed-price-reference-card dt{font-size:9px;text-transform:uppercase;letter-spacing:.05em;color:#959ba5;font-weight:700}
.ed-price-reference-card dd{margin:0;font-size:11px;line-height:1.45;color:#454b55;overflow-wrap:anywhere}
.ed-price-reference-card a{color:var(--ink);text-decoration:underline;text-decoration-color:#c8ccd3;text-underline-offset:2px}
.ed-price-reference-note{margin:12px 0 0;padding-top:10px;border-top:1px solid #eef0f3;color:var(--muted);font-size:10px;line-height:1.5}
.ed-price-reference-footnote{margin:16px 0 0;color:#8c929c;font-size:10px;line-height:1.5}

.ed-class-reference-body{padding:20px 24px 24px}
.ed-class-reference-placeholder{margin:0;color:var(--muted);font-size:13px;line-height:1.6}
.ed-class-reference-section+ .ed-class-reference-section{margin-top:24px;padding-top:24px;border-top:1px solid var(--line)}
.ed-class-current-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.8fr);gap:18px;align-items:center;margin-bottom:16px}
.ed-class-current-summary>div{display:flex;align-items:center;gap:13px}
.ed-class-current-summary>div>div{display:grid;gap:3px}
.ed-class-current-summary small{font-size:10px;color:var(--muted)}
.ed-class-current-summary strong{font-size:18px;letter-spacing:-.025em}
.ed-class-current-summary p{margin:0;color:var(--muted);font-size:11px;line-height:1.5}
.ed-class-chip{
  min-width:36px;height:27px;padding:0 9px;border-radius:8px;display:inline-grid;place-items:center;
  font-size:11px;font-weight:850;letter-spacing:-.02em;color:#111;background:#eef0f2;
}
.ed-class-chip-large{min-width:54px;height:42px;border-radius:11px;font-size:18px}
.ed-class-chip[data-energy-class="A+"]{background:#007a33;color:#fff}
.ed-class-chip[data-energy-class="A"]{background:#00a651;color:#fff}
.ed-class-chip[data-energy-class="B"]{background:#50b848;color:#102219}
.ed-class-chip[data-energy-class="C"]{background:#bfd730;color:#102219}
.ed-class-chip[data-energy-class="D"]{background:#fff200;color:#252000}
.ed-class-chip[data-energy-class="E"]{background:#fdb913;color:#3b2600}
.ed-class-chip[data-energy-class="F"]{background:#f37021;color:#fff}
.ed-class-chip[data-energy-class="G"]{background:#ed1c24;color:#fff}
.ed-class-thresholds{border:1px solid var(--line);border-radius:15px;overflow:hidden;background:#fff}
.ed-class-threshold-row{
  min-height:42px;padding:7px 11px;display:grid;grid-template-columns:50px minmax(0,1fr) auto;gap:10px;align-items:center;
  border-top:1px solid #eef0f3;
}
.ed-class-threshold-row:first-child{border-top:0}
.ed-class-threshold-row b{font-size:11px;font-weight:650;color:#454b55}
.ed-class-threshold-row em{
  font-style:normal;font-size:9px;font-weight:780;color:var(--ink);background:var(--soft);border-radius:99px;padding:4px 7px;
}
.ed-class-threshold-row.is-current{background:#fafbfc;box-shadow:inset 3px 0 0 #262c35}
.ed-reference-source{margin:10px 2px 0;color:var(--muted);font-size:10px;line-height:1.5}
.ed-reference-house-heading{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:8px}
.ed-reference-house-heading h3{margin:3px 0 0;font-size:24px;letter-spacing:-.035em}
.ed-reference-house-heading>span{
  font-size:9px;font-weight:750;color:#626975;background:var(--soft);border-radius:99px;padding:6px 9px;white-space:nowrap;
}
.ed-reference-house-intro{margin:0 0 16px;color:#4b515b;font-size:12px;line-height:1.55}
.ed-reference-comparison{
  display:flex;justify-content:space-between;gap:14px;align-items:center;padding:12px 14px;margin:0 0 12px;
  background:#f7f8fa;border-radius:12px;
}
.ed-reference-comparison small{font-size:10px;color:var(--muted)}
.ed-reference-comparison strong{font-size:14px}
.ed-reference-envelope-grid{border:1px solid var(--line);border-radius:15px;overflow:hidden}
.ed-reference-house-row{
  display:grid;grid-template-columns:150px 92px minmax(0,1fr);gap:12px;align-items:center;
  min-height:48px;padding:8px 12px;border-top:1px solid #eef0f3;
}
.ed-reference-house-row:first-child{border-top:0}
.ed-reference-house-row>span{font-size:11px;font-weight:700}
.ed-reference-house-row>b{font-size:11px;white-space:nowrap}
.ed-reference-house-row>small{font-size:10px;line-height:1.4;color:var(--muted)}
.ed-reference-systems-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
.ed-reference-systems-grid article{padding:12px;border:1px solid var(--line);border-radius:13px;display:grid;gap:4px}
.ed-reference-systems-grid small{font-size:9px;text-transform:uppercase;letter-spacing:.045em;color:#949aa4;font-weight:750}
.ed-reference-systems-grid strong{font-size:12px;line-height:1.35}
.ed-reference-systems-grid span{font-size:9px;color:var(--muted);line-height:1.4}
.ed-reference-provenance{margin-top:14px;padding-top:12px;border-top:1px solid #eef0f3}
.ed-reference-provenance p{margin:5px 0;color:var(--muted);font-size:10px;line-height:1.5}
.ed-class-reference-footnote{margin:18px 0 0;color:#8c929c;font-size:10px;line-height:1.5}
@media(max-width:720px){
  .ed-price-dialog{
    width:100%;
    max-width:none;
    max-height:82vh;
    margin:auto 0 0;
    border-radius:22px 22px 0 0;
    border-left:0;border-right:0;border-bottom:0;
  }
  .ed-price-dialog-shell{max-height:82vh}
  .ed-price-dialog-header{padding:18px 18px 15px}
  .ed-price-dialog-header h2{font-size:24px}
  .ed-price-reference-body{padding:16px 18px calc(22px + env(safe-area-inset-bottom))}
  .ed-price-reference-grid{grid-template-columns:1fr}
  .ed-price-reference-card{padding:14px}
  .ed-price-reference-value{font-size:22px}
  .ed-class-reference-body{padding:16px 18px calc(22px + env(safe-area-inset-bottom))}
  .ed-class-current-summary{grid-template-columns:1fr;gap:10px}
  .ed-reference-house-heading{display:grid;gap:8px}
  .ed-reference-house-heading>span{justify-self:start}
  .ed-reference-house-row{grid-template-columns:1fr auto;gap:4px 10px}
  .ed-reference-house-row>small{grid-column:1/-1}
  .ed-reference-systems-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ed-class-threshold-row{grid-template-columns:46px 1fr auto}
  .ed-header{height:62px;padding:0 16px}
  .ed-brand small{display:none}
  .ed-page{min-height:calc(100vh - 62px);padding:44px 18px 72px}
  .ed-copy{padding-top:6vh}
  .ed-copy h1{font-size:48px}
  .ed-form-page h2,.ed-run-card h2{font-size:38px}
  .ed-grid,.ed-metrics{grid-template-columns:1fr}
  .ed-run-card{padding:22px 18px;border-radius:20px;margin-top:0}
  .ed-actions{position:sticky;bottom:0;background:rgba(255,255,255,.94);backdrop-filter:blur(15px);margin-left:-18px;margin-right:-18px;padding:14px 18px calc(14px + env(safe-area-inset-bottom));z-index:20}
  .ed-report>header{padding-top:4px}
  .ed-report h1{font-size:48px}
}

.ed-subsection{padding:30px 0;border-top:1px solid var(--line)}
.ed-subsection:first-of-type{border-top:0;padding-top:0}
.ed-subsection h3{font-size:16px;margin:0 0 16px;letter-spacing:-.02em}
.ed-details{margin-top:22px;border:1px solid var(--line);border-radius:18px;background:#fff;overflow:hidden}
.ed-details summary{list-style:none;cursor:pointer;padding:18px 20px;display:flex;justify-content:space-between;gap:20px;align-items:center}
.ed-details summary::-webkit-details-marker{display:none}
.ed-details summary span{font-weight:690}
.ed-details summary small{color:var(--muted);font-size:12px;text-align:right}
.ed-details[open] summary{border-bottom:1px solid var(--line)}
.ed-details-body{padding:18px}
.ed-derived{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:16px}
.ed-derived span{padding:12px;border-radius:12px;background:var(--soft);font-size:11px;color:var(--muted)}
.ed-derived b{display:block;margin-top:5px;color:var(--ink);font-size:14px}
.ed-reset-geometry{padding-left:0;margin-top:8px}
.ed-switch-row{display:flex;justify-content:space-between;align-items:center;gap:22px;padding:18px 0;border-bottom:1px solid var(--line)}
.ed-switch-row>div{display:grid;gap:5px}
.ed-switch-row b{font-size:16px}
.ed-switch-row span{font-size:13px;color:var(--muted)}
.ed-switch{position:relative;width:46px;height:28px;flex:0 0 auto}
.ed-switch input{position:absolute;opacity:0;pointer-events:none}
.ed-switch i{display:block;width:46px;height:28px;border-radius:99px;background:#d9dde5;position:relative;transition:.2s}
.ed-switch i:after{content:"";position:absolute;width:22px;height:22px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.2);transition:.2s}
.ed-switch input:checked+i{background:var(--ink)}
.ed-switch input:checked+i:after{transform:translateX(18px)}
.ed-grid.is-disabled{opacity:.38;pointer-events:none}
.ed-field[hidden]{display:none}
@media(max-width:720px){
  .ed-derived{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ed-details summary{align-items:flex-start;flex-direction:column;gap:4px}
  .ed-details summary small{text-align:left}
  .ed-subsection{padding:24px 0}
}


/* Editorial v3: compact density + persistent baseline strip */
.ed-header{
  height:62px;
  padding-left:max(16px,calc((100vw - 1080px)/2));
  padding-right:max(16px,calc((100vw - 1080px)/2));
}
.ed-mark{width:30px;height:30px;border-radius:8px;font-size:11px}
.ed-brand{gap:9px;font-size:14px}
.ed-brand small{font-size:10px}
.ed-progress{font-size:12px;gap:8px}
.ed-progress i{width:24px}

.ed-baseline-bar{
  position:sticky;
  top:62px;
  z-index:45;
  min-height:42px;
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.ed-baseline-inner{
  width:min(calc(100% - 32px),780px);
  min-height:42px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
}
.ed-baseline-inner>i{width:1px;height:20px;background:var(--line)}
.ed-baseline-item{display:flex;align-items:baseline;gap:7px;white-space:nowrap}
.ed-baseline-item span{font-size:10px;color:var(--muted);font-weight:650}
.ed-baseline-item strong{font-size:14px;letter-spacing:-.02em}
.ed-price-reference-trigger,
.ed-class-reference-trigger{
  appearance:none;
  border:0;
  background:none;
  color:inherit;
  font:inherit;
  padding:5px 7px;
  margin:-5px -7px;
  border-radius:9px;
  cursor:pointer;
  transition:background .16s ease,box-shadow .16s ease;
}
.ed-price-reference-trigger:hover,.ed-class-reference-trigger:hover{background:var(--soft)}
.ed-price-reference-trigger:focus-visible,.ed-class-reference-trigger:focus-visible{outline:0;box-shadow:0 0 0 3px rgba(25,31,40,.12)}
.ed-price-info{
  width:15px;
  height:15px;
  border:1px solid #c7ccd4;
  border-radius:50%;
  display:inline-grid;
  place-items:center;
  font-size:9px!important;
  line-height:1;
  color:#737a85!important;
  font-weight:800!important;
  font-family:ui-serif,Georgia,serif;
}
.ed-baseline-item:first-child strong{
  min-width:24px;
  text-align:center;
  border:1px solid var(--line);
  border-radius:7px;
  padding:2px 7px;
}
#edBaselineClass[data-energy-class]{
  border-color:transparent;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.28);
  font-weight:800;
}
#edBaselineClass[data-energy-class="A+"]{background:#007a33;color:#fff}
#edBaselineClass[data-energy-class="A"]{background:#00a651;color:#fff}
#edBaselineClass[data-energy-class="B"]{background:#50b848;color:#102219}
#edBaselineClass[data-energy-class="C"]{background:#bfd730;color:#102219}
#edBaselineClass[data-energy-class="D"]{background:#fff200;color:#252000}
#edBaselineClass[data-energy-class="E"]{background:#fdb913;color:#3b2600}
#edBaselineClass[data-energy-class="F"]{background:#f37021;color:#fff}
#edBaselineClass[data-energy-class="G"]{background:#ed1c24;color:#fff}
.ed-baseline-inner>small{font-size:10px;color:#9298a3;margin-left:2px}
.ed-baseline-bar.is-updating .ed-baseline-item strong{opacity:.55}

.ed-shell{min-height:calc(100vh - 104px)}
.ed-page{
  min-height:calc(100vh - 104px);
  padding:46px 20px 72px;
}
.ed-copy,.ed-form-page,.ed-run-card{width:min(100%,760px)}
.ed-copy{padding-top:5vh}
.ed-copy h1,.ed-report h1{
  font-size:clamp(36px,5.4vw,58px);
  line-height:1.01;
  margin:12px 0 18px;
}
.ed-form-page{padding-top:6px}
.ed-form-page h2,.ed-run-card h2{
  font-size:clamp(30px,4.1vw,44px);
  margin:12px 0 8px;
}
.ed-lead{font-size:16px;margin-bottom:26px;line-height:1.55}
.ed-hint{font-size:13px;margin:8px 0 24px;line-height:1.55}
.ed-eyebrow{font-size:10px}

.ed-grid{gap:10px}
.ed-field{
  gap:6px;
  padding:11px 13px;
  border-radius:12px;
}
.ed-field>span{font-size:10px}
.ed-field input,.ed-field select,.ed-field>select{
  font-size:15px;
  font-weight:600;
  padding:0;
}
.ed-field em{font-size:11px}
.ed-top-gap{margin-top:10px}

.ed-primary,.ed-back,.ed-link{
  min-height:42px;
  border-radius:10px;
  padding:0 15px;
  font-size:13px;
}
.ed-primary span{font-size:16px}
.ed-actions{margin-top:24px;padding-top:17px}

.ed-choice-list{gap:7px}
.ed-choice-list button{
  border-radius:12px;
  padding:12px 14px;
  gap:3px;
}
.ed-choice-list b{font-size:14px}
.ed-choice-list span{font-size:12px;line-height:1.4}

.ed-subsection{padding:22px 0}
.ed-subsection h3{font-size:14px;margin-bottom:12px}
.ed-details{margin-top:16px;border-radius:13px}
.ed-details summary{padding:13px 15px}
.ed-details summary span{font-size:13px}
.ed-details summary small{font-size:10px}
.ed-details-body{padding:13px}
.ed-derived{gap:6px;margin-bottom:11px}
.ed-derived span{padding:9px;border-radius:9px;font-size:9px}
.ed-derived b{font-size:12px;margin-top:3px}
.ed-switch-row{padding:13px 0}
.ed-switch-row b{font-size:14px}
.ed-switch-row span{font-size:11px}

.ed-run-card{
  margin-top:2vh;
  padding:22px;
  border-radius:17px;
  box-shadow:0 18px 48px rgba(22,30,45,.065);
}
.ed-spinner{width:22px;height:22px;margin-bottom:17px}
.ed-run-steps{margin:20px 0 16px}
.ed-run-steps>div{padding:11px 0;font-size:12px}
.ed-run-steps b{font-size:10px}
.ed-terminal{min-height:105px;max-height:170px;padding:10px 12px;border-radius:10px;font-size:10px}

.ed-done-mark,.ed-error-mark{width:48px;height:48px;font-size:21px;margin-bottom:16px}
.ed-done h1{margin-bottom:13px}

.ed-report{width:min(100%,700px)}
.ed-report>header{padding:18px 0 36px}
.ed-report h1{font-size:clamp(38px,5.5vw,58px)}
.ed-report>header>p:last-child{font-size:15px;line-height:1.55}
.ed-report-section{padding:30px 0}
.ed-report-section h2{font-size:23px;margin-bottom:13px}
.ed-report-section h3{font-size:15px;margin:20px 0 8px}
.ed-report-section p,.ed-report-section li{font-size:14px;line-height:1.65}
.ed-metrics{gap:7px;margin:17px 0}
.ed-metric{padding:12px 13px;border-radius:11px}
.ed-metric small{font-size:10px;margin-bottom:5px}
.ed-metric strong{font-size:20px}
.ed-report-callout{padding:16px;border-radius:13px;margin:17px 0}
.ed-report-callout strong{font-size:18px}
.ed-measure{padding:11px 0;font-size:13px}
.ed-report-footer{padding:28px 0 60px;font-size:11px}

@media(max-width:720px){
  .ed-header{height:56px;padding:0 12px}
  .ed-brand{font-size:13px}
  .ed-mark{width:28px;height:28px}
  .ed-progress{font-size:11px}
  .ed-progress i{width:18px}
  .ed-new-house{padding:6px 8px;font-size:10px}
  .ed-baseline-bar{top:56px;min-height:38px}
  .ed-baseline-inner{
    width:100%;
    min-height:38px;
    padding:0 12px;
    gap:8px;
    justify-content:center;
  }
  .ed-baseline-item{gap:5px}
  .ed-baseline-item span{font-size:9px}
  .ed-baseline-item strong{font-size:12px}
  .ed-baseline-inner>small{display:none}
  .ed-baseline-inner>i{height:17px}
  .ed-shell{min-height:calc(100vh - 94px)}
  .ed-page{min-height:calc(100vh - 94px);padding:28px 14px 62px}
  .ed-copy{padding-top:3vh}
  .ed-copy h1{font-size:36px}
  .ed-form-page h2,.ed-run-card h2{font-size:30px}
  .ed-lead{font-size:14px}
  .ed-hint{font-size:12px;margin-bottom:18px}
  .ed-grid,.ed-metrics{grid-template-columns:1fr}
  .ed-field{padding:10px 11px}
  .ed-field input,.ed-field select,.ed-field>select{font-size:14px}
  .ed-actions{
    margin-left:-14px;
    margin-right:-14px;
    padding:10px 14px calc(10px + env(safe-area-inset-bottom));
  }
  .ed-run-card{padding:17px 14px;border-radius:14px}
  .ed-report h1{font-size:38px}
  .ed-report-section{padding:25px 0}
  .ed-metric strong{font-size:18px}
}


/* Editorial v4: locale-decimal inputs + clean locality picker */
.ed-location-picker{position:relative}
.ed-locality-suggestions{
  position:absolute;
  z-index:30;
  top:62px;
  left:0;
  right:0;
  display:grid;
  max-height:260px;
  overflow:auto;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,.98);
  box-shadow:0 16px 40px rgba(20,27,40,.10);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.ed-locality-suggestions[hidden]{display:none}
.ed-locality-suggestions button{
  border:0;
  border-bottom:1px solid var(--line);
  background:#fff;
  padding:10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  text-align:left;
  color:var(--ink);
}
.ed-locality-suggestions button:last-child{border-bottom:0}
.ed-locality-suggestions button:hover{background:var(--soft)}
.ed-locality-suggestions button>span{display:grid;gap:2px;min-width:0}
.ed-locality-suggestions strong{font-size:13px}
.ed-locality-suggestions small{font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ed-locality-suggestions em{font-size:10px;color:var(--muted);font-style:normal;white-space:nowrap}

.ed-location-meta{
  margin:8px 2px 10px;
  font-size:10px;
  color:var(--muted);
}
.ed-location-map{
  overflow:hidden;
  min-height:210px;
  border:1px solid var(--line);
  border-radius:13px;
  background:#fbfcfd;
}
.ed-location-map>p{
  margin:0;
  min-height:210px;
  display:grid;
  place-items:center;
  color:var(--muted);
  font-size:11px;
}
.ed-location-map-svg{
  display:block;
  width:100%;
  height:auto;
  background:linear-gradient(180deg,#fcfdfe,#f7f9fb);
  touch-action:manipulation;
}
.ed-map-zone{
  fill:#f4f6f8;
  stroke:#fff;
  stroke-width:1.1;
  vector-effect:non-scaling-stroke;
  transition:fill .15s,opacity .15s;
}
.ed-map-zone.zone-I{fill:#f7f8fa}
.ed-map-zone.zone-II{fill:#f1f4f7}
.ed-map-zone.zone-III{fill:#eaf0f5}
.ed-map-zone.zone-IV{fill:#e4ecf3}
.ed-map-zone.zone-V{fill:#dce7f0}
.ed-map-zone.is-selected{
  fill:#dfeaf8;
  stroke:#8faed1;
  stroke-width:1.4;
}
.ed-map-boundary{
  fill:none;
  stroke:#89929f;
  stroke-width:1.25;
  vector-effect:non-scaling-stroke;
  pointer-events:none;
}
.ed-map-locality{cursor:pointer}
.ed-map-locality circle{
  fill:#7b8490;
  stroke:#fff;
  stroke-width:1.1;
  vector-effect:non-scaling-stroke;
}
.ed-map-locality text{
  fill:#4e5661;
  stroke:#fff;
  stroke-width:3px;
  paint-order:stroke;
  font-size:9px;
  font-weight:650;
  pointer-events:none;
}
.ed-map-locality.is-selected circle{
  fill:var(--accent);
  stroke:#fff;
  stroke-width:2;
}
.ed-map-locality.is-selected text{
  fill:#174d9f;
  font-weight:800;
}
.ed-map-caption{
  min-height:31px;
  padding:0 10px;
  border-top:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:var(--muted);
  font-size:9px;
}
.ed-map-suggestions{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:8px;
}
.ed-map-suggestions[hidden]{display:none}
.ed-map-suggestions button{
  border:1px solid var(--line);
  border-radius:9px;
  background:#fff;
  padding:7px 9px;
  display:grid;
  gap:1px;
  text-align:left;
  color:var(--ink);
}
.ed-map-suggestions button:hover{border-color:#bbc4d0;background:var(--soft)}
.ed-map-suggestions strong{font-size:11px}
.ed-map-suggestions small{font-size:9px;color:var(--muted)}

[data-decimal-input]{font-variant-numeric:tabular-nums}

@media(max-width:720px){
  .ed-locality-suggestions{top:58px;max-height:220px}
  .ed-location-map{min-height:170px}
  .ed-location-map>p{min-height:170px}
  .ed-map-caption{font-size:8px;padding:0 8px}
  .ed-map-caption span:last-child{display:none}
}


/* Editorial v5: pale thermal climate map + progressive map navigation */
.ed-map-stage{
  position:relative;
  overflow:hidden;
}
.ed-location-map-svg{
  touch-action:none;
  cursor:grab;
  user-select:none;
  -webkit-user-select:none;
}
.ed-location-map-svg.is-panning{cursor:grabbing}
.ed-map-zone{
  opacity:.94;
  stroke:rgba(255,255,255,.92);
  stroke-width:1.05;
}
.ed-map-zone.zone-I{fill:#f3bf91}
.ed-map-zone.zone-II{fill:#f2d3a6}
.ed-map-zone.zone-III{fill:#dde2c4}
.ed-map-zone.zone-IV{fill:#c8dfdf}
.ed-map-zone.zone-V{fill:#b8cee5}
.ed-map-zone.is-selected{
  stroke:#72879d;
  stroke-width:1.7;
  filter:saturate(1.08) brightness(.985);
}
.ed-map-boundary{
  stroke:#727d89;
  stroke-width:1.2;
}
.ed-map-locality circle{
  fill:#596675;
  opacity:.9;
}
.ed-map-locality.tier-3 circle,
.ed-map-locality.tier-4 circle{opacity:.78}
.ed-map-locality.is-selected circle{
  fill:var(--accent);
  opacity:1;
}
.ed-map-locality text{
  fill:#39434f;
  stroke:rgba(255,255,255,.94);
  paint-order:stroke;
  font-weight:680;
}
.ed-map-controls{
  position:absolute;
  z-index:4;
  top:9px;
  right:9px;
  display:grid;
  grid-template-columns:30px 42px 30px;
  align-items:stretch;
  overflow:hidden;
  border:1px solid rgba(93,106,121,.18);
  border-radius:10px;
  background:rgba(255,255,255,.88);
  box-shadow:0 5px 16px rgba(23,31,43,.08);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.ed-map-controls button{
  min-width:0;
  height:30px;
  border:0;
  border-right:1px solid rgba(93,106,121,.14);
  background:transparent;
  color:#42505d;
  font:650 15px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  cursor:pointer;
}
.ed-map-controls button:last-child{border-right:0}
.ed-map-controls button:hover{background:rgba(65,79,95,.06)}
.ed-map-controls .ed-map-zoom-value{
  font-size:9px;
  font-variant-numeric:tabular-nums;
  color:#66717d;
}
.ed-map-nav-hint{
  position:absolute;
  z-index:3;
  left:9px;
  bottom:8px;
  padding:4px 7px;
  border:1px solid rgba(93,106,121,.12);
  border-radius:7px;
  background:rgba(255,255,255,.82);
  color:#6a7480;
  font-size:8px;
  line-height:1.15;
  pointer-events:none;
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}
.ed-map-caption{
  min-height:40px;
  padding:5px 10px;
  justify-content:center;
}
.ed-map-legend{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:7px 12px;
}
.ed-map-legend-item{
  display:inline-flex;
  align-items:center;
  gap:4px;
  white-space:nowrap;
  color:#59636f;
  font-size:8.5px;
  line-height:1;
}
.ed-map-legend-item i{
  width:10px;
  height:10px;
  flex:0 0 10px;
  border-radius:3px;
  border:1px solid rgba(78,91,106,.12);
}
.ed-map-legend-item.zone-I i{background:#f3bf91}
.ed-map-legend-item.zone-II i{background:#f2d3a6}
.ed-map-legend-item.zone-III i{background:#dde2c4}
.ed-map-legend-item.zone-IV i{background:#c8dfdf}
.ed-map-legend-item.zone-V i{background:#b8cee5}
.ed-map-legend-item b{
  font-size:8.5px;
  color:#39434f;
}
.ed-map-legend-item em{
  font-style:normal;
  font-variant-numeric:tabular-nums;
  color:#69737e;
}

@media(max-width:720px){
  .ed-map-controls{
    top:7px;
    right:7px;
    grid-template-columns:28px 38px 28px;
  }
  .ed-map-controls button{height:28px}
  .ed-map-nav-hint{
    left:7px;
    bottom:6px;
    font-size:7px;
  }
  .ed-map-caption{
    min-height:43px;
    padding:5px 6px;
  }
  .ed-map-legend{gap:5px 8px}
  .ed-map-legend-item,
  .ed-map-legend-item b{font-size:7.5px}
  .ed-map-legend-item i{
    width:8px;
    height:8px;
    flex-basis:8px;
    border-radius:2px;
  }
}


/* Editorial v6: centered map geometry + correct selected-zone outer contour */
.ed-map-zone{
  pointer-events:none;
}
.ed-map-zone.is-selected{
  stroke:rgba(255,255,255,.92);
  stroke-width:1.05;
  filter:saturate(1.08) brightness(.985);
}
.ed-map-zone-outline{
  fill:none;
  stroke:#60778e;
  stroke-width:2;
  stroke-linejoin:round;
  stroke-linecap:round;
  vector-effect:non-scaling-stroke;
  pointer-events:none;
}


/* Editorial v7: persistent clickable progress history */
.ed-progress{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}
.ed-progress-history{
  display:flex;
  align-items:center;
  gap:4px;
  min-width:0;
}
.ed-progress-history button{
  display:flex;
  align-items:center;
  gap:6px;
  min-height:34px;
  padding:0 9px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#a0a6b0;
  cursor:default;
  white-space:nowrap;
}
.ed-progress-history button b{
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  border:1px solid #dfe2e8;
  border-radius:50%;
  font-size:10px;
  font-variant-numeric:tabular-nums;
  color:#8b929e;
  background:#fff;
}
.ed-progress-history button span{
  font-size:11px;
  font-weight:650;
}
.ed-progress-history button.is-reached{
  color:#555e6b;
  cursor:pointer;
}
.ed-progress-history button.is-reached b{
  border-color:#bfc7d2;
  color:#404955;
}
.ed-progress-history button.is-reached:hover{
  background:var(--soft);
  color:var(--ink);
}
.ed-progress-history button.is-current{
  background:#f2f5fa;
  color:var(--ink);
}
.ed-progress-history button.is-current b{
  border-color:var(--ink);
  background:var(--ink);
  color:#fff;
}
.ed-progress-current{
  display:flex;
  align-items:center;
  gap:9px;
  color:var(--muted);
  font-size:12px;
  white-space:nowrap;
}
.ed-progress-current i{
  width:24px;
  height:1px;
  background:var(--line);
}
.ed-progress-current span:first-child{
  color:var(--ink);
  font-variant-numeric:tabular-nums;
}

@media(max-width:920px){
  .ed-progress-history button span{display:none}
  .ed-progress-history button{padding:0 4px}
  .ed-progress{gap:9px}
}
@media(max-width:720px){
  .ed-header{gap:10px}
  .ed-brand>span:last-child{display:none}
  .ed-progress-history{gap:1px}
  .ed-progress-history button{
    min-height:30px;
    padding:0 2px;
  }
  .ed-progress-history button b{
    width:20px;
    height:20px;
    font-size:9px;
  }
  .ed-progress-current{
    display:none;
  }
}


/* Editorial v8: prevent iOS focus zoom on compact mobile inputs */
@media(max-width:720px){
  .ed-field input,
  .ed-field select,
  .ed-field>select,
  #goalValue{
    font-size:16px;
  }
}


/* Editorial v9: hard mobile viewport containment */
html,
body{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
.ed-header,
.ed-baseline-bar,
.ed-shell,
.ed-page{
  width:100%;
  max-width:100vw;
}
.ed-header>*,
.ed-progress,
.ed-progress-history,
.ed-baseline-inner,
.ed-copy,
.ed-form-page,
.ed-run-card,
.ed-report,
.ed-grid,
.ed-field,
.ed-field>div,
.ed-switch-row,
.ed-switch-row>div{
  min-width:0;
}
@supports (overflow:clip){
  html,
  body{
    overflow-x:clip;
  }
}
@media(max-width:720px){
  .ed-header{
    overflow:hidden;
  }
  .ed-brand{
    flex:0 0 auto;
  }
  .ed-progress{
    flex:1 1 auto;
    max-width:calc(100vw - 62px);
    justify-content:flex-end;
    overflow:hidden;
  }
  .ed-progress-history{
    flex:1 1 auto;
    max-width:100%;
    justify-content:flex-end;
    overflow:hidden;
  }
  .ed-progress-history button{
    flex:0 0 auto;
  }
  .ed-baseline-inner{
    max-width:100%;
    overflow:hidden;
  }
  .ed-page,
  .ed-copy,
  .ed-form-page,
  .ed-run-card,
  .ed-report{
    width:100%;
    max-width:100%;
  }
}


/* Editorial v10: eliminate real horizontal overflow on mobile */
.ed-header,
.ed-baseline-bar,
.ed-shell,
.ed-page{
  width:100%;
  max-width:100%;
}

.ed-page>*,
.ed-copy,
.ed-form-page,
.ed-run-card,
.ed-report,
.ed-actions,
.ed-choice-list,
.ed-details,
.ed-location-picker,
.ed-location-map,
.ed-map-stage{
  max-width:100%;
}

.ed-copy,
.ed-form-page,
.ed-run-card,
.ed-report,
.ed-field,
.ed-choice-list button,
.ed-switch-row,
.ed-actions{
  overflow-wrap:anywhere;
}

@media(max-width:720px){
  .ed-page{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
  }

  .ed-actions{
    margin-left:0;
    margin-right:0;
    width:100%;
    max-width:100%;
  }

  .ed-progress{
    width:auto;
    max-width:100%;
    flex:1 1 0;
  }

  .ed-progress-history{
    width:100%;
    max-width:100%;
  }

  .ed-baseline-inner{
    width:100%;
    max-width:100%;
  }

  .ed-grid,
  .ed-field,
  .ed-field>div,
  .ed-switch-row,
  .ed-choice-list,
  .ed-choice-list button{
    width:100%;
    max-width:100%;
  }

  .ed-field input,
  .ed-field select,
  .ed-field>select{
    max-width:100%;
  }
}


/* Editorial v11: tonal section cards */
:root{
  --tone-blue-bg:#f2f5f7;
  --tone-blue-line:#d5dfe6;
  --tone-blue-ink:#51697d;
  --tone-aqua-bg:#f0f6f6;
  --tone-aqua-line:#d6e3e3;
  --tone-aqua-ink:#597273;
  --tone-sand-bg:#f8f5ef;
  --tone-sand-line:#e7dfd2;
  --tone-sand-ink:#766b59;
  --tone-sage-bg:#f2f6f2;
  --tone-sage-line:#d9e4da;
  --tone-sage-ink:#617464;
  --tone-lilac-bg:#f5f3f7;
  --tone-lilac-line:#e2dde7;
  --tone-lilac-ink:#6c6375;
}

.ed-domain-card{
  position:relative;
  margin:0 0 12px;
  padding:16px;
  border:0;
  border-radius:12px;
  background:#fff;
  overflow:hidden;
}

.ed-subsection.ed-domain-card{
  border-top:0;
  padding:16px;
}

.ed-subsection.ed-domain-card:first-of-type{
  border-top:0;
  padding-top:16px;
}

.ed-domain-card::before{
  content:none;
}

.ed-domain-card>h3{
  margin:0 0 13px;
  font-size:14px;
  letter-spacing:-.015em;
}

.ed-domain-card .ed-field{
  background:rgba(255,255,255,.88);
}

.ed-domain-card .ed-switch-row{
  padding-top:1px;
}

.ed-tone-blue{
  background:var(--tone-blue-bg);
}
.ed-tone-blue>h3,
.ed-tone-blue .ed-switch-row b{color:var(--tone-blue-ink)}

.ed-tone-aqua{
  background:var(--tone-aqua-bg);
}
.ed-tone-aqua>h3,
.ed-tone-aqua .ed-switch-row b{color:var(--tone-aqua-ink)}

.ed-tone-sand{
  background:var(--tone-sand-bg);
}
.ed-tone-sand>h3,
.ed-tone-sand .ed-switch-row b{color:var(--tone-sand-ink)}

.ed-tone-sage{
  background:var(--tone-sage-bg);
}
.ed-tone-sage>h3,
.ed-tone-sage .ed-switch-row b{color:var(--tone-sage-ink)}

.ed-tone-lilac{
  background:var(--tone-lilac-bg);
}
.ed-tone-lilac>h3,
.ed-tone-lilac .ed-switch-row b{color:var(--tone-lilac-ink)}

/* Give the economic goals the same restrained visual language. */
.ed-choice-list button[data-value="auto_economic"]{
  background:var(--tone-blue-bg);
}
.ed-choice-list button[data-value="investment_budget"]{
  background:var(--tone-sand-bg);
}
.ed-choice-list button[data-value="annual_bill_target"]{
  background:var(--tone-sage-bg);
}
.ed-choice-list button[data-value="max_payback_years"]{
  background:var(--tone-lilac-bg);
}
.ed-choice-list button[data-value].is-selected{
  border-color:#71879b;
  box-shadow:0 0 0 1px #71879b,0 8px 24px rgba(60,78,94,.07);
}
.ed-choice-list button[data-value]:hover{
  border-color:#aab8c4;
}

@media(max-width:720px){
  .ed-domain-card,
  .ed-subsection.ed-domain-card,
  .ed-subsection.ed-domain-card:first-of-type{
    padding:13px;
    border-radius:14px;
  }

  .ed-domain-card{
    margin-bottom:10px;
  }

  .ed-domain-card>h3{
    margin-bottom:10px;
  }
}


/* Editorial v13: flat advanced engineering expanders */
.ed-advanced-details{
  margin-top:12px;
  border:0;
  border-top:1px solid rgba(91,108,124,.14);
  border-radius:0;
  background:transparent;
  overflow:visible;
}
.ed-advanced-details summary{
  padding:11px 0 0;
  border:0;
  align-items:center;
}
.ed-advanced-details summary::after{
  content:"+";
  margin-left:auto;
  color:var(--muted);
  font-size:17px;
  font-weight:500;
  line-height:1;
}
.ed-advanced-details[open] summary{
  border-bottom:0;
}
.ed-advanced-details[open] summary::after{
  content:"−";
}
.ed-advanced-details summary span{
  font-size:11px;
  font-weight:680;
  color:#566676;
}
.ed-advanced-details summary small{
  font-size:9px;
  color:#8a929c;
}
.ed-advanced-details .ed-details-body{
  padding:11px 0 0;
}
.ed-advanced-grid{
  gap:8px;
}
.ed-advanced-grid .ed-field{
  background:rgba(255,255,255,.72);
}
.ed-advanced-grid input::placeholder{
  color:#a6adb5;
  opacity:1;
}

@media(max-width:720px){
  .ed-advanced-details{
    margin-top:10px;
  }
  .ed-advanced-details summary{
    padding-top:10px;
    gap:4px;
  }
  .ed-advanced-details summary small{
    max-width:58%;
  }
  .ed-advanced-details .ed-details-body{
    padding-top:9px;
  }
}


/* Editorial v14: distinguish calculated values from manual overrides */
.ed-advanced-grid .ed-field>span{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}
.ed-advanced-grid .ed-field.is-derived-value>span::after,
.ed-advanced-grid .ed-field.is-manual-value>span::after{
  padding:2px 5px;
  border-radius:999px;
  font-size:8px;
  font-weight:700;
  letter-spacing:.02em;
  text-transform:uppercase;
}
.ed-advanced-grid .ed-field.is-derived-value>span::after{
  content:"Calculat";
  background:rgba(111,132,152,.10);
  color:#687d90;
}
.ed-advanced-grid .ed-field.is-manual-value>span::after{
  content:"Manual";
  background:rgba(101,121,105,.11);
  color:#637767;
}
.ed-advanced-grid .ed-field.is-derived-value input{
  color:#5d6b78;
}


/* Editorial v18: persistent RBPE energy indicators */
.ed-baseline-inner{
  width:min(calc(100% - 32px),1180px);
}
.ed-baseline-energy-divider{flex:0 0 1px}
.ed-baseline-energy-group{
  display:grid;
  grid-template-columns:repeat(4,minmax(112px,1fr));
  align-items:center;
  gap:8px;
  min-width:0;
  flex:1 1 520px;
}
.ed-baseline-energy-item{
  min-width:0;
  display:grid;
  grid-template-columns:1fr auto;
  grid-template-areas:"label value" "unit value";
  column-gap:6px;
  align-items:center;
  padding:3px 6px;
  border-radius:8px;
  white-space:nowrap;
}
.ed-baseline-energy-item small{
  grid-area:label;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:8px;
  line-height:1.1;
  color:var(--muted);
  font-weight:650;
}
.ed-baseline-energy-item strong{
  grid-area:value;
  font-size:11px;
  line-height:1.1;
  font-variant-numeric:tabular-nums;
  letter-spacing:-.02em;
}
.ed-baseline-energy-item em{
  grid-area:unit;
  font-size:7px;
  line-height:1;
  color:#9aa0aa;
  font-style:normal;
}
.ed-baseline-bar.is-updating .ed-baseline-energy-item strong{opacity:.55}

@media(max-width:920px){
  .ed-baseline-inner{
    flex-wrap:wrap;
    padding:4px 12px 5px;
    row-gap:3px;
  }
  .ed-baseline-energy-divider{display:none}
  .ed-baseline-energy-group{
    order:3;
    flex-basis:100%;
    width:100%;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:3px;
  }
  .ed-baseline-energy-item{
    display:flex;
    justify-content:center;
    gap:3px;
    padding:1px 2px;
  }
  .ed-baseline-energy-item small{font-size:7px}
  .ed-baseline-energy-item strong{font-size:9px}
  .ed-baseline-energy-item em{display:none}
}
@media(max-width:720px){
  .ed-baseline-bar{min-height:62px}
  .ed-baseline-inner{
    min-height:62px;
    padding:3px 8px 4px;
  }
  .ed-baseline-energy-item small{
    max-width:56px;
    white-space:normal;
    text-align:right;
    line-height:1.05;
  }
  .ed-baseline-energy-item strong{font-size:8.5px}
  .ed-shell{min-height:calc(100vh - 118px)}
  .ed-page{min-height:calc(100vh - 118px)}
}


/* Editorial v19: compact mobile HUD + engineering indicator notation */
.ed-baseline-energy-item{
  grid-template-columns:auto 1fr;
  grid-template-areas:"label value";
  gap:8px;
  padding:4px 7px;
}
.ed-baseline-energy-item abbr{
  grid-area:label;
  text-decoration:none;
  border:0;
  cursor:help;
  font-size:11px;
  line-height:1;
  color:#6e7580;
  font-weight:760;
  letter-spacing:-.015em;
}
.ed-baseline-energy-item strong{
  font-size:14px;
  line-height:1;
  justify-self:end;
}
.ed-cost-energy-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin:0 0 18px;
}
.ed-cost-energy-card{
  min-width:0;
  padding:12px 13px;
  border:1px solid var(--line);
  border-radius:13px;
  background:#fafbfc;
}
.ed-cost-energy-card>div{
  display:grid;
  gap:2px;
  margin-bottom:9px;
}
.ed-cost-energy-card b{
  font-size:12px;
  letter-spacing:-.02em;
}
.ed-cost-energy-card small{
  color:var(--muted);
  font-size:8.5px;
  line-height:1.25;
}
.ed-cost-energy-card>strong{
  display:block;
  font-size:14px;
  line-height:1.15;
  letter-spacing:-.025em;
  font-variant-numeric:tabular-nums;
}
@media(max-width:920px) and (min-width:721px){
  .ed-baseline-energy-item abbr{font-size:10px}
  .ed-baseline-energy-item strong{font-size:12px}
}
@media(max-width:720px){
  .ed-baseline-energy-group,
  .ed-baseline-energy-divider{
    display:none!important;
  }
  .ed-baseline-bar{min-height:38px}
  .ed-baseline-inner{
    min-height:38px;
    flex-wrap:nowrap;
    padding:0 12px;
  }
  .ed-shell{min-height:calc(100vh - 94px)}
  .ed-page{min-height:calc(100vh - 94px)}
  .ed-cost-energy-summary{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
    margin-bottom:15px;
  }
  .ed-cost-energy-card{padding:11px}
  .ed-cost-energy-card>strong{font-size:13px}
}


/* Editorial v22: TEO objectives control center — mirrors the approved desktop/mobile mock. */
.ed-icon-sprite{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.ed-goal-page{
  background:
    radial-gradient(circle at 76% 4%,rgba(226,238,255,.48),transparent 28%),
    linear-gradient(180deg,#fbfdff 0,#f7faff 100%);
  padding-top:18px;
}
.ed-goal-page .ed-form-page.ed-goal-control-center{
  width:min(1540px,calc(100vw - 40px));
  max-width:none;
  display:grid;
  grid-template-columns:minmax(390px,.84fr) minmax(680px,1.72fr);
  gap:20px;
  align-items:start;
}
.ed-goal-objectives-card,
.ed-nzeb-status-panel,
.ed-teo-control-panel{
  border:1px solid #e3eaf3;
  border-radius:16px;
  background:rgba(255,255,255,.96);
  box-shadow:0 12px 34px rgba(24,57,96,.045);
}
.ed-goal-objectives-card{padding:18px}
.ed-goal-card-head{margin-bottom:14px}
.ed-goal-card-head h2,
.ed-nzeb-status-panel h2,
.ed-teo-control-panel h2{
  margin:0;
  color:#0d1b3b;
  font-size:22px;
  line-height:1.15;
  letter-spacing:-.03em;
  font-weight:760;
}
.ed-goal-card-head p,
.ed-teo-title-row p{
  margin:5px 0 0;
  color:#607493;
  font-size:12px;
  line-height:1.45;
}
.ed-goal-choice-list{display:grid;gap:9px}
.ed-goal-choice-list>button{
  appearance:none;
  width:100%;
  min-height:84px;
  display:grid;
  grid-template-columns:24px 48px minmax(0,1fr) 22px;
  align-items:center;
  gap:10px;
  padding:12px 13px;
  border:1px solid #dfe7f1;
  border-radius:12px;
  background:#fff;
  color:#102044;
  text-align:left;
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease,transform .16s ease;
}
.ed-goal-choice-list>button:hover{border-color:#b7c8df;transform:translateY(-1px)}
.ed-goal-choice-list>button.is-selected{
  border-color:#1e72f2;
  background:linear-gradient(180deg,#f9fcff,#f2f7ff);
  box-shadow:0 0 0 1px rgba(30,114,242,.12),0 8px 18px rgba(32,105,214,.055);
}
.ed-goal-radio{
  display:grid;
  place-items:center;
  width:20px;
  height:20px;
  border:2px solid #c7d3e3;
  border-radius:50%;
  background:#fff;
}
.is-selected>.ed-goal-radio,
.ed-nzeb-goal-card.is-enabled>.ed-goal-radio{border-color:#2374ef;background:#2374ef}
.ed-goal-radio i{width:6px;height:6px;border-radius:50%;background:#fff;opacity:0}
.is-selected>.ed-goal-radio i,
.ed-nzeb-goal-card.is-enabled>.ed-goal-radio i{opacity:1}
.ed-goal-choice-icon{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  color:#0d234e;
}
.ed-goal-choice-icon svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ed-goal-choice-icon.is-blue{color:#126ce5}
.ed-goal-choice-copy{display:grid;gap:3px;min-width:0}
.ed-goal-choice-copy b{font-size:14px;font-weight:760}
.ed-goal-choice-copy small{color:#607493;font-size:12px;line-height:1.4}
.ed-goal-info{
  display:grid;
  place-items:center;
  width:20px;
  height:20px;
  color:#7c90ad;
  flex:0 0 auto;
}
.ed-goal-info svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

.ed-nzeb-goal-card{
  appearance:none;
  position:relative;
  width:100%;
  margin-top:9px;
  display:grid;
  grid-template-columns:24px 70px minmax(0,1fr) 22px;
  gap:9px;
  align-items:center;
  padding:13px 13px 12px;
  border:1px solid #dfe7f1;
  border-radius:12px;
  background:#fff;
  color:#102044;
  text-align:left;
}
.ed-nzeb-goal-card.is-enabled{
  border-color:#1e72f2;
  background:linear-gradient(135deg,#f7fbff 0,#eff7ff 58%,#f7fff8 100%);
  box-shadow:0 0 0 1px rgba(30,114,242,.1);
}
.ed-nzeb-goal-card.is-mandatory{cursor:default}
.ed-premium-leaf{display:grid;place-items:center;width:68px;height:68px}
.ed-premium-leaf svg{width:66px;height:66px;overflow:visible}
.ed-nzeb-goal-copy{display:grid;gap:5px;min-width:0}
.ed-nzeb-goal-copy>span{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.ed-nzeb-goal-copy b{color:#075fcf;font-size:14px;font-weight:780}
.ed-nzeb-goal-copy em{
  display:none;
  padding:3px 8px;
  border-radius:999px;
  background:#13b85d;
  color:#fff;
  font-size:9px;
  line-height:1;
  font-style:normal;
  font-weight:820;
  letter-spacing:.02em;
}
.ed-nzeb-goal-card.is-mandatory .ed-nzeb-goal-copy em{display:inline-flex}
.ed-nzeb-goal-copy small{color:#587091;font-size:11.5px;line-height:1.45}
.ed-nzeb-legal-note{
  grid-column:1/-1;
  display:flex;
  gap:9px;
  align-items:flex-start;
  margin-top:3px;
  padding:9px 10px;
  border-radius:9px;
  background:#eaf4ff;
  color:#526d93;
  font-size:10px;
  line-height:1.4;
}
.ed-nzeb-legal-note svg{width:17px;height:17px;flex:0 0 17px;fill:none;stroke:#1672e8;stroke-width:1.7}

.ed-goal-parameters{margin-top:14px;padding-top:13px;border-top:1px solid #edf1f6}
.ed-goal-parameters h3{
  display:flex;gap:8px;align-items:center;
  margin:0 0 8px;color:#142344;font-size:13px;font-weight:760;
}
.ed-goal-parameters h3 svg,.ed-goal-param>span:first-child svg{
  width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round
}
.ed-goal-param{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  min-height:44px;padding:5px 8px;border-radius:9px;color:#23375d;font-size:12px
}
.ed-goal-param.is-inactive{opacity:.48}
.ed-goal-param>span:first-child{display:flex;gap:9px;align-items:center}
.ed-goal-param-input{
  min-width:190px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;
  border:1px solid #dbe4ef;border-radius:9px;background:#fff;overflow:hidden
}
.ed-goal-param-input input{
  width:100%;min-width:0;border:0;outline:0;padding:9px 11px;background:transparent;
  color:#102044;font-size:12px;font-weight:680
}
.ed-goal-param-input em{padding:0 11px;color:#607493;font-size:11px;font-style:normal}
.ed-goal-actions{
  display:grid;grid-template-columns:auto minmax(240px,1fr);gap:12px;align-items:center;
  margin-top:13px;padding-top:13px;border-top:1px solid #edf1f6
}
.ed-goal-back{justify-self:start}
.ed-goal-run{
  min-height:46px;border-radius:10px;background:#071d43;
  box-shadow:0 8px 18px rgba(7,29,67,.12);
}
.ed-goal-run:hover{background:#0b2859}
.ed-goal-run svg,.ed-teo-report-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.ed-goal-teo-column{display:grid;gap:14px;min-width:0}
.ed-nzeb-status-panel{padding:15px 16px}
.ed-nzeb-status-panel>header{
  display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px
}
.ed-nzeb-status-panel h2 small{color:#587091;font-size:12px;font-weight:590;letter-spacing:0}
.ed-zone-chip{display:flex;align-items:center;gap:7px;color:#566c8d;font-size:10px;white-space:nowrap}
.ed-zone-chip b{
  display:grid;min-width:48px;height:31px;place-items:center;padding:0 9px;
  border:1px solid #dce5ef;border-radius:8px;background:#fff;color:#122347;font-size:12px
}
.ed-nzeb-status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.ed-nzeb-metric{
  min-width:0;padding:13px 14px 11px;border:1px solid #e4eaf2;border-radius:11px;
  background:linear-gradient(180deg,#fff,#fcfdff)
}
.ed-nzeb-metric.is-pass{background:linear-gradient(180deg,#fbfffc,#f2fbf5);border-color:#d8efdf}
.ed-nzeb-metric.is-fail{background:linear-gradient(180deg,#fffdfc,#fff5f3);border-color:#f1dfdb}
.ed-nzeb-metric.is-rer-pending{background:linear-gradient(180deg,#fff,#f8fbff)}
.ed-nzeb-metric-top{display:grid;grid-template-columns:40px minmax(0,1fr) 20px;align-items:center;gap:8px;color:#122347}
.ed-nzeb-metric-top>b{font-size:12px;line-height:1.25}
.ed-nzeb-metric-icon{display:grid;place-items:center;width:38px;height:38px}
.ed-nzeb-metric-icon svg{width:34px;height:34px}
.ed-nzeb-metric-icon.is-bolt{color:#2bc34d}
.ed-nzeb-metric-icon.is-bolt svg{fill:currentColor;stroke:none}
.ed-nzeb-metric-icon.is-cloud{color:#2a625d}
.ed-nzeb-metric-icon.is-cloud svg{fill:none;stroke:currentColor;stroke-width:1.8}
.ed-nzeb-metric-icon.is-leaf svg{width:38px;height:38px}
.ed-nzeb-metric p{display:flex;align-items:center;gap:4px;margin:5px 0 8px;padding-left:48px;color:#13213f}
.ed-nzeb-metric p strong{font-size:16px;font-weight:800;letter-spacing:-.02em}
.ed-nzeb-metric p span{color:#607493;font-size:10px}
.ed-metric-state{
  display:grid;place-items:center;width:20px;height:20px;margin-left:auto;border-radius:50%;color:#7186a2
}
.ed-metric-state svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}
.ed-nzeb-metric.is-pass .ed-metric-state{color:#10aa55}
.ed-nzeb-metric.is-fail .ed-metric-state{color:#ef4b3d}
.ed-nzeb-bar{height:8px;margin-left:48px;border-radius:99px;background:#dfe6ef;overflow:hidden}
.ed-nzeb-bar i{display:block;width:0;height:100%;border-radius:inherit;background:#8ba1bd;transition:width .25s ease,background .25s ease}
.ed-nzeb-metric.is-pass .ed-nzeb-bar i{background:#18b55a}
.ed-nzeb-metric.is-fail .ed-nzeb-bar i{background:#ef4b3d}
.ed-nzeb-metric.is-gap{background:linear-gradient(180deg,#fff,#fbfaf6);border-color:#ece6d6}
.ed-nzeb-metric.is-gap .ed-metric-state{color:#9a8a5c}
.ed-nzeb-metric.is-gap .ed-nzeb-bar i{background:#d9b75a}
.ed-nzeb-metric>small{display:block;margin:7px 0 0 48px;color:#71839e;font-size:9.5px;line-height:1.35}
.ed-nzeb-status-message{
  display:flex;gap:9px;align-items:flex-start;margin-top:10px;padding:9px 11px;border:1px solid #d6e6f8;
  border-radius:9px;background:#eef6ff;color:#526d93;font-size:10.5px;line-height:1.4
}
.ed-nzeb-status-message svg{width:19px;height:19px;flex:0 0 19px;fill:none;stroke:#1672e8;stroke-width:1.7}

.ed-teo-control-panel{padding:15px 16px}
.ed-teo-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.ed-teo-title-row>div{display:flex;gap:10px;align-items:flex-start}
.ed-teo-spinner{
  display:block;width:28px;height:28px;flex:0 0 28px;border:3px solid #d8e6f9;border-top-color:#1874ec;border-radius:50%;
}
.ed-teo-control-panel.is-running .ed-teo-spinner{animation:spin .85s linear infinite}
.ed-teo-control-panel.is-done .ed-teo-spinner{border-color:#16b45a;position:relative}
.ed-teo-control-panel.is-done .ed-teo-spinner:after{content:"✓";position:absolute;inset:-2px;display:grid;place-items:center;color:#16a957;font-size:14px;font-weight:900}
.ed-teo-run-state{padding:5px 9px;border-radius:99px;background:#f2f6fb;color:#607493;font-size:9px;font-weight:760}
.ed-teo-control-panel.is-running .ed-teo-run-state{background:#eaf3ff;color:#0968df}
.ed-teo-control-panel.is-done .ed-teo-run-state{background:#ebfaef;color:#0c9848}
.ed-teo-steps{
  display:grid;grid-template-columns:auto 1fr auto 1fr auto 1fr auto 1fr auto;align-items:start;
  gap:7px;margin:16px 4px 13px
}
.ed-teo-steps>i{height:1px;margin-top:13px;background:#d9e2ed}
.ed-teo-steps>div{display:grid;justify-items:center;text-align:center;gap:5px;min-width:82px}
.ed-teo-steps b{
  display:grid;width:27px;height:27px;place-items:center;border:1px solid #d4dfec;border-radius:50%;
  background:#fff;color:#667d9d;font-size:10px
}
.ed-teo-steps span{color:#607493;font-size:9.5px;line-height:1.3}
.ed-teo-steps>div.is-active b{border-color:#1e72f2;background:#1e72f2;color:#fff;box-shadow:0 0 0 4px #edf5ff}
.ed-teo-steps>div.is-done b{border-color:#18ae58;background:#18ae58;color:#fff}
.ed-teo-steps>div.is-done span,.ed-teo-steps>div.is-active span{color:#18345e;font-weight:650}
.ed-teo-stats{
  display:grid;grid-template-columns:1fr 1px 1fr 1px 1fr;align-items:center;
  padding:10px 12px;border-radius:11px;background:#f1f7ff
}
.ed-teo-stats>i{width:1px;height:37px;background:#d4e0ee}
.ed-teo-stats>div{display:grid;grid-template-columns:34px auto;grid-template-rows:auto auto;column-gap:9px;align-items:center;justify-content:center}
.ed-teo-stats svg{grid-row:1/3;width:28px;height:28px;fill:none;stroke:#1473ee;stroke-width:1.8}
.ed-teo-stats svg.is-green{stroke:#12aa54}
.ed-teo-stats strong{color:#102044;font-size:16px;line-height:1}
.ed-teo-stats span{color:#607493;font-size:10px}
.ed-teo-stats-note{margin:6px 2px 0;color:#8593a7;font-size:8.5px;line-height:1.35}
.ed-teo-result{margin-top:13px;padding-top:13px;border-top:1px solid #e8eef5}
.ed-teo-result[hidden]{display:none}
.ed-teo-result>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}
.ed-teo-result h3{margin:0;color:#0e1e42;font-size:17px}
.ed-teo-compliance-badge{
  display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border-radius:99px;
  background:#e8faee;color:#0b9446;font-size:9px;font-weight:800;white-space:nowrap
}
.ed-teo-compliance-badge.is-pending{background:#fff6df;color:#916712}
.ed-teo-compliance-badge.is-fail{background:#fff0ed;color:#b23b2d}
.ed-teo-compliance-badge svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}
.ed-teo-result-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(330px,.8fr);gap:14px}
.ed-teo-measures{display:grid;align-content:start}
.ed-teo-measure{
  display:grid;grid-template-columns:27px minmax(110px,.72fr) minmax(120px,1fr);gap:8px;align-items:center;
  min-height:31px;border-bottom:1px solid #edf1f5;color:#243858;font-size:10.5px
}
.ed-teo-measure:last-child{border-bottom:0}
.ed-teo-measure svg{width:18px;height:18px;fill:none;stroke:#294362;stroke-width:1.7}
.ed-teo-measure b{font-weight:650}
.ed-teo-measure span{color:#08a149;font-weight:700}
.ed-teo-measure span.is-muted{color:#7c8ca2;font-weight:570}
.ed-teo-economics{
  display:grid;grid-template-columns:repeat(3,1fr);align-self:center;
  min-height:105px;padding:12px;border-radius:11px;background:#eef6ff
}
.ed-teo-economics>div{display:grid;justify-items:center;align-content:center;text-align:center;padding:4px 8px}
.ed-teo-economics>div+div{border-left:1px solid #d7e3ef}
.ed-teo-economics svg{width:27px;height:27px;margin-bottom:4px;fill:none;stroke:#0874ef;stroke-width:1.8}
.ed-teo-economics span{color:#607493;font-size:9px}
.ed-teo-economics strong{margin-top:2px;color:#102044;font-size:16px;white-space:nowrap}
.ed-teo-report-button{
  display:flex;align-items:center;justify-content:center;gap:12px;
  width:min(260px,100%);min-height:41px;margin:10px 0 0 auto;
  border:1px solid #dce6f2;border-radius:9px;background:#f5f9ff;color:#14284c;font-weight:680;font-size:11px
}
.ed-teo-report-button:hover{background:#edf5ff}

@media(max-width:1100px){
  .ed-goal-page .ed-form-page.ed-goal-control-center{
    width:min(920px,calc(100vw - 32px));
    grid-template-columns:1fr;
  }
}
@media(max-width:720px){
  .ed-goal-page{padding:16px 10px 70px}
  .ed-goal-page .ed-form-page.ed-goal-control-center{width:100%;display:grid;gap:12px}
  .ed-goal-objectives-card,.ed-nzeb-status-panel,.ed-teo-control-panel{border-radius:13px}
  .ed-goal-objectives-card{padding:13px}
  .ed-goal-card-head h2,.ed-nzeb-status-panel h2,.ed-teo-control-panel h2{font-size:18px}
  .ed-goal-card-head p{font-size:11px}
  .ed-goal-choice-list>button{
    min-height:62px;grid-template-columns:22px 38px minmax(0,1fr) 20px;gap:7px;padding:9px
  }
  .ed-goal-choice-icon{width:36px;height:36px}
  .ed-goal-choice-icon svg{width:28px;height:28px}
  .ed-goal-choice-copy b{font-size:12px}
  .ed-goal-choice-copy small{font-size:10px}
  .ed-nzeb-goal-card{grid-template-columns:22px 54px minmax(0,1fr) 20px;padding:10px 9px}
  .ed-premium-leaf,.ed-premium-leaf svg{width:52px;height:52px}
  .ed-nzeb-goal-copy b{font-size:12px}
  .ed-nzeb-goal-copy small{font-size:10px}
  .ed-nzeb-legal-note{font-size:9px;padding:8px}
  .ed-goal-param{font-size:10.5px;padding:4px 2px}
  .ed-goal-param-input{min-width:150px}
  .ed-goal-param-input input{font-size:16px;padding:8px 9px}
  .ed-goal-actions{grid-template-columns:auto 1fr;position:static;margin:11px 0 0;padding:11px 0 0}
  .ed-goal-run{min-height:44px;font-size:12px;padding:0 12px}
  .ed-goal-back{padding:0 9px}
  .ed-goal-back span{display:none}
  .ed-nzeb-status-panel,.ed-teo-control-panel{padding:13px}
  .ed-nzeb-status-panel>header{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:start;
    gap:8px;
  }
  .ed-nzeb-status-panel h2 small{
    display:block;
    margin-top:2px;
    font-size:10px;
    white-space:nowrap;
  }
  .ed-zone-chip{font-size:8px}
  .ed-zone-chip b{min-width:35px;height:27px}
  .ed-nzeb-status-grid{grid-template-columns:1fr;gap:7px}
  .ed-nzeb-metric{padding:9px 10px}
  .ed-nzeb-metric-top{grid-template-columns:34px minmax(0,1fr) 20px}
  .ed-nzeb-metric-icon{width:32px;height:32px}
  .ed-nzeb-metric-icon svg{width:29px;height:29px}
  .ed-nzeb-metric p{padding-left:42px;margin:1px 0 5px}
  .ed-nzeb-metric p strong{font-size:14px}
  .ed-nzeb-bar,.ed-nzeb-metric>small{margin-left:42px}
  .ed-teo-title-row p{font-size:9.5px}
  .ed-teo-steps{gap:2px;margin:14px 0 12px}
  .ed-teo-steps>div{min-width:0}
  .ed-teo-steps>i{margin-top:11px}
  .ed-teo-steps b{width:23px;height:23px;font-size:9px}
  .ed-teo-steps span{font-size:7.7px;line-height:1.25}
  .ed-teo-stats{padding:8px 4px}
  .ed-teo-stats>div{grid-template-columns:25px auto;column-gap:5px}
  .ed-teo-stats svg{width:22px;height:22px}
  .ed-teo-stats strong{font-size:13px}
  .ed-teo-stats span{font-size:8px}
  .ed-teo-result>header{align-items:flex-start}
  .ed-teo-result h3{font-size:15px}
  .ed-teo-compliance-badge{
    max-width:54%;
    white-space:normal;
    text-align:right;
    line-height:1.25;
    justify-content:flex-end;
  }
  .ed-teo-result-grid{grid-template-columns:1fr;gap:9px}
  .ed-teo-economics{min-height:82px;padding:8px}
  .ed-teo-economics svg{width:23px;height:23px}
  .ed-teo-economics span{font-size:8px}
  .ed-teo-economics strong{font-size:13px}
  .ed-teo-report-button{width:100%;margin-top:9px}
}


/* Editorial v24: final fidelity pass for the approved Objectives / TEO page. */
.ed-goal-choice-list>button .ed-goal-choice-icon{color:#23395f}
.ed-goal-choice-list>button.is-selected .ed-goal-choice-icon{color:#126ce5}
.ed-nzeb-goal-copy em{
  display:inline-flex;
  background:#edf3fb;
  color:#5c7191;
}
.ed-nzeb-goal-card.is-enabled .ed-nzeb-goal-copy em{
  background:#e6f8ed;
  color:#0b9446;
}
.ed-nzeb-goal-card.is-mandatory .ed-nzeb-goal-copy em{
  background:#13b85d;
  color:#fff;
}
.ed-nzeb-goal-card.is-mandatory{
  cursor:not-allowed;
}
.ed-nzeb-scope-label{
  margin:4px 0 0;
  color:#6f819b;
  font-size:10px;
  font-weight:650;
  letter-spacing:.01em;
}
.ed-nzeb-status-panel:has(#edNzebScopeLabel){
  overflow:hidden;
}
.ed-teo-measures{
  grid-template-columns:1fr;
}
.ed-teo-measure{
  grid-template-columns:27px minmax(105px,.68fr) minmax(145px,1.32fr);
}
.ed-teo-measure span{
  text-align:right;
}
.ed-teo-result-grid{
  align-items:start;
}
@media(max-width:720px){
  .ed-nzeb-scope-label{font-size:9px}
  .ed-teo-measure{
    grid-template-columns:24px minmax(88px,.62fr) minmax(125px,1.38fr);
    gap:6px;
    font-size:9.5px;
  }
  .ed-teo-measure span{
    white-space:normal;
    line-height:1.25;
  }
}


/* Editorial v25: pages 1-4 visual parity with approved Objectives UI. */
.ed-page[data-page="house"],
.ed-page[data-page="envelope"],
.ed-page[data-page="systems"],
.ed-page[data-page="renewables"]{
  background:
    radial-gradient(circle at 76% 4%,rgba(226,238,255,.42),transparent 30%),
    linear-gradient(180deg,#fbfdff 0,#f7faff 100%);
  padding-top:24px;
}

.ed-page[data-page="house"] .ed-form-page,
.ed-page[data-page="envelope"] .ed-form-page,
.ed-page[data-page="systems"] .ed-form-page,
.ed-page[data-page="renewables"] .ed-form-page{
  width:min(1180px,calc(100vw - 40px));
  max-width:none;
  padding-top:0;
}

.ed-page[data-page="house"] .ed-eyebrow,
.ed-page[data-page="envelope"] .ed-eyebrow,
.ed-page[data-page="systems"] .ed-eyebrow,
.ed-page[data-page="renewables"] .ed-eyebrow{
  color:#6a7f9d;
  font-size:10px;
  letter-spacing:.11em;
}

.ed-page[data-page="house"] .ed-form-page>h2,
.ed-page[data-page="envelope"] .ed-form-page>h2,
.ed-page[data-page="systems"] .ed-form-page>h2,
.ed-page[data-page="renewables"] .ed-form-page>h2{
  margin:8px 0 5px;
  color:#0d1b3b;
  font-size:clamp(26px,3vw,34px);
  line-height:1.08;
  letter-spacing:-.035em;
  font-weight:760;
}

.ed-page[data-page="house"] .ed-form-page>.ed-hint,
.ed-page[data-page="envelope"] .ed-form-page>.ed-hint,
.ed-page[data-page="systems"] .ed-form-page>.ed-hint,
.ed-page[data-page="renewables"] .ed-form-page>.ed-hint{
  max-width:760px;
  margin:0 0 18px;
  color:#607493;
  font-size:12px;
  line-height:1.5;
}

.ed-page[data-page="house"] .ed-grid,
.ed-page[data-page="envelope"] .ed-grid,
.ed-page[data-page="systems"] .ed-grid,
.ed-page[data-page="renewables"] .ed-grid{
  gap:10px;
}

.ed-page[data-page="house"] .ed-field,
.ed-page[data-page="envelope"] .ed-field,
.ed-page[data-page="systems"] .ed-field,
.ed-page[data-page="renewables"] .ed-field{
  gap:6px;
  padding:12px 13px;
  border:1px solid #dfe7f1;
  border-radius:11px;
  background:rgba(255,255,255,.96);
  box-shadow:0 4px 14px rgba(24,57,96,.025);
}

.ed-page[data-page="house"] .ed-field:focus-within,
.ed-page[data-page="envelope"] .ed-field:focus-within,
.ed-page[data-page="systems"] .ed-field:focus-within,
.ed-page[data-page="renewables"] .ed-field:focus-within{
  border-color:#9dbce6;
  box-shadow:0 0 0 3px rgba(30,114,242,.07);
}

.ed-page[data-page="house"] .ed-field>span,
.ed-page[data-page="envelope"] .ed-field>span,
.ed-page[data-page="systems"] .ed-field>span,
.ed-page[data-page="renewables"] .ed-field>span{
  color:#607493;
  font-size:10px;
  letter-spacing:.015em;
}

.ed-page[data-page="house"] .ed-field input,
.ed-page[data-page="house"] .ed-field select,
.ed-page[data-page="house"] .ed-field>select,
.ed-page[data-page="envelope"] .ed-field input,
.ed-page[data-page="envelope"] .ed-field select,
.ed-page[data-page="envelope"] .ed-field>select,
.ed-page[data-page="systems"] .ed-field input,
.ed-page[data-page="systems"] .ed-field select,
.ed-page[data-page="systems"] .ed-field>select,
.ed-page[data-page="renewables"] .ed-field input,
.ed-page[data-page="renewables"] .ed-field select,
.ed-page[data-page="renewables"] .ed-field>select{
  color:#102044;
  font-size:14px;
  font-weight:650;
}

.ed-page[data-page="house"] .ed-location-meta{
  margin:7px 2px 9px;
  color:#71839e;
  font-size:10px;
}

.ed-page[data-page="house"] .ed-location-map{
  border-color:#dfe7f1;
  border-radius:13px;
  background:#fff;
  box-shadow:0 8px 24px rgba(24,57,96,.035);
}

.ed-page[data-page="envelope"] .ed-domain-card,
.ed-page[data-page="systems"] .ed-domain-card,
.ed-page[data-page="renewables"] .ed-domain-card{
  margin-bottom:12px;
  padding:15px;
  border:1px solid #e3eaf3;
  border-radius:14px;
  box-shadow:0 10px 26px rgba(24,57,96,.035);
}

.ed-page[data-page="envelope"] .ed-domain-card>h3,
.ed-page[data-page="systems"] .ed-domain-card>h3,
.ed-page[data-page="renewables"] .ed-domain-card>h3{
  margin:0 0 11px;
  color:#142344;
  font-size:14px;
  font-weight:760;
  letter-spacing:-.015em;
}

.ed-page[data-page="envelope"] .ed-tone-blue,
.ed-page[data-page="systems"] .ed-tone-blue,
.ed-page[data-page="renewables"] .ed-tone-blue{
  background:linear-gradient(180deg,#f7fbff,#f2f7fc);
}
.ed-page[data-page="envelope"] .ed-tone-aqua,
.ed-page[data-page="systems"] .ed-tone-aqua,
.ed-page[data-page="renewables"] .ed-tone-aqua{
  background:linear-gradient(180deg,#f8fcfc,#f2f8f8);
}
.ed-page[data-page="envelope"] .ed-tone-sand,
.ed-page[data-page="systems"] .ed-tone-sand,
.ed-page[data-page="renewables"] .ed-tone-sand{
  background:linear-gradient(180deg,#fffdf9,#faf7ef);
}
.ed-page[data-page="envelope"] .ed-tone-sage,
.ed-page[data-page="systems"] .ed-tone-sage,
.ed-page[data-page="renewables"] .ed-tone-sage{
  background:linear-gradient(180deg,#fbfdf9,#f4f8f1);
}
.ed-page[data-page="envelope"] .ed-tone-lilac,
.ed-page[data-page="systems"] .ed-tone-lilac,
.ed-page[data-page="renewables"] .ed-tone-lilac{
  background:linear-gradient(180deg,#fcfbff,#f6f4fb);
}

.ed-page[data-page="house"] .ed-details,
.ed-page[data-page="envelope"] .ed-details,
.ed-page[data-page="systems"] .ed-details,
.ed-page[data-page="renewables"] .ed-details{
  margin-top:12px;
  border:1px solid #e1e8f1;
  border-radius:11px;
  background:rgba(255,255,255,.9);
}

.ed-page[data-page="house"] .ed-details summary,
.ed-page[data-page="envelope"] .ed-details summary,
.ed-page[data-page="systems"] .ed-details summary,
.ed-page[data-page="renewables"] .ed-details summary{
  padding:11px 13px;
  color:#23375d;
}

.ed-page[data-page="house"] .ed-details summary span,
.ed-page[data-page="envelope"] .ed-details summary span,
.ed-page[data-page="systems"] .ed-details summary span,
.ed-page[data-page="renewables"] .ed-details summary span{
  font-size:12px;
  font-weight:700;
}

.ed-page[data-page="house"] .ed-details summary small,
.ed-page[data-page="envelope"] .ed-details summary small,
.ed-page[data-page="systems"] .ed-details summary small,
.ed-page[data-page="renewables"] .ed-details summary small{
  color:#71839e;
  font-size:9.5px;
}

.ed-page[data-page="house"] .ed-details-body,
.ed-page[data-page="envelope"] .ed-details-body,
.ed-page[data-page="systems"] .ed-details-body,
.ed-page[data-page="renewables"] .ed-details-body{
  padding:12px;
}

.ed-page[data-page="house"] .ed-actions,
.ed-page[data-page="envelope"] .ed-actions,
.ed-page[data-page="systems"] .ed-actions,
.ed-page[data-page="renewables"] .ed-actions{
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid #e8eef5;
}

.ed-page[data-page="house"] .ed-actions .ed-primary,
.ed-page[data-page="envelope"] .ed-actions .ed-primary,
.ed-page[data-page="systems"] .ed-actions .ed-primary,
.ed-page[data-page="renewables"] .ed-actions .ed-primary{
  min-height:44px;
  border-radius:10px;
  background:#071d43;
  box-shadow:0 8px 18px rgba(7,29,67,.10);
  font-size:12px;
}
.ed-page[data-page="house"] .ed-actions .ed-primary:hover,
.ed-page[data-page="envelope"] .ed-actions .ed-primary:hover,
.ed-page[data-page="systems"] .ed-actions .ed-primary:hover,
.ed-page[data-page="renewables"] .ed-actions .ed-primary:hover{
  background:#0b2859;
}

@media(max-width:720px){
  .ed-page[data-page="house"],
  .ed-page[data-page="envelope"],
  .ed-page[data-page="systems"],
  .ed-page[data-page="renewables"]{
    padding:16px 10px 70px;
  }

  .ed-page[data-page="house"] .ed-form-page,
  .ed-page[data-page="envelope"] .ed-form-page,
  .ed-page[data-page="systems"] .ed-form-page,
  .ed-page[data-page="renewables"] .ed-form-page{
    width:100%;
  }

  .ed-page[data-page="house"] .ed-form-page>h2,
  .ed-page[data-page="envelope"] .ed-form-page>h2,
  .ed-page[data-page="systems"] .ed-form-page>h2,
  .ed-page[data-page="renewables"] .ed-form-page>h2{
    font-size:24px;
  }

  .ed-page[data-page="house"] .ed-form-page>.ed-hint,
  .ed-page[data-page="envelope"] .ed-form-page>.ed-hint,
  .ed-page[data-page="systems"] .ed-form-page>.ed-hint,
  .ed-page[data-page="renewables"] .ed-form-page>.ed-hint{
    margin-bottom:13px;
    font-size:10.5px;
  }

  .ed-page[data-page="house"] .ed-field,
  .ed-page[data-page="envelope"] .ed-field,
  .ed-page[data-page="systems"] .ed-field,
  .ed-page[data-page="renewables"] .ed-field{
    padding:10px 11px;
    border-radius:10px;
  }

  .ed-page[data-page="house"] .ed-field input,
  .ed-page[data-page="house"] .ed-field select,
  .ed-page[data-page="house"] .ed-field>select,
  .ed-page[data-page="envelope"] .ed-field input,
  .ed-page[data-page="envelope"] .ed-field select,
  .ed-page[data-page="envelope"] .ed-field>select,
  .ed-page[data-page="systems"] .ed-field input,
  .ed-page[data-page="systems"] .ed-field select,
  .ed-page[data-page="systems"] .ed-field>select,
  .ed-page[data-page="renewables"] .ed-field input,
  .ed-page[data-page="renewables"] .ed-field select,
  .ed-page[data-page="renewables"] .ed-field>select{
    font-size:16px;
  }

  .ed-page[data-page="envelope"] .ed-domain-card,
  .ed-page[data-page="systems"] .ed-domain-card,
  .ed-page[data-page="renewables"] .ed-domain-card{
    padding:12px;
    border-radius:12px;
    margin-bottom:9px;
  }

  .ed-page[data-page="house"] .ed-actions,
  .ed-page[data-page="envelope"] .ed-actions,
  .ed-page[data-page="systems"] .ed-actions,
  .ed-page[data-page="renewables"] .ed-actions{
    position:sticky;
    bottom:0;
    z-index:20;
    width:100%;
    margin:14px 0 0;
    padding:10px 0 calc(10px + env(safe-area-inset-bottom));
    background:rgba(248,251,255,.94);
    backdrop-filter:blur(15px);
    -webkit-backdrop-filter:blur(15px);
  }
}


/* Editorial v26: contextual icons + clearly activatable renewables. */
.ed-page-title{
  display:flex;
  align-items:center;
  gap:11px;
}
.ed-page-title>svg{
  width:28px;
  height:28px;
  flex:0 0 28px;
  fill:none;
  stroke:#1b6fdc;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.ed-card-title{
  display:flex;
  align-items:center;
  gap:8px;
}
.ed-card-title>svg{
  width:20px;
  height:20px;
  flex:0 0 20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
  opacity:.82;
}

/* An off renewable is available, not unavailable. Keep its fields locked but readable. */
.ed-page[data-page="renewables"] .ed-grid.is-disabled{
  opacity:.72;
  filter:saturate(.88);
  pointer-events:none;
}
.ed-page[data-page="renewables"] .ed-grid.is-disabled .ed-field{
  background:rgba(255,255,255,.78);
  border-style:dashed;
  border-color:#d6e0ec;
}
.ed-renewable-card{
  position:relative;
  border-color:#d7e3f1!important;
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
.ed-renewable-card:hover{
  border-color:#b8cde8!important;
  box-shadow:0 12px 30px rgba(24,57,96,.055)!important;
}
.ed-renewable-switch-row{
  display:grid;
  grid-template-columns:46px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:2px 0 12px;
  border-bottom:1px solid rgba(91,108,124,.13);
}
.ed-renewable-icon{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border:1px solid #d8e6f7;
  border-radius:11px;
  background:#fff;
  color:#176fdc;
}
.ed-renewable-icon svg{
  width:27px;
  height:27px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.ed-renewable-copy{
  display:grid!important;
  gap:3px!important;
  min-width:0;
}
.ed-renewable-copy>b{
  color:#142344;
  font-size:14px;
  line-height:1.25;
}
.ed-renewable-copy>span:not(.ed-renewable-state){
  color:#607493;
  font-size:11px;
  line-height:1.35;
}
.ed-renewable-state{
  width:max-content;
  margin-top:3px;
  padding:4px 8px;
  border-radius:999px;
  font-size:9px!important;
  line-height:1!important;
  font-weight:780;
}
.ed-state-off{
  display:inline-flex;
  background:#edf5ff;
  color:#1767c8!important;
}
.ed-state-on{
  display:none;
  background:#e8f8ee;
  color:#0a9347!important;
}
.ed-renewable-card:has(.ed-switch input:checked){
  border-color:#b9ddc7!important;
  box-shadow:0 10px 28px rgba(20,120,67,.045)!important;
}
.ed-renewable-card:has(.ed-switch input:checked) .ed-state-off{display:none}
.ed-renewable-card:has(.ed-switch input:checked) .ed-state-on{display:inline-flex}
.ed-renewable-card:has(.ed-switch input:checked) .ed-renewable-icon{
  border-color:#c8e8d4;
  background:#f7fdf9;
  color:#109d4e;
}
.ed-page[data-page="renewables"] .ed-switch{
  width:50px;
  height:30px;
  cursor:pointer;
}
.ed-page[data-page="renewables"] .ed-switch i{
  width:50px;
  height:30px;
  border:1px solid #b8cee8;
  background:#eaf3ff;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.6);
}
.ed-page[data-page="renewables"] .ed-switch i:after{
  width:22px;
  height:22px;
  left:3px;
  top:3px;
  box-shadow:0 2px 6px rgba(35,71,113,.18);
}
.ed-page[data-page="renewables"] .ed-switch input:checked+i{
  border-color:#159550;
  background:#17a65a;
}
.ed-page[data-page="renewables"] .ed-switch input:checked+i:after{
  transform:translateX(20px);
}

@media(max-width:720px){
  .ed-page-title{gap:8px}
  .ed-page-title>svg{width:23px;height:23px;flex-basis:23px}
  .ed-card-title>svg{width:18px;height:18px;flex-basis:18px}
  .ed-renewable-switch-row{
    grid-template-columns:40px minmax(0,1fr) auto;
    gap:9px;
    padding-bottom:10px;
  }
  .ed-renewable-icon{width:38px;height:38px;border-radius:10px}
  .ed-renewable-icon svg{width:23px;height:23px}
  .ed-renewable-copy>b{font-size:12px}
  .ed-renewable-copy>span:not(.ed-renewable-state){font-size:10px}
}


/* Editorial v27: compact density, collapsed advanced rows, discrete choices, locality keyboard focus. */
/* Slightly tighter without becoming dense. */
.ed-page[data-page="house"] .ed-grid,
.ed-page[data-page="envelope"] .ed-grid,
.ed-page[data-page="systems"] .ed-grid,
.ed-page[data-page="renewables"] .ed-grid{
  gap:8px;
}
.ed-page[data-page="house"] .ed-field,
.ed-page[data-page="envelope"] .ed-field,
.ed-page[data-page="systems"] .ed-field,
.ed-page[data-page="renewables"] .ed-field{
  gap:5px;
  padding:10px 11px;
  border-radius:10px;
}
.ed-page[data-page="envelope"] .ed-domain-card,
.ed-page[data-page="systems"] .ed-domain-card,
.ed-page[data-page="renewables"] .ed-domain-card{
  margin-bottom:9px;
  padding:13px;
  border-radius:13px;
}
.ed-page[data-page="envelope"] .ed-domain-card>h3,
.ed-page[data-page="systems"] .ed-domain-card>h3,
.ed-page[data-page="renewables"] .ed-domain-card>h3{
  margin-bottom:9px;
}
.ed-page[data-page="house"] .ed-top-gap,
.ed-page[data-page="envelope"] .ed-top-gap,
.ed-page[data-page="systems"] .ed-top-gap,
.ed-page[data-page="renewables"] .ed-top-gap{
  margin-top:8px;
}

/* Closed advanced sections should read as a compact affordance, not another card. */
.ed-page[data-page="house"] .ed-advanced-details,
.ed-page[data-page="envelope"] .ed-advanced-details,
.ed-page[data-page="systems"] .ed-advanced-details,
.ed-page[data-page="renewables"] .ed-advanced-details{
  margin-top:7px;
}
.ed-page[data-page="house"] .ed-advanced-details summary,
.ed-page[data-page="envelope"] .ed-advanced-details summary,
.ed-page[data-page="systems"] .ed-advanced-details summary,
.ed-page[data-page="renewables"] .ed-advanced-details summary{
  min-height:30px;
  padding:7px 0 0;
}
.ed-page[data-page="house"] .ed-advanced-details:not([open]) summary small,
.ed-page[data-page="envelope"] .ed-advanced-details:not([open]) summary small,
.ed-page[data-page="systems"] .ed-advanced-details:not([open]) summary small,
.ed-page[data-page="renewables"] .ed-advanced-details:not([open]) summary small{
  display:none;
}
.ed-page[data-page="house"] .ed-advanced-details summary span,
.ed-page[data-page="envelope"] .ed-advanced-details summary span,
.ed-page[data-page="systems"] .ed-advanced-details summary span,
.ed-page[data-page="renewables"] .ed-advanced-details summary span{
  font-size:10.5px;
}
.ed-page[data-page="house"] .ed-advanced-details .ed-details-body,
.ed-page[data-page="envelope"] .ed-advanced-details .ed-details-body,
.ed-page[data-page="systems"] .ed-advanced-details .ed-details-body,
.ed-page[data-page="renewables"] .ed-advanced-details .ed-details-body{
  padding-top:8px;
}

/* Native lists for genuinely discrete small ranges. */
.ed-choice-field select{
  cursor:pointer;
  font-weight:680!important;
}
.ed-choice-field>div{
  position:relative;
}
.ed-choice-field>div::after{
  content:"⌄";
  position:absolute;
  right:1px;
  top:50%;
  transform:translateY(-55%);
  color:#71839e;
  font-size:14px;
  pointer-events:none;
}
.ed-choice-field select{
  appearance:none;
  -webkit-appearance:none;
  padding-right:20px!important;
}

/* Keyboard-highlighted locality in the desktop combobox. */
.ed-locality-suggestions button.is-keyboard-active,
.ed-locality-suggestions button[aria-selected="true"]{
  background:#edf5ff;
  color:#102044;
  box-shadow:inset 3px 0 0 #1e72f2;
}
.ed-locality-suggestions button.is-keyboard-active strong,
.ed-locality-suggestions button[aria-selected="true"] strong{
  color:#0d4fae;
}

@media(max-width:720px){
  .ed-page[data-page="envelope"] .ed-domain-card,
  .ed-page[data-page="systems"] .ed-domain-card,
  .ed-page[data-page="renewables"] .ed-domain-card{
    padding:11px;
  }
}


/* Editorial v28: stale TEO result cue without restructuring the Objectives page. */
.ed-teo-control-panel.is-recalculation-needed{
  border-color:#e7bd62!important;
  background:
    linear-gradient(180deg,rgba(255,248,228,.48),rgba(255,255,255,0) 92px),
    #fff;
  box-shadow:0 0 0 3px rgba(226,165,46,.08),0 12px 34px rgba(24,57,96,.055)!important;
}
.ed-teo-control-panel.is-recalculation-needed .ed-teo-run-state{
  border-color:#edc977;
  background:#fff6dc;
  color:#8a5b00;
  font-weight:780;
}
#runAnalysis.is-recalculation-needed{
  box-shadow:0 0 0 4px rgba(231,183,68,.16),0 7px 18px rgba(13,27,59,.12);
}


/* Editorial v29: centered advanced affordance, semantic override state, edit feedback, mobile TEO focus. */
/* Center the closed/open advanced affordance as one visual unit. */
.ed-page[data-page="house"] .ed-advanced-details summary,
.ed-page[data-page="envelope"] .ed-advanced-details summary,
.ed-page[data-page="systems"] .ed-advanced-details summary,
.ed-page[data-page="renewables"] .ed-advanced-details summary{
  display:grid;
  grid-template-columns:auto auto;
  justify-content:center;
  align-items:center;
  column-gap:7px;
  row-gap:3px;
  text-align:center;
}
.ed-page[data-page="house"] .ed-advanced-details summary span,
.ed-page[data-page="envelope"] .ed-advanced-details summary span,
.ed-page[data-page="systems"] .ed-advanced-details summary span,
.ed-page[data-page="renewables"] .ed-advanced-details summary span{
  grid-column:1;
  justify-self:end;
}
.ed-page[data-page="house"] .ed-advanced-details summary::after,
.ed-page[data-page="envelope"] .ed-advanced-details summary::after,
.ed-page[data-page="systems"] .ed-advanced-details summary::after,
.ed-page[data-page="renewables"] .ed-advanced-details summary::after{
  grid-column:2;
  margin-left:0;
  justify-self:start;
  color:#2f73c9;
}
.ed-page[data-page="house"] .ed-advanced-details summary small,
.ed-page[data-page="envelope"] .ed-advanced-details summary small,
.ed-page[data-page="systems"] .ed-advanced-details summary small,
.ed-page[data-page="renewables"] .ed-advanced-details summary small{
  grid-column:1/-1;
  justify-self:center;
  text-align:center;
}

/* Auto = blue; at least one manual engineering override = green. */
.ed-advanced-details{
  transition:border-color .18s ease,background .18s ease,box-shadow .18s ease;
}
.ed-advanced-details:not(.has-manual-overrides) summary span{
  color:#4c6f9c;
}
.ed-advanced-details.has-manual-overrides{
  border-top-color:#9fd7b5;
}
.ed-advanced-details.has-manual-overrides summary span,
.ed-advanced-details.has-manual-overrides summary::after{
  color:#128349!important;
}
.ed-advanced-details.has-manual-overrides[open]{
  background:linear-gradient(180deg,rgba(235,250,240,.58),rgba(255,255,255,0) 58px);
}


@media(max-width:720px){
  #edTeoSteps{scroll-margin-top:132px}
}


/* Editorial v31: useful start screen + professional verification gate. */
.ed-intro-copy{
  width:min(940px,100%);
  margin:0 auto;
}
.ed-page[data-page="intro"] .ed-intro-copy h1{
  max-width:780px;
  margin-bottom:14px;
}
.ed-page[data-page="intro"] .ed-intro-copy .ed-lead{
  max-width:800px;
  margin-bottom:22px;
}
.ed-intro-journey{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
  margin:0 0 15px;
}
.ed-intro-journey article{
  min-height:112px;
  padding:13px;
  border:1px solid #e1e8f1;
  border-radius:13px;
  background:rgba(255,255,255,.88);
  box-shadow:0 8px 22px rgba(24,57,96,.045);
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.ed-intro-journey svg{
  width:22px;
  height:22px;
  flex:0 0 auto;
  padding:6px;
  box-sizing:content-box;
  border-radius:10px;
  background:#eef5ff;
  color:#245f9f;
}
.ed-intro-journey article:last-child svg{
  background:#ecf8f0;
  color:#16814a;
}
.ed-intro-journey b{
  display:block;
  color:#0d1b3b;
  font-size:13px;
  margin:2px 0 5px;
}
.ed-intro-journey span{
  display:block;
  color:#607493;
  font-size:11.5px;
  line-height:1.45;
}
.ed-intro-scope{
  max-width:800px;
  display:flex;
  gap:9px;
  align-items:flex-start;
  margin:0 0 20px;
  padding:10px 12px;
  border:1px solid #dfe7f1;
  border-radius:11px;
  background:#f8fbff;
}
.ed-intro-scope svg{
  width:16px;
  height:16px;
  flex:0 0 auto;
  margin-top:2px;
  color:#4773a5;
}
.ed-intro-scope p{
  margin:0;
  color:#526983;
  font-size:11.5px;
  line-height:1.5;
}
.ed-report-professional-gate{
  border:1px solid #dfe7f1;
  background:linear-gradient(180deg,#fbfdff,#fff);
}
.ed-report-status-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
  margin:14px 0;
}
.ed-report-status-grid>div{
  padding:11px 12px;
  border:1px solid #e1e8f1;
  border-radius:11px;
  background:#fff;
}
.ed-report-status-grid span{
  display:block;
  margin-bottom:5px;
  color:#7487a1;
  font-size:10px;
  font-weight:760;
  text-transform:uppercase;
  letter-spacing:.055em;
}
.ed-report-status-grid strong{
  display:flex;
  align-items:center;
  gap:7px;
  color:#17345e;
  font-size:12px;
}
.ed-report-status-grid svg{
  width:15px;
  height:15px;
}
.ed-report-status-grid .is-complete{
  border-color:#bfe0cc;
  background:#f4fbf6;
}
.ed-report-status-grid .is-complete strong{color:#126e40}
.ed-report-status-grid .is-review{
  border-color:#e9d39c;
  background:#fffaf0;
}
.ed-report-status-grid .is-review strong{color:#865c0d}
.ed-report-review-details{
  margin:13px 0;
  border-top:1px solid #e4eaf2;
  border-bottom:1px solid #e4eaf2;
}
.ed-report-review-details summary{
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  cursor:pointer;
  color:#284b74;
  font-size:12px;
  font-weight:780;
  list-style:none;
}
.ed-report-review-details summary::-webkit-details-marker{display:none}
.ed-report-review-details summary b{
  font-size:17px;
  font-weight:500;
  color:#52759f;
}
.ed-report-review-details[open] summary b{transform:rotate(45deg)}
.ed-report-review-details>div{
  padding:0 0 10px;
}
.ed-report-review-details p{
  margin:7px 0;
  font-size:11.5px;
  line-height:1.55;
  color:#53677f;
}
.ed-report-legal-note{
  margin:11px 0 0!important;
  padding:10px 12px;
  border-left:3px solid #8ca7c7;
  background:#f7faff;
  color:#52677f!important;
  font-size:11px!important;
  line-height:1.5!important;
}
@media(max-width:760px){
  .ed-intro-journey{grid-template-columns:1fr 1fr}
  .ed-intro-journey article{min-height:96px;padding:11px}
  .ed-report-status-grid{grid-template-columns:1fr}
}
@media(max-width:480px){
  .ed-intro-journey{grid-template-columns:1fr}
  .ed-intro-journey article{min-height:0}
}


/* Editorial v32: modeled community impact. */
.ed-impact-overview{
  max-width:940px;
  margin:0 0 20px;
  padding:14px;
  border:1px solid #dfe7f1;
  border-radius:14px;
  background:linear-gradient(180deg,#fff,#f8fbff);
}
.ed-impact-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:11px;
}
.ed-impact-heading .ed-eyebrow{margin-bottom:3px}
.ed-impact-heading h2{
  margin:0;
  color:#102445;
  font-size:16px;
  line-height:1.25;
  letter-spacing:-.015em;
}
.ed-impact-scope{
  flex:0 0 auto;
  padding:5px 8px;
  border:1px solid #d8e3ef;
  border-radius:999px;
  background:#f2f7fd;
  color:#55708f;
  font-size:9.5px;
  font-weight:800;
  letter-spacing:.055em;
  text-transform:uppercase;
}
.ed-impact-metrics{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
}
.ed-impact-metrics>div{
  min-height:74px;
  padding:10px 11px;
  border:1px solid #e4eaf2;
  border-radius:11px;
  background:#fff;
}
.ed-impact-metrics span{
  display:block;
  color:#70849e;
  font-size:10px;
  font-weight:720;
}
.ed-impact-metrics strong{
  display:inline-block;
  margin-top:5px;
  color:#17345e;
  font-size:19px;
  line-height:1;
  letter-spacing:-.025em;
}
.ed-impact-metrics small{
  margin-left:4px;
  color:#71859e;
  font-size:9.5px;
}
.ed-impact-note{
  margin:10px 1px 0;
  color:#667b94;
  font-size:10.5px;
  line-height:1.5;
}
.ed-impact-save{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:9px 16px;
  align-items:center;
  margin-top:15px;
  padding:13px;
  border:1px solid #dce6f1;
  border-radius:12px;
  background:#f8fbff;
}
.ed-impact-save .ed-eyebrow{margin-bottom:3px}
.ed-impact-save h3{
  margin:0 0 4px;
  color:#16365d;
  font-size:14px;
}
.ed-impact-save p{
  margin:0;
  color:#61758d;
  font-size:11px;
  line-height:1.5;
}
.ed-impact-save .ed-primary{
  min-width:150px;
  margin:0;
}
.ed-impact-save .ed-primary:disabled{
  opacity:.48;
  cursor:not-allowed;
  box-shadow:none;
}
.ed-impact-save small{
  grid-column:1 / -1;
  color:#6b7d92;
  font-size:10px;
  line-height:1.45;
}
@media(max-width:760px){
  .ed-impact-metrics{grid-template-columns:1fr 1fr}
  .ed-impact-save{grid-template-columns:1fr}
  .ed-impact-save .ed-primary{width:100%}
  .ed-impact-save small{grid-column:auto}
}
@media(max-width:480px){
  .ed-impact-heading{display:block}
  .ed-impact-scope{display:inline-flex;margin-top:7px}
  .ed-impact-metrics{grid-template-columns:1fr}
  .ed-impact-metrics>div{min-height:0}
}


/* Release-product staging: client-only monthly bill profile + technical BOM. */
.ed-report-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:12px}
.ed-report-section-heading h2{margin-top:8px}
.ed-report-section-heading>span{flex:0 0 auto;padding:7px 10px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:11px;font-weight:720}
.ed-monthly-bill-legend{display:flex;flex-wrap:wrap;gap:18px;margin:20px 0 16px;color:var(--muted);font-size:12px}
.ed-monthly-bill-legend span{display:inline-flex;align-items:center;gap:7px}
.ed-monthly-bill-legend i{width:11px;height:11px;border-radius:3px;display:inline-block;background:var(--ink)}
.ed-monthly-bill-legend i.is-teo-average{background:var(--accent)}
.ed-monthly-bill-chart{height:230px;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:8px;align-items:end;padding:22px 10px 0;border:1px solid var(--line);border-radius:18px;background:var(--soft);overflow:hidden}
.ed-monthly-bill-column{height:100%;min-width:0;display:grid;grid-template-rows:1fr auto auto;gap:5px;text-align:center}
.ed-monthly-bill-bars{display:flex;align-items:flex-end;justify-content:center;gap:3px;min-height:140px;border-bottom:1px solid var(--line)}
.ed-monthly-bill-bars i{display:block;width:min(12px,42%);min-height:3px;border-radius:6px 6px 2px 2px;background:var(--ink)}
.ed-monthly-bill-bars i.is-teo-average{background:var(--accent);opacity:.72}
.ed-monthly-bill-column b{font-size:11px}
.ed-monthly-bill-column small{font-size:9px;color:var(--muted);white-space:nowrap}
.ed-bom-table{border:1px solid var(--line);border-radius:18px;overflow:hidden;margin:22px 0}
.ed-bom-table article{display:grid;grid-template-columns:minmax(150px,1fr) minmax(120px,.45fr) minmax(220px,1.4fr);gap:18px;align-items:center;padding:16px 18px;border-bottom:1px solid var(--line)}
.ed-bom-table article:last-child{border-bottom:0}
.ed-bom-table article div{display:flex;flex-direction:column;gap:4px}
.ed-bom-table article small{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.08em}
.ed-bom-table article strong{font-size:14px}
.ed-bom-table article>b{font-size:14px}
.ed-bom-table article>span{font-size:12px;line-height:1.5;color:var(--muted)}
.ed-bom-table>.ed-hint{padding:18px;margin:0}
.ed-bom-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.ed-bom-actions .ed-primary{text-decoration:none}
.ed-bom-actions p{flex:1 1 280px;margin:0;font-size:12px}
.ed-teo-bom-button{margin-top:8px;background:#fff}
@media (max-width:720px){
  .ed-report-section-heading{display:block}
  .ed-report-section-heading>span{display:inline-block;margin-top:4px}
  .ed-monthly-bill-chart{height:205px;gap:4px;padding-left:6px;padding-right:6px}
  .ed-monthly-bill-bars{min-height:118px}
  .ed-monthly-bill-column small{font-size:8px;transform:rotate(-38deg);transform-origin:center;min-height:24px}
  .ed-bom-table article{grid-template-columns:1fr;gap:7px;padding:14px}
  .ed-bom-actions{align-items:stretch}
  .ed-bom-actions .ed-primary{width:100%}
}


/* Release/maintenance service notice. Kept visually compact so the house state
   remains usable while RBPE/TEO retries recover in the background. */
.ed-service-notice {
  position: sticky;
  top: 0;
  z-index: 80;
  width: min(1120px, calc(100% - 24px));
  margin: 10px auto 0;
  padding: 11px 14px;
  border: 1px solid rgba(136, 93, 20, .24);
  border-radius: 12px;
  background: rgba(255, 249, 232, .97);
  box-shadow: 0 8px 24px rgba(35, 45, 58, .08);
  color: #4a3a1b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.ed-service-notice[hidden] {
  display: none;
}

.ed-service-notice div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.ed-service-notice strong {
  font-size: .9rem;
  white-space: nowrap;
}

.ed-service-notice span,
.ed-service-notice small {
  font-size: .82rem;
  line-height: 1.35;
}

.ed-service-notice small {
  opacity: .72;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .ed-service-notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    margin-top: 7px;
  }

  .ed-service-notice div {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .ed-service-notice strong,
  .ed-service-notice small {
    white-space: normal;
  }
}


/* Home Lab account + saved-house persistence. */
.ed-header-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  flex:0 0 auto;
}
.ed-account-open,.ed-account-save{
  appearance:none;
  min-height:32px;
  border-radius:10px;
  padding:6px 11px;
  font-size:11px;
  font-weight:760;
  white-space:nowrap;
  cursor:pointer;
}
.ed-account-open{
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink);
}
.ed-account-open:hover{background:var(--soft)}
.ed-account-save{
  border:1px solid #cfe1d5;
  background:#f3faf5;
  color:#176a3f;
}
.ed-account-save:hover{background:#eaf7ee}
.ed-account-save:disabled{opacity:.45;cursor:default}

.ed-account-dialog{
  width:min(94vw,620px);
  max-height:min(88vh,780px);
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:22px;
  padding:0;
  background:#fff;
  color:var(--ink);
  box-shadow:0 32px 110px rgba(16,22,32,.2);
}
.ed-account-dialog::backdrop{
  background:rgba(17,19,24,.3);
  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
}
.ed-account-shell{
  max-height:min(88vh,780px);
  overflow-y:auto;
  overscroll-behavior:contain;
}
.ed-account-shell>header{
  position:sticky;
  top:0;
  z-index:2;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:22px 24px 17px;
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.ed-account-shell>header h2{
  margin:4px 0 0;
  font-size:27px;
  line-height:1.08;
  letter-spacing:-.035em;
}
.ed-account-shell>header>button{
  width:34px;
  height:34px;
  border:0;
  border-radius:50%;
  background:var(--soft);
  color:var(--ink);
  font-size:22px;
  cursor:pointer;
}
#edAccountSignedOut,#edAccountSignedIn{padding:22px 24px 26px}
.ed-account-intro{
  margin:0 0 18px;
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}
.ed-account-form{
  display:grid;
  gap:11px;
}
.ed-account-form label,.ed-account-save-box label{
  display:grid;
  gap:7px;
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:13px;
  background:#fff;
}
.ed-account-form label>span,.ed-account-save-box label>span{
  color:var(--muted);
  font-size:10px;
  font-weight:760;
  letter-spacing:.035em;
  text-transform:uppercase;
}
.ed-account-form input,.ed-account-save-box input{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  color:var(--ink);
  font:600 15px/1.3 inherit;
}
.ed-account-form .ed-primary{width:100%;margin-top:2px}
.ed-account-register{
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid var(--line);
}
.ed-account-register summary{
  cursor:pointer;
  color:#34577d;
  font-size:12px;
  font-weight:760;
}
.ed-account-register[open] summary{margin-bottom:14px}
.ed-account-state{
  display:block;
  min-height:16px;
  margin-top:10px;
  color:var(--muted);
  font-size:10.5px;
  line-height:1.45;
}
.ed-account-state.is-error{color:#a2382a}
.ed-account-state.is-ok{color:#176a3f}
.ed-account-user{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:16px;
  padding:12px 13px;
  border:1px solid #dce6f1;
  border-radius:13px;
  background:#f8fbff;
}
.ed-account-user>div{
  min-width:0;
  display:grid;
  gap:2px;
}
.ed-account-user small{color:var(--muted);font-size:9.5px;text-transform:uppercase;letter-spacing:.05em}
.ed-account-user strong{font-size:14px}
.ed-account-user span{
  color:var(--muted);
  font-size:11px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.ed-account-user>.ed-account-user-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto}.ed-account-user .ed-link{min-height:34px;padding:0 10px;display:inline-flex;align-items:center;text-decoration:none}
.ed-account-save-box{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:9px;
  align-items:end;
  padding-bottom:18px;
  border-bottom:1px solid var(--line);
}
.ed-account-save-box .ed-primary{min-height:48px}
.ed-account-save-box .ed-account-state{grid-column:1/-1;margin-top:0}
.ed-account-projects{padding-top:18px}
.ed-account-projects-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:9px;
}
.ed-account-projects-head strong{font-size:13px}
.ed-account-projects-head .ed-link{min-height:32px;padding:0 9px;font-size:11px}
#edProjectsList{display:grid;gap:8px}
.ed-account-project{
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:4px 14px;
  align-items:center;
  padding:12px 13px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  text-align:left;
  color:var(--ink);
  cursor:pointer;
}
.ed-account-project:hover{border-color:#bdc8d6;background:#fafcff}
.ed-account-project.is-current{border-color:#9ab6d7;background:#f6faff}
.ed-account-project strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ed-account-project span{grid-row:1/3;grid-column:2;color:#456b95;font-size:11px;font-weight:760}
.ed-account-project small{color:var(--muted);font-size:10px}
.ed-account-empty{
  margin:0;
  padding:14px;
  border:1px dashed #d9e0e9;
  border-radius:12px;
  color:var(--muted);
  font-size:11px;
  line-height:1.45;
}
@media(max-width:820px){
  .ed-header-actions{gap:4px}
  .ed-account-save,.ed-account-open,.ed-new-house{padding:6px 8px}
}
@media(max-width:600px){
  .ed-header-actions .ed-new-house{display:none}
  .ed-account-user{align-items:center;flex-direction:row}.ed-account-user>.ed-account-user-actions{width:auto;justify-content:flex-end;gap:4px}.ed-account-user .ed-link{padding:0 7px;font-size:10px}
  .ed-account-save,.ed-account-open{font-size:10px}
  .ed-account-shell>header{padding:18px}
  #edAccountSignedOut,#edAccountSignedIn{padding:18px}
  .ed-account-save-box{grid-template-columns:1fr}
  .ed-account-save-box .ed-account-state{grid-column:auto}
  .ed-account-save-box .ed-primary{width:100%}
}


/* Release clarity: explicit review of prefilled house data. */
.ed-field-review{
  display:inline-block;
  margin-left:6px;
  font-size:9px;
  font-weight:750;
  letter-spacing:.035em;
  text-transform:uppercase;
  color:var(--muted);
}
.ed-field-help{
  display:block;
  margin-top:7px;
  font-size:10px;
  line-height:1.45;
  color:var(--muted);
}
.ed-confirm-card{
  margin-top:22px;
  padding:16px 17px;
  border:1px solid var(--line);
  border-radius:16px;
  display:flex;
  align-items:flex-start;
  gap:12px;
  background:var(--soft);
  cursor:pointer;
}
.ed-confirm-card input{
  margin-top:3px;
  width:18px;
  height:18px;
  flex:0 0 auto;
}
.ed-confirm-card span{display:grid;gap:4px}
.ed-confirm-card b{font-size:14px}
.ed-confirm-card small{font-size:11px;line-height:1.5;color:var(--muted)}

.ed-floor-boundary-help{
  margin-top:12px;
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:15px;
  background:rgba(255,255,255,.72);
  display:grid;
  gap:7px;
}
.ed-floor-boundary-help p{margin:0;font-size:11px;line-height:1.45;color:#4b515b}
.ed-floor-boundary-help small{margin-top:3px;font-size:10px;line-height:1.45;color:var(--muted)}
.ed-floor-layer-note{
  margin-top:14px;
  padding:14px 16px;
  border:1px dashed #cfd5dc;
  border-radius:15px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:7px;
  font-size:10px;
  color:#505761;
}
.ed-floor-layer-note strong{font-size:10px;color:var(--ink)}
.ed-floor-layer-note i{font-style:normal;color:#9aa1aa}
.ed-floor-layer-note small{
  flex-basis:100%;
  margin-top:4px;
  line-height:1.5;
  color:var(--muted);
}

.ed-report-next{
  padding:44px 0;
  border-bottom:1px solid var(--line);
}
.ed-report-next h2{
  margin:0 0 20px;
  font-size:28px;
  letter-spacing:-.035em;
}
.ed-report-next-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.ed-report-next-grid button{
  min-height:142px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  text-align:left;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.ed-report-next-grid button:hover{border-color:#aeb6c0}
.ed-report-next-grid b{font-size:14px;color:var(--ink)}
.ed-report-next-grid span{font-size:11px;line-height:1.5;color:var(--muted)}
.ed-report-next-note{margin:16px 0 0;font-size:11px;line-height:1.55;color:var(--muted)}

@media (max-width:720px){
  .ed-report-next-grid{grid-template-columns:1fr}
  .ed-report-next-grid button{min-height:0}
}


/* Visual report v2: comparison plots + direct D1 product BOM. */
.ed-chart-note{margin:14px 0 0;color:var(--muted);font-size:11px;line-height:1.55}
.ed-report-compare{display:grid;gap:18px}
.ed-report-compare-row{display:grid;gap:8px}
.ed-report-compare-row header{display:flex;justify-content:space-between;gap:18px;align-items:baseline}
.ed-report-compare-row header span{font-size:12px;color:var(--muted)}
.ed-report-compare-row header b{font-size:13px}
.ed-report-compare-track{position:relative;height:28px;border-radius:999px;background:var(--soft);overflow:hidden}
.ed-report-compare-track i{position:absolute;left:0;height:10px;border-radius:999px;top:4px;background:#8a96a3}
.ed-report-compare-track i.is-after{top:15px;background:var(--accent)}
.ed-performance-compare{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ed-performance-compare article{padding:18px;border:1px solid var(--line);border-radius:16px;background:#fff}
.ed-performance-compare article>span{display:block;color:var(--muted);font-size:11px;margin-bottom:4px}
.ed-performance-compare article>strong{font-size:24px;letter-spacing:-.03em}
.ed-performance-compare article>div{height:9px;margin-top:14px;border-radius:999px;background:var(--soft);overflow:hidden}
.ed-performance-compare article>div i{display:block;height:100%;border-radius:999px;background:#8a96a3}
.ed-performance-compare article>div i.is-after{background:var(--accent)}
.ed-catalog-bom{display:grid;gap:12px;margin-top:18px}
.ed-bom-product{display:grid;grid-template-columns:110px minmax(0,1fr);gap:18px;align-items:center;padding:16px;border:1px solid var(--line);border-radius:18px;background:#fff}
.ed-bom-product.is-unmatched{background:var(--soft)}
.ed-bom-product-image{width:110px;height:92px;border-radius:14px;background:var(--soft);overflow:hidden;display:grid;place-items:center;border:1px solid var(--line)}
.ed-bom-product-image img{width:100%;height:100%;object-fit:contain;background:#fff}
.ed-bom-product-image span{font-weight:800;font-size:22px;letter-spacing:.04em;color:#9aa4af}
.ed-bom-product-main small{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.08em}
.ed-bom-product-main h3{margin:4px 0 6px;font-size:16px;line-height:1.25}
.ed-bom-product-main p{margin:0;color:var(--muted);font-size:11px;line-height:1.5}
.ed-bom-product-meta{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:10px}
.ed-bom-product-meta b,.ed-bom-product-meta span{padding:5px 8px;border-radius:999px;background:var(--soft);font-size:10px}
.ed-bom-product-main>a{display:inline-block;margin-top:10px;font-size:11px;font-weight:700;color:var(--ink);text-decoration:none}
.ed-bom-product-main>a:hover{text-decoration:underline}
.ed-monthly-bill-column small{white-space:normal;line-height:1.25;min-height:24px}
@media(max-width:720px){
  .ed-performance-compare{grid-template-columns:1fr}
  .ed-bom-product{grid-template-columns:76px minmax(0,1fr);gap:12px;padding:12px}
  .ed-bom-product-image{width:76px;height:72px}
  .ed-monthly-bill-column small{font-size:7px;transform:none;min-height:32px}
}

/* Monthly report: explicit units, common scales, accessible values. */
.lc-report-chart-grid{display:grid;grid-template-columns:1fr;gap:24px}
.lc-data-chart{padding:24px 0;border-top:1px solid var(--line);min-width:0}
.lc-data-chart h2{font-size:21px;margin:5px 0 14px;letter-spacing:-.025em}
.lc-chart-legend{display:flex;flex-wrap:wrap;gap:18px;font-size:12px;color:#455b71;margin-bottom:14px}
.lc-chart-legend span{display:inline-flex;align-items:center;gap:7px}
.lc-chart-legend i{display:block;width:18px;height:3px;border-radius:3px}
.lc-chart-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.lc-chart-scroll svg{display:block;width:100%;min-width:520px;overflow:visible}
.lc-chart-grid line{stroke:#e5ebf1;stroke-width:1}
.lc-chart-grid text{font:11px Arial,sans-serif;fill:#667b8e}
.lc-chart-series path{fill:none;stroke:var(--series);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.lc-chart-series circle{fill:#fff;stroke:var(--series);stroke-width:2;cursor:help}
.lc-chart-series circle:focus{outline:0;fill:var(--series);stroke-width:4}
.lc-chart-note{font-size:12px;line-height:1.6;color:#62778b;margin:14px 0}
.lc-chart-table summary{font-size:12px;cursor:pointer;color:#24648c;padding:10px 0}
.lc-chart-table>div{overflow-x:auto}
.lc-chart-table table{width:100%;border-collapse:collapse;font-size:12px;font-variant-numeric:tabular-nums}
.lc-chart-table th,.lc-chart-table td{padding:9px;text-align:right;border-bottom:1px solid #edf1f5;white-space:nowrap}
.lc-chart-table th:first-child{text-align:left}
@media(max-width:600px){.lc-data-chart{padding:18px 0}.lc-data-chart h2{font-size:19px}.lc-chart-scroll svg{min-width:520px}}

/* Evaluated object (house / apartment / building) and thermal zones */
.ed-building-scope{margin:0 0 22px;padding:0;border:0;min-width:0}
.ed-building-scope legend{padding:0;margin:0 0 10px;font-size:13px;font-weight:600;color:var(--ink)}
.ed-building-scope-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ed-building-scope-card{position:relative;display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:#fff;cursor:pointer;min-width:0}
.ed-building-scope-card input{position:absolute;opacity:0;pointer-events:none}
.ed-building-scope-card svg{flex:0 0 22px;width:22px;height:22px;fill:none;stroke:var(--accent);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ed-building-scope-card span{display:flex;flex-direction:column;min-width:0}
.ed-building-scope-card b{font-size:14px;color:var(--ink)}
.ed-building-scope-card small{font-size:11.5px;color:var(--muted);overflow-wrap:anywhere}
.ed-building-scope-card.is-selected{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent) inset;background:var(--soft)}
.ed-building-scope-card:focus-within{outline:2px solid var(--accent);outline-offset:2px}
@media (max-width:560px){
  .ed-building-scope-grid{grid-template-columns:1fr}
}
.ed-check-field{display:flex;align-items:center;gap:10px;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fff;font-size:13px;line-height:1.4;color:var(--ink);cursor:pointer}
.ed-check-field input{flex:0 0 auto;margin:0;width:18px;height:18px}
.ed-zone-list{display:grid;gap:12px;margin:14px 0}
.ed-zone-card{padding:14px;border:1px solid var(--line);border-radius:14px;background:#fff}
.ed-zone-remove{margin-top:6px;color:var(--bad)}
.ed-zone-note{margin:8px 0 0;font-size:11.5px;line-height:1.5;color:var(--muted)}
.ed-zone-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;font-size:12.5px;color:var(--muted)}
#edZoneSummary.is-invalid{color:var(--bad);font-weight:600}
.ed-multizone-result{margin-top:16px;overflow-x:auto}
.ed-multizone-result h3{margin:0 0 8px;font-size:14px}
.ed-multizone-result table{width:100%;border-collapse:collapse;font-size:12.5px}
.ed-multizone-result th,.ed-multizone-result td{padding:7px 8px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}
.ed-multizone-result tr.is-dominant th::after{content:" · determină clasa";font-weight:400;color:var(--muted)}
.ed-multizone-result p{margin:10px 0 0;font-size:11.5px;line-height:1.55;color:var(--muted)}

/* The step buttons already mark the current step when their labels are
   visible; the compact "01 — Casa" indicator only helps on narrow screens
   and otherwise overflowed onto the last step label. */
@media(min-width:921px){
  .ed-progress-current{display:none}
}

/* Post-TEO the persistent bar shows after-renovation values; say so. */
.ed-baseline-mode{
  flex:0 0 auto;
  margin-right:auto;
  padding:3px 8px;
  border-radius:999px;
  background:#e8f6ee;
  color:#0d7a3e;
  font-size:10px;
  font-weight:800;
  letter-spacing:.02em;
  white-space:nowrap;
}
.ed-baseline-mode[hidden],.ed-baseline-energy-item[hidden]{display:none}

/* Several saved houses: keep "save" (update) and "save as new" side by side. */
.ed-account-save-actions{display:flex;flex-direction:column;align-items:stretch;gap:4px}
.ed-account-save-actions .ed-link{font-size:11px;min-height:28px;padding:0 6px}
@media(max-width:720px){
  .ed-account-save-actions{width:100%}
}

/* TEO v6: Mc 001-2022 global updated cost. */
.ed-teo-economics{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.ed-teo-economics strong.is-negative{color:#b4472f}
@media(max-width:720px){
  .ed-teo-economics{grid-template-columns:repeat(2,minmax(0,1fr))!important;row-gap:8px}
  .ed-teo-economics>div:nth-child(3){border-left:0}
}
.ed-goal-param-note{margin:8px 0 0;color:#607493;font-size:10px;line-height:1.45}
.ed-global-cost .ed-gc-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}
.ed-gc-kpis>div{display:grid;gap:2px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff}
.ed-gc-kpis span{font-size:11px;color:var(--muted)}
.ed-gc-kpis strong{font-size:18px;letter-spacing:-.02em}
.ed-gc-kpis small{font-size:10px;color:var(--muted)}
.ed-gc-kpis .is-positive strong{color:#14804a}
.ed-gc-kpis .is-negative strong{color:#b4472f}
.ed-gc-chart{margin:0 0 14px}
.ed-gc-chart svg{width:100%;height:auto;display:block}
.ed-gc-chart .ed-gc-line{fill:none;stroke:#0874ef;stroke-width:2.2}
.ed-gc-chart .ed-gc-zero{stroke:#9aa7b8;stroke-dasharray:4 4}
.ed-gc-chart .ed-gc-payback{stroke:#14804a;stroke-width:1.5}
.ed-gc-chart text{font-size:10px;fill:#607493}
.ed-gc-chart figcaption{font-size:11px;color:var(--muted);margin-top:4px}
.ed-gc-breakdown{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:16px;align-items:start}
.ed-gc-breakdown dl{margin:0;display:grid;gap:6px}
.ed-gc-breakdown dl div{display:flex;justify-content:space-between;gap:12px;font-size:12px;border-bottom:1px solid var(--line);padding-bottom:5px}
.ed-gc-breakdown dt{color:var(--muted)}
.ed-gc-breakdown dd{margin:0;font-weight:700}
.ed-gc-breakdown table{width:100%;border-collapse:collapse;font-size:12px}
.ed-gc-breakdown th,.ed-gc-breakdown td{text-align:left;padding:5px 6px;border-bottom:1px solid var(--line)}
.ed-gc-breakdown th{color:var(--muted);font-weight:650}
.ed-gc-generator{margin:0 0 14px;padding:10px 12px;border-left:3px solid #0874ef;background:rgba(8,116,239,.06);font-size:12px;line-height:1.5}
.ed-gc-assumptions{margin-top:12px;font-size:11px;color:var(--muted)}
.ed-gc-assumptions summary{cursor:pointer;font-weight:700;color:var(--ink)}
.ed-gc-assumptions ul{margin:8px 0 0;padding-left:18px;display:grid;gap:4px}
@media(max-width:720px){
  .ed-global-cost .ed-gc-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ed-gc-breakdown{grid-template-columns:1fr}
}
