/* One steady product preview, compact horizontal choices, explicit purchase. */
#sheetBackdrop .wardrobe-hero{grid-template-columns:minmax(0,1fr) 114px;gap:10px;padding:10px;margin-bottom:8px}
#sheetBackdrop .wardrobe-hero .studio-preview{height:clamp(190px,29vh,260px);position:relative}
#sheetBackdrop .studio-preview img{display:block;position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain;object-position:center;transition:opacity .12s ease}
#sheetBackdrop .studio-preview img[hidden]{display:none}
#sheetBackdrop .studio-preview[aria-busy=true] img{opacity:.45}
#sheetBackdrop .studio-preview[aria-busy=true] span{position:absolute;inset:auto 6px 8px;padding:6px 8px;border-radius:10px;font-size:11px;background:#f8faf0e8}
#sheetBackdrop .wardrobe-summary h3{font-size:16px;margin:6px 0}
#sheetBackdrop .wardrobe-summary p{font-size:11px;line-height:1.45}
#sheetBackdrop .wardrobe-state{font-size:11px}
#sheetBackdrop .wardrobe-angles button{font-size:12px;min-height:40px}
#sheetBackdrop .wardrobe-combine{font:inherit;font-size:11px;line-height:1.4;min-height:36px;width:100%;margin-top:8px;padding:6px;border:1px solid #bfccb6;border-radius:11px;background:#f6f8ef;color:#496547}
#sheetBackdrop .wardrobe-combine[aria-pressed=true]{background:#deead5}
#sheetBackdrop .wardrobe-grid{display:grid;grid-auto-flow:column;grid-auto-columns:108px;grid-template-columns:none;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:3px 2px 9px;scrollbar-width:thin}
#sheetBackdrop .wardrobe-grid .studio-item{min-width:0;padding:7px;scroll-snap-align:center;transition:background .15s,border-color .15s;align-self:stretch}
#sheetBackdrop .wardrobe-grid .studio-item>svg,#sheetBackdrop .wardrobe-grid .studio-item>img{width:86px;height:70px;max-width:100%;object-fit:contain;object-position:center;flex:none;border-radius:10px;background:#edf3e8;box-sizing:border-box}
#sheetBackdrop .wardrobe-grid .studio-item>img.star-river-card-art{padding:3px}
#sheetBackdrop .wardrobe-grid .studio-item>b{font-size:12px;line-height:1.35;min-height:32px}
#sheetBackdrop .wardrobe-grid .studio-item>small{font-size:10px;line-height:1.3}
#sheetBackdrop .wardrobe-list-head{margin:8px 0 5px}
#sheetBackdrop .wardrobe-note{font-size:10px;line-height:1.4;margin:4px 0 8px}
#sheetBackdrop .wardrobe-footer{flex-shrink:0}
.star-river-art>img{object-fit:contain!important;object-position:center!important;aspect-ratio:auto}
@media(max-height:700px){#sheetBackdrop .wardrobe-hero .studio-preview{height:156px}#sheetBackdrop .wardrobe-grid .studio-item>svg,#sheetBackdrop .wardrobe-grid .studio-item>img{height:52px}#sheetBackdrop .wardrobe-summary p{margin-bottom:3px}#sheetBackdrop .wardrobe-hint{max-height:44px;overflow:auto}#sheetBackdrop .wardrobe-note{margin-bottom:2px}}
@media(prefers-reduced-motion:reduce){#sheetBackdrop .studio-preview img,#sheetBackdrop .wardrobe-grid .studio-item{transition:none}}
@media(max-height:700px){
 #sheetBackdrop .sheet-content:has(.wardrobe-hero)>.studio-wallet{display:none}
 #sheetBackdrop .wardrobe-hero{padding:7px;gap:8px}
 #sheetBackdrop .wardrobe-hero .studio-preview{height:132px}
 #sheetBackdrop .wardrobe-summary>p{display:none}
 #sheetBackdrop .wardrobe-summary h3{font-size:14px}
 #sheetBackdrop .wardrobe-state{font-size:10px}
 #sheetBackdrop .wardrobe-combine{margin-top:5px;min-height:32px}
 #sheetBackdrop .wardrobe-angles button{min-height:36px}
 #sheetBackdrop .wardrobe-list-head{margin:3px 0}
 #sheetBackdrop .wardrobe-list-head button{min-height:36px;padding:4px}
 #sheetBackdrop .wardrobe-grid .studio-item>svg,#sheetBackdrop .wardrobe-grid .studio-item>img{height:44px}
}
/* 0.10.108: a vertical wardrobe, owned pieces first. Only the catalogue scrolls. */
#sheetBackdrop .wardrobe-browser .studio-scroll{display:flex;flex-direction:column;overflow:hidden;padding-bottom:0}
#sheetBackdrop .wardrobe-browser .wardrobe-filter{flex:none;margin-bottom:7px}
#sheetBackdrop .wardrobe-browser .wardrobe-hero{flex:none;grid-template-columns:108px minmax(0,1fr);padding:8px;gap:12px;margin-bottom:5px}
#sheetBackdrop .wardrobe-browser .wardrobe-hero .studio-preview{height:136px}
#sheetBackdrop .wardrobe-browser .wardrobe-summary>p{display:none}
#sheetBackdrop .wardrobe-browser .wardrobe-summary h3{font-size:16px;line-height:1.3;margin:5px 0}
#sheetBackdrop .wardrobe-browser .wardrobe-combine{margin-top:5px;min-height:34px}
#sheetBackdrop .wardrobe-browser .wardrobe-angles button{min-height:34px}
#sheetBackdrop .wardrobe-browser .wardrobe-list-head{flex:none;margin:2px 0 6px;min-height:24px}
#sheetBackdrop .wardrobe-list-head>span{font-size:11px;color:#6f816b}
#sheetBackdrop .wardrobe-catalog{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;flex:1;min-height:0;padding:0 2px 14px;scrollbar-width:thin;scrollbar-color:#a4b49e #eef2e7;touch-action:pan-y}
#sheetBackdrop .wardrobe-group{margin:0 0 13px}
#sheetBackdrop .wardrobe-group>h3{font-size:13px;margin:0 0 8px;padding:5px 2px;color:#46603f}
#sheetBackdrop .wardrobe-group[data-owned=true]>h3::before{content:'✓';margin-right:6px;color:#5e8556}
#sheetBackdrop .wardrobe-empty{font-size:11px;line-height:1.5;margin:0 0 10px;padding:8px 10px;background:#eff4e9;border-radius:10px;color:#718369}
#sheetBackdrop .wardrobe-browser .wardrobe-grid{display:grid;grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;scroll-snap-type:none;padding:0;gap:8px}
#sheetBackdrop .wardrobe-browser .wardrobe-grid .studio-item{position:relative;min-width:0;padding:7px 5px;scroll-snap-align:none;border-radius:15px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:3px}
#sheetBackdrop .wardrobe-browser .wardrobe-grid .studio-item>svg,#sheetBackdrop .wardrobe-browser .wardrobe-grid .studio-item>img{width:100%;height:64px;margin:0}
#sheetBackdrop .wardrobe-browser .wardrobe-grid .studio-item>b{font-size:11px;min-height:28px;line-height:1.25;margin:0;text-align:center}
#sheetBackdrop .wardrobe-browser .wardrobe-grid .studio-item>small{font-size:10px;line-height:1.3;text-align:center;margin:0}
#sheetBackdrop .wardrobe-browser .wardrobe-grid .studio-item[data-owned=true]>small{display:none}
#sheetBackdrop .wardrobe-owned-badge{display:block;background:#e0edda;color:#436e3c;border-radius:7px;font-size:10px;line-height:1.3;padding:3px 5px;margin-top:auto}
#sheetBackdrop .wardrobe-browser .wardrobe-note{display:none}
#sheetBackdrop .wardrobe-browser .wardrobe-confirm>.secondary{flex:0 0 72px;min-width:72px;white-space:nowrap}
@media(max-height:700px){
 #sheetBackdrop .wardrobe-browser>.studio-wallet{display:none}
 #sheetBackdrop .wardrobe-browser .wardrobe-hero{grid-template-columns:88px minmax(0,1fr);padding:6px;gap:8px}
 #sheetBackdrop .wardrobe-browser .wardrobe-hero .studio-preview{height:112px}
 #sheetBackdrop .wardrobe-browser .wardrobe-summary h3{font-size:14px;margin:3px 0}
 #sheetBackdrop .wardrobe-browser .wardrobe-combine,#sheetBackdrop .wardrobe-browser .wardrobe-angles button{min-height:30px;padding:4px}
 #sheetBackdrop .wardrobe-browser .wardrobe-state{font-size:10px}
 #sheetBackdrop .wardrobe-browser .wardrobe-list-head{margin:0 0 4px}
 #sheetBackdrop .wardrobe-browser .wardrobe-grid .studio-item>svg,#sheetBackdrop .wardrobe-browser .wardrobe-grid .studio-item>img{height:48px}
 #sheetBackdrop .wardrobe-browser .wardrobe-filter{margin-bottom:5px}
}
