:root {
  --dark: #101624;
  --brand-blue: #081c3a;
  --dark-2: #080a0f;
  --green: #20a35b;
  --green-2: #47c77c;
  --paper: #f4f5f7;
  --card: #ffffff;
  --line: #dfe3ea;
  --text: #1a202c;
  --muted: #718096;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background: var(--paper);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.config-header,
.estimate-header {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 62px;
  padding: 12px clamp(18px, 4vw, 44px);
  color: #fff;
  background: var(--brand-blue);
  box-shadow: 0 8px 24px rgba(16, 22, 36, 0.18);
}

.config-header {
  color: #fff;
  background: #050505;
  box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 10px 28px rgba(0,0,0,.2);
  backdrop-filter: blur(18px);
}

.logo-lockup {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.logo-lockup img {
  display: block;
  width: clamp(108px, 12vw, 138px);
  height: auto;
}

.header-divider {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.18);
}

.config-header p,
.estimate-header p {
  max-width: 320px;
  margin: 0;
  color: rgba(8, 28, 58, 0.62);
  line-height: 1.25;
}

.config-header p {
  color: rgba(255, 255, 255, .64);
}

.mini-link {
  margin-left: auto;
  padding: 8px 12px;
  color: var(--brand-blue);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(8,28,58,.16);
  border-radius: 999px;
}

.config-header .mini-link {
  color: #fff;
  border-color: rgba(255, 255, 255, .24);
}

.single-screen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
  gap: clamp(16px, 2.5vw, 30px);
  width: min(1500px, calc(100% - 32px));
  height: calc(100vh - 62px);
  min-height: 710px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 28px) 0;
}

.visual-column {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 16px;
  min-width: 0;
}

.render-card,
.controls-card,
.view-strip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.render-card {
  display: grid;
  align-items: center;
  padding: clamp(10px, 2vw, 18px);
}

.render-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  background: #d9dde5;
}

.image-stack,
.image-stack img,
.render-loader {
  position: absolute;
  inset: 0;
}

.image-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.render-watermark {
  position: absolute;
  right: clamp(12px, 2.2vw, 30px);
  bottom: clamp(10px, 2vw, 26px);
  z-index: 19;
  width: clamp(86px, 18%, 220px);
  height: auto;
  pointer-events: none;
  opacity: .8;
}

.image-stack img.is-layer-fading-in {
  animation: render-layer-fade-in 1s linear both;
}

.image-stack img.is-layer-fading-out {
  animation: render-layer-fade-out 1s linear both;
}

@keyframes render-layer-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes render-layer-fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .image-stack img.is-layer-fading-in,
  .image-stack img.is-layer-fading-out {
    animation: none;
  }
}

.render-loader {
  z-index: 20;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
  background: rgba(244,245,247,.88);
  transition: opacity .2s ease;
}

.render-loader.is-hidden {
  pointer-events: none;
  opacity: 0;
}

.config-view-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.config-view-card {
  min-width: 0;
  padding: 5px;
  color: #64748b;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}

.config-view-card:hover {
  transform: translateY(-2px);
}

.config-view-card.is-active {
  color: var(--brand-blue);
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(32, 163, 91, .12), 0 8px 22px rgba(15, 23, 42, .08);
}

.config-view-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 9px;
  background: #d9dde5;
}

.config-view-card strong {
  display: block;
  padding: 6px 4px 3px;
  overflow: hidden;
  font-size: .68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.view-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
}

.view-strip span,
.control-title span,
legend,
.estimate-kicker,
.estimate-card > span,
.proposal-id-card span {
  color: #7b8794;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.view-strip strong {
  display: block;
  margin-top: 3px;
  color: #2d3748;
  font-size: 1rem;
}

.controls-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 0;
  padding: 18px;
  overflow: hidden;
}

.control-title h1 {
  margin: 5px 0 3px;
  color: #111827;
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.control-title p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.control-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.config-utility-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 6px;
}

