/* =====================================================================
   Homewall — klantenvragenlijst
   Visual language follows homewall.nl: Inter, white + warm beige (#f4eee8),
   tan accent (#c8ab88), black pill buttons. Light and dark theme.
   ===================================================================== */

/* ------------------------------------------------------------ tokens */
:root {
  color-scheme: light;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --bg: #f7f4f0;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #fbf9f6;
  --surface-3: #f4eee8;
  --text: #0b1613;
  --text-2: #353c39;
  --muted: #69706c;
  --faint: #a3a7a3;
  --line: #ece6de;
  --line-2: #dcd3c7;

  --accent: #c8ab88;
  --accent-2: #bd9a70;
  --accent-ink: #8a6a43;
  --accent-soft: #f4eee8;
  --accent-glow: rgba(200, 171, 136, .38);
  --on-accent: #1d150c;

  --primary: #0b1613;
  --primary-hover: #000000;
  --on-primary: #ffffff;

  --danger: #c4483b;
  --danger-soft: #fcefec;
  --ok: #3c7a57;
  --ok-soft: #edf5f0;
  --warn: #92631a;
  --warn-soft: #fbf4e6;

  --logo-ink: #323232;
  --logo-tan: #c3ab8e;

  --shadow-1: 0 1px 2px rgba(31, 22, 12, .05);
  --shadow-2: 0 1px 2px rgba(31, 22, 12, .04), 0 12px 32px -14px rgba(31, 22, 12, .14);
  --shadow-3: 0 2px 6px rgba(31, 22, 12, .06), 0 34px 80px -24px rgba(31, 22, 12, .32);

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-pill: 999px;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --topbar-h: 64px;
  --gutter: 18px;
  --progress: 0;

  /* 3D preview */
  --r3-floor: #efe8de;
  --r3-grid: rgba(95, 72, 44, .085);
  --r3-face: #fbf8f4;
  --r3-seam: rgba(92, 70, 44, .17);
  --r3-shade: #2a1b0b;
  --r3-cap: #303030;
  --r3-end: #4a4a4a;
  --r3-band: #3a3a3a;
  --r3-ghost: rgba(40, 36, 30, .34);
  --r3-shadow: rgba(70, 48, 22, .30);
  --r3-door: #cdae86;
  --r3-door-line: rgba(84, 58, 30, .5);
  --r3-glass: #d6e4e8;
  --r3-frame: #ffffff;
  --r3-badge: #ffffff;
  --r3-badge-ink: #0b1613;
  --r3-badge-line: rgba(11, 22, 19, .16);
  --r3-hl: #c8ab88;
  --r3-fx: #ffffff;
  --r3-fx-line: rgba(60, 52, 42, .45);
  --r3-bs: #e2cfb4;
  --r3-counter: #f4f1ec;
  --r3-worktop: #b89a78;
  --r3-hood: #c9cdd0;
  --r3-hob: #26282a;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0c0a;
  --bg-elev: #12110f;
  --surface: #171512;
  --surface-2: #1c1a16;
  --surface-3: #25211c;
  --text: #f3eee8;
  --text-2: #d6cec3;
  --muted: #a1988c;
  --faint: #6d655b;
  --line: #2a2621;
  --line-2: #3b352d;

  --accent: #c8ab88;
  --accent-2: #d8bf9e;
  --accent-ink: #dcc3a1;
  --accent-soft: rgba(200, 171, 136, .12);
  --accent-glow: rgba(200, 171, 136, .26);

  --primary: #f3eee8;
  --primary-hover: #ffffff;
  --on-primary: #0d0c0a;

  --danger: #f08676;
  --danger-soft: rgba(240, 134, 118, .12);
  --ok: #8ccca6;
  --ok-soft: rgba(140, 204, 166, .11);
  --warn: #e6bd6c;
  --warn-soft: rgba(230, 189, 108, .11);

  --logo-ink: #f3eee8;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-2: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .6);
  --shadow-3: 0 2px 6px rgba(0, 0, 0, .3), 0 34px 80px -24px rgba(0, 0, 0, .8);

  --r3-floor: #27231d;
  --r3-grid: rgba(255, 240, 220, .05);
  --r3-face: #3b362f;
  --r3-seam: rgba(255, 244, 228, .1);
  --r3-shade: #000000;
  --r3-cap: #e6ded2;
  --r3-end: #c9c0b3;
  --r3-band: #d8cfc2;
  --r3-ghost: rgba(240, 230, 215, .32);
  --r3-shadow: rgba(0, 0, 0, .75);
  --r3-door: #8b6c49;
  --r3-door-line: rgba(255, 230, 200, .35);
  --r3-glass: #455a61;
  --r3-frame: #8c8378;
  --r3-badge: #0d0c0a;
  --r3-badge-ink: #f3eee8;
  --r3-badge-line: rgba(243, 238, 232, .24);
  --r3-fx: #d9d3c9;
  --r3-fx-line: rgba(20, 16, 12, .55);
  --r3-bs: #7a6450;
  --r3-counter: #cfc8bd;
  --r3-worktop: #8a6f53;
  --r3-hood: #9aa0a4;
  --r3-hob: #141516;
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color .35s ease, color .35s ease;
}
img, svg { display: block; }
/* html2canvas (PDF copy) measures the text baseline in this page with a 1 × 1 inline gif;
   as a block it would land on a line of its own and every text in the PDF would be drawn too low */
body > div > img[src^="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP"] { display: inline; }
button, input, textarea, select { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: none; }
.ico { width: 20px; height: 20px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: var(--r-pill); background: var(--primary); color: var(--on-primary); font-weight: 650; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------ topbar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--topbar-h);
  background: var(--bg-elev);
  background: color-mix(in srgb, var(--bg-elev) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(18px);
  backdrop-filter: saturate(1.5) blur(18px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  max-width: 1280px; height: 100%; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 14px;
}
.brand { display: inline-flex; align-items: center; color: var(--logo-ink); text-decoration: none; border-radius: 8px; }
.brand:focus-visible { box-shadow: 0 0 0 4px var(--accent-glow); }
.logo { height: 22px; width: auto; }
.logo__word { fill: currentColor; }
.tile__plank { fill: var(--logo-tan); }
.tile__seams { stroke: #fff; stroke-opacity: .42; }
.topbar__title {
  display: none; padding-left: 16px; margin-left: 2px; border-left: 1px solid var(--line-2);
  font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topbar__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.topbar__progress span {
  display: block; height: 100%; width: calc(var(--progress) * 100%);
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  border-radius: 0 2px 2px 0;
  transition: width .8s var(--ease);
}
@media (min-width: 560px) { .logo { height: 25px; } }
@media (min-width: 860px) {
  :root { --topbar-h: 72px; --gutter: 28px; }
  .topbar__title { display: block; }
}

/* ------------------------------------------------------------ segmented controls */
.seg {
  --n: 2; --i: 0;
  position: relative; isolation: isolate;
  display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 3px; border-radius: var(--r-pill);
  background: var(--surface-3); border: 1px solid var(--line);
}
.seg__btn {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 12px; border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--muted);
  font-size: 13px; font-weight: 650; letter-spacing: .02em; cursor: pointer;
  transition: color .25s var(--ease);
}
.seg__btn .ico { width: 16px; height: 16px; }
.seg__btn:hover { color: var(--text); }
.seg__btn.is-on { color: var(--text); }
.seg__btn:focus-visible { box-shadow: 0 0 0 3px var(--accent-glow); }
.seg__thumb {
  position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px;
  width: calc((100% - 6px) / var(--n));
  border-radius: var(--r-pill); background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 3px 10px -3px rgba(0, 0, 0, .14);
  transform: translateX(calc(var(--i) * 100%));
  transition: transform .5s var(--spring);
}
[data-theme="dark"] .seg__thumb { background: #3a342c; box-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.seg--num { grid-auto-columns: 46px; }
.seg--num .seg__btn { height: 40px; font-size: 15px; font-variant-numeric: tabular-nums; }
.seg--sm .seg__btn { height: 30px; padding: 0 11px; font-size: 12.5px; }
.seg.is-empty .seg__thumb { opacity: 0; }
.seg--walls { grid-auto-columns: minmax(0, 42px); max-width: 100%; }
.seg--walls .seg__btn { height: 36px; padding: 0; font-size: 14px; }

/* ------------------------------------------------------------ buttons */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 650; letter-spacing: -.005em; line-height: 1.2;
  text-decoration: none; cursor: pointer; user-select: none;
  /* long labels wrap inside the button instead of running out of it (small phones, Dutch) */
  height: auto; min-height: var(--h); max-width: 100%; text-align: center; overflow-wrap: anywhere; padding-top: 6px; padding-bottom: 6px;
  transition: transform .2s var(--ease), background-color .2s ease, color .2s ease, box-shadow .3s var(--ease), border-color .2s ease, opacity .2s;
}
.btn .ico { width: 18px; height: 18px; }
.btn:active { transform: scale(.975); }
.btn:focus-visible { box-shadow: 0 0 0 4px var(--accent-glow); }
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 1px 1px rgba(0, 0, 0, .1), 0 10px 22px -12px rgba(11, 22, 19, .7); }
.btn--primary:hover { background: var(--primary-hover); box-shadow: 0 1px 1px rgba(0, 0, 0, .1), 0 14px 28px -12px rgba(11, 22, 19, .75); }
[data-theme="dark"] .btn--primary { box-shadow: 0 10px 26px -12px rgba(243, 238, 232, .25); }
.btn--primary .arrow { transition: transform .35s var(--ease); }
.btn--primary:hover .arrow { transform: translateX(3px); }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-2); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--surface-3); border-color: var(--line-2); }
.btn--soft { background: var(--surface-3); color: var(--text); }
.btn--soft:hover { background: color-mix(in srgb, var(--surface-3) 70%, var(--accent) 30%); }
.btn--quiet { background: transparent; color: var(--muted); padding: 0 12px; }
.btn--quiet:hover { color: var(--text); background: var(--surface-3); }
.btn--sm { --h: 36px; padding: 0 14px; font-size: 13.5px; gap: 7px; }
.btn--sm .ico { width: 16px; height: 16px; }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 16px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.is-busy { pointer-events: none; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .8s linear infinite;
}

.icon-btn {
  width: 40px; height: 40px; flex: none;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--text); cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .2s var(--ease);
}
.icon-btn:hover { background: var(--surface-3); }
.icon-btn:active { transform: scale(.94); }
.icon-btn:focus-visible { box-shadow: 0 0 0 4px var(--accent-glow); }
.icon-btn .ico { width: 19px; height: 19px; }
.icon-btn--sm { width: 34px; height: 34px; }
.icon-btn--sm .ico { width: 17px; height: 17px; }
.theme-toggle .ico { transition: transform .6s var(--spring), opacity .3s; }
.theme-toggle:hover .ico { transform: rotate(-24deg); }

/* ------------------------------------------------------------ layout */
.app { min-height: calc(100dvh - var(--topbar-h)); }
.layout {
  max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr);
}
.rail { display: none; }
.stage { min-width: 0; padding-top: 22px; }
.stage__inner { will-change: transform, opacity; }
@media (min-width: 1024px) {
  .layout { grid-template-columns: 236px minmax(0, 1fr); gap: 56px; }
  .rail { display: block; position: sticky; top: calc(var(--topbar-h) + 36px); align-self: start; padding: 0 0 32px; }
  .stage { padding-top: 44px; max-width: 840px; }
  .stage[data-step="rooms"], .stage[data-step="review"] { max-width: 980px; }
}

