/* Scene controls keep the camera, equipment and tap targets in separate areas. */
.station-summary .summary-title {display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.station-summary .summary-title h1 {margin:0;font-size:19px;line-height:1.35;font-weight:750;letter-spacing:-.035em}
.summary-title>span {font-size:12px;color:var(--muted)}
body:not(.energy-mode):not(.traffic-mode) .station-summary {width:254px;padding:17px 18px 10px;background:#fbfdfc;border:1px solid #dae4e6;border-radius:12px;box-shadow:0 7px 26px #102d3d17}
.station-summary .station-switch,.finance-stations,.chart-switch {display:flex;align-items:stretch;gap:3px;border-radius:7px;background:#eaf0f2;padding:3px;box-shadow:none}
.station-summary .station-switch {flex-direction:row;margin:13px 0 0}
.station-summary .station-switch button,.finance-stations button,.chart-switch button {flex:1;white-space:nowrap;padding:7px 6px;text-align:center;border:0;border-radius:5px;font-size:12px;font-weight:640;color:#425a69}
.station-summary .station-switch button.selected,.finance-stations button.selected,.chart-switch button[aria-pressed=true] {background:#fff;color:#075488;box-shadow:0 1px 4px #193b4a21}
.bay-capacity {display:flex;align-items:center;gap:10px;margin:11px 0 7px}
.bay-capacity>strong {font-size:42px;line-height:1;font-weight:720;color:#194e6d;letter-spacing:-.055em}
.bay-capacity b,.bay-capacity small {display:block}
.bay-capacity b {font-size:13px}.bay-capacity small {font-size:11px;color:var(--muted);margin-top:2px}
.station-specs {margin:9px 0 3px}
.station-specs>div {display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:6px 0}
.station-specs dt {font-size:12px;color:#4f6874}.station-specs dd {margin:0;white-space:nowrap;font-size:11px}.station-specs b {font-size:14px}
#show-battery.product-entry {width:100%;display:flex;align-items:center;gap:8px;margin:5px 0 0;padding:8px 0 0;border-top:1px solid #dbe5e7;text-align:left;pointer-events:auto}
.product-entry img {width:39px;height:39px;object-fit:contain}
.product-entry b,.product-entry small {display:block}
.product-entry small {font-size:11px;color:var(--muted)}
.product-entry b {font-size:13px;color:#195f85}.product-entry .entry-arrow {margin-left:auto;color:#296687;font-size:23px}
#scenario-panel {background:#fbfdfc;border:1px solid #dae4e6;border-radius:12px}
#scenario-panel .panel-heading {padding:14px 16px 10px;font-size:18px}
#panel-body {padding:0 15px 13px}
#scenario-panel .scenario-presets {margin-bottom:11px;background:#eaf0f2}
#scenario-panel .scenario-presets button {font-weight:640}
.dispatch-result {background:#193f53;color:white;border-radius:8px;padding:12px 14px 11px;font-variant-numeric:tabular-nums}
.result-caption,.delivery-foot {display:flex;align-items:center;justify-content:space-between;gap:6px}
.result-caption {font-size:12px;font-weight:650;color:#f0f6f6}.result-caption b {color:#afcbd4;font-size:10px;letter-spacing:.06em}
.result-value {display:flex;align-items:baseline;gap:6px;margin:3px 0 8px}
.result-value strong {font-size:34px;line-height:1.1;font-weight:700;letter-spacing:-.035em}
.result-value small {font-size:13px;color:#d2e1e7}
.delivery-track {height:4px;background:#526f7b;border-radius:3px;overflow:hidden}
.delivery-track i {display:block;height:100%;background:#86d9b5}
.delivery-foot {margin-top:6px;color:#d6e6e9;font-size:11px}
.delivery-foot b {font-weight:650;color:#fff}
.dispatch-warning {margin:7px 0 0;padding:7px 9px;background:#faf0df;color:#72491b;border-radius:4px;font-size:12px;line-height:1.5}
.quick-controls .range-label {margin:13px 0 3px}
.quick-controls .range-ends {font-size:10px;margin:2px 0 4px;color:#627785}
#scenario-panel .details {margin-top:10px;padding-top:9px}
#scenario-panel .details summary,.finance .details summary {min-height:27px;line-height:27px}
#scenario-panel .tune .input-pair {margin:10px 0}
#scenario-panel .tune .input-pair>label>span {min-height:0}
.energy-mode .station-summary .station-switch {margin:0}
.traffic-mode .summary-title,.traffic-mode .bay-capacity,.traffic-mode .station-specs,.traffic-mode .product-entry {display:none!important}

body.finance-mode .station-summary,body.finance-mode .scene-toolbar {display:none}
body.finance-mode .scene-footer #interaction-hint {visibility:hidden}
body.finance-mode .finance {inset:0 0 42px;border:0;border-top:1px solid #d7e2e5;border-radius:0;display:flex;flex-direction:column;overflow:auto;overscroll-behavior:contain;background:#edf2f2;box-shadow:none}
.investment-header,.investment-body,#financial-loading {width:min(1430px,100%);margin:0 auto}
.investment-header {padding:24px clamp(20px,3.4vw,55px) 17px;display:flex;align-items:center;gap:22px;flex:none}
.investment-header h2 {font-size:clamp(24px,2.3vw,35px);line-height:1.22;letter-spacing:-.04em}
#finance-context {font-size:12px;color:#506674;margin-top:6px}
.finance-stations {background:#dfe8e9;align-self:center;margin-left:auto}
.finance-stations button {padding:8px 12px}
.investment-actions {display:flex;gap:6px}
.investment-actions .secondary {background:#fcfdfd;border:1px solid #c6d4d8;color:#27526a;padding:8px 12px}
#edit-investment {display:none}
#financial-loading {padding:3px clamp(20px,3.4vw,55px) 8px;color:#226a8f;font-size:12px}
.finance[aria-busy=true] .finance-main {opacity:.56}
.investment-body {display:grid;grid-template-columns:minmax(0,1fr) clamp(240px,21vw,300px);align-items:start;gap:16px;padding:0 clamp(20px,3.4vw,55px) 30px}
.investment-body .finance-main {min-width:0;overflow:visible;padding:0}
.finance-main section,.finance .comparison {background:#fff;border:1px solid #d6e0e1;border-radius:9px}
.returns {display:grid;grid-template-columns:1.12fr 1fr 1fr 1.12fr;overflow:hidden;align-items:stretch}
.returns>div {padding:17px clamp(10px,1.3vw,22px);display:flex;flex-direction:column;justify-content:center;min-width:0}
.returns>div+div {border-left:1px solid #dfe7e7}
.returns span {font-weight:580;color:#55707e;font-size:12px}
.returns strong {display:block;font-size:clamp(25px,2.4vw,39px);letter-spacing:-.05em;font-weight:740;line-height:1.25;margin-top:6px}
.returns small,.returns small span {font-size:10.5px;color:#5b6f7a;font-weight:520}
.returns .return-primary {background:#173e52;color:#fff;padding-left:clamp(16px,1.7vw,27px)}
.return-primary>span {color:#cee4e7}
.return-primary>div {display:flex;align-items:baseline;gap:6px}
.return-primary strong {font-size:clamp(36px,3.6vw,56px);line-height:1.05}
.returns .return-primary small {color:#e1efed;font-size:13px}
.return-primary .no-recovery {font-size:clamp(16px,1.5vw,24px);line-height:1.45}
.finance .cash-section,.finance .comparison,.financial-detail section,.finance .report-method {padding:19px 22px;margin-top:14px}
.finance .chart-heading {margin-bottom:8px}
.finance-main h3,.finance .comparison h3 {font-size:16px;font-weight:730;line-height:1.4}
.chart-unit,.section-unit {font-size:11px;color:#5a7280}
.chart-switch button {padding:5px 11px}
#cash-chart {height:clamp(148px,20vh,226px);margin:0;cursor:crosshair}
#cash-chart svg {overflow:hidden;display:block}
#cash-chart text {font:11px Manrope,"Microsoft YaHei",sans-serif;stroke:none}
.year-readout {display:flex;align-items:center;gap:10px;color:#516d77;font-size:11px;padding-top:9px;border-top:1px solid #e3eaeb}
.year-readout label {white-space:nowrap}
.year-readout input {width:clamp(48px,19%,135px);height:4px;accent-color:#227d76}
.year-readout output {margin-left:auto;font-size:12px;color:#1a5e58;font-weight:700;text-align:right}
.financial-detail {display:grid;grid-template-columns:1fr 1fr;gap:14px}
.financial-detail dl {margin:9px 0 0}
.financial-detail dl>div {display:flex;justify-content:space-between;align-items:baseline;gap:6px;padding:4px 0}
.financial-detail dt {color:#48616d;font-size:12px}
.financial-detail dd {margin:0;font-variant-numeric:tabular-nums;font-weight:680;font-size:14px}
#capex-stack {display:flex;background:#edf2f3;border-radius:2px;height:7px;margin:11px 0 5px;overflow:hidden}
#capex-parts dt i {width:7px;height:7px;display:inline-block;margin-right:7px;border-radius:2px}
#cash-bridge>div:last-child {border-top:1px solid #d9e5e6;margin-top:3px;padding-top:8px;color:#14695f}
#cash-bridge>div:last-child dt {color:inherit;font-weight:700}
.basis {color:#57707d;font-size:10.5px;margin-top:6px}
.finance .comparison table {margin:8px 0;background:#fff}
.finance .comparison th,.finance .comparison td {padding:9px 6px;font-size:12px}
.finance .comparison .difference {background:#e9f3ef;color:#176558}
.finance .comparison .field-help {color:#385662}
.operating-summary {margin:0;border:0;padding:15px 4px 0}
.finance .report-method {margin:10px 0 0;padding:5px 4px;border:0}
.report-method .model-note {margin-top:6px}
.investment-body .finance-inputs {background:#fbfcfa;border:1px solid #d6e0e1;border-radius:9px;padding:17px;overflow:visible}
.finance .finance-inputs h3 {margin:0 0 12px;font-size:17px}
.finance .finance-inputs .number-row {display:flex;margin:12px 0;gap:8px;align-items:center;line-height:1.45}
.finance .finance-inputs .number-row>span {max-width:none;flex:1;color:#415d6c}
.finance .finance-inputs input {background:#fff;width:88px;margin:0;padding:7px 6px;font-size:13px;font-weight:630}
.finance .finance-inputs .details {margin-top:13px;padding-top:8px;border-top:1px solid #d8e3e4}
.finance .assumption-label {margin-top:14px;color:#526b76;font-size:11px}
.finance .finance-inputs>.secondary {margin-top:12px}
#return-results {display:none}
body.finance-mode .guide-caption {z-index:9;left:10%;right:10%;bottom:48px}
@media(min-width:651px) and (max-width:1280px){
  body:not(.energy-mode):not(.traffic-mode) .station-summary,#scenario-panel {top:70px}
  .scene-toolbar {top:13px}
  #scenario-panel {max-height:calc(100% - 120px)}
}
@media(min-width:651px) and (max-width:900px) {
  .investment-header {gap:12px}
  .investment-body {grid-template-columns:minmax(0,1fr)}
  #edit-investment,#return-results {display:inline-block}
  #return-results {color:var(--blue);padding:12px 0}
}
@media(max-width:650px) {
  body:not(.energy-mode):not(.traffic-mode):not(.finance-mode):not(.cabinet-mode) .station-summary {position:relative;inset:auto;width:calc(100% - 28px);margin:14px auto 0;padding:15px;pointer-events:auto}
  .station-summary .station-switch {width:100%;margin-top:8px}
  .bay-capacity {margin:10px 0 4px}
  .station-specs {display:flex;flex-wrap:wrap;gap:8px 15px}
  .station-specs>div {display:block;padding:3px 0}
  .station-specs dd {margin-top:2px}
  #scenario-panel {width:calc(100% - 28px);margin:12px auto}
  body.finance-mode #experience {padding:0;min-height:0;height:auto}
  body.finance-mode #viewport {height:1px;min-height:0;visibility:hidden}
  body.finance-mode .finance {position:relative;inset:auto;margin:0;overflow:visible}
  .investment-header {gap:12px 8px;flex-wrap:wrap;padding:16px 14px 12px}
  .investment-header>div:first-child {flex:1 0 100%}
  .finance-stations {margin:0}
  .finance-stations button {padding:8px 6px}
  .investment-actions {margin-left:auto;gap:4px}
  .investment-actions .secondary {font-size:11px;padding:8px 6px}
  #edit-investment {display:block}
  .investment-body {display:flex;flex-direction:column;gap:12px;padding:0 12px 18px}
  .investment-body>* {width:100%}
  .returns {grid-template-columns:1fr 1fr}
  .returns>div {padding:12px}
  .returns>div:nth-child(3),.returns>div:nth-child(4) {border-top:1px solid #dfe7e7}
  .returns>div:nth-child(3) {border-left:0}
  .returns strong {font-size:26px}
  .return-primary strong {font-size:35px}
  .finance .cash-section,.finance .comparison,.financial-detail section {padding:13px;margin-top:10px}
  .financial-detail {grid-template-columns:1fr;gap:0}
  .finance-main h3 {font-size:15px}
  #cash-chart {height:165px}
  .operating-summary {gap:6px 12px}
  .finance .comparison th,.finance .comparison td {font-size:11px;padding:7px 3px}
  .finance .finance-inputs input {width:110px}
  #return-results {display:block;width:100%;margin-top:9px;padding:9px 0;color:#185a7f;font-weight:650}
  body.finance-mode .scene-footer #interaction-hint {display:none}
  body.finance-mode .guide-caption {position:relative;inset:auto}
}

.station-summary .station-switch button {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;min-width:0;text-align:center;line-height:1.4}
.station-switch button small {display:block;margin-top:2px;color:#526a78;font-size:10px;font-weight:500}
.station-switch button.selected small {color:#216784}
.energy-mode .station-switch small,.traffic-mode .station-switch small {display:none}
.supply-mix {margin:12px 0 2px}
.mix-heading,.supply-mix dl {display:flex;align-items:baseline;justify-content:space-between}
.mix-heading b {font-size:12px;color:#234254}.mix-heading small {font-size:10px;color:#516874}
.mix-track {display:flex;gap:0;height:5px;margin:6px 0;border-radius:4px;overflow:hidden;background:#e0e8ea}
.supply-mix {--grid-source:#336f98;--solar-source:#b37c2f;--storage-source:#288274}
.mix-track i:nth-child(1),.supply-mix dl>div:nth-child(1) dt::before {background:var(--grid-source)}
.mix-track i:nth-child(2),.supply-mix dl>div:nth-child(2) dt::before {background:var(--solar-source)}
.mix-track i:nth-child(3),.supply-mix dl>div:nth-child(3) dt::before {background:var(--storage-source)}
.supply-mix dl {margin:0;gap:4px;font-variant-numeric:tabular-nums}
.supply-mix dt {font-size:10.5px;color:#526572}
.supply-mix dt::before {content:'';display:inline-block;width:5px;height:5px;border-radius:50%;margin-right:4px;vertical-align:middle}
.supply-mix dd {font-size:14px;font-weight:680;margin:1px 0 0;color:#193d51}
.finance .investment-comparison {margin:9px 0 0;padding:0 20px;background:#f8fbfa;border-color:#ccdcda}
.investment-comparison summary {display:flex;align-items:center;gap:13px;cursor:pointer;padding:11px 0;list-style:none}
.investment-comparison summary::-webkit-details-marker {display:none}
.investment-comparison summary span {display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 10px}
.investment-comparison summary b {color:#244a52;font-size:13px}
.investment-comparison summary small {font-size:11.5px;color:#506a72}
.investment-comparison summary strong {white-space:nowrap;font-size:19px;font-variant-numeric:tabular-nums;margin-left:auto;color:#176b5f}
.investment-comparison summary i {height:7px;width:7px;flex:none;border-right:1.5px solid #49706f;border-bottom:1.5px solid #49706f;transform:rotate(45deg);margin:-3px 3px 0 0}
.investment-comparison[open] summary i {transform:rotate(225deg);margin-top:4px}
.investment-comparison[open] summary {border-bottom:1px solid #dce5e4}
.finance .investment-comparison[open] {padding-bottom:10px}
@media(max-width:650px) {
 .finance .investment-comparison {padding:0 12px}
 .investment-comparison summary span {display:grid}
 .year-readout output {max-width:55%}
}

/* Investment operating case */
.finance .case-hero {display:grid;grid-template-columns:1fr 1.5fr;align-items:center;gap:16px 24px;padding:20px 24px 12px;color:#fff;background:#133d50;border:0;border-radius:10px}
.case-hero p,.case-hero small {margin:0;font-size:12px;color:#c4dce2}
.finance .case-hero h3 {margin:4px 0;color:#fff;font-size:20px}
.case-hero strong {display:block;font-size:clamp(30px,2.8vw,47px);line-height:1.2;letter-spacing:-.04em}
.case-hero dl,.order-strip {display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0}
.case-hero dl>div {border-left:1px solid #476877;padding-left:13px}
.case-hero dt,.case-hero footer {font-size:12px;color:#cfdee3}
.case-hero dd,.order-strip dd {margin:4px 0 0;font-size:clamp(17px,1.6vw,26px);font-weight:700;font-variant-numeric:tabular-nums}
.case-hero footer {grid-column:1/-1;display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;border-top:1px solid #476877;padding-top:8px}
.report-tabs {display:flex;align-items:center;gap:16px;margin:14px 0 10px;border-bottom:1px solid #cbdadc}
.report-tabs button {padding:10px 4px;color:#45616e;border-bottom:3px solid transparent;border-radius:0;font-weight:650}
.report-tabs [aria-pressed=true] {border-color:#1a776e;color:#125c54}
.order-strip {padding:12px 16px;border:1px solid #c9dfd9;background:#e4f0ec;border-radius:8px}
.order-strip dt,.case-card small {color:#4e6668;font-size:12px}
.order-strip dd {color:#135c54}
.finance .case-card {padding:16px 20px;margin:8px 0 12px}
.case-card h3,#project-totals h3 {margin:0 0 10px}
.case-card p {margin:8px 0;font-size:12px;color:#4a626c;line-height:1.6}
.case-card label {display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#405965}
.case-card select,.case-card input {background:#fff;border:1px solid #bdcfd1;border-radius:5px;padding:6px;color:#173c4a;max-width:125px}
.case-card details {border-top:1px solid #d9e4e5;padding-top:7px;margin-top:5px}
.case-card summary {cursor:pointer;color:#205e64;font-weight:650;font-size:12px}
.case-scroll {overflow-x:auto}
.case-card table {margin:5px 0 8px;border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums}
.case-card th,.case-card td {padding:6px 8px;text-align:right;border:0;border-bottom:1px solid #e4ebeb;font-size:12px;line-height:1.45}
.case-card th:first-child {text-align:left;font-weight:530;color:#415b67}
.case-card thead th {background:#eff4f4;color:#344e5a;font-weight:680}
.case-card button {padding:7px 10px;border:1px solid #bbd0d1;border-radius:5px;color:#174f59;font-weight:600}
.case-card .heat-cell {width:100%;min-width:46px;font-variant-numeric:tabular-nums}
.heat-cell.positive {background:#dfefe8;color:#185d4e}.heat-cell.negative {background:#f6e7dd;color:#7d4736}
.heat-cell[aria-pressed=true] {outline:2px solid #245c73;outline-offset:-2px}
#project-totals {margin:16px 0 0}
.finance[aria-busy=true] #report-stress,.finance[aria-busy=true] #report-ledger {pointer-events:none}
@media(max-width:800px){.finance .case-hero {grid-template-columns:1fr;padding:15px}.case-hero dl>div:first-child{border:0;padding-left:0}.case-hero dl>div{padding-left:9px}.case-hero dt,.case-hero footer {font-size:11px}.report-tabs{gap:9px}.report-tabs button{font-size:12px}.finance .case-card{padding:12px}.order-strip{gap:5px;padding:10px}.order-strip dt{font-size:11px}}
@media print {
 body.finance-mode,body.finance-mode #experience,body.finance-mode #finance {display:block!important;position:static!important;height:auto!important;overflow:visible!important}
 body.finance-mode .app-header,body.finance-mode #viewport,body.finance-mode .scene-footer,body.finance-mode .finance-inputs,body.finance-mode .investment-actions,body.finance-mode .finance-stations,body.finance-mode .report-tabs,body.finance-mode #report-ledger,body.finance-mode #report-stress,body.finance-mode .cash-section,body.finance-mode .report-method {display:none!important}
 .investment-body {display:block!important}.case-hero {print-color-adjust:exact}.finance #report-compare[hidden]{display:block!important}
}

.scenario-load {display:inline-flex;align-items:center;cursor:pointer;position:relative;white-space:nowrap}
.scenario-load input {position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}
.scenario-load:focus-within {outline:2px solid #195e81}
.finance-inputs select {border:1px solid #b5cace;padding:4px;color:#244854;border-radius:4px}
.finance-inputs label:has(#source-ref),.finance-inputs label:has(#source-date) {display:grid;grid-template-columns:1fr;gap:4px;margin-top:8px;font-size:12px}
.finance-inputs input:is(#source-ref,#source-date) {width:100%}
#order-fields .number-row:last-child {margin-bottom:6px}
@media print{body.finance-mode .masthead,body.finance-mode .comparison,body.finance-mode .financial-detail,body.finance-mode .operating-summary{display:none!important}.investment-header,.investment-body{max-width:100%}}

/* Investment report: project economics and the marginal investment share one reading grid. */
body.finance-mode #finance {
  --report-ink: #1c383b;
  --report-muted: #536768;
  --report-rule: #d7deda;
  --report-green: #126255;
  --report-outer: clamp(20px, 3.2vw, 48px);
  background: #f3f4ef;
  color: var(--report-ink);
}
#finance .investment-header, #finance .investment-body, #financial-loading {width:min(1510px,100%)}
#finance .investment-header {
  gap:clamp(10px,1.6vw,25px);
  padding:clamp(19px,2.6vw,36px) var(--report-outer) 20px;
  flex-wrap:wrap;
}
#finance .investment-header h2 {
  color:var(--report-ink);
  font-size:clamp(26px,2.45vw,41px);
  letter-spacing:-.045em;
  font-weight:730;
}
#finance-context {color:var(--report-muted);letter-spacing:.025em}
#finance .finance-stations {background:#e4e9e3;border:1px solid #d9e0d9;border-radius:8px;padding:3px;gap:2px}
#finance .finance-stations button {border-radius:5px;min-height:33px}
#finance .investment-actions {align-items:center;gap:7px}
#finance .investment-actions .secondary {border:1px solid #cbd7d1;border-radius:6px;color:#254b46;background:#fbfcf8;font-weight:650;min-height:35px}
#finance .investment-actions #export {color:white;border-color:#1b4842;background:#1b4842}
#finance .investment-actions #export:disabled {opacity:.55}
#finance .investment-body {padding-inline:var(--report-outer);gap:clamp(14px,1.6vw,25px)}
#finance .case-hero {
  display:grid;
  grid-template-columns:minmax(160px,1fr) minmax(230px,1.4fr) minmax(82px,.55fr);
  gap:12px clamp(8px,1.3vw,20px);
  overflow:hidden;
  padding:clamp(16px,1.6vw,24px) clamp(18px,2.1vw,31px) 11px;
  background:radial-gradient(ellipse at 98% 18%,#3d6560 0%,transparent 52%),#153d3d;
  border-radius:10px;
  box-shadow:0 3px 9px #1d40370c;
}
#finance .case-hero>div {grid-area:1/1;min-width:0}
#finance .case-hero p {color:#c0d8cd;font-size:12px;font-weight:550}
#finance .case-hero h3 {margin:6px 0;color:#f7faf1;font-size:clamp(17px,1.5vw,23px);font-weight:650}
#finance .case-hero strong {
  font-size:clamp(37px,3.45vw,56px);
  color:#d9ecb9;
  font-weight:670;
  letter-spacing:-.055em;
  line-height:1.12;
  font-variant-numeric:tabular-nums;
}
#finance .case-hero small {display:block;margin-top:4px;color:#d4e3dc}
#finance .case-hero dl {grid-area:1/2;gap:0;align-self:center;min-width:0}
#finance .case-hero dl>div {border-left:1px solid #689086;padding-inline:clamp(7px,.85vw,14px);min-width:0}
#finance .case-hero dt {color:#d2e1dc;line-height:1.5}
#finance .case-hero dd {font-weight:630;line-height:1.3;letter-spacing:-.025em;color:#fff}
#finance .case-hero::after {
  content:"";
  grid-area:1/3;
  align-self:stretch;
  min-height:104px;
  background:url("./assets/ebank.png") center/contain no-repeat;
  mask-image:linear-gradient(90deg,transparent,#000 14%,#000 86%,transparent);
}
#finance .case-hero footer {grid-area:2/1/3/-1;border-color:#53736c;color:#d0dfd8;font-size:11px;line-height:1.5;padding-top:9px}
#finance .case-hero footer span {font-weight:650}
#project-totals {margin:18px 0 0;padding:13px 19px 8px;background:#fff;border:1px solid var(--report-rule);border-radius:9px}
#project-totals h3 {margin:0 0 8px;font-size:15px;color:var(--report-ink)}
#project-totals .returns {border:0;border-top:1px solid var(--report-rule);border-radius:0;background:transparent}
#project-totals .returns>div {padding:10px clamp(9px,1.2vw,18px);background:transparent;border-color:var(--report-rule)}
#project-totals .returns>div:first-child {padding-left:0}
#project-totals .returns span,#project-totals .returns small {color:var(--report-muted)}
#project-totals .returns strong {color:var(--report-ink);font-size:clamp(23px,2vw,33px);font-weight:670;line-height:1.2;letter-spacing:-.045em;font-variant-numeric:tabular-nums}
#project-totals .returns .no-recovery {font-size:clamp(14px,1.35vw,21px)}
#finance .report-tabs {gap:clamp(12px,2.3vw,32px);border-color:#bacbc3;margin:15px 0 12px}
#finance .report-tabs button {font-size:13px;min-height:43px;padding:8px 1px;color:#526561}
#finance .report-tabs button[aria-pressed=true] {color:var(--report-green);border-color:#217360}
#finance .order-strip {gap:0;padding:13px 0;background:#e9eee6;border:1px solid #d2ddcf;border-radius:7px}
#finance .order-strip>div {min-width:0;padding-inline:clamp(10px,1.6vw,24px)}
#finance .order-strip>div+div {border-left:1px solid #cdd8cd}
#finance .order-strip dt {color:#4b6256}
#finance .order-strip dd {font-size:clamp(17px,1.55vw,24px);letter-spacing:-.025em}
#finance .case-card,#finance .cash-section,#finance .financial-detail section {
  padding:clamp(15px,1.6vw,24px);
  background:#fff;
  border:1px solid var(--report-rule);
  border-radius:9px;
}
#finance .case-card {margin:12px 0}
#finance .case-card h3,#finance .cash-section h3,#finance .financial-detail h3 {font-size:clamp(16px,1.35vw,21px);color:var(--report-ink);letter-spacing:-.025em}
#finance .case-scroll {scrollbar-width:thin;overscroll-behavior-x:contain}
#finance .case-card table {border-collapse:separate;border-spacing:0}
#finance .case-card th,#finance .case-card td {padding:9px 12px;border-bottom:1px solid #e4e9e4;font-size:12px}
#finance .case-card thead th {background:#f2f4ef;color:#495e53;font-weight:680}
#finance .case-card tbody th {color:#465b55}
#finance .case-card tbody td {color:#243e36;font-weight:630}
#report-compare .case-card>.case-scroll th:last-child,#report-compare .case-card>.case-scroll td:last-child {background:#f0f6ef;color:#1d5549}
#report-compare .case-card>.case-scroll thead th:last-child {background:#dcebe0}
#finance .case-card button:not(.heat-cell),#finance .case-card select,#finance .case-card input {border-color:#bccdc4;border-radius:5px}
#finance .case-card details {padding:11px 0 0;margin-top:9px;border-color:var(--report-rule)}
#finance .case-card summary {color:var(--report-green)}
#finance .case-card .heat-cell {border-radius:5px;border-color:transparent;min-height:36px}
#finance .heat-cell.positive {background:#deeee2;color:#18573e}
#finance .heat-cell.negative {background:#f4e4d9;color:#793e2a}
#finance .heat-cell[aria-pressed=true] {outline:2px solid #244f46;outline-offset:-2px}
#finance .cash-legend {display:flex;align-items:center;flex-wrap:wrap;gap:5px 15px;color:#536963;font-size:11px}
#finance .cash-legend span {display:inline-flex;align-items:center;gap:5px}
#finance .cash-legend span::before {content:"";width:17px;border-top:2px solid #16766c}
#finance .cash-legend span:nth-child(2)::before {border-color:#365a81;border-top-style:dashed}
#finance .finance-inputs {background:#fcfcf7;border:1px solid #cfd9cf;box-shadow:0 2px 6px #253e2b05;border-radius:9px;padding:clamp(15px,1.5vw,23px)}
#finance .finance-inputs h3 {padding-bottom:12px;margin-bottom:14px;border-bottom:2px solid #c0a377;color:#253e39;font-size:18px;letter-spacing:-.025em}
#finance .finance-inputs .number-row {margin:11px 0}
#finance .finance-inputs .number-row>span,#finance .finance-inputs .check-row span {color:#445953;line-height:1.5}
#finance .finance-inputs input:not([type=checkbox]),#finance .finance-inputs select {
  color:#203e37;background:#fff;border:1px solid #c9d5ca;border-radius:5px;
  font-variant-numeric:tabular-nums;min-height:32px;
}
#finance .finance-inputs input[type=number] {text-align:right;color:#193f34}
#finance .finance-inputs input:is(#source-ref,#source-date) {width:100%}
#finance .finance-inputs .check-row {display:flex;align-items:center;gap:9px;justify-content:flex-start;margin:10px 0}
#finance .finance-inputs input[type=checkbox] {flex:0 0 16px;width:16px;height:16px;min-height:0;margin:0;padding:0;accent-color:#176956}
#finance .finance-inputs .details {border-color:var(--report-rule);margin-top:12px;padding-top:10px}
#finance .finance-inputs .assumption-label {color:#59685c}
#finance .finance-inputs>.secondary {background:#f0f3ec;color:#345348;border-color:#cdd8ce}
#finance :is(button,summary,input,select,label.scenario-load):focus-visible {outline:2px solid #206d8e;outline-offset:2px}

@media(max-width:1150px) and (min-width:901px), (max-width:760px) {
  #finance .case-hero {grid-template-columns:minmax(0,1fr) minmax(75px,24%);gap:12px 16px}
  #finance .case-hero::after {grid-area:1/2;min-height:82px}
  #finance .case-hero dl {grid-area:2/1/3/-1}
  #finance .case-hero dl>div:first-child {border-left:0;padding-left:0}
  #finance .case-hero footer {grid-area:3/1/4/-1}
}
@media(max-width:900px) {
  #finance .investment-header {row-gap:10px}
  #finance .investment-actions {flex-wrap:wrap}
}
@media(max-width:650px) {
  #finance .investment-header {padding:18px 14px 12px;gap:8px}
  #finance .investment-header>div:first-child {flex:1 0 100%}
  #finance .investment-body {padding:0 12px 22px;gap:13px}
  #finance .investment-actions {margin-left:0;gap:5px}
  #finance .investment-actions .secondary {min-height:32px;padding-inline:8px}
  #finance .finance-stations {margin:0}
  #finance .case-hero {padding:16px 14px 10px}
  #finance .case-hero h3 {font-size:18px}
  #finance .case-hero strong {font-size:35px}
  #finance .case-hero dt {font-size:11px}
  #finance .case-hero dd {font-size:18px}
  #project-totals {margin-top:10px;padding:12px 13px 3px}
  #project-totals .returns>div {padding:9px 10px}
  #project-totals .returns>div:nth-child(odd) {padding-left:0}
  #finance .report-tabs {gap:4px;justify-content:space-between;margin:9px 0}
  #finance .report-tabs button {font-size:12px}
  #finance .case-card {padding:13px}
  #finance .case-card th,#finance .case-card td {padding:8px 6px;font-size:11.5px}
  #finance .order-strip>div {padding-inline:8px}
  #finance .order-strip dd {font-size:16px}
  #finance .case-card table {min-width:250px}
  #finance #report-stress table {min-width:400px}
  #finance .cash-legend {gap:5px 9px}
  #finance .finance-inputs :is(button,summary) {min-height:32px}
}
@media print {
  #finance .investment-header {padding:0 0 12px}
  #finance .investment-body {padding:0}
  #finance .case-hero {background:white;border:1px solid #93a79c;box-shadow:none}
  #finance .case-hero :is(h3,p,small,strong,dt,dd,footer) {color:#173d35}
  #finance .case-hero::after {display:none}
  #finance .case-hero {grid-template-columns:1fr 1.5fr}
  #finance .case-card,#project-totals,#finance .case-hero {break-inside:avoid}
}
body:not(.energy-mode):not(.traffic-mode) .station-summary .summary-title{display:none}
body.traffic-mode .station-summary{display:none}
body:not(.energy-mode):not(.traffic-mode) .station-summary{border-radius:10px;padding:10px 12px;width:218px}
.station-summary .station-switch {margin:0}
.station-summary .station-switch button small{display:none}
.station-summary .station-details summary{font-size:.8rem}
@media(max-width:700px){body:not(.energy-mode):not(.traffic-mode):not(.finance-mode):not(.cabinet-mode) .station-summary{width:calc(100% - 28px)}}
