/* T8 viewer: one stage for the model and plans, one panel for every design choice. */
:root {
  color-scheme: light;
  --bg: #f2efe8;
  --stage-hi: #fbfaf6;
  --stage-lo: #e8e4da;
  --panel: #fcfbf8;
  --ink: #1f2a26;
  --ink-2: #44514b;
  --muted: #7d847f;
  --line: #e6e1d7;
  --line-strong: #d9d3c7;
  --track: #eeeae1;
  --accent: #b5452b;
  --accent-ink: #8f3420;
  --accent-soft: #f7e7df;
  --glass: rgba(252, 251, 248, .86);
  --float-shadow: 0 0 0 1px rgba(31, 42, 38, .06), 0 10px 28px -8px rgba(31, 42, 38, .18), 0 2px 6px rgba(31, 42, 38, .06);
  --panel-w: 392px;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "Noto Serif CJK SC", "SimSun", serif;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--ink); overflow: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.icon { flex: none; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.app {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--panel-w);
  height: 100vh;
  height: 100dvh;
}
.app.is-immersive { grid-template-columns: minmax(0, 1fr) 0; }
.app.is-immersive .panel { display: none; }

.stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: radial-gradient(120% 95% at 50% 40%, var(--stage-hi) 0%, #f3f0e9 52%, var(--stage-lo) 100%);
  isolation: isolate;
}
.model-canvas, .model-canvas model-viewer { position: absolute; inset: 0; width: 100%; height: 100%; }
.model-canvas model-viewer {
  display: block;
  background: transparent;
  --poster-color: transparent;
  --progress-bar-height: 0;
  --progress-mask: transparent;
  outline: none;
}
.model-canvas model-viewer::part(default-progress-bar) { display: none; }
.app[data-display="plan"] .model-canvas { visibility: hidden; }
.room-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3px 8px 4px;
  border-radius: 7px;
  background: rgba(252, 251, 248, .9);
  box-shadow: 0 0 0 .5px rgba(31, 42, 38, .12), 0 3px 10px -4px rgba(31, 42, 38, .3);
  color: var(--ink);
  line-height: 1.25;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity .2s ease;
  /* Hidden floors still occlude model-viewer's hotspot raycast; labels stay visible. */
  --min-hotspot-opacity: 1;
}
.room-label b { font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.room-label span { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.room-label.is-outdoor { background: rgba(252, 251, 248, .72); }
.room-label.is-crowded { opacity: 0 !important; }

/* ---------- Plan view ---------- */
.plan-view {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.plan-view.is-dragging { cursor: grabbing; }
.plan-view img {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  transform-origin: 0 0;
  border-radius: 3px;
  background: #faf8f3;
  box-shadow: 0 0 0 1px rgba(31, 42, 38, .05), 0 22px 48px -18px rgba(31, 42, 38, .28), 0 2px 6px rgba(31, 42, 38, .05);
  -webkit-user-drag: none;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}
.plan-view img.is-ready { opacity: 1; }

/* ---------- Floating stage controls ---------- */
.levels, .view-switch, .tools {
  position: absolute;
  z-index: 3;
  display: flex;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: var(--float-shadow);
}
.levels {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  gap: 2px;
  padding: 5px;
  border-radius: 16px;
}
.level {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.level[data-section="Exterior"] { position: relative; margin-bottom: 7px; }
.level[data-section="Exterior"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -5px;
  height: 1px;
  background: var(--line-strong);
}
.level-name { font-family: var(--serif); font-size: 16px; font-weight: 600; letter-spacing: .06em; line-height: 1.2; }
.level-elev { margin-top: 2px; font-size: 10.5px; letter-spacing: .02em; color: var(--muted); font-variant-numeric: tabular-nums; }
.level[aria-pressed="true"] { background: var(--ink); color: #fff; }
.level[aria-pressed="true"] .level-elev { color: rgba(255, 255, 255, .6); }
.level:disabled { cursor: default; opacity: .5; }

.view-switch {
  top: 20px;
  right: 20px;
  gap: 2px;
  padding: 4px;
  border-radius: 13px;
  transition: opacity .2s ease;
}
.view-switch button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px 0 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-2);
  font-size: 13.5px;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.view-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.app[data-section="Exterior"] .view-switch { opacity: 0; pointer-events: none; visibility: hidden; }

.tools {
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 14px;
  white-space: nowrap;
}
.tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, opacity .15s ease;
}
.tool-icon { width: 36px; padding: 0; justify-content: center; }
.tool:disabled { opacity: .35; cursor: default; }
.tool-sep { flex: none; width: 1px; height: 20px; margin: 0 3px; background: var(--line-strong); }
.switch {
  position: relative;
  flex: none;
  width: 30px;
  height: 18px;
  border-radius: 9px;
  background: #cdc8bd;
  transition: background-color .2s ease;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .22);
  transition: transform .2s ease;
}
.tool-switch[aria-checked="true"] .switch { background: var(--ink); }
.tool-switch[aria-checked="true"] .switch::after { transform: translateX(12px); }
.app.is-immersive #model-expand { background: var(--ink); color: #fff; }

.stage-hint {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 74px;
  margin: 0;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity .4s ease;
}
.stage-hint.is-leaving { opacity: 0; }
.toast.is-visible ~ .stage-hint, .stage-hint:has(~ .toast.is-visible) { opacity: 0; }
.hold-badge {
  position: absolute;
  z-index: 5;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 8px 15px 8px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 10px 24px -8px rgba(143, 52, 32, .5);
}

.toast {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 84px;
  max-width: calc(100% - 40px);
  margin: 0;
  padding: 9px 15px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.has-action.is-visible { pointer-events: auto; }
.toast-action { margin-left: 14px; padding: 0; border: 0; background: transparent; color: #f2c6b5; font-size: 13px; font-weight: 600; cursor: pointer; }

/* ---------- Loading card ---------- */
.loader {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 84px;
  width: min(330px, calc(100% - 40px));
  padding: 14px 16px 13px;
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--float-shadow);
  transform: translateX(-50%);
}
.app[data-display="3d"] .loader, .app[data-state="error"] .loader { top: 50%; bottom: auto; transform: translate(-50%, -50%); }
.loader-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.loader-title { margin: 0; font-size: 14px; font-weight: 600; }
.loader-pct { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.loader progress {
  display: block;
  width: 100%;
  height: 3px;
  margin: 10px 0 8px;
  border: 0;
  border-radius: 2px;
  background: var(--track);
  overflow: hidden;
  -webkit-appearance: none;
  appearance: none;
}
.loader progress::-webkit-progress-bar { background: var(--track); }
.loader progress::-webkit-progress-value { background: var(--ink); transition: width .3s ease; }
.loader progress::-moz-progress-bar { background: var(--ink); }
.loader progress:indeterminate { background: linear-gradient(90deg, var(--track) 0 35%, var(--ink-2) 50%, var(--track) 65% 100%) 0 0 / 300% 100%; animation: indeterminate 1.4s linear infinite; }
.loader progress:indeterminate::-webkit-progress-bar { background: transparent; }
.loader progress:indeterminate::-moz-progress-bar { background: transparent; }
@keyframes indeterminate { from { background-position: 100% 0; } to { background-position: 0 0; } }
.loader-detail { margin: 0; font-size: 12.5px; color: var(--muted); }
.model-transfer-metrics { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; }
.model-transfer-value { color: var(--ink-2); }
.model-transfer-label:not(:first-child) { margin-left: 10px; }
.model-transfer-divider { color: var(--muted); }
.loader-button {
  margin-top: 12px;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}
.app[data-state="error"] .loader-title { color: var(--accent-ink); }
.app[data-state="error"] .loader progress { display: none; }

/* ---------- Panel ---------- */
.panel {
  position: relative;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-left: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.panel-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 24px 24px 16px;
  background: rgba(252, 251, 248, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.sheet-handle { display: none; }
.title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.eyebrow { margin: 0; font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.level-title { margin: 6px 0 3px; font-family: var(--serif); font-size: 32px; font-weight: 600; letter-spacing: .08em; line-height: 1.15; }
.level-meta { margin: 0; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.share {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  margin-top: 2px;
  padding: 0 12px 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.changes { margin-top: 16px; }
.changes-none { display: flex; align-items: center; gap: 8px; margin: 0; min-height: 30px; font-size: 13px; color: var(--ink-2); }
.changes-none .legend { margin-left: auto; font-size: 12px; color: var(--muted); }
.dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.changes[data-count="0"] .changes-some, .changes[data-count="0"] .change-list { display: none; }
.changes:not([data-count="0"]) .changes-none { display: none; }
.changes-some { display: flex; align-items: center; gap: 6px; }
.changes-count { margin: 0 auto 0 0; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.chip-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 12.5px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: background-color .12s ease, color .12s ease, border-color .12s ease;
}
.chip-button.is-holding { background: var(--accent); border-color: var(--accent); color: #fff; }
.change-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.change-list button {
  max-width: 100%;
  padding: 4px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}
.change-list b { font-weight: 600; }

.panel-body { display: flex; flex-direction: column; padding: 0 24px 8px; }
.group { padding: 22px 0 6px; border-top: 1px solid var(--line); }
.group.is-first { border-top: 0; }
.group-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--muted);
}
.group-meta { font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.group-foot { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

.opt { margin: 0 0 18px; border-radius: 10px; }
.opt.is-flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 30% { box-shadow: 0 0 0 8px var(--accent-soft); background: var(--accent-soft); } 100% { box-shadow: 0 0 0 8px transparent; background: transparent; } }
.opt-head { display: flex; align-items: center; gap: 4px; min-height: 22px; margin-bottom: 8px; }
.opt-label { font-size: 14px; font-weight: 500; color: var(--ink); }
.opt.is-changed .opt-label::after {
  content: "已调整";
  margin-left: 8px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 500;
  vertical-align: 1px;
}
.opt-value { margin-left: auto; font-size: 12.5px; color: var(--ink-2); }
.opt-info {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.opt-info[aria-expanded="true"] { color: var(--ink); background: var(--track); }
.opt-help, .opt-desc { text-wrap: pretty; margin: 0 0 10px; font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }
.opt-help { padding: 9px 12px; border-radius: 8px; background: #f4f1ea; }
.opt-desc { margin: 10px 0 0; color: var(--muted); }

.seg {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border-radius: 11px;
  background: var(--track);
}
.seg button {
  position: relative;
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.seg button.is-default::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 2px;
}
.seg button[aria-checked="true"], .seg button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(31, 42, 38, .12), 0 0 0 .5px rgba(31, 42, 38, .08);
}

.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-size: 12.5px;
  cursor: pointer;
}
.swatch-chip {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: repeat(3, 1fr);
  width: 100%;
  aspect-ratio: 1 / 1.08;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(31, 42, 38, .08);
  transition: box-shadow .18s ease, transform .18s ease;
}
.swatch-chip i:first-child { grid-row: 1 / -1; }
.swatch[aria-checked="true"] { color: var(--ink); font-weight: 600; }
.swatch[aria-checked="true"] .swatch-chip { box-shadow: 0 0 0 2px var(--panel), 0 0 0 3.5px var(--ink); }
.swatch.is-default .swatch-name::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 2px;
}

.rooms { display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; margin: 0; padding: 0; list-style: none; }
.rooms li { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line-strong); font-size: 13px; }
.rooms em { margin-left: 6px; padding: 0 4px; border-radius: 4px; background: var(--track); color: var(--muted); font-size: 11px; font-style: normal; }
.rooms .num { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rooms small { font-size: 11px; color: var(--muted); }

.panel-foot { margin-top: auto; padding: 18px 24px 22px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.75; color: var(--muted); }
.panel-foot p { margin: 0 0 8px; text-wrap: pretty; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-links a { display: inline-flex; align-items: center; gap: 2px; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.foot-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-bottom: 0 !important; }
.noscript { position: fixed; inset: auto 16px 16px; padding: 12px 16px; border-radius: 12px; background: var(--ink); color: #fff; }

@media (hover: hover) {
  .level:not([aria-pressed="true"]):not(:disabled):hover,
  .view-switch button:not([aria-pressed="true"]):hover,
  .tool:not(:disabled):hover { background: rgba(31, 42, 38, .07); color: var(--ink); }
  .seg button:not([aria-checked="true"]):not([aria-pressed="true"]):hover { background: rgba(255, 255, 255, .55); color: var(--ink); }
  .swatch:hover .swatch-chip { transform: translateY(-1px); }
  .share:hover, .chip-button:not(.is-holding):hover { border-color: #bfb8aa; }
  .change-list button:hover { background: #f2d9cd; }
  .opt-info:hover { color: var(--ink); }
  .foot-links a:hover { color: var(--ink); border-color: var(--ink-2); }
}

/* ---------- Narrow screens: stage above, scrolling sheet below ---------- */
@media (max-width: 760px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--stage-h, 56dvh) minmax(0, 1fr);
    --stage-h: 56vh;
  }
  @supports (height: 1dvh) { .app { --stage-h: 56dvh; } .app.is-sheet-open { --stage-h: 32dvh; } }
  .app.is-sheet-open { --stage-h: 32vh; }
  .app.is-immersive { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 0; }
  .panel {
    z-index: 5;
    margin-top: -16px;
    border-left: 0;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -1px 0 rgba(31, 42, 38, .06), 0 -10px 28px -12px rgba(31, 42, 38, .18);
  }
  .panel-head { padding: 0 16px 12px; border-radius: 18px 18px 0 0; }
  .sheet-handle { display: block; width: 100%; height: 22px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
  .sheet-handle span { display: block; width: 38px; height: 4px; margin: 0 auto; border-radius: 2px; background: #d6d0c4; }
  .eyebrow { display: none; }
  .title-block { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
  .level-title { margin: 0; font-size: 24px; }
  .level-meta { font-size: 12px; }
  .share { width: 34px; padding: 0; justify-content: center; margin-top: 0; }
  .share span { display: none; }
  .changes { margin-top: 8px; }
  .changes-none { min-height: 26px; font-size: 12.5px; }
  .chip-button { height: 28px; font-size: 12px; }
  .panel-body { padding: 0 16px 8px; }
  .group { padding-top: 18px; }
  .panel-foot { padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); }
  .kbd-hint { display: none; }

  .levels {
    top: 12px;
    left: 12px;
    transform: none;
    flex-direction: row-reverse;
    padding: 4px;
    border-radius: 13px;
  }
  .level { width: auto; height: 34px; padding: 0 11px; border-radius: 9px; }
  .level-name { font-size: 14.5px; letter-spacing: .04em; }
  .level-elev { display: none; }
  .level[data-section="Exterior"] { margin: 0 0 0 7px; }
  .level[data-section="Exterior"]::after { left: -5px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .view-switch { top: 12px; right: 12px; padding: 4px; border-radius: 13px; }
  .view-switch button { height: 34px; padding: 0 11px; font-size: 13px; }
  .view-switch .icon { display: none; }
  .hold-badge { top: 60px; }
  .tools { bottom: 28px; padding: 4px; border-radius: 13px; }
  .tool { height: 34px; padding: 0 9px; font-size: 12.5px; gap: 5px; }
  .tool-zoom { display: none; }
  .room-label { padding: 2px 6px; border-radius: 6px; }
  .room-label b { font-size: 11px; }
  .room-label span { display: none; }
  .toast { bottom: 84px; }
  .stage-hint { bottom: 76px; font-size: 11.5px; }
  .loader { bottom: 82px; }
}
@media (max-width: 370px) {
  .tool { padding: 0 7px; }
  .tool .icon { display: none; }
  .tool-switch .switch { display: block; }
  .level { padding: 0 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
