.spatial-workspace{--studio-muted:#5c6978;--studio-border:#dce2e8;scroll-margin-top:60px}
.workspace-heading{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin-bottom:10px}
.workspace-heading h1{font-size:19px;letter-spacing:-.02em;margin:0;font-weight:650;line-height:1.25}
.workspace-heading .eyebrow{display:none}
.workspace-heading p{font-size:12px;color:var(--studio-muted);margin:2px 0 0;line-height:1.45}
.workspace-project{font-size:12px;color:var(--studio-muted);max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.spatial-tabs{display:flex;gap:6px;padding:4px;background:#e9edf1;border:1px solid var(--studio-border);border-radius:10px;margin-bottom:12px}
.spatial-tabs button{flex:1;min-height:34px;border:1px solid transparent;background:transparent;border-radius:7px;color:var(--studio-muted);font-size:12.5px;font-weight:600;display:flex;justify-content:center;align-items:center;gap:8px}
.spatial-tabs button span{font-size:11px;font-variant-numeric:tabular-nums;opacity:.75}
.spatial-tabs button[aria-selected="true"]{background:#fff;color:var(--primary);border-color:#d6deea;box-shadow:0 1px 3px #17202b08}
.spatial-tabs button:hover{color:var(--primary)}
.spatial-workspace [data-spatial-pane][hidden]{display:none}
.spatial-split{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:12px;align-items:start}
.spatial-split>*{min-width:0}
.workspace-card-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}
.workspace-card-head h2{font-size:14px;margin:0;font-weight:650;line-height:1.3}
.workspace-card-head p{font-size:11.5px;color:var(--studio-muted);line-height:1.4;margin:2px 0 0;overflow-wrap:anywhere}
.workspace-settings{padding:14px 16px;display:flex;flex-direction:column;gap:12px}
.workspace-settings .workspace-card-head{margin:0}
.spatial-workspace .field label{font-size:11.5px;color:#455366}
.spatial-workspace .field input,.spatial-workspace .field select,.spatial-workspace .field textarea{font-size:12.5px;padding:6px 9px;min-width:0;width:100%}
.spatial-workspace .field input,.spatial-workspace .field select{min-height:32px}
.spatial-workspace .button{min-height:32px;padding:5px 11px;font-size:12px}
.spatial-workspace .button:disabled{opacity:.48;cursor:not-allowed}
.workspace-details{border-top:1px solid var(--studio-border);border-bottom:1px solid var(--studio-border);padding:8px 0}
.workspace-details summary{font-size:12px;color:var(--studio-muted);cursor:pointer;min-height:22px}
.workspace-details[open] summary{margin-bottom:10px}
.workspace-details .field+.field{margin-top:10px}
.workspace-check{display:flex;gap:7px;align-items:center;margin-top:10px;color:var(--studio-muted);font-size:12px}
.workspace-status{font-size:11.5px;line-height:1.5;color:var(--studio-muted);overflow-wrap:anywhere}
.workspace-text-button{border:0;background:transparent;color:var(--primary);font-size:12px;min-height:28px;padding:2px 4px;text-align:center}
.workspace-text-button:hover{text-decoration:underline}
.spatial-workspace .plan-document{padding:10px 12px;min-height:0}
.plan-document .upload-preview{max-height:520px;max-width:100%;margin:0 auto}
.plan-document .preview-empty{line-height:1.7}
.plan-document .plan-editor{margin-top:0}
.plan-document .plan-editor-head{background:#f7f9fc;padding:7px 10px;border-color:var(--studio-border)}
.plan-document .plan-editor-head .eyebrow{display:none}
.plan-document .plan-editor-head b{font-size:12.5px;color:var(--ink)}
.plan-document .plan-editor-head span{line-height:1.4;font-size:11px;margin-top:2px}
.plan-document .plan-editor-stage{position:relative;display:flex;justify-content:center;align-items:center;padding:6px;background:#eef2f6}
.plan-document .plan-editor svg{display:block;height:auto;max-width:100%;max-height:66vh;margin:0 auto;background:#fff;border-radius:6px;box-shadow:0 1px 6px rgba(17,43,69,.08)}
.plan-document .plan-editor svg.is-drawing{cursor:crosshair;touch-action:none;user-select:none}
.plan-document .plan-editor svg>image{opacity:.78}
.plan-document .plan-editor .plan-wall{fill:none;stroke-width:3px;filter:none}
.plan-document .plan-editor .plan-wall:hover{stroke-width:5px}
.plan-document .plan-editor .plan-wall.selected{stroke-width:5px;stroke-dasharray:8 4}
.plan-document .plan-editor .wall-handle.selected{r:9.5;stroke-width:2.4px;transition:r .12s ease}
.plan-document .plan-editor .wall-handle.selected:hover{r:13}
.plan-document .plan-editor .curve-guide{fill:none;stroke:#7c4dff;stroke-width:1.3px;stroke-dasharray:4 4;vector-effect:non-scaling-stroke;opacity:0;pointer-events:none;transition:opacity .15s ease}
.plan-document .plan-editor .curve-guide.selected{opacity:.48}
.plan-document .plan-editor .wall-handle.curve-handle.selected{r:10.5;fill:#7c4dff;stroke:#fff;stroke-width:2.4px}
.plan-document .plan-editor .wall-handle.curve-handle.selected:hover{r:13.5}
.plan-document .plan-editor .wall-handle.active-node{r:12;stroke:#112b45;stroke-width:3px}
.plan-floating-bar{position:absolute;z-index:8;display:flex;align-items:center;gap:4px;padding:4px 6px;border-radius:999px;background:rgba(17,43,69,.94);box-shadow:0 6px 20px rgba(17,43,69,.28);backdrop-filter:blur(6px)}
.plan-floating-bar[hidden]{display:none}
.plan-floating-bar button{border:0;background:transparent;color:#fff;font-size:11px;font-weight:500;padding:6px 10px;border-radius:999px;white-space:nowrap;min-height:28px;cursor:pointer}
.plan-floating-bar button:hover{background:rgba(255,255,255,.16)}
.plan-floating-bar button.danger{color:#ffb4ad}
.plan-floating-bar button.danger:hover{background:rgba(180,35,24,.35);color:#fff}
.plan-document .plan-editor .plan-column{fill:rgba(55,105,209,.2);stroke:#3769d1;stroke-width:2.6px;vector-effect:non-scaling-stroke;cursor:pointer;transition:stroke .15s ease,fill .15s ease}
.plan-document .plan-editor .plan-column.is-hollow{fill:rgba(55,105,209,.07);stroke-width:3px}
.plan-document .plan-editor .plan-column:hover{stroke:#1749b5;fill:rgba(55,105,209,.28)}
.plan-document .plan-editor .plan-column.selected{stroke:#f0783c;fill:rgba(240,120,60,.18);stroke-width:4px}
.plan-document .plan-editor .plan-column-inner{fill:rgba(255,255,255,.55);stroke:#3769d1;stroke-width:1.6px;stroke-dasharray:4 3;vector-effect:non-scaling-stroke;pointer-events:none}
.plan-document .plan-editor .plan-column-inner.selected{stroke:#f0783c}
.plan-document .plan-editor .column-handle{opacity:0;fill:#fff;stroke:#f0783c;stroke-width:2.4px;vector-effect:non-scaling-stroke;pointer-events:none;transition:r .12s ease}
.plan-document .plan-editor .column-handle.selected{r:9.5;opacity:1;pointer-events:all;cursor:grab;fill:#f0783c;stroke:#fff}
.plan-document .plan-editor .column-handle.selected:hover{r:13}
.plan-document .plan-editor .column-handle.radius-handle.selected{fill:#0ea5a4;cursor:ew-resize}
.plan-document .plan-editor .plan-preview-shape{fill:rgba(40,87,232,.08);stroke:#2857e8;stroke-width:2.5px;stroke-dasharray:6 4;vector-effect:non-scaling-stroke;pointer-events:none}
.plan-document .plan-editor path.plan-preview-shape{fill:none;stroke-dasharray:none;stroke-width:3.2px}
.plan-document .plan-editor .plan-preview-guide{fill:none;stroke:#7c4dff;stroke-width:1.4px;stroke-dasharray:4 4;opacity:.55;vector-effect:non-scaling-stroke;pointer-events:none}
.plan-document .plan-editor .plan-preview-dot{fill:#7c4dff;stroke:#fff;stroke-width:2px;vector-effect:non-scaling-stroke;pointer-events:none}
.plan-document .plan-editor .plan-wall.split-target{stroke:#e11d48;stroke-width:5px}
.plan-document .plan-editor .plan-split-cut{stroke:#e11d48;stroke-width:2.6px;stroke-linecap:round;vector-effect:non-scaling-stroke;pointer-events:none}
.plan-document .plan-editor .plan-split-dot{fill:#fff;stroke:#e11d48;stroke-width:2.8px;vector-effect:non-scaling-stroke;pointer-events:none}
.plan-document .plan-editor .plan-split-cut.is-invalid,.plan-document .plan-editor .plan-split-dot.is-invalid{stroke:#94a3b8;stroke-dasharray:3 3}
.plan-document .plan-editor .plan-align-rect{fill:rgba(40,87,232,.07);stroke:#2857e8;stroke-width:2.5px;stroke-dasharray:7 5;vector-effect:non-scaling-stroke;cursor:move}
.plan-document .plan-editor .plan-align-handle{fill:#2857e8;stroke:#fff;stroke-width:2.5px;vector-effect:non-scaling-stroke;cursor:grab}
.plan-document .plan-editor .plan-align-handle.role-nw,.plan-document .plan-editor .plan-align-handle.role-se{cursor:nwse-resize}
.plan-document .plan-editor .plan-align-handle.role-ne,.plan-document .plan-editor .plan-align-handle.role-sw{cursor:nesw-resize}
.plan-document .plan-editor .plan-align-handle.role-n,.plan-document .plan-editor .plan-align-handle.role-s{cursor:ns-resize}
.plan-document .plan-editor .plan-align-handle.role-e,.plan-document .plan-editor .plan-align-handle.role-w{cursor:ew-resize}
.plan-floating-bar .plan-align-tip{font-size:11px;color:#dbe6f5;padding:0 6px;white-space:nowrap}
.plan-floating-bar button.primary{background:#2857e8;color:#fff;font-weight:600}
.plan-document .plan-editor .plan-label{display:none}
.plan-document .plan-editor-toolbar{align-items:center;flex-wrap:wrap;gap:6px;padding:7px 10px}
.plan-document .plan-editor-tools{gap:5px;flex-wrap:wrap}
.plan-document .plan-editor-toolbar .button{min-height:28px;padding:4px 9px;font-size:11.5px}
.plan-document .plan-editor-actions{flex:1;justify-content:flex-end;flex-wrap:wrap;gap:6px}
.plan-document .plan-editor-actions span{max-width:240px;line-height:1.4;font-size:11px}
.plan-document .plan-editor-actions .button.primary{background:#fff;color:var(--primary);border-color:#c7d3ef}
.plan-document .form-actions{margin-top:10px;gap:8px}
.camera-stage{overflow:hidden;padding:0}
.camera-stage .workspace-card-head{padding:7px 10px;margin:0;flex-wrap:nowrap;gap:8px}
.camera-stage .workspace-card-head>div:first-child{min-width:0}
.camera-stage .workspace-card-head p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.viewer-actions{display:flex;gap:5px;flex-shrink:0}
.viewer-actions .button{min-height:26px;padding:3px 9px;font-size:11.5px;white-space:nowrap}
.viewer-actions button[aria-pressed="true"]{background:var(--primary-weak);border-color:var(--primary);color:var(--primary)}
.spatial-workspace .three-viewport{aspect-ratio:3/2;min-height:0;border-radius:0;border-left:0;border-right:0;border-color:var(--studio-border)}
.spatial-workspace .three-viewport canvas{width:100%;height:100%;min-height:0;touch-action:none}
.spatial-workspace .three-viewport canvas:focus-visible{outline:3px solid var(--primary);outline-offset:-3px}
.three-viewport.roaming canvas{cursor:crosshair}
.three-viewport.placing-camera canvas{cursor:crosshair}
#placeGenerationCamera[aria-pressed="true"]{background:var(--primary-weak);border-color:var(--primary);color:var(--primary)}
.three-viewport.roaming .spatial-label-layer{display:none}
.roaming-help{padding:7px 12px;background:#f9fafc;color:var(--studio-muted);font-size:11px;line-height:1.45;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.roaming-help>span{display:inline-block;font-size:11.5px;color:var(--ink);margin:0}
.roaming-help>div{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.roaming-help kbd{font:10.5px inherit;background:#fff;border:1px solid #d6dce4;border-bottom-width:2px;border-radius:4px;padding:0 4px;color:#43526a}
.generation-preview{padding:14px 16px;overflow:hidden}
.generation-preview .workspace-card-head{margin-bottom:10px}
.generation-preview .field{margin-bottom:10px}
.generation-image-wrap img{width:100%;aspect-ratio:3/2;object-fit:contain;background:#eaf0f1;border:1px solid var(--studio-border);border-radius:8px}
.generation-image-wrap img[hidden]{display:none}
.generation-image-wrap .workspace-status{margin-top:12px}
.compact-style-presets{display:flex;gap:6px;flex-wrap:wrap;margin:4px 0}
.compact-style-presets .preset-chip{padding:7px 9px;min-height:32px;font-size:11px}
.generation-settings textarea{min-height:120px}
.generation-settings .error:empty{display:none}
.generation-note{font-size:11px;line-height:1.7;color:var(--studio-muted);margin:0;text-align:center}
.style-reference-preview{width:100%;max-height:180px;object-fit:contain;border:1px solid var(--line);border-radius:8px;background:#f5f7f8;margin:12px 0}
.style-reference-preview[hidden],.compact-style-presets[hidden]{display:none}
.style-scope-note{font-size:12px;line-height:1.7;color:var(--muted);margin:8px 0}
.template-prompt-field{margin-top:16px}
.template-actions{display:flex;gap:8px}
.template-description{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.button:disabled{opacity:.6;cursor:wait}
.generation-settings #cameraPrompt{min-height:72px}
.generation-settings .style-reference-preview{max-height:100px}
.generation-settings .style-scope-note{font-size:11px;margin-bottom:0}
.generation-settings .workspace-details{padding-top:12px}
@media(max-width:1200px){.spatial-split{grid-template-columns:minmax(0,1fr) 270px;gap:16px}.workspace-settings{padding:18px}.camera-stage .workspace-card-head{gap:12px}.workspace-project{display:none}}
@media(max-width:960px){.spatial-split{grid-template-columns:1fr}.workspace-settings{display:grid;grid-template-columns:1fr 1fr;align-items:start}.workspace-settings .workspace-card-head,.workspace-settings .workspace-details,.generation-settings .field,.generation-settings .error,.generation-note{grid-column:1/-1}.generation-settings #generatePlanRender{grid-column:1/-1}.roaming-help{font-size:12px}}
@media(max-width:600px){.workspace-heading h1{font-size:26px}.spatial-tabs{gap:2px;padding:4px}.spatial-tabs button{font-size:12px;gap:5px}.spatial-tabs button span{font-size:10px}.workspace-card-head{align-items:flex-start;flex-wrap:wrap}.workspace-settings{display:flex}.plan-document .plan-editor-toolbar .button{font-size:11px}.spatial-workspace .plan-document,.generation-preview{padding:14px}.roaming-help{padding:14px}.viewer-actions .button{font-size:11px}}
