.planner-page {
  background: var(--paper);
}

.planner-page .main-nav .active {
  color: var(--lime);
}

.planner-page select {
  color-scheme: light;
  font: inherit;
}

.planner-hero {
  padding: 168px 0 92px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.planner-hero-grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 90px;
  align-items: end;
}

.planner-hero h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(52px, 6.4vw, 86px);
}

.planner-hero-copy {
  max-width: 680px;
  margin: 0 0 38px;
  color: rgba(255, 255, 255, .66);
  font-size: 18px;
}

.planner-proof {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.planner-proof article {
  display: grid;
  grid-template-columns: 138px 1fr;
  gap: 24px;
  align-items: center;
  padding: 25px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.planner-proof strong {
  color: var(--lime);
  font: 700 19px "Manrope", sans-serif;
}

.planner-proof span {
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
}

.planner-section {
  padding: 105px 0 118px;
  background: var(--cream);
}

.planner-heading {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  align-items: end;
  margin-bottom: 48px;
}

.planner-heading h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.06;
  letter-spacing: -2.6px;
}

.planner-heading > p {
  max-width: 330px;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 14px;
}

.planner-progress {
  position: sticky;
  top: 68px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-bottom: 20px;
  border: 1px solid #ced6d1;
  background: var(--paper);
  box-shadow: 0 9px 22px rgba(17, 28, 35, .06);
}

.planner-progress button {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 10px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: #8a9490;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.planner-progress button:last-child {
  border-right: 0;
}

.planner-progress button span {
  color: #a8b0ac;
  font: 700 10px "Manrope", sans-serif;
}

.planner-progress button[aria-current="step"] {
  background: var(--ink);
  color: white;
}

.planner-progress button[aria-current="step"] span,
.planner-progress button.is-complete span {
  color: var(--lime);
}

.planner-progress button.is-complete {
  color: var(--ink);
}

.planner-progress button:disabled {
  cursor: default;
}

.planner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  grid-template-areas: "form pulse";
  gap: 20px;
  align-items: start;
}

.planner-form {
  grid-area: form;
  min-width: 0;
  border: 1px solid #ced6d1;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 8px 8px 0 #dfe4dd;
}

.planner-step {
  padding: 48px;
}

.planner-step[hidden] {
  display: none;
}

.step-kicker {
  margin-bottom: 10px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.planner-step > h3,
.results-heading h3 {
  max-width: 720px;
  margin-bottom: 13px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.13;
  letter-spacing: -1.7px;
}

.step-intro {
  max-width: 720px;
  margin: 0 0 38px;
  color: var(--muted);
}

.planner-fieldset {
  margin: 0 0 38px;
  padding: 0;
  border: 0;
}

.planner-fieldset legend,
.field-label {
  display: block;
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 700;
}

.choice-grid {
  display: grid;
  gap: 12px;
}

.choice-grid-two {
  grid-template-columns: repeat(2, 1fr);
}

.choice-grid-three {
  grid-template-columns: repeat(3, 1fr);
}

.property-grid {
  grid-template-columns: repeat(6, 1fr);
}

.property-grid .choice-card {
  grid-column: span 2;
}

.property-grid .choice-card:nth-last-child(-n+2) {
  grid-column: span 3;
}

.choice-card {
  position: relative;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.choice-card:hover {
  transform: translateY(-2px);
  border-color: #aebdb5;
}

.choice-card:has(input:checked) {
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
  background: #f1f7f4;
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card:has(input:focus-visible) {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.choice-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 5px;
  background: var(--green-light);
  color: var(--green);
  font: 700 13px "Manrope", sans-serif;
}

.choice-card strong {
  margin-bottom: 5px;
  font: 700 15px "Manrope", sans-serif;
}

.choice-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.choice-card.compact {
  min-height: 162px;
}

.technology-card {
  min-height: 230px;
}

.technology-card em {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--lime);
  color: var(--ink);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.planner-input-grid {
  margin-top: 4px;
}

.planner-page .field select,
.planner-page .field input,
.catalog-search input,
.currency-input,
.routine-control input,
.routine-control select,
.handoff-form input,
.custom-appliance-dialog input,
.custom-appliance-dialog select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: white;
  color: var(--ink);
}

.planner-page .field select,
.planner-page .field input,
.catalog-search input,
.routine-control input,
.routine-control select,
.handoff-form input,
.custom-appliance-dialog input,
.custom-appliance-dialog select {
  padding: 0 14px;
}

.planner-page input:focus-visible,
.planner-page select:focus-visible,
.planner-page button:focus-visible,
.planner-page dialog:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px white, 0 0 0 5px var(--green);
}

.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.step-actions-end {
  justify-content: flex-end;
}

.secondary-button,
.text-button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.text-button {
  min-height: auto;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--green);
}

