@font-face{font-family:Studio;src:local('Inter'),local('Arial')}*{box-sizing:border-box}body{margin:0;background:#f8f7f4;color:#272b27;font:13px/1.5 Studio,Arial,sans-serif}button,input{font:inherit}button{cursor:pointer;color:inherit}button:disabled{opacity:.38;cursor:not-allowed}button,input{ -webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,canvas:focus-visible,#viewport:focus-visible{outline:2px solid #e86a44;outline-offset:3px}svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.svg-library{display:none}h1,h2,h3,p{margin:0}h2{font-size:16px;letter-spacing:-.4px}h3{font-size:12px;font-weight:600}h1{font-size:27px;font-weight:500;letter-spacing:-1.1px;line-height:1.25}.muted{color:#91948c}.tiny{font-size:10px}.topbar{height:84px;background:#fff;border-bottom:1px solid #e9e9e3;display:flex;align-items:center;padding:0 30px;gap:24px}.brand{display:flex;align-items:center;gap:10px;color:#252b26;text-decoration:none;font-weight:700;font-size:22px;letter-spacing:-.8px;white-space:nowrap;line-height:1.1}.brand-mark{width:38px;height:38px;background:#e8623b;border-radius:11px;color:#fff;font-size:37px;line-height:31px;text-align:center;font-family:Georgia,serif;position:relative}.brand-mark span{font-size:19px;position:absolute;right:6px;top:-1px}.brand-light{font-weight:400}.brand small{display:block;font:8px/1.8 Arial,sans-serif;letter-spacing:2.2px;color:#96988f;padding-left:1px}.top-divider{height:28px;width:1px;background:#e7e8e1}.project{display:flex;flex-direction:column;min-width:130px}.project input{border:0;padding:0;background:none;width:200px;color:#454c42;font-size:12px;font-weight:600;outline-offset:2px}.project span{font-size:10px;color:#949a8e;margin-top:2px}.dev-label{font-size:8px;letter-spacing:1.1px;background:#f3f3ed;color:#8d9383;padding:4px 7px;border-radius:4px}.top-actions{display:flex;gap:10px;margin-left:auto}.button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:8px 13px;font-size:11px;font-weight:600;border-radius:7px;border:1px solid #e1e3dc;background:#fff;transition:.18s}.button:hover{background:#f3f3ed}.button.primary{background:#303d32;color:#fff;border-color:#303d32}.button.primary:hover{background:#475b49}.subtle{background:#fff}.button svg{width:15px;height:15px}.workspace{max-width:1920px;margin:auto;display:grid;grid-template-columns:247px minmax(320px,1fr) 280px;min-height:calc(100dvh - 84px)}.panel{padding:25px 23px;background:#fff;min-width:0}.catalog{border-right:1px solid #e7e8e0}.inspector{border-left:1px solid #e7e8e0;padding:25px 21px}.panel-heading{display:flex;gap:10px;align-items:center}.step{font-size:9px;font-weight:500;color:#8c947f;background:#f3f4ee;border:1px solid #e4e6dc;border-radius:50%;width:24px;height:24px;display:grid;place-items:center}.intro{margin:7px 0 19px;font-size:11px}.garments{display:grid;gap:7px}.garment-card{display:flex;align-items:center;gap:13px;border:1px solid #e7e9e2;border-radius:8px;background:#fff;padding:8px 10px;text-align:left;width:100%;transition:.16s;position:relative}.garment-card:hover{background:#f7f8f2}.garment-card.active{border-color:#718665;background:#f5f7ef;box-shadow:0 0 0 1px #71866533}.garment-card strong{display:block;font-size:12px;font-weight:600}.garment-card small{display:block;color:#989d90;font-size:9px}.garment-thumb{width:41px;height:45px;display:grid;place-items:center;border-radius:5px;background:#eeeee7}.garment-thumb svg{width:34px;height:36px;fill:#d9d7cd;stroke:#c1c1b7;stroke-width:.8}.garment-card.active:after{content:'✓';margin-left:auto;color:#708361;font-size:11px}.section-title{display:flex;justify-content:space-between;align-items:center;margin:20px 0 11px;gap:6px}.section-title>span{color:#939b8e;font-size:10px}.swatches{display:flex;gap:8px;flex-wrap:wrap}.swatch{width:23px;height:23px;border:1px solid #00000010;border-radius:50%;position:relative;box-shadow:inset 0 0 0 2px #fff}.swatch.active{outline:1.5px solid #687c5d;outline-offset:2px}.custom-color{display:flex;align-items:center;justify-content:space-between;color:#8e9687;font-size:10px;margin-top:13px}.custom-color input{width:28px;height:22px;border:0;background:none;padding:1px}.section-divider{height:1px;background:#e9ebe3;margin:22px 0}.upload-zone{border:1px dashed #bcc7b0;border-radius:9px;background:#f7f9f1;width:100%;padding:20px 7px 16px;display:flex;flex-direction:column;align-items:center;color:#52644d;gap:5px}.upload-zone svg{width:24px;height:24px;margin-bottom:5px}.upload-zone strong{font-size:11px;font-weight:600}.upload-zone span{font-size:10px;color:#8a9980}.upload-zone small{font-size:8px;color:#9ca78f;letter-spacing:-.1px}.upload-zone:hover,.upload-zone.dragover{background:#eaf0df;border-color:#78905f}.demo-button{width:100%;border:0;background:none;font-size:10px;color:#8c9584;margin-top:10px;padding:6px}.demo-button:hover{color:#df673d}.layers-title{margin-top:19px;margin-bottom:2px}.layers-title>span{background:#f0f1eb;border-radius:4px;padding:0 5px}.layers{display:grid;gap:6px;margin-top:10px;max-height:270px;overflow:auto}.layer{display:flex;align-items:center;gap:6px;border:1px solid #eceee7;border-radius:7px;padding:5px;background:#fff}.layer.selected{border-color:#859677;background:#f7f9f1}.layer-main{border:0;display:flex;align-items:center;gap:8px;text-align:left;background:none;padding:0;flex:1;min-width:0}.layer-main img{width:32px;height:32px;object-fit:contain;background:repeating-conic-gradient(#eee 0% 25%,#fff 0% 50%) 0/8px 8px;border-radius:4px}.layer-main span{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:102px}.layer .icon-button{width:24px;height:28px;color:#929b86}.layer .icon-button svg{width:14px;height:14px}.layer.hidden-layer{opacity:.5}.empty-layers{text-align:center;padding:19px 0 8px;color:#a6ac9d;font-size:10px}.empty-layers svg{width:27px;height:27px;margin-bottom:5px}.local-note{display:flex;align-items:center;justify-content:center;gap:5px;font-size:8px;color:#9da594;margin-top:23px}.local-dot{width:4px;height:4px;background:#9cab8b;border-radius:50%}.preview{padding:25px 29px 18px;min-width:0;display:flex;flex-direction:column}.preview-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px;gap:10px}.eyebrow{font-size:8px;letter-spacing:1.8px;color:#9a9d90;display:block;margin-bottom:5px}.preview-badge{font-size:7px;letter-spacing:1px;white-space:nowrap;border:1px solid #dddfd5;padding:5px 7px;border-radius:20px;color:#858e79;display:flex;align-items:center;gap:5px}.preview-badge span{background:#809769;border-radius:50%;width:4px;height:4px}.stage{position:relative;flex:1;min-height:475px;max-height:800px;border:1px solid #e3e5db;border-radius:13px;overflow:hidden;background:radial-gradient(ellipse at 50% 42%,#faf9f5,#eeede6);isolation:isolate}.stage-top{position:absolute;top:18px;left:18px;right:18px;display:flex;align-items:center;justify-content:space-between;z-index:3;pointer-events:none}.stage-top>*{pointer-events:auto}.segmented{display:flex;background:#fff9;border:1px solid #dedfd5;border-radius:7px;padding:3px;backdrop-filter:blur(5px)}.segmented button{border:0;border-radius:5px;background:none;padding:7px 12px;font-size:10px;color:#919687}.segmented button.active{background:#fff;color:#48553e;box-shadow:0 1px 5px #35432312}.history-tools{display:flex;gap:5px}.icon-button{background:transparent;border:0;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:5px;border-radius:5px;color:#6f7b64}.icon-button:hover{background:#dde4d277}.icon-button svg{width:16px;height:16px}.history-tools .icon-button{background:#ffffff80}.stage-bottom{position:absolute;bottom:19px;left:20px;right:20px;display:flex;justify-content:space-between;align-items:center;z-index:3;pointer-events:none}.stage-bottom span{display:flex;gap:6px;align-items:center;font-size:9px;color:#909983}.stage-bottom span svg{width:13px;height:13px}.stage-bottom button{pointer-events:auto;background:#fff9;border:1px solid #dde1d3}.stage-corner{position:absolute;left:21px;bottom:61px;color:#a0a693;font-size:7px;letter-spacing:2px;pointer-events:none}#viewport{position:absolute;inset:0;touch-action:none}#viewport canvas{display:block;width:100%;height:100%}.preview-footer{display:flex;align-items:center;justify-content:space-between;padding:17px 3px 4px;font-size:11px}.preview-footer strong{font-weight:500}.preview-note{font-size:9px;color:#a2a697;margin:5px 3px}.text-button{border:0;background:transparent;color:#7c8a6c;display:flex;align-items:center;gap:6px;font-size:10px;padding:5px 0}.text-button:hover{color:#293e23}.text-button svg{width:14px;height:14px}.presets{display:grid;grid-template-columns:1fr 1fr;gap:6px}.preset{border:1px solid #e5e8dd;border-radius:7px;background:#fff;padding:9px 3px;display:flex;align-items:center;gap:6px;justify-content:center;font-size:9px;color:#79856d}.preset:hover{border-color:#859875;background:#f5f8ee}.preset.active{background:#f2f6e9;border-color:#92a181}.preset svg{width:24px;height:24px;stroke-width:1;stroke:#b6bdab}.preset svg rect{fill:#89a16a;stroke:none}.placement-wrap{width:100%;aspect-ratio:0.85365;position:relative;border:1px solid #e4e8da;border-radius:8px;overflow:hidden;background:#f9faf6}.placement-wrap canvas{width:100%;height:100%;display:block;touch-action:none;cursor:move}#placement-empty{pointer-events:none;position:absolute;inset:0;display:grid;place-content:center;text-align:center;font-size:11px;color:#a3ad96}.placement-hint{text-align:center;margin-top:6px}fieldset{border:0;padding:0;margin:19px 0 0;min-width:0}fieldset legend{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;font-weight:600;margin-bottom:11px;padding:0}fieldset:disabled{opacity:.4}fieldset:disabled legend{display:none}.slider-label{display:flex;justify-content:space-between;align-items:center;font-size:10px;margin:11px 0 2px}.slider-label output{font-size:10px;color:#8e9882;font-variant-numeric:tabular-nums}input[type=range]{width:100%;accent-color:#7e9666;height:14px;cursor:pointer}.coordinate-fields{display:flex;gap:8px;margin-top:11px}.coordinate-fields label{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px;font-size:9px;color:#97a08c}.coordinate-fields input{width:100%;min-width:0;border:1px solid #e4e8db;border-radius:5px;padding:6px;color:#56634d;background:#fafbf7;font-size:11px}.layer-actions{display:flex;gap:7px;margin-top:16px}.layer-actions .button{flex:1;font-size:10px}.layer-actions .icon-button{border:1px solid #e5e8df;height:36px;width:36px}.danger:hover{color:#c95641;background:#fff1e9}.order-actions{display:flex;justify-content:space-between;margin-top:7px}.order-actions button{font-size:9px}.selection-empty{font-size:10px;color:#919c82;margin-top:19px;text-align:center}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#303d32;color:white;box-shadow:0 6px 30px #223b2330;padding:12px 20px;border-radius:8px;z-index:30;font-size:12px;max-width:min(480px,90vw)}.render-error{position:absolute;inset:35% 12% auto;background:#fff;border:1px solid #e5d6bd;border-radius:8px;padding:20px;z-index:5;color:#8e7055;text-align:center}.render-error[hidden],[hidden]{display:none!important}
@media(min-width:1500px){.workspace{grid-template-columns:280px minmax(500px,1fr) 320px}.panel{padding:30px}.preview{padding:30px 42px}.placement-wrap{max-height:300px}.stage{min-height:610px}.garment-card{padding:11px}.garment-thumb{width:49px;height:48px}}
@media(max-width:1100px){.workspace{grid-template-columns:215px minmax(300px,1fr) 240px}.panel,.inspector{padding:20px 15px}.preview{padding:22px 17px}.topbar{gap:15px;padding:0 20px}.dev-label{display:none}h1{font-size:24px}.preview-badge{display:none}.preset{font-size:8px}.top-divider{display:none}.stage{min-height:485px}.stage-top{left:10px;right:10px}.segmented button{padding:6px 8px}.stage-bottom{left:12px;right:12px}.stage-bottom span{font-size:8px}.project input{width:150px}}
@media(max-width:800px){.topbar{height:72px;padding:0 16px;gap:10px}.brand{font-size:18px}.brand-mark{width:32px;height:32px;font-size:32px;line-height:28px}.brand small{font-size:6px}.project{display:none}.top-actions{gap:6px}.top-actions .button{padding:8px;font-size:9px}.workspace{grid-template-columns:180px minmax(260px,1fr)}.inspector{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:0 28px;border-top:1px solid #e7e8df;padding:22px 25px}.inspector>.panel-heading,.inspector>.intro,.inspector>.section-title,.inspector>.presets{grid-column:1}.inspector .section-divider{display:none}.inspector .placement-wrap{grid-column:1;grid-row:6/10;max-width:280px}.inspector .placement-hint{grid-column:1}.inspector fieldset{grid-column:2;grid-row:3/10;align-self:start;max-width:330px}.selection-empty{grid-column:2;grid-row:3}.preview{padding:19px 14px}.preview-header{margin-bottom:16px}h1{font-size:21px}.preview-footer{font-size:10px;gap:8px}.preview-note{font-size:8px}.panel{padding:20px 13px}.stage{min-height:430px;height:520px}.stage-bottom span{max-width:160px;font-size:8px}.stage-bottom span svg{display:none}.garment-card{gap:8px}.garment-thumb{width:30px}.garment-thumb svg{width:28px}.swatches{gap:7px}.swatch{width:21px;height:21px}.intro{font-size:10px}.panel-heading{gap:7px}h2{font-size:14px}.upload-zone{padding:14px 5px}.upload-zone strong{font-size:10px}.upload-zone small{font-size:7px}.layer-main span{max-width:80px}}
@media(max-width:520px){.workspace{display:flex;flex-direction:column}.preview{order:0;padding:20px 15px 12px}.catalog{order:1;border-right:0;border-top:1px solid #e5e8df;padding:20px;display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.catalog>.panel-heading,.catalog>.intro,.garments{grid-column:1/-1}.garments{display:flex}.garment-card{flex:1;display:flex;flex-direction:column;padding:10px 4px;gap:4px;text-align:center}.garment-card.active:after{position:absolute;right:8px;top:6px}.garment-card small{font-size:8px}.garment-thumb{width:42px}.catalog .section-title,.catalog .swatches,.catalog .custom-color{grid-column:1/-1}.catalog .swatches{gap:13px}.catalog .section-divider{grid-column:1/-1}.catalog .upload-zone,.catalog .demo-button{grid-column:1/-1}.catalog .layers-title,.catalog #layer-side,.catalog .layers,.catalog .empty-layers,.catalog .local-note{grid-column:1/-1}.layer-main span{max-width:260px}.inspector{order:2;display:block;padding:23px}.inspector .placement-wrap{max-width:none;max-height:390px;width:min(100%,330px);margin:auto}.inspector fieldset{max-width:none}.inspector .presets{grid-template-columns:repeat(4,1fr)}.stage{height:440px;min-height:440px}.preview-header h1{font-size:24px}.top-actions .subtle span{display:none}.topbar .brand{font-size:19px}.topbar .button.primary{font-size:10px}.preview-footer{font-size:11px}.preview-note{font-size:9px}.stage-bottom span{max-width:initial}.preview-badge{display:flex}.catalog .intro{margin-bottom:12px}.step{height:22px;width:22px}.presets{margin-bottom:19px}.preset{flex-direction:column;font-size:9px}}

/* Keep long asset names inside narrow panels. */
.layer{min-width:0}.layer-main img{flex-shrink:0}.layer-main span{min-width:0;flex:1;max-width:none}.layer .icon-button{flex-shrink:0}

/* Surface editor: views and print coordinates are independent. */
.surface-controls{display:grid;gap:6px;margin:12px 0 14px}.surface-controls label,.transfer-label{font-size:10px;color:#76826a}.surface-controls select,.transfer-label select{width:100%;border:1px solid #dce3d4;border-radius:6px;background:#f6f8f1;padding:9px;color:#3d4d36;font:inherit}.transfer-label{display:grid;gap:5px;margin:3px 0 12px}.surface-guide{font-size:8px;text-align:center;color:#758266;margin-top:6px;line-height:1.7}.mode-controls{position:absolute;z-index:3;bottom:56px;left:50%;transform:translateX(-50%);white-space:nowrap}.mode-controls:has(button[hidden]){display:none}.surface-mode .stage-corner{display:none}.surface-mode .placement-wrap{max-height:none;min-height:85px}.surface-mode .stage-bottom span{max-width:320px}.legacy-note{font-size:11px;padding:12px 15px;margin-top:12px;background:#f2f4eb;border-radius:8px;color:#67755b}.legacy-note .text-button{display:block;font-weight:600}.wrap-demo{color:#46683d}.surface-mode .stage-top{gap:10px}.surface-mode .view-controls{flex-wrap:wrap}.surface-mode .view-controls button{padding:7px 8px}.surface-mode .preview-note{max-width:650px}
@media(max-width:1100px){.surface-mode .stage-top{align-items:flex-start}.surface-mode .view-controls{max-width:210px}.surface-mode .history-tools{gap:0}.surface-mode .view-controls button{font-size:9px;padding:5px 7px}.surface-mode .stage{min-height:520px}.mode-controls{bottom:64px}.mode-controls button{padding:6px 8px}.surface-mode .stage-bottom span{max-width:220px}}
@media(max-width:800px){.surface-mode .inspector{display:block}.surface-mode .inspector .placement-wrap{width:100%;max-width:none}.surface-mode .inspector fieldset{max-width:none}.surface-mode .surface-controls{max-width:none}.surface-mode .presets{grid-template-columns:repeat(4,1fr)}.surface-mode .view-controls{max-width:175px}.surface-mode .view-controls button{padding:4px 6px;font-size:8px}.surface-mode .mode-controls{bottom:69px}.surface-mode .stage-bottom span{max-width:230px}.surface-mode .stage-bottom span span{font-size:9px}}
@media(max-width:520px){.surface-mode .stage{height:500px;min-height:500px}.surface-mode .stage-top{top:12px}.surface-mode .view-controls{max-width:200px}.surface-mode .view-controls button{padding:6px 7px}.surface-mode .catalog .wrap-demo{grid-column:1/-1}.surface-mode .mode-controls{bottom:58px}.surface-mode .stage-bottom span{max-width:220px}.surface-mode .stage-bottom span span{font-size:8px}.surface-mode .inspector .placement-wrap{max-height:none}.surface-mode .surface-guide{font-size:7px}.surface-mode .preset{font-size:8px}}
@media(min-width:801px){.surface-mode .preview{position:sticky;top:0;align-self:start;height:calc(100dvh - 84px);min-height:570px}.surface-mode .stage{min-height:300px;max-height:none}.surface-mode .preview-header{margin-bottom:16px}.surface-mode .preview-note{margin-bottom:0}.surface-mode .preview-footer{padding-top:10px}.surface-mode .view-controls{max-width:300px}}
