/* Preserve the carbon palette while replacing the phone interaction structure. */
#contextTools,#categoryDock,#drawerBack{display:none}
@media(max-width:960px){
.mobile-editor.direct-workflow #previewDock{display:flex;flex-direction:column;isolation:isolate}
.direct-workflow #mainDock,.direct-workflow #drawerTabs,.direct-workflow #drawerHandle,.direct-workflow #openTools,.direct-workflow #selectionActions{display:none!important}
.direct-workflow #contextTools{display:block;flex:0 0 86px;min-height:86px;background:#151c23;border-top:1px solid #354031;padding:6px 0 4px;order:4}
.context-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:0 13px;height:18px}.context-heading strong{font-size:10px;color:#d7e6c7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:55%;font-weight:500}.context-heading span{font-size:9px;color:#9bab8e;white-space:nowrap}
.context-tool-list{display:flex;gap:6px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;padding:4px 10px;touch-action:pan-x;overscroll-behavior-x:contain}.context-tool-list::-webkit-scrollbar{display:none}.context-tool-list button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;flex:0 0 66px;width:66px;min-height:54px;height:54px;border:1px solid #3a4938;border-radius:12px;background:#202a27;color:#e3eed8;padding:4px}.context-tool-list button b{font-size:22px;line-height:24px;font-weight:500}.context-tool-list button span{font-size:10px;line-height:13px}.context-tool-list button.selected{background:#354b2b;border-color:#c8fa63;color:#e8ffd0}.context-tool-list [data-direct-tool=delete]{color:#ffc2b7;border-color:#704344}
.mobile-editor.direct-workflow #categoryDock{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;flex:0 0 calc(76px + env(safe-area-inset-bottom));height:calc(76px + env(safe-area-inset-bottom));padding:6px 8px calc(6px + env(safe-area-inset-bottom));border-top:1px solid #3b4933;background:#0f151b;order:5}
.category-dock button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:1px solid transparent;border-radius:12px;min-height:60px;font-size:11px;background:transparent;color:#cddbc1;padding:4px}.category-dock button b{font-size:26px;font-weight:500;line-height:28px}.category-dock button.selected{background:#c8fa63;color:#111b09;border-color:#c8fa63}
.mobile-editor.direct-workflow #toolDrawer{position:relative;left:auto;right:auto;bottom:auto;flex:0 0 var(--drawer-height,210px);height:var(--drawer-height,210px);width:100%;border-radius:0;border:0;border-top:1px solid #506144;background:#172027;box-shadow:none;backdrop-filter:none;z-index:1;order:3;max-height:none;min-height:0}
.mobile-editor.direct-workflow #toolDrawer[hidden]{display:none!important}.direct-workflow .drawer-heading{height:48px;min-height:48px;border-bottom:1px solid #334032;padding:3px 9px!important;gap:10px}.direct-workflow #drawerBack{display:block;width:42px;height:42px;min-height:42px;font-size:25px;background:#243029;border-radius:11px;flex-shrink:0}.direct-workflow #closeTools{width:76px!important;font-size:12px!important;font-weight:700;background:#c8fa63!important;color:#111b09!important;border:0!important;white-space:nowrap}.direct-workflow .drawer-heading>span{display:none}
.mobile-editor.direct-workflow #artboard{height:100%;position:absolute;inset:0;width:100%}.direct-workflow #stage{order:2}.direct-workflow .stage-toolbar{order:0}.direct-workflow #objectPicker{order:1;min-height:42px;height:42px;flex-basis:42px}.direct-workflow .object-chip{height:36px;min-height:36px}.direct-workflow .picker-heading{flex-basis:36px}.direct-workflow .picker-heading small{display:none}.direct-workflow .picker-icon{height:26px;width:24px;flex-basis:24px}.direct-workflow .object-chip .picker-caption small{font-size:8px}.direct-workflow .object-chip .picker-caption b{font-size:11px}
.mobile-editor.direct-workflow #mobileContent>[data-drawer-panel]{padding:12px 14px 16px}.direct-workflow #mobileContent>.direct-controls{display:block!important}.direct-workflow #mobileContent>.direct-controls[hidden]{display:none!important}.direct-workflow #mobileContent .text-dock{gap:6px;padding:10px 12px!important}.direct-workflow #mobileContent .text-entry label{display:none}.direct-workflow #mobileContent .text-entry textarea{font-size:24px;height:52px;min-height:52px}.direct-workflow #mobileContent .text-actions button{min-height:40px;height:40px;font-size:11px}.direct-workflow #mobileContent .text-actions #changeTextFont,.direct-workflow #mobileContent .text-actions #removeText{display:none}
.direct-range{margin:0 0 18px}.direct-range>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:7px}.direct-range label{font-size:13px;color:#ecf2e4}.direct-range output{font-size:13px;color:#cdf19f;font-variant-numeric:tabular-nums}.direct-range-row{display:flex;align-items:center;gap:12px}.direct-range-row>button{width:40px;min-height:42px;flex-shrink:0;background:#2b392d;border:1px solid #4c6440;border-radius:10px;font-size:22px}.direct-range input{width:100%;min-width:0;height:42px;accent-color:#c8fa63;touch-action:pan-y}.direct-note{font-size:11px;line-height:1.5;color:#abbda0;margin:8px 0}.direct-color{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;margin:8px 0 14px}.direct-color input{width:52px;height:38px;border:1px solid #48593b;border-radius:9px;background:#233029;padding:3px}.direct-toggle{display:flex;align-items:center;gap:9px;font-size:13px;margin:6px 0 14px}.direct-toggle input{width:20px;height:20px;accent-color:#c8fa63}.direct-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.direct-button{min-height:46px;padding:9px 10px;background:#253428;color:#e7f3d9;border:1px solid #4c6240;border-radius:12px;font-size:12px}.direct-button.selected{background:#c8fa63;color:#111b09;border-color:#c8fa63}#directContent>.direct-button{width:100%;margin:8px 0}
.direct-workflow #mobileContent .quick-color-head{margin-bottom:10px}.direct-workflow #mobileContent .quick-swatches{gap:9px}.direct-workflow #mobileContent .quick-color>.gradient-controls,.direct-workflow #mobileContent .quick-color>.range-control,.direct-workflow #mobileContent #advancedControls{display:none}.direct-workflow #mobileContent .photo-hint{font-size:11px}.direct-workflow #mobileContent .element-grid{margin:4px 0;gap:8px}.direct-workflow #mobileContent .element-grid button{min-height:78px;height:78px;padding:8px}.direct-workflow .canvas-options{top:8px;right:8px}.direct-workflow .canvas-options>summary{height:40px;min-height:40px}.direct-workflow #quickLayers{min-height:44px;border:1px solid #50603d;background:#253428;border-radius:10px;font-size:22px}.direct-workflow #toast{bottom:calc(170px + env(safe-area-inset-bottom))}.direct-workflow #toolDrawer:has([data-drawer-panel=create]:not([hidden])),.direct-workflow #toolDrawer:has([data-drawer-panel=fonts]:not([hidden])){--unused:0}
.mobile-editor.direct-workflow.editor-keyboard #objectPicker,.mobile-editor.direct-workflow.editor-keyboard #contextTools,.mobile-editor.direct-workflow.editor-keyboard #categoryDock{display:none!important}.mobile-editor.direct-workflow.editor-keyboard #toolDrawer{order:3}.direct-workflow[data-tool=direct] #mobileContent{display:block!important}
}