.utility-button {
  min-height: 28px;
  padding: 0 9px;
  color: #64748b;
  font-size: .6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.utility-button:hover:not(:disabled) {
  color: var(--brand-blue);
  border-color: rgba(8, 28, 58, .35);
}

.utility-button:disabled {
  cursor: default;
  opacity: .38;
}

.config-panel {
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.config-group {
  margin-bottom: 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.config-group:focus-within {
  border-color: rgba(32, 163, 91, .48);
  box-shadow: 0 0 0 3px rgba(32, 163, 91, .08);
}

.config-group-heading {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  color: var(--brand-blue);
  text-align: left;
  border: 0;
  background: #fff;
}

.config-group-heading > span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.config-group-heading small {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  color: #fff;
  font-size: .58rem;
  border-radius: 50%;
  background: var(--brand-blue);
}

.config-group-heading strong {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.config-group-heading em {
  max-width: 52%;
  overflow: hidden;
  color: #7b8794;
  font-size: .62rem;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.config-group-heading::after {
  content: "-";
  color: var(--green);
  font-size: 1rem;
  font-weight: 900;
}

.config-group.is-collapsed .config-group-heading::after {
  content: "+";
}

.config-group-body {
  padding: 4px 11px 12px;
  border-top: 1px solid #edf0f4;
}

.config-group.is-collapsed .config-group-body {
  display: none;
}

.config-group-body fieldset:first-child {
  margin-top: 9px;
}

.config-group-body fieldset:last-child {
  margin-bottom: 0;
}

.future-options {
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed #d5dce5;
  border-radius: 10px;
  background: #f8fafc;
}

.future-options span {
  color: var(--green);
  font-size: .58rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.future-options p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.35;
}

.final-group {
  border-color: rgba(32, 163, 91, .28);
  background: #f8fcfa;
}

.final-group .config-group-heading,
.final-group .config-group-body {
  background: #f8fcfa;
}

.configuration-review {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.configuration-review div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-bottom: 1px solid #edf0f4;
}

.configuration-review div:last-child {
  border-bottom: 0;
}

.configuration-review span {
  color: #7b8794;
  font-size: .58rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.configuration-review strong {
  max-width: 66%;
  color: var(--brand-blue);
  font-size: .67rem;
  text-align: right;
}

.configuration-review.compact {
  margin: 9px 0;
}

.configuration-review.modal-review {
  margin: 4px 0 14px;
}

.workflow-footer {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.workflow-footer .info-button {
  width: 100%;
}

fieldset {
  padding: 0;
  margin: 0 0 14px;
  border: 0;
}

legend {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 8px;
}

legend small {
  max-width: 160px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.option-label,
.proposal-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
}

.option-label strong {
  max-width: 60%;
  color: var(--brand-blue);
  text-align: right;
}

.proposal-step {
  margin: 0;
  color: #7b8794;
  text-transform: uppercase;
  letter-spacing: .12em;
}

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

.turf-type-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 9px;
}

.turf-type-row .segment-button {
  min-height: 38px;
  padding: 5px 7px;
  font-size: .62rem;
  line-height: 1.15;
}

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

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

.swatch-grid.turf {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.swatch-grid.turf.is-refreshing .swatch-button {
  animation: turf-color-fade-in .65s ease both;
}

.swatch-grid.turf.is-refreshing .swatch-button:nth-child(2) {
  animation-delay: .05s;
}

.swatch-grid.turf.is-refreshing .swatch-button:nth-child(3) {
  animation-delay: .1s;
}

.swatch-grid.turf.is-refreshing .swatch-button:nth-child(4) {
  animation-delay: .15s;
}

.swatch-grid.turf.is-refreshing .swatch-button:nth-child(5) {
  animation-delay: .2s;
}

@keyframes turf-color-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .swatch-grid.turf.is-refreshing .swatch-button {
    animation: none;
  }
}

.segment-button,
.option-card,
.small-button,
.icon-button {
  min-height: 32px;
  color: #2d3748;
  font-size: 0.74rem;
  font-weight: 900;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.segment-button.is-active,
.option-card.is-active {
  color: #fff;
  border-color: var(--dark);
  background: var(--dark);
}

.swatch-button {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 4px;
  color: #334155;
  font-size: 0.68rem;
  font-weight: 900;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
}

.swatch-button span {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 9px;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.16);
}

.swatch-button.is-active {
  color: var(--green);
  border-color: var(--green);
  background: rgba(32,163,91,.08);
}

.proposal-mini {
  display: grid;
  gap: 9px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.info-button,
.information-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), #16814a);
  box-shadow: 0 12px 24px rgba(32, 163, 91, 0.25);
}

.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.copy-row input {
  min-width: 0;
  height: 32px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 0.73rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  padding: 12px 14px;
  color: #fff;
  font-size: .85rem;
  font-weight: 900;
  pointer-events: none;
  border-radius: 999px;
  background: var(--dark);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body[data-page="selector"],
body[data-page="panel"] {
  background: #f4f5f7;
}

.model-selector,
.admin-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 6vw, 80px) 0;
}

.selector-copy span,
.admin-heading span,
.proposal-form span {
  color: var(--green);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.admin-kicker {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.admin-kicker small {
  border: 1px solid rgba(16, 24, 40, 0.14);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  text-transform: uppercase;
}

.selector-copy h1,
.admin-heading h1 {
  max-width: 820px;
  margin: 10px 0;
  color: #111827;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: .9;
  letter-spacing: -.08em;
}

.selector-copy p,
.admin-heading p {
  max-width: 720px;
  color: #667085;
  font-size: 1.1rem;
  line-height: 1.6;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.model-card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 4vw, 42px);
  color: #fff;
  text-decoration: none;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(17,24,39,.15), rgba(17,24,39,.92)),
    url("../brand/mejorset-residential-court.webp") center / cover;
  box-shadow: 0 22px 70px rgba(17,24,39,.2);
}

.model-card.featured {
  background:
    linear-gradient(180deg, rgba(17,24,39,.12), rgba(17,24,39,.9)),
    url("../brand/mejorset-paris-project.webp") center / cover;
}

.model-card span {
  color: var(--green-2);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.model-card h2 {
  margin: 8px 0;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: .9;
  letter-spacing: -.07em;
}

.model-card p {
  max-width: 430px;
  color: rgba(255,255,255,.75);
  line-height: 1.55;
}

.model-card strong {
  margin-top: 16px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17,24,39,.55);
  backdrop-filter: blur(12px);
}

.modal-backdrop[hidden] {
  display: none;
}

.proposal-form {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(480px, 100%);
  max-height: calc(100vh - 36px);
  padding: 28px;
  overflow-y: auto;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(17,24,39,.28);
}

.proposal-form .configuration-review span {
  color: #7b8794;
  font-size: .58rem;
  letter-spacing: .08em;
}

.proposal-form h2 {
  margin: 0;
  color: #111827;
  font-size: 2rem;
  letter-spacing: -.06em;
}

.proposal-form label {
  display: grid;
  gap: 7px;
  color: #4b5563;
  font-size: .82rem;
  font-weight: 800;
}

.proposal-form input,
.proposal-form select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #d7dce5;
  border-radius: 12px;
  background: #f8fafc;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  color: #111827;
  border: 1px solid #e4e7ec;
  border-radius: 50%;
  background: #fff;
}

.admin-table-card {
  margin-top: 28px;
  border: 1px solid #e4e7ec;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(17,24,39,.1);
  overflow: hidden;
}

.admin-counters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.admin-counters article {
  padding: 20px;
  border: 1px solid #e4e7ec;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(17, 24, 39, .08);
}

.admin-counters span {
  display: block;
  color: #8a93a3;
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.admin-counters strong {
  display: block;
  margin-top: 8px;
  color: #111827;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.admin-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #e4e7ec;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.admin-table th,
.admin-table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid #edf0f4;
}

.admin-table th {
  color: #8a93a3;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.admin-table td {
  color: #111827;
  vertical-align: top;
}

.admin-table td small {
  display: block;
  margin-top: 4px;
  color: #8a93a3;
}

.admin-table a {
  color: var(--green);
  font-weight: 900;
}

body[data-page="result"] {
  color: #333;
  background: #fff;
}

.estimate-header {
  position: sticky;
  top: 0;
  z-index: 30;
  justify-content: space-between;
  color: #111827;
  background: rgba(255,255,255,.94);
  box-shadow: 0 1px 0 rgba(17,24,39,.08);
  backdrop-filter: blur(18px);
}

.logo-lockup.official {
  color: #111827;
}

.proposal-nav {
  display: flex;
  gap: 22px;
}

.proposal-nav a,
.contact-pill {
  color: #111827;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.contact-pill {
  padding: 11px 15px;
  color: #fff;
  border-radius: 999px;
  background: var(--green);
}

.estimate-shell {
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 72px;
}

.proposal-landing-hero {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(360px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 62px);
  padding: clamp(34px, 6vw, 78px) 0;
  border-bottom: 1px solid #e6e8ec;
}

.estimate-kicker {
  color: var(--green);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .18em;
}

.proposal-hero-copy h1 {
  max-width: 760px;
  margin: 10px 0;
  color: #111827;
  font-size: clamp(3rem, 7vw, 7.8rem);
  line-height: .88;
  letter-spacing: -0.08em;
}

.proposal-hero-copy p,
.information-card p {
  max-width: 680px;
  color: #667085;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.6;
}

.hero-cta-row,
.estimate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.proposal-id-card {
  align-self: start;
  justify-self: end;
  width: min(100%, 250px);
  padding: 18px;
  border: 1px solid #e6e8ec;
  border-radius: 18px;
  background: #f7f8fa;
}

.proposal-id-card span,
.estimate-card > span,
.section-heading span,
.view-card span,
.product-info-card span {
  color: #8a93a3;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.proposal-id-card strong {
  display: block;
  margin: 8px 0;
  color: #111827;
  font-size: 1.5rem;
}

.proposal-id-card small {
  color: #667085;
}

.hero-render-panel {
  grid-column: 2;
  padding: 12px;
  border: 1px solid #e4e7ec;
  border-radius: 26px;
  background: #f4f5f7;
  box-shadow: 0 28px 70px rgba(17,24,39,.16);
}

.render-frame.result {
  border-radius: 18px;
}

body[data-page="result"] .render-loader {
  color: #667085;
  background: rgba(244,245,247,.9);
}

.official-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid #e6e8ec;
}

.official-metrics article {
  min-height: 140px;
  padding: clamp(20px, 3vw, 34px);
  border-right: 1px solid #e6e8ec;
}

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

.official-metrics span {
  display: block;
  margin-bottom: 12px;
  color: #8a93a3;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.official-metrics strong {
  color: #111827;
  font-size: clamp(1.45rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.estimate-info {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 22px;
  padding: clamp(28px, 5vw, 70px) 0 0;
}

.all-views-section {
  padding: clamp(34px, 6vw, 78px) 0;
  border-top: 1px solid #e6e8ec;
  border-bottom: 1px solid #e6e8ec;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading h2 {
  max-width: 680px;
  margin: 0;
  color: #111827;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -.06em;
}

.views-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.view-card {
  padding: 12px;
  border: 1px solid #e4e7ec;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(17,24,39,.08);
}

.view-card.is-main {
  border-color: rgba(32,163,91,.55);
  box-shadow: 0 16px 42px rgba(32,163,91,.16);
}

.mini-render-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 9px;
  border-radius: 11px;
  background: #eef0f4;
}

.view-card strong {
  display: block;
  margin-top: 3px;
  color: #111827;
  font-size: 1.08rem;
}

.estimate-card {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid #e4e7ec;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(17,24,39,.08);
}

.estimate-card h2 {
  margin: 8px 0 14px;
  color: #111827;
  font-size: clamp(1.65rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.spec-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.spec-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #edf0f4;
}

.spec-list dt {
  color: #8a93a3;
}

.spec-list dd {
  color: #111827;
  margin: 0;
  font-weight: 900;
}

.product-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: clamp(34px, 6vw, 78px);
}

.product-info-card {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid #e4e7ec;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(17,24,39,.07);
}

.product-info-card.wide {
  grid-column: span 2;
}

.product-info-card.intro-card {
  background: #111827;
}

.product-info-card.intro-card span,
.product-info-card.intro-card h2,
.product-info-card.intro-card p {
  color: #fff;
}

.product-info-card h2 {
  margin: 8px 0 12px;
  color: #111827;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -.06em;
}

.product-info-card p {
  color: #667085;
  line-height: 1.62;
}

.product-info-card video {
  width: 100%;
  margin-top: 12px;
  border-radius: 14px;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.highlight-grid div {
  padding: 12px;
  border-radius: 13px;
  background: #f4f5f7;
}

.highlight-grid small {
  display: block;
  color: #8a93a3;
  margin-bottom: 5px;
}

.highlight-grid strong {
  color: #111827;
  font-size: 1.05rem;
}

.outline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  color: #111827;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
  border: 1px solid #cfd5df;
  border-radius: 999px;
  background: #fff;
}

.product-info-card.intro-card .outline-link {
  color: #fff;
  border-color: rgba(255,255,255,.25);
  background: transparent;
}

.as-button {
  cursor: pointer;
}

@media (max-width: 980px) {
  .config-header,
  .estimate-header {
    gap: 14px;
  }

  .single-screen {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    min-height: auto;
    padding-bottom: 30px;
  }

  .visual-column {
    min-height: 0;
  }

  .config-view-gallery {
    gap: 8px;
  }

  .render-card {
    min-height: 0;
  }

  .controls-card {
    min-height: auto;
    overflow: visible;
  }

  .config-panel {
    overflow: visible;
  }

  .estimate-hero,
  .estimate-info,
  .product-info-grid {
    grid-template-columns: 1fr;
  }

  .proposal-landing-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 28px 0 42px;
  }

  .proposal-hero-copy h1 {
    font-size: clamp(2.55rem, 12vw, 4.8rem);
  }

  .proposal-hero-copy p {
    max-width: 100%;
    font-size: 1rem;
  }

  .proposal-id-card {
    justify-self: stretch;
    width: 100%;
  }

  .hero-render-panel {
    grid-column: auto;
  }

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

  .official-metrics article {
    border-bottom: 1px solid #e6e8ec;
  }

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

  .model-grid {
    grid-template-columns: 1fr;
  }

  .model-card {
    min-height: 340px;
  }

  .product-info-card.wide {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  body[data-page="configurator"] {
    overflow-x: hidden;
  }

  .config-header,
  .estimate-header {
    gap: 12px;
    padding-inline: 16px;
  }

  .logo-lockup img {
    width: 108px;
  }

  .config-header p,
  .header-divider,
  .mini-link,
  .proposal-nav {
    display: none;
  }

  .estimate-header {
    min-height: 58px;
  }

  .contact-pill {
    max-width: 154px;
    padding: 9px 11px;
    overflow: hidden;
    font-size: .68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .selector-copy h1,
  .admin-heading h1 {
    font-size: clamp(2.4rem, 14vw, 4.2rem);
  }

  .model-card {
    min-height: 300px;
    border-radius: 22px;
  }

  .model-card h2 {
    font-size: clamp(2rem, 12vw, 3.3rem);
  }

  .proposal-landing-hero {
    gap: 14px;
    padding-top: 22px;
  }

  .proposal-hero-copy h1 {
    margin: 8px 0;
    font-size: clamp(2.25rem, 13vw, 3.5rem);
    letter-spacing: -.075em;
  }

  .hero-cta-row {
    margin-top: 16px;
  }

  .official-metrics {
    grid-template-columns: 1fr;
  }

  .official-metrics article {
    min-height: auto;
    padding: 18px 0;
    border-right: 0;
  }

  .views-gallery {
    grid-template-columns: 1fr;
  }

  .single-screen {
    width: min(100% - 20px, 1500px);
    display: block;
    height: auto;
    min-height: auto;
    padding-block: 12px;
  }

  .visual-column {
    gap: 8px;
    margin-bottom: 12px;
  }

  .config-view-gallery {
    grid-template-columns: repeat(4, 112px);
    margin-inline: -10px;
    padding: 2px 10px 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .config-view-gallery::-webkit-scrollbar {
    display: none;
  }

  .config-view-card {
    border-radius: 11px;
  }

  .config-view-card strong {
    font-size: .62rem;
  }

  .render-card {
    padding: 10px;
  }

  .render-frame {
    border-radius: 10px;
  }

  .view-strip {
    display: flex;
    padding: 10px 12px;
  }

  .view-strip span {
    display: none;
  }

  .view-strip strong {
    margin: 0;
    font-size: .78rem;
  }

  .view-strip .small-button {
    min-height: 30px;
    padding-inline: 10px;
    font-size: .65rem;
  }

  .controls-card {
    display: block;
    padding: 14px;
    overflow: visible;
  }

  .control-title h1 {
    font-size: 1.45rem;
  }

  .control-title {
    align-items: start;
  }

  .control-title > div:first-child > span,
  .control-title p {
    display: none;
  }

  .config-utility-actions {
    flex-wrap: nowrap;
  }

  .config-group-heading {
    min-height: 50px;
  }

  .config-group-heading em {
    display: none;
  }

  .workflow-footer {
    position: sticky;
    bottom: 8px;
    z-index: 12;
    margin: 10px -4px -4px;
    padding: 8px;
    border: 1px solid rgba(8, 28, 58, .1);
    border-radius: 14px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 30px rgba(8, 28, 58, .18);
    backdrop-filter: blur(16px);
  }

  fieldset {
    margin-bottom: 16px;
  }

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

  .swatch-grid.turf {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .swatch-button {
    gap: 2px;
    padding: 2px;
    font-size: .6rem;
  }

  .swatch-button span {
    border-radius: 7px;
  }

  .segmented,
  .segmented.four,
  .light-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .view-strip,
  .copy-row {
    grid-template-columns: 1fr;
  }

  .copy-row.compact {
    display: none;
  }

  .proposal-mini {
    margin: 8px -4px -4px;
    padding: 10px;
    border: 1px solid rgba(8, 28, 58, .1);
    border-radius: 14px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 30px rgba(8, 28, 58, .18);
    backdrop-filter: blur(16px);
  }

  .proposal-step {
    justify-content: center;
    font-size: .58rem;
  }

  .proposal-form {
    padding: 22px;
  }

  .admin-table-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Dark proposal experience */
body[data-page="result"] {
  color: #f5f7fa;
  background:
    radial-gradient(circle at 85% 8%, rgba(174, 218, 35, .07), transparent 26rem),
    #050505;
}

body[data-page="result"] .estimate-header {
  color: #fff;
  background: rgba(5, 5, 5, .9);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .1);
}

body[data-page="result"] .proposal-nav a {
  color: rgba(255, 255, 255, .72);
}

body[data-page="result"] .contact-pill {
  color: #071006;
  background: #b9dc20;
}

body[data-page="result"] .estimate-shell {
  width: min(1500px, calc(100% - 32px));
}

body[data-page="result"] .proposal-landing-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: end;
  min-height: min(780px, calc(100vh - 86px));
  margin-top: 24px;
  padding: clamp(34px, 6vw, 86px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 24px;
  background: #090909;
}

.proposal-hero-background,
.proposal-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.proposal-hero-background .image-stack {
  transform: scale(1.025);
}

.proposal-hero-background img {
  filter: brightness(.52) saturate(.86);
}

.proposal-hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .96) 0%, rgba(0, 0, 0, .72) 38%, rgba(0, 0, 0, .12) 75%),
    linear-gradient(0deg, rgba(0, 0, 0, .86), transparent 50%);
}

body[data-page="result"] .proposal-hero-copy {
  align-self: end;
  max-width: 780px;
}

body[data-page="result"] .estimate-kicker {
  color: #b9dc20;
  letter-spacing: .3em;
}

body[data-page="result"] .proposal-hero-copy h1 {
  max-width: 800px;
  margin: 16px 0;
  color: #fff;
  font-size: clamp(3.6rem, 8vw, 8.8rem);
  text-transform: uppercase;
}

body[data-page="result"] .proposal-hero-copy p {
  color: rgba(255, 255, 255, .74);
}

.proposal-view-counter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, .62);
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(0, 0, 0, .38);
  backdrop-filter: blur(12px);
}

.proposal-view-counter strong {
  color: #b9dc20;
}

body[data-page="result"] .hero-id-card {
  align-self: end;
  color: #fff;
  border-color: rgba(255, 255, 255, .2);
  background: rgba(5, 5, 5, .64);
  backdrop-filter: blur(14px);
}

body[data-page="result"] .hero-id-card strong {
  color: #fff;
}

body[data-page="result"] .hero-id-card small {
  color: rgba(255, 255, 255, .58);
}

body[data-page="result"] .official-hero-link,
body[data-page="result"] .estimate-actions .outline-link {
  color: #fff;
  border-color: rgba(255, 255, 255, .24);
  background: transparent;
}

.product-editorial {
  position: relative;
  min-height: clamp(470px, 63vw, 820px);
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 24px;
  background: #111;
}

.product-editorial::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, .92), transparent 62%);
}

