:root{color-scheme:light;--ink:#2a2328;--muted:#6e626a;--accent:#aa5872;font-family:-apple-system,BlinkMacSystemFont,'Hiragino Sans',sans-serif;color:var(--ink);background:#fffaf7;font-size:13px}
*{box-sizing:border-box}
body{margin:0}
button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button{font:inherit;color:inherit;border:0;border-radius:8px;background:#f3f4f6;min-height:44px;padding:9px 12px}
button:disabled{opacity:.42}
button:active:not(:disabled){transform:translateY(1px)}
button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
[hidden]{display:none!important}
h1,h2,p{margin:0}
h2{font-size:16px}
.shell{max-width:450px;margin:auto;padding:5px 12px calc(10px + env(safe-area-inset-bottom));background:#fff;min-height:calc(100svh - 90px)}
.stats{display:flex;justify-content:space-between;align-items:center;min-height:29px;font-size:12px;font-variant-numeric:tabular-nums}
.stats b{font-size:15px}
.companion{display:flex;align-items:center;gap:7px;min-height:74px}
.companion>img{object-fit:contain;width:70px;height:70px;flex:none}
.companion>div{flex:1}
.companion small{font-size:11px;color:var(--muted)}
#speech{line-height:1.5;font-size:12px;min-height:36px;padding:4px 0}
.progress,.rack-heading{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:11px;gap:5px;margin:5px 0}
.customer{display:flex;align-items:center;gap:9px;padding:9px 8px;background:#f8f2ee;border-radius:8px;min-height:76px}
.customer>div:nth-child(2){flex:1}
.customer-icon{font-size:37px;color:#8a7468}
.customer small{font-size:10px;color:var(--muted)}
#request{font-size:14px;font-weight:700;margin:3px 0}
#budget{font-size:12px}
.patience{display:flex;flex-direction:column;width:57px;gap:3px}
.patience meter{width:57px;height:12px;accent-color:var(--accent)}
.fitting{display:flex;align-items:center;gap:12px;min-height:108px;padding:6px 2px}
.mirror{width:86px;height:101px;flex:none;border:3px solid #dedbd7;border-radius:40px 40px 7px 7px;display:grid;place-items:center;background:#f2f5f5}
.mirror svg{width:76px;height:89px}
.fitting strong{font-size:14px}
.fitting p{font-size:11px;color:var(--muted);margin:5px 0;line-height:1.5}
.fitting span{font-size:11px}
.rack-heading h2{font-size:12px;color:var(--ink)}
.rack-heading small{font-size:10px}
.rack{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.garment{position:relative;padding:4px 3px 5px;min-width:0;background:#f7f4ef;display:flex;align-items:center;flex-direction:column;border:2px solid transparent;min-height:103px}
.garment svg{width:48px;height:48px}
.garment strong{font-size:10px;white-space:nowrap;letter-spacing:-.03em}
.garment small{font-size:9px;margin:2px 0;color:var(--muted)}
.garment .price{font-size:11px}
.garment[aria-pressed=true]{border-color:var(--accent);background:#fbf0f3}
.garment[aria-pressed=true]::after{content:'✓';position:absolute;right:4px;top:3px;color:var(--accent);font-weight:700}
.garment.empty svg{opacity:.3}
.actions{display:flex;gap:6px;margin:8px 0}
.actions>button{flex:1;font-size:12px;padding:8px 4px}
.primary{background:var(--accent);color:#fff;font-weight:650}
.checkout{padding:8px;background:#faf1e8;border-radius:8px;text-align:center}
.checkout p{margin:0 0 6px;font-size:13px}
.checkout strong{font-size:12px}
.checkout .actions{margin-bottom:0}
.footer-actions{display:flex;justify-content:space-between}
.footer-actions button{font-size:11px;background:transparent;color:var(--muted);padding:5px}
.panel{padding:16px 4px;text-align:center}
.panel h2{font-size:19px}
.panel p{line-height:1.8;margin:10px 0;font-size:12px;white-space:pre-line}
.panel>.primary{width:100%;margin-top:12px}
.cast-options{display:flex;gap:8px;justify-content:center;margin:14px 0}
.cast-options button{width:85px;padding:4px;background:#f3f4f6;border:2px solid transparent;position:relative}
.cast-options img{display:block;width:68px;height:72px;object-fit:contain;margin:auto}
.cast-options small{font-size:10px}
.cast-options [aria-pressed=true]{border-color:var(--accent)}
.cast-options [aria-pressed=true]::after{content:'✓';position:absolute;right:4px;top:4px;color:var(--accent)}
.expansion{margin-top:15px;border-top:1px solid #eee;padding-top:2px}
.expansion button{width:100%}
.save-hint,.save-note{font-size:10px;text-align:center;margin:8px 0;color:var(--muted)}
.save-note{color:#a34545}
dialog{border:0;border-radius:12px;width:calc(100% - 32px);max-width:420px;max-height:85svh;overflow:auto;padding:20px;color:var(--ink)}
dialog::backdrop{background:#33253066}
dialog p{font-size:13px;line-height:1.7;margin:13px 0}
dialog button{width:100%}
#best{color:var(--muted);font-size:11px}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}
}
.steps{display:flex;list-style:none;padding:0;margin:2px 0 6px;gap:5px;font-size:11px;color:var(--muted)}
.steps li{flex:1;text-align:center;background:#f3f4f6;padding:6px 2px;border-radius:8px}
.steps [aria-current=step]{background:#eef0f3;color:var(--ink);font-weight:700;box-shadow:inset 0 -2px var(--accent)}
.utility{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--muted);gap:6px}
.utility button{background:transparent;font-size:11px;min-width:64px}
.footer-actions{justify-content:flex-end}
#speech[data-feedback=good]{border-left:3px solid var(--accent);padding-left:7px}
#speech[data-feedback=retry]{border-left:3px solid #756858;padding-left:7px}
.companion{align-items:flex-start}
.companion>div{padding-top:7px}
.fitting>div:last-child{min-width:0}
.fitting strong{overflow-wrap:anywhere}
.stats,.progress{flex-wrap:wrap;column-gap:6px}
.customer>div:nth-child(2){min-width:0}
.patience{flex:none}
.rack{max-height:221px;overflow-y:auto;overscroll-behavior-y:contain;padding:2px;scroll-padding:3px}
.garment{flex-shrink:0}
.garment strong{white-space:normal;line-height:1.25}
.rack-heading{align-items:baseline}
#shop-actions{position:sticky;bottom:env(safe-area-inset-bottom,0px);z-index:1;background:#fff;padding:5px 0;margin:3px 0}
.actions>button{min-width:0}
.panel{overflow-wrap:anywhere}
@media(max-height:680px){.fitting{min-height:88px}
.mirror{height:81px;width:72px}
.mirror svg{height:73px;width:64px}
.rack{max-height:202px}
.garment{min-height:94px}
.garment svg{height:38px}
}
