:root{color-scheme:light;--ink:#142339;--muted:#536276;--accent:#254bcc;--line:#d9e1ec;--surface:#fff;--soft:#edf2fb}*{box-sizing:border-box}body{margin:0;background:#f1f4f9;color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,input,select{font:inherit}button{cursor:pointer;color:inherit}button:disabled,input:disabled{cursor:default;opacity:.55}.upload-label:focus-within,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #5076ed;outline-offset:3px}.top{background:#12243f;color:white;justify-content:space-between;gap:1rem;padding:16px max(24px,calc((100vw - 1200px)/2));min-height:69px}.brand,.top,.top-right{display:flex;align-items:center}.brand,.top-right{gap:12px}.brand{font-size:1.2rem;font-weight:750;white-space:nowrap}.brand small{font-size:.82rem;color:#bac9df;font-weight:500}.mark{display:grid;place-items:center;background:#cce0ff;color:#1742aa;border-radius:9px;width:32px;height:32px}.mode{font-size:.83rem;background:#233b5e;padding:6px 10px;border-radius:30px;white-space:nowrap}.top .text-btn{color:#d3e3ff}main{max-width:1248px;margin:auto;padding:35px 24px 28px}.intro,.subheading{display:flex;align-items:center;justify-content:space-between;gap:14px}.intro{margin-bottom:24px}figure,h1,h2,h3,p{margin:0}h1{font-size:clamp(2rem,4vw,3.25rem);letter-spacing:-.065em;line-height:1.06}h2{font-size:1.28rem;letter-spacing:-.035em}h3{font-size:1rem;margin-top:16px;line-height:1.3}p{color:var(--muted);line-height:1.5}.card>p,.intro p{margin-top:8px}nav{display:flex;gap:3px;padding:4px;background:#e0e7f4;border-radius:12px;flex-shrink:0}nav button{border:0;background:none;border-radius:9px;padding:10px 14px;font-size:.9rem;font-weight:650}nav .current{background:#fff;box-shadow:0 1px 5px #11254718;color:#183baf}.card{min-width:0;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:0 4px 16px #1c376509}.sign{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.sign label{margin:0}.sign p{margin-top:5px}.merchant-grid,.shop-grid{display:grid;grid-template-columns:1.06fr .94fr;gap:16px;align-items:start}.merchant-grid{grid-template-columns:1fr 2fr}.products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:9px}.product{display:grid;grid-template-columns:63px 1fr 17px;align-items:center;gap:9px;text-align:left;padding:6px;border:1px solid var(--line);border-radius:10px;background:white;min-width:0;min-height:81px}.product[aria-pressed=true]{border-color:#5a78d4;background:#f3f6ff}.product img{width:63px;height:65px;object-fit:cover;border-radius:6px;background:var(--soft)}.product strong{font-size:.9rem;display:block;line-height:1.2}.product small{display:block;color:var(--muted);margin-top:4px;font-size:.82rem}.radio{display:grid;place-items:center;font-size:.7rem;width:16px;height:16px;border:1px solid #8a9ab6;border-radius:50%}.product[aria-pressed=true] .radio{background:var(--accent);color:white;border-color:var(--accent)}.outfit .subheading{align-items:baseline}.preview>.subheading{margin-bottom:14px}.gallery{display:flex;gap:8px;margin-top:8px}.gallery img{width:64px;height:74px;object-fit:cover;border-radius:6px}.upload{position:relative;min-width:0;display:grid;border:1px dashed #a8b9d8;border-radius:12px;background:#f4f7ff;overflow:hidden}.upload-label{display:grid;place-items:center;align-content:center;gap:8px;padding:13px;text-align:center;cursor:pointer;margin:0;min-height:132px;position:relative;color:#23468a}.upload-label input{opacity:0;position:absolute;inset:0;width:100%;height:100%;cursor:pointer}.muted,.upload-label small,figcaption{color:var(--muted);font-size:.83rem}.plus{display:grid;place-items:center;width:40px;height:40px;background:#dfe9ff;border-radius:12px;font-size:1.6rem}.result,.upload img{width:100%;height:270px;object-fit:contain;background:#eff3fa}.preview .upload-label{min-height:205px}.preview .upload:has(img) .upload-label,.studio .upload:has(img) .upload-label{min-height:58px}.preview-footer{display:grid;gap:10px;margin-top:14px}.check{display:flex;gap:8px;font-size:.88rem;align-items:flex-start;margin:0}.check input{margin:3px 0 0;accent-color:var(--accent)}.result{display:block;border-radius:12px}.result+figcaption{margin-top:7px}.primary,.secondary{border:1px solid transparent;padding:9px 13px;border-radius:9px;font-weight:650;font-size:.9rem;min-height:38px}.primary{background:var(--accent);color:white}.primary:not(:disabled):hover{background:#1739b5}.secondary{background:#edf2ff;color:#234188;border-color:#d4dffa}.full{width:100%}.text-btn{border:0;background:transparent;color:#264aaf;font-weight:650;padding:5px;font-size:.86rem}.studio{display:grid;gap:16px}.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}.studio .upload img{height:150px}.saved{margin-left:12px;color:#236249}label{display:grid;gap:5px;font-size:.9rem;font-weight:600;margin:12px 0}input:not([type=file],[type=checkbox]),select{width:100%;min-width:0;border:1px solid var(--line);background:#fff;border-radius:8px;padding:9px;color:var(--ink);min-height:40px}.studio form>.primary{margin-top:12px}.source{width:90px;height:90px;object-fit:contain;border-radius:8px;background:var(--soft)}.output{background:#f4f7fb;border:1px solid var(--line);border-radius:10px;padding:10px;display:grid;align-content:start;gap:8px}.output h3{margin:0}.output img{width:100%;height:175px;object-fit:contain}.output small{color:var(--muted)}.error{padding:9px 12px;color:#8a2331;background:#ffedf0;border-radius:8px;margin-bottom:12px}footer{color:var(--muted);font-size:.83rem;margin-top:14px}@media(max-width:850px){.merchant-grid,.shop-grid{grid-template-columns:1fr}.product{min-height:75px}.intro{align-items:flex-start}.top{padding-inline:20px}}@media(max-width:520px){main{padding:23px 12px}.top{padding-inline:12px}.brand small{display:none}.intro,.sign{align-items:stretch;flex-direction:column}.sign .primary{align-self:start}.card{padding:14px}.product{grid-template-columns:42px 1fr 14px;gap:5px}.product img{width:42px;height:58px}.outputs,.three{grid-template-columns:1fr}.radio{width:13px;height:13px}.subheading{flex-wrap:wrap}}.generation-stage,.result-frame{position:relative;overflow:hidden;isolation:isolate;border-radius:14px;min-height:290px}.generation-stage{display:grid;place-items:center;background:radial-gradient(ellipse at 15% 18%,#4670b8 0,#142745 58%,#10223a 100%);color:white}.generation-source{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:.28;z-index:-2}.generation-stage:after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 32%,#10223ad9 87%);z-index:-1}.generation-scan{position:absolute;inset-inline:0;height:42px;top:0;background:linear-gradient(transparent,#9fc5ff30,#bad8ffb0,transparent);animation:preview-scan 2.8s ease-in-out infinite;pointer-events:none}.generation-caption{display:grid;justify-items:center;gap:8px;text-align:center;padding:24px;z-index:1}.generation-caption strong{font-size:1.22rem;letter-spacing:-.025em}.generation-caption>span:last-child{color:#dde9fd;font-size:.9rem}.generation-sparkle{display:grid;place-items:center;width:44px;height:44px;border-radius:15px;border:1px solid #b2ccfb80;background:#4063a5;color:#fff;font-size:1.5rem;box-shadow:0 0 25px #8fb2ff65;animation:preview-glow 2.8s ease-in-out infinite}@keyframes preview-scan{0%{top:-44px}to{top:100%}}@keyframes preview-glow{50%{transform:scale(1.11);box-shadow:0 0 34px #aac7ff99}}.result-frame{display:grid;place-items:center;background:#edf2fa}.result-frame .result{width:100%;height:clamp(300px,46vw,520px)}.result-frame[data-image-state=loading] .result{visibility:hidden}.result-loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:16px;text-align:center;color:var(--muted)}.preview-result figcaption{display:grid;gap:3px;margin-top:11px}.preview-result figcaption strong{color:var(--ink);font-size:.96rem}.preview-error{margin-top:12px;border:1px solid #edbfca;border-left:4px solid #a93652;border-radius:10px;background:#fff4f6;padding:11px 13px;color:#7a233b}.preview-error p{margin:3px 0 0;color:#782d44;font-size:.9rem}@media(prefers-reduced-motion:reduce){.generation-scan{display:none}.generation-sparkle{animation:none}}body{background:radial-gradient(1200px 500px at 85% -10%,#dfe8ff 0,transparent 60%),#f1f4f9}.top{background:linear-gradient(90deg,#0f1f38,#1b3563);box-shadow:0 2px 14px #0b18301f}.who{font-size:.85rem;color:#d3e3ff;background:#ffffff14;padding:5px 10px;border-radius:30px}.card{transition:box-shadow .2s}.card:hover{box-shadow:0 8px 26px #1c376514}.sign{flex-direction:column;align-items:stretch;max-width:420px;margin:12px auto 24px;padding:28px;gap:14px}.sign-head h2{font-size:1.45rem}.sign label{display:grid;gap:6px;font-weight:600;font-size:.9rem}.sign input{padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:#fbfcff}.tabs{display:grid;grid-template-columns:1fr 1fr;padding:4px;background:#e8eef9;border-radius:11px}.tabs button{border:0;background:none;padding:9px;border-radius:8px;font-weight:650;color:var(--muted)}.tabs [aria-selected=true]{background:#fff;color:#183baf;box-shadow:0 1px 5px #11254718}.poses{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px;margin:14px 0}.pose{display:grid;gap:4px;justify-items:start}.pose .upload{width:100%}.add-poses{position:relative;overflow:hidden;white-space:nowrap;flex-shrink:0;margin:0;cursor:pointer}.add-poses input{position:absolute;inset:0;opacity:0;cursor:pointer}.empty{padding:22px;margin:14px 0;text-align:center;border:1px dashed #a8b9d8;border-radius:12px;background:#f7f9ff}.notice{background:#fff6e5;color:#7a4b00;border:1px solid #f3d9a4;padding:8px 10px;border-radius:9px;font-size:.88rem;margin-top:8px}.all-poses{display:grid;gap:10px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}.all-poses h3{margin:0}.all-poses select{padding:7px 10px;border:1px solid var(--line);border-radius:9px;background:#fff}.pose-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}.pose-result{background:#f4f7fb;border:1px solid var(--line);border-radius:12px;overflow:hidden;display:grid}.pose-result img,.pose-wait{width:100%;height:200px;object-fit:cover;background:#eef2fa}.pose-wait{display:grid;place-items:center;align-content:center;gap:8px;padding:10px;text-align:center;font-size:.82rem;color:var(--muted)}.pose-result figcaption{padding:7px 10px;font-weight:650;font-size:.85rem;color:var(--ink)}.spinner{width:22px;height:22px;border:3px solid #cfdaf3;border-top:3px solid var(--accent);border-radius:50%;animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(1turn)}}.product{transition:border-color .15s,transform .15s}.product:not(:disabled):hover{transform:translateY(-1px)}.steps{display:flex;gap:6px;list-style:none;padding:0;margin:12px 0 14px;counter-reset:s}.steps li{flex:1 1;counter-increment:s;display:flex;align-items:center;gap:7px;font-size:.83rem;font-weight:650;color:var(--muted);padding:7px 9px;border-radius:10px;background:#f2f5fb;transition:background .3s,color .3s}.steps li:before{content:counter(s);display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#dbe3f3;font-size:.75rem;transition:background .3s,transform .3s}.steps li[data-done=true]{background:#e6f4ee;color:#1d6247}.steps li[data-done=true]:before{content:"✓";background:#2f9a6c;color:#fff;transform:scale(1.1)}.preview .upload img{height:220px}.photo-row{animation:rise .4s ease both}.outfit-chips,.pose-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.chip{display:inline-flex;align-items:center;gap:6px;padding:4px 10px 4px 4px;border:1px solid var(--line);border-radius:30px;background:#fff;font-size:.8rem;font-weight:600;animation:rise .3s ease both}.chip img{width:24px;height:24px;border-radius:50%;object-fit:cover}.pose-chip:not(:has(img)){padding-left:10px}.big{min-height:48px;font-size:1rem;display:inline-flex;align-items:center;justify-content:center;gap:8px;background:linear-gradient(90deg,#254bcc,#5a3fd6);background-size:200% 100%;transition:background-position .4s,transform .1s}.big:not(:disabled):hover{background-position:100% 0}.big:not(:disabled):active{transform:scale(.98)}.quick{justify-self:center;font-size:.85rem}.progress{height:5px;border-radius:5px;background:#e3e9f6;overflow:hidden}.progress span{display:block;height:100%;background:linear-gradient(90deg,#254bcc,#5a3fd6);transition:width .5s ease}.spinner.small{width:16px;height:16px;border-width:2px;border-color:#fff #ffffff55 #ffffff55}.pose-results{margin-top:14px}.pose-result{animation:rise .45s ease both;animation-delay:calc(var(--i) * 70ms)}.pose-result[data-state=processing] .pose-wait,.pose-result[data-state=queued] .pose-wait,.pose-result[data-state=starting] .pose-wait{background:linear-gradient(100deg,#eef2fa 30%,#f8faff 50%,#eef2fa 70%);background-size:200% 100%;animation:shimmer 1.4s linear infinite}.pose-result img{animation:fade .6s ease both}.pose-result figcaption{display:flex;justify-content:space-between;align-items:center}.pose-result figcaption a{color:var(--accent);text-decoration:none;font-weight:800;padding:0 4px}.zoom{border:0;padding:0;background:none;cursor:zoom-in;display:block;width:100%}.zoom img{transition:transform .35s}.zoom:hover img{transform:scale(1.04)}.pose-result{position:relative}.pose-result:has(.zoom){overflow:hidden}.lightbox{position:fixed;inset:0;z-index:50;background:#0b1424e6;display:grid;grid-template-columns:56px 1fr 56px;align-items:center;padding:24px;animation:fade .2s ease both}.lightbox figure{display:grid;gap:10px;justify-items:center;animation:zoomIn .25s ease both}.lightbox img{max-width:100%;max-height:82vh;border-radius:12px;object-fit:contain}.lightbox figcaption{color:#fff;font-weight:650}.lightbox button{border:0;background:#ffffff1f;color:#fff;border-radius:50%;width:44px;height:44px;font-size:1.6rem;line-height:1}.lightbox button:hover{background:#ffffff38}.lightbox .close{position:absolute;top:16px;right:16px}.history{margin-top:16px}.history-strip{display:flex;gap:8px;overflow-x:auto;padding:8px 2px}.history-item{flex:0 0 74px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:3px;display:grid;gap:3px;font-size:.7rem;font-weight:600;transition:transform .15s,box-shadow .15s}.history-item:not(:disabled):hover{transform:translateY(-2px);box-shadow:0 4px 12px #1c376520}.history-item img{width:100%;height:90px;object-fit:cover;border-radius:7px}@keyframes rise{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes fade{0%{opacity:0}to{opacity:1}}@keyframes zoomIn{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:none}}@keyframes shimmer{to{background-position:-200% 0}}@media(prefers-reduced-motion:reduce){*,:before{animation:none!important;transition:none!important}}