.secondary-button:hover {
  border-color: var(--green);
}

.preset-panel {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  align-items: center;
  margin-bottom: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--lime);
  background: white;
}

.preset-panel > div:first-child {
  display: flex;
  flex-direction: column;
}

.preset-panel small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.preset-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-list button,
.category-tabs button,
.budget-chips button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.preset-list button:hover,
.category-tabs button:hover,
.category-tabs button[aria-pressed="true"],
.budget-chips button:hover,
.budget-chips button.is-active {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 16px;
}

.catalog-search input {
  min-height: 52px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 14px;
  scrollbar-width: thin;
}

.category-tabs button {
  flex: 0 0 auto;
}

.catalog-status {
  min-height: 22px;
  margin: 3px 0 9px;
  color: var(--muted);
  font-size: 12px;
}

.appliance-catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-height: 610px;
  overflow: auto;
  padding: 2px 4px 4px 2px;
}

.appliance-card {
  position: relative;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.appliance-card.is-selected {
  border-color: var(--green);
  background: #f1f7f4;
  box-shadow: inset 0 0 0 1px var(--green);
}

.appliance-card-mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  border-radius: 5px;
  background: var(--green-light);
  color: var(--green);
  font: 700 10px "Manrope", sans-serif;
  letter-spacing: .5px;
}

.appliance-card strong {
  margin-bottom: 4px;
  font: 700 14px/1.3 "Manrope", sans-serif;
}

.appliance-card small {
  color: var(--muted);
  font-size: 11px;
}

.appliance-card button {
  width: 100%;
  min-height: 36px;
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.appliance-card.is-selected button {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.selected-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 7px;
  background: var(--ink);
  color: white;
}

.selected-strip > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.selected-strip span {
  color: var(--lime);
  font: 700 21px "Manrope", sans-serif;
}

.selected-strip small {
  color: rgba(255, 255, 255, .58);
}

.selected-strip .text-button {
  color: var(--lime);
}

.routine-list {
  display: grid;
  gap: 10px;
}

.usage-principle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  margin: -10px 0 24px;
  padding: 16px 18px;
  border-left: 3px solid var(--green);
  background: #f0f4f2;
}

.usage-principle span {
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.usage-principle p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.routine-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.routine-card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.routine-card-title {
  display: flex;
  align-items: center;
  gap: 11px;
}

.routine-card-title > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: var(--green-light);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}

.routine-card-title strong {
  display: block;
  font: 700 14px "Manrope", sans-serif;
}

.routine-card-title small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.remove-load {
  min-width: 36px;
  min-height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f2eeea;
  color: #8b534b;
  cursor: pointer;
}

.routine-controls {
  display: grid;
  grid-template-columns: .75fr 1.35fr 1fr 1fr;
  gap: 10px;
  padding: 16px 18px 18px;
}

.routine-control {
  min-width: 0;
}

.routine-control > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.outage-usage-control {
  padding: 10px;
  border: 1px solid #cddbd4;
  border-radius: 6px;
  background: #f1f6f3;
}

