/* 360 Tours viewer, design system v4 (25 Oct 2026).
   Dark glass chrome over a full-bleed panorama. Every colour, radius and shadow is a token, so the
   Studio (editor.css) and any new component stay consistent. --accent comes from the tour's own
   settings; --accent-ink is set by tour.js to black or white, whichever reads better on it. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("viewer/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("viewer/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("viewer/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("viewer/fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  --accent: #8b6cf0; --accent-ink: #fff;
  --bg: #0b0c0f;
  --glass: rgba(16, 17, 22, .58); --glass-strong: rgba(16, 17, 22, .86); --glass-line: rgba(255, 255, 255, .1);
  --glass-blur: blur(18px) saturate(1.5);
  --text: #f5f5f7; --text-2: rgba(245, 245, 247, .72); --text-3: rgba(245, 245, 247, .5);
  --hover: rgba(255, 255, 255, .09); --press: rgba(255, 255, 255, .16);
  --on: #f5f5f7; --on-ink: #101114;
  --measure: #ffd84a;
  --r-xs: 8px; --r-sm: 10px; --r-md: 14px; --r-lg: 18px; --r-xl: 24px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .22);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .3), 0 18px 50px rgba(0, 0, 0, .38);
  --ease: cubic-bezier(.2, .7, .2, 1); --ease-out: cubic-bezier(.16, 1, .3, 1);
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --gap: 14px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); overflow: hidden; font: 400 14px/1.45 var(--font); color: var(--text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "cv11", "ss01"; }
button { font: inherit; color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.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; }
.ic { width: 20px; height: 20px; flex: 0 0 auto; display: block; }
.glass { background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line); box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, .05); }
.eyebrow { margin: 0 0 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 28%, transparent); }

.stage { position: absolute; inset: 0; overflow: hidden; }
#pano, #pano.pnlm-container { position: absolute; inset: 0; width: auto; height: auto; background: var(--bg); }
.vignette { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .28), transparent 18%, transparent 72%, rgba(0, 0, 0, .38)); }
.pnlm-panorama-info, .pnlm-controls-container { display: none !important; }
/* Pannellum's loader, restyled as a quiet glass chip with a thin progress line */
.pnlm-load-box { width: 200px !important; height: auto !important; margin: 0 !important; transform: translate(-50%, -50%); top: 50% !important; left: 50% !important;
  padding: 16px 18px 14px !important; border-radius: var(--r-md) !important; background: var(--glass-strong) !important; -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line); box-shadow: var(--shadow-2); font-family: var(--font) !important; }
.pnlm-load-box p { margin: 0 0 10px !important; font: 600 13px/1.3 var(--font) !important; color: var(--text) !important; }
.pnlm-lbox { display: none !important; }
.pnlm-lbar { width: 100% !important; height: 3px !important; margin: 0 !important; border: 0 !important; border-radius: 3px; background: rgba(255, 255, 255, .14) !important; overflow: hidden; }
.pnlm-lbar-fill { height: 100% !important; background: var(--accent) !important; border-radius: 3px; transition: width .2s; }
.pnlm-lmsg { margin-top: 8px !important; font: 500 11.5px var(--font) !important; color: var(--text-3) !important; }
.pnlm-info-box { border-radius: var(--r-md) !important; font-family: var(--font) !important; background: var(--glass-strong) !important; }
.pnlm-about-msg { display: none !important; }

