.solar-profile-section {
  --sp-bg: #020705;
  --sp-panel: #06100b;
  --sp-panel-2: #09150f;
  --sp-line: rgba(255, 255, 255, .12);
  --sp-line-strong: rgba(255, 255, 255, .2);
  --sp-green: #6ccb3f;
  --sp-green-bright: #8be457;
  --sp-gold: #ffd222;
  --sp-cyan: #42d4ed;
  --sp-red: #f06463;
  --sp-white: #f7f8ef;
  --sp-muted: #aebbac;
  --sp-dim: #708074;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 96px 0;
  border-top: 1px solid rgba(108, 203, 63, .14);
  border-bottom: 1px solid rgba(255, 210, 34, .12);
  background:
    linear-gradient(180deg, rgba(5, 15, 9, .96), rgba(1, 7, 4, .98)),
    #020705;
  scroll-margin-top: 82px;
}

.solar-profile-section *,
.solar-profile-section *::before,
.solar-profile-section *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

.solar-profile-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .24;
  background-image:
    linear-gradient(rgba(108, 203, 63, .065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 203, 63, .065) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}

.sp-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 42px;
  margin-bottom: 34px;
}

.sp-intro-copy {
  max-width: 790px;
}

.sp-intro h2 {
  max-width: 760px;
  font-size: 44px;
  line-height: 1.08;
  font-weight: 800;
}

.sp-intro p {
  max-width: 710px;
  margin-top: 16px;
  color: var(--sp-muted);
  font-size: 16px;
  line-height: 1.72;
}

.sp-intro-proof {
  min-width: 242px;
  padding: 17px 18px;
  border: 1px solid rgba(66, 212, 237, .26);
  border-radius: 6px;
  background: rgba(3, 13, 9, .88);
}

.sp-intro-proof span,
.sp-intro-proof small {
  display: block;
}

.sp-intro-proof span {
  color: var(--sp-cyan);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.sp-intro-proof strong {
  display: block;
  margin-top: 6px;
  color: var(--sp-white);
  font-size: 18px;
}

.sp-intro-proof small {
  margin-top: 5px;
  color: var(--sp-dim);
  font-size: 10px;
  line-height: 1.45;
}

.sp-tool {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  background: rgba(2, 8, 5, .98);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .52), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.sp-tool::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 8;
  width: var(--sp-progress, 20%);
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--sp-green), var(--sp-gold), var(--sp-cyan));
  box-shadow: 0 0 18px rgba(108, 203, 63, .38);
  transition: width .45s cubic-bezier(.2, .75, .18, 1);
}

.sp-toolbar {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--sp-line);
  background: rgba(3, 11, 7, .97);
}

.sp-profile-state {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.sp-status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--sp-gold);
  box-shadow: 0 0 14px rgba(255, 210, 34, .55);
}

.sp-profile-state[data-state="saved"] .sp-status-dot {
  background: var(--sp-green);
  box-shadow: 0 0 14px rgba(108, 203, 63, .55);
}

.sp-profile-state[data-state="syncing"] .sp-status-dot {
  background: var(--sp-cyan);
  box-shadow: 0 0 14px rgba(53, 211, 255, .55);
}

.sp-profile-state strong,
.sp-profile-state span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-profile-state strong {
  color: var(--sp-white);
  font-size: 13px;
}

.sp-profile-state span {
  margin-top: 3px;
  color: var(--sp-dim);
  font-size: 10px;
}

.sp-toolbar-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.sp-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #111407;
  background: var(--sp-gold);
  font: 800 12px/1 inherit;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease, opacity .2s ease;
}

.sp-button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.sp-button:focus-visible,
.sp-choice:focus-visible,
.sp-step-tab:focus-visible,
.sp-chart-tab:focus-visible,
.sp-icon-button:focus-visible,
.sp-load-option:focus-within,
.sp-field input:focus-visible,
.sp-field select:focus-visible,
.sp-field textarea:focus-visible {
  outline: 2px solid var(--sp-cyan);
  outline-offset: 2px;
}

.sp-button:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.sp-button-secondary {
  color: var(--sp-white);
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .045);
}

.sp-button-secondary:hover:not(:disabled) {
  border-color: rgba(108, 203, 63, .46);
  background: rgba(108, 203, 63, .08);
}

.sp-button-green {
  color: #061006;
  background: var(--sp-green-bright);
}

.sp-icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
  color: var(--sp-muted);
  background: rgba(255, 255, 255, .035);
  font: 800 18px/1 inherit;
  cursor: pointer;
  transition: transform .2s ease, color .2s ease, border-color .2s ease;
}

.sp-icon-button:hover {
  color: var(--sp-gold);
  border-color: rgba(255, 210, 34, .4);
  transform: rotate(-25deg);
}

.sp-step-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--sp-line);
  background: #030a06;
}

.sp-step-tab {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 92px;
  grid-template-columns: 32px minmax(0, 1fr);
  align-content: center;
  gap: 10px;
  padding: 15px 14px;
  border: 0;
  border-right: 1px solid var(--sp-line);
  color: var(--sp-dim);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}

.sp-step-tab:last-child {
  border-right: 0;
}

