:root{font-family:Arial,Helvetica,sans-serif;color:#171719;background:#bfb5aa;font-synthesis:none}*{box-sizing:border-box}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}body{margin:0;min-width:320px}.app-shell{min-height:100vh;position:relative;overflow:hidden;background-color:#bfb5aa;background-image:radial-gradient(#a99e93 1px,transparent 1px),repeating-linear-gradient(130deg,transparent 0 130px,rgba(255,255,255,.14) 130px 131px);background-size:20px 20px,170px 170px}.editor-panel{position:absolute;z-index:3;left:22px;top:22px;width:360px;max-height:calc(100vh - 44px);display:flex;flex-direction:column;border-radius:22px;background:#f8f7f6;box-shadow:0 16px 40px rgba(53,45,37,.18);padding:14px 22px 10px}.brand{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 0 12px}.brand-mark{font-size:38px;line-height:1;color:#dd252e;text-shadow:2px 2px #111}.brand strong{display:block;font-size:23px;font-weight:900;letter-spacing:-1.2px;line-height:1}.brand small{display:block;font-size:10px;font-weight:900;letter-spacing:.5px;margin-top:2px}.mode-tabs{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px;margin-bottom:10px}.mode-tabs button{height:37px;border:1px solid #e8e6e4;background:white;border-radius:10px;box-shadow:0 2px 4px #0000000c;color:#333;display:grid;place-items:center;padding:0}.mode-tabs button.active{background:#1a1a1d;color:#fff;border-color:#1a1a1d}.mode-tabs svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}.controls{overflow-y:auto;min-height:0;flex:1;padding:0 2px 4px;scrollbar-width:thin;scrollbar-color:#d0cbca transparent}.control-group{margin-bottom:11px}.row{display:flex;align-items:center;gap:7px}.row>*{min-width:0}.row.space{justify-content:space-between}.form-input,.input-shell{width:100%;min-height:38px;border:1px solid #e2e0df;border-radius:11px;background:#fff;box-shadow:0 1px 2px #00000008;color:#252528}.form-input{padding:10px 12px;outline:none}.form-input:focus,textarea:focus{border-color:#29292d}.form-input::placeholder{color:#b3b1b1}.input-shell{display:flex;align-items:center;padding-left:12px;color:#a7a5a5}.input-shell input{border:0;outline:0;background:none;min-width:0;width:100%;padding:9px 10px;color:#222;font-size:12px}.input-shell span{font-size:15px}.segmented{display:flex;align-items:center;background:#eeecea;border-radius:10px;padding:3px;gap:3px;min-height:32px}.segmented button{border:0;background:transparent;border-radius:7px;min-width:0;flex:1;color:#858183;font-size:12px;padding:6px 5px}.segmented button.selected{background:#fff;color:#1a1a1c;box-shadow:0 1px 4px #00000015}.upload-box{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;height:72px;border:1px dashed #eee9e6;border-radius:12px;background:#faf9f8;color:#4c4a4b;font-size:12px;gap:4px;cursor:pointer;overflow:hidden}.upload-box strong{font-size:23px;line-height:1;color:#c7c5c4;font-weight:400}.upload-box input{position:absolute;inset:0;opacity:0;cursor:pointer}.upload-box.has-image{background:#eae8e6;background-size:cover;background-position:center;color:#fff;text-shadow:0 1px 3px #000}.upload-box.has-image strong{color:#fff}.small-title{font-size:10px;color:#9a9698;font-weight:700;text-transform:uppercase;margin:15px 2px 8px}.control-separator{height:1px;background:#eae7e5;margin:12px 0}.tiny-button{background:none;border:0;color:#aaa;font-size:11px;padding:4px 2px}.color-row{display:flex;gap:7px;align-items:center}.swatch{width:25px;height:25px;border:1px solid #ddd;border-radius:50%;padding:0;background:#fff;position:relative}.swatch.selected:after{content:"";position:absolute;inset:-4px;border:2px solid #111;border-radius:50%}.swatch.black{background:#09090a}.swatch.white{background:#fff}.color-input{width:27px;height:27px;padding:0;border:0;background:none;cursor:pointer}.toggle-row{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#6f6b6c;margin:14px 2px 8px}.toggle-pair{display:flex;align-items:center;gap:8px}.switch{appearance:none;width:29px;height:18px;background:#d6d2d0;border-radius:20px;position:relative;cursor:pointer;vertical-align:middle;margin:0}.switch:before{content:"";position:absolute;width:14px;height:14px;left:2px;top:2px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0002;transition:transform .15s}.switch:checked{background:#171719}.switch:checked:before{transform:translateX(11px)}.range-field{display:block;color:#767273;font-size:10px;font-weight:700;margin:15px 0 10px}.range-field span{float:right;color:#a29e9e;font-weight:400}.range-field input{display:block;width:100%;margin:12px 0 0;accent-color:#222}.panel-bottom{border-top:1px solid #ece9e7;padding-top:12px;flex:none}.primary-light{width:100%;border:1px solid #e4e1df;background:#fff;box-shadow:0 2px 2px #00000012;border-radius:11px;min-height:43px;font-weight:700;font-size:13px;color:#353436}.primary-light:hover,.placement-actions button:hover{background:#f0efee}.panel-credit{display:block;text-align:center;color:#aaa6a8;font-size:11px;font-weight:700;margin:17px 0 1px}.workspace{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}.stage-scroll{width:100%;height:100vh;display:flex;align-items:center;justify-content:center;overflow:auto}.stage-scroll canvas{display:block;width:min(700px,calc(100% - 80px));height:auto;flex:none;transform-origin:center center}.zoom-control{position:absolute;right:17px;top:50%;transform:translateY(-50%);width:34px;height:200px;background:#f8f7f7;border-radius:19px;display:flex;flex-direction:column;align-items:center;justify-content:space-around;box-shadow:0 3px 10px #0002;color:#666;font-size:11px}.zoom-control input{appearance:slider-vertical;writing-mode:vertical-lr;direction:rtl;width:20px;height:150px;accent-color:#1d1c1e}.cart-button{position:absolute;right:22px;top:22px;width:55px;height:55px;border:0;border-radius:15px;background:#f8f7f6;box-shadow:0 5px 15px #0002;font-size:28px;color:#747477}.cart-button b{position:absolute;right:-2px;top:-6px;background:#1b1b1d;color:#fff;font-size:11px;line-height:20px;width:20px;height:20px;border-radius:50%}.overlay{position:fixed;inset:0;background:#0009;z-index:10;display:flex;align-items:center;justify-content:center;padding:34px}.overlay[hidden]{display:none}.mockup-dialog{width:min(1240px,100%);height:min(650px,calc(100vh - 68px));border:1px solid #ddd4ca;border-radius:22px;background:#bfb5aa;box-shadow:0 22px 60px #0005;display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:10px;padding:24px;position:relative;overflow:hidden}.round-back{position:absolute;left:24px;top:24px;width:40px;height:40px;border:0;border-radius:50%;background:#f7f5f4;font-size:24px;z-index:2;color:#555}.shirts-stage{min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:center}.shirts-pair{width:100%;display:flex;align-items:center;justify-content:center;gap:4px}.shirt-holder{width:48%;max-width:365px;aspect-ratio:380/400;position:relative;touch-action:none}.shirt-svg{width:100%;height:100%;filter:drop-shadow(0 6px 5px #0002)}.shirt-shape{fill:url(#shirt-light);stroke:#d3d2d0;stroke-width:2}.shirt-neck{fill:#e8e7e4;stroke:#cccac7;stroke-width:2}.shirt-fold{fill:none;stroke:#b5b5b2;stroke-width:3;opacity:.26}.shirts-stage.black .shirt-shape{fill:#232326;stroke:#111}.shirts-stage.black .shirt-neck{fill:#18181a;stroke:#444}.shirts-stage.black .shirt-fold{stroke:#555}.shirt-print{position:absolute;left:50%;top:23%;transform:translateX(-50%);width:44%;height:auto;max-height:50%;object-fit:contain;cursor:grab;touch-action:none}.shirt-print:active{cursor:grabbing}.side-label{position:absolute;bottom:2%;left:50%;transform:translateX(-50%);color:#665f59;opacity:.65;font-size:10px;letter-spacing:2px;font-weight:700}.stage-size{font-size:112px;color:#786e64aa;line-height:1}.mockup-panel{border-radius:21px;background:#f9f8f8;box-shadow:0 8px 22px #0002;display:flex;flex-direction:column;overflow:hidden}.mockup-panel-scroll{padding:25px 25px 5px;overflow-y:auto;scrollbar-width:thin}.mockup-heading{display:flex;align-items:center;justify-content:space-between}.mockup-heading h2{margin:0;font-size:24px;font-weight:900;letter-spacing:-1px}.mockup-heading button{border:0;color:#a29fa0;background:none;font-size:11px}.shirt-colors{display:flex;gap:8px;margin:17px 0}.shirt-color{width:35px;height:35px;border-radius:50%;background:#fff;border:1px solid #bcbaba;position:relative}.shirt-color.black{background:#1e1e20}.shirt-color.selected:after{content:"";position:absolute;inset:-5px;border:2px solid #161618;border-radius:50%}.size-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-bottom:26px}.size-grid button{min-height:48px;border:1px solid #e4e1e0;background:#fff;border-radius:11px;box-shadow:0 1px 2px #0001}.size-grid button.selected{background:#1e1e20;color:white}.size-grid strong,.size-grid small{display:block}.size-grid strong{font-size:12px}.size-grid small{font-size:9px;color:#a19d9d}.size-grid .selected small{color:#ccc}.placement-card{border-top:1px solid #e8e5e5;padding:15px 0}.placement-card h3{font-size:12px;margin:0 0 10px}.placement-preview{height:65px;display:flex;align-items:center;gap:12px;color:#aaa;font-size:10px}.placement-preview img{height:60px;width:70px;object-fit:contain;border:1px solid #e4e2e1;border-radius:8px}.measurement{display:flex;border:1px solid #e9e7e6;background:#fff;border-radius:10px;padding:11px 3px;margin:10px 0;justify-content:space-around}.measurement>div{text-align:center;flex:1;border-right:1px solid #eee}.measurement>div:last-child{border:0}.measurement small{display:block;color:#999;font-size:9px}.measurement b{font-size:11px;font-weight:400}.slider-label{display:block;font-size:11px;color:#777;margin:10px 0}.slider-label input{display:block;width:100%;accent-color:#202023;margin-top:7px}.placement-actions{display:flex;gap:7px}.placement-actions button,.back-card button{border:1px solid #e5e2e1;border-radius:10px;background:#fff;padding:9px 12px;flex:1;font-size:11px}.placement-card p{font-size:10px;color:#aaa;text-align:center;line-height:1.4}.back-upload{display:block;border:1px dashed #d9d5d3;border-radius:10px;padding:17px;text-align:center;cursor:pointer;font-size:12px;color:#888}.mockup-footer{padding:20px 25px;background:#fff;border-top:1px solid #eee}.primary-dark{width:100%;background:#1a1a1c;color:#fff;border:0;border-radius:11px;min-height:46px;box-shadow:0 5px 9px #0002;font-size:13px;font-weight:700}.primary-dark:hover{background:#39393c}.order-overlay{z-index:11;backdrop-filter:blur(6px)}.order-dialog{width:min(450px,100%);max-height:min(660px,calc(100vh - 50px));background:#fff;border-radius:16px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 20px 55px #0004}.order-header,.order-footer{padding:20px 24px;flex:none}.order-header{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid #eee}.order-header h2{font-size:20px;margin:0}.order-header p{font-size:12px;color:#929091;margin:4px 0 0}.order-header button{border:0;background:none;color:#888;font-size:25px;line-height:1}.order-body{overflow:auto;padding:22px 24px}.form-label{display:block;font-size:12px;font-weight:700;margin:0 0 15px}.form-label em{color:#d84147;font-style:normal}.form-label input,.form-label textarea{display:block;margin-top:8px;width:100%;border:1px solid #e3e2e2;background:#fafafa;border-radius:10px;min-height:50px;padding:12px 15px;outline:0;font-weight:400}.form-label textarea{height:95px;resize:vertical}.form-label input:focus,.form-label textarea:focus{border-color:#777}.market-options{display:flex;gap:7px;margin:10px 0 16px}.market-options label{flex:1}.market-options input{position:absolute;opacity:0}.market-options span{display:grid;place-items:center;height:45px;border:1px solid #e4e3e3;border-radius:10px;color:#777;font-size:12px;cursor:pointer}.market-options input:checked+span{background:#1c1c1f;color:#fff}.consent{display:flex;gap:9px;font-size:11px;color:#777;line-height:1.4}.consent input{align-self:start;accent-color:#222}.order-message{min-height:18px;font-size:12px;color:#c03940}.order-message.success{color:#167845}.order-footer{border-top:1px solid #eee}.custom-item{border:1px solid #e5e1df;background:#fff;border-radius:10px;padding:10px;margin:7px 0;font-size:12px;cursor:pointer}.custom-item.selected{outline:2px solid #171719}.custom-item button{float:right;border:0;background:none;color:#bb343b}.custom-properties{background:#fff;border-radius:12px;padding:12px;margin-top:10px}.custom-properties label{display:block;font-size:11px;margin:9px 0}.custom-properties input,.custom-properties select{width:100%;margin-top:5px}.custom-properties input[type=color]{height:35px;border:0;padding:0}.notice{font-size:11px;color:#777;line-height:1.4}
@media(max-width:850px){.app-shell{display:flex;flex-direction:column;min-height:100svh;overflow:visible}.editor-panel{position:relative;left:auto;top:auto;width:100%;max-height:none;border-radius:0 0 20px 20px;padding:12px 15px;box-shadow:0 7px 20px #0002}.brand{justify-content:flex-start;margin-bottom:10px}.brand strong{font-size:20px}.controls{max-height:320px}.workspace{position:relative;min-height:450px;flex:1}.stage-scroll{margin:0;width:100%;height:450px;padding:20px}.stage-scroll canvas{max-width:100%;width:760px}.zoom-control{right:8px;height:150px}.zoom-control input{height:100px}.cart-button{top:10px;right:10px;width:46px;height:46px}.mockup-dialog{height:calc(100svh - 26px);grid-template-columns:1fr;grid-template-rows:minmax(240px,45%) 1fr;padding:8px}.shirts-stage{padding-top:25px}.stage-size{font-size:50px}.mockup-panel{min-height:0}.round-back{left:16px;top:16px}}@media(max-width:480px){.mode-tabs button{height:33px}.mode-tabs svg{width:16px}.brand{padding-right:55px}.controls{max-height:275px}.workspace,.stage-scroll{min-height:340px;height:340px}.zoom-control{top:auto;bottom:8px;right:12px;transform:none;width:140px;height:26px;flex-direction:row}.zoom-control input{appearance:auto;writing-mode:horizontal-tb;direction:ltr;width:85px;height:auto}.mockup-panel-scroll{padding:16px}.mockup-footer{padding:10px 16px}.shirts-pair{gap:0}}
/* Leave room inside the scroll area for selection rings and focus outlines. */
.ui-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex:none}
.cart-button>.ui-icon{width:26px;height:26px}
.controls{padding:6px 6px 12px}
.color-row,.swatch,.color-input,.switch{flex-shrink:0}
/* Фото в шаблоне можно масштабировать и перемещать мышью или пальцем. */
.stage-scroll canvas{touch-action:none}
.photo-adjust{margin:8px 2px 12px;color:#767273;font-size:10px}
.photo-adjust label{display:block;font-weight:700}
.photo-adjust label span{float:right;font-weight:400}
.photo-adjust input{display:block;width:100%;margin:9px 0 7px;accent-color:#222}
.photo-adjust small{display:block;color:#969192;font-size:10px}
.photo-adjust>div{display:flex;justify-content:space-between;align-items:center;gap:8px}
.photo-adjust button{border:0;background:none;color:#555;font-size:10px;padding:0;text-decoration:underline}

/* Размеры редактора и макета соответствуют присланным образцам. */
.app-shell{background-image:radial-gradient(#a99e93 1px,transparent 1px);background-size:20px 20px}
.editor-panel{width:400px;min-height:min(830px,calc(100vh - 44px));padding:24px 25px 20px}
.upload-box{height:105px}
.stage-scroll canvas{width:min(785px,calc(100% - 60px))}
.overlay:has(.mockup-dialog){padding:0}
.mockup-dialog{width:100vw;height:100vh;max-height:none;border:0;border-radius:0;grid-template-columns:minmax(0,1fr) 400px;gap:16px;padding:20px 16px;box-shadow:none}
.shirts-stage{overflow:hidden}
.shirts-pair{width:min(1150px,100%);gap:10px}
.shirt-holder{width:49%;max-width:550px;aspect-ratio:1}
.shirt-photo{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 7px 5px #00000012)}
.shirt-print{max-height:none;filter:drop-shadow(0 1px 1px #0003)}
.stage-size{font-size:90px;margin-top:-12px}
.shirt-colors{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0}
.shirt-color{flex:none;width:33px;height:33px}
.size-grid{grid-template-columns:repeat(3,1fr);margin-bottom:24px}
.size-grid button{min-height:56px}
.size-grid small{font-size:9px;margin-top:3px}
.placement-card h3{display:flex;justify-content:space-between;align-items:center;font-size:13px}
.placement-card h3 small{font-weight:400;color:#999;font-size:10px}
.placement-preview{height:78px}
.placement-preview img{height:72px;width:82px;border-style:dashed}
.back-card{margin-bottom:15px}
.round-back{left:16px;top:18px}
@media(max-width:850px){.editor-panel{width:100%;min-height:0;padding:14px 15px}.stage-scroll canvas{width:min(785px,calc(100% - 30px))}.mockup-dialog{height:100svh;grid-template-columns:1fr;grid-template-rows:minmax(240px,42%) 1fr;padding:8px;gap:6px}.shirt-holder{max-width:420px}.stage-size{font-size:48px;margin-top:-5px}}
@media(min-width:851px){.editor-panel{width:360px}.stage-scroll canvas[height="1100"]{width:min(785px,calc(90.9vh - 33px),calc(100% - 60px))}}
[hidden]{display:none!important}
@media(max-width:480px){.editor-panel{padding:12px 15px}.upload-box{height:80px}.mockup-panel-scroll{padding:16px}.shirt-colors{gap:9px;margin:14px 0}.shirt-color{width:29px;height:29px}.size-grid{gap:5px;margin-bottom:12px}.size-grid button{min-height:51px}.size-grid small{font-size:8px}.shirts-stage{padding-top:12px}}

.papa-photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:8px 0 4px}
.papa-photo-item{min-width:0;position:relative;text-align:center}
.papa-photo-tile{display:grid;place-items:center;position:relative;height:80px;border:1px dashed #d4d0d0;border-radius:11px;background:#fff;color:#aaa;overflow:hidden;cursor:pointer}
.papa-photo-item.selected .papa-photo-tile{outline:2px solid #202023;outline-offset:2px}
.papa-photo-tile img{width:100%;height:100%;object-fit:cover}
.papa-photo-tile span{font-size:27px;line-height:1}
.papa-photo-tile input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}
.papa-photo-item small{display:block;color:#777;font-size:11px;font-weight:700;margin-top:5px}
.papa-letter-index,.papa-remove{position:absolute;top:4px;width:20px;height:20px;border:0;border-radius:6px;background:#252527;color:#fff;font-size:10px;line-height:20px;padding:0;z-index:1}
.papa-letter-index{left:4px}.papa-remove{right:4px;font-size:16px}
.papa-text-row{display:flex;align-items:center;gap:6px;margin:8px 0}
.papa-text-row .input-shell{width:auto;flex:1;min-width:0}
.papa-align{display:flex;gap:2px;background:#ece9e7;border-radius:9px;padding:3px}
.papa-align button{border:0;background:transparent;border-radius:6px;width:22px;height:31px;padding:0;font-size:17px;line-height:31px;color:#888}
.papa-align button:first-child{text-align:left}.papa-align button:last-child{text-align:right}
.papa-align button.selected{background:#fff;color:#202023;box-shadow:0 1px 3px #0002}
.papa-font-select{width:84px;height:37px;border:1px solid #ddd9d6;border-radius:9px;background:#fff;color:#303033;font-size:10px;padding:0 4px;cursor:pointer}

.patron-caption-row{display:flex;align-items:stretch;gap:10px;margin:10px 0 13px}
.patron-caption-row textarea{flex:1;min-width:0;min-height:78px;resize:vertical;border:1px solid #e2e0df;border-radius:11px;background:#fff;color:#252528;padding:11px 12px;font-size:12px;line-height:1.35;outline:none}
.patron-caption-row textarea:focus{border-color:#29292d}
.patron-caption-size{width:35px;display:flex;flex-direction:column;align-items:center;gap:2px;color:#999;font-size:9px}
.patron-caption-size output{color:#555;font-weight:700}
.patron-caption-size input{appearance:slider-vertical;writing-mode:vertical-lr;direction:rtl;width:20px;height:62px;accent-color:#222}

/* Dream Print: оформление конструктора как самостоятельной страницы типографии. */
:root{--brand-yellow:#ffe500;--brand-yellow-hover:#f0d800;--brand-cyan:#009fd3;--brand-ink:#1d2225;--brand-muted:#777a80;--brand-line:#e6e7e9;--brand-paper:#fff;--brand-ground:#f1f2f3;color:var(--brand-ink);background:var(--brand-ground)}
.site-header{height:82px;padding:0 clamp(18px,2.4vw,42px);display:flex;align-items:center;gap:clamp(18px,2.4vw,42px);background:#fff;border-bottom:1px solid var(--brand-line);box-shadow:0 3px 18px #1d20230a;position:relative;z-index:4}
.site-header::after{content:"";position:absolute;inset:auto 0 0;height:3px;background:linear-gradient(90deg,#00a6de 0 25%,#e5007e 25% 50%,#ffe400 50% 75%,#292929 75%)}
.site-identity{display:flex;align-items:center;gap:11px;min-width:222px;text-decoration:none;color:var(--brand-ink)}
.site-identity-logo{display:block;width:74px;height:74px;object-fit:contain;flex:none}
.site-identity-type strong,.site-identity-type small{display:block}
.site-identity-type strong{font-size:21px;font-weight:900;letter-spacing:-.7px;line-height:1}
.site-identity-type small{font-size:11px;color:var(--brand-muted);font-weight:700;letter-spacing:.1px;margin-top:5px}
.site-header-section{border-left:1px solid var(--brand-line);padding-left:25px;display:flex;flex-direction:column;gap:4px;white-space:nowrap}
.site-header-kicker{color:var(--brand-ink);text-transform:uppercase;letter-spacing:1.1px;font-size:10px;font-weight:800}
.site-header-section strong{font-size:14px;font-weight:700}
.site-header-links{display:flex;align-items:center;gap:22px;margin-left:auto;white-space:nowrap}
.site-header-links a{color:#4c5055;text-decoration:none;font-size:12px;font-weight:700}
.site-header-links a:hover,.site-header-links a:focus-visible{color:var(--brand-ink);text-decoration:underline;text-decoration-color:var(--brand-yellow);text-decoration-thickness:3px;text-underline-offset:4px}
.site-header-phone{display:flex;flex-direction:column;gap:3px;color:var(--brand-ink);text-decoration:none;white-space:nowrap;text-align:right}
.site-header-phone small{font-size:10px;color:var(--brand-muted)}
.site-header-phone strong{font-size:14px}
.app-shell{min-height:calc(100svh - 82px);background-color:#f1f2f3;background-image:radial-gradient(#d6d9dd .8px,transparent .8px);background-size:21px 21px}
.editor-panel{top:18px;left:18px;max-height:calc(100svh - 118px);min-height:min(760px,calc(100svh - 118px));background:#fff;border:1px solid #e9eaec;box-shadow:0 16px 42px #28303b16;border-radius:20px}
.brand{justify-content:flex-start;gap:10px;margin-bottom:18px;padding-bottom:15px;border-bottom:1px solid var(--brand-line)}
.brand-mark{display:none}
.brand strong{font-size:16px;letter-spacing:-.3px;line-height:1.18}
.brand small{font-size:9px;font-weight:700;letter-spacing:.65px;color:var(--brand-muted);margin-top:5px}
.mode-tabs button{border-color:#e4e6e9;border-radius:9px;box-shadow:none;color:#656971}
.mode-tabs button:hover{border-color:#b7bbc2;color:var(--brand-ink)}
.mode-tabs button.active{background:var(--brand-yellow);border-color:var(--brand-yellow);color:var(--brand-ink);box-shadow:0 4px 10px #ad99002b}
.segmented{background:#f0f1f2}
.segmented button.selected{color:var(--brand-ink)}
.form-input,.input-shell,.patron-caption-row textarea{border-color:#e1e3e6}
.form-input:focus,.input-shell:focus-within,.patron-caption-row textarea:focus{border-color:#777;box-shadow:none}
.upload-box{background:#fcfcfd;border:1px dashed #cfd3d8;color:#555b63}
.upload-box:hover{border-color:var(--brand-cyan);background:#f7fcfe}
.upload-box strong{color:var(--brand-ink);font-weight:700}
.small-title,.range-field,.toggle-row,.photo-adjust{color:#646970}
.switch:checked{background:var(--brand-ink)}
.range-field input,.photo-adjust input,.patron-caption-size input,.slider-label input,.zoom-control input{accent-color:var(--brand-ink)}
.panel-bottom{border-color:var(--brand-line)}
.primary-light{border:0;background:var(--brand-yellow);color:var(--brand-ink);box-shadow:0 7px 14px #b59e002b}
.primary-light:hover{background:var(--brand-yellow-hover)}
.panel-credit{color:#979ba1;font-size:10px;letter-spacing:.2px}
.stage-scroll{height:calc(100svh - 82px)}
.zoom-control,.cart-button{background:#fff;color:#50545b;border:1px solid var(--brand-line)}
.cart-button{top:18px;z-index:5}
.cart-button b{background:var(--brand-ink);color:#fff}
.mockup-dialog{background:#eef0f1;border:0}
.mockup-panel{background:#fff;box-shadow:0 12px 30px #1b263016}
.mockup-heading h2{color:var(--brand-ink)}
.shirt-color.selected:after{border-color:var(--brand-ink)}
.size-grid button.selected{background:var(--brand-yellow);border-color:var(--brand-yellow);color:var(--brand-ink)}
.size-grid button.selected small{color:#3c4143}
.measurement,.placement-preview img,.back-upload{border-color:var(--brand-line)}
.placement-card h3 small{color:var(--brand-muted)}
.primary-dark{background:var(--brand-yellow);color:var(--brand-ink);box-shadow:0 6px 14px #b59e002b}
.primary-dark:hover{background:var(--brand-yellow-hover)}
.order-dialog{border-top:5px solid var(--brand-yellow)}
.market-options input:checked+span{background:var(--brand-yellow);border-color:var(--brand-yellow);color:var(--brand-ink)}
.consent input{accent-color:var(--brand-ink)}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--brand-cyan);outline-offset:2px}
/* Text fields use their own border for focus; avoid a second rectangle inside the rounded shell. */
.input-shell input:focus-visible,.form-input:focus-visible,.patron-caption-row textarea:focus-visible,.form-label input:focus-visible,.form-label textarea:focus-visible{outline:none}
@media(min-width:851px){.stage-scroll canvas[height="1100"]{width:min(785px,calc(90.9svh - 98px),calc(100% - 60px))}}
@media(max-width:1100px){.site-header{gap:22px}.site-header-links{display:none}.site-header-phone{margin-left:auto}}
@media(max-width:850px){.site-header{height:68px}.site-identity{min-width:0}.site-header-section{padding-left:16px}.site-header-phone{display:none}.app-shell{min-height:calc(100svh - 68px)}.editor-panel{top:auto;left:auto;max-height:none;min-height:0;border-radius:0 0 18px 18px;border-left:0;border-right:0}.stage-scroll{height:450px;padding:16px;overflow:hidden}.stage-scroll canvas{width:min(380px,calc(100% - 32px))}.cart-button{top:10px}.mockup-dialog{background:#eef0f1}}
@media(max-width:560px){.site-header{height:60px;padding:0 14px}.site-identity-logo{width:48px;height:48px}.site-identity-type strong{font-size:16px}.site-identity-type small{font-size:9px;margin-top:3px}.site-header-section{display:none}.app-shell{min-height:calc(100svh - 60px)}.editor-panel{padding:15px}.brand{margin-bottom:10px;padding-bottom:9px}.brand strong{font-size:14px}.brand small{font-size:8px}.workspace{min-height:350px;height:350px}.stage-scroll{height:350px;padding:12px;overflow:hidden}.stage-scroll canvas{width:min(296px,calc(100% - 24px))}.mockup-dialog{padding:8px}}

/* The preview fills its available area using the visible design bounds. */
.stage-scroll{position:relative;overflow:hidden}
.preview-surface{position:relative;width:100%;flex:none;overflow:hidden}
.photo-order{display:flex;gap:4px;justify-content:center;margin-top:4px}
.photo-swap{border:1px solid #dfe2e6;border-radius:9px;background:#fff;color:#20292e;min-height:36px;padding:6px 10px;margin:6px 0;cursor:pointer;font-size:12px}
.photo-order .photo-swap{flex:1;min-width:0;margin:0;padding:4px;font-size:20px}
[data-photo-slot].photo-draggable,[data-photo-slot].photo-draggable input{touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
[data-photo-slot] img{-webkit-user-drag:none}
[data-photo-slot].photo-drag-source{opacity:.45;cursor:grabbing}
[data-photo-slot].photo-drop-target{outline:3px solid #ffe500!important;outline-offset:2px;background-color:#fff6b0}
.photo-drag-ghost{position:fixed;left:0;top:0;width:72px;height:72px;border:3px solid #ffe500;border-radius:12px;object-fit:cover;pointer-events:none;z-index:1000;box-shadow:0 5px 18px #0005}
.stage-scroll canvas,.stage-scroll canvas[height="1100"]{position:absolute;left:0;top:0;width:1000px;height:auto;max-width:none;flex:none;transform-origin:top left;visibility:hidden}

.download-notice{font-size:11px;line-height:1.4;color:#626970;margin:6px 0}.download-notice:empty{display:none}

/* Print placement is fixed; prevent native image dragging. */
#front-print,#back-print{pointer-events:none;cursor:default;-webkit-user-drag:none}
