/* Phone workspace: one command row; tools dock to the side in landscape. */
.phone-editor-entry,.phone-editor-note,.phone-editor-menu{display:none}
@media(max-width:767px),(max-height:500px) and (pointer:coarse){
 .phone-editor-entry{display:block;min-height:44px;margin:5px 0;padding:10px 14px;background:#e4c895;color:#17251c;border:1px solid #e4c895;border-radius:6px;font:600 14px system-ui}
 .demo-gallery-preview .phone-editor-entry{display:none}
 .editor-mode .studio-editor .paint-shell{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:3px!important;padding:2px 4px!important;min-height:44px!important;height:44px!important;box-sizing:border-box!important}
 .editor-mode .studio-editor .paint-shell .paint-home{display:none!important}
 .editor-mode .studio-editor .paint-shell>.back-demo-gallery{flex:0 0 55px!important;min-width:0!important;max-width:55px;overflow:hidden;white-space:nowrap;font-size:11px!important;padding:0!important}
 .editor-mode .studio-editor .paint-shell>.paint-ribbon{flex:1!important;min-width:0!important;width:auto!important}
 .editor-mode .studio-editor .paint-shell>.paint-final-actions{flex:none!important;display:flex!important;gap:0!important}
 .editor-mode .studio-editor .paint-final-actions #review-project{display:none!important}
 .editor-mode .studio-editor .paint-shell :is(button,a,select){min-height:40px!important;height:40px!important;padding:3px 6px!important;box-sizing:border-box}
 .editor-mode .studio-editor .paint-shell .close-dialog{font-size:22px!important;width:38px!important;min-width:38px!important}
 .editor-mode .studio-editor .paint-commandbar{justify-content:flex-start!important;flex-wrap:nowrap!important;gap:2px!important;min-height:0!important}
 .editor-mode .studio-editor .paint-commandbar .toolbar{gap:2px!important;flex-wrap:nowrap!important}
 .editor-mode .studio-editor .paint-commandbar .toolbar button{width:34px!important;min-width:34px!important}
 .editor-mode .studio-editor .phone-editor-menu{display:block!important;position:static!important;flex:none!important;margin:0!important;border:0!important;padding:0!important;background:none!important}
 .editor-mode .studio-editor .phone-editor-menu>summary{display:grid!important;place-items:center;list-style:none!important;width:36px!important;height:40px!important;padding:0!important;font-size:22px!important;cursor:pointer}
 .phone-editor-menu>summary::-webkit-details-marker{display:none}
 .editor-mode .studio-editor .phone-editor-menu>div{position:absolute;right:5px;top:46px;width:min(280px,calc(100vw - 10px));padding:12px;background:#1b1e28;border:1px solid #666d82;border-radius:8px;box-shadow:0 8px 20px #0008;z-index:250;box-sizing:border-box}
 .editor-mode .studio-editor .phone-editor-menu p{font:12px/1.4 Arial;margin:8px 0;color:#cbd1df}
 .editor-mode .studio-editor .phone-editor-menu button{display:block;width:100%;margin:5px 0}
 .editor-mode .studio-editor :is(.phone-editor-note,.studio-view-actions,.preview-zoom,#editor-device,#element-help,#reset-demo,.studio-context-rail,.studio-footer,.studio-contextbar,.paint-page-tools){display:none!important}
 .editor-mode .studio-editor .editor-grid{inset:44px 0 54px!important;padding:3px!important;gap:0!important}
 .editor-mode .studio-editor .paint-toolrail{top:auto!important;bottom:0!important;left:0!important;right:0!important;width:100%!important;height:52px!important;display:flex!important;flex-direction:row!important;overflow-x:auto!important;overflow-y:hidden!important;border-radius:0;padding:2px!important;gap:2px;scrollbar-width:none}
 .editor-mode .studio-editor .paint-toolrail :is(.paint-group,button){width:auto!important;min-width:54px!important;flex:0 0 54px;height:48px!important;min-height:48px!important}
 .editor-mode .studio-editor .paint-toolrail .paint-group button{min-width:54px!important;width:100%!important}
 .editor-mode .studio-editor .paint-toolrail button svg{width:18px!important;height:18px!important}
 .editor-mode .studio-editor .paint-toolrail button span{font-size:10px!important}
 .editor-mode .studio-editor .paint-toolrail :is([data-paint-tool=layout],[data-paint-tool=shapes],[data-paint-tool=mockups],[aria-label=Livelli]){display:none!important}
 .editor-mode .studio-editor .paint-toolrail .paint-group:has([data-paint-tool=layout]){display:none!important}
 .editor-mode .studio-editor .editor-controls.organized-inspector{display:none!important}
 .editor-mode .studio-editor .editor-controls.organized-inspector.inspector-open{display:block!important;position:absolute!important;inset:auto 3px 0!important;width:calc(100% - 6px)!important;max-height:46%!important;height:46%!important;min-height:0!important;z-index:100!important;padding:8px!important;border:1px solid #8991b2!important;border-radius:10px 10px 0 0!important;box-shadow:none!important;scroll-padding-top:40px;overscroll-behavior:contain}
 .editor-mode .studio-editor .editor-controls .inspector-close{position:sticky!important;top:0;float:right;width:40px!important;height:40px!important;min-height:40px!important;margin:0!important;background:#303446!important;z-index:3}
 .editor-mode .studio-editor .editor-controls::before{font-size:12px!important;min-height:0!important;padding:4px 46px 4px 0!important}
 .editor-mode .studio-editor .editor-controls :is(button,select,summary){min-height:40px!important}
 .editor-mode .studio-editor #element-fields:not([hidden]){display:flex;flex-direction:column}
 .editor-mode .studio-editor #element-fields>label:has(#element-text){order:-1}
 .editor-mode .studio-editor .editor-controls .inspector-close{margin-top:-28px!important}
 .editor-mode .studio-editor .editor-controls :is(input:not([type=checkbox]):not([type=range]),textarea,select){font-size:16px!important}
 .editor-mode .studio-editor .editor-controls :is(fieldset,.image-replacement-tools){margin-block:8px!important;padding:8px!important}
 .editor-mode .studio-editor :is(.selection-position,.element-layer-menu,.resize-selection,.element-context-menu,#element-layers,.paint-quick-image,.selection-actions,[data-selection],.selection-size-tool,.image-effects-panel,.frame-controls,.ratio-lock,label:has(#element-image-w),label:has(#element-image-h),#element-fields>p.small-copy){display:none!important}
 .editor-mode .studio-editor .demo-canvas,.editor-mode .studio-editor .demo-canvas *,.editor-mode .studio-editor .demo-site{touch-action:pan-y!important}
 .editor-mode .studio-editor .demo-site{scroll-behavior:auto!important;overscroll-behavior:contain}
}
@media(orientation:landscape) and (max-height:500px) and (pointer:coarse){
 .editor-mode .studio-editor .editor-grid{inset:44px 56px 0 0!important;width:auto!important;gap:5px!important}
 .editor-mode .studio-editor .paint-toolrail{top:44px!important;bottom:0!important;left:auto!important;width:54px!important;height:auto!important;flex-direction:column!important;overflow-x:hidden!important;overflow-y:auto!important}
 .editor-mode .studio-editor .paint-toolrail :is(.paint-group,button){flex:0 0 48px!important;width:48px!important;min-width:48px!important}
 .editor-mode .studio-editor .editor-controls.organized-inspector.inspector-open{position:relative!important;inset:auto!important;flex:0 0 42%!important;width:42%!important;height:100%!important;max-height:100%!important;border-radius:6px!important}
}