.sp-step-tab:hover {
  color: var(--sp-muted);
  background: rgba(255, 255, 255, .025);
}

.sp-step-tab[aria-selected="true"] {
  color: var(--sp-white);
  background: rgba(66, 212, 237, .055);
}

.sp-step-tab.is-complete {
  color: var(--sp-green);
}

.sp-step-tab-index {
  display: inline-grid;
  width: 30px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 850;
}

.sp-step-tab[aria-selected="true"] .sp-step-tab-index {
  color: var(--sp-cyan);
  border-color: rgba(66, 212, 237, .5);
  background: rgba(66, 212, 237, .08);
}

.sp-step-tab.is-complete .sp-step-tab-index {
  color: #081305;
  border-color: var(--sp-green);
  background: var(--sp-green);
}

.sp-step-tab-copy {
  min-width: 0;
}

.sp-step-tab-copy strong,
.sp-step-tab-copy small {
  display: block;
}

.sp-step-tab-copy strong {
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-step-tab-copy small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--sp-dim);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-workspace {
  display: grid;
  grid-template-columns: minmax(340px, .82fr) minmax(0, 1.42fr);
  min-height: 770px;
}

.sp-interview {
  position: relative;
  min-width: 0;
  padding: 30px;
  border-right: 1px solid var(--sp-line);
  background: rgba(2, 8, 4, .9);
}

.sp-pane[hidden] {
  display: none;
}

.sp-pane-head {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--sp-line);
}

.sp-pane-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sp-green);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.sp-pane-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.sp-pane-head h3 {
  margin-top: 7px;
  font-size: 23px;
  line-height: 1.18;
}

.sp-pane-head p {
  margin-top: 9px;
  color: var(--sp-muted);
  font-size: 12px;
  line-height: 1.65;
}

.sp-form-group {
  padding: 23px 0;
  border-bottom: 1px solid var(--sp-line);
}

.sp-form-group:last-child {
  border-bottom: 0;
}

.sp-form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
  color: var(--sp-white);
  font-size: 12px;
  font-weight: 800;
}

.sp-form-label small {
  color: var(--sp-dim);
  font-size: 9px;
  font-weight: 650;
}

.sp-field {
  display: grid;
  gap: 6px;
}

.sp-field + .sp-field {
  margin-top: 12px;
}

.sp-field > span {
  color: var(--sp-dim);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.sp-field input,
.sp-field select,
.sp-field textarea,
.sp-inline-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 6px;
  color: var(--sp-white);
  background: #07120c;
  padding: 0 13px;
  font: 650 12px/1.3 inherit;
}

.sp-field textarea {
  min-height: 92px;
  resize: vertical;
  padding-top: 12px;
}

.sp-field select {
  appearance: none;
  padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--sp-gold) 50%), linear-gradient(135deg, var(--sp-gold) 50%, transparent 50%);
  background-position: calc(100% - 17px) 20px, calc(100% - 12px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.sp-address-autocomplete {
  position: relative;
  z-index: 18;
}

.sp-address-suggestions {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid rgba(66, 212, 237, .38);
  border-radius: 6px;
  background: #06110b;
  box-shadow: 0 20px 42px rgba(0, 0, 0, .58);
}

.sp-address-suggestions[hidden] {
  display: none;
}

.sp-address-suggestion {
  display: grid;
  width: 100%;
  min-height: 49px;
  gap: 4px;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid var(--sp-line);
  color: var(--sp-white);
  background: transparent;
  font: 700 11px/1.35 inherit;
  text-align: left;
  cursor: pointer;
}

.sp-address-suggestion:hover,
.sp-address-suggestion[aria-selected="true"] {
  background: rgba(66, 212, 237, .1);
}

.sp-address-suggestion small {
  overflow: hidden;
  color: var(--sp-dim);
  font-size: 9px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-google-attribution {
  padding: 7px 12px;
  color: var(--sp-dim);
  background: rgba(255, 255, 255, .025);
  font-size: 8px;
  font-weight: 750;
  text-align: right;
}

.sp-google-attribution img {
  display: block;
  width: auto;
  height: 12px;
  margin-left: auto;
}

.sp-map-service-status {
  display: flex;
  min-height: 30px;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
  color: var(--sp-dim);
  font-size: 9px;
  font-weight: 700;
}

.sp-map-service-status i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--sp-gold);
  box-shadow: 0 0 10px rgba(255, 210, 34, .38);
}

.sp-map-service-status[data-state="ready"] {
  color: var(--sp-green-bright);
}

.sp-map-service-status[data-state="ready"] i {
  background: var(--sp-green-bright);
  box-shadow: 0 0 10px rgba(139, 228, 87, .42);
}

.sp-map-service-status[data-state="error"] {
  color: #ff9a86;
}

.sp-map-service-status[data-state="error"] i {
  background: #ff7a66;
  box-shadow: none;
}

.sp-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sp-help,
.sp-validation {
  margin-top: 9px;
  color: var(--sp-dim);
  font-size: 10px;
  line-height: 1.55;
}

.sp-validation {
  display: none;
  color: #ff9a86;
}

.sp-validation.is-visible {
  display: block;
}

.sp-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

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

