/* Focused adjustments sit below artwork; browsing menus can slide over it. */
#touchDock,#touchAdjustment,.touch-setting{display:none}
@media(max-width:960px){
 .mobile-editor.direct-workflow #categoryDock,.mobile-editor.direct-workflow #quickLayers{display:none!important}
 .mobile-editor.direct-workflow #touchDock{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;order:5;flex:0 0 calc(68px + env(safe-area-inset-bottom));padding:6px 10px calc(6px + env(safe-area-inset-bottom));background:#0f151b;border-top:1px solid #42513b}
 #touchDock button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;min-height:56px;min-width:0;border-radius:12px;padding:3px;background:#223027;border:1px solid #465c3e;color:#ecf2e4;font-size:13px;touch-action:manipulation}
 #touchDock button b{font-size:22px;font-weight:500;line-height:23px}#touchDock button[aria-pressed=true]{background:#c8fa63;color:#111b09}
 .mobile-editor.direct-workflow .header-actions{gap:8px}.mobile-editor.direct-workflow .header-actions button,.mobile-editor.direct-workflow #canvasOptions>summary{width:48px;min-width:48px;height:48px;min-height:48px}
 .mobile-editor.direct-workflow #canvasOptions>summary{width:64px;min-width:64px;font-size:12px;padding:5px}.mobile-editor.direct-workflow #previewDock .stage-toolbar{min-height:60px;height:calc(60px + env(safe-area-inset-top))}
 .mobile-editor.direct-workflow .header-actions #exportTop{width:68px;min-width:68px}.mobile-editor.direct-workflow .phone-brand.studio-home{width:48px;min-width:48px}
 .mobile-editor.direct-workflow #directContent .context-tool-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.mobile-editor.direct-workflow #directContent .context-tool-list button{height:64px;min-height:64px}.mobile-editor.direct-workflow #directContent .context-tool-list button span{font-size:13px}
 .mobile-editor.direct-workflow .touch-range-source{display:none!important}
 .mobile-editor.direct-workflow .touch-setting{display:flex;align-items:center;gap:12px;min-height:56px;width:100%;margin:0 0 12px;padding:10px 14px;background:#253428;border:1px solid #536747;border-radius:12px;color:#edf3e5;font-size:14px;text-align:left;touch-action:pan-y}
 .touch-setting>span{flex:1}.touch-setting output{color:#c8fa63;font-size:14px;font-variant-numeric:tabular-nums}.touch-setting>b{font-size:24px}.touch-setting[hidden]{display:none!important}
 .mobile-editor.direct-workflow.touch-adjusting #toolDrawer,.mobile-editor.direct-workflow.touch-adjusting #touchDock{display:none!important}
 .mobile-editor.direct-workflow #touchAdjustment:not([hidden]){display:flex;flex-direction:column;order:3;flex:0 0 auto;min-height:0;padding:8px 12px calc(8px + env(safe-area-inset-bottom));gap:6px;background:#172027;border-top:1px solid #526447;z-index:1}
 #touchAdjustment[hidden]{display:none!important}.touch-adjust-actions{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:12px}
 #touchAdjustment button{min-height:48px;padding:6px 10px;border-radius:10px;background:#253428;border:1px solid #526447;color:#edf3e5;font-size:14px;touch-action:manipulation}
 #touchDone{background:#c8fa63!important;color:#111b09!important}.touch-adjust-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:24px;font-size:14px}.touch-adjust-heading output{font-variant-numeric:tabular-nums;color:#c8fa63}
 .touch-adjust-row{display:flex;align-items:center;gap:14px;min-height:64px}#touchAdjustment .touch-adjust-row button{flex:0 0 52px;width:52px;min-height:56px;font-size:26px}
 #touchSlider{appearance:none;-webkit-appearance:none;min-width:0;flex:1;width:100%;height:64px;min-height:64px;padding:0 16px;margin:0;background:transparent;touch-action:none;cursor:ew-resize;accent-color:#c8fa63}
 #touchSlider::-webkit-slider-runnable-track{height:8px;border-radius:8px;background:#59604e}#touchSlider::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:32px;height:32px;border-radius:50%;background:#c8fa63;border:3px solid #edf6df;margin-top:-12px;box-shadow:0 0 0 4px #c8fa6320}
 #touchSlider::-moz-range-track{height:8px;border-radius:8px;background:#59604e}#touchSlider::-moz-range-thumb{width:28px;height:28px;border-radius:50%;background:#c8fa63;border:3px solid #edf6df}
 .touch-adjust-footer{display:flex;align-items:center;gap:12px}.touch-adjust-footer #touchFine{min-height:48px;flex:0 0 104px}.touch-adjust-footer span{font-size:11px;line-height:1.4;color:#c3d1b5}.touch-adjust-footer #touchFine[aria-pressed=true]{border-color:#c8fa63}
 .mobile-editor.direct-workflow.canvas-only #touchDock,.mobile-editor.direct-workflow.canvas-only #touchAdjustment,.mobile-editor.direct-workflow.editor-keyboard #touchDock,.mobile-editor.direct-workflow.editor-keyboard #touchAdjustment,.mobile-editor.direct-workflow.picking-artwork-color #touchDock{display:none!important}
 .mobile-editor.direct-workflow #mobileContent .direct-choice-grid,.mobile-editor.direct-workflow #mobileContent .paint-modes,.mobile-editor.direct-workflow #mobileContent .reshape-axis-tabs{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
 .mobile-editor.direct-workflow #mobileContent .curve-presets{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0}.curve-presets button{font-size:12px;padding:6px}.curve-modes button{font-size:13px}
 .mobile-editor.direct-workflow #mobileContent button,.mobile-editor.direct-workflow #mobileContent select,.mobile-editor.direct-workflow #mobileContent summary{min-height:48px}.mobile-editor.direct-workflow .drawer-heading{height:56px;min-height:56px;gap:10px}.mobile-editor.direct-workflow #drawerBack,.mobile-editor.direct-workflow #hideToolControls,.mobile-editor.direct-workflow #closeTools{min-height:48px;height:48px}
 .mobile-editor.direct-workflow .direct-toggle{min-height:48px;margin:0 0 12px}.mobile-editor.direct-workflow .direct-toggle input{width:26px;height:26px}
 button:focus-visible,#touchSlider:focus-visible{outline:2px solid #c8fa63;outline-offset:3px}
}
@media(max-width:359px){.mobile-editor.direct-workflow .header-actions{gap:5px}.mobile-editor.direct-workflow .phone-brand.studio-home{width:40px;min-width:40px}.mobile-editor.direct-workflow .header-actions #exportTop{width:60px;min-width:60px}.mobile-editor.direct-workflow #canvasOptions>summary{width:54px;min-width:54px}#touchAdjustment{padding-left:8px!important;padding-right:8px!important}.touch-adjust-actions{gap:8px}}

#sheetSpace{display:none}
@media(max-width:960px){
 .mobile-editor.direct-workflow #drawerHandle{display:flex!important;flex:0 0 44px;width:100%;height:44px;min-height:44px;position:static;inset:auto;align-items:center;justify-content:center;gap:12px;border:0;border-bottom:1px solid #465840;border-radius:0;padding:0 14px;background:#202d27;color:#dbe8cd;touch-action:none;user-select:none;cursor:ns-resize}
 #drawerHandle .sheet-grip{display:block;width:36px;height:5px;flex:0 0 36px;border-radius:8px;background:#a3b394}
 #drawerHandle .sheet-hint{display:block;font-size:12px;line-height:1.2}
 .mobile-editor.direct-workflow #hideToolControls{display:none}
 .mobile-editor.direct-workflow #toolDrawer.controls-hidden .drawer-heading{display:none!important}
 .mobile-editor.direct-workflow #toolDrawer.controls-hidden #drawerHandle{height:48px;min-height:48px;flex-basis:48px}
 .mobile-editor.direct-workflow #sheetSpace:not([hidden]){display:block;order:3;flex:0 0 var(--reserved-height,220px);height:var(--reserved-height,220px);pointer-events:none}
 .mobile-editor.direct-workflow #toolDrawer.sheet-raised{position:absolute;left:0;right:0;bottom:var(--sheet-bottom,68px);height:var(--sheet-height,70vh);flex:none;max-height:none;z-index:9;border-radius:18px 18px 0 0;box-shadow:0 -12px 36px #0008;overflow:hidden}
 .mobile-editor.direct-workflow #toolDrawer.sheet-raised #drawerHandle{border-radius:18px 18px 0 0}
 .mobile-editor.direct-workflow #mobileContent{overscroll-behavior-y:contain;touch-action:pan-y}
 .mobile-editor.direct-workflow.canvas-only #sheetSpace,.mobile-editor.direct-workflow.touch-adjusting #sheetSpace,.mobile-editor.direct-workflow.editor-keyboard #sheetSpace{display:none!important}
 .smart-guides-toggle{display:flex;align-items:center;gap:10px;min-height:48px;font-size:13px;color:#edf3e5}.smart-guides-toggle input{height:24px;width:24px;accent-color:#c8fa63}
}

#touch-save[aria-label="Save to Gallery"] { background:#c8fa63; color:#111b09; }
