/* scan-model.css — Part V (2026-10-20): the rebuilt 3D room on the scan
 * record (scan-model.js) — the Rebuilt room / Raw scan switch, the label
 * hotspots, the facts + honesty lines — and the shared viewer's two new
 * optional pieces (Dimensions toggle, note line). Tokens only (--ds-*),
 * so Light / Navy / System read right. No gold: neither is the page's
 * main action or key number. Load after dw4-media.css. */

/* ---- the switch bar above the inline view ---- */
body.skin-billdr #app .sm-bar { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin: 0 0 8px; }
body.skin-billdr #app .sm-seg { display: inline-flex; border: 1px solid var(--ds-line-strong); border-radius: var(--ds-r-pill); overflow: hidden; background: var(--ds-card); }
body.skin-billdr #app .sm-segbtn {
  border: 0; background: transparent; color: var(--ds-ink); font: inherit; font-size: var(--ds-fs-sm); font-weight: 600;
  padding: 5px 14px; min-height: 30px; cursor: pointer;
}
body.skin-billdr #app .sm-segbtn + .sm-segbtn { border-left: 1px solid var(--ds-line-strong); }
body.skin-billdr #app .sm-segbtn.on { background: var(--ds-navy); color: var(--ds-card); }
body.skin-billdr #app .sm-segbtn:focus-visible { outline: none; box-shadow: var(--ds-focus); }
body.skin-billdr #app .sm-dims { display: inline-flex; align-items: center; gap: 6px; font-size: var(--ds-fs-sm); color: var(--ds-ink); }
body.skin-billdr #app .sm-dims input { margin: 0; accent-color: var(--ds-navy); }

/* ---- the lines under the model ---- */
body.skin-billdr #app .sm-facts { margin: 6px 0 0; font-size: var(--ds-fs-sm); color: var(--ds-ink); }
body.skin-billdr #app .sm-honest { margin: 4px 0 0; font-size: var(--ds-fs-xs); color: var(--ds-muted); line-height: 1.5; max-width: 72ch; }
body.skin-billdr #app .dw4md-twin-raw {
  margin: 0 0 8px; padding: 8px 12px; border-left: 3px solid var(--ds-line-strong); background: var(--ds-fill);
  font-size: var(--ds-fs-sm); color: var(--ds-ink); border-radius: 0 var(--ds-r-sm) var(--ds-r-sm) 0;
}

/* ---- label hotspots (inline and full screen) ---- */
.sm-hs {
  display: block; width: max-content; max-width: 220px; padding: 3px 8px; border: 1px solid rgba(11, 34, 53, .25);
  border-radius: 6px; background: rgba(255, 255, 255, .92); color: #0b2235; font: 600 11.5px/1.3 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  white-space: pre-line; text-align: center; pointer-events: none; transform: translateY(-50%);
  box-shadow: 0 1px 3px rgba(11, 34, 53, .15);
}
.sm-hs.sm-hs-room { max-width: 280px; font-size: 12.5px; padding: 5px 10px; background: rgba(11, 34, 53, .88); color: #fff; border-color: transparent; }
.sm-hs.sm-hs-section { font-weight: 500; font-style: italic; }
.sm-hs[data-visible="false"] { opacity: .35; }
.sm-nodims .sm-hs, .rk-model-nodims .sm-hs { display: none; }

/* ---- the shared viewer's optional pieces (glb-viewer.js) ---- */
.rk-model-dims { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: inherit; cursor: pointer; }
.rk-model-dims input { margin: 0; }
.rk-model-note { margin: 0; padding: 8px 16px 12px; font-size: 12.5px; line-height: 1.5; opacity: .85; max-width: 90ch; }

@media (max-width: 700px) {
  .sm-hs { max-width: 150px; font-size: 10.5px; }
  .sm-hs.sm-hs-room { font-size: 11.5px; }
}