.sp-choice-grid.is-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sp-choice {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 58px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 6px;
  color: var(--sp-muted);
  background: rgba(255, 255, 255, .025);
  font: 750 11px/1.25 inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.sp-choice:hover {
  color: var(--sp-white);
  border-color: rgba(108, 203, 63, .34);
  transform: translateY(-1px);
}

.sp-choice[aria-pressed="true"] {
  color: var(--sp-white);
  border-color: var(--sp-green);
  background: rgba(108, 203, 63, .1);
  box-shadow: inset 0 -2px 0 var(--sp-green);
}

.sp-choice small {
  display: block;
  margin-top: 4px;
  color: var(--sp-dim);
  font-size: 8px;
  font-weight: 600;
}

.sp-number-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 6px;
  background: #07120c;
}

.sp-number-shell input {
  min-width: 0;
  min-height: 44px;
  border: 0;
  color: var(--sp-gold);
  background: transparent;
  padding: 0 12px;
  font: 800 13px/1 inherit;
}

.sp-number-shell span {
  padding-right: 12px;
  color: var(--sp-muted);
  font-size: 10px;
}

.sp-range {
  width: 100%;
  height: 28px;
  margin: 10px 0 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.sp-range::-webkit-slider-runnable-track {
  height: 4px;
  border: 1px solid rgba(255, 255, 255, .13);
  background: linear-gradient(90deg, var(--sp-green) 0 var(--sp-range-fill, 50%), rgba(255, 255, 255, .08) var(--sp-range-fill, 50%));
}

.sp-range::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -9px;
  appearance: none;
  border: 2px solid #091109;
  border-radius: 50%;
  background: var(--sp-gold);
  box-shadow: 0 0 0 2px var(--sp-gold), 0 0 18px rgba(255, 210, 34, .45);
}

.sp-range::-moz-range-track {
  height: 4px;
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .08);
}

.sp-range::-moz-range-progress {
  height: 4px;
  background: var(--sp-green);
}

.sp-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid #091109;
  border-radius: 50%;
  background: var(--sp-gold);
}

.sp-range-scale {
  display: flex;
  justify-content: space-between;
  color: var(--sp-dim);
  font-size: 8px;
}

.sp-consumption-panels > div[hidden] {
  display: none;
}

.sp-load-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.sp-load-option {
  position: relative;
  min-width: 0;
}

.sp-load-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.sp-load-option span {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 5px;
  color: var(--sp-muted);
  background: rgba(255, 255, 255, .025);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.sp-load-option span::before {
  content: "";
  display: inline-grid;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 3px;
  color: #061006;
  font-size: 11px;
  font-weight: 900;
}

.sp-load-option input:checked + span {
  color: var(--sp-white);
  border-color: rgba(108, 203, 63, .46);
  background: rgba(108, 203, 63, .075);
}

.sp-load-option input:checked + span::before {
  content: "\2713";
  border-color: var(--sp-green);
  background: var(--sp-green);
}

.sp-goal-option > span {
  min-height: 66px;
  align-items: flex-start;
}

.sp-goal-option > span > strong,
.sp-goal-option > span > small {
  display: block;
}

.sp-goal-option > span > strong {
  color: inherit;
  font-size: 10px;
}

.sp-goal-option > span > small {
  margin-top: 4px;
  color: var(--sp-dim);
  font-size: 8px;
  font-weight: 600;
  line-height: 1.45;
}

.sp-battery-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
  border: 1px solid var(--sp-line);
  border-radius: 6px;
  background: rgba(66, 212, 237, .025);
}

.sp-battery-stack {
  margin-bottom: 16px;
}

.sp-battery-stack .sp-choice {
  min-height: 58px;
}

.sp-battery-stack .sp-choice strong,
.sp-battery-stack .sp-choice small {
  display: block;
}

.sp-battery-stack .sp-choice strong {
  color: inherit;
  font-size: 11px;
}

.sp-battery-stack .sp-choice small {
  margin-top: 4px;
}

.sp-battery-metrics > div {
  min-width: 0;
  padding: 11px;
  border-right: 1px solid var(--sp-line);
  border-bottom: 1px solid var(--sp-line);
}

.sp-battery-metrics > div:nth-child(2n) {
  border-right: 0;
}

.sp-battery-metrics > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.sp-battery-metrics span,
.sp-battery-metrics strong {
  display: block;
}