.product-editorial img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: brightness(.72) saturate(.86);
}

.product-editorial-copy {
  position: absolute;
  right: clamp(24px, 5vw, 74px);
  bottom: clamp(24px, 5vw, 68px);
  left: clamp(24px, 5vw, 74px);
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.product-editorial-copy span {
  display: block;
  margin-bottom: 10px;
  color: #b9dc20;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .22em;
}

.product-editorial-copy h2 {
  max-width: 800px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 6.5rem);
  line-height: .92;
  letter-spacing: -.07em;
}

body[data-page="result"] .official-metrics {
  margin-top: 28px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px;
  background: #111;
  overflow: hidden;
}

body[data-page="result"] .official-metrics article,
body[data-page="result"] .spec-list div {
  border-color: rgba(255, 255, 255, .1);
}

body[data-page="result"] .official-metrics strong,
body[data-page="result"] .estimate-card h2,
body[data-page="result"] .section-heading h2,
body[data-page="result"] .view-card strong,
body[data-page="result"] .spec-list dd,
body[data-page="result"] .product-info-card h2,
body[data-page="result"] .highlight-grid strong {
  color: #fff;
}

body[data-page="result"] .estimate-card,
body[data-page="result"] .view-card,
body[data-page="result"] .product-info-card {
  color: #fff;
  border-color: rgba(255, 255, 255, .13);
  background: #111;
  box-shadow: none;
}

