/* Design Your Space — Elite Closets & Cabinetry
   The room designer, in the site's tool mode (see DESIGN.md): Inter for
   controls, Fraunces for names and headings, IBM Plex Mono for every
   measured value, Brass for the accent with Brass Deep wherever it carries
   text, 4px radius. Laid out like a showroom planner: the room fills the
   screen, an icon rail and a panel sit on the right, a bar on top says what
   has been chosen. Everything is scoped under .dz. It replaced the earlier
   wizard (configurator.css + room-configurator.css, now retired) on
   2026-10-09. */

.dz {
  --dz-bg: var(--white);
  --dz-white: #FFFFFF;
  --dz-surface: var(--sand);
  --dz-ink: var(--ink);
  --dz-ink-soft: var(--ink-soft);
  --dz-muted: var(--muted);
  --dz-line: var(--line);
  --dz-control: var(--line-control);
  --dz-accent: var(--brass);        /* fills, rings and marks only: 3.2:1 on white */
  --dz-accent-tx: var(--brass-dk);  /* anything set as text */
  --dz-accent-dk: #744D1E;
  --dz-tint: #FAF1E5;
  --dz-dark: var(--ink);
  --dz-display: var(--serif);
  --dz-body: var(--sans);
  --dz-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --dz-gutter: 28px;
  --dz-radius: 4px;
  --dz-fade: .2s var(--ease);
  --dz-panel: 404px;
  position: relative;
  border-top: 1px solid var(--dz-line);
  background: var(--dz-bg);
  color: var(--dz-ink-soft);
  font-family: var(--dz-body);
  font-size: 15px;
  line-height: 1.5;
}
.dz button:not(.btn) { font: inherit; color: inherit; }
.dz [hidden] { display: none !important; }

