/* 3D workspace chrome and shared finish-library controls. Native engineering,
   service colours, heat-map ramp and editing constraints remain authoritative. */
.three-finish-tint { display:grid; grid-template-columns:58px minmax(0,1fr) auto; gap:7px; margin:10px 0; align-items:end; }
.three-finish-tint label { display:grid; gap:4px; min-width:0; font-size:11px; }
.three-finish-tint input { width:100%; min-width:0; box-sizing:border-box; min-height:34px; }
.three-finish-tint input[type="color"] { padding:3px!important; }
.three-finish-tint > small { grid-column:1 / -1; }
.three-view-export-studio { box-sizing:border-box; width:min(1120px,calc(100vw - 28px)); max-width:none; max-height:calc(100dvh - 28px); padding:0; border:1px solid var(--menu-border,#aabbcc); border-radius:14px; color:var(--menu-ink,#172238); background:var(--menu-surface,#fff); font:500 14px/1.45 var(--menu-font,system-ui); box-shadow:0 22px 70px #0007; }
.three-view-export-studio::backdrop { background:#07142599; }
.three-view-export-studio[open] { display:flex; flex-direction:column; }
.three-view-export-studio > :is(header,footer) { flex:0 0 auto; display:flex; align-items:center; justify-content:space-between; gap:14px; padding:16px 20px; background:var(--menu-surface,#fff); }
.three-view-export-studio > header { border-bottom:1px solid var(--menu-border,#d0dbe4); }
.three-view-export-studio > footer { border-top:1px solid var(--menu-border,#d0dbe4); }
.three-view-export-studio h2 { font:650 20px/1.3 var(--menu-font,system-ui); margin:0 0 3px; }
.three-view-export-studio p { margin:3px 0; color:var(--menu-muted,#5e6b7d); overflow-wrap:anywhere; }
.three-view-export-body { display:grid; grid-template-columns:260px minmax(0,1fr); min-height:0; overflow:auto; }
.three-view-export-body form { padding:18px; border-right:1px solid var(--menu-border,#d0dbe4); min-width:0; }
.three-view-export-studio fieldset { border:0; padding:0; margin:0 0 14px; min-width:0; display:grid; gap:12px; }
.three-view-export-studio legend { font-weight:650; padding:0 0 10px; }
.three-view-export-studio label { display:grid; gap:5px; min-width:0; }
.three-view-export-studio .three-view-export-check { display:flex; gap:9px; align-items:center; }
.three-view-export-studio .three-view-export-check input { width:17px; height:17px; flex:0 0 17px; margin:0; }
.three-view-export-studio small { color:var(--menu-muted,#5e6b7d); font-size:12px; margin-top:-9px; overflow-wrap:anywhere; }
.three-view-export-studio :is(button,select) { box-sizing:border-box; border:1px solid var(--menu-border-strong,#b4c3d3); background:var(--menu-surface,#fff); color:var(--menu-ink,#172238); border-radius:8px; min-height:38px; padding:7px 10px; font:600 13px/1.4 var(--menu-font,system-ui); max-width:100%; white-space:normal; }
.three-view-export-studio button { cursor:pointer; }
.three-view-export-studio [data-close] { width:36px; font-size:22px; padding:0; flex:0 0 36px; }
.three-view-export-studio [data-download] { background:var(--menu-primary,#087bea); color:#fff; border-color:transparent; min-width:145px; }
.three-view-export-studio button:disabled { opacity:.5; cursor:not-allowed; }
.three-view-export-studio :is(button,select,input):focus-visible { outline:2px solid var(--menu-primary,#087bea); outline-offset:2px; }
.three-view-export-preview { display:grid; align-content:center; padding:20px; background:var(--menu-subtle,#edf1f6); min-height:200px; min-width:0; }
.three-view-export-preview canvas { display:block; width:100%; height:auto; box-shadow:0 3px 16px #0002; }
.three-view-export-entry { padding:16px; border:1px solid var(--menu-border); border-radius:10px; background:var(--menu-subtle); }
.three-view-export-entry h3 { margin:0 0 4px; }.three-view-export-entry p { margin:0 0 12px; }
.three-view-export-entry > div { display:flex; flex-wrap:wrap; gap:8px; }
@media(max-width:700px) { .three-view-export-body { grid-template-columns:1fr; }.three-view-export-body form { border-right:0; border-bottom:1px solid var(--menu-border); }.three-view-export-studio fieldset { grid-template-columns:1fr 1fr; }.three-view-export-studio small { grid-column:1 / -1; }.three-view-export-studio > :is(header,footer) { padding:12px; }.three-view-export-studio footer { flex-wrap:wrap; }.three-view-export-studio footer button { width:100%; } }
/* Always-visible controls are siblings of the replaceable workbench toolbar,
   not an overlay or an open panel: they cannot block native object dragging. */
.three-workspace-v173 > .three-visibility-rail {
  box-sizing:border-box; display:flex; flex:0 0 auto; flex-wrap:wrap; align-items:center; gap:6px 10px;
  min-width:0; max-width:100%; padding:7px 10px; border-bottom:1px solid var(--menu-border);
  background:var(--menu-subtle); color:var(--menu-ink); font:500 12px/1.35 var(--menu-font);
}
.three-workspace-v173 .three-visibility-rail-heading { color:var(--menu-muted); font-weight:650; }
.three-workspace-v173 :is(.three-visibility-rail-layers,.three-visibility-rail-style) { display:flex; flex-wrap:wrap; align-items:center; gap:4px; min-width:0; }
.three-workspace-v173 .three-visibility-rail-style { margin-left:auto; padding-left:8px; border-left:1px solid var(--menu-border); }
.three-finish-library { min-width:0; border:1px solid var(--menu-border); border-radius:8px; padding:9px; margin:8px 0; background:var(--menu-subtle); color:var(--menu-ink); font:500 12px/1.45 var(--menu-font); }
.three-finish-library > summary { cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:8px; font-weight:650; min-height:30px; }
.three-finish-library :is(p,small) { color:var(--menu-muted); font-size:11px; line-height:1.4; font-weight:450; overflow-wrap:anywhere; }
.three-finish-fields { display:grid; gap:9px; margin:10px 0; }
.three-finish-fields label { display:grid; min-width:0; gap:4px; }
.three-finish-fields label > span { font-weight:600; }
.three-finish-fields select { width:100%; min-width:0; max-width:100%; min-height:34px; padding:5px 25px 5px 7px!important; font-size:12px!important; white-space:nowrap; text-overflow:ellipsis; }
.three-finish-category { display:grid; gap:4px; margin:8px 0; font-weight:600; }
.three-finish-category select { min-width:0; width:100%; min-height:34px; font-size:12px!important; padding:5px 25px 5px 8px!important; }
.three-finish-gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin:8px 0; }
.three-finish-library .three-finish-card { box-sizing:border-box; display:grid!important; grid-template-columns:minmax(0,1fr)!important; align-content:start; gap:5px; width:100%; min-width:0; padding:6px!important; border:1px solid var(--menu-border-strong)!important; border-radius:8px; background:var(--menu-surface)!important; color:var(--menu-ink)!important; text-align:left!important; white-space:normal!important; }
.three-finish-card img { width:100%; height:70px; object-fit:cover; display:block; border-radius:5px; background:var(--menu-subtle); border:1px solid var(--menu-border); }
.three-finish-card span { font:550 11px/1.3 var(--menu-font); overflow-wrap:anywhere; }
.three-finish-library .three-finish-card.active { border-color:var(--menu-accent)!important; box-shadow:0 0 0 1px var(--menu-accent)!important; background:var(--menu-selected)!important; }
.three-finish-library .three-finish-card:hover:not(:disabled) { border-color:var(--menu-hover-border)!important; transform:none; }
.three-finish-library .three-finish-auto { width:100%; display:grid!important; gap:3px; padding:7px!important; text-align:left; font-size:12px!important; border-radius:6px; white-space:normal!important; }
.three-finish-auto.active { color:var(--menu-accent); background:var(--menu-selected); }
.three-finish-overrides { border-top:1px solid var(--menu-border); margin-top:10px; padding-top:8px; }
.three-finish-overrides > summary { font-weight:600; cursor:pointer; }
.three-studio-lighting { min-width:0; border:1px solid var(--menu-border); border-radius:8px; margin:8px 0; padding:8px; background:var(--menu-subtle); color:var(--menu-ink); font:500 12px/1.4 var(--menu-font); }
.three-studio-lighting > summary { cursor:pointer; display:flex; align-items:center; justify-content:space-between; min-height:30px; font-weight:600; gap:8px; }
.three-studio-lighting output { color:var(--menu-accent); font-variant-numeric:tabular-nums; }
.three-studio-lighting label { display:grid; margin:8px 0; gap:4px; }
.three-studio-lighting input[type="range"] { width:100%; min-width:0; }
.three-studio-lighting .three-room-light-switch { display:flex; align-items:center; gap:8px; min-height:32px; line-height:1.4; }
.three-studio-lighting .three-room-light-switch input { flex:0 0 auto; width:16px; height:16px; margin:0; }
.three-lighting-presets { display:flex; flex-wrap:wrap; gap:4px; margin:7px 0; }
.three-studio-lighting .three-lighting-presets button { min-width:0; min-height:30px; padding:4px 6px!important; font-size:11px!important; white-space:nowrap; }
.three-lighting-presets button[aria-pressed="true"] { color:var(--menu-accent); background:var(--menu-selected); }
.three-studio-lighting small { display:block; color:var(--menu-muted); font-size:10px; line-height:1.4; }
#plantRoom3dDisplayControls:has(.three-finish-library[open]) { max-height:calc(100% - 24px); overflow:auto; }
@media (pointer:coarse) { .three-finish-library :is(summary,select) { min-height:44px; } }
.three-workspace-v173 .three-visibility-rail button {
  box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; gap:5px; min-width:0; min-height:34px;
  padding:5px 8px; border:1px solid var(--menu-border-strong); border-radius:7px; box-shadow:none;
  background:var(--menu-surface); color:var(--menu-muted); font:600 12px/1.35 var(--menu-font); white-space:nowrap; cursor:pointer;
}
.three-workspace-v173 .three-visibility-rail button:is(.active,[aria-expanded="true"]) { background:var(--menu-selected); border-color:var(--menu-selected-border); color:var(--menu-accent); }
.three-workspace-v173 .three-visibility-rail button:not(:disabled):hover { background:var(--menu-hover); border-color:var(--menu-hover-border); transform:none; }
.three-workspace-v173 .three-visibility-rail button:disabled { opacity:.55; cursor:not-allowed; }
.three-workspace-v173 .three-visibility-rail-state { font-size:10px; font-weight:500; color:var(--menu-muted); }
.three-workspace-v173 .three-visibility-rail button.is-hidden svg { opacity:.5; stroke-dasharray:3 2; }
.three-workspace-v173 :is(.three-visibility-rail,.three-workbench-actions) svg { width:16px; height:16px; flex:0 0 16px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.three-workspace-v173 .three-workbench-actions > :is(.three-workbench-modes,.three-workbench-camera,.three-workbench-model-tasks,.three-workbench-native-actions) { display:flex; flex-wrap:wrap; align-items:center; gap:4px; min-width:0; }
.three-workspace-v173 .three-workbench-modes { padding:2px; border:1px solid var(--menu-border); border-radius:9px; background:var(--menu-subtle); }
.three-workspace-v173 .three-workbench-camera { padding-right:7px; border-right:1px solid var(--menu-border); }
.three-workspace-v173 .three-workbench-precision { box-sizing:border-box; display:flex; flex:1 1 100%; align-items:center; gap:8px; min-width:0; margin:0; padding:6px 8px; border:1px solid var(--menu-border); border-radius:8px; background:var(--menu-subtle); }
.three-workspace-v173 .three-workbench-precision legend { float:left; margin:0; padding:0; color:var(--menu-muted); font:650 11px/1.4 var(--menu-font); }
.three-workspace-v173 .three-workbench-precision .three-direct-controls { display:flex!important; flex:1 1 auto; flex-wrap:wrap; align-items:center; gap:8px 12px; min-width:0; margin:0; }
.three-workspace-v173 .three-workbench-precision .three-direct-controls label { display:flex; flex:0 1 auto; align-items:center; gap:6px; margin:0; font:500 11px/1.4 var(--menu-font); }
.three-workspace-v173 .three-workbench-precision .three-direct-controls select { width:auto; min-height:30px; padding:4px 24px 4px 7px; font-weight:550; }
.three-workspace-v173 .three-workbench-precision .three-direct-controls small { flex:1 1 160px; margin:0; color:var(--menu-muted); font:500 10px/1.4 var(--menu-font); }
.three-workspace-v173 .three-workbench-edit-availability { max-width:320px; color:var(--menu-muted); font:500 10px/1.4 var(--menu-font); }
@media (max-width:1100px) {
  .three-workspace-v173 .three-visibility-rail-state { display:none; }
  .three-workspace-v173 .three-visibility-rail-style { margin-left:0; }
}
@media (max-width:820px) {
  .three-workspace-v173 > .three-visibility-rail { padding:6px 8px; gap:6px; }
  .three-workspace-v173 .three-visibility-rail-heading { flex-basis:100%; }
  .three-workspace-v173 .three-visibility-rail-layers { flex:1 1 100%; }
  .three-workspace-v173 .three-workbench-precision { flex-wrap:wrap; }
}
@media (pointer:coarse), (max-width:760px) {
  .three-workspace-v173 .three-visibility-rail button { min-height:44px; }
  .three-workspace-v173 .three-workbench-precision .three-direct-controls select { min-height:44px; font-size:16px; }
}
.three-workspace-v173 [hidden] { display: none !important; }
.three-workspace-v173 { container-type:inline-size; }
.three-workspace-v173 .three-workbench-mode-short { display:none; }
.three-workspace-v173 .three-workbench-native-menu { position:static; min-width:0; }
.three-workspace-v173 .three-workbench-native-menu > summary { display:flex; align-items:center; justify-content:center; gap:6px; box-sizing:border-box; min-height:34px; padding:6px 9px; border:1px solid var(--menu-border-strong); border-radius:8px; background:var(--menu-surface); color:var(--menu-ink); font:600 12px/1.3 var(--menu-font); cursor:pointer; list-style:none; }
.three-workspace-v173 .three-workbench-native-menu > summary::-webkit-details-marker { display:none; }
.three-workspace-v173 .three-workbench-native-menu > summary:hover { background:var(--menu-hover); border-color:var(--menu-hover-border); }
.three-workspace-v173 .three-workbench-native-menu[open] > summary { background:var(--menu-selected); border-color:var(--menu-selected-border); color:var(--menu-accent); }
.three-workspace-v173 .three-workbench-native-menu > summary:focus-visible { outline:2px solid var(--menu-primary); outline-offset:2px; }
.three-workspace-v173 .three-workbench-native-menu:not([open]) > .three-workbench-native-actions { display:none; }
.three-workspace-v173 .three-workbench-native-menu[open] > .three-workbench-native-actions { display:grid; position:absolute; z-index:40; top:calc(100% + var(--three-visibility-rail-height, 46px) + 8px); right:8px; width:250px; max-width:calc(100% - 16px); max-height:240px; overflow-y:auto; box-sizing:border-box; gap:5px; padding:8px; border:1px solid var(--menu-border); border-radius:9px; background:var(--menu-surface); box-shadow:var(--menu-shadow); }
.three-workspace-v173 .three-workbench-native-menu .three-workbench-native-actions button { justify-content:flex-start; width:100%; }
.workspace.floor-3d-wide:has(> .three-workspace-v173) { grid-template-areas: none; min-width: 0; min-height: 0; gap: 8px; padding: 8px; background: var(--menu-subtle); }
.workspace.floor-3d-wide:has(> .three-workspace-v173) > .left-rail.design-advertising-required-rail { grid-area: auto; min-width: 0; max-width: 100%; }
@media (min-width: 821px) {
  .workspace.floor-3d-wide:has(> .three-workspace-v173) { grid-template-columns: var(--workspace-columns, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); }
  .workspace.floor-3d-wide:has(> .three-workspace-v173) > .inspector { grid-area: auto; min-width: 0; min-height: 0; overflow-y: auto; }
}
.canvas-stage.three-stage.three-workspace-v173 {
  grid-area: auto; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 0; overflow: hidden;
  border: 1px solid var(--menu-border); border-radius: 10px; background: var(--menu-surface); box-shadow: none;
  color: var(--menu-ink); font-family: var(--menu-font);
}
.three-workspace-v173 > .three-workbench-toolbar { position: relative; z-index: 20; display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; min-width: 0; padding: 9px 10px; border-bottom: 1px solid var(--menu-border); background: var(--menu-surface); }
.three-workspace-v173 .three-workbench-head { display: flex; flex: 0 0 auto; align-items: flex-start; justify-content: space-between; gap: 8px 12px; min-width: 0; }
.three-workspace-v173 .three-workbench-head > :not(button) { display: grid; gap: 2px; min-width: 0; margin: 0; }
.three-workspace-v173 .three-workbench-head :is(h1, h2, h3, strong) { margin: 0; color: var(--menu-ink); font: 700 15px/1.3 var(--menu-font); white-space: normal; overflow-wrap: anywhere; }
.three-workspace-v173 .three-workbench-head :is(p, small, span) { margin: 0; color: var(--menu-muted); font: 500 11px/1.4 var(--menu-font); overflow-wrap: anywhere; }
.three-workspace-v173 .three-workbench-toolbar [data-three-workbench-status] { display:block!important; }
.three-workspace-v173 .three-workbench-toolbar > .three-workbench-head > div { display:flex; flex-wrap:wrap; align-items:baseline; gap:3px 12px; }
.three-workspace-v173 .three-workbench-toolbar > .three-workbench-head { flex: 1 1 220px; align-items: center; }
.three-workspace-v173 .three-workbench-actions { position:static; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; max-width: 100%; }
.three-workspace-v173 .three-workbench-quick-views {
  display: inline-flex; align-items: center; gap: 2px; padding: 2px;
  border: 1px solid var(--menu-border); border-radius: 9px; background: var(--menu-subtle);
}
.three-workspace-v173 .three-workbench-actions .three-workbench-quick-views button { border-color: transparent; background: transparent; }
.three-workspace-v173 .three-workbench-quick-views svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.three-workspace-v173 .three-workbench-dimensions {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0;
}
.three-workspace-v173 .three-workbench-dimensions > div { display: grid; gap: 2px; min-width: 0; padding: 6px 8px; border: 1px solid var(--menu-border); border-radius: 7px; background: var(--menu-subtle); }
.three-workspace-v173 .three-workbench-dimensions dt { color: var(--menu-muted); font-size: 10px; }
.three-workspace-v173 .three-workbench-dimensions dd { margin: 0; color: var(--menu-ink); font-size: 12px; font-weight: 780; overflow-wrap: anywhere; }
.three-workspace-v173 :is(.three-workbench-actions, .three-workbench-controls, .three-workbench-selection) button,
.three-workspace-v173 .three-workbench-row {
  box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 34px; height: auto; padding: 6px 9px;
  border: 1px solid var(--menu-border-strong); border-radius: 8px; background: var(--menu-surface); color: var(--menu-ink); box-shadow: none;
  font: 600 12px/1.3 var(--menu-font); white-space: normal; text-align: center; cursor: pointer; transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.three-workspace-v173 :is(.three-workbench-actions, .three-workbench-controls, .three-workbench-selection) button svg { flex: 0 0 16px; width: 16px; height: 16px; color: currentColor; }
.three-workspace-v173 :is(.three-workbench-actions, .three-workbench-controls, .three-workbench-selection) button:not(:disabled):not([aria-disabled="true"]):hover,
.three-workspace-v173 .three-workbench-row:not(:disabled):not([aria-disabled="true"]):hover { background: var(--menu-hover); border-color: var(--menu-hover-border); color: var(--menu-ink); transform: none; }
.three-workspace-v173 :is(.three-workbench-actions, .three-workbench-controls, .three-workbench-selection) button:is(.active, [aria-pressed="true"], [aria-expanded="true"]) { background: var(--menu-selected); border-color: var(--menu-selected-border); color: var(--menu-accent); }
.three-workspace-v173 :is(.three-workbench-actions, .three-workbench-controls, .three-workbench-selection) button:is(.active, [aria-pressed="true"], [aria-expanded="true"]):not(:disabled):hover { background: var(--menu-selected-hover); border-color: var(--menu-hover-border); color: var(--menu-accent); }
.three-workspace-v173 :is(.three-workbench-actions, .three-workbench-controls, .three-workbench-selection) button:is(:disabled, [aria-disabled="true"]),
.three-workspace-v173 .three-workbench-row:disabled { background: var(--menu-subtle); border-color: var(--menu-border); color: var(--menu-muted); cursor: not-allowed; opacity: .65; }
.three-workspace-v173 :is(button, input, select):focus-visible { outline: 2px solid var(--menu-primary); outline-offset: 2px; }
.three-workspace-v173 .three-workbench-head > button {
  box-sizing: border-box; display: grid; flex: 0 0 32px; place-items: center; width: 32px; min-width: 32px; height: 32px; min-height: 32px; margin: 0; padding: 0 !important;
  border: 1px solid var(--menu-border-strong); border-radius: 8px; background: var(--menu-surface); color: var(--menu-muted); box-shadow: none; font: 650 18px/1 var(--menu-font);
}
.three-workspace-v173 .three-workbench-head > button svg { width: 16px; height: 16px; }
.three-workspace-v173 .three-workbench-head > button:hover { background: var(--menu-hover); border-color: var(--menu-hover-border); color: var(--menu-ink); }

.workspace.floor-3d-wide .three-workspace-v173 > .three-workspace { flex: 1 1 auto; min-width: 0; min-height: 0; margin: 6px; border: 1px solid var(--menu-border); border-radius: 8px; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.three-workspace-v173 .three-canvas { min-width: 0; min-height: 0; }
.three-workspace-v173 .three-hud { display: none !important; }
.three-workspace-v173 .three-overlay-layout { inset: 10px max(10px, var(--three-visibility-screen-inset, 56px)) 10px 10px; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 10px; }
.three-workspace-v173 .three-workspace[data-google-earth-3d-mode="photorealistic"] .three-overlay-layout { bottom: 32px; }
.three-workspace-v173 .three-context-dock { max-width: 260px; }
.three-workspace-v173 .three-overlay-dock { gap: 8px; }
.three-workspace-v173:not(.three-display-open) .three-visibility-controls { display: none !important; }
.three-workspace-v173 .three-workspace .three-overlay-layout > .three-overlay-dock > .three-visibility-controls {
  display: grid; flex: 0 1 auto; width: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; gap: 8px; padding: 10px;
  border: 1px solid var(--menu-border) !important; border-radius: 10px !important; background: var(--menu-surface) !important; color: var(--menu-ink); box-shadow: var(--menu-shadow) !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important; font: 650 12px/1.4 var(--menu-font); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
}
.three-workspace-v173 .three-workspace .three-visibility-controls .three-visibility-head { top: -10px; gap: 8px; padding: 6px 0; background: var(--menu-surface); }
.three-workspace-v173 .three-workspace .three-visibility-title,
.three-workspace-v173 .three-workspace .three-visibility-title:hover { min-width: 0; width: auto; max-width: none; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--menu-ink); text-transform: none; letter-spacing: 0; }
.three-workspace-v173 .three-workspace .three-visibility-title strong { color: var(--menu-ink); font: 850 15px/1.3 var(--menu-font); }
.three-workspace-v173 .three-workspace .three-visibility-title span { color: var(--menu-muted); font: 650 11px/1.4 var(--menu-font); }
.three-workspace-v173 .three-workspace .three-visibility-collapse { width: 32px; min-width: 32px; height: 32px; min-height: 32px; padding: 0; background: var(--menu-surface); border-color: var(--menu-border-strong); color: var(--menu-muted); }
.three-workspace-v173 .three-workspace .three-view-switch { min-width: 0; padding: 3px; border-color: var(--menu-border); border-radius: 8px; background: var(--menu-subtle); }
.three-workspace-v173 .three-workspace .three-visibility-controls .three-view-switch button { min-width: 0; min-height: 32px; padding: 5px 7px; color: var(--menu-ink); font: 760 12px/1.3 var(--menu-font); }
.three-workspace-v173 .three-workspace .three-visibility-controls .three-view-switch button.active { background: var(--menu-selected); color: var(--menu-accent); box-shadow: none; }
.three-workspace-v173 .three-workspace .three-visibility-list { min-width: 0; gap: 6px; }
.three-workspace-v173 .three-workspace :is(.three-visibility-control, .three-visibility-map-control) { grid-template-columns: 76px minmax(0, 1fr) 36px; gap: 7px; min-width: 0; padding: 6px; border-color: var(--menu-border); border-radius: 8px; background: var(--menu-subtle); box-shadow: none; }
.three-workspace-v173 .three-workspace .three-visibility-controls .three-visibility-control > button { min-width: 0; min-height: 32px; padding: 5px 7px; background: var(--menu-selected); border-color: var(--menu-selected-border); color: var(--menu-accent); font: 760 12px/1.3 var(--menu-font); }
.three-workspace-v173 .three-workspace .three-visibility-controls .three-visibility-control > button:not(.active) { background: var(--menu-surface); border-color: var(--menu-border-strong); color: var(--menu-muted); }
.three-workspace-v173 .three-workspace :is(.three-visibility-control-label, .three-visibility-control strong) { color: var(--menu-ink); font: 760 11px/1.4 var(--menu-font); }
.three-workspace-v173 .three-workspace :is(.three-visibility-site-note, .three-presentation-controls > small) { min-width: 0; color: var(--menu-muted); font: 650 11px/1.4 var(--menu-font); white-space: normal; overflow-wrap: anywhere; }
.three-workspace-v173 .three-presentation-controls { min-width: 0; gap: 5px; }
.three-workspace-v173 .three-presentation-controls > span { color: var(--menu-muted); font: 760 11px/1.35 var(--menu-font); }
.three-workspace-v173 .three-workspace .three-overlay-layout > .three-overlay-dock > .network-performance-heat-map-legend { max-height: min(150px, 32%); border-color: var(--menu-border); border-radius: 10px; background: var(--menu-surface); box-shadow: var(--menu-shadow); color: var(--menu-ink); font-family: var(--menu-font); }

.three-workspace-v173 :is(.three-workbench-popover, .three-workbench-selection) { box-sizing: border-box; position: absolute; z-index: 25; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px; border: 1px solid var(--menu-border); border-radius: 10px; background: var(--menu-surface); color: var(--menu-ink); box-shadow: var(--menu-shadow); font: 650 12px/1.4 var(--menu-font); }
.three-workspace-v173 .three-workbench-popover { top: 10px; left: 50%; transform: translateX(-50%); width: min(420px, calc(100% - 20px)); max-width: calc(100% - 20px); max-height: calc(100% - 20px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.three-workspace-v173 .three-workbench-controls { display: grid; flex: 0 0 auto; grid-template-columns: minmax(0, 1fr); gap: 7px; min-width: 0; }
.three-workspace-v173 .three-workbench-controls label { display: grid; align-content: start; gap: 3px; min-width: 0; margin: 0; }
.three-workspace-v173 .three-workbench-controls label > span { color: var(--menu-muted); font: 760 11px/1.35 var(--menu-font); text-transform: none; letter-spacing: 0; }
.three-workspace-v173 .three-workbench-controls :is(input, select):not([type="checkbox"]):not([type="radio"]):not([type="range"]) { box-sizing: border-box; min-width: 0; width: 100%; min-height: 34px; height: 34px; padding: 6px 9px; border: 1px solid var(--menu-border-strong); border-radius: 8px; background: var(--menu-surface); color: var(--menu-ink); box-shadow: none; font: 650 12px/1.4 var(--menu-font); }
.three-workspace-v173 .three-workbench-controls select:not(:disabled):is(:hover, :focus-visible) { background: var(--menu-selected); border-color: var(--menu-selected-border); }
.three-workspace-v173 .three-workbench-controls select option { background: var(--menu-surface); color: var(--menu-ink); }
.three-workspace-v173 .three-workbench-controls select option:checked { background: var(--menu-selected); color: var(--menu-accent); }
.three-workspace-v173 .three-workbench-controls input[type="range"] { min-width: 0; width: 100%; accent-color: var(--menu-primary); }
.three-workspace-v173 .three-workbench-controls:has(input[type="search"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-workspace-v173 .three-workbench-controls > label:has(input[type="search"]) { grid-column: 1 / -1; }
.three-workspace-v173 .three-workbench-controls > div { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.three-workspace-v173 :is(.three-workbench-list, .three-workbench-results) { display: grid; gap: 6px; min-width: 0; }
.three-workspace-v173 .three-workbench-results { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.three-workspace-v173 .three-workbench-list { flex: 0 0 auto; }
.three-workspace-v173 .three-workbench-row { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; justify-content: stretch; justify-items: start; gap: 3px; width: 100%; padding: 8px 10px; border-color: var(--menu-border); text-align: left; overflow-wrap: anywhere; }
.three-workspace-v173 .three-workbench-row :is(strong, span) { min-width: 0; max-width: 100%; color: var(--menu-ink); font: 760 12px/1.35 var(--menu-font); }
.three-workspace-v173 .three-workbench-row small { min-width: 0; color: var(--menu-muted); font: 650 11px/1.4 var(--menu-font); }
.three-workspace-v173 :is(.three-workbench-hint, .three-workbench-message, .three-workbench-results > p[role="status"]) { margin: 0; min-width: 0; color: var(--menu-muted); font: 650 11px/1.45 var(--menu-font); overflow-wrap: anywhere; }
.three-workspace-v173 .three-workbench-message:empty { display: none; }
.three-workspace-v173 .three-workbench-toolbar > .three-workbench-message { position:absolute; top:calc(100% + 120px); left:10px; width:fit-content; max-width:min(280px,calc(100% - 20px)); box-sizing:border-box; padding:4px 8px; border:1px solid var(--menu-border); border-radius:6px; background:var(--menu-surface); pointer-events:none; }
.three-workspace-v173 .three-workbench-selection { left: 10px; bottom: 10px; width: min(350px, calc(100% - 76px)); max-width: calc(100% - 76px); max-height: min(220px, 42%); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.three-workspace-v173 .three-workbench-selection > :is(strong, h3) { margin: 0; font: 760 13px/1.35 var(--menu-font); overflow-wrap: anywhere; }
.three-workspace-v173 [data-three-action="edit"] { background:var(--menu-primary); color:white; border-color:var(--menu-primary); }
.workspace > .three-design-editor, .three-workspace-v173 .three-workspace > .three-design-editor { box-sizing:border-box; grid-area:auto; min-width:0; min-height:0; max-width:100%; overflow:auto; padding:12px; border:1px solid var(--menu-border); border-radius:10px; background:var(--menu-surface); color:var(--menu-ink); font:500 12px/1.45 var(--menu-font); overscroll-behavior:contain; }
.three-design-editor > header { display:flex; justify-content:space-between; gap:8px; align-items:center; }
.three-design-editor > header div { min-width:0; display:grid; gap:3px; }
.three-design-editor > header strong { font:750 15px/1.3 var(--menu-font); overflow-wrap:anywhere; }
.three-design-editor small,.three-design-editor .three-edit-status { font:500 11px/1.45 var(--menu-font); color:var(--menu-muted); }
.three-design-editor button,.three-design-editor input,.three-design-editor select { box-sizing:border-box; min-width:0; max-width:100%; min-height:32px; border:1px solid var(--menu-border-strong); border-radius:7px; background:var(--menu-surface); color:var(--menu-ink); padding:6px 9px; font:600 12px/1.35 var(--menu-font); box-shadow:none; }
.three-design-editor button { cursor:pointer; }
.three-design-editor button:disabled { cursor:not-allowed; opacity:.5; }
.three-design-editor :is(button,input,select):focus-visible { outline:2px solid var(--menu-primary); outline-offset:2px; }
.three-design-editor [data-three-edit-close] { width:32px; flex:none; padding:0; font-size:20px; }
.three-workspace-v173 .three-workspace > .three-design-editor { position:absolute; z-index:26; top:8px; right:8px; bottom:8px; width:min(320px,calc(100% - 16px)); max-width:calc(100% - 16px); max-height:calc(100% - 16px); margin:0; }
.three-workspace-v173:has(.three-design-editor) .three-workbench-selection { display:none; }
.three-design-native #openPlantRoomProductLibrary { display:none; }
.three-edit-placement { margin:10px 0; border:1px solid var(--menu-border); border-radius:8px; padding:10px; background:var(--menu-subtle); }
.three-edit-placement summary { cursor:pointer; font-weight:700; }
.three-edit-placement form { display:grid; gap:9px; margin-top:9px; }
.three-edit-placement label { display:grid; gap:4px; min-width:0; }
.three-edit-coordinates { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.three-edit-actions { display:flex; flex-wrap:wrap; gap:6px; }
.three-direct-controls { display:grid!important; grid-template-columns:1fr 1fr; gap:8px; margin-top:9px; font:500 12px/1.4 var(--menu-font); }
.three-direct-controls label { display:grid; gap:3px; min-width:0; color:var(--menu-muted); }
.three-direct-controls select { min-width:0; width:100%; padding:5px; border:1px solid var(--menu-border); border-radius:6px; background:var(--menu-surface); color:var(--menu-ink); font:600 12px/1.4 var(--menu-font); }
.three-direct-controls .three-direct-align { grid-column:1/-1; display:flex; align-items:center; gap:6px; }
.three-direct-controls small { grid-column:1/-1; }
.three-direct-handles { position:absolute; inset:0; pointer-events:none; z-index:12; }
.three-direct-handles button { position:absolute; width:14px; height:14px; min-width:0; min-height:0; padding:0; transform:translate(-50%,-50%); border:2px solid white; border-radius:50%; background:#168cff; box-shadow:0 0 0 1px #0868c8; cursor:grab; pointer-events:auto; touch-action:none; }
.three-direct-handles button.is-connected { background:#82909e; cursor:not-allowed; }
.three-direct-handles button[hidden] { display:none; }
.three-workbench-selection { max-height:calc(100% - 120px); overflow:auto; }
.three-design-native > :is(aside,section,div) { box-sizing:border-box; position:static!important; inset:auto!important; width:100%!important; max-width:100%!important; height:auto!important; min-height:0!important; margin:0!important; padding:0!important; border:0!important; box-shadow:none!important; transform:none!important; }
.three-design-native .panel-head { display:none; }
.three-design-native :is(.settings-grid,.compact-field-grid,.heat-emitter-placement-grid) { grid-template-columns:repeat(2,minmax(0,1fr)); }
.three-design-native :is(.field,.settings-field) { min-width:0; font:600 12px/1.4 var(--menu-font); }
.three-design-native :is(.field-note,small) { font:500 11px/1.45 var(--menu-font); }
.three-design-native .room-objects-section { display:none; }
.three-workspace-v173 .three-workbench-selection > :is(span, p, small) { margin: 0; color: var(--menu-muted); font: 650 11px/1.4 var(--menu-font); overflow-wrap: anywhere; }
.three-workspace-v173 .three-workbench-selection > div:not(.three-workbench-head) { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.three-workspace-v173 .three-workspace[data-google-earth-3d-mode="photorealistic"] .three-workbench-selection { bottom: 32px; }
.three-workspace-v173:has(.three-workbench-popover) .three-workbench-selection { display: none; }
.three-workspace-v173 .three-empty { box-sizing: border-box; min-width: 0; width: min(340px, calc(100% - 24px)); max-width: calc(100% - 24px); padding: 16px; border-color: var(--menu-border); border-radius: 10px; background: var(--menu-surface); color: var(--menu-ink); box-shadow: var(--menu-shadow); backdrop-filter: none; -webkit-backdrop-filter: none; }
.three-workspace-v173 .three-empty strong { color: var(--menu-ink); font: 850 15px/1.35 var(--menu-font); }
.three-workspace-v173 .three-empty span { color: var(--menu-muted); font: 650 12px/1.4 var(--menu-font); }
html .canvas-stage.three-stage.three-workspace-v173 > .canvas-status { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 28px; height: auto; padding: 5px 10px; border-top: 1px solid var(--menu-border); background: var(--menu-subtle); color: var(--menu-muted); font: 650 10px/1.35 var(--menu-font); backdrop-filter: none; -webkit-backdrop-filter: none; }
.three-workspace-v173 > .canvas-status > span { min-width: 0; white-space: normal; overflow-wrap: anywhere; }

/* Yield floating launcher buttons only while the user's explicit model panel
   is open. Existing conversations, comments and their drafts are untouched. */
body:has(.three-workspace-v173.three-display-open) :is(.workspace-assistant-launcher, .my-day-designer-comments-toggle),
body:has(.three-workspace-v173 .three-workbench-popover) :is(.workspace-assistant-launcher, .my-day-designer-comments-toggle) { visibility: hidden !important; pointer-events: none !important; }
html[data-workspace="three"]:has(.three-workspace-v173) .three-bottombar { box-sizing: border-box; display: flex; flex-wrap: wrap; gap: 6px 12px; min-width: 0; width: 100%; padding: 7px 10px; background: var(--menu-surface); border-color: var(--menu-border); box-shadow: none; }
html[data-workspace="three"]:has(.three-workspace-v173) .three-bottombar > :is(.bottom-tools, .view-tools) { min-width: 0; max-width: 100%; flex-wrap: wrap; gap: 5px; }
html[data-workspace="three"]:has(.three-workspace-v173) .three-bottombar button { min-width: 0; min-height: 32px; padding: 5px 8px; font: 760 12px/1.3 var(--menu-font); white-space: normal; }
html[data-workspace="three"]:has(.three-workspace-v173) .three-bottombar :is(label, select) { min-width: 0; max-width: 100%; font-family: var(--menu-font); }
html[data-workspace="three"]:has(.three-workspace-v173) .three-bottombar .heat-map-mode-menu { box-sizing: border-box; flex: 0 1 auto; min-height: 34px; height: auto; gap: 5px; border-color: var(--menu-border); border-radius: 8px; background: var(--menu-subtle); box-shadow: none; }
html[data-workspace="three"]:has(.three-workspace-v173) .three-bottombar .heat-map-mode-menu > span { flex: 0 0 auto; color: var(--menu-muted); font: 760 11px/1.35 var(--menu-font); }
html[data-workspace="three"]:has(.three-workspace-v173) .three-bottombar :is(#heatMapModeSelect, #threeFloorViewSelect) { flex: 1 1 auto; width: auto; min-width: 0; max-width: 260px; height: 30px; color: var(--menu-ink); background-color: var(--menu-surface); font: 650 12px/1.35 var(--menu-font); }

@container (max-width: 760px) {
  .three-workspace-v173 .three-overlay-layout { display: flex; flex-direction: column; gap: 8px; }
  .three-workspace-v173 .three-context-dock { max-height: 28%; }
  .three-workspace-v173 .three-overlay-dock { width: min(340px, 100%); }
  .three-workspace-v173.three-display-open .three-workbench-selection { display: none; }
  .three-workspace-v173:has(.network-performance-heat-map-legend) .three-workbench-selection { top: 8px; bottom: auto; max-height: 40%; }
}
@media (min-width: 821px) {
  html .canvas-stage.three-stage.three-workspace-v173 > .canvas-status { padding-right: 68px; }
}
@media (max-width: 820px) {
  html[data-workspace="three"]:has(.three-workspace-v173), html[data-workspace="three"]:has(.three-workspace-v173) body { overflow: auto; }
  html[data-workspace="three"]:has(.three-workspace-v173) .studio-shell { height: auto; min-height: 100dvh; overflow: visible; grid-template-rows: auto auto minmax(0, 1fr) auto; }
  .workspace.floor-3d-wide:has(> .three-workspace-v173) { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; padding: 6px; overflow: visible; }
  .workspace.floor-3d-wide:has(> .three-workspace-v173) > .left-rail.design-advertising-required-rail { order: 1; }
  .canvas-stage.three-stage.three-workspace-v173 { grid-area: auto; min-width: 0; min-height: 480px; }
  .three-workspace-v173 > .three-workbench-toolbar { gap: 7px; padding: 8px; }
  .three-workspace-v173 .three-workbench-toolbar > .three-workbench-head { flex-basis: 100%; }
  .three-workspace-v173 .three-workbench-head :is(h1, h2, h3, strong) { font-size: 14px; }
  .three-workspace-v173 .three-workbench-actions { gap: 5px; width: 100%; }
  .three-workspace-v173 .three-workbench-actions > button { padding: 6px 8px; font-size: 11px; }
  .workspace.floor-3d-wide .three-workspace-v173 > .three-workspace { min-height: 340px; margin: 5px; }
  .three-workspace-v173 .three-overlay-layout { inset: 8px 8px 8px; }
  .three-workspace-v173.three-display-open .three-context-dock { display: none; }
  .three-workspace-v173 .three-workbench-popover { top: 8px; width: calc(100% - 16px); max-width: calc(100% - 16px); max-height: calc(100% - 16px); gap: 6px; padding: 10px; }
  .three-workspace-v173 .three-workbench-controls { gap: 5px; }
  .three-workspace-v173 .three-workbench-selection { left: 8px; bottom: 8px; max-height: 44%; padding: 9px; gap: 6px; }
  .three-workspace-v173 .three-workspace .three-overlay-layout > .three-overlay-dock > .network-performance-heat-map-legend { max-height: 108px; }
  html[data-workspace="three"]:has(.three-workspace-v173) .three-bottombar { position: relative; bottom: auto; height: auto; justify-content: flex-start; padding: 7px 8px calc(7px + env(safe-area-inset-bottom, 0px)); }
  html[data-workspace="three"]:has(.three-workspace-v173) .three-bottombar > :is(.bottom-tools, .view-tools) { flex: 1 1 100%; width: 100%; overflow: visible; }
  html[data-workspace="three"]:has(.three-workspace-v173) .three-bottombar .heat-map-mode-menu { flex: 1 1 100%; width: 100%; }
  html[data-workspace="three"]:has(.three-workspace-v173) .three-bottombar :is(#heatMapModeSelect, #threeFloorViewSelect) { width: 0; max-width: 100%; }
}
@media (pointer: coarse) {
  /* Keep the point marker precise while giving fingers a full-size hit area. */
  .three-direct-handles button { width:44px; height:44px; border:0; background:transparent; box-shadow:none; }
  .three-direct-handles button::after { content:""; position:absolute; left:50%; top:50%; width:14px; height:14px; box-sizing:border-box; transform:translate(-50%,-50%); border:2px solid white; border-radius:50%; background:#168cff; box-shadow:0 0 0 1px #0868c8; pointer-events:none; }
  .three-direct-handles button.is-connected::after { background:#82909e; }
  .three-workspace-v173 :is(.three-workbench-actions, .three-workbench-controls, .three-workbench-selection) button, .three-workspace-v173 .three-workbench-row { min-height: 44px; }
  .three-workspace-v173 .three-workbench-head > button, .three-workspace-v173 .three-workspace .three-visibility-collapse { flex-basis: 44px; width: 44px; min-width: 44px; min-height: 44px; height: 44px; }
  .three-workspace-v173 .three-workbench-controls :is(input, select):not([type="checkbox"]):not([type="radio"]):not([type="range"]) { height: 44px; min-height: 44px; font-size: 16px; }
  .three-workspace-v173 .three-workspace .three-visibility-controls :is(.three-view-switch button, .three-visibility-control > button) { min-height: 44px; }
  .three-workspace-v173 .three-workspace .three-visibility-control input[type="range"] { height: 44px; }
  .three-workspace-v173 .three-workspace .three-visibility-site-clearance input { min-height: 44px; font-size: 16px; }
  html[data-workspace="three"]:has(.three-workspace-v173) .three-bottombar :is(button, select) { min-height: 44px; }
  html[data-workspace="three"]:has(.three-workspace-v173) .three-bottombar :is(#heatMapModeSelect, #threeFloorViewSelect) { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .three-workspace-v173 :is(.three-workbench-actions, .three-workbench-controls, .three-workbench-selection) button, .three-workspace-v173 .three-workbench-row { transition: none; }
}

/* A split viewport is narrow even on a wide monitor. Respond to the actual
   model-pane width, not the screen width, and leave the model usable. */
@container (max-width:900px) {
  .three-workspace-v173 > .three-workbench-toolbar { gap:4px; padding:6px; }
  .three-workspace-v173 .three-workbench-toolbar > .three-workbench-head { flex-basis:100%; }
  .three-workspace-v173 .three-workbench-toolbar > .three-workbench-head strong { max-width:45%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:12px; }
  .three-workspace-v173 .three-workbench-toolbar [data-three-workbench-status] { flex:1; min-width:100px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:10px; }
  .three-workspace-v173 .three-workbench-actions { gap:4px; width:100%; }
  .three-workspace-v173 .three-workbench-actions > :is(.three-workbench-camera,.three-workbench-model-tasks) { gap:3px; }
  .three-workspace-v173 .three-workbench-camera { padding-right:4px; }
  .three-workspace-v173 :is(.three-workbench-camera,.three-workbench-model-tasks) button { width:30px; min-width:30px; padding:6px; }
  .three-workspace-v173 :is(.three-workbench-camera,.three-workbench-model-tasks) button > span,
  .three-workspace-v173 .three-workbench-native-menu > summary > span,
  .three-workspace-v173 .three-workbench-mode-full { display:none; }
  .three-workspace-v173 .three-workbench-mode-short { display:inline; }
  .three-workspace-v173 .three-workbench-modes button { gap:4px; padding:6px; font-size:11px; }
  .three-workspace-v173 .three-workbench-native-menu > summary { width:32px; min-width:32px; padding:6px; }
  .three-workspace-v173 .three-workbench-precision { gap:4px; padding:4px 6px; }
  .three-workspace-v173 .three-workbench-precision legend { display:none; }
  .three-workspace-v173 .three-workbench-precision .three-direct-controls { gap:4px 8px; }
  .three-workspace-v173 .three-workbench-precision .three-direct-controls label { gap:4px; font-size:10px; }
  .three-workspace-v173 .three-workbench-precision .three-direct-controls small { display:none; }
  .three-workspace-v173 .three-workbench-precision .three-direct-controls .three-direct-align { white-space:nowrap; }
  .three-workspace-v173 .three-visibility-rail { gap:5px; padding:6px; }
  .three-workspace-v173 .three-visibility-rail-heading { display:none; }
  .three-workspace-v173 .three-visibility-rail-layers { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); width:100%; flex-basis:100%; gap:4px; }
  .three-workspace-v173 .three-visibility-rail-layers button { display:grid; align-content:center; gap:1px; min-width:0; min-height:38px; padding:3px; font-size:11px; }
  .three-workspace-v173 .three-visibility-rail-layers button svg { display:none; }
  .three-workspace-v173 .three-visibility-rail-state { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; font-size:9px; line-height:1.2; }
  .three-workspace-v173 .three-visibility-rail-style { margin-left:0; padding-left:0; border-left:0; }
  .three-workspace-v173 .three-visibility-rail-style button,
  .three-workspace-v173 .three-visibility-rail-details { min-height:30px; padding:4px 7px; font-size:11px; }
  .three-workspace-v173 .three-visibility-rail-details { margin-left:auto; }
  .three-workspace-v173 .three-workbench-selection { padding:8px; gap:5px; }
  .three-workspace-v173 .three-workbench-selection > strong { order:-3; }
  .three-workspace-v173 .three-workbench-selection > small:first-of-type { order:-2; }
  .three-workspace-v173 .three-workbench-selection > div:has([data-three-action="frame"]) { order:-1; }
}
@media (pointer:coarse), (max-width:760px) {
  .three-workspace-v173 .three-workbench-native-menu > summary { min-height:44px; }
  .three-workspace-v173 .three-visibility-rail button { min-height:44px; }
}
@media (max-width:820px) {
  /* Native linked views wrap the stage. Let the page grow rather than force
     toolbar + controls + canvas into a short fixed desktop grid row. */
  html:has(.three-workspace-v173), body:has(.three-workspace-v173) { overflow:auto!important; }
  body:has(.three-workspace-v173) #app { height:auto!important; min-height:100dvh; overflow:visible!important; }
  body:has(.three-workspace-v173) .studio-shell { height:auto!important; min-height:100dvh; overflow:visible!important; grid-template-rows:auto auto minmax(0,1fr) auto; }
  .workspace:has(.three-workspace-v173) { height:auto!important; min-height:0; overflow:visible!important; }
  .workspace:has(.three-workspace-v173) > .design-view-layout { height:auto!important; min-height:0; overflow:visible!important; grid-auto-rows:auto; }
  .design-view-model:has(.three-workspace-v173) { height:auto!important; min-height:0; overflow:visible!important; }
  html .design-view-model > .three-workspace-v173 { height:auto!important; min-height:580px!important; overflow:visible!important; }
  html .three-workspace-v173 > .three-workspace { flex:1 0 340px!important; height:340px!important; min-height:340px!important; }
  .three-workspace-v173 > .three-visibility-rail { position:sticky; top:var(--three-sticky-visibility-top,0px); z-index:30; }
}

/* Split pane density is measured by the retained layout, not media queries.
   One primary action row plus one compact visibility row leaves the model
   readable. Native extras/precision are moved (never cloned) into More. */
.design-view-pane .three-workspace-v173.three-pane-compact > .three-workbench-toolbar { display:flex;flex-wrap:nowrap;align-items:center;gap:4px;padding:5px 6px; }
.three-pane-compact.three-workspace-v173 .three-workbench-toolbar > .three-workbench-head { position:absolute;left:0;top:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
.three-pane-compact.three-workspace-v173 .three-workbench-actions { display:flex;flex-wrap:nowrap;gap:4px;width:100%;min-width:0; }
.three-pane-compact.three-workspace-v173 .three-workbench-actions > :is(.three-workbench-modes,.three-workbench-camera,.three-workbench-model-tasks) { flex:0 0 auto;flex-wrap:nowrap;gap:3px; }
.three-pane-compact.three-workspace-v173 .three-workbench-camera { padding-right:0;border:0; }
.three-pane-compact.three-workspace-v173 .three-workbench-quick-views { padding:0;border:0;background:transparent; }
.three-pane-compact.three-workspace-v173 .three-workbench-actions :is(button,summary) { box-sizing:border-box;min-height:32px;white-space:nowrap; }
.three-pane-compact.three-workspace-v173 .three-workbench-actions :is(.three-workbench-modes,.three-workbench-camera,.three-workbench-model-tasks) button { width:32px;min-width:32px;padding:5px;gap:0; }
.three-pane-compact.three-workspace-v173 .three-workbench-actions :is(.three-workbench-modes,.three-workbench-camera,.three-workbench-model-tasks) button > span { display:none; }
.three-pane-compact.three-workspace-v173 .three-workbench-native-menu { margin-left:auto;flex:0 0 auto; }
.three-pane-compact.three-workspace-v173 .three-workbench-native-menu > summary { width:32px;min-width:32px;padding:5px; }
.three-pane-compact.three-workspace-v173 .three-workbench-native-menu > summary > span { display:none; }
.three-pane-compact.three-workspace-v173 .three-workbench-actions > [data-workspace-tools-open] { flex:0 0 auto;order:1;min-width:48px;padding:5px 8px;font-size:11px; }
.three-pane-compact.three-workspace-v173 .three-workbench-native-menu[open] > .three-workbench-native-actions { top:calc(100% + var(--three-visibility-rail-height,34px) + 6px);width:min(320px,calc(100% - 16px));max-width:calc(100% - 16px);max-height:min(320px,max(0px,calc(100dvh - 420px)));gap:6px; }
.three-pane-compact.three-workspace-v173 .three-workbench-native-actions > :is(button,.three-visibility-rail-style) { width:100%;min-width:0; }
.three-pane-compact.three-workspace-v173 .three-workbench-native-actions > button { justify-content:flex-start;gap:7px;white-space:normal; }
.three-pane-compact.three-workspace-v173 .three-workbench-native-actions .three-workbench-precision { display:grid;gap:6px;padding:8px;margin:4px 0; }
.three-pane-compact.three-workspace-v173 .three-workbench-native-actions .three-workbench-precision legend { display:block;float:none; }
.three-pane-compact.three-workspace-v173 .three-workbench-native-actions .three-direct-controls { display:grid!important;gap:8px; }
.three-pane-compact.three-workspace-v173 .three-workbench-native-actions .three-direct-controls label { display:flex;justify-content:space-between;min-width:0;font-size:11px; }
.three-pane-compact.three-workspace-v173 .three-workbench-native-actions .three-direct-controls small { display:block; }
.three-pane-compact.three-workspace-v173 .three-workbench-native-actions .three-visibility-rail-style { display:flex;flex-wrap:wrap;margin:0;padding:0;border:0; }
.three-pane-compact.three-workspace-v173 > .three-visibility-rail { display:flex;flex-wrap:nowrap;gap:4px;padding:4px 6px;min-width:0; }
.three-pane-compact.three-workspace-v173 .three-visibility-rail-heading { display:none; }
.three-pane-compact.three-workspace-v173 .three-visibility-rail-layers { display:flex;flex-wrap:nowrap;flex:1 1 auto;gap:3px;width:auto;min-width:0; }
.three-pane-compact.three-workspace-v173 .three-visibility-rail-layers button { display:flex;flex:1 1 0;gap:0;min-width:0;min-height:28px;padding:4px 2px;font-size:10px;white-space:nowrap; }
.three-pane-compact.three-workspace-v173 .three-visibility-rail-layers :is(svg,.three-visibility-rail-state) { display:none; }
.three-pane-compact.three-workspace-v173 .three-visibility-rail > [data-three-visibility-details] { flex:0 0 28px;min-width:28px;min-height:28px;width:28px;padding:4px; }
.three-pane-compact.three-workspace-v173 .three-visibility-rail > [data-three-visibility-details] > span { display:none; }
.workspace:has(> .workspace-split-design-editor) .three-workbench-selection { display:none; }
@media(pointer:coarse){.three-pane-compact.three-workspace-v173 .three-workbench-actions :is(button,summary),.three-pane-compact.three-workspace-v173 .three-visibility-rail button{min-height:44px;}}

/* The 75% split can leave less than 250px for Model. Keep every native action
   reachable on a second row; the existing stage container bounds symbols. */
.design-view-pane[data-design-pane-density="narrow"] .three-pane-compact.three-workspace-v173 .three-workbench-actions { flex-wrap:wrap; }
.design-view-pane[data-design-pane-density="narrow"] .three-pane-compact.three-workspace-v173 .three-workbench-dimensions { grid-template-columns:minmax(0,1fr); }
@container (max-width:320px) {
  .design-view-pane[data-design-pane-density="narrow"] .three-pane-compact.three-workspace-v173 .three-visibility-rail-layers { gap:2px; }
  .design-view-pane[data-design-pane-density="narrow"] .three-pane-compact.three-workspace-v173 .three-visibility-rail-layers button { min-width:18px;justify-content:center;padding:4px 0; }
  .design-view-pane[data-design-pane-density="narrow"] .three-pane-compact.three-workspace-v173 .three-visibility-rail-layers button svg { display:block;flex:0 0 14px;width:14px;height:14px; }
  .design-view-pane[data-design-pane-density="narrow"] .three-pane-compact.three-workspace-v173 .three-visibility-rail-label { display:none; }
}
