:root{color-scheme:dark;--ink:#f6f8ff;--muted:#aab4c5;--bg:#161b27;--paper:#222938;--panel:#1a202d;--line:#394456;--accent:#ffa877;--accent-text:#241912;--radius:17px;--shadow:0 5px 24px #0002}
*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-size:16px}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #92a58b;outline-offset:3px}button:disabled{opacity:.5;cursor:default}button,input,select{color:inherit}a{color:inherit;text-decoration:none}.shell{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;background:#fdfcf9;border-right:1px solid var(--line);padding:34px 22px 20px}.brand{display:flex;align-items:center;gap:10px;font-size:32px;font-weight:750;letter-spacing:-2.3px;margin:0 0 60px 8px}.mark{width:40px;height:40px;border-radius:13px;background:var(--accent);color:#fff;display:grid;place-items:center}.mark svg{width:29px}.brand-dot{color:#83977e}.nav-label,.eyebrow{font-size:12px;font-weight:750;letter-spacing:1.45px;text-transform:uppercase;color:#7c877a}.nav-label{margin:0 0 13px 13px}.nav{border:0;background:none;color:var(--muted);display:flex;align-items:center;gap:13px;width:100%;text-align:left;border-radius:12px;padding:14px 13px;margin:3px 0;font-size:15px;font-weight:550}.nav span{font-size:22px;width:24px;text-align:center;line-height:1}.nav.active{background:#e8eee3;color:var(--accent);font-weight:700}.nav:hover{background:#eef0e9}.nav small{margin-left:auto;font-size:12px}.sidebar-bottom{margin-top:auto}.profile-link{border:0;width:100%;display:flex;text-align:left;align-items:center;gap:10px;background:none;padding:9px 4px}.avatar,.top-profile{width:39px;height:39px;border-radius:50%;background:#dbe4d6;color:#41533d;border:0;display:grid;place-items:center;font-weight:750}.profile-link small{display:block;color:var(--muted);font-size:12px;margin-top:4px}.profile-arrow{margin-left:auto;color:#9b9f94;font-size:24px}.local-note{font-size:12px;color:var(--muted);border-top:1px solid var(--line);margin-top:17px;padding:17px 6px 0}.local-note span{display:inline-block;width:8px;height:8px;background:#9bad92;border-radius:100%;margin-right:8px}.topbar{height:82px;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 36px;gap:13px}.crumb{font-size:14px;color:var(--muted);margin-right:auto}.crumb span{margin:0 9px;color:#b2b5ad}.crumb b{color:var(--ink);font-weight:650}.top-profile{display:none}.btn{border:1px solid var(--line);background:#fff;padding:11px 17px;border-radius:10px;font-weight:650;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}.btn:hover{filter:brightness(.96)}.primary{background:var(--accent);color:#fff;border-color:var(--accent)}.secondary{background:#f0f3ed;border-color:#e1e8dc;color:var(--accent)}.full{width:100%}.icon-btn{border:1px solid var(--line);background:#fff;border-radius:9px;width:36px;height:36px;font-size:23px;line-height:1}.page{max-width:1510px;margin:auto;padding:32px 36px 52px}.hero{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;margin-bottom:27px}.hero h1{font-family:Georgia,"Times New Roman",serif;font-weight:500;font-size:clamp(36px,4vw,49px);letter-spacing:-2.5px;margin:8px 0 10px;line-height:1.07}.hero p,.subtle{color:var(--muted);font-size:15px;line-height:1.55;margin:0}.pill{border:1px solid #dce4d8;background:#edf2e9;padding:8px 12px;border-radius:100px;font-size:13px;color:var(--accent);font-weight:600}.studio-grid{display:grid;grid-template-columns:minmax(280px,1fr) minmax(300px,1.16fr);gap:20px;align-items:start}.stack{display:grid;gap:20px}.card{border:1px solid var(--line);background:var(--paper);box-shadow:var(--shadow);border-radius:var(--radius);overflow:hidden}.pad{padding:23px}.card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:17px}.card h2{font-size:19px;margin:0 0 5px;letter-spacing:-.55px;font-weight:720}.card h3{font-size:16px;margin:0}.card-head p{font-size:13px;color:var(--muted);margin:0;line-height:1.45}.garment-image{height:190px;border-radius:12px;background:#edf0e8;display:grid;place-items:center;position:relative;overflow:hidden;cursor:crosshair}.garment-image img{width:100%;height:100%;object-fit:contain}.garment-image svg{height:165px;max-width:80%}.garment-image .photo-label{position:absolute;left:10px;bottom:10px;font-size:11px;background:#ffffffde;padding:5px 8px;border-radius:6px}.garment-info{display:flex;align-items:center;gap:12px;margin-top:15px}.color-chip{width:42px;height:42px;border-radius:10px;border:1px solid #00000018;flex-shrink:0}.garment-info b{display:block;font-size:16px;margin-bottom:4px}.garment-info small{color:var(--muted);font-size:13px}.garment-info .btn{margin-left:auto}.row{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.garment-controls{margin-top:15px;display:flex;gap:10px}.garment-controls select{flex:1;min-width:92px}.garment-controls input{width:42px;padding:4px;cursor:pointer}.field,select,input{background:#fff;border:1px solid #dedfd7;border-radius:9px;padding:10px 11px;min-width:0}.palette-wheel{display:grid;grid-template-columns:142px 1fr;gap:17px;align-items:center;margin:5px 0 22px}.wheel{position:relative;width:142px;height:142px;border-radius:50%;background:conic-gradient(#f26969 0deg,#f1ce67 60deg,#7ec77c 120deg,#62c4bd 180deg,#7890ce 240deg,#bc79c7 300deg,#f26969 360deg);display:grid;place-items:center;border:1px solid #00000010}.wheel:after{content:"";position:absolute;inset:28%;border-radius:50%;background:#fff;box-shadow:0 0 0 1px #00000008}.wheel-needle{position:absolute;inset:0;transform:rotate(var(--deg));z-index:2}.wheel-needle:after{content:"";position:absolute;width:16px;height:16px;border:3px solid #fff;border-radius:50%;left:calc(50% - 8px);top:6px;background:var(--color);box-shadow:0 0 0 1px #0005}.wheel-center{z-index:3;width:43px;height:43px;border-radius:50%;background:var(--color);border:1px solid #0001}.analysis-meta{font-size:14px;color:var(--muted);line-height:1.6}.analysis-meta strong{display:block;color:var(--ink);font-size:17px;margin-bottom:2px}.analysis-meta code{font-size:12px}.pair-list{display:grid;gap:8px}.pair{display:flex;align-items:center;gap:11px;text-align:left;border:1px solid var(--line);border-radius:11px;background:#fff;padding:10px 11px;width:100%;position:relative}.pair.active{background:#f1f5ee;border-color:#8fa58a}.pair:hover{border-color:#a9b4a5}.pair .swatch{height:32px;width:32px;border-radius:8px;border:1px solid #00000010;flex-shrink:0}.pair b{font-size:14px;display:block}.pair small{font-size:12px;color:var(--muted)}.pair .check{margin-left:auto;color:var(--accent);font-weight:800;font-size:17px}.preview{position:relative;background:radial-gradient(ellipse at 50% 46%,#f9f9f5 0,#e8e8df 72%);border-top:1px solid var(--line);border-bottom:1px solid var(--line);min-height:480px;display:grid;place-items:center;overflow:hidden}.preview svg{display:block;height:457px;max-width:100%;width:100%;filter:drop-shadow(6px 9px 5px #343f3320)}.preview .tag{position:absolute;top:16px;left:16px;background:#ffffffe3;border-radius:8px;padding:8px 10px;font-size:12px;color:var(--accent);font-weight:650}.preview .model-label{position:absolute;bottom:14px;right:14px;background:#ffffffa8;border:1px solid #fff8;border-radius:8px;padding:7px 10px;font-size:12px;color:var(--muted)}.preview-head{padding:23px 23px 17px}.look-details{padding:18px 23px 23px}.outfit-name{font-family:Georgia,serif;font-size:27px;font-weight:500;margin:0 0 5px;letter-spacing:-.6px}.look-chips{display:flex;gap:8px;margin:17px 0;flex-wrap:wrap}.look-chip{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:8px;padding:7px 9px;font-size:12px}.look-chip span{width:12px;height:12px;border-radius:50%;border:1px solid #0002}.look-actions{display:flex;gap:8px}.look-actions .primary{flex:1}.occasion-bar{display:flex;gap:8px;margin-bottom:24px;flex-wrap:wrap}.occasion{border:1px solid var(--line);border-radius:100px;background:#fff;padding:11px 17px;font-size:14px;font-weight:600}.occasion.active{background:var(--accent);color:white;border-color:var(--accent)}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:18px}.inventory-card{padding:14px}.inventory-card .garment-image{height:180px;cursor:default}.inventory-card h3{margin:12px 0 6px}.inventory-card .meta{font-size:13px;color:var(--muted)}.inventory-card .row{margin-top:14px}.empty{text-align:center;padding:54px 25px;color:var(--muted)}.empty h2{color:var(--ink);margin:12px}.empty .symbol{font-size:42px;color:#8a9a81}.empty .btn{margin-top:18px}.toolbar{display:flex;gap:10px;margin-bottom:20px}.toolbar input{flex:1}.profile-grid{display:grid;grid-template-columns:minmax(260px,1fr) minmax(240px,.8fr);gap:20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin:20px 0}.form-grid label{display:grid;gap:8px;font-size:14px;font-weight:620}.form-grid input,.form-grid select{width:100%}.profile-preview{min-height:430px}.profile-preview svg{height:400px}.discovery{display:grid;gap:12px}.gap-card{display:flex;gap:15px;align-items:center;padding:17px;border:1px solid var(--line);border-radius:12px}.gap-card .swatch{width:48px;height:48px;border-radius:10px;border:1px solid #0001}.gap-card h3{margin:0 0 5px}.gap-card p{font-size:14px;color:var(--muted);margin:0}.look-card .preview{min-height:330px}.look-card .preview svg{height:330px}.look-card .look-details{padding:16px}.look-card .outfit-name{font-size:24px}dialog{border:1px solid var(--line);border-radius:20px;width:min(510px,calc(100% - 30px));padding:24px;box-shadow:0 16px 90px #0003;color:var(--ink)}dialog::backdrop{background:#20302366;backdrop-filter:blur(3px)}.dialog-top{display:flex;justify-content:space-between;align-items:flex-start}.dialog-top h2{font-family:Georgia,serif;font-size:30px;font-weight:500;margin:5px 0 15px}.dialog-top .icon-btn{border:0}#toast{position:fixed;z-index:20;bottom:24px;left:50%;transform:translate(-50%,20px);background:var(--accent);color:#fff;padding:12px 20px;border-radius:12px;opacity:0;pointer-events:none;transition:.2s;max-width:90%;font-size:14px;box-shadow:0 8px 30px #0002}#toast.show{opacity:1;transform:translate(-50%,0)}.warning-text{font-size:13px;color:var(--muted);line-height:1.55;margin:10px 0 0}.section-title{margin:26px 0 14px;font-size:20px}.occasion-hint{margin:0 0 20px}.wear-entry{padding:14px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;font-size:14px}
@media(min-width:1250px){.studio-grid{grid-template-columns:minmax(340px,1fr) minmax(450px,1.22fr)}.preview{min-height:540px}.preview svg{height:515px}.garment-image{height:204px}.garment-image svg{height:183px}}
@media(max-width:960px){.shell{grid-template-columns:185px minmax(0,1fr)}.sidebar{padding:26px 13px}.page{padding:26px 21px}.topbar{padding:0 21px}.studio-grid{grid-template-columns:1fr}.preview{min-height:440px}.preview svg{height:420px}.profile-grid{grid-template-columns:1fr}.hero .pill{display:none}}
@media(max-width:640px){.shell{display:block}.sidebar{height:auto;position:fixed;bottom:0;top:auto;left:0;right:0;z-index:10;border:0;border-top:1px solid var(--line);padding:5px 3px max(7px,env(safe-area-inset-bottom));background:#fff}.brand,.nav-label,.sidebar-bottom{display:none}.sidebar nav{display:flex;justify-content:space-around}.nav{width:auto;flex:1;margin:0;padding:9px 1px 7px;display:grid;justify-items:center;gap:5px;font-size:10px;border-radius:8px}.nav span{font-size:21px}.nav small{display:none}main{padding-bottom:74px}.topbar{height:66px;padding:0 15px;gap:9px}.top-profile{display:grid;width:34px;height:34px}.crumb{font-size:12px}.crumb span{margin:0 3px}.topbar .btn{padding:9px 10px;font-size:12px}.page{padding:24px 14px 28px}.hero h1{font-size:38px}.hero p{font-size:14px}.pad{padding:17px}.preview-head,.look-details{padding:17px}.preview{min-height:390px}.preview svg{height:378px}.form-grid{gap:12px}.grid{grid-template-columns:1fr 1fr;gap:10px}.inventory-card{padding:10px}.inventory-card .garment-image{height:130px}.inventory-card .garment-image svg{height:115px}.inventory-card .row .btn{padding:8px;font-size:12px}.look-card{grid-column:1/-1}.toolbar{gap:6px}.toolbar select{max-width:126px}.occasion{padding:9px 13px}.hero{margin-bottom:20px}.palette-wheel{grid-template-columns:135px 1fr}}

/* Studio: keep the garment, preview and live swatches in one visual workspace. */
.studio-active .topbar #quickAdd{display:none}
.studio-active .page{max-width:1250px;padding-top:30px}
.studio-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}
.studio-title h1{font-family:Georgia,"Times New Roman",serif;font-size:46px;font-weight:500;letter-spacing:-2px;line-height:1.1;margin:0 0 8px}
.studio-title p{margin:0;color:var(--muted);font-size:16px}
.studio-title .btn{padding:12px 19px;min-height:44px}
.piece-row{display:flex;align-items:center;gap:15px;padding:13px 17px;border:1px solid var(--line);border-radius:14px;background:#fff;margin-bottom:16px}
.piece-thumb{width:64px;height:64px;flex:0 0 64px;background:#eef0e9;display:grid;place-items:center;border-radius:9px;overflow:hidden}
.piece-thumb img{width:100%;height:100%;object-fit:cover}
.piece-thumb svg{width:58px;height:58px}
.piece-meta{flex:1;min-width:0}
.piece-meta strong{font-size:17px;font-weight:690;display:block;line-height:1.35;overflow:hidden;text-overflow:ellipsis}
.piece-meta>span{font-size:14px;color:var(--muted);display:flex;align-items:center;gap:7px;margin-top:6px}
.piece-meta i{display:inline-block;width:13px;height:13px;border:1px solid #0002;border-radius:50%;flex:none}
.text-button{border:0;padding:7px 0;background:transparent;font-size:14px;color:var(--accent);font-weight:680;white-space:nowrap}
.text-button:hover{text-decoration:underline}
.studio-board{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);grid-template-areas:"photo info" "photo choices" "photo actions" "note note";gap:0;background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:var(--shadow)}
.studio-photo{grid-area:photo;min-height:530px;background:#d1d1d1;display:grid;place-items:center;overflow:hidden}
.photo-model{position:relative;height:100%;width:100%;display:grid;place-items:center;overflow:hidden;background:#c9c9c9}
.model-canvas{display:block;width:auto;height:100%;max-width:100%;object-fit:contain;opacity:0}
.photo-model.ready .model-canvas{opacity:1}
.model-loading{position:absolute;inset:0;display:grid;place-items:center;color:#5e625c;font-size:14px;padding:16px;text-align:center}
.photo-model.ready .model-loading{display:none}
.studio-photo .photo-model{height:530px;max-width:100%;background:radial-gradient(ellipse at center,#cecece,#bfbfbf)}
.studio-photo .model-canvas{height:100%;width:auto;max-width:none}
.outfit-info{grid-area:info;padding:34px 28px 18px;align-self:end;min-width:0}
.outfit-kicker{font-size:12px;letter-spacing:1.3px;color:#697669;font-weight:750}
.outfit-info h2{font-family:Georgia,serif;font-weight:500;font-size:34px;letter-spacing:-1px;line-height:1.12;margin:9px 0}
.pair-explanation{font-size:14px;color:var(--muted);line-height:1.5;margin:0 0 23px}
.outfit-info .look-chips{display:grid;gap:10px;margin:0 0 21px}
.outfit-info .look-chip{font-size:15px;border:0;padding:0;gap:10px}
.outfit-info .look-chip span{width:17px;height:17px;border-radius:5px}
.model-settings{border-bottom:1px solid #9da99a;padding-bottom:2px}
.studio-choices{grid-area:choices;padding:7px 28px 20px}
.choice-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 0 10px}
.choice-heading h3{font-size:16px;margin:0}
.choice-heading>span{font-size:14px;color:var(--muted)}
.color-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.color-option{min-width:0;padding:0;border:0;display:grid;gap:6px;justify-items:center;background:transparent;font-size:13px;font-weight:550;text-align:center;color:var(--muted)}
.color-option>span:last-child{max-width:100%;overflow-wrap:anywhere}
.option-color{width:100%;max-width:64px;aspect-ratio:1;border:1px solid #00000015;border-radius:10px;display:grid;place-items:center}
.color-option.selected{font-weight:750;color:var(--accent)}
.color-option.selected .option-color{outline:2px solid var(--accent);outline-offset:3px}
.option-tick{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#fff;color:#334437;font-size:15px;box-shadow:0 1px 4px #0002}
.studio-actions{grid-area:actions;align-self:start;padding:0 28px 26px;display:flex;gap:9px}
.studio-actions .primary{flex:1}
.studio-actions .btn{min-height:44px}
.preview-note{grid-area:note;margin:0;border-top:1px solid var(--line);padding:11px 17px;font-size:12px;color:var(--muted);line-height:1.4;background:#fafaf8}
.studio-more{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:15px}
.studio-details{background:#fff;border:1px solid var(--line);border-radius:13px;overflow:hidden}
.studio-details summary{cursor:pointer;display:flex;align-items:center;gap:8px;font-size:15px;font-weight:680;padding:15px 16px;list-style:none}
.studio-details summary::-webkit-details-marker{display:none}
.studio-details summary::after{content:'+';font-size:21px;font-weight:400;color:#657461;margin-left:auto}
.studio-details[open] summary::after{content:'−'}
.studio-details summary span{font-size:13px;font-weight:450;color:var(--muted);margin-left:auto}
.details-body{padding:0 16px 16px}
.details-body .garment-controls{align-items:end;display:grid;grid-template-columns:1fr auto;margin:0 0 10px;gap:10px}
.details-body .garment-controls label{font-size:14px;font-weight:600;display:grid;gap:5px}
.details-body .garment-controls input{height:43px;width:58px}
.details-body .garment-image{margin-bottom:10px}
.details-body .palette-wheel{margin-bottom:12px}
.preview{min-height:440px;background:#c9c9c9}
.preview .photo-model{height:440px}
.preview .tag,.preview .model-label{z-index:1}
.look-card .preview{min-height:350px}
.look-card .preview .photo-model{height:350px}
.profile-preview .photo-model{height:440px}
.closet-shortcuts{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
@media(max-width:960px){
 .studio-active .page{padding-top:24px}
 .studio-photo{min-height:440px}
 .studio-photo .photo-model{height:440px}
 .outfit-info{padding:24px 18px 14px}
 .outfit-info h2{font-size:29px}
 .studio-choices{padding:5px 18px 18px}
 .studio-actions{padding:0 18px 20px}
 .color-options{gap:6px}
 .color-option{font-size:12px}
 .studio-more{grid-template-columns:1fr}
}
@media(max-width:640px){
 .studio-active .topbar{height:51px;background:var(--bg);border-bottom:0}
 .studio-active .crumb{font-size:0}
 .studio-active .crumb::before{content:'wardrobe';font-size:27px;font-weight:750;letter-spacing:-1.8px;color:var(--accent)}
 .studio-active .crumb span,.studio-active .crumb b{display:none}
 .studio-active .page{padding:5px 13px 18px}
 .studio-title{margin-bottom:13px;gap:8px;align-items:center}
 .studio-title h1{font-size:32px;letter-spacing:-1.25px;margin:0}
 .studio-title p{display:none}
 .studio-title .btn{min-height:40px;padding:9px 12px;font-size:13px}
 .piece-row{gap:10px;padding:9px 12px;margin-bottom:12px;border-radius:13px}
 .piece-thumb{width:49px;height:49px;flex-basis:49px}
 .piece-thumb svg{width:46px;height:46px}
 .piece-meta strong{font-size:15px}
 .piece-meta>span{font-size:13px;margin-top:3px;gap:5px}
 .text-button{font-size:13px}
 .studio-board{grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);grid-template-areas:"photo info" "choices choices" "actions actions" "note note";border-radius:16px}
 .studio-photo{min-height:330px}
 .studio-photo .photo-model{height:330px}
 .studio-photo .model-canvas{height:100%;max-width:none}
 .outfit-info{padding:15px 12px 12px;align-self:center}
 .outfit-kicker{font-size:10px;letter-spacing:.8px}
 .outfit-info h2{font-size:25px;margin:7px 0}
 .pair-explanation{font-size:12px;line-height:1.4;margin:0 0 18px}
 .outfit-info .look-chips{gap:8px;margin:0 0 17px}
 .outfit-info .look-chip{font-size:13px;gap:7px;line-height:1.35}
 .outfit-info .look-chip span{width:15px;height:15px;flex:none}
 .model-settings{font-size:12px}
 .studio-choices{padding:15px 15px 14px;border-top:1px solid var(--line)}
 .choice-heading{margin-bottom:11px}
 .choice-heading h3{font-size:15px}
 .choice-heading>span{font-size:13px}
 .color-options{gap:10px}
 .option-color{max-width:48px;border-radius:9px;aspect-ratio:1.05}
 .color-option{font-size:12px;gap:7px}
 .studio-actions{padding:0 14px 13px;gap:8px}
 .studio-actions .btn{min-height:40px;font-size:14px}
 .preview-note{font-size:11px;padding:9px 13px}
 .studio-more{gap:9px;margin-top:12px}
 .studio-details summary{padding:13px;font-size:14px}
 .studio-details summary span{font-size:12px}
 .sidebar .nav[data-tab="saved"],.sidebar .nav[data-tab="discover"]{display:none}
 .sidebar nav{gap:8px;padding:0 12px}
 .sidebar .nav{font-size:12px;min-height:52px;max-width:140px}
 .preview,.profile-preview{min-height:380px}
 .preview .photo-model,.profile-preview .photo-model{height:380px}
 .look-card .preview{min-height:340px}
 .look-card .preview .photo-model{height:340px}
 .closet-shortcuts{margin-bottom:13px}
}
@media(max-width:360px){
 .studio-title h1{font-size:29px}
 .studio-title .btn{font-size:12px;padding:8px 10px}
 .studio-photo{min-height:295px}
 .studio-photo .photo-model{height:295px}
 .outfit-info h2{font-size:23px}
 .outfit-info{padding:12px 9px}
 .color-options{gap:6px}
 .piece-type{display:none}
}
/* Absolute sizing keeps the full-length photograph within the preview frame. */
.photo-model{display:block}
.model-canvas,.studio-photo .model-canvas{position:absolute;left:50%;bottom:0;width:auto;height:100%;max-width:none;transform:translateX(-50%)}
.piece-type{display:inline-flex;align-items:center;gap:2px}
.piece-type select{color:var(--muted);font-size:inherit;font-weight:600;padding:3px 2px;border:0;border-radius:4px;background:transparent;max-width:92px}
.color-option>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}
@media(max-width:640px){
 .studio-active .topbar{height:44px}
 .studio-title{margin-bottom:9px}
 .piece-row{padding:7px 10px;margin-bottom:10px}
 .piece-thumb{width:44px;height:44px;flex-basis:44px}
 .piece-thumb svg{width:41px;height:41px}
 .studio-photo{min-height:305px}
 .studio-photo .photo-model{height:305px}
 .studio-choices{padding:11px 13px}
 .color-options{gap:6px}
 .color-option{font-size:11.5px}
 .option-color{max-width:45px}
 .sidebar .nav.related{background:#e8eee3;color:var(--accent);font-weight:700}
 .sidebar .nav[data-tab="closet"]{min-width:110px}
}
@media(max-width:360px){
 .studio-photo{min-height:285px}
 .studio-photo .photo-model{height:285px}
 .piece-type{display:inline-flex}
 .piece-type select{max-width:69px}
 .piece-meta>span{gap:3px}
}

/* Color-first studio: analysis, three choices, then the outfit. */
.studio-active .page{max-width:890px;padding-top:27px}
.studio-page{max-width:790px;margin:0 auto}
.studio-title{margin-bottom:19px}
.studio-start{padding:44px 22px 36px;text-align:center;display:grid;justify-items:center;gap:15px}
.studio-start h2{font-family:Georgia,serif;font-size:29px;font-weight:500;margin:0}
.studio-start p{font-size:16px;color:var(--muted);line-height:1.6;margin:0 0 7px;max-width:410px}
.studio-start .btn{padding:15px 22px;min-height:48px;font-size:15px}
.studio-start .text-button{font-size:14px}
.upload-art{width:126px;height:102px;position:relative;display:grid;place-items:center;color:var(--accent);margin-bottom:10px}
.upload-art svg{width:57px;height:57px;background:#fff;border-radius:15px;padding:7px;box-shadow:0 4px 15px #283d2710;position:relative;transform:rotate(-6deg)}
.upload-palette{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;gap:7px;transform:rotate(7deg)}
.upload-palette i{width:23px;height:82px;border-radius:8px;background:#788265}
.upload-palette i:nth-child(2){background:#e5dbc5}
.upload-palette i:nth-child(3){background:#344761}
.upload-palette i:nth-child(4){background:#bc9fbf}
.analysis-card{padding:21px 23px;margin-bottom:16px}
.detected-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.detected-head h2,.matching-header h2,.outfit-preview-title h2{font-size:20px;letter-spacing:-.45px;margin:0 0 13px;font-weight:720}
.detected-value{display:flex;gap:13px;align-items:center}
.detected-swatch{width:54px;height:54px;border-radius:12px;border:1px solid #0002;flex:none}
.detected-value strong{display:block;font-size:21px;letter-spacing:-.3px;font-weight:720;line-height:1.2}
.detected-value code{display:block;color:var(--muted);font-family:ui-monospace,SFMono-Regular,monospace;font-size:14px;margin-top:5px}
.detected-photo{text-align:center;flex:none}
.detected-photo .piece-thumb{width:76px;height:76px;border:1px solid #0001}
.detected-photo .piece-thumb img{object-fit:cover}
.detected-photo small{display:block;color:var(--muted);font-size:11px;margin-top:5px}
.harmony-row{display:flex;align-items:center;gap:20px;margin:20px 0 0;padding:18px 0;border-top:1px solid var(--line)}
.analysis-wheel{width:120px;height:120px;flex:0 0 120px}
.analysis-wheel .wheel-center{width:39px;height:39px}
.analysis-wheel .wheel-needle::after{top:4px}
.harmony-description h3{font-size:16px;font-weight:650;margin:0 0 7px}
.harmony-description p{font-size:15px;color:var(--muted);line-height:1.4;margin:0 0 8px}
.hue-readout{display:inline-block;font-size:13px;color:var(--accent);font-weight:650;border-radius:6px;background:#edf2e9;padding:5px 9px}
.analysis-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0 0;border-top:1px solid var(--line)}
.analysis-footer label{font-size:14px;font-weight:600;display:flex;gap:8px;align-items:center;color:var(--muted)}
.analysis-footer select{font-size:14px;font-weight:650;padding:8px 12px}
.refine-details{margin-top:12px}
.refine-details summary{font-size:14px;font-weight:600;color:var(--accent);cursor:pointer;list-style:none;display:flex;align-items:center;gap:7px}
.refine-details summary::-webkit-details-marker{display:none}
.refine-details summary::before{content:'+';font-size:17px;line-height:1}
.refine-details[open] summary::before{content:'−'}
.refine-details .details-body{padding:12px 0 0}
.refine-details .garment-image{height:auto;max-height:320px;min-height:140px}
.refine-details .garment-image img{height:auto;max-height:320px;width:100%;object-fit:contain}
.manual-color{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px;font-weight:600;margin-top:11px}
.manual-color input{width:64px;height:36px;padding:3px}
.matching-card{padding:23px;scroll-margin-top:12px;overflow:hidden}
.matching-header h2{margin-bottom:5px}
.matching-header p{font-size:15px;color:var(--muted);margin:0 0 17px;line-height:1.45}
.recommendation-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:13px}
.recommendation{display:flex;flex-direction:column;align-items:stretch;gap:5px;min-width:0;padding:8px;border-radius:12px;border:1px solid var(--line);background:#fff;text-align:left}
.recommendation.selected{background:#f0f4ee;border-color:#81937c;box-shadow:0 0 0 1px #81937c}
.rec-swatch{height:58px;border-radius:7px;border:1px solid #0001;display:grid;place-items:center;margin-bottom:3px}
.recommendation strong{font-size:15px;font-weight:700;line-height:1.3;overflow-wrap:anywhere}
.recommendation small{font-size:12px;line-height:1.2;color:var(--muted)}
.selected-pair{display:flex;align-items:center;gap:9px;font-size:14px;line-height:1.45;background:#f5f6f2;color:var(--muted);border-radius:9px;padding:11px 12px;margin:0 0 22px}
.pair-dot{width:17px;height:17px;border-radius:50%;border:1px solid #0002;flex:none}
.outfit-preview-title{display:flex;align-items:center;justify-content:space-between;margin:0 0 12px;gap:12px}
.outfit-preview-title h2{margin:0}
.outfit-stage{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);background:#f8f8f5;border:1px solid var(--line);border-radius:13px;overflow:hidden}
.outfit-stage .studio-photo{min-height:390px;grid-area:auto}
.outfit-stage .studio-photo .photo-model{height:390px}
.outfit-stage .outfit-info{align-self:center;grid-area:auto;padding:22px}
.outfit-stage .outfit-info h3{font-family:Georgia,serif;font-weight:500;font-size:27px;letter-spacing:-.5px;line-height:1.16;margin:0 0 20px}
.outfit-stage .look-chips{margin:0}
.matching-card .studio-actions{padding:16px 0 0}
.matching-card .preview-note{border:0;background:transparent;padding:10px 0 0;font-size:12px}
@media(max-width:640px){
 .studio-active .page{padding:6px 13px 20px}
 .studio-title{margin-bottom:12px}
 .studio-title h1{font-size:32px}
 .studio-start{padding:43px 19px 33px}
 .analysis-card{padding:17px 15px;margin-bottom:13px}
 .detected-head h2,.matching-header h2,.outfit-preview-title h2{font-size:19px;margin-bottom:11px}
 .detected-value{gap:10px}
 .detected-swatch{width:49px;height:49px}
 .detected-value strong{font-size:21px}
 .detected-value code{font-size:13px}
 .detected-photo .piece-thumb{width:65px;height:65px}
 .harmony-row{padding:13px 0;margin-top:13px;gap:15px}
 .analysis-wheel{width:103px;height:103px;flex-basis:103px}
 .analysis-wheel .wheel-center{width:33px;height:33px}
 .harmony-description h3{font-size:15px;margin-bottom:5px}
 .harmony-description p{font-size:14px}
 .hue-readout{font-size:12px}
 .analysis-footer{padding-top:9px}
 .analysis-footer select{padding:5px 8px}
 .refine-details{margin-top:9px}
 .matching-card{padding:16px 14px;scroll-margin-top:4px}
 .matching-header h2{margin-bottom:5px}
 .matching-header p{font-size:14px;margin-bottom:13px}
 .recommendation-row{gap:8px;margin-bottom:11px}
 .recommendation{padding:6px;gap:4px;border-radius:10px}
 .rec-swatch{height:45px}
 .recommendation strong{font-size:13px}
 .recommendation small{font-size:11px}
 .selected-pair{font-size:12px;padding:9px 10px;margin-bottom:16px}
 .outfit-preview-title{margin-bottom:10px}
 .outfit-preview-title h2{margin:0}
 .outfit-stage{grid-template-columns:minmax(0,1.16fr) minmax(0,1fr)}
 .outfit-stage .studio-photo{min-height:300px}
 .outfit-stage .studio-photo .photo-model{height:300px}
 .outfit-stage .outfit-info{padding:12px 10px}
 .outfit-stage .outfit-info h3{font-size:24px;margin-bottom:16px}
 .outfit-stage .look-chip{font-size:13px}
 .matching-card .studio-actions{padding:12px 0 0}
}

/* Imperial measurements in the profile. */
.height-fields{border:0;padding:0;margin:0;min-width:0}
.height-fields legend{padding:0;font-size:14px;font-weight:620;margin-bottom:8px}
.height-inputs{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.height-inputs label{position:relative;display:block;min-width:0}
.height-inputs input{padding-right:27px;width:100%}
.height-inputs label span{position:absolute;right:9px;top:50%;transform:translateY(-50%);font-size:13px;color:var(--muted);pointer-events:none}
.height-inputs input::-webkit-inner-spin-button,.height-inputs input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.height-inputs input{-moz-appearance:textfield;appearance:textfield}

/* The Studio and saved looks are the only main navigation destinations. */
@media(max-width:640px){
 .sidebar .nav[data-tab="saved"]{display:grid}
 .sidebar nav{gap:10px;justify-content:center}
 .sidebar .nav{max-width:none;flex:1}
 .topbar{height:51px;background:var(--bg);border-bottom:0}
 .crumb{font-size:0}
 .crumb::before{content:'wardrobe';font-size:27px;font-weight:750;letter-spacing:-1.8px;color:var(--accent)}
 .crumb span,.crumb b{display:none}
}

/* Natural photo proportions are preserved independently of the frame. */
.model-canvas,.studio-photo .model-canvas{position:absolute;inset:0;width:100%;height:100%;max-width:100%;object-fit:contain;transform:none}
main,.page,.studio-page,.matching-card,.outfit-stage,.outfit-stage .studio-photo,.outfit-stage .outfit-info{min-width:0;max-width:100%}
.outfit-stage .outfit-info h3,.outfit-stage .look-chip{overflow-wrap:anywhere}
.outfit-stage .look-chip span{flex:none}
.body-match-label{font-size:13px;color:var(--muted);line-height:1.4;margin:14px 0 0}
.model-match-note{padding:13px 17px;color:var(--muted);font-size:14px;line-height:1.5}
@media(max-width:640px){
 .outfit-stage .outfit-info h3{font-size:22px}
 .outfit-stage .outfit-info{padding:12px 10px}
 .recommendation-row{min-width:0}
 .recommendation{min-width:0}
}

/* Keep the detected color card focused on the user's garment. */
.analysis-footer{margin-top:16px}
@media(max-width:640px){.analysis-footer{margin-top:12px}}

/* Wardrobe — Stride-inspired slate and warm orange. */
body{background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.sidebar{background:var(--panel);border-color:var(--line)}
.brand{font-size:29px;font-weight:760;letter-spacing:-1.6px;gap:9px;margin-left:0;color:var(--ink)}
.mark{background:#2a3444;color:var(--accent);border:1px solid #3b4655;width:40px;height:40px;flex:none}
.mark svg{width:28px}
.nav-label,.eyebrow{color:#8894a7;font-weight:650;letter-spacing:1.1px}
.nav:hover{background:#293241;color:var(--ink)}
.nav.active,.sidebar .nav.related{background:#3c2f2c;color:var(--accent);font-weight:700}
.profile-link{color:var(--ink)}
.avatar,.top-profile{background:#3c2f2c;color:var(--accent);border:1px solid #79503e}
.profile-arrow{color:var(--muted)}
.local-note{border-color:var(--line);color:var(--muted)}
.local-note span{background:var(--accent)}
.topbar{background:var(--bg);border-color:var(--line)}
.crumb{color:var(--muted)}
.crumb span{color:#6d778a}
.crumb b{color:var(--ink)}
.mobile-brand{display:none}
.btn,.icon-btn{background:var(--panel);border:1px solid var(--line);color:var(--ink);border-radius:10px}
.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text);font-weight:750}
.btn:hover{filter:brightness(1.08)}
.secondary{background:#303a4a;border-color:#485568;color:var(--ink)}
.card{background:var(--paper);border-color:var(--line);box-shadow:var(--shadow)}
.hero h1,.studio-title h1{font-family:inherit;font-weight:720;font-size:clamp(32px,4vw,43px);letter-spacing:-1.65px}
.hero p,.studio-title p{font-size:16px;color:var(--muted)}
.studio-start h2,.outfit-name,.outfit-info h2,.outfit-stage .outfit-info h3{font-family:inherit;font-weight:670;letter-spacing:-.65px}
.studio-start h2{font-size:26px}
.empty .symbol{color:var(--accent)}
.upload-art{color:var(--accent)}
.upload-art svg{background:var(--panel);box-shadow:0 4px 15px #0004;border:1px solid var(--line)}
.upload-palette i{background:#596579}
.upload-palette i:nth-child(2){background:#ffa877}
.upload-palette i:nth-child(3){background:#35445c}
.upload-palette i:nth-child(4){background:#bcc5d5}
.piece-thumb,.garment-image{background:#303b4d}
.garment-image img,.piece-thumb img{background:#303b4d}
.detected-value strong{color:var(--ink)}
.detected-value code{color:var(--muted)}
.detected-swatch,.rec-swatch,.pair-dot,.look-chip span{border-color:#ffffff29}
.analysis-footer{border-color:var(--line)}
select,input,.field{background:var(--panel);border:1px solid #465267;color:var(--ink);border-radius:9px}
input::placeholder{color:#78859a}
input[type=color]{background:var(--panel);border-color:#465267}
.refine-details summary,.text-button,.model-settings{color:var(--accent)}
.refine-details[open] .details-body{border-radius:10px}
.recommendation{background:var(--panel);border-color:#414c60;color:var(--ink);border-radius:11px}
.recommendation.selected{background:#3b302f;border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.recommendation strong{color:var(--ink)}
.recommendation.selected strong{color:#ffe1cf}
.recommendation small{color:var(--muted)}
.option-tick{background:var(--accent);color:var(--accent-text);box-shadow:0 2px 5px #0003}
.selected-pair{background:var(--panel);border:1px solid #394456;color:#d3dbe8;padding:12px}
.outfit-stage{background:var(--panel);border-color:var(--line)}
.outfit-stage .outfit-info h3{font-size:25px;color:var(--ink)}
.look-chip{background:transparent;border-color:var(--line);color:#dce3ef}
.outfit-stage .look-chip{color:#dce3ef}
.body-match-label,.model-match-note,.warning-text,.preview-note,.model-label{color:var(--muted)}
.preview .tag,.preview .model-label{background:#1a202de6;border-color:#3d4a5b;color:#e6eaf3}
.model-label{color:#d6dce7}
#toast{background:#303a4b;color:var(--ink);border:1px solid var(--accent)}
.profile-grid .preview-head,.profile-grid .card{background:var(--paper)}
.height-inputs label span{color:var(--muted)}
@media(max-width:640px){
 .studio-active .topbar,.topbar{height:56px;padding:0 15px 0 13px;background:var(--bg);border-bottom:1px solid var(--line)}
 .crumb,.studio-active .crumb{display:none}
 .mobile-brand{display:flex;align-items:center;gap:8px;color:var(--ink);font-size:24px;letter-spacing:-1.25px;font-weight:740;margin-right:auto}
 .mobile-brand img{width:32px;height:32px;display:block}
 .sidebar{background:var(--panel);border-top:1px solid var(--line)}
 .sidebar .nav{font-size:13px;border-radius:9px}
 .sidebar .nav.active{background:#3c2f2c;color:var(--accent)}
 .studio-active .page{padding-top:15px}
 .studio-title h1{font-size:30px;letter-spacing:-1.1px}
 .studio-title .btn{padding:10px 12px}
 .studio-start h2{font-size:25px}
 .outfit-stage .outfit-info h3{font-size:21px;letter-spacing:-.5px}
 .selected-pair{padding:9px 10px}
}
[hidden]{display:none!important}.auth-gate{min-height:100dvh;display:grid;place-items:center;padding:24px}.auth-card{width:min(100%,400px);text-align:center}.auth-card h1{font-size:36px;margin:12px 0 8px}.auth-card .btn{margin-top:24px}.auth-card [role=status]{min-height:24px;margin-top:14px}

.outfit-check{width:min(100%,920px);margin:0 auto}
.outfit-entry,.outfit-entry-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.outfit-entry p{margin:.3rem 0 0}
.outfit-check-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
.outfit-photo{position:relative;width:fit-content;margin:auto;max-width:100%}
.outfit-photo img{display:block;max-width:100%;max-height:480px;width:auto;height:auto;border-radius:12px}
.outfit-photo.sampling img{cursor:crosshair;touch-action:manipulation}
.outfit-marker{pointer-events:none;position:absolute;transform:translate(-50%,-50%);width:12px;height:12px;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #161b27}
.outfit-marker.selected{box-shadow:0 0 0 2px #ff9d6e}
.outfit-picker-title{margin:0 0 10px}
.outfit-pickers,.outfit-photo-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.outfit-pickers .btn{min-height:44px}
.outfit-pickers .btn[aria-pressed=true]{border-color:#ffa877;color:#ffa877}
.outfit-instruction{margin:10px 0}
.outfit-photo-actions{margin-top:12px}
.outfit-score{font-size:clamp(2.3rem,6vw,4rem);font-weight:750;color:#ffa877;line-height:1.15;margin-top:.35rem}
.outfit-score small{font-size:.42em;color:inherit}
.outfit-rating h3{margin:.9rem 0 .45rem}
.outfit-color{display:grid;grid-template-columns:32px minmax(0,1fr);gap:10px;align-items:center;padding:8px 0}
.outfit-color small{display:block;color:#b6bfce;overflow-wrap:anywhere}
.outfit-swatch{width:30px;height:30px;display:inline-block;border:1px solid #ffffff40;border-radius:8px;vertical-align:middle}
.outfit-swap{border:1px solid #ffa87755;border-radius:10px;padding:0 12px;margin:12px 0;background:#ffa8770b}
.outfit-swap p{display:flex;gap:8px;align-items:center}
@media(max-width:650px){.outfit-check-grid{grid-template-columns:1fr}.outfit-photo img{max-height:340px}.outfit-entry-actions .btn{font-size:.85rem}}