body[data-page="result"] .information-card {
  position: relative;
  grid-column: 1 / -1;
  order: -1;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  border-color: rgba(185, 220, 32, .38);
  background:
    radial-gradient(circle at 100% 0, rgba(185, 220, 32, .22), transparent 22rem),
    #12150b;
}

body[data-page="result"] .information-card h2 {
  max-width: 650px;
  font-size: clamp(2.6rem, 5vw, 5.8rem);
  text-transform: uppercase;
}

body[data-page="result"] .information-card p,
body[data-page="result"] .product-info-card p {
  color: rgba(255, 255, 255, .64);
}

body[data-page="result"] .information-card p {
  max-width: 760px;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
}

body[data-page="result"] .all-views-section {
  border-color: rgba(255, 255, 255, .12);
}

body[data-page="result"] .mini-render-frame {
  background: #090909;
}

body[data-page="result"] .highlight-grid div {
  background: #080808;
}

body[data-page="result"] .product-info-card.intro-card {
  border-color: rgba(185, 220, 32, .3);
  background: #12150b;
}

.custom-design-cta {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  gap: clamp(22px, 4vw, 52px);
  margin: 28px 0 60px;
  padding: clamp(24px, 5vw, 70px);
  overflow: hidden;
  border: 1px solid rgba(185, 220, 32, .32);
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 100%, rgba(185, 220, 32, .15), transparent 28rem),
    #10120b;
}