.sp-battery-metrics span {
  color: var(--sp-dim);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.sp-battery-metrics strong {
  margin-top: 6px;
  color: var(--sp-white);
  font-size: 11px;
  line-height: 1.35;
}

.sp-priority-recommendation {
  margin-top: 23px;
  overflow: hidden;
  border: 1px solid rgba(66, 212, 237, .28);
  border-radius: 6px;
  background: rgba(5, 21, 14, .82);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.sp-priority-recommendation[data-priority="storage"] {
  border-color: rgba(255, 210, 34, .42);
  box-shadow: inset 3px 0 0 rgba(255, 210, 34, .72);
}

.sp-priority-recommendation[data-priority="ev"] {
  border-color: rgba(66, 212, 237, .42);
  box-shadow: inset 3px 0 0 rgba(66, 212, 237, .72);
}

.sp-priority-recommendation[data-priority="solar"] {
  border-color: rgba(139, 228, 87, .4);
  box-shadow: inset 3px 0 0 rgba(139, 228, 87, .68);
}

.sp-priority-recommendation[data-priority="backup"] {
  border-color: rgba(255, 154, 134, .48);
  box-shadow: inset 3px 0 0 rgba(255, 154, 134, .76);
}

.sp-recommendation-head {
  padding: 15px;
  border-bottom: 1px solid var(--sp-line);
}

.sp-recommendation-head span,
.sp-recommendation-head strong {
  display: block;
}

.sp-recommendation-head span {
  color: var(--sp-cyan);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.sp-recommendation-head strong {
  margin-top: 6px;
  color: var(--sp-white);
  font-size: 15px;
  line-height: 1.35;
}

.sp-recommendation-head p {
  margin-top: 7px;
  color: var(--sp-muted);
  font-size: 10px;
  line-height: 1.55;
}

.sp-recommendation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sp-recommendation-grid > div {
  min-width: 0;
  padding: 12px 15px;
  border-right: 1px solid var(--sp-line);
  border-bottom: 1px solid var(--sp-line);
}

.sp-recommendation-grid > div:nth-child(2n) {
  border-right: 0;
}

.sp-recommendation-grid > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.sp-recommendation-grid span,
.sp-recommendation-grid strong {
  display: block;
}

.sp-recommendation-grid span {
  color: var(--sp-dim);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.sp-recommendation-grid strong {
  margin-top: 6px;
  color: var(--sp-gold);
  font-size: 12px;
  line-height: 1.35;
}

.sp-recommendation-actions {
  display: grid;
  gap: 8px;
  padding: 14px 15px;
  border-top: 1px solid var(--sp-line);
}

.sp-recommendation-actions .sp-button {
  width: 100%;
}

.sp-recommendation-actions small {
  color: var(--sp-dim);
  font-size: 8px;
  line-height: 1.45;
}

.sp-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sp-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: var(--sp-muted);
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.sp-switch input {
  position: absolute;
  opacity: 0;
}

.sp-switch-track {
  position: relative;
  width: 38px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
}

.sp-switch-track::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sp-muted);
  transition: transform .2s ease, background .2s ease;
}

.sp-switch input:checked + .sp-switch-track {
  border-color: rgba(108, 203, 63, .5);
  background: rgba(108, 203, 63, .14);
}

.sp-switch input:checked + .sp-switch-track::after {
  transform: translateX(16px);
  background: var(--sp-green);
}

.sp-upload {
  position: relative;
  display: grid;
  min-height: 82px;
  place-items: center;
  padding: 12px;
  border: 1px dashed rgba(255, 255, 255, .2);
  border-radius: 6px;
  color: var(--sp-muted);
  background: rgba(255, 255, 255, .02);
  text-align: center;
  cursor: pointer;
}

.sp-upload:hover {
  border-color: rgba(66, 212, 237, .45);
  background: rgba(66, 212, 237, .035);
}

.sp-upload input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.sp-upload strong,
.sp-upload small {
  display: block;
}

.sp-upload strong {
  font-size: 11px;
}

.sp-upload small {
  margin-top: 5px;
  color: var(--sp-dim);
  font-size: 9px;
}

.sp-upload.has-file {
  color: var(--sp-green);
  border-style: solid;
  border-color: rgba(108, 203, 63, .42);
}

.sp-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--sp-line);
}

.sp-step-count {
  color: var(--sp-dim);
  font-size: 10px;
  font-weight: 800;
}

.sp-stage {
  min-width: 0;
  background: #031008;
}

.sp-stage-header {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--sp-line);
  background: rgba(3, 12, 7, .96);
}

.sp-stage-header span,
.sp-stage-header strong {
  display: block;
}

.sp-stage-header .sp-scenario-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  align-items: center;
  min-height: 22px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 210, 34, .34);
  border-radius: 4px;
  color: var(--sp-gold);
  background: rgba(255, 210, 34, .08);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.sp-stage-header .sp-scenario-badge[hidden] {
  display: none;
}