/* ---------- overlay layer: arrows, tags, measurements ---------- */
.hs-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; transition: opacity .3s var(--ease); }
.measure-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.hs, .tag, .note { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: auto; cursor: pointer; border: 0; padding: 0; margin: 0; background: none; color: #fff; -webkit-tap-highlight-color: transparent; }
.hs svg { display: block; width: 100%; height: 100%; }
.hs .icon { display: block; width: 46px; height: 46px; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .45)); transition: transform .2s var(--ease), filter .2s; }
.hs:hover .icon, .hs:focus-visible .icon { transform: scale(1.08); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 80%, transparent)); }
.hs:focus-visible, .tag:focus-visible, .note:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 50%; }
.hs-floor { width: 46px; height: 46px; }
.hs-floor .floor-art { width: 100%; height: 100%; transition: filter .2s, opacity .2s; }
.hs-floor.is-floor { width: 100px; height: 100px; }
.hs-floor.is-floor .floor-art { opacity: .94; }
.floor-art .fa-ring { transition: stroke .2s; }
.floor-art .fa-fill { transition: fill .2s; }
.hs-floor:hover .floor-art, .hs-floor:focus-visible .floor-art { filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 90%, transparent)); opacity: 1; }
.hs-floor:hover .fa-fill, .hs-floor:focus-visible .fa-fill { fill: color-mix(in srgb, var(--accent) 55%, transparent); }
.hs-floor.is-floor:focus-visible { outline: none; }
.hs-label .pill { display: inline-flex; align-items: center; gap: 8px; background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--r-md); padding: 4px 14px 4px 4px; white-space: nowrap; font-weight: 600; font-size: 13.5px; box-shadow: var(--shadow-1); transition: border-color .2s, transform .2s var(--ease); }
.hs-label .pill svg { width: 26px; height: 26px; }
.hs-label:hover .pill, .hs-label:focus-visible .pill { border-color: var(--accent); transform: translateY(-1px); }
.hs-tip { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line); border-radius: var(--r-md); padding: 5px; text-align: center; opacity: 0; transition: opacity .18s var(--ease); max-width: 220px; box-shadow: var(--shadow-1); }
.hs-tip.show, .hs-tip.always { opacity: 1; }
.hs-tip.always:not(.show) { padding: 3px; border-radius: var(--r-sm); }
.hs-tip.always:not(.show) img { display: none; }
.hs-tip img { display: block; width: 184px; height: 92px; object-fit: cover; border-radius: calc(var(--r-md) - 5px); margin-bottom: 5px; }
.hs-tip span { display: block; padding: 1px 9px 2px; font-size: 12.5px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.no-labels .hs-tip.always:not(.show), .no-labels .hs-label .pill span, .no-labels .tag-tip { display: none; }
.hs.selected .icon, .hs.selected .pill, .hs.selected .floor-art, .tag.selected .tag-disc, .note.selected, .m-pt.selected { filter: drop-shadow(0 0 0 #ffd84a) drop-shadow(0 0 9px #ffd84a); }
.m-label.selected { outline: 2px solid var(--measure); outline-offset: 2px; }
.hs.dragging, .tag.dragging, .note.dragging, .m-pt.dragging { cursor: grabbing; }
body.editing .hs, body.editing .tag, body.editing .note, body.editing .m-pt { cursor: grab; }
/* tags */
.tag { width: 34px; height: 34px; }
.tag-disc { position: relative; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--tag, var(--accent));
  border: 2.5px solid #fff; box-shadow: 0 3px 12px rgba(0, 0, 0, .45); transition: transform .2s var(--ease); }
.tag-disc::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--tag, var(--accent)); opacity: 0; animation: tag-pulse 3.2s var(--ease) infinite; }
@keyframes tag-pulse { 0% { transform: scale(.7); opacity: .0; } 15% { opacity: .7; } 60%, 100% { transform: scale(1.25); opacity: 0; } }
.tag-disc svg { width: 18px; height: 18px; }
.tag:hover .tag-disc, .tag:focus-visible .tag-disc { transform: scale(1.12); }
.tag-stem { position: absolute; left: 0; top: 0; width: 2px; background: linear-gradient(#fff, rgba(255, 255, 255, .7)); box-shadow: 0 0 4px rgba(0, 0, 0, .5); pointer-events: none; transform-origin: 0 0; margin-left: -1px; border-radius: 1px; }
.tag-anchor { position: absolute; left: 0; top: 0; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(0, 0, 0, .18), 0 0 6px rgba(0, 0, 0, .5); pointer-events: none; }
.tag-card { position: absolute; z-index: 7; left: 0; top: 0; width: min(352px, calc(100% - 24px)); max-height: 72%; overflow: auto; background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); animation: pop-in .26s var(--ease-out); scrollbar-width: thin; }
.tag-card::before { content: ""; display: block; height: 3px; background: var(--tag, var(--accent)); }
.tag-card.centered { left: 50%; top: 50%; transform: translate(-50%, -50%) !important; }
@keyframes pop-in { from { opacity: 0; scale: .96; } to { opacity: 1; scale: 1; } }
.tag-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 6px 16px; }
.tag-ic { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--tag, var(--accent)); flex: 0 0 auto; }
.tag-ic svg { width: 16px; height: 16px; }
.tag-head h3 { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -.01em; flex: 1; overflow-wrap: anywhere; }
.tag-close, .sp-close, .lb-close { display: inline-flex; align-items: center; justify-content: center; border: 0; background: var(--hover); color: var(--text); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; flex: 0 0 auto; transition: background .15s; font-size: 13px; }
.tag-close:hover, .sp-close:hover, .lb-close:hover { background: var(--press); }
.sp-close .ic, .lb-close .ic { width: 16px; height: 16px; }
.tag-desc { margin: 0; padding: 2px 16px 12px; white-space: pre-line; line-height: 1.55; color: var(--text-2); }
.tag-att { padding: 4px 16px 12px; }
.tag-att img, .tag-att video { display: block; width: 100%; border-radius: var(--r-sm); background: #000; }
.tag-att audio { width: 100%; }
.tag-cap { display: block; font-size: 12px; color: var(--text-3); margin-top: 5px; }
.tag-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text); background: var(--hover); padding: 8px 13px; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; transition: background .15s; }
.tag-link:hover { background: var(--press); }
.tag-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px 12px; border-top: 1px solid var(--glass-line); }
.tag-nav button { border: 0; background: var(--hover); color: var(--text); padding: 7px 11px; border-radius: var(--r-sm); cursor: pointer; font-weight: 500; }
.tag-nav button:hover { background: var(--press); }
.tag-count { color: var(--text-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
/* measurements */
.m-line { stroke: var(--measure); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .8)); }
.m-line.temp { stroke-dasharray: 6 5; }
.m-pt { position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--measure); border: 2.5px solid #111; pointer-events: auto; box-shadow: 0 0 0 3px rgba(255, 216, 74, .25), 0 0 8px rgba(0, 0, 0, .6); }
.m-pt.temp { pointer-events: none; }
.m-label { position: absolute; left: 0; top: 0; background: var(--measure); color: #111; font-weight: 700; font-size: 12.5px; padding: 3px 10px; border-radius: var(--r-pill); white-space: nowrap; box-shadow: var(--shadow-1); pointer-events: auto; font-variant-numeric: tabular-nums; }
.m-label.invalid { background: #ff8a7d; }
.measuring, .measuring .pnlm-dragfix { cursor: crosshair !important; }
/* notes (Studio only) */
.note { width: 30px; height: 30px; border-radius: 50% 50% 50% 4px; background: #ffb224; color: #111; font-size: 14px; border: 2px solid #fff; box-shadow: var(--shadow-1); transform-origin: 0 0; }
.note.resolved { background: #46a758; }
/* nadir patch + corner logo */
.nadir { position: absolute; left: 0; top: 0; width: 200px; height: 200px; transform-origin: 0 0; border-radius: 50%; background: rgba(250, 250, 250, .96); overflow: hidden; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.nadir img { width: 74%; height: 74%; object-fit: contain; }
.corner-logo { position: absolute; z-index: 3; right: var(--gap); bottom: 196px; max-width: 128px; max-height: 40px; object-fit: contain; pointer-events: none; opacity: .96;
  background: rgba(255, 255, 255, .94); padding: 7px 10px; border-radius: var(--r-sm); box-shadow: var(--shadow-1); }

/* ---------- top chrome ---------- */
.top-left { position: absolute; z-index: 5; top: calc(var(--gap) + var(--safe-t)); left: var(--gap); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: min(440px, calc(100% - 200px)); }
.title-panel { display: flex; align-items: center; gap: 10px; max-width: 100%; border-radius: var(--r-md); padding: 10px 10px 10px 16px; }
.tp-text { min-width: 0; }
.tp-title { font-weight: 650; font-size: 15px; letter-spacing: -.012em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-address, .tp-presenter { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-address { display: none; }
.tp-presenter:empty { display: none; }
.tp-more { display: inline-flex; align-items: center; justify-content: center; border: 0; background: var(--hover); color: var(--text); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; flex: 0 0 auto; transition: background .15s; }
.tp-more:hover { background: var(--press); }
.tp-more .ic { width: 18px; height: 18px; }
.room-name { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 11px; border-radius: var(--r-sm); font-weight: 600; font-size: 12.5px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; animation: fade-in .4s var(--ease); }
.room-name::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.room-name:empty { display: none; }
@keyframes fade-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.top-right { position: absolute; z-index: 5; top: calc(var(--gap) + var(--safe-t)); right: var(--gap); display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.floors, .versions { display: flex; gap: 2px; padding: 3px; border-radius: var(--r-md); }
.floors { flex-direction: column; }
.floor-btn, .ver-btn { border: 0; background: transparent; color: var(--text-2); padding: 7px 12px; border-radius: calc(var(--r-md) - 3px); cursor: pointer; font-size: 12.5px; font-weight: 600; white-space: nowrap; transition: background .15s, color .15s; }
.floor-btn:hover, .ver-btn:hover { background: var(--hover); color: var(--text); }
.floor-btn.on, .ver-btn.on { background: var(--on); color: var(--on-ink); }
.compass { position: absolute; z-index: 4; right: var(--gap); top: calc(var(--gap) + var(--safe-t)); width: 46px; height: 46px; pointer-events: none; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
.stage:has(.floors:not([hidden])) .compass, .stage:has(.versions:not([hidden])) .compass { top: calc(var(--gap) + var(--safe-t) + 58px); }
.stage:has(.floors:not([hidden])):has(.versions:not([hidden])) .compass { top: calc(var(--gap) + var(--safe-t) + 150px); }
.compass svg { width: 100%; height: 100%; }
.status { position: absolute; z-index: 8; top: calc(var(--gap) + var(--safe-t)); left: 50%; transform: translateX(-50%); background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line); padding: 9px 16px; border-radius: var(--r-md); font-size: 13px; font-weight: 500; max-width: min(560px, calc(100% - 24px)); box-shadow: var(--shadow-2); text-align: center; animation: drop-in .3s var(--ease-out); }
@keyframes drop-in { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- side sheet ---------- */
.side-panel { position: absolute; z-index: 9; top: var(--gap); right: var(--gap); bottom: var(--gap); width: min(384px, calc(100% - 2 * var(--gap))); background: var(--glass-strong);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-line); border-radius: var(--r-xl); display: flex; flex-direction: column; box-shadow: var(--shadow-2); animation: sheet-in .32s var(--ease-out); overflow: hidden; }
@keyframes sheet-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.sp-grab { display: none; }
.sp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 16px 12px 20px; }
.sp-head h2 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.015em; }
.sp-body { padding: 4px 20px 24px; overflow: auto; flex: 1; scrollbar-width: thin; }
.sp-body h4 { margin: 20px 0 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); }
.sp-body p { margin: 0 0 10px; }
.sp-body label { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-2); margin: 12px 0 6px; }
.sp-body input[type=range] { width: 100%; accent-color: var(--accent); }
.sp-body input[type=search], .sp-body input[type=text], .copy-row input { width: 100%; padding: 10px 12px; border: 1px solid var(--glass-line); border-radius: var(--r-sm); background: rgba(255, 255, 255, .06); color: var(--text); font: inherit; outline: none; transition: border-color .15s, background .15s; }
.sp-body input:focus, .copy-row input:focus { border-color: var(--accent); background: rgba(255, 255, 255, .09); }
.sp-body button, .te-btns button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: var(--hover); color: var(--text); padding: 9px 14px; border-radius: var(--r-sm); cursor: pointer; font-weight: 600; font-size: 13px; text-decoration: none; transition: background .15s, transform .15s; }
.sp-body button:hover, .btn:hover { background: var(--press); }
.sp-body button:active, .btn:active { transform: scale(.98); }
.sp-body button.ghost, .btn.ghost { background: transparent; color: var(--text-2); }
.btn-primary, .te-btns .cta { background: var(--accent) !important; color: var(--accent-ink) !important; }
.sp-body .seg { display: inline-flex; gap: 2px; margin: 10px 0 14px; padding: 3px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .06); }
.sp-body .seg button { background: transparent; padding: 7px 12px; }
.sp-body .seg button.on { background: var(--on); color: var(--on-ink); }
.d-address { color: var(--text-2); } .d-text { white-space: pre-line; line-height: 1.6; color: var(--text-2); }
.d-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--glass-line); } .d-k { color: var(--text-3); min-width: 64px; }
.d-row a { color: var(--text); text-decoration: none; font-weight: 500; } .d-row a:hover { text-decoration: underline; }
.bcard { display: flex; align-items: center; gap: 12px; padding: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--glass-line); border-radius: var(--r-md); }
.bcard-photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.bcard-info { display: flex; flex-direction: column; gap: 2px; } .bcard-info span { color: var(--text-2); font-size: 13px; }
.room-list, .tag-list, .search-res, .m-list { list-style: none; padding: 0; margin: 0; }
.room-btn, .tag-row, .search-res button { display: flex !important; align-items: center; justify-content: flex-start !important; gap: 12px; width: 100%; text-align: left; margin-bottom: 4px; padding: 6px !important; background: transparent !important; border-radius: var(--r-md) !important; font-weight: 500 !important; }
.room-btn:hover, .tag-row:hover, .search-res button:hover { background: var(--hover) !important; }
.room-btn img { width: 76px; height: 44px; object-fit: cover; border-radius: var(--r-xs); flex: 0 0 auto; }
.room-btn.on { background: color-mix(in srgb, var(--accent) 22%, transparent) !important; }
.tag-row-text { display: flex; flex-direction: column; min-width: 0; } .tag-row-text small { color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 400; }
.search-res button small { color: var(--text-3); margin-left: auto; font-weight: 400; }
.search-res .muted { padding: 10px 6px; }
.help-list { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; margin: 6px 0 14px; }
.help-list dt { font-weight: 600; } .help-list dd { margin: 0; color: var(--text-2); }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.photo-btn { padding: 0 !important; background: none !important; display: block !important; text-align: left; }
.photo-btn img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); display: block; transition: transform .2s var(--ease); }
.photo-btn:hover img { transform: scale(1.02); }
.photo-btn span { display: block; font-size: 12.5px; color: var(--text-2); padding: 4px 2px; font-weight: 500; }
.lightbox { position: fixed; inset: 0; z-index: 30; background: rgba(5, 6, 8, .94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; animation: fade-in .2s; }
.lightbox img { max-width: 100%; max-height: 85vh; border-radius: var(--r-md); } .lightbox p { color: var(--text-2); }
.lb-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; }
.copy-box { margin-bottom: 14px; } .copy-box label { margin-top: 0 !important; } .copy-row { display: flex; gap: 6px; } .copy-row input { flex: 1; font-size: 12.5px; }
.share-mail, .share-native { display: inline-flex; margin: 6px 8px 0 0; color: var(--text); font-weight: 600; }
.muted { color: var(--text-3); } .small { font-size: 12.5px; }

