@import"https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600&family=Noto+Serif+SC:wght@500;600&display=swap";:root{font-family:Manrope,PingFang SC,sans-serif;color:#2e2a27;background:#efeee9;--ink: #2e2a27;--paper: #f7f6f2;--line: #dfdcd5;--muted: #7d7771;--soft: #eeece6;--accent: #d97757;--error: #aa342c}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}body{margin:0;min-width:320px;min-height:100dvh}button,input,textarea,select{font:inherit}button{cursor:pointer;touch-action:manipulation}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #191919;outline-offset:2px}.app-shell{display:grid;width:100%;min-height:100dvh;place-items:start center;background:var(--paper);overflow-x:hidden}.phone-stage{display:flex;width:100%;min-width:0;max-width:100vw;min-height:100dvh;flex-direction:column;background:var(--paper);overflow-x:hidden}.setup-header{display:flex;align-items:center;justify-content:space-between;padding:calc(18px + env(safe-area-inset-top)) 20px 12px}.setup-error{display:flex;align-items:center;justify-content:space-between;margin:0 20px;padding:9px 10px;border:1px solid #e5c2bd;border-radius:10px;background:#fff8f7;color:var(--error);font-size:11px}.setup-error button{display:grid;width:28px;height:28px;place-items:center;border:0;background:transparent;color:inherit}.camera-canvas{position:relative;height:clamp(300px,39dvh,430px);overflow:hidden;background:#0d0d0d}.phone-stage.is-trying-on,.is-trying-on .camera-canvas{height:100dvh}.camera-canvas:after{position:absolute;z-index:2;top:0;right:0;bottom:0;left:0;pointer-events:none;content:"";background:linear-gradient(180deg,rgba(0,0,0,.12),transparent 25%,transparent 77%,rgba(0,0,0,.18))}.camera-video,.source-video{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:contain;opacity:0;transition:opacity .2s ease}.camera-video.visible,.source-video.visible{opacity:1}.camera-video.front-camera-result,.source-video.mirrored{transform:scaleX(-1)}.camera-empty{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--ink)}.empty-camera-symbol{display:grid;width:48px;height:48px;margin-bottom:16px;place-items:center;border:1px solid #c5c5c1;border-radius:50%;color:#585854}.camera-empty h1{margin:0;font-family:"Noto Serif SC",serif;font-size:27px;font-weight:500}.empty-copy{margin-top:8px;color:var(--muted);font-size:12px}.top-bar{position:absolute;z-index:5;top:0;right:0;left:0;display:flex;align-items:center;justify-content:space-between;padding:calc(17px + env(safe-area-inset-top)) 18px 10px;color:#fff}.camera-canvas .brand{color:#fff}.brand{color:var(--ink);font-size:16px;font-weight:600;letter-spacing:1px}.top-actions{display:flex;align-items:center;gap:10px}.icon-button{display:grid;width:34px;height:34px;place-items:center;border:1px solid rgba(25,25,25,.22);border-radius:50%;background:#ffffff80;color:var(--ink)}.camera-canvas .icon-button{border-color:#ffffff6b;background:#1413123d;color:#fff}.icon-button.dark{border-color:var(--line);background:transparent}.live-controls{position:absolute;z-index:5;right:18px;bottom:calc(18px + env(safe-area-inset-bottom));left:18px;display:flex;align-items:center;justify-content:flex-start}.live-exit-button{min-width:62px;min-height:36px;padding:0 14px;border:1px solid rgba(255,255,255,.45);border-radius:18px;background:#14131247;color:#fff;font-size:12px;font-weight:500;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.generation-status{position:absolute;z-index:6;bottom:calc(72px + env(safe-area-inset-bottom));left:50%;display:flex;align-items:center;gap:8px;min-height:32px;padding:0 13px;border:1px solid rgba(255,255,255,.22);border-radius:17px;background:#1413128a;color:#fffffff0;font-size:11px;transform:translate(-50%);white-space:nowrap;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.generation-dot{width:6px;height:6px;border-radius:50%;background:var(--accent);box-shadow:0 0 #d97757a6;animation:status-pulse 1.4s ease-out infinite}.error-banner{position:absolute;z-index:7;right:15px;bottom:12px;left:15px;display:flex;align-items:center;justify-content:space-between;padding:9px 10px;border:1px solid #e4c0bd;background:#fff8f7;color:var(--error);font-size:11px}.error-banner button{display:grid;width:30px;height:30px;place-items:center;border:0;background:transparent;color:inherit}.wardrobe-panel{min-width:0;padding:22px 20px 18px;background:var(--paper)}.setup-intro{margin:38px 0 37px}.setup-intro h1{margin:0 0 9px;font-family:"Noto Serif SC",serif;font-size:31px;font-weight:500;line-height:1.25}.setup-intro div:last-child{color:var(--muted);font-size:13px;line-height:1.6}.section-heading{margin-bottom:13px}.section-kicker{color:var(--muted)}.section-heading h2{margin:0;font-family:"Noto Serif SC",serif;font-size:23px;font-weight:500}.garment-upload{display:flex;width:100%;min-height:82px;align-items:center;padding:11px;border:1px solid var(--line);border-radius:14px;background:#fffefa;color:var(--ink);cursor:pointer;text-align:left;touch-action:manipulation;transition:border-color .2s ease,background .2s ease}.garment-upload:active{background:#faf8f2}.garment-upload:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.garment-preview{display:grid;width:58px;height:58px;flex:0 0 auto;place-items:center;overflow:hidden;border-radius:9px;background:#f2ece6;color:#8d7566}.garment-preview img{width:100%;height:100%;object-fit:cover}.garment-info{display:flex;min-width:0;flex:1;flex-direction:column;gap:4px;padding:0 12px}.garment-info strong{display:block;overflow:hidden;font-size:14px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.garment-info span,.upload-hint{color:var(--muted);font-size:10px}.control-row{margin-top:18px}.camera-mode-label{margin-bottom:7px;color:var(--muted);font-size:11px}.camera-mode-selector{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;border:1px solid var(--line);border-radius:12px;background:#fffefa}.camera-mode-option{display:flex;min-height:40px;align-items:center;justify-content:center;gap:7px;padding:0 8px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:12px;font-weight:500}.camera-mode-option.selected{background:#f2ece6;color:var(--ink);font-weight:600}.camera-mode-option:disabled{cursor:not-allowed}.model-field label{display:block;margin-bottom:7px;color:var(--muted);font-size:11px}.model-select-wrap{position:relative;height:48px;border:1px solid var(--line);border-radius:12px;background:#fffefa;transition:border-color .2s ease,box-shadow .2s ease}.model-select-wrap:focus-within{border-color:#b9aaa0;box-shadow:0 0 0 3px #d977571f}.model-selector{display:flex;width:100%;height:46px;align-items:center;justify-content:space-between;padding:0 14px;border:0;border-radius:12px;background:transparent;color:var(--ink);font-size:13px;font-weight:500;text-align:left}.model-selector svg{color:#706961;transition:transform .18s ease}.model-selector svg.rotated{transform:rotate(180deg)}.model-menu{position:absolute;z-index:12;top:calc(100% + 6px);right:0;left:0;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:#fffefa;box-shadow:0 14px 30px #493b2c24}.model-menu button{display:flex;width:100%;min-height:51px;align-items:center;justify-content:space-between;padding:0 14px;border:0;border-bottom:1px solid #ebe7df;background:transparent;color:var(--ink);font-size:13px;text-align:left}.model-menu button:last-child{border-bottom:0}.model-menu button>span:last-child{color:var(--muted);font-size:10px}.model-menu button.selected{background:#f3ece5;font-weight:600}.model-menu button:active{background:#eee9e2}.prompt-form{margin-top:18px}.prompt-label-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}.prompt-label-row label{font-size:11px;color:var(--muted)}.prompt-form textarea{display:block;width:100%;min-height:78px;padding:11px 12px;resize:none;border:1px solid var(--line);border-radius:12px;outline:none;background:#fffefa;color:var(--ink);font-size:13px;line-height:1.55}.prompt-form textarea:focus{border-color:#b9aaa0;box-shadow:0 0 0 3px #d977571f}.prompt-form textarea[aria-invalid=true]{border-color:var(--error)}.field-error{margin-top:5px;color:var(--error);font-size:11px}.reset-prompt-button{display:grid;width:30px;height:30px;place-items:center;border:0;border-radius:50%;background:transparent;color:var(--muted)}.reset-prompt-button:active{background:var(--soft)}.upload-hint{margin-top:9px}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.start-button,.stop-button{display:flex;width:100%;min-height:50px;align-items:center;justify-content:center;gap:8px;margin-top:17px;border-radius:12px;font-size:14px;font-weight:600}.start-button{border:1px solid var(--accent);background:var(--accent);color:#fff}.start-button:disabled{border-color:#d5d1ca;background:#d5d1ca;cursor:not-allowed}.stop-button{border:1px solid #bcb6ae;background:transparent;color:var(--ink)}.site-footer{margin-top:auto;padding:18px 20px calc(14px + env(safe-area-inset-bottom));background:var(--paper);text-align:center}.site-footer a{color:#a29b92;font-size:10px;text-decoration:none}.sheet-layer{position:fixed;z-index:20;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;padding:20px;background:#2e2a274d}.key-sheet{width:min(100%,360px);padding:22px;border-radius:16px;background:#fff;color:var(--ink);box-shadow:0 12px 34px #45392d21}.sheet-handle{display:none}.sheet-header{display:flex;align-items:center;justify-content:space-between}.sheet-header h2{margin:0;font-family:Manrope,PingFang SC,sans-serif;font-size:18px;font-weight:600}.sheet-copy{margin-top:6px;color:var(--muted);font-size:12px;line-height:1.55}.key-sheet form{margin-top:18px}.key-sheet label{display:block;margin-bottom:7px;font-size:11px}.key-input-wrap{display:flex;align-items:center;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:#faf9f7;transition:border-color .2s ease,box-shadow .2s ease}.key-input-wrap:focus-within{border-color:#b9aaa0;box-shadow:0 0 0 3px #d977571f}.key-input-wrap.invalid{border-color:var(--error)}.key-input-wrap input{width:100%;height:46px;border:0;outline:none;background:transparent;font-size:15px}.key-input-wrap button{display:grid;width:42px;height:42px;place-items:center;border:0;background:transparent}.key-form-footer{display:flex;align-items:center;justify-content:space-between;margin-top:14px}.key-note{color:var(--muted);font-size:10px;line-height:1.5}.connect-button{min-width:64px;min-height:38px;padding:0 14px;border:0;border-radius:8px;background:var(--accent);color:#fff;font-size:13px;font-weight:600}.sheet-enter-active,.sheet-leave-active{transition:opacity .2s ease}.sheet-enter-active .key-sheet,.sheet-leave-active .key-sheet{transition:transform .2s ease}.sheet-enter-from,.sheet-leave-to{opacity:0}.sheet-enter-from .key-sheet,.sheet-leave-to .key-sheet{transform:translateY(-8px) scale(.98)}.spin{animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@keyframes status-pulse{70%{box-shadow:0 0 0 6px #d9775700}to{box-shadow:0 0 #d9775700}}@media(min-width:431px){.sheet-layer{align-items:center}.key-sheet{max-width:430px}}@media(orientation:landscape)and (max-height:560px){.phone-stage{display:grid;grid-template-columns:1.1fr .9fr}.camera-canvas{height:100dvh}.wardrobe-panel{max-height:100dvh;overflow-y:auto}.site-footer{display:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
