/* The canvas gets the room; editing actions appear only when opened. */
#hideToolControls{display:none}
.asset-browser{margin-top:16px}.asset-search input{width:100%;min-height:44px;font-size:16px;border:1px solid #43563c;background:#10191d;color:#eef4e6;padding:10px 12px;border-radius:12px}.asset-filters{display:flex;gap:8px;margin-top:8px}.asset-filters select{width:50%;min-height:42px;min-width:0;border:1px solid #455b3e;background:#25302b;color:#e5eedb;border-radius:10px;padding:6px 8px;font-size:12px}.asset-results{font-size:11px;color:#b8c5a9;margin:9px 0}.asset-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.asset-tile{position:relative;border:1px solid #3c5038;background:#25302b;border-radius:12px;min-width:0}.asset-add{width:100%;display:flex;flex-direction:column;align-items:center;gap:7px;padding:14px 6px 8px;background:transparent;border:0;min-height:100px;color:#d9e8c4}.asset-add svg{display:block;width:46px;height:46px}.asset-add span{font-size:10px;line-height:13px;max-width:100%;overflow-wrap:anywhere}.asset-favorite{position:absolute;top:0;right:0;padding:1px 4px;width:28px;height:28px;min-height:28px;border:0;background:transparent;font-size:18px;color:#c8fa63}.asset-credit{font-size:10px;color:#95a78b;margin:15px 0 2px}.asset-credit a{color:#bcd990}.asset-empty{grid-column:1/-1;font-size:13px;line-height:1.5;color:#bdccb0}.asset-browser #assetMore{min-height:44px;margin-top:12px}.ai-intro{font-size:14px;line-height:1.5;color:#e0e9d6;margin:0 0 12px}.ai-label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#c3d2b5}.ai-label select{min-height:42px;background:#25302b;color:#e5eedb;border:1px solid #4c6240;border-radius:10px;padding:8px;font-size:13px}.ai-size{font-size:12px;color:#b6d398;line-height:1.5;margin:9px 0 12px}.ai-controls button{min-height:46px;margin:5px 0;border-radius:12px}.ai-controls progress{width:100%;accent-color:#c8fa63;margin-top:9px}.ai-status{font-size:12px;line-height:1.5;color:#d3e2c0;margin:10px 0}.ai-note{font-size:11px;line-height:1.6;color:#aabb9c;margin:12px 0 0}.asset-add:focus-visible,.asset-favorite:focus-visible{outline:2px solid #c8fa63;outline-offset:2px}
@media(max-width:960px){
 .mobile-editor.direct-workflow #contextTools,.mobile-editor.direct-workflow #objectPicker{display:none!important}
 .mobile-editor.direct-workflow #directContent>#contextTools{display:block!important;background:transparent;border:0;min-height:0;height:auto;padding:0}
 .direct-workflow #directContent .context-heading{padding:0;margin:0 0 10px;height:auto;min-height:18px}.direct-workflow #directContent .context-heading span{display:none}
 .direct-workflow #directContent .context-tool-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;overflow:visible;padding:0;touch-action:pan-y}
 .direct-workflow #directContent .context-tool-list button{width:100%;min-width:0;height:64px;min-height:64px;flex:auto;background:#263329}.direct-workflow #directContent .context-tool-list button span{font-size:11px}
 .mobile-editor.direct-workflow #categoryDock{grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;flex-basis:calc(64px + env(safe-area-inset-bottom));height:calc(64px + env(safe-area-inset-bottom));padding:4px 5px calc(4px + env(safe-area-inset-bottom))}
 .direct-workflow .category-dock button{min-height:54px;font-size:10px;gap:3px;padding:3px;border-radius:10px}.direct-workflow .category-dock button b{font-size:22px;line-height:24px}
 .mobile-editor.direct-workflow #previewDock .stage-toolbar{height:calc(52px + env(safe-area-inset-top));min-height:52px;padding-left:10px;padding-right:8px}
 .mobile-editor.direct-workflow .header-actions #desktopUpscale,.mobile-editor.direct-workflow .header-actions #save,.mobile-editor.direct-workflow .header-actions #openDrafts{display:none}
 .mobile-editor.direct-workflow .header-actions{gap:5px}.mobile-editor.direct-workflow .header-actions button{width:44px;min-width:44px;height:44px}.mobile-editor.direct-workflow .header-actions #exportTop{width:72px;min-width:72px}
 .mobile-editor.direct-workflow .phone-brand.studio-home{width:58px;min-width:58px}.phone-brand.studio-home .studio-brand-art{width:44px;height:44px;border-radius:0}
 .mobile-editor.direct-workflow #toolDrawer{flex-shrink:0}.mobile-editor.direct-workflow #mobileContent>[data-drawer-panel]{padding:12px 12px 18px}.direct-workflow #toast{bottom:calc(80px + env(safe-area-inset-bottom))}
 .mobile-editor.direct-workflow #elementsControls>.action-heading,.mobile-editor.direct-workflow #elementsControls>.photo-hint{display:none}.mobile-editor.direct-workflow #elementsControls>#elementGrid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.mobile-editor.direct-workflow #elementsControls>#elementGrid button{min-height:47px;height:47px;padding:5px;border-radius:9px}.mobile-editor.direct-workflow #elementsControls>#elementGrid button svg{width:24px;height:24px}.mobile-editor.direct-workflow #elementsControls>#elementGrid button span{display:none}.mobile-editor.direct-workflow #elementsControls>#elementSettings{display:none}.asset-browser{margin-top:10px}
 .welcome-art{border-radius:0;box-shadow:none}.brand .studio-brand-art{border-radius:0}
}
@media(min-width:961px){.asset-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.asset-browser{max-width:650px}}

.asset-shelves{display:flex;gap:6px;overflow-x:auto;scrollbar-width:thin;touch-action:pan-x;margin:0 0 10px}.asset-shelves button{flex:0 0 auto;min-height:44px;padding:7px 11px;border:1px solid #49633e;background:#223328;color:#e7f2dc;border-radius:10px;font-size:11px}.asset-shelves button.selected{background:#c8fa63;color:#111b09;border-color:#c8fa63}

/* Short controls below the canvas, with a reversible 48px collapsed header. */
@media(max-width:960px){
 .mobile-editor.direct-workflow #toolDrawer{min-height:0;overflow:hidden}
 .mobile-editor.direct-workflow #toolDrawer.controls-hidden #mobileContent{display:none!important}
 .mobile-editor.direct-workflow .drawer-heading{height:48px;min-height:48px;flex-basis:48px;gap:6px;padding:2px 8px!important}
 .mobile-editor.direct-workflow .drawer-heading strong{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px}
 .mobile-editor.direct-workflow #drawerBack{width:44px;height:44px;min-height:44px;flex:0 0 44px}
 .mobile-editor.direct-workflow #hideToolControls{display:block;width:48px;min-width:48px;height:44px;min-height:44px;padding:4px;border:1px solid #526447;border-radius:10px;background:#27362c;color:#e5f2d7;font-size:12px}
 .mobile-editor.direct-workflow #closeTools{width:64px!important;min-width:64px;height:44px;min-height:44px;padding:4px!important}
 .mobile-editor.direct-workflow #mobileContent>[data-drawer-panel]{padding:6px 10px 8px}
 .mobile-editor.direct-workflow .direct-range{margin-bottom:8px}
 .mobile-editor.direct-workflow .direct-range>div:first-child{margin-bottom:2px}
 .mobile-editor.direct-workflow .direct-range-row{gap:8px}
 .mobile-editor.direct-workflow .direct-range-row>button{width:44px;min-height:44px;height:44px;padding:3px;font-size:22px}
 .mobile-editor.direct-workflow #directContent .context-tool-list button{height:54px;min-height:54px}
 .mobile-editor.direct-workflow #categoryDock{height:calc(56px + env(safe-area-inset-bottom));flex-basis:calc(56px + env(safe-area-inset-bottom))}
 .mobile-editor.direct-workflow #categoryDock button{min-height:48px;height:48px;gap:2px}
 .mobile-editor.direct-workflow #previewDock .stage-toolbar{position:relative;z-index:10;padding-left:6px;padding-right:6px}
 .mobile-editor.direct-workflow #previewDock .phone-brand.studio-home{width:44px;min-width:44px;height:44px;flex:0 0 44px}
 .mobile-editor.direct-workflow #previewDock .phone-brand .studio-brand-art{width:44px;height:44px}
 .mobile-editor.direct-workflow .header-actions{gap:3px}
 .mobile-editor.direct-workflow .header-actions #canvasOptions{position:relative;top:auto;right:auto;display:block;flex:0 0 44px;margin:0;z-index:12}
 .mobile-editor.direct-workflow .header-actions #canvasOptions>summary{display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:0;gap:0;font-size:22px;border-radius:10px}
 .mobile-editor.direct-workflow .header-actions #canvasOptions>summary span{display:none}
 .mobile-editor.direct-workflow .header-actions .canvas-view-menu{top:50px;right:-75px;max-width:calc(100vw - 20px)}
 .mobile-editor.direct-workflow .reshape-axis-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:0 0 4px}
 .mobile-editor.direct-workflow .reshape-axis-tabs button{min-height:44px;height:44px;padding:4px;font-size:11px;border-radius:9px}
 .mobile-editor.direct-workflow #directContent>.direct-range[hidden]{display:none!important}
 .mobile-editor.direct-workflow .reshape-more{border-top:1px solid #3d513b;margin-top:5px}
 .mobile-editor.direct-workflow .reshape-more>summary{display:flex;align-items:center;min-height:44px;font-size:11px;color:#c4d4b7;cursor:pointer}
 .mobile-editor.direct-workflow .reshape-more .direct-button{min-height:44px;margin-right:6px}
}
@media(max-width:359px){.mobile-editor.direct-workflow .header-actions #exportTop{width:64px;min-width:64px}.mobile-editor.direct-workflow .header-actions .canvas-view-menu{right:-67px}.mobile-editor.direct-workflow .drawer-heading strong{font-size:11px}}

/* A full work area keeps the current tool alive and restores it with one tap. */
#canvasOnly,.auto-tuck{display:none}
@media(max-width:960px){
 .direct-workflow #canvasOnly{display:block;width:100%;min-height:44px;height:auto;margin:0 0 6px;background:#c8fa63;color:#111b09;padding:8px;border-radius:9px;font-size:12px}
 .direct-workflow .auto-tuck{display:flex;align-items:center;gap:8px;min-height:44px;padding:4px 0;font-size:11px;color:#dce9ce}
 .direct-workflow .auto-tuck input{width:20px;height:20px;accent-color:#c8fa63;flex:0 0 20px}
 .mobile-editor.direct-workflow.canvas-only #categoryDock,.mobile-editor.direct-workflow.canvas-only #toolDrawer,.mobile-editor.direct-workflow.canvas-only #contextTools{display:none!important}
 .mobile-editor.direct-workflow.canvas-only .header-actions #canvasOptions>summary{font-size:11px;background:#c8fa63;color:#111b09;font-weight:700}
 .mobile-editor.direct-workflow.canvas-only #toast{bottom:calc(12px + env(safe-area-inset-bottom))}
}

.asset-search{display:flex;gap:6px;align-items:center}.asset-search input{min-width:0}.asset-search #assetFilterToggle{flex:0 0 58px;min-height:44px;padding:5px;font-size:11px;border:1px solid #49633e;border-radius:9px;background:#223328;color:#e7f2dc}
.asset-filters{flex-wrap:wrap}.asset-filters[hidden]{display:none!important}.asset-filters select{flex:1 1 45%;width:auto}.asset-filters #assetSurround{flex-basis:100%}.streetwear-note{font-size:11px;line-height:1.5;color:#becdae;margin:3px 0}
#elementsControls:not([data-asset-shelf="shapes"])>#elementGrid{display:none!important}
@media(max-width:960px){
 .mobile-editor.direct-workflow #elementsControls .asset-browser{margin-top:0}
 .mobile-editor.direct-workflow .asset-shelves{margin:4px 0;gap:4px}
 .mobile-editor.direct-workflow .asset-shelves button{min-height:44px;padding:4px 9px}
 .mobile-editor.direct-workflow .asset-results{margin:4px 0;font-size:10px}
 .mobile-editor.direct-workflow .asset-grid{gap:5px;grid-template-columns:repeat(3,minmax(0,1fr))}
 .mobile-editor.direct-workflow .asset-add{min-height:102px;padding:9px 4px 6px;gap:3px}
 .mobile-editor.direct-workflow .asset-add svg{width:62px;height:62px}
 .mobile-editor.direct-workflow .asset-add span{font-size:9px;line-height:12px}
 .mobile-editor.direct-workflow .asset-credit{font-size:9px;margin-top:8px}
}

/* Actual flash gets larger previews and a separate 44px inspection action. */
.flash-tile-actions{display:flex;align-items:center;border-top:1px solid #40573c}
.flash-tile-actions .asset-favorite{position:static;width:44px;height:44px;min-height:44px;flex:0 0 44px;font-size:22px;border-radius:0 0 12px 0}
.flash-view{flex:1;min-height:44px;padding:5px;background:transparent;border:0;color:#e7f2dc;font-size:12px}
.asset-add svg{width:76px;height:76px;border-radius:8px}.asset-add{min-height:125px}
.flash-preview{width:min(94vw,640px);max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #506447;border-radius:16px;background:#172027;color:#edf3e5;padding:14px}
.flash-preview::backdrop{background:#000c}.flash-preview-heading{display:flex;align-items:center;gap:10px;margin-bottom:10px}.flash-preview-heading h2{font:600 17px/1.3 system-ui;flex:1;margin:0}.flash-preview-heading button{width:44px;height:44px;min-height:44px;flex:0 0 44px;font-size:26px;background:#283b2b;color:#edf3e5;border:1px solid #4d6243;border-radius:10px}
.flash-preview-art{border-radius:10px;padding:12px}.flash-preview-art svg{display:block;width:100%;height:min(57dvh,460px)}.flash-preview p{font-size:12px;line-height:1.5;color:#c5d4b7;margin:10px 0 4px}.flash-preview a{font-size:12px;color:#c8fa63;display:block;min-height:44px;padding-top:10px}.flash-preview #addFlashPreview{min-height:48px;width:100%;border-radius:10px}
@media(max-width:960px){.mobile-editor.direct-workflow .asset-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.mobile-editor.direct-workflow .asset-add{min-height:142px;padding:10px 5px 6px;gap:6px}.mobile-editor.direct-workflow .asset-add svg{width:100px;height:100px}.mobile-editor.direct-workflow .asset-add span{font-size:10px;line-height:13px}}

/* Give fine-line flash the full tile width, rather than icon-sized previews. */
.asset-add svg{width:100%;height:120px}
@media(max-width:960px){.mobile-editor.direct-workflow .asset-add svg{width:100%;height:136px}}

/* Contrast belongs to the library preview; vector geometry and chosen canvas ink stay intact. */
.asset-add svg,.flash-preview-art{color:#a89b78;background-color:#0b0d10;background-image:linear-gradient(45deg,#171b20 25%,transparent 25%),linear-gradient(-45deg,#171b20 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#171b20 75%),linear-gradient(-45deg,transparent 75%,#171b20 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}
#elementGrid button svg{color:#a89b78}

/* A single compact selector row stays outside the artwork. Ambiguous taps open explicit choices. */
.overlap-picker[hidden]{display:none!important}.overlap-picker{position:absolute;left:12px;right:12px;bottom:12px;z-index:10;max-width:420px;margin:auto;background:#172027f5;border:1px solid #647650;border-radius:14px;box-shadow:0 8px 35px #0009;padding:8px;color:#edf3e5}.overlap-picker>div:first-child{display:flex;align-items:center;justify-content:space-between;padding-left:8px}.overlap-picker strong{font-size:14px}.overlap-picker button{min-height:44px;touch-action:manipulation;border:1px solid #526447;border-radius:9px;background:#253428;color:#edf3e5;padding:8px 12px;font-size:13px}.overlap-picker>div:first-child button{width:44px;font-size:23px}.overlap-list{max-height:180px;overflow:auto;display:grid;gap:5px;margin-top:6px}.overlap-list button{text-align:left;overflow-wrap:anywhere}.overlap-list button[aria-pressed=true]{border-color:#c8fa63;background:#35482d}.stipple-swatches{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-bottom:14px}.stipple-swatches button{padding:6px;font-size:11px}.stipple-editing #artboard{cursor:crosshair}.selection-body-hit{pointer-events:none}
@media(max-width:960px){.mobile-editor.direct-workflow #objectPicker[data-multiple=true]{display:flex!important;height:48px;min-height:48px;flex:0 0 48px;padding:2px 8px;gap:6px}.mobile-editor.direct-workflow #objectPicker .picker-heading{flex-basis:38px;min-width:38px}.mobile-editor.direct-workflow #objectPicker .object-list{gap:6px}.mobile-editor.direct-workflow #objectPicker .object-chip{min-height:44px;height:44px;min-width:116px;max-width:170px}.mobile-editor.direct-workflow #objectPicker .picker-caption b{font-size:11px}.mobile-editor.direct-workflow #objectPicker .picker-caption small{font-size:9px}.mobile-editor.direct-workflow.canvas-only #objectPicker,.mobile-editor.direct-workflow.editor-keyboard #objectPicker{display:none!important}}

.stipple-scope{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#e7eddf;margin-bottom:12px}.stipple-scope select{min-height:44px;width:100%;font-size:14px;background:#253428;color:#edf3e5;border:1px solid #526447;border-radius:9px;padding:8px}.stipple-editing #directContent [hidden]{display:none!important}

.stipple-quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:12px}.stipple-quick-actions button{min-height:44px;padding:8px 6px;font-size:12px}.picking-artwork-color #overlapPicker{display:none!important}
@media(max-width:960px){.mobile-editor.direct-workflow.picking-artwork-color #objectPicker,.mobile-editor.direct-workflow.picking-artwork-color #categoryDock{display:none!important}.mobile-editor.direct-workflow.canvas-only.picking-artwork-color #canvasColorPicker{display:flex}}