@media(max-width:960px){.mobile-editor.direct-workflow .phone-brand{width:100px}.direct-workflow .phone-brand .brand-wordmark{width:100px;height:28px}.mobile-editor.direct-workflow .header-actions button{width:35px;min-width:35px}.mobile-editor.direct-workflow .header-actions #save{width:36px}.mobile-editor.direct-workflow .header-actions #exportTop{width:64px}.direct-workflow #quickLayers svg{width:19px;height:19px}.direct-workflow #mobileContent .controls[data-direct-section=letters] details:not(:nth-of-type(4)){display:none}.direct-workflow #layerControls[data-focus=position]>.section-head,.direct-workflow #layerControls[data-focus=position]>#layers,.direct-workflow #layerControls[data-focus=position]>.layer-order{display:none}.direct-workflow #layerControls[data-focus=position]>.position-tools{margin:0;border:0;padding:0}.direct-workflow .controls[data-direct-section=letters] .panel-heading{display:none}}
@media(max-width:359px){.mobile-editor.direct-workflow .phone-brand{width:88px}.direct-workflow .phone-brand .brand-wordmark{width:88px}.mobile-editor.direct-workflow .header-actions{gap:2px}.mobile-editor.direct-workflow .header-actions button{width:32px;min-width:32px}.mobile-editor.direct-workflow .header-actions #exportTop{width:58px}}
