.clothingLayout{display:grid;grid-template-columns:minmax(310px,.9fr) minmax(0,1.1fr);gap:24px;align-items:start}.clothingPanel,.clothingPreview{padding:22px;background:#1c1525;border:1px solid #725286;border-radius:14px}.clothingPanel label{display:block;margin:15px 0;color:#d9c7e5}.clothingPanel input:not([type=checkbox]),.clothingPanel select{display:block;width:100%;box-sizing:border-box;background:#2d2238;color:white;border:1px solid #745386;border-radius:6px;padding:10px;margin-top:6px;font:inherit}.clothingPanel input[type=range]{padding:0;accent-color:#ae76d7;cursor:pointer}.clothingPanel input[type=color]{height:40px;padding:4px}.clothingPanel h2,.clothingPreview h2{font-size:22px}.clothingTemplates{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.clothingTemplates button{background:#2a1f34;border:1px solid #6d4c80;border-radius:8px;padding:7px;color:white;cursor:pointer}.clothingTemplates button[aria-pressed=true]{border-color:#f0c65e;box-shadow:0 0 0 1px #f0c65e}.clothingTemplates img{display:block;width:100%;height:64px;object-fit:contain}.clothingTemplates span{display:block;font-size:11px;line-height:1.4}.clothingPairs{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.clothingPairs output{float:right;color:#b49bc6;font-size:12px}.clothingPreview{position:sticky;top:16px;text-align:center}.clothingCanvasWrap{background-color:#302a36;background-image:linear-gradient(45deg,#ffffff07 25%,transparent 25%),linear-gradient(-45deg,#ffffff07 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ffffff07 75%),linear-gradient(-45deg,transparent 75%,#ffffff07 75%);background-size:24px 24px;background-position:0 0,0 12px,12px -12px,-12px 0;border-radius:10px;overflow:hidden}.clothingCanvasWrap canvas{display:block;width:auto;max-width:100%;height:auto;max-height:65vh;margin:auto;cursor:move;touch-action:none}.clothingActions{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0}.clothingActions button,.clothingSaved button{font:inherit;padding:9px 13px;background:#332341;color:#fff;border:1px solid #7f5998;border-radius:6px;cursor:pointer}.clothingActions button:disabled{opacity:.4;cursor:default}.clothingSave{width:100%;padding:15px;background:#8246ad;border:1px solid #c094e5;border-radius:8px;color:white;font:inherit;font-weight:bold;cursor:pointer}.clothingSave:disabled{opacity:.45}.clothingHint{font-size:13px;line-height:1.6;color:#bdaccb}#clothingStatus{color:#ffd897;font-size:13px}.clothingSaved{display:flex;gap:10px;overflow:auto}.clothingSaved button{min-width:105px;max-width:150px;overflow-wrap:anywhere}.clothingSaved img{display:block;width:80px;height:95px;object-fit:contain;margin:auto}.clothingSaved span{font-size:11px}a.clothingEditLink{display:block;color:white;background:#362340;border:1px solid #9d78b8;border-radius:8px;padding:12px;text-align:center;text-decoration:none;font-weight:bold;margin:10px 0}@media(max-width:850px){.clothingLayout{grid-template-columns:1fr}.clothingPreview{grid-row:1;position:static}.clothingCanvasWrap canvas{max-height:45vh}.clothingPanel,.clothingPreview{padding:16px}}@media(max-width:430px){.clothingTemplates{grid-template-columns:repeat(3,minmax(0,1fr))}}
.clothingSwatch{display:block;width:18px;height:5px;border-radius:4px;margin:0 auto 2px}
