.builder {
  --studio-paper: #fdfcf8;
  --studio-line: #ded9ce;
  --studio-accent: #937334;
  --studio-active: #f4efe2;
  width: min(calc(100% - var(--gutter) * 2), 1560px);
}

.storefront .builder { padding-top: clamp(16px, 1.6vw, 24px); }
.builder .crumb { margin-bottom: 4px; }
.builder-header { margin-bottom: 22px; }
.storefront .builder h1 { font-size: clamp(32px, 3.15vw, 52px); margin-bottom: 0; }
.builder-models { margin-bottom: 20px; }
.builder-model-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }

.builder-layout {
  display: grid;
  grid-template-columns: minmax(0,1.56fr) minmax(0,1.06fr) minmax(0,.9fr);
  grid-template-areas: 'visual settings inspector' 'summary settings inspector';
  gap: 20px;
  align-items: start;
}
.builder-panel {
  min-width: 0;
  align-self: start;
  border: 1px solid var(--studio-line);
  background: var(--studio-paper);
}
.builder-visual { grid-area: visual; }
.builder-controls { grid-area: settings; }
.builder-inspector { grid-area: inspector; position: sticky; top: 14px; }
.builder-summary { grid-area: summary; }
.builder-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 67px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--studio-line);
}
.builder-panel-head .kicker, .builder-inspector-body .kicker { margin: 0 0 3px; }
.builder-panel-head .kicker:empty { display: none; }
.builder-panel-head h2 { margin: 0; font-size: clamp(26px, 2.1vw, 35px); }
.builder-panel-meta { color: var(--muted); font-size: .72rem; text-align: right; }
.builder-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--studio-line);
}
.builder-switch button {
  min-height: 44px;
  padding: 7px 4px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: .82rem;
}
.builder-switch button:hover { background: var(--studio-active); }
.builder-switch button[aria-pressed="true"] { border-bottom-color: var(--studio-accent); background: var(--studio-active); color: var(--ink); font-weight: 800; }
.builder-visual .builder-switch { margin: 10px 12px 0; border: 1px solid var(--studio-line); }
.builder-preview-inner { padding: 10px 12px 0; }
.builder-preview { background: #eeebe3; }
.builder-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.builder-image-button:active { transform: none; }
.builder-stage {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1.44;
  max-height: min(52vh, 480px);
  overflow: hidden;
  background: radial-gradient(ellipse at 52% 37%, #fffdf7 8%, #eeeae0 73%, #e9e3d7 100%);
}
.builder-stage img { width: 100%; height: 100%; object-fit: contain; }
.builder-stage.is-layered img { position: absolute; inset: 0; padding: 6%; }
.builder-stage:has(> :is(.type3-aligned-layer, .supplier-cabinet-crop)) { container-type: size; }
.builder-stage.is-layered > :is(.type3-aligned-layer, .supplier-cabinet-crop) {
  --layer-size: min(88cqw, calc(100cqh - 12cqw));
  inset: 50% auto auto 50%;
  width: var(--layer-size);
  height: var(--layer-size);
  padding: 0;
  transform: translate(-50%, -50%);
}
.supplier-cabinet-crop[data-cabinet-part="interior"][data-supplier-angle="05"] {
  /* The detached front is part of the module, not the empty cabinet. */
  clip-path: polygon(0 0, 63% 0, 61% 38%, 56% 64%, 54% 100%, 0 100%);
}
.supplier-cabinet-crop[data-cabinet-part="interior"][data-supplier-angle="06"] {
  clip-path: inset(0 0 0 40%);
}
.supplier-cabinet-crop[data-cabinet-part="foreground"][data-supplier-angle="05"] {
  /* Keep the near cabinet post and the drawer front ahead of the insert. */
  clip-path: polygon(0 0, 25.5% 0, 36% 60.25%, 56.25% 45.75%, 57.5% 37.5%, 60% 36.75%, 100% 0, 100% 100%, 0 100%);
}
.supplier-cabinet-crop[data-cabinet-part="foreground"][data-supplier-angle="06"] {
  /* View 06: retain the drawer front and near side panel over the insert. */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 73.7% 100%, 88.3% 0.1%, 30% 0.1%, 30% 100%, 0 100%);
}
.supplier-cabinet-crop[data-cabinet-part="basket-post"] {
  /* The nearest cabinet leg occludes the rear end of the basket slides. */
  clip-path: polygon(9.8% 0, 24.2% 0, 32.6% 74.5%, 28% 79.7%, 22.5% 76%);
}
.type3-module-layer { position: absolute; }
.builder-stage > :is(.type3-module-closeup, .type3-inset-scene) {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  max-height: none;
  background: none;
}
.builder-stage > .type3-module-closeup {
  transform: scale(1.6);
  transform-origin: 37% 69%;
}
.builder-stage > .type3-inset-scene { width: 76%; }
.builder-stage > .type3-module-inset {
  position: absolute;
  inset: auto 3% 6% auto;
  width: min(22%, 170px);
  height: auto;
  border: 1px solid var(--studio-line, #ded9ce);
  border-radius: 4px;
  background: #fffdf8;
}
.builder-angle-stage > .type3-inset-scene { width: 100%; }
.builder-angle-stage > .type3-module-inset { display: none; }
.type3-worktop-edge {
  clip-path: polygon(0 0, 89.4% 0, 89.4% 17%, 63% 24%, 33% 20%, 0 15.5%);
}
.builder-stage.is-layered > .type3-rear-worktop {
  /* Align the oversized supplier layer to the rear cabinet footprint. */
  transform-origin: top left;
  transform: translate(-50%, -50%) translate(10.5%, 3.3%) matrix(.7611, .0179, .5333, .7143, 0, 0);
}
.builder-stage.is-layered > .type3-caster-fit {
  /* Let the tires extend below the legs while the far caster stays occluded. */
  transform: translate(-50%, -48%);
}
.builder-preview .builder-stage { max-height: min(45vh, 430px); }
.builder-preview figcaption {
  padding: 8px 12px;
  border-top: 1px solid var(--studio-line);
  color: var(--muted);
  background: var(--studio-paper);
  font-size: .76rem;
  line-height: 1.35;
}
.builder-preview-foot { display: flex; justify-content: end; padding: 7px 12px; }
.builder-gallery-toggle, .builder-edit, .builder-save {
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: var(--gold-dark);
  font-size: .8rem;
  font-weight: 800;
}
.builder-gallery-toggle:hover, .builder-edit:hover, .builder-save:hover { text-decoration: underline; }
.builder-angles {
  display: grid;
  grid-auto-columns: minmax(0,1fr);
  grid-auto-flow: column;
  gap: 6px;
  margin-top: 8px;
}
.builder-angles button {
  min-width: 0;
  padding: 2px;
  border: 1px solid var(--studio-line);
  background: transparent;
}
.builder-angles button[aria-pressed="true"], .builder-angles button:hover { border-color: var(--studio-accent); }
.builder-angle-stage { aspect-ratio: 1.42; }
.builder-inspector-media { display: flex; align-items: center; background: #edeae2; }
.builder-inspector-media > * { flex: 1 1 0; width: 0; min-width: 0; }
.builder-inspector-media > img { height: clamp(135px, 13vw, 205px); object-fit: contain; }
.builder-inspector-media .builder-stage { max-height: 200px; }
.builder-inspector-body { padding: 14px 16px 0; }
.builder-inspector-body h3 { margin-bottom: 7px; font-size: clamp(24px, 2vw, 34px); }
.builder-inspector-body > .muted { font-size: .87rem; }
.builder-inspector-price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  margin-top: 16px;
  padding-block: 12px;
  border-top: 1px solid var(--studio-line);
  font-size: .81rem;
}
.builder-inspector-price strong { font-size: 1rem; white-space: nowrap; }
.builder-summary-list { padding: 0 16px; }
.builder-summary-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--studio-line);
  font-size: .8rem;
}
.builder-summary dt { color: var(--muted); }
.builder-summary dd { text-align: right; font-weight: 700; }
.builder-price-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 16px 0;
  font-size: .75rem;
}
.builder-price-breakdown > div { display: flex; justify-content: space-between; gap: 4px; flex-wrap: wrap; }
.builder-choice, .builder-part {
  position: relative;
  display: flex;
  gap: 7px;
  align-items: center;
  min-width: 0;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--studio-line);
  cursor: pointer;
  line-height: 1.25;
}
.builder-choice > span, .builder-part > span { min-width: 0; overflow-wrap: anywhere; }
.builder-models .builder-choice { min-height: 64px; gap: 10px; background: var(--studio-paper); }
.builder-choice img { flex: 0 0 62px; width: 62px; height: 50px; object-fit: contain; }
.builder-choice input[type=radio] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: inherit; margin: 0; }
.builder-part input { flex: none; }
.builder-choice:has(input:checked), .builder-part:has(input:checked) { border-color: var(--studio-accent); background: var(--studio-active); }
.builder-choice:has(input:focus-visible), .builder-part:has(input:focus-visible) { outline: 2px solid var(--studio-accent); outline-offset: 2px; }
.builder-choice:hover, .builder-part:hover { border-color: var(--studio-accent); }
.builder-choice small, .builder-part small { display: block; margin-top: 3px; color: var(--muted); font-size: .73rem; font-weight: 600; }
.builder-finish { padding: 14px 16px 16px; }
.builder-finish > * + * { margin-top: 20px; }
.builder-finish legend, .builder-field { margin-bottom: 6px; font-size: .83rem; font-weight: 800; }
.builder-choices { display: grid; gap: 8px; }
.builder-finish .builder-choice { min-height: 45px; gap: 10px; }
.builder-choice-copy { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 4px 10px; flex-wrap: wrap; }
.builder-choice-copy small { margin-top: 0; }
.builder-models .builder-choice-copy { display: block; }
.builder-sample { flex: 0 0 23px; height: 23px; border: 1px solid #49413140; border-radius: 50%; background: #f3efe6; }
.builder-sample.sample-graphite { background: #35342e; }
.builder-sample.sample-oak { background: #b18b56; }
.builder-sample.sample-dark { background: #5d4534; }
.builder-sample.sample-teffi { background: #c4c0ae; }
.builder-sample.sample-birch { background: #d7c8a2; }
.builder-field { display: block; }
.builder-field select { width: 100%; min-height: 44px; margin-top: 6px; font-size: .88rem; }
.builder-base-equipment fieldset + fieldset { margin-top: 14px; }
.builder-base-equipment .builder-choice { border-radius: 5px; background-color: #fffdf8; }
.builder-base-equipment .builder-choice:has(input:checked) { background-color: var(--studio-active); }
.builder-components details {
  margin-top: 8px;
  padding: 0 10px;
  border: 1px solid var(--studio-line);
  border-radius: 6px;
  background: #faf7ef;
}
.builder-components summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 6px;
  list-style: none;
  font-size: .88rem;
  font-weight: 800;
  cursor: pointer;
}
.builder-components summary::marker { content: ''; }
.builder-components summary::-webkit-details-marker { display: none; }
.builder-components summary::after {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-right: 2px solid var(--studio-accent);
  border-bottom: 2px solid var(--studio-accent);
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.builder-components details[open] summary::after { transform: rotate(225deg); }
.builder-components details:hover { border-color: var(--studio-accent); }
.builder-components summary:focus-visible { outline: 2px solid var(--studio-accent); outline-offset: -3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  .builder-components summary::after { transition: none; }
}
.builder-slot-note { margin: -2px 2px 9px; }
.builder-parts {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,145px),1fr));
  gap: 7px;
  padding-bottom: 10px;
}
.builder-part {
  display: grid;
  position: relative;
  align-content: start;
  gap: 6px;
  min-height: 123px;
  padding: 10px 25px 10px 10px;
  border-radius: 5px;
  background: #fffdf8;
}
.builder-part input {
  position: absolute;
  top: 10px;
  right: 9px;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--studio-accent);
}
.builder-part-photo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 4px;
  background: #f1eee5;
}
.builder-part-copy { display: grid; gap: 3px; }
.builder-part-name { font-size: .8rem; font-weight: 750; }
.builder-part-price { color: var(--gold-dark); font-size: .8rem; }
.builder-part .builder-part-sku { margin: 0; font-size: .68rem; font-weight: 500; }
.builder-selection { padding: 12px; }
.builder-selection h3 { font-size: 24px; margin-bottom: 8px; }
.builder-selection ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; max-height: 116px; overflow: auto; }
.builder-selection li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--studio-line);
  background: var(--studio-paper);
  font-size: .74rem;
}
.builder-selection img { width: 34px; height: 34px; object-fit: contain; }
.builder-checkout {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 4px 10px;
  align-items: center;
  margin: 12px 16px 16px;
  padding: 9px 10px;
  border: 1px solid var(--studio-line);
  background: #fbf7ec;
}
.builder-price > * { display: block; }
.builder-price span { font-size: .74rem; color: var(--muted); }
.builder-price output { font-size: clamp(25px, 2.4vw, 36px); font-weight: 800; line-height: 1.15; }
.builder-cart-link { display: inline-flex; align-items: center; gap: 8px; grid-column: 1/-1; justify-self: start; color: var(--gold-dark); font-size: .82rem; font-weight: 800; }
.builder-cart-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.builder-save { justify-self: start; grid-column: 1/-1; text-align: left; }
.builder-checkout .form-status { grid-column: 1/-1; }
.builder-dialog {
  width: min(92vw, 960px);
  max-width: none;
  padding: 0;
  border: 1px solid var(--studio-line, #ded9cc);
  background: #eeebe4;
}
.builder-dialog::backdrop { background: #22231ebb; }
.builder-dialog form { position: absolute; top: 10px; right: 10px; z-index: 1; }
.builder-dialog .icon { background: #fff; font-size: 27px; }
.builder-dialog .builder-stage { max-height: 82vh; }
.builder-gallery { width: min(94vw, 1000px); max-height: 90dvh; overflow: auto; background: #fdfbf6; }
.builder-gallery-header {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 60px;
  padding: 12px 62px 12px 20px;
  border-bottom: 1px solid #ded9cc;
  background: #fdfbf6;
}
.storefront .builder-gallery-header h2 { margin: 0; font-size: clamp(24px, 4vw, 34px); }
.builder-gallery-list, .builder-gallery-detail { padding: clamp(12px, 2.5vw, 22px); }
.builder-gallery-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 15px; }
.builder-gallery-filters button, .builder-gallery-action {
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid #ded9cc;
  background: #fffdf8;
  color: var(--ink);
  font-size: .82rem;
}
.builder-gallery-filters button[aria-pressed="true"] { border-color: #8a6c36; background: #eee4ce; }
.builder-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(150px,1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.builder-gallery-grid button {
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid #ded9cc;
  background: #fffdf8;
  color: var(--ink);
  text-align: start;
}
.builder-gallery-grid button:hover, .builder-gallery-action:hover { border-color: #8a6c36; }
.builder-gallery-grid img { width: 100%; aspect-ratio: 1.22; object-fit: contain; background: #eeeae0; }
.builder-gallery-grid span { padding: 7px 9px; font-size: .78rem; overflow-wrap: anywhere; }
.builder-gallery-detail figure { margin: 10px 0; }
.builder-gallery-media {
  display: grid;
  place-items: center;
  height: min(55dvh, 620px);
  padding: 8px;
  background: radial-gradient(ellipse, #fffdf7, #eeeae0);
}
.builder-gallery-media > * { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.builder-gallery-detail figcaption { padding: 8px 0; font-weight: 700; }
.builder-gallery-navigation { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.builder-gallery-navigation button:disabled { opacity: .45; }

/* The source photographs have one finish. Only the matching surfaces receive a tint. */
.supplier-scene {
  position: absolute;
  inset: 0;
  container-type: size;
}
.supplier-scene img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(88cqw, 88cqh);
  height: min(88cqw, 88cqh);
  transform: translate(-50%, -50%);
}
.supplier-dark-oak, .supplier-scene:not([data-silhouette^="type1-"])[data-body=oak] img:first-child { filter: brightness(.65) sepia(.68) saturate(1.12); }
.supplier-scene:not([data-silhouette^="type1-"])[data-body=graphite] img:first-child { filter: grayscale(.86) brightness(.39) contrast(1.12); }
.supplier-scene[data-silhouette=type4-front] .supplier-top {
  clip-path: polygon(0 7%,26% 5.9%,89.1% 9%,89.6% 12.9%,91.2% 12.9%,88.6% 38.9%,83.2% 38.2%,84.4% 15%,64.3% 18.7%,0 11.7%);
}
.supplier-scene[data-silhouette=type4-rear] .supplier-top {
  clip-path: polygon(0 15.9%,47.4% 9.1%,98.4% 19.7%,99% 23%,47.1% 38.5%,0 19.4%);
}
.supplier-scene[data-silhouette^=type4][data-top=oak] .supplier-top { filter: sepia(.88) saturate(1.28) brightness(1.38); }
.supplier-scene[data-top=dark] .supplier-top { filter: sepia(.46) saturate(.8) brightness(.61); }
.supplier-scene[data-top=white] .supplier-top { filter: grayscale(.96) brightness(1.53) contrast(.75); }

/* Align the finish masks to the frames from the original TYPE1 3D animation. */
.supplier-scene[data-silhouette^="type1-"] { mix-blend-mode: multiply; }
.supplier-scene[data-silhouette^="type1-"]:not([data-silhouette=type1-drawer]) img:first-child {
  clip-path: polygon(0 0, 76% 0, 76% 3.6%, 100% 3.6%, 100% 100%, 0 100%);
}
.supplier-scene[data-silhouette^="type1-"] img {
  width: min(100cqw, calc(100cqh * var(--photo-ratio)));
  height: min(100cqh, calc(100cqw / var(--photo-ratio)));
}
.supplier-scene[data-silhouette^="type1-"] .supplier-top { clip-path: var(--worktop-mask); }
.supplier-scene[data-silhouette^="type1-"] .supplier-body { clip-path: var(--body-mask); }
.supplier-scene[data-body=graphite] .supplier-body { filter: grayscale(.88) brightness(.37) contrast(1.04); }
.supplier-scene[data-body=oak] .supplier-body { filter: grayscale(.55) sepia(.72) brightness(.52) saturate(1.32); }
.supplier-scene[data-silhouette^="type1-"][data-top=white] .supplier-top { filter: grayscale(.94) brightness(2.25) contrast(.45); }
.supplier-scene[data-silhouette=type1-open] {
  --photo-ratio: 0.895522;
  --worktop-mask: polygon(16.67% 20.40%, 59.72% 11.44%, 100.00% 20.15%, 100.00% 23.38%, 48.61% 35.32%, 20.56% 22.64%, 22.22% 43.28%, 18.33% 44.28%);
  --body-mask: polygon(20.56% 22.64%, 48.61% 35.07%, 75.83% 29.35%, 73.89% 55.97%, 71.94% 71.39%, 68.89% 71.39%, 56.94% 64.18%, 35.83% 72.39%, 25.00% 64.68%, 22.22% 42.04%);
}
.supplier-scene[data-silhouette=type1-front] {
  --photo-ratio: 0.895522;
  --worktop-mask: polygon(18.33% 32.09%, 21.11% 14.93%, 75.56% 14.18%, 90.83% 29.60%, 90.83% 30.85%, 18.33% 32.84%);
  --body-mask: polygon(22.50% 32.84%, 81.39% 31.09%, 75.56% 16.42%, 90.56% 15.17%, 86.67% 52.24%, 77.22% 53.98%, 76.11% 64.43%, 53.61% 65.42%, 54.17% 76.37%, 52.22% 75.37%, 50.28% 65.17%, 25.28% 66.17%);
}
.supplier-scene[data-silhouette=type1-storage] {
  --photo-ratio: 0.895522;
  --worktop-mask: polygon(0.00% 6.47%, 7.78% 5.97%, 100.00% 6.22%, 100.00% 11.69%, 0.00% 9.70%);
  --body-mask: polygon(6.39% 9.20%, 97.22% 11.44%, 93.06% 73.13%, 65.00% 71.14%, 59.44% 85.07%, 59.17% 98.51%, 57.50% 98.51%, 56.67% 85.32%, 25.83% 82.59%, 25.00% 69.15%, 9.72% 67.91%);
}
.supplier-scene[data-silhouette=type1-folded] {
  --photo-ratio: 0.895522;
  --worktop-mask: polygon(7.50% 20.90%, 51.67% 0.00%, 83.06% 4.48%, 84.17% 5.97%, 81.94% 32.59%, 47.22% 64.18%, 46.39% 31.09%, 14.72% 23.38%, 16.67% 50.00%, 11.94% 52.49%);
  --body-mask: polygon(15.00% 23.38%, 46.39% 31.09%, 75.56% 38.31%, 73.89% 57.71%, 63.06% 67.16%, 61.94% 65.42%, 45.28% 84.58%, 22.78% 76.37%, 21.11% 75.37%);
}
.supplier-scene[data-silhouette=type1-drawer] {
  --photo-ratio: 1.176471;
  --worktop-mask: polygon(6.39% 32.35%, 32.50% 5.88%, 80.83% 7.84%, 76.94% 37.58%);
  --body-mask: polygon(1.94% 20.59%, 16.67% 20.92%, 6.39% 33.01%, 76.94% 37.91%, 78.61% 23.86%, 84.72% 26.80%, 86.67% 32.03%, 75.83% 46.41%, 75.83% 54.58%, 94.17% 58.50%, 91.67% 84.31%, 58.61% 79.41%, 58.61% 92.48%, 55.83% 94.44%, 49.72% 87.58%, 48.06% 79.74%, 6.67% 74.84%);
}

@media (max-width: 1060px) {
  .builder-layout {
    grid-template-columns: minmax(0,1.15fr) minmax(0,1fr);
    grid-template-areas: 'visual settings' 'summary settings' 'summary inspector';
  }
  .builder-inspector { position: static; }
}

@media (max-width: 660px) {
  .builder { width: calc(100% - var(--gutter) * 2); }
  .builder-layout {
    grid-template-columns: minmax(0,1fr);
    grid-template-areas: 'visual' 'settings' 'inspector' 'summary';
    row-gap: 16px;
  }
  .builder-models { margin-bottom: 16px; }
  .builder-model-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .builder-models .builder-choice { min-height: 49px; }
  .builder-choice img { flex-basis: 37px; width: 37px; height: 37px; }
  .builder-panel-head { min-height: 54px; padding: 9px 12px; }
  .builder-preview-inner { padding: 7px 8px 0; }
  .builder-preview .builder-stage { max-height: min(32vh, 290px); }
  .builder-angle-stage { max-height: 54px; }
  .builder-gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .builder-finish { padding-inline: 12px; }
}
@media (max-width: 360px) {
  .builder-choice { padding-inline: 6px; gap: 5px; }
  .builder-parts { grid-template-columns: 1fr; }
  .builder-checkout .button { font-size: .77rem; padding-inline: 8px; }
}
