:root{color-scheme:light;--paper:#fcfbf9;--ink:#282523;--muted:#69625c;--line:#e6e1db;--photo:#f1eeea;--selected:#eee9e2;--width:540px;font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif;font-size:14px;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}
body{margin:0}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{cursor:default;opacity:.55}
a{color:inherit;text-underline-offset:3px}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #80685b;outline-offset:2px}
h1,h2,h3,p{margin:0}
h1,h2,h3{font-weight:600}
h1{font-size:18px;letter-spacing:-.035em}
h2{font-size:16px;letter-spacing:-.02em}
h3{font-size:14px}
p,li,dd{line-height:1.5;overflow-wrap:anywhere}
#shell{max-width:var(--width);margin:auto}
#header h1{margin-right:auto}
#header{position:sticky;top:0;z-index:1;min-height:55px;padding:env(safe-area-inset-top,0px) 12px 0 16px;background:var(--paper);display:flex;justify-content:space-between;align-items:center;gap:8px}
.actions,.row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.actions.tight{gap:0;flex-wrap:nowrap}
.icon{width:44px;height:44px;flex:none;border:0;background:none;display:inline-grid;place-items:center;border-radius:8px;position:relative;padding:0}
.icon svg,.tab svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round}
.icon[aria-pressed=true]{background:var(--selected)}
.badge{position:absolute;right:4px;top:3px;background:var(--ink);color:white;min-width:14px;padding:1px 3px;border-radius:12px;font-size:9px}
#main{padding:0 12px calc(82px + env(safe-area-inset-bottom,0px));min-height:55vh}
#main:focus{outline:none}
#tabs{position:fixed;z-index:2;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,var(--width));display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--line);background:var(--paper);padding:3px 6px max(4px,env(safe-area-inset-bottom))}
.tab{display:grid;justify-items:center;align-content:center;gap:4px;min-height:51px;border:0;background:none;color:var(--muted);font-size:10px}
.tab[aria-current=page]{color:var(--ink);font-weight:650}
.tab[aria-current=page] svg{stroke-width:1.9}
.gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.tile{padding:0;border:0;background:none;display:block;width:100%;text-align:left;min-width:0}
.art{aspect-ratio:4/5;width:100%;min-width:0;background:var(--photo);display:grid;place-items:center;overflow:hidden;color:var(--muted)}
.art img{width:100%;height:100%;object-fit:contain;display:block}
.art svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.15}
.art.hero{aspect-ratio:auto;height:min(40vh,360px)}
.art.hero img{height:100%;min-height:0;min-width:0}
.art.hero:has(img){grid-template: minmax(0,1fr) / minmax(0,1fr)}
.search-row{padding:0 0 8px}
input:not([type=checkbox]),select,textarea{font-size:16px;width:100%;max-width:100%;min-width:0;min-height:42px;padding:9px 10px;border:1px solid var(--line);border-radius:6px;background:#fff}
input[type=checkbox]{accent-color:var(--ink);width:18px;height:18px;margin:0}
input[type=range]{padding:0;border:none;accent-color:var(--ink)}
textarea{resize:vertical;min-height:76px}
select{padding-right:20px}
label.field{display:grid;align-content:start;gap:5px;min-width:0;font-size:12px}
.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.fields .wide{grid-column:1/-1}
.stack{display:grid;gap:12px;align-content:start}
.stack.small{gap:8px}
.muted{color:var(--muted);font-size:12px}
.error{color:#96352e;font-size:13px}
[hidden]{display:none!important}
.empty{min-height:39vh;display:grid;align-content:center;justify-items:center;text-align:center;gap:10px;padding:20px}
.btn,.chip{min-height:40px;padding:8px 13px;background:none;border:1px solid var(--line);border-radius:6px;line-height:1.2}
.btn.primary{background:var(--ink);border-color:var(--ink);color:#fff}
.btn.quiet{border-color:transparent}
.btn.danger{color:#96352e}
.chip{min-height:34px;padding:6px 12px;border-radius:24px;font-size:12px;overflow-wrap:anywhere;max-width:100%}
.chip[aria-pressed=true],.chip.applied{background:var(--selected);border-color:#cfc4b9}
.chips{display:flex;gap:6px;flex-wrap:wrap}
.applied-strip{margin:0 0 9px;display:flex;gap:5px;overflow:auto;padding:2px;scrollbar-width:thin}
.applied-strip .chip{flex:none}
.closet-foot{display:flex;justify-content:center;flex-wrap:wrap;gap:4px;margin:18px 0}
.closet-foot .btn{font-size:12px;color:var(--muted)}
#sheet{border:1px solid var(--line);border-radius:14px 14px 0 0;padding:0;position:fixed;inset:auto 0 0;width:min(100%,var(--width));max-width:100%;max-height:calc(91dvh - env(safe-area-inset-top,0px));color:var(--ink);background:var(--paper);overflow:auto;overscroll-behavior:contain}
#sheet::backdrop{background:#241f1c52}
body:has(#sheet[open]){overflow:hidden}
.sheet-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--paper);padding:4px 9px 4px 17px;border-bottom:1px solid var(--line)}
#close-sheet{font-size:25px;font-weight:300}
#sheet-content{padding:13px 16px max(16px,env(safe-area-inset-bottom,0px))}
details{border-top:1px solid var(--line);padding:2px 0 8px}
summary{min-height:40px;cursor:pointer;display:flex;align-items:center;justify-content:space-between;font-weight:560;gap:8px;list-style:none}
summary::-webkit-details-marker{display:none}
summary::after{content:'+';color:var(--muted);font-size:17px;font-weight:400}
details[open]>summary::after{content:'−'}
.count{margin-left:auto;font-size:11px;color:var(--muted);font-weight:400}
.filter-actions{display:grid;grid-template-columns:1fr 1.4fr;gap:8px;position:sticky;bottom:0;background:var(--paper);padding:10px 0 0}
.filter-intro{display:flex;justify-content:space-between;gap:8px;padding-bottom:9px}
.pairs{margin:0;display:grid;grid-template-columns:minmax(95px,.75fr) minmax(0,1.25fr);gap:6px 12px}
.pairs dt{color:var(--muted);font-size:12px}
.pairs dd{margin:0;white-space:pre-wrap;font-size:13px}
.line{border-top:1px solid var(--line);padding-top:12px}
.subnav{display:flex;gap:16px;border-bottom:1px solid var(--line);margin-bottom:12px}
.subnav button{border:0;background:none;min-height:40px;padding:0 5px;color:var(--muted)}
.subnav button[aria-pressed=true]{border-bottom:1px solid var(--ink);color:var(--ink)}
.outfit-list{display:grid;gap:16px}
.look{display:grid;gap:8px;border-bottom:1px solid var(--line);padding:0 0 14px}
.look-photo{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(75px,24%),1fr));gap:4px}
.look-photo .art{aspect-ratio:1}
.look-photo .candidate{outline:1px solid #80685b;outline-offset:-1px}
.item-line{display:grid;grid-template-columns:55px minmax(0,1fr) auto;align-items:center;gap:10px;text-align:left}
.item-line .art{aspect-ratio:1}
.item-line span{overflow-wrap:anywhere}
.score{font-size:23px;font-weight:550;letter-spacing:-.04em}
.crop-preview{max-height:42vh;max-width:100%;display:block;margin:auto;object-fit:contain}
.segment{min-height:32px;padding:4px 9px;font-size:12px}
#toast:empty{display:none}
#toast{position:fixed;bottom:calc(67px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 30px);z-index:4;background:var(--ink);color:white;border-radius:8px;padding:10px 14px;font-size:13px}
