.bath-simulator {
  --bs-ink: #212724;
  --bs-muted: #545d55;
  --bs-line: #deded4;
  --bs-surface: #f9f8f4;
  display: grid;
  min-width: 0;
  gap: 12px;
  color: var(--bs-ink);
}

.bath-simulator [hidden] { display: none !important; }
.bath-simulator * { box-sizing: border-box; }
.bs-head { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; min-width: 0; }
.bs-head h2 { margin: 0 0 4px; font-size: clamp(1rem, 2vw, 1.25rem); letter-spacing: -.045em; }
.bs-head p, .bs-status { margin: 0; color: var(--bs-muted); font-size: .75rem; line-height: 1.45; overflow-wrap: anywhere; }
.bs-status:empty { display: none; }

.bs-view, .bs-view-tools {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  background: var(--bs-surface);
  border: 1px solid var(--bs-line);
  border-radius: 9px;
}

.bath-simulator :is(.bs-view, .bs-view-tools) button {
  appearance: none;
  display: inline-grid;
  place-items: center;
  min-height: 32px;
  min-width: 34px;
  padding: 4px 9px;
  border: 0;
  border-radius: 5px;
  color: var(--bs-ink);
  background: transparent;
  font: inherit;
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
}
.bath-simulator :is(.bs-view, .bs-view-tools) button:hover { background: #e7e9e1; }
.bath-simulator .bs-view button[aria-pressed="true"] { background: #343e36; color: #fff; }
.bath-simulator .bs-elevation-select {
  min-height: 32px;
  max-width: 112px;
  padding: 4px 3px 4px 7px;
  border: 1px solid #cfd8ce;
  border-radius: 5px;
  background: #f6f8f1;
  color: #2b4235;
  font-family: inherit;
  font-size: .75rem;
  font-weight: 700;
}
.bath-simulator button:disabled { opacity: .43; cursor: default; }
.bath-simulator button:focus-visible { outline: 2px solid #3d5a43; outline-offset: 2px; }

.bs-stage {
  position: relative;
  height: clamp(238px, 40vw, 456px);
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #dfd9ce;
  border-radius: 14px;
  background: #e8e3d8;
}
.bs-render, .bs-plan { display: block; width: 100%; height: 100%; }
.bs-render { touch-action: pan-y; cursor: grab; }
.bs-render:active { cursor: grabbing; }
.bs-plan { padding: 5px; background: radial-gradient(ellipse at top, #fbfaf4, #eee9df); }
.bs-plan svg { display: block; width: 100%; height: 100%; }
.bs-orthographic-overlay { position:absolute; inset:0; pointer-events:none }
.bs-orthographic-svg { display:block; width:100%; height:100% }
.bs-view-tools {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #f9f8f4f0;
  box-shadow: 0 2px 9px #352d231e;
}
.bs-globe {
  position: absolute; z-index: 3; right: 10px; bottom: 57px; display: grid; justify-items: center;
  gap: 2px; padding: 4px; border: 1px solid var(--bs-line); border-radius: 9px;
  background: #f9f8f4f2; box-shadow: 0 2px 9px #352d231e; user-select: none;
}
.bs-globe-arrows {
  display: grid; grid-template: repeat(3,30px) / 30px 34px 30px;
  grid-template-areas: '. up .' 'left globe right' '. down .'; align-items: stretch;
}
.bath-simulator .bs-globe button {
  appearance: none; border: 0; border-radius: 5px; background: transparent; color: #2e4d3a;
  padding: 0; font: 700 16px/1 system-ui,sans-serif; cursor: pointer; touch-action: manipulation;
}
.bath-simulator .bs-globe button:hover { background: #e7ede5; }
.bs-globe [data-bs-look=ArrowUp] { grid-area: up; }
.bs-globe [data-bs-look=ArrowLeft] { grid-area: left; }
.bs-globe [data-bs-look=ArrowRight] { grid-area: right; }
.bs-globe [data-bs-look=ArrowDown] { grid-area: down; }
.bath-simulator .bs-globe [data-bs-globe-drag] {
  grid-area: globe; display: grid; place-items: center; cursor: grab; touch-action: none;
}
.bath-simulator .bs-globe [data-bs-globe-drag]:active { cursor: grabbing; }
.bs-globe-symbol {
  position: relative; display: block; width: 23px; height: 23px;
  border: 1.5px solid currentColor; border-radius: 50%;
  background: linear-gradient(currentColor,currentColor) center / 100% 1px no-repeat;
}
.bs-globe-symbol::before,.bs-globe-symbol::after {
  content: ''; position: absolute; inset: -1px 5px; border: 1px solid currentColor; border-radius: 50%;
}
.bs-globe-symbol::after { inset: 4px -1px; border-inline: 0; }
.bath-simulator .bs-globe [data-bs-look-ceiling] {
  min-height: 29px; padding: 4px; border: 1px solid #d4ddd1; font-size: 11px; white-space: nowrap;
}
.bath-simulator .bs-globe [data-bs-look-ceiling][aria-pressed=true] { background: #dce9dc; }
.bath-simulator .bs-view-tools button { padding: 3px; font-size: .93rem; line-height: 1; }
.bs-zoom-level { min-width: 3.2em; padding: 0 3px; color: #47594d; font-size: 11px; font-variant-numeric: tabular-nums; text-align: center; }
.bs-render:focus-visible { outline: 2px solid #587d68; outline-offset: -3px; }

.bs-plan-room, .bs-plan-fixture, .bs-plan-inset, .bs-plan-wet, .bs-plan-glass, .bs-plan-divider { stroke: #777168; stroke-width: 1.3; }
.bs-plan-room { stroke: #5e5b50; stroke-width: 2.4; }
.bs-plan-fixture { fill: #fcfbf7; }
.bs-plan-inset { fill: #e8e7df; }
.bs-plan-wet { fill: #dee6df; fill-opacity: .86; stroke-dasharray: 5 4; }
.bs-plan-glass { fill: #b0c6ba; stroke: #506a5e; stroke-dasharray: 4 2; }
.bs-plan-divider { fill: #777c6c; stroke: #4d544b; }
.bs-plan-top-wing { fill: #d2dfd3; stroke: #405e51; stroke-width: 1.4; }
.bs-plan-dimension { stroke: #827b6d; stroke-width: 1.15; }
.bs-plan-label, .bs-plan-size { fill: #363933; font-family: inherit; font-size: 15px; font-weight: 720; }
.bs-plan-dim-control, .bs-plan-wall-hit, .bs-plan-svg[data-bs-plan-scale] [data-bs-plan-structure] { cursor: pointer; }
.bs-plan-dim-control rect, .bs-plan-handle circle { fill: #f8fcf8; stroke: #426456; stroke-width: 1.5; }
.bs-plan-dim-control:is(:hover,:focus-visible) rect, .bs-plan-handle:hover circle { fill: #dcebe2; stroke-width: 2.5; }
.bs-plan-dim-control .bs-plan-size { fill: #254639; }
.bs-plan-wall-hit { stroke: transparent; stroke-width: 13; }
.bs-plan-wall-hit:hover { stroke: #4c7b6566; }
.bs-plan-handle { cursor: ew-resize; touch-action: none; }
.bs-plan-handle-depth { cursor: ns-resize; }
.bs-plan-handle path { fill: none; stroke: #325a48; stroke-width: 1.6; pointer-events: none; }
.bs-plan-grabbing, .bs-plan-grabbing * { cursor: grabbing !important; user-select: none; }

.bs-specs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.bs-spec, .bs-count {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--bs-line);
  border-radius: 8px;
  background: var(--bs-surface);
  overflow-wrap: anywhere;
}
.bs-spec { display: flex; align-items: start; gap: 6px; }
.bs-spec > div, .bs-count { display: grid; gap: 2px; }
.bs-swatch {
  display: block;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  border: 1px solid #39352930;
  border-radius: 3px;
  background: var(--bs-swatch);
}
.bs-specs :is(span:not(.bs-swatch),small) { color: var(--bs-muted); font-size: .69rem; line-height: 1.35; }
.bs-specs strong { font-size: .76rem; line-height: 1.35; }

@media(max-width: 480px) {
  .bath-simulator { gap: 8px; }
  .bs-stage { height: clamp(234px, 68vw, 332px); }
  .bs-specs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bs-count { grid-column: 1 / -1; }
}
.bs-spec img.bs-swatch { object-fit: cover }
.bs-spec .bs-photo-indicator { color: #3f6351; font-weight: 700 }
.consultation-compact .tile-surface-switch button strong { white-space: nowrap; flex: none }
.consultation-compact .tile-surface-switch button small { line-height: 1.35; overflow-wrap: anywhere }
.bath-studio .compact-slot-position { display: block; width: 100%; min-height: 37px; margin-top: 6px; border-radius: 6px; border-color: #afc3b4; background: #e6efe7; color: #345341; font-size: 12px; font-weight: 700 }
.bs-layout-tools {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
  padding: 7px;
  border: 1px solid #d8dfd8;
  border-radius: 10px;
  background: #f0f4ef;
}
.bs-layout-tools label {
  flex: 1 1 104px;
  min-width: 0;
  display: grid;
  gap: 3px;
  font-size: 11px;
  color: #354a40;
  font-weight: 700;
}
.bath-simulator .bs-layout-tools :is(select,input[type=number]) {
  min-width: 0;
  width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 4px 5px;
  border: 1px solid #cdd8ce;
  border-radius: 7px;
  background: #fffefa;
  color: #283b31;
  font-size: 12px;
}
.bath-simulator .bs-layout-tools button {
  min-height: 36px;
  padding: 4px 7px;
  border: 1px solid #c9d8cb;
  border-radius: 7px;
  background: #fffefa;
  color: #2e4d3a;
  font-size: 12px;
  font-weight: 700;
}
.bs-layout-tools.bs-room-tools {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
}
.bs-placement-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.bs-placement-actions span { color: #3a5544; font-size: 12px; line-height: 1.45; }
.bs-resize-handles { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.bs-resize-axis { position: absolute; inset: 0; }
.bs-resize-handles[hidden],.bs-resize-axis[hidden] { display: none; }
.bs-resize-handles button[hidden] { display: none; }
.bs-resize-dimension {
  position: absolute;
  border-top: 1.5px solid #245a57;
  transform-origin: 0 50%;
  filter: drop-shadow(0 1px 1px #fff);
}
.bs-resize-handles :is(output,.bs-resize-height-value) {
  position: absolute;
  transform: translate(-50%,-50%);
  padding: 3px 7px;
  border: 1px solid #8fb4aa;
  border-radius: 4px;
  background: #f8fdfb;
  color: #164b48;
  font: 700 12px/1.15 system-ui,sans-serif;
  white-space: nowrap;
}
.bs-resize-handles button {
  pointer-events: auto;
  touch-action: none;
  position: absolute;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  transform: translate(-50%,-50%);
  background: transparent;
  cursor: ew-resize;
}
.bs-resize-handles button::after {
  display: block;
  content: '';
  width: 13px;
  height: 13px;
  margin: auto;
  border: 2px solid #1b6662;
  border-radius: 3px;
  background: #f4fbf8;
  box-shadow: 0 1px 4px #17413d45;
}
.bs-resize-handles button:hover::after,.bs-resize-handles button:focus-visible::after { background: #8ed4be; }
.bs-resize-axis[data-bs-resize-axis=height] .bs-resize-dimension { border-top-style: dashed; }
.bs-resize-handles button[data-bs-size-handle=top] { cursor: ns-resize; }
.bs-placement-actions { gap: 5px; }
.bs-placement-actions > [role="status"] { flex: 1 0 100%; }
.bs-projected-depth { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bs-projected-depth label { display: flex; align-items: center; gap: 4px; font-size: 12px; }
.bs-projected-depth input { width: 76px; min-height: 34px; border: 1px solid var(--bs-line); border-radius: 6px; padding-inline: 5px; }
.bs-ledge-wing-options {
  position: static; display: flex; gap: 4px; align-items: center;
  flex: 1 0 100%; box-sizing: border-box; min-width: 0; max-width: 100%; flex-wrap: wrap;
  padding: 3px; border: 1px solid var(--bs-line); border-radius: 8px; background: #f9f8f4;
}
.bath-simulator .bs-ledge-tools .bs-ledge-wing-options > button { min-height: 44px; }
.bs-ledge-wing-options[hidden], .bs-ledge-wing-options > button[hidden] { display: none; }
.bs-layout-note { width: 100%; margin: 0; color: #794b2d; font-size: 12px; }
.bs-drain-spec { display: grid; gap: 2px; width: 100%; margin: 0; color: #354a40; font-size: 12px; overflow-wrap: anywhere; }
.bs-drain-spec small { color: #555c51; }
.bs-history { display: flex; gap: 3px; }
.bath-simulator .bs-history button { min-width: 30px; font-size: 17px; line-height: 1; }
.bath-simulator .bs-placement-actions > [data-bs-remove] { color: #874838; }
.bs-structure-menu { position: relative; z-index: 5; }
.bs-structure-menu summary {
  display: grid; place-items: center; min-height: 36px; padding-inline: 7px;
  border: 1px solid #c9d8cb; border-radius: 7px; background: #fffefa;
  color: #2e4d3a; font-size: 12px; font-weight: 700; cursor: pointer;
}
.bs-structure-menu > div {
  position: absolute; inset-inline-start: 0; top: calc(100% + 4px); min-width: 145px;
  display: grid; gap: 3px; padding: 5px; border: 1px solid var(--bs-line);
  border-radius: 8px; background: #fffefa; box-shadow: 0 5px 18px #26382f25;
}
.bath-simulator .bs-structure-menu button { text-align: left; border-color: transparent; }
.bath-simulator .bs-structure-menu button:hover { background: #edf1ea; }
.bs-room-tools:has([data-bs-cancel-placement]) { grid-template-columns: minmax(0,1fr); }
.bs-room-tools [data-bs-add-niche] { border-color: #b9cbbd; background: #ecf2ec; padding-inline: 10px; }
.bs-layout-options { min-width: 0; }
.bs-layout-options[open] { grid-column: 1 / -1; }
.bs-layout-options summary {
  width: fit-content;
  margin-inline-start: auto;
  cursor: pointer;
  padding: 9px 2px;
  color: #354a40;
  font-size: 12px;
  font-weight: 700;
}
.bs-layout-options summary:focus-visible { outline: 2px solid #3d5a43; outline-offset: 2px; }
.bs-layout-options > div {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 6px;
  margin-top: 6px;
  padding: 8px;
  border: 1px solid var(--bs-line);
  border-radius: 8px;
  background: var(--bs-surface);
}
.bs-layout-options:not([open]) > div { display: none; }
.bs-fan-spec {
  display: flex;
  flex: 1 0 100%;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0;
  color: #40594c;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.bs-fan-spec a { color: inherit; font-weight: 700; }
.bs-fan-photo {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: #fff;
}
.bs-fan-photo > div { min-height: 0; overflow: hidden; display: grid; place-items: center; }
.bs-fan-photo img { width: 100%; height: 100%; min-height: 0; object-fit: contain; transform: translate(var(--bs-fan-photo-pan-x, 0%),var(--bs-fan-photo-pan-y, 0%)) scale(var(--bs-fan-photo-zoom, 1)); }
.bs-fan-photo figcaption { padding: 7px 82px 9px; text-align: center; background: #fff; color: #536358; font-size: 11px; }
.bs-size-dialog {
  width: min(440px, calc(100vw - 28px));
  max-height: min(700px, calc(100dvh - 24px));
  box-sizing: border-box;
  border: 1px solid #d5ddd1;
  border-radius: 14px;
  padding: 18px;
  background: #fffefb;
  color: #243129;
}
.bs-size-dialog::backdrop { background: #14281eb3; }
.bs-size-dialog h3 { margin: 0 0 14px; font-size: 17px; }
.bs-size-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.bs-size-fields label { display: grid; gap: 3px; font-size: 13px; }
.bs-size-fields span { display:flex; gap: 5px; align-items: center; color: #536358; }
.bs-size-fields input { width: 100%; min-width: 0; padding: 8px; border: 1px solid #c8d3c8; border-radius: 6px; font: inherit; color: #243129; }
.bs-size-actions { display: flex; justify-content: end; gap: 8px; margin-top: 16px; }
.bs-size-actions button[type="submit"] { background: #304f3e; color: #fff; border-color: #304f3e; }
.bs-size-error { margin: 9px 0 0; font-size: 12px; color: #903623; }
.bs-product-dialog { width: min(640px,calc(100vw - 30px)); max-height: calc(100dvh - 26px); box-sizing: border-box; padding: 16px; border: 1px solid #d5ddd1; border-radius: 12px; background: #fff; color: #243129; }
.bs-product-dialog::backdrop { background: #14281eb3; }
.bs-product-dialog header { display: flex; gap: 12px; justify-content: space-between; align-items: start; margin-bottom: 12px }
.bs-product-dialog h3 { margin: 0; font-size: 17px }
.bs-product-dialog p { margin: 4px 0 0; color: #536358; font-size: 12px }
.bs-product-dialog img { display: block; width: 100%; height: min(55dvh, 510px); object-fit: contain }
.bath-place-selection [data-place-action="photo"] { margin-top: 4px; padding: 4px 8px; min-height: 28px; font-size: 11px }
.bath-simulator :is(.bs-direct-button,.bs-enlarge-button,.bs-roof-button) {
  position: absolute;
  z-index: 2;
  top: 9px;
  min-height: 36px;
  padding: 6px 8px;
  border: 1px solid #cad6ca;
  border-radius: 7px;
  background: #f8fcf7ef;
  color: #294939;
  font-size: 12px;
  font-weight: 730;
}
.bs-direct-button { left: 9px }
.bs-enlarge-button { right: 9px }
.bs-roof-button { right: 85px }
@media (max-width: 480px) {
  .bs-roof-button { top: 52px !important; left: 9px; right: auto }
}
.bath-simulator .bs-direct-button[aria-pressed="true"] {
  background: #27563f;
  border-color: #27563f;
  color: #fff;
}
.bs-render[data-bs-editing="true"] { touch-action: none; cursor: move }
.bs-stage[data-bs-placing="true"] { border-color: #6b8e75; }
.bs-stage[data-bs-placing="true"] .bs-render { cursor: crosshair; }
.bs-stage[data-bs-placing="true"] .bs-render { touch-action: none; }
.bs-point-selection { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bs-point-selection polygon { fill: #4287603a; stroke: #245c48; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.bs-dimension-overlay { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bs-dimension-overlay[hidden], .bs-document-tools[hidden] { display: none; }
.bs-dimension-overlay path { fill: none; stroke: #267369; stroke-width: 1.3; filter: drop-shadow(0 0 1px #fff); }
.bs-dimension-overlay text {
  fill: #23453a; stroke: #fffef5; stroke-width: 4px; stroke-linejoin: round; paint-order: stroke fill;
  font: 700 12px system-ui,sans-serif; font-variant-numeric: tabular-nums;
}
.bs-document-tools { display: flex; align-items: center; justify-content: end; gap: 5px; }
.bs-document-tools [data-bs-door-toggle] { margin-inline-end: auto; }
.bath-simulator .bs-document-tools button, .bs-shot-actions :is(a,button) {
  min-height: 34px; padding: 4px 10px; border: 1px solid #c9d8cb; border-radius: 7px; color: #2e4d3a;
  background: #fffefa; font: 700 12px system-ui,sans-serif; cursor: pointer;
}
.bath-simulator .bs-document-tools button[aria-pressed=true] { background: #e5eee7; border-color: #719783; }
.bs-shot-actions { display: flex; gap: 8px; justify-content: end; align-items: center; margin-top: 13px; }
.bs-shot-actions a { display: inline-flex; align-items: center; text-decoration: none; }
.bs-shot-actions [hidden] { display: none; }
.bs-placement-height {
  position: absolute; z-index: 2; pointer-events: none; padding: 5px 7px; border-radius: 5px;
  background: #203c32; color: white; font-size: 11px; line-height: 1;
  font-variant-numeric: tabular-nums; white-space: nowrap; box-shadow: 0 2px 6px #1b282349;
}
.bs-ledge-tools {
  position:absolute; inset-inline-start:9px; bottom:10px; z-index:3; display:flex; flex-wrap:wrap; gap:3px;
  padding:3px; border:1px solid var(--bs-line); border-radius:8px; background:#f9f8f4f5;
}
.bath-simulator .bs-ledge-tools button {
  min-height:32px; padding:3px 7px; border:0; border-radius:5px; color:var(--bs-ink);
  background:transparent; font-family:inherit; font-size:.73rem; font-weight:600; cursor:pointer;
}
.bath-simulator .bs-ledge-tools button[aria-pressed=true] { background:#344f41; color:white; }
@media (max-width:550px) { .bs-ledge-tools { bottom:53px; } }
.bs-direct-editor { padding-block: 2px 4px }
.bs-plan-drain { fill: #9aa7a1; stroke: #3d5249; stroke-width: 1.4 }
.bs-plan-drain-size { fill: #32483f; font-size: 10px; font-weight: 700; }
.bs-plan-door { fill: none; stroke: #425951; stroke-width: 1.2 }
.bs-plan-door-opening { stroke: #f7f4e9; stroke-width: 4 }
@media(max-width:420px) {
  .bath-simulator .bs-view button { min-width: 30px; padding-inline: 6px; font-size: 11px; white-space: nowrap }
  .bath-simulator .bs-layout-tools :is(select,button) { min-height: 37px }
}

.bath-simulator .bs-view { flex-wrap: wrap; max-width: 100%; }
.bath-simulator .bs-view > button { white-space: nowrap; }
.bs-camera-bar { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 6px 12px; }
.bs-camera-bar :is(.bs-view-tools,.bs-globe,.bs-ledge-tools,.bs-direct-button,.bs-roof-button,.bs-enlarge-button) {
  position: static; box-shadow: none;
}
.bs-camera-bar .bs-view-tools { justify-content: start; flex-wrap: wrap; width: fit-content; max-width: 100%; background: #f3f5ef; }
.bs-view-actions { display: flex; justify-content: flex-end; align-items: flex-start; flex-wrap: wrap; gap: 5px; }
.bs-view-actions > button, .bs-look-menu > summary {
  display: inline-flex; align-items: center; min-height: 38px; padding: 5px 9px; border-radius: 8px;
  border: 1px solid #d7ded3; background: #fffefa; color: #304a3b; font: 650 12px system-ui,sans-serif; white-space: nowrap; cursor: pointer;
}
.bs-view-actions > button[aria-pressed=true], .bs-look-menu[open] > summary { background: #e8eee6; }
.bs-look-menu > summary { list-style: none; }
.bs-look-menu > summary::after { content: '⌄'; margin-inline-start: 6px; }
.bs-look-menu .bs-globe { margin-top: 4px; }
.bs-look-menu .bs-globe-arrows {
  grid-template: 34px / repeat(5,24px); grid-template-areas: 'left up globe down right';
}
.bs-camera-bar .bs-ledge-tools { grid-column: 1 / -1; justify-self: start; flex-wrap: wrap; }
.bs-structure-menu[open] { flex-basis: 100%; }
.bs-structure-menu > summary { width: fit-content; font-size: 13px; padding-inline: 12px; background: #edf3ec; }
.bs-structure-menu > div {
  position: static; grid-template-columns: repeat(auto-fit,minmax(min(100%,116px),1fr)); margin-top: 5px; box-shadow: none;
}
.bath-simulator .bs-structure-menu button { border-color: #e0e5dc; background: #f7f8f4; }
.bs-document-tools { flex-wrap: wrap; }
.bs-document-tools select { min-height: 34px; padding-inline: 7px; border: 1px solid #c9d8cb; border-radius: 7px; color: #2e4d3a; background: #fffefa; font: 650 12px system-ui,sans-serif; }
.bs-dimension-settings > summary, .bs-dimension-list > summary {
  list-style: none; min-height: 34px; display: flex; align-items: center; gap: 5px; padding: 4px 9px;
  border: 1px solid #d7ded3; border-radius: 8px; background: #fffefa; color: #304a3b; font-size: 12px; font-weight: 700; cursor: pointer;
}
.bs-dimension-settings[data-active=true] > summary { background: #e8eee6; }
:is(.bs-dimension-settings,.bs-dimension-list) > summary::after { content: '⌄'; margin-left: auto; }
.bs-dimension-settings[open] { display: flex; gap: 5px; flex-wrap: wrap; min-width: 0; }
.bs-dimension-settings > div { display: flex; flex-wrap: wrap; gap: 4px; }
.bs-dimension-list ul { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,210px),1fr)); gap: 8px; list-style: none; padding: 0; margin: 7px 0 0; }
.bs-dimension-list li { padding: 8px 10px; background: #f0f4ef; border-radius: 9px; color: #284438; font-size: 12px; }
.bs-dimension-list li strong span { display: inline-block; min-width: 1.2em; color: #315d90; }
.bs-dimension-list dl { margin: 4px 0 0; }
.bs-dimension-list dl div { display: flex; justify-content: space-between; gap: 6px; }
.bs-dimension-list dd { margin: 0; white-space: nowrap; font-weight: 650; }
.bs-dimension-overlay [data-dimension-kind=room] path { stroke: #27483e; }
.bs-dimension-overlay [data-dimension-kind=structure] path { stroke: #875522; }
.bs-dimension-overlay [data-dimension-kind=structure] text { fill: #724817; }
.bs-dimension-overlay [data-dimension-kind=product] path { stroke: #345b91; }
.bs-dimension-overlay [data-dimension-kind=product] text { fill: #254674; }
.bath-simulator:has(.bs-stage[data-bs-process]:not([data-bs-process=""])) :is(.bs-view,.bs-layout-tools,[data-bs-direct]) { display: none; }
@media (max-width: 1120px) {
  .bs-camera-bar { grid-template-columns: minmax(0,1fr); }
  .bs-view-actions { justify-content: flex-start; }
}
@media (pointer: coarse) {
  .bs-camera-bar .bs-view-tools button { min-width: 38px; min-height: 38px; }
  .bs-look-menu .bs-globe-arrows { grid-template-columns: repeat(5, 36px); }
}
.bs-photo { display: block; width: 100%; height: 100%; object-fit: contain; background: #4d4437 }
.bath-studio-preview .bs-stage[data-bs-mode="photo"] { height: auto; aspect-ratio: 3 / 2 }
.bs-photo-note { margin: 0; font-size: 12px; line-height: 1.45; color: #4c6051 }
.bs-ceiling-panel { fill: #f8f7ef; stroke: #a5aaa0; stroke-width: 1.2 }
.bs-ceiling-hatch { fill: #f3f2eb; stroke: #7c867a; stroke-width: 1.2 }
.bs-ceiling-light { fill: #fff9dc; stroke: #4a6658; stroke-width: 1.4 }
.bs-ceiling-fan { fill: #e0ebe5; stroke: #456c59; stroke-width: 1.4 }
.consult-outline-dialog {
  box-sizing:border-box; width:min(92vw,1040px); max-width:100%; max-height:94dvh;
  margin:auto; padding:clamp(12px,2vw,24px); border:1px solid #bacac0;
  border-radius:14px; background:#fff; color:#233b32; overflow:auto;
}
.consult-outline-dialog::backdrop {background:#11251de0}
.consult-outline-dialog h2 {margin:0 0 12px;font-size:clamp(18px,3vw,24px);color:#203d32}
[data-planner-cad] {min-width:0;container:floor-editor / inline-size;}
[data-planner-cad] .outline-tools,[data-planner-cad] .outline-actions {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
[data-planner-cad] .outline-actions {justify-content:flex-end;margin-top:10px;border-top:1px solid #d7e2da;padding-top:10px}
[data-planner-cad] .outline-tools label {display:inline-flex;align-items:center;gap:7px}
[data-planner-cad] .outline-tools [data-cad-control=undo] {margin-left:auto}
[data-planner-cad] :is(button,input,select,summary) {box-sizing:border-box;min-height:44px;border-radius:6px;font:inherit;font-size:14px}
[data-planner-cad] button {cursor:pointer;padding:6px 12px;border:1px solid #aec5b9;background:#f7faf8;color:#234236;font-weight:650}
[data-planner-cad] button:disabled {opacity:.45;cursor:default}
[data-planner-cad] :is(button[aria-pressed=true],[data-cad-control=commit]) {color:#fff;background:#265c47;border-color:#265c47}
[data-planner-cad] :is(select,input) {padding:6px 9px;max-width:100%;min-width:0;background:white;color:#203a2e;border:1px solid #a4b8aa}
[data-planner-cad] :focus-visible {outline:2px solid #2872a0;outline-offset:1px}
[data-planner-cad] .outline-guide {font-size:13px;color:#4b6256;margin:7px 0 12px;line-height:1.5}
[data-planner-cad] .outline-workspace {display:grid;gap:12px;grid-template-columns:minmax(0,1fr)}
[data-planner-cad] svg.view {display:block;box-sizing:border-box;width:100%;height:clamp(220px,47dvh,490px);touch-action:none;border:1px solid #aabfb1;border-radius:8px;background:#f8faf6;user-select:none}
[data-planner-cad] svg [data-vertex-id] {cursor:grab}
[data-planner-cad] svg [data-wall-id] {cursor:pointer}
[data-planner-cad] .outline-properties {display:grid;align-content:start;min-width:0;gap:9px}
[data-planner-cad] .outline-selector {display:flex;gap:6px;align-items:center;font-weight:650}
[data-planner-cad] fieldset {border:0;padding:0;margin:0;min-width:0;display:flex;align-items:end;gap:6px;flex-wrap:wrap}
[data-planner-cad] fieldset label {display:grid;gap:3px;font-size:12px;color:#43574a}
[data-planner-cad] fieldset input {width:8em}
[data-planner-cad] fieldset[hidden] {display:none!important}
[data-planner-cad] details {border-top:1px solid #d8e2dc}
[data-planner-cad] details summary {padding:10px 0;cursor:pointer;color:#42594c}
[data-planner-cad] output {display:block;font-size:13px;margin-top:8px;color:#365b46}
[data-planner-cad]:not([data-cad-error=""]) output {color:#884e24}
@container floor-editor (min-width:620px) {
  [data-planner-cad] .outline-workspace {grid-template-columns:minmax(0,1fr) minmax(190px,25%);}
}
@media (max-width:600px) {
  .consult-outline-dialog {width:96vw;max-height:95dvh;padding:12px;border-radius:10px}
  .consult-outline-dialog .outline-actions {position:sticky;bottom:-12px;background:#fff;padding-bottom:8px}
}
.bs-outline-corners {position:absolute;inset:0;z-index:4;pointer-events:none;overflow:hidden}
.bs-outline-corners[hidden] {display:none}
.bath-simulator .bs-outline-corners button {box-sizing:border-box;position:absolute;transform:translate(-50%,-50%);pointer-events:auto;cursor:pointer;width:34px;height:34px;min-width:0;min-height:0;padding:0;border:0;border-radius:50%;background:transparent;box-shadow:none}
.bath-simulator .bs-outline-corners button::after {content:'';display:block;width:8px;height:8px;margin:auto;box-sizing:content-box;border:2px solid #276b56;border-radius:50%;background:white}
.bath-simulator .bs-outline-corners button:is(:hover,:focus-visible)::after {background:#c9e7d7}
.bath-simulator .bs-view [data-bs-edit-outline] {color:#225644;border:1px solid #a5bfae;background:#e8f1e9}


.consult-outline-dialog[data-survey] {width:min(96vw,1180px);background:#fbfcfa;color:#20382e}
[data-survey] [hidden] {display:none!important}
[data-survey] h2 {margin-bottom:14px}
.survey-steps,.survey-tools,.survey-footer {display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.survey-steps {background:#e5ede7;padding:4px;border-radius:10px;margin:0 0 16px}
[data-survey] :is(.survey-steps,.survey-tools,.survey-footer,[data-survey-walls]) button {min-height:44px;border:1px solid #b5c7bd;border-radius:7px;padding:7px 13px;background:white;color:#244235;font-family:inherit;font-weight:600;font-size:14px;cursor:pointer}
.survey-steps button {flex:1}
[data-survey] .survey-steps button[aria-current], [data-survey] .survey-tools button[aria-pressed=true], [data-survey] button[data-survey-continue], [data-survey] button[data-survey-next] {background:#245744;border-color:#245744;color:white}
[data-survey-space] {display:grid;grid-template-columns:minmax(0,1.45fr) minmax(275px,1fr);gap:18px;align-items:start}
[data-survey-scene] {position:sticky;top:0;min-width:0}
[data-survey-scene] .bs-stage {height:clamp(235px,47dvh,495px)}
[data-survey-scene] :is(.bs-head,.bs-layout-tools,[data-bs-enlarge]) {display:none!important}
.survey-tools {margin-bottom:12px}
.existing-wall-sheet{margin:1rem 0}
.wall-sheet-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:14px;align-items:start}
.wall-sheet-grid figure{margin:0}.wall-sheet-grid svg{width:100%;max-height:22rem}
.wall-sheet-grid table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums}
.wall-sheet-grid :is(th,td){padding:6px;border-bottom:1px solid #c8d8ce;text-align:left}
.wall-sheet-grid caption{text-align:left;font-size:.85em;margin-bottom:6px}
.survey-wall-highlight,.survey-wall-highlight svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.survey-wall-highlight polygon{fill:#22ad8140;stroke:#16745d;stroke-width:2}
.survey-wall-highlight span{position:absolute;left:8px;bottom:8px;max-width:90%;background:#194c3e;color:#fff;padding:4px 9px;border-radius:5px;font-size:12px}
.survey-bar {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.survey-system {display:flex;align-items:center;gap:10px;font-size:14px;font-weight:650}
.survey-history {margin:0}
[data-survey] .survey-history button:disabled {opacity:.48;cursor:default}
.survey-system select,[data-planner-cad] [data-cad-control=construction] select {min-height:42px;max-width:100%;border:1px solid #b5c7bd;border-radius:7px;background:white;padding:6px 10px;color:#244235;font:inherit}
[data-planner-cad] [data-cad-control=construction] [hidden],[data-planner-cad] [data-cad-control=construction][hidden]{display:none!important}
[data-survey-space] aside {min-width:0;max-height:61dvh;overflow:auto;padding:0 3px 5px;scrollbar-gutter:stable}
[data-survey-scene] :is(.bs-specs,[data-bs-door-view],[data-bs-door-toggle]) {display:none!important}
[data-survey-space] aside input,[data-survey-space] aside select {box-sizing:border-box;max-width:100%}
[data-survey-walls] {display:grid;gap:10px}
[data-wall-fields] fieldset {margin-top:12px}
[data-wall-fields] legend {margin-bottom:8px;font-weight:650}
[data-survey-status]:empty {display:none}
.survey-footer {position:sticky;bottom:-12px;background:#fbfcfa;border-top:1px solid #d8e3da;padding:10px 0 3px;justify-content:flex-end;z-index:3}
@media(max-width:740px){
  [data-survey-space]{grid-template-columns:1fr}
  [data-survey-scene]{position:static}
  [data-survey-scene] .bs-stage{height:26dvh;min-height:168px}
  [data-survey-space] aside{max-height:35dvh;min-height:180px}
  [data-survey-space]{gap:8px}
  [data-survey] :is(.survey-footer,.outline-actions) button{flex:1;padding-inline:7px}
}
