:root{color-scheme:light;--ink:#192d31;--muted:#52666a;--accent:#006b64;--line:#cddbd9;--paper:#f7faf9}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font-family:Arial,"Noto Sans",sans-serif;font-size:16px;line-height:1.5}
button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button{font:inherit;color:inherit;cursor:pointer;border:1px solid var(--line);border-radius:8px;background:white;min-height:44px;padding:10px 12px;white-space:normal;overflow-wrap:anywhere;text-align:left}
button:hover{border-color:var(--accent)}
button[aria-pressed=true]{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:#e5f1ed}
button:disabled{cursor:wait;opacity:.6}
a{color:var(--accent);text-underline-offset:4px;min-height:44px;display:inline-flex;align-items:center}
:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
.wardrobe{max-width:1280px;margin:auto;padding:12px 28px 40px}
.wardrobe-header{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:14px}
h1{font-size:clamp(25px,2.8vw,36px);line-height:1.2;letter-spacing:-.025em;margin:12px 0 16px}
h2{font-size:18px;margin:14px 0 10px}
.wardrobe-workspace{display:grid;grid-template-areas:"nav stage items";grid-template-columns:clamp(128px,15vw,196px) minmax(0,1fr) clamp(210px,25vw,320px);gap:clamp(12px,2vw,24px);align-items:start}
.wardrobe-stage-wrap{grid-area:stage;margin:0;position:sticky;top:10px}
.wardrobe-stage{display:grid;width:100%;aspect-ratio:3/4;background:#e8eeed;overflow:hidden}
.wardrobe-stage img{grid-area:1/1;display:block;width:100%;height:100%;object-fit:contain;min-width:0;min-height:0}
figcaption,.wardrobe-note{font-size:13px;color:var(--muted);margin-top:6px}
.wardrobe-rail-nav{grid-area:nav;min-width:0;padding:4px 12px 0 0;border-right:1px solid var(--line);position:sticky;top:10px}
.wardrobe-controls{grid-area:items;min-width:0;padding:4px 0 18px 16px;border-left:1px solid var(--line)}
.wardrobe-current-preview{display:none}
.wardrobe-scope{margin:10px 0 14px;font-size:14px;color:var(--muted)}
.wardrobe-summary{margin:0;border-top:1px solid var(--line)}
.wardrobe-summary>div{padding:9px 0;border-bottom:1px solid var(--line)}
.wardrobe-summary dt{font-size:14px;font-weight:bold}
.wardrobe-summary dd{margin:3px 0 0;font-size:14px;color:var(--muted);overflow-wrap:anywhere}
.wardrobe-groups,.wardrobe-slots{display:grid;gap:4px}
.wardrobe-groups{padding-bottom:12px;border-bottom:1px solid var(--line)}
.wardrobe-slots{padding-top:12px}
.wardrobe-rail-nav button{width:100%;padding:8px 10px;border:0;border-left:3px solid transparent;border-radius:0;background:transparent;box-shadow:none;text-align:left;font-size:14px}
.wardrobe-rail-nav button:hover{border-color:#7caeaa;background:#edf4f1}
.wardrobe-rail-nav button[aria-pressed=true]{border-color:var(--accent);box-shadow:none;background:#e5f1ed;font-weight:700}
.wardrobe-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.wardrobe-options>p{grid-column:1/-1;margin:0}
.wardrobe-options button{padding:6px;border:0;background:transparent;box-shadow:none;display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:flex-start;text-align:center;min-width:0}
.wardrobe-options button:hover,.wardrobe-options button[aria-pressed=true]{background:transparent;box-shadow:none}
.wardrobe-options button>span:last-child{font-size:14px;font-weight:600;line-height:1.35;max-width:100%;overflow-wrap:anywhere}
.wardrobe-option-art{position:relative;display:block;width:min(100%,112px);aspect-ratio:1;border:2px solid #cddbd9;border-radius:50%;background:#edf2ef;overflow:hidden;flex:none;transition:border-color .15s ease,box-shadow .15s ease}
.wardrobe-options button:hover .wardrobe-option-art{border-color:var(--accent)}
.wardrobe-options button[aria-pressed=true] .wardrobe-option-art{border-color:var(--accent);box-shadow:0 0 0 3px #d7e9e5}
.wardrobe-option-art img{display:block;position:absolute;max-width:none}
.wardrobe-option-item-image{inset:18%;width:64%;height:64%;object-fit:contain}
.wardrobe-option-art--background .wardrobe-option-item-image{inset:0;width:100%;height:100%;object-fit:cover}
.wardrobe-options [data-item=denim] .wardrobe-option-item-image{transform:scale(1.27)}
.wardrobe-options [data-item=brown-bag] .wardrobe-option-item-image{transform:scale(1.28)}
.wardrobe-option-crop{left:50%;top:-66%;width:285%;height:auto;transform:translateX(-50%)}
.wardrobe-option-art--model .wardrobe-option-crop,.wardrobe-option-art--hair .wardrobe-option-crop{top:0;width:350%}
.wardrobe-option-art--pose .wardrobe-option-crop{top:0;width:auto;height:100%}
.wardrobe-option-art--bottom .wardrobe-option-crop{top:-160%;width:265%}
.wardrobe-option-art--shoe .wardrobe-option-crop{top:-255%;width:285%}
.wardrobe-option-art--accessory .wardrobe-option-crop{left:-205%;top:-235%;width:400%;transform:none}
.wardrobe-option-empty{position:absolute;inset:0;display:grid;place-items:center;color:#70817d;font-size:36px;font-weight:300}
.wardrobe-option-check{display:none;position:absolute;top:4px;right:4px;width:23px;height:23px;border-radius:50%;background:var(--accent);color:#fff;font-size:15px;line-height:23px;text-align:center;font-weight:bold}
.wardrobe-options button[aria-pressed=true] .wardrobe-option-check{display:block}
.wardrobe-bag-strap{transform-origin:0 0;transform:translate(26.3%,12.3%) scale(.45)}
.wardrobe-bag-body{transform-origin:0 0;transform:translate(28.5%,16.9%) scale(.5)}
.wardrobe-status{font-size:14px;min-height:21px;color:var(--muted);margin:12px 0}
.wardrobe-actions{display:flex;flex-wrap:wrap;gap:10px}
.wardrobe-actions button:first-child{background:var(--accent);color:white;border-color:var(--accent)}
.wardrobe-details,.wardrobe-saved-details{margin-top:18px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:14px}
.wardrobe-details summary,.wardrobe-saved-details summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:600;color:var(--ink)}
.wardrobe-details summary::marker,.wardrobe-saved-details summary::marker{color:var(--accent)}
.wardrobe-saved{padding:0 0 12px;display:grid;gap:8px}
.wardrobe-saved p{font-size:14px}
/* Give the complete look most of the available height, including shoes. */
@media(min-width:600px){.wardrobe-stage{width:min(100%,calc((100svh - 160px)*.75));margin-inline:auto}.wardrobe-stage-wrap figcaption{text-align:center}}
@media(min-width:600px) and (max-width:767px){
  .wardrobe{padding:8px 12px 28px}
  .wardrobe-workspace{grid-template-areas:"nav nav" "stage items";grid-template-columns:minmax(0,54fr) minmax(0,46fr);gap:12px 16px}
  .wardrobe-rail-nav{position:static;padding:0 0 8px;border:0;border-bottom:1px solid var(--line)}
  .wardrobe-controls{padding:0 0 16px 12px}
  .wardrobe-stage-wrap{top:8px}
  h1{margin:10px 0 12px}
  .wardrobe-groups,.wardrobe-slots{display:flex;flex-wrap:wrap;gap:5px}
  .wardrobe-groups{padding-bottom:8px}
  .wardrobe-slots{padding-top:8px}
  .wardrobe-rail-nav button{width:auto;padding:7px 8px;border:1px solid var(--line);border-radius:8px;font-size:13px}
  .wardrobe-option-art{width:min(100%,88px)}
}
@media(max-width:599px){
  .wardrobe{padding:8px 12px 28px}
  .wardrobe-workspace{grid-template-areas:"stage" "nav" "items";grid-template-columns:minmax(0,1fr);gap:0}
  .wardrobe-stage-wrap{position:static}
  .wardrobe-rail-nav{position:static;margin-top:12px;padding:0 0 8px;border:0;border-bottom:1px solid var(--line)}
  .wardrobe-controls{margin-top:12px;padding:0;border:0}
  .wardrobe-groups,.wardrobe-slots{display:flex;flex-wrap:wrap;gap:5px}
  .wardrobe-groups{padding-bottom:8px}
  .wardrobe-slots{padding-top:8px}
  .wardrobe-rail-nav button{width:auto;padding:7px 9px;border:1px solid var(--line);border-radius:8px}
  h1{margin:10px 0 14px}
  .wardrobe-stage{max-width:100%}
  .wardrobe.wardrobe-stage-out .wardrobe-current-preview{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px;height:112px;padding:4px 12px;position:fixed;top:0;left:0;right:0;z-index:5;background:var(--paper);border-bottom:1px solid var(--line);box-shadow:0 5px 14px rgb(25 45 49 / .08)}
  .wardrobe-current-preview-stage{display:grid;width:72px;height:96px;background:#e8eeed}
  .wardrobe-current-preview-stage img{grid-area:1/1;display:block;width:100%;height:100%;object-fit:contain;min-width:0;min-height:0}
  .wardrobe-current-preview-copy{display:flex;flex-direction:column;min-width:0}
  .wardrobe-current-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:4px;min-width:0}
  .wardrobe-current-preview-heading strong{font-size:13px;line-height:1.35;white-space:nowrap}
  .wardrobe-current-preview-ai{flex:none;border:1px solid var(--accent);border-radius:8px;padding:0 4px;color:var(--accent);font-size:11px;line-height:17px;white-space:nowrap}
  .wardrobe-current-preview-outfit{display:grid;min-width:0;color:var(--muted);font-size:12px;line-height:1.15}
  .wardrobe-current-preview-outfit span{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .wardrobe-current-preview-copy a{align-self:start;margin-top:auto;font-size:13px}
}
/* Keep the complete look above the fold on tablet-width, single-column screens. */
@media(min-width:391px) and (max-width:599px){
  .wardrobe-stage{width:min(100%,max(240px,calc((100svh - 180px)*.75)));margin-inline:auto}
  .wardrobe-stage-wrap figcaption{text-align:center}
}
@media(prefers-reduced-motion:reduce){.wardrobe-option-art{transition:none}}