.custom-design-copy {
  align-self: center;
}

.custom-design-copy > span {
  color: #b9dc20;
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .24em;
}

.custom-design-copy h2 {
  margin: 14px 0 18px;
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 6rem);
  line-height: .92;
  letter-spacing: -.07em;
  text-transform: uppercase;
}

.custom-design-copy p {
  max-width: 600px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, .66);
  font-size: clamp(.95rem, 1.3vw, 1.18rem);
  line-height: 1.6;
}

.custom-design-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.custom-design-gallery figure {
  position: relative;
  min-height: 190px;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #050505;
}

.custom-design-gallery .custom-design-main {
  grid-column: 1 / -1;
  min-height: clamp(240px, 28vw, 430px);
}

.custom-design-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}

.custom-design-gallery figure:hover img {
  transform: scale(1.025);
}

.custom-design-gallery figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 8px 10px;
  color: #fff;
  font-size: .62rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(0, 0, 0, .56);
  backdrop-filter: blur(12px);
}

@media (max-width: 980px) {
  body[data-page="result"] .proposal-landing-hero {
    grid-template-columns: 1fr;
    align-content: end;
    min-height: 680px;
  }

  body[data-page="result"] .hero-id-card {
    justify-self: start;
    width: min(100%, 300px);
  }

  .admin-counters {
    grid-template-columns: 1fr;
  }

  .custom-design-cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body[data-page="result"] .estimate-shell {
    width: min(100% - 20px, 1500px);
  }

  body[data-page="result"] .proposal-landing-hero {
    min-height: 610px;
    margin-top: 10px;
    padding: 22px;
    border-radius: 18px;
  }

  body[data-page="result"] .proposal-hero-shade {
    background:
      linear-gradient(0deg, rgba(0, 0, 0, .96) 0%, rgba(0, 0, 0, .45) 80%),
      linear-gradient(90deg, rgba(0, 0, 0, .5), transparent);
  }

  body[data-page="result"] .proposal-hero-copy h1 {
    font-size: clamp(2.65rem, 12vw, 3.55rem);
    overflow-wrap: break-word;
  }

  body[data-page="result"] .hero-id-card {
    display: none;
  }

  .product-editorial {
    min-height: 510px;
    margin-top: 14px;
    border-radius: 18px;
  }

  .product-editorial-copy {
    display: block;
  }

  .product-editorial-copy h2 {
    margin-bottom: 18px;
    font-size: clamp(2.3rem, 12vw, 4rem);
  }

  body[data-page="result"] .information-card {
    min-height: 460px;
  }

  .custom-design-cta {
    margin: 14px 0 30px;
    padding: 22px;
    border-radius: 18px;
  }

  .custom-design-copy h2 {
    font-size: clamp(2.25rem, 12vw, 3.5rem);
  }

  .custom-design-gallery {
    grid-template-columns: 1fr;
  }

  .custom-design-gallery .custom-design-main {
    grid-column: auto;
    min-height: 240px;
  }

  .custom-design-gallery figure {
    min-height: 210px;
  }
}