/* rail */
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before, .steps__fill {
  content: ''; position: absolute; left: 15px; top: 18px; width: 2px; border-radius: 2px;
}
.steps::before { bottom: 18px; background: var(--line); }
.steps__fill { height: calc(var(--fill, 0) * (100% - 36px)); background: var(--accent); transition: height .8s var(--ease); }
.step-link {
  position: relative; width: 100%;
  display: flex; align-items: center; gap: 14px; padding: 7px 0;
  border: 0; background: none; text-align: left; cursor: pointer;
  color: var(--muted); font-size: 14.5px; font-weight: 550; line-height: 1.3;
  transition: color .2s;
}
.step-link:hover:not([disabled]) { color: var(--text); }
.step-link[disabled] { cursor: default; color: var(--faint); }
.step-link:focus-visible .step-link__dot { box-shadow: 0 0 0 4px var(--accent-glow); }
.step-link__dot {
  position: relative; z-index: 1; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); border: 2px solid var(--line-2);
  font-size: 12.5px; font-weight: 750; font-variant-numeric: tabular-nums; color: var(--muted);
  transition: background-color .35s, border-color .35s, color .35s, box-shadow .35s;
}
.step-link__dot .ico { width: 15px; height: 15px; stroke-width: 2.4; }
.step-link.is-done .step-link__dot { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.step-link.is-current { color: var(--text); font-weight: 650; }
.step-link.is-current .step-link__dot { background: var(--primary); border-color: var(--primary); color: var(--on-primary); box-shadow: 0 0 0 5px var(--accent-soft); }
.step-link.has-issue .step-link__dot::after {
  content: ''; position: absolute; top: -2px; right: -2px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--danger); box-shadow: 0 0 0 2px var(--bg);
}
.rail__foot { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.saved { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.saved__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.saved.is-pulse .saved__dot { animation: pulse 1s var(--ease); }
.help { font-size: 13px; color: var(--muted); }
.help b { display: block; color: var(--text); font-weight: 650; margin-bottom: 2px; }
.help a { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; color: var(--text-2); text-decoration: none; font-weight: 550; }
.help a:hover { color: var(--accent-ink); }
.help .ico { width: 16px; height: 16px; color: var(--accent-ink); }

/* step head */
.stage__head { margin-bottom: 24px; }
.eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
  font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink);
}
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line-2); transition: width .4s var(--ease), background-color .3s; }
.dots i.is-done { background: var(--accent); }
.dots i.is-current { width: 18px; background: var(--primary); }
@media (min-width: 1024px) { .dots { display: none; } }
.stage__title { font-size: clamp(28px, 4.2vw, 40px); line-height: 1.08; letter-spacing: -.028em; font-weight: 800; }
.stage__title:focus { outline: none; }
.stage__lead { margin-top: 12px; max-width: 64ch; color: var(--muted); font-size: 16px; }
@media (min-width: 860px) { .stage__lead { font-size: 17px; } }

/* ------------------------------------------------------------ cards */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-2); padding: 20px; margin-bottom: 16px;
}
@media (min-width: 640px) { .card { padding: 28px 30px; margin-bottom: 18px; } }
.card__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.card__num {
  flex: none; margin-top: 1px; padding: 4px 8px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 12px; font-weight: 800; letter-spacing: .06em; font-variant-numeric: tabular-nums;
}
[data-theme="dark"] .card__num { background: rgba(200, 171, 136, .14); }
.card__titles { flex: 1; min-width: 0; }
.card__title { font-size: 18.5px; line-height: 1.3; font-weight: 750; letter-spacing: -.012em; }
.card__sub { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.card__icon {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--accent-ink);
}
.card__icon .ico { width: 20px; height: 20px; }
@media (max-width: 420px) { .card__icon { display: none; } }

/* ------------------------------------------------------------ fields */
.grid { display: grid; gap: 18px 20px; }
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .span-2 { grid-column: 1 / -1; }
}
.field { position: relative; min-width: 0; }
.field__label {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  font-size: 14px; font-weight: 600; color: var(--text-2); line-height: 1.3;
}
.field__label small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.opt { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--faint); }
.field__control { position: relative; }
.input {
  width: 100%; height: 52px; padding: 0 16px;
  border: 1.5px solid var(--line-2); border-radius: var(--r);
  background: var(--surface); color: var(--text);
  font-size: 16px; line-height: 1.4;
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s ease, box-shadow .3s var(--ease), background-color .2s;
}
.input::placeholder { color: var(--faint); opacity: 1; }
.input:hover { border-color: color-mix(in srgb, var(--line-2) 55%, var(--accent) 45%); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
[data-theme="dark"] .input { background: var(--surface-2); }
.input--area { height: auto; min-height: 132px; padding: 14px 16px; resize: vertical; }
.input--mm { padding-right: 50px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.field__unit {
  position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
  font-size: 13px; font-weight: 650; color: var(--muted); pointer-events: none;
}
.field__hint { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.field__meta { display: flex; justify-content: flex-end; margin-top: 6px; }
.field__count { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.field__count.is-near { color: var(--warn); }
.field__err { display: none; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--danger); }
.is-invalid > .field__err, .is-invalid .q__err { display: block; animation: fadeIn .25s ease both; }
.is-invalid .input { border-color: var(--danger); }
.is-invalid .input:focus { box-shadow: 0 0 0 4px var(--danger-soft); }
.is-shake { animation: shake .42s var(--ease); }
.field__note {
  display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px 8px 8px 12px;
  border-radius: 12px; background: var(--warn-soft); color: var(--warn);
  font-size: 13px; font-weight: 550; animation: fadeIn .25s ease both;
}
.field__note:empty { display: none; }
.field__note .ico { width: 16px; height: 16px; }
.field__note button {
  margin-left: auto; height: 30px; padding: 0 12px; border: 0; border-radius: var(--r-pill);
  background: var(--warn); color: #fff; font-size: 12.5px; font-weight: 700; cursor: pointer;
}
[data-theme="dark"] .field__note button { color: #1a1206; }
.meta-chip {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 7px 12px 7px 10px;
  border-radius: var(--r-pill); background: var(--surface-3); color: var(--text-2);
  font-size: 13px; font-weight: 550;
}
.meta-chip .ico { width: 16px; height: 16px; color: var(--accent-ink); }
.contact-hint { margin-top: 10px; }
.contact-hint.is-invalid { color: var(--danger); font-weight: 600; }

/* ------------------------------------------------------------ yes / no */
.qlist { display: grid; }
.q {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px;
  padding: 15px 0; border-top: 1px solid var(--line);
}
.q:first-child { border-top: 0; padding-top: 2px; }
.q__text { font-size: 15.5px; font-weight: 520; line-height: 1.45; color: var(--text); }
.q__hint { display: block; margin-top: 3px; font-size: 13px; font-weight: 450; color: var(--muted); }
.q.is-invalid .q__text { color: var(--danger); }
.yn {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 4px; border-radius: var(--r-pill);
  background: var(--surface-3); border: 1px solid var(--line);
}
.q.is-invalid .yn { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.yn__opt {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  height: 42px; padding: 0 18px; border-radius: var(--r-pill);
  font-size: 14.5px; font-weight: 650; color: var(--muted);
  cursor: pointer; user-select: none; transition: color .25s ease;
}
.yn__opt:hover { color: var(--text); }
.yn__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.yn__opt .ico { width: 15px; height: 15px; stroke-width: 2.3; opacity: .55; transition: opacity .2s; }
.yn__opt:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--accent-glow); }
.yn__thumb {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: var(--r-pill); background: var(--primary);
  opacity: 0; transform: translateX(0) scale(.7);
  transition: transform .5s var(--spring), opacity .2s ease;
}
.yn[data-value="JA"] .yn__thumb { opacity: 1; transform: translateX(0) scale(1); }
.yn[data-value="NEE"] .yn__thumb { opacity: 1; transform: translateX(100%) scale(1); }
.yn[data-value="JA"] .yn__opt:nth-child(1),
.yn[data-value="NEE"] .yn__opt:nth-child(2) { color: var(--on-primary); }
.yn[data-value="JA"] .yn__opt:nth-child(1) .ico,
.yn[data-value="NEE"] .yn__opt:nth-child(2) .ico { opacity: 1; }
/* three answers: yes / no / don't know */
.yn--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.yn--3 .yn__opt { padding: 0 8px; text-align: center; line-height: 1.15; font-size: clamp(12.5px, 3.6vw, 14.5px); gap: 5px; }
@media (max-width: 400px) { .yn--3 .yn__opt .ico { display: none; } }
.yn--3 .yn__thumb { width: calc((100% - 8px) / 3); }
.yn--3[data-value="NEE"] .yn__thumb { transform: translateX(100%) scale(1); }
.yn[data-value="ONBEKEND"] .yn__thumb { opacity: 1; transform: translateX(200%) scale(1); background: var(--accent); }
.yn[data-value="ONBEKEND"] .yn__opt:nth-child(3) { color: var(--on-accent); }
.yn[data-value="ONBEKEND"] .yn__opt:nth-child(3) .ico { opacity: 1; }
@media (min-width: 600px) {
  .q { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 28px; }
  .q > .field__err { grid-column: 1 / -1; }
  .yn { min-width: 184px; }
  .yn--3 { min-width: 312px; }
}
.unsure { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; }
.unsure .ico { width: 16px; height: 16px; margin-top: 1px; color: var(--accent-ink); }
.other { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }

/* electrical / plumbing: a notice instead of questions (Homewall does not do this work) */
.card--notice .card__head { margin-bottom: 14px; }
.notice { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--surface-3); color: var(--text-2); }
.notice > .ico { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--accent-ink); }
.notice__title { font-size: 15px; font-weight: 700; color: var(--text); }
.notice__text { margin-top: 3px; font-size: 14.5px; line-height: 1.5; }

/* ------------------------------------------------------------ check cards */
.checks { display: grid; gap: 10px; }
@media (min-width: 600px) { .checks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
/* wall finish: four finishes, "weet ik niet" below them over the full width */
@media (min-width: 600px) { .checks--finish { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .checks--finish { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.check--unknown { border-style: dashed; }
.check--unknown .check__icon { background: transparent; }
.check {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 14px 52px 14px 14px; border-radius: var(--r-lg);
  border: 1.5px solid var(--line-2); background: var(--surface);
  cursor: pointer; user-select: none;
  transition: border-color .25s, background-color .25s, transform .25s var(--ease), box-shadow .3s var(--ease);
}
.check:hover { border-color: var(--accent); transform: translateY(-1px); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.check:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--accent-glow); }
.check__icon {
  flex: none; width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; background: var(--surface-3); color: var(--accent-ink);
  transition: background-color .25s, color .25s, transform .4s var(--spring);
}
.check__icon .ico { width: 24px; height: 24px; }
.check__label { font-size: 15px; font-weight: 600; line-height: 1.35; }
.check__state { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 600; color: var(--accent-ink); opacity: 0; transform: translateY(-3px); transition: opacity .25s, transform .3s var(--ease); }
.check__tick {
  position: absolute; top: 50%; right: 14px; margin-top: -12px;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--line-2); color: transparent;
  transition: background-color .25s, border-color .25s, color .25s;
}
.check__tick .ico { width: 14px; height: 14px; stroke-width: 2.6; }
.check.is-on { border-color: var(--accent); background: var(--accent-soft); }
.check.is-on .check__icon { background: var(--accent); color: var(--on-accent); transform: rotate(-6deg); }
.check.is-on .check__tick { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.check.is-on .check__tick .ico { animation: pop .4s var(--spring); }
.check.is-on .check__state { opacity: 1; transform: none; }
@media (min-width: 600px) {
  .check { flex-direction: column; align-items: flex-start; gap: 16px; padding: 18px; min-height: 148px; }
  .check__tick { top: 16px; right: 16px; margin-top: 0; }
  .checks--finish .check--unknown { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 14px; min-height: 0; padding: 14px 52px 14px 14px; }
  .checks--finish .check--unknown .check__tick { top: 50%; right: 14px; margin-top: -12px; }
}
.checks-wrap.is-invalid .check { border-color: color-mix(in srgb, var(--danger) 60%, var(--line-2)); }
.checks-wrap > .field__err { margin-top: 10px; }

/* ------------------------------------------------------------ rooms */
.rooms-count {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line);
}
.rooms-count__label { font-size: 15.5px; font-weight: 650; }
/* mm or cm (step 4, also the bathtub in step 5) */
.units {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line);
}
.units__label { font-size: 15.5px; font-weight: 650; }
.units .field__hint { margin-top: 2px; max-width: 46ch; }
.seg--unit { grid-auto-columns: 58px; }
.units--compact { padding-bottom: 0; margin-bottom: 14px; border-bottom: 0; }
.units--compact .units__label { font-size: 14px; color: var(--text-2); }
.room-tabs {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 -20px 20px; padding: 2px 20px 4px; scroll-padding: 20px;
}
.room-tabs::-webkit-scrollbar { display: none; }
/* phone: one row to scroll sideways; larger screens: every room visible at once, on a second row if needed */
@media (min-width: 640px) { .room-tabs { flex-wrap: wrap; overflow: visible; margin: 0 0 22px; padding: 2px 0 4px; } }
.room-tab {
  flex: none; display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 12px 0 6px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line-2); background: var(--surface); color: var(--text-2);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background-color .25s, border-color .25s, color .25s, transform .2s var(--ease);
}
.room-tab:hover { border-color: var(--accent); }
.room-tab:focus-visible { box-shadow: 0 0 0 4px var(--accent-glow); }
.room-tab__num {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-3); font-size: 13px; font-weight: 750;
}
.room-tab__st { width: 16px; height: 16px; display: grid; place-items: center; color: var(--accent); }
.room-tab__st .ico { width: 16px; height: 16px; stroke-width: 2.6; }
.room-tab.is-err .room-tab__st::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.room-tab.is-todo .room-tab__st::before { content: ''; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--faint); }
.room-tab.is-on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.room-tab.is-on .room-tab__num { background: color-mix(in srgb, var(--on-primary) 16%, transparent); }

