:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  color: #171a18;
  background: #f6f6f4;
  font-synthesis: none;
  --ink: #171a18;
  --muted: #626760;
  --line: #e0e3dc;
  --paper: #fff;
  --radius: 24px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  min-height: 44px;
  border: 0;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #396d56;
  outline-offset: 4px;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button,
.panel,
.cost-card {
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
button:hover {
  filter: brightness(0.94);
}
.topbar {
  max-width: 1160px;
  margin: auto;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 3px;
  line-height: 1.1;
  flex: none;
}
.brand img {
  filter: invert(1);
  object-fit: contain;
}
.brand-sub {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  margin-top: 5px;
}
.top-label {
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--muted);
  text-align: center;
}
.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.quiet {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 10px 18px;
  font-size: 13px;
}
.primary,
.secondary {
  border-radius: 100px;
  font-weight: 600;
  padding: 12px 22px;
  font-size: 14px;
}
.primary {
  background: var(--ink);
  color: #fff;
}
.primary span {
  margin-left: 8px;
}
.secondary {
  background: #fff;
  border: 1px solid #d8ddd4;
  color: var(--ink);
}
main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
}
.intro {
  padding: 55px 0 44px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(38px, 5.7vw, 64px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -2.5px;
  margin: 0 0 24px;
}
h2 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 0;
  font-weight: 600;
}
h3 {
  font-size: 17px;
  letter-spacing: -0.3px;
  margin: 0 0 5px;
  font-weight: 600;
}
p {
  margin-top: 0;
}
.lede {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.section-head .eyebrow {
  margin-bottom: 8px;
}
.utility-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 28px;
}
.field-title,
label {
  font-size: 12px;
  font-weight: 600;
  color: #50554f;
  display: block;
}
label small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  color: #626760;
  margin-top: 8px;
}
.segmented {
  display: flex;
  background: #f1f3ee;
  border-radius: 100px;
  padding: 4px;
  gap: 4px;
}
.segmented button {
  border-radius: 100px;
  background: transparent;
  padding: 8px 18px;
  min-width: 110px;
}
.segmented button[aria-pressed="true"] {
  background: #fff;
  box-shadow: 0 1px 5px #00000013;
}
.segmented img {
  width: 90px;
  height: 27px;
  object-fit: contain;
}
.segmented.small button {
  min-width: 0;
  font-size: 12px;
  padding: 8px 15px;
  min-height: 36px;
}
.three-fields,
.two-fields {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
}
.three-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.two-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
input:not([type="checkbox"]):not([type="range"]),
select,
textarea {
  width: 100%;
  min-width: 0;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid #d8ddd4;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  min-height: 46px;
  font-size: 16px;
}
select {
  padding-right: 24px;
}
.input-wrap {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #bbc2b8;
  margin: 10px 0 0;
  gap: 5px;
}
.input-wrap input:not([type="range"]) {
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 32px;
  letter-spacing: -1px;
  padding: 4px 2px;
  margin: 0;
  width: 100%;
  appearance: textfield;
  min-height: 49px;
}
.input-wrap input::-webkit-inner-spin-button {
  appearance: none;
}
.input-wrap > span {
  color: #8a9186;
  font-size: 17px;
  white-space: nowrap;
}
.input-wrap > span:last-child {
  font-size: 11px;
}
.money-fields {
  margin-bottom: 32px;
}
.details {
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.details summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px 20px 0;
  position: relative;
  font-weight: 600;
  font-size: 13px;
  min-height: 48px;
}
.details summary:after {
  content: "+";
  position: absolute;
  right: 0;
  top: 17px;
  font-size: 20px;
  font-weight: 400;
}
.details[open] > summary:after {
  content: "−";
}
.details summary span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 3px;
}
.details-body {
  padding: 4px 0 16px;
}
.details-body > label {
  margin-bottom: 20px;
}
.helper,
.fine {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.subdetails {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  margin-bottom: 16px;
}
.subdetails summary {
  font-size: 13px;
  padding: 10px 0;
  cursor: pointer;
}
.subdetails .three-fields {
  margin-top: 12px;
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.6;
  font-size: 13px;
  cursor: pointer;
}
.check input {
  width: 20px;
  height: 20px;
  accent-color: #171a18;
  flex: none;
  margin: 0;
}
.form-error {
  color: #9e3525;
  padding: 12px 0;
  margin: 0;
  font-size: 14px;
}
.empty-state {
  text-align: center;
  padding: 46px 16px 68px;
}
.empty-state h2 {
  font-size: 24px;
  margin: 15px 0;
}
.empty-state p {
  font-size: 14px;
  color: var(--muted);
}
.empty-mark {
  display: inline-flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8ddd4;
  border-radius: 50%;
  font-size: 24px;
}
.badge {
  font-size: 10px;
  padding: 6px 10px;
  background: #f1f3ee;
  border-radius: 100px;
  white-space: nowrap;
  color: var(--muted);
}
.compare-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cost-card {
  border-radius: 18px;
  padding: 24px;
  background: #f5f6f3;
  min-width: 0;
}
.solar-card {
  background: #202922;
  color: #fff;
}
.card-label {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.legend-dot {
  height: 7px;
  width: 7px;
  border-radius: 100%;
  display: inline-block;
  flex: none;
}
.utility-dot {
  background: #989f90;
}
.solar-dot {
  background: #d4e8ce;
}
.cost {
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -2px;
  line-height: 1.1;
  margin: 17px 0 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.cost-caption,
.cost-breakdown {
  font-size: 11px;
  opacity: 0.75;
  margin: 0;
}
.cost-breakdown {
  margin-top: 6px;
}
.timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 32px 0 6px;
}
.timeline-head .eyebrow {
  font-size: 9px;
}
.timeline-head h3 {
  font-size: 27px;
  letter-spacing: -1px;
}
.chart-wrap {
  width: 100%;
  margin: 0 0 7px;
  overflow: hidden;
}
.chart-wrap svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.chart-line {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.utility-line {
  stroke: #9da393;
}
.solar-line {
  stroke: #233b2a;
}
.alternative-line {
  stroke: #b28b53;
  stroke-dasharray: 6 6;
  stroke-width: 2;
}
.area {
  fill: #e9ede454;
}
.cursor-line {
  stroke: #aab1a4;
  stroke-dasharray: 4 4;
  stroke-width: 1;
}
.utility-point {
  fill: #9da393;
  stroke: white;
  stroke-width: 3;
}
.solar-point {
  fill: #233b2a;
  stroke: white;
  stroke-width: 3;
}
.chart-grid {
  stroke: #e8ebe5;
  stroke-width: 1;
}
.chart-label {
  font-size: 12px;
  fill: #747c70;
  font-family: inherit;
}
.range {
  width: 100%;
  margin: 10px 0;
  accent-color: #233b2a;
  height: 30px;
  cursor: pointer;
  background: transparent;
  touch-action: pan-y;
  appearance: none;
}
.range::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 10px;
  background: linear-gradient(
    to right,
    #233b2a 0%,
    #233b2a var(--progress, 20%),
    #dde2d8 var(--progress, 20%),
    #dde2d8 100%
  );
}
.range::-webkit-slider-thumb {
  appearance: none;
  height: 25px;
  width: 25px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid #233b2a;
  margin-top: -10px;
  box-shadow: 0 2px 6px #0002;
}
.range::-moz-range-track {
  height: 5px;
  border-radius: 10px;
  background: #d9dfd3;
}
.range::-moz-range-progress {
  height: 5px;
  background: #233b2a;
}
.range::-moz-range-thumb {
  height: 16px;
  width: 16px;
  border: 5px solid #233b2a;
  background: white;
  border-radius: 50%;
}
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.year-insight {
  padding: 20px 0;
  text-align: center;
  min-height: 63px;
  font-size: 14px;
}
.scenario {
  padding: 22px;
  background: #f6f7f3;
  border-radius: 16px;
  margin: 6px 0 28px;
}
.scenario-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.scenario-top h3 {
  font-size: 14px;
}
.scenario-top p {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0 0;
}
.scenario output {
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.scenario-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}
.scenario-presets button {
  min-height: 36px;
  font-size: 11px;
  background: #fff;
  border: 1px solid #d8ded3;
  border-radius: 100px;
  padding: 8px 13px;
}
.scenario-presets button[aria-pressed="true"] {
  background: #233b2a;
  color: #fff;
  border-color: #233b2a;
}
.summary-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 28px 0 14px;
}
.savings {
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -1.5px;
  margin: 0 0 6px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
#savingsContext {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.totals {
  padding-top: 10px;
}
.totals p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  margin: 0 0 14px;
}
.totals span {
  color: var(--muted);
}
.totals strong {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.table-scroll {
  overflow: auto;
  margin: 0 -8px;
  padding: 0 8px 16px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  white-space: nowrap;
  text-align: right;
}
th,
td {
  padding: 12px;
  border-bottom: 1px solid #edf0e9;
  font-variant-numeric: tabular-nums;
}
th {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
}
th:first-child,
td:first-child {
  text-align: left;
}
tr.selected {
  background: #f0f4eb;
}
.section-intro {
  color: var(--muted);
  font-size: 14px;
  max-width: 680px;
  margin-bottom: 26px;
}
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.partner {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px;
  min-width: 0;
}
.partner .eyebrow {
  font-size: 8px;
  letter-spacing: 1.4px;
  min-height: 12px;
  margin: 0 0 16px;
}
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 54px;
  margin-bottom: 20px;
  max-width: 100%;
}
.partner-logo img {
  max-width: 100%;
  max-height: 50px;
  object-fit: contain;
  display: block;
}
.partner-logo.dark {
  background: #19211b;
  border-radius: 8px;
  padding: 12px;
  justify-content: center;
}
.partner-logo .brand {
  font-size: 14px;
  letter-spacing: 2px;
  gap: 6px;
}
.partner-logo .brand img {
  width: 25px;
}
.partner h3 {
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.partner p {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin: 10px 0;
}
.partner a {
  font-size: 10px;
}
.equipment-summary,
.recommendation-summary {
  background: #f6f7f3;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  font-size: 13px;
}
.equipment-summary p,
.recommendation-summary p {
  margin: 8px 0 0;
  white-space: pre-line;
}
.rate-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  background: #f6f7f3;
  border-radius: 16px;
  padding: 24px;
}
.rate-card h3 {
  font-size: 15px;
}
.rate-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
}
.rate-value {
  font-size: 28px;
  letter-spacing: -1px;
  white-space: nowrap;
}
.rate-value small {
  display: block;
  font-size: 11px;
  letter-spacing: 0;
}
.rate-status {
  display: inline-block;
  font-size: 10px;
  border: 1px solid #cbd4c4;
  border-radius: 100px;
  padding: 4px 8px;
  margin-bottom: 10px;
}
.rate-status.warning {
  border-color: #c9ae7c;
  background: #fff7e8;
}
.rate-card a {
  font-size: 12px;
}
.outlook {
  padding: 24px 0 10px;
}
.outlook p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.outlook a {
  font-size: 12px;
}
.source-list {
  font-size: 12px;
}
.source-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.source-item p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 11px;
}
.next-step {
  padding: 42px 0 50px;
  max-width: 680px;
  margin: auto;
  text-align: center;
}
.next-step h2 {
  font-size: 42px;
  letter-spacing: -1.5px;
  margin: 0 0 20px;
}
.next-step > p:not(.eyebrow) {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}
.next-path {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 28px 0;
  font-size: 11px;
}
.next-path span {
  display: flex;
  gap: 7px;
  align-items: center;
}
.next-path b {
  display: inline-flex;
  border: 1px solid #bcc6b4;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 10px;
  flex: none;
}
.next-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}
footer > span {
  white-space: nowrap;
}
footer p {
  max-width: 400px;
}
.notice {
  border: 1px solid #bdcdb2;
  background: #edf3e7;
  border-radius: 14px;
  padding: 18px 20px;
  font-size: 13px;
  margin: 18px 0 0;
}
.notice.error {
  background: #fff2eb;
  border-color: #d3b39d;
}
.issued .intro {
  padding-top: 35px;
}
.issued #editor,
.issued #scenarioControls input,
.issued .scenario-presets button,
.issued #refreshRates {
  display: none !important;
}
.issued .scenario {
  margin-top: 8px;
}
.issued .range-labels:has(+ .scenario-presets) {
  display: none;
}
.presenting .editor,
.presenting #exampleBadge {
  display: none;
}
.presenting .intro {
  padding-top: 20px;
}
.presenting h1 {
  font-size: 42px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  max-width: 540px;
  width: calc(100% - 32px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  color: var(--ink);
  box-shadow: 0 24px 100px #1113;
}
dialog::backdrop {
  background: #0b110d70;
  backdrop-filter: blur(4px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.dialog-head h2 {
  font-size: 27px;
}
.icon-button {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  min-height: 40px;
  background: #f2f4ee;
  font-size: 25px;
  flex: none;
}
dialog > p {
  font-size: 13px;
  color: var(--muted);
}
dialog .check {
  margin: 20px 0;
}
.wide {
  width: 100%;
  margin-top: 12px;
}
.save-downloads {
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
}
.save-downloads button {
  flex: 1;
  padding: 12px;
  font-size: 12px;
}
#saveStatus {
  font-size: 13px;
  margin: 16px 0;
  white-space: pre-line;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  background: #19211b;
  color: white;
  border-radius: 100px;
  font-size: 13px;
  max-width: 90%;
  z-index: 20;
  box-shadow: 0 8px 25px #0002;
}
.sr-only,
.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  width: auto;
  height: auto;
  clip: auto;
  top: 8px;
  left: 8px;
  padding: 10px;
  background: white;
  z-index: 99;
}
[hidden] {
  display: none !important;
}
.report-enter {
  animation: appear 0.5s ease both;
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 760px) {
  .topbar {
    padding: 20px;
    gap: 12px;
  }
  .top-label {
    display: none;
  }
  main {
    padding: 0 20px;
  }
  .intro {
    padding: 36px 0;
  }
  .panel {
    padding: 24px;
    border-radius: 20px;
  }
  .partner-grid {
    grid-template-columns: 1fr;
  }
  .partner {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 0 18px;
  }
  .partner > .eyebrow {
    grid-column: 1/-1;
  }
  .partner-logo {
    grid-column: 1;
    grid-row: 2/5;
    align-self: start;
  }
  .partner h3,
  .partner p,
  .partner > a {
    grid-column: 2;
  }
  .partner p {
    margin-top: 4px;
  }
  .three-fields {
    gap: 14px;
  }
  .money-fields .input-wrap input:not([type="range"]) {
    font-size: 28px;
  }
  .money-fields label {
    font-size: 11px;
  }
  .money-fields label small {
    font-size: 10px;
  }
  .rate-card {
    padding: 20px;
  }
  .section-head {
    gap: 12px;
  }
  .section-head .quiet {
    padding: 8px 12px;
    font-size: 11px;
  }
  .next-path {
    gap: 14px;
  }
  .top-actions .quiet {
    padding: 9px 13px;
  }
}
@media (max-width: 520px) {
  .topbar {
    padding: 17px 16px;
  }
  .brand {
    font-size: 14px;
    letter-spacing: 2px;
  }
  .brand img {
    width: 26px;
    height: 26px;
  }
  .brand-sub {
    font-size: 8px;
    letter-spacing: 1.3px;
  }
  .top-actions {
    gap: 6px;
  }
  .top-actions .primary {
    padding: 10px 14px;
    font-size: 12px;
  }
  .top-actions .quiet {
    font-size: 11px;
    padding: 8px 12px;
  }
  main {
    padding: 0 14px;
  }
  .intro {
    padding: 32px 6px;
  }
  h1 {
    letter-spacing: -1.7px;
    font-size: 41px;
  }
  .lede {
    font-size: 15px;
  }
  .panel {
    padding: 22px 18px;
    border-radius: 18px;
    margin-bottom: 16px;
  }
  .section-head {
    margin-bottom: 24px;
    align-items: flex-start;
  }
  .section-head h2 {
    font-size: 25px;
  }
  .section-head .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  .section-head .quiet {
    font-size: 10px;
  }
  .utility-row {
    display: block;
    margin-bottom: 26px;
  }
  .utility-row .field-title {
    margin-bottom: 10px;
  }
  .utility-row .segmented {
    width: fit-content;
  }
  .segmented button {
    padding: 8px 18px;
    min-width: 118px;
  }
  .three-fields,
  .two-fields {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .money-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
  }
  .money-fields label {
    font-size: 10px;
    line-height: 1.4;
  }
  .money-fields label small {
    font-size: 9px;
  }
  .money-fields .input-wrap {
    gap: 1px;
  }
  .money-fields .input-wrap input:not([type="range"]) {
    font-size: 24px;
    letter-spacing: -0.8px;
    min-height: 44px;
    padding: 3px 0;
  }
  .money-fields .input-wrap > span {
    font-size: 11px;
  }
  .money-fields .input-wrap > span:last-child {
    font-size: 8px;
  }
  .cost-card {
    padding: 18px 14px;
    border-radius: 14px;
  }
  .compare-cards {
    gap: 10px;
  }
  .card-label {
    font-size: 10px;
    gap: 5px;
    align-items: flex-start;
    min-height: 28px;
  }
  .legend-dot {
    margin-top: 4px;
    width: 5px;
    height: 5px;
  }
  .cost {
    font-size: 36px;
    letter-spacing: -1.3px;
    margin-top: 8px;
  }
  .cost-caption,
  .cost-breakdown {
    font-size: 9px;
  }
  .timeline-head {
    margin-top: 28px;
  }
  .timeline-head h3 {
    font-size: 24px;
  }
  .segmented.small button {
    padding: 7px 12px;
    font-size: 10px;
  }
  .chart-wrap {
    margin-left: -8px;
    width: calc(100% + 16px);
  }
  .chart-label {
    font-size: 17px;
  }
  .chart-line {
    stroke-width: 4;
  }
  .year-insight {
    font-size: 12px;
    padding: 16px 3px;
  }
  .scenario {
    padding: 17px;
  }
  .scenario-top {
    align-items: flex-start;
    gap: 10px;
  }
  .scenario-top h3 {
    font-size: 13px;
  }
  .scenario-top p {
    font-size: 10px;
    max-width: 180px;
  }
  .scenario output {
    font-size: 15px;
  }
  .scenario-presets {
    gap: 6px;
  }
  .scenario-presets button {
    font-size: 10px;
    padding: 7px 10px;
  }
  .summary-strip {
    grid-template-columns: 1fr;
    gap: 15px;
    padding-top: 24px;
  }
  .summary-strip .eyebrow {
    font-size: 8px;
  }
  .savings {
    font-size: 40px;
  }
  .totals p {
    margin-bottom: 10px;
  }
  .partner {
    grid-template-columns: 95px 1fr;
    padding: 18px;
    gap: 0 14px;
  }
  .partner-logo img {
    max-height: 38px;
  }
  .partner-logo .brand {
    font-size: 10px;
    letter-spacing: 1px;
  }
  .partner-logo .brand img {
    width: 18px;
  }
  .partner-logo .brand-sub {
    font-size: 6px;
  }
  .partner-logo.dark {
    padding: 10px;
  }
  .partner h3 {
    font-size: 13px;
  }
  .partner p {
    font-size: 11px;
  }
  .rate-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .rate-value {
    font-size: 32px;
  }
  .rate-value small {
    display: inline;
    margin-left: 6px;
  }
  .next-step {
    padding: 32px 12px;
  }
  .next-step h2 {
    font-size: 36px;
  }
  .next-step > p:not(.eyebrow) {
    font-size: 13px;
  }
  .next-path {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .next-actions {
    flex-wrap: wrap;
  }
  footer {
    flex-wrap: wrap;
    gap: 10px;
    font-size: 9px;
  }
  footer p {
    order: 3;
    max-width: none;
    width: 100%;
    margin: 0;
  }
  .badge {
    font-size: 8px;
    white-space: normal;
    text-align: center;
    max-width: 85px;
  }
  dialog {
    padding: 24px 20px;
  }
  .save-downloads {
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  body {
    background: white;
    color: black;
    font-size: 11px;
  }
  .topbar {
    padding: 0 0 15px;
    margin: 0;
    max-width: none;
  }
  .top-actions,
  .skip,
  .editor,
  .next-actions,
  .scenario-presets button,
  .range,
  dialog,
  .toast,
  .empty-state,
  #refreshRates,
  .segmented.small {
    display: none !important;
  }
  main {
    padding: 0;
    max-width: none;
  }
  .intro {
    padding: 22px 0;
  }
  .intro h1 {
    font-size: 32px;
    line-height: 1.1;
  }
  .intro br {
    display: none;
  }
  .lede {
    font-size: 12px;
  }
  .panel {
    border: 1px solid #ccc;
    padding: 20px;
    margin: 0 0 16px;
    break-inside: avoid;
    border-radius: 10px;
    box-shadow: none;
  }
  .comparison {
    break-inside: auto;
  }
  .cost-card,
  .solar-card,
  .scenario,
  .rate-card,
  .equipment-summary {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .cost {
    font-size: 32px;
  }
  .chart-wrap {
    max-width: 720px;
    margin: auto;
  }
  .timeline-head {
    margin-top: 20px;
  }
  .details > summary {
    padding: 12px 0;
  }
  .details > summary:after {
    display: none;
  }
  .details-body {
    display: block;
  }
  .table-scroll {
    overflow: visible;
  }
  table {
    font-size: 10px;
  }
  .partner-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .partner {
    display: block;
    padding: 14px;
    break-inside: avoid;
  }
  .partner-logo {
    min-height: 45px;
  }
  .partner-logo.dark {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .partner p {
    font-size: 10px;
  }
  .scenario {
    padding: 16px;
    margin-bottom: 20px;
  }
  .summary-strip {
    padding-top: 20px;
  }
  .year-insight {
    padding: 10px 0;
  }
  .source-list {
    font-size: 10px;
  }
  .source-item {
    break-inside: avoid;
  }
  .next-step {
    padding: 20px 0;
  }
  .next-step h2 {
    font-size: 28px;
  }
  .next-path {
    flex-direction: row;
  }
  .notice {
    padding: 12px;
    font-size: 10px;
  }
  .outlook {
    padding-top: 15px;
  }
  .section-head {
    margin-bottom: 20px;
  }
  .section-head h2 {
    font-size: 24px;
  }
  .rate-card {
    grid-template-columns: 1fr auto;
  }
  footer {
    font-size: 9px;
  }
  a {
    text-decoration: none;
  }
}

.intro h1 {
  max-width: 850px;
}
.program-info {
  margin: 24px 0;
}
.program-info p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.program-info a {
  font-size: 12px;
  display: inline-block;
  margin-bottom: 20px;
}
.equipment-logo {
  max-width: 130px;
  max-height: 36px;
  margin-top: 18px;
}
.saved-plan {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.saved-plan h3 {
  font-size: 15px;
}
.saved-plan p {
  margin: 8px 0;
}
.range {
  min-height: 44px;
}
.segmented.small button,
.scenario-presets button {
  min-height: 44px;
}
@media (max-width: 520px) {
  .top-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .topbar {
    align-items: flex-start;
  }
  .top-actions #savedPlansButton {
    order: 3;
  }
  .intro h1 {
    max-width: 360px;
  }
}

.portal-return {
  font-size: 12px;
  display: inline-block;
  margin-top: 12px;
  color: var(--muted);
}
@media print {
  .portal-return {
    display: none;
  }
}

@media (max-width: 520px) {
  .chart-label {
    font-size: 23px;
  }
}

@media (max-width: 520px) {
  .cost.long-money {
    font-size: clamp(19px, 6.2vw, 28px);
    letter-spacing: -0.8px;
  }
  .savings.long-money {
    font-size: clamp(26px, 7.3vw, 36px);
    letter-spacing: -1px;
  }
}

/* Keep the main comparison legible as a true left and right table. */
.comparison-period {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 0 0 22px;
}
.comparison-period label {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.comparison-period select {
  width: 190px;
  min-height: 48px;
}
.t-chart {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.t-chart .cost-card {
  border-radius: 0;
  container-type: inline-size;
  padding: 26px;
}
.t-chart .utility-card {
  border-right: 1px solid var(--line);
}
.t-chart .card-label {
  min-height: 32px;
  align-items: flex-start;
  font-weight: 600;
}
.t-chart .cost {
  font-size: clamp(14px, calc(100cqw / var(--money-width, 6)), 44px);
  letter-spacing: -1.4px;
  white-space: nowrap;
}
.recurring-line {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #b4bcad50;
}
.recurring-line strong {
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.recurring-line span {
  font-size: 10px;
  opacity: 0.75;
}
.t-chart .cost-breakdown {
  font-size: 10px;
  line-height: 1.6;
  margin-top: 10px;
}
#selectedCostNote {
  margin: -6px 0 20px;
  text-align: center;
}
.example-note {
  padding: 14px 16px;
  margin: 0 0 22px;
  background: #f5f6f0;
  border-radius: 12px;
  font-size: 12px;
  color: var(--muted);
}
.chart-details {
  margin-bottom: 22px;
}
.chart-details .timeline-head {
  margin-top: 24px;
}
.alternative-comparison {
  margin-bottom: 18px;
}
.rate-card {
  grid-template-columns: 1fr;
}
@media (max-width: 520px) {
  .money-fields {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .money-fields label {
    font-size: 12px;
  }
  .money-fields label small {
    font-size: 10px;
  }
  .money-fields .input-wrap {
    gap: 8px;
  }
  .money-fields .input-wrap input:not([type="range"]) {
    font-size: 28px;
  }
  .money-fields .input-wrap > span,
  .money-fields .input-wrap > span:last-child {
    font-size: 13px;
  }
  .comparison-period {
    align-items: flex-start;
    gap: 12px;
  }
  .comparison-period label {
    max-width: 145px;
    line-height: 1.5;
    padding-top: 5px;
    font-size: 11px;
  }
  .comparison-period select {
    width: 145px;
    min-width: 0;
    font-size: 13px;
  }
  .t-chart .cost-card {
    padding: 18px 13px;
  }
  .t-chart .card-label {
    min-height: 35px;
    font-size: 11px;
    line-height: 1.45;
  }
  .t-chart .cost {
    letter-spacing: -0.65px;
  }
  .recurring-line {
    margin-top: 18px;
    padding-top: 13px;
  }
  .recurring-line strong {
    font-size: 11px;
  }
  .recurring-line span,
  .t-chart .cost-breakdown {
    font-size: 9px;
  }
  #selectedCostNote {
    font-size: 10px;
    line-height: 1.6;
  }
}

.utility-assumptions {
  margin-bottom: 18px;
}
.utility-assumptions .scenario {
  margin: 18px 0 0;
}
.utility-assumptions .scenario-top p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.historical-input {
  margin: 0 0 24px;
}
.historical-input small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  margin-top: 6px;
  display: block;
}
.bill-history {
  margin-bottom: 24px;
}
.history-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 26px 0 20px;
}
.history-grid > div {
  padding: 0 22px;
  border-left: 1px solid var(--line);
  min-width: 0;
}
.history-grid > div:first-child {
  border: 0;
  padding-left: 0;
}
.history-grid strong {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 500;
  letter-spacing: -0.7px;
  font-variant-numeric: tabular-nums;
}
.history-grid p:not(.eyebrow) {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.55;
  margin: 10px 0 0;
}
.history-grid .eyebrow {
  margin-bottom: 10px;
}
@media (max-width: 520px) {
  .history-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 22px;
  }
  .history-grid > div {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 18px 0 0;
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 4px 14px;
  }
  .history-grid > div:first-child {
    padding-top: 0;
  }
  .history-grid .eyebrow {
    margin: 7px 0 0;
    grid-row: 1 / 3;
  }
  .history-grid strong {
    font-size: 25px;
  }
  .history-grid p:not(.eyebrow) {
    margin: 0;
  }
}

.lead-context { margin-bottom: 24px; }
.lead-context > p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.7; }
.lead-context .secondary { margin-top: 8px; }
input[readonly] { background: #f3f5ef; color: var(--muted); }
.saved-plan > a { display: inline-flex; margin: 8px 12px 0 0; text-decoration: none; }
