/* Mobile has one workspace or one tool page, never two competing scroll areas. */
.is-tank .side-switch button{width:auto;flex:1}.side-switch button[hidden],.preview-grid figure[hidden]{display:none!important}
.mobile-tool-header,.mobile-product-open,.mobile-positions-toggle{display:none}
.mobile-text-dialog{width:min(440px,calc(100vw - 24px));padding:22px;border-radius:18px}.mobile-text-dialog header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.mobile-text-dialog h2{font-size:22px}.mobile-text-dialog header button{width:44px;height:44px;font-size:30px}.mobile-text-dialog label{font-size:14px;display:block;margin-bottom:10px}.mobile-text-dialog input{width:100%;font-size:18px;padding:14px;border:1px solid #8cae9d;border-radius:8px;min-height:52px}.mobile-text-dialog .button{width:100%;margin-top:20px;min-height:52px;font-size:17px}
@media(max-width:700px){
 html,body{height:var(--app-height,100dvh);overflow:hidden}
 .topbar{height:56px;min-height:56px;padding:0 10px}.topbar .brand small{display:none}.topbar .brand-mark{width:30px;height:30px}.top-actions .icon-button{width:40px;height:44px}.top-actions .primary{min-height:44px;font-size:12px;margin-left:0;padding-inline:12px}
 .studio{height:calc(var(--app-height,100dvh) - 56px)!important;display:block;position:relative;padding-bottom:64px;box-sizing:border-box}
 .tool-rail{position:absolute;bottom:0;left:0;right:0;height:64px;min-height:64px;padding:3px 4px;z-index:30;display:flex;flex-direction:row;justify-content:space-around;border-top:1px solid var(--line)}.tool{height:56px;min-width:44px;width:calc(100% / 6);font-size:11px;gap:5px}.tool>svg{width:23px;height:23px}
 .workspace{height:100%;width:100%;padding:0 10px!important;min-height:0;display:flex;overflow:hidden}
 .workspace-heading{height:44px;min-height:44px;padding:0 4px;gap:8px}.workspace-heading>div{flex:1;min-width:0}.workspace-heading h2{font-size:13px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workspace-heading h2 span{font-size:12px;margin-left:4px}.workspace-kicker,.workspace .reference-toggle{display:none!important}
 .mobile-product-open{display:block;order:2;color:var(--green);font-size:12px;min-height:44px;padding:0 5px}
 .canvas-stage{flex:1;min-height:0;width:100%;overflow:hidden}.canvas-wrap{min-height:0}
 .workspace .current-product-bar,.workspace .canvas-note,.workspace .mobile-save-status{display:none!important}
 .workspace-bottom{height:48px;min-height:48px;margin:0;padding:2px 0;flex:none}.side-switch{padding:0;gap:4px;overflow:hidden;width:100%}.side-switch button{height:44px;width:calc((100% - 12px)/4);min-width:0;padding:0;justify-content:center;border-radius:7px}.side-switch img,.side-switch small{display:none}.side-switch span{font-size:13px}.side-switch button.active{background:var(--mint);border-color:var(--green)}
 .workspace .zoom-control{position:absolute;right:4px;bottom:58px;min-height:40px;z-index:2;background:#ffffffec;border:1px solid var(--line)}.zoom-control button{height:40px;min-width:40px;font-size:14px}
 .workspace .object-toolbar{display:none;margin:0;padding:0 3px;height:46px;min-height:46px;border:0;background:transparent;justify-content:center;flex:none}.has-artwork-selection .workspace .object-toolbar{display:flex}.object-toolbar-label{display:none}.object-actions{gap:4px}.object-actions button{width:44px;height:44px;min-width:44px;background:white;border:1px solid var(--line)}.object-actions svg{width:19px;height:19px}.object-actions>span{display:none}
 .mobile-positions-toggle{display:block;position:absolute;left:14px;top:48px;min-height:40px;padding:0 10px;font-size:12px;color:var(--green);background:#fffffff0;border:1px solid var(--line);border-radius:7px;z-index:3}
 .has-artwork-selection .mobile-positions-toggle{top:94px}.workspace .print-position-toolbar{display:none}.mobile-positions-open .workspace .print-position-toolbar{display:flex;position:absolute;left:10px;right:10px;top:90px;padding:12px;background:white;border:1px solid var(--line);border-radius:10px;z-index:8;flex-wrap:wrap;box-shadow:0 8px 24px #17211d20}.mobile-positions-open.has-artwork-selection .workspace .print-position-toolbar{top:136px}.print-position-label{display:none}.print-positions{flex:1;gap:5px}.print-positions button,#apply-print-position{min-height:44px;font-size:13px}
 .studio .panel-shell:not(.collapsed){position:absolute!important;inset:0 0 64px!important;height:auto!important;max-height:none!important;background:white;z-index:25;border:0;border-radius:0;padding:0;overflow-y:auto;box-shadow:none}
 .studio .panel-shell.collapsed{display:none!important}.panel-shell>.panel-collapse{display:none!important}
 .mobile-tool-header{display:flex;align-items:center;justify-content:space-between;min-height:58px;padding:0 18px;position:sticky;top:0;background:white;border-bottom:1px solid var(--line);z-index:5}.mobile-tool-header strong{font-size:18px}.mobile-tool-header button{min-height:48px;color:var(--green);font-size:14px}.mobile-product-head{display:none!important}
 .panel-shell>.panel{padding:20px 18px 28px!important}.panel-heading{margin-bottom:20px}.panel-heading h2{font-size:21px;line-height:1.4}.panel-heading>p:last-child{font-size:14px;line-height:1.7}.panel .field{font-size:14px;margin-top:16px}.panel .field input,.panel .field textarea,.panel .field select{min-height:48px;font-size:16px}.panel .section-label h3{font-size:16px}.panel .section-label>span{font-size:13px}
 .panel[data-panel=uploads] .upload-zone{float:none;width:100%;margin:0;padding:28px 16px;gap:10px;min-height:160px}.upload-zone strong{font-size:18px}.upload-zone span{font-size:14px}.upload-zone small{font-size:12px}.upload-zone>svg{width:30px;height:30px}.upload-tip{font-size:13px;line-height:1.7;margin:16px 0}.upload-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.empty-mini{font-size:14px;padding:24px 12px}
 .panel .design-template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:14px}.design-template-grid>*{min-width:0!important;width:100%!important}.template-collection-label{font-size:14px}.layer-list{flex-direction:column;overflow:visible;gap:10px}.layer-row{width:100%;padding:13px;min-height:64px}.layer-row strong{font-size:15px;max-width:240px}.layer-row small{font-size:12px}.layer-row .layer-thumb{width:42px;height:42px}
 #text-properties{display:block}.text-hint p{font-size:14px}.text-hint small{font-size:13px}.add-text,#text-bold{width:100%;min-height:48px;font-size:16px}.detail-note{font-size:12px!important}.detail-current h3{font-size:19px!important}
 .studio .panel-shell.mobile-colour-sheet:not(.collapsed){inset:auto 0 64px!important;max-height:205px!important;border-radius:16px 16px 0 0;padding:0 16px 8px;overflow:auto}.mobile-colour-sheet>.mobile-tool-header{display:none}.mobile-colour-sheet>.panel{padding:0!important}.mobile-colour-sheet .detail-colour-label{font-size:14px}.mobile-colour-sheet .detail-note,.mobile-colour-tip{display:none}.mobile-colour-sheet .detail-swatch{width:46px;height:46px;flex-basis:46px}.mobile-colour-head strong,.mobile-colour-head button{font-size:16px}
 body:has(.panel-shell.mobile-colour-sheet:not(.collapsed)) .workspace{padding-bottom:155px!important}body:has(.panel-shell.mobile-colour-sheet:not(.collapsed)) .workspace-bottom,body:has(.panel-shell.mobile-colour-sheet:not(.collapsed)) .zoom-control,body:has(.panel-shell.mobile-colour-sheet:not(.collapsed)) .mobile-positions-toggle{display:none}
 .editing-artwork-size .artwork-size-panel{width:calc(100% + 20px);margin:0 -10px;max-height:195px;overflow:auto;padding:8px 16px!important;flex:none}.editing-artwork-size .mobile-positions-toggle,.editing-artwork-size .zoom-control{display:none}.artwork-size-panel header strong{font-size:15px}.artwork-size-panel header button{font-size:16px}
 .mobile-text-dialog{margin:auto 12px 12px;max-height:calc(var(--app-height,100dvh) - 24px);overflow:auto;position:fixed;bottom:0;top:auto}.mobile-text-dialog::backdrop{background:#17211d70}
}
@media(max-width:360px){.topbar .brand b{display:none}.topbar .brand{min-width:30px}.topbar #finish{white-space:nowrap}.topbar .top-actions{gap:0}}
@media(max-width:700px){body:has(.panel-shell.mobile-colour-sheet:not(.collapsed)) .workspace{padding-bottom:var(--colour-sheet-height,180px)!important}.design-template-card>strong{font-size:15px!important;line-height:1.5}.design-template-card>small{font-size:12px!important;line-height:1.6}.template-card-tag{font-size:11px!important}}
@media(max-width:700px){.mobile-text-dialog{top:calc(var(--app-offset-top,0px) + 12px);bottom:auto;margin:0 12px}}

/* Product name opens editing; the colour chooser no longer repeats the mockup. */
#product-dialog .catalog-preview{display:none!important}
#product-dialog .catalog-detail-grid{grid-template-columns:minmax(0,1fr)}
.product-title-button{display:block;text-align:left;font:inherit;color:inherit;max-width:100%;min-height:44px;background:transparent;cursor:pointer}
.product-title-button:focus-visible{outline:2px solid var(--green);outline-offset:3px;border-radius:4px}
@media(max-width:700px){.product-title-button{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workspace-heading h2{overflow:visible}}

.multi-select-toggle{position:absolute;right:150px;top:22px;z-index:4;min-height:44px;min-width:54px;padding:0 12px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--green);font-size:13px}.multi-select-toggle[aria-pressed=true]{background:var(--green);color:#fff}
@media(max-width:700px){.multi-select-toggle{top:48px;right:14px}.has-artwork-selection .multi-select-toggle{top:94px}.editing-artwork-size .multi-select-toggle,body:has(.panel-shell.mobile-colour-sheet:not(.collapsed)) .multi-select-toggle{display:none}}