.room__label { font-size: 14px; font-weight: 650; color: var(--text-2); margin-bottom: 10px; }
.type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .type-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.type {
  display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 9px 12px;
  border: 1.5px solid var(--line-2); border-radius: var(--r);
  background: var(--surface); color: var(--text);
  font-size: 13.5px; font-weight: 580; line-height: 1.25; text-align: left; cursor: pointer;
  transition: border-color .2s, background-color .2s, transform .25s var(--ease);
}
.type .ico { width: 22px; height: 22px; color: var(--accent-ink); transition: transform .4s var(--spring); }
.type:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.type:hover .ico { transform: scale(1.12) rotate(-4deg); }
.type:focus-visible { box-shadow: 0 0 0 4px var(--accent-glow); }
.type.is-on { border-color: var(--accent); background: var(--accent-soft); }
.type-chosen {
  display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 12px;
  border-radius: var(--r-lg); border: 1.5px solid var(--accent); background: var(--accent-soft);
  animation: fadeIn .35s ease both;
}
.type-chosen__icon { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.type-chosen__icon .ico { width: 24px; height: 24px; }
.type-chosen__name { flex: 1; min-width: 0; font-size: 16px; font-weight: 700; line-height: 1.3; }
.type-chosen .btn { flex: none; }
@media (max-width: 420px) { .type-chosen .btn span { display: none; } .type-chosen .btn { width: 36px; padding: 0; } }

.room__bodywrap { position: relative; margin-top: 22px; }
.room__lock {
  position: absolute; z-index: 3; top: 48px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 24px);
  padding: 11px 18px; border-radius: var(--r-pill);
  background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-3);
  font-size: 14px; font-weight: 600; text-align: center;
  animation: floatY 3s ease-in-out infinite;
}
.room__lock .ico { width: 18px; height: 18px; }
.room__body.is-locked { opacity: .38; filter: grayscale(.8); pointer-events: none; user-select: none; }
.room__grid { display: grid; gap: 22px; grid-template-areas: "viz" "form"; grid-template-columns: minmax(0, 1fr); }
.room__viz { grid-area: viz; min-width: 0; }
.room__form { grid-area: form; min-width: 0; display: grid; gap: 22px; align-content: start; }
@media (min-width: 1180px) {
  .room__grid { grid-template-areas: "form viz"; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: start; gap: 28px; }
  .room__viz { position: sticky; top: calc(var(--topbar-h) + 18px); }
}
.walls__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 12px; }
.walls__head .room__label { margin: 0; }
.walls__tip {
  display: flex; align-items: flex-start; gap: 8px; width: 100%; margin-top: 6px; padding: 10px 12px;
  border-radius: 12px; background: var(--surface-3); color: var(--text-2); font-size: 13px; line-height: 1.4;
}
.walls__tip .ico { width: 17px; height: 17px; color: var(--accent-ink); margin-top: 1px; }
.walls__list { display: grid; gap: 10px; }
@media (min-width: 480px) { .walls__list { grid-template-columns: 1fr 1fr; } }
.field--wall .field__label { margin-bottom: 6px; }
.wall-badge {
  width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-3); border: 1px solid var(--line-2);
  font-size: 11.5px; font-weight: 800; color: var(--text); transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--spring);
}
.field--wall.is-focus .wall-badge { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: scale(1.12); }
.field--wall .field__label small { display: inline-flex; align-items: center; gap: 4px; }
.field--wall .field__label small .ico { width: 14px; height: 14px; }
.walls__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
/* open layout: "do not connect to the next wall" */
.wswitch {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 7px; padding: 2px 0;
  border: 0; background: none; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 550; line-height: 1.3; text-align: left; cursor: pointer;
}
.wswitch:hover { color: var(--text); }
.wswitch:focus-visible { outline: none; }
.wswitch:focus-visible .wswitch__track { box-shadow: 0 0 0 3px var(--accent-glow); }
.wswitch__track { position: relative; flex: none; width: 30px; height: 18px; border-radius: 9px; background: var(--line-2); transition: background-color .2s; }
.wswitch__track::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .3s var(--spring);
}
.wswitch.is-on { color: var(--accent-ink); }
.wswitch.is-on .wswitch__track { background: var(--accent); }
.wswitch.is-on .wswitch__track::after { transform: translateX(12px); }
.field--wall.is-open .wall-badge { border-style: dashed; border-color: var(--accent); }
.field__hint--inline { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; }
.field__hint--inline .ico { width: 15px; height: 15px; color: var(--accent-ink); }

