/* Wallet stays outside the catalogue, visible throughout a fitting-room visit. */
#profile-dialog .wardrobe-wallet-panel{position:sticky;top:0;z-index:12;display:grid;grid-template-columns:1fr 1fr auto;gap:6px 12px;align-items:center;flex:none;padding:10px 12px;margin:0 0 10px;background:#fffdf8;border:1px solid #d3deea;border-radius:13px;box-shadow:0 4px 12px #163b6412;color:#153b61}
#profile-dialog .wardrobe-wallet-value{display:flex;flex-direction:column;gap:3px;min-width:0}
#profile-dialog .wardrobe-wallet-value>span{font:800 11px/1.2 system-ui;color:#4e6580}
#profile-dialog .wardrobe-wallet-value>strong{font:900 22px/1.1 system-ui;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;color:#153b61}
#profile-dialog .wardrobe-wallet-panel>a{font:800 11px/1.2 system-ui;color:#185e9e;text-decoration:none}
#profile-dialog #studio-wallet-status{grid-column:1/-1;margin:1px 0 0;padding-top:5px;border-top:1px solid #dde7ec;font:700 11px/1.4 system-ui;color:#30634a;overflow-wrap:anywhere}
#profile-dialog #studio-wallet-status[hidden]{display:none}
#profile-dialog #studio-wallet-status[data-kind=error]{color:#9d3528}
#profile-dialog .wardrobe-wallet-panel.has-purchase{animation:wardrobe-wallet-pulse .65s ease-out}
@keyframes wardrobe-wallet-pulse{0%{background:#dcf9e5;box-shadow:0 0 0 3px #6ac89866}100%{background:#fffdf8;box-shadow:0 4px 12px #163b6412}}
#profile-dialog .wardrobe-category-carousel{top:var(--wardrobe-wallet-height,66px);gap:6px;padding:7px 4px 10px}
#profile-dialog .wardrobe-category-carousel button{flex-basis:78px;min-height:65px;transform:none;box-shadow:0 2px 0 #b7cbe2}
#profile-dialog .wardrobe-category-carousel button[aria-selected=true]{transform:none;box-shadow:0 2px 0 #07336f}
#profile-dialog .wardrobe-category-picker{position:sticky;top:var(--wardrobe-wallet-height,66px);z-index:9;padding:7px 0 9px;background:#f4f8ff}
#profile-dialog .wardrobe-category-label{display:flex;align-items:center;gap:10px;margin:0;font:800 12px/1.2 system-ui;color:#365875}
#profile-dialog .wardrobe-category-label select{flex:1;min-width:0;min-height:44px;padding:8px 30px 8px 12px;border:1px solid #a9c5df;border-radius:10px;background:white;color:#173d61;font:800 14px/1.2 system-ui}
#profile-dialog .wardrobe-category-label select:focus-visible{outline:3px solid #edb835;outline-offset:2px}
#profile-dialog .studio-shop-heading{position:static;box-shadow:none;margin:0;padding:4px 0}
#profile-dialog .studio-shop-heading h3{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#profile-dialog .studio-shop-heading>a,#profile-dialog .wardrobe-remove-options{display:none!important}
#profile-dialog .studio-shop-note{font-size:11px!important;line-height:1.4!important}
#profile-dialog .studio-shop-item [data-wardrobe-buy]{background:linear-gradient(#247dd1,#125494);font-size:13px;font-weight:900;min-height:42px}
#profile-dialog .wardrobe-item-badge{font:700 11px/1.3 system-ui;min-height:15px}
#profile-dialog .wardrobe-purchase-hint{margin:8px 0;font:600 11px/1.4 system-ui;color:#4b647f}
.wardrobe-purchase-dialog{box-sizing:border-box;width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow-y:auto;padding:22px;border:1px solid #c5d7e6;border-radius:20px;background:#fffdf8;color:#163955;box-shadow:0 20px 70px #102a4b45;font:14px/1.45 system-ui}
.wardrobe-purchase-dialog::backdrop{background:#0b233c9c;backdrop-filter:blur(3px)}
.wardrobe-purchase-dialog h2{margin:0 0 5px;font:900 22px/1.2 system-ui;color:#123758}
.wardrobe-purchase-dialog p{margin:8px 0 12px}
.wardrobe-purchase-product{display:flex;gap:15px;align-items:center;padding:10px 12px;background:#edf4fa;border:1px solid #d6e2ed;border-radius:13px}
.wardrobe-purchase-product [data-product-art]{width:76px;height:86px;flex:none;overflow:hidden}
.wardrobe-purchase-product .wardrobe-item-art,.wardrobe-purchase-product svg{width:100%;height:100%;display:block;background:transparent;overflow:hidden}
.wardrobe-purchase-product .wardrobe-item-art>i{display:none}
.wardrobe-purchase-product strong{font-size:15px}
.wardrobe-purchase-dialog dl{margin:14px 0}
.wardrobe-purchase-dialog dl>div{display:flex;justify-content:space-between;gap:10px;margin:7px 0}
.wardrobe-purchase-dialog dt{color:#526a80}
.wardrobe-purchase-dialog dd{margin:0;text-align:right;font-weight:850;font-variant-numeric:tabular-nums}
.wardrobe-purchase-dialog .wardrobe-purchase-after{padding-top:9px;border-top:1px solid #d2dfeb}
.wardrobe-purchase-after dd{color:#175c41}
.wardrobe-purchase-xp{font-size:12px;color:#526a80}
.wardrobe-purchase-funds{font-weight:750;color:#9b352b}
.wardrobe-purchase-dialog [data-bank]{color:#175e9d;font-weight:800}
.wardrobe-purchase-actions{display:flex;justify-content:space-between;gap:10px;margin-top:18px}
.wardrobe-purchase-actions button{flex:1;min-height:45px;border-radius:10px;border:1px solid #b9cbdc;padding:10px;font:800 14px/1.2 system-ui;background:white;color:#254b70;cursor:pointer}
.wardrobe-purchase-actions [data-confirm]{color:white;background:#1768af;border-color:#1768af}
.wardrobe-purchase-actions button:disabled{background:#dfe7ec;color:#7a8a96;border-color:#dfe7ec;cursor:default}
.wardrobe-purchase-dialog button:focus-visible,.wardrobe-wallet-panel a:focus-visible{outline:3px solid #edb835;outline-offset:3px}
@media(max-width:380px){#profile-dialog .wardrobe-wallet-panel{grid-template-columns:1fr 1fr;gap:5px 9px}#profile-dialog .wardrobe-wallet-panel>a{grid-column:1/-1}#profile-dialog .wardrobe-wallet-value>strong{font-size:20px}}
@media(orientation:landscape) and (max-height:500px){.wardrobe-purchase-dialog{padding:14px 18px}.wardrobe-purchase-dialog h2{font-size:19px}.wardrobe-purchase-product [data-product-art]{height:46px;width:50px}.wardrobe-purchase-dialog p{margin:5px 0}.wardrobe-purchase-dialog dl{margin:8px 0}.wardrobe-purchase-actions{margin-top:10px}#profile-dialog .wardrobe-wallet-panel{padding:7px 10px}#profile-dialog .wardrobe-wallet-value>strong{font-size:20px}}
@media(prefers-reduced-motion:reduce){#profile-dialog .wardrobe-wallet-panel.has-purchase{animation:none}}

/* Compact category chooser, with native wardrobe photographs instead of emoji. */
#profile-dialog .wardrobe-category-label{justify-content:flex-start;gap:9px}
#profile-dialog .wardrobe-category-trigger{display:inline-flex;align-items:center;gap:8px;width:auto;min-width:145px;max-width:222px;min-height:42px;padding:3px 9px;border:1px solid #c8d7e4;border-radius:10px;background:white;color:#23425d;box-shadow:0 1px 3px #153b6110;font:700 14px/1.2 system-ui;text-align:left;cursor:pointer}
#profile-dialog .wardrobe-category-trigger b{font-size:14px;white-space:nowrap;font-weight:800}
#profile-dialog .wardrobe-category-trigger>svg{width:14px;height:14px;margin-left:auto;flex:none}
.wardrobe-category-art{display:block;position:relative;flex:none;width:34px;height:34px;overflow:hidden;background:white;border-radius:5px}
.wardrobe-category-art>svg,.wardrobe-category-art>img{display:block;width:100%;height:100%;object-fit:contain;overflow:hidden}
.wardrobe-category-art .racer-vehicle{display:block;position:relative;width:100%;height:100%}
.wardrobe-category-art .vehicle-body{display:block;width:100%;height:100%;object-fit:contain}
.wardrobe-category-art .vehicle-cockpit-front,.wardrobe-category-art .vehicle-wheel,.wardrobe-category-art .vehicle-propeller,.wardrobe-category-art .vehicle-flame{display:none!important}
#profile-dialog .wardrobe-category-trigger:focus-visible{outline:3px solid #c9a459;outline-offset:2px}
.wardrobe-category-popup{box-sizing:border-box;position:fixed;inset:auto;margin:0;padding:5px;overflow:auto;border:1px solid #cbd9e4;border-radius:12px;background:white;color:#203d58;box-shadow:0 10px 30px #18354e38;animation:none!important;transform:none!important;scrollbar-width:thin}
.wardrobe-category-popup::backdrop{background:transparent;backdrop-filter:none}
.wardrobe-category-popup [role=listbox]{display:flex;flex-direction:column;gap:2px}
.wardrobe-category-popup [role=option]{display:flex;align-items:center;gap:12px;min-height:44px;width:100%;padding:4px 8px;border:0;border-radius:7px;background:white;color:#23435f;box-shadow:none;font:700 14px/1.2 system-ui;text-align:left;cursor:pointer}
.wardrobe-category-popup [role=option][aria-selected=true]{background:#edf4f9;color:#123a5e}
.wardrobe-category-popup [role=option]:hover{background:#f3f7fa}
.wardrobe-category-popup [role=option]:focus-visible{outline:2px solid #bb9550;outline-offset:-2px;background:#f8f5ec}
.wardrobe-category-popup .wardrobe-category-art{width:36px;height:36px}
@media(orientation:landscape) and (max-height:500px){.wardrobe-category-popup [role=option]{min-height:40px}.wardrobe-category-popup .wardrobe-category-art{height:30px}}
