#story-panel-energy { grid-template-rows: auto auto; }
.cost-calculator { grid-column: 1 / -1; border-top: 1px solid #d5ddda; padding-top: 40px; min-width: 0; color: #344441; }
.cost-calculator *, .cost-calculator *::before, .cost-calculator *::after { box-sizing: border-box; letter-spacing: 0; }
.cost-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 30px; }
.cost-heading .story-kicker { margin-bottom: 10px; color: #697773; }
.cost-heading h4 { font-size: 28px; line-height: 1.5; margin: 0; font-weight: 600; }
.cost-heading > p { font-size: 12px; line-height: 1.9; color: #72817b; margin: 0 0 5px; }
.cost-top { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.cost-fields { min-width: 0; }
.cost-form-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.cost-calculator h5 { display: flex; align-items: center; gap: 9px; font-size: 15px; line-height: 1.7; margin: 0 0 20px; font-weight: 600; }
.cost-calculator h5 svg { width: 19px; height: 19px; flex-shrink: 0; color: #678377; }
.cost-form-heading h5 { margin: 0; }
.cost-form-heading > span { font-size: 11px; color: #89928c; }
.cost-field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 20px; margin-bottom: 18px; align-items: start; }
.cost-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin-bottom: 18px; color: #50615a; font-size: 12px; line-height: 1.65; }
.cost-field-grid .cost-field { margin-bottom: 0; }
.cost-input { display: flex; align-items: center; background: #fff; border: 1px solid #cbd5d0; border-radius: 4px; min-height: 44px; overflow: hidden; }
.cost-calculator .cost-input input { border: 0; border-radius: 0; width: 100%; min-width: 0; padding: 10px 9px 10px 12px; color: #334940; background: transparent; font-size: 15px; line-height: 22px; font-variant-numeric: tabular-nums; }
.cost-input > span { font-size: 10px; color: #7c8880; flex-shrink: 0; margin-right: 12px; }
.cost-input:focus-within { outline: 2px solid #df9a38; outline-offset: 2px; }
.cost-input input:focus { outline: none; }
.cost-field select { min-height: 44px; border: 1px solid #cbd5d0; border-radius: 4px; background: #fff; color: #3c5447; font-size: 12px; width: 100%; padding: 9px 12px; text-overflow: ellipsis; }
.cost-field small { color: #859188; line-height: 1.8; font-size: 10px; }
.cost-field-error:empty { display: none; }
.cost-field .cost-field-error { color: #ae473e; }
.cost-input:has([aria-invalid=true]) { border-color: #c35e4a; background: #fff8f5; }
.cost-input:has(input:disabled), .cost-overridden .cost-input { background: #f1f3f1; color: #a5ada7; }
.cost-field input:disabled { color: #9aa69e; }
.cost-model-note { font-size: 11px; line-height: 1.9; color: #7b8980; margin: 0 0 20px; }
.cost-demand-summary { font-size: 12px; color: #477865; padding-top: 14px; border-top: 1px solid #dce2dd; margin: 0; }
.cost-results { min-width: 0; background: #f1f5f2; padding: 24px 28px; border-top: 3px solid #e6b241; }
.cost-results-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.cost-results-heading h5 { margin: 0; }
.cost-period { display: flex; border: 1px solid #cbd7ce; padding: 2px; border-radius: 4px; }
.cost-period button { border: 0; background: none; border-radius: 2px; min-width: 48px; min-height: 30px; padding: 4px 8px; color: #7b8d7f; font-size: 11px; }
.cost-period button[aria-pressed=true] { background: #fff; color: #354d40; }
.cost-status { color: #788b7f; font-size: 11px; line-height: 1.85; margin-top: 16px; min-height: 40px; }
.cost-status.cost-invalid { color: #ac4d3f; }
.cost-total-row { padding: 16px 0; }
.cost-total-row > span { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #607264; }
.cost-total-row > span svg { width: 17px; height: 17px; }
.cost-total-row strong { display: flex; align-items: baseline; gap: 9px; color: #364c3c; margin: 10px 0 9px; font-size: 34px; line-height: 1.2; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cost-total-row strong small { color: #7b8b7b; font-size: 11px; white-space: nowrap; font-weight: 400; }
.cost-total-row strong output { min-width: 0; overflow-wrap: anywhere; }
.cost-total-row > p { font-size: 10px; line-height: 1.7; color: #7e8d81; margin: 8px 0 0; }
.cost-bar { width: 100%; height: 8px; background: #dde4dc; overflow: hidden; }
.cost-bar i { display: block; height: 100%; width: 0; transition: width .25s ease; }
.cost-gas .cost-bar i { background: #929b99; }
.cost-hp .cost-bar i { background: #cba038; }
.cost-difference { display: grid; grid-template-columns: 1fr auto; gap: 7px 10px; padding: 17px 0; border-block: 1px solid #d0dccf; margin: 8px 0 17px; }
.cost-difference > span { font-size: 11px; line-height: 1.8; color: #667b69; }
.cost-difference strong { font-size: 19px; color: #3e7a61; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cost-difference small { grid-column: 1 / -1; color: #899888; font-size: 10px; overflow-wrap: anywhere; }
.cost-more-expensive strong { color: #b0573f; }
.cost-quick-warning { font-size: 10px; line-height: 1.85; color: #97714a; margin: 0 0 12px; }
.cost-breakdown > div { display: grid; grid-template-columns: 1.1fr 1fr 1fr; align-items: start; gap: 10px; font-size: 11px; line-height: 1.8; padding: 7px 0; color: #6b7e6d; }
.cost-breakdown output, .cost-breakdown b { text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cost-breakdown > div:first-child { color: #84957f; border-bottom: 1px solid #d5ded1; font-size: 10px; }
.cost-breakdown b { font-weight: 500; }
.cost-result-caption { color: #879481; font-size: 10px; line-height: 1.85; margin: 16px 0 0; }
.cost-actions { display: flex; align-items: center; gap: 10px; padding-top: 16px; flex-wrap: wrap; }
.cost-actions .icon-button { width: 34px; height: 34px; min-height: 34px; border: 1px solid #d5ded3; border-radius: 4px; background: #fff; color: #6c7d6b; }
.cost-actions .icon-button:hover { color: #345a44; border-color: #759681; }
.cost-actions .icon-button:disabled { opacity: .4; cursor: not-allowed; }
.cost-actions svg { width: 16px; height: 16px; }
.cost-advanced { margin-top: 36px; border-top: 1px solid #d4dfd6; }
.cost-calculator details { border-bottom: 1px solid #d4dfd6; padding: 0; }
.cost-calculator summary { display: flex; align-items: center; gap: 10px; min-height: 68px; cursor: pointer; font-size: 13px; color: #476451; padding: 16px 0; list-style: none; }
.cost-calculator summary::-webkit-details-marker { display: none; }
.cost-calculator summary > svg { width: 19px; height: 19px; flex-shrink: 0; color: #7d9583; }
.cost-calculator summary > span { margin-left: auto; text-align: right; color: #8e9e8e; font-size: 11px; }
.cost-calculator summary::after { content: "+"; font-size: 20px; color: #7a8f7b; width: 20px; text-align: center; margin-left: auto; flex-shrink: 0; }
.cost-calculator details[open] > summary::after { content: "-"; }
.cost-switch { display: flex; align-items: center; gap: 10px; color: #556e58; font-size: 12px; line-height: 1.7; min-height: 44px; margin: 0 0 14px; cursor: pointer; }
.cost-switch input { width: 17px; height: 17px; flex-shrink: 0; padding: 0; margin: 0; accent-color: #4e8969; }
.cost-season-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 36px; }
.cost-season-list > section { border-top: 1px solid #dce4db; padding-top: 16px; }
.cost-calculator h6 { font-size: 12px; color: #54715a; line-height: 1.8; margin: 8px 0 20px; font-weight: 600; }
.cost-systems { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.cost-systems > section { min-width: 0; }
.cost-systems > section + section { padding-left: 28px; border-left: 1px solid #dce4db; }
.cost-calculator fieldset { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
.cost-calculator legend { font-size: 12px; font-weight: 600; color: #7b907d; padding: 16px 0; border-top: 1px solid #dce4db; width: 100%; }
.cost-shared { max-width: 650px; margin-bottom: 28px; }
.cost-audit-output { min-width: 0; }
.cost-table-scroll { overflow: auto; margin-bottom: 26px; }
.cost-calculator table { width: 100%; border-collapse: collapse; font-size: 11px; color: #647b65; margin: 0; }
.cost-calculator caption { font-size: 13px; color: #435d49; padding: 0 0 14px; text-align: left; font-weight: 600; }
.cost-calculator th, .cost-calculator td { padding: 10px 12px; border-bottom: 1px solid #dce4db; text-align: right; white-space: nowrap; font-weight: 400; }
.cost-calculator th:first-child { text-align: left; }
.cost-calculator thead th { color: #435d49; background: #eef3ee; }
.cost-calculator tbody th { white-space: normal; min-width: 140px; }
.cost-method { max-width: 900px; padding-bottom: 12px; }
.cost-method p, .cost-method a { font-size: 11px; line-height: 1.9; color: #839381; }
.cost-method a { display: inline-flex; gap: 8px; align-items: center; color: #4b7a60; }
.cost-method a svg { width: 14px; height: 14px; }
.cost-warnings { padding: 12px 22px; color: #97714a; background: #faf4e6; font-size: 11px; line-height: 1.9; }
.cost-footline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 22px; }
.cost-footline > span { font-size: 10px; line-height: 1.9; color: #8c9b88; max-width: 100%; }
.cost-footline > span:first-child { display: flex; align-items: start; gap: 7px; }
.cost-footline svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }
@media (max-width: 1100px) {
  .cost-top { gap: 28px; }
  .cost-results { padding: 23px; }
  .cost-field-grid { gap: 14px; }
}
@media (max-width: 800px) {
  .cost-top { grid-template-columns: 1fr; }
  .cost-heading { align-items: start; flex-direction: column; gap: 15px; }
  .cost-systems, .cost-season-list { grid-template-columns: 1fr; }
  .cost-systems > section + section { padding-left: 0; padding-top: 22px; border-left: 0; border-top: 1px solid #dce4db; }
  .cost-calculator summary > span { display: none; }
  .cost-heading h4 { font-size: 25px; }
  .cost-calculator { padding-top: 28px; }
}
@media (max-width: 390px) {
  .cost-form-heading { align-items: start; flex-direction: column; gap: 4px; }
  .cost-results { padding: 20px 16px; }
  .cost-field-grid { gap: 12px; }
  .cost-input > span { margin-right: 7px; font-size: 9px; }
  .cost-calculator .cost-input input { padding-left: 9px; font-size: 14px; }
  .cost-total-row strong { font-size: 30px; }
  .cost-difference { grid-template-columns: 1fr; }
  .cost-breakdown > div { gap: 6px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .cost-bar i { transition: none; } }
