:root{--ink:#593c49;--green:#b85f80;--paper:#fff6f8;--muted:#927c87;--line:#efdee5}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:system-ui,-apple-system,'Segoe UI',sans-serif;padding-bottom:120px}button,input,select,textarea{font:inherit}button,.file-button{cursor:pointer;border:0;border-radius:12px;background:var(--green);color:white;padding:12px 18px;font-weight:600}button:disabled{opacity:.5;cursor:wait}button.subtle,.secondary{background:#f6e5ec;color:var(--ink)}button.text{background:transparent;color:var(--muted);padding:4px}button.danger{color:#a2473c;background:#fae8e3}header{max-width:1100px;margin:auto;padding:32px 28px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px}header small{font-size:10px;letter-spacing:2.5px;color:var(--muted)}h1{font-size:32px;margin:6px 0;font-weight:750}h1 span{color:#d794ad}main{max-width:1100px;margin:auto;padding:0 28px}.intro{padding:24px 0 30px}.intro h2{font-size:27px;letter-spacing:-1px;margin:0 0 10px}.intro p,p{color:var(--muted);line-height:1.7}.toolbar{display:flex;gap:10px;flex-wrap:wrap}select,input,textarea{border:1px solid var(--line);padding:11px;border-radius:10px;background:#fff;color:var(--ink);max-width:100%}.section-label{display:flex;align-items:center;justify-content:space-between;margin:24px 0 18px;font-size:13px;color:var(--muted)}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.card{padding:0;background:#fff;text-align:left;color:var(--ink);border:2px solid transparent;overflow:hidden;border-radius:18px;box-shadow:0 3px 14px #283d3010;position:relative}.card img{width:100%;aspect-ratio:1;object-fit:contain;background:#fff;display:block}.card .caption{padding:14px}.card strong{font-size:15px}.card p{font-size:12px;margin:7px 0 0}.dot{width:10px;height:10px;border-radius:50%;display:inline-block;border:1px solid #0002;margin-right:5px}.card.selected{border-color:var(--green)}.card.selected:after{content:'✓';position:absolute;right:12px;top:12px;border-radius:50%;width:28px;height:28px;background:var(--green);color:#fff;text-align:center;line-height:28px}.empty{grid-column:1/-1;text-align:center;border:1px dashed #e6cbd7;border-radius:20px;padding:65px 20px;color:var(--muted);background:#fff8}.empty h3{color:var(--ink);font-size:21px}.empty p{margin:10px}.empty button{margin-top:15px}nav{position:fixed;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:center;gap:40px;background:#fffc;backdrop-filter:blur(20px);border-top:1px solid var(--line);padding:13px 15px max(13px,env(safe-area-inset-bottom));z-index:5}nav button{color:var(--muted);background:none;padding:10px 15px}nav button.active{color:var(--green)}nav .upload{background:var(--green);color:#fff;font-size:30px;padding:0;width:50px;height:50px;border-radius:17px}dialog{border:0;border-radius:22px;width:min(540px,94vw);max-height:90dvh;padding:26px;color:var(--ink);box-shadow:0 20px 70px #0003}dialog::backdrop{background:#593c4966;backdrop-filter:blur(4px)}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head h2{font-size:23px}.dialog-head button{background:transparent;color:var(--muted);font-size:25px;padding:5px 10px}label{display:block;font-size:13px;margin:14px 0}label input,label textarea,label select{display:block;width:100%;margin-top:7px}input[type=color]{height:45px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.preview{width:100%;max-height:280px;object-fit:contain;background:#fff;border-radius:14px}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}fieldset{border:0;padding:10px 0;margin:0}legend{font-size:13px}.chips{display:flex;gap:8px;flex-wrap:wrap}.chips label{margin:0;background:#fbecf2;border-radius:8px;padding:9px}.chips input{display:inline;width:auto;margin:0 5px 0 0;accent-color:var(--green)}#filters{background:#fff;padding:18px;margin-top:12px;border-radius:14px}#filters h4{margin:12px 0;font-size:13px}canvas{width:100%;border-radius:14px;margin-top:15px}.panel{background:#fff;border-radius:20px;padding:25px}.file-button{text-align:center;display:block;margin:15px 0}.file-button.secondary{background:#f6e5ec;color:var(--ink)}progress{width:100%;accent-color:var(--green)}#selection-bar{position:fixed;bottom:95px;left:50%;transform:translateX(-50%);background:#fff;box-shadow:0 3px 25px #0002;border-radius:16px;padding:12px;display:flex;align-items:center;gap:12px;z-index:6;white-space:nowrap}#toast{position:fixed;left:50%;top:20px;transform:translateX(-50%);z-index:100;background:#96516e;color:#fff;padding:14px 22px;border-radius:12px;max-width:90vw;box-shadow:0 5px 25px #0002}[hidden]{display:none!important}#more{display:block;margin:25px auto}@media(max-width:750px){header{padding:24px 18px 12px}main{padding:0 18px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.intro h2{font-size:23px}nav{gap:20px}.card .caption{padding:11px}.toolbar select{font-size:13px;padding:9px}.toolbar button{padding:9px 13px}#selection-bar{gap:8px;font-size:13px}#selection-bar button{padding:10px}dialog{padding:20px}}

#wardrobe-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}#selection-bar{max-width:calc(100vw - 24px);flex-wrap:wrap;justify-content:center;white-space:normal}@media(max-width:480px){#wardrobe-actions button{padding:10px;font-size:13px}header h1{font-size:28px}#selection-bar{width:max-content;bottom:90px}}

.welcome{display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(120deg,#fff0f5,#fffaf2);border:1px solid #f3dce6;border-radius:28px;margin:18px 0 28px;padding:24px 42px;overflow:hidden}.welcome-copy small{font-size:12px;letter-spacing:2px;color:#b85f80}.welcome h2{margin-top:16px;font-size:26px}.welcome p{margin:14px 0 24px}.character-stage{position:relative;display:flex;flex-direction:column;align-items:center;min-width:180px}.character-stage img{width:220px;height:270px;object-fit:contain;filter:drop-shadow(0 12px 12px #c48ba326)}.character-stage span{font-size:12px;letter-spacing:1px;color:#a56c84;background:#fff9;padding:6px 16px;border-radius:20px}body{background:linear-gradient(180deg,#fff6f9,#fffaf6);min-height:100vh}header small{color:#ad7d93}.card{box-shadow:0 4px 18px #a2688510}.card.selected{border-color:#b85f80}.empty{background:#fffafc}.panel{background:#fffdfb}@media(max-width:600px){.welcome{padding:22px 20px;gap:8px}.welcome h2{font-size:22px}.welcome-copy{flex:1}.welcome-copy p{font-size:13px}.welcome-copy button{font-size:12px;padding:11px}.character-stage{min-width:110px}.character-stage img{width:130px;height:210px}.welcome-copy small{font-size:10px;letter-spacing:1px}.character-stage span{font-size:11px}}@media(max-width:370px){.welcome{padding:18px 14px}.character-stage img{width:100px;height:185px}.character-stage{min-width:90px}.welcome h2{font-size:20px}}

#tryon-members{display:flex;gap:10px;flex-wrap:wrap}#tryon-members img{width:72px;height:72px;object-fit:contain;border:1px solid var(--line);border-radius:12px;background:white}#tryon-image{width:100%;max-height:55dvh;object-fit:contain;background:white;border-radius:16px}
#outfit-view .preview{max-height:60dvh}
