#solar-root {
  --solar-ink: var(--brand-ink, #06150d);
  --solar-muted: var(--brand-muted, #59675f);
  --solar-line: var(--brand-border, rgba(6, 21, 13, 0.11));
  --solar-primary: var(--brand-green-dark, #0dbb74);
  --solar-primary-soft: var(--brand-green-soft, #eafbf3);
  --solar-navy: var(--brand-navy, #003874);
  color: var(--solar-ink);
  font-family: var(--fuente, Inter, "Segoe UI", Arial, sans-serif);
}

#solar-root[hidden],
#solar-step-nav.hidden,
#solar-resumen-container.hidden {
  display: none !important;
}

#solar-root *,
#solar-root *::before,
#solar-root *::after {
  box-sizing: border-box;
}

.solar-module__topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--solar-line);
  margin-bottom: 24px;
}

.solar-module__topbar h2 {
  margin: 0;
  color: var(--solar-ink);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.9rem;
}

.solar-module__intro {
  max-width: 42rem;
  margin: 7px 0 0;
  color: var(--solar-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.solar-module__top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.solar-save-state {
  min-width: 7rem;
  color: var(--solar-muted);
  font-size: 0.75rem;
  text-align: right;
}

.solar-eyebrow {
  margin: 0 0 7px;
  color: var(--solar-primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.solar-notice {
  padding: 13px 16px;
  margin-bottom: 18px;
  border: 1px solid rgba(13, 187, 116, 0.25);
  border-radius: 8px;
  background: var(--solar-primary-soft);
  color: #075640;
  font-size: 0.875rem;
}

.solar-notice.error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

#solar-form {
  width: 100%;
}

.solar-page {
  display: none;
}

.solar-page.active {
  display: block;
}

.solar-page-heading {
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--solar-line);
}

.solar-page-heading h3,
.solar-result-hero h3 {
  margin: 0 0 7px;
  color: var(--solar-ink);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.7rem;
}

.solar-page-heading > p:last-child,
.solar-result-hero p:last-child {
  margin: 0;
  color: var(--solar-muted);
  font-size: 0.875rem;
}

.solar-form-grid {
  display: grid;
  gap: 18px 20px;
}

.solar-form-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.solar-form-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.solar-span-two {
  grid-column: span 2;
}

#solar-root label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #374151;
  font-size: 0.8rem;
  font-weight: 700;
}

#solar-root input,
#solar-root select,
#solar-root textarea {
  width: 100%;
  min-width: 0;
  min-height: 45px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  outline: none;
  background: #fff;
  color: #111827;
  font: inherit;
  font-weight: 400;
  letter-spacing: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

#solar-root textarea {
  resize: vertical;
}

#solar-root input:focus,
#solar-root select:focus,
#solar-root textarea:focus {
  border-color: var(--solar-primary);
  box-shadow: 0 0 0 3px rgba(13, 187, 116, 0.12);
}

#solar-root input:invalid:not(:placeholder-shown) {
  border-color: #dc2626;
}

.solar-roof {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(0, 56, 116, 0.16);
  border-radius: 10px;
  background: #f6faf8;
}

.solar-roof__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.solar-roof__head h4 {
  margin: 1px 0 4px;
  color: var(--solar-navy);
  font-size: 1.05rem;
  font-weight: 800;
}

.solar-roof__head p:last-child {
  margin: 0;
  color: var(--solar-muted);
  font-size: 0.8rem;
}

.solar-roof__tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 0 0 auto;
  padding: 4px;
  border: 1px solid var(--solar-line);
  border-radius: 8px;
  background: #e9efec;
}

.solar-roof__tab {
  min-height: 36px;
  padding: 7px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #536159;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
}

.solar-roof__tab.active {
  background: #fff;
  color: var(--solar-ink);
  box-shadow: 0 2px 8px rgba(6, 21, 13, 0.12);
}

.solar-roof__frame {
  position: relative;
  width: 100%;
  height: clamp(330px, 44vw, 560px);
  overflow: hidden;
  border: 1px solid var(--solar-line);
  border-radius: 8px;
  background: #dfe7e3;
}

.solar-roof__frame iframe,
.solar-roof__frame canvas {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.solar-roof__frame canvas {
  cursor: crosshair;
  touch-action: none;
}

.solar-roof__frame [hidden],
.solar-roof__tools[hidden],
.solar-roof__insights[hidden] {
  display: none !important;
}

.solar-roof__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #edf5f1;
  color: var(--solar-muted);
  font-size: 0.86rem;
  text-align: center;
}