.outage-usage-control small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.quantity-control {
  display: grid;
  grid-template-columns: 35px 1fr 35px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.quantity-control button {
  border: 0;
  background: var(--paper);
  color: var(--green);
  font-weight: 700;
  cursor: pointer;
}

.quantity-control output {
  min-height: 48px;
  display: grid;
  place-items: center;
  border-inline: 1px solid var(--line);
  background: white;
  font-weight: 700;
}

.exact-watts-toggle {
  width: 100%;
  padding: 0 18px 16px;
}

.exact-watts-toggle summary {
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.exact-watts-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.exact-watts-row input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.exact-watts-row span {
  color: var(--muted);
  font-size: 12px;
}

.backup-panel {
  margin-top: 30px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf4f1;
}

.backup-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
}

.backup-copy .field-label {
  margin: 0;
}

.backup-copy strong {
  color: var(--green);
  font: 700 21px "Manrope", sans-serif;
}

.backup-copy p {
  grid-column: 1 / -1;
  margin: 5px 0 18px;
  color: var(--muted);
  font-size: 12px;
}

.backup-panel input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.outage-timing-field {
  display: grid;
  gap: 6px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #cddbd4;
}

.outage-timing-field > span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.outage-timing-field select {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.outage-timing-field small {
  color: var(--muted);
  font-size: 10px;
}

.day-map {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.day-map-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 18px;
}

.day-map-head strong,
.day-map-head small {
  display: block;
}

.day-map-head small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.day-map-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}

.day-dot,
.night-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
}

.day-dot { background: var(--lime); }
.night-dot { background: var(--ink-soft); margin-left: 7px; }

.timeline-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  color: #909994;
  font-size: 9px;
}

.timeline-scale span:last-child { text-align: right; }
.timeline-scale span:not(:first-child):not(:last-child) { text-align: center; }

.day-map-bars {
  position: relative;
  min-height: 80px;
  margin-top: 7px;
  border-block: 1px solid var(--line);
  background: white;
}

.timeline-load {
  position: absolute;
  height: 12px;
  border-radius: 3px;
  background: var(--lime);
}

.timeline-load.night { background: var(--ink-soft); }
.timeline-load.mixed { background: var(--green); }

.priority-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.priority-selector label {
  position: relative;
}

.priority-selector input {
  position: absolute;
  opacity: 0;
}

.priority-selector span {
  min-height: 50px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.priority-selector input:checked + span {
  border-color: var(--green);
  background: #edf4f1;
  color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
}

.preference-checks {
  display: grid;
  gap: 10px;
}

.preference-checks label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  align-items: start;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  cursor: pointer;
}

.preference-checks input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.preference-checks strong,
.preference-checks small {
  display: block;
}

.preference-checks small {
  margin-top: 3px;
  color: var(--muted);
}

.budget-card {
  padding: 30px;
  border-radius: 9px;
  background: var(--ink);
  color: white;
}

.budget-card > label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.budget-card > label small {
  color: rgba(255, 255, 255, .5);
  font-weight: 400;
}

.currency-input {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  overflow: hidden;
  border: 0;
}

.currency-input span {
  padding-left: 18px;
  color: var(--green);
  font: 700 22px "Manrope", sans-serif;
}

.currency-input input {
  min-width: 0;
  border: 0;
  font: 700 22px "Manrope", sans-serif;
}

.budget-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.budget-chips button {
  border-color: rgba(255, 255, 255, .17);
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .72);
}

.budget-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .64);
  font-size: 12px;
}

.budget-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.budget-principles article {
  min-height: 175px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
}

.budget-principles article > span {
  display: block;
  margin-bottom: 29px;
  color: var(--green);
  font: 700 11px "Manrope", sans-serif;
}

.budget-principles strong {
  font: 700 13px "Manrope", sans-serif;
}

.budget-principles p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.system-pulse {
  grid-area: pulse;
  position: sticky;
  top: 154px;
  overflow: hidden;
  border: 1px solid #263a44;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  box-shadow: 8px 8px 0 #dfe4dd;
}

.pulse-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.pulse-head span {
  color: var(--lime);
  font: 700 12px "Manrope", sans-serif;
}

.pulse-head small {
  color: rgba(255, 255, 255, .42);
  font-size: 9px;
}

.pulse-property {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px 14px;
}

.pulse-property > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: rgba(240, 202, 77, .12);
  color: var(--lime);
  font-weight: 700;
}

.pulse-property small,
.pulse-property strong {
  display: block;
}

.pulse-property small {
  color: rgba(255, 255, 255, .4);
  font-size: 9px;
}