/* ---------- guided tour ---------- */
.gt-bar { position: absolute; z-index: 6; left: 50%; bottom: calc(186px + var(--safe-b)); transform: translateX(-50%); display: none; align-items: center; gap: 4px; padding: 5px; border-radius: var(--r-pill); animation: fade-in .3s var(--ease); }
body.touring .gt-bar:not([hidden]) { display: flex; }
.gt-bar button { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0; border-radius: 50%; padding: 0; background: transparent; color: var(--text); cursor: pointer; transition: background .15s; }
.gt-bar button:hover { background: var(--hover); }
.gt-bar .gt-play { width: 44px; height: 44px; background: var(--accent); color: var(--accent-ink); }
.gt-bar .gt-play:hover { background: var(--accent); filter: brightness(1.08); }
.gt-play .ic-pause, body.gt-active .gt-play .ic-play { display: none; }
body.gt-active .gt-play .ic-pause { display: block; }
.gt-meta { display: flex; flex-direction: column; gap: 5px; padding: 0 10px; min-width: 96px; }
.gt-label { font-size: 12px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.gt-progress { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.gt-progress i { display: block; height: 100%; width: 0; background: var(--text); border-radius: 3px; }
.gt-stop { color: var(--text-2) !important; }
.tour-end { position: absolute; z-index: 10; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: var(--r-xl); padding: 26px 26px 22px; text-align: center; width: min(400px, calc(100% - 32px)); background: var(--glass-strong); box-shadow: var(--shadow-2); animation: pop-in .3s var(--ease-out); }
.tour-end .eyebrow { justify-content: center; }
.tour-end.small { width: 300px; padding: 14px 16px; } .tour-end.small h3 { font-size: 14px; } .tour-end.small .eyebrow { display: none; }
.tour-end h3 { margin: 0 0 18px; font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.te-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ---------- highlight reel ---------- */
.reel-wrap { position: absolute; z-index: 4; left: 0; right: 0; bottom: calc(76px + var(--safe-b)); transition: transform .45s var(--ease-out), opacity .3s; }
.reel-toggle { position: absolute; right: var(--gap); top: -40px; display: inline-flex; align-items: center; justify-content: center; border: 0; color: var(--text); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; padding: 0; transition: transform .3s var(--ease); }
.reel-toggle .ic { width: 18px; height: 18px; }
.reel-wrap.collapsed { transform: translateY(calc(100% + 24px)); }
.reel-wrap.collapsed .reel-toggle { transform: translateY(-6px) rotate(180deg); }
.reel { display: flex; gap: 10px; overflow-x: auto; padding: 10px var(--gap) 12px; scrollbar-width: none; scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--gap), #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, transparent, #000 var(--gap), #000 calc(100% - 40px), transparent); }
.reel::-webkit-scrollbar { display: none; }
.reel-btn { position: relative; flex: 0 0 auto; width: 148px; height: 86px; border: 0; border-radius: var(--r-md); padding: 0; background: #1a1b20; color: #fff; cursor: pointer; overflow: hidden; text-align: left; scroll-snap-align: start;
  box-shadow: var(--shadow-1); transition: transform .25s var(--ease), box-shadow .25s; }
.reel-btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); pointer-events: none; transition: box-shadow .25s; }
.reel-btn:hover { transform: translateY(-3px); }
.reel-btn .crop { position: absolute; inset: 0; width: 100%; height: 100%; background-repeat: repeat-x; background-color: #111; transition: transform .6s var(--ease); }
.reel-btn:hover .crop { transform: scale(1.06); }
.reel-btn span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 7px; font-size: 12px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(to top, rgba(0, 0, 0, .78), transparent); }
.reel-btn.active::after { box-shadow: inset 0 0 0 2.5px var(--accent), inset 0 0 0 4px rgba(0, 0, 0, .35); }
.reel-btn.dragging { opacity: .4; } .reel-btn.drop-target::after { box-shadow: inset 0 0 0 2.5px var(--measure); }
.reel-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- bottom dock ---------- */
.toolbar { position: absolute; z-index: 6; left: var(--gap); right: var(--gap); bottom: calc(var(--gap) + var(--safe-b)); display: flex; align-items: center; justify-content: center; gap: 10px; pointer-events: none; }
.tb-group { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: var(--r-lg); pointer-events: auto; }
.tb-group.views { margin-right: auto; }
.tb-group.right { margin-left: auto; }
.tb-group.main { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.tb-group.main::-webkit-scrollbar { display: none; }
.tb-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; border: 0; background: transparent; color: var(--text-2); padding: 0 13px; border-radius: calc(var(--r-lg) - 4px); cursor: pointer; font-weight: 600; font-size: 13px; letter-spacing: -.005em; white-space: nowrap; transition: background .15s, color .15s; }
.tb-btn .ic { width: 19px; height: 19px; }
.tb-btn:hover { background: var(--hover); color: var(--text); }
.tb-btn[aria-pressed=true], .tb-btn[aria-expanded=true] { background: var(--on); color: var(--on-ink); }
.tb-btn.tb-tour[aria-pressed=true] { background: var(--accent); color: var(--accent-ink); }
.tb-btn.icon { width: 40px; padding: 0; justify-content: center; }
.tb-group.views:not(:has(> :not([hidden]))) { display: none; }
.more { position: relative; }
.more-menu { position: absolute; right: -4px; bottom: calc(100% + 12px); min-width: 228px; border-radius: var(--r-lg); padding: 6px; background: var(--glass-strong); box-shadow: var(--shadow-2); animation: pop-in .2s var(--ease-out); transform-origin: bottom right; }
.more-menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; color: var(--text); padding: 9px 10px; border-radius: calc(var(--r-lg) - 6px); cursor: pointer; font-weight: 500; font-size: 13px; }
.more-menu button .ic { width: 18px; height: 18px; color: var(--text-2); }
.more-menu button:hover { background: var(--hover); }
.more-menu button[aria-pressed=true]::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- minimap ---------- */
.minimap { position: absolute; z-index: 3; left: var(--gap); bottom: calc(196px + var(--safe-b)); width: min(228px, 36vw); background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line); border-radius: var(--r-lg); padding: 7px; box-shadow: var(--shadow-1); animation: fade-in .3s; }
.minimap-stage { position: relative; }
.minimap-stage img { display: block; width: 100%; height: auto; border-radius: 11px; background: #fff; }
.map-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2px solid #fff; background: #3a3d46; cursor: pointer; padding: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); z-index: 2; transition: transform .2s var(--ease); }
.map-dot:hover { transform: scale(1.35); }
.map-dot.here { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent); }
.radar { position: absolute; width: 90px; height: 90px; pointer-events: none; z-index: 1; }
.radar path { fill: color-mix(in srgb, var(--accent) 38%, transparent); stroke: var(--accent); }
.map-toggle { position: absolute; z-index: 4; left: var(--gap); bottom: calc(196px + var(--safe-b)); border: 1px solid var(--glass-line); border-radius: var(--r-sm); background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); color: var(--text); padding: 7px 14px; cursor: pointer; font-weight: 600; font-size: 12.5px; display: none; }

