/* The editor uses the viewport; only an unusually long list/panel scrolls. */
body.editor-app{height:100dvh;overflow:hidden;font-size:12px}
.editor-app header{height:48px;padding:0 14px;gap:20px;background:#fff}
.editor-app .brand{font-size:15px;letter-spacing:1.6px;white-space:nowrap}.editor-app .brand small{display:none}.editor-app .logo{font-size:25px}
.editor-app .tool-nav{margin-left:12px;font-size:12px;gap:8px}.editor-app .tool-nav a{padding:7px 10px;border-radius:5px}.editor-app .tool-nav a[aria-current]{background:#e9f0ea}
.editor-app .badge{padding:4px 7px;font-size:8px}.editor-app .privacy{font-size:10px}
.editor-app main{max-width:none;width:100%;height:calc(100dvh - 48px);margin:0;padding:8px 12px;display:grid;grid-template-rows:40px 34px minmax(0,1fr) 26px 46px;gap:6px}
.editor-app .project-toolbar{grid-row:1;margin:0;padding:4px 10px;border-radius:7px;flex-wrap:nowrap;gap:12px;min-width:0;position:relative;z-index:12}
.editor-app .project-title{flex:1;min-width:140px;max-width:310px}.editor-app .project-title input{padding:4px 2px;font-size:12px;min-width:80px}.editor-app .project-title label{font-size:9px}
.editor-app .project-actions{flex-wrap:nowrap;margin-left:auto}.editor-app .project-actions button{padding:6px 10px;white-space:nowrap;font-size:11px}.editor-app .toolbar-divider{height:16px}
.project-details{flex:none;color:var(--muted);font-size:10px}.project-details>summary{cursor:pointer;padding:6px;white-space:nowrap}.project-details[open]>.draft-controls,.project-details[open]>.project-help{position:absolute;right:0;width:min(440px,90vw);background:#fff;padding:14px 16px;border:1px solid var(--line);box-shadow:0 10px 30px #253b3418;line-height:1.7}.project-details .draft-controls{top:40px;border-radius:8px 8px 0 0;gap:8px}.project-details .project-help{top:140px;border-radius:0 0 8px 8px}.project-details .draft-controls label{width:100%}.project-details .draft-controls #project-status{width:100%;min-height:30px}.project-details .draft-controls button{margin-left:0}
.editor-app .editor-sections{grid-row:2;margin:0;padding:0;align-items:center;border:0;gap:5px;min-width:0}.workspace-title{font-size:16px;font-weight:700;letter-spacing:-.4px;white-space:nowrap;margin:0 auto 0 2px}.editor-app .editor-sections button{padding:7px 15px;font-size:11px;gap:7px;border-radius:5px;white-space:nowrap}
.editor-app .workspace{grid-row:3;grid-template-columns:320px minmax(0,1fr);gap:10px;min-height:0;min-width:0}
.editor-app aside{min-height:0;gap:6px;overflow:hidden;display:flex}.editor-app .panel{padding:12px;border-radius:8px;min-height:0;flex-shrink:1;overflow:auto;scrollbar-width:thin;scrollbar-color:#b9c9bc transparent}
.panel-inactive{display:none!important}.panel-switcher{display:flex;flex-wrap:wrap;gap:4px;flex-shrink:0;padding:4px;background:#e8ece5;border-radius:7px}.panel-switcher button{flex:1 0 42%;padding:7px 5px;font:inherit;font-size:10px;background:transparent;border:0;border-radius:4px;color:#65766b}.panel-switcher button[aria-selected="true"]{background:#fff;color:var(--green);font-weight:700;box-shadow:0 1px 3px #253b3410}
.editor-app .step{margin-bottom:10px}.editor-app h2{font-size:12px}.editor-app .field{margin:9px 0;gap:8px;min-height:28px}.editor-app .field label{font-size:11px}.editor-app .field label small{margin-top:2px;font-size:9px}.editor-app .field input{padding:5px;width:66px;min-width:66px}.editor-app .field select{padding:5px;max-width:165px;font-size:10px}.editor-app input,.editor-app select{font-family:inherit}.editor-app input[type="checkbox"]{accent-color:var(--green)}
.editor-app .hint{font-size:10px;margin:7px 0;padding-top:7px;line-height:1.5}.editor-app .fastening-settings{margin:9px 0;padding:10px 0}.editor-app #tray-fields{margin-top:9px}
.tool-help{font-size:10px;color:var(--muted);border-top:1px solid var(--line);margin-top:10px;padding-top:7px}.tool-help summary{cursor:pointer;color:var(--green);line-height:1.8}.tool-help .hint{border:0}.tool-help .footnote{font-size:10px;margin:5px 0;line-height:1.5}.tool-help[open]{max-height:150px;overflow:auto}
.editor-app .upload{padding:14px 8px;gap:5px}.editor-app .upload-icon{font-size:22px}.editor-app .text-button{padding-top:8px;font-size:10px}.editor-app .model{padding:9px 0}.editor-app .model-meta{margin:5px 0}.editor-app .model-actions{gap:4px}.editor-app #models{max-height:calc(100dvh - 370px);overflow:auto;scrollbar-width:thin}.editor-app .object-select{margin-top:7px}.editor-app .object-select select{padding:5px}
.editor-app .viewer-wrap{position:relative;top:auto;max-height:none;overflow:hidden;min-height:0;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:8px;background:white}
.editor-app .viewer-bar{height:36px;min-height:36px;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:0 12px;flex-wrap:nowrap;gap:8px;letter-spacing:.6px}.editor-app .viewer-bar button{font-size:10px;padding:5px 8px}.editor-app .canvas-wrap{height:auto;min-height:0;flex:1;border:0;isolation:isolate}.editor-app .legend{bottom:12px;left:14px;gap:12px}.editor-app .controls-hint{bottom:12px;right:14px}
.editor-app .results{flex-shrink:0;padding:10px 14px;gap:12px;border:0;border-top:1px solid var(--line);border-radius:0;grid-template-columns:1.4fr 1fr 1fr}.editor-app .results small{font-size:8px;letter-spacing:.6px;margin-bottom:4px}.editor-app .results strong{font-size:18px}.editor-app .results>div+div{padding-left:14px}
.editor-app .shell-view{flex-shrink:0;padding:6px 12px;border:0;border-top:1px solid var(--line);gap:10px;font-size:10px}.editor-app .shell-view input[type="range"]{width:100px}.result-details{flex-shrink:0;border-top:1px solid var(--line);font-size:10px;color:var(--muted);position:relative}.result-details:has(#shell-info[hidden]){display:none}.result-details>summary{padding:5px 14px;cursor:pointer;color:var(--green)}.editor-app .result-details .shell-info{position:absolute;bottom:26px;left:10px;right:10px;max-height:160px;overflow:auto;z-index:8;margin:0;padding:12px;background:#f2f7f0;box-shadow:0 5px 20px #253b3418;font-size:11px}
.editor-app .main-cut-toolbar{flex-shrink:0;padding:6px 10px;gap:6px;font-size:10px;border:0;border-bottom:1px solid var(--line)}.editor-app .main-cut-toolbar button{padding:5px 7px;font-size:10px}.editor-app .main-cut-toolbar span{font-size:9px}.editor-app .cut-editor-heading{margin-top:8px;font-size:10px}.editor-app .cut-presets{margin:7px 0;gap:4px}.editor-app .cut-presets button{padding:4px 8px}.editor-app .cut-launcher{padding:6px;font-size:10px;margin:0 0 6px}.editor-app .cut-origin{gap:8px;margin:7px 0}.editor-app .cut-origin input{padding:4px;width:70px;margin-top:3px}.editor-app .cut-origin button{padding:6px;font-size:9px}.editor-app #cut-rays{display:grid;grid-template-columns:1fr 1fr;column-gap:12px}.editor-app .cut-ray{margin:3px 0;gap:4px}.editor-app .cut-ray>span{width:35px;font-size:9px}.editor-app .cut-ray input{width:53px;padding:4px}.editor-app .cut-ray button{font-size:13px;padding:0}.editor-app .cut-side{margin:8px 0;padding-top:8px}.editor-app .cut-help{font-size:9px;margin:5px 0}
.editor-app #export-pane{margin:0}.editor-app .density-panel{padding:0 0 6px;border:0;border-radius:0;overflow:visible}.editor-app .density-panel .step{display:none}.editor-app #export-pane .download-settings{margin:0;padding:4px 0;border:0;border-radius:0}.editor-app .download-settings .field{display:block;margin:10px 0}.editor-app .download-settings .field label{display:block;margin-bottom:5px}.editor-app .download-settings .field select{width:100%;max-width:none;font-size:11px;padding:7px}
.editor-app main>#status{grid-row:4;min-width:0;margin:0;padding:4px 8px;border:0;background:transparent;border-radius:4px;font-size:11px;line-height:18px;overflow:auto;scrollbar-width:thin}.editor-app main>#status:not(:empty){padding:4px 8px;background:#eaf2e7}
.action-dock{grid-row:5;display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--line);border-radius:7px;padding:5px 8px;background:#fff;min-width:0}.build-actions,.export-actions{display:flex;align-items:center;gap:7px;min-width:0}.editor-app .action-dock .build-button,.editor-app .action-dock #download{width:auto;margin:0;background:var(--green);color:#fff;border:0;border-radius:5px;font-size:11px;line-height:18px;padding:7px 14px;white-space:nowrap;min-height:32px}.editor-app .action-dock button:disabled{opacity:.4;cursor:default}.editor-app .action-dock .text-button{padding:7px 9px;font-size:10px;border:1px solid var(--line);border-radius:5px;white-space:nowrap}.action-dock #download span{margin-left:12px}
.editor-app .draft-notice{position:absolute;top:96px;left:50%;transform:translateX(-50%);max-width:680px;width:calc(100% - 40px);z-index:20;margin:0;padding:12px 16px;box-shadow:0 12px 35px #253b3428;border-radius:8px}.editor-app .draft-notice strong{font-size:12px}.editor-app .draft-notice p{font-size:10px}
.mobile-tools{display:none}
@media(min-width:1800px){.editor-app .workspace{grid-template-columns:350px minmax(0,1fr)}.editor-app .panel{padding:16px}.editor-app .field{margin:12px 0}}
@media(max-width:1050px){.editor-app .privacy,.editor-app .badge{display:none}.editor-app .workspace{grid-template-columns:290px minmax(0,1fr)}.project-details>summary{font-size:0}.project-details>summary:after{content:'Справка';font-size:10px}.editor-app .results strong{font-size:16px}.workspace-title{font-size:14px}.editor-app .editor-sections button{padding:7px 10px}.editor-app .preview-quality{font-size:9px}.editor-app .controls-hint{display:none}}
@media(max-width:760px){.editor-app header{padding:0 8px;gap:6px}.editor-app .brand{font-size:12px;letter-spacing:1px}.editor-app .logo{font-size:22px}.editor-app .tool-nav{margin-left:auto;font-size:10px;gap:0}.editor-app .tool-nav a{padding:6px}.editor-app main{padding:5px 6px;gap:5px;grid-template-rows:38px 32px minmax(0,1fr) 26px 44px}.editor-app .project-toolbar{padding:4px 6px;gap:5px}.editor-app .project-title{min-width:70px}.editor-app .project-title label,.editor-app .toolbar-divider,.project-details{display:none}.editor-app .project-actions{gap:3px}.editor-app .project-actions button{padding:6px;font-size:9px}.editor-app #undo,.editor-app #redo{font-size:0}.editor-app #undo:before{content:'↶';font-size:15px}.editor-app #redo:before{content:'↷';font-size:15px}.workspace-title{display:none}.editor-app .editor-sections button{flex:1;padding:6px 4px;font-size:10px;gap:4px}.editor-app .workspace{display:block;position:relative}.editor-app .viewer-wrap{height:100%;width:100%;order:initial}.editor-app aside{position:absolute;left:0;top:37px;bottom:0;width:min(300px,82%);z-index:9;background:var(--bg);padding:6px;box-shadow:5px 0 20px #253b3422;display:flex}.editor-app.tools-collapsed aside{display:none}.mobile-tools{display:block}.editor-app .viewer-bar{padding:0 6px}.editor-app #preview-title{display:none}.editor-app .preview-quality{display:none}.editor-app .results{padding:8px;gap:5px}.editor-app .results>div+div{padding-left:7px}.editor-app .results strong{font-size:13px}.editor-app .results small{font-size:7px;letter-spacing:0}.editor-app .legend{gap:6px;left:8px;font-size:8px}.action-dock{padding:4px;gap:4px}.build-actions,.export-actions{gap:3px}.editor-app .action-dock .build-button,.editor-app .action-dock #download{padding:6px;font-size:9px;max-width:45vw;overflow:hidden;text-overflow:ellipsis}.editor-app .action-dock #to-export,.editor-app .action-dock #download-zip{display:none}.editor-app .shell-view{gap:5px;flex-wrap:nowrap;padding:6px;font-size:9px}.editor-app .shell-view input[type="range"]{width:65px}.editor-app #models{max-height:calc(100dvh - 360px)}}
.editor-app .viewer-wrap{align-self:stretch;height:100%}.editor-app .export-readiness{font-size:11px;border-top:1px solid var(--line);margin-top:10px;padding-top:10px}.editor-app .export-readiness p{font-size:10px;color:var(--muted);line-height:1.5}
.project-details>.project-detail-content{display:none}.project-details[open]>.project-detail-content{display:block;position:absolute;right:0;top:42px;width:min(440px,90vw);background:#fff;padding:14px 16px;border:1px solid var(--line);border-radius:8px;box-shadow:0 10px 30px #253b3420;line-height:1.7}.project-detail-content .draft-controls{position:static;gap:7px;margin-bottom:10px}.project-detail-content .project-help{position:static;font-size:10px;line-height:1.7}
.cut-inspector-tabs{display:flex;gap:4px;margin:8px 0;padding:3px;background:#eef2eb;border-radius:5px}.cut-inspector-tabs button{flex:1;border:0;padding:6px 5px;font:inherit;font-size:10px;background:transparent;border-radius:3px;color:var(--muted)}.cut-inspector-tabs button[aria-selected="true"]{background:#fff;color:var(--green);font-weight:600}.editor-app .cut-top-fields .cut-editor-heading{margin-top:4px}.editor-app #cut-editor .cut-side{border:0;padding-top:4px;margin-top:4px}
@media(max-width:760px){.editor-app .project-details{display:block}.editor-app .project-details>summary{font-size:0;padding:4px}.editor-app .project-details>summary:after{content:'⋯';font-size:16px}}
.editor-app .draft-notice .draft-close{border:0;background:transparent;color:var(--muted);padding:4px 6px;font-size:20px;line-height:20px;flex-shrink:0}.editor-app .draft-notice>div{min-width:0}.editor-app .draft-notice p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.air-report{margin:10px 0;padding:8px;background:#eef4ec;border:1px solid #d7e1d2;border-radius:5px;font-size:10px;line-height:1.5}.air-report p{margin:4px 0}.air-report.has-air-risk{background:#fff4e4;border-color:#e4c58d;color:#855315}#release-settings>.check-field{margin:10px 0}#release-settings .tool-help{margin-top:9px}
#release-settings>.field{display:block}#release-settings>.field label{display:block;margin-bottom:5px}#release-settings>.field select{display:block;width:100%;max-width:none;padding:7px;font-size:10px}#demo-release{display:block}
.pour-add,.pour-actions{display:flex;gap:5px;margin:8px 0}.pour-add button,.pour-actions button{flex:1;padding:7px 5px;font:inherit;font-size:10px;border:1px solid #cab9d9;border-radius:5px;background:#f7f2fa;color:#704691}.pour-actions #pour-remove{flex:0 0 auto;background:#fff;color:#986950;border-color:var(--line)}.pour-pair{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:8px 0}.pour-pair label{font-size:10px;color:var(--muted)}.pour-pair input{width:100%;margin-top:4px;padding:5px;border:1px solid var(--line);border-radius:5px;color:var(--ink);background:#fafbf8}#pour-settings>.field{margin:8px 0}#pour-list{max-width:175px}.pour-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:6;cursor:crosshair;background:transparent}.pour-main-toolbar{flex-shrink:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:6px 10px;border-bottom:1px solid #d8c7e5;background:#f4edf8;color:#704691;font-size:10px}.pour-main-toolbar span{font-size:9px;color:#8c789d;flex:1}.pour-main-toolbar button{background:#fff;border:1px solid #c9b7d7;border-radius:4px;padding:5px 8px;color:#704691;font-size:10px}.editor-app #pour-note{line-height:1.5;font-size:10px}
/* Keep the bottom of every 3D viewport clear of calculation statistics. */
.editor-app .viewer-bar{height:auto;min-height:36px;flex-shrink:0;flex-wrap:wrap;padding:5px 10px;gap:6px}
.editor-app .viewer-bar>.shell-view{border:0;margin:0;padding:0;display:flex;align-items:center;justify-content:center;gap:6px;flex:1;white-space:nowrap;font-size:10px;letter-spacing:0}
.editor-app .viewer-bar>.shell-view[hidden]{display:none}
.editor-app .viewer-bar>.shell-view label{font-size:10px;white-space:nowrap}
.editor-app .viewer-bar>.shell-view input[type=range]{width:75px;min-width:45px;margin:0}
.editor-app .viewer-bar>.shell-view button{white-space:nowrap;padding:5px 6px;font-size:10px}
.editor-app .viewer-bar>div:last-child:not(.shell-view){margin-left:auto;align-items:center}
.editor-app .information-panel .results{display:grid;grid-template-columns:1fr;gap:0;padding:0;border:0}
.editor-app .information-panel .results>div{padding:12px 0;border:0;border-bottom:1px solid var(--line)}
.editor-app .information-panel .results small{font-size:9px;line-height:1.5}.editor-app .information-panel .results strong{font-size:20px}
.editor-app .information-panel .shell-info{margin:12px 0 0;padding:0;font-size:11px;line-height:1.65;border:0;border-radius:0;background:transparent;overflow-wrap:anywhere}
.editor-app .information-panel>h2{margin:0 0 8px}.editor-app .editor-sections button[data-section=info]{padding-left:12px;padding-right:12px}
@media(max-width:1150px){.editor-app .viewer-bar>.shell-view{order:3;flex:none;width:100%;justify-content:flex-start}.editor-app .viewer-bar>div:last-child:not(.shell-view){order:2}.editor-app .viewer-bar>span{order:1}}
@media(max-width:760px){.editor-app .viewer-bar>.shell-view{flex-wrap:wrap;gap:5px}.editor-app .viewer-bar>.shell-view label{font-size:9px}.editor-app .viewer-bar>.shell-view input[type=range]{width:65px}.editor-app .information-panel .results strong{font-size:18px}.editor-app .editor-sections button[data-section=info]{padding:6px 4px}}
/* One header and one action row leave the remaining height for modeling. */
.editor-app header{gap:12px;position:relative;z-index:12}
.editor-app header .badge{display:none}
.editor-app header .project-toolbar{margin-left:auto;padding:0;gap:8px;border:0;background:transparent;flex:1;max-width:760px;min-width:0}
.editor-app header .project-title{flex:1;min-width:80px;max-width:210px}
.editor-app header .project-title label{display:none}
.editor-app header .project-title input{width:100%;font-size:11px}
.editor-app header .project-actions{gap:4px;flex:none}
.editor-app header .project-actions button{font-size:10px;padding:6px 8px}
.editor-app header .tool-nav{margin-left:0;gap:3px;flex:none}
.editor-app header .tool-nav a[aria-current]{font-size:14px;font-weight:800;color:#16583f;background:#e2ece3}
.editor-app main{grid-template-rows:34px minmax(0,1fr) 46px}
.editor-app .editor-sections{grid-row:1;justify-content:flex-end}
.editor-app .workspace{grid-row:2}
.editor-app .action-dock{grid-row:3}
.editor-app .action-dock #status{flex:1;min-width:0;max-height:34px;overflow:auto;scrollbar-width:thin;margin:0;padding:2px 6px;font-size:10px;line-height:15px;color:var(--green);overflow-wrap:anywhere}
.editor-app .draft-notice{top:52px}
@media(max-width:1700px){.editor-app header .privacy{display:none}}
@media(max-width:1150px){.editor-app header .project-title{max-width:120px}.editor-app header .project-details>summary{font-size:0}.editor-app header .project-details>summary:after{content:'⋯';font-size:18px}.editor-app header #undo,.editor-app header #redo{font-size:0;padding:4px 7px}.editor-app header #undo:before{content:'↶';font-size:16px}.editor-app header #redo:before{content:'↷';font-size:16px}}
@media(max-width:760px){.editor-app header{height:auto;min-height:48px;flex-wrap:wrap;gap:4px;padding:4px 8px}.editor-app header .project-toolbar{flex-basis:100%;max-width:none}.editor-app header .project-title{max-width:none}.editor-app main{height:calc(100dvh - 86px);grid-template-rows:32px minmax(0,1fr) 58px}.editor-app .action-dock{flex-wrap:wrap;gap:2px 6px}.editor-app .action-dock #status{order:3;flex-basis:100%;max-height:16px;font-size:9px;padding:0 2px}.editor-app .action-dock .export-actions{margin-left:auto}.editor-app header .tool-nav a[aria-current]{font-size:12px}.editor-app .draft-notice{top:88px}}
/* Main tool sections match the ceramic sidebar instead of taking a viewer row. */
.editor-app main{grid-template-rows:minmax(0,1fr) 46px}
.editor-app .workspace{grid-row:1}
.editor-app .action-dock{grid-row:2}
.editor-app aside>.editor-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));flex:none;gap:3px;margin:0;padding:4px;background:#e8ece5;border-radius:7px;justify-content:stretch;overflow:visible}
.editor-app aside>.editor-sections button{display:flex;justify-content:center;gap:5px;min-width:0;margin:0;padding:8px 5px;border:0;border-radius:4px;background:transparent;font-size:11px;color:#65766b;white-space:nowrap}
.editor-app aside>.editor-sections button[aria-selected=true]{background:#fff;color:var(--green);font-weight:700;box-shadow:0 1px 3px #253b3410}
.editor-app aside>.editor-sections button[data-section=info]{grid-column:1/-1;padding:7px 5px}
@media(max-width:760px){.editor-app main{grid-template-rows:minmax(0,1fr) 58px}.editor-app aside>.editor-sections button{flex:initial;font-size:10px;padding:7px 4px}}
.editor-app header .tool-nav{gap:0;font-size:10px}.editor-app header .tool-nav a{padding:7px 6px}
.editor-app header .tool-nav a[aria-current]{font-size:12px}
body[data-variant=candle] #tray-settings,body[data-variant=candle] .fastening-settings,body[data-variant=candle] #release-settings{display:none!important}
body[data-variant=planar] #release-settings{display:none!important}
@media(max-width:1400px){.editor-app header .project-title{max-width:100px}.editor-app header .project-details>summary{font-size:0}.editor-app header .project-details>summary:after{content:'⋯';font-size:18px}.editor-app header #undo,.editor-app header #redo{font-size:0;padding:4px 7px}.editor-app header #undo:before{content:'↶';font-size:16px}.editor-app header #redo:before{content:'↷';font-size:16px}}
/* The entire inspector is one touch-scroll region, including its tool tabs. */
body.editor-app{display:flex;flex-direction:column}
.editor-app header{flex:none}
.editor-app main{flex:1;height:auto;min-height:0}
.editor-app aside{overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#b9c9bc transparent}
.editor-app aside>.panel{flex:0 0 auto;overflow:visible;max-height:none}
.editor-app aside>.editor-sections,.editor-app aside>.panel-switcher{flex-shrink:0;position:static}
.editor-app aside #models{max-height:none;overflow:visible}
@media(max-width:760px){
 .editor-app header .brand{flex:none}
 .editor-app header .tool-nav{flex:1;min-width:0;overflow-x:auto;white-space:nowrap;scrollbar-width:thin}
 .editor-app header .tool-nav a{flex:none}
 .editor-app header .project-title{max-width:none;min-width:50px}
 .editor-app .workspace{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,2fr) minmax(160px,3fr);gap:6px}
 .editor-app aside{position:static;inset:auto;width:auto;min-height:0;padding:0;box-shadow:none;display:flex;grid-row:1;grid-column:1}
 .editor-app .viewer-wrap{grid-row:2;grid-column:1;height:100%;min-height:0}
 .editor-app .mobile-tools{display:block}
 .editor-app.tools-collapsed .workspace{grid-template-rows:minmax(0,1fr)}
 .editor-app.tools-collapsed .viewer-wrap{grid-row:1}
 .editor-app.tools-collapsed aside{display:none}
}
/* A landscape phone keeps the inspector beside the model, with the same scroll. */
@media(max-height:550px) and (orientation:landscape){
 .editor-app header{height:auto;min-height:40px;flex-wrap:wrap;padding:3px 8px;gap:3px 8px}
 .editor-app header .tool-nav{flex:1;min-width:0;overflow-x:auto;white-space:nowrap}
 .editor-app header .tool-nav a{flex:none}
 .editor-app header .project-toolbar{flex-basis:100%;max-width:none}
 .editor-app main{padding:4px 6px;gap:4px;grid-template-rows:minmax(0,1fr) 44px}
 .editor-app .workspace{display:grid;grid-template-columns:260px minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:6px}
 .editor-app aside{position:static;inset:auto;width:auto;grid-row:1;grid-column:1;box-shadow:none;padding:0}
 .editor-app .viewer-wrap{grid-row:1;grid-column:2;min-height:0}
 .editor-app .mobile-tools{display:block}
 .editor-app.tools-collapsed .workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
 .editor-app.tools-collapsed .viewer-wrap{grid-column:1}
 .editor-app .action-dock #status{max-height:14px;font-size:9px}
 .editor-app .action-dock .build-button,.editor-app .action-dock #download{padding:4px 7px;font-size:10px;min-height:26px}
 .editor-app .action-dock #to-export,.editor-app .action-dock #download-zip{display:none}
}
@media(max-width:760px){.editor-app header .project-title{flex:1;min-width:40px;max-width:60px}.editor-app header .project-actions{gap:2px}.editor-app header .project-actions button{font-size:9px;padding:5px}.editor-app header .project-toolbar{gap:3px}}
@media(max-width:450px){.editor-app header .project-actions{flex:1;min-width:0}.editor-app header .project-actions button{white-space:normal;min-width:0}.editor-app header #open-project,.editor-app header #save-project{flex:1}.editor-app header .project-details{flex:none}}