.sp-stage-header span {
  color: var(--sp-green);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.sp-stage-header strong {
  margin-top: 5px;
  color: var(--sp-white);
  font-size: 17px;
}

.sp-confidence {
  min-width: 150px;
  text-align: right;
}

.sp-confidence > span {
  color: var(--sp-dim);
}

.sp-confidence strong {
  color: var(--sp-cyan);
  font-size: 13px;
}

.sp-confidence-meter {
  width: 150px;
  height: 4px;
  margin-top: 7px;
  overflow: hidden;
  background: rgba(255, 255, 255, .08);
}

.sp-confidence-meter i {
  display: block;
  width: var(--sp-confidence, 25%);
  height: 100%;
  background: linear-gradient(90deg, var(--sp-gold), var(--sp-green), var(--sp-cyan));
  transition: width .4s ease;
}

.sp-roof-lab {
  position: relative;
  height: 430px;
  overflow: hidden;
  border-bottom: 1px solid var(--sp-line);
  background:
    linear-gradient(rgba(0, 0, 0, .02), rgba(0, 0, 0, .26)),
    #111a13;
}

.sp-roof-map,
.sp-roof-fallback,
.sp-roof-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sp-roof-map {
  z-index: 1;
  background: #111a13;
  transition: filter .2s ease, opacity .2s ease;
}

.sp-roof-lab[data-map-error="true"] .sp-roof-map {
  opacity: 0;
  pointer-events: none;
}

.sp-roof-lab[data-map-error="true"] .sp-roof-fallback {
  display: block !important;
}

.sp-roof-lab[data-map-error="true"] .sp-roof-fallback::before,
.sp-roof-lab[data-map-error="true"] .sp-roof-fallback::after {
  opacity: .18;
}

.sp-roof-fallback {
  z-index: 0;
  background:
    linear-gradient(26deg, transparent 0 31%, rgba(255, 255, 255, .035) 31% 33%, transparent 33% 100%),
    linear-gradient(153deg, transparent 0 44%, rgba(255, 255, 255, .04) 44% 46%, transparent 46% 100%),
    linear-gradient(116deg, #1b241c 0 21%, #2a3127 21% 22%, #171d18 22% 44%, #31382e 44% 45%, #1a211b 45% 68%, #292f27 68% 69%, #151b16 69% 100%);
}

.sp-roof-fallback::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 51%;
  width: min(66%, 510px);
  aspect-ratio: 1.7;
  transform: translate(-50%, -50%) rotate(-7deg);
  border: 4px solid rgba(213, 218, 205, .16);
  border-radius: 3px;
  background:
    linear-gradient(90deg, transparent 49.4%, rgba(232, 235, 224, .15) 50%, transparent 50.6%),
    linear-gradient(26deg, transparent 49.2%, rgba(232, 235, 224, .12) 50%, transparent 50.8%),
    #4d5149;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .42);
}

.sp-roof-fallback::after {
  content: "";
  position: absolute;
  left: 19%;
  bottom: 10%;
  width: 62%;
  height: 15%;
  transform: rotate(-7deg);
  border: 1px solid rgba(255, 255, 255, .06);
  background: rgba(16, 25, 17, .45);
}

.sp-roof-canvas {
  z-index: 3;
  pointer-events: none;
  transition: opacity .2s ease;
}

.sp-roof-lab[data-map-mode="satellite"] .sp-roof-canvas {
  opacity: 0;
}

.sp-roof-lab[data-map-mode="sun"] .sp-roof-map {
  filter: saturate(.72) brightness(.72) contrast(1.08);
}

.sp-map-notice {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  display: grid;
  width: min(310px, calc(100% - 40px));
  transform: translate(-50%, -50%);
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 6px;
  background: rgba(1, 8, 4, .86);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .36);
  pointer-events: none;
  text-align: center;
}

.sp-map-notice[hidden] {
  display: none;
}

.sp-map-notice strong {
  color: var(--sp-white);
  font-size: 12px;
}

.sp-map-notice span {
  color: var(--sp-muted);
  font-size: 9px;
  line-height: 1.5;
}

.sp-map-notice[data-state="error"] {
  border-color: rgba(255, 122, 102, .35);
}

.sp-roof-topline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(0, 4, 2, .88), transparent);
  pointer-events: none;
}

.sp-roof-topline span,
.sp-roof-topline strong,
.sp-roof-topline small {
  display: block;
}

