/* printsizes.com — homepage prototype */

@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif.woff2) format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif-italic.woff2) format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/jetbrains-mono.woff2) format("woff2"); font-weight: 400 500; font-display: swap; }

:root {
  --paper: #f6f3ee;
  --panel: #fbfaf7;
  --wall: #e8e3da;
  --wall-2: #ddd6cb;
  --ink: #1d1b18;
  --ink-2: #3b3732;
  --muted: #6f685e;
  --faint: #a59d91;
  --line: #e5dfd5;
  --line-2: #d6cfc3;
  --clay: #a4532f;
  --q-excellent: #2e7d4f;
  --q-good: #5f8f36;
  --q-fair: #c08a1e;
  --q-poor: #b5462f;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --topbar: 60px;
  --panel-w: 400px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
.eyebrow {
  font: 500 11px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clay);
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--topbar);
  display: flex; align-items: center; gap: 28px;
  padding: 0 20px 0 22px;
  background: rgba(251, 250, 247, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-word { height: 26px; width: auto; display: block; }
.topnav { display: flex; gap: 22px; font-size: 13.5px; color: var(--muted); }
.topnav a { text-decoration: none; }
.topnav a:hover { color: var(--ink); }

/* segmented control */
.seg {
  display: inline-flex; padding: 3px; gap: 2px;
  background: #efebe4; border-radius: 9px; border: 1px solid var(--line);
}
.seg button {
  border: 0; background: transparent; padding: 5px 11px; border-radius: 7px; white-space: nowrap;
  font-size: 12.5px; font-weight: 500; color: var(--muted);
}
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.03); }
.seg button:disabled { opacity: .45; cursor: default; }

