:root{font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;color:#191a1c;background:#e8e9ea;font-synthesis:none;--glass:rgba(250,250,250,.53);--line:#e2e3e5;--muted:#656970;--radius:22px;--shadow:0 12px 30px #20252c0b,inset 0 1px 0 #fff;--space:20px}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 75% 0%,#fff 0,transparent 46%),linear-gradient(155deg,#d8dbdd 0%,#f4f4f4 46%,#dfe1e3 75%,#f5f5f5 100%);background-attachment:fixed;font-size:16px}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #363b43}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button,.button{border:1px solid #cdd0d3;border-radius:13px;background:linear-gradient(#ffffffd9,#f1f2f3bd);padding:11px 17px;box-shadow:0 2px 4px #11111109,inset 0 1px #fff;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:normal}button:hover:not(:disabled),.button:hover{background:#fff;border-color:#8d9299}.primary{font-weight:750}.glass{background:var(--glass);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);border:1px solid #fffffff0;box-shadow:var(--shadow)}.shell{display:grid;grid-template-columns:246px minmax(0,1fr);gap:24px;padding:22px;max-width:1800px;margin:auto;min-height:100vh}.sidebar{border-radius:26px;padding:26px 12px;display:flex;flex-direction:column;position:sticky;top:22px;height:calc(100vh - 44px);min-height:600px}.brand{display:flex;gap:12px;align-items:center;font-size:22px;font-weight:750;padding:4px 10px 34px;letter-spacing:-1px}.brand svg{width:35px;height:35px}.nav{display:grid;gap:10px}.nav a{display:flex;align-items:center;gap:18px;padding:16px;border-radius:16px;border:1px solid transparent;color:#191a1c;text-decoration:none;font-weight:550}.nav a.active{background:linear-gradient(#ffffffc9,#eeeff0ae);border-color:#fff;box-shadow:0 6px 20px #20252c0b,inset 0 1px #fff;font-weight:750}.nav a:hover{background:#ffffff70}.nav-bottom{margin-top:auto;border-top:1px solid #c8ccd0;padding-top:18px}.icon{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.main{min-width:0;padding:8px 0 0}.page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 2px 24px}h1{font-size:36px;letter-spacing:-1.6px;margin:0 0 8px;line-height:1.2}h2{font-size:23px;margin:0 0 16px;letter-spacing:-.6px}h3{font-size:18px;margin:0 0 12px}p{line-height:1.65;margin:8px 0}.subtitle{color:var(--muted);font-size:18px;margin:0}.toolbar{border-radius:var(--radius);padding:18px 22px;display:flex;gap:20px;align-items:center;flex-wrap:wrap;margin-bottom:18px}.toolbar label{display:flex;align-items:center;gap:14px;flex:1;min-width:200px;font-weight:600}.toolbar select{min-width:0;flex:1}.toolbar .divider{height:34px;width:1px;background:#c7cbd0}select,input,textarea{background:#fffffff0;border:1px solid #d9dce0;border-radius:10px;padding:10px 12px;min-height:42px;max-width:100%}input[type=checkbox]{min-height:auto;width:18px;height:18px;accent-color:#25272a}input[type=number]{width:110px}select{cursor:pointer}label{line-height:1.5}.panel{background:#fffffff5;border:1px solid #fff;border-radius:var(--radius);padding:24px;box-shadow:0 10px 30px #20252c04;margin-bottom:18px}.muted,small{color:var(--muted)}small{font-size:14px;line-height:1.5}.badge{display:inline-block;background:#eeeff1;border:1px solid #e8e9eb;border-radius:20px;padding:4px 11px;font-size:13px;font-weight:500;line-height:1.5}.statusbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 18px;font-size:14px}.statusbar .badge{background:#f8f8f8}.statusbar button{font-size:14px;padding:6px 11px}.statusbar .selected{font-weight:750}.table-wrap{overflow:auto;width:100%}table{border-collapse:collapse;width:100%;table-layout:fixed;min-width:650px;font-variant-numeric:tabular-nums}th,td{border-bottom:1px solid var(--line);padding:11px 14px;text-align:center;overflow-wrap:anywhere;font-weight:400}th:first-child,td:first-child{text-align:left;width:170px}td+td,th+th{border-left:1px solid #eff0f2}thead th{vertical-align:top;font-weight:650;padding-top:8px}thead th:first-child{font-size:16px}thead .badge{margin:7px 0}.garment-placeholder{height:96px;margin:10px auto 6px;display:flex;align-items:center;justify-content:center;color:#91959b;background:#f7f7f7;border-radius:12px;max-width:140px;font-size:14px}.delta{display:block;color:var(--muted);font-size:13px;margin-top:3px}.summary{border-top:1px solid var(--line);margin-top:22px;padding-top:20px}.empty{text-align:center;padding:46px 20px}.empty .icon{width:40px;height:40px;color:#73777d;margin-bottom:16px}.empty h2{margin-bottom:10px}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:18px}.empty .actions{justify-content:center}.notice{border:1px solid #cbd0d5;background:#f3f4f5;border-radius:12px;padding:12px 16px;line-height:1.6;margin-bottom:16px}.notice.error{border:2px solid #61656b}.notice button{padding:5px 12px;margin-left:12px}.list{display:grid;gap:14px}.list-row{border:1px solid var(--line);border-radius:15px;padding:18px;display:flex;justify-content:space-between;align-items:center;gap:18px;overflow-wrap:anywhere}.list-row p{margin:4px 0}.list-row>div{min-width:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-grid label{display:grid;gap:6px}.measure-row{display:grid;grid-template-columns:110px 100px 84px 100px 1fr 105px;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.measure-row input[type=number]{width:100%}.measure-row input[type=text]{width:100%}.measure-row label{display:grid;gap:5px;font-size:14px}.check{display:flex!important;align-items:center;gap:8px!important}.filter-row{display:grid;grid-template-columns:90px 92px minmax(130px,1fr) 120px 90px 90px 70px;gap:10px;align-items:end;padding:16px 0;border-bottom:1px solid var(--line)}.filter-row label{display:grid;gap:6px;font-size:14px}.filter-row input{width:100%}details{padding:14px 0}summary{cursor:pointer;font-weight:600;line-height:1.5}.tabs{display:flex;gap:8px;margin-bottom:16px}.tabs button[aria-pressed=true]{font-weight:750}dialog{width:min(900px,calc(100vw - 32px));max-height:90vh;border:1px solid #fff;border-radius:24px;background:#fdfdfd;padding:26px;box-shadow:0 20px 80px #0003}dialog::backdrop{background:#292d344d;backdrop-filter:blur(5px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.dialog-head h2{margin:0}.dialog-head button{padding:7px 12px}.mobile-nav{display:none}.skip{position:fixed;left:20px;top:-100px;z-index:100;background:white;padding:15px}.skip:focus{top:10px}.section-space{margin-top:22px}.demo-mark{margin-bottom:16px;display:flex;align-items:center;justify-content:space-between;gap:12px}.details-list{margin:8px 0 12px;padding-left:22px;line-height:1.8}.fitline{display:flex;gap:12px;flex-wrap:wrap}.fitline label{display:grid;gap:5px}.inline-title{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.inline-title h2{margin-bottom:0}.inline-title{margin-bottom:14px}.footer-note{font-size:14px;color:var(--muted);padding:2px 4px 16px}@supports not (backdrop-filter:blur(1px)){.glass{background:#eceeef}}@media(prefers-reduced-transparency:reduce){.glass{background:#eceeef;backdrop-filter:none}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}@media(max-width:1150px){.shell{grid-template-columns:220px minmax(0,1fr);gap:18px}.brand{font-size:20px}.panel{padding:20px}.filter-row{grid-template-columns:80px 80px 1fr 100px}.measure-row{grid-template-columns:90px 85px 75px 90px 1fr}.measure-row>label:last-child{grid-column:5}.toolbar{gap:12px}.toolbar .divider{display:none}h1{font-size:32px}}@media(max-width:760px){.shell{display:block;padding:14px}.sidebar{display:none;position:relative;top:0;height:auto;min-height:0;margin:12px 0;padding:16px}.sidebar.open{display:flex}.brand{padding-bottom:16px}.nav{gap:2px}.nav a{padding:12px}.nav-bottom{margin-top:12px}.mobile-nav{display:flex;width:100%;justify-content:space-between}.main{padding-top:20px}.page-head{align-items:flex-start;margin-bottom:18px}h1{font-size:28px}.subtitle{font-size:16px}.page-head>button{font-size:14px;padding:10px;flex-shrink:0}.toolbar{padding:16px;display:grid;gap:12px}.toolbar label{min-width:0;font-size:14px}.panel{padding:18px;border-radius:18px}.form-grid{grid-template-columns:1fr}.measure-row{grid-template-columns:1fr 1fr}.measure-row>label:last-child{grid-column:auto}.measure-row>strong{grid-column:1/-1}.filter-row{grid-template-columns:1fr 1fr}.filter-row>strong{grid-column:1/-1}.list-row{align-items:flex-start;flex-direction:column}.list-row .actions{margin-top:0}dialog{padding:18px}.demo-mark{align-items:flex-start}table{min-width:600px}.empty{padding:26px 0}.toolbar select{width:100%}}
/* Normalize native Safari selects while retaining native keyboard menus. */
select{appearance:none;-webkit-appearance:none;padding-right:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23373b40' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}

/* Neutral glass capsule controls, shared by collection and comparison views. */
.display-toolbar{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:14px 20px;margin-bottom:18px;border-radius:26px}
.control-caption{font-size:14px;font-weight:650;color:#4a4e54}
.glass-pills{display:inline-flex;align-items:center;gap:5px;padding:4px;border-radius:999px;background:rgba(210,213,217,.3);border:1px solid rgba(255,255,255,.85);box-shadow:inset 0 1px 4px #3333330d,0 3px 10px #33333305}
.glass-pill{position:relative;min-width:76px;min-height:42px;padding:9px 24px;border-radius:999px;background:transparent;border:1px solid transparent;box-shadow:none;color:#555a61;font-weight:550}
.glass-pill[aria-pressed=true]{color:#202329;background:linear-gradient(155deg,#ffffffef,#ffffff80 42%,#babfc866 100%);border-color:#fffffff5;box-shadow:inset 0 2px 2px #fff,inset 0 -2px 3px #9198a233,0 4px 9px #3038441c;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);font-weight:750}
.glass-pill:hover:not(:disabled){background:#ffffff90;border-color:#ffffffc9}
.glass-pill[aria-pressed=true]:hover{background:linear-gradient(155deg,#fff,#eceef1bb)}
.garment-brand{display:block;font-weight:500;margin-bottom:5px;overflow-wrap:anywhere}
.conversion-note{font-size:14px;color:var(--muted);margin:0 0 16px}
@media(max-width:760px){.display-toolbar{padding:12px;gap:10px}.display-toolbar>small{flex-basis:100%}.glass-pill{min-width:65px;padding:9px 17px}}
@supports not (backdrop-filter:blur(1px)){.glass-pills{background:#e3e5e8}.glass-pill[aria-pressed=true]{background:#fff}}
@media(prefers-reduced-transparency:reduce){.glass-pills{background:#e3e5e8}.glass-pill[aria-pressed=true]{background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none}}

/* Shared capsule language for every action, navigation item and picker. */
:root{--control-surface:linear-gradient(155deg,#ffffffdc,#ffffff70 44%,#bdc2ca55);--control-selected:linear-gradient(155deg,#fff,#ffffffc4 42%,#b8bfc973);--control-edge:#fffffff0;--control-shadow:inset 0 2px 2px #fff,inset 0 -2px 3px #9198a225,0 4px 10px #30384412}
body button,body .button,body .nav a{border-radius:999px;border:1px solid var(--control-edge);background:var(--control-surface);color:#454a51;box-shadow:var(--control-shadow);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);font-weight:550;line-height:1.5}
body button:hover:not(:disabled),body .button:hover,body .nav a:hover{background:var(--control-selected);border-color:#fff;color:#202329}
body button.primary,body button[aria-pressed=true],body .statusbar button.selected,body .nav a.active{background:var(--control-selected);border-color:#fff;color:#202329;box-shadow:inset 0 2px 2px #fff,inset 0 -2px 3px #9198a242,0 4px 10px #30384425;font-weight:750}
body .glass-pills button[aria-pressed=false]{background:transparent;border-color:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
body .glass-pills button[aria-pressed=false]:hover{background:#ffffff80;border-color:#ffffffa0}
body button:disabled{opacity:.45;cursor:not-allowed;box-shadow:inset 0 1px #fff}
body select{border-radius:999px;border-color:var(--control-edge);background-color:#f5f6f8;box-shadow:var(--control-shadow)}
body .nav a{padding:14px 16px;gap:16px}
body .nav a.active{outline:1px solid #ffffffc4;outline-offset:1px}
body .tabs{display:inline-flex;flex-wrap:wrap;gap:5px;padding:4px;border:1px solid #fffffff0;border-radius:28px;background:#d2d5d94d;box-shadow:inset 0 1px 4px #3333330d}
body .tabs button[aria-pressed=false]{background:transparent;box-shadow:none;border-color:transparent}
.toolbar-action{margin-left:auto}
.main{padding-top:0}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@supports not (backdrop-filter:blur(1px)){body button,body .button,body .nav a{background:#eef0f2}body button[aria-pressed=true],body .nav a.active{background:#fff}}
@media(prefers-reduced-transparency:reduce){body button,body .button,body .nav a{background:#eef0f2;backdrop-filter:none;-webkit-backdrop-filter:none}body button.primary,body button[aria-pressed=true],body .statusbar button.selected,body .nav a.active{background:#fff}}
@media(max-width:760px){.main{padding-top:16px}.display-toolbar .toolbar-action{font-size:14px;padding:9px 14px}.display-toolbar>small{flex-basis:auto}}

/* Sidebar is a single-choice surface: only the current route has a glass lens. */
body .sidebar .nav a:not(.active){background:transparent;border-color:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;outline:none;color:#555a61;font-weight:550}
body .sidebar .nav a:not(.active):hover{background:#ffffff35;border-color:transparent;box-shadow:none;color:#202329}
body .sidebar .nav a.active{background:linear-gradient(155deg,#ffffffed 0%,#ffffff80 43%,#bbc2cc65 100%);border:1px solid #fffffff5;box-shadow:inset 0 2px 3px #fff,inset 1px 0 2px #ffffffcc,inset 0 -2px 4px #8994a33b,0 5px 12px #30384422;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);outline:none;color:#202329;font-weight:750}
body .sidebar .nav a:focus-visible{outline:3px solid #363b43;outline-offset:3px}
@supports not (backdrop-filter:blur(1px)){body .sidebar .nav a.active{background:#fff}}
@media(prefers-reduced-transparency:reduce){body .sidebar .nav a.active{background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none}}

.filter-cards{display:grid;gap:16px;margin:20px 0}
.filter-card{padding:18px 20px;border:1px solid var(--line);border-radius:20px;background:#fafbfc}
.filter-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.filter-card-head h2{font-size:18px;margin:0}.filter-card-head button{font-size:14px;padding:7px 14px}
.filter-bounds{display:grid;grid-template-columns:minmax(100px,1fr) 16px minmax(100px,1fr) 100px;gap:12px;align-items:end;max-width:680px}
.filter-bounds label,.filter-method label{display:grid;gap:7px;font-size:14px}
.filter-bounds input[type=number]{width:100%;min-width:0}.filter-bounds>span{padding-bottom:12px;text-align:center;color:var(--muted)}
.filter-method{display:grid;grid-template-columns:130px minmax(150px,1fr) 150px;gap:14px;margin-top:14px}
.filter-method input{width:100%;min-width:0}.filter-card details{padding-bottom:0}.filter-card summary{font-size:14px;color:var(--muted);font-weight:500}
.filter-options{display:flex;flex-wrap:wrap;gap:12px;padding:12px 0}
/* Explicit shared action hover, including formerly dark primary actions. */
body button.primary:hover:not(:disabled){background:var(--control-selected);color:#202329;border-color:#fff;box-shadow:var(--control-shadow)}
@media(max-width:760px){.filter-card{padding:16px}.filter-bounds{grid-template-columns:minmax(0,1fr) 12px minmax(0,1fr);gap:8px}.filter-bounds>label:last-child{grid-column:1/-1;max-width:110px}.filter-method{grid-template-columns:1fr}.filter-options button{flex:1 1 40%}}
@media(prefers-reduced-transparency:reduce){body button.primary:hover:not(:disabled){background:#fff}}

/* A moving glass surface; labels stay sharp and stationary. */
.glass-pills,.sidebar{position:relative;isolation:isolate}
.sidebar{position:sticky}
.selection-lens{position:absolute;pointer-events:none;z-index:-1;border-radius:999px;border:1px solid #fffffff5;background:var(--control-selected);box-shadow:inset 0 2px 3px #fff,inset 0 -2px 4px #8994a33b,0 5px 12px #30384422;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);transform-origin:top left}
body .has-lens .nav a.active,body .has-lens button[aria-pressed=true]{background:transparent;border-color:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
body .native-select-source{display:none}
body .glass-select{text-align:left;justify-content:space-between;min-height:42px;min-width:0;width:100%;padding:9px 14px;gap:16px;overflow-wrap:anywhere;font-weight:500}
.glass-select::after{content:'';width:7px;height:7px;border-right:1.5px solid;border-bottom:1.5px solid;transform:rotate(45deg) translateY(-2px);flex-shrink:0}
.toolbar label>.glass-select{flex:1;width:auto}
.glass-select-menu{position:fixed;z-index:1000;overflow-y:auto;padding:6px;border:1px solid #fff;border-radius:20px;background:rgba(242,244,246,.94);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);box-shadow:inset 0 1px #fff,0 12px 36px #20252c26;overscroll-behavior:contain}
body .glass-select-menu button{display:flex;justify-content:space-between;gap:12px;width:100%;text-align:left;padding:10px 13px;border-radius:14px;background:transparent;border-color:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;font-weight:500}
body .glass-select-menu button[aria-selected=true]{background:var(--control-selected);border-color:#fff;box-shadow:var(--control-shadow);font-weight:700}
.glass-select-menu button[aria-selected=true]::after{content:'✓';flex-shrink:0}
body .glass-select-menu button:focus-visible{outline:2px solid #656b73;outline-offset:-2px;background:#fff}
@media(max-width:760px){.sidebar{position:relative}}
@media(prefers-reduced-transparency:reduce){.selection-lens,.glass-select-menu{background:#f4f5f6;backdrop-filter:none;-webkit-backdrop-filter:none}}
@supports not (backdrop-filter:blur(1px)){.selection-lens,.glass-select-menu{background:#f4f5f6}}

.sidebar .nav .icon{width:27px;height:27px;stroke-width:1.7}

body button[data-icon-add]{width:44px;height:44px;min-width:44px;padding:10px;flex-shrink:0}
body button[data-icon-add] .icon{width:22px;height:22px}
.candidate-sizes{display:grid;gap:20px}.candidate-sizes .filter-card-head label{display:grid;gap:6px}
.candidate-sizes input[readonly]{background:#eff0f2}

/* Direct manipulation is available only from the current selection. */
.sidebar .nav a.active,.glass-pills button[aria-pressed=true]{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;cursor:grab}
body .is-dragging .nav a,body .is-dragging button{cursor:grabbing}
.is-dragging .selection-lens{will-change:transform;box-shadow:inset 0 2px 3px #fff,inset 0 -2px 4px #8994a33b,0 7px 17px #30384430}

/* The lens owns the selected surface, including captured-pointer hover states. */
body .glass-pills.has-lens button.glass-pill[aria-pressed=true],
body .glass-pills.has-lens button.glass-pill[aria-pressed=true]:hover:not(:disabled),
body .glass-pills.has-lens.is-dragging button.glass-pill,
body .glass-pills.has-lens.is-dragging button.glass-pill:hover:not(:disabled),
body .sidebar.has-lens.is-dragging .nav a,
body .sidebar.has-lens.is-dragging .nav a:hover{background:transparent;border-color:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}

/* Compact measurement controls; glass surrounds opaque, readable inputs. */
.filter-panel{background:linear-gradient(145deg,#ffffffd9,#eef0f3ad);border-color:#fff;box-shadow:var(--shadow)}
#filter-form>.muted{font-size:14px;margin:6px 0 12px}
#filter-form .filter-cards{gap:9px;margin:12px 0}
#filter-form .compact-filter{display:grid;grid-template-columns:86px minmax(0,1fr) auto;gap:6px 14px;align-items:center;padding:12px 16px;border:1px solid var(--control-edge);border-radius:18px;background:var(--control-surface);box-shadow:var(--control-shadow);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.compact-filter>h2{font-size:16px;margin:18px 0 0}
#filter-form .filter-bounds{grid-template-columns:minmax(90px,1fr) 12px minmax(90px,1fr) 94px;gap:10px;max-width:none}
#filter-form .filter-bounds label{font-size:12px;gap:4px}
#filter-form .filter-bounds input{padding:7px 10px;min-height:38px;background:#fffffff5;font-size:14px}
#filter-form .filter-bounds .glass-select{min-height:38px;padding:7px 12px;font-size:14px}
#filter-form .filter-bounds>span{padding-bottom:9px}
.compact-filter>button{margin-top:18px;padding:7px 12px;font-size:13px}
#filter-form .compact-filter>details{grid-column:1/-1;padding:0}
#filter-form .compact-filter summary{font-size:12px;line-height:1.6}
#filter-form .filter-method{margin-top:8px;gap:10px;padding:10px 0 2px;border-top:1px solid #ffffffc9}
#filter-form .filter-method label{font-size:13px;gap:4px}
#filter-form>details{padding:8px 0 12px}
#filter-form #filter-feedback{font-size:14px;margin-bottom:10px;padding:9px 12px}
#filter-form>.actions{margin-top:10px}
@media(max-width:950px){#filter-form .compact-filter{grid-template-columns:64px minmax(0,1fr) auto;gap:6px 10px;padding:12px}.compact-filter>h2{font-size:15px}}
@media(max-width:600px){#filter-form .compact-filter{grid-template-columns:minmax(0,1fr) auto;gap:8px}#filter-form .compact-filter>h2{grid-column:1;grid-row:1;margin:0}#filter-form .compact-filter>button{grid-column:2;grid-row:1;margin:0}#filter-form .filter-bounds{grid-column:1/-1;grid-template-columns:minmax(0,1fr) 10px minmax(0,1fr) 76px;gap:6px}#filter-form .filter-bounds>label:last-child{grid-column:auto;max-width:none}#filter-form .filter-method{grid-template-columns:1fr}}
@media(prefers-reduced-transparency:reduce){.filter-panel,#filter-form .compact-filter{background:#f0f2f4;backdrop-filter:none;-webkit-backdrop-filter:none}}
@supports not (backdrop-filter:blur(1px)){.filter-panel,#filter-form .compact-filter{background:#f0f2f4}}

/* Show focus outlines only after explicit Tab navigation. */
html:not(.tab-navigation) body :focus{outline:none!important}
html.tab-navigation body :focus-visible{outline:2px solid #555d68;outline-offset:3px}
body .sidebar.has-lens.wheel-preview .nav a{background:transparent;border-color:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;font-weight:550;color:#555a61}
body .sidebar.has-lens.wheel-preview .nav a.wheel-target{font-weight:750;color:#202329}

.measurement-failed{color:#b42332;font-weight:750}
.comparison-verdict th,.comparison-verdict td{background:#f7f8f9;padding-top:12px;padding-bottom:12px}

/* Two filters per row on desktop; retain usable input widths. */
@media(min-width:1200px){
 #filter-form .filter-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
 #filter-form .compact-filter{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;min-width:0}
 #filter-form .compact-filter>h2{grid-column:1;grid-row:1;margin:0}
 #filter-form .compact-filter>button{grid-column:2;grid-row:1;margin:0}
 #filter-form .compact-filter .filter-bounds{grid-column:1/-1;grid-row:2;grid-template-columns:minmax(0,1fr) 10px minmax(0,1fr) 80px;gap:8px;min-width:0}
 #filter-form .compact-filter .filter-method{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr)}
 #filter-form .compact-filter .filter-method>label:last-child:nth-child(3){grid-column:1/-1}
}

/* Two-line filter cards with compact glass segment controls. */
#filter-form .capsule-filter{display:flex;flex-direction:column;align-items:stretch;gap:12px}
.filter-controls{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.filter-controls h2{font-size:15px;margin:0 3px 0 0;white-space:nowrap}
.filter-controls .glass-pills{padding:2px;gap:1px}
body .filter-controls .glass-pill{min-width:0;min-height:30px;padding:4px 7px;font-size:12px;white-space:nowrap}
body .filter-controls .filter-trash{margin-left:auto;padding:6px;width:32px;height:32px;flex-shrink:0}
.filter-trash .icon{width:18px;height:18px}
#filter-form .capsule-filter .filter-bounds{display:grid;grid-template-columns:minmax(0,1fr) 10px minmax(0,1fr);gap:8px}
#filter-form .capsule-filter .filter-bounds label{display:flex;align-items:center;gap:8px;white-space:nowrap}
#filter-form .capsule-filter .filter-bounds input{width:100%;min-width:0}
#filter-form .capsule-filter .filter-bounds>span{padding:0;align-self:center}
.measurement-help{line-height:1.7}.measurement-help dt{font-weight:700;margin-top:16px}.measurement-help dd{margin:4px 0 0;color:var(--muted)}
#filter-form .capsule-filter .filter-bounds>label:last-child{grid-column:auto;max-width:none}

/* Approved mockup: right-aligned segments and a compact rounded input row. */
#filter-form .capsule-filter{padding:20px;gap:20px;border-radius:24px}
.filter-controls{flex-wrap:nowrap;gap:12px}
.filter-controls h2{font-size:19px;margin:0;font-weight:750}
.filter-segments{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto;flex-wrap:wrap;min-width:0}
.filter-controls .glass-pills{padding:3px;gap:1px}
body .filter-controls .glass-pill{min-height:38px;padding:6px 8px;font-size:14px}
#filter-form .capsule-filter .filter-bounds{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
#filter-form .capsule-filter .filter-bounds label{font-size:15px;gap:10px}
#filter-form .capsule-filter .filter-bounds input{width:112px;min-height:44px;padding:10px 13px;border-radius:999px;background:linear-gradient(155deg,#fff,#f9fafbeF);border:1px solid #d9dde2;box-shadow:inset 0 2px 3px #ffffff,0 2px 5px #30384408;font-size:16px;font-variant-numeric:tabular-nums}
body .capsule-filter .filter-bounds .filter-trash{margin-left:auto;width:44px;height:44px;padding:10px;flex-shrink:0}
.capsule-filter .filter-trash .icon{width:21px;height:21px}
@media(min-width:1200px) and (max-width:1399px){#filter-form .capsule-filter{padding:16px}.filter-controls{gap:8px}.filter-controls h2{font-size:17px}.filter-segments{gap:4px}body .filter-controls .glass-pill{padding:6px;font-size:13px}#filter-form .capsule-filter .filter-bounds{gap:12px}#filter-form .capsule-filter .filter-bounds input{width:100px}}
@media(max-width:600px){#filter-form .capsule-filter{padding:14px;gap:16px}.filter-controls{align-items:flex-start}.filter-controls h2{padding-top:9px;font-size:17px}.filter-segments{gap:5px}body .filter-controls .glass-pill{font-size:13px;padding:5px 7px}#filter-form .capsule-filter .filter-bounds{gap:8px}#filter-form .capsule-filter .filter-bounds label{font-size:13px;gap:5px}#filter-form .capsule-filter .filter-bounds input{width:82px;padding:9px;font-size:14px}body .capsule-filter .filter-bounds .filter-trash{width:38px;height:38px;padding:8px}}

/* Align the bounds and trash button together at the right edge. */
#filter-form .capsule-filter .filter-bounds{justify-content:flex-end}
body .capsule-filter .filter-bounds .filter-trash{margin-left:0}

/* Measurement help uses responsive glass cards. */
.measurement-help{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0;line-height:1.7}
.measurement-help-card{min-width:0;padding:20px;border-radius:var(--radius);background:linear-gradient(145deg,#ffffffed,#e8ebefb8);box-shadow:var(--shadow);overflow-wrap:anywhere}
.measurement-help .measurement-help-card dt{margin:0 0 8px;font-size:18px;font-weight:750}
.measurement-help .measurement-help-card dd{margin:0;color:var(--muted)}
@media(max-width:700px){.measurement-help{grid-template-columns:minmax(0,1fr);gap:12px}.measurement-help-card{padding:16px}}
@media(prefers-reduced-transparency:reduce){.measurement-help-card{background:#f2f3f5;backdrop-filter:none;-webkit-backdrop-filter:none}}
@supports not (backdrop-filter:blur(1px)){.measurement-help-card{background:#f2f3f5}}

/* Transparent measurement vectors and an inline theme switch. */
.brand{gap:8px;padding-left:6px;padding-right:6px;justify-content:space-between;letter-spacing:-.7px;font-size:20px}
body .theme-toggle{position:relative;isolation:isolate;display:flex;gap:8px;padding:5px;width:72px;height:38px;flex-shrink:0}
.brand .theme-toggle svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;z-index:1}
.theme-toggle::before{content:'';position:absolute;left:3px;top:3px;width:30px;height:30px;border-radius:50%;background:var(--control-selected);box-shadow:var(--control-shadow);transition:transform .25s ease}
.theme-toggle[aria-checked=true]::before{transform:translateX(34px)}
.filter-measurement-name{position:relative;flex-shrink:0;cursor:help}
.measurement-icon{display:block;width:64px;height:64px;overflow:visible}
.garment-outline{color:#777c83}.measurement-marker{color:#24272c}
.filter-measurement-name::after{content:attr(data-label);position:absolute;left:0;top:100%;z-index:5;white-space:nowrap;font-size:13px;font-weight:600;padding:4px 10px;border-radius:10px;background:var(--tooltip-bg,#25282d);color:var(--tooltip-text,#fff);opacity:0;pointer-events:none}
.filter-measurement-name:hover::after,.filter-measurement-name:focus-visible::after{opacity:1}
@media(min-width:1200px) and (max-width:1399px){.measurement-icon{width:48px;height:48px}}
@media(max-width:600px){.measurement-icon{width:48px;height:48px}.filter-controls .filter-measurement-name{padding-top:0}}
@media(prefers-reduced-motion:reduce){.theme-toggle::before{transition:none}}

/* Dark palette: controls retain glass depth; data surfaces stay opaque. */
html[data-theme=dark]{color-scheme:dark;color:#eef0f3;background:#181a1d;--muted:#b5bac3;--line:#444950;--glass:#292d33b8;--control-surface:linear-gradient(155deg,#555b6380,#343940a8 44%,#20242beb);--control-selected:linear-gradient(155deg,#737a8599,#505761bb 42%,#303740dd);--control-edge:#aab4c23d;--control-shadow:inset 0 1px 2px #ffffff36,inset 0 -2px 3px #0004,0 4px 10px #0003;--shadow:0 12px 30px #0003,inset 0 1px 0 #ffffff25;--tooltip-bg:#e5e8ed;--tooltip-text:#202329}
html[data-theme=dark] body{background:radial-gradient(ellipse at 75% 0%,#383e46 0,transparent 46%),linear-gradient(155deg,#1b1e23,#292d33 46%,#191c21 75%,#252930);color:#eef0f3}
html[data-theme=dark] :is(.glass,.panel,dialog,.filter-card,.list-row,.notice,.badge,.garment-placeholder,.glass-select-menu){border-color:var(--control-edge)}
html[data-theme=dark] :is(.panel,dialog){background:#25292f;color:#eef0f3;box-shadow:var(--shadow)}
html[data-theme=dark] :is(.filter-panel,.measurement-help-card){background:linear-gradient(145deg,#353b43df,#262b32d9);box-shadow:var(--shadow)}
html[data-theme=dark] :is(.filter-card,.notice,.badge,.garment-placeholder,.comparison-verdict th,.comparison-verdict td){background:#30353d;color:#e4e7ec}
html[data-theme=dark] :is(input,textarea,select),html[data-theme=dark] #filter-form .capsule-filter .filter-bounds input{background:#242930;color:#f2f4f7;border-color:#626a77;box-shadow:inset 0 1px 2px #ffffff0c}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#9fa7b3;opacity:1}
html[data-theme=dark] input[type=checkbox]{accent-color:#d0d8e4}
html[data-theme=dark] :is(button,.button,.nav a){color:#dce1e8;border-color:var(--control-edge);box-shadow:var(--control-shadow)}
html[data-theme=dark] :is(button,.button):hover:not(:disabled){color:#fff;border-color:#b2bdcc70;background:var(--control-selected)}
html[data-theme=dark] :is(button.primary,button[aria-pressed=true],.nav a.active){color:#fff;background:var(--control-selected);border-color:var(--control-edge);box-shadow:var(--control-shadow)}
html[data-theme=dark] .selection-lens{background:var(--control-selected);border-color:var(--control-edge);box-shadow:var(--control-shadow)}
html[data-theme=dark] :is(.glass-pills,.tabs){background:#14181d55;border-color:var(--control-edge)}
html[data-theme=dark] .sidebar .nav a:not(.active){color:#bdc4ce;background:transparent;box-shadow:none;border-color:transparent}
html[data-theme=dark] .sidebar .nav a:not(.active):hover{color:#fff;background:#ffffff0a}
html[data-theme=dark] .glass-pills button[aria-pressed=false]{background:transparent;box-shadow:none;border-color:transparent}
html[data-theme=dark] .has-lens :is(.nav a.active,button[aria-pressed=true]),html[data-theme=dark] .glass-pills.has-lens button.glass-pill:hover:not(:disabled),html[data-theme=dark] .sidebar.has-lens.is-dragging .nav a{background:transparent;border-color:transparent;box-shadow:none}
html[data-theme=dark] .glass-select-menu{background:#282d34f5;box-shadow:var(--shadow)}
html[data-theme=dark] .glass-select-menu button{background:transparent;box-shadow:none;border-color:transparent}
html[data-theme=dark] .glass-select-menu button:is([aria-selected=true],:focus-visible){background:var(--control-selected);color:#fff}
html[data-theme=dark] :is(.nav-bottom,.summary,.measure-row,.filter-row){border-color:var(--line)}
html[data-theme=dark] :is(.measurement-failed){color:#ff9aa5}
html[data-theme=dark] .garment-outline{color:#b0b8c4}html[data-theme=dark] .measurement-marker{color:#f7f9fc}
html[data-theme=dark].tab-navigation body :focus-visible{outline-color:#b7c8e3}
html[data-theme=dark] dialog::backdrop{background:#0009;backdrop-filter:blur(6px)}
html[data-theme=dark] .candidate-sizes input[readonly]{background:#353b43}
@media(prefers-reduced-transparency:reduce){html[data-theme=dark] :is(.glass,.selection-lens,.measurement-help-card,.filter-panel,.glass-select-menu){background:#30363e;backdrop-filter:none;-webkit-backdrop-filter:none}}
@supports not (backdrop-filter:blur(1px)){html[data-theme=dark] :is(.glass,.selection-lens,.measurement-help-card,.filter-panel,.glass-select-menu){background:#30363e}}

/* The measurement illustration spans both control rows. */
#filter-form .capsule-filter.with-measurement-icon{display:grid;grid-template-columns:100px minmax(0,1fr);grid-template-rows:auto auto;gap:16px 12px;align-items:center}
.with-measurement-icon .filter-controls{display:contents}
#filter-form .with-measurement-icon .filter-measurement-name{grid-column:1;grid-row:1 / 3;align-self:stretch;display:flex;align-items:center;justify-content:center;margin:0;padding:0}
.with-measurement-icon .measurement-icon{width:100px;height:120px}
.with-measurement-icon .filter-segments{grid-column:2;grid-row:1;margin-left:0;justify-content:flex-end}
#filter-form .capsule-filter.with-measurement-icon .filter-bounds{grid-column:2;grid-row:2;min-width:0;gap:12px;justify-content:flex-end}
@media(min-width:1200px) and (max-width:1399px){#filter-form .capsule-filter.with-measurement-icon{grid-template-columns:76px minmax(0,1fr);column-gap:8px}.with-measurement-icon .measurement-icon{width:76px;height:112px}#filter-form .capsule-filter.with-measurement-icon .filter-bounds{gap:8px}#filter-form .with-measurement-icon .filter-bounds input{width:82px}}
@media(max-width:600px){#filter-form .capsule-filter.with-measurement-icon{grid-template-columns:64px minmax(0,1fr);gap:12px 8px}.with-measurement-icon .measurement-icon{width:64px;height:110px}#filter-form .capsule-filter.with-measurement-icon .filter-bounds{gap:8px}}

/* Fit profiles and their complete measurement grid share one workspace. */
.filter-preset-toolbar{gap:12px}
.filter-preset-picker{flex:1 1 180px;min-width:140px;max-width:340px;margin-left:auto}
.filter-preset-actions{display:flex;align-items:center;gap:8px;margin-left:0}
body .icon-control{width:44px;height:44px;min-width:44px;padding:10px}
.filter-preset-fields{border:0;padding:0;margin:0;min-width:0}
.filter-preset-fields:disabled .filter-cards{opacity:.55}
.preset-name-label{display:grid;gap:8px}.preset-name-label input{width:100%}
@media(max-width:600px){.filter-preset-picker{max-width:none}.filter-preset-actions{width:100%;justify-content:flex-end}.filter-preset-toolbar{gap:10px}}

/* Fixed-capsule wheel dropdown: only the list travels. */
body .glass-select.wheel-picker-open{visibility:hidden}
.wheel-picker{position:fixed;z-index:1200;overflow:hidden;isolation:isolate;border-radius:28px;background:linear-gradient(150deg,#f9fafbf5,#e7eaf0ef);border:1px solid var(--control-edge);box-shadow:var(--shadow),inset 0 1px 2px #fff,0 16px 40px #18202c30;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);overscroll-behavior:contain;touch-action:none;color:#454a51;outline:none;box-sizing:content-box}
.wheel-picker-lens{position:absolute;left:0;right:0;box-sizing:border-box;border-radius:999px;background:var(--control-selected);border:1px solid var(--control-edge);box-shadow:var(--control-shadow);pointer-events:none;z-index:0}
.wheel-picker-track{position:absolute;left:0;right:0;top:0;will-change:transform;z-index:1}
.wheel-picker-option{position:absolute;left:0;right:0;display:flex;align-items:center;padding:0 18px;line-height:1.35;font-size:16px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;user-select:none;-webkit-user-select:none;transition:color .14s ease}
.wheel-picker-option.is-centered{font-weight:750;color:#202329}
.wheel-picker-option[aria-disabled=true]{cursor:not-allowed}
html[data-theme=dark] .wheel-picker{background:linear-gradient(150deg,#353b43f5,#242930f5);color:#bec5cf;border-color:var(--control-edge);box-shadow:var(--shadow),inset 0 1px 2px #ffffff38,0 16px 40px #0007}
html[data-theme=dark] .wheel-picker-option.is-centered{color:#fff}
html.tab-navigation .wheel-picker:focus-visible{outline:2px solid #656f80;outline-offset:3px}
html[data-theme=dark].tab-navigation .wheel-picker:focus-visible{outline-color:#b7c8e3}
@media(prefers-reduced-transparency:reduce){.wheel-picker{background:#eef0f3;backdrop-filter:none;-webkit-backdrop-filter:none}html[data-theme=dark] .wheel-picker{background:#30363e}}
@supports not (backdrop-filter:blur(1px)){.wheel-picker{background:#eef0f3}html[data-theme=dark] .wheel-picker{background:#30363e}}

/* Product-level candidate matrix */
dialog.candidate-editor{width:min(1180px,calc(100vw - 40px));max-width:1180px}
.candidate-editor .dialog-head{gap:16px}.candidate-editor .dialog-head h2{margin-right:auto}.candidate-timestamp{color:var(--muted);white-space:nowrap}
.candidate-controls{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.candidate-info{display:grid;grid-template-columns:1fr 1.6fr;gap:20px;margin-bottom:24px}.candidate-info label{display:grid;gap:8px}
.candidate-table-scroll{overflow-x:auto;max-width:100%;border-radius:20px;border:1px solid var(--border)}
.candidate-table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;padding:8px}
.candidate-table th,.candidate-table td{padding:6px;border:0;text-align:left}.candidate-table th:first-child{width:120px;position:sticky;left:0;z-index:1;background:transparent}
.candidate-table th:last-child,.candidate-table td:last-child{width:60px}.candidate-table input{width:100%;min-width:0;border-radius:15px;padding:10px 12px;font-variant-numeric:tabular-nums}.candidate-save{justify-content:flex-end;margin-top:20px}.candidate-save button{width:52px;height:52px;border-radius:50%;padding:13px}.candidate-save svg{width:24px;height:24px}
@media(max-width:650px){.candidate-info{grid-template-columns:1fr}.candidate-editor .dialog-head{flex-wrap:wrap}.candidate-timestamp{font-size:12px}.candidate-controls{gap:8px}}
/* Compact, consistent candidate controls */
.candidate-info{margin-bottom:16px}.candidate-info input{border-radius:999px;padding:12px 18px}.candidate-info label{gap:0}
.candidate-table-scroll{border:0;background:linear-gradient(135deg,#ffffff65,#e5e8ed38);box-shadow:inset 0 1px 0 #ffffff90;border-radius:24px}
.candidate-table th:first-child{background:transparent;border-radius:0;font-weight:650}
.candidate-table input{border-radius:999px;border-color:var(--control-edge);box-shadow:inset 0 1px 2px #ffffff60;padding:9px 14px}
.candidate-table .icon-control{width:44px;height:44px;min-width:44px;min-height:44px;padding:10px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center}
.candidate-table .icon-control svg{width:22px;height:22px}
html[data-theme=dark] .candidate-table-scroll{background:linear-gradient(135deg,#ffffff08,#0000000a);box-shadow:inset 0 1px 0 #ffffff18}
html[data-theme=dark] .candidate-table input{box-shadow:inset 0 1px 2px #ffffff0a}
/* Keep five-column cell width when fewer sizes are visible. */

.candidate-table th:first-child{text-align:center;vertical-align:middle;background:transparent}
html[data-theme=dark] .candidate-table th:first-child{background:transparent}
.candidate-table-scroll{background:linear-gradient(125deg,#ffffffba,#eef0f477 55%,#d5dae36b);border:1px solid #ffffffd9;box-shadow:inset 0 1px 3px #fff,0 8px 22px #25304310;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.candidate-table input{background:linear-gradient(135deg,#ffffffd9,#f5f7faad);border:1px solid #ffffffd9;box-shadow:inset 0 1px 2px #fff,0 2px 6px #25304312}
html[data-theme=dark] .candidate-table-scroll{background:linear-gradient(125deg,#50576177,#30363e99 55%,#222830bb);border-color:#a7b3c233;box-shadow:inset 0 1px 3px #ffffff22,0 8px 22px #0002}
html[data-theme=dark] .candidate-table input{background:linear-gradient(135deg,#424951a6,#252b33d9);border-color:#a7b3c240;box-shadow:inset 0 1px 2px #ffffff16,0 2px 6px #0002}
.candidate-top-save{margin-left:auto;display:flex;align-items:center}.candidate-top-save .icon-control{width:44px;height:44px;min-width:44px;padding:10px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center}.candidate-top-save svg{width:22px;height:22px}
@media(prefers-reduced-transparency:reduce){.candidate-table-scroll{backdrop-filter:none;-webkit-backdrop-filter:none;background:#f1f3f6}html[data-theme=dark] .candidate-table-scroll{background:#30363e}}

/* Candidate matrix: direct numeric entry without native spinner buttons. */
.candidate-table input[type="number"]{-moz-appearance:textfield;appearance:textfield}
.candidate-table input[type="number"]::-webkit-inner-spin-button,
.candidate-table input[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}

/* Wardrobe gallery: square image area, two-line product information. */
.wardrobe-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:start}
button.wardrobe-card{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;min-width:0;width:100%;padding:12px;border-radius:24px;text-align:left;white-space:normal;background:linear-gradient(135deg,#ffffffc9,#f9fafb99);border:1px solid #ffffffe6;box-shadow:0 6px 20px #2530430a,inset 0 1px 0 #fff;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
button.wardrobe-card:hover:not(:disabled){background:linear-gradient(135deg,#fffffff2,#f4f6f9c9);border-color:#fff;box-shadow:0 8px 24px #25304314,inset 0 1px 0 #fff}
.wardrobe-card-image{display:flex;align-items:center;justify-content:center;aspect-ratio:1;width:100%;border-radius:16px;background:linear-gradient(140deg,#e9ecef,#f4f5f7);color:#a1a7ae;overflow:hidden}
.wardrobe-card-image .icon{width:52px;height:52px;stroke-width:1.3}.wardrobe-card-info{display:grid;gap:6px;padding:14px 6px 8px;min-width:0}.wardrobe-card-brand{font-size:14px;color:var(--muted);line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wardrobe-card-name{font-size:16px;font-weight:650;line-height:1.5;overflow-wrap:anywhere}
html[data-theme=dark] button.wardrobe-card{background:linear-gradient(135deg,#424850b3,#292f36cc);border-color:#a7b3c233;box-shadow:inset 0 1px 2px #ffffff20,0 6px 20px #0002;color:#f2f4f7}
html[data-theme=dark] button.wardrobe-card:hover:not(:disabled){background:linear-gradient(135deg,#4b525cc9,#333a43dd);border-color:#a7b3c255}
html[data-theme=dark] .wardrobe-card-image{background:linear-gradient(140deg,#242a32,#343b44);color:#99a2ae}
@media(max-width:1200px){.wardrobe-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:960px){.wardrobe-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.wardrobe-gallery{gap:12px}button.wardrobe-card{padding:8px;border-radius:18px}.wardrobe-card-info{padding:10px 2px 6px}.wardrobe-card-name{font-size:14px}.wardrobe-card-brand{font-size:12px}}
@media(prefers-reduced-transparency:reduce){button.wardrobe-card{backdrop-filter:none;-webkit-backdrop-filter:none;background:#f8f9fa}html[data-theme=dark] button.wardrobe-card{background:#30363e}}

/* Compact wardrobe editor */
dialog.wardrobe-editor{width:min(1180px,calc(100vw - 40px));max-width:1180px}.wardrobe-editor .dialog-head{gap:16px}.wardrobe-editor .dialog-head h2{margin-right:auto;margin-bottom:0}.wardrobe-purchase-date{display:flex;gap:8px;align-items:center}.wardrobe-purchase-date .glass-select{width:100px;min-width:0}.wardrobe-purchase-date .glass-select:first-of-type{width:126px}.wardrobe-product-inputs{display:grid;grid-template-columns:1fr 1.6fr .65fr;gap:16px;margin:20px 0 24px}.wardrobe-product-inputs input{width:100%;min-width:0;border-radius:999px;padding:12px 18px}.wardrobe-measure-scroll{overflow-x:auto;padding-bottom:8px}.wardrobe-measures{display:grid;grid-template-columns:repeat(var(--measure-count),minmax(100px,1fr));gap:12px}.wardrobe-measures label{display:grid;gap:12px;text-align:center;min-width:0}.wardrobe-measures input{width:100%;min-width:0;border-radius:999px;text-align:center;appearance:textfield;-moz-appearance:textfield}.wardrobe-measures input::-webkit-inner-spin-button,.wardrobe-measures input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
@media(max-width:650px){.wardrobe-editor .dialog-head{flex-wrap:wrap}.wardrobe-purchase-date{order:3;width:100%}.wardrobe-product-inputs{grid-template-columns:1fr 1fr}.wardrobe-product-inputs input[name=name]{grid-column:span 2;grid-row:2}}

/* Comparison data stays crisp inside the shared glass surface. */
.comparison-glass{border-radius:24px;border:1px solid #ffffffdf;background:linear-gradient(135deg,#ffffffdb,#edf0f5aa);box-shadow:inset 0 1px 3px #fff,0 8px 24px #2530430c;padding:8px}
.comparison-glass table{border-collapse:separate;border-spacing:0}.comparison-glass th,.comparison-glass td{border-left:0;border-bottom:1px solid #bdc5cf40;padding:14px;text-align:center}.comparison-glass tbody th{font-weight:600}.comparison-glass thead th{background:#ffffff40}.comparison-glass .comparison-verdict :is(th,td){background:#e3e7ed70}.comparison-glass tbody tr:last-child>*{border-bottom:0}.comparison-glass .garment-placeholder{border-radius:18px;background:#e9edf280}
html[data-theme=dark] .comparison-glass{background:linear-gradient(135deg,#424952bb,#282f37e8);border-color:#a7b3c233;box-shadow:inset 0 1px 3px #ffffff20,0 8px 24px #0002}
html[data-theme=dark] .comparison-glass th,html[data-theme=dark] .comparison-glass td{border-color:#a7b3c225}html[data-theme=dark] .comparison-glass thead th{background:#ffffff05}html[data-theme=dark] .comparison-glass .comparison-verdict :is(th,td){background:#ffffff08}html[data-theme=dark] .comparison-glass .garment-placeholder{background:#242b3399}

.collection-main{display:flex;flex-direction:column}.collection-main>.display-toolbar{flex-shrink:0}.collection-empty{flex:1;min-height:320px;display:flex;flex-direction:column;align-items:center;justify-content:center;margin-bottom:0}.collection-main>.footer-note{margin-top:18px}.collection-card{position:relative;min-width:0}.collection-card .wardrobe-card-info{padding-right:44px}.card-delete{position:absolute;right:18px;bottom:18px;width:34px;height:34px;padding:7px;z-index:2}.card-delete svg{width:18px;height:18px}.wardrobe-card-image img,.candidate-thumb img,.image-preview img{width:100%;height:100%;object-fit:contain}.candidate-thumb{width:110px;aspect-ratio:1;flex-shrink:0;background:#8881;border-radius:16px;display:flex;align-items:center;justify-content:center;overflow:hidden}.candidate-product-row>.actions{margin-left:auto;align-self:flex-end}
.image-editor-layout{display:grid;grid-template-columns:200px minmax(0,1fr);gap:24px;align-items:start}.image-editor-content{min-width:0}.product-image-editor{display:flex;flex-direction:column;gap:10px}.image-upload{display:flex;flex-direction:column;gap:10px;padding:10px;border-radius:22px;width:100%;font-size:13px}.image-preview{width:100%;aspect-ratio:1;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:16px;background:#8881;font-size:36px}.image-remove{align-self:center;font-size:13px;padding:7px 14px}.image-remove[hidden]{display:none}.product-image-editor small{overflow-wrap:anywhere}.image-editor-content .candidate-info,.image-editor-content .wardrobe-product-inputs{margin-top:0}
body .theme-toggle{background:#c8cdd480;border:1px solid #a9b0ba70;box-shadow:inset 0 2px 5px #20283220}.theme-toggle::before{background:linear-gradient(#fff,#edf0f5);border:1px solid #fff;box-shadow:0 2px 6px #10182040,inset 0 1px 2px #fff}.theme-toggle[aria-checked=false] svg:last-child,.theme-toggle[aria-checked=true] svg:first-child{opacity:.35}.theme-toggle[aria-checked=false] svg:first-child,.theme-toggle[aria-checked=true] svg:last-child{opacity:1;stroke-width:2.2}html[data-theme=dark] .theme-toggle::before{background:linear-gradient(#697483,#46505e);border-color:#aab5c5;box-shadow:0 2px 6px #0008,inset 0 1px 2px #ffffff60}
@media(max-width:800px){.image-editor-layout{grid-template-columns:1fr}.product-image-editor{width:180px;justify-self:center}.collection-empty{min-height:calc(100dvh - 220px)}}
.garment-placeholder img{width:100%;height:100%;object-fit:contain}

/* Image starts beside the selection capsules in both garment editors. */
.image-editor-layout{margin-top:20px}
.image-editor-content>.candidate-controls{margin-top:0}
.product-image-editor>small:empty{display:none}

/* Theme switch uses the same track/lens treatment as segmented capsules. */
html body .theme-toggle,html body .theme-toggle:hover:not(:disabled){width:96px;height:48px;padding:4px;gap:0;display:grid;grid-template-columns:1fr 1fr;align-items:center;justify-items:center;background:rgba(210,213,217,.3);border:1px solid rgba(255,255,255,.85);box-shadow:inset 0 1px 4px #3333330d,0 3px 10px #33333305;color:#454a51}
html .brand .theme-toggle svg{width:22px;height:22px;flex-shrink:0;stroke-width:1.7}
html .theme-toggle::before{left:4px;top:4px;width:40px;height:38px;border-radius:999px;background:var(--control-selected);border:1px solid var(--control-edge);box-shadow:var(--control-shadow);transition:transform .3s cubic-bezier(.22,.8,.25,1)}
html .theme-toggle[aria-checked=true]::before{transform:translateX(44px)}
html .theme-toggle[aria-checked=false] svg:last-child,html .theme-toggle[aria-checked=true] svg:first-child{opacity:.65}
html .theme-toggle[aria-checked=false] svg:first-child,html .theme-toggle[aria-checked=true] svg:last-child{opacity:1;stroke-width:1.9}
html[data-theme=dark] body .theme-toggle,html[data-theme=dark] body .theme-toggle:hover:not(:disabled){background:#14181d55;border-color:var(--control-edge);color:#eef0f3}
html[data-theme=dark] .theme-toggle::before{background:var(--control-selected);border-color:var(--control-edge);box-shadow:var(--control-shadow)}
@media(prefers-reduced-motion:reduce){html .theme-toggle::before{transition:none}}
.collection-sort{margin-left:auto;min-width:0}.collection-sort .glass-pill{font-size:13px;padding:9px 12px;min-width:0}.collection-sort+.toolbar-action{margin-left:0}.collection-card[draggable=true],.candidate-product-row[draggable=true]{cursor:grab}.reordering{opacity:.45}.reorder-target{outline:2px solid var(--muted);outline-offset:3px}@media(max-width:760px){.collection-sort{margin-left:0}.collection-sort .glass-pills{flex-wrap:wrap}}

[data-manual-order=true]{cursor:grab;touch-action:pan-y}
[data-manual-order=true] .wardrobe-card{cursor:grab}
.card-dragging,.card-dragging *{cursor:grabbing!important;user-select:none!important}
.collection-drag-slot{min-width:0;border:0;border-radius:28px;background:rgba(128,128,128,.06);box-sizing:border-box;opacity:.45}
.collection-drag-ghost{position:fixed!important;margin:0!important;z-index:10000;pointer-events:none!important;transform:scale(.94);box-sizing:border-box;opacity:.96;box-shadow:0 18px 45px rgba(0,0,0,.22)}