.sp-roof-topline span {
  color: var(--sp-cyan);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.sp-roof-topline strong {
  max-width: 410px;
  margin-top: 4px;
  overflow: hidden;
  color: var(--sp-white);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-roof-topline small {
  margin-top: 4px;
  color: rgba(247, 248, 239, .58);
  font-size: 9px;
}

.sp-map-modes {
  display: flex;
  flex: 0 0 auto;
  pointer-events: auto;
}

.sp-map-modes button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-right: 0;
  color: var(--sp-muted);
  background: rgba(3, 10, 6, .82);
  font: 750 9px/1 inherit;
  cursor: pointer;
}

.sp-map-modes button:first-child {
  border-radius: 5px 0 0 5px;
}

.sp-map-modes button:last-child {
  border-right: 1px solid rgba(255, 255, 255, .18);
  border-radius: 0 5px 5px 0;
}

.sp-map-modes button[aria-pressed="true"] {
  color: #061006;
  border-color: var(--sp-green);
  background: var(--sp-green);
}

.sp-roof-readout {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 17px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
  background: rgba(1, 8, 4, .84);
  backdrop-filter: blur(10px);
}

.sp-roof-readout > div {
  min-width: 0;
  padding: 11px 13px;
  border-right: 1px solid var(--sp-line);
}

.sp-roof-readout > div:last-child {
  border-right: 0;
}

.sp-roof-readout span,
.sp-roof-readout strong {
  display: block;
}

.sp-roof-readout span {
  color: var(--sp-dim);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.sp-roof-readout strong {
  margin-top: 5px;
  overflow: hidden;
  color: var(--sp-white);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-roof-readout > div:first-child strong {
  color: var(--sp-gold);
}

/* Keep the live array animation and satellite reference visually independent. */
.sp-roof-lab {
  height: auto;
  padding: 18px;
  overflow: visible;
  background: #071008;
}

.sp-roof-visuals {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.sp-array-stage,
.sp-map-thumbnail {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--sp-line);
  border-radius: 6px;
  background: #060d08;
}

.sp-array-stage {
  padding: 0;
}

.sp-array-head,
.sp-map-thumbnail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 65px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--sp-line);
  background: rgba(8, 20, 12, .94);
}

.sp-array-head span,
.sp-array-head strong,
.sp-array-head small,
.sp-map-thumbnail-head span,
.sp-map-thumbnail-head strong {
  display: block;
}

.sp-array-head span,
.sp-map-thumbnail-head span {
  color: var(--sp-cyan);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.sp-array-head strong,
.sp-map-thumbnail-head strong {
  margin-top: 4px;
  overflow: hidden;
  color: var(--sp-white);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-array-head small {
  margin-top: 3px;
  color: var(--sp-dim);
  font-size: 8px;
}

.sp-array-surface {
  position: relative;
  height: 300px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(66, 212, 237, .035), transparent 42%),
    #050b07;
}

.sp-array-surface .sp-roof-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sp-roof-lab[data-map-mode="sun"] .sp-array-surface {
  background:
    radial-gradient(circle at 45% 42%, rgba(255, 210, 34, .09), transparent 43%),
    #050b07;
}

.sp-roof-lab[data-map-mode="sun"] .sp-roof-map {
  filter: none;
}

.sp-map-thumbnail {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  min-height: 148px;
}

.sp-map-thumbnail-head {
  display: block;
  grid-column: 2;
  grid-row: 1;
  min-height: 0;
  padding: 16px 18px 7px;
  border-bottom: 0;
  background: transparent;
}

.sp-map-thumbnail-head strong {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.sp-map-thumbnail-viewport {
  position: relative;
  grid-column: 1;
  grid-row: 1 / span 2;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid var(--sp-line);
  background: #111a13;
}

.sp-map-thumbnail-viewport .sp-roof-map,
.sp-map-thumbnail-viewport .sp-roof-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sp-map-thumbnail > small {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  padding: 3px 18px 16px;
  color: var(--sp-dim);
  font-size: 8px;
  line-height: 1.5;
}

.sp-map-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 190px;
}

.sp-map-modes button:nth-child(2) {
  border-right: 1px solid rgba(255, 255, 255, .18);
  border-radius: 0 5px 5px 0;
}

.sp-roof-readout {
  position: static;
  margin-top: 14px;
  border-radius: 6px;
}

.sp-results {
  padding: 26px;
}

.sp-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--sp-line);
  border-bottom: 1px solid var(--sp-line);
}

.sp-metric {
  min-width: 0;
  padding: 17px 14px;
  border-right: 1px solid var(--sp-line);
}

.sp-metric:last-child {
  border-right: 0;
}

.sp-metric span,
.sp-metric strong,
.sp-metric small {
  display: block;
}

.sp-metric span {
  color: var(--sp-dim);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.sp-metric strong {
  margin-top: 6px;
  color: var(--sp-white);
  font-size: 18px;
}

.sp-metric:first-child strong {
  color: var(--sp-gold);
}

.sp-metric:nth-child(3) strong {
  color: var(--sp-green-bright);
}

.sp-metric small {
  margin-top: 4px;
  color: var(--sp-dim);
  font-size: 8px;
  line-height: 1.45;
}

.sp-chart-panel {
  margin-top: 24px;
  border: 1px solid var(--sp-line);
  border-radius: 6px;
  background: rgba(1, 7, 4, .64);
}

.sp-chart-tabs {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--sp-line);
  scrollbar-width: thin;
}

.sp-chart-tab {
  position: relative;
  min-height: 44px;
  flex: 0 0 auto;
  padding: 0 15px;
  border: 0;
  color: var(--sp-dim);
  background: transparent;
  font: 800 9px/1 inherit;
  cursor: pointer;
}

.sp-chart-tab::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  transform: scaleX(0);
  background: var(--sp-cyan);
  transition: transform .2s ease;
}

.sp-chart-tab[aria-selected="true"] {
  color: var(--sp-cyan);
}

.sp-chart-tab[aria-selected="true"]::after {
  transform: scaleX(1);
}

.sp-chart-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 18px 0;
}

.sp-chart-head span,
.sp-chart-head strong,
.sp-chart-head small {
  display: block;
}

.sp-chart-head span {
  color: var(--sp-green);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.sp-chart-head strong {
  margin-top: 5px;
  color: var(--sp-white);
  font-size: 14px;
}

.sp-chart-head small {
  margin-top: 4px;
  color: var(--sp-dim);
  font-size: 9px;
}

.sp-chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 11px;
  color: var(--sp-muted);
  font-size: 8px;
}

.sp-chart-legend i {
  display: inline-block;
  width: 9px;
  height: 3px;
  margin-right: 5px;
  vertical-align: middle;
  background: currentColor;
}

.sp-chart-wrap {
  position: relative;
  height: 300px;
  min-height: 300px;
  padding: 10px 12px 12px;
}

.sp-chart-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.sp-chart-tooltip {
  position: absolute;
  z-index: 8;
  min-width: 130px;
  max-width: 210px;
  padding: 9px 10px;
  border: 1px solid rgba(66, 212, 237, .35);
  border-radius: 5px;
  color: var(--sp-white);
  background: rgba(2, 9, 5, .96);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .4);
  pointer-events: none;
  font-size: 9px;
  line-height: 1.55;
}