.solar-roof__north {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--solar-ink);
  font-size: 0.75rem;
  font-weight: 850;
  box-shadow: 0 3px 10px rgba(6, 21, 13, 0.2);
  pointer-events: none;
}

.solar-roof__attribution {
  position: absolute;
  right: 7px;
  bottom: 6px;
  padding: 3px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.88);
  color: #374151;
  font-size: 0.75rem;
  pointer-events: none;
}

/* Atribución de Google: «Google Maps» en Roboto 400, 12 px, #1F1F1F y sin partir (sus normas de marca). */
.solar-roof__google {
  color: #1f1f1f;
  font-family: Roboto, Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}

.solar-roof__zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  gap: 6px;
}

.solar-roof__zoom button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--solar-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--solar-ink);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 850;
  cursor: pointer;
}

.solar-roof__zoom button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Vista bloqueada para medir: el candado queda marcado y un rótulo lo recuerda. */
.solar-roof__zoom .solar-roof__lock.is-locked {
  border-color: var(--solar-ink);
  background: var(--solar-ink);
  color: #fff;
}

.solar-roof__lock-badge {
  position: absolute;
  top: 12px;
  right: 64px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--solar-ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  pointer-events: none;
}

.solar-roof__lock-badge[hidden] {
  display: none;
}

.solar-roof__lock.is-flashing,
.solar-roof__lock-badge.is-flashing {
  animation: solar-roof-lock-flash 0.5s ease;
}

@keyframes solar-roof-lock-flash {
  0%, 100% { transform: none; }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .solar-roof__lock.is-flashing,
  .solar-roof__lock-badge.is-flashing {
    animation: none;
    outline: 3px solid #f2b705;
  }
}

.solar-roof__tools {
  margin-top: 12px;
}

.solar-roof__mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
  padding: 4px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
}

.solar-roof__mode {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #475569;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.solar-roof__mode:hover {
  color: var(--solar-navy);
  background: #e8f2fd;
}

.solar-roof__mode.active {
  border-color: #0b5fa5;
  color: #fff;
  background: #0b5fa5;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.16);
}

.solar-roof__settings-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 9px;
}

.solar-roof__setting {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
}

.solar-roof__setting select {
  min-height: 38px;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: var(--solar-navy);
  font: inherit;
  font-weight: 600;
}

.solar-roof__tool-row,
.solar-roof__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.solar-roof__tool-row .solar-button {
  min-height: 38px;
  padding: 7px 12px;
  font-size: 0.76rem;
}

.solar-roof__metrics {
  margin-top: 10px;
}

.solar-roof__metric {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #e8efeb;
  color: #536159;
  font-size: 0.75rem;
}

.solar-roof__metric strong {
  color: var(--solar-ink);
}

.solar-roof__metric--area {
  background: var(--solar-primary-soft);
}

.solar-roof__metric--panels {
  background: #e8f2fd;
  color: var(--solar-navy);
}

.solar-roof__metric--excluded {
  color: #991b1b;
  background: #fee2e2;
}

.solar-roof__metric--hint {
  flex-basis: 100%;
  border-style: dashed;
  color: #475569;
  background: #f8fafc;
}

.solar-roof__metric--warning {
  flex-basis: 100%;
  border-color: #fbbf24;
  color: #92400e;
  background: #fffbeb;
}

.solar-roof__canvas[data-editor-mode="panels"] {
  cursor: crosshair;
  touch-action: none;
}

.solar-roof__canvas[data-editor-mode="exclusion"] {
  cursor: cell;
  touch-action: none;
}

.solar-roof__foot {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
  gap: 16px;
  align-items: end;
  margin-top: 14px;
}

.solar-roof__foot label {
  gap: 5px !important;
}

.solar-roof__foot label span {
  color: #87928c;
  font-weight: 500;
  text-transform: none;
}

.solar-roof__foot input {
  min-height: 40px !important;
}

