@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600&family=Barlow+Condensed:wght@400;500;600;700&display=swap');
@font-face{font-family:Agency;src:url('/fonts/agency-bold.ttf') format('truetype');font-weight:700;font-display:swap}
:root{--ink:#18232d;--accent:#506a80;--paper:#f4f5f6;--muted:#65717b;--line:#dfe4e8;--soft:#e9eef2;--nav-height:calc(72px + env(safe-area-inset-bottom,0px))}
*{box-sizing:border-box}html{scrollbar-gutter:auto}body{margin:0;background:var(--paper)!important;color:var(--ink);font:400 16px/1.5 Outfit,system-ui,sans-serif!important}body h1,body h2,body h3,body h4{font-family:'Barlow Condensed',sans-serif;font-weight:600;line-height:1.15;color:var(--ink)}body h1{font-size:32px;margin:0 0 8px}body h2{font-size:24px;margin:0 0 8px}body h3{font-size:21px;margin:0}body p{color:var(--muted);margin:0 0 16px;line-height:1.55}a{color:var(--accent)}body button,body .button{font:500 14px/1.3 Outfit,system-ui,sans-serif;min-height:44px;padding:11px 16px;border:0;border-radius:6px;background:var(--ink);color:#fff;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;touch-action:manipulation}body button:disabled{opacity:.5;cursor:default}body [hidden]{display:none!important}body :focus-visible{outline:2px solid var(--accent);outline-offset:3px}body input:not([type=checkbox]):not([type=radio]),body select,body textarea{font:400 16px/1.4 Outfit,system-ui,sans-serif;max-width:100%;min-height:46px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);padding:12px;width:100%}.material-symbols-outlined{font-family:'Material Symbols Outlined'!important;font-size:24px;line-height:1;font-weight:400}
.app-header{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:76px;padding:calc(12px + env(safe-area-inset-top,0px)) 20px 12px;background:var(--paper);border-bottom:1px solid var(--line);flex-shrink:0}.app-brand{display:inline-flex;align-items:center;gap:10px;color:#111;text-decoration:none;min-width:0}.app-brand .mg-mark{display:block;width:34px;height:34px;aspect-ratio:1;flex:0 0 34px;overflow:hidden}.app-brand>span{font:700 26px/1 Agency,sans-serif;letter-spacing:.6px;white-space:nowrap}.account-link{color:var(--accent);width:44px;height:44px;display:grid;place-items:center;flex-shrink:0;border-radius:50%;background:var(--soft)}.screen-label{display:none}body main{max-width:1100px;margin:0 auto;padding:26px 20px calc(var(--nav-height) + 24px)}.eyebrow{font-size:10px;letter-spacing:.16em;font-weight:500;margin:0 0 8px!important}.intro{display:flex;justify-content:space-between;align-items:center;gap:16px}.intro p:last-child{font-size:14px;margin:0}.intro>button{width:44px;height:44px;padding:0;flex-shrink:0;font-size:0}.intro>button:after{content:'+';font-size:26px;font-weight:400}.tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:var(--soft);padding:4px;border-radius:7px;margin:24px 0 18px}.tabs button{font-size:12px;padding:10px 4px;white-space:nowrap;border-radius:4px}.search-row{position:relative}.search-row input{padding-left:40px!important;background:#fff!important}.search-row:before{content:'search';font-family:'Material Symbols Outlined';position:absolute;left:12px;top:10px;font-size:23px;color:var(--muted)}.filters{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:16px 0 22px;padding-bottom:2px}.filters::-webkit-scrollbar{display:none}.filters button{flex:0 0 auto;white-space:nowrap;background:var(--soft);color:var(--ink);font-size:12px;padding:10px 13px;min-height:44px}.add-prompt{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid var(--line);padding:16px;margin:0 0 20px;border-radius:7px}.add-prompt h2{font-family:Outfit,sans-serif;font-size:15px;line-height:1.3;margin:0 0 4px}.add-prompt p{font-size:12px;margin:0}.add-prompt button{flex-shrink:0}.wardrobe-main.is-empty .add-prompt{min-height:210px;flex-direction:column;justify-content:center;text-align:center;padding:28px 20px}.wardrobe-main.is-empty .add-prompt:before{content:'checkroom';font:36px/1 'Material Symbols Outlined';color:var(--accent);margin-bottom:4px}.wardrobe-main.is-empty .add-prompt h2{font-family:'Barlow Condensed';font-size:25px}.wardrobe-main.is-empty .add-prompt button{min-width:180px}.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.product-grid article,.product-grid>div{min-width:0;background:#fff;border:1px solid var(--line);border-radius:6px;overflow:hidden;padding:0 0 12px;cursor:pointer}.product-grid img{display:block;width:100%;aspect-ratio:3/4;object-fit:contain;background:#e9ecee}.product-grid h3,.product-grid article>span{margin:8px 10px 0;display:block}.product-grid article>span{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.product-grid h3{font-size:20px}.product-grid>p{grid-column:1/-1;font-size:14px}.product-grid>div h3,.product-grid>div button{margin:10px}.actions{display:flex;gap:10px;flex-wrap:wrap;margin:22px 0}.actions>*{flex:1}.fitting-photo{margin:24px auto;max-width:440px;border-radius:8px;overflow:hidden;background:#fff;border:1px solid var(--line)}.fitting-photo img{width:100%;max-height:480px;object-fit:cover;display:block}.fitting-photo figcaption{font-size:12px;padding:10px;color:var(--muted)}
body .app-nav-original{position:fixed;bottom:0;left:0;right:0;z-index:40;background:var(--paper);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom,0px)}.app-nav-original>div{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));max-width:1100px;margin:auto;height:72px}.app-nav-original a{display:flex!important;flex-direction:column;justify-content:center;align-items:center;gap:6px;width:100%;min-width:0;min-height:64px;color:var(--muted);text-decoration:none}.app-nav-original a[aria-current=page]{color:var(--ink)}.app-nav-original a[aria-current=page]>.material-symbols-outlined{background:var(--soft);border-radius:16px;padding:4px 16px;width:56px;height:30px;font-size:22px}.app-nav-original .material-symbols-outlined{display:block;height:30px;padding-top:4px}.app-nav-original span:not(.material-symbols-outlined){font:500 9px/1 Outfit,sans-serif;letter-spacing:.02em;white-space:nowrap}
body #add-modal{padding:20px;background:#18232d80;z-index:80}body #modal-panel{background:var(--paper);border-radius:12px;max-height:90dvh;width:100%;max-width:480px;box-shadow:0 24px 70px #18232d33}#modal-panel form{padding:24px;display:flex;flex-direction:column;gap:14px;overflow:auto}#modal-panel label{display:flex;flex-direction:column;gap:6px;font-size:13px}#modal-panel input[type=file]{height:auto;font-size:13px}#modal-panel form>div:last-child{display:flex;gap:10px}#modal-panel form>div:last-child>*{flex:1}#modal-panel button[type=button]{background:var(--soft);color:var(--ink)}
/* Chat owns one viewport. Only history scrolls; composer remains above the keyboard. */
body.chat-page{height:var(--chat-height,100dvh);overflow:hidden;display:flex;flex-direction:column;position:fixed;inset:0;top:var(--chat-top,0px)}body.chat-page main{width:100%;max-width:800px;flex:1;min-height:0;display:flex;flex-direction:column;margin:0 auto;padding:16px 20px calc(var(--nav-height) + 8px)}.chat-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-shrink:0}.chat-heading h1{font-size:26px;margin:0}.chat-heading p{font-size:12px;margin:2px 0 0}.chat-toolbar{display:flex;align-items:center;gap:8px;justify-content:space-between;padding:10px 0;flex-shrink:0;border-bottom:1px solid var(--line)}.chat-toolbar>a{font-size:12px;text-decoration:none;color:var(--accent)}.chat-toolbar details{position:relative}.chat-toolbar summary{cursor:pointer;font-size:12px;padding:8px 10px;background:var(--soft);border-radius:5px;min-height:36px}.chat-tools-menu{position:absolute;right:0;top:40px;z-index:60;width:215px;padding:8px;border:1px solid var(--line);background:#fff;box-shadow:0 8px 24px #18232d22;border-radius:8px;display:grid;gap:4px}.chat-tools-menu button,.chat-tools-menu a{display:flex;justify-content:flex-start;width:100%;font-size:13px;padding:10px;background:transparent;color:var(--ink);text-decoration:none}.chat-status{font-size:11px!important;margin:8px 0!important;flex-shrink:0;max-height:48px;overflow:auto}body #chatStream{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:16px;padding:12px 0 20px;scroll-padding-bottom:20px}body #chatStream .chat-message{max-width:90%;align-self:flex-start;min-width:0}body #chatStream .chat-message.own{align-self:flex-end}body #chatStream .chat-bubble{padding:13px 15px;background:#fff;border:1px solid var(--line);border-radius:10px 10px 10px 2px;font-size:15px;line-height:1.6;color:var(--ink);margin:0 0 4px}body #chatStream .own .chat-bubble{background:var(--ink);color:#fff;border-color:var(--ink);border-radius:10px 10px 2px 10px}.chat-message>span{font-size:10px;color:var(--muted)}.chat-suggestion{background:white;padding:16px;border:1px solid var(--line);border-radius:8px;flex-shrink:0}.chat-suggestion>div{display:grid;grid-template-columns:1fr 1fr;gap:10px}.chat-suggestion img{width:100%;aspect-ratio:1;object-fit:contain;background:var(--paper)}.chat-suggestion button{font-size:12px;margin:8px 0}.chat-suggestion p{font-size:12px}.chat-suggestion h3{font-size:20px;margin-top:6px}body #chatForm{display:flex;flex-direction:row;align-items:flex-end;gap:8px;padding:10px;background:#fff;border:1px solid var(--line);border-radius:10px;flex-shrink:0}#chatForm label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}body #chatForm textarea{resize:none;min-height:44px;max-height:112px;flex:1;border:0;background:transparent;padding:10px 6px;outline:none;box-shadow:none}body #chatForm button{flex-shrink:0;width:44px;height:44px;padding:0;border-radius:6px}.chat-privacy{font-size:10px!important;margin:6px 0 0!important;flex-shrink:0}body.keyboard-open main{padding-bottom:8px}body.keyboard-open .app-nav-original{display:none}body.keyboard-open .app-header{min-height:58px;padding-top:8px;padding-bottom:8px}body.keyboard-open .chat-heading{display:none}
@media(min-width:1024px){body main{padding-top:36px}.app-header{padding-left:max(30px,calc((100vw - 1100px)/2));padding-right:max(30px,calc((100vw - 1100px)/2))}.app-brand .mg-mark{width:38px;height:38px;flex-basis:38px}.app-brand>span{font-size:30px}.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.intro h1{font-size:40px}.tabs{max-width:520px}.search-row{max-width:640px}.wardrobe-main.is-empty .add-prompt{max-width:640px;margin:20px auto}.chat-page .app-header{padding-left:max(20px,calc((100vw - 800px)/2));padding-right:max(20px,calc((100vw - 800px)/2))}}
@media(max-width:375px){.app-header{padding-left:16px;padding-right:16px}.app-brand>span{font-size:23px}.app-brand .mg-mark{width:32px;height:32px;flex-basis:32px}body main{padding-left:16px;padding-right:16px}.tabs button{font-size:11px}.chat-toolbar>a{font-size:11px}}