.sp-chart-tooltip strong {
  display: block;
  margin-bottom: 4px;
  color: var(--sp-gold);
  font-size: 10px;
}

.sp-chart-note {
  padding: 0 18px 16px;
  color: var(--sp-dim);
  font-size: 8px;
  line-height: 1.5;
}

.sp-profile-summary {
  display: none;
  margin-top: 24px;
  border-top: 1px solid var(--sp-line);
}

.sp-tool[data-step="4"] .sp-profile-summary {
  display: block;
}

.sp-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sp-summary-block {
  padding: 18px 16px;
  border-right: 1px solid var(--sp-line);
  border-bottom: 1px solid var(--sp-line);
}

.sp-summary-block:nth-child(2n) {
  border-right: 0;
}

.sp-summary-block span,
.sp-summary-block strong,
.sp-summary-block small {
  display: block;
}

.sp-summary-block span {
  color: var(--sp-dim);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.sp-summary-block strong {
  margin-top: 6px;
  color: var(--sp-white);
  font-size: 12px;
}

.sp-summary-block small {
  margin-top: 4px;
  color: var(--sp-muted);
  font-size: 9px;
  line-height: 1.5;
}

.sp-conversion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 22px 16px 0;
}

.sp-conversion h4 {
  font-size: 17px;
}

.sp-conversion p {
  max-width: 510px;
  margin-top: 6px;
  color: var(--sp-muted);
  font-size: 10px;
  line-height: 1.55;
}

.sp-conversion-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.sp-disclosure {
  margin-top: 17px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 210, 34, .16);
  border-radius: 5px;
  color: var(--sp-dim);
  background: rgba(255, 210, 34, .025);
  font-size: 8px;
  line-height: 1.55;
}

.sp-modal[hidden],
.sp-toast[hidden] {
  display: none;
}

.sp-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 4, 2, .78);
  backdrop-filter: blur(10px);
}

.sp-modal-panel {
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: #06100b;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .58);
}

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

.sp-modal-head span,
.sp-modal-head h3,
.sp-modal-head p {
  display: block;
}

.sp-modal-head span {
  color: var(--sp-green);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.sp-modal-head h3 {
  margin-top: 5px;
  font-size: 21px;
}

.sp-modal-head p {
  margin-top: 7px;
  color: var(--sp-muted);
  font-size: 10px;
  line-height: 1.55;
}

.sp-modal-close {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 5px;
  color: var(--sp-muted);
  background: transparent;
  font: 500 21px/1 inherit;
  cursor: pointer;
}

.sp-modal-body {
  padding: 20px;
}

.sp-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--sp-line);
}

.sp-consent {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  color: var(--sp-muted);
  font-size: 9px;
  line-height: 1.55;
  cursor: pointer;
}

.sp-consent input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  accent-color: var(--sp-green);
}

.sp-success-panel {
  display: none;
  padding: 24px 20px;
  text-align: center;
}

.sp-success-panel.is-visible {
  display: block;
}

.sp-success-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin: 0 auto 14px;
  border: 1px solid rgba(108, 203, 63, .5);
  border-radius: 50%;
  color: #061006;
  background: var(--sp-green);
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 0 28px rgba(108, 203, 63, .2);
}

.sp-success-panel h3 {
  font-size: 21px;
}

.sp-success-panel p {
  margin-top: 8px;
  color: var(--sp-muted);
  font-size: 11px;
  line-height: 1.6;
}

.sp-profile-reference {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 10px;
  border: 1px solid rgba(66, 212, 237, .3);
  border-radius: 5px;
  color: var(--sp-cyan);
  background: rgba(66, 212, 237, .06);
  font-size: 11px;
  font-weight: 850;
}

.sp-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1100;
  width: min(360px, calc(100vw - 44px));
  padding: 13px 15px;
  border: 1px solid rgba(108, 203, 63, .34);
  border-radius: 6px;
  color: var(--sp-white);
  background: rgba(4, 15, 8, .97);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .5);
  font-size: 10px;
  line-height: 1.5;
}

.sp-toast[data-tone="error"] {
  border-color: rgba(240, 100, 99, .5);
}

