:host{display:block;color:#153930;font:15px 'DM Sans',system-ui,sans-serif;--ink:#153930;--green:#174e3c;--cream:#f6f5ed;--line:#dce3da;--muted:#677a70}*{box-sizing:border-box}.standalone{margin:0;background:#f6f5ed;color:#153930;font:15px 'DM Sans',system-ui,sans-serif}.site-header{max-width:1360px;margin:auto;padding:22px 32px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dce3da}.site-header a{color:#153930;text-decoration:none}.brand{font:800 25px Manrope,system-ui;letter-spacing:-1px}.brand span{display:block;font:600 9px 'DM Sans',system-ui;letter-spacing:3px;margin-top:2px}.page-shell{max-width:1360px;margin:auto;padding:34px 32px 70px}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:#174e3c}button,input,select{border:1px solid #cad6ca;border-radius:8px}input,select{background:#fff;color:#153930;padding:9px 10px;min-height:40px}button{padding:10px 15px;background:#fff;color:#153930;font-weight:600;min-height:42px}button:hover:not(:disabled){background:#eef3e9}button.primary{background:#174e3c;color:#fff;border-color:#174e3c}button.primary:hover:not(:disabled){background:#0e392b}button.subtle{background:transparent;border-color:transparent;padding:8px}.danger{color:#a83d32}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #dfb449;outline-offset:3px}.studio{--ink:#153930;--muted:#677a70;--line:#dce3da;font:15px 'DM Sans',system-ui,sans-serif;color:var(--ink)}.eyebrow{font-size:10px;font-weight:800;letter-spacing:2.2px;text-transform:uppercase;color:#6e7d61;margin:0 0 8px}h1,h2,h3,p{margin-top:0}h1{font:800 clamp(28px,4vw,42px)/1.1 Manrope,system-ui,sans-serif;letter-spacing:-1.7px;margin-bottom:12px}h2{font:750 24px/1.2 Manrope,system-ui,sans-serif;letter-spacing:-.7px;margin-bottom:10px}h3{font:700 16px Manrope,system-ui,sans-serif;margin-bottom:12px}.muted{color:#677a70;font-size:13px;line-height:1.5}.studio-intro{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:26px}.studio-intro p{max-width:620px;margin-bottom:0;line-height:1.6}.steps{display:flex;gap:20px;white-space:nowrap;font-size:11px;color:#677a70}.steps span{display:flex;align-items:center;gap:7px}.steps b{border:1px solid #d0dbc9;background:#edf1e4;border-radius:50%;width:24px;height:24px;display:grid;place-items:center;color:#174e3c}.status{min-height:22px;font-size:13px;line-height:1.5;margin:0 0 14px}.status:empty{min-height:0;margin:0}.status.error{background:#fff0ed;color:#a3382b;padding:12px 14px;border-radius:8px}.status.success{color:#174e3c}.editor{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(290px,1fr);gap:22px}.preview-panel,.controls-panel,.saved-list,.summary-panel,.admin-panel{background:#fff;border:1px solid #dce3da;border-radius:16px}.preview-panel{padding:20px;background:#eeefe5;overflow:hidden}.panel-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.panel-toolbar .muted{margin:0}.pill{font-size:10px;letter-spacing:1px;background:#fff;border:1px solid #dce3da;border-radius:20px;padding:7px 10px;font-weight:700}.color-tools{display:flex;align-items:center;gap:10px}.color-tools label{font-size:12px}.views{display:grid;gap:12px;grid-template-columns:1fr}.views.double{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.view{min-width:0}.view canvas{display:block;width:100%;height:auto;background:#fff;border-radius:9px;touch-action:none;outline:none}.view .view-label{display:flex;justify-content:space-between;margin:10px 3px 0;font-size:11px;color:#677a70}.hint{display:flex;align-items:center;justify-content:center;gap:8px;margin:18px 0 0;font-size:11px;color:#677a70}.controls-panel{padding:22px}.field{display:grid;gap:7px;margin-bottom:18px}.field>label,.label{font-size:12px;font-weight:700}.segment{display:flex;background:#f2f4ed;border-radius:9px;padding:4px;gap:4px}.segment button{border:0;background:transparent;flex:1;padding:8px 5px;min-height:36px;font-size:12px}.segment button[aria-pressed=true]{background:#fff;box-shadow:0 1px 4px #18332618;color:#174e3c}.side-editor{border-top:1px solid #e4e8de;padding-top:18px;margin-top:18px}.side-editor h3{display:flex;justify-content:space-between;margin-bottom:10px}.side-editor h3 span{font:500 11px 'DM Sans';color:#677a70;align-self:center}.upload-box{border:1px dashed #b9c9b5;border-radius:10px;background:#f9faf6;padding:13px;display:grid;gap:8px}.upload-box input[type=file]{font-size:11px;padding:0;border:0;background:transparent;min-height:28px;max-width:100%;width:100%}.upload-box input::file-selector-button{border:0;border-radius:5px;padding:7px 9px;background:#e2ebdb;color:#174e3c;font:600 11px 'DM Sans';cursor:pointer}.filename{font-size:11px;word-break:break-word;line-height:1.4;color:#677a70}.processing{display:flex;gap:14px;font-size:11px;padding:10px 0}.processing label{display:flex;align-items:center;gap:5px}.processing input{padding:0;min-height:auto;accent-color:#174e3c}.sliders{display:grid;gap:7px}.slider{display:grid;grid-template-columns:43px 1fr 34px;align-items:center;gap:8px;font-size:11px;color:#677a70}.slider input{padding:0;min-height:22px;border:0;accent-color:#174e3c;width:100%}.slider output{text-align:right;font-variant-numeric:tabular-nums}.side-status{font-size:11px;margin:4px 0 7px;line-height:1.45}.side-status.error{color:#a3382b}.small-button{font-size:11px;min-height:28px;padding:5px 8px}.editor-actions{margin-top:20px;display:grid;gap:9px}.editor-actions .primary{padding:13px}.editor-actions p{font-size:10px;line-height:1.5;text-align:center;margin:0;color:#677a70}.proof{display:flex;gap:8px;align-items:center;font-size:11px;margin-top:16px}.proof input{min-height:0;accent-color:#174e3c}.section-heading{display:flex;justify-content:space-between;align-items:center;margin:34px 0 16px;gap:16px}.section-heading h2{margin:0}.count{font:500 12px 'DM Sans';color:#677a70;margin-left:9px}.saved-list{padding:0;overflow:hidden}.empty{padding:35px 22px;color:#677a70;text-align:center;font-size:13px}.design-card{padding:22px;border-bottom:1px solid #dce3da}.design-card:last-child{border-bottom:0}.card-header{display:flex;justify-content:space-between;gap:16px;margin-bottom:18px;align-items:center}.card-header h3{margin:0}.card-actions{display:flex;gap:3px}.design-id{font-size:10px;color:#677a70;letter-spacing:.5px;display:block;margin-top:5px}.purchase-row{display:grid;grid-template-columns:145px 1fr;gap:22px;margin:15px 0;padding-top:14px;border-top:1px solid #edf0e8}.mini-views{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.mini-views.single{grid-template-columns:1fr}.mini-views img{width:100%;display:block;background:#f5f6f0;border-radius:7px;aspect-ratio:1/1;object-fit:contain}.mini-views figure{margin:0}.mini-views figcaption{font-size:9px;color:#677a70;margin-top:3px;text-align:center}.qty-title{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:700;gap:8px;margin-bottom:9px}.qty-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.qty-grid label{display:grid;gap:5px;font-size:10px;color:#677a70;text-align:center}.qty-grid input{width:100%;padding:7px 2px;text-align:center;font-variant-numeric:tabular-nums}.add-color{display:flex;gap:8px;align-items:center;margin-top:13px}.add-color select{font-size:12px;min-height:32px;padding:6px 9px}.add-color button{font-size:11px;min-height:32px;padding:6px 9px}.bottom-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:20px}.bottom-actions p{margin:0;font-size:12px;color:#677a70}.summary-panel{margin-top:24px;padding:24px}.summary-panel[hidden]{display:none}.summary-item{display:grid;grid-template-columns:140px 1fr;gap:22px;margin-top:18px;border-top:1px solid #e4e8de;padding-top:18px}.summary-item h3{margin-bottom:5px}.summary-item p{font-size:12px;margin-bottom:7px}.summary-footer{display:flex;gap:15px;align-items:center;justify-content:space-between;margin-top:22px;padding-top:18px;border-top:1px solid #dce3da}.summary-footer strong{display:block;font:700 22px Manrope}.summary-footer small{color:#677a70}.notice{padding:12px 14px;background:#f8f3dd;border-radius:8px;line-height:1.5;font-size:12px;color:#695925}.local-payload{max-height:220px;overflow:auto;background:#f3f5ed;padding:14px;font-size:10px;white-space:pre-wrap;word-break:break-word}.admin-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:24px}.admin-panel{padding:22px}.template-list{display:grid;gap:10px}.template-list button{text-align:left}.template-list small{display:block;color:#677a70;margin-top:4px}.admin-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.admin-base-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,.7fr);gap:20px}.admin-base-editor canvas{width:100%;height:auto;touch-action:none;background:#fafbf7;border:1px solid #dce3da;border-radius:10px}.number-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.number-grid label{font-size:11px;display:grid;gap:5px}.number-grid input{width:100%}.admin-tabs{display:flex;gap:8px;margin-bottom:18px;flex-wrap:wrap}.admin-tabs button[aria-pressed=true]{background:#174e3c;color:#fff}.admin-note{font-size:12px;line-height:1.6;color:#677a70}.orders-list{display:grid;gap:10px;margin-top:15px}.order-design{padding-top:16px;margin-top:16px;border-top:1px solid #dce3da}.downloads{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;margin-top:10px}.order-details{font-size:12px;line-height:1.7}.inline-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.inline-controls input[type=checkbox]{min-height:0;accent-color:#174e3c}details summary{cursor:pointer;font-size:12px;font-weight:700;margin-bottom:12px}progress{width:100%;accent-color:#174e3c}hr{border:0;border-top:1px solid #dce3da;margin:22px 0}@media(max-width:1000px){.steps{display:none}.editor{grid-template-columns:minmax(0,1.2fr) minmax(280px,1fr)}.preview-panel{padding:15px}.panel-toolbar{flex-wrap:wrap}.qty-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-base-editor{grid-template-columns:1fr}}@media(max-width:720px){.site-header{padding:18px}.site-header>a:last-child{font-size:11px}.page-shell{padding:24px 14px 40px}.studio-intro{display:block}.studio-intro p{font-size:13px}.editor{grid-template-columns:1fr}.preview-panel{padding:13px}.controls-panel{padding:18px}.views.double{gap:8px}.panel-toolbar{margin-bottom:13px}.hint{font-size:10px}.purchase-row{grid-template-columns:100px minmax(0,1fr);gap:14px}.qty-grid{gap:5px}.qty-grid input{min-height:36px}.design-card{padding:16px}.card-header{align-items:start}.card-actions button{font-size:11px;padding:6px}.bottom-actions{align-items:flex-start}.bottom-actions .primary{font-size:12px}.summary-panel{padding:16px}.summary-item{grid-template-columns:100px minmax(0,1fr);gap:14px}.summary-footer{align-items:flex-start;flex-wrap:wrap}.summary-footer .primary{width:100%}.admin-layout{grid-template-columns:1fr}.admin-form-grid{grid-template-columns:1fr}.section-heading h2{font-size:21px}.section-heading button{font-size:11px}.view .view-label{font-size:10px}.admin-panel{padding:16px}}
/* Customer flow: the garment is the work surface; controls stay secondary. */
.customer-page{background:#fff;color:#1c303b;font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}.customer-page .page-shell{max-width:1140px;padding-top:26px}.customer-page .site-header{max-width:1140px;color:#536976}.customer-page .brand{color:#174e3c}.customer-page .site-header>span{font-size:14px}
.customer-studio{--ink:#1c303b;--muted:#576e7a;--line:#d9e2e8;font:15px/1.45 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink)}.customer-studio [hidden]{display:none!important}.customer-studio h2{font-family:inherit;font-size:23px;letter-spacing:-.5px;margin-bottom:7px}.customer-studio h3{font-family:inherit;font-size:17px}.customer-studio button,.customer-studio input,.customer-studio select{min-height:44px;border-radius:6px;font-family:inherit}.customer-studio button{color:var(--ink);font-size:14px}.customer-studio button.primary{color:#fff}.customer-studio button:disabled{cursor:default}.customer-studio :focus-visible{outline:3px solid #237fb5;outline-offset:3px}.customer-studio .visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.customer-studio .muted{color:var(--muted);font-size:14px}.customer-studio .status{font-size:14px}.customer-studio .designer-entry{display:flex;justify-content:space-between;align-items:center;gap:22px;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.customer-studio .designer-entry h2{font-size:22px}.customer-studio .designer-entry p{max-width:55ch;margin:0;font-size:14px;color:var(--muted)}.customer-studio .designer-entry .primary{flex-shrink:0;padding:12px 24px}.customer-studio .preview-notice{margin:12px 0;font-size:13px;color:var(--muted)}.customer-studio .section-heading{margin:26px 0 16px}.customer-studio .section-heading p{margin:0}.customer-studio .saved-list{border:0;border-radius:0;background:transparent;overflow:visible}.customer-studio .saved-list:empty{display:none}.customer-studio .design-card{padding:24px 0;border-bottom:1px solid var(--line)}.customer-studio .design-description{display:block;color:var(--muted);font-size:13px;margin-top:4px}.customer-studio .purchase-row{grid-template-columns:minmax(180px,260px) minmax(0,1fr);gap:28px;border-top:0;padding-top:8px;margin:14px 0 20px}.customer-studio .preview-enlarge{padding:0;border:0;background:transparent;text-align:center;align-self:start;width:100%;font-size:12px;color:var(--muted)}.customer-studio .preview-enlarge:hover{background:transparent}.customer-studio .preview-enlarge>span{display:block;margin-top:6px;text-decoration:underline;text-underline-offset:3px}.customer-studio .mini-views{gap:10px}.customer-studio .mini-views img{border-radius:4px;aspect-ratio:8/9;background:#f3f6f8}.customer-studio .mini-views figcaption{font-size:12px;text-transform:none}.customer-studio .qty-title{font-size:16px;margin-bottom:12px}.customer-studio .qty-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}.customer-studio .qty-grid label{font-size:13px;color:var(--ink)}.customer-studio .qty-grid input{font-size:16px;min-height:46px}.customer-studio .qty-grid input:disabled{background:#eef2f5;color:#748590}.customer-studio .qty-grid small{font-size:10px;color:#748590}.customer-studio .add-color select,.customer-studio .add-color button{font-size:14px;min-height:44px}.customer-studio .bottom-actions{padding:15px 0}.customer-studio .bottom-actions p{font-size:15px}.customer-studio .empty{text-align:left;padding:26px 0}.customer-studio .empty p{margin:0}.customer-studio .summary-panel{padding:24px;border:1px solid var(--line);border-radius:8px;background:#fff}.customer-studio .summary-item{grid-template-columns:220px minmax(0,1fr)}.customer-studio .summary-item p{font-size:14px}.customer-studio .summary-footer small{font-size:14px}.customer-studio .order-quote{margin:24px 0 0;padding-top:20px;border-top:1px solid var(--line)}.customer-studio .order-quote>div{display:flex;justify-content:space-between;gap:15px;max-width:440px;margin-left:auto;margin-bottom:10px}.customer-studio .order-quote .quote-subtotal{border-top:1px solid var(--line);padding-top:12px;font-size:18px}.customer-studio .order-quote p{text-align:right;font-size:12px;color:var(--muted);margin-bottom:0}
.customer-studio .design-workspace{width:min(1240px,96vw);height:min(920px,94dvh);max-width:none;max-height:none;margin:auto;padding:0;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);overflow:hidden}.customer-studio .design-workspace[open]{display:flex;flex-direction:column}.customer-studio .design-workspace:not([open]){display:none}.customer-studio .design-workspace::backdrop{background:#152831a8}.customer-studio .workspace-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 24px;border-bottom:1px solid var(--line);flex-shrink:0}.customer-studio .workspace-header h2{font-size:23px;margin-bottom:3px}.customer-studio .workspace-header p{font-size:13px;color:var(--muted);margin:0}.customer-studio #workspace-status:not(:empty){margin:10px 20px 0;padding:8px 12px;flex-shrink:0}.customer-studio .workspace-body{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:0;min-height:0;overflow:auto;flex:1}.customer-studio .workspace-canvas{padding:18px 24px;background:#f0f4f7;min-width:0;display:flex;align-items:center;flex-direction:column}.customer-studio .workspace-canvas .panel-toolbar{width:100%;margin-bottom:15px;gap:10px;flex-wrap:wrap}.customer-studio .color-tools{gap:7px}.customer-studio .color-tools label{font-size:13px}.customer-studio .color-tools select{min-width:100px;max-width:145px}.customer-studio .face-tabs{display:flex;gap:5px}.customer-studio .face-tabs button{min-width:70px;background:transparent;border-color:transparent}.customer-studio .face-tabs button[aria-pressed=true]{background:#fff;border-color:#b3c7d2;color:#174e3c}.customer-studio .canvas-stage{position:relative;width:min(100%,max(300px,calc((100dvh - 335px)*var(--canvas-width-ratio))),520px);aspect-ratio:var(--canvas-ratio);background:#fff;flex-shrink:0}.customer-studio .canvas-stage>canvas{display:block;width:100%;height:auto;touch-action:none;cursor:move}.customer-studio .canvas-stage>canvas:focus-visible{outline-offset:5px}.customer-studio .canvas-upload{position:absolute;left:15%;right:15%;top:42%;display:flex;flex-direction:column;gap:4px;padding:15px 10px;text-align:center;border:1px solid #bfd2de;border-radius:5px;background:#fffffff2;color:#174e3c;cursor:pointer}.customer-studio .canvas-upload strong{font-size:16px}.customer-studio .canvas-upload span{font-size:12px;color:var(--muted)}.customer-studio .artwork-selection{position:absolute;border:2px solid #237fb5;pointer-events:none}.customer-studio .resize-handle{position:absolute;right:-23px;bottom:-23px;width:44px;height:44px;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;pointer-events:auto;touch-action:none;cursor:nwse-resize;display:grid;place-items:center}.customer-studio .resize-handle span{width:15px;height:15px;display:block;background:#fff;border:2px solid #237fb5;border-radius:2px;box-shadow:0 1px 4px #142a3333}.customer-studio .canvas-hint{text-align:center;font-size:12px;color:var(--muted);margin:12px 0}.customer-studio .double-overview{width:min(100%,250px);margin-top:2px}.customer-studio .double-overview>p{font-size:12px;text-align:center;color:var(--muted);margin-bottom:5px}.customer-studio .views.double{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.customer-studio .overview-view{border:2px solid transparent;border-radius:5px;padding:4px;background:#fff;width:100%;min-width:0}.customer-studio .overview-view.selected{border-color:#237fb5}.customer-studio .overview-view canvas{width:100%;height:auto;display:block}.customer-studio .overview-view span{font-size:12px;display:block}.customer-studio .controls-panel{padding:24px 20px;border:0;border-left:1px solid var(--line);border-radius:0;min-width:0}.customer-studio .segment{background:#edf2f5;padding:4px}.customer-studio .segment button{min-height:44px;font-size:13px}.customer-studio .side-editor{border-top:0;padding-top:0;margin-top:20px}.customer-studio .side-editor h3{font-size:16px;margin-bottom:14px}.customer-studio .upload-box{padding:0;background:transparent;border:0;border-radius:0;gap:9px}.customer-studio .upload-button{display:flex;align-items:center;justify-content:center;min-height:48px;padding:10px 14px;border:1px solid #abc3d0;border-radius:6px;background:#f4f8fb;color:#174e3c;font-size:15px;font-weight:600;cursor:pointer}.customer-studio .filename{font-size:12px;line-height:1.5}.customer-studio .processing{display:grid;gap:0;padding:8px 0 0;font-size:13px}.customer-studio .processing label{min-height:44px;gap:9px}.customer-studio .processing input{min-height:auto;width:17px;height:17px}.customer-studio .side-status{font-size:13px;line-height:1.55;margin:10px 0 15px}.customer-studio .artwork-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.customer-studio .artwork-actions .danger{grid-column:1/-1;justify-self:start;padding-left:0}.customer-studio .position-controls{margin-top:12px}.customer-studio details summary{font-size:13px;min-height:44px;padding:12px 0;margin-bottom:0}.customer-studio .slider{grid-template-columns:72px 1fr 34px;font-size:12px}.customer-studio .slider input{min-height:40px}.customer-studio .design-options{border-top:1px solid var(--line);margin-top:20px;padding-top:6px}.customer-studio .design-options .field{margin:10px 0 0}.customer-studio .proof{font-size:13px;line-height:1.55;align-items:start}.customer-studio .proof input{min-height:18px;width:18px;height:18px;flex-shrink:0;margin-top:3px}.customer-studio .workspace-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:14px 24px;border-top:1px solid var(--line);background:#fff;flex-shrink:0;position:relative;z-index:2}.customer-studio .workspace-footer p{margin:0;font-size:13px;color:var(--muted)}.customer-studio .workspace-footer>div{display:flex;gap:10px}.customer-studio .workspace-footer .primary{padding:12px 22px}
@media(max-width:900px){.customer-studio .workspace-body{grid-template-columns:minmax(0,1fr) 275px}.customer-studio .workspace-canvas{padding:16px}.customer-studio .qty-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.customer-studio .purchase-row{grid-template-columns:200px minmax(0,1fr);gap:20px}}
@media(max-width:650px){.customer-page .site-header{padding:18px 16px}.customer-page .page-shell{padding:18px 16px 55px}.customer-studio .designer-entry{display:block;padding:18px 0}.customer-studio .designer-entry h2{font-size:21px}.customer-studio .designer-entry .primary{width:100%;margin-top:15px}.customer-studio .section-heading{align-items:start;gap:10px}.customer-studio .section-heading h2{font-size:20px}.customer-studio .section-heading button{font-size:13px;padding:8px 10px}.customer-studio .section-heading p{font-size:12px}.customer-studio .card-header{gap:8px;align-items:start}.customer-studio .card-actions{gap:0}.customer-studio .card-actions button{font-size:12px;padding:7px}.customer-studio .design-card{padding:20px 0}.customer-studio .purchase-row{grid-template-columns:1fr;gap:15px;margin:15px 0 25px}.customer-studio .preview-enlarge{max-width:270px;margin:0 auto}.customer-studio .mini-views{gap:12px}.customer-studio .mini-views.single{max-width:170px;margin:0 auto}.customer-studio .qty-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.customer-studio .qty-grid input{min-height:48px}.customer-studio .bottom-actions{align-items:center;flex-wrap:wrap}.customer-studio .bottom-actions .primary{width:100%;font-size:15px}.customer-studio .summary-panel{padding:18px 14px}.customer-studio .summary-item{grid-template-columns:1fr;gap:16px}.customer-studio .summary-item>.mini-views{max-width:270px;width:100%;margin:auto}.customer-studio .summary-footer{gap:15px}.customer-studio .summary-footer .primary{font-size:15px}.customer-studio .order-quote p{text-align:left}.customer-studio .design-workspace{width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0}.customer-studio .workspace-header{padding:12px 14px;gap:10px}.customer-studio .workspace-header h2{font-size:20px}.customer-studio .workspace-header p{font-size:11px;max-width:200px}.customer-studio .workspace-header button{font-size:12px;padding:8px 10px}.customer-studio .workspace-body{grid-template-columns:1fr;display:block;overflow-y:auto;overscroll-behavior:contain}.customer-studio .workspace-canvas{padding:12px 14px 16px}.customer-studio .workspace-canvas .panel-toolbar{flex-wrap:nowrap;margin-bottom:12px}.customer-studio .face-tabs{gap:0}.customer-studio .face-tabs button{min-width:57px;padding:8px 6px}.customer-studio .color-tools{gap:6px}.customer-studio .color-tools label{font-size:11px;max-width:50px;line-height:1.3}.customer-studio .color-tools select{min-width:85px;max-width:100px;font-size:13px;padding:7px}.customer-studio .canvas-stage{width:min(100%,max(280px,calc(43dvh*var(--canvas-width-ratio))),360px)}.customer-studio .canvas-upload strong{font-size:14px}.customer-studio .canvas-upload{padding:12px 8px}.customer-studio .double-overview{width:190px}.customer-studio .canvas-hint{font-size:11px;margin:11px 0}.customer-studio .controls-panel{border-left:0;border-top:1px solid var(--line);padding:18px 20px}.customer-studio .processing{display:flex;gap:14px;flex-wrap:wrap}.customer-studio .workspace-footer{padding:11px 14px max(11px,env(safe-area-inset-bottom));display:block}.customer-studio .workspace-footer p{font-size:11px;margin-bottom:8px}.customer-studio .workspace-footer>div{display:grid;grid-template-columns:1fr 1.45fr;gap:9px}.customer-studio .workspace-footer button{font-size:14px;padding:11px 8px}.customer-studio .workspace-footer .primary{padding:11px 8px}.customer-studio #workspace-status:not(:empty){margin:6px 12px 0;padding:6px 10px;font-size:12px}}
.customer-studio .draft-conflict{padding:12px 20px;background:#fff5df;flex-shrink:0;font-size:13px}.customer-studio .draft-conflict p{margin:0 0 8px}.customer-studio .draft-conflict button{margin-right:6px}.customer-studio .session-recovery,.customer-studio.session-recovery{padding:20px 0}.customer-studio .session-recovery p{max-width:65ch}.customer-studio .recovery-design{padding:16px 0;border-top:1px solid var(--line)}.customer-studio .recovery-downloads{display:flex;gap:15px;flex-wrap:wrap}.customer-studio .recovery-downloads a{min-height:44px;display:inline-flex;align-items:center}.customer-studio .session-recovery>button{margin:8px 8px 0 0}.customer-studio .recovery-link{font-size:12px;text-decoration:underline;margin-bottom:14px;padding-left:0}
@media(prefers-reduced-motion:reduce){.customer-studio *{scroll-behavior:auto!important}}
.customer-studio .two-face-workspace .canvas-stage{width:min(100%,max(300px,calc((100dvh - 600px)*var(--canvas-width-ratio))),460px)}
@media(max-width:650px){.customer-studio .two-face-workspace .canvas-stage{width:min(100%,max(280px,calc(43dvh*var(--canvas-width-ratio))),360px)}}
/* The native product upload card follows the installed storefront reference. */
:is(.native-product-context,.bulk-photo-context) .native-order-review{width:min(740px,calc(100vw - 28px));height:fit-content;max-width:none;max-height:92dvh;border:1px solid #ddd;border-radius:10px;padding:20px;background:#fff;color:#111;overflow:auto}.native-order-review::backdrop{background:#0009}:is(.native-product-context,.bulk-photo-context) .native-order-review:not([open]){display:none}.native-order-review>#close-native-review{display:block;margin:0 0 10px auto;font-size:12px}.native-order-review .summary-panel{margin:0;border:0;padding:0}.native-order-review .summary-item{grid-template-columns:180px minmax(0,1fr)}.native-order-review .summary-footer{margin-bottom:5px}.native-order-review #confirm-cart{background:#000;border-color:#000}@media(max-width:650px){:is(.native-product-context,.bulk-photo-context) .native-order-review{padding:16px}.native-order-review .summary-item{grid-template-columns:1fr}.native-order-review .summary-item>.mini-views{max-width:190px}.native-order-review .summary-footer{display:block}.native-order-review #confirm-cart{margin-top:15px;width:100%}.native-order-review .order-quote p{text-align:left}}
.native-upload-field h3,.native-upload-helper,:is(.native-product-context,.bulk-photo-context) .native-preview-button{overflow-wrap:anywhere}
:is(.native-product-context,.bulk-photo-context){container-type:inline-size;--ink:#111;--muted:#858585;--line:#e1e1e1;color:#111;font-family:inherit}:is(.native-product-context,.bulk-photo-context) button,:is(.native-product-context,.bulk-photo-context) input,:is(.native-product-context,.bulk-photo-context) select{color:#111;border-color:#e2e2e2}:is(.native-product-context,.bulk-photo-context) button.primary,:is(.native-product-context,.bulk-photo-context) .native-upload-button{background:#000;color:#fff;border-color:#000}:is(.native-product-context,.bulk-photo-context) button.primary:hover,:is(.native-product-context,.bulk-photo-context) .native-upload-button:hover{background:#222;color:#fff}:is(.native-product-context,.bulk-photo-context) button:hover:not(:disabled){background:#f3f3f3}:is(.native-product-context,.bulk-photo-context) button.primary:hover:not(:disabled){background:#222}:is(.native-product-context,.bulk-photo-context) .status.success{color:#333}:is(.native-product-context,.bulk-photo-context) :focus-visible{outline-color:#111}:is(.native-product-context,.bulk-photo-context) input{accent-color:#111}.native-upload-card{border:1px solid #e3e3e3;border-radius:8px;padding:16px;background:#f8f8f8;margin:12px 0}.native-upload-field h3{font-family:inherit;font-size:15px;font-weight:700;letter-spacing:0;margin:0 0 8px}.native-upload-field+.native-upload-field{margin-top:15px}.native-upload-row{border:1px dashed #e2e2e2;border-radius:8px;padding:11px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:66px}.native-upload-placeholder{font-size:13px;font-weight:400;color:#808080;line-height:1.5}:is(.native-product-context,.bulk-photo-context) .native-upload-button{padding:10px 12px;display:flex;align-items:center;justify-content:center;gap:7px;flex-shrink:0;border-radius:6px;min-height:44px;font-size:14px;font-weight:600}.native-upload-helper{font-size:11px;line-height:1.6;color:#929292;margin:8px 0 0}.native-upload-status{font-size:12px;line-height:1.5;color:#666;margin:5px 0 0}.native-upload-status.error{color:#a3382b}:is(.native-product-context,.bulk-photo-context) .native-preview-button{width:100%;background:#fff;border:1px solid #dedede;min-height:48px;margin-top:16px;font-size:14px;font-weight:400;letter-spacing:0}.native-uploaded-photo{display:flex;align-items:center;gap:9px;min-width:0;position:relative}.native-uploaded-photo img{height:54px;width:54px;object-fit:contain;background:#eee}.native-upload-name{font-size:12px;max-width:130px;word-break:break-word;color:#777}:is(.native-product-context,.bulk-photo-context) .native-remove-photo{position:absolute;top:-9px;left:40px;border:1px solid #ddd;border-radius:50%;width:26px;min-height:26px;padding:0;line-height:1;background:#fff;font-size:18px}.native-upload-actions{display:flex;gap:6px;flex-shrink:0}.native-upload-actions button{display:flex;align-items:center;gap:5px;padding:8px 10px;font-size:13px;font-weight:400}.native-design-selection{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0;font-size:13px}.native-design-selection select{min-width:110px;max-width:190px}.native-design-selection button{font-size:12px;padding:8px 10px}.native-design-selection .danger{color:#a3382b}
.customer-studio .native-photo-workspace{width:min(560px,calc(100vw - 28px));height:fit-content;max-height:94dvh;border-radius:10px;border:1px solid #ddd}.native-photo-workspace .workspace-header{padding:20px 24px 12px;border-bottom:0;gap:12px}.native-photo-workspace .workspace-header h2{font-size:18px;font-weight:700;letter-spacing:0;margin:0}.native-photo-workspace .workspace-header>button:not(.visually-hidden){font-size:12px;font-weight:400;border-radius:30px;padding:8px 14px;white-space:nowrap}.native-photo-workspace .workspace-body{display:block;overflow-y:auto;flex:1;min-height:0}.native-photo-body{padding:0 24px 12px}:is(.native-product-context,.bulk-photo-context) .photo-pair{display:flex;gap:0;align-items:start;margin:0 auto;width:min(100%,400px);aspect-ratio:var(--pair-ratio)}.native-photo-workspace .photo-pair{width:min(100%,400px,max(240px,calc((100dvh - 340px)*var(--pair-width-ratio))))}:is(.native-product-context,.bulk-photo-context) .photo-pair>.canvas-stage{width:50%;flex:0 0 50%;background:transparent;margin:0}:is(.native-product-context,.bulk-photo-context) .photo-pair .artwork-selection{border-color:#111}:is(.native-product-context,.bulk-photo-context) .photo-pair .resize-handle span{border-color:#111}.native-photo-tools{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:3px;margin:12px 0 3px}.native-photo-tools button{border-color:transparent;background:transparent;min-width:44px;padding:8px;font-size:20px;font-weight:400}.native-photo-tools button[data-center],.native-photo-tools button[data-fit]{font-size:12px;min-width:auto}.native-face-controls{display:flex;gap:5px;justify-content:center}.native-face-controls button{font-size:12px;font-weight:400;border-color:transparent;background:transparent;min-height:36px;padding:7px 12px}.native-face-controls button[aria-pressed=true]{text-decoration:underline;text-underline-offset:4px}.native-background-options{display:flex;justify-content:center;gap:15px;flex-wrap:wrap;font-size:12px;margin-top:4px}.native-background-options label{display:flex;align-items:center;gap:6px;min-height:36px}.native-background-options input{width:16px;height:16px;min-height:0;accent-color:#111}.native-photo-body .side-status{text-align:center;font-size:12px;margin:4px 0 0}.native-photo-workspace .workspace-footer{padding:14px 24px 20px;border-top:0;display:block}.native-photo-workspace .workspace-footer>div{display:grid;grid-template-columns:1fr auto;gap:8px}.native-photo-workspace .workspace-footer button{font-size:14px;min-height:48px}.native-photo-workspace .workspace-footer .primary{background:#000;border-color:#000}:is(.native-product-context,.bulk-photo-context) .native-preview-modal{width:min(600px,calc(100vw - 28px));height:fit-content;max-height:94dvh;max-width:none;border:1px solid #ddd;border-radius:10px;background:#fff;padding:44px 24px 20px;margin:auto;text-align:center;overflow:auto}.native-preview-modal::backdrop{background:#0009}:is(.native-product-context,.bulk-photo-context) .native-preview-modal:not([open]){display:none}:is(.native-product-context,.bulk-photo-context) .native-preview-close{position:absolute;right:15px;top:12px;padding:0;width:32px;min-height:32px;border:1px solid #777;border-radius:50%;font-size:23px;font-weight:400;line-height:1;background:#fff}.native-preview-modal #native-preview-cart{margin:8px auto 0;padding:12px 18px;min-height:48px;background:#000;border-color:#000}.native-preview-modal .photo-pair{width:min(100%,552px,max(240px,calc((100dvh - 180px)*var(--pair-width-ratio))))}.native-preview-modal .status{margin-top:12px}
@media(max-width:650px){.native-upload-card{padding:15px}.native-upload-field h3{font-size:16px}.native-upload-placeholder{font-size:13px}.native-upload-row{padding:10px;gap:8px}.native-upload-name{max-width:75px}.native-upload-actions button{padding:8px;font-size:12px}:is(.native-product-context,.bulk-photo-context) .native-photo-workspace{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}.native-photo-workspace .workspace-header{padding:16px 18px 12px}.native-photo-body{padding:0 12px 10px}.native-photo-workspace .workspace-footer{padding:12px 18px 16px}:is(.native-product-context,.bulk-photo-context) .native-preview-modal{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;padding:48px 24px max(20px,env(safe-area-inset-bottom));display:flex;flex-direction:column}.native-preview-modal .photo-pair{margin:auto}:is(.native-product-context,.bulk-photo-context) .native-preview-close{width:38px;min-height:38px;right:10px;top:6px}:is(.native-product-context,.bulk-photo-context) .native-remove-photo{width:32px;min-height:32px;left:38px;top:-12px}.native-photo-tools{gap:0}.native-photo-tools button{padding:6px;min-width:42px}.native-face-controls button,.native-background-options label{min-height:44px}.native-background-options{gap:10px;font-size:11px}}
:is(.native-product-context,.bulk-photo-context) .photo-pair canvas:focus-visible{outline:1px dashed #777;outline-offset:-1px}
.customer-studio .resize-handle.corner-tl{left:-23px;top:-23px;right:auto;bottom:auto}.customer-studio .resize-handle.corner-tr{right:-23px;top:-23px;bottom:auto;cursor:nesw-resize}.customer-studio .resize-handle.corner-bl{left:-23px;bottom:-23px;right:auto;cursor:nesw-resize}.customer-studio .resize-handle.corner-br{right:-23px;bottom:-23px}.customer-studio .rotate-handle{position:absolute;left:calc(50% - 22px);top:-55px;width:44px;height:44px;min-height:44px;padding:0;border:0;background:transparent;display:grid;place-items:center;pointer-events:auto;touch-action:none;cursor:grab}.customer-studio .rotate-handle:before{content:"";position:absolute;left:21px;top:29px;width:1px;height:24px;background:#111}.customer-studio .rotate-handle span{width:13px;height:13px;border:1px solid #111;border-radius:50%;background:#fff;z-index:1}:is(.native-product-context,.bulk-photo-context) .native-advanced{text-align:center;margin:0}:is(.native-product-context,.bulk-photo-context) .native-advanced>summary{display:inline-block;min-height:32px;padding:6px 12px;color:#777;font-size:11px;cursor:pointer}:is(.native-product-context,.bulk-photo-context) .native-advanced .native-photo-tools{margin:0}:is(.native-product-context,.bulk-photo-context) .native-photo-tools button[data-native-adjust],:is(.native-product-context,.bulk-photo-context) .native-photo-tools button[data-native-rotate]{flex:0 0 42px}:is(.native-product-context,.bulk-photo-context) .native-preview-modal[data-preview-ready="false"] .photo-pair{visibility:hidden}:is(.native-product-context,.bulk-photo-context) .native-preview-modal[aria-busy="true"] #native-preview-cart{visibility:hidden}

:is(.native-product-context,.bulk-photo-context).merchant-fields-only .native-design-selection,:is(.native-product-context,.bulk-photo-context).merchant-fields-only .preview-notice{display:none}
.customer-studio .rotate-handle:hover:not(:disabled){background:transparent}

/* Scale the wide upload card against its own product column, not the viewport. */
@container(min-width:600px){
.native-upload-card{padding:20px}
.native-upload-field h3{font-size:16px;line-height:1.25;margin-bottom:8px}
.native-upload-field+.native-upload-field{margin-top:16px}
.native-upload-row{min-height:80px;padding:11px 18px}
.native-upload-placeholder{font-size:16px}
.native-upload-helper{font-size:12px;line-height:1.5;margin-top:8px}
:is(.native-product-context,.bulk-photo-context) .native-upload-button{min-height:44px;font-size:16px;line-height:20px;padding:10px 16px;gap:7px}
:is(.native-product-context,.bulk-photo-context) .native-preview-button{min-height:60px;font-size:16px;margin-top:16px}
}

/* Private merchant field configuration */
.merchant-fields-only .native-upload-field h3{display:flex;align-items:center;gap:7px;margin-bottom:8px}
.customer-studio.merchant-fields-only .merchant-field-configure{display:grid;place-items:center;flex-shrink:0;min-width:28px;min-height:28px;width:28px;height:28px;padding:4px;border:0;background:transparent;color:#6d7278}
.customer-studio.merchant-fields-only .merchant-field-configure:hover:not(:disabled){background:#eceef0}
.customer-studio.merchant-fields-only .merchant-field-configure svg{display:block}
@media(max-width:600px){.customer-studio.merchant-fields-only .merchant-field-configure{min-width:44px;min-height:44px;width:44px;height:44px}}

.bulk-photo-context .photo-preview-colour{font-size:12px;padding:0 24px}.bulk-photo-context #preview-color{margin:5px 24px 0;max-width:calc(100% - 48px);font-size:13px}.bulk-photo-context .section-heading{margin-top:24px}

.customer-studio .native-photo-workspace::backdrop{background:#0009}

/* Buyer workspace follows the supplied reference: product bar, tool rail,
   white editing panel and photographic artboard. All sizes here are view sizes. */
.document-workspace .photo-presets{display:flex;gap:7px}.document-workspace .photo-presets button{font-size:11px;min-height:34px;padding:6px 9px}.document-workspace .photo-crop-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px}.document-workspace .workspace-panel .photo-crop-controls label{margin:8px 0 0;font-size:11px}.document-workspace .workspace-panel .photo-crop-controls input{margin-top:5px}.document-workspace .workspace-panel .photo-adjust-label{display:grid;grid-template-columns:1fr auto;align-items:center}.document-workspace .photo-adjust-label output{font-size:11px;color:#777}.document-workspace .photo-adjust-label input{grid-column:1/-1;padding:0!important;border:0!important}.document-workspace #reset-photo-adjustments{font-size:12px;width:100%;margin-top:7px}
.designer-entry-actions{display:flex;gap:8px;margin-top:16px}.designer-entry-actions>button{flex:1;min-height:44px;font-size:14px}.customer-studio button.workspace-accent{background:#69d1ee;border-color:#69d1ee;color:#101010}.customer-studio button.workspace-accent:hover:not(:disabled){background:#50c5e5}
.customer-studio .document-workspace{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;border-radius:0;background:#f3f3f3;font-family:Arial,Helvetica,sans-serif;color:#111;overflow:hidden}.customer-studio .document-workspace:not([open]){display:none}.document-workspace[open]{display:flex;flex-direction:column}.document-workspace .workspace-topbar{height:56px;min-height:56px;background:#fff;border-bottom:1px solid #cfcfcf;display:flex;align-items:center;gap:18px;padding:0 16px;flex-shrink:0}.document-workspace .workspace-product{display:flex;align-items:center;gap:15px;min-width:0}.document-workspace .workspace-brand{font-size:12px;font-weight:800;color:#111;letter-spacing:.5px}.document-workspace #workspace-title{font-size:13px;font-weight:500;line-height:1.2;max-width:330px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0}.document-workspace .workspace-save-tools,.document-workspace .workspace-next-tools{display:flex;align-items:center;gap:5px}.document-workspace .workspace-save-tools{border-left:1px solid #ddd;padding-left:12px}.document-workspace .workspace-next-tools{margin-left:auto;flex-shrink:0}.document-workspace .workspace-topbar button{border:0;border-radius:5px;min-width:40px;min-height:40px;padding:8px;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:12px;background:transparent}.document-workspace #workspace-next{background:#69d1ee;padding:10px 18px;margin-left:9px}.document-workspace #workspace-saved-state{font-size:11px;color:#5e6669;white-space:nowrap}.document-workspace .workspace-price{font-size:12px;max-width:190px;line-height:1.3}.document-workspace #workspace-status{margin:0;padding:0;min-height:0;flex-shrink:0;line-height:1.4;background:#fff;font-size:12px}.document-workspace #workspace-status:not(:empty){padding:8px 16px;border-bottom:1px solid #ddd}.customer-studio .document-workspace .document-workspace-body{display:grid;grid-template-columns:64px 280px minmax(0,1fr);flex:1;min-height:0;overflow:hidden;gap:14px;padding:14px 14px 14px 0}.document-workspace .workspace-navigation{display:flex;flex-direction:column;gap:5px;background:#fff;padding-top:2px;margin-top:-14px;margin-bottom:-14px;overflow-y:auto}.document-workspace .workspace-navigation button{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:68px;width:64px;padding:7px 4px;gap:5px;font-size:10px;font-weight:400;line-height:1.2;word-break:normal;border-radius:0}.document-workspace .workspace-navigation button[aria-pressed=true]{background:#e9f8fd;color:#066f8b}.document-workspace .workspace-navigation button[aria-pressed=true] svg{background:#69d1ee;border-radius:4px;box-sizing:content-box;padding:5px;margin:-5px}.document-workspace .workspace-panel{background:#fff;border-radius:10px;box-shadow:0 1px 7px #00000014;min-height:0;padding:22px 18px;overflow-y:auto}.document-workspace .workspace-panel h3{margin:0 0 18px;font-size:16px;font-weight:600;letter-spacing:0}.document-workspace .workspace-panel h4{font-size:13px;margin:23px 0 11px}.document-workspace .workspace-panel label{display:block;font-size:12px;margin:15px 0 6px}.document-workspace .workspace-panel input:not([type=checkbox]):not([type=color]),.document-workspace .workspace-panel select,.document-workspace .workspace-panel textarea{width:100%;font-size:14px;padding:9px;border:1px solid #c8c8c8;border-radius:5px;min-height:40px}.document-workspace .workspace-panel textarea{resize:vertical;line-height:1.5}.document-workspace .workspace-panel .workspace-accent{width:100%;min-height:40px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:13px;font-weight:500;margin:7px 0}.document-workspace .workspace-help{font-size:12px;line-height:1.6;color:#666;overflow-wrap:anywhere}.document-workspace .workspace-dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;text-align:center;background:#f3f3f3;border:1px dashed #a8a8a8;border-radius:7px;padding:24px 12px;min-height:230px}.document-workspace .workspace-dropzone>strong{font-size:15px;font-weight:500}.document-workspace .workspace-dropzone>span{font-size:12px;line-height:1.6;color:#555}.document-workspace .workspace-dropzone>small{font-size:10px;color:#777}.document-workspace .workspace-dropzone.drag-over{background:#e6f8ff;border-color:#009ac4}.document-workspace .workspace-colours{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.document-workspace .workspace-colours button{display:flex;flex-direction:column;align-items:center;gap:8px;border:0;background:transparent;padding:7px 3px;font-size:12px}.document-workspace .workspace-colours button span{width:35px;height:35px;border-radius:50%;border:1px solid #999;flex:none}.document-workspace .workspace-colours button[aria-pressed=true] span{outline:2px solid #111;outline-offset:3px}.document-workspace .workspace-colours small{font-size:11px}.document-workspace .workspace-layer-list,.document-workspace .workspace-history{display:grid;gap:8px}.document-workspace .workspace-layer-list button{display:flex;align-items:center;gap:8px;min-width:0;min-height:60px;padding:6px;font-size:12px;text-align:left;background:#fff}.document-workspace .workspace-layer-list button[aria-pressed=true],.document-workspace .workspace-history button[aria-pressed=true]{border-color:#229fc2;background:#f1fbfe}.document-workspace .workspace-layer-list img{width:44px;height:44px;object-fit:contain;background:#f3f3f3}.document-workspace .workspace-layer-list span{overflow:hidden;text-overflow:ellipsis;max-width:150px;white-space:nowrap}.document-workspace .workspace-layer-list svg{flex-shrink:0}.document-workspace .workspace-history button{display:flex;flex-direction:column;gap:8px;text-align:left;padding:13px;background:#fff;font-size:13px}.document-workspace .workspace-history small{font-size:11px;color:#666}.document-workspace .text-style-controls{display:flex;align-items:center;gap:14px}.document-workspace .text-style-controls>label{flex:1;display:flex;align-items:center;gap:8px}.document-workspace .text-style-controls input[type=checkbox]{min-height:0;width:17px;height:17px}.document-workspace .text-style-controls input[type=color]{width:42px;height:35px;min-height:0;padding:1px}.document-workspace .text-style-controls #text-size{width:65px;padding:6px}.document-workspace .catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}.document-workspace .catalog-grid button{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:10px 6px;min-height:115px;background:#fff;gap:9px;font-size:11px}.document-workspace .catalog-grid button[hidden]{display:none}.document-workspace .catalog-grid img{width:65px;height:65px;object-fit:contain}.document-workspace .template-grid{display:grid;gap:10px}.document-workspace .template-grid button{display:flex;flex-direction:column;gap:10px;text-align:left;background:#f7fbfc;min-height:84px;padding:15px;font-size:13px}.document-workspace .template-grid span{font-size:11px;color:#666}.document-workspace .workspace-artboard{min-width:0;min-height:0;position:relative;display:flex;flex-direction:column;align-items:stretch;overflow:hidden;background:#f3f3f3}.document-workspace .workspace-context-tools{display:flex;align-items:center;justify-content:center;gap:1px;background:#fff;border-radius:9px;box-shadow:0 1px 5px #00000010;padding:4px 7px;align-self:center;flex-shrink:0;max-width:100%;overflow-x:auto}.document-workspace .workspace-context-tools button{border:0;background:transparent;white-space:nowrap;min-height:37px;font-size:11px;min-width:39px;padding:8px}.document-workspace .workspace-opacity{font-size:10px;display:flex;align-items:center;gap:5px;padding:0 6px;white-space:nowrap}.document-workspace .workspace-opacity input{width:70px;min-height:30px}.document-workspace .workspace-view-scroll{min-height:0;flex:1;overflow:auto;display:flex;align-items:center;justify-content:space-evenly;padding:34px 10px 10px;overscroll-behavior:contain}.document-workspace .workspace-view{width:calc(min(850px,calc((100dvh - 310px)*2))*var(--view-zoom));max-width:none;flex-shrink:0;margin:auto}.customer-studio .document-workspace .photo-pair{width:100%;max-width:none;min-width:0;aspect-ratio:var(--pair-ratio);display:flex;align-items:start}.document-workspace .photo-pair .canvas-stage{position:relative;width:50%;flex:0 0 50%;max-width:none;aspect-ratio:var(--canvas-ratio);margin:0;background:#fff;overflow:visible}.document-workspace .photo-pair canvas{width:100%;height:auto;display:block;touch-action:none}.document-workspace .photo-pair .artwork-selection{border:1px solid #40b5d9;pointer-events:none}.document-workspace .photo-pair .resize-handle span{border-color:#999;background:#fff;width:10px;height:10px}.document-workspace .workspace-bottom-controls{display:flex;align-items:center;justify-content:center;gap:18px;flex-wrap:wrap;margin:12px 0 0;flex-shrink:0}.document-workspace .workspace-view-zoom{display:flex;align-items:center;background:#fff;border-radius:8px;padding:2px;box-shadow:0 1px 3px #00000010;gap:4px}.document-workspace .workspace-view-zoom button{border:0;background:transparent;font-size:12px;min-height:36px;padding:6px;min-width:30px}.document-workspace #view-zoom{font-size:11px;min-width:36px;text-align:center}.document-workspace .workspace-print-mode{display:flex;gap:2px}.document-workspace .workspace-print-mode button{background:transparent;border-color:transparent;font-size:10px;padding:5px;min-height:36px}.document-workspace .workspace-print-mode button[aria-pressed=true]{text-decoration:underline;text-underline-offset:4px}.document-workspace .workspace-artboard-help{margin:7px 0;font-size:10px;color:#777;text-align:center}.document-workspace .native-background-options{font-size:11px;margin:0}.document-workspace .native-background-options label{min-height:28px}.document-workspace #side-tools .side-status{font-size:11px;text-align:center;margin:0}.customer-studio .document-workspace .workspace-footer{border-top:1px solid #ddd;padding:8px 18px;background:#fff;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.document-workspace .workspace-footer p{font-size:11px;margin:0;color:#666}.document-workspace .workspace-footer>div{display:flex;gap:7px}.document-workspace .workspace-footer button{min-height:38px;padding:8px 18px;font-size:12px}.document-workspace .workspace-footer #save-design{background:#69d1ee;border-color:#69d1ee;color:#111}.document-workspace button:focus-visible{outline:2px solid #0789af;outline-offset:2px}.document-workspace button:disabled{opacity:.4;cursor:default}.document-workspace .workspace-context-tools button:disabled{opacity:.35}
@media(max-width:950px){.customer-studio .document-workspace .document-workspace-body{grid-template-columns:60px 240px minmax(0,1fr);gap:10px}.document-workspace .workspace-navigation button{width:60px}.document-workspace .workspace-product{max-width:230px}.document-workspace #workspace-saved-state{display:none}.document-workspace .workspace-topbar{gap:5px;padding:0 8px}.document-workspace .workspace-save-tools{padding-left:5px}.document-workspace .workspace-price{max-width:120px;font-size:10px}.document-workspace .workspace-opacity{display:none}.document-workspace .workspace-view{width:calc(min(560px,calc((100dvh - 330px)*2))*var(--view-zoom))}}
@media(max-width:650px){.customer-studio .document-workspace .workspace-topbar{height:92px;min-height:92px;flex-wrap:wrap;gap:0;padding:5px 8px;align-content:center;justify-content:space-between}.document-workspace .workspace-product{width:calc(100% - 152px);max-width:none;gap:7px}.document-workspace .workspace-brand{font-size:10px}.document-workspace #workspace-title{font-size:11px;max-width:150px}.document-workspace .workspace-save-tools{border:0;padding:0}.document-workspace .workspace-topbar button{min-width:34px;min-height:36px;padding:7px}.document-workspace .workspace-next-tools{width:100%;margin:0;justify-content:flex-end;gap:5px}.document-workspace #workspace-next{margin-left:auto;min-width:85px}.document-workspace .workspace-price{max-width:145px;font-size:11px}.document-workspace .workspace-save-tools #workspace-history-button{display:none}.customer-studio .document-workspace .document-workspace-body{display:grid;grid-template-columns:1fr;grid-template-rows:52px minmax(190px,1fr) minmax(155px,31dvh);padding:0;gap:0;overflow:hidden}.document-workspace .workspace-navigation{flex-direction:row;margin:0;min-height:52px;width:100%;overflow:auto;padding:0;border-bottom:1px solid #ddd}.document-workspace .workspace-navigation button{width:calc(100vw / 6);flex-shrink:0;min-height:52px;padding:5px 2px;font-size:9px;gap:3px}.document-workspace .workspace-navigation button svg{width:17px;height:17px}.document-workspace .workspace-navigation button[aria-pressed=true] svg{padding:2px;margin:-2px}.document-workspace .workspace-panel{grid-row:3;border-radius:0;border-top:1px solid #d4d4d4;padding:15px 18px;box-shadow:none;overflow-y:auto}.document-workspace .workspace-panel h3{margin-bottom:11px;font-size:14px}.document-workspace .workspace-panel h4{margin-top:15px}.document-workspace .workspace-dropzone{min-height:130px;gap:7px;padding:10px 12px}.document-workspace .workspace-dropzone>strong{display:none}.document-workspace .workspace-dropzone>small{font-size:10px}.document-workspace .workspace-dropzone>span{font-size:10px}.document-workspace .workspace-panel .workspace-accent{min-height:38px;margin:3px 0}.document-workspace .workspace-layer-list{grid-template-columns:repeat(2,minmax(0,1fr))}.document-workspace .workspace-layer-list span{max-width:95px}.document-workspace .workspace-colours{grid-template-columns:repeat(6,minmax(0,1fr));gap:3px}.document-workspace .workspace-colours button span{width:30px;height:30px}.document-workspace .workspace-artboard{grid-row:2;padding-top:8px}.document-workspace .workspace-context-tools{border-radius:6px;max-width:calc(100% - 16px);padding:0 3px;flex-shrink:0;justify-content:flex-start}.document-workspace .workspace-context-tools button{min-height:32px;font-size:10px;padding:5px;min-width:32px}.document-workspace .workspace-context-tools svg{width:16px;height:16px}.document-workspace .workspace-view-scroll{padding:21px 5px 2px;align-items:center}.document-workspace .workspace-view{width:calc(min(calc(100vw - 28px),calc((100dvh - 530px)*2))*var(--view-zoom));min-width:calc(220px * var(--view-zoom))}.document-workspace .workspace-bottom-controls{margin:4px 0;gap:5px;flex-wrap:nowrap;justify-content:space-around}.document-workspace .workspace-view-zoom button{min-height:30px;min-width:24px;padding:3px;font-size:10px}.document-workspace #reset-view{display:none}.document-workspace .native-face-controls button{min-height:30px;font-size:10px;padding:4px 6px}.document-workspace .workspace-print-mode{display:none}.document-workspace .workspace-artboard-help{font-size:9px;margin:0 2px 4px}.document-workspace .native-background-options{font-size:10px;gap:9px}.document-workspace .native-background-options label{min-height:26px}.document-workspace #side-tools .side-status{font-size:10px}.customer-studio .document-workspace .workspace-footer{padding:7px 12px max(7px,env(safe-area-inset-bottom));display:flex}.document-workspace .workspace-footer p{font-size:9px;max-width:150px}.document-workspace .workspace-footer button{padding:6px 10px;min-height:36px;font-size:11px}.document-workspace .workspace-footer>div{display:flex}.document-workspace .catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.document-workspace .catalog-grid button{min-height:85px;padding:6px}.document-workspace .catalog-grid img{width:45px;height:45px}.document-workspace .template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.document-workspace .template-grid button{min-height:70px;padding:10px;font-size:11px}.document-workspace #text-content{min-height:80px}.document-workspace .workspace-panel label{margin-top:10px}.designer-entry-actions{flex-wrap:wrap}}
/* Compact touch controls leave room for both garment photos. */
.document-workspace .workspace-nudges{margin:3px 0;gap:0}.document-workspace .workspace-nudges button[data-native-adjust],.document-workspace .workspace-nudges button[data-native-rotate]{width:36px;flex:0 0 36px;min-width:36px;min-height:34px;padding:4px}
@media(max-width:650px){.document-workspace .workspace-nudges button[data-native-adjust],.document-workspace .workspace-nudges button[data-native-rotate]{width:34px;flex:0 0 34px;min-width:34px;min-height:30px;padding:2px}.document-workspace .native-advanced{display:none}.document-workspace .workspace-artboard-help{display:none}.document-workspace .workspace-context-tools button{padding:5px 7px}.document-workspace .workspace-view-scroll{padding-top:18px}.document-workspace .workspace-view{width:calc(min(calc(100vw - 48px),calc((100dvh - 600px)*2))*var(--view-zoom))}}
/* Fit both views to the available artboard, including portrait product bases. */
.document-workspace .workspace-view-scroll{container-type:size;display:flex;align-items:center;justify-content:center}.customer-studio .document-workspace .workspace-view{width:calc(min(850px,calc((100cqh - 38px)*var(--artboard-ratio)),calc(100cqw - 24px))*var(--view-zoom));min-width:0}
/* Keep buyer controls readable and usable by touch; the tool strip scrolls. */
.document-workspace .workspace-context-tools{gap:3px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}.document-workspace .workspace-context-tools button{flex-shrink:0;min-height:40px;min-width:40px;font-size:12px;padding:8px 10px}.document-workspace .workspace-help{font-size:13px}.document-workspace .workspace-artboard-help{font-size:12px}.document-workspace .workspace-panel label{font-size:13px}
@media(max-width:650px){.customer-studio .document-workspace .document-workspace-body{grid-template-rows:64px minmax(190px,1fr) minmax(155px,18dvh)}.document-workspace .workspace-navigation{min-height:64px}.document-workspace .workspace-navigation button{min-height:64px;font-size:11px;gap:6px;line-height:1.2}.document-workspace .workspace-navigation button svg{width:19px;height:19px}.document-workspace .workspace-context-tools{min-height:44px;max-width:calc(100% - 16px);gap:4px}.document-workspace .workspace-context-tools button{font-size:12px;min-height:40px;min-width:42px;padding:8px 10px}.document-workspace .workspace-context-tools svg{width:18px;height:18px}.document-workspace .workspace-nudges button[data-native-adjust],.document-workspace .workspace-nudges button[data-native-rotate]{width:38px;flex:0 0 38px;min-width:38px;min-height:36px;padding:4px}.document-workspace .native-background-options{font-size:12px}.document-workspace .native-background-options label{min-height:36px}.document-workspace #side-tools .side-status{font-size:12px}.document-workspace .native-face-controls button,.document-workspace .workspace-view-zoom button{min-height:36px;font-size:12px;padding:6px}.document-workspace #view-zoom{font-size:12px}.document-workspace .workspace-dropzone>span{font-size:12px}.document-workspace .workspace-dropzone>small{font-size:11px}.document-workspace .workspace-layer-list button,.document-workspace .template-grid button{font-size:12px}.document-workspace .workspace-price,.document-workspace #workspace-title{font-size:12px}.document-workspace .workspace-footer p{font-size:11px;max-width:130px}.document-workspace .workspace-footer button{font-size:12px;min-height:40px}.document-workspace .workspace-topbar button{min-height:40px}.document-workspace .workspace-topbar #close-workspace{min-width:40px}.document-workspace .catalog-grid button{font-size:12px}}
.document-workspace,.document-workspace *{box-sizing:border-box}@media(max-width:650px){.document-workspace .workspace-navigation button{flex:0 0 calc(100% / 6);width:calc(100% / 6)}}
.document-workspace .native-enhancement-tools{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:4px}.document-workspace .native-enhancement-tools button{font-size:12px;min-height:36px;padding:6px 12px}.document-workspace .native-enhancement-tools button:first-child{border-color:#47badd;background:#effbff}.native-enhancement-tools:empty{display:none}

/* Portrait garment photos need the phone canvas space; long tools scroll below. */
@media(max-width:650px){.document-workspace .workspace-navigation{gap:0}.document-workspace .workspace-view-scroll{padding-top:8px}.customer-studio .document-workspace .workspace-view{width:calc(min(850px,calc((100cqh - 8px)*var(--artboard-ratio)),calc(100cqw - 24px))*var(--view-zoom))}}

.workspace-placement-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;min-width:0}.workspace-placement-controls button{font-size:12px;min-height:40px;padding:7px 10px;background:#fff;border-color:#ccc}.workspace-placement-controls button[aria-pressed=true]{background:#e9f8fd;border-color:#0789af;color:#066f8b}.document-workspace .native-face-controls[hidden],.document-workspace .workspace-print-mode[hidden]{display:none!important}.document-workspace .workspace-placement-help{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;font-size:12px;padding:5px;text-align:center}.workspace-placement-help button{min-height:36px;padding:5px 10px;font-size:12px}.workspace-upload-guidance{font-size:12px;line-height:1.6;color:#555;margin:12px 0}.workspace-upload-guidance:is(ul){padding-left:18px}.workspace-upload-guidance li{margin:5px 0}.workspace-support{display:inline-flex;align-items:center;justify-content:center;gap:6px;color:#087c42;text-decoration:none;min-height:40px;padding:7px 9px;font-size:12px;white-space:nowrap}.summary-panel>.workspace-support{float:right}.rights-notice{display:flex;align-items:flex-start;gap:10px;margin:20px 0;padding:14px;border:1px solid #d8d8d8;border-radius:6px;background:#fff;font-size:13px;line-height:1.6}.rights-notice input{flex:none;width:18px;height:18px;min-height:18px;margin-top:3px;accent-color:#0789af}.rights-notice strong{display:block}
@media(max-width:650px){.document-workspace .workspace-placement-controls{width:100%;gap:4px}.document-workspace .workspace-placement-controls button{min-height:40px;padding:5px 6px;font-size:12px}.document-workspace .workspace-bottom-controls:has(.workspace-placement-controls){display:block;margin:3px 8px}.document-workspace .workspace-placement-help{font-size:11px;line-height:1.4;padding:2px 6px;gap:4px}.document-workspace .workspace-support{width:36px;min-width:36px;padding:6px}.document-workspace .workspace-support span{display:none}.document-workspace .workspace-context-tools .workspace-view-zoom{flex:none;background:transparent;box-shadow:none}.document-workspace .workspace-context-tools .workspace-view-zoom button{min-width:32px;padding:5px}.rights-notice{font-size:13px;padding:12px}}

/* Product uploads follow the Customix reference; the garment remains the focus. */
.customer-studio .native-upload-card{padding:20px;border-color:#e2e2e2;background:#fafafa;border-radius:8px;font-family:Arial,Helvetica,sans-serif}
.customer-studio .native-upload-field h3{font-size:16px;line-height:1.4;margin:0 0 9px;font-weight:700}
.customer-studio .native-upload-row{min-height:74px;padding:12px 14px;background:#fff;border-color:#e1e1e1;gap:12px}
.customer-studio .native-upload-placeholder{font-size:15px;line-height:1.45;color:#777}
.customer-studio .native-upload-button,.customer-studio .native-upload-actions button{min-height:44px;padding:10px 16px;font-size:14px;border-radius:6px}
.customer-studio .native-upload-helper{font-size:13px;line-height:1.5;color:#777;margin:9px 0 17px}
.customer-studio .designer-entry-actions{margin:2px 0 8px;gap:22px;align-items:center}
.customer-studio .designer-entry-actions button{flex:0 0 auto;background:transparent;color:#222;border:0;padding:5px 0;min-height:40px;font-size:13px;font-weight:500;text-align:left;text-decoration:underline;text-underline-offset:4px;border-radius:0}
.customer-studio .native-preview-button{width:100%;min-height:54px;margin-top:3px;border:1px solid #ddd;border-radius:7px;background:#fff;color:#111;font-size:15px;font-weight:500}
.document-workspace{font-family:Arial,Helvetica,sans-serif}
.customer-studio .document-workspace .document-workspace-body{grid-template-columns:64px 276px minmax(0,1fr);gap:16px;padding:16px 18px 10px 0}
.document-workspace .workspace-topbar{gap:16px;border-bottom-color:#ddd}
.document-workspace .workspace-brand{font-size:13px;font-weight:700;letter-spacing:0}
.document-workspace #workspace-title{font-size:13px;font-weight:500}
.document-workspace .workspace-navigation{background:#fff;border-right:1px solid #e1e1e1}
.document-workspace .workspace-navigation button{width:64px;min-height:76px;font-size:11px;gap:8px}
.customer-studio .document-workspace .workspace-panel{position:relative;border:1px solid #e2e2e2;box-shadow:none;border-radius:7px;padding:20px 18px;background:#fff;overflow-y:auto;overscroll-behavior-y:contain}
.document-workspace .workspace-panel h3{font-size:16px;margin:0 0 18px;line-height:1.4}
.document-workspace .workspace-panel h4{font-size:13px;margin:20px 0 10px;font-weight:600}
.document-workspace .workspace-panel label{font-size:13px;line-height:1.5}
.document-workspace .workspace-panel input:not([type=checkbox]):not([type=radio]):not([type=range]),.document-workspace .workspace-panel select{min-height:42px;font-size:14px}
.document-workspace .workspace-panel .workspace-accent,.document-workspace .workspace-next-tools #workspace-next,.document-workspace .workspace-footer #save-design{background:#111;border-color:#111;color:#fff;min-height:44px}
.document-workspace .workspace-panel .workspace-accent{font-size:13px;border-radius:6px}
.document-workspace .workspace-dropzone{min-height:172px;padding:18px 12px;gap:13px;background:#fafafa;border-color:#cfcfcf;border-radius:6px}
.document-workspace .workspace-dropzone>strong{font-size:14px;font-weight:500}
.document-workspace .workspace-dropzone>span{font-size:12px;line-height:1.6;color:#666}
.document-workspace .workspace-dropzone>small{font-size:11px;color:#777}
.document-workspace .workspace-upload-guidance{font-size:12px;line-height:1.55;margin:12px 0;color:#666}
.document-workspace .workspace-upload-tips summary{font-size:12px;min-height:38px;display:flex;align-items:center;margin:0;color:#555}
.document-workspace .workspace-upload-tips summary::after{content:'+';margin-left:auto;font-size:16px}
.document-workspace .workspace-upload-tips[open] summary::after{content:'−'}
.document-workspace .workspace-upload-tips[open] summary{min-height:30px}
.document-workspace .workspace-layer-list button{min-height:64px;border-color:#ddd;box-shadow:none;font-size:13px;font-weight:500}
.document-workspace .workspace-layer-list button[aria-pressed=true]{border-color:#0789af;background:#f0faff}
.document-workspace .workspace-photo-options{margin-top:20px;border-top:1px solid #e4e4e4;padding-top:14px}
.document-workspace .native-background-options{display:flex;flex-direction:column;align-items:flex-start;gap:0;font-size:13px}
.document-workspace .native-background-options label{display:flex;flex-direction:row;align-items:center;gap:8px;min-height:42px;margin:0;font-size:13px}
.document-workspace .native-background-options input[type=radio]{width:18px;height:18px;min-height:18px;flex:0 0 18px;margin:0}
.document-workspace .workspace-photo-options .side-status{font-size:12px;line-height:1.5;text-align:left;margin:8px 0}
.document-workspace .workspace-photo-options .side-status:empty,.document-workspace .native-background-options:empty{display:none}
.document-workspace .native-enhancement-tools{justify-content:flex-start}
.document-workspace .native-enhancement-tools button{min-height:42px}
.document-workspace .native-advanced{display:block;margin:8px 0 0}
.document-workspace .native-advanced summary{min-height:42px;display:flex;align-items:center;font-size:13px;margin:0}
.document-workspace .native-advanced button{min-height:42px}
.document-workspace .workspace-panel-toggle{display:none}
.document-workspace .workspace-context-tools{box-shadow:none;border:1px solid #e0e0e0;min-height:46px;padding:2px 5px;border-radius:6px}
.document-workspace .workspace-context-tools button{font-size:12px;min-height:40px;padding:8px 10px}
.document-workspace .workspace-view-scroll{padding:8px 4px;min-height:0}
.customer-studio .document-workspace .workspace-view{width:calc(min(850px,calc((100cqh - 16px)*var(--artboard-ratio)),calc(100cqw - 12px))*var(--view-zoom))}
.document-workspace .workspace-bottom-controls{margin:8px 0 3px}
.document-workspace .workspace-nudges{margin:0;gap:3px}
.document-workspace .workspace-nudges button[data-native-adjust],.document-workspace .workspace-nudges button[data-native-rotate]{width:40px;min-width:40px;min-height:40px;flex:0 0 40px}
.document-workspace .workspace-artboard-help{margin:5px 0;font-size:12px;line-height:1.4}
.document-workspace .workspace-placement-help{font-size:12px;line-height:1.4;margin:2px 0;padding:3px}
.document-workspace .workspace-footer button{min-height:44px;border-radius:6px}
@media(max-width:950px) and (min-width:651px){.customer-studio .document-workspace .document-workspace-body{grid-template-columns:60px 232px minmax(0,1fr);gap:12px;padding-right:10px}.document-workspace .workspace-navigation button{width:60px}.customer-studio .document-workspace .workspace-panel{padding:18px 14px}}
@media(max-width:650px){
  .customer-studio .native-upload-card{padding:16px}
  .customer-studio .native-upload-row{min-height:70px;padding:11px;gap:10px}
  .customer-studio .native-upload-placeholder{font-size:14px}
  .customer-studio .native-upload-button,.customer-studio .native-upload-actions button{padding:10px 13px;flex-shrink:0}
  .customer-studio .native-upload-helper{font-size:12px}
  .customer-studio .document-workspace .workspace-topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:40px 40px;height:86px;min-height:86px;padding:3px 7px;gap:0}
  .document-workspace .workspace-product{grid-column:1;width:auto;min-width:0;max-width:none;gap:6px}
  .document-workspace .workspace-save-tools{grid-column:2;gap:2px;width:auto}
  .document-workspace .workspace-brand{font-size:11px}
  .document-workspace #workspace-title{font-size:12px;min-width:0;max-width:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .document-workspace .workspace-topbar button{min-height:40px;min-width:40px;padding:6px}
  .document-workspace .workspace-next-tools #workspace-next{min-height:40px;padding:8px 13px}
  .document-workspace .workspace-next-tools{grid-column:1 / -1;width:100%;justify-content:flex-end;gap:7px;margin:0}
  .document-workspace .workspace-support{min-height:40px;min-width:40px;width:40px}
  .customer-studio .document-workspace .document-workspace-body{grid-template-columns:1fr;grid-template-rows:56px minmax(0,1fr) 128px;padding:0;gap:0}
  .customer-studio .document-workspace .document-workspace-body[data-tools-expanded=true]{grid-template-rows:56px minmax(0,1fr) minmax(140px,21%)}
  .document-workspace .workspace-navigation{min-height:56px;border-right:0}
  .document-workspace .workspace-navigation button{width:calc(100% / 6);min-height:56px;font-size:10.5px;gap:4px;padding:5px 2px}
  .document-workspace .workspace-navigation button svg{width:18px;height:18px}
  .customer-studio .document-workspace .workspace-panel{padding:12px 16px;border:0;border-top:1px solid #d8d8d8;border-radius:0}
  .document-workspace .workspace-panel h3{font-size:15px;margin:0 0 12px;padding-right:116px;min-height:26px}
  .document-workspace .workspace-panel-toggle{display:block;position:sticky;float:right;top:0;z-index:2;min-height:38px;padding:7px 9px;border:0;background:#fff;font-size:12px;text-decoration:underline;text-underline-offset:3px}
  .document-workspace .workspace-dropzone{min-height:108px;padding:8px 10px;gap:8px}
  .document-workspace .workspace-dropzone>span{font-size:12px}
  .document-workspace .workspace-dropzone>small{font-size:11px}
  .document-workspace .workspace-panel .workspace-accent{min-height:44px;margin:0}
  .document-workspace .workspace-artboard{padding-top:5px;min-height:0}
  .document-workspace .workspace-context-tools{min-height:44px;margin:0 auto;max-width:calc(100% - 12px);gap:3px;padding:1px 3px}
  .document-workspace .workspace-context-tools .workspace-view-zoom button{min-width:34px;min-height:40px}
  .document-workspace .workspace-view-scroll{padding:4px 0}
  .customer-studio .document-workspace .workspace-view{width:calc(min(850px,calc((100cqh - 8px)*var(--artboard-ratio)),calc(100cqw - 8px))*var(--view-zoom))}
  .document-workspace .workspace-bottom-controls:has(.workspace-placement-controls){margin:4px 6px 0}
  .document-workspace .workspace-placement-controls button{min-height:40px;font-size:12px}
  .document-workspace .workspace-nudges{margin:0;gap:2px}
  .document-workspace .workspace-nudges button[data-native-adjust],.document-workspace .workspace-nudges button[data-native-rotate]{width:42px;min-width:42px;min-height:42px;flex:0 0 42px}
  .document-workspace .workspace-placement-help{font-size:11px;padding:2px 6px;margin:0;min-height:17px}
  .document-workspace .workspace-artboard-help{display:none}
  .document-workspace .native-advanced{display:block}
  .document-workspace .workspace-photo-options{margin-top:16px}
  .customer-studio .document-workspace .workspace-footer{padding:6px 10px max(6px,env(safe-area-inset-bottom));min-height:56px}
  .document-workspace .workspace-footer p{font-size:11px;line-height:1.45;max-width:128px}
  .document-workspace .workspace-footer button{min-height:44px;font-size:12px;padding:9px 11px}
}
@media(max-width:650px) and (max-height:640px){.document-workspace .workspace-artboard{overflow:auto}.document-workspace .workspace-view-scroll{flex:0 0 140px;min-height:140px}}

/* Reference photo dialog; the complete designer stays behind More tools. */
.customer-studio .native-upload-card{container-type:inline-size}
.customer-studio .native-upload-row{background:transparent}
.native-upload-field .required-label{font-size:11px;font-weight:500;margin-left:10px;color:#666}
.minimum-image-size{display:block;margin-top:5px}
.field-note,.field-policy{font-size:13px;line-height:1.5;margin:8px 0;color:#555;white-space:pre-wrap;overflow-wrap:anywhere}
.document-workspace .workspace-image-tools>summary{min-height:42px;font-size:13px;cursor:pointer}
.document-workspace:not(.compact-photo-workspace) .workspace-image-tools>summary{display:none}
.document-workspace .workspace-navigation button[aria-pressed=true]{background:#f1f1f1;color:#111}
.document-workspace .workspace-navigation button[aria-pressed=true] svg{background:transparent}
.document-workspace .workspace-layer-list button[aria-pressed=true]{border-color:#777;background:#f5f5f5}
.document-workspace .native-face-controls button[aria-pressed=true]{border-color:#777;background:#f2f2f2;color:#111}
.document-workspace .workspace-placement-controls button[aria-pressed=true]{border-color:#777;background:#f2f2f2;color:#111}
.document-workspace .photo-pair .artwork-selection{border-color:#333}
.customer-studio .compact-photo-workspace{width:min(560px,calc(100vw - 28px));height:min(720px,calc(100dvh - 56px));max-height:calc(100dvh - 56px);margin:auto;border:1px solid #ddd;border-radius:10px;background:#fff}
.compact-photo-workspace::backdrop{background:#000c}
.compact-photo-workspace .workspace-topbar,.compact-photo-workspace .workspace-navigation,.compact-photo-workspace .workspace-context-tools,.compact-photo-workspace .workspace-artboard-help{display:none}
.compact-photo-workspace .photo-editor-header{min-height:68px;display:flex;align-items:center;gap:10px;padding:16px 24px 8px;flex-shrink:0}
.compact-photo-workspace .photo-editor-header h2{font-size:17px;font-weight:700;margin:0 auto 0 0;white-space:nowrap}
.compact-photo-workspace #photo-more-tools{font-size:12px;min-height:42px;padding:8px 6px;border:0;background:transparent;text-decoration:underline;text-underline-offset:3px}
.compact-photo-workspace #photo-replace{display:flex;align-items:center;gap:5px;min-height:42px;padding:8px 12px;border:1px solid #ddd;border-radius:24px;background:#fff;font-size:13px;white-space:nowrap}
.compact-photo-workspace #photo-replace svg{width:16px;height:16px}
.compact-photo-workspace .photo-crop-note{margin:0;padding:0 24px;max-height:58px;overflow-y:auto;flex-shrink:0}
.customer-studio .compact-photo-workspace .document-workspace-body{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;padding:8px 24px 0;gap:0}
.compact-photo-workspace .workspace-artboard{grid-row:1;background:#fff;padding:0}
.customer-studio .compact-photo-workspace .workspace-view{width:calc(min(384px,calc((100cqh - 8px)*var(--artboard-ratio)),calc(100cqw - 8px))*var(--view-zoom))}
.compact-photo-workspace .workspace-view-scroll{padding:4px 0}
.compact-photo-workspace .workspace-bottom-controls{margin:6px 0 2px}
.compact-photo-workspace .workspace-placement-controls button{min-height:36px;padding:6px 9px;font-size:12px}
.compact-photo-workspace .workspace-nudges{justify-content:space-between;gap:3px;margin:6px 0}
.compact-photo-workspace .workspace-nudges button[data-native-adjust],.compact-photo-workspace .workspace-nudges button[data-native-rotate]{width:38px;min-width:38px;min-height:40px;flex:0 0 38px}
.compact-photo-workspace .workspace-placement-help{font-size:11px;margin:0;line-height:1.5}
.customer-studio .compact-photo-workspace .workspace-panel{grid-row:2;border:0;border-radius:0;padding:0;background:#fff;overflow:hidden}
.compact-photo-workspace .workspace-panel>*:not(.workspace-image-tools){display:none}
.compact-photo-workspace .workspace-image-tools{border-top:1px solid #eee;max-height:190px;overflow-y:auto;margin-top:5px}
.compact-photo-workspace .workspace-image-tools>summary{display:flex;align-items:center;margin:0;font-weight:500}
.compact-photo-workspace .workspace-image-tools>summary::after{content:'+';margin-left:auto}
.compact-photo-workspace .workspace-image-tools[open]>summary::after{content:'−'}
.compact-photo-workspace .workspace-photo-options{margin:0;padding:0 0 8px;border:0}
.compact-photo-workspace .workspace-photo-options .field-note{display:none}
.compact-photo-workspace .compact-edit-tools{display:flex;gap:8px;margin:8px 0}
.compact-photo-workspace .compact-edit-tools button{min-height:40px;background:#fff;font-size:13px}
.customer-studio .compact-photo-workspace .workspace-footer{padding:12px 24px 20px;border:0;background:#fff}
.compact-photo-workspace .workspace-footer p{display:none}
.compact-photo-workspace .workspace-footer>div{display:flex;flex-direction:row-reverse;width:100%;gap:8px}
.compact-photo-workspace .workspace-footer #save-design{flex:1;min-height:50px;font-size:15px;border-radius:8px;background:#000}
.compact-photo-workspace .workspace-footer #cancel-edit{min-width:86px;min-height:50px;font-size:14px;background:#fff;border-color:#ddd;border-radius:8px}
@container(min-width:600px){.customer-studio .native-upload-field h3{font-size:20px;margin-bottom:8px}.customer-studio .native-upload-row{min-height:96px;padding:18px 19px}.customer-studio .native-upload-placeholder{font-size:20px}.customer-studio .native-upload-button,.customer-studio .native-upload-actions button{min-height:56px;font-size:18px;padding:12px 20px}.customer-studio .native-upload-helper{font-size:16px;margin:12px 0 20px}.customer-studio .native-preview-button{min-height:74px;font-size:20px}.customer-studio .designer-entry-actions{gap:24px}}
@media(max-width:650px){.customer-studio .compact-photo-workspace{width:calc(100vw - 24px);height:min(740px,calc(100dvh - 24px));max-height:calc(100dvh - 24px)}.compact-photo-workspace .photo-editor-header{padding:10px 14px 4px;min-height:60px;gap:6px}.compact-photo-workspace .photo-editor-header h2{font-size:16px}.compact-photo-workspace #photo-replace{padding:8px 10px;min-height:42px;font-size:12px}.compact-photo-workspace #photo-more-tools{padding:8px 3px;min-height:42px;font-size:12px}.compact-photo-workspace .photo-crop-note{padding:0 14px;font-size:12px}.customer-studio .compact-photo-workspace .document-workspace-body{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;padding:4px 6px 0}.compact-photo-workspace .workspace-nudges button[data-native-adjust],.compact-photo-workspace .workspace-nudges button[data-native-rotate]{width:34px;min-width:34px;flex:0 0 34px;min-height:42px;padding:4px}.compact-photo-workspace .workspace-placement-controls button{font-size:11px;padding:5px 7px;min-height:40px}.compact-photo-workspace .workspace-placement-help{font-size:11px;padding:2px 0}.customer-studio .compact-photo-workspace .workspace-footer{padding:10px 14px 14px}.compact-photo-workspace .workspace-image-tools{max-height:160px}.compact-photo-workspace .workspace-footer #save-design,.compact-photo-workspace .workspace-footer #cancel-edit{min-height:48px}}
.image-tools-recovery{margin:10px 0}.image-tools-recovery button{min-height:42px;padding:8px 12px;font-size:12px;border:1px solid #d5d5d5;background:#fff;color:#111;border-radius:6px}.image-tools-recovery p{font-size:12px;line-height:1.5;margin:7px 0;color:#555}.image-tools-recovery p:empty{display:none}.image-tools-recovery p.error{color:#a3382b}
.customer-studio .compact-photo-workspace .workspace-topbar{display:none}

@media(max-width:650px){.compact-photo-workspace #photo-more-tools,.compact-photo-workspace #photo-replace{min-width:44px;min-height:44px}.compact-photo-workspace .workspace-placement-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.compact-photo-workspace .workspace-placement-controls button{min-width:44px;min-height:44px;padding:5px 4px}.compact-photo-workspace .workspace-nudges{display:grid;grid-template-columns:repeat(8,minmax(44px,1fr));gap:0}.compact-photo-workspace .workspace-nudges button[data-native-adjust],.compact-photo-workspace .workspace-nudges button[data-native-rotate]{width:44px;min-width:44px;min-height:44px}.compact-photo-workspace .workspace-image-tools>summary,.compact-photo-workspace .compact-edit-tools button{min-height:44px}}
@media(max-width:389px){.compact-photo-workspace .workspace-nudges{grid-template-columns:repeat(4,minmax(44px,1fr));justify-items:center}}
.customer-studio .designer-entry-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}
.customer-studio .designer-entry-actions button{min-height:46px;padding:10px 12px;font-size:15px;text-decoration:none;border:1px solid #ccc;border-radius:6px;background:#fff;color:#111}
.background-preview-note{font-size:12px;line-height:1.55;margin:8px 0 12px;color:#555}
.document-workspace .workspace-support{min-width:44px;min-height:44px}
@media(max-width:650px){.document-workspace .workspace-support{width:44px;min-width:44px;min-height:44px}.customer-studio .designer-entry-actions button{font-size:14px}}
.customer-studio .design-workspace .workspace-placement-selector{width:min(100%,520px);min-width:0}
.customer-studio .design-workspace .workspace-scope-label{display:block;margin:0 0 4px;font-size:11px;line-height:1.4;color:#555}
.customer-studio .design-workspace .workspace-placement-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;min-width:0;width:100%}
.customer-studio .design-workspace .workspace-placement-controls button{min-width:44px;min-height:44px;padding:6px 4px;font-size:12px;line-height:1.25;white-space:normal;overflow-wrap:anywhere}
.customer-studio .design-workspace .panel-toolbar:has(.workspace-placement-selector){display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.customer-studio .design-workspace .workspace-print-mode .workspace-scope-label{margin:0 5px 0 0;white-space:nowrap}
.mobile-selection-actions,.mobile-editor-brand,.workspace-next-mobile{display:none}
.mobile-canvas-tools,.mobile-history-tools,.mobile-photo-next{display:none}
.workspace-support .workspace-support-mobile-icon{display:none}
/* Phone workspace: one editing face, contextual tools, then Apply and the six-tool menu. */
@media(max-width:650px){
  .customer-studio .document-workspace[open]{--mobile-menu-height:calc(64px + env(safe-area-inset-bottom));--mobile-footer-height:56px;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:56px auto auto minmax(0,1fr) var(--mobile-footer-height) var(--mobile-menu-height);width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}
  .customer-studio .document-workspace .document-workspace-body{display:contents}
  .customer-studio .document-workspace .workspace-topbar{grid-column:1;grid-row:1;display:flex;align-items:center;height:56px;min-height:56px;padding:4px 6px;gap:2px}
  .document-workspace .workspace-product{flex:0 0 auto;max-width:56px}
  .document-workspace .workspace-brand{font-size:11px}
  .document-workspace #workspace-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
  .document-workspace .workspace-save-tools{width:auto;gap:0;border:0;padding:0}
  .document-workspace #workspace-save,.document-workspace #workspace-history-button,.document-workspace #workspace-saved-state,.document-workspace .workspace-price{display:none}
  .document-workspace .workspace-next-tools{width:auto;margin-left:auto;gap:2px}
  .document-workspace .workspace-topbar button{min-width:44px;min-height:44px;padding:6px}
  .document-workspace .workspace-topbar #close-workspace{min-width:44px;min-height:44px}
  .document-workspace .workspace-next-tools #workspace-next{min-width:44px;min-height:44px;margin:0;padding:6px 8px}
  .document-workspace .workspace-next-desktop{display:none}
  .document-workspace #workspace-preview{display:flex;align-items:center;gap:4px;font-size:12px}
  .document-workspace #workspace-preview span{display:inline}
  .document-workspace .workspace-next-mobile{display:inline}
  .document-workspace #workspace-status{grid-column:1;grid-row:2;max-height:72px;overflow:auto;z-index:5}
  .document-workspace .draft-conflict{grid-column:1;grid-row:3;max-height:140px;overflow:auto;z-index:5}
  .customer-studio .document-workspace .workspace-artboard{grid-column:1;grid-row:4;min-height:0;padding:0;overflow:hidden}
  .document-workspace .workspace-view-scroll{order:1;flex:1 1 0%;padding:8px 8px 12px;min-height:0;container-type:size}
  .customer-studio .document-workspace .workspace-view{width:calc(min(calc((100cqh - 24px)*var(--mobile-artboard-ratio)),calc(100cqw - 24px))*var(--view-zoom)*var(--mobile-garment-scale,1))}
  .customer-studio .document-workspace .photo-pair:not(.photo-pair-preview){aspect-ratio:var(--canvas-ratio);width:100%}
  .customer-studio .document-workspace .photo-pair:not(.photo-pair-preview)>.canvas-stage{width:100%;flex:0 0 100%}
  .document-workspace[data-active-face=front] .photo-pair:not(.photo-pair-preview)>[data-canvas-face=back],.document-workspace[data-active-face=back] .photo-pair:not(.photo-pair-preview)>[data-canvas-face=front]{display:none}
  .document-workspace .workspace-bottom-controls{order:2;margin:0 64px 4px 8px!important;flex:none}
  .document-workspace .workspace-placement-selector{width:100%}
  .document-workspace .workspace-placement-controls button{font-size:11px}
  .document-workspace .workspace-context-tools{display:flex;order:3;justify-content:flex-start;max-width:calc(100% - 64px);min-height:48px;margin:0 64px 4px 4px;padding:1px 3px;border-radius:4px;align-self:stretch}
  .document-workspace[data-mobile-selection=false] .workspace-context-tools{display:none}
  .document-workspace .workspace-context-tools button{min-height:44px;min-width:44px;font-size:13px}
  .document-workspace .workspace-nudges,.document-workspace .workspace-artboard-help,.document-workspace .workspace-placement-help{display:none}
  .document-workspace .workspace-placement-help:has(#move-front-placement){display:flex;order:2;margin:0 64px 4px 8px}
  .document-workspace .workspace-placement-help #move-front-placement{min-height:44px}
  .customer-studio .document-workspace .workspace-footer{grid-column:1;grid-row:5;min-height:56px;margin:0;padding:6px 10px;border-top:1px solid #ddd;z-index:6}
  .document-workspace .workspace-footer button{min-height:44px}
  .document-workspace .workspace-navigation{grid-column:1;grid-row:6;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;height:var(--mobile-menu-height);min-height:64px;margin:0;padding:0 0 env(safe-area-inset-bottom);border:0;background:#000;overflow:visible;z-index:7}
  .document-workspace .workspace-navigation button{width:100%;min-width:44px;min-height:64px;margin:0;padding:6px 1px;border:0;gap:4px;color:#fff;background:#000;font-size:10px}
  .document-workspace .workspace-navigation button[aria-pressed=true]{color:#fff;background:#333}
  .document-workspace .workspace-navigation button svg,.document-workspace .workspace-navigation button[aria-pressed=true] svg{width:20px;height:20px;margin:0;padding:0;background:transparent;border-radius:0}
  .customer-studio .document-workspace .workspace-panel{grid-column:1;grid-row:4;position:absolute;bottom:calc(var(--mobile-menu-height) + var(--mobile-footer-height));left:8px;right:8px;max-height:min(36dvh,320px,calc(100dvh - 72px - var(--mobile-menu-height) - var(--mobile-footer-height)));height:auto;min-height:0;padding:12px 14px;border:1px solid #ccc;border-radius:8px;background:#fff;box-shadow:0 -4px 18px #0002;z-index:5;overflow:auto;overscroll-behavior:contain}
  .document-workspace .document-workspace-body[data-tools-expanded=false]>.workspace-panel{display:none}
  .document-workspace .workspace-panel-toggle{display:block;min-height:44px;top:0;z-index:2;background:#fff}
  .document-workspace .workspace-panel input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),.document-workspace .workspace-panel select,.document-workspace .workspace-panel textarea{font-size:16px;min-height:44px}
  .document-workspace .workspace-support{position:fixed;right:10px;bottom:calc(var(--mobile-menu-height) + var(--mobile-footer-height) + 12px);width:44px;height:44px;min-width:44px;min-height:44px;padding:8px;background:#fff;border:1px solid #087c42;border-radius:50%;box-shadow:0 2px 8px #0002;z-index:8}
  .document-workspace .workspace-support svg{width:24px;height:24px}
  .document-workspace .workspace-support .workspace-support-original-icon{display:none}
  .document-workspace .workspace-support .workspace-support-mobile-icon{display:block}
  .document-workspace .workspace-support span{display:none}
  .document-workspace .mobile-selection-actions:not([hidden]){display:flex;position:absolute;gap:8px;transform:translateX(-50%);z-index:4;pointer-events:auto}
  .document-workspace .mobile-selection-actions button{display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:10px;border:1px solid #ccc;border-radius:50%;background:#fff;color:#111;touch-action:none;box-shadow:0 1px 4px #0002}
  .document-workspace .mobile-selection-actions [data-mobile-delete]{width:auto;min-width:76px;border-radius:22px;padding:8px;gap:4px;font-size:12px;touch-action:manipulation}
  .document-workspace .mobile-selection-actions svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .document-workspace .photo-pair .rotate-handle{display:none}
  .customer-studio .document-workspace .photo-pair .artwork-selection{border:1px solid #0789af}
  .customer-studio .document-workspace .photo-pair .resize-handle span{width:16px;height:16px;border:1px solid #0789af;border-radius:50%;background:#fff}
  .document-workspace .photo-preview-colour,.document-workspace #preview-color{display:none}
  .customer-studio .compact-photo-workspace[open]{grid-template-rows:56px auto auto minmax(0,1fr) var(--mobile-footer-height) var(--mobile-menu-height)}
  .customer-studio .compact-photo-workspace .workspace-topbar{display:none}
  .compact-photo-workspace .photo-editor-header{grid-column:1;grid-row:1;min-height:56px;padding:4px 10px;gap:6px}
  .compact-photo-workspace .mobile-editor-brand{display:block;font-size:10px;line-height:1.2;margin-bottom:2px}
  .compact-photo-workspace .photo-crop-note{grid-column:1;grid-row:3;max-height:56px;overflow:auto}
  .customer-studio .compact-photo-workspace .workspace-artboard{background:#f3f3f3}
  .customer-studio .compact-photo-workspace .workspace-panel{overflow:auto}
  .compact-photo-workspace .workspace-panel>*:not(.workspace-image-tools){display:revert}
  .compact-photo-workspace .workspace-image-tools{max-height:none;overflow:visible}
  .compact-photo-workspace .workspace-footer>div{width:auto;margin-left:auto}
  .compact-photo-workspace .workspace-footer #save-design,.compact-photo-workspace .workspace-footer #cancel-edit{min-height:44px;font-size:13px;border-radius:6px}
}
/* The phone canvas keeps browsing tools at the sides; production layouts stay unchanged. */
@media(max-width:650px){
  .customer-studio .document-workspace .workspace-bottom-controls{display:none}
  .document-workspace .workspace-context-tools .workspace-view-zoom{display:none}
  .document-workspace .mobile-canvas-tools,.document-workspace .mobile-history-tools{display:flex;position:absolute;flex-direction:column;gap:3px;z-index:4}
  .document-workspace .mobile-canvas-tools{left:4px;bottom:12px}
  .document-workspace .mobile-history-tools{right:4px;bottom:62px}
  .document-workspace[data-mobile-selection=true] .mobile-canvas-tools{bottom:64px}
  .document-workspace[data-mobile-selection=true] .mobile-history-tools{bottom:114px}
  .document-workspace .workspace-artboard:has(#move-front-placement) .mobile-canvas-tools{bottom:112px}
  .document-workspace .mobile-canvas-tools button,.document-workspace .mobile-history-tools button{width:48px;min-width:44px;min-height:48px;padding:5px 1px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;border-radius:4px;background:#fffffff0;box-shadow:0 1px 4px #0001;color:#555;font-size:9px;line-height:1.1}
  .document-workspace .mobile-canvas-tools button[aria-pressed=true]{background:#e9f8fc;color:#075e77;box-shadow:inset 0 0 0 1px #0789af}
  .document-workspace .mobile-canvas-tools svg,.document-workspace .mobile-history-tools svg{width:20px;height:20px}
  .document-workspace .mobile-history-tools #undo-edit:after{content:'Undo'}
  .document-workspace .mobile-history-tools #redo-edit:after{content:'Redo'}
  .document-workspace[data-mobile-group=true] .resize-handle,.document-workspace[data-mobile-group=true] [data-mobile-rotate],.document-workspace[data-mobile-group=true] [data-mobile-delete],.document-workspace[data-mobile-group=true] .workspace-context-tools{display:none!important}
  .document-workspace[data-mobile-group=true] .mobile-selection-actions{width:44px;justify-content:center}
  .document-workspace[data-mobile-area-zoom=true] .workspace-view-scroll{display:block;overflow:auto}
  .document-workspace[data-mobile-area-zoom=true] .workspace-view{margin:0 auto;max-width:none}
  .compact-photo-workspace .photo-editor-header #mobile-photo-next{display:flex;align-items:center;justify-content:center;min-height:44px;min-width:48px;padding:6px 8px;font-size:13px}
  .compact-photo-workspace .photo-editor-header #photo-replace{display:none}
  .compact-photo-workspace .photo-editor-header h2{flex:1;min-width:0}
  .mobile-designer-dialog[open]{display:flex;flex-direction:column;width:calc(100vw - 20px);max-width:600px;max-height:calc(100dvh - 24px);margin:auto;padding:0;border:1px solid #d0d0d0;border-radius:8px;background:#fff;color:#191919;overflow:hidden;font-family:inherit;box-sizing:border-box}
  .mobile-designer-dialog::backdrop{background:#0007}
  .mobile-designer-dialog header{flex:none;padding:20px 20px 12px}
  .mobile-designer-dialog h2{font-size:23px;line-height:1.2;margin:0 0 12px;font-weight:600}
  .mobile-designer-dialog header p{font-size:14px;line-height:1.6;color:#666;margin:0}
  .mobile-designer-dialog .mobile-dialog-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:4px 20px 16px}
  .mobile-designer-dialog footer{flex:none;display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:10px 16px max(10px,env(safe-area-inset-bottom));border-top:1px solid #ddd;background:#fff}
  .mobile-designer-dialog button,.mobile-designer-dialog input,.mobile-designer-dialog select{min-height:44px;font-family:inherit}
  .mobile-designer-dialog button{min-width:44px;font-size:13px}
  .mobile-designer-dialog input,.mobile-designer-dialog select{font-size:16px}
  .mobile-designer-dialog button:focus-visible,.mobile-designer-dialog input:focus-visible,.mobile-designer-dialog select:focus-visible{outline:2px solid #0789af;outline-offset:2px}
  .mobile-side-dialog[open]{height:min(720px,calc(100dvh - 24px))}
  .mobile-side-dialog .mobile-dialog-scroll{flex:1 1 0;min-height:0;overflow-y:auto}
  .mobile-side-dialog section+section{margin-top:20px;border-top:1px solid #ddd;padding-top:12px}
  .mobile-side-dialog h3{font-size:17px;margin:12px 0}
  .mobile-side-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .mobile-side-grid button{display:flex;flex-direction:column;align-items:center;padding:6px;border:1px solid #ccc;border-radius:7px;background:#fff;min-width:0;font-size:13px;gap:6px}
  .mobile-side-grid button[aria-pressed=true]{border:2px solid #0789af;padding:5px}
  .mobile-side-preview{position:relative;display:block;width:100%;aspect-ratio:var(--side-preview-ratio);max-height:min(32dvh,260px);min-height:0}
  .mobile-side-preview img,.mobile-side-preview canvas{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain}
  .mobile-side-grid small{font-size:11px;color:#075e77}
  .mobile-side-grid .mobile-side-size{color:#666}
  .mobile-side-grid .mobile-side-status.error{color:#a3382b}
  .mobile-side-grid button:disabled{opacity:.45}
  .mobile-quantity-dialog[open]{width:100vw;max-width:650px;height:100dvh;max-height:100dvh;border:0;border-radius:0;margin:0 auto}
  .mobile-quantity-colour{border:1px solid #ddd;padding:16px;margin:10px 0 20px}
  .mobile-quantity-colour h3{font-size:17px;line-height:1.4;margin:0 0 6px}
  .mobile-quantity-colour>p{font-size:14px;color:#666;margin:0 0 12px}
  .mobile-quantity-colour .mini-views{width:100%;max-width:none;display:flex;justify-content:center;gap:8px;margin:8px 0 12px}
  .mobile-quantity-colour .mini-views figure{min-width:0;flex:1;margin:0;text-align:center}
  .mobile-quantity-colour .mini-views img{display:block;object-fit:contain;width:100%;max-height:220px;margin:auto}
  .mobile-quantity-colour .mini-views figcaption{font-size:11px;color:#666;margin-top:4px}
  .mobile-quantity-colour .mobile-colour-total{text-align:center;color:#191919;font-size:17px}
  .mobile-quantity-sizes{display:grid;gap:12px}
  .mobile-quantity-sizes>label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:16px}
  .mobile-quantity-sizes>label>span{min-width:40px}
  .mobile-quantity-sizes small{display:block;font-size:10px;color:#666}
  .mobile-quantity-stepper{display:flex;align-items:center;max-width:190px;min-width:0;border:1px solid #ccc;border-radius:3px}
  .mobile-quantity-stepper button{flex:0 0 44px;border:0;background:#fff;font-size:23px;font-weight:400;padding:0}
  .mobile-quantity-stepper input{width:66px;min-width:35px;padding:3px;text-align:center;border:0;appearance:textfield;-moz-appearance:textfield}
  .mobile-quantity-stepper input::-webkit-inner-spin-button{appearance:none}
  .mobile-quantity-stepper button:disabled,.mobile-quantity-stepper input:disabled{background:#f4f4f4;color:#999}
  .mobile-quantity-add-colour{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding-bottom:8px}
  .mobile-quantity-add-colour label{width:100%;font-size:14px}
  .mobile-quantity-add-colour select{min-width:0;flex:1}
  .mobile-quantity-dialog footer{justify-content:space-between;padding-left:10px;padding-right:10px;gap:5px}
  .mobile-quantity-dialog footer button{padding:8px;font-size:12px}
  .mobile-quantity-dialog #mobile-quantity-total{font-size:12px;white-space:nowrap}
  .mobile-quantity-dialog #mobile-quantity-confirm{background:#69d1ee;border-color:#69d1ee;color:#111}
}

/* Graphics uses the existing workspace panel; the garment and buying controls keep their layout. */
.graphic-browser{min-width:0}
.graphic-browser>label{display:block;margin:10px 0 5px}
.graphic-browser input,.graphic-browser select{box-sizing:border-box;width:100%;min-width:0;min-height:42px;font:inherit}
.graphic-filter-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.graphic-filter-row label{display:flex;flex-direction:column;gap:5px;margin:0;font-size:12px}
.graphic-shelves{display:flex;gap:0;border-bottom:1px solid #ddd;margin-top:12px}
.graphic-shelves button{flex:1;min-width:0;min-height:44px;padding:5px;border:0;border-bottom:2px solid transparent;border-radius:0;background:#fff;font-size:12px;color:#666}
.graphic-shelves button[aria-pressed="true"]{border-bottom-color:#111;color:#111;font-weight:700}
.graphic-extra-filters{padding:9px 0;border-bottom:1px solid #eee;font-size:12px}
.graphic-extra-filters summary{cursor:pointer;min-height:26px;display:list-item;list-style-position:inside}
.graphic-extra-filters .graphic-filter-row{margin-bottom:8px}
.graphic-result-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:7px 0}
.graphic-result-heading p{margin:0;color:#666;font-size:12px}
.graphic-result-heading button{border:0;background:transparent;min-height:36px;padding:5px;font-size:11px;text-decoration:underline;color:#555}
.graphic-browser .catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0}
.graphic-card{position:relative;min-width:0;overflow:hidden;border:1px solid #ddd;border-radius:5px;background:#fff}
.graphic-browser .catalog-grid .graphic-add{display:flex;flex-direction:column;gap:0;width:100%;min-height:143px;border:0;padding:0;border-radius:0;background:#fff;overflow:hidden;text-align:left}
.graphic-thumbnail{display:flex;align-items:center;justify-content:center;width:100%;height:106px;background:#f5f5f5}
.graphic-thumbnail.transparent{background-color:#fff;background-image:linear-gradient(45deg,#eee 25%,transparent 25%),linear-gradient(-45deg,#eee 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#eee 75%),linear-gradient(-45deg,transparent 75%,#eee 75%);background-size:12px 12px;background-position:0 0,0 6px,6px -6px,-6px 0}
.graphic-browser .catalog-grid img{width:100%;height:100%;max-height:none;object-fit:contain;padding:12px;box-sizing:border-box}
.graphic-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:100%;min-height:30px;padding:7px 8px;font-size:11px;line-height:1.35;font-weight:500;overflow-wrap:anywhere}
.graphic-browser .catalog-grid .graphic-favourite{display:flex;align-items:center;justify-content:center;position:absolute;top:0;right:0;min-height:44px;width:44px;height:44px;padding:0;border:0;border-radius:0 0 0 4px;background:rgba(255,255,255,.92);font-size:24px;line-height:1;color:#555}
.graphic-browser .catalog-grid .graphic-favourite[aria-pressed="true"]{color:#111}
.graphic-attribution{display:block;padding:0 8px 7px;color:#666;font-size:10px;line-height:1.3;overflow-wrap:anywhere}
.graphic-browser button:focus-visible,.graphic-browser select:focus-visible,.graphic-browser input:focus-visible{outline:2px solid #111;outline-offset:2px}
.graphic-storage-note{margin:12px 0 0;font-size:10px;line-height:1.5;color:#777}
@media(max-width:749px){
  .customer-studio .document-workspace .workspace-panel:has(.graphic-browser){max-height:min(56dvh,470px,calc(100dvh - 72px - var(--mobile-menu-height) - var(--mobile-footer-height)))}
  .customer-studio .document-workspace .graphic-browser>h3{margin-bottom:8px}
  .graphic-browser>label[for="catalog-search"]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .graphic-filter-row{margin-top:6px}
  .graphic-browser>.graphic-filter-row label{font-size:0;gap:0}
  .graphic-shelves{margin-top:6px}
  .graphic-extra-filters{padding:4px 0}
  .graphic-result-heading{margin:3px 0}
  .graphic-browser .catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  .graphic-browser .catalog-grid .graphic-add{min-height:128px}
  .graphic-thumbnail{height:88px}
  .graphic-name{font-size:11px;padding:6px}
  .graphic-browser .catalog-grid img{padding:10px}
}

.document-workspace .template-browser{position:relative}
.document-workspace .template-browser h3{padding-right:90px}
.template-browser-close{position:absolute;right:0;top:0;min-height:44px}
.template-browser #template-search{width:100%;margin:10px 0 14px;font-size:16px}
.document-workspace .template-browser .template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.document-workspace .template-browser .template-grid>button{display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:10px;border:1px solid #ddd;background:#fff;color:#111;text-align:left;min-width:0}
.template-grid canvas{display:block;width:100%;height:auto;aspect-ratio:7/9;background:#fff;object-fit:contain}
.template-grid strong{font-size:14px;line-height:1.4}
.template-grid span,.template-grid small{font-size:12px;line-height:1.4}
.template-preview-status:empty{display:none}
.graphic-entry-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 16px}
.graphic-entry-shortcuts button{min-height:44px;padding:8px 10px;font-size:13px}
.template-version-history{margin-bottom:24px}
.template-version-history>button{display:flex;justify-content:space-between;gap:12px;min-height:48px;width:100%;margin:8px 0;padding:10px;text-align:left}
.template-version-history>button span{font-size:12px}
.template-change-dialog{width:min(450px,calc(100vw - 28px));max-height:calc(100dvh - 40px);box-sizing:border-box;padding:24px;border:1px solid #ddd;border-radius:10px;overflow:auto;background:#fff;color:#111}
.template-change-dialog::backdrop{background:#0008}
.template-change-dialog h2{font-size:22px;line-height:1.35;padding-right:30px}
.template-change-dialog>canvas{display:block;width:min(210px,100%);height:auto;aspect-ratio:7/9;margin:20px auto;background:#fff}
.template-change-dialog p{font-size:14px;line-height:1.6}
.template-change-dialog>div{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}
.template-change-dialog button{min-height:44px;padding:10px 14px}
.template-change-close{position:absolute;top:8px;right:8px;border:0;background:#fff;font-size:25px}
@media(min-width:651px){
  .customer-studio .document-workspace .workspace-panel:has(.template-browser){position:fixed;z-index:12;right:12px;top:66px;bottom:74px;width:min(740px,calc(100vw - 92px));box-sizing:border-box;padding:24px;box-shadow:0 5px 24px #0002;overflow:auto}
}
@media(max-width:650px){
  .template-browser-close{display:none}
  .customer-studio .document-workspace .workspace-panel:has(.template-browser){max-height:min(68dvh,calc(100dvh - 72px - var(--mobile-menu-height) - var(--mobile-footer-height)))}
  .document-workspace .template-browser .template-grid{gap:9px}
  .document-workspace .template-browser .template-grid>button{padding:8px}
}
