@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root{color-scheme:dark;--bg:#090909;--panel:#121212;--panel2:#191919;--line:#2a2a2a;--text:#f7f7f5;--muted:#929292;--soft:#d2d2cf;--radius:22px}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:90px}
body{margin:0;background:var(--bg);color:var(--text);font-family:'DM Sans',sans-serif;letter-spacing:-.015em}
button,input,select{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
.app-shell{max-width:1180px;margin:0 auto;padding:0 30px 70px}
.topbar{height:78px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.wordmark{font:800 19px 'Manrope',sans-serif;letter-spacing:-.08em}.wordmark span{font-weight:500;color:#929292;margin-left:4px}
.topbar-right{display:flex;align-items:center;gap:9px;color:#aaa;font-size:10px;font-weight:700;letter-spacing:.14em}
.status-dot{width:7px;height:7px;border-radius:50%;background:#b8f4c5;box-shadow:0 0 12px #b8f4c555}
.hero{padding:75px 0 60px;max-width:680px}
.eyebrow{font-size:10px;letter-spacing:.18em;font-weight:700;color:#a5a5a5;margin:0 0 14px}
h1,h2,h3,p{margin-top:0}
h1{font:800 clamp(43px,7vw,78px)/.99 'Manrope',sans-serif;letter-spacing:-.075em;margin:0 0 22px}
h1 span{color:#777}
.hero-copy{color:#a6a6a6;font-size:16px;line-height:1.6;margin-bottom:26px}
.button{border:0;border-radius:999px;padding:14px 19px;font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:space-between;gap:26px;transition:transform .15s,background .15s}
.button:hover{transform:translateY(-1px)}
.button span{font-size:17px;line-height:10px}
.button-light{background:#f5f5f2;color:#111}
.button-dark{background:#202020;color:#f6f6f4;border:1px solid #333}
.button-outline{background:transparent;color:#f5f5f2;border:1px solid #424242}
.outfit-section,.wardrobe-section{padding:36px 0 50px;border-top:1px solid var(--line)}
.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px;gap:15px}
.section-heading h2,.dialog-heading h2,.style-info h2{font:700 27px 'Manrope',sans-serif;letter-spacing:-.055em;margin:0}
.section-heading .eyebrow{margin-bottom:7px}
.icon-button{height:42px;width:42px;border-radius:50%;border:1px solid #333;background:#161616;color:white;font-size:24px;display:grid;place-items:center}
.outfit-result{min-height:220px}
.empty-outfit{background:linear-gradient(135deg,#151515,#101010);border:1px solid #242424;border-radius:var(--radius);padding:40px;text-align:center;display:flex;flex-direction:column;align-items:center}
.empty-symbol{width:46px;height:46px;border:1px solid #444;border-radius:50%;display:grid;place-items:center;font-size:22px;margin-bottom:18px;color:#ddd}
.empty-outfit h3{font:700 20px 'Manrope',sans-serif;margin-bottom:8px}
.empty-outfit p{max-width:370px;color:var(--muted);font-size:13px;line-height:1.6;margin-bottom:20px}
.small-note{color:#737373;font-size:11px;line-height:1.6;margin:13px 0 0}
.outfit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.outfit-card,.clothing-card{border:1px solid #292929;background:#121212;border-radius:16px;overflow:hidden;min-width:0}
.outfit-card img,.clothing-card img{width:100%;height:210px;object-fit:cover;display:block;background:#1c1c1c}
.item-meta{padding:12px}
.item-meta strong{display:block;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.item-meta small{display:block;color:#888;font-size:10px;margin-top:5px}
.outfit-caption{display:flex;align-items:center;justify-content:space-between;margin:0 0 13px;color:#aaa;font-size:11px}
.wardrobe-heading{margin-bottom:20px}
.count-pill{display:inline-grid;place-items:center;vertical-align:middle;margin-left:5px;min-width:23px;height:23px;padding:0 6px;border-radius:30px;background:#252525;color:#aaa;font:600 11px 'DM Sans',sans-serif;letter-spacing:0}
.filters{display:flex;gap:8px;overflow-x:auto;padding-bottom:18px;scrollbar-width:none}
.filters::-webkit-scrollbar{display:none}
.filter{white-space:nowrap;border:1px solid #303030;background:transparent;color:#aaa;border-radius:999px;padding:9px 14px;font-size:11px}
.filter.active{background:#f5f5f2;color:#111;border-color:#f5f5f2}
.wardrobe-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.wardrobe-empty{grid-column:1/-1;border:1px dashed #333;border-radius:var(--radius);padding:42px 20px;text-align:center;color:#999}
.wardrobe-empty>span{display:inline-grid;place-items:center;width:43px;height:43px;border:1px solid #333;border-radius:50%;font-size:22px;margin-bottom:13px;color:#ddd}
.wardrobe-empty p{color:#ddd;font-weight:600;margin-bottom:6px;font-size:14px}
.wardrobe-empty small{font-size:12px}
.clothing-card{position:relative}
.clothing-card img{height:230px}
.delete-item{position:absolute;top:9px;right:9px;border:0;background:#090909d9;color:white;border-radius:50%;width:30px;height:30px;font-size:17px}
.bottom-nav{position:fixed;z-index:5;bottom:0;left:50%;transform:translateX(-50%);width:min(500px,100%);display:flex;align-items:center;justify-content:space-around;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:#111e;border:1px solid #292929;border-bottom:0;border-radius:20px 20px 0 0;backdrop-filter:blur(18px)}
.nav-item{display:flex;flex-direction:column;align-items:center;gap:4px;color:#777;font-size:10px;background:none;border:0;min-width:55px}
.nav-item span{font-size:18px;line-height:22px}
.nav-item.active{color:white}
.nav-add{width:42px;height:42px;border-radius:50%;background:#f5f5f2;color:#111;min-width:42px;justify-content:center;gap:0}
.nav-add span{font-size:24px}
.style-info{border-top:1px solid var(--line);padding:32px 0 20px;max-width:650px}
.style-info h2{margin-bottom:10px}
.style-info>p:last-child{font-size:13px;color:#999;line-height:1.7}
.add-dialog{border:1px solid #333;border-radius:24px;background:#111;color:#f5f5f2;padding:25px;width:min(520px,calc(100% - 24px));max-height:90dvh;overflow:auto}
.add-dialog::backdrop{background:#000b;backdrop-filter:blur(6px)}
.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}
.dialog-heading .eyebrow{margin-bottom:7px}
.photo-picker{height:170px;border:1px dashed #414141;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;cursor:pointer;background:#171717;margin-bottom:20px;overflow:hidden}
.photo-preview{display:grid;place-items:center;width:45px;height:45px;border-radius:50%;border:1px solid #444;font-size:24px;background-size:cover;background-position:center}
.photo-picker strong{font-size:13px}.photo-picker small{font-size:11px;color:#888}
#photoInput{display:none}
.field-label{display:block;font-size:11px;color:#aaa;margin:15px 0 8px}
.text-input{width:100%;border:1px solid #333;background:#191919;border-radius:10px;padding:12px;color:white;outline:none}
.text-input:focus{border-color:#777}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.submit-button{width:100%;margin-top:22px}
.form-error{font-size:11px;color:#ff8b8b;margin:10px 0 0}
.toast{position:fixed;z-index:10;left:50%;bottom:90px;transform:translate(-50%,15px);opacity:0;pointer-events:none;background:#f4f4f1;color:#111;padding:12px 18px;border-radius:999px;font-size:12px;font-weight:600;transition:.2s}
.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:700px){.app-shell{padding:0 18px 80px}.topbar{height:65px}.hero{padding:55px 0 45px}h1{font-size:52px}.hero-copy{font-size:14px}.outfit-section,.wardrobe-section{padding:28px 0 35px}.outfit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.outfit-card img{height:180px}.wardrobe-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.clothing-card img{height:200px}.empty-outfit{padding:30px 18px}.section-heading h2{font-size:24px}.button{gap:14px;padding:12px 15px}}
@media(min-width:701px) and (max-width:950px){.wardrobe-grid,.outfit-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
