/* Client only: large image workspace and a single horizontal product strip. */
body>header{height:48px;flex:0 0 48px;min-height:48px;padding:4px 12px;flex-wrap:nowrap;gap:10px}body>header .brand{width:29px;height:34px;flex:0 0 29px}body>header h1{font-size:15px}body>header p{display:none}#mobileTools{display:block;position:relative;min-height:36px;min-width:40px;margin-left:auto;font-size:18px;padding:4px 9px}#mobileTools[data-update=true]::after{content:'';position:absolute;right:4px;top:4px;width:7px;height:7px;background:#45d9c7;border-radius:50%}#mobileToolsContent .connection span{display:block}#mobileToolsContent .lan-settings{padding:0;border:0;max-height:none}#mobileToolsContent #updateBanner{font-size:12px;padding:8px;flex-wrap:wrap}#mobileToolsDialog{width:min(570px,94vw)}body>main{padding:6px}
.editor-toolbar{flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;max-height:none!important;min-height:38px;scrollbar-width:thin}.editor-toolbar>*{flex-shrink:0}.editor-toolbar .brush-size{flex-shrink:0}.preview-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}.preview-tabs button{white-space:nowrap}.source-view-tools{padding:3px}.source-view-tools button{min-height:32px;padding:4px 8px}
#mainWorkspace .bottom-dock{flex:0 0 156px;min-height:0;max-height:156px;padding-top:3px;gap:0}#mainWorkspace .bottom-dock .results-workspace{gap:0;min-height:0;flex:1}.results-heading{flex-wrap:nowrap;padding:3px 6px;gap:6px;min-height:34px}.results-title-group{min-width:0;flex:1}.results-title-group h2{font-size:11px;overflow:hidden;text-overflow:ellipsis;max-width:240px}.results-title-group p,#galleryFilterBar,#resultCount{display:none!important}.results-meta-actions{flex-shrink:0}#btnResetResults{font-size:0;min-width:30px;min-height:28px;padding:4px}#btnResetResults::after{content:'↻';font-size:17px}.product-strip-controls{display:flex;align-items:center;gap:4px}.product-strip-controls button{padding:3px 8px;min-width:28px;min-height:28px;font-size:16px}#productFilter{width:105px;font-size:11px!important;padding:5px;min-height:28px}
#resultGallery{display:flex!important;flex-flow:row nowrap!important;align-items:stretch;align-content:normal;gap:7px;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-gutter:auto;scrollbar-width:thin;overscroll-behavior-x:contain;touch-action:pan-x;scroll-snap-type:x proximity;padding:4px 6px 8px;min-height:0;flex:1}#resultGallery .result-item{flex:0 0 135px;width:135px;min-width:135px;align-self:stretch;display:flex;flex-direction:column;gap:3px;padding:3px;scroll-snap-align:start;overflow:hidden}#resultGallery .result-thumb{height:auto;min-height:0;flex:1;aspect-ratio:auto;touch-action:pan-x}#resultGallery .result-thumb img{object-fit:contain}.product-actions-toggle{flex:0 0 27px;min-height:27px!important;padding:3px;font-size:11px!important}.result-thumb .origin-badge{font-size:9px}.gallery-empty-notice{flex:1;min-width:240px;padding:14px;margin:0}
.product-actions-dialog{background:#1a262e;color:#e6eff3;border:1px solid #466271;border-radius:12px;padding:16px;width:min(470px,94vw);max-height:88dvh;overflow:auto}.product-actions-dialog::backdrop{background:#000a}.product-actions-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.product-actions-heading h2{font-size:17px}.product-actions-dialog .result-download{display:flex;flex-direction:column;gap:12px}.product-actions-dialog .result-res-actions,.product-actions-dialog .result-sub-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.product-actions-dialog button{min-height:44px!important;font-size:13px!important;padding:9px}.product-actions-dialog .result-download-note{grid-column:1/-1}.product-actions-dialog .result-sub-actions{width:100%}
@media(max-width:1100px){#mainWorkspace .bottom-dock{flex-basis:156px;max-height:156px}.editor-toolbar button{min-height:38px;font-size:12px}.preview-tabs button{min-height:36px}.editor-toolbar{padding:3px}.product-strip-controls button{min-height:34px;min-width:34px}.source-view-tools button{min-height:36px}}
@media(max-width:900px),(max-height:520px) and (max-width:1100px){body>header{display:flex;height:50px;min-height:50px;flex-basis:50px;padding:4px 8px;gap:6px}body>header h1{font-size:12px;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#mobileTask{width:106px;min-height:38px;margin-left:auto;font-size:12px!important;flex-shrink:0}#mobileTools{margin-left:0;min-height:38px;min-width:36px}body>main{padding:0}body[data-mobile-pane=image] #mainWorkspace .bottom-dock,body[data-mobile-pane=results] #mainWorkspace .bottom-dock{display:flex;flex:0 0 148px;max-height:148px;min-height:0}body[data-mobile-pane=results] #mainWorkspace .editor{display:flex;flex:1;min-height:0}.results-heading{padding:3px 5px}.results-title-group h2{max-width:135px}.product-strip-controls button{min-height:34px;min-width:28px;padding:3px 7px}#productFilter{width:94px;min-height:34px}.results-meta-actions{margin:0}.results-filter-bar{width:auto}.editor-toolbar{max-height:none}.preview-tabs{padding:3px}.source-view-tools{position:static;width:auto;height:auto;justify-content:center}.source-view-tools button{min-height:36px}.mobile-workspace-nav{gap:4px;padding:4px 6px;padding-bottom:max(4px,env(safe-area-inset-bottom))}.mobile-workspace-nav button{min-height:40px;padding:6px}.product-actions-toggle{flex-basis:32px;min-height:32px!important}.product-actions-dialog{padding:12px}#resultGallery .result-item{flex-basis:122px;min-width:122px;width:122px}body>.toast{bottom:110px}.product-strip-controls{gap:3px}}
@media(max-height:520px) and (max-width:1100px){#mainWorkspace .bottom-dock,body[data-mobile-pane=image] #mainWorkspace .bottom-dock,body[data-mobile-pane=results] #mainWorkspace .bottom-dock{flex-basis:112px;max-height:112px}.source-view-tools button{min-height:28px}.source-view-tools{padding:1px}.preview-tabs button{min-height:28px}.editor-toolbar button{min-height:30px}.editor-toolbar{min-height:32px}.product-actions-toggle{min-height:24px!important;flex-basis:24px}.results-heading{min-height:28px}.product-strip-controls button,#productFilter{min-height:26px}}
#clientJobs{margin:5px 0;padding:7px 9px;background:#192b34;border:1px solid #34525d;border-radius:7px;font-size:12px}#clientJobs[hidden]{display:none}#clientJobs summary{cursor:pointer;color:#7de2da}#clientJobs>div{max-height:190px;overflow:auto}#clientJobs>div>div{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid #30424b}#clientJobs span{flex:1;min-width:0;overflow-wrap:anywhere}#clientJobs button{flex-shrink:0;padding:7px 10px}
