.bath-studio {
  --studio-ink: #202923;
  --studio-text: #49544c;
  --studio-rule: #daddd3;
  --studio-white: #fffefa;
  --studio-accent: #354e40;
  --studio-soft: #ebf0e9;
  min-height: calc(100dvh - 48px);
  padding: 0 0 48px;
  background: #eff0ea;
  color: var(--studio-ink);
}
.studio-page:has(.bath-studio) { background: #eff0ea }
.studio-page:has(.bath-studio) .studio-exit {
  min-height: 44px;
  padding: 4px max(18px,calc((100% - 1410px) / 2));
  border-color: #3d4d44;
  background: #24352c;
  color: #fff;
}
.studio-page:has(.bath-studio) .studio-exit span { color: #c8d5cb }
.studio-page:has(.bath-studio) .studio-exit button { color: inherit }
.bath-studio[hidden], .bath-studio [hidden] { display: none !important }
.bath-studio .consultation-top {
  max-width: 1440px;
  padding: 15px 20px;
  border-color: var(--studio-rule);
}
.bath-studio .consultation-top > strong {
  font-size: clamp(17px,2vw,23px);
  font-weight: 760;
  letter-spacing: -.065em;
  line-height: 1.3;
}
.bath-studio .consultation-top > div { gap: 6px }
.bath-studio .consultation-top button,
.bath-studio .consultation-tools summary {
  min-height: 36px;
  border: 1px solid var(--studio-rule);
  border-radius: 9px;
  padding: 8px 11px;
  background: var(--studio-white);
  color: var(--studio-text);
  font-size: 12px;
}
.bath-studio .bath-preview-link { display: none }
.bath-studio-workspace {
  display: grid;
  grid-template-columns: minmax(0,1.12fr) minmax(0,1fr);
  align-items: start;
  gap: clamp(12px,1.6vw,24px);
  max-width: 1440px;
  margin: auto;
  padding: 16px 20px;
}
.bath-studio-preview,
.bath-studio.consultation-compact .bath-studio-inspector {
  min-width: 0;
  border: 1px solid var(--studio-rule);
  border-radius: 19px;
  background: var(--studio-white);
  box-shadow: 0 8px 24px #273c3010;
}
.bath-studio-preview {
  position: sticky;
  top: 16px;
  padding: clamp(10px,1.22vw,18px);
  scroll-margin-top: 54px;
}
.bath-studio-preview .bs-stage { height: clamp(255px,52dvh,515px) }
.bath-preview-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 14px;
  padding: 4px;
  border-radius: 12px;
  background: #ebece6;
}
.bath-studio .bath-preview-tabs button {
  min-height: 37px;
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: none;
  color: var(--studio-text);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.bath-studio .bath-preview-tabs button[aria-pressed="true"] {
  background: var(--studio-white);
  border-color: var(--studio-rule);
  color: var(--studio-ink);
  box-shadow: 0 2px 4px #2c3a2d1c;
}
.bath-style-image {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 13px;
  background: #e3dfd3;
}
.bath-style-image img { display: block; width: 100%; height: 100%; object-fit: cover }
.bath-style-image figcaption {
  position: absolute;
  display: grid;
  gap: 4px;
  inset: auto 0 0;
  padding: 36px 15px 14px;
  background: linear-gradient(transparent,#17241fee);
  color: white;
}
.bath-style-image strong { font-size: clamp(18px,2vw,28px); letter-spacing: -.055em }
.bath-style-image span { font-size: 12px; color: #f3efe6 }
.bath-style-options {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 6px;
  margin: 10px 0;
}
.bath-studio .bath-style-options button {
  position: relative;
  display: grid;
  place-items: end stretch;
  overflow: hidden;
  min-height: clamp(50px,7vw,89px);
  padding: 0;
  border: 1px solid #5b655b;
  border-radius: 9px;
  background: #5c665d center / cover no-repeat;
  color: white;
  text-align: left;
}
.bath-style-options button[data-studio-style="warm"] { background-image: url('/ai-concepts/studio-warm-oak.jpg') }
.bath-style-options button[data-studio-style="light"] { background-image: url('/ai-concepts/studio-light-stone.jpg') }
.bath-style-options button[data-studio-style="dark"] { background-image: url('/ai-concepts/studio-charcoal.jpg') }
.bath-style-options button span {
  padding: 8px 5px 4px;
  background: linear-gradient(transparent,#1a2520ed);
  font-size: 11px;
  font-weight: 740;
}
.bath-studio .bath-style-options button[aria-pressed="true"] {
  outline: 2px solid var(--studio-accent);
  outline-offset: 1px;
}
.bath-style-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
}
.bath-style-note p { flex: 1 1 200px; margin: 0; color: var(--studio-text); font-size: 12px; line-height: 1.5 }
.bath-studio .bath-style-note button {
  min-height: 42px;
  padding: 7px 10px;
  border: 0;
  border-radius: 9px;
  background: var(--studio-accent);
  color: white;
  font-weight: 720;
}
.bath-studio.consultation-compact .bath-studio-inspector {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(12px,1.4vw,22px);
}
.bath-studio .compact-progress {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 5px;
  border: 0;
}
.bath-studio .compact-progress button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 45px;
  padding: 6px 3px;
  border: 1px solid var(--studio-rule);
  border-radius: 9px;
  background: #f5f5f0;
  color: var(--studio-text);
  font-size: clamp(11px,1vw,14px);
  font-weight: 700;
  white-space: nowrap;
}
.bath-studio .compact-progress button[aria-current="step"] {
  background: var(--studio-accent);
  color: white;
  border-color: var(--studio-accent);
}
.bath-step-number {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.bath-studio h1 {
  margin: 22px 0 15px;
  color: var(--studio-ink);
  font-size: clamp(23px,2.5vw,33px);
  font-weight: 760;
  line-height: 1.22;
  letter-spacing: -.072em;
}
.bath-studio :is(.bath-studio-layout-options,.bath-studio-site,.compact-tile-product-layout) {
  margin: 0 0 13px;
  padding: clamp(10px,1.3vw,17px);
  border: 1px solid var(--studio-rule);
  border-radius: 13px;
  background: #f5f6f1;
}
.bath-studio-site > h2 { margin: 0 0 12px; font-size: 17px; letter-spacing: -.04em }
.bath-studio-measures { min-width: 0; margin: 0 0 14px; padding: 0 0 11px; border: 0; border-bottom: 1px solid var(--studio-rule) }
.bath-studio-measures legend { padding: 0; margin-bottom: 6px; font-size: 16px; font-weight: 720 }
.bath-measure-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px }
.bath-studio .bath-measure-fields label,
.bath-studio .bath-measure-meta label { min-width: 0; color: var(--studio-text); font-size: 12px; font-weight: 650 }
.bath-measure-input {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 5px;
  padding: 2px 6px;
  border: 1px solid var(--studio-rule);
  border-radius: 8px;
  background: var(--studio-white);
}
.bath-studio .bath-measure-input input {
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 5px 1px;
  border: 0;
  background: transparent;
  color: var(--studio-ink);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  font-weight: 720;
}
.bath-measure-input input:not(:focus) { appearance: textfield }
.bath-measure-input input:not(:focus)::-webkit-inner-spin-button { appearance: none }
.bath-measure-input span:last-child { flex: none; color: var(--studio-text); font-weight: 450 }
.bath-measure-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 9px; margin-top: 7px }
.bath-studio .bath-room-name { display: flex; flex: 1 1 130px; align-items: center; gap: 5px; white-space: nowrap }
.bath-studio .bath-room-name input { width: 100%; min-width: 0; margin: 0; padding: 5px 7px }
.bath-studio .bath-studio-layout-options .compact-field:last-child { margin-bottom: 0 }
.bath-studio .bath-studio-layout-options .request-choices button { border-radius: 7px; font-size: 12px }
.bath-studio .bath-studio-layout-options .request-choices button[aria-pressed="true"],
.bath-studio .compact-room-picker .request-choices button[aria-pressed="true"] {
  background: #e5eee5;
  border-color: #708c73;
  color: #2d4836;
}
.bath-studio .compact-item-card { padding: 12px; border: 1px solid var(--studio-rule); border-radius: 11px; background: var(--studio-white) }
.bath-studio .compact-spec-links { gap: 4px 8px }
.bath-studio .compact-combination { background: #f1f5ee; border-color: #d7e1d5 }
.bath-studio .bath-combination-room-plan { margin: 5px 0; color: var(--studio-text); font-size: 12px; line-height: 1.5 }
.bath-studio .bath-combination-item-title { display: flex; min-width: 0; align-items: center; gap: 6px }
.bath-combination-item-title img { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 5px; object-fit: cover }
.bath-combination-item-title strong { overflow-wrap: anywhere }
.bath-studio .question-navigation button { border-radius: 9px }
.bath-studio .question-navigation .request-primary { background: var(--studio-accent); border-color: var(--studio-accent) }

@media (max-width: 920px) {
  .bath-studio .compact-item-with-product { grid-template-columns: minmax(0,1fr) }
  .bath-studio .compact-item-with-product > .compact-item-products { padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--studio-rule) }
}
@media (max-width: 740px) {
  .studio-page:has(.bath-studio) { scrollbar-gutter: auto }
  .studio-page:has(.bath-studio) .studio-exit span { display: none }
  .bath-studio .consultation-top {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 49px;
    padding: 6px 12px;
    background: #eff0ea;
  }
  .bath-studio .bath-preview-link { display: inline-block }
  .bath-studio-workspace { grid-template-columns: minmax(0,1fr); padding: 9px 10px; gap: 10px }
  .bath-studio-preview { position: static; padding: 9px; border-radius: 14px }
  .bath-preview-tabs { margin-bottom: 8px }
  .bath-studio .bath-preview-tabs button { min-height: 34px; padding: 5px 10px; font-size: 12px }
  .bath-studio-preview .bs-stage { height: clamp(200px,56vw,345px) }
  .bath-studio.consultation-compact .bath-studio-inspector { border-radius: 14px; padding: 12px }
  .bath-studio h1 { margin-block: 16px 11px }
  .bath-studio [id^="bath-spec"],.bath-studio [id^="bath-item"],.bath-studio #bath-product-selection { scroll-margin-top: 55px }
}
@media (max-width: 380px) {
  .bath-studio .consultation-top button,.bath-studio .consultation-tools summary { padding-inline: 6px; font-size: 11px }
  .bath-step-number { display: none }
}
@media (prefers-reduced-motion: no-preference) {
  .bath-studio button { transition: background-color .16s ease,border-color .16s ease,color .16s ease }
}
.bath-room-setup { grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); align-items: end; margin-bottom: 9px }
.bath-studio .bath-room-setup .bath-room-name { display: block }
.bath-studio .bath-room-setup :is(input,select) { display: block; width: 100%; min-height: 34px; margin: 4px 0 0; padding: 5px 6px; border-radius: 7px; background: var(--studio-white) }
.bath-room-issues { margin: 0 0 9px; padding-left: 17px; line-height: 1.65 }
.bath-studio .consultation-top > strong { white-space: nowrap }
.bath-studio h1[data-compact-title]:focus { outline: none }
.bath-room-check { margin: 0 0 13px; padding: 11px 14px; border: 1px solid #ddd3ba; border-radius: 10px; background: #f8f3e8 }
.bath-room-check h2 { margin: 0 0 6px; font-size: 15px; color: #50442b }
.bath-room-check h2 small { font-size: 12px; margin-inline-start: 3px }
.bath-room-check ul { margin: 0; padding-left: 17px; color: #514734; font-size: 12px; line-height: 1.55 }
.bath-room-check li.error { color: #7a3527; font-weight: 680 }
@media(max-width:355px) { .bath-studio .consultation-top > strong { font-size: 15px } }
.studio-space-selector {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin: -4px 0 12px;
  padding: 0 0 9px;
  border-bottom: 1px solid var(--studio-rule);
}
.bath-studio .studio-space-selector button {
  min-height: 36px;
  padding: 5px 10px;
  border: 1px solid var(--studio-rule);
  border-radius: 7px;
  background: var(--studio-white);
  color: var(--studio-text);
  font-size: 12px;
  font-weight: 700;
}
.bath-studio .studio-space-selector button[aria-pressed="true"] {
  color: #fff;
  background: var(--studio-accent);
  border-color: var(--studio-accent);
}
@media (max-width: 520px) {
  .studio-space-selector { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 3px }
  .bath-studio .studio-space-selector button { min-width: 0; min-height: 38px; padding: 4px 2px; font-size: 11px; white-space: nowrap }
}
.studio-space-materials .tile-surface-switch button {
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
}
.bath-studio .studio-space-materials .tile-surface-switch button strong { white-space: normal; word-break: keep-all }
.studio-space-materials .tile-surface-switch small { text-align: left; font-variant-numeric: tabular-nums }
.studio-countertop-toggle { margin-bottom: 14px; }
.studio-countertop-products { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit,minmax(min(100%,218px),1fr)); }
.studio-countertop-products section { min-width: 0; }
.studio-countertop-products h2 { color: #32423a; margin: 0 0 8px; font-size: 13px; font-weight: 700; }
.studio-countertop-products article { height: auto; }
.studio-space-note { margin: 0 0 9px; color: var(--studio-text); font-size: 12px }

.studio-exit-actions { display:flex; align-items:center; gap:6px 14px; flex-wrap:wrap; justify-content:flex-end; }
.studio-exit-actions [data-studio-discard] { opacity:.76; }
.studio-exit-actions [data-studio-discard]:hover { opacity:1; }
.studio-read-only :is([data-action=save],[data-action=submit],[data-project-manage],[data-bs-add-niche],
  [data-bs-add-layout],[data-bs-remove],[data-bs-direct],[data-place-product],.bs-structure-menu,
  [data-remove-product],[data-pick],[data-compare-tiles],[data-point-region],[data-remove-tile-region]) { display:none !important; }
.saved-consultations > header,.saved-consultations nav,.saved-consultations [role=group] { display:flex; flex-wrap:wrap; gap:7px; margin:0 0 12px; }
.saved-consultations [aria-pressed=true] { background:#e2ede2; border-color:#829986; }
.saved-consultations ul { display:grid; gap:7px; list-style:none; margin:0 0 10px; padding:0; }
.saved-consultations li { display:flex; align-items:stretch; gap:7px; }
.saved-consultations [data-consultation-open] { display:grid; grid-template-columns:1fr auto; gap:3px 8px; flex:1; min-width:0; padding:10px; text-align:left;
  border:1px solid #d4dfd5; border-radius:9px; background:#f8fbf7; color:#2d483a; cursor:pointer; }
.saved-consultations [data-consultation-delete] { flex:none; align-self:center; min-height:36px; color:#923728; }
.saved-consultations li strong { overflow-wrap:anywhere; }
.saved-consultations li small { grid-column:1; opacity:.78; overflow-wrap:anywhere; }
.saved-consultations li span { grid-column:2; grid-row:1/3; align-self:center; font-size:.75rem; }
@media (max-width:550px) { .studio-exit-actions { gap:4px 9px; } .studio-exit-actions button { font-size:.73rem; } }
.studio-pedestal {
  min-width: 0;
  margin: 0 0 13px;
  padding: 7px 11px 11px;
  border: 1px solid var(--studio-rule);
  border-radius: 11px;
  background: #f5f6f1;
}
.studio-pedestal legend { padding: 0 5px; font-size: 14px; font-weight: 720 }
.studio-pedestal-options { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 15px }
.studio-pedestal-options label { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 3px; width: 105px; font-size: 12px }
.studio-pedestal-options input { grid-column: 1 / -1; width: 100%; min-width: 0; height: 38px; margin: 0; padding: 5px 8px }
.studio-pedestal-amount { display: grid; gap: 3px; margin-top: 10px; padding: 9px 10px; border-radius: 8px; background: #e7efe4 }
.studio-pedestal-amount strong { font-size: 15px; color: #264836 }
.studio-pedestal-amount span, .studio-pedestal-amount small, .studio-pedestal-amount p { color: #425747; font-size: 12px }
.studio-pedestal-amount p { margin: 0 }
.bath-studio .studio-pedestal .request-choices button[aria-pressed="true"] {
  background: #e5eee5;
  border-color: #708c73;
  color: #2d4836;
}
.bath-studio-preview:has(.bs-enlarged) { position: relative; top: auto }
.bath-studio-preview .bs-enlarged .bs-stage { height: clamp(360px,72dvh,760px) }

.bath-studio { --studio-accent: #25463b; --studio-rule: #dfe5dd; --studio-white: #fffefa; background: #f2f4ef; }
.studio-page:has(.bath-studio) { background: #f2f4ef; }
.bath-studio .consultation-top, .bath-studio-workspace { max-width: 1860px; }
.bath-studio .consultation-top { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 8px 22px; }
.bath-studio .studio-space-selector { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; width: fit-content; margin: 0; padding: 4px; border: 0; border-radius: 10px; background: #e8ede6; }
.bath-studio .studio-space-selector :is(button,summary) {
  display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 4px 10px;
  border: 1px solid transparent; border-radius: 7px; background: transparent; color: #42554a; font: 680 12px system-ui,sans-serif; white-space: nowrap;
}
.bath-studio .studio-space-selector button[aria-pressed=true], .bath-studio .studio-other-spaces summary[data-active] {
  background: #25463b; border-color: #25463b; color: #fff;
}
.bath-studio .studio-space-selector :is(button,summary):hover { box-shadow: inset 0 0 0 1px #66857188; }
.studio-other-spaces { position: relative; z-index: 12; }
.studio-other-spaces summary { cursor: pointer; list-style: none; }
.studio-other-spaces summary::after { content: '⌄'; margin-inline-start: 5px; }
.studio-other-spaces > div {
  display: grid; min-width: 100px; position: absolute; inset-inline-end: 0; top: calc(100% + 6px); padding: 5px;
  border: 1px solid #d9e1d7; border-radius: 10px; background: #fffefa; box-shadow: 0 8px 24px #1d352522;
}
.bath-material-navigation { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.bath-material-navigation :is(select,button) { min-height: 38px; border: 1px solid #d7e0d5; border-radius: 8px; padding: 4px 10px; background: #f2f6f0; color: #24463b; font-weight: 650; }
.bath-material-navigation select { flex: 1; min-width: 0; }
.bath-material-navigation button:disabled { opacity: .47; }
.bath-studio h1[data-compact-title] { font-size: clamp(22px,1.85vw,31px); line-height: 1.22; letter-spacing: -.045em; }
.bath-studio .compact-progress { padding: 4px; gap: 4px; border-radius: 11px; background: #eef2ed; }
.bath-studio .compact-progress button { min-height: 37px; border: 0; background: transparent; }
.bath-studio .compact-progress button[aria-current=step] { background: #25463b; box-shadow: 0 2px 5px #183b2c24; }
.bath-studio .question-navigation { margin: 0; padding-top: 12px; border-top: 1px solid var(--studio-rule); }
.bath-studio .bs-stage { background: #e8ede8; }
.bath-scene-state { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; padding: 7px 9px; margin-bottom: 10px; background: #eaf1ea; border-radius: 9px; color: #23463a; }
.bath-scene-state > strong { font-size: 13px; }
.bath-scene-state > span { margin-inline-end: auto; font-size: 12px; }
.bath-scene-state button { padding: 4px 7px; min-height: 32px; border: 1px solid #ccdace; border-radius: 6px; background: #fffefa; color: #28483c; font-size: 12px; font-weight: 650; }
.bath-scene-state button[data-start-consultation] { margin-inline-start: auto; background: #25463b; color: white; }
.studio-page:has(.bath-studio) .studio-exit { position: sticky; top: 0; z-index: 40; padding-inline: max(12px,calc((100% - 1820px) / 2)); }
.studio-page:has(.bath-studio) .studio-exit-actions { column-gap: 5px; }
.studio-page:has(.bath-studio) .studio-exit-actions button, .studio-exit-menu summary { min-height: 32px; padding: 4px 7px; border-radius: 6px; }
.studio-page:has(.bath-studio) .studio-exit-actions button[data-studio-save] { background: #e2ecdf; color: #1d3c30; }
.studio-exit-menu { position: relative; }
.studio-exit-menu summary { display: flex; align-items: center; font-size: 12px; list-style: none; cursor: pointer; }
.studio-exit-menu summary::after { content: '⌄'; margin-inline-start: 4px; }
.studio-exit-menu > div { position: absolute; inset-inline-end: 0; top: calc(100% + 5px); display: grid; min-width: max-content; padding: 4px; background: #223d32; border: 1px solid #60796c; border-radius: 8px; }
.bath-inspector-scroll { min-width: 0; }
.bath-studio:not([data-bath-step="1"]) .bs-layout-tools { display: none; }
.bath-studio:not([data-bath-step="1"]) :is([data-bs-direct],[data-bs-plan-edit]) { display: none; }
@media (min-width: 1040px) {
  .bath-studio-workspace { grid-template-columns: minmax(0,1.28fr) minmax(0,1fr); padding-top: 13px; }
  .bath-studio.consultation-compact .bath-studio-inspector { display: flex; flex-direction: column; height: calc(100dvh - 137px); min-height: 380px; }
  .bath-inspector-scroll { overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 0 6px 12px 0; flex: 1 1 auto; }
  .bath-studio .question-navigation { flex: 0 0 auto; }
  .bath-studio .bs-stage { height: clamp(250px,calc(100dvh - 390px),670px); }
}
@media (max-width: 1039px) {
  .bath-studio .consultation-top { grid-template-columns: minmax(0,1fr) auto; }
  .bath-studio .studio-space-selector { grid-row: 2; grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 740px) {
  .bath-studio .consultation-top { gap: 5px; top: 44px; }
  .bath-studio .studio-space-selector { justify-content: space-between; }
  .bath-studio .studio-space-selector :is(button,summary) { min-height: 32px; padding-inline: 5px; font-size: 11px; }
  .bath-studio .question-navigation { margin-top: 10px; }
}

.bath-studio .bath-studio-preview .bs-stage[data-bs-process]:not([data-bs-process=""]) {
  width: min(100%, max(300px, 61dvh)); height: auto; aspect-ratio: 1; margin-inline: auto;
}
.bath-studio .bath-studio-preview .bs-enlarged .bs-stage[data-bs-process]:not([data-bs-process=""]) {
  width: min(100%, 78dvh);
}

/* Single renderer, copied to a bounded mobile-only two-dimensional view. */
[data-bath-mobile-pip] { display: none; --bath-mobile-pip-safe-left: env(safe-area-inset-left, 0px); --bath-mobile-pip-safe-right: env(safe-area-inset-right, 0px); --bath-mobile-pip-safe-top: env(safe-area-inset-top, 0px); --bath-mobile-pip-safe-bottom: env(safe-area-inset-bottom, 0px); }
@media (max-width: 740px) {
  .bath-studio [data-bath-mobile-pip]:not([hidden]) {
    position: fixed; z-index: 9; top: var(--bath-mobile-pip-y); left: var(--bath-mobile-pip-x);
    display: block; width: var(--bath-mobile-pip-w); height: var(--bath-mobile-pip-h); margin: 0;
    border: 2px solid #fff; border-radius: 10px; overflow: hidden; box-sizing: border-box;
    background: #e8ede8; box-shadow: 0 3px 14px #172c254f; pointer-events: none;
  }
  .bath-studio [data-bath-mobile-pip] canvas { display: block; width: 100%; height: 100%; object-fit: contain; }
  .bath-studio [data-bath-mobile-pip]:not([hidden]) { pointer-events:auto; touch-action:none; user-select:none; cursor:grab; }
  .bath-studio [data-bath-mobile-pip]:active { cursor:grabbing; }
  [data-bath-mobile-pip-close]:not([hidden]) { position:absolute; top:4px; right:4px; width:36px; height:36px; border:0; border-radius:50%; background:#203d35ef; color:white; font-size:23px; line-height:1; padding:0; cursor:pointer; }
  [data-bath-mobile-pip-close][hidden] { display:none; }
  [data-bath-mobile-pip]:focus-visible { outline:2px solid #fff; }
  [data-bath-mobile-pip] button:focus-visible { outline:2px solid #fff; outline-offset:-3px; }
  body:has(dialog[open]) [data-bath-mobile-pip] { display: none !important; }
}


/* Separate fixture move affordance: orbit and form gestures stay outside the handle. */
.bath-studio .bs-picked-drag { position:absolute; z-index:6; width:44px; height:44px; padding:0; border:0; background:transparent; display:grid; place-items:center; transform:translate(-50%,-50%); touch-action:none; cursor:grab; }
.bath-studio .bs-picked-drag[hidden] { display:none; }
.bath-studio .bs-picked-drag span { display:grid; place-items:center; width:22px; height:22px; border-radius:50%; border:1px solid white; color:white; background:#27443a; box-shadow:0 2px 5px #0006; font:600 15px/1 system-ui; pointer-events:none; }
.bath-studio .bs-picked-drag:active { cursor:grabbing; }

.studio-exit button.studio-home { flex:none; font-size:18px; font-weight:750; letter-spacing:3px; padding:0 4px; }
@media (max-width:740px) { .studio-exit button.studio-home { font-size:24px; min-height:44px; } }
