/* Arabic text on the designer pages: IBM Plex Sans Arabic subset to the Arabic letters, digits and punctuation the pages
   and their scripts use (fontTools subset, 17 kB instead of 45 kB per weight). Its own family name: with the site's name
   Chrome kept downloading the full site files as well (same-name faces form one composite font). */
@font-face { font-family: "Plex Arabic DZ"; src: url("../media/designer/fonts/plex-arabic-400-dz.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Arabic DZ"; src: url("../media/designer/fonts/plex-arabic-500-dz.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Arabic DZ"; src: url("../media/designer/fonts/plex-arabic-600-dz.woff2") format("woff2"); font-weight: 600; font-display: swap; }
:root[lang="ar"] { --font: "Plex Arabic DZ", "Inter", sans-serif; }
:root[lang="en"] .ft-lang, :root[lang="en"] .al-lang { font-family: "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif; }   /* lane 12 (speed): the system Arabic font for the two language links: the English page no longer downloads Plex Arabic (20 kB) */
/* 3D designer v2 (lane 6). pergola-designer/, EN + AR. Tokens from album.css: --bg --ink --muted --line --accent --font.
   Layouts (set by app.js on .dz[data-layout]): desk (≥ 1025 px: stage + scrolling panel), sheet (phone/tablet: stage
   on top + bottom sheet peek/half/full), side (landscape phone: stage + side panel, one step at a time). */
.dz-main { max-width: none; padding: 0; }
.dz { --panel: 27rem; --r: 1.1rem; --hdr: 4.5rem; --sheet: 50%; --card: #fff; --soft: #f6f4ef; --ink2: #2b2925;
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--panel); gap: .75rem;
  height: calc(100dvh - var(--hdr)); min-height: 34rem; padding: 0 .75rem .75rem; box-sizing: border-box; }
@media (min-width: 1600px) { .dz { --panel: 30rem; } }
.dz [hidden] { display: none !important; }
.dz *, .dz *::before, .dz *::after { box-sizing: border-box; }
.dz button { font-family: var(--font); }
.dz :focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }

/* ---------- stage ---------- */
.dz-stage { position: relative; min-width: 0; min-height: 0; border-radius: var(--r); overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #cfd8e0 0%, #e7e2d8 55%, #d7cbb6 100%); }
.dz-poster, .dz-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.dz-poster { transition: opacity .6s var(--ease); }
.dz-poster.gone { opacity: 0; pointer-events: none; }
.dz-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; cursor: grab; }
.dz-canvas:active { cursor: grabbing; }
.dz-stage.is-active { box-shadow: inset 0 0 0 2px rgb(180 142 82 / .9); }
.dz-stage-status { position: absolute; inset: auto 0 4.5rem 0; margin: 0 auto; width: max-content; max-width: calc(100% - 2rem); z-index: 2;
  background: rgb(255 255 255 / .9); border-radius: 999px; padding: .5rem .95rem; font-size: .85rem; color: #4c463d; text-align: center; }
.dz-stage-status::before { content: ""; display: inline-block; vertical-align: -.2em; width: 1rem; height: 1rem; margin-inline-end: .5rem; border-radius: 50%;
  border: 2px solid rgb(18 18 18 / .15); border-top-color: var(--accent-ink); animation: dz-spin 1s linear infinite; }
.dz-no3d .dz-stage-status::before { display: none; }
@keyframes dz-spin { to { transform: rotate(1turn); } }
.dz-tools { position: absolute; z-index: 2; display: flex; gap: .2rem; padding: .25rem; border-radius: 999px; max-width: calc(100% - 1.5rem);
  background: rgb(255 255 255 / .78); backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3);
  box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 8px 24px rgb(0 0 0 / .1); overflow-x: auto; scrollbar-width: none; }
.dz-tools::-webkit-scrollbar { display: none; }
.dz-tools-top { top: .75rem; inset-inline-start: .75rem; }
.dz-tools-cam { bottom: .75rem; inset-inline-start: .75rem; }
.dz-tools button { flex: none; font: 500 .82rem/1 var(--font); border: 0; background: transparent; color: var(--ink); padding: 0 .85rem; border-radius: 999px; cursor: pointer; min-height: 2.5rem; white-space: nowrap; }
.dz-tools button:hover { background: rgb(18 18 18 / .06); }
.dz-tools button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.dz-home-btn { position: absolute; top: .75rem; inset-inline-end: .75rem; z-index: 2; font: 500 .85rem/1 var(--font); border: 0; cursor: pointer;
  padding: 0 1rem; border-radius: 999px; background: var(--ink); color: #fff; min-height: 2.5rem; box-shadow: 0 8px 24px rgb(0 0 0 / .2); }
.dz-home-btn::before { content: ""; display: inline-block; width: 1em; height: 1em; margin-inline-end: .45em; vertical-align: -.15em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h3l2-3h6l2 3h3v13H4z' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='13' r='4' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h3l2-3h6l2 3h3v13H4z' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='13' r='4' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat; }
.dz-hint { position: absolute; bottom: 4.1rem; inset-inline-start: .75rem; z-index: 2; margin: 0; max-width: calc(100% - 1.5rem); font-size: .78rem; line-height: 1.3;
  color: #fff; background: rgb(18 18 18 / .55); padding: .4rem .7rem; border-radius: 999px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: none; }
.dz-stage.is-active .dz-hint { background: var(--accent-ink); }

/* ---------- panel ---------- */
.dz-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 18px 40px rgb(0 0 0 / .06); overflow: hidden; }
.dz-sheet-top { flex: none; padding: .9rem 1rem 0; border-bottom: 1px solid var(--line); background: var(--card); }
.dz-grip { display: none; }
.dz-phead { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.dz-ptitle h1 { margin: 0; font-size: .74rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
:root[lang="ar"] .dz-ptitle h1 { letter-spacing: 0; text-transform: none; font-size: .8rem; }
.dz-pname { margin: .2rem 0 0; font-size: 1.2rem; font-weight: 600; line-height: 1.25; color: var(--ink); }
.dz-lead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dz-hist { display: flex; align-items: center; gap: .25rem; flex: none; }
.dz-icon, .dz-reset { display: inline-grid; place-items: center; min-width: 2.5rem; height: 2.5rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer; }
.dz-reset { padding: 0 .8rem; font: 500 .8rem/1 var(--font); }
.dz-icon:disabled, .dz-reset:disabled { opacity: .35; cursor: default; }
.dz-icon:not(:disabled):hover, .dz-reset:hover { background: var(--soft); }
[dir="rtl"] .dz-icon svg { transform: scaleX(-1); }
/* the products of one design (several products on one property): chips, add / remove */
.dz-items { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .7rem 0 0; }
.dz-item { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: .8rem; background: var(--card); overflow: hidden; }
.dz-item.on { border-color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-ink); }
.dz-item-pick { display: grid; gap: .1rem; min-height: 2.75rem; padding: .35rem .7rem; border: 0; background: transparent; color: var(--ink); text-align: start; cursor: pointer; font: inherit; }
.dz-item-pick b { font: 600 .84rem/1.2 var(--font); }
.dz-item-pick small { font: 400 .72rem/1.2 var(--font); color: var(--muted); max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-item-x { min-width: 2.75rem; border: 0; border-inline-start: 1px solid var(--line); background: transparent; color: var(--muted); font: 500 1.1rem/1 var(--font); cursor: pointer; }
.dz-item-x:hover { color: var(--ink); background: var(--soft); }
.dz-item-add, .dz-item-cancel { min-height: 2.75rem; padding: 0 .9rem; border: 1px dashed rgb(18 18 18 / .28); border-radius: .8rem; background: transparent; color: var(--ink); font: 500 .84rem/1.2 var(--font); cursor: pointer; }
.dz-item-add:disabled { opacity: .45; cursor: default; }
.dz-item-hint { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font: 500 .84rem/1.35 var(--font); color: var(--ink2); }
.dz-tabs { display: flex; flex-wrap: wrap; gap: .3rem; padding: .8rem 0 .8rem; }
.dz-tabs button { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.25rem; padding: 0 .7rem 0 .35rem; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--muted); font: 500 .8rem/1 var(--font); cursor: pointer; white-space: nowrap; }
.dz-tabs button:hover { color: var(--ink); background: var(--soft); }
.dz-tabs .dz-n { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--soft); color: var(--ink); font-size: .72rem; }
.dz-tabs button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.dz-tabs button.on .dz-n { background: rgb(255 255 255 / .18); color: #fff; }
.dz-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: auto; padding: 0 1rem 1rem; scrollbar-width: thin; scrollbar-color: rgb(18 18 18 / .2) transparent; }
.dz-scroll:focus-visible { outline-offset: -2px; }
.dz-sec { padding: 1.15rem 0 1.25rem; border-bottom: 1px solid var(--line); scroll-margin-top: .25rem; }
.dz-sec:last-child { border-bottom: 0; min-height: 70%; }
.dz-sec-h { display: flex; align-items: center; gap: .55rem; margin: 0 0 .85rem; font-size: 1.02rem; font-weight: 600; color: var(--ink); outline: none; }
.dz-sec-h .dz-n { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 500; }
.dz-sub { margin: 1rem 0 .5rem; font-size: .8rem; font-weight: 500; color: var(--muted); display: block; }
.dz-note { margin: .6rem 0 0; font-size: .82rem; color: var(--muted); line-height: 1.45; }
.dz-msg { margin: .35rem 0 0; font-size: .8rem; color: var(--muted); min-height: 0; }
.dz-msg:empty { display: none; }
.dz-msg.warn { color: #8a4b0f; background: #fbf1e2; border-radius: .5rem; padding: .4rem .6rem; }

/* cards (radio groups) */
.dz-cards { display: grid; gap: .5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dz-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dz-card { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: .45rem; min-height: 3rem; padding: .45rem; text-align: start;
  border: 1px solid var(--line); border-radius: .85rem; background: #fff; color: var(--ink); cursor: pointer; font: inherit; transition: border-color .15s, box-shadow .15s; }
.dz-card:hover { border-color: rgb(18 18 18 / .3); }
.dz-card.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.dz-card.on::after { content: ""; position: absolute; top: .55rem; inset-inline-end: .55rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--ink)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat; }
.dz-card-img { display: block; aspect-ratio: 16 / 10; border-radius: .55rem; overflow: hidden; background: linear-gradient(160deg, #e9ecef, #ddd6c9); }
.dz-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dz-card-t { display: grid; gap: .15rem; padding: 0 .15rem .1rem; }
.dz-card-t b { font-size: .84rem; font-weight: 500; line-height: 1.25; }
.dz-card-t small { font-size: .74rem; color: var(--muted); line-height: 1.35; }
.dz-cards-3 .dz-card-t small { display: none; }
.dz-cards-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dz-cards-presets .dz-card { flex-direction: row; align-items: center; padding: .35rem; }
.dz-cards-presets .dz-card-img { width: 4.4rem; flex: none; }
.dz-cards-presets .dz-card-t b { font-size: .78rem; }
.dz-cards-sides { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .35rem; }
.dz-cards-sides .dz-card { padding: .3rem; gap: .3rem; }
.dz-cards-sides .dz-card-t b { font-size: .72rem; text-align: center; }
.dz-cards-sides .dz-card.on::after { width: .95rem; height: .95rem; top: .4rem; inset-inline-end: .4rem; }
.dz-cards-sides .dz-card:not(:has(.dz-card-img)) { justify-content: center; }
.dz-side + .dz-side { margin-top: .2rem; }
.dz-side .dz-sub { margin-top: .75rem; }
/* chips */
.dz-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.dz-chips .dz-card { flex-direction: row; align-items: center; min-height: 2.5rem; padding: 0 .85rem; border-radius: 999px; gap: .45rem; }
.dz-chips .dz-card.on { background: var(--ink); color: #fff; }
.dz-chips .dz-card.on .dz-card-t small { color: rgb(255 255 255 / .82); }   /* the subtitle on the dark selected chip (was the muted grey: 2.5:1) */
.dz-chips .dz-card.on::after { display: none; }
.dz-chips .dz-card-t b { font-size: .82rem; }
/* swatches */
.dz-swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dz-swatches .dz-card { flex-direction: row; align-items: center; gap: .5rem; padding: .45rem .5rem; }
.dz-sw { flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .14), inset 0 -6px 10px rgb(0 0 0 / .12), inset 0 5px 8px rgb(255 255 255 / .18); }
.dz-chips .dz-sw { width: 1.1rem; height: 1.1rem; }
.dz-sw-lg { width: 2.5rem; height: 2.5rem; }
.dz-swatches .dz-card-t b { font-size: .78rem; }
.dz-swatches .dz-card-t small { font-size: .7rem; }
.dz-swatches .dz-card.on::after { top: .3rem; inset-inline-end: .3rem; width: .95rem; height: .95rem; }
.dz-custom { margin-top: .9rem; }
.dz-row { display: flex; gap: .4rem; align-items: center; }
.dz-row input { flex: 1 1 auto; min-width: 0; }

/* measures: slider + number + unit */
.dz-measure { padding: .35rem 0 .55rem; }
.dz-measure + .dz-measure { border-top: 1px dashed var(--line); padding-top: .8rem; }
.dz-mhead { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .3rem; }
.dz-mhead label { font-size: .9rem; font-weight: 500; color: var(--ink); }
.dz-mbox { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: .6rem; background: #fff; overflow: hidden; }
.dz-mbox:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.dz-mbox input { width: 5rem; height: 2.5rem; border: 0; padding: 0 .55rem; font: 600 1rem/1 var(--font); color: var(--ink); background: transparent; text-align: end; outline: none; -moz-appearance: textfield; }
.dz-mbox input::-webkit-outer-spin-button, .dz-mbox input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dz-unit { padding: 0 .6rem 0 .15rem; color: var(--muted); font-size: .82rem; }
.dz-measure input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 2.75rem; margin: 0; background: transparent; cursor: pointer; --p: 50%; }
.dz-measure input[type="range"]::-webkit-slider-runnable-track { height: .35rem; border-radius: 999px; background: linear-gradient(to right, var(--ink) var(--p), rgb(18 18 18 / .14) var(--p)); }
[dir="rtl"] .dz-measure input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(to left, var(--ink) var(--p), rgb(18 18 18 / .14) var(--p)); }
.dz-measure input[type="range"]::-moz-range-track { height: .35rem; border-radius: 999px; background: rgb(18 18 18 / .14); }
.dz-measure input[type="range"]::-moz-range-progress { height: .35rem; border-radius: 999px; background: var(--ink); }
.dz-measure input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 1.5rem; height: 1.5rem; margin-top: -.575rem; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-shadow: 0 2px 6px rgb(0 0 0 / .2); }
.dz-measure input[type="range"]::-moz-range-thumb { width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }
.dz-measure input[type="range"]:focus-visible { outline: none; }
.dz-measure input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgb(180 142 82 / .45); }
.dz-range { display: flex; justify-content: space-between; gap: .5rem; margin: -.2rem 0 0; font-size: .74rem; color: var(--muted); }

/* ask (AI designer) */
.dz-ask { margin-bottom: 1rem; padding: .75rem; border-radius: .9rem; background: var(--soft); }
.dz-ask label { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); margin-bottom: .4rem; }
.dz-ask input, .dz-book input, .dz-custom input { height: 2.75rem; border: 1px solid var(--line); border-radius: .65rem; padding: 0 .75rem; font: 1rem/1 var(--font); color: var(--ink); background: #fff; }
.dz-ask input:focus, .dz-book input:focus, .dz-custom input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }

/* buttons */
.dz-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.75rem; padding: 0 1.1rem; border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: #fff; font: 500 .9rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.dz-btn:hover { background: var(--ink2); }
.dz-btn:disabled { opacity: .35; cursor: default; }
.dz-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.dz-ghost:hover { background: var(--soft); }
.dz-wa { background: #1f7a4d; border-color: #1f7a4d; }
.dz-wa:hover { background: #17633e; }

/* summary */
.dz-sumlist { margin: 0; padding: 0; list-style: none; display: grid; gap: .1rem; }
.dz-sumlist li { padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.dz-sumlist li:first-child { font-weight: 600; font-size: .95rem; }
.dz-sumprice { display: grid; gap: .2rem; margin: 1rem 0; padding: .9rem 1rem; border-radius: .9rem; background: var(--soft); }
.dz-sumprice span { font-size: .78rem; color: var(--muted); }
.dz-sumprice b { font-size: 1.35rem; }
.dz-sumprice small { font-size: .76rem; color: var(--muted); }
.dz-notes { margin: .75rem 0; padding: .7rem .85rem; border-radius: .75rem; background: #fbf1e2; font-size: .82rem; }
.dz-notes ul { margin: .35rem 0 0; padding-inline-start: 1.1rem; }
.dz-code { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: .75rem 0; font-size: .85rem; }
.dz-code b { font-size: 1.1rem; letter-spacing: .06em; }
.dz-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; margin-top: .5rem; }
.dz-result img { width: 100%; height: auto; border-radius: .75rem; margin-top: .6rem; }
.dz-book { display: grid; gap: .55rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.dz-book label { display: grid; gap: .3rem; font-size: .82rem; color: var(--muted); }
.dz-hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }

/* footer of the panel: price bar */
.dz-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 1rem; border-top: 1px solid var(--line); background: #fff; }
.dz-price { display: grid; min-width: 0; }
.dz-price span { font-size: .72rem; color: var(--muted); }
.dz-price b { font-size: 1.12rem; font-weight: 600; white-space: nowrap; }
.dz-price small { font-size: .7rem; color: var(--muted); line-height: 1.3; max-width: 15rem; }
.dz-nav { display: flex; align-items: center; gap: .4rem; flex: none; }
.dz-nav [data-prev], .dz-nav [data-next], .dz-stepof { display: none; }
.dz-toast { position: fixed; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; margin: 0; max-width: calc(100vw - 2rem);
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 999px; font-size: .88rem; box-shadow: 0 10px 30px rgb(0 0 0 / .25); }

/* ---------- phone and tablet: bottom sheet ---------- */
.dz[data-layout="sheet"] { display: block; padding: 0; height: calc(100dvh - var(--hdr)); min-height: 30rem; overflow: hidden; }
.dz[data-layout="sheet"] .dz-stage { position: absolute; inset: 0 0 auto 0; height: calc(100% - var(--sheet) + 1.1rem); border-radius: 0; transition: height .25s var(--ease); }
.dz[data-layout="sheet"] .dz-panel { position: absolute; inset: auto 0 0 0; height: var(--sheet); z-index: 5; border-radius: 1.25rem 1.25rem 0 0; border-inline: 0; border-bottom: 0;
  box-shadow: 0 -12px 34px rgb(0 0 0 / .14); transition: height .25s var(--ease); }
.dz[data-layout="sheet"] .dz-panel.dragging { transition: none; }
.dz[data-layout="sheet"] .dz-sheet-top { padding: 0 .9rem; touch-action: none; }
.dz[data-layout="sheet"] .dz-grip { display: grid; place-items: center; width: 100%; height: 2.5rem; margin-bottom: -.6rem; border: 0; background: transparent; cursor: grab; }
.dz[data-layout="sheet"] .dz-grip span { width: 2.75rem; height: .3rem; border-radius: 999px; background: rgb(18 18 18 / .22); }
.dz[data-layout="sheet"] .dz-pname { font-size: 1.05rem; margin-top: .1rem; }
.dz[data-layout="sheet"] .dz-ptitle h1 { font-size: .68rem; }
.dz[data-layout="sheet"] .dz-tabs, .dz[data-layout="side"] .dz-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -.9rem; padding: .6rem .9rem .65rem; scroll-padding-inline: 1rem; touch-action: pan-x; }
.dz[data-layout="sheet"] .dz-tabs::-webkit-scrollbar, .dz[data-layout="side"] .dz-tabs::-webkit-scrollbar { display: none; }
.dz[data-layout="sheet"] .dz-tabs button, .dz[data-layout="side"] .dz-tabs button { flex: none; min-height: 2.5rem; }
.dz[data-layout="sheet"] .dz-scroll, .dz[data-layout="side"] .dz-scroll { padding: 0 .9rem .9rem; }
.dz[data-layout="sheet"] .dz-sec, .dz[data-layout="side"] .dz-sec { display: none; border: 0; padding-top: .9rem; }
.dz[data-layout="sheet"] .dz-sec.is-active, .dz[data-layout="side"] .dz-sec.is-active { display: block; min-height: 0; }
.dz[data-layout="sheet"] .dz-foot, .dz[data-layout="side"] .dz-foot { padding: .55rem .9rem max(.55rem, env(safe-area-inset-bottom)); gap: .5rem; }
.dz[data-layout="sheet"] .dz-price small, .dz[data-layout="side"] .dz-price small { display: none; }
.dz[data-layout="sheet"] .dz-price b, .dz[data-layout="side"] .dz-price b { font-size: 1rem; }
.dz[data-layout="sheet"] .dz-nav [data-prev], .dz[data-layout="sheet"] .dz-nav [data-next],
.dz[data-layout="side"] .dz-nav [data-prev], .dz[data-layout="side"] .dz-nav [data-next] { display: inline-flex; padding: 0 1rem; }
.dz[data-layout="sheet"] .dz-sumbtn, .dz[data-layout="side"] .dz-sumbtn { display: none; }
.dz[data-layout="sheet"] .dz-tools-top { top: .6rem; inset-inline-start: .6rem; }
.dz[data-layout="sheet"] .dz-home-btn { top: .6rem; inset-inline-end: .6rem; padding: 0 .8rem; font-size: .8rem; }
.dz[data-layout="sheet"] .dz-tools-cam { bottom: 1.75rem; inset-inline: .6rem; max-width: none; width: max-content; max-width: calc(100% - 1.2rem); }
.dz[data-layout="sheet"] .dz-hint { display: none; }
.dz[data-layout="sheet"][data-sheet="full"] .dz-tools-cam { display: none; }
.dz[data-layout="sheet"] .dz-stage-status { bottom: 5rem; }
.dz[data-layout="sheet"] .dz-cards-sides { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 420px) {
  .dz[data-layout="sheet"] .dz-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dz[data-layout="sheet"] .dz-cards-presets { grid-template-columns: 1fr; }
  .dz[data-layout="sheet"] .dz-cards-sides { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dz[data-layout="sheet"] .dz-reset { padding: 0 .6rem; }
  .dz-actions { grid-template-columns: 1fr; }
}
@media (min-width: 600px) and (max-width: 1024px) {
  .dz[data-layout="sheet"] .dz-panel { inset-inline: max(0px, calc(50% - 22rem)); }
}

/* ---------- landscape phone: side panel ---------- */
.dz[data-layout="side"] { grid-template-columns: minmax(0, 1fr) min(23rem, 46%); gap: .5rem; padding: 0 .5rem .5rem; height: calc(100dvh - var(--hdr)); min-height: 18rem; }
.dz[data-layout="side"] .dz-sheet-top { padding: .5rem .9rem 0; }
.dz[data-layout="side"] .dz-pname { font-size: .95rem; }
.dz[data-layout="side"] .dz-hint, .dz[data-layout="side"] .dz-tools-cam { display: none; }

@media (prefers-reduced-motion: reduce) {
  .dz *, .dz *::before { transition: none !important; animation: none !important; }
}

/* photo mode ("see it on your home", js/designer/photo.js) */
.dz-photo { position: absolute; inset: 0; z-index: 3; }
.dz-photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #111; }
.dz-photo-bar { position: absolute; inset: auto .75rem .75rem .75rem; display: grid; gap: .5rem; background: rgb(255 255 255 / .94); border-radius: .9rem; padding: .75rem; font-size: .84rem; z-index: 4; }
.dz-photo-bar p { margin: 0; }
.dz-photo-bar .dz-row2 { display: flex; flex-wrap: wrap; gap: .4rem; }
.dz-photo-bar .dz-btn { min-height: 2.5rem; padding: 0 .8rem; font-size: .85rem; }
.dz-photo .dz-handle { position: absolute; width: 2.75rem; height: 2.75rem; margin: -1.375rem 0 0 -1.375rem; border-radius: 50%; border: 2px solid #fff; background: rgb(180 142 82 / .55);
  color: #fff; font: 600 .85rem/1 var(--font); display: grid; place-items: center; cursor: grab; touch-action: none; z-index: 5; box-shadow: 0 2px 8px rgb(0 0 0 / .4); }
.dz-photo .dz-handle:focus-visible { outline: 3px solid #fff; }
.dz-quad { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; }
.dz-photo canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* sheet header: one compact row (the page title stays for screen readers) */
.dz[data-layout="sheet"] .dz-ptitle h1, .dz[data-layout="side"] .dz-ptitle h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dz[data-layout="sheet"] .dz-phead, .dz[data-layout="side"] .dz-phead { align-items: center; }
.dz[data-layout="sheet"] .dz-ptitle, .dz[data-layout="side"] .dz-ptitle { min-width: 0; }
.dz[data-layout="sheet"] .dz-pname, .dz[data-layout="side"] .dz-pname { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz[data-layout="sheet"] .dz-icon, .dz[data-layout="sheet"] .dz-reset { height: 2.5rem; }
.dz-sec-h:focus, .dz-sec-h:focus-visible { outline: none; }
.dz-swatches .dz-card.on .dz-card-t, .dz-cards .dz-card.on:not(:has(.dz-card-img)) .dz-card-t { padding-inline-end: 1.15rem; }
.dz[data-layout="sheet"] .dz-tabs { padding-top: .45rem; padding-bottom: .5rem; }
/* lane 12 (target 10): until the script fills the sheet head (products row + step tabs) their space is kept (CLS) */
.dz[data-layout="sheet"] .dz-tabs:empty { min-height: 6.95rem; }
.dz[data-layout="sheet"] .dz-sec { padding-top: .7rem; }
.dz[data-layout="sheet"] .dz-sec-h { margin-bottom: .6rem; font-size: .95rem; }
/* laptops with short screens: the tabs become one scrolling row (current tab centred) so the options keep their room */
@media (min-width: 1025px) and (max-height: 900px) {
  .dz[data-layout="desk"] .dz-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -1rem; padding: .6rem 1rem; scroll-padding-inline: 1rem; }
  .dz[data-layout="desk"] .dz-tabs::-webkit-scrollbar { display: none; }
  .dz[data-layout="desk"] .dz-tabs button { flex: none; }
  .dz[data-layout="desk"] .dz-pname { font-size: 1.05rem; }
  .dz[data-layout="desk"] .dz-sheet-top { padding-top: .7rem; }
}
/* on/off extras (checkbox chips) and section sub-heads */
.dz-toggles { display: grid; grid-template-columns: 1fr; gap: .4rem; }
.dz-toggles .dz-card { flex-direction: row; align-items: center; padding: .55rem .7rem .55rem 2.6rem; min-height: 2.75rem; position: relative; }
.dz-toggles .dz-card::before { content: ""; position: absolute; inset-inline-start: .75rem; top: 50%; width: 1.15rem; height: 1.15rem; margin-top: -.575rem; border-radius: .3rem; border: 1.5px solid rgb(18 18 18 / .35); background: #fff; }
.dz-toggles .dz-card.on::before { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; border-color: var(--ink); }
.dz-toggles .dz-card.on::after { display: none; }
[dir="rtl"] .dz-toggles .dz-card { padding: .55rem 2.6rem .55rem .7rem; }
.dz-sub-strong { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px dashed var(--line); font-size: .9rem; color: var(--ink); font-weight: 600; }

/* ---------- the AI designer: a conversation (js/designer/ai-chat.js) ---------- */
.dz-ai { margin: .25rem 0 1.1rem; padding: .85rem; border-radius: 1rem; background: linear-gradient(180deg, #fbfaf7, #f3f0e8); border: 1px solid rgb(18 18 18 / .07); }
.dz-ai-head { display: flex; align-items: center; gap: .6rem; }
.dz-ai-mark, .dz-ai-av { flex: none; width: 1.9rem; height: 1.9rem; border-radius: .6rem; background: conic-gradient(from 210deg, #c79a5b, #e9d3a6, #9b7548, #c79a5b); position: relative; }
.dz-ai-mark::after, .dz-ai-av::after { content: "✦"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: .95rem; }
.dz-ai-ttl { display: grid; min-width: 0; flex: 1; }
.dz-ai-ttl b { font-size: .92rem; font-weight: 600; color: var(--ink); }
.dz-ai-ttl small { font-size: .76rem; color: var(--muted); line-height: 1.35; }
.dz-ai-clear { flex: none; border: 0; background: none; color: var(--muted); font: .74rem/1 var(--font); padding: .35rem .5rem; border-radius: .5rem; cursor: pointer; }
.dz-ai-clear:hover { background: rgb(18 18 18 / .06); color: var(--ink); }
.dz-ai-log { list-style: none; margin: .8rem 0 .2rem; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .7rem; max-height: 22rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.dz-ai-log[hidden] { display: none; }
.dz-ai-msg { min-width: 0; display: flex; gap: .55rem; align-items: flex-start; animation: dzAiIn .28s ease-out both; }
@keyframes dzAiIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.dz-ai-user { justify-content: flex-end; }
.dz-ai-user .dz-ai-body { max-width: 85%; background: var(--ink); color: #fff; border-radius: 1rem 1rem .3rem 1rem; padding: .55rem .8rem; }
:root[dir="rtl"] .dz-ai-user .dz-ai-body { border-radius: 1rem 1rem 1rem .3rem; }
.dz-ai-ai .dz-ai-body { flex: 1; min-width: 0; }
.dz-ai-av { width: 1.6rem; height: 1.6rem; border-radius: .5rem; margin-top: .1rem; }
.dz-ai-av::after { font-size: .8rem; }
.dz-ai-text { margin: 0; font-size: .9rem; line-height: 1.5; color: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.dz-ai-ai .dz-ai-text { color: var(--ink2); }
.dz-ai-msg.is-live .dz-ai-text:not(:empty)::after { content: ""; display: inline-block; width: .45rem; height: 1em; margin-inline-start: .15rem; vertical-align: -.15em; background: var(--ink); border-radius: 1px; animation: dzAiCaret 1s steps(2) infinite; }
@keyframes dzAiCaret { 50% { opacity: 0; } }
.dz-ai-status { display: flex; align-items: center; gap: .45rem; margin: .1rem 0 .35rem; font-size: .78rem; color: var(--muted); }
.dz-ai-status i { width: 2.1rem; height: .5rem; flex: none; background: radial-gradient(circle, var(--muted) 45%, transparent 50%) 0 50% / .7rem .5rem repeat-x; animation: dzAiDots 1s linear infinite; opacity: .7; }
@keyframes dzAiDots { to { background-position: .7rem 50%; } }
.dz-ai-card { display: grid; margin-top: .5rem; padding: .55rem .7rem; border-radius: .7rem; background: #fff; border: 1px solid rgb(18 18 18 / .08); }
.dz-ai-card b { font-size: .84rem; font-weight: 600; color: var(--ink); }
.dz-ai-card span { font-size: .78rem; color: var(--muted); }
.dz-ai-next, .dz-ai-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.dz-ai-chip { border: 1px solid rgb(18 18 18 / .12); background: #fff; color: var(--ink); font: .8rem/1.25 var(--font); padding: .42rem .7rem; border-radius: 999px; cursor: pointer; text-align: start; max-width: 100%; transition: background .15s, border-color .15s; }
.dz-ai-chip:hover, .dz-ai-chip:focus-visible { border-color: var(--ink); background: #fffdf8; outline: none; }
.dz-ai-chips .dz-ai-chip { border-style: dashed; color: var(--ink2); }
.dz-ai-form { margin-top: .7rem; }
.dz-ai-box { position: relative; display: flex; align-items: flex-end; gap: .4rem; background: #fff; border: 1px solid rgb(18 18 18 / .14); border-radius: 1rem; padding: .35rem .35rem .35rem .8rem; box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 24px -16px rgb(0 0 0 / .25); }
:root[dir="rtl"] .dz-ai-box { padding: .35rem .8rem .35rem .35rem; }
.dz-ai-box:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), 0 8px 24px -16px rgb(0 0 0 / .3); }
.dz-ai-input, .dz-ai-ghost { flex: 1; min-width: 0; font: 1rem/1.45 var(--font); padding: .45rem 0; margin: 0; border: 0; resize: none; background: transparent; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.dz-ai-input:focus, .dz-ai-input:focus-visible { outline: none !important; box-shadow: none !important; }
.dz-ai-input { position: relative; z-index: 1; min-height: 1.45em; max-height: 8.25rem; overflow-y: auto; outline: none; }
.dz-ai-ghost { position: absolute; inset: .35rem 2.95rem .35rem .8rem; color: #a7a198; pointer-events: none; overflow: hidden; }
:root[dir="rtl"] .dz-ai-ghost { inset: .35rem .8rem .35rem 2.95rem; }
.dz-ai-ghost .dz-ai-typed { color: transparent; }
.dz-ai-ghost[hidden] { display: none; }
.dz-ai-send { flex: none; width: 2.3rem; height: 2.3rem; border-radius: .75rem; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .15s, opacity .15s; }
.dz-ai-send:hover { transform: translateY(-1px); }
.dz-ai-send:disabled { opacity: .35; cursor: default; transform: none; }
:root[dir="rtl"] .dz-ai-send svg { transform: none; }
.dz-ai-hint { margin: .35rem .2rem 0; font-size: .72rem; color: var(--muted); }
.dz-ai-hint[hidden] { display: none; }
.dz-ai.is-busy .dz-ai-sug { display: none; }
.dz-ai-btn { border: 1px solid rgb(18 18 18 / .14); background: #fff; color: var(--ink); font: 600 .78rem/1 var(--font); padding: .45rem .65rem; border-radius: .6rem; cursor: pointer; }
.dz-ai-btn span { color: #b48a52; }
.dz-ai-btn:hover { border-color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .dz-ai-msg, .dz-ai-status i, .dz-ai-msg.is-live .dz-ai-text::after { animation: none; } }

/* phone / tablet: the conversation is a view of its own (AI button); 40 px touch targets */
.dz[data-layout="sheet"] .dz-ai, .dz[data-layout="side"] .dz-ai { display: none; }
.dz[data-layout="sheet"][data-ai="1"] .dz-ai, .dz[data-layout="side"][data-ai="1"] .dz-ai { display: block; }
.dz[data-layout="sheet"][data-ai="1"] .dz-sections, .dz[data-layout="side"][data-ai="1"] .dz-sections { display: none; }
.dz[data-ai="1"] .dz-ai-btn { background: var(--ink); color: #fff; border-color: var(--ink); }
.dz-ai-btn, .dz-ai-chip { min-height: 2.5rem; }
.dz-ai-send { width: 2.5rem; height: 2.5rem; }
.dz[data-layout="sheet"] .dz-ai-log, .dz[data-layout="side"] .dz-ai-log { max-height: none; }

/* loading screen over the 3D stage until the town's first view is complete */
.dz-loading { position: absolute; inset: 0; z-index: 6; display: grid; place-items: end center; background: linear-gradient(to top, rgb(18 18 18 / .28), rgb(18 18 18 / 0) 38%); border-radius: inherit; transition: opacity .6s ease; pointer-events: none; }
/* lane 12 (speed): the real picture stays on screen until the first 3D frame; the loading line sits over its foot */
.dz-poster { z-index: 5; }
.dz-poster-place img { filter: blur(.6px); }
.dz-loading .dz-load-card { background: rgb(255 255 255 / .9); border-radius: 1rem; padding: .7rem 1.1rem; margin-bottom: 1rem; gap: .35rem; box-shadow: 0 6px 24px rgb(0 0 0 / .14); }
.dz-loading .dz-load-mark { width: 1.6rem; height: 1.6rem; border-radius: .5rem; }
.dz-loading .dz-load-mark::after { font-size: .8rem; }
.dz-loading .dz-load-bar { width: 14rem; height: .35rem; }
.dz-loading .dz-load-bar i { background: linear-gradient(90deg, #b18734, #e2c271); }
.dz-loading.gone { opacity: 0; pointer-events: none; }
.dz-load-card { display: grid; justify-items: center; gap: .55rem; text-align: center; max-width: 22rem; padding: 1.5rem; }
.dz-load-card b { font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.dz-load-card small { font-size: .85rem; color: var(--muted); line-height: 1.45; }
.dz-load-mark { width: 2.6rem; height: 2.6rem; border-radius: .8rem; background: conic-gradient(from 210deg, #c79a5b, #e9d3a6, #9b7548, #c79a5b); position: relative; animation: dzLoadSpin 2.4s ease-in-out infinite; }
.dz-load-mark::after { content: "✦"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.2rem; }
@keyframes dzLoadSpin { 50% { transform: rotate(180deg) scale(.92); } 100% { transform: rotate(360deg); } }
.dz-load-bar { width: 12rem; height: .3rem; border-radius: 999px; background: rgb(18 18 18 / .08); overflow: hidden; margin-top: .4rem; }
.dz-load-bar i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: inherit; transition: width .5s ease; }
@media (prefers-reduced-motion: reduce) { .dz-load-mark { animation: none; } }
/* product categories: one choice at the top, then only that category's products */
.dz-cats { display: flex; flex-wrap: wrap; gap: .4rem; margin: .2rem 0 .9rem; }
.dz-cat { min-height: 2.5rem; padding: .45rem .85rem; border: 1px solid rgb(18 18 18 / .14); border-radius: 999px; background: #fff; color: var(--ink); font: 500 .85rem/1.2 var(--font); cursor: pointer; }
.dz-cat[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.dz-cat:hover { border-color: var(--ink); }

/* ---------- lane 10: a menu that reads at a glance (owner, 2026-11-27) ---------- */
/* products of this design: one small bar of its own (chips + one "+"), one line, scrolls sideways if ever needed */
.dz-items { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: .35rem; padding: .55rem 0 0; }
.dz-items::-webkit-scrollbar { display: none; }
.dz-items > * { flex: none; }
.dz-items-l { font: 500 .7rem/1 var(--font); color: var(--muted); letter-spacing: .02em; padding-inline-end: .15rem; }
.dz-item-pick { min-height: 2.5rem; padding: .25rem .6rem; }
.dz-item-pick small { max-width: 9rem; }
.dz-item-x { min-width: 2.5rem; }
.dz-item-add { display: inline-flex; align-items: center; gap: .3rem; min-height: 2.5rem; padding: 0 .75rem; border-radius: 999px; }
.dz-item-add > span:first-child { font-size: 1.05rem; line-height: 1; }
/* the steps: ONE line on every screen; the current step named, the others numbered dots (their names stay for screen
   readers and appear as a tooltip) */
.dz-tabs, .dz[data-layout] .dz-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: .25rem; align-items: center; padding: .6rem 0 .65rem; margin-inline: 0; }
.dz-tabs::-webkit-scrollbar { display: none; }
.dz-tabs button, .dz[data-layout] .dz-tabs button { flex: none; min-height: 2.5rem; min-width: 2.25rem; padding: 0; justify-content: center; gap: 0; border-color: transparent; background: transparent; }
.dz-tabs button .dz-n { width: 1.75rem; height: 1.75rem; font-size: .76rem; }
.dz[data-layout="desk"] .dz-tabs button:not(.on) { min-width: 2rem; }
.dz-tabs button .dz-tl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dz-tabs button.on, .dz[data-layout] .dz-tabs button.on { padding: 0 .85rem 0 .3rem; gap: .45rem; background: var(--ink); border-color: var(--ink); color: #fff; flex: none; }
/* phones and narrow panels: the current step is the filled number; the section heading names it ("Step 3 of 9") */
.dz[data-layout="sheet"] .dz-tabs button.on, .dz[data-layout="side"] .dz-tabs button.on { padding: 0; background: transparent; border-color: transparent; }
.dz[data-layout="sheet"] .dz-tabs button.on .dz-tl, .dz[data-layout="side"] .dz-tabs button.on .dz-tl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.dz[data-layout="sheet"] .dz-tabs button.on .dz-n, .dz[data-layout="side"] .dz-tabs button.on .dz-n { background: var(--ink); color: #fff; box-shadow: 0 0 0 3px rgb(18 18 18 / .12); }
.dz[data-layout="sheet"] .dz-tabs, .dz[data-layout="side"] .dz-tabs { justify-content: space-between; }
.dz-sec-of { margin-inline-start: auto; font: 500 .72rem/1 var(--font); color: var(--muted); white-space: nowrap; }
.dz-tabs button.on .dz-tl { overflow: hidden; text-overflow: ellipsis; }
.dz-tabs button.on .dz-tl { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
.dz-tabs button:not(.on):hover .dz-n { background: var(--ink); color: #fff; }
/* "Step 3 of 8 · Type and place" with Back / Next on phones, tablets and landscape phones */
.dz[data-layout="sheet"] .dz-stepof, .dz[data-layout="side"] .dz-stepof { display: none; }
.dz[data-layout="sheet"] .dz-items-l, .dz[data-layout="side"] .dz-items-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
/* the AI designer: a drawer of its own. Closed = one row (open button); open = the conversation in place of the steps */
.dz-ai { cursor: default; }
.dz-ai-close, .dz-ai-opener { flex: none; border: 1px solid rgb(18 18 18 / .14); background: #fff; color: var(--ink); border-radius: 999px; cursor: pointer; }
.dz-ai-close { display: none; width: 2.5rem; height: 2.5rem; place-items: center; }
.dz-ai-opener { min-height: 2.5rem; padding: 0 .9rem; font: 600 .8rem/1 var(--font); }
.dz:not([data-ai="1"]) .dz-ai { cursor: pointer; padding: .55rem .7rem; margin: .1rem 0 .6rem; }
.dz:not([data-ai="1"]) .dz-ai-log, .dz:not([data-ai="1"]) .dz-ai-form, .dz:not([data-ai="1"]) .dz-ai-clear { display: none !important; }
.dz:not([data-ai="1"]) .dz-ai-ttl small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz[data-ai="1"] .dz-ai-opener { display: none; }
.dz[data-ai="1"] .dz-ai-close { display: inline-grid; }
.dz[data-ai="1"] .dz-sections { display: none; }
.dz[data-layout="sheet"] .dz-ai, .dz[data-layout="side"] .dz-ai { display: block; }
.dz[data-ai="1"] .dz-ai-log { max-height: none; }
/* suggestion chips: one row, sideways scroll */
.dz-ai-next, .dz-ai-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: .1rem; }
.dz-ai-next::-webkit-scrollbar, .dz-ai-chips::-webkit-scrollbar { display: none; }
.dz-ai-next .dz-ai-chip, .dz-ai-chips .dz-ai-chip { flex: none; white-space: nowrap; }
/* phones and tablets: 40 px touch targets for every step */
.dz[data-layout="sheet"] .dz-tabs button, .dz[data-layout="side"] .dz-tabs button { min-width: 2.5rem; }
.dz[data-layout="sheet"] .dz-tabs, .dz[data-layout="side"] .dz-tabs { gap: 0; }
/* lane 12: 2D plan beside the 3D, and the own-space form */
.dz-plan-btn{position:absolute;inset-inline-start:12px;bottom:56px;z-index:6;font:600 13px/1 var(--font,inherit);padding:9px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.5);background:rgba(20,22,24,.72);color:#fff;backdrop-filter:blur(6px);cursor:pointer}
.dz-plan-btn.on{background:#c8a24a;color:#111;border-color:#c8a24a}
.dz-plan{position:absolute;inset-inline-start:12px;top:12px;max-height:calc(100% - 70px);display:flex;flex-direction:column;z-index:6;width:min(380px,calc(100% - 24px));background:rgba(250,249,246,.97);color:#1d1f21;border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.25);padding:8px 10px 6px}
.dz-plan[hidden]{display:none}
.dz-plan-head{display:flex;align-items:baseline;gap:8px}.dz-plan-head small{flex:1;color:#5d6166;font-size:11px}
.dz-plan-x{border:0;background:none;font-size:20px;line-height:1;cursor:pointer;color:#333;padding:2px 6px}
.dz-plan-svg{width:100%;height:auto;min-height:0;flex:1 1 auto;display:block;touch-action:none;user-select:none}
.dz-plan-tab.on,.dz-plan-tab[aria-expanded="true"]{background:#c8a24a!important;color:#111!important}
.pl-space{fill:#ece7dc;stroke:#9c927f;stroke-width:3}
.pl-run{fill:none;stroke:#23272b;stroke-width:4;stroke-linejoin:round}
.pl-gap{stroke:#fafaf7;stroke-width:6}.pl-door{fill:none;stroke:#b0822a;stroke-width:1.6}
.pl-foot{fill:rgba(200,162,74,.25);stroke:#7a5e1f;stroke-width:2}.pl-item{fill:rgba(60,110,150,.2);stroke:#2f5b7a;stroke-width:2}
.pl-step{stroke:#444;stroke-width:1.2}.pl-land{fill:rgba(0,0,0,.07);stroke:#444}
.pl-dim{font:600 11px/1 system-ui,sans-serif;fill:#1d1f21}.pl-edit{fill:#7a4f00;text-decoration:underline;cursor:pointer}
.pl-small{font:11px/1 system-ui,sans-serif;fill:#4a4e52}.pl-front{fill:#7a5e1f}
.pl-h{fill:#c8a24a;stroke:#fff;stroke-width:2;cursor:grab}
.dz-own{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;margin:8px 0}
.dz-own-f{display:flex;flex-direction:column;gap:4px;font-size:13px}.dz-own-f .dz-input{width:100%;min-width:0;padding:8px;border:1px solid #c9c4b9;border-radius:8px;font:inherit}
.dz-own-wrap{margin-bottom:14px}
@media (max-width:700px){.dz-plan{top:8px;inset-inline-start:8px;width:calc(100% - 16px)}}
.dz-ai-ask{margin:8px 0 2px;font-weight:600}.dz-ai-options .dz-ai-chip{border-style:dashed}
.dz-ar-btn{top:auto!important;bottom:56px;inset-inline-end:12px}@media (max-width:700px){.dz-ar-btn{bottom:52px}}
/* lane 12 (audit 17, 26): the view bar scrolls with a visible hint; the product name wraps to two lines on phones */
.dz-tools-cam{overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}.dz-tools-cam::-webkit-scrollbar{display:none}
.dz-tools-cam[data-more]{-webkit-mask-image:linear-gradient(to right,#000 78%,transparent);mask-image:linear-gradient(to right,#000 78%,transparent)}
[dir="rtl"] .dz-tools-cam[data-more]{-webkit-mask-image:linear-gradient(to left,#000 78%,transparent);mask-image:linear-gradient(to left,#000 78%,transparent)}
.dz[data-layout="sheet"] .dz-pname{white-space:normal!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dz-slow{position:absolute;top:3.2rem;left:50%;transform:translateX(-50%);z-index:3;margin:0;padding:.35rem .8rem;border-radius:999px;background:rgba(20,22,24,.72);color:#fff;font-size:.8rem}
/* AR lane: the AR / camera button sits above the view bar (it covered "Top" and "Under the roof" on phones and tablets:
   check_ar --geometry, 24 px on phones, 4 px on a landscape iPad); the bar is 3 rem tall, 0.5 rem gap */
.dz-ar-btn{bottom:calc(.75rem + 3.5rem)}
.dz[data-layout="sheet"] .dz-ar-btn{bottom:calc(1.75rem + 3.5rem)}
.dz[data-layout="sheet"][data-sheet="full"] .dz-ar-btn,.dz[data-layout="side"] .dz-ar-btn{bottom:.75rem}
