/* Student wardrobe (#wardrobe). Every rule is scoped to this route; other destination pages keep home-preview.css. */
.service-wardrobe .sw-title{flex:1}
.service-wardrobe .sw-wallet{display:grid;justify-items:end;gap:1px;flex-shrink:0;min-width:155px;margin-left:auto;padding:9px 15px;border:1px solid #dcca90;border-radius:13px;background:#fff6d9;color:#745b29}
.service-wardrobe .sw-wallet>span{font-size:12px;font-weight:650}
.service-wardrobe .sw-wallet>strong{font-size:25px;line-height:1.25;font-variant-numeric:tabular-nums}
.service-wardrobe .sw-wallet>small{font-size:12px;color:#837047}
.service-wardrobe .sw-wallet.is-error{border-color:#d6bca8;background:#fff7ec}
.service-wardrobe .sw-wallet.is-error>small{color:#965e40}
#destination-view.is-wardrobe{padding-bottom:26px}
#destination-view.is-wardrobe #destination-content{max-width:1240px;min-height:0;padding:22px 30px 20px}
.service-wardrobe{--sw-line:#e7dcc3;--sw-card:#fffdf7;--sw-ink:#5d412b;--sw-on:#5f8a45;--sw-on-soft:#eef4df;--sw-muted:#8a7a62}
.sw-header{display:flex;align-items:center;gap:22px;margin-bottom:16px}
.sw-header .back-link{flex-shrink:0;margin:0;padding:0 14px 0 11px;min-height:40px;border:1px solid #ddd5bb;border-radius:999px;background:#fffef7}
.sw-header .back-link:hover{background:#f7f3e3}
.sw-title{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 16px;min-width:0}
.sw-title .destination-heading{font-size:27px;line-height:1.3;color:var(--sw-ink)}
.sw-title .destination-lead{margin:0;font-size:15px;line-height:1.6}
.sw-notes{margin:-4px 0 12px;padding:8px 14px;border-radius:10px;background:#fff3dc;color:#7d5a2b;font-size:13px}
.sw-layout{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,6fr);gap:22px;height:clamp(520px,calc(100svh - 318px),660px)}

/* Preview. The floor and rug are drawn from the composition box, so they follow its ground contact (x 44.9%, y 78%). */
.sw-preview,.sw-picker{display:flex;flex-direction:column;min-height:0;border:1px solid var(--sw-line);border-radius:18px;overflow:hidden;box-shadow:0 3px 0 #e6d9bb80}
.sw-preview{background:var(--sw-card)}
.sw-stage{position:relative;flex:1;min-height:0;display:flex;align-items:flex-end;justify-content:center;padding-bottom:4px;overflow:hidden;background:linear-gradient(#fbf6e6,#f4ecd3)}
.sw-slime::before{content:"";position:absolute;z-index:-2;left:-100vw;right:-100vw;top:78%;bottom:-100vh;background:linear-gradient(#ead9b4,#f2e6c9 46px);border-top:1px solid #dcc69a}
.sw-slime::after{content:"";position:absolute;z-index:-1;left:14.9%;width:60%;top:72.5%;height:11%;border-radius:50%;background:radial-gradient(closest-side,#fbf4e1 0 70%,#fbf4e100)}
.sw-name{position:absolute;z-index:3;left:16px;top:14px;padding:3px 12px;border:1px solid #f1e3bf;border-radius:7px;background:#fff9e9;box-shadow:1px 3px 6px #75561f1f;transform:rotate(-3deg);font-size:15px;font-weight:800;color:#775d3b}
.sw-hint{position:absolute;z-index:3;right:16px;top:17px;font-size:12px;color:var(--sw-muted)}
.sw-greet{position:absolute;inset:0;z-index:2;background:none;border-radius:18px 18px 0 0}
.sw-greet:focus-visible{outline-offset:-6px}
.sw-greet:disabled{cursor:default;opacity:1}
.sw-loading{position:absolute;left:16px;right:16px;top:45%;text-align:center;font-size:14px;color:#765733}
.sw-current{padding:14px 18px 16px;border-top:1px solid var(--sw-line);background:#fffef9}
.sw-current dl{display:grid;gap:7px;margin:0 0 13px}
.sw-current dl>div{display:grid;grid-template-columns:58px minmax(0,1fr);align-items:baseline;gap:10px}
.sw-current dt{font-size:12px;font-weight:700;color:var(--sw-muted)}
.sw-current dd{margin:0;font-size:14px;font-weight:650;color:#5b4935}
.sw-worn{display:flex;flex-wrap:wrap;gap:5px;margin:0;padding:0;list-style:none}
.sw-worn li{padding:1px 10px;border-radius:999px;background:var(--sw-on-soft);color:#4b633b;font-size:13px}
.sw-worn li.is-empty{padding:1px 0;background:none;color:#9a8d77;font-weight:500}
.sw-worn li.is-hidden{background:#f3eee2;color:var(--sw-muted)}
.sw-actions{display:flex;gap:10px}
.sw-clear{flex-shrink:0;min-height:48px;padding:0 16px;border:1px solid #dcd2b8;border-radius:10px;background:#fffdf3;color:#7a6346;font-size:14px;font-weight:650}
.sw-clear:hover:not(:disabled){background:#f8f1de}
.sw-clear:disabled{cursor:default;opacity:.5}
.service-wardrobe .sw-to-main{flex:1;width:auto;font-size:16px}

/* Picker: one category at a time; the list scrolls inside while the preview stays in view. */
.sw-picker{background:#fffcf3}
.sw-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:12px 12px 0;padding:4px;border-radius:14px;background:#f2e9d3}
.sw-tab{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border-radius:11px;background:none;font-size:15px;font-weight:700;color:#7a6650}
.sw-tab::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--dot)}
.sw-tab[data-category=body]{--dot:#8db66b}.sw-tab[data-category=color]{--dot:#eb9fb0}.sw-tab[data-category=face]{--dot:#e8b54b}.sw-tab[data-category=items]{--dot:#62b2cf}
.sw-tab:hover{background:#f8f1df;color:var(--sw-ink)}
.sw-tab[aria-selected=true]{background:#fffef9;color:#4a3a2a;box-shadow:0 1px 0 #d9c9a3,0 2px 6px #8a6a3418}
.service-wardrobe .sw-tab:focus-visible,.service-wardrobe .sw-card:focus-visible,.service-wardrobe .sw-filter:focus-visible,.service-wardrobe .sw-switch:focus-visible{outline-offset:2px}
.sw-panel{flex:1;min-height:0;overflow:auto;padding:14px 16px 16px;scrollbar-gutter:stable}
.sw-panel-note{margin:0 0 12px;font-size:13px;color:var(--sw-muted)}
.sw-grid--item+.sw-panel-note{margin:14px 0 0}
.sw-grid{display:grid;gap:10px}
.sw-grid--body{grid-template-columns:repeat(4,minmax(0,1fr))}
.sw-grid--color{grid-template-columns:repeat(auto-fill,minmax(96px,1fr))}
.sw-grid--face{grid-template-columns:repeat(3,minmax(0,1fr))}
.sw-grid--item{grid-template-columns:repeat(auto-fill,minmax(100px,1fr))}
.sw-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0;padding:8px 6px 9px;border:1px solid var(--sw-line);border-radius:14px;background:var(--sw-card);box-shadow:0 2px 0 #eadfc699;color:#5b4935;transition:transform .15s,box-shadow .15s}
.sw-card:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 0 #e3d4b2,0 6px 12px #8a6a3414}
.sw-card[aria-pressed=true]{border-color:var(--sw-on);background:var(--sw-on-soft);box-shadow:inset 0 0 0 1px var(--sw-on),0 2px 0 #c7d6ad}
.sw-card:disabled{cursor:default;opacity:1}
.sw-card[data-state=unavailable] .sw-art{opacity:.45;filter:grayscale(.6)}
.sw-check{position:absolute;z-index:1;top:6px;right:6px;display:none;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--sw-on);color:#fff;box-shadow:0 1px 0 #3f5f2f}
.sw-check .icon{width:14px;height:14px;stroke-width:3}
.sw-card[aria-pressed=true] .sw-check{display:grid}
.sw-art{position:relative;display:grid;place-items:center;width:100%;max-width:120px;aspect-ratio:1;overflow:hidden}
.sw-card-name{font-size:14px;font-weight:700;line-height:1.35;text-align:center;word-break:keep-all}
.sw-state{min-height:18px;font-size:12px;line-height:18px;color:var(--sw-muted);text-align:center}
.sw-card[aria-pressed=true] .sw-state{font-weight:700;color:#4b6f37}
.sw-card[data-state=unavailable] .sw-state{color:#a0663e}
.sw-card--item .sw-art{max-width:84px;margin:2px 0 4px;border-radius:12px;background:radial-gradient(closest-side,#fff6df,#fff6df00)}
.sw-card--item .sw-art img{display:block;width:100%;height:100%;object-fit:contain;user-select:none;pointer-events:none}
.sw-card--item .sw-art img.is-cropped{position:absolute;max-width:none;height:auto}
.sw-card--color{padding:14px 6px 9px}
.sw-card--color .sw-art{width:60px;margin-bottom:4px;overflow:visible}
.sw-swatch{width:44px;height:44px;border-radius:50%;background:var(--swatch);box-shadow:inset 0 -4px 6px #0000000f,inset 0 2px 3px #ffffffa0,0 0 0 3px #fff,0 0 0 4px #e3d8bf}
.sw-card--color[aria-pressed=true] .sw-swatch{box-shadow:inset 0 -4px 6px #0000000f,inset 0 2px 3px #ffffffa0,0 0 0 3px #fff,0 0 0 5px var(--sw-on)}
.sw-blush{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:14px;padding:10px 16px;border:1px solid var(--sw-line);border-radius:14px;background:var(--sw-card)}
.sw-blush-copy{display:flex;flex-direction:column}
.sw-blush-copy strong{font-size:15px;color:#5b4935}
.sw-blush-copy small{font-size:12px;color:var(--sw-muted)}
.sw-switch{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 4px;background:none;font-size:14px;font-weight:700;color:#7a6650}
.sw-switch-track{position:relative;width:52px;height:30px;border-radius:999px;background:#d9cfba;transition:background .15s}
.sw-switch-track span{position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #5a462a40;transition:transform .15s}
.sw-switch[aria-checked=true]{color:#4b6f37}
.sw-switch[aria-checked=true] .sw-switch-track{background:var(--sw-on)}
.sw-switch[aria-checked=true] .sw-switch-track span{transform:translateX(22px)}
.sw-switch-text{min-width:1.5em}
.sw-switch:disabled{cursor:default;opacity:.55}
.sw-filters{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.sw-filter{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 13px;border:1px solid #ddd2b6;border-radius:999px;background:#fffdf5;font-size:14px;font-weight:650;color:#6f5a42}
.sw-filter:hover{background:#f8f1de}
.sw-filter[aria-pressed=true]{background:var(--sw-on);border-color:#557d3d;color:#fffef5}
.sw-count{min-width:20px;padding:0 6px;border-radius:999px;background:#f0e7d2;font-size:12px;line-height:18px;text-align:center;color:#7a6650}
.sw-filter[aria-pressed=true] .sw-count{background:#ffffff33;color:#fffef5}
.sw-alert{margin:12px 0 0;padding:10px 14px;border-radius:10px;background:#fdeee4;color:#8a4a2a;font-size:14px}
.service-wardrobe .sw-notice{margin:14px 0 0}

/* Collection preview: selected friend and representative are distinct. */
.service-wardrobe .sw-collection{margin-bottom:16px;padding:12px 16px;border:1px solid var(--sw-line);border-radius:16px;background:#fffdf6}
.service-wardrobe .sw-collection-heading{display:flex;align-items:center;gap:16px;margin-bottom:9px;font-size:14px;color:var(--sw-ink)}
.service-wardrobe .sw-collection-heading>span{font-size:12px;color:var(--sw-muted)}
.service-wardrobe .sw-collection-list{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 5px}
.service-wardrobe .sw-card--slime{display:grid;grid-template-columns:76px 90px;grid-template-rows:1fr 1fr;column-gap:6px;min-width:195px;padding:6px 12px;align-items:center;text-align:left}
.service-wardrobe .sw-card--slime .sw-art{grid-row:1/3;height:66px;width:76px;overflow:visible}
.service-wardrobe .sw-card--slime .sw-card-name{align-self:end;text-align:left}
.service-wardrobe .sw-card--slime .sw-state{align-self:start;text-align:left}
.service-wardrobe .sw-card--slime .sw-check{width:18px;height:18px}
.service-wardrobe .sw-layout{height:clamp(500px,calc(100svh - 430px),620px)}
.service-wardrobe .sw-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
.service-wardrobe .sw-representative{width:100%;min-height:36px;margin-bottom:10px;border:1px solid #dbc987;border-radius:9px;background:#fff6d1;color:#77571f;font-size:13px;font-weight:700}
.service-wardrobe .sw-representative:disabled{opacity:1;cursor:default;background:#f5f0de}
.service-wardrobe .sw-inventory-summary{font-size:13px;color:var(--sw-muted);margin:0 0 10px}
.service-wardrobe .sw-transfer{max-width:420px;padding:26px;border:1px solid var(--sw-line);border-radius:18px;background:#fffdf4;color:var(--sw-ink);box-shadow:0 20px 80px #39261444}
.service-wardrobe .sw-transfer::backdrop{background:#30251e66}
.service-wardrobe .sw-transfer h2{font-size:21px;margin:0 0 12px}
.service-wardrobe .sw-transfer p{line-height:1.7}
.service-wardrobe .sw-transfer>div{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}
.service-wardrobe .sw-transfer button{padding:10px 18px;border-radius:10px;background:#eee6d4;font-weight:700}
.service-wardrobe .sw-transfer .sw-transfer-confirm{background:var(--sw-on);color:white}