.pulse-property strong {
  font: 700 14px "Manrope", sans-serif;
}

.pulse-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 4px 18px 16px;
}

.pulse-stats div {
  min-height: 78px;
  padding: 12px 8px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.pulse-stats div:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, .1);
  padding-left: 0;
}

.pulse-stats strong,
.pulse-stats span {
  display: block;
}

.pulse-stats strong {
  color: var(--lime);
  font: 700 18px "Manrope", sans-serif;
}

.pulse-stats span {
  margin-top: 4px;
  color: rgba(255, 255, 255, .48);
  font-size: 9px;
}

.pulse-load-mix {
  margin: 0 18px;
  padding: 16px 0;
  border-block: 1px solid rgba(255, 255, 255, .1);
}

.pulse-load-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
  font-size: 10px;
}

.pulse-load-head small {
  color: rgba(255, 255, 255, .4);
}

.load-mix-row {
  display: grid;
  grid-template-columns: 64px 1fr 34px;
  gap: 7px;
  align-items: center;
  margin-top: 8px;
  color: rgba(255, 255, 255, .57);
  font-size: 9px;
}

.load-mix-track {
  height: 5px;
  background: rgba(255, 255, 255, .1);
}

.load-mix-track span {
  height: 100%;
  display: block;
  background: var(--lime);
}

.pulse-message {
  margin: 16px 18px 20px;
  padding: 13px;
  border-left: 2px solid var(--lime);
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .61);
  font-size: 10px;
}

.pulse-mobile-toggle {
  display: none;
}

.results-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 25px;
}

.estimate-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid #d6bc55;
  border-radius: 999px;
  background: #fff8dc;
  color: #725d0d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.pricing-status {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin: -8px 0 20px;
  padding: 11px 13px;
  border-left: 3px solid var(--green);
  background: #eef4f1;
  color: #44565f;
  font-size: 10px;
  line-height: 1.5;
}

.pricing-status strong {
  color: var(--ink);
}

.pricing-status.expired {
  border-left-color: #a1372c;
  background: #fff4f1;
  color: #743d37;
}

.result-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 22px;
  border: 1px solid var(--line);
  background: white;
}

.result-basis-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 20px 0 10px;
}