/* wall picker (partitions, window / door positions) */
.pick { display: grid; gap: 7px; justify-items: start; min-width: 0; }
.pick__label { font-size: 13.5px; font-weight: 650; color: var(--text-2); }
.pick.is-invalid .seg { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.pick > .field__err { margin-top: 0; }

/* partitions */
.parts .walls__head { margin-bottom: 4px; }
.parts .opt { margin-left: 0; }
.parts__tip { margin: 0 0 12px; }
.parts__list { display: grid; gap: 12px; }
.part { display: grid; gap: 14px; padding: 14px 16px 6px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); }
.part__head { display: flex; align-items: center; gap: 10px; }
.part__badge { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.part__badge .ico { width: 18px; height: 18px; }
.part__title { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; }
.part__grid { display: grid; gap: 12px; }
@media (min-width: 480px) { .part__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.part__grid .field__label, .pos .field__label { flex-wrap: wrap; gap: 0 8px; }
.part__grid .field__label small { flex-basis: 100%; }
@media (min-width: 480px) { .part__grid .field { display: flex; flex-direction: column; } .part__grid .field__label { flex: 1; align-items: flex-end; align-content: flex-end; } }
.part .q { padding-top: 0; }
.parts .walls__actions { margin-top: 12px; }

/* windows / doors: one card each (size, wall, offset) */
.pos-list { display: grid; gap: 10px; align-content: start; min-width: 0; }
.pos-list:empty { display: none; }
.pos-list__hint { margin: 0 0 2px; }
.pos { display: grid; gap: 12px; padding: 12px 14px 4px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.pos__name { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; }
.pos__name .ico { width: 18px; height: 18px; color: var(--accent-ink); }
.pos__grid { display: grid; gap: 4px 12px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pos__grid .pick { grid-column: 1 / -1; }
@media (min-width: 560px) { .pos__grid .pick { grid-column: auto; } }
.pos__grid .field__label { min-height: 18px; }
.art--op { margin: 0; display: grid; gap: 2px; }
.art__caption { padding: 6px 8px 0; font-size: 12.5px; font-weight: 700; color: var(--muted); text-align: center; }
.art__caption:empty { display: none; }

/* who measures: the client now, or a fitter during a visit */
.card--measure { padding: 10px; }
@media (min-width: 640px) { .card--measure { padding: 12px; } }
.mchoice { display: grid; gap: 8px; }
@media (min-width: 640px) { .mchoice { grid-template-columns: 1fr 1fr; } }
.mchoice__opt {
  position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px 44px 14px 14px; text-align: left;
  border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--text); cursor: pointer;
  transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.mchoice__opt:hover { border-color: var(--accent); }
.mchoice__opt:focus-visible { box-shadow: 0 0 0 4px var(--accent-glow); }
.mchoice__opt.is-on { border-color: var(--accent); background: var(--accent-soft); }
.mchoice__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--accent-ink); transition: background-color .2s, color .2s; }
.mchoice__opt.is-on .mchoice__icon { background: var(--accent); color: var(--on-accent); }
.mchoice__icon .ico { width: 21px; height: 21px; }
.mchoice__text b { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; }
.mchoice__text small { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.mchoice__tick { position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-2); color: transparent; transition: background-color .2s, border-color .2s; }
.mchoice__tick .ico { width: 13px; height: 13px; stroke-width: 2.8; }
.mchoice__opt.is-on .mchoice__tick { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.mchoice-wrap.is-invalid .mchoice__opt { border-color: color-mix(in srgb, var(--danger) 60%, var(--line-2)); }

/* how to measure */
.guide { border: 1.5px solid var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 70%); }
.guide__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; }
.guide__head .btn { margin-left: auto; }
.guide__icon { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.guide__icon .ico { width: 20px; height: 20px; }
.guide__title { flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; font-size: clamp(16px, 4.6vw, 18px); font-weight: 750; letter-spacing: -.01em; line-height: 1.25; }
.guide__body { display: grid; gap: 14px; align-items: center; }
@media (min-width: 640px) { .guide__body { grid-template-columns: 220px minmax(0, 1fr); gap: 22px; } }
.guide__svg { width: 100%; max-width: 260px; height: auto; justify-self: center; }
.guide__steps { margin: 0; padding: 0; list-style: none; counter-reset: g; display: grid; gap: 9px; }
.guide__steps li { position: relative; padding-left: 32px; font-size: 14.5px; line-height: 1.45; color: var(--text); counter-increment: g; }
.guide__steps li::before {
  content: counter(g); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-size: 12px; font-weight: 800;
}
.guide__warn { display: flex; align-items: flex-start; gap: 9px; margin-top: 16px; padding: 10px 12px; border-radius: var(--r); background: var(--warn-soft); color: var(--warn); font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.guide__warn .ico { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.guide-open { margin: 0 0 14px; }
.g-floor { fill: var(--surface-3); }
.g-wall { fill: none; stroke: var(--text); stroke-width: 6; stroke-linecap: square; }
.g-door { fill: none; stroke: var(--accent-ink); stroke-width: 1.6; stroke-dasharray: 3 2; }
.g-dim, .g-turn, .g-person path { fill: none; stroke: var(--accent-ink); stroke-width: 2; }
.g-turn { stroke-width: 2.2; }
.g-tick { stroke: var(--accent-ink); stroke-width: 2; }
.guide__svg marker path { fill: var(--accent-ink); }
.g-badge circle { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.2; }
.g-badge text { fill: var(--text); font-size: 11px; font-weight: 800; text-anchor: middle; font-family: var(--font); }
.g-badge.is-first circle { fill: var(--accent); stroke: var(--accent); }
.g-person circle { fill: var(--text); }

/* measuring appointment */
.card--visit { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.card__num--icon { display: grid; place-items: center; }
.card__num--icon .ico { width: 17px; height: 17px; }
.seg--daypart { display: grid; width: 100%; }
.seg--daypart .seg__btn { height: 40px; padding: 0 6px; font-size: 13px; }
.visit__note { margin-top: 18px; }
.visit__call, .room__visit { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: var(--r); background: var(--accent-soft); font-size: 14px; color: var(--text-2); }
.visit__call .ico, .room__visit .ico { width: 18px; height: 18px; flex: none; color: var(--accent-ink); }
.visit__phone { margin-top: 18px; }
.room .room__visit { margin-top: 20px; }
.done__visit { display: flex; align-items: flex-start; justify-content: center; gap: 10px; max-width: 46ch; margin: 14px auto 0; padding: 12px 16px; border-radius: var(--r); background: var(--accent-soft); color: var(--text-2); font-size: 15px; text-align: left; animation: fadeUp .7s var(--ease) .5s both; }
.done__visit .ico { width: 19px; height: 19px; flex: none; color: var(--accent-ink); margin-top: 1px; }

/* panels per room */
.panels { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.panels .walls__head { margin-bottom: 2px; }
.panels .opt { margin-left: 0; }
.panels__hint { margin: 0 0 12px; }
.pchips { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.pchip { display: flex; align-items: center; gap: 10px; padding: 5px 5px 5px 5px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); animation: reveal .35s var(--ease) both; }
.pchip__img { flex: none; width: 34px; height: 44px; border-radius: 7px; overflow: hidden; background: var(--surface-3); }
.pchip__img img { width: 100%; height: 100%; object-fit: cover; }
.pchip__text { flex: 1; min-width: 0; }
.pchip__text b { display: block; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pchip__text small { display: block; font-size: 12px; color: var(--muted); }
.panels__mix { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 12px; font-size: 13px; color: var(--accent-ink); font-weight: 600; }
.panels__mix .ico { width: 16px; height: 16px; flex: none; margin-top: 1px; }

/* quick form: every room on one page — type and height (step 2), panels and profile colour (step 3) */
.qrooms { display: grid; gap: 14px; }
.qroom { display: grid; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); animation: reveal .35s var(--ease) both; }
.qroom__title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 750; letter-spacing: -.01em; }
.qroom__num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-size: 13px; font-weight: 800; }
.qroom .room__type .room__label { margin-bottom: 8px; }
.qroom .type, .qroom .type-chosen { background: var(--surface); }
.qroom .type.is-on, .qroom .type:hover, .qroom .type-chosen { background: var(--accent-soft); }
@media (min-width: 560px) { .qroom__height { max-width: 280px; } }
.card--qpanels .card__body > .panels:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.pcolors { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.pcolors .walls__head { margin-bottom: 2px; }
.pcolors .opt { margin-left: 0; }
.pcolors__hint { margin: 0 0 12px; }
.pcolors__list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); max-width: 560px; }
.pcolor {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 32px 8px 10px;
  border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--text);
  font-size: 14px; font-weight: 620; text-align: left; cursor: pointer;
  transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.pcolor:hover { border-color: var(--accent); transform: translateY(-1px); }
.pcolor:focus-visible { box-shadow: 0 0 0 4px var(--accent-glow); }
.pcolor.is-on { border-color: var(--accent); background: var(--accent-soft); }
.pcolor__swatch { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 1px solid rgba(0, 0, 0, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
.pcolor__swatch--white { background: linear-gradient(135deg, #ffffff, #ece9e4); }
.pcolor__swatch--black { background: linear-gradient(135deg, #3a3a3a, #111111); }
.pcolor__swatch--silver { background: linear-gradient(135deg, #f1f2f3 0%, #b9bdc1 48%, #e3e5e7 62%, #9da2a7 100%); }
[data-theme="dark"] .pcolor__swatch { border-color: rgba(255, 255, 255, .18); }
.pcolor__name { min-width: 0; overflow-wrap: break-word; line-height: 1.25; }
.pcolor__tick { position: absolute; top: 50%; right: 9px; margin-top: -9px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: transparent; border: 1.5px solid var(--line-2); transition: background-color .2s, border-color .2s; }
.pcolor__tick .ico { width: 11px; height: 11px; stroke-width: 3; }
.pcolor.is-on .pcolor__tick { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.picker { margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); animation: reveal .35s var(--ease) both; }
.picker__search { position: relative; margin-bottom: 10px; }
.picker__search .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.picker__input { height: 44px; padding-left: 40px; font-size: 15px; }
.picker__input::-webkit-search-cancel-button { cursor: pointer; }
.picker__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
/* while searching the material and finish tabs do not apply: dimmed, a click on them ends the search */
.picker__bar.is-off .seg { opacity: .45; }
.picker__bar.is-off .seg__thumb { visibility: hidden; }
.picker__found { margin: -4px 0 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.picker__found:empty { display: none; }
.picker__bar .seg { max-width: 100%; }
.picker__site { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.picker__site:hover { color: var(--accent-ink); }
.picker__site .ico { width: 14px; height: 14px; }
.picker__grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); max-height: min(560px, 62vh); overflow-y: auto; padding: 2px; margin: -2px; overscroll-behavior: contain; }
@media (min-width: 640px) { .picker__grid { gap: 10px; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); } }
.picker__empty { grid-column: 1 / -1; padding: 18px 4px; font-size: 13.5px; color: var(--muted); text-align: center; }
.ptile {
  position: relative; display: grid; gap: 2px; align-content: start; padding: 5px 5px 8px; text-align: left;
  border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--text); cursor: pointer;
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.ptile:hover { border-color: var(--accent); transform: translateY(-1px); }
.ptile:focus-visible { box-shadow: 0 0 0 4px var(--accent-glow); }
.ptile.is-on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.ptile__img { display: block; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; margin-bottom: 4px; }
.ptile__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ptile__name { font-size: 12.5px; font-weight: 700; line-height: 1.25; padding: 0 2px; }
.ptile__meta { font-size: 11px; color: var(--muted); padding: 0 2px; }
.ptile__tick {
  position: absolute; top: 9px; right: 9px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
  background: rgba(255, 255, 255, .88); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.ptile__tick .ico { width: 13px; height: 13px; stroke-width: 2.6; color: #0b1613; }
.ptile.is-on .ptile__tick { background: var(--accent); color: var(--on-accent); }

/* floor-plan upload */
.plan-upload { padding: 16px 0 4px; border-top: 1px solid var(--line); }
.plan-upload__label { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; font-size: 15.5px; font-weight: 600; }
.upload__drop {
  display: grid; justify-items: center; gap: 6px; padding: 22px 16px; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); background: var(--surface-2);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.upload__drop:hover, .upload__drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.upload__drop:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.upload__drop.is-over .upload__icon { transform: translateY(-3px); }
.upload__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--accent-ink); box-shadow: var(--shadow-1); transition: transform .3s var(--spring); }
.upload__icon .ico { width: 21px; height: 21px; }
.upload__text { font-size: 14.5px; color: var(--muted); }
.upload__text b { color: var(--text); font-weight: 700; }
.upload__hint { font-size: 12.5px; color: var(--faint); }
.upload__list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.file { display: flex; align-items: center; gap: 10px; padding: 5px 5px 5px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); animation: reveal .35s var(--ease) both; }
.file__icon { display: grid; color: var(--accent-ink); }
.file__icon .ico { width: 18px; height: 18px; }
.file__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.file__size { flex: none; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.upload__meter { height: 5px; margin-top: 12px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.upload__meter span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); border-radius: inherit; background: var(--accent); transition: width .4s var(--ease); }
.upload__used { margin-top: 6px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.upload__msg { display: grid; gap: 4px; margin-top: 10px; }
.upload__msg:empty { display: none; }
.upload__msg p { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; font-weight: 600; color: var(--danger); }
.upload__msg .ico { width: 16px; height: 16px; margin-top: 1px; }
.upload__msg p.is-busy { align-items: center; color: var(--muted); }
.upload__msg .spinner { width: 14px; height: 14px; flex: none; }

/* photos of the rooms (step 6) */
.card__title .opt { margin-left: 10px; vertical-align: 2px; }
.photo-tips { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.photo-tips li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--text-2); line-height: 1.45; }
.photo-tips .ico { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--accent-ink); }
.photos { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.photo { position: relative; animation: reveal .35s var(--ease) both; }
.photo__img {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden;
  border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-3); color: var(--faint);
}
.photo__img .ico { width: 24px; height: 24px; }
.photo__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo .icon-btn { position: absolute; top: 5px; right: 5px; width: 28px; height: 28px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(4px); }
.photo .icon-btn .ico { width: 14px; height: 14px; }
.sum-photos { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); }
.sum-photos .photo__img { border-radius: 10px; }
.sum-photos .photo__img .ico { width: 18px; height: 18px; }
.sum-photos__more { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; background: var(--surface-3); font-size: 13px; font-weight: 700; color: var(--muted); }

/* room shape presets above the 3D view */
.presets { display: grid; gap: 8px; margin-bottom: 12px; }
.presets__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.presets__label { font-size: 14px; font-weight: 650; color: var(--text-2); }
.presets__hint { font-size: 12.5px; color: var(--muted); }
.presets__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.preset {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  min-height: 64px; padding: 8px 4px; border: 1.5px solid var(--line-2); border-radius: var(--r);
  background: var(--surface); color: var(--text-2); font: inherit; font-size: 12.5px; font-weight: 650; line-height: 1.2; text-align: center;
  cursor: pointer; transition: border-color .2s, background-color .2s, color .2s, transform .2s var(--ease);
}
.preset .ico { width: 24px; height: 24px; color: var(--accent-ink); }
.preset:hover { border-color: var(--accent); transform: translateY(-1px); }
.preset:focus-visible { box-shadow: 0 0 0 4px var(--accent-glow); }
.preset.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }

/* viewer */
.viz {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 70% at 50% 35%, var(--surface) 0%, transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface-3));
}
[data-theme="dark"] .viz { background: radial-gradient(90% 70% at 50% 35%, #211e19 0%, transparent 70%), linear-gradient(180deg, var(--surface-2), #14120f); }
.viz__bar {
  position: absolute; z-index: 2; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px;
  pointer-events: none;
}
@media (max-width: 480px) {
  /* narrow: icon-only view switch and smaller tool buttons, so the bar fits */
  .viz__bar { gap: 4px; padding: 8px; }
  .viz__bar .seg__btn { padding: 0 10px; }
  .viz__bar .seg__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .viz__tools { gap: 2px; }
  .viz__tools .icon-btn--sm { width: 30px; height: 30px; }
}
.sum__head .btn { flex: none; }
@media (max-width: 420px) {
  .sum__head { gap: 8px; padding-left: 14px; }
  .sum__head .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sum__head .btn { width: 36px; padding: 0; }
}
.viz__bar > * { pointer-events: auto; }
.viz__tools { display: flex; gap: 6px; }
.viz__stage { position: relative; aspect-ratio: 1 / .86; touch-action: none; overflow: hidden; cursor: grab; user-select: none; -webkit-user-select: none; }
.viz__stage.is-dragging { cursor: grabbing; }
.viz__stage .r3 { position: absolute; inset: 0; width: 100%; height: 100%; }
.viz__empty {
  position: absolute; inset: 0; display: none; place-items: center; align-content: center; gap: 12px;
  padding: 56px 32px 32px; text-align: center; color: var(--muted); font-size: 14px;
}
.viz__empty .ico { width: 40px; height: 40px; color: var(--accent); stroke-width: 1.2; animation: floatY 3.2s ease-in-out infinite; }
.viz__stage.is-empty .viz__empty { display: grid; }
.viz__stage.is-empty { cursor: default; }
.viz__drag {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(6px);
  font-size: 12px; font-weight: 550; color: var(--muted); width: max-content; max-width: calc(100% - 24px); text-align: center; line-height: 1.3; pointer-events: none;
  transition: opacity .5s ease;
}
.viz__drag .ico { width: 15px; height: 15px; }
.viz.is-touched .viz__drag, .viz__stage.is-empty .viz__drag { opacity: 0; }
.viz__foot { border-top: 1px solid var(--line); background: var(--surface); }
.viz__status { display: flex; align-items: flex-start; gap: 9px; padding: 12px 14px 0; font-size: 13.5px; font-weight: 550; line-height: 1.4; }
.viz__status:empty { display: none; }
.viz__status .ico { width: 17px; height: 17px; margin-top: 1px; }
.viz__status.is-ok { color: var(--ok); }
.viz__status.is-warn { color: var(--warn); }
.viz__status.is-info { color: var(--muted); }
.viz__stats { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 10px 14px 12px; }
.viz__stats:empty { display: none; }
.stat b { display: block; font-size: 18px; font-weight: 750; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.stat span { display: block; font-size: 12px; color: var(--muted); }
.stat small { font-weight: 600; color: var(--muted); font-size: 12.5px; }
.viz__note { padding: 0 14px 12px; font-size: 12px; color: var(--faint); }
.viz__note:empty { display: none; }

/* docked copy of the 3D view: follows in a corner once the viewer is scrolled out of sight (step 4).
   Phones: top right under the header (the keyboard takes the bottom); larger screens: above the action bar. */
.vdock {
  position: fixed; z-index: 45; right: 10px; top: calc(var(--topbar-h) + 10px);
  width: min(48vw, 230px); overflow: hidden; border-radius: var(--r);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-3);
  background:
    radial-gradient(90% 70% at 50% 35%, var(--surface) 0%, transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface-3));
}
[data-theme="dark"] .vdock { background: radial-gradient(90% 70% at 50% 35%, #211e19 0%, transparent 70%), linear-gradient(180deg, var(--surface-2), #14120f); }
@media (min-width: 720px) { .vdock { top: auto; bottom: 104px; right: 20px; width: 320px; } }
@media (min-width: 1280px) { .vdock { width: 360px; } }
/* large screens: under the step list (left and width set in app.js); the help block makes room for it */
.vdock.is-rail { top: auto; right: auto; bottom: 20px; }
.vdock.is-rail.is-min { width: auto !important; }
.has-dock-rail .rail__foot { visibility: hidden; }
.vdock__bar {
  display: flex; align-items: center; gap: 2px; padding: 3px 3px 3px 4px; border-bottom: 1px solid var(--line); background: var(--surface);
  cursor: move; touch-action: none; user-select: none; -webkit-user-select: none;
}
.vdock__title {
  flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px;
  border: 0; border-radius: 8px; background: none; color: var(--text-2); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; text-align: left;
}
.vdock__title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vdock__title .ico { flex: none; width: 16px; height: 16px; color: var(--accent-ink); }
.vdock__title:hover { background: var(--accent-soft); }
.vdock__tools { display: flex; gap: 0; }
.vdock__tools .icon-btn--sm { width: 30px; height: 30px; }
.vdock__tools .icon-btn--sm .ico { width: 16px; height: 16px; }
@media (max-width: 479px) { .vdock__tools [data-action="rotate"] { display: none; } }
.vdock__stage { position: relative; aspect-ratio: 4 / 3; touch-action: none; overflow: hidden; cursor: grab; user-select: none; -webkit-user-select: none; }
.vdock__stage.is-dragging { cursor: grabbing; }
.vdock__stage .r3 { position: absolute; inset: 0; width: 100%; height: 100%; }
/* moved / resized by the client: the stage fills the chosen height */
.vdock.is-free:not(.is-min) { display: flex; flex-direction: column; }
.vdock.is-free .vdock__stage { aspect-ratio: auto; flex: 1 1 auto; min-height: 0; }
.vdock.is-moving, .vdock.is-resizing { box-shadow: 0 2px 6px rgba(31, 22, 12, .1), 0 40px 90px -20px rgba(31, 22, 12, .45); }
.vdock.is-moving .vdock__bar { cursor: grabbing; }
.vdock:not(.is-free) [data-action="dockReset"] { display: none; }
/* resize grip: in the corner towards the middle of the screen (grip-t / grip-l, set in app.js) */
.vdock__grip { position: absolute; z-index: 3; right: 0; bottom: 0; width: 24px; height: 24px; cursor: nwse-resize; touch-action: none; }
.vdock__grip::before {
  content: ''; position: absolute; right: 5px; bottom: 5px; width: 10px; height: 10px;
  border: 0 solid var(--muted); border-right-width: 2px; border-bottom-width: 2px; border-radius: 0 0 4px 0; opacity: .75;
}
.vdock__grip:hover::before, .vdock.is-resizing .vdock__grip::before { border-color: var(--accent-ink); opacity: 1; }
.vdock.grip-l .vdock__grip { right: auto; left: 0; cursor: nesw-resize; }
.vdock.grip-l .vdock__grip::before { right: auto; left: 5px; border-right-width: 0; border-left-width: 2px; border-radius: 0 0 0 4px; }
.vdock.grip-t .vdock__grip { bottom: auto; top: 37px; cursor: nesw-resize; }
.vdock.grip-t .vdock__grip::before { bottom: auto; top: 5px; border-bottom-width: 0; border-top-width: 2px; border-radius: 0 4px 0 0; }
.vdock.grip-t.grip-l .vdock__grip { cursor: nwse-resize; }
.vdock.grip-t.grip-l .vdock__grip::before { border-radius: 4px 0 0 0; }
.vdock.is-min .vdock__grip { display: none; }
/* folded to a button: always in the same corner, whatever was moved before — phones top right (small, so it does
   not hide the form), larger screens bottom left, dark and easy to spot */
.vdock__pill { display: none; }
.vdock.is-min { width: auto; border-radius: var(--r-pill); animation: pop .35s var(--spring) both; }
.vdock.is-min .vdock__bar, .vdock.is-min .vdock__stage { display: none; }
.vdock.is-min .vdock__pill {
  display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px 0 13px;
  border: 0; background: var(--surface); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.vdock__pill .ico { width: 18px; height: 18px; color: var(--accent-ink); }
@media (min-width: 720px) {
  .vdock.is-min { top: auto; right: auto; left: 20px; bottom: 20px; border-color: transparent; box-shadow: 0 12px 30px -8px rgba(11, 22, 19, .55); }
  .vdock.is-min .vdock__pill { height: 50px; padding: 0 22px 0 17px; background: var(--primary); color: var(--on-primary); font-size: 14.5px; }
  .vdock.is-min .vdock__pill .ico { width: 20px; height: 20px; color: var(--accent); }
  .vdock.is-min .vdock__pill:hover { background: var(--primary-hover); }
}

/* 3D svg */
.r3 { font-family: var(--font); overflow: visible; }
.r3-shadow { fill: var(--r3-shadow); opacity: .5; }
.r3-floor { fill: var(--r3-floor); }
.r3-grid { fill: none; stroke: var(--r3-grid); stroke-width: 1; }
.r3-face { fill: var(--r3-face); stroke: var(--r3-seam); stroke-width: .8; stroke-linejoin: round; transition: fill .3s ease; }
.r3-face.is-hl { fill: color-mix(in srgb, var(--r3-hl) 46%, var(--r3-face)); }
.r3-shade { fill: var(--r3-shade); pointer-events: none; }
.r3-seam { fill: none; stroke: var(--r3-seam); stroke-width: 1; }
.r3-cap, .r3-end, .r3-band { stroke-width: .7; stroke-linejoin: round; }
.r3-cap { fill: var(--r3-cap); stroke: var(--r3-cap); }
.r3-end { fill: var(--r3-end); stroke: var(--r3-end); }
.r3-band { fill: var(--r3-band); stroke: var(--r3-band); }
.r3-cap.is-hl, .r3-band.is-hl { fill: var(--r3-hl); stroke: var(--r3-hl); }
.r3-ghost { fill: none; stroke: var(--r3-ghost); stroke-width: 1; stroke-dasharray: 3 4; }
.r3-ghostface { fill: var(--r3-hl); fill-opacity: .18; stroke: var(--r3-hl); stroke-width: 1.3; stroke-dasharray: 5 3; }
.r3-door { fill: var(--r3-door); stroke: var(--r3-door-line); stroke-width: 1; stroke-linejoin: round; }
.r3-handle { stroke: var(--r3-door-line); stroke-width: 2.2; stroke-linecap: round; }
.r3-glass { fill: var(--r3-glass); stroke: none; }
.r3-frame { fill: none; stroke: var(--r3-frame); stroke-width: 1.6; stroke-linejoin: round; }
.r3-gap { fill: var(--r3-floor); }
.r3-part { fill: color-mix(in srgb, var(--r3-face) 86%, var(--r3-hl)); stroke: color-mix(in srgb, var(--r3-seam) 60%, var(--r3-hl)); stroke-width: 1; }
/* bathtub (enamel white; its sides in the panel colour when they get panels) and shower cabin (tray + glass) */
.r3-fx { fill: var(--r3-fx); stroke: var(--r3-fx-line); stroke-width: .9; stroke-linejoin: round; }
.r3-fx-top { stroke-width: 1.1; }
.r3-fx-clad { stroke: var(--r3-fx-line); }
.r3-basin { fill: var(--r3-glass); stroke: var(--r3-fx-line); stroke-width: .8; stroke-linejoin: round; }
.r3-fx-line { fill: none; stroke: var(--r3-fx-line); stroke-width: .8; }
.r3-cabin { fill: var(--r3-glass); fill-opacity: .32; stroke: var(--r3-fx-line); stroke-width: 1.1; stroke-linejoin: round; }
.r3-cabin.is-back { fill-opacity: .14; stroke-opacity: .6; }
.r3-cabin-top { fill: none; stroke: var(--r3-fx-line); stroke-width: 1.4; stroke-linejoin: round; }
/* kitchen: the backsplash (in the colour of the chosen panel), worktop with sink and hob, extractor hood, wall cabinet */
.r3-bs { fill: var(--r3-bs-c, var(--r3-bs)); fill-opacity: .55; stroke: var(--r3-fx-line); stroke-width: .9; stroke-dasharray: 4 3; stroke-linejoin: round; }
/* the kitchen furniture only as a sketch: half transparent */
.r3-kit { opacity: .6; }
.r3-bs.is-hl { stroke: var(--r3-hl); stroke-width: 1.6; }
.r3-bs--plan { stroke-width: .6; }
.r3-bs-seam { fill: none; stroke: var(--r3-fx-line); stroke-width: .7; opacity: .55; }
.r3-counter { fill: var(--r3-counter); stroke: var(--r3-fx-line); stroke-width: .9; stroke-linejoin: round; }
.r3-counter-top { fill: var(--r3-worktop); }
.r3-hood { fill: var(--r3-hood); stroke: var(--r3-fx-line); stroke-width: .9; stroke-linejoin: round; }
.r3-sink { fill: var(--r3-glass); stroke: var(--r3-fx-line); stroke-width: .8; stroke-linejoin: round; }
.r3-tap { fill: var(--r3-fx-line); }
.r3-hob { fill: var(--r3-hob); stroke: none; }
.r3-hob-ring { fill: none; stroke: #8a8d90; stroke-width: .8; }
.r3-swing { fill: none; stroke: var(--r3-door-line); stroke-width: 1; stroke-dasharray: 3 3; }
.r3-leaf { stroke: var(--r3-door-line); stroke-width: 1.8; stroke-linecap: round; }
.r3-badge circle { fill: var(--r3-badge); stroke: var(--r3-badge-line); stroke-width: 1; }
.r3-badge text { fill: var(--r3-badge-ink); font-size: 11px; font-weight: 750; text-anchor: middle; }
.r3-badge.is-hl circle { fill: var(--r3-hl); stroke: var(--r3-hl); }
.r3-badge.is-hl text { fill: var(--on-accent); font-size: 12px; font-weight: 800; }
.r3-dim { fill: var(--muted); font-size: 11px; font-weight: 650; text-anchor: middle; font-variant-numeric: tabular-nums; }
.r3-dim.is-hl { fill: var(--accent-ink); font-weight: 800; }
.r3-dim { paint-order: stroke; stroke: var(--surface-2); stroke-width: 3px; stroke-linejoin: round; }
.r3-leader { fill: none; stroke: var(--muted); stroke-width: .8; stroke-dasharray: 2 2; opacity: .7; }
.r3-pill rect { fill: var(--r3-hl); }
.r3-pill text { fill: var(--on-accent); font-size: 11.5px; font-weight: 750; text-anchor: middle; font-variant-numeric: tabular-nums; }

/* openings */
.opening { padding: 18px 0; border-top: 1px solid var(--line); }
.opening:first-child { border-top: 0; padding-top: 0; }
.opening__head { display: flex; align-items: center; gap: 12px; }
.opening__icon { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); color: var(--accent-ink); }
.opening__icon .ico { width: 19px; height: 19px; }
.opening__title { flex: 1; font-size: 16px; font-weight: 700; }
.opening__title small { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.opening__body { display: grid; gap: 16px; margin-top: 16px; }
.opening__body.is-collapsed { display: none; }
.opening__body.is-opening { animation: reveal .45s var(--ease) both; }
.art { border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); padding: 6px; }
.opening__body .art { order: -1; width: 100%; max-width: 260px; justify-self: center; }
@media (min-width: 720px) {
  .opening__body { grid-template-columns: minmax(0, 1fr) minmax(0, 250px); align-items: start; gap: 20px; }
  .opening__body .art { order: 0; max-width: none; position: sticky; top: calc(var(--topbar-h) + 16px); }
}
.openings .field:last-child { margin-top: 4px; }
/* bathtub / shower cabin (card s10): like a window block — head with add / remove, then the fields and the drawing */
.fx + .fx { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.fx .opening__head .btn { flex: none; }
.fx__fields { display: grid; gap: 14px; align-content: start; min-width: 0; }
.fx__sizes { display: grid; gap: 4px 12px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.fx__pair { display: grid; gap: 4px 12px; grid-template-columns: minmax(0, 1fr); align-items: end; }
@media (min-width: 560px) { .fx__pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.fx__place { display: grid; gap: 7px; justify-items: start; }
.fx__sides .field__hint { margin-top: 0; }
.fx__note { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-3); color: var(--text-2); }
.fx__note .ico { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--accent-ink); }
.fx[data-kind="shower"] .fx__body { grid-template-columns: minmax(0, 1fr); }
/* typical sizes under a field (door / window height): a click fills it in */
.field__presets { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.field__presets .chip { padding: 3px 9px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--text-2); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; transition: border-color .2s, background-color .2s; }
.field__presets .chip:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.field__presets .chip:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-glow); }
/* kitchen backsplash: the zones (like the partitions), their type as a grid of choices */
.kitchen__tip { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--surface-3); color: var(--text-2); }
.kitchen__tip .ico { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--accent-ink); }
.card--kitchen .walls__actions { margin-top: 12px; }
.zone .part__title small { display: block; margin-top: 1px; color: var(--muted); font-size: 12.5px; font-weight: 560; }
.ztypes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; width: 100%; }
@media (min-width: 560px) { .ztypes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.zone .ztypes { justify-self: stretch; }
.ztype {
  display: flex; align-items: center; min-height: 42px; padding: 7px 10px;
  border: 1.5px solid var(--line-2); border-radius: var(--r);
  background: var(--surface); color: var(--text);
  font: inherit; font-size: 12.5px; font-weight: 580; line-height: 1.25; text-align: left; cursor: pointer;
  transition: border-color .2s, background-color .2s, transform .25s var(--ease);
}
.ztype:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.ztype:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--accent-glow); }
.ztype.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.is-invalid .ztype { border-color: var(--danger); }
.zone__hood { display: grid; gap: 8px; padding-top: 4px; border-top: 1px dashed var(--line-2); }
.zone__hood .walls__head { margin: 6px 0 0; }
.zone__hood .field__hint { margin: 0; }
/* remove one room (instead of lowering the number of rooms) */
.room__remove { display: flex; justify-content: flex-end; margin: -6px 0 6px; }
.room-remove { color: var(--muted); }
.room-remove:hover { color: var(--danger); background: var(--danger-soft); }
.qroom__title .room-remove { margin-left: auto; }
/* windows: is a corner profile wanted? — below the windows, over the full width */
.opening__extra { grid-column: 1 / -1; padding-top: 14px; border-top: 1px dashed var(--line); }
.opening__extra .q { padding: 0; }
.openings.is-locked { opacity: .4; filter: grayscale(.8); pointer-events: none; }
.stepper {
  display: inline-flex; align-items: center; gap: 2px; padding: 4px;
  border-radius: var(--r-pill); background: var(--surface-3); border: 1px solid var(--line);
}
.stepper__btn {
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-1); cursor: pointer; transition: transform .2s var(--ease), background-color .2s;
}
[data-theme="dark"] .stepper__btn { background: #3a342c; }
.stepper__btn:hover { background: var(--accent-soft); }
.stepper__btn:active { transform: scale(.9); }
.stepper__btn:focus-visible { box-shadow: 0 0 0 3px var(--accent-glow); }
.stepper__btn .ico { width: 17px; height: 17px; stroke-width: 2; }
.stepper__btn[disabled] { opacity: .35; pointer-events: none; }
.stepper__val {
  width: 46px; height: 38px; border: 0; background: transparent; text-align: center;
  font-size: 17px; font-weight: 750; font-variant-numeric: tabular-nums; color: var(--text);
}
.stepper__val:focus { outline: none; }
.stepper.is-bump .stepper__val { animation: bump .35s var(--spring); }
.field--count.is-invalid .stepper { border-color: var(--danger); }

.room-next { display: flex; justify-content: flex-end; margin: -2px 0 18px; }

/* illustrations */
.ill { width: 100%; height: auto; font-family: var(--font); }
.ill polygon, .ill polyline { stroke-linejoin: round; }
.ill-floor { fill: var(--surface-3); }
[data-theme="dark"] .ill-floor { fill: #221f1a; }
.ill-tray.f-top, .ill-tub.f-top { fill: var(--surface); stroke: var(--line-2); stroke-width: 1; }
.ill-tray.f-front, .ill-tub.f-front { fill: color-mix(in srgb, var(--surface) 94%, #000); stroke: var(--line-2); stroke-width: 1; }
.ill-tray.f-side, .ill-tub.f-side { fill: color-mix(in srgb, var(--surface) 84%, #000); stroke: var(--line-2); stroke-width: 1; }
.ill-tub.f-front { fill: color-mix(in srgb, var(--accent) 22%, var(--surface)); }
.ill-basin { fill: var(--r3-glass); stroke: var(--line-2); stroke-width: 1; }
.ill-wallbg { fill: var(--surface-3); }
[data-theme="dark"] .ill-wallbg { fill: #221f1a; }
.ill-ground { fill: none; stroke: var(--line-2); stroke-width: 2; }
.ill-winframe, .ill-doorframe { fill: var(--surface); stroke: var(--text-2); stroke-width: 1.4; }
.ill-glassp { fill: var(--r3-glass); }
.ill-bar { fill: none; stroke: var(--surface); stroke-width: 3; }
.ill-sill { fill: none; stroke: var(--text-2); stroke-width: 3; stroke-linecap: round; }
.ill-leaf { fill: var(--r3-door); }
.ill-handle { fill: none; stroke: var(--text-2); stroke-width: 3; stroke-linecap: round; }
.dim { transition: opacity .3s ease; }
.dim path { fill: none; stroke: var(--muted); stroke-width: 1; }
.dim polygon { fill: var(--muted); }
.dim rect { fill: var(--surface); stroke: var(--line-2); stroke-width: 1; transition: fill .25s; }
.dim text { fill: var(--text-2); font-size: 11px; font-weight: 650; text-anchor: middle; font-variant-numeric: tabular-nums; }
.dim.is-active path { stroke: var(--accent-ink); stroke-width: 1.6; }
.dim.is-active polygon { fill: var(--accent-ink); }
.dim.is-active rect { fill: var(--accent); stroke: var(--accent); }
.dim.is-active text { fill: var(--on-accent); font-weight: 800; }
.ill.has-active .dim:not(.is-active) { opacity: .4; }

/* bath step */
.sub + .sub { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.sub__title { display: flex; align-items: center; gap: 10px; font-size: 16.5px; font-weight: 700; margin-bottom: 4px; }
.sub__title .ico { width: 20px; height: 20px; color: var(--accent-ink); }
.sub .q:first-of-type { border-top: 0; }
.duo { display: grid; gap: 18px; margin: 10px 0 4px; }
.duo__fields { display: grid; gap: 14px; align-content: center; }
@media (min-width: 720px) { .duo { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 24px; } }
.reveal > * { animation: reveal .5s var(--ease) both; }
.reveal > *:nth-child(2) { animation-delay: .06s; }
.bath__measure { margin: 6px 0 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.bath__measure + .room__visit { margin-top: 0; }
.bath__note { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.bath__note .ico { width: 16px; height: 16px; color: var(--accent-ink); margin-top: 1px; }

/* ------------------------------------------------------------ review */
.banner {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; padding: 16px 18px;
  border-radius: var(--r-lg); border: 1px solid transparent;
}
.banner > .ico { width: 22px; height: 22px; margin-top: 1px; }
.banner strong { display: block; font-size: 15.5px; font-weight: 700; }
.banner p { margin-top: 2px; font-size: 14px; opacity: .9; }
.banner--ok { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 28%, transparent); }
.banner--warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 28%, transparent); }
.banner--error { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 28%, transparent); }
.banner--error a { color: inherit; font-weight: 700; }
.banner .btn { margin-top: 10px; }
.summary { display: grid; gap: 14px; }
.sum { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-1); overflow: hidden; }
.sum.has-issues { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.sum__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; border-bottom: 1px solid var(--line); }
.sum__num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: 12.5px; font-weight: 750; }
.sum__title { flex: 1; min-width: 0; font-size: 16px; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; hyphens: auto; }
.sum__state { flex: none; display: grid; place-items: center; }
.sum__state .ico { width: 18px; height: 18px; color: var(--ok); stroke-width: 2.4; }
.sum__badge { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; display: grid; place-items: center; background: var(--danger); color: #fff; font-size: 12px; font-weight: 750; }
[data-theme="dark"] .sum__badge { color: #1a0e0b; }
.sum__body { padding: 6px 18px 14px; }
.rows { margin: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 0; border-top: 1px dashed var(--line); font-size: 14.5px; }
.row:first-child { border-top: 0; }
.row dt { color: var(--muted); line-height: 1.4; }
.row dd { margin: 0; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-line; }
@media (min-width: 600px) {
  .row { grid-template-columns: minmax(min-content, 1fr) minmax(0, auto); gap: 18px; align-items: center; }
  .row dd { text-align: right; max-width: 46ch; }
}
.row.is-missing dt { color: var(--danger); }
.row.row--inline { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.row.row--inline dd { text-align: right; }
.row.row--block { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.row.row--block dd { text-align: left; max-width: none; font-weight: 500; }
@media print { .pdoc .row.row--block { grid-template-columns: minmax(0, 1fr); } .pdoc .row.row--block dd { text-align: left; } }
.sum-sub { margin: 14px 0 2px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); font-size: 13px; font-weight: 650; white-space: nowrap; }
.pill .ico { width: 13px; height: 13px; stroke-width: 2.4; }
.pill--yes { background: var(--accent-soft); color: var(--accent-ink); }
[data-theme="dark"] .pill--yes { background: rgba(200, 171, 136, .16); }
.pill--no { background: var(--surface-3); color: var(--text-2); }
.pill--unknown { background: transparent; color: var(--accent-ink); border: 1px dashed var(--accent); }
.sum-room--visit { grid-template-columns: minmax(0, 1fr) !important; }
.pill--missing { background: var(--danger-soft); color: var(--danger); }
.sum-room { display: grid; gap: 14px; padding: 14px 0 6px; border-top: 1px solid var(--line); }
.sum-room:first-child { border-top: 0; }
.sum-room__title { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.sum-room__title .ico { width: 20px; height: 20px; color: var(--accent-ink); }
.sum-room__views { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.sum-room__views:empty { display: none; }
.sum-room__viz { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.sum-room__viz--plan { aspect-ratio: 250 / 210; }
.sum-room__viz .r3 { position: absolute; inset: 0; width: 100%; height: 100%; }
.sum-room__viz figcaption { position: absolute; left: 6px; top: 6px; padding: 1px 7px; border-radius: 8px; background: var(--surface); font-size: 10.5px; font-weight: 700; color: var(--muted); }
@media (min-width: 640px) {
  .sum-room { grid-template-columns: 230px minmax(0, 1fr); align-items: start; gap: 20px; }
  .sum-room__views { grid-template-columns: 1fr; }
}
.privacy { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.privacy .ico { width: 18px; height: 18px; color: var(--accent-ink); }
.review-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ------------------------------------------------------------ action bar */
.actionbar {
  position: sticky; bottom: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  margin-top: 6px; padding: 14px 0 calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 62%, color-mix(in srgb, var(--bg) 0%, transparent));
}
.actionbar__next { margin-left: auto; min-width: 0; flex: 1; }
.actionbar__back .label { display: none; }
.actionbar__back { width: 48px; padding: 0; flex: none; }
.actionbar__meta { display: none; }
.actionbar__back { --h: 56px; width: 56px; }
@media (min-width: 600px) {
  .actionbar { gap: 14px; padding-top: 18px; }
  .actionbar__next { flex: none; min-width: 200px; }
  .actionbar__back { width: auto; padding: 0 24px; }
  .actionbar__back .label { display: inline; }
}
@media (min-width: 860px) { .actionbar__meta { display: flex; margin-left: 6px; } }
.page-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px;
  margin: 26px 0 0; padding: 18px 0 28px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--faint);
}
.page-foot a { color: var(--muted); text-decoration: none; }
.page-foot a:hover { color: var(--accent-ink); }

/* ------------------------------------------------------------ intro */
.intro {
  max-width: 1280px; margin: 0 auto; padding: 22px var(--gutter) 40px;
  display: grid; gap: 26px; grid-template-areas: "head" "visual" "more";
}
.intro__head { grid-area: head; }
.intro__visual { grid-area: visual; }
.intro__more { grid-area: more; }
@media (min-width: 980px) {
  .intro {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    grid-template-areas: "head visual" "more visual";
    grid-template-rows: auto 1fr;
    gap: 0 64px; padding-top: 64px; padding-bottom: 64px;
    min-height: calc(100dvh - var(--topbar-h));
  }
  .intro__head { align-self: end; }
  .intro__more { align-self: start; }
  .intro__visual { align-self: center; }
}
.intro__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 6px 12px 6px 6px;
  border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--text-2); box-shadow: var(--shadow-1);
}
.intro__eyebrow .mark { width: 22px; height: 22px; }
.intro__title { font-size: clamp(36px, 5.4vw, 62px); line-height: 1.02; letter-spacing: -.036em; font-weight: 800; text-wrap: balance; }
.intro__title .accent { color: var(--accent-ink); }
.intro__lead { margin-top: 18px; max-width: 52ch; color: var(--muted); font-size: 17px; }
@media (min-width: 980px) { .intro__lead { font-size: 18px; } }
.intro__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.intro__order { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.intro__order .ico { width: 16px; height: 16px; color: var(--accent-ink); }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 980px) { .points { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); } }
.point { display: flex; gap: 14px; align-items: flex-start; }
.point__icon { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--accent-ink); box-shadow: var(--shadow-1); }
.point__icon .ico { width: 20px; height: 20px; }
.point b { display: block; font-size: 15px; font-weight: 700; color: var(--text); }
.point__text { display: block; font-size: 14px; color: var(--muted); }
.resume {
  margin-top: 26px; padding: 18px; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2);
  animation: fadeUp .6s var(--ease) both;
}
.resume__title { font-size: 17px; font-weight: 750; }
.resume__text { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.resume__bar { margin-top: 14px; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.resume__bar span { display: block; height: 100%; width: calc(var(--p) * 100%); background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 3px; }
.resume .intro__cta { margin-top: 16px; }
.resume__switch { margin-top: 12px; }
.link-btn {
  padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer;
  font-size: 13.5px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px;
}
.link-btn:hover { color: var(--accent-ink); text-decoration-color: currentColor; }
.link-btn:focus-visible { border-radius: 4px; box-shadow: 0 0 0 3px var(--accent-glow); }

/* the two forms to choose from: quick (≈ 3 min) or Pro (≈ 15 min) */
.modes { display: grid; gap: 10px; margin-top: 28px; max-width: 560px; }
.mode {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 16px 16px 14px;
  border: 1.5px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-1); text-align: left; cursor: pointer;
  transition: border-color .2s, background-color .2s, transform .25s var(--ease), box-shadow .3s var(--ease);
  animation: fadeUp .6s var(--ease) both;
}
.mode + .mode { animation-delay: .08s; }
.mode:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.mode:focus-visible { box-shadow: 0 0 0 4px var(--accent-glow); }
.mode__icon { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); transition: background-color .2s, color .2s; }
.mode__icon .ico { width: 23px; height: 23px; }
.mode--pro .mode__icon { background: var(--primary); color: var(--on-primary); }
.mode__body { flex: 1; min-width: 0; }
.mode__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.mode__title { font-size: 17px; font-weight: 750; letter-spacing: -.01em; line-height: 1.3; }
.mode__time { font-size: 12.5px; font-weight: 700; color: var(--accent-ink); white-space: nowrap; }
.mode__text { display: block; margin-top: 3px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.mode__go { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text); transition: background-color .2s, color .2s, transform .35s var(--ease); }
.mode__go .ico { width: 17px; height: 17px; }
.mode:hover .mode__go { background: var(--primary); color: var(--on-primary); transform: translateX(3px); }
.modes + .intro__cta { margin-top: 16px; }
.hero {
  position: relative; overflow: hidden; border-radius: 32px; aspect-ratio: 1 / .82;
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 55% at 50% 40%, rgba(255, 255, 255, .9), transparent 72%),
    radial-gradient(120% 90% at 85% 0%, #f4eee8 0%, #efe6db 45%, #e7dccd 100%);
  box-shadow: var(--shadow-3);
}
[data-theme="dark"] .hero {
  background:
    radial-gradient(70% 55% at 50% 40%, rgba(200, 171, 136, .12), transparent 72%),
    radial-gradient(120% 90% at 85% 0%, #1f1b16 0%, #17140f 55%, #110f0c 100%);
}
.hero__stage { position: absolute; inset: 0; touch-action: pan-y; cursor: grab; }
.hero__stage.is-dragging { cursor: grabbing; }
.hero__stage .r3 { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__badge {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px;
  border-radius: var(--r-pill); background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: var(--shadow-1);
  font-size: 12.5px; font-weight: 650; color: var(--text-2);
}
.hero__badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-glow); animation: live 2s ease-out infinite; }
.hero__chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2);
  font-size: 12.5px; font-weight: 650; color: var(--text-2);
  animation: floatY 5s ease-in-out infinite;
}
.hero__chip b { font-variant-numeric: tabular-nums; color: var(--text); }
.hero__chip .ico { width: 16px; height: 16px; color: var(--accent-ink); }
.hero__chip--a { top: 18px; right: 18px; }
.hero__chip--b { top: 70px; right: 40px; animation-delay: -2.5s; }
@media (max-width: 559px) { .hero { aspect-ratio: 1 / .9; border-radius: 26px; } .hero__chip--b { display: none; } }

/* ------------------------------------------------------------ done */
.done { max-width: 680px; margin: 0 auto; padding: 48px var(--gutter) 72px; text-align: center; }
@media (min-width: 860px) { .done { padding-top: 88px; } }
.done__mark { position: relative; width: 108px; height: 108px; margin: 0 auto 30px; }
.done__mark .mark { width: 100%; height: 100%; filter: drop-shadow(0 18px 30px rgba(140, 100, 50, .25)); }
.done__check {
  position: absolute; right: -12px; bottom: -12px; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--primary); color: var(--on-primary);
  box-shadow: 0 0 0 6px var(--bg); animation: pop .6s var(--spring) 1.05s both;
}
.done__check .ico { width: 22px; height: 22px; stroke-width: 2.6; stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .5s var(--ease) 1.35s forwards; }
.done__title { font-size: clamp(32px, 5.4vw, 48px); line-height: 1.05; font-weight: 800; letter-spacing: -.034em; animation: fadeUp .7s var(--ease) .3s both; }
.done__text { max-width: 46ch; margin: 14px auto 0; color: var(--muted); font-size: 17px; animation: fadeUp .7s var(--ease) .4s both; }
.ref {
  display: inline-grid; gap: 2px; margin-top: 28px; padding: 14px 24px;
  border-radius: var(--r-lg); background: var(--surface); border: 1px dashed var(--line-2);
  animation: fadeUp .7s var(--ease) .5s both;
}
.ref span { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ref b { font-size: 21px; letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; animation: fadeUp .7s var(--ease) .6s both; }
.done__mail { display: grid; justify-items: center; gap: 8px; margin-top: 18px; animation: fadeUp .7s var(--ease) .7s both; }
.done__mailnote { max-width: 46ch; font-size: 13.5px; color: var(--muted); }
.done__demo { margin-top: 26px; display: inline-flex; align-items: flex-start; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: 13px; text-align: left; }
.done__demo .ico { width: 16px; height: 16px; margin-top: 1px; }
.tile__planks.is-animated .tile__plank { animation: plankIn .9s var(--ease) both; transform-box: fill-box; transform-origin: center; }
.tile__planks.is-animated .tile__plank--0 { --dx: -26px; --dy: -14px; animation-delay: .05s; }
.tile__planks.is-animated .tile__plank--1 { --dx: 14px; --dy: -26px; animation-delay: .18s; }
.tile__planks.is-animated .tile__plank--2 { --dx: 26px; --dy: 14px; animation-delay: .31s; }
.tile__planks.is-animated .tile__plank--3 { --dx: -14px; --dy: 26px; animation-delay: .44s; }

/* ------------------------------------------------------------ toasts, modal */
.toasts {
  position: fixed; z-index: 120; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translateX(-50%); width: min(92vw, 440px);
  display: grid; gap: 8px; pointer-events: none;
}
@media (min-width: 600px) {
  .toasts { bottom: auto; top: calc(var(--topbar-h) + 16px); }
}
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-radius: 16px; background: var(--primary); color: var(--on-primary);
  box-shadow: var(--shadow-3); font-size: 14px; font-weight: 560; line-height: 1.4;
  pointer-events: auto; animation: toastIn .45s var(--spring) both;
}
.toast .ico { width: 18px; height: 18px; color: var(--accent); }
.toast--error { background: var(--danger); color: #fff; }
.toast--error .ico { color: #fff; }
.toast.is-out { animation: toastOut .25s ease-in both; }

.modal {
  width: min(92vw, 560px); max-height: 88vh; padding: 0; border: 0;
  border-radius: var(--r-xl); background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-3);
}
.modal[open] { animation: modalIn .35s var(--spring) both; }
.modal::backdrop { background: rgba(12, 9, 6, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal__inner { padding: 24px; }
.modal__title { font-size: 19px; font-weight: 750; letter-spacing: -.01em; }
.modal__body { margin-top: 10px; color: var(--muted); font-size: 15px; }
.modal__body pre {
  max-height: 52vh; overflow: auto; margin: 0; padding: 14px; border-radius: var(--r);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2);
  font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre;
}
.modal__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 22px; }

/* ------------------------------------------------------------ debug */
.dbg-tab {
  position: fixed; z-index: 90; left: 0; top: 46%;
  display: flex; align-items: center; gap: 6px; padding: 10px 8px;
  border: 1px dashed var(--accent); border-left: 0; border-radius: 0 12px 12px 0;
  background: var(--surface); color: var(--accent-ink); box-shadow: var(--shadow-2);
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
}
.dbg-tab .ico { width: 15px; height: 15px; transform: rotate(90deg); }
.dbg-tab:hover { background: var(--accent-soft); }
.dbg {
  position: fixed; z-index: 95; left: 14px; top: 50%; transform: translateY(-50%);
  width: min(330px, calc(100vw - 28px)); max-height: calc(100dvh - 40px); overflow: auto;
  padding: 14px; border-radius: 20px; border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow-3);
  display: none;
}
.dbg.is-open { display: block; animation: fadeIn .2s ease both; }
.dbg__head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.dbg__title { flex: 1; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.dbg__group { display: grid; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.dbg__btn {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2);
  color: var(--text); font-size: 13.5px; font-weight: 600; text-align: left; cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.dbg__btn:hover { background: var(--accent-soft); border-color: var(--accent); }
.dbg__btn .ico { width: 17px; height: 17px; color: var(--accent-ink); }
.dbg__btn--danger .ico { color: var(--danger); }
.dbg__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 550; }
.dbg__row select { height: 34px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: 13px; }
.switch { position: relative; width: 40px; height: 24px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 12px; background: var(--line-2); transition: background-color .2s; pointer-events: none; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .3s var(--spring); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-glow); }
.dbg__meta { font-size: 11.5px; color: var(--faint); line-height: 1.5; padding-top: 8px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }

/* ------------------------------------------------------------ animations */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { opacity: 0; transform: translateY(-6px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.28); } 100% { transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@keyframes floatY { 0%, 100% { transform: translate(var(--tx, 0), 0); } 50% { transform: translate(var(--tx, 0), -5px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--ok-soft); } 50% { box-shadow: 0 0 0 6px var(--ok-soft); } 100% { box-shadow: 0 0 0 3px var(--ok-soft); } }
@keyframes live { 0% { box-shadow: 0 0 0 0 var(--accent-glow); } 100% { box-shadow: 0 0 0 9px transparent; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes plankIn { from { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.92); } to { opacity: 1; transform: none; } }
.room__lock { --tx: -50%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------ print */
#print-root { display: none; }
@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  :root, [data-theme="dark"] {
    color-scheme: light;
    --bg: #fff; --surface: #fff; --surface-2: #fff; --surface-3: #f4eee8;
    --text: #111; --text-2: #222; --muted: #555; --faint: #888; --line: #ddd; --line-2: #ccc;
    --accent-ink: #7a5c37; --accent-soft: #f4eee8; --danger: #b23b2e; --danger-soft: #fbeceb; --ok: #2f6b4a;
    --logo-ink: #323232;
    --r3-floor: #efe8de; --r3-grid: rgba(95, 72, 44, .08); --r3-face: #fbf8f4; --r3-seam: rgba(92, 70, 44, .2);
    --r3-cap: #303030; --r3-end: #4a4a4a; --r3-band: #3a3a3a; --r3-ghost: rgba(40, 36, 30, .34);
    --r3-door: #cdae86; --r3-glass: #d6e4e8; --r3-frame: #fff; --r3-badge: #fff; --r3-badge-ink: #111; --r3-shadow: rgba(0,0,0,0); --r3-fx: #fff; --r3-fx-line: rgba(60, 52, 42, .45);
  }
  body { background: #fff !important; color: #111; font-size: 11pt; }
  .topbar, .app, .toasts, .dbg-tab, .dbg, .modal, .skip-link, .vdock { display: none !important; }
  #print-root { display: block; }
  .pdoc__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 2px solid #c8ab88; }
  .pdoc__head .logo { height: 24px; color: #323232; }
  .pdoc__title { font-size: 18pt; font-weight: 800; letter-spacing: -.02em; margin-top: 8px; }
  .pdoc__meta { text-align: right; font-size: 9.5pt; color: #555; line-height: 1.5; }
  .pdoc__meta b { color: #111; }
  .pdoc .summary { gap: 10px; }
  .pdoc .sum { box-shadow: none; border: 1px solid #ddd; border-radius: 10px; break-inside: avoid; page-break-inside: avoid; }
  .pdoc .sum__head { padding: 8px 12px; }
  .pdoc .sum__body { padding: 2px 12px 8px; }
  .pdoc .row { grid-template-columns: minmax(0, 1fr) minmax(0, auto); gap: 14px; padding: 5px 0; font-size: 10pt; }
  .pdoc .row dd { text-align: right; }
  .pdoc .btn, .pdoc .sum__state, .pdoc .sum__badge { display: none !important; }
  .pdoc .sum-room { grid-template-columns: 190px minmax(0, 1fr); gap: 14px; break-inside: avoid; }
  .pdoc .sum-room__views { grid-template-columns: 1fr; gap: 6px; }
  .pdoc .r3-dim { stroke: #fff; }
  .pdoc .pill { height: auto; padding: 1px 8px; border: 1px solid #ddd; }
  .pdoc__foot { margin-top: 14px; font-size: 8.5pt; color: #777; text-align: center; }
}

/* ------------------------------------------------------------ the fitter's form (Homewall master form) */
.rooms-count output.stepper__val { display: grid; place-items: center; }
.room-add { justify-content: center; margin: 4px 0 22px; }
.room-add .btn { border-style: dashed; }
.intro__master { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.intro__master .ico { width: 16px; height: 16px; color: var(--accent-ink); }
.internal-note { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 14px; }
.internal-note .ico { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--accent-ink); }
.done__actions .btn--lg { min-width: 220px; }

/* ------------------------------------------------------------ the fitter's login (auth.js) */
.login { min-height: calc(100dvh - var(--topbar-h)); display: grid; place-items: center; padding: 24px 16px 64px; }
.login__card { width: min(420px, 100%); margin: 0; display: flex; flex-direction: column; gap: 14px; }
.login__ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.login__ico .ico { width: 24px; height: 24px; }
.login__title { margin: 0; font-size: 24px; font-weight: 750; letter-spacing: -.01em; }
.login__lead { margin: -6px 0 4px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.login__err { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--danger-soft, rgba(184, 64, 47, .1)); color: var(--danger); font-weight: 600; font-size: 14px; }
.login__err[hidden] { display: none; }
.login .btn--block, .login-modal .btn--block { width: 100%; }
.login-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(10, 8, 6, .45); backdrop-filter: blur(3px); }
.login-modal__in { width: min(420px, 100%); }
.auth-user { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.auth-user .ico { width: 16px; height: 16px; }
@media (max-width: 560px) { .auth-user__name { display: none; } }