/* ---------- studio layout ---------- */
.studio {
  display: grid;
  grid-template-columns: var(--panel-w) 1fr;
  height: calc(100vh - var(--topbar));
  min-height: 640px;
  border-bottom: 1px solid var(--line);
}
.panel {
  background: var(--panel);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.panel-inner { padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 18px; flex: 1; }

/* intro (empty state) */
.intro h1 {
  font: 400 40px/1.05 var(--serif);
  letter-spacing: -.015em;
  margin: 12px 0 12px;
}
.intro h1 em { font-style: italic; }
.intro p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.trust { display: flex; gap: 14px; margin-top: 14px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--q-excellent); }
.has-photo .intro { display: none; }
.compact-title { display: none; font: 400 22px/1.1 var(--serif); margin: 0; }
.has-photo .compact-title { display: block; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: box-shadow .2s, border-color .2s;
}
.step.open { border-color: var(--line-2); box-shadow: 0 1px 2px rgba(29,27,24,.04), 0 8px 24px -12px rgba(29,27,24,.18); }
.step-head {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 0; background: transparent; text-align: left;
}
.step-num {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  font: 500 11px/1 var(--mono);
  border: 1px solid var(--line-2); color: var(--muted);
}
.step.open .step-num { background: var(--ink); border-color: var(--ink); color: #fff; }
.step.done:not(.open) .step-num { background: #eef3ee; border-color: #cfe0d3; color: var(--q-excellent); }
.step-title { font-weight: 600; font-size: 14.5px; }
.step-sub { margin-left: auto; font-size: 12.5px; color: var(--muted); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.step.locked { opacity: .55; }
.step.locked .step-head { cursor: default; }
.step-desc { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.has-photo .step-desc { display: none; }
.step-body { display: none; padding: 0 16px 16px; }
.step.open .step-body { display: block; }

/* photo step */
.dropbtn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; border-radius: 10px; border: 0;
  background: var(--ink); color: #fff; font-weight: 600;
}
.dropbtn:hover { background: #000; }
.textbtn { border: 0; background: none; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 12.5px; }
.textbtn:hover { color: var(--ink); }
.photo-meta { display: flex; gap: 12px; align-items: center; }
.photo-meta .thumb { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: var(--wall); flex: none; }
.photo-meta .name { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 250px; }
.photo-meta .dims { font: 12px/1.5 var(--mono); color: var(--muted); }
.local-note { display: flex; gap: 7px; align-items: center; font-size: 12px; color: var(--muted); margin-top: 12px; }
.local-note svg { width: 13px; height: 13px; color: var(--q-excellent); flex: none; }
.manual { display: none; margin-top: 12px; gap: 8px; align-items: center; }
.manual.show { display: flex; }
.manual input { width: 90px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; font-family: var(--mono); font-size: 13px; }
.manual button { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; font-weight: 500; }

/* style cards */
.styles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.style-card {
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  padding: 8px 8px 10px; text-align: left;
  display: flex; flex-direction: column; gap: 8px;
}
.style-card:hover { border-color: var(--line-2); }
.style-card:disabled { opacity: .45; cursor: not-allowed; }
.style-card[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.style-card .mini {
  height: 74px; border-radius: 6px; background: var(--wall);
  display: grid; place-items: center; overflow: hidden;
}
.style-card .lbl { font-weight: 600; font-size: 12.5px; line-height: 1.25; }
.style-card .hint { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.mini-print { width: 46px; height: 58px; background-size: cover; background-position: center; box-shadow: 0 2px 6px rgba(0,0,0,.18); background-color: #cfc7bb; }
.mini-border { width: 46px; height: 58px; background: #fff; padding: 5px; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.mini-border i { display: block; width: 100%; height: 100%; background-size: contain; background-repeat: no-repeat; background-position: center; background-color: transparent; }
.mini-framed { width: 52px; height: 64px; background: #222; padding: 4px; box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.mini-framed i { display: block; width: 100%; height: 100%; background-size: cover; background-position: center; background-color: #cfc7bb; }
.mini-mat { width: 54px; height: 66px; background: #222; padding: 3px; box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.mini-mat b { display: grid; place-items: center; width: 100%; height: 100%; background: #f7f4ee; }
.mini-mat i { display: block; width: 28px; height: 36px; background-size: cover; background-position: center; background-color: #cfc7bb; box-shadow: inset 0 0 0 1px rgba(255,255,255,.9); }

/* size step */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.tabs button {
  border: 0; background: none; padding: 7px 10px 9px; font-size: 12.5px; font-weight: 500; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.chip {
  position: relative;
  border: 1px solid var(--line); background: #fff; border-radius: 9px;
  padding: 8px 9px 7px; text-align: left;
  display: flex; flex-direction: column; gap: 1px;
}
.chip:hover { border-color: var(--line-2); }
.chip[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.chip .c-main { font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.chip .c-sub { font: 10.5px/1.3 var(--mono); color: var(--muted); }
.chip .dot { position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border-radius: 50%; }
.chip .fit { position: absolute; bottom: 8px; right: 9px; font: 500 9px/1 var(--mono); letter-spacing: .04em; color: var(--q-excellent); text-transform: uppercase; }
.chip .fit.top { top: 9px; bottom: auto; }
.q-excellent { background: var(--q-excellent); } .q-good { background: var(--q-good); }
.q-fair { background: var(--q-fair); } .q-poor { background: var(--q-poor); }

.field { margin-top: 14px; }
.field-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; font-weight: 600; margin-bottom: 7px; }
.field-label .val { font: 12px var(--mono); color: var(--muted); font-weight: 400; }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.field-label .note { font-size: 12px; font-weight: 400; color: var(--muted); }
.fit-seg { display: flex; width: 100%; }
.fit-seg button { flex: 1; padding: 6px 8px; }
input[type=range] { width: 100%; accent-color: var(--ink); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.swatches { display: flex; gap: 8px; }
.swatch {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12);
  box-shadow: inset 0 0 0 2px #fff; padding: 0;
}
.swatch[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }
.minibtn { padding: 6px 10px; border: 1px solid var(--line-2); background: #fff; border-radius: 8px; font-size: 12.5px; font-weight: 500; }
.minibtn:hover { border-color: var(--muted); }
.custom-size { display: flex; gap: 6px; align-items: center; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.custom-size input { width: 64px; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 7px; font: 12.5px var(--mono); background: #fff; }
/* step 3's custom frame: its chip dimmed while the print is too big for it; the line under its boxes */
.chip.off .c-main, .chip.off .c-sub { color: var(--faint); }
.field-hint.field-err { color: var(--q-poor); }
.field-hint.field-res { color: var(--ink-2); }

.readout {
  margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #f5f2ec;
  font-size: 12.5px; line-height: 1.55; color: var(--ink-2);
}
.readout b { font-weight: 600; }
.readout .mono { font-size: 12px; }
.readout .ro { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; margin: 0; }
.readout .ro dt { color: var(--muted); white-space: nowrap; }
.readout .ro dd { margin: 0; }
.readout .ro .qpill { gap: 6px; }
.readout .ro-note { color: var(--muted); font-size: 11.5px; }
.suggest { display: flex; flex-direction: column; gap: 6px; }
.suggest .chip { flex-direction: row; align-items: center; justify-content: space-between; padding: 9px 11px; }
.suggest .chip .c-sub { font-size: 11px; }
.suggest .chip .dot { position: static; }

/* export step */
.summary { display: flex; gap: 12px; align-items: center; }
.summary .sthumb { width: 56px; height: 56px; border-radius: 6px; background: var(--wall); display: grid; place-items: center; overflow: hidden; flex: none; }
.summary .sthumb img { max-width: 48px; max-height: 48px; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.summary .s1 { font-weight: 600; font-size: 14px; }
.summary .s2 { font: 11.5px/1.5 var(--mono); color: var(--muted); }
.export-opts { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.radio { display: flex; gap: 9px; align-items: flex-start; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font-size: 12.5px; }
.radio input { margin: 2px 0 0; accent-color: var(--ink); }
.radio b { display: block; font-weight: 600; }
.radio span span { color: var(--muted); }
.download {
  width: 100%; margin-top: 12px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px; border: 0; border-radius: 11px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 14.5px;
}
.download:hover { background: #000; }
/* "Next" at the end of steps 2 and 3: the full width of the card, big enough to see and tap */
.nextbtn {
  display: flex; align-items: center; justify-content: center; width: 100%; margin-top: 14px; padding: 12px;
  border: 1px solid var(--ink); border-radius: 11px; background: #fff; color: var(--ink); font-weight: 600; font-size: 14.5px; cursor: pointer;
}
.nextbtn:hover { background: var(--ink); color: #fff; }
.download:disabled { background: #b9b2a7; cursor: not-allowed; }
.fineprint { font-size: 11.5px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
/* step 4: the preview picture for sharing, under the print file */
.sharebtn {
  width: 100%; margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px; border: 1px solid var(--ink); border-radius: 11px; background: #fff; color: var(--ink); font-weight: 600; font-size: 14px;
}
.sharebtn:hover { background: var(--ink); color: #fff; }
.sharebtn:disabled { opacity: .5; cursor: progress; }
.share-ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabbar { display: none; }

.panel-foot { padding: 14px 24px 18px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--faint); display: flex; justify-content: space-between; }

/* ---------- canvas ---------- */
.canvas {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 700px at 30% 10%, rgba(255,255,255,.55), rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #ebe6de 0%, #e3ddd3 100%);
}
.canvas.dragging::after {
  content: "Drop to open your photo"; position: absolute; inset: 14px; z-index: 20;
  border: 2px dashed var(--ink); border-radius: 18px; background: rgba(246,243,238,.82);
  display: grid; place-items: center; font: 400 30px var(--serif);
}
.canvas-toolbar {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 5;
  display: flex; gap: 10px; align-items: center;
}
.canvas-toolbar .seg { background: rgba(255,255,255,.7); backdrop-filter: blur(8px); }
/* right edge of the canvas, one column centred top to bottom (2026-11-08): print settings (turn sideways, in/cm),
   zoom, and in the room view Close-up and Share. The print is laid out left of it (cvPads keeps room for it). */
.cv-rail {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%); z-index: 5; width: 48px;
  display: flex; flex-direction: column; gap: 8px;
}
.rail-card {
  display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 3px;
  border-radius: 12px; background: rgba(255,255,255,.86); backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,.06); box-shadow: 0 6px 20px -10px rgba(0,0,0,.28);
}
.rail-btn { height: 32px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.rail-btn:hover { background: rgba(0,0,0,.06); }
.rail-btn:disabled { opacity: .3; cursor: default; background: transparent; }
.rail-btn svg { width: 16px; height: 16px; }
/* Close-up and Share: icon over a short word */
.rail-lab { height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: 500 9.5px/1 var(--sans); letter-spacing: -.01em; white-space: nowrap; }
.rail-lab .share-ic { width: 16px; height: 16px; }
#rotate svg { transition: transform .2s; }
#rotate[aria-pressed="true"] { background: rgba(0,0,0,.06); }
#rotate[aria-pressed="true"] svg { transform: rotate(90deg); }
.rail-pct { height: 22px; font: 500 10.5px var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.rail-sep { height: 1px; background: var(--line-2); margin: 3px 5px; }
.rail-units { display: flex; flex-direction: column; gap: 2px; }
.rail-units button { height: 26px; padding: 0; border: 0; border-radius: 8px; background: transparent; font: 500 11.5px var(--mono); color: var(--muted); cursor: pointer; }
.rail-units button:hover { color: var(--ink); }
.rail-units button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.stage { position: absolute; inset: 0; }
/* Print and Framed views: the endless sheet */
.canvas:not(.room-on) .stage { cursor: grab; touch-action: pan-y; }
.canvas.cv-manual:not(.room-on) .stage { touch-action: none; }
.stage.panning { cursor: grabbing; }
.cv-world { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 0; }
.scene { position: absolute; }
.canvas-status {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 5;
  display: flex; align-items: center; gap: 14px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.82); backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 6px 20px -10px rgba(0,0,0,.25);
  font-size: 12.5px; white-space: nowrap;
}
.canvas-status .sep { width: 1px; height: 14px; background: var(--line-2); }
.qpill { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.qpill i { width: 8px; height: 8px; border-radius: 50%; }
.canvas-status .muted { color: var(--muted); }
.hidden { display: none !important; }

.credit { position: absolute; left: 16px; top: 20px; font-size: 11px; color: var(--muted); z-index: 4; max-width: 260px; line-height: 1.4; }
/* guide bubble on the photo: drag to choose the crop. Clicks pass through to the photo, except the close button */
.crop-tip {
  position: absolute; transform: translate(-50%, -50%); z-index: 3; pointer-events: none;
  display: flex; align-items: center; gap: 8px; padding: 7px 7px 7px 12px; border-radius: 999px;
  background: rgba(29,27,24,.86); color: #fff; font: 500 13px/1.2 var(--sans); white-space: nowrap;
  box-shadow: 0 10px 28px -10px rgba(0,0,0,.5); animation: ct-in .3s ease-out;
}
.crop-tip .ct-ic { width: 18px; height: 18px; flex: none; }
/* under a small photo: top edge at the anchor, a caret pointing up at the photo */
.crop-tip.below { transform: translateX(-50%); }
.crop-tip.below::before {
  content: ''; position: absolute; top: -5px; left: var(--caret, 50%); width: 10px; height: 10px; margin-left: -5px;
  background: inherit; transform: rotate(45deg); border-radius: 2px 0 0 0;
}
.crop-tip.ax-x .ct-ic { animation: ct-x 1.6s ease-in-out infinite; }
.crop-tip.ax-y .ct-ic { animation: ct-y 1.6s ease-in-out infinite; }
.crop-tip.ax-xy .ct-ic { animation: ct-xy 2.4s ease-in-out infinite; }
.crop-tip .ct-x {
  pointer-events: auto; flex: none; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff; font-size: 15px; line-height: 1; cursor: pointer;
}
.crop-tip .ct-x:hover { background: rgba(255,255,255,.28); }
@keyframes ct-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ct-x { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }
@keyframes ct-y { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }
@keyframes ct-xy { 0%, 100% { transform: translate(-3px, 0); } 25% { transform: translate(0, -3px); } 50% { transform: translate(3px, 0); } 75% { transform: translate(0, 3px); } }
@media (prefers-reduced-motion: reduce) { .crop-tip, .crop-tip .ct-ic { animation: none !important; } }

/* quality advice card on canvas */
.advice {
  position: absolute; right: 72px; top: 64px; z-index: 6; width: 300px; /* floats over the picture, left of the settings card */
  background: #fff; border-radius: 14px; border: 1px solid var(--line);
  box-shadow: 0 16px 40px -16px rgba(0,0,0,.35);
  padding: 14px 14px 12px; font-size: 12.5px;
}
.advice h4 { margin: 0 0 4px; font-size: 13.5px; }
.advice p { margin: 0 0 10px; color: var(--muted); line-height: 1.45; }
.advice .alt { width: 100%; text-align: left; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--line-2); background: #fff; font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
.advice .alt:hover { border-color: var(--ink); }
.advice .x { position: absolute; top: 8px; right: 10px; border: 0; background: none; color: var(--faint); font-size: 16px; }

/* paper, frames, mats */
.paper { position: absolute; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 18px 40px -14px rgba(40,30,20,.35); }
.win { position: absolute; overflow: hidden; background: #d8d1c6; }
.win img { position: absolute; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.win.grab { cursor: grab; touch-action: none; }
.win.grab:active { cursor: grabbing; }
.frame {
  position: absolute;
  box-shadow: 0 2px 3px rgba(0,0,0,.15), 0 26px 50px -18px rgba(40,30,20,.5);
}
.frame.black { background: linear-gradient(135deg, #2a2826, #121110 60%, #23211f); }
.frame.white { background: linear-gradient(135deg, #fbfbf9, #ecebe7 70%, #f6f6f3); }
.frame.oak {
  background:
    repeating-linear-gradient(90deg, rgba(120,80,40,.06) 0 2px, rgba(0,0,0,0) 2px 7px),
    linear-gradient(135deg, #d2b48c, #b8935f 60%, #c9a676);
}
.frame.gold { background: linear-gradient(135deg, #e0c27a, #a98235 45%, #d9b867 70%, #9c7631); }
.frame .inner { position: absolute; box-shadow: inset 0 2px 7px rgba(0,0,0,.28), inset 0 0 0 1px rgba(0,0,0,.08); overflow: hidden; }
.mat { position: absolute; inset: 0; }
.mat-open { position: absolute; overflow: hidden; box-shadow: inset 1px 1px 2px rgba(0,0,0,.25), 0 0 0 2px rgba(255,255,255,.95), 0 0 0 3px rgba(0,0,0,.06); }
.visible-guide { position: absolute; border: 1px dashed rgba(255,255,255,.95); outline: 1px dashed rgba(0,0,0,.35); outline-offset: -2px; pointer-events: none; }

/* dimension lines */
.dim { position: absolute; color: #7b7368; font: 11px/1 var(--mono); pointer-events: none; }
.dim.h { height: 9px; border-left: 1px solid currentColor; border-right: 1px solid currentColor; }
.dim.h::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; border-top: 1px solid currentColor; opacity: .7; }
.dim.v { width: 9px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.dim.v::before { content: ""; position: absolute; top: 0; bottom: 0; left: 4px; border-left: 1px solid currentColor; opacity: .7; }
.dim span { position: absolute; white-space: nowrap; padding: 2px 6px; background: #e7e1d8; border-radius: 4px; color: var(--ink-2); }
.dim.h span { left: 50%; top: -1px; transform: translate(-50%, -100%); }
.dim.v span { top: 50%; left: 14px; transform: translateY(-50%); }
.dim.v.left span { left: auto; right: 14px; }
.dim.h.below span { top: auto; bottom: -1px; transform: translate(-50%, 100%); }
.dim.v.rot span { writing-mode: vertical-rl; padding: 6px 2px; left: 12px; }
.dim.v.left.rot span { left: auto; right: 12px; } /* phones: the height labels sit left of the print, clear of the side rail */
/* the mat border, drawn on the mat itself */
.dim.mat { color: var(--clay); }
.dim.mat::before { opacity: 1; }
.dim.mat span { text-align: center; line-height: 1.25; padding: 3px 6px; background: rgba(255,255,255,.94); color: var(--clay); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.dim.h.mat span { top: -3px; }
.dim.v.rot.left span { left: auto; right: 12px; }
/* room: dimension lines over the photo */
.room-ov { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.room-ov path { fill: none; stroke-linecap: round; }
.room-ov .ov-halo { stroke: rgba(0,0,0,.32); stroke-width: 3; }
.room-ov .ov-line { stroke: #fff; stroke-width: 1.25; }
.room-ov .ov-ref-halo { stroke: rgba(255,255,255,.8); stroke-width: 4; }
.room-ov .ov-ref { stroke: var(--clay); stroke-width: 1.75; }
.ov-lab { position: absolute; left: 0; top: 0; padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,.92); color: var(--ink);
  font: 11px/1.3 var(--mono); white-space: nowrap; pointer-events: none; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.ov-lab.ref { background: var(--clay); color: #fff; }
.ov-lab[hidden] { display: none; }
.room:not(.ready) .room-ov, .room:not(.ready) .ov-lab { opacity: 0; }

/* wall view */
.wall-floor { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, #cdbfa9, #bfae94); }
.wall-base { position: absolute; left: 0; right: 0; background: #f2eee7; box-shadow: 0 -1px 0 rgba(0,0,0,.06); }
.sofa { position: absolute; }
.scale-note { position: absolute; font: 11px var(--mono); color: var(--muted); }

/* empty state */
.empty { position: absolute; inset: 0; display: grid; place-items: center; }
.empty-frame {
  position: relative;
  width: min(480px, 70%); aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #2a2826, #121110 60%, #23211f);
  padding: 18px;
  box-shadow: 0 2px 3px rgba(0,0,0,.15), 0 40px 70px -24px rgba(40,30,20,.55);
  max-height: 72%;
}
.empty-mat { width: 100%; height: 100%; background: #f8f5ef; box-shadow: inset 0 2px 8px rgba(0,0,0,.25); padding: 16%; }
.empty-open {
  width: 100%; height: 100%;
  border: 1.5px dashed #bdb4a6; background: #f1ede6;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; padding: 16px; transition: background .2s, border-color .2s;
  box-shadow: 0 0 0 2px #fff;
}
.empty-open:hover { background: #ece7de; border-color: var(--muted); }
.empty-open svg { width: 30px; height: 30px; color: var(--muted); }
.empty-open .big { font: 400 26px/1.1 var(--serif); }
.empty-open .small { font-size: 12px; color: var(--muted); }
.empty-open .dropbtn { width: auto; padding: 10px 16px; font-size: 13px; margin-top: 4px; }
.samples { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.sample { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; padding: 0; background-size: cover; background-position: center; box-shadow: 0 3px 10px rgba(0,0,0,.2); transition: transform .15s; }
.sample:hover { transform: translateY(-2px) scale(1.05); }
.sample.loading { animation: sample-pulse 1s ease-in-out infinite; }
@keyframes sample-pulse { 50% { opacity: .45; transform: scale(.92); } }
@media (prefers-reduced-motion: reduce) { .sample.loading { animation: none; opacity: .5; } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13px; z-index: 60; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }

/* the room picture's window (2026-11-09): a <dialog> made by app.js (pvDom). A centred card on a computer, a bottom
   sheet on a phone. The picture keeps its shape (--ar, width / height, set by app.js) and is as big as the screen
   allows: --chrome is the height of everything around it. */
.pv {
  padding: 0; border: 0; border-radius: var(--r-lg); background: var(--panel); color: var(--ink);
  max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); max-height: calc(100svh - 32px);
  box-shadow: 0 30px 80px -24px rgba(29,27,24,.55); overscroll-behavior: contain;
}
.pv::backdrop { background: rgba(29,27,24,.55); }
.pv [hidden] { display: none !important; }
.pv-box { display: flex; flex-direction: column; gap: 14px; padding: 14px 22px 20px; }
.pv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pv-head h2 { margin: 0; font: 400 26px/1.15 var(--serif); letter-spacing: -.01em; }
.pv-x { flex: none; width: 40px; height: 40px; margin: -4px -10px -4px 0; border: 0; border-radius: 9px; background: transparent; color: var(--muted); display: grid; place-items: center; }
.pv-x:hover { background: rgba(0,0,0,.06); color: var(--ink); }
.pv-x svg, .pv-btn svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pv-fig {
  --chrome: 184px; position: relative; align-self: center; overflow: hidden; border-radius: 10px; background: var(--wall);
  display: grid; place-items: center; aspect-ratio: var(--ar, 1.25);
  width: min(880px, calc(100vw - 76px), calc((100vh - var(--chrome)) * var(--ar, 1.25)));
  width: min(880px, calc(100vw - 76px), calc((100svh - var(--chrome)) * var(--ar, 1.25)));
}
.pv-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pv-wait { margin: 0; padding: 0 20px; color: var(--muted); font-size: 13.5px; text-align: center; }
.pv.busy .pv-fig { animation: pv-pulse 1.4s ease-in-out infinite; }
@keyframes pv-pulse { 50% { background: var(--wall-2); } }
@media (prefers-reduced-motion: reduce) { .pv.busy .pv-fig { animation: none; } }
.pv-acts { display: flex; align-items: center; gap: 10px; }
/* width 0: a long line wraps instead of widening the window */
.pv-note { flex: 1 1 auto; width: 0; margin: 0 8px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.pv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; flex: none;
  border: 1px solid var(--line-2); border-radius: 11px; background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; white-space: nowrap;
}
.pv-btn:hover { border-color: var(--ink); }
.pv-btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.pv-btn.primary:hover { background: #000; }
.pv-btn:disabled { opacity: .45; cursor: default; border-color: var(--line-2); }
.pv-btn.primary:disabled { border-color: var(--ink); background: var(--ink); }
@media (max-width: 860px) {
  .pv { width: 100%; max-width: 100%; margin: auto 0 0; max-height: calc(100% - 16px); border-radius: 18px 18px 0 0; }
  .pv-box { gap: 12px; padding: 6px 16px calc(16px + env(safe-area-inset-bottom)); }
  .pv-box::before { content: ""; align-self: center; width: 38px; height: 4px; border-radius: 2px; background: var(--line-2); margin-bottom: -4px; }
  .pv-head h2 { font-size: 22px; }
  .pv-fig {
    --chrome: 250px; border-radius: 8px;
    width: min(100%, calc((100vh - var(--chrome)) * var(--ar, .8)));
    width: min(100%, calc((100svh - var(--chrome)) * var(--ar, .8)));
  }
  .pv-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .pv-acts.three .primary { grid-column: 1 / -1; order: -1; }
  .pv-btn { height: 46px; padding: 0 10px; }
  .pv-note { grid-column: 1 / -1; order: 1; width: auto; margin: 2px 0 0; text-align: center; }
}

/* ---------- guide (below the fold) ---------- */
.guide { max-width: 1120px; margin: 0 auto; padding: 72px 24px 40px; }
.guide-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 36px; }
/* one heading scale (2026-11-08): H1 40, section H2 44 (size chart, FAQ), explanation H2 30, table H3 26 */
.guide h2 { font: 400 44px/1.05 var(--serif); letter-spacing: -.015em; margin: 12px 0 0; }
.guide-head p { color: var(--muted); margin: 0; font-size: 15px; }
.tables { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 20px 10px; }
.tcard h3 { font: 400 26px/1.1 var(--serif); margin: 0 0 4px; }
.tcard .tsub { color: var(--muted); font-size: 12.5px; margin: 0 0 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 8px 6px; border-bottom: 1px solid var(--line); }
td { padding: 9px 6px; border-bottom: 1px solid #f0ebe3; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
td.mono { font-size: 12px; color: var(--muted); }
tbody tr { cursor: pointer; }
tbody tr:hover td { background: #faf7f2; }
/* "Use" at the end of each table row: always visible, a small outlined button */
td .open-in { display: inline-flex; align-items: center; gap: 2px; padding: 3px 6px 3px 9px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); font-size: 12px; white-space: nowrap; }
tbody tr:hover .open-in { border-color: var(--clay); color: var(--clay); }
td.nw { white-space: nowrap; }
.chev { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nextbtn .chev { width: 16px; height: 16px; margin-left: 4px; }
/* ad slots: fixed heights so nothing jumps when an ad loads; never inside the studio */
.adslot {
  grid-column: 1 / -1; height: 100px; border: 1px dashed var(--line-2); border-radius: var(--r);
  display: grid; place-items: center; color: var(--faint); font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase;
}
.adslot.ad-top { margin-bottom: 22px; }
.adslot.ad-bottom { margin-top: 56px; }
@media (max-width: 860px) { .adslot { height: 250px; text-align: center; padding: 0 16px; } }
.adslot::before { content: "Ad slot · reserved · 728 × 90, phones 300 × 250"; } /* in CSS, not in the page's text */
/* v1 shows no ads: the slots stay in the page but hidden. Delete this rule to bring them back. */
.adslot { display: none; }
/* the explanations after "How it works": one row each, heading left and text right (like the FAQ), short lines */
.explain { margin-top: 64px; border-bottom: 1px solid var(--line); }
.explain > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 40px; padding: 32px 0 22px; border-top: 1px solid var(--line); }
.explain h2 { grid-column: 1; grid-row: 1 / span 6; align-self: start; font: 400 30px/1.12 var(--serif); letter-spacing: -.01em; margin: 0; }
.explain p { grid-column: 2; max-width: 64ch; margin: 0 0 14px; color: var(--ink-2); font-size: 15px; line-height: 1.7; }
@media (max-width: 860px) {
  .explain > div { grid-template-columns: 1fr; padding: 26px 0 16px; }
  .explain h2 { grid-row: auto; font-size: 26px; margin-bottom: 12px; }
  .explain p { grid-column: 1; font-size: 14.5px; }
}
.guide .how-h { font: 400 30px/1.12 var(--serif); letter-spacing: -.01em; margin: 56px 0 20px; }
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.how div { border-top: 1px solid var(--ink); padding-top: 14px; }
.how b { font: 400 22px/1.15 var(--serif); display: block; margin-bottom: 6px; font-weight: 400; }
.how p { margin: 0; color: var(--muted); font-size: 13.5px; }
.faq { margin-top: 56px; display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.faq h2 { font-size: 44px; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 8px 0 0; font-size: 14px; }
footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 26px 24px; display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; max-width: 1120px; margin-left: auto; margin-right: auto; }
footer nav { display: flex; gap: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  :root { --panel-w: 360px; }
  .topnav { display: none; }
}
@media (max-width: 860px) {
  .topbar { gap: 12px; padding: 0 16px; }
  /* phones (2026-11-08): the first screen is the preview. One line of title on top, the preview fills the
     screen, the four steps are a bar at the bottom; the open step is a sheet that pushes the preview up, so the
     preview stays in view (and re-fits) while you change the size or the frame. The panel's own boxes dissolve
     (display: contents) so its parts can be laid out around the canvas. */
  .studio { display: flex; flex-direction: column; height: calc(100svh - var(--topbar)); min-height: 480px; }
  .panel, .panel-inner { display: contents; }
  /* before a photo: the title and the one-line explanation, as on a computer (without them a first-time visitor
     can't tell what the page does, 2026-11-08); after a photo: one line of title, like the computer's compact title */
  .intro { order: 0; padding: 14px 16px 12px; }
  .intro .eyebrow, .intro .trust { display: none; }
  .intro h1 { font: 400 26px/1.12 var(--serif); margin: 0 0 6px; }
  .intro p { font-size: 14px; line-height: 1.45; }
  .compact-title { font: 400 21px/1.15 var(--serif); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .compact-title { order: 0; padding: 10px 16px 8px; }
  .canvas { order: 1; flex: 1 1 auto; min-height: 0; }
  .panel-foot { display: none; }
  .steps { order: 2; display: none; }
  .sheet-open .steps {
    display: block; flex: none; max-height: 46svh; overflow-y: auto; overscroll-behavior: contain;
    background: var(--panel); border-radius: 18px 18px 0 0; margin-top: -16px; position: relative; z-index: 8;
    box-shadow: 0 -10px 30px -12px rgba(29,27,24,.35); padding: 4px 4px 8px;
  }
  .sheet-open .steps::before { content: ""; display: block; width: 38px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 6px auto 0; }
  .sheet-open .rail-zoom, .sheet-open .canvas-status { display: none !important; } /* the sheet shows the size and sharpness */
  .steps .step { display: none; border: 0; box-shadow: none; background: transparent; }
  .steps .step.open { display: block; }
  .steps .step-head { padding: 10px 12px 8px; }
  .steps .step-head::after { /* the head closes the sheet */
    content: ""; flex: none; width: 9px; height: 9px; margin: 0 4px 4px 8px;
    border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg);
  }
  .steps .step-sub { max-width: 46vw; }
  .steps .step-body { padding: 0 12px 12px; }
  /* the four steps as real buttons (2026-11-08: flat labels didn't look tappable): a filled key each, the open
     step dark, the first step dark too before there is a photo; a finished step gets a green number */
  .tabbar {
    order: 3; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; flex: none; position: relative; z-index: 9;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 20px -14px rgba(0,0,0,.3);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  }
  .tabbar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 54px;
    padding: 6px 2px; border-radius: 12px; border: 1px solid #e2dacd; background: #f5f1ea;
    box-shadow: 0 1px 0 rgba(29,27,24,.06); font: 600 12.5px var(--sans); color: var(--ink);
    transition: transform .1s, background .15s;
  }
  .tabbar button:active { transform: scale(.96); }
  .tabbar button:disabled { opacity: .45; }
  .tabbar .tb-n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 11px/1 var(--mono); background: #fff; border: 1px solid #d5ccbe; color: var(--ink-2); }
  .tabbar button.done .tb-n { background: var(--q-excellent); border-color: var(--q-excellent); color: #fff; }
  .tabbar button.next, .tabbar button[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
  .tabbar button.next .tb-n, .tabbar button[aria-current="true"] .tb-n { background: #fff; border-color: #fff; color: var(--ink); }
  .empty-open .dropbtn { white-space: nowrap; }
  .advice { left: 12px; right: 64px; width: auto; top: auto; bottom: 64px; }
  .canvas-status { font-size: 11.5px; gap: 10px; padding: 7px 12px; max-width: calc(100% - 24px); overflow: hidden; }
  .credit, .st-dist { display: none !important; }
  .canvas-toolbar { top: 12px; }
  .canvas-toolbar .seg button { padding: 5px 10px; font-size: 12.5px; }
  .cv-rail { right: 8px; width: 44px; gap: 6px; }
  .rail-btn { height: 30px; }
  .rail-lab { height: 44px; font-size: 9px; }
  .guide-head, .tables, .faq { grid-template-columns: 1fr; gap: 16px; }
  .how { grid-template-columns: 1fr 1fr; }
  .guide h2 { font-size: 38px; }
  .guide .how-h { font-size: 38px; margin-top: 44px; } /* same size as the other section headings on phones */
  .samples { bottom: 16px; }
  footer { flex-direction: column; gap: 12px; }
}

/* ---------- "On the wall": calibrated room photo, 2.5D parallax, frame to scale ---------- */
.room { position: absolute; inset: 0; overflow: hidden; background: #ddd5c9; touch-action: pan-y; }
.room-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .5s; }
.room.ready .room-gl { opacity: 1; }
.room-photo { position: absolute; display: none; max-width: none; user-select: none; pointer-events: none; }
.room.flat .room-photo { display: block; }
.room.flat .room-gl { display: none; }
.room-art { position: absolute; left: 0; top: 0; transform-origin: 0 0; cursor: zoom-in; opacity: 0; transition: opacity .4s; }
.room.ready .room-art { opacity: 1; }
.room.zoomed { cursor: grab; touch-action: none; }
.room.zoomed.grabbing { cursor: grabbing; }
.room.zoomed .room-art { cursor: inherit; }
.room-art canvas { display: block; width: 100%; height: 100%; }
/* standing or leaning frames: a soft contact shadow where the bottom edge meets the surface */
.room.k-stand .room-art::after, .room.k-lean .room-art::after {
  content: ""; position: absolute; z-index: -1; left: 2%; right: 2%; bottom: calc(var(--in) * -0.12); height: calc(var(--in) * 0.32);
  background: radial-gradient(closest-side, rgba(0,0,0,.42), rgba(0,0,0,0)); pointer-events: none;
}
.room-wait { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.room-label {
  position: absolute; transform: translate(-50%, -100%); padding: 3px 8px; border-radius: 6px;
  background: rgba(255,255,255,.88); color: var(--ink-2); font: 11px/1.3 var(--mono); white-space: nowrap;
  box-shadow: 0 3px 10px -5px rgba(0,0,0,.35); pointer-events: none; transition: opacity .3s;
}
.room.zoomed .room-label { opacity: 0; }
.room-bar {
  position: absolute; bottom: 16px; display: flex; align-items: center; gap: 6px;
  padding: 5px 7px; border-radius: 999px; background: rgba(255,255,255,.84); backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,.05); box-shadow: 0 6px 20px -10px rgba(0,0,0,.25);
}
.room-left { left: 16px; max-width: calc(100% - 300px); overflow-x: auto; scrollbar-width: none; }
.room-left::-webkit-scrollbar { display: none; }
.room-left .room-th { flex: none; }
.room-right { right: 16px; }
.room-cap { font-size: 11.5px; color: var(--muted); margin: 0 3px 0 6px; }
.room-th { width: 40px; height: 27px; border-radius: 6px; border: 1px solid rgba(0,0,0,.14); padding: 0; cursor: pointer; background: #ccc center / cover no-repeat; }
.room-th[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--ink); }
.room-btn { border: 0; background: transparent; font: 500 12px var(--sans); color: var(--ink); padding: 5px 10px; border-radius: 999px; cursor: pointer; }
.room-btn:hover { background: rgba(0,0,0,.06); }
.room-btn:disabled { opacity: .35; cursor: default; background: transparent; }
.room-share { display: inline-flex; align-items: center; gap: 5px; }
.room-share .share-ic { width: 14px; height: 14px; }
.room-ic { width: 28px; height: 28px; padding: 0; font-size: 17px; line-height: 1; display: grid; place-items: center; }
.room-sep { width: 1px; height: 16px; background: var(--line-2); margin: 0 2px; }
.room-scale { position: absolute; left: 18px; bottom: 58px; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.72); color: var(--ink-2); font: 11px var(--mono); pointer-events: none; }
.canvas.room-on .credit { background: rgba(255,255,255,.82); color: var(--ink-2); padding: 6px 9px; border-radius: 8px; }
/* narrow canvas (small laptop, tablet, phone): controls go one row above the status pill */
.canvas { container-type: inline-size; }
@container (max-width: 1240px) {
  .room-bar { bottom: 58px; }
  .room-scale { bottom: 102px; }
  .credit { max-width: 150px; font-size: 10.5px; }
}
@media (max-width: 860px) { .room-scale { display: none; } }
/* tall phone canvases: the wall above is empty, so the room picker goes up there and the furniture stays clear */
@container (max-width: 600px) {
  .room-bar { top: 62px; bottom: auto; }
  .room-ic, .room-sep { display: none; } /* pinch to zoom on phones */
  .room-left { max-width: calc(100% - 72px); } /* ten scenes: swipe the strip sideways; stops short of the side rail */
  .share-sep { display: block; }
}
@media (max-width: 480px) {
  .room-cap { display: none; }
  .room-th { width: 34px; height: 23px; }
  .room-btn { padding: 4px 7px; font-size: 11.5px; }
  .room-left { left: 10px; } .room-right { right: 10px; }
}

/* phones: a tighter top bar */
@media (max-width: 480px) {
  .topbar { gap: 8px; padding: 0 12px; }
  .brand-word { height: 21px; }
}

/* 404 page */
.nf { max-width: 520px; margin: 18vh auto 0; padding: 0 24px; }
.nf-word { display: block; height: 35px; width: auto; margin-bottom: 40px; }
.nf h1 { font: 400 44px/1.05 var(--serif); margin: 0 0 12px; }
.nf p { color: var(--ink-2); margin: 0 0 12px; }
.nf-home { color: var(--ink); font-weight: 600; }