.result-basis-switch button {
  min-height: 90px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.result-basis-switch button.is-active {
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
  background: #eef4f1;
}

.result-basis-switch strong,
.result-basis-switch span {
  display: block;
}

.result-basis-switch strong {
  font: 700 13px "Manrope", sans-serif;
}

.result-basis-switch span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.result-basis-note {
  margin-bottom: 18px;
  padding: 11px 13px;
  border-left: 3px solid var(--green);
  background: #f3f5f2;
  color: #44565f;
  font-size: 10px;
  line-height: 1.5;
}

.result-metric {
  min-height: 104px;
  padding: 19px;
  border-right: 1px solid var(--line);
}

.result-metric:last-child { border-right: 0; }
.result-metric strong, .result-metric span { display: block; }
.result-metric strong { font: 700 20px "Manrope", sans-serif; }
.result-metric span { margin-top: 5px; color: var(--muted); font-size: 10px; }

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.scenario-card {
  position: relative;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.scenario-card.recommended {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.scenario-card.engineering-review {
  border-color: #d3a53a;
}

.scenario-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 42px;
  align-content: start;
}

.scenario-label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 7px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--green);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.recommended .scenario-label { color: var(--lime); }
.scenario-label.review { color: #8a6211; }
.recommended .scenario-label.review { color: #ffd978; }
.scenario-card h4 { margin: 0 0 8px; font: 700 18px/1.2 "Manrope", sans-serif; }
.scenario-summary { min-height: 54px; margin: 0 0 18px; color: var(--muted); font-size: 11px; }
.recommended .scenario-summary { color: rgba(255, 255, 255, .58); }

.scenario-specs {
  display: grid;
  gap: 8px;
  padding-block: 16px;
  border-block: 1px solid var(--line);
}

.recommended .scenario-specs { border-color: rgba(255, 255, 255, .13); }
.scenario-spec { display: flex; justify-content: space-between; gap: 10px; font-size: 10px; }
.scenario-spec span { color: var(--muted); }
.recommended .scenario-spec span { color: rgba(255, 255, 255, .48); }
.scenario-spec strong { text-align: right; font-size: 10px; }

.scenario-price {
  padding-top: 16px;
}

.scenario-price small,
.scenario-price strong { display: block; }
.scenario-price small { color: var(--muted); font-size: 9px; }
.recommended .scenario-price small { color: rgba(255, 255, 255, .48); }
.scenario-price strong { margin-top: 2px; font: 700 16px "Manrope", sans-serif; }
.scenario-budget { margin-top: 9px; color: var(--green); font-size: 9px; font-weight: 700; }
.recommended .scenario-budget { color: var(--lime); }

.scenario-warnings {
  margin: 14px 0 0;
  padding: 12px 12px 12px 26px;
  border: 1px solid #ead9aa;
  border-radius: 5px;
  background: #fffaf0;
  color: #695727;
  font-size: 9px;
  line-height: 1.5;
}

.recommended .scenario-warnings {
  border-color: rgba(255, 217, 120, .28);
  background: rgba(255, 217, 120, .08);
  color: #f4dfaa;
}

.result-warning-panel {
  margin-top: 26px;
  padding: 22px;
  border: 1px solid #d9bf79;
  border-radius: 7px;
  background: #fffaf0;
}

.result-warning-panel h4 {
  margin: 0 0 10px;
  font: 700 15px "Manrope", sans-serif;
}

.result-warning-panel ul {
  margin: 0;
  padding-left: 18px;
  color: #615632;
  font-size: 11px;
  line-height: 1.65;
}

.system-explainer {
  margin-top: 32px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef4f1;
}

.system-explainer-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.system-explainer h4 {
  max-width: 560px;
  margin: 0;
  font: 700 23px/1.25 "Manrope", sans-serif;
}

.energy-flow {
  display: grid;
  grid-template-columns: repeat(7, auto);
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 25px;
}

.energy-node {
  min-width: 104px;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 12px;
  border: 1px solid #cddbd4;
  border-radius: 7px;
  background: white;
  text-align: center;
}

.energy-node span { color: var(--green); font: 700 18px "Manrope", sans-serif; }
.energy-node strong { margin-top: 4px; font-size: 10px; }
.energy-node small { color: var(--muted); font-size: 8px; }
.energy-arrow { color: var(--green); font-weight: 700; }

.result-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.result-detail-grid > section {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.result-detail-grid h4 {
  margin: 0 0 16px;
  font: 700 16px "Manrope", sans-serif;
}

.result-list {
  display: grid;
  gap: 12px;
}

.result-insight {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}

.result-insight span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  font-weight: 700;
}

.survey-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.survey-list li {
  position: relative;
  margin: 10px 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 11px;
}

.survey-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.plan-handoff {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 38px;
  margin-top: 22px;
  padding: 32px;
  border-radius: 9px;
  background: var(--ink);
  color: white;
}

.plan-handoff h4 {
  max-width: 430px;
  margin: 0 0 12px;
  font: 700 27px/1.2 "Manrope", sans-serif;
}

.plan-handoff > div:first-child > p:not(.eyebrow) {
  color: rgba(255, 255, 255, .58);
  font-size: 12px;
}

.handoff-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.handoff-proof span {
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 4px;
  color: rgba(255, 255, 255, .64);
  font-size: 9px;
}

.handoff-form {
  display: grid;
  gap: 10px;
}

.handoff-form label > span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, .68);
  font-size: 10px;
  font-weight: 700;
}

.handoff-form label small { font-weight: 400; }
.handoff-form .secondary-button { border-color: rgba(255, 255, 255, .22); background: transparent; color: white; }
.handoff-error { min-height: 16px; margin: 0; color: #ffb8aa; font-size: 10px; }

.estimate-notice {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #dccf9b;
  border-radius: 6px;
  background: #fff9e6;
  color: #6d6241;
  font-size: 11px;
}

.planner-trust-section {
  padding: 105px 0;
  background: var(--paper);
}

.planner-trust-grid {
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: 100px;
  align-items: end;
}

.planner-trust-grid h2 {
  margin: 0;
  font-size: clamp(39px, 4.7vw, 59px);
  line-height: 1.07;
  letter-spacing: -2.5px;
}

.planner-trust-grid > div:last-child > p {
  color: var(--muted);
  font-size: 15px;
}

.custom-appliance-dialog {
  width: min(520px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 26px 70px rgba(17, 28, 35, .28);
}

.custom-appliance-dialog::backdrop {
  background: rgba(17, 28, 35, .76);
}

.custom-appliance-dialog form {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.dialog-head span {
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.dialog-head h3 { margin: 3px 0 0; font-size: 26px; }
.dialog-head button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--cream); font-size: 22px; cursor: pointer; }
.custom-appliance-dialog label > span { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; }
.dialog-help { margin: 0; color: var(--muted); font-size: 11px; }
.dialog-error { min-height: 16px; margin: -7px 0 0; color: #a1372c; font-size: 11px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 6px; }

.sr-only,
.sr-only:focus:not(:focus-visible) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1080px) {
  .planner-hero-grid { gap: 50px; }
  .planner-layout { grid-template-columns: minmax(0, 1fr) 270px; }
  .planner-step { padding: 38px; }
  .choice-grid-three { grid-template-columns: 1fr; }
  .technology-card { min-height: 150px; }
  .appliance-catalog { grid-template-columns: repeat(2, 1fr); }
  .routine-controls { grid-template-columns: repeat(2, 1fr); }
  .result-metrics { grid-template-columns: repeat(3, 1fr); }
  .scenario-grid { grid-template-columns: 1fr; }
  .scenario-summary { min-height: auto; }
  .energy-flow { grid-template-columns: 1fr; justify-items: stretch; }
  .energy-node { min-height: 70px; }
  .energy-arrow { transform: rotate(90deg); text-align: center; }
}

@media (max-width: 860px) {
  .planner-hero { padding-top: 145px; }
  .planner-hero-grid { grid-template-columns: 1fr; gap: 55px; }
  .planner-proof { grid-template-columns: repeat(3, 1fr); }
  .planner-proof article { display: block; padding: 18px; border: 1px solid rgba(255, 255, 255, .14); }
  .planner-proof span { display: block; margin-top: 7px; }
  .planner-heading { display: block; }
  .planner-heading > p { margin-top: 18px; }
  .planner-progress { top: 64px; overflow-x: auto; grid-template-columns: repeat(6, minmax(122px, 1fr)); }
  .planner-layout { grid-template-columns: 1fr; grid-template-areas: "pulse" "form"; }
  .system-pulse { position: sticky; bottom: 12px; top: auto; z-index: 25; display: grid; grid-template-columns: 1fr auto; align-items: center; border-radius: 8px; }
  .pulse-head, .pulse-property, .pulse-load-mix, .pulse-message { display: none; }
  .pulse-stats { grid-template-columns: repeat(4, auto); padding: 0 14px; }
  .pulse-stats div { min-height: 62px; min-width: 93px; border: 0 !important; padding: 10px 8px !important; }
  .pulse-stats div:nth-child(4) { display: none; }
  .pulse-stats strong { font-size: 14px; }
  .pulse-mobile-toggle { display: block; min-height: 42px; margin-right: 10px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 5px; background: transparent; color: var(--lime); font-size: 10px; font-weight: 700; }
  .system-pulse.is-open { display: block; max-height: min(76vh, 620px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: 8px; }
  .system-pulse.is-open .pulse-head, .system-pulse.is-open .pulse-property, .system-pulse.is-open .pulse-load-mix, .system-pulse.is-open .pulse-message { display: flex; }
  .system-pulse.is-open .pulse-property { display: flex; }
  .system-pulse.is-open .pulse-load-mix { display: block; }
  .system-pulse.is-open .pulse-message { display: block; }
  .system-pulse.is-open .pulse-stats { grid-template-columns: repeat(2, 1fr); }
  .system-pulse.is-open .pulse-stats div:nth-child(4) { display: block; }
  .system-pulse.is-open .pulse-mobile-toggle { width: calc(100% - 36px); margin: 0 18px 10px; }
  .plan-handoff { grid-template-columns: 1fr; }
  .planner-trust-grid { grid-template-columns: 1fr; gap: 35px; }
}

@media (max-width: 680px) {
  .planner-page .container { width: min(100% - 28px, 620px); }
  .planner-hero { padding: 124px 0 68px; }
  .planner-hero h1 { font-size: clamp(43px, 12.6vw, 58px); letter-spacing: -2.7px; }
  .planner-hero-copy { font-size: 16px; }
  .planner-proof { grid-template-columns: 1fr; gap: 8px; }
  .planner-proof article { display: grid; grid-template-columns: 120px 1fr; }
  .planner-section { padding: 72px 0 84px; }
  .planner-heading { margin-bottom: 32px; }
  .planner-heading h2 { font-size: 38px; letter-spacing: -1.9px; }
  .planner-progress { margin-inline: -14px; top: 62px; border-inline: 0; }
  .planner-form { margin-inline: -4px; box-shadow: 4px 4px 0 #dfe4dd; }
  .planner-step { padding: 28px 20px; }
  .step-intro { margin-bottom: 28px; }
  .choice-grid-two, .property-grid, .priority-selector, .budget-principles, .result-metrics, .result-detail-grid, .result-basis-switch { grid-template-columns: 1fr; }
  .property-grid .choice-card, .property-grid .choice-card:nth-last-child(-n+2) { grid-column: auto; }
  .choice-card, .choice-card.compact, .technology-card { min-height: 128px; }
  .choice-mark { margin-bottom: 13px; }
  .planner-input-grid { grid-template-columns: 1fr; }
  .planner-input-grid .field-full { grid-column: auto; }
  .preset-panel { grid-template-columns: 1fr; }
  .catalog-toolbar { grid-template-columns: 1fr; }
  .appliance-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 560px; }
  .appliance-card { min-height: 178px; padding: 14px; }
  .selected-strip { align-items: flex-start; flex-direction: column; }
  .routine-controls { grid-template-columns: 1fr 1fr; }
  .day-map-head { flex-direction: column; }
  .step-actions { align-items: stretch; flex-direction: column-reverse; }
  .step-actions .button, .step-actions .secondary-button { width: 100%; }
  .step-actions-end { flex-direction: column; }
  .result-metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .result-metric:last-child { border-bottom: 0; }
  .system-explainer, .plan-handoff { padding: 22px 18px; }
  .system-explainer-head { align-items: flex-start; flex-direction: column; }
  .results-heading { flex-direction: column; }
  .planner-trust-section { padding: 78px 0; }
  .pulse-stats div { min-width: 86px; }
  .pulse-stats div:nth-child(3) { display: none; }
  .system-pulse.is-open .pulse-stats div:nth-child(3) { display: block; }
}

@media (max-width: 410px) {
  .appliance-catalog { grid-template-columns: 1fr; }
  .routine-controls { grid-template-columns: 1fr; }
  .planner-proof article { grid-template-columns: 100px 1fr; }
  .pulse-stats div { min-width: 82px; }
  .pulse-stats strong { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .choice-card,
  .appliance-card,
  .planner-progress button {
    transition: none;
  }
}

@media print {
  .site-header,
  .planner-hero,
  .planner-heading,
  .planner-progress,
  .system-pulse,
  .planner-trust-section,
  .site-footer,
  .step-actions,
  .print-plan,
  .pulse-mobile-toggle,
  .plan-handoff .button {
    display: none !important;
  }

  body,
  .planner-section,
  .planner-form,
  .planner-step {
    background: white !important;
  }

  .planner-section { padding: 0; }
  .planner-layout { display: block; }
  .planner-form { border: 0; box-shadow: none; }
  .planner-step { display: none !important; padding: 0; }
  .planner-step.results-step { display: block !important; }
  .scenario-grid { grid-template-columns: repeat(3, 1fr); }
  .scenario-card.recommended { color: black; background: white; }
  .scenario-summary, .recommended .scenario-summary, .recommended .scenario-spec span { color: #555; }
  .plan-handoff { color: black; background: white; border: 1px solid #ccc; }
}
