:root{--pink:#ec1d73;--ink:#151515;--muted:#727272;--line:#e8e8e8;--bg:#f5f5f5;--card:#fff}
*{box-sizing:border-box}html,body{margin:0;font-family:Inter,Arial,sans-serif;color:var(--ink);background:var(--bg)}button,input{font:inherit}button{cursor:pointer}
.topbar{height:72px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;position:sticky;top:0;z-index:20}.brand{display:flex;gap:10px;align-items:center;text-decoration:none;color:#111;font-weight:900;letter-spacing:.04em}.brand-logo{display:block;width:auto;height:48px;max-width:210px;object-fit:contain}.brand-fallback{font-weight:900;letter-spacing:.04em}.brand-logo:not([src]),.brand-logo[src=""]{display:none}.top-actions{display:flex;gap:10px}
.layout{max-width:1420px;margin:24px auto;padding:0 24px;display:grid;grid-template-columns:360px 1fr;grid-template-areas:"intro preview" "controls preview";gap:18px;align-items:start}.card{background:#fff;border:1px solid var(--line);border-radius:24px}.intro{grid-area:intro;padding:26px 28px}.intro .eyebrow{font-size:12px;font-weight:800;letter-spacing:.13em;color:var(--pink)}.intro h1{font-size:30px;line-height:1.03;margin:12px 0}.intro p{margin:0;color:var(--muted);line-height:1.55;font-size:14px}
.controls{grid-area:controls;padding:8px 22px}.step{padding:20px 0;border-bottom:1px solid var(--line)}.step:last-child{border-bottom:0}.step-title{font-weight:800;margin-bottom:14px;display:flex;gap:10px;align-items:center}.step-title>span:first-child{width:25px;height:25px;border-radius:8px;background:#111;color:white;display:grid;place-items:center;font-size:12px}.segmented{display:grid;grid-template-columns:1fr 1fr;background:#f2f2f2;padding:4px;border-radius:13px}.segmented button{border:0;background:transparent;border-radius:10px;padding:10px;font-weight:700}.segmented button.active{background:#fff;box-shadow:0 1px 5px #0001}.swatches{display:flex;flex-wrap:wrap;gap:10px}.swatch{width:38px;height:38px;border-radius:50%;background:var(--c);border:2px solid #ddd;box-shadow:inset 0 0 0 4px white}.swatch.active{outline:3px solid var(--pink);outline-offset:2px}.upload{border:1.5px dashed #cfcfcf;border-radius:16px;min-height:105px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;background:#fafafa}.upload:hover{border-color:var(--pink);background:#fff6fa}.upload input{display:none}.upload strong{font-size:14px}.upload small{color:#8b8b8b}.full{width:100%;margin-top:10px}.step label:not(.upload){display:grid;grid-template-columns:1fr auto;gap:9px;color:#555;font-size:13px;margin:12px 0}.step input[type=range]{grid-column:1/3;width:100%;accent-color:var(--pink)}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:9px}.disabled{opacity:.45;pointer-events:none}
.primary,.secondary,.ghost,.danger{border-radius:12px;padding:11px 16px;font-weight:800;border:1px solid transparent}.primary{background:#111;color:#fff}.primary:hover{background:var(--pink)}.secondary{background:#f4f4f4;border-color:#e7e7e7}.ghost{background:#fff;border-color:#ddd}.danger{background:#fff0f3;color:#bb214e;border-color:#ffd3df}
.preview{grid-area:preview;min-height:780px;overflow:hidden}.preview-head{height:72px;padding:0 24px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.preview-head>div:first-child{display:flex;flex-direction:column;gap:4px}.preview-head span,.zoom-note{font-size:12px;color:#888}.stage{min-height:655px;background:radial-gradient(circle at 50% 30%,#fff 0,#f5f5f5 55%,#ececec 100%);display:grid;place-items:center;padding:20px;user-select:none}.stage svg{width:min(90%,680px);height:auto;overflow:visible}.preview-footer{min-height:56px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:18px;align-items:center;padding:14px 24px;font-size:12px;color:#777}
#designLayer .selected{filter:drop-shadow(0 0 3px rgba(236,29,115,.42))}#designLayer .selected.selected-text{filter:none}#designLayer .handle{fill:#fff;stroke:#ec1d73;stroke-width:2;vector-effect:non-scaling-stroke}
dialog{border:0;border-radius:18px;padding:0;box-shadow:0 18px 70px #0003}dialog::backdrop{background:#0007}.dialog-card{width:min(420px,90vw);padding:24px}.dialog-card h3{margin:0 0 16px}.dialog-card input{width:100%;padding:13px 14px;border-radius:12px;border:1px solid #ccc;outline:none}.dialog-card input:focus{border-color:var(--pink)}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
@media(max-width:980px){.layout{grid-template-columns:1fr;grid-template-areas:"intro" "preview" "controls"}.preview{min-height:auto}.stage{min-height:520px}.topbar{padding:0 16px}.preview-footer{flex-direction:column;align-items:flex-start}.intro h1{font-size:26px}}
@media(max-width:560px){.layout{padding:0 10px;margin:10px auto}.topbar{height:64px}.brand span:last-child{font-size:14px}.top-actions .ghost{display:none}.card{border-radius:18px}.intro{padding:22px}.controls{padding:6px 18px}.preview-head{padding:0 18px}.zoom-note{display:none}.stage{min-height:420px;padding:6px}.preview-footer{padding:14px 18px}.swatch{width:34px;height:34px}}

.font-control{margin:14px 0}.font-control[hidden]{display:none}.font-control label{display:block!important;margin:0 0 7px!important;color:#555!important;font-size:13px!important}.font-control select{width:100%;min-height:44px;border:1px solid #d8d8d8;border-radius:12px;background:#fff;padding:10px 12px;color:#151515;outline:none}.font-control select:focus{border-color:var(--pink);box-shadow:0 0 0 3px rgba(236,29,115,.10)}

/* Text editing on the shirt */
#designLayer .text-selection-box{fill:none;stroke:#ec1d73;stroke-width:.65;stroke-dasharray:3 3;vector-effect:non-scaling-stroke;opacity:.8;filter:none}
#designLayer .text-resize-handle{fill:#ec1d73;stroke:#ec1d73;stroke-width:1;vector-effect:non-scaling-stroke;filter:none}
.inline-text-editor{overflow:visible}
.inline-text-input{width:100%;height:42px;border:1px solid rgba(236,29,115,.55);border-radius:7px;background:rgba(255,255,255,.96);padding:6px 9px;text-align:center;color:#111;font-size:18px;outline:none;box-shadow:0 3px 14px rgba(0,0,0,.10)}
.inline-text-input:focus{border-color:#ec1d73;box-shadow:0 0 0 2px rgba(236,29,115,.10),0 3px 14px rgba(0,0,0,.10)}

.text-style-control{margin:14px 0}.text-style-control[hidden]{display:none}.control-caption{color:#555;font-size:13px;margin:0 0 8px}.text-color-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}.text-color-swatch{width:34px;height:34px;border-radius:50%;border:2px solid #fff;background:var(--tc);box-shadow:0 0 0 1px #d8d8d8;cursor:pointer}.text-color-swatch.active{outline:2px solid var(--pink);outline-offset:2px}.tracking-control{display:grid!important;grid-template-columns:1fr auto!important;gap:9px!important;margin:12px 0!important}.tracking-control input[type=range]{grid-column:1/3!important;width:100%}.brand-logo+.brand-fallback{display:none}@media(max-width:560px){.brand-logo{height:42px;max-width:160px}}

.rotate-value-button{appearance:none;border:0;background:transparent;padding:0;margin:0;font:inherit;font-weight:700;color:inherit;cursor:pointer;border-bottom:1px dashed rgba(236,29,115,.65)}
.rotate-value-button:hover{color:#ec1d73}

#designLayer .image-resize-handle{
  fill:#ec1d73;
  stroke:#ec1d73;
  stroke-width:1;
  vector-effect:non-scaling-stroke;
  filter:none;
}



.product-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.product-tab{border:1px solid #ddd;background:#fff;border-radius:13px;padding:9px 5px 7px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer;min-height:72px;color:#202020;transition:.15s}
.product-tab:hover{border-color:#aaa}.product-tab.active{border-color:#ec1d73;box-shadow:0 0 0 1px rgba(236,29,115,.15);color:#111}
.product-tab small{font-size:11px;font-weight:700;line-height:1.1}

#hoodieStringsOverlay.dark .hoodie-string-shadow path{stroke:rgba(0,0,0,.5)}
#hoodieStringsOverlay.dark .hoodie-string-hardware circle,#hoodieStringsOverlay.dark .hoodie-string-hardware rect{fill:#777;stroke:#aaa}

.product-icon-img{width:42px;height:42px;object-fit:contain;display:block}
.product-tab.active .product-icon-img{transform:scale(1.03)}

.product-icon-img{background:transparent!important;filter:none!important;box-shadow:none!important;mix-blend-mode:normal}

#mobileEditPanelSlot{display:none}
@media(max-width:760px){
  #mobileEditPanelSlot{
    display:block;
    width:100%;
    order:3;
  }
  #mobileEditPanelSlot #editPanel{
    display:block;
    width:100%;
    margin-top:12px;
  }
  #mobileEditPanelSlot #editPanel.disabled{
    opacity:.5;
  }
}
