.preview-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:6px 12px;
  border-radius:0;
}
.preview-toolbar #room-label {text-align:right;line-height:1.25}
@media (max-width:760px) {
  .workspace {
    --room-height-limit:44vh;
  }
  @supports (height:1svh) {
    .workspace {--room-height-limit:44svh}
  }
  .workspace > figure {
    position:sticky;
    top:env(safe-area-inset-top, 0px);
    z-index:3;
    background:white;
    box-shadow:0 5px 14px #152d391c;
  }
  .workspace .room-image {
    width:100%;
    height:auto;
    aspect-ratio:3 / 2;
    max-height:var(--room-height-limit);
    background:#eff0ec;
  }
  .workspace .room-image :is(img,canvas) {position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
  .options :is(input,select,button),#estimate {
    scroll-margin-top:calc(env(safe-area-inset-top, 0px) + min(66.667vw, var(--room-height-limit)) + 68px);
  }
}
.live-preview {
  position:relative;
  flex:none;
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:38px;
  padding:7px 13px;
  border:1px solid #ffffff36;
  border-radius:99px;
  background:#15201fed;
  color:white;
  font-size:.85rem;
  font-weight:600;
  line-height:1.2;
  box-shadow:0 2px 10px #06160f26;
}
.live-preview i {width:8px;height:8px;border-radius:50%;background:#7ce29c;box-shadow:0 0 0 4px #7ce29c21}
.live-preview span {font-size:1.05rem;color:#d3ded9}
.hero-action,.estimate .primary {min-height:50px;gap:24px;padding:6px 7px 6px 20px}
.hero-action {box-shadow:0 4px 16px #111a1a2b}
.action-end {display:grid;place-items:center;width:35px;height:35px;border-radius:50%;background:#203238;color:white;font-size:19px;font-weight:500}
.options {
  --selection-fill:#e8f4fb;
  --selection-line:#bddbeb;
  --accent:var(--site-blue-dark);
  --blue:var(--selection-fill);
}
.estimate {background:var(--selection-fill);border-color:var(--selection-line);color:var(--ink)}
.estimate .small {color:#435560}
.estimate .primary {justify-content:space-between;background:var(--site-blue-dark);color:white}
.estimate .action-end {background:white;color:var(--site-blue-dark)}
.layout-tabs {gap:4px;padding:4px;border:1px solid #dde4e8;background:#f6f8fa}
.layout-tabs span {padding-block:11px}
.layout-tabs input:checked+span {background:var(--selection-fill);color:#164f70;font-weight:650;box-shadow:inset 0 0 0 1px var(--site-blue-dark)}
.look {position:relative;background:white}
.look[aria-pressed=true] {border-color:var(--site-blue-dark);background:var(--selection-fill);box-shadow:inset 0 0 0 1px var(--site-blue-dark)}
.look[aria-pressed=true]::after {
  content:"✓";position:absolute;top:7px;right:7px;
  display:grid;place-items:center;width:19px;height:19px;border-radius:50%;
  background:var(--site-blue-dark);color:white;font:700 12px/1 system-ui;pointer-events:none;
}
#large-preview {width:min(1080px,calc(100% - 20px));padding:0;background:white;overflow:auto;border:none}
.viewer-bar {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px}
.viewer-bar h2 {font-size:1rem;letter-spacing:0}
#close-preview {background:#edf2f2;border:0;border-radius:24px;min-height:44px;padding:7px 17px}
#large-room {display:block;width:100%;height:auto;max-height:calc(88dvh - 66px);object-fit:contain;background:#eaece7}
@media (hover:hover) {
  .live-preview:hover {background-color:#1c3336}
  .look:hover,.extras label:hover,select:not(:disabled):hover {border-color:#6b8588}
  .hero-action:hover {background:#effafb}
  .estimate .primary:hover {background:#195e88}
}
@media (prefers-reduced-motion:no-preference) {
  .hero-action,.estimate .primary,.look,.layout-tabs span {transition:background-color .15s,border-color .15s,box-shadow .15s}
  .hero-action:active,.primary:active {transform:translateY(1px)}
}
@media (pointer:coarse) {
  .live-preview::before {content:"";position:absolute;inset:-3px 0}
}

/* Design review */
#dialog {padding:0;width:min(520px,calc(100% - 24px));max-height:min(90dvh,820px);overscroll-behavior:contain}
#enquiry {padding:0 clamp(16px,4vw,26px) 20px}
#enquiry .dialog-top {position:sticky;top:0;z-index:1;background:white;padding:12px 0;border-bottom:1px solid var(--line)}
#review-title {font-size:clamp(21px,5vw,26px)}
#close {width:44px;height:44px;flex:none;border:0;background:#f0f4f5;border-radius:50%;font-size:24px;line-height:1}
#summary {background:#e8f4fb;border:1px solid #bddbeb;border-radius:12px;padding:14px 16px}
#review-look {font-size:18px}
#review-layout,.review-price span {font-size:14px;color:#435560}
.review-price {margin-top:12px;padding-top:10px;border-top:1px solid #bddbeb}
.review-price strong {display:block;font-size:clamp(22px,5.2vw,28px);letter-spacing:-.035em;line-height:1.2}
.review-selections {border-bottom:1px solid var(--line)}
.review-selections summary {cursor:pointer;padding:12px 0;color:var(--site-blue-dark);font-weight:600}
#review-choices {margin:0 0 12px}
#review-choices div {display:grid;grid-template-columns:minmax(85px,.8fr) minmax(0,1.5fr);gap:12px;padding:5px 0;font-size:14px}
#review-choices dt,.optional {color:var(--muted);font-weight:400}
#review-choices dd {margin:0}
#enquiry h3 {font-size:18px;margin:18px 0 8px}
.contact-fields {display:grid;gap:10px}
.contact-fields label {margin:0}
.contact-fields input {margin-top:4px}
@media(min-width:520px){.contact-fields {grid-template-columns:1fr 1fr}}
#photos {font-size:14px;padding:6px;overflow:hidden}
#photos::file-selector-button {font:inherit;padding:8px;border:0;border-radius:6px;background:#e8f4fb;color:#174765}
#enquiry .enquiry-consent {align-items:flex-start;font-weight:400;font-size:14px;line-height:1.45;margin-top:16px}
.enquiry-consent input {margin-top:2px;accent-color:var(--site-blue-dark)}
#enquiry-note {font-size:13px}
#send-design {justify-content:center;background:var(--site-blue-dark);color:white}
#status:empty {margin:0}