.sp-sr-only {
  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) {
  .sp-workspace {
    grid-template-columns: minmax(310px, .9fr) minmax(0, 1.1fr);
  }

  .sp-interview {
    padding: 24px;
  }

  .sp-roof-lab {
    height: auto;
    padding: 14px;
  }

  .sp-roof-visuals {
    grid-template-columns: minmax(0, 1fr);
  }

  .sp-map-thumbnail {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .sp-roof-readout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sp-roof-readout > div:nth-child(2) {
    border-right: 0;
  }

  .sp-roof-readout > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--sp-line);
  }

  .sp-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sp-metric:nth-child(2) {
    border-right: 0;
  }

  .sp-metric:nth-child(-n+2) {
    border-bottom: 1px solid var(--sp-line);
  }

  .sp-conversion {
    grid-template-columns: 1fr;
  }

  .sp-conversion-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .solar-profile-section {
    padding: 72px 0;
  }

  .sp-intro {
    display: block;
  }

  .sp-intro h2 {
    font-size: 36px;
  }

  .sp-intro-proof {
    width: 100%;
    margin-top: 20px;
  }

  .sp-step-tabs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .sp-step-tabs::-webkit-scrollbar {
    display: none;
  }

  .sp-step-tab {
    min-width: 176px;
    min-height: 74px;
    flex: 0 0 176px;
    scroll-snap-align: start;
  }

  .sp-step-tab-copy small {
    display: none;
  }

  .sp-workspace {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .sp-interview {
    order: 1;
    border-bottom: 1px solid var(--sp-line);
    border-right: 0;
  }

  .sp-stage {
    order: 2;
  }

  .sp-roof-lab {
    height: auto;
  }

  .sp-roof-visuals {
    grid-template-columns: minmax(0, 1fr);
  }

  .sp-map-thumbnail {
    grid-template-columns: 210px minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .solar-profile-section {
    padding: 58px 0;
  }

  .solar-profile-section .container {
    width: min(100% - 24px, var(--max));
  }

  .sp-intro h2 {
    font-size: 30px;
  }

  .sp-intro p {
    font-size: 14px;
  }

  .sp-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
    padding: 13px;
  }

  .sp-profile-state strong,
  .sp-profile-state span {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .sp-toolbar-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .sp-toolbar-actions .sp-button-secondary {
    display: none;
  }

  .sp-toolbar-actions .sp-button {
    min-height: 38px;
    padding: 0 11px;
  }

  .sp-step-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: hidden;
    scroll-snap-type: none;
  }

  .sp-step-tab {
    display: flex;
    min-width: 0;
    min-height: 66px;
    flex: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 3px;
    text-align: center;
  }

  .sp-step-tab-copy strong {
    overflow: visible;
    font-size: 9px;
    text-overflow: clip;
  }

  .sp-interview {
    padding: 20px 16px;
  }

  .sp-choice-grid,
  .sp-choice-grid.is-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sp-battery-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sp-field-row,
  .sp-summary-grid {
    grid-template-columns: 1fr;
  }

  .sp-summary-block {
    border-right: 0;
  }

  .sp-load-grid {
    grid-template-columns: 1fr;
  }

  .sp-stage-header {
    align-items: flex-start;
    padding: 15px 16px;
  }

  .sp-stage-header strong {
    max-width: 210px;
    font-size: 14px;
  }

  .sp-confidence {
    min-width: 95px;
  }

  .sp-confidence-meter {
    width: 95px;
  }

  .sp-roof-lab {
    height: auto;
    padding: 12px;
  }

  .sp-roof-topline {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
  }

  .sp-roof-topline strong {
    max-width: none;
    text-overflow: clip;
    white-space: normal;
  }

  .sp-roof-topline small {
    display: none;
  }

  .sp-map-modes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .sp-map-modes button {
    min-width: 0;
    padding: 0 5px;
  }

  .sp-map-modes button:nth-child(2) {
    border-radius: 0 5px 5px 0;
  }

  .sp-roof-visuals {
    grid-template-columns: 1fr;
  }

  .sp-array-head {
    display: grid;
    align-items: start;
  }

  .sp-array-head strong {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .sp-array-surface {
    height: 240px;
  }

  .sp-map-thumbnail {
    grid-template-columns: 1fr;
    grid-template-rows: auto 175px auto;
  }

  .sp-map-thumbnail-head {
    grid-column: 1;
    grid-row: 1;
    padding: 13px 15px;
    border-bottom: 1px solid var(--sp-line);
  }

  .sp-map-thumbnail-viewport {
    grid-column: 1;
    grid-row: 2;
    border-right: 0;
  }

  .sp-map-thumbnail > small {
    grid-column: 1;
    grid-row: 3;
    padding: 10px 12px;
  }

  .sp-roof-readout {
    position: static;
    margin-top: 12px;
  }

  .sp-roof-readout > div {
    padding: 9px;
  }

  .sp-results {
    padding: 18px 14px;
  }

  .sp-metric {
    padding: 14px 10px;
  }

  .sp-metric strong {
    font-size: 15px;
  }

  .sp-chart-head {
    display: block;
    padding: 15px 14px 0;
  }

  .sp-chart-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
  }

  .sp-chart-tab {
    min-width: 0;
    padding: 0 6px;
    border-right: 1px solid var(--sp-line);
    border-bottom: 1px solid var(--sp-line);
    white-space: normal;
  }

  .sp-chart-tab:nth-child(2n) {
    border-right: 0;
  }

  .sp-chart-legend {
    justify-content: flex-start;
    margin-top: 10px;
  }

  .sp-chart-wrap {
    height: 260px;
    min-height: 260px;
  }

  .sp-conversion {
    padding: 18px 0 0;
  }

  .sp-conversion-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sp-conversion-actions .sp-button {
    width: 100%;
  }

  .sp-modal {
    align-items: end;
    padding: 0;
  }

  .sp-modal-panel {
    width: 100%;
    max-height: 92vh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .solar-profile-section *,
  .solar-profile-section *::before,
  .solar-profile-section *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
