/* Confined to the editing workspace; planning pages retain their existing style. */
.editor-workspace-active main{padding:18px!important;max-width:none}
.editor-workspace-active .topline{margin-bottom:12px}
.build-mode .editor-shell.workspace-shell{padding:0;border-radius:12px;background:#fafbf7;overflow:hidden}
.workspace-shell [hidden],.workspace-hidden{display:none!important}
.workspace-header{display:flex;align-items:center;gap:18px;padding:16px 20px;background:#ffffffed;border-bottom:1px solid var(--line)}
.workspace-header>div:first-child{flex:1}.workspace-header strong{display:block;font-size:18px}.workspace-kicker{font-size:10px;letter-spacing:1.5px;color:var(--muted)}
#workspace-save-state{font-size:11px;color:var(--muted)}.workspace-history{display:flex;gap:7px}.workspace-header-history{display:none;align-items:center;gap:7px}.editor-workspace-active .workspace-header-history{display:flex;margin-left:auto}.editor-workspace-active .header-project-manager{margin-left:0}.workspace-header-history button{min-height:42px;padding:8px 12px;font-size:12px;white-space:nowrap}.header-project-manager{display:flex;margin-left:auto;align-items:center;gap:7px}.header-project-manager select{width:150px;min-height:42px;font-size:12px}.header-project-manager button{min-height:42px;padding:8px 12px;font-size:12px;white-space:nowrap}
body.editor-workspace-active>header #compare-concepts{align-self:auto;flex-shrink:0;min-height:42px;padding:8px 12px;margin:0;font-size:12px;white-space:nowrap}
.workspace-shell button{min-height:44px;border-radius:8px;cursor:pointer;touch-action:manipulation}.workspace-shell button:disabled{opacity:.4;cursor:not-allowed}
.workspace-shell :is(button,input,select,summary):focus-visible{outline:3px solid #d6a850;outline-offset:3px}
.workspace-viewbar{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:10px 16px;border-bottom:1px solid var(--line);background:#f4f6ee}
.workspace-viewbar .concept-view-tabs{margin:0;gap:3px;background:white;border:1px solid var(--line);border-radius:9px;padding:3px}
.workspace-viewbar .concept-view-tabs button{border:0;margin:0;padding:8px 14px;font-size:12px}
.workspace-viewbar .segmented{display:flex;gap:3px}.workspace-viewbar .segmented button{background:transparent;border:1px solid transparent;color:#527164;padding:8px 12px;font-size:12px}.workspace-viewbar .segmented button.selected{background:#e4ede1;border-color:#a6bba7}
.workspace-settings-toggle{margin-left:auto;font-size:12px!important}
.workspace-grid{display:flex;position:relative;align-items:stretch;min-height:620px}
.workspace-tools{width:72px;flex:0 0 72px;background:#fffefaf0;padding:8px 5px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:4px}
.workspace-tools button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:1px solid transparent;background:transparent;color:#668074;height:62px;padding:5px;font-size:10px}
.workspace-tools button:hover{background:#edf2e6}.workspace-tools button[aria-pressed=true]{background:#527f6f;color:white;border-color:#527f6f;box-shadow:0 3px 8px #294f3c18}
.workspace-settings{display:none;flex:0 0 205px;width:205px;padding:14px;background:#fffef9ed;border-right:1px solid var(--line);overflow:auto;max-height:760px;backdrop-filter:blur(12px)}.workspace-settings.is-open{display:block}
.workspace-panel-head{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-bottom:16px}.workspace-panel-head strong{font-size:14px}.workspace-icon{border:0;background:transparent;color:#60746a;padding:4px;font-size:20px;min-width:36px}
.workspace-settings p{font-size:12px;line-height:1.65;margin:8px 0 16px;color:#6a7c73}.workspace-settings label{font-size:12px;display:block;margin-bottom:8px}.workspace-settings select{width:100%;font-size:12px}.workspace-settings .editor-add{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:0;padding:0;border:0}.workspace-settings .editor-add label{min-width:0;margin:0}.workspace-settings button.primary{width:100%;font-size:12px}
.workspace-settings .workspace-limit{padding:10px;background:#f0f2e7;border-radius:8px;font-size:11px}.workspace-snap{margin:14px 0}.workspace-snap label{display:flex;align-items:center;gap:7px}.workspace-snap input{width:16px;height:16px}
.workspace-settings .object-library{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.workspace-settings .object-card{border-radius:8px;padding:6px}.workspace-settings .object-card svg{height:55px}.workspace-settings .object-card strong{font-size:10px}.workspace-settings .object-card small{font-size:9px}
.workspace-canvas{flex:1;min-width:0;position:relative;background:#eaf0e7;padding-bottom:62px;transition:box-shadow .15s}.workspace-canvas.is-invalid{box-shadow:inset 0 0 0 3px #b76954}
.workspace-canvas-top{padding:12px 16px;background:#f9fbf4e8;display:flex;justify-content:space-between;gap:16px;min-height:50px;font-size:11px;color:#64776c}.workspace-grid-label{white-space:nowrap;font-size:10px;color:#879284}
.workspace-shell .canvas-scroll{border:0;border-radius:0;max-height:none;min-height:0;height:580px;background:#edf2e8;display:flex;align-items:flex-start;justify-content:center;overscroll-behavior:contain}
.workspace-shell .canvas-scroll svg{height:100%;flex-shrink:0;min-width:300px!important;max-width:none;object-fit:contain}
.workspace-shell .room-shape{cursor:default}.workspace-object,.workspace-wall-target{cursor:pointer}.workspace-shell [data-ws-corner]{cursor:nwse-resize}
.workspace-shell .dollhouse-controls{padding:9px 14px;background:#f7f9f1;border-bottom:1px solid #dce5d5;gap:14px;align-items:center;font-size:10px;min-height:42px}.workspace-shell .dollhouse-controls label{min-height:28px}.workspace-shell .dollhouse-controls input{width:14px;height:14px}
.build-mode .workspace-shell #dollhouse-stage{height:538px;min-height:320px;border:0;border-radius:0;background:#eaf0e7}
.workspace-camera{position:absolute;bottom:32px;left:50%;transform:translateX(-50%);display:flex;gap:3px;background:#fffef9ed;border:1px solid #d5dfd0;border-radius:12px;padding:4px;box-shadow:0 6px 22px #355d3c19;backdrop-filter:blur(12px);z-index:3;white-space:nowrap}
.workspace-camera button{border:0;background:transparent;color:#527367;padding:7px 12px;font-size:11px;min-width:38px;min-height:38px}.workspace-camera button:hover,.workspace-camera button[aria-pressed=true]{background:#e3ecd9}
.workspace-canvas-footer{position:absolute;bottom:0;left:0;right:0;padding:8px 14px;display:flex;justify-content:space-between;gap:12px;font-size:9px;color:#85917f;background:#f9fbf4}
.build-mode .workspace-shell #editor-message:empty{display:none}.build-mode .workspace-shell #editor-message:not(:empty){position:absolute;bottom:85px;left:16px;right:16px;background:#fff7e6eF;box-shadow:0 4px 16px #304b3420;border:1px solid #ddc68e;font-size:12px;padding:12px;z-index:4}
.build-mode .workspace-properties{flex:0 0 260px;width:260px;padding:16px;border-left:1px solid var(--line);background:#fffffff0;max-height:760px;overflow:auto;border-radius:0;backdrop-filter:blur(12px)}
.workspace-properties .object-library,.workspace-properties .snap-options,.workspace-properties [data-pane=furnish]>h3,.workspace-properties #library-category{display:none}.workspace-properties [data-pane=furnish]>label:has(#library-category){display:none}
.workspace-properties .row{grid-template-columns:1fr 1fr}.workspace-properties input,.workspace-properties select{max-width:100%;min-width:0;min-height:44px}.workspace-properties .tool-pane h3{font-size:13px}.workspace-properties .field{margin-bottom:12px}.workspace-properties .size-presets{margin-top:8px}.workspace-properties .help{font-size:11px;line-height:1.6}.workspace-properties .object-selection{background:#f1f5eb;padding:10px;border-radius:8px}
.workspace-model-note{font-size:10px;color:#81907e;padding:10px 16px;margin:0;border-top:1px solid var(--line)}
.workspace-bottom-bar{display:flex;align-items:center;gap:16px;border-top:1px solid var(--line)}.workspace-bottom-bar .workspace-model-note{flex:1;border-top:0}.workspace-bottom-bar #workspace-footer-slot{margin-left:auto}.workspace-bottom-bar .footer{margin:0;padding:8px 12px;border-top:0;justify-content:flex-end;gap:8px}.workspace-bottom-bar .footer button{min-height:40px;padding:8px 16px}
@media(max-width:1250px){.workspace-settings{position:absolute;left:72px;top:0;bottom:0;z-index:6;box-shadow:8px 0 26px #264c3620}.workspace-properties{flex-basis:240px!important;width:240px!important}}
@media(max-width:800px){.workspace-grid{flex-wrap:wrap}.workspace-tools{width:100%;flex-basis:100%;flex-direction:row;overflow:auto;border-right:0;border-bottom:1px solid var(--line);padding:5px}.workspace-tools button{min-width:62px;height:54px}.workspace-canvas{flex-basis:100%;width:100%}.workspace-settings{left:0;top:64px;bottom:auto;max-height:500px;width:220px}.build-mode .workspace-properties{flex-basis:100%!important;width:100%!important;border-left:0;border-top:1px solid var(--line);max-height:none}.workspace-header{padding:12px;gap:9px;flex-wrap:wrap}#workspace-save-state{flex-basis:100%;order:3}.workspace-header strong{font-size:15px}.workspace-history button{padding:9px 12px;font-size:12px}.workspace-history button span{display:none}.workspace-viewbar{gap:8px;padding:8px}.workspace-settings-toggle{margin-left:0}.workspace-viewbar .concept-view-tabs button{padding:8px 10px}.workspace-shell .canvas-scroll{height:470px}.build-mode .workspace-shell #dollhouse-stage{height:430px}.workspace-grid-label{display:none}.workspace-canvas-footer>span:last-child{display:none}.workspace-camera button{padding:7px 9px}.editor-workspace-active main{padding:10px!important}.workspace-model-note{line-height:1.6}}

.workspace-properties [data-pane=furnish]>label:has(#object-category),.workspace-properties [data-pane=furnish]>h3,.workspace-properties #arrange-interiors,.workspace-properties #arrange-interiors+.help,.workspace-properties .placement-note,.workspace-properties [data-add-opening]{display:none!important}

@media(max-width:1400px){.editor-workspace-active .header-note{display:none}}
@media(max-width:1050px){body>header{gap:14px}.header-note{display:none}.workspace-header-history{gap:4px}.workspace-header-history button,.header-project-manager button{padding:7px 9px;font-size:10px}.header-project-manager{gap:4px}.header-project-manager select{width:120px}}
@media(max-width:760px){.header-project-manager{position:absolute;top:70px;left:0;right:0;padding:8px 12px;background:var(--ui-surface);border-bottom:1px solid var(--ui-border);z-index:10;flex-wrap:wrap}body>header{margin-bottom:108px}.header-project-manager select{flex:1;width:auto}.header-project-manager button{min-width:0}.editor-workspace-active .workspace-header-history{position:absolute;top:70px;left:0;right:0;min-height:52px;justify-content:flex-end;padding:6px 12px;background:var(--ui-surface);border-bottom:1px solid var(--ui-border);z-index:11}.editor-workspace-active .header-project-manager{top:122px}.editor-workspace-active>header{margin-bottom:160px}}
@media(max-width:680px){.workspace-bottom-bar{align-items:stretch;flex-direction:column;gap:0}.workspace-bottom-bar #workspace-footer-slot{width:100%;margin-left:0}.workspace-bottom-bar .footer{width:100%;padding:8px 12px 12px}.workspace-bottom-bar .footer .primary{margin-left:0}}
.workspace-project-overlay{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:20px;background:rgba(0,0,0,.68)}.workspace-project-dialog{width:min(420px,100%);padding:24px;border:1px solid var(--ui-border);border-radius:14px;background:var(--ui-surface);box-shadow:0 24px 80px rgba(0,0,0,.4)}.workspace-project-dialog h2{margin:0 0 18px;color:var(--ui-text);font-size:22px}.workspace-project-dialog form{display:grid;gap:10px}.workspace-project-dialog label{color:var(--ui-text);font-size:13px;font-weight:700}.workspace-project-dialog input{width:100%;min-height:46px;padding:10px 12px;border:1px solid var(--ui-border);border-radius:9px;background:var(--ui-surface-2);color:var(--ui-text);font:inherit}.workspace-project-dialog input:focus{outline:2px solid var(--accent);outline-offset:2px}.workspace-project-error{min-height:18px;margin:0;color:#d66;font-size:12px}.workspace-project-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:6px}
