/* Mobile workspace only. Desktop keeps the existing layout and controls. */
.mobile-app-header,.mobile-panel-handle,.mobile-export-overlay{display:none}
@media(max-width:760px){
 dialog.lab-v2.mobile-workspace{height:100dvh!important;max-height:100dvh!important;overflow:hidden!important}
 dialog.lab-v2.mobile-workspace :is(.lab-topbar,.bitmap-topbar,.lab-heading,.bitmap-heading){display:none!important}
 dialog.lab-v2.mobile-workspace .mobile-app-header{position:relative;z-index:10;display:flex;flex:0 0 52px;box-sizing:border-box;min-width:0;height:52px;min-height:52px;align-items:center;gap:5px;padding:7px 10px;border-bottom:1px solid #ffffff15;background:#171b23}
 dialog.lab-v2.mobile-workspace .mobile-app-header :is(button,select){box-sizing:border-box;margin:0!important;height:36px!important;min-height:36px!important;border-radius:8px!important;font:600 12px/1.3 Manrope,sans-serif!important}
 dialog.lab-v2.mobile-workspace .mobile-tool-picker{display:block;flex:1 1 0;width:0;min-width:0;max-width:none!important;padding:6px 22px 6px 8px!important;background:#242b3a!important;color:#edf3ff!important;border:1px solid #ffffff22!important;font-size:16px!important;overflow:hidden;text-overflow:ellipsis}
 dialog.lab-v2.mobile-workspace .mobile-app-header .lab-recipes-toggle{flex:0 0 auto;min-width:0!important;padding:6px 9px!important;background:#819cff15;border-color:#819cff44;font-size:11px!important}
 dialog.lab-v2.mobile-workspace .mobile-app-header .lab-guide-launch{flex:0 0 34px;min-width:34px!important;max-width:34px;padding:0!important;border:1px solid #ffffff22;background:#ffffff05;color:#c0cdea;font-size:10px!important}
 dialog.lab-v2.mobile-workspace .mobile-export-button{display:grid;place-items:center;flex:0 0 36px;width:36px;padding:7px!important;border:1px solid #a0b7ff66;background:#95adf5;color:#111b32;cursor:pointer}
 dialog.lab-v2.mobile-workspace .mobile-app-header .bitmap-close{position:static!important;inset:auto!important;display:grid;place-items:center;flex:0 0 32px!important;width:32px!important;min-width:32px!important;max-width:32px;height:36px!important;padding:0!important;border:0!important;background:transparent!important;color:#adb8ce;font-size:24px!important}
 dialog.lab-v2.mobile-workspace svg{display:block;width:20px;height:20px;pointer-events:none}
 dialog.lab-v2.mobile-workspace :is(.lab-layout,.bitmap-layout){display:flex!important;flex-direction:column!important;flex:1 1 0!important;min-height:0!important;height:auto!important;overflow:hidden!important}
 dialog.lab-v2.mobile-workspace :is(.lab-stage,.bitmap-stage){position:relative!important;order:0!important;flex:1 1 0!important;min-height:170px!important;max-height:none!important;height:auto!important;border:0!important;overflow:hidden!important}
 dialog.lab-v2.mobile-workspace :is(.lab-stage-top,.bitmap-stage-top){position:absolute!important;inset:10px 10px auto!important;z-index:6;display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:nowrap!important;gap:8px!important;height:34px!important;min-height:34px!important;width:auto!important;padding:0!important;border:0!important;background:transparent!important;pointer-events:none}
 dialog.lab-v2.mobile-workspace :is(.lab-stage-top,.bitmap-stage-top)>*{pointer-events:auto}
 dialog.lab-v2.mobile-workspace :is(.lab-focus-toggle,.lab-stage-top>span,.bitmap-preview-label,.lab-stage-top>.lab-transport[hidden]){display:none!important}
 dialog.lab-v2.mobile-workspace :is(.bitmap-view-actions,.lab-compare-tools,.lab-transport){display:flex!important;align-items:center!important;gap:6px!important;min-height:30px!important;padding:3px 5px!important;border:1px solid #ffffff1b;border-radius:9px;background:#151a25db;backdrop-filter:blur(8px)}
 dialog.lab-v2.mobile-workspace[data-tool-kind=texture] .lab-transport{display:none!important}
 dialog.lab-v2.mobile-workspace :is(.lab-fit-top,.bitmap-compare,.lab-compare-tools button,.lab-transport button){min-height:28px!important;height:28px!important;font-size:10px!important;padding:4px 8px!important;border-radius:6px!important;border:0!important;color:#cfdbfa!important;background:#222b3b!important}
 dialog.lab-v2.mobile-workspace .lab-fit-top{margin-left:auto!important;border:1px solid #ffffff22!important;background:#151a25db!important;backdrop-filter:blur(8px)}
 dialog.lab-v2.mobile-workspace .lab-transport input{width:80px!important;height:24px!important}
 dialog.lab-v2.mobile-workspace .lab-transport output{font-size:10px!important}
 dialog.lab-v2.mobile-workspace .bitmap-view-actions input{width:65px!important}
 dialog.lab-v2.mobile-workspace :is(.lab-preview,.bitmap-canvas-area){display:flex!important;align-items:center!important;justify-content:center!important;flex:1 1 0!important;height:100%!important;min-height:0!important;max-height:none!important;padding:12px!important;overflow:auto!important;touch-action:none!important}
 dialog.lab-v2.mobile-workspace :is(.lab-controls,.bitmap-controls){position:relative!important;order:1!important;box-sizing:border-box;flex:0 0 var(--mobile-panel-size,34%)!important;height:var(--mobile-panel-size,34%)!important;min-height:0!important;max-height:none!important;padding:0 14px max(18px,env(safe-area-inset-bottom))!important;border:0!important;border-top:1px solid #9bb1ff33!important;border-radius:16px 16px 0 0;background:#1a1e27!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;box-shadow:0 -8px 28px #0002}
 dialog.lab-v2.mobile-workspace .mobile-panel-handle{position:sticky;top:0;z-index:9;display:flex;box-sizing:border-box;align-items:center;justify-content:space-between;gap:8px;height:48px;min-height:48px;margin:0 -14px;padding:7px 14px;background:#1a1e27;border-radius:16px 16px 0 0;border-bottom:1px solid #ffffff0b}
 dialog.lab-v2.mobile-workspace .mobile-panel-drag{display:grid;place-items:center;flex:0 0 38px;height:32px;touch-action:none;cursor:ns-resize;border-radius:6px}
 dialog.lab-v2.mobile-workspace .mobile-panel-drag i{display:block;width:30px;height:4px;border-radius:5px;background:#687692}
 dialog.lab-v2.mobile-workspace .mobile-panel-toggle{display:flex;flex:1;align-items:center;gap:7px;justify-content:flex-start;min-height:32px;padding:2px 0;border:0;background:transparent;color:#e4ebfb;font:600 13px Manrope,sans-serif;cursor:pointer}
 dialog.lab-v2.mobile-workspace .mobile-panel-toggle svg{width:16px;height:16px;color:#93a6ce}
 dialog.lab-v2.mobile-workspace .mobile-panel-expand{min-height:30px;padding:4px 7px;border:1px solid #ffffff18;border-radius:6px;background:transparent;color:#9fb3df;font:500 10px Manrope,sans-serif;cursor:pointer}
 dialog.lab-v2.mobile-workspace .lab-section-tabs{position:sticky!important;top:48px!important;z-index:8;margin:0 -14px 12px!important;padding:5px 10px!important;min-height:40px;gap:4px;background:#1a1e27;border-bottom:1px solid #ffffff16}
 dialog.lab-v2.mobile-workspace .lab-section-tabs button{min-height:32px!important;height:32px;padding:6px 10px!important;font-size:11px!important;border-radius:7px!important}
 dialog.lab-v2.mobile-workspace[data-mobile-panel=collapsed] :is(.lab-controls,.bitmap-controls){height:48px!important;flex-basis:48px!important;padding-bottom:0!important;overflow:hidden!important}
 dialog.lab-v2.mobile-workspace[data-mobile-panel=collapsed] .mobile-panel-handle{border-bottom:0}
 dialog.lab-v2.mobile-workspace :is(.lab-group h3,.bitmap-group-heading h3){font-size:14px!important;line-height:1.4!important;margin:0 0 12px!important}
 dialog.lab-v2.mobile-workspace .bitmap-group-heading{margin-bottom:10px!important}
 dialog.lab-v2.mobile-workspace :is(.lab-drop-control,.bitmap-dropzone){min-height:76px!important;height:auto!important;padding:12px!important;gap:5px!important;border-radius:9px!important}
 dialog.lab-v2.mobile-workspace :is(.lab-drop-control>b,.bitmap-upload-icon,.lab-drop-control>small,.bitmap-dropzone>small){display:none!important}
 dialog.lab-v2.mobile-workspace :is(.lab-drop-control>strong,.bitmap-dropzone>strong){font-size:13px!important;line-height:1.3!important}
 dialog.lab-v2.mobile-workspace :is(.lab-file-name,.bitmap-file-name){font-size:10px!important;margin:8px 0!important}
 dialog.lab-v2.mobile-workspace :is(.lab-empty,.bitmap-empty){inset:0!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px!important;padding:55px 24px 24px!important;text-align:center}
 dialog.lab-v2.mobile-workspace .bitmap-empty-glyph{font-size:36px!important;width:56px!important;height:56px!important;min-height:56px!important;line-height:1!important;margin:0!important}
 dialog.lab-v2.mobile-workspace :is(.lab-empty strong,.bitmap-empty strong){font-size:17px!important;line-height:1.3!important;margin:0!important}
 dialog.lab-v2.mobile-workspace :is(.lab-empty>span,.bitmap-empty>p){max-width:28ch!important;font-size:12px!important;line-height:1.6!important;margin:0!important}
 dialog.lab-v2.mobile-workspace :is(.lab-empty button,.bitmap-empty button){min-height:44px!important;padding:10px 18px!important;border:1px solid #adc1ff55;border-radius:9px!important;background:#829cff22!important;font-size:13px!important}
 dialog.lab-v2.mobile-workspace .mobile-export-overlay{position:absolute;inset:0;z-index:110;display:block}
 dialog.lab-v2.mobile-workspace .mobile-export-overlay[hidden]{display:none!important}
 dialog.lab-v2.mobile-workspace .mobile-export-backdrop{position:absolute;inset:0;background:#090c14a8;backdrop-filter:blur(5px)}
 dialog.lab-v2.mobile-workspace .mobile-export-sheet{position:absolute;inset:auto 0 0;display:flex;flex-direction:column;max-height:85%;overflow:auto;overscroll-behavior:contain;padding:20px 18px max(20px,env(safe-area-inset-bottom));border:1px solid #9bb1ff33;border-bottom:0;border-radius:18px 18px 0 0;background:#1a1f2a;box-shadow:0 -16px 60px #0006}
 dialog.lab-v2.mobile-workspace .mobile-export-sheet>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
 dialog.lab-v2.mobile-workspace .mobile-export-sheet>header span{color:#92a5d1;font:11px Manrope,sans-serif}
 dialog.lab-v2.mobile-workspace .mobile-export-sheet h3{margin:5px 0 0;font:600 23px/1.2 'Space Grotesk',sans-serif;color:#eef3ff}
 dialog.lab-v2.mobile-workspace .mobile-export-sheet>header button{display:grid;place-items:center;width:36px;height:36px;padding:8px;border:1px solid #ffffff20;border-radius:50%;background:#ffffff04;color:#d7e0f5}
 dialog.lab-v2.mobile-workspace .mobile-export-sheet>p{font:12px/1.6 Manrope,sans-serif;color:#96a4c2;margin:16px 0 0}
 dialog.lab-v2.mobile-workspace .mobile-export-content :is(.lab-stage-bottom,.bitmap-stage-bottom){position:static!important;display:block!important;height:auto!important;min-height:0!important;padding:0!important;border:0!important;overflow:visible!important;background:transparent!important}
 dialog.lab-v2.mobile-workspace .mobile-export-content :is(.bitmap-stage-bottom-actions,.bitmap-export,.lab-stage-bottom>div){display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%;gap:10px!important;white-space:normal!important}
 dialog.lab-v2.mobile-workspace .mobile-export-content :is(button,.bitmap-export>label){display:flex;align-items:center;justify-content:center;min-height:46px!important;width:100%!important;margin:0!important;padding:12px 14px!important;border-radius:9px!important;font-size:13px!important;white-space:normal!important}
 dialog.lab-v2.mobile-workspace .mobile-export-content .bitmap-export>label{justify-content:space-between;gap:14px}
 dialog.lab-v2.mobile-workspace .mobile-export-content select{width:130px!important;max-width:none!important;min-height:36px!important;font-size:16px!important}
 dialog.lab-v2.mobile-workspace .mobile-export-content .bitmap-transparent-option{display:flex!important;align-items:center;justify-content:flex-start;gap:10px;min-height:44px!important;margin:8px 0 0!important;color:#c2cce3;font-size:12px!important;white-space:normal}
 dialog.lab-v2.mobile-workspace [hidden]{display:none!important}
}
@media(max-width:760px){
 dialog.lab-v2.mobile-workspace .bitmap-stage.has-image .bitmap-empty{display:none!important}
 dialog.lab-v2.mobile-workspace :is(.lab-preview,.bitmap-canvas-area).is-zoomed{align-items:flex-start!important;justify-content:flex-start!important}
 dialog.lab-v2.mobile-workspace :is(.lab-preview>canvas,.lab-canvas-frame,.bitmap-canvas-wrap){flex:none;max-width:none!important;max-height:none!important}
}
@media(max-width:760px){
 dialog.lab-v2.mobile-workspace .mobile-app-header select.mobile-tool-picker{font-size:16px!important}
 dialog.lab-v2.mobile-workspace :is(textarea,select,input[type=number],input[type=text]){font-size:16px!important}
 dialog.lab-v2.mobile-workspace :is(.lab-slider,.lab-field,.bitmap-range,.bitmap-field){scroll-margin-top:100px}
}