.solar-roof__foot > p {
  margin: 0 0 3px;
  color: var(--solar-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.solar-roof__insights {
  margin-top: 12px;
  padding: 11px 13px;
  border-left: 3px solid var(--solar-primary);
  background: #edf8f3;
  color: #315d49;
  font-size: 0.78rem;
  line-height: 1.5;
}

.solar-section-band {
  padding: 22px 0;
  border-bottom: 1px solid var(--solar-line);
}

.solar-section-band:first-of-type {
  padding-top: 0;
}

.solar-section-band:last-child {
  border-bottom: 0;
}

.solar-section-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 19px;
}

.solar-section-title > span {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 6px;
  background: var(--solar-primary-soft);
  color: #08704c;
  font-size: 0.78rem;
  font-weight: 800;
}

.solar-section-title h4 {
  margin: 1px 0 3px;
  color: var(--solar-ink);
  font-size: 1rem;
  font-weight: 800;
}

.solar-section-title p {
  margin: 0;
  color: var(--solar-muted);
  font-size: 0.8rem;
}

.solar-upload-box {
  margin-top: 18px;
  padding: 16px;
  border: 1px dashed rgba(13, 187, 116, 0.48);
  border-radius: 8px;
  background: #f8fcfa;
  cursor: pointer;
}

.solar-upload-box input {
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

.solar-upload-box span {
  color: var(--solar-ink);
  font-size: 0.85rem;
}

.solar-upload-box small {
  color: var(--solar-muted);
  font-weight: 400;
}

.solar-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.solar-check-grid label {
  display: flex !important;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--solar-line);
  border-radius: 7px;
  background: #fbfdfc;
}

.solar-check-grid input {
  width: 18px !important;
  min-height: 18px !important;
  accent-color: var(--solar-primary);
  box-shadow: none !important;
}

.solar-check-grid .solar-quantity-option {
  justify-content: space-between;
}

.solar-check-grid .solar-quantity-option input {
  width: 72px !important;
  min-height: 38px !important;
  padding: 7px 9px !important;
  border: 1px solid var(--solar-line) !important;
  border-radius: 6px;
  background: #fff;
  text-align: right;
}

.solar-check-grid label:has(input:disabled) {
  opacity: 0.58;
}

.solar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.solar-button--primary {
  background: var(--solar-ink);
  color: #fff;
}

.solar-button--secondary {
  border-color: rgba(0, 56, 116, 0.24);
  background: #fff;
  color: var(--solar-navy);
}

.solar-button--quiet {
  border-color: #e5e7eb;
  background: #f3f4f6;
  color: #374151;
}

.solar-button--accent {
  background: var(--solar-primary);
  color: #fff;
}

.solar-button:hover {
  filter: brightness(0.97);
}

.solar-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.solar-form-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--solar-line);
}

.solar-result-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  margin-bottom: 22px;
  border-radius: 8px;
  background: var(--solar-ink);
  color: #fff;
}

.solar-result-hero h3 {
  color: #fff;
}

.solar-result-hero .solar-eyebrow {
  color: #78e5ba;
}

.solar-result-hero p:last-child {
  color: #d9ebe5;
}

.solar-status-pill {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.solar-status-pill.is-valued {
  border-color: #78e5ba;
  background: rgba(16, 169, 107, 0.24);
  color: #d9fff0;
}

.solar-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid var(--solar-line);
  border-radius: 8px;
}

.solar-metrics article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--solar-line);
}

.solar-metrics article:last-child {
  border-right: 0;
}

.solar-metrics span {
  color: var(--solar-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.solar-metrics strong {
  overflow-wrap: anywhere;
  color: var(--solar-ink);
  font-size: 1.65rem;
}

.solar-metrics small {
  color: var(--solar-primary);
  font-weight: 700;
}

.solar-result-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

.solar-result-panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--solar-line);
  border-radius: 8px;
}

.solar-result-panel h4 {
  margin: 0 0 12px;
  color: var(--solar-ink);
  font-size: 1rem;
  font-weight: 800;
}