/* ---------- floor plan / dollhouse views ---------- */
.plan-views { position: absolute; inset: 0; z-index: 3; background: radial-gradient(120% 90% at 50% 40%, #23252c 0%, #0e0f12 70%); display: flex; align-items: center; justify-content: center; overflow: hidden; animation: fade-in .35s; }
.pv-fit { width: min(90%, calc(100% - 40px)); height: calc(100% - 200px); display: flex; align-items: center; justify-content: center; }
.pv-stage { position: relative; max-width: 100%; max-height: 100%; }
.pv-stage.measuring { cursor: crosshair; }
.pv-plan { display: block; max-width: 100%; max-height: calc(100vh - 220px); border-radius: var(--r-md); box-shadow: var(--shadow-2); background: #fff; }
.pv-measures { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pm-line { stroke: var(--measure); stroke-width: 3; vector-effect: non-scaling-stroke; } .pm-line.temp { stroke-dasharray: 6 5; }
.pm-label { position: absolute; transform: translate(-50%, -50%); background: var(--measure); color: #111; font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: var(--r-pill); pointer-events: none; white-space: nowrap; }
.pv-pin { position: absolute; transform: translate(-50%, -100%); border: 0; background: none; color: #fff; cursor: pointer; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; z-index: 2; }
.pv-dot { width: 18px; height: 18px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #3a3d46; border: 2.5px solid #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .45); transition: transform .2s var(--ease); }
.pv-pin:hover .pv-dot { transform: rotate(-45deg) scale(1.2); }
.pv-pin.here .pv-dot { background: var(--accent); }
.pv-label { font-size: 11.5px; font-weight: 600; background: var(--glass-strong); padding: 3px 8px; border-radius: 7px; white-space: nowrap; order: -1; box-shadow: var(--shadow-1); }
.no-labels .pv-label { display: none; }
.pv-radar { width: 110px; height: 110px; }
.pv-tools { position: absolute; left: 50%; bottom: calc(196px + var(--safe-b)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pv-floors { display: flex; gap: 2px; background: var(--glass-strong); border: 1px solid var(--glass-line); padding: 3px; border-radius: var(--r-md); }
.pv-floor { border: 0; background: transparent; color: var(--text-2); padding: 7px 13px; border-radius: calc(var(--r-md) - 3px); cursor: pointer; font-weight: 600; font-size: 12.5px; }
.pv-floor.on { background: var(--on); color: var(--on-ink); }
.pv-hint { font-size: 12px; font-weight: 500; color: var(--text-2); background: var(--glass); border: 1px solid var(--glass-line); padding: 5px 12px; border-radius: var(--r-sm); }
.pv-empty { color: var(--text-2); text-align: center; padding: 20px; }

/* ---------- start screen ---------- */
.cover { position: absolute; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: flex-start; padding: clamp(24px, 6vw, 72px); overflow: hidden; }
.cover-bg { position: absolute; inset: -40px; background: #1a1b20 center / cover no-repeat; filter: blur(6px) saturate(1.1) brightness(.78); transform: scale(1.06); animation: ken 26s var(--ease) infinite alternate; }
@keyframes ken { from { transform: scale(1.06) translate3d(0, 0, 0); } to { transform: scale(1.16) translate3d(-1.5%, -1%, 0); } }
.cover.live .cover-bg { opacity: 0; transition: opacity 1.4s var(--ease); }
.cover-shade { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(6, 7, 10, .82) 0%, rgba(6, 7, 10, .55) 38%, rgba(6, 7, 10, .05) 75%), linear-gradient(to top, rgba(6, 7, 10, .6), transparent 45%); }
.cover-card { position: relative; max-width: min(560px, 100%); animation: rise .9s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.cover-logo { display: block; max-width: 168px; max-height: 44px; object-fit: contain; margin-bottom: 26px; background: rgba(255, 255, 255, .95); padding: 8px 12px; border-radius: var(--r-sm); box-shadow: var(--shadow-1); }
.cover-card h1 { margin: 0 0 8px; font-size: clamp(30px, 5vw, 54px); font-weight: 700; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.cover-sub { margin: 0 0 28px; color: var(--text-2); font-size: 16px; }
.cover-sub:empty { display: none; }
.cover-go { display: inline-flex; align-items: center; gap: 12px; border: 0; cursor: pointer; font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; padding: 8px 24px 8px 8px; border-radius: var(--r-pill); background: #fff; color: #0c0d10;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35); transition: transform .25s var(--ease), box-shadow .25s; }
.cover-go:hover { transform: translateY(-2px); box-shadow: 0 16px 50px rgba(0, 0, 0, .45); }
.cover-go:active { transform: translateY(0) scale(.99); }
.cover-go .play { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); position: relative; }
.cover-go .play::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--accent); opacity: .5; animation: tag-pulse 2.6s var(--ease) infinite; }
.cover-go .play .ic { width: 18px; height: 18px; margin-left: 2px; }
.cover-meta { margin: 20px 0 0; font-size: 13px; color: var(--text-3); font-weight: 500; }
.tour-error { position: absolute; inset: 0; z-index: 25; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; background: var(--bg); color: var(--text-2); font-size: 15px; }

/* ---------- walking between rooms: the outgoing frame keeps moving forward while it fades ---------- */
.pnlm-fade-img { transform-origin: 50% 50%; }
.walking .pnlm-fade-img { animation: walk-forward .7s cubic-bezier(.35, 0, .25, 1) forwards; }
@keyframes walk-forward { from { transform: scale(1); filter: blur(0); } to { transform: scale(1.38); filter: blur(2px); } }
.walking .hs-layer { opacity: 0; transition: opacity .12s; }
/* floor cursor */
.reticle { position: absolute; left: 0; top: 0; width: 100px; height: 100px; transform-origin: 0 0; pointer-events: none; opacity: .5; display: none; transition: opacity .15s; }
.reticle svg { width: 100%; height: 100%; display: block; }
.reticle.go { opacity: 1; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 90%, transparent)); }
.can-walk .pnlm-dragfix, .can-walk .pnlm-ui { cursor: pointer !important; }
/* phone-camera style zoom */
.zoom-pill { display: inline-flex; gap: 2px; background: rgba(255, 255, 255, .07); border-radius: var(--r-pill); padding: 3px; margin-right: 2px; align-self: center; }
.zoom-pill button { border: 0; background: transparent; color: var(--text-2); font-weight: 650; font-size: 11.5px; padding: 6px 9px; border-radius: var(--r-pill); cursor: pointer; min-width: 38px; font-variant-numeric: tabular-nums; transition: background .15s, color .15s; }
.zoom-pill button:hover { color: var(--text); }
.zoom-pill button[aria-pressed=true] { background: var(--measure); color: #111; }

/* ---------- medium screens: tools keep icons, secondary labels drop ---------- */
@media (max-width: 1180px) {
  .tb-group.main .tb-btn:not(.tb-tour) span { display: none; }
  .tb-group.main .tb-btn:not(.tb-tour) { width: 40px; padding: 0; justify-content: center; }
}
@media (max-width: 960px) {
  .tb-group.views .tb-btn span { display: none; }
  .tb-group.views .tb-btn { width: 40px; padding: 0; justify-content: center; }
}

/* ---------- phones ---------- */
@media (max-width: 760px) {
  :root { --gap: 10px; }
  .top-left { max-width: calc(100% - 76px); }
  .title-panel { padding: 8px 8px 8px 12px; border-radius: 12px; }
  .tp-title { font-size: 14px; }
  .toolbar { flex-wrap: wrap; gap: 8px; justify-content: space-between; }
  .tb-group { border-radius: 15px; }
  .tb-btn { border-radius: 11px; }
  .room-name { border-radius: var(--r-sm); }
  .tb-group.views, .tb-group.right { margin: 0; }
  .tb-group.main { order: 3; width: 100%; justify-content: space-around; }
  .tb-group.main .tb-btn:not(.tb-tour) span, .tb-group.main .tb-btn span { display: block; }
  .tb-group.main .tb-btn { flex-direction: column; height: 50px; width: auto !important; min-width: 54px; gap: 3px; padding: 0 6px !important; font-size: 10.5px; font-weight: 600; justify-content: center; }
  .tb-btn { height: 38px; }
  .tb-btn.icon { width: 38px; }
  #tb-zoom-in, #tb-zoom-out { display: none !important; }
  .zoom-pill button { min-width: 34px; padding: 6px 7px; }
  .reel-wrap { bottom: calc(126px + var(--safe-b)); }
  .reel-btn { width: 112px; height: 66px; border-radius: 12px; }
  .reel-btn span { font-size: 11px; padding: 14px 8px 6px; }
  .minimap { bottom: calc(232px + var(--safe-b)); width: 46vw; }
  .map-toggle { display: block; bottom: calc(232px + var(--safe-b)); }
  .corner-logo { bottom: calc(232px + var(--safe-b)); max-width: 96px; }
  .gt-bar, .pv-tools { bottom: calc(232px + var(--safe-b)); }
  .reel-toggle { top: -38px; width: 32px; height: 32px; }
  .side-panel { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 78%; border-radius: 22px 22px 0 0; border-bottom: 0; animation: sheet-up .36s var(--ease-out); padding-bottom: var(--safe-b); }
  @keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .sp-grab { display: block; width: 38px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .25); margin: 8px auto 0; }
  .sp-head { padding: 10px 14px 8px 18px; }
  .compass { width: 40px; height: 40px; }
    .cover { align-items: flex-end; padding: 24px 20px calc(28px + var(--safe-b)); }
  .cover-shade { background: linear-gradient(to top, rgba(6, 7, 10, .9) 0%, rgba(6, 7, 10, .55) 45%, rgba(6, 7, 10, .15) 100%); }
  .cover-card h1 { font-size: 34px; }
  .cover-logo { margin-bottom: 18px; }
  .status { top: auto; bottom: calc(238px + var(--safe-b)); border-radius: var(--r-md); }
}
@media (max-width: 380px) { .zoom-pill { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .walking .pnlm-fade-img { animation: none; }
}

/* While the start screen shows, the tour chrome waits; it fades in once the visitor presses Explore. */
.toolbar, .reel-wrap, .top-left, .top-right, .minimap, .map-toggle, .compass, .corner-logo, .hs-layer { transition: opacity .6s var(--ease); }
body.covered .toolbar, body.covered .reel-wrap, body.covered .top-left, body.covered .top-right, body.covered .minimap, body.covered .map-toggle,
body.covered .compass, body.covered .corner-logo, body.covered .hs-layer, body.covered .pnlm-load-box { opacity: 0 !important; pointer-events: none !important; }

/* Short screens (a tour embedded in a page, landscape phones): the map button shows, and when the reel is
   tucked away the minimap, map button, logo and guided-tour bar drop down to sit just above the dock. */
body.compact .map-toggle { display: block; }
.stage:has(.reel-wrap.collapsed) .minimap, .stage:has(.reel-wrap.collapsed) .map-toggle, .stage:has(.reel-wrap.collapsed) .corner-logo,
.stage:has(.reel-wrap.collapsed) .gt-bar, .stage:has(.reel-wrap.collapsed) .pv-tools { bottom: calc(76px + var(--safe-b)); }
@media (max-width: 760px) {
  .stage:has(.reel-wrap.collapsed) .minimap, .stage:has(.reel-wrap.collapsed) .map-toggle, .stage:has(.reel-wrap.collapsed) .corner-logo,
  .stage:has(.reel-wrap.collapsed) .gt-bar, .stage:has(.reel-wrap.collapsed) .pv-tools { bottom: calc(138px + var(--safe-b)); }
  .stage:has(.reel-wrap.collapsed) .status { bottom: calc(146px + var(--safe-b)); }
}
body.compact .minimap { width: min(200px, 30vw); }
.reel { transition: opacity .35s var(--ease); }
.reel-wrap.collapsed .reel, .reel-wrap.collapsed .timeline { opacity: 0; pointer-events: none; }

/* Phones, after the 25 Oct clean-up (no About, Share, Measure or zoom switch): the whole dock fits on one row,
   so the reel, minimap and guided-tour bar move down with it. */
@media (max-width: 760px) {
  .toolbar { flex-wrap: nowrap; gap: 6px; }
  .tb-group.main { order: 0; width: auto; flex: 1 1 auto; min-width: 0; justify-content: center; }
  .tb-group.main .tb-btn { height: 38px; flex-direction: row; min-width: 0; gap: 6px; padding: 0 10px !important; font-size: 12px; }
  .reel-wrap { bottom: calc(66px + var(--safe-b)); }
  .minimap, .map-toggle, .corner-logo, .gt-bar, .pv-tools { bottom: calc(172px + var(--safe-b)); }
  .status { bottom: calc(178px + var(--safe-b)); }
  .stage:has(.reel-wrap.collapsed) .minimap, .stage:has(.reel-wrap.collapsed) .map-toggle, .stage:has(.reel-wrap.collapsed) .corner-logo,
  .stage:has(.reel-wrap.collapsed) .gt-bar, .stage:has(.reel-wrap.collapsed) .pv-tools { bottom: calc(70px + var(--safe-b)); }
  .stage:has(.reel-wrap.collapsed) .status { bottom: calc(76px + var(--safe-b)); }
}

/* Corners follow their box (Bhav, 25 Oct 2026): anything sitting inside a rounded box uses the box's radius minus
   the gap between them, so the curves run parallel, like the floor plan inside the minimap (18 - 7 = 11). Labels such
   as the room name are rounded boxes, not pills. */

/* Tall floor plans (Bhav, 26 Oct 2026: the way in sits at the bottom, so most plans are taller than wide). The plan fits
   in the space between the title and the photo strip, never under the strip or the dock. */
.pv-fit { position: absolute; left: 50%; transform: translateX(-50%); top: calc(92px + var(--safe-t)); bottom: calc(206px + var(--safe-b)); height: auto; }
.pv-plan { max-height: calc(100vh - 298px - var(--safe-t) - var(--safe-b)); }
.stage:has(.reel-wrap.collapsed) .pv-fit { bottom: calc(92px + var(--safe-b)); }
.stage:has(.reel-wrap.collapsed) .pv-plan { max-height: calc(100vh - 184px - var(--safe-t) - var(--safe-b)); }
@media (max-width: 760px) {
  .pv-fit { top: calc(110px + var(--safe-t)); bottom: calc(150px + var(--safe-b)); width: calc(100% - 24px); }
  .pv-plan { max-height: calc(100vh - 260px - var(--safe-t) - var(--safe-b)); }
  .stage:has(.reel-wrap.collapsed) .pv-fit { bottom: calc(76px + var(--safe-b)); }
  .stage:has(.reel-wrap.collapsed) .pv-plan { max-height: calc(100vh - 186px - var(--safe-t) - var(--safe-b)); }
}
