/* One responsive shell owns sizing. Feature styles own the contents. */
body.studioShell{height:100dvh;display:grid;grid-template-rows:64px 48px auto 48px minmax(0,1fr);overflow:hidden;background:#f3f5f4;color:#24342e;font-size:14px}
.studioShell>header{grid-row:1;height:64px;min-height:0;padding:8px 24px;gap:16px;flex-wrap:nowrap;min-width:0}
.studioShell>header .brand{font-size:18px}.studioShell>header .private,.studioShell>header #connection{display:none}
.studioShell .projectPicker{width:360px;max-width:50%;min-width:0;margin-left:auto;font-size:11px}.studioShell .projectPicker select{margin:2px 0 0;text-overflow:ellipsis;height:34px;padding:4px 8px}
.studioShell>.atelierSteps{grid-row:2;height:48px;margin:0;padding:0 24px;gap:8px;overflow-x:auto;white-space:nowrap}.studioShell>.atelierSteps button{font-size:13px;padding:8px 18px;min-height:44px;border-radius:8px 8px 0 0}
.studioShell>.genesisToolbar{grid-row:3;padding:8px 24px;gap:12px;min-width:0;flex-wrap:nowrap}.studioShell .genesisToolbar label{min-width:0;flex:1;max-width:360px;font-size:12px}.studioShell .genesisToolbar select{min-width:0;width:100%;max-width:none;height:38px;margin:0;font-size:13px;text-overflow:ellipsis}.studioShell .genesisToolbar [data-storage]{white-space:nowrap;font-size:12px}
.studioActions{grid-row:4;display:flex;align-items:center;gap:6px;padding:3px 24px;background:#fff;border-bottom:1px solid #e0e6e2;overflow-x:auto;overflow-y:hidden;white-space:nowrap;min-width:0;scrollbar-width:thin}.studioActions button{font-size:12px;min-height:38px;padding:8px 12px;flex-shrink:0}.studioActions button:last-child{margin-left:auto}
body.studioShell>main,body.studioShell .genesisToolbar+main{grid-row:5;height:auto;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);overflow:hidden}
body.studioShell.inspectorOpen:not(.modelFocus)>main{grid-template-columns:minmax(0,1fr) 360px}
.studioShell main>aside{display:none;grid-column:2;grid-row:1;padding:0 18px 24px;overflow:auto;min-width:0;border-left:1px solid #e0e6e2;scrollbar-gutter:stable;overscroll-behavior:contain}
.studioShell.inspectorOpen:not(.modelFocus) main>aside{display:block}
.studioShell aside>section[id^=tab-]{overflow:visible;padding:0;min-height:0}
.studioPanelTop{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;background:#fff;z-index:6;padding:12px 0;border-bottom:1px solid #e0e6e2;margin-bottom:16px}.studioPanelTop strong{font-size:14px}.studioPanelTop button{min-height:40px;font-size:12px}
.studioShell .workspace{grid-column:1;grid-row:1;height:auto;min-height:0;overflow:hidden;padding:0 16px 10px;scrollbar-gutter:auto}.studioShell .modelHeader{min-height:54px;padding:8px 0}.studioShell .modelHeader>div{min-width:0}.studioShell .modelHeader h2{font:600 15px/1.4 Inter,system-ui,sans-serif;letter-spacing:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.studioShell .modelHeader .eyebrow{display:none}.studioShell .modelHeader .pill{font-size:10px;padding:5px 8px}
.studioShell .workspace>.viewport{height:auto;min-height:0;max-height:none;flex:1 1 0;border-radius:12px;box-shadow:0 2px 10px #21392b06}.studioShell #notice{flex:none;max-height:72px;overflow:auto;margin:0 0 6px;padding:6px 10px;font-size:12px}.studioShell .hint{display:none}
.studioShell .viewbar{left:10px;right:60px;top:10px;max-width:max-content;overflow-x:auto;white-space:nowrap}.studioShell .viewbar button{min-height:40px;flex-shrink:0;padding:8px 10px}.studioShell .viewtools{right:10px;top:10px}.studioShell .viewtools button{min-width:40px;min-height:40px;overflow:hidden}.studioShell .filters{left:10px;bottom:10px;max-width:calc(100% - 20px);gap:8px;padding:0 8px 6px}.studioShell .filters label{min-height:32px;display:flex;align-items:center;margin:0;font-size:12px}.studioShell .filters input{width:18px;height:18px}
.studioPlayback{flex:none;margin:4px 0 0;padding:0;border:0;max-height:30%;overflow:auto}.studioPlayback>summary{padding:8px 0;font-size:11px;color:#67766c}.studioPlayback footer{padding:0}.studioPlayback #timeline{margin:5px 0}.studioPlayback .playrow{flex-direction:row}
body.studioShell[data-step=export]:not(.modelFocus)>main{grid-template-columns:minmax(0,1fr)}
body.studioShell[data-step=export]:not(.modelFocus) .workspace{display:none}
body.studioShell[data-step=export]:not(.modelFocus) main>aside{display:flex;grid-column:1;padding:0;border:0;overflow:hidden}
.studioShell[data-step=export] aside>.studioPanelTop{display:none}.studioShell[data-step=export] aside>#tab-export{flex:1;min-height:0;overflow:hidden;padding:0}.studioShell .genesisPresentation{height:100%;min-height:0;display:flex;flex-direction:column}.studioShell .genesisPresentation iframe{flex:1;min-height:0;height:0!important;width:100%}
.studioDrawer{position:fixed;inset:12px 12px 12px auto;margin:0;width:min(440px,calc(100vw - 24px));max-width:none;height:calc(100dvh - 24px);max-height:none;padding:0 20px 24px;border:1px solid #dce4dd;border-radius:16px;background:#fff;color:#24342e;overflow:auto;box-shadow:0 18px 80px #15362430;z-index:60}.studioDrawer::backdrop{background:#15291f40;backdrop-filter:blur(2px)}
.studioDrawer .designerDock,.studioShell[data-step=export] .studioDrawer .designerDock{display:block;position:static;width:auto;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:visible;box-shadow:none;background:white}.studioDrawer .designerIdentity::after{display:none}.studioDrawer .designerIdentity{cursor:default}.studioDrawer .genesisCameraSetup{display:block;max-height:none;border:0;padding:0;margin:0;overflow:visible}.studioDrawer .genesisCameraSetup>summary{display:none}.studioDrawer .cameraLibrary{padding:10px}.studioDrawer .cameraRow button{font-size:12px;min-height:40px}.studioDrawer .cameraRow button:first-child{font-size:13px;overflow-wrap:anywhere}
.studioHelpContent .genesisAppFooter{display:flex;flex-direction:column;align-items:stretch;padding:16px 0;border:0;background:white}.studioHelpContent .genesisAppFooter a,.studioHelpContent .genesisAppFooter button{padding:12px;text-align:left}.studioHelpContent .genesis-language-switch{position:static!important;margin:16px 0}.studioHelpContent>a{display:block;margin:18px 0}.studioShell h2{font-size:22px}.studioShell h3{font-size:17px}.studioShell p{font-size:13px}.studioShell input,.studioShell select,.studioShell textarea{max-width:100%}.studioShell button:focus-visible,.studioShell summary:focus-visible{outline:3px solid #4e916d;outline-offset:2px}
.studioShell .productLibrary{padding:12px;margin:12px 0}.studioProductList{max-height:44dvh;overflow:auto;overscroll-behavior:contain;margin:10px 0}.studioProductList>div>span{min-width:0;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.studioProductList button{flex:none;font-size:11px}.studioProductSearch{width:100%;border:1px solid #d9e2db;padding:10px;border-radius:8px;margin:12px 0 0}.studioProductAdvanced{margin-top:12px}.studioProductAdvanced ol{padding-left:20px;line-height:1.6;font-size:12px}
.studioShell .genesisAccess{background:#f3f5f4}.studioShell.genesis-login-open .genesisPresentation{position:fixed;inset:0;z-index:1001;height:100dvh!important}.studioShell.genesis-login-open .genesisPresentation iframe{height:100dvh!important}
@media(min-width:1024px){
 body.studioShell{grid-template-columns:minmax(430px,1fr) auto;grid-template-rows:64px 48px auto minmax(0,1fr)}
 .studioShell>header{grid-column:1/-1}.studioShell>.atelierSteps{grid-column:1;grid-row:2;padding-right:0;gap:0}
 .studioShell>.atelierSteps button{padding:8px 12px}.studioShell>.studioActions{grid-column:2;grid-row:2;padding-left:6px;padding-right:16px}
 .studioShell>.genesisToolbar{grid-column:1/-1;grid-row:3}body.studioShell>main{grid-column:1/-1;grid-row:4}
}
@media(max-width:1023px){
 body.studioShell{grid-template-rows:64px 48px auto 48px minmax(0,1fr)}
 body.studioShell.inspectorOpen:not(.modelFocus)>main{grid-template-columns:minmax(0,1fr)}
 .studioShell.inspectorOpen:not(.modelFocus) .workspace{display:none}.studioShell.inspectorOpen:not(.modelFocus) main>aside{grid-column:1;padding:0 20px 24px}
 .studioShell .workspace{min-height:0;height:auto}.studioShell .genesisToolbar [data-storage]{display:none}
 .studioShell button{min-height:44px}.studioActions button{min-height:40px}.studioShell .productLibrary{max-width:700px}
}
@media(max-width:600px){
 body.studioShell{grid-template-rows:64px 48px 64px 48px minmax(0,1fr)}
 .studioShell>header{padding:8px 12px;gap:10px}.studioShell>header .brand{font-size:14px}.studioShell .brandMark{width:24px!important;height:24px!important}.studioShell .brand small{font-size:8px}.studioShell .projectPicker{max-width:none;width:auto;flex:1;font-size:10px}.studioShell .projectPicker select{font-size:12px}
 .studioShell>.atelierSteps{padding:0 8px;gap:0;justify-content:space-between;overflow:hidden}.studioShell>.atelierSteps button{font-size:11px;padding:6px;flex:1 1 0;min-width:0;white-space:normal;line-height:1.25}
 .studioShell>.genesisToolbar{padding:6px 10px;gap:8px}.studioShell .genesisToolbar label{display:block;font-size:10px;flex:1}.studioShell .genesisToolbar select{font-size:12px;height:38px;padding:6px}.studioShell .genesisToolbar [data-deliver]{font-size:11px;padding:7px;min-height:38px}
 .studioActions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:3px 8px;gap:5px;overflow:hidden}.studioActions button{font-size:11px;padding:5px;white-space:normal;min-width:0;line-height:1.2}.studioActions button:nth-child(2){display:none}.studioActions button:last-child{margin-left:0}
 .studioShell .workspace{padding:0 8px 6px}.studioShell .modelHeader{min-height:42px}.studioShell .modelHeader h2{font-size:12px}.studioShell .modelHeader .pill{display:none}.studioShell .viewbar button{font-size:10px;padding:6px}.studioShell .filters{flex-wrap:wrap}.studioShell .filters label{font-size:11px}
 .studioDrawer{inset:0;width:100%;height:100dvh;border:0;border-radius:0;padding:0 16px max(24px,env(safe-area-inset-bottom))}.studioDrawer .studioPanelTop{padding-top:max(12px,env(safe-area-inset-top))}
 .studioShell dialog:not(.studioDrawer){max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto}
 .studioShell .studioObjectEditor{max-height:28dvh;overflow:auto;padding:6px!important;margin:4px 0!important;flex-shrink:0}
}

/* Presentation shares the workspace bounds; short screens can scroll. */
body.studioShell[data-step=export]:not(.modelFocus) main>aside{min-height:0;overflow:auto;display:flex;flex-direction:column}
.studioShell[data-step=export] aside>#tab-export{display:flex;flex-direction:column;flex:1 0 auto;min-height:100%;overflow:visible;width:100%}
.studioShell[data-step=export] aside>#tab-export[hidden]{display:none}
.studioShell[data-step=export] .genesisRenderStyles{flex:none}
.studioShell[data-step=export] .genesisPresentation{height:auto;flex:1 0 520px;min-height:520px}
.studioShell[data-step=export] .genesisPresentation iframe{display:block;flex:1 1 auto;min-height:520px;height:100%!important}

/* 193: two compact rows on every device, existing tools remain in a drawer. */
body.studioShell{grid-template-columns:minmax(0,1fr);grid-template-rows:52px 44px minmax(0,1fr)}
.studioShell>header{grid-row:1;grid-column:1;height:52px;padding:4px 12px}
.studioShell>.atelierSteps{grid-row:2;grid-column:1;height:44px;padding:0 10px;justify-content:flex-start;overflow-x:auto}
.studioShell>.atelierSteps button{min-height:44px;padding:6px 12px;white-space:nowrap;flex:0 0 auto}
body.studioShell>main,body.studioShell .genesisToolbar+main{grid-row:3;grid-column:1}
.studioShell .projectPicker{font-size:0;width:min(420px,50%)}
.studioToolsOpen{min-height:40px;padding:8px 12px;flex:none}
.studioToolsContent .genesisToolbar{display:flex;flex-wrap:wrap;padding:10px 0}
.studioToolsContent .genesisToolbar label{flex:1 0 100%;max-width:none}
.studioToolsContent .studioActions{display:flex;flex-wrap:wrap;padding:12px 0;overflow:visible}
.studioToolsContent .studioActions button{display:block;min-height:44px;margin:0!important}
.studioToolsContent .studioActions button[hidden]{display:none}
.studioShell[data-step=export] aside>#tab-export{min-height:100%;flex:1 0 auto}
.studioShell .genesisRenderStyles{padding:4px 12px!important;gap:6px!important;font-size:12px}
.studioShell .genesisRenderStyles button{min-height:34px;padding:6px 10px}
@media(max-width:600px){.studioShell>header .brand small{display:none}.studioShell>header .brand{font-size:12px}.studioShell .projectPicker{width:auto;flex:1;max-width:none}.studioToolsOpen{font-size:11px;padding:6px}.studioShell>.atelierSteps{justify-content:space-between;padding:0 4px}.studioShell>.atelierSteps button{flex:1 1 0;padding:6px 4px;font-size:10px}}