.solar-result-panel ul {
  padding-left: 20px;
  color: var(--solar-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.solar-valuation {
  border-top: 4px solid var(--solar-primary);
  background: #f7fbf9;
}

.solar-valuation > p:not(.solar-eyebrow) {
  color: var(--solar-muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.solar-pricing-unresolved {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 3px solid #f59e0b;
  background: #fff8e8;
  color: #7c4a03;
  font-size: 0.8rem;
}

.solar-pricing-unresolved ul {
  margin: 7px 0 0;
  padding-left: 18px;
  color: inherit;
  font-size: inherit;
}

.solar-price-lines {
  display: grid;
  gap: 0;
  margin-top: 14px;
  border-top: 1px solid var(--solar-line);
}

.solar-price-lines > div,
.solar-price-totals > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--solar-line);
}

.solar-price-lines span {
  min-width: 0;
  color: var(--solar-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.solar-price-lines strong,
.solar-price-totals dd {
  margin: 0;
  color: var(--solar-ink);
  font-size: 0.82rem;
  white-space: nowrap;
}

.solar-price-totals {
  margin: 10px 0 0;
}

.solar-price-totals dt {
  color: var(--solar-muted);
  font-size: 0.78rem;
}

.solar-price-totals .solar-price-total {
  align-items: baseline;
  border-bottom: 0;
  padding-top: 13px;
}

.solar-price-totals .solar-price-total dt,
.solar-price-totals .solar-price-total dd {
  color: var(--solar-ink);
  font-size: 1rem;
  font-weight: 850;
}

.solar-pricing-revision {
  display: block;
  margin-top: 8px;
  color: var(--solar-muted);
  font-size: 0.75rem;
}

.solar-future-modules {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.solar-future-modules span {
  padding: 7px 9px;
  border-radius: 5px;
  background: #e8efeb;
  color: #374151;
  font-size: 0.75rem;
  font-weight: 700;
}

.solar-warnings {
  display: grid;
  gap: 7px;
}

.solar-warning {
  padding: 10px;
  border-left: 3px solid #f59e0b;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.8rem;
}

.solar-output-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.solar-proposal-result {
  margin-top: 16px;
  padding: 15px;
  border-radius: 7px;
  background: var(--solar-primary-soft);
  overflow-wrap: anywhere;
  font-size: 0.84rem;
}

.solar-proposal-result a {
  color: var(--solar-navy);
  font-weight: 800;
}

.solar-dialog {
  width: min(760px, calc(100% - 30px));
  padding: 24px;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.solar-dialog::backdrop {
  background: rgba(6, 21, 13, 0.58);
}

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

.solar-dialog-head h3 {
  margin: 0;
  font-size: 1.2rem;
}

.solar-dialog-head > button {
  border: 0;
  background: transparent;
  font-size: 1.65rem;
  cursor: pointer;
}

.solar-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 18px 0;
}

.solar-search-results {
  display: grid;
  gap: 9px;
  max-height: 430px;
  overflow-y: auto;
}

.solar-search-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 13px;
  border: 1px solid var(--solar-line);
  border-radius: 7px;
}

.solar-search-item p {
  margin: 3px 0 0;
  color: var(--solar-muted);
  font-size: 0.78rem;
}

.solar-roof__candidates {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: #f7fafd;
}
.solar-roof__candidates-title {
  margin: 0 0 2px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #5a6b7d;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.solar-roof__candidate {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #d3dde8;
  border-radius: 8px;
  background: #fff;
  color: #1f2d3d;
  font-size: 0.8125rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}
.solar-roof__candidate.active {
  border-color: #1d4ed8;
  background: #eef4ff;
  font-weight: 600;
}

@media (max-width: 900px) {
  .solar-module__topbar {
    flex-direction: column;
  }

  .solar-module__top-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .solar-save-state {
    margin-left: auto;
  }

  .solar-form-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .solar-metrics article:nth-child(2) {
    border-right: 0;
  }

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

@media (max-width: 640px) {
  .solar-roof {
    padding: 12px;
  }

  .solar-roof__head,
  .solar-roof__foot {
    grid-template-columns: minmax(0, 1fr);
  }

  .solar-roof__head {
    display: grid;
  }

  .solar-roof__tabs {
    width: 100%;
  }

  .solar-roof__frame {
    height: 360px;
  }

  .solar-roof__tool-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solar-roof__settings-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .solar-roof__setting {
    justify-content: space-between;
  }

  .solar-roof__setting select {
    min-height: 44px;
    flex: 1;
    max-width: 70%;
  }

  .solar-roof__mode-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .solar-roof__mode:last-child {
    grid-column: 1 / -1;
  }

  .solar-roof__mode {
    min-height: 44px;
    white-space: normal;
  }

  .solar-roof__tool-row .solar-button {
    width: 100%;
    white-space: normal;
  }

  .solar-module__top-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solar-save-state {
    grid-column: 1 / -1;
    width: 100%;
    margin-left: 0;
    text-align: left;
  }

  .solar-form-grid--two,
  .solar-form-grid--three,
  .solar-result-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .solar-span-two {
    grid-column: auto;
  }

  .solar-map-band,
  .solar-result-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .solar-map-band .solar-button {
    width: 100%;
  }

  .solar-check-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .solar-metrics article {
    padding: 14px;
  }

  .solar-metrics strong {
    font-size: 1.35rem;
  }

  .solar-output-actions,
  .solar-form-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .solar-output-actions .solar-button,
  .solar-form-footer .solar-button {
    width: 100%;
  }

  .solar-search-row,
  .solar-search-item {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Keep FV commands usable on touch screens without changing application logic. */
#solar-root .solar-button,
#solar-root .solar-roof__tab {
  min-height: 44px;
  min-width: 44px;
}