/* ------------------------------------------------------------------ bar */
.dz-bar {
  display: flex; align-items: center; gap: 12px 28px;
  min-height: 66px; padding: 8px var(--dz-gutter);
  border-bottom: 1px solid var(--dz-line);
}
.dz-bar__title { display: flex; align-items: center; gap: 20px; min-width: 0; }
.dz-h1 {
  margin: 0; white-space: nowrap;
  font: 700 .7rem/1.3 var(--dz-body); letter-spacing: .16em; text-transform: uppercase; color: var(--dz-accent-tx);
  padding-right: 20px; border-right: 1px solid var(--dz-line);
}
.dz-roombtn {
  display: grid; grid-template-columns: auto auto; grid-template-areas: "name caret" "sub sub";
  align-items: center; column-gap: 8px; text-align: left;
  padding: 4px 10px 4px 0; background: none; border: 0; cursor: pointer; min-width: 0;
}
.dz-roombtn__name { grid-area: name; font: 600 1.2rem/1.15 var(--dz-display); color: var(--dz-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz-roombtn__sub { grid-area: sub; font-size: .72rem; color: var(--dz-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz-roombtn__caret { grid-area: caret; width: 11px; height: 11px; color: var(--dz-accent-tx); }
.dz-roombtn:hover .dz-roombtn__name { color: var(--dz-accent-tx); }
.dz-roombtn:focus-visible, .dz button:focus-visible { outline: 2px solid var(--dz-accent-tx); outline-offset: 2px; }
.dz-chosen {
  flex: 1; min-width: 0; margin: 0;
  font-size: .8125rem; color: var(--dz-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dz-chosen span { letter-spacing: .12em; text-transform: uppercase; font-size: .64rem; font-weight: 700; margin-right: 4px; }
.dz-chosen b { font-weight: 600; color: var(--dz-ink); }
.dz-bar__actions { display: flex; gap: 10px; flex-shrink: 0; }

.dz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 9px 18px;
  border: 1.5px solid var(--dz-ink); border-radius: 2px; background: transparent; cursor: pointer;
  font: 600 .86rem/1.1 var(--dz-body) !important; letter-spacing: .02em; color: var(--dz-ink);
  transition: background-color var(--dz-fade), border-color var(--dz-fade), color var(--dz-fade);
}
.dz-btn:hover { background: var(--dz-ink); color: #fff !important; }
.dz-btn--primary { background: var(--dz-accent-tx); border-color: var(--dz-accent-tx); color: #fff !important; }
.dz-btn--primary:hover { background: var(--dz-accent-dk); border-color: var(--dz-accent-dk); }
.dz-btn--sm { min-height: 36px; padding: 6px 12px; font-size: .78rem !important; }
.dz-link {
  padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--dz-accent-tx) !important; text-decoration: underline; text-underline-offset: 3px;
}
.dz-restore {
  margin: 0; padding: 8px var(--dz-gutter); font-size: .8125rem; color: var(--dz-ink-soft);
  background: var(--dz-tint); border-bottom: 1px solid var(--dz-line);
}

/* ------------------------------------------------------------------ body */
.dz-body {
  display: grid; grid-template-columns: minmax(0, 1fr) var(--dz-panel);
  height: calc(100svh - var(--dz-top, 200px));
  min-height: 600px; max-height: 1100px;
}
.dz-stage { position: relative; overflow: hidden; background: #E8E5E0; min-width: 0; }
.dz-canvas, .dz-canvas canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.dz-canvas canvas { touch-action: none; }

/* + markers, laid over the room by designer-3d.js */
.dz-hots { position: absolute; inset: 0; pointer-events: none; }
.dz-hot {
  position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; padding: 0;
  border-radius: 50%; border: 1px solid rgba(180, 124, 60, .85);
  background: rgba(252, 251, 249, .9); box-shadow: 0 1px 5px rgba(30, 25, 20, .28);
  pointer-events: auto; cursor: pointer;
  transition: opacity .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.dz-hot span, .dz-hot span::after {
  position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px;
  background: var(--dz-accent-tx); border-radius: 1px; content: "";
}
.dz-hot span::after { transform: rotate(90deg); margin: 0; left: 0; top: 0; }
.dz-hot::before {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid rgba(180, 124, 60, .55); opacity: 0;
  animation: dzPulse 2.6s ease-out infinite;
}
.dz-hot:hover { background: #fff; box-shadow: 0 2px 10px rgba(30, 25, 20, .35); }
.dz-hot:focus-visible { outline: 2px solid var(--dz-accent); outline-offset: 3px; }
.dz-hot.is-on { background: var(--dz-accent); border-color: var(--dz-accent-dk); }
.dz-hot.is-on span, .dz-hot.is-on span::after { background: #fff; }
.dz-hot--surface { width: 24px; height: 24px; left: -12px; top: -12px; background: rgba(252, 251, 249, .72); }
.dz-hot--surface::before { animation: none; }
.dz-hot--surface span, .dz-hot--surface span::after { width: 10px; margin-left: -5px; }
.dz-hot--surface span::after { margin: 0; }
.dz-hot.is-off, .hide-hots .dz-hot { opacity: 0; pointer-events: none; }
.is-moving .dz-hot { transition: none; }
@keyframes dzPulse { 0% { opacity: .9; transform: scale(.8); } 70%, 100% { opacity: 0; transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .dz-hot::before { animation: none; } }

.dz-tools { position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; gap: 6px; }
.dz-tool {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  background: rgba(250, 249, 247, .92); border: 1px solid var(--dz-line); border-radius: var(--dz-radius);
  cursor: pointer; color: var(--dz-ink);
  box-shadow: 0 1px 3px rgba(30, 25, 20, .12);
}
.dz-tool svg { width: 21px; height: 21px; }
.dz-tool:hover { color: var(--dz-accent-tx); border-color: var(--dz-accent); }
.dz-tool[aria-pressed="true"] { color: var(--dz-accent-tx); border-color: var(--dz-accent); background: #fff; }
#dzViewHots[aria-pressed="false"] { color: var(--dz-muted); }

.dz-status {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0;
  padding: 12px 18px; max-width: min(440px, 80%); text-align: center;
  background: rgba(250, 249, 247, .94); border: 1px solid var(--dz-line); border-radius: var(--dz-radius);
  font-size: .9375rem; color: var(--dz-ink-soft);
}
.dz-status.is-error { border-color: var(--dz-accent); }
.dz-notice {
  position: absolute; left: 50%; bottom: 58px; transform: translateX(-50%); margin: 0;
  width: max-content; max-width: calc(100% - 32px);
  padding: 10px 16px; background: #fff7ec; border: 1px solid var(--dz-accent); border-radius: var(--dz-radius);
  font-size: .875rem; color: var(--dz-accent-dk); box-shadow: 0 2px 10px rgba(30, 25, 20, .15);
}
.dz-hint {
  position: absolute; left: 14px; bottom: 14px; margin: 0; max-width: calc(100% - 28px);
  display: flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 7px; background: rgba(250, 249, 247, .9); border: 1px solid var(--dz-line); border-radius: 20px;
  font-size: .78rem; color: var(--dz-ink-soft); pointer-events: none;
}
.dz-hint__plus {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--dz-accent); color: var(--dz-accent-tx); font-size: 1rem; line-height: 1;
}
.dz-toast {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%); margin: 0; z-index: 4;
  padding: 10px 16px; background: var(--dz-dark); color: var(--dz-white); border-radius: var(--dz-radius);
  font-size: .875rem; box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}

/* ------------------------------------------------------------------ panel */
.dz-panel {
  display: grid; grid-template-columns: 74px minmax(0, 1fr); min-height: 0;
  border-left: 1px solid var(--dz-line); background: var(--dz-bg);
}
.dz-rail { display: flex; flex-direction: column; background: var(--dz-surface); border-right: 1px solid var(--dz-line); overflow-y: auto; }
.dz-rail__b {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 14px 4px 12px; border: 0; border-left: 2px solid transparent; border-bottom: 1px solid var(--dz-line);
  background: none; cursor: pointer; color: var(--dz-muted);
  font-size: .66rem !important; letter-spacing: .03em; line-height: 1.2; text-align: center;
}
.dz-rail__b:hover { color: var(--dz-ink); }
.dz-rail__b.is-on { color: var(--dz-accent-dk); background: var(--dz-bg); border-left-color: var(--dz-accent); margin-right: -1px; }
.dz-ico { width: 26px; height: 26px; }
.dz-pane { overflow-y: auto; padding: 22px 22px 48px; min-height: 0; scroll-behavior: smooth; }
.dz-panel.is-flash .dz-pane { animation: dzFlash .7s ease; }
@keyframes dzFlash { 0% { background: var(--dz-tint); } 100% { background: var(--dz-bg); } }

.dz-panehead { padding-bottom: 14px; }
.dz-panehead h2 { font-size: 1.42rem; line-height: 1.15; }
.dz-panehead p { margin-top: 6px; font-size: .84rem; color: var(--dz-muted); line-height: 1.55; }
.dz-field { padding: 16px 0 18px; border-top: 1px solid var(--dz-line); }
.dz-label {
  display: block; margin-bottom: 11px;
  font: 700 .66rem/1.4 var(--dz-body); letter-spacing: .13em; text-transform: uppercase; color: var(--dz-accent-tx);
}
.dz-label em, .dz-sublabel em { font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; font-size: .8rem; color: var(--dz-ink); }
.dz-sublabel em { font-size: .72rem; color: var(--dz-muted); margin-left: 4px; }
.dz-sublabel { display: block; margin: 14px 0 8px; font-size: .74rem; color: var(--dz-muted); }
.dz-note { margin-top: 10px; font-size: .78rem; line-height: 1.55; color: var(--dz-muted); }
.dz-note--top { margin: -4px 0 12px; }
.dz-short { color: var(--dz-accent-dk); }
.dz-warn {
  margin: 0 0 14px; padding: 11px 13px; font-size: .82rem; line-height: 1.5;
  background: #fff7ec; border-left: 2px solid var(--dz-accent); color: var(--dz-accent-dk);
}

.dz-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dz-chip {
  min-height: 36px; padding: 6px 12px; cursor: pointer;
  border: 1px solid var(--dz-line); border-radius: var(--dz-radius); background: transparent;
  font-size: .82rem !important; color: var(--dz-ink-soft) !important;
}
.dz-chip:hover { border-color: var(--dz-control); }
.dz-chip.is-on { border-color: var(--dz-accent); background: var(--dz-tint); color: var(--dz-accent-dk) !important; }
.dz-chip:disabled { opacity: .45; cursor: not-allowed; }

.dz-seg { display: flex; border: 1px solid var(--dz-line); border-radius: var(--dz-radius); overflow: hidden; margin-bottom: 14px; }
.dz-seg__b {
  flex: 1; min-height: 38px; padding: 6px 8px; border: 0; border-right: 1px solid var(--dz-line);
  background: none; cursor: pointer; font-size: .8rem !important; color: var(--dz-muted) !important;
}
.dz-seg__b:last-child { border-right: 0; }
.dz-seg__b.is-on { background: var(--dz-tint); color: var(--dz-accent-dk) !important; box-shadow: inset 0 -2px 0 var(--dz-accent); }
.dz-seg--small { max-width: 220px; margin-bottom: 4px; }

.dz-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 12px 10px; }
.dz-swatches--wood { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dz-swatches--paint { grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 8px; }
.dz-swatches--paint .dz-sw__name { display: none; }
.dz-sw { display: flex; flex-direction: column; gap: 5px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.dz-sw__chip {
  display: block; aspect-ratio: 1; border-radius: var(--dz-radius);
  outline: 1px solid rgba(32, 31, 29, .14); outline-offset: -1px;
  box-shadow: inset 0 -10px 18px -12px rgba(0, 0, 0, .25);
  transition: transform .15s ease;
}
.dz-sw:hover .dz-sw__chip { transform: translateY(-1px); }
.dz-sw.is-on .dz-sw__chip { outline: 2px solid var(--dz-accent); outline-offset: 2px; }
.dz-sw__name { font-size: .74rem; line-height: 1.25; color: var(--dz-ink); }
.dz-sw__sub { font-size: .66rem; line-height: 1.3; color: var(--dz-muted); }
.dz-sw.is-on .dz-sw__name { color: var(--dz-accent-dk); }

.dz-cards { display: grid; gap: 8px; }
.dz-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dz-cards--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.dz-card {
  display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 6px 9px;
  border: 1px solid var(--dz-line); border-radius: var(--dz-radius); background: transparent; cursor: pointer; text-align: center;
}
.dz-card svg { width: 54px; height: 40px; color: var(--dz-muted); }
.dz-card--door svg { width: 32px; height: 46px; }
.dz-card strong { font: 600 .8rem/1.2 var(--dz-body); color: var(--dz-ink); }
.dz-card--door strong { font-size: .66rem; hyphens: manual; }
.dz-card small { font-size: .64rem; line-height: 1.3; color: var(--dz-muted); }
.dz-card:hover { border-color: var(--dz-control); }
.dz-card.is-on { border-color: var(--dz-accent); background: var(--dz-tint); }
.dz-card.is-on svg { color: var(--dz-accent-tx); }

.dz-metals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.dz-metal {
  display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 10px; cursor: pointer;
  border: 1px solid var(--dz-line); border-radius: var(--dz-radius); background: transparent; font-size: .78rem !important; text-align: left;
}
.dz-metal span { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15), inset 3px 3px 5px rgba(255, 255, 255, .45); }
.dz-metal.is-on { border-color: var(--dz-accent); background: var(--dz-tint); color: var(--dz-accent-dk) !important; }

.dz-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dz-tile {
  display: flex; align-items: center; gap: 10px; padding: 10px; cursor: pointer; text-align: left;
  border: 1px solid var(--dz-line); border-radius: var(--dz-radius); background: transparent;
}
.dz-tile svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--dz-muted); }
.dz-tile strong { display: block; font: 600 .84rem/1.2 var(--dz-body); color: var(--dz-ink); }
.dz-tile small { display: block; font-size: .68rem; line-height: 1.3; color: var(--dz-muted); }
.dz-tile.is-on { border-color: var(--dz-accent); background: var(--dz-tint); }
.dz-tile.is-on svg { color: var(--dz-accent-tx); }
.dz-tile.is-short { border-style: dashed; }
.dz-tile.is-short small { color: var(--dz-accent-dk); }
.dz-tile:disabled { opacity: .45; cursor: not-allowed; }

.dz-shapes { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; }
.dz-shape {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 8px; cursor: pointer;
  border: 1px solid var(--dz-line); border-radius: var(--dz-radius); background: transparent; font-size: .74rem !important;
}
.dz-shape svg { width: 34px; height: 34px; color: var(--dz-muted); }
.dz-shape.is-on { border-color: var(--dz-accent); background: var(--dz-tint); color: var(--dz-accent-dk) !important; }
.dz-shape.is-on svg { color: var(--dz-accent-tx); }

.dz-steps { display: flex; flex-direction: column; }
.dz-step { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; padding: 7px 0; }
.dz-step + .dz-step { border-top: 1px dashed var(--dz-line); }
.dz-step__label { font-size: .84rem; color: var(--dz-ink); }
.dz-step__note { grid-column: 1 / -1; font-size: .7rem; color: var(--dz-muted); }
.dz-step__ctl { display: flex; align-items: stretch; border: 1px solid var(--dz-control); border-radius: var(--dz-radius); overflow: hidden; }
.dz-step__btn { width: 36px; min-height: 36px; border: 0; background: var(--dz-surface); cursor: pointer; font-size: 1.1rem !important; line-height: 1; }
.dz-step__btn:hover { background: var(--dz-tint); color: var(--dz-accent-dk) !important; }
.dz-step__in {
  width: 84px; border: 0; border-left: 1px solid var(--dz-line); border-right: 1px solid var(--dz-line);
  text-align: center; font: 500 .82rem/1 var(--dz-mono); background: var(--dz-bg); color: var(--dz-ink);
}
.dz-step__in:focus-visible { outline: 2px solid var(--dz-accent); outline-offset: -2px; }

.dz-roomcard { display: flex; flex-direction: column; gap: 10px; padding: 0 0 16px; }
.dz-name {
  width: 100%; padding: 6px 0; border: 0; border-bottom: 1px solid var(--dz-control); background: transparent;
  font: 600 1.25rem/1.2 var(--dz-display); color: var(--dz-ink);
}
.dz-name:focus { outline: none; border-bottom-color: var(--dz-accent); }
.dz-roomcard .dz-btn { align-self: flex-start; }
.dz-rooms { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.dz-rooms li { display: flex; border: 1px solid var(--dz-line); border-radius: var(--dz-radius); }
.dz-rooms li.is-on { border-color: var(--dz-accent); background: var(--dz-tint); }
.dz-rooms__go { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 12px; border: 0; background: none; cursor: pointer; text-align: left; }
.dz-rooms__go strong { font: 600 .88rem/1.2 var(--dz-body); color: var(--dz-ink); }
.dz-rooms__go span { font-size: .7rem; color: var(--dz-muted); }
.dz-rooms__x { width: 40px; border: 0; border-left: 1px solid var(--dz-line); background: none; cursor: pointer; font-size: 1.2rem !important; color: var(--dz-muted) !important; }

.dz-selhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; }
.dz-selhead h3 { font-size: 1.36rem; line-height: 1.15; }
.dz-selhead .dz-label { margin-bottom: 6px; }
.dz-x {
  display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; padding: 0; cursor: pointer;
  border: 1px solid var(--dz-line); border-radius: var(--dz-radius); background: transparent; font-size: 1.4rem !important; line-height: 1;
}
.dz-x:hover { border-color: var(--dz-control); }
.dz-swaps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dz-swap {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 10px; cursor: pointer;
  border: 1px solid var(--dz-line); border-radius: var(--dz-radius); background: transparent; font-size: .74rem !important; text-align: center;
}
.dz-swap svg { width: 34px; height: 34px; color: var(--dz-muted); }
.dz-swap.is-on { border-color: var(--dz-accent); background: var(--dz-tint); color: var(--dz-accent-dk) !important; }
.dz-swap.is-on svg { color: var(--dz-accent-tx); }
.dz-colorlink {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 10px; width: 100%; padding: 10px 12px; cursor: pointer;
  border: 1px solid var(--dz-line); border-radius: var(--dz-radius); background: transparent; text-align: left; font-size: .84rem !important;
}
.dz-colorlink span { grid-row: span 2; width: 30px; height: 30px; border-radius: var(--dz-radius); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.dz-colorlink em { font-style: normal; font-size: .74rem; color: var(--dz-accent-tx); }
.dz-colorlink:hover { border-color: var(--dz-accent); }

/* ------------------------------------------------------------------ sheets */
.dz-sheet {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 24px;
  background: rgba(29, 27, 25, .55);
}
.dz-sheet__box {
  width: min(860px, 100%); max-height: calc(100svh - 48px); overflow-y: auto;
  padding: 26px 30px 30px; background: var(--dz-bg); border-radius: var(--dz-radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}
.dz-sheet__box--wide { width: min(1120px, 100%); }
.dz-sheet__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--dz-line); }
.dz-sheet__head h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.dz-sheet__sub { margin: 26px 0 14px; font-size: 1.15rem; }

.dz-roomtiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.dz-roomtile, .dz-design {
  display: flex; flex-direction: column; gap: 6px; width: 100%; height: 100%; padding: 8px; cursor: pointer; text-align: left;
  border: 1px solid var(--dz-line); border-radius: var(--dz-radius); background: transparent;
}
.dz-roomtile:hover, .dz-design:hover { border-color: var(--dz-control); }
.dz-roomtile.is-on { border-color: var(--dz-accent); background: var(--dz-tint); }
.dz-roomtile strong, .dz-design strong { font: 600 .98rem/1.2 var(--dz-display); color: var(--dz-ink); padding: 0 2px; }
.dz-roomtile small, .dz-design small { font-size: .72rem; line-height: 1.4; color: var(--dz-muted); padding: 0 2px; }
.dz-pick__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--dz-surface); }
.dz-pick__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dz-pick:not(.has-img) .dz-pick__img { background: linear-gradient(100deg, var(--dz-surface) 35%, #f7f6f4 50%, var(--dz-surface) 65%) 0 0 / 300% 100%; animation: dzShimmer 1.4s linear infinite; }
.dz-pick:not(.has-img) .dz-pick__img img { visibility: hidden; }
@keyframes dzShimmer { to { background-position: -150% 0; } }
.dz-designs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.dz-design__go { margin-top: auto; padding: 4px 2px 0; font: 600 .82rem/1.2 var(--dz-body); color: var(--dz-accent-tx); }

.dz-send { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.dz-send__look img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 6px solid var(--dz-surface); outline: 1px solid var(--dz-line); }
.dz-send__spec { margin: 14px 0 6px; font: 500 .76rem/1.4 var(--dz-mono); color: var(--dz-accent-tx); }
.dz-send__list { list-style: none; padding: 0; margin: 0; }
.dz-send__list > li { padding: 10px 0; border-top: 1px solid var(--dz-line); }
.dz-send__list > li > strong { font: 600 1.08rem/1.2 var(--dz-display); color: var(--dz-ink); }
.dz-send__list > li > span { font-size: .74rem; color: var(--dz-muted); margin-left: 6px; }
.dz-send__list ul { padding-left: 1.1em; margin: 6px 0 0; font-size: .8rem; line-height: 1.55; color: var(--dz-ink-soft); }
.dz-send__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dz-form { padding: 22px; background: var(--dz-surface); border: 1px solid var(--dz-line); border-radius: var(--dz-radius); }
.dz-form > p:first-child { margin-bottom: 16px; font-size: .9rem; color: var(--dz-ink-soft); }
.dz-form .field { margin-bottom: 14px; }
.dz-form .btn { width: 100%; margin-top: 4px; }
.dz-form .field input, .dz-form .field textarea { background: #fff; }
.dz-form .field .opt { font-weight: 400; color: var(--dz-muted); }
.dz-sendstatus { margin-top: 14px; padding: 12px 14px; font-size: .875rem; background: var(--dz-bg); border-left: 2px solid var(--dz-control); }
.dz-sendstatus.is-ok { border-left-color: var(--dz-accent); }
.dz-sendstatus.is-error { border-left-color: var(--dz-accent-dk); color: var(--dz-accent-dk); }
.dz-noscript { padding: 40px var(--dz-gutter); text-align: center; }

.dz-after .process { margin-top: 36px; }
.dz-after .dz-after-note { margin-top: 36px; font-size: .92rem; color: var(--muted); }

/* ------------------------------------------------------------------ narrower screens */
@media (max-width: 1240px) {
  .dz { --dz-panel: 372px; }
  .dz-chosen { display: none; }
  .dz-bar { justify-content: space-between; }
}
@media (max-width: 900px) {
  .dz-bar { flex-wrap: wrap; padding: 8px var(--dz-gutter) 10px; gap: 8px 12px; }
  .dz-bar__title { flex: 1 1 100%; gap: 12px; }
  .dz-h1 { display: none; }
  .dz-roombtn__name { font-size: 1.35rem; }
  .dz-bar__actions { flex: 1 1 100%; }
  .dz-bar__actions .dz-btn { flex: 1; }
  .dz-bar__actions .dz-btn--line { flex: 0 0 auto; }
  .dz-body { display: block; height: auto; min-height: 0; max-height: none; }
  .dz-stage { height: 60svh; min-height: 360px; max-height: 620px; }
  .dz-panel { display: block; border-left: 0; border-top: 1px solid var(--dz-line); }
  .dz-rail { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--dz-line); position: sticky; top: 0; z-index: 5; scrollbar-width: none; }
  .dz-rail::-webkit-scrollbar { display: none; }
  .dz-rail__b { flex: 1 0 74px; border-left: 0; border-bottom: 2px solid transparent; border-right: 1px solid var(--dz-line); padding: 10px 4px 8px; }
  .dz-rail__b.is-on { border-left: 0; border-bottom-color: var(--dz-accent); margin: 0; }
  .dz-ico { width: 22px; height: 22px; }
  .dz-pane { overflow: visible; padding: 18px var(--dz-gutter) 36px; }
  .dz-tools { flex-direction: row; top: 10px; left: 10px; gap: 5px; }
  .dz-tool { width: 36px; height: 36px; }
  .dz-hint { display: none; }
  .dz-notice { bottom: 12px; }
  .dz-roomtiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dz-send { grid-template-columns: 1fr; }
  .dz-sheet { padding: 0; place-items: stretch; }
  .dz-sheet__box { max-height: 100svh; border-radius: 0; padding: 18px var(--dz-gutter) 28px; }
}
@media (max-width: 520px) {
  .dz-roomtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dz-cards--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dz-swaps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dz-designs { grid-template-columns: 1fr; }
  #dzViewFull { display: none; }
}
.dz-selhead__size { margin-top: 4px; font: 500 .8rem/1.3 var(--dz-mono); color: var(--dz-muted); }

/* The breadcrumb (it matches the page's BreadcrumbList) runs into the H1. */
.dz-titleblock { display: flex; align-items: baseline; gap: 8px; padding-right: 20px; border-right: 1px solid var(--dz-line); white-space: nowrap; }
.dz-titleblock .dz-h1 { padding-right: 0; border-right: 0; }
.dz-crumbs { display: flex; gap: 8px; font-size: .74rem; color: var(--dz-muted); }
.dz-crumbs a { color: var(--dz-muted); }
.dz-crumbs a:hover { color: var(--dz-accent-tx); }
@media (max-width: 900px) { .dz-titleblock { display: none; } }
.dz-after h2 + .lede { margin-top: 14px; max-width: 760px; }
.dz-after-note a { color: var(--walnut-tx); text-decoration: underline; text-underline-offset: 3px; }
