.menu-side-links{display:grid;grid-template-columns:1fr 1fr;gap:8px;min-width:0}
.menu-side-links .secondary.large{min-width:0;padding:12px;font-size:12px}
.market-entry{display:flex;align-items:center;justify-content:center;gap:7px;min-height:48px;padding:8px 12px;border:1px solid #dca467;border-radius:4px;background:linear-gradient(120deg,#664b30,#364636);box-shadow:inset 0 0 0 3px #e0ab6110;color:#f4d6a5;font-size:12px;font-weight:700}
.market-entry svg{width:30px;height:30px;flex-shrink:0}.market-entry-arrow{margin-left:auto;color:#e5a25b}.market-entry:hover{background:linear-gradient(120deg,#80603b,#455740);border-color:#f6cc92}.market-entry:focus-visible,.account-avatar:focus-visible{outline:2px solid #f6cc92;outline-offset:4px}
.modal[data-panel="profile"],.modal[data-panel="cosmetics"],.modal[data-panel="market"]{width:min(520px,100%);padding:22px;max-height:calc(100dvh - 24px);scroll-padding-top:76px}
.modal[data-panel="cosmetics"]{width:min(680px,100%)}
.modal[data-panel="profile"] .modal-header,.modal[data-panel="cosmetics"] .modal-header,.modal[data-panel="market"] .modal-header{position:sticky;top:-22px;z-index:2;background:#1d2c28;padding:4px 0 14px;margin:0 0 18px;border-bottom:1px solid #a7bb8d25}
.modal[data-panel="profile"] h2,.modal[data-panel="cosmetics"] h2,.modal[data-panel="market"] h2{font-size:26px;margin:6px 0 0}
.modal[data-panel="profile"] .eyebrow,.modal[data-panel="cosmetics"] .eyebrow,.modal[data-panel="market"] .eyebrow{font-size:8px;letter-spacing:1.8px}
.modal[data-panel="profile"] .close-button,.modal[data-panel="cosmetics"] .close-button,.modal[data-panel="market"] .close-button{width:44px;height:44px;padding:0}
.account-hero{display:flex;align-items:center;gap:24px;margin:0 0 22px;padding:10px 12px 14px;background:linear-gradient(120deg,#81956a15,transparent);border:1px solid #9fb78b25;border-radius:6px}
.account-avatar{position:relative;width:120px;height:136px;flex-shrink:0;padding:10px;background:radial-gradient(ellipse at center,#b5bd7d22,#14231e);border:1px solid #acb98d60;border-radius:5px;overflow:visible}
.account-avatar>svg{width:100%;height:100%;display:block}.avatar-brush{position:absolute;right:-8px;bottom:-8px;width:44px;height:44px;padding:7px;background:#e9a157;border:3px solid #23362b;border-radius:50%;box-shadow:0 2px 8px #0005}.avatar-brush svg{width:100%;height:100%}
.account-identity{min-width:0;flex:1}.account-label{font-size:8px;color:#a4b591;letter-spacing:1.5px}.account-identity h3{font-size:19px;line-height:1.3;margin:7px 0 3px;color:#eee5cb;overflow-wrap:anywhere}.account-edit{display:flex;align-items:center;gap:8px;min-height:44px;padding:4px 0;border:0;background:none;color:#eab177;font-size:11px;text-align:left}.account-record{display:flex;align-items:center;gap:12px;border-top:1px solid #9fb78b30;padding-top:10px;margin-top:5px;font-size:10px;color:#a8b99c}.account-record strong{font-size:19px;color:#e6d8b4}
.modal .account-name{margin:0;font-size:11px;gap:8px}.account-name input{padding:12px;min-height:44px;background:#14231e;font-size:16px}.account-name small{font-size:10px;color:#8ea287;line-height:1.5}.account-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:16px;border-top:1px solid #9fb78b25}.account-footer p,.collection-footer p{font-size:10px;line-height:1.5;color:#91a58b;margin:0;max-width:190px}.account-footer .primary{min-height:44px;font-size:11px;padding:11px 16px;white-space:nowrap}
.collection-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;color:#d6ddc1;font-size:11px}.collection-heading b{margin-left:5px;color:#eab177}.collection-heading small{font-size:9px;color:#90a485}.look-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:10px;align-items:start}.look-card{min-width:0;background:#15251f;border:1px solid #94aa7a35;border-radius:5px;overflow:hidden}.look-card.selected{border-color:#e4ae70;background:#263a2b;box-shadow:inset 0 0 0 1px #e4ae7033}.look-portrait{height:116px;padding:12px 16px 0;background:radial-gradient(ellipse at center,#a5b56c20,transparent)}.look-portrait svg{width:100%;height:100%;display:block}.look-info{padding:10px}.look-info small{font-size:8px;line-height:1.5;color:#9bb18e}.look-info h3{font-size:12px;line-height:1.3;min-height:32px;margin:5px 0 9px;overflow-wrap:anywhere}.look-info .secondary{width:100%;min-height:44px;padding:9px;font-size:11px}.look-card.selected button:disabled{opacity:1;color:#e9bc82;background:#aa83452a;border-color:#d6a15e55}.collection-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;padding-top:14px;border-top:1px solid #94aa7a25}.collection-footer p{max-width:280px}.collection-footer button{min-height:44px;white-space:nowrap;padding:10px 16px;font-size:11px}
.market-empty{text-align:center;padding:15px 10px 26px}.market-emblem{width:104px;height:104px;padding:12px;margin:0 auto 20px;background:radial-gradient(ellipse,#d2aa5920,transparent);border:1px solid #d2aa5940;border-radius:16px;transform:rotate(-4deg)}.market-emblem svg{width:100%;height:100%;transform:rotate(4deg)}.market-empty .account-label{color:#d7a36c}.market-empty h3{font-size:22px;margin:10px 0;color:#eee0c3}.market-empty p{font-size:12px;line-height:1.8;color:#a5b59a;margin:0}.market-close{display:block;margin:auto;min-height:44px;font-size:11px;padding:10px 18px}
@media(max-width:700px){.menu-side-links .secondary.large{font-size:11px}.market-entry{font-size:11px;min-height:46px}.modal[data-panel="profile"],.modal[data-panel="cosmetics"],.modal[data-panel="market"]{padding:16px}.modal[data-panel="profile"] .modal-header,.modal[data-panel="cosmetics"] .modal-header,.modal[data-panel="market"] .modal-header{top:-16px;padding-top:6px;margin-bottom:14px}.modal[data-panel="profile"] h2,.modal[data-panel="cosmetics"] h2,.modal[data-panel="market"] h2{font-size:23px}.account-hero{gap:18px;padding:10px 12px 14px;margin-bottom:18px}.account-avatar{width:100px;height:116px}.account-identity h3{font-size:16px}.account-edit{font-size:10px}.account-footer{align-items:stretch;flex-direction:column;gap:10px}.account-footer p{max-width:none;text-align:center}.account-footer button{width:100%}.look-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.look-portrait{height:108px}.collection-heading{flex-wrap:wrap}.collection-footer{gap:10px}.collection-footer p{font-size:9px}.collection-footer button{padding:9px 12px}.market-empty h3{font-size:20px}}
@media(max-height:500px) and (orientation:landscape){.menu-side-links{gap:7px}.menu-side-links .secondary.large{padding:8px;font-size:10px;min-height:44px}.market-entry{min-height:44px;padding:5px 9px;font-size:10px}.market-entry svg{width:25px;height:25px}.modal[data-panel="profile"],.modal[data-panel="cosmetics"],.modal[data-panel="market"]{padding:12px;max-height:calc(100dvh - 12px)}.modal[data-panel="profile"]{width:min(620px,100%)}.modal[data-panel="profile"] .modal-header,.modal[data-panel="cosmetics"] .modal-header,.modal[data-panel="market"] .modal-header{top:-12px;padding:2px 0 9px;margin-bottom:10px}.modal[data-panel="profile"] h2,.modal[data-panel="cosmetics"] h2,.modal[data-panel="market"] h2{font-size:21px}.account-hero{grid-column:1;grid-row:1/3;margin:0;gap:16px;padding:8px 12px}.account-avatar{width:86px;height:101px}.account-identity h3{font-size:15px}.account-record{padding-top:6px;font-size:9px}.account-record strong{font-size:16px}#profileForm{display:grid;grid-template-columns:1.15fr 1fr;column-gap:18px;align-items:start}.account-name{grid-column:2;grid-row:1}.account-footer{grid-column:1/-1;flex-direction:row;padding-top:10px;margin-top:10px}.account-footer p{text-align:left}.account-footer button{width:auto}.account-name small{font-size:9px}#profileForm .form-error{grid-column:2;grid-row:2;font-size:10px;margin:4px 0}.look-grid{grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:8px}.look-portrait{height:78px;padding:5px 10px 0}.look-info{padding:7px}.look-info h3{font-size:11px;min-height:29px;margin:4px 0 6px}.collection-heading{margin-bottom:8px}.collection-footer{margin-top:10px;padding-top:8px}.market-empty{padding:3px 10px 14px}.market-emblem{width:68px;height:68px;margin-bottom:10px;padding:7px}.market-empty h3{font-size:18px;margin:6px 0}.market-empty p{font-size:11px}}
@media(max-width:350px){.account-hero{gap:15px;padding:8px}.account-avatar{width:83px;height:104px}.account-identity h3{font-size:14px}.account-label{font-size:7px;letter-spacing:1px}.account-edit{font-size:9px}.market-entry{gap:4px;padding-inline:8px}.market-entry svg{width:25px}.collection-heading small{font-size:8px}}

#profileForm .form-error:empty{display:none}.account-footer{margin-top:18px}
@media(max-height:500px) and (orientation:landscape){.account-footer{margin-top:10px}}

/* Salvaged display booth, shared by the profile, fitting room and future shop. */
.showroom-scene{display:block;width:100%;height:100%;overflow:visible}
.account-avatar{width:166px;height:180px;padding:0;background:#15271f;border-color:#9dac7940;border-radius:8px}
.account-avatar>.showroom-scene{width:100%;height:100%}.account-hero{gap:22px;padding:12px}.avatar-brush{right:-7px;bottom:0}
.modal[data-panel="cosmetics"],.modal[data-panel="market"]{width:min(740px,100%)}
.fitting-room,.market-showroom{display:grid;grid-template-columns:minmax(190px,.9fr) minmax(0,1.1fr);gap:22px;align-items:start}
.fitting-display{min-width:0;background:linear-gradient(145deg,#31483155,#111f1b);border:1px solid #9cab7333;border-radius:8px;padding:8px;overflow:hidden}
.fitting-display .showroom-scene{width:100%;height:auto;aspect-ratio:1;max-height:260px}.display-caption{text-align:center;padding:4px 6px 12px;border-top:1px solid #a5b97b20}.display-caption h3{font-size:16px;color:#e5d8b5;line-height:1.3;margin:7px 0 4px}.display-caption small{display:block;font-size:9px;color:#9caf8e;line-height:1.5}.fitting-collection{min-width:0}.gender-switch{position:relative;display:grid;grid-template-columns:1fr 1fr;background:#12231d;border:1px solid #a6b48544;border-radius:6px;padding:4px;isolation:isolate;margin-bottom:15px}.gender-switch>i{position:absolute;left:4px;top:4px;bottom:4px;width:calc(50% - 4px);transform:translateX(calc(var(--gender-position)*100%));transition:transform .18s ease;background:linear-gradient(135deg,#a9875440,#6e78533a);border:1px solid #dfae6f99;border-radius:3px;z-index:-1}.gender-switch button{min-width:0;min-height:44px;padding:9px 12px;border:0;background:none;font-size:12px;color:#8fa78e}.gender-switch button[aria-pressed="true"]{color:#f0c994;font-weight:700}
.fitting-options{display:grid;gap:8px}.fitting-option{display:flex;align-items:center;text-align:left;gap:12px;min-width:0;min-height:79px;padding:7px 10px;background:#15271f;border:1px solid #829b6d40;border-radius:5px;color:#dbe0c2}.fitting-option.previewed{border-color:#e0ac6f;background:#36462e}.fitting-option:hover{background:#30442f}.fitting-thumb{width:48px;height:57px;flex-shrink:0;background:radial-gradient(ellipse,#b5bd7d25,transparent)}.fitting-thumb svg{width:100%;height:100%}.fitting-option>span:last-child{min-width:0}.fitting-option small{font-size:8px;color:#a6bb97;display:block}.fitting-option strong{font-size:12px;line-height:1.3;display:block;margin:4px 0;overflow-wrap:anywhere}.fitting-option em{font-size:9px;color:#dfb175;font-style:normal}.fitting-apply{width:100%;min-height:44px;font-size:11px;margin-top:12px;padding:11px 9px}.collection-empty{font-size:11px;color:#94ab8c;line-height:1.6}.display-vacant{min-height:190px;display:grid;place-items:center;font-size:12px;color:#94ab8c}
.market-showroom{align-items:center}.market-showroom .market-empty{text-align:left;padding:8px 0}.market-showroom .market-empty h3{font-size:23px;line-height:1.25;margin:12px 0}.market-showroom .market-empty p{font-size:12px;line-height:1.8}.market-stock-empty{margin:20px 0;padding:14px;border:1px dashed #a4b77b40;border-radius:4px;color:#849c7b;font-size:11px;text-align:center}.market-showroom .market-close{margin:0;width:100%;font-size:11px}
@media(max-width:700px){.account-avatar{width:132px;height:153px}.account-hero{gap:18px;padding:10px}.account-identity h3{font-size:15px}.account-edit{font-size:10px}.fitting-room,.market-showroom{grid-template-columns:1fr;gap:14px}.fitting-display{display:flex;align-items:center;gap:8px;padding:6px 8px}.fitting-display .showroom-scene{width:55%;max-height:190px;flex-shrink:0}.display-caption{flex:1;min-width:0;border-top:0;padding:5px;text-align:left}.display-caption h3{font-size:16px}.display-caption small{font-size:9px}.gender-switch{margin-bottom:10px}.fitting-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.fitting-option{gap:7px;padding:7px;min-height:81px}.fitting-thumb{width:33px;height:48px}.fitting-option strong{font-size:11px}.fitting-option small{font-size:7px}.fitting-option em{font-size:8px}.fitting-apply{margin-top:10px}.market-showroom .market-empty{padding:0}.market-showroom .market-empty h3{font-size:21px;margin:9px 0}.market-showroom .market-empty p{font-size:11px}.market-stock-empty{margin:12px 0;padding:12px}}
@media(max-width:350px){.account-avatar{width:110px;height:136px}.account-hero{gap:14px;padding:8px}.account-identity h3{font-size:13px}.account-edit{font-size:9px}.account-record{gap:7px;font-size:9px}.fitting-display .showroom-scene{width:57%;max-height:160px}.display-caption h3{font-size:13px}.display-caption .account-label{font-size:6px}.fitting-option{gap:5px}.fitting-thumb{width:27px}.fitting-option strong{font-size:10px}.gender-switch button{font-size:11px}.collection-footer p{font-size:8px}}
@media(max-height:500px) and (orientation:landscape){.account-avatar{width:116px;height:130px}.account-hero{gap:14px;padding:6px}.account-identity h3{font-size:13px}.account-edit{font-size:9px}.account-record{font-size:8px}.fitting-room,.market-showroom{grid-template-columns:minmax(160px,.8fr) minmax(0,1.2fr);gap:14px}.fitting-display{display:block;padding:4px}.fitting-display .showroom-scene{width:100%;max-height:160px}.display-caption{padding:4px 6px 7px;text-align:center;border-top:1px solid #a5b97b20}.display-caption h3{font-size:12px;margin:4px 0}.display-caption small{font-size:8px}.gender-switch{margin-bottom:8px}.gender-switch button{font-size:11px;min-height:44px;padding:7px}.fitting-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.fitting-option{min-height:67px;padding:6px;gap:7px}.fitting-thumb{width:33px;height:45px}.fitting-option strong{font-size:10px}.fitting-option small{font-size:7px}.fitting-option em{font-size:8px}.fitting-apply{margin-top:8px}.collection-heading{font-size:10px}.market-showroom .market-empty h3{font-size:19px;margin:8px 0}.market-showroom .market-empty p{font-size:10px}.market-stock-empty{margin:10px 0;padding:10px}.market-showroom .market-empty{padding:0}}
@media(prefers-reduced-motion:reduce){.gender-switch>i{transition:none}}

.gender-switch.is-sliding>i{animation:gender-slide .18s ease both}
@keyframes gender-slide{from{transform:translateX(calc(var(--gender-from)*100%))}to{transform:translateX(calc(var(--gender-position)*100%))}}
@media(prefers-reduced-motion:reduce){.gender-switch.is-sliding>i{animation:none}}

.fitting-back-compact{display:none}
@media(max-height:500px) and (orientation:landscape){.fitting-back-compact{display:block;width:44px;height:44px;padding:0;border:1px solid #a6b48544;border-radius:4px;background:#17271f;color:#dfb175;font-size:20px}.modal[data-panel="cosmetics"] .collection-footer{display:none}.modal[data-panel="cosmetics"] .fitting-display .showroom-scene{max-height:140px}.fitting-options{max-height:140px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#9fa77b55 transparent}}
@media(max-height:350px) and (orientation:landscape){.fitting-options{max-height:68px}.modal[data-panel="cosmetics"] .display-caption small{display:none}.modal[data-panel="cosmetics"] .fitting-display .showroom-scene{max-height:130px}.modal[data-panel="cosmetics"] .fitting-display{padding:3px}}

/* The label stays at the geometric centre, independently of the bolt. */
#quickBtn{position:relative;justify-content:center;gap:0;text-align:center;padding-inline:42px}
#quickBtn .quick-label{font:inherit;line-height:1.3}
#quickBtn .quick-icon{position:absolute;right:17px;font-size:24px;line-height:1}
.modal[data-panel="weapons"]{width:min(580px,100%);padding:20px;max-height:calc(100dvh - 24px)}
.modal[data-panel="weapons"] .modal-header{margin-bottom:14px}
.modal[data-panel="weapons"] h2{font-size:24px;margin:6px 0}
.modal[data-panel="weapons"] .close-button{width:44px;height:44px}
.modal[data-panel="profile"] .account-edit{min-height:36px;padding:4px 0;font-size:10px}
.modal[data-panel="profile"] .account-footer .primary{min-height:40px;padding:8px 14px;font-size:11px}
.account-weapon{display:flex;align-items:center;gap:12px;width:100%;min-width:0;margin-top:12px;padding:6px 10px;background:#14241e;border:1px solid #9caf7c40;border-radius:5px;text-align:left}
.account-gun{width:68px;flex-shrink:0}.account-gun svg{width:100%;display:block}
.account-weapon small{display:block;font-size:7px;letter-spacing:1px;color:#9cb28e}.account-weapon strong{display:block;margin-top:4px;font-size:12px;color:#e1d6b4}
.weapon-brush{width:30px;height:30px;padding:4px;margin-left:auto;border:1px solid #d6a16266;border-radius:4px;background:#d6a16222}.weapon-brush svg{width:100%;height:100%}
.weapon-preview{background:radial-gradient(ellipse,#8d99532a,#14251e);border:1px solid #a5b67933;border-radius:7px;text-align:center;padding:16px}
.weapon-preview>svg{display:block;width:100%;max-width:320px;height:130px;margin:8px auto;filter:drop-shadow(0 9px 4px #0004)}
.weapon-preview p{font-size:11px;margin:0;color:#acba9b;line-height:1.5}
.weapon-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:8px;margin-top:12px}
.weapon-option{min-width:0;padding:7px;background:#17271f;border:1px solid #8ca57640;border-radius:5px;text-align:center}
.weapon-option[aria-pressed="true"]{border-color:#e4ad6d;background:#3b4731;box-shadow:inset 0 0 0 1px #e4ad6d33}
.weapon-option>svg{width:100%;max-width:100px;height:48px;margin:0 auto;display:block}.weapon-option strong{display:block;font-size:11px}.weapon-option small{display:block;font-size:8px;color:#b1bc98;margin-top:5px}
@media(max-width:700px){
 .modal[data-panel="profile"]{padding:14px;max-width:440px}
 .modal[data-panel="profile"] .modal-header{top:-14px;margin-bottom:10px;padding-bottom:10px}
 .modal[data-panel="profile"] .account-hero{gap:14px;padding:7px;margin-bottom:12px}
 .modal[data-panel="profile"] .account-avatar{width:106px;height:124px}
 .modal[data-panel="profile"] .avatar-brush{width:34px;height:34px;padding:5px;border-width:2px;right:-4px}
 .modal[data-panel="profile"] .account-identity h3{font-size:14px;margin-block:5px 2px}
 .modal[data-panel="profile"] .account-edit{min-height:40px;font-size:10px}
 .modal[data-panel="profile"] .account-name{font-size:10px;gap:5px}
 .modal[data-panel="profile"] .account-name input{min-height:42px;padding:9px 10px}
 .modal[data-panel="profile"] .account-footer{margin-top:12px;padding-top:10px;gap:7px}
 .modal[data-panel="profile"] .account-footer .primary{min-height:44px;padding:8px 12px;font-size:11px}
 .modal[data-panel="profile"] .account-footer p{font-size:9px}
 .account-weapon{min-height:46px;margin-top:10px;padding:4px 9px;gap:10px}.account-gun{width:57px}
 .modal[data-panel="weapons"]{padding:14px}.modal[data-panel="weapons"] h2{font-size:22px}
 .weapon-preview{padding:12px}.weapon-preview>svg{height:105px}.weapon-options{gap:6px}.weapon-option{padding:6px 3px}.weapon-option strong{font-size:10px}.weapon-option small{font-size:7px}.weapon-option>svg{height:40px}
}
@media(max-height:500px) and (orientation:landscape){
 .modal[data-panel="profile"]{width:min(620px,100%);max-width:100%;padding:12px}
 .modal[data-panel="profile"] .modal-header{top:-12px;margin-bottom:8px;padding-bottom:8px}
 .modal[data-panel="profile"] .account-hero{grid-row:1/4;margin:0;gap:10px;padding:5px}
 .modal[data-panel="profile"] .account-avatar{width:90px;height:109px}
 .modal[data-panel="profile"] .account-identity h3{font-size:12px}
 .modal[data-panel="profile"] .account-edit{font-size:9px;min-height:36px}
 #profileForm .account-weapon{grid-column:2;grid-row:2;margin-top:8px}
 #profileForm .form-error{grid-row:3}
 .modal[data-panel="profile"] .account-footer{margin-top:8px;padding-top:8px;gap:10px}
 .modal[data-panel="weapons"]{width:min(700px,100%);padding:12px}
 .modal[data-panel="weapons"] .modal-header{margin-bottom:8px}
 .modal[data-panel="weapons"] h2{font-size:21px}
 .modal[data-panel="weapons"] .weapon-preview{padding:9px}
 .modal[data-panel="weapons"] .weapon-preview>svg{height:64px}
 .modal[data-panel="weapons"] .weapon-preview p{font-size:9px}
 .modal[data-panel="weapons"] .weapon-options{margin-top:8px}
 .modal[data-panel="weapons"] .weapon-option>svg{height:32px}
 .modal[data-panel="weapons"] .collection-footer{margin-top:8px;padding-top:8px}
}
@media(max-height:350px) and (orientation:landscape){.modal[data-panel="weapons"] .weapon-preview{padding:5px}.modal[data-panel="weapons"] .weapon-preview>svg{height:38px}.modal[data-panel="weapons"] .weapon-preview p{display:none}}
/* Class selection shares the compact fitting-room controls at every scale. */
.class-picker{min-width:0;border:0;padding:0;margin:0 0 14px}
.class-picker legend{font-size:12px;color:#bfc8ac;margin-bottom:8px}
.class-picker>div:not(.class-details){display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:6px}
.class-picker button{min-width:0;min-height:44px;padding:7px 5px;font-size:12px;background:#263d32;color:#bfc8ac;border:1px solid #60744d;border-radius:6px}
.class-picker button[aria-pressed=true]{border-color:#e7aa69;background:#705534;color:#ffe1b3}
.class-picker p{font-size:12px;line-height:1.5;margin:8px 0 0;color:#a9b89b}
@media(max-width:380px){.class-picker>div:not(.class-details){grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Keep class capabilities explicit without expanding every selector button. */
.class-details{display:grid;gap:8px;margin:10px 0 0;padding:12px;background:#14241e;border:1px solid #a6b4852b;border-radius:6px}
.class-details>div{display:grid;grid-template-columns:85px minmax(0,1fr);gap:10px;align-items:baseline}
.class-details dt{font-size:11px;color:#d6af7d}.class-details dd{margin:0;font-size:12px;line-height:1.5;color:#c5d0b8;overflow-wrap:anywhere}
@media(max-width:380px){.class-details>div{grid-template-columns:1fr;gap:2px}.class-details{padding:10px;gap:7px}}
@media(max-height:500px) and (orientation:landscape){
 #profileForm>.class-picker{grid-column:1/-1;grid-row:1}
 .modal[data-panel="profile"] #profileForm>.account-hero{grid-column:1;grid-row:2/5}
 #profileForm>.account-name{grid-column:2;grid-row:2}
 #profileForm>.account-weapon{grid-column:2;grid-row:3}
 #profileForm>.form-error{grid-column:2;grid-row:4}
 #profileForm>.account-footer{grid-column:1/-1;grid-row:5}
 .class-details{gap:5px;padding:8px 10px}.class-picker{margin-bottom:12px}
}

/* Role artwork returns plain SVGs; constrain the viewports, preserving their viewBox ratio. */
#uiShell .modal[data-panel="weapons"] .equipment-inspect{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
#uiShell .modal[data-panel="weapons"] .equipment-inspect>div{min-width:0}
#uiShell .modal[data-panel="weapons"] .equipment-podium>svg{max-width:220px}
#uiShell .fitting-event-note{margin:8px 0;padding:8px;border:1px solid #b89b5c55;border-radius:6px;background:#b89b5c12;color:#dfc69e;font-size:12px;line-height:1.5;text-align:center}
@media(max-height:500px) and (orientation:landscape){#uiShell .fitting-event-note{margin:6px 0;padding:6px;font-size:10px}}

/* Seasonal catalogue is a read-only fitting showcase, independent of profile edits. */
#uiShell .seasonal-market{align-items:start;gap:16px}
#uiShell .market-display{position:sticky;top:0;min-width:0}
#uiShell .market-display>.showroom-scene{width:100%;height:230px;max-width:270px;margin:auto;display:block}
#uiShell .market-display .display-caption h3{font-size:19px;margin:8px 0}
#uiShell .market-display .fitting-event-note{font-size:11px;line-height:1.5;margin:7px 0}
#uiShell .market-collection{min-width:0}.market-season-heading{display:grid;gap:6px;margin-bottom:12px}.market-season-heading>strong{font-size:16px;color:#e5c395}.market-season-heading>small{font-size:10px;line-height:1.5;color:#a8b49a}
#uiShell .market-season-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#uiShell .market-season-card{display:flex;align-items:center;gap:7px;min-width:0;min-height:92px;padding:8px;text-align:left;border:1px solid #93a77944;border-radius:6px;background:#182b23;color:#d6dfc5}
#uiShell .market-season-card[aria-pressed=true],#uiShell .market-season-card:hover{border-color:#dba269;background:#344130}
#uiShell .market-season-art{position:relative;display:grid;place-items:center;flex:0 0 42px;width:42px;height:62px}
#uiShell .market-season-art>svg{display:block;max-width:100%;width:42px;height:62px;object-fit:contain}
#uiShell .market-season-art>.event-lock{position:absolute;right:-3px;bottom:1px;width:16px;height:16px;background:#1a2b23e8;border-radius:3px;color:#e2b578;padding:1px}
#uiShell .market-season-card>span:last-child{min-width:0}.market-season-card strong{display:block;font-size:11px;line-height:1.3;overflow-wrap:anywhere}.market-season-card small{display:block;font-size:8px;color:#a8b49a;line-height:1.4;margin-top:4px}.market-season-card em{display:block;font-style:normal;font-size:8px;color:#ddbb8d;line-height:1.4;margin-top:5px}
@media(max-width:700px){#uiShell .market-display{position:static;display:flex;padding:6px;gap:10px}#uiShell .market-display>.showroom-scene{width:44%;max-width:150px;height:150px;flex:none;margin:0}#uiShell .market-display .display-caption{border:0;padding:4px;text-align:left}#uiShell .market-display .display-caption h3{font-size:16px}#uiShell .market-season-card{min-height:87px}#uiShell .market-season-art{flex-basis:38px;width:38px;height:56px}#uiShell .market-season-art>svg{width:38px;height:56px}#uiShell .market-season-art>.event-lock{width:16px;height:16px}}
@media(max-height:500px) and (orientation:landscape){#uiShell .seasonal-market{grid-template-columns:minmax(150px,.7fr) minmax(0,1.3fr);gap:12px}#uiShell .market-display{position:sticky;display:block;padding:5px}#uiShell .market-display>.showroom-scene{width:100%;height:120px;max-width:170px;margin:auto}#uiShell .market-display .display-caption{text-align:center;padding:4px}#uiShell .market-display .display-caption h3{font-size:14px}#uiShell .market-display .fitting-event-note{font-size:9px}#uiShell .market-season-card{min-height:76px;padding:6px}.market-season-card strong{font-size:10px}.market-season-heading>strong{font-size:14px}}
@media(max-width:350px){#uiShell .market-season-cards{grid-template-columns:1fr}#uiShell .market-display>.showroom-scene{height:125px}#uiShell .market-display .display-caption h3{font-size:14px}}

/* One compact class label follows the avatar through profile and showcases. */
#uiShell .avatar-class{display:inline-flex;max-width:100%;align-items:center;vertical-align:middle;margin:3px 0;padding:2px 6px;border:1px solid #d6ad7140;border-radius:4px;background:#d6ad7110;color:#dec194;font-size:10px;font-weight:500;line-height:1.35;letter-spacing:0;overflow-wrap:anywhere}
#uiShell .account-identity>.avatar-class{display:table}
#uiShell .fitting-option .avatar-class{display:table;margin:3px 0;font-size:9px;padding:2px 5px}
#uiShell .fitting-option em{display:block}
#uiShell .display-caption>.avatar-class{margin:3px 0 6px}
@media(max-height:500px) and (orientation:landscape){#uiShell .avatar-class{font-size:9px;margin:2px 0}#uiShell .fitting-option .avatar-class{font-size:8px;margin:2px 0;padding:1px 4px}}

/* Permanent character catalogue. Five classes share the existing fitting podium. */
#uiShell .market-sections{display:flex;gap:8px;margin:0 0 16px;border-bottom:1px solid var(--window-line);padding-bottom:12px}
#uiShell .market-sections button{min-width:0;min-height:44px;flex:1;padding:10px 12px;border:1px solid var(--window-line);border-radius:6px;background:#172a21;color:#b6c7ae;font-size:12px;font-weight:700}
#uiShell .market-sections button[aria-pressed=true]{color:#f1c38c;border-color:#d9975770;background:#bc79301c}
#uiShell .market-sections button>span{margin-left:6px;color:#d9af7d}
#uiShell .market-class-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:9px}
#uiShell .market-class-heading strong{font-size:12px;color:#d6dfc5}#uiShell .market-class-heading small{font-size:10px;color:#94a98e}
#uiShell .market-class-picker{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-bottom:18px}
#uiShell .market-class-picker button{display:grid;justify-items:center;align-content:center;gap:3px;min-width:0;min-height:84px;padding:6px 3px;border:1px solid var(--window-line);border-radius:6px;background:var(--window-card);color:#b7c5a8}
#uiShell .market-class-picker button[aria-pressed=true]{color:#f2cd99;border-color:#dcaa6c;background:#344130;box-shadow:inset 0 -2px #d39a61}
#uiShell .market-class-picker button:hover{border-color:#dba269;background:#2d402f}
#uiShell .market-class-art{display:block;width:29px;height:32px}#uiShell .market-class-art svg{display:block;width:100%;height:100%}
#uiShell .market-class-picker strong{font-size:11px;line-height:1.3;font-weight:700;max-width:100%;overflow-wrap:anywhere}
#uiShell .market-class-picker small{font-size:9px;color:#98ae90}
#uiShell .catalog-market .market-season-heading{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:10px;flex-wrap:wrap}
#uiShell .catalog-market .market-season-heading>strong{font-size:15px}#uiShell .catalog-market .market-season-heading>small{font-size:10px}
#uiShell .catalog-market .market-season-card{min-height:108px;align-items:center;padding:9px;gap:8px}
#uiShell .catalog-market .market-season-card strong{font-size:12px;line-height:1.35}#uiShell .catalog-market .market-season-card small{font-size:10px}#uiShell .catalog-market .market-season-card em{font-size:9px}
#uiShell .market-season-label{display:inline-block;width:fit-content;max-width:100%;padding:3px 5px;border:1px solid #b89b5c55;border-radius:4px;background:#b89b5c12;color:#dfc69e;font-size:9px;line-height:1.35;margin-top:6px}
#uiShell .catalog-market .display-caption>.market-season-label{display:block;margin:8px auto 0;font-size:10px}
#uiShell .catalog-market .market-ownership{margin-top:8px;color:#b9c8a7;font-size:11px}
#uiShell .catalog-market .market-class-note{margin-top:8px;font-size:10px;line-height:1.5;color:#96ac8e}
#uiShell .catalog-market .market-profile-action{display:block;width:100%;margin-top:12px;font-size:11px;padding-inline:8px}
#uiShell .market-footer p{max-width:410px;margin:0}
@media(max-width:700px){
 #uiShell .market-sections{margin-bottom:13px;padding-bottom:10px}#uiShell .market-sections button{font-size:11px}
 #uiShell .market-class-picker{gap:5px;margin-bottom:14px}#uiShell .market-class-heading small{font-size:9px}
 #uiShell .market-class-picker button{min-height:68px;padding:5px 2px}#uiShell .market-class-picker small{display:none}
 #uiShell .market-class-picker strong{font-size:10px}#uiShell .market-class-art{height:30px}
 #uiShell .catalog-market .market-display{gap:8px;align-items:center}
 #uiShell .catalog-market .market-display>.showroom-scene{width:42%;height:154px;max-width:150px}
 #uiShell .catalog-market .display-caption>.market-season-label{margin:7px 0 0;font-size:9px}
 #uiShell .catalog-market .market-display .display-caption h3{font-size:15px}
 #uiShell .catalog-market .market-profile-action{margin-top:9px;font-size:10px}
 #uiShell .catalog-market .market-season-card{gap:7px;min-height:108px;padding:8px}
 #uiShell .catalog-market .market-season-card strong{font-size:11px}#uiShell .catalog-market .market-season-card small{font-size:9px}
 #uiShell .catalog-market .market-season-art{flex-basis:34px;width:34px}#uiShell .catalog-market .market-season-art>svg{width:34px}
 #uiShell .catalog-market .market-season-label{font-size:8px;padding:3px 4px}
}
@media(max-width:520px) and (orientation:portrait){
 #uiShell .market-class-picker{grid-template-columns:repeat(3,minmax(0,1fr))}
 #uiShell .market-class-picker strong{white-space:nowrap;overflow-wrap:normal}
}
@media(max-height:500px) and (orientation:landscape){
 #uiShell .market-sections{margin-bottom:9px;padding-bottom:8px}#uiShell .market-class-heading{margin-bottom:6px}
 #uiShell .market-class-picker{margin-bottom:12px}#uiShell .market-class-picker button{min-height:44px;padding:5px}
 #uiShell .market-class-picker .market-class-art,#uiShell .market-class-picker small{display:none}
 #uiShell .catalog-market .market-display{display:block;gap:0}
 #uiShell .catalog-market .market-display>.showroom-scene{width:100%;height:110px;max-width:150px;margin:auto}
 #uiShell .catalog-market .display-caption{text-align:center;padding:3px 6px 6px}
 #uiShell .catalog-market .display-caption>.account-label,#uiShell .catalog-market .display-caption>.avatar-class{display:none}
 #uiShell .catalog-market .market-display .display-caption h3{font-size:14px;margin:4px 0}
 #uiShell .catalog-market .display-caption>.market-season-label{margin:5px auto 0}
 #uiShell .catalog-market .market-ownership{font-size:10px;margin-top:5px}#uiShell .catalog-market .market-profile-action{margin-top:7px}
 #uiShell .catalog-market .market-season-card{min-height:94px;padding:7px}#uiShell .catalog-market .market-season-card strong{font-size:11px}
}
@media(max-width:350px){
 #uiShell .market-class-picker{gap:3px}#uiShell .market-class-picker strong{font-size:9px}
 #uiShell .catalog-market .market-display>.showroom-scene{height:130px;width:39%}
 #uiShell .catalog-market .market-display .display-caption h3{font-size:13px}
 #uiShell .catalog-market .market-season-cards{grid-template-columns:1fr}
}

/* Permanent equipment catalogue: bounded previews, the same window as avatars. */
#uiShell .market-equipment-categories{display:grid;gap:10px;margin-bottom:18px}
#uiShell .market-family-group{min-width:0}.market-family-group h3{font-size:11px;line-height:1.4;color:#bdc9ad;margin:0 0 6px;font-weight:600}
#uiShell .market-family-picker{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
#uiShell .market-family-group:last-child .market-family-picker{grid-template-columns:repeat(4,minmax(0,1fr))}
#uiShell .market-family-picker button{display:grid;gap:4px;align-content:center;min-width:0;min-height:52px;padding:7px 5px;border:1px solid var(--window-line);border-radius:6px;color:#b9c8ac;background:var(--window-card)}
#uiShell .market-family-picker button[aria-pressed=true]{color:#f1c792;border-color:#d8a160;background:#344130;box-shadow:inset 0 -2px #d39a61}
#uiShell .market-family-picker button:hover{border-color:#d8a160}
#uiShell .market-family-picker strong{font-size:11px;line-height:1.35;overflow-wrap:anywhere}
#uiShell .market-family-picker small{font-size:9px;color:#99ae90;line-height:1.3}
#uiShell .market-equipment-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#uiShell .market-equipment-card{display:grid;grid-template-rows:70px auto;align-content:start;min-width:0;min-height:128px;padding:9px;gap:8px;text-align:left;border:1px solid var(--window-line);border-radius:6px;background:var(--window-card);color:#d6dfc5}
#uiShell .market-equipment-card[aria-pressed=true],#uiShell .market-equipment-card:hover{border-color:#dba269;background:#344130}
#uiShell .market-equipment-art{position:relative;display:grid;place-items:center;min-width:0;width:100%;height:70px}
#uiShell .market-equipment-art>svg{display:block;width:100%;height:100%;max-width:138px;max-height:70px;object-fit:contain}
#uiShell .market-equipment-art>.event-lock{position:absolute;right:0;bottom:0;width:17px;height:17px;padding:2px;border-radius:3px;background:#16271eeb;color:#e1b578}
#uiShell .market-equipment-card strong{display:block;font-size:12px;line-height:1.35;overflow-wrap:anywhere}
#uiShell .market-equipment-card small{display:block;font-size:10px;line-height:1.4;color:#d9bd8e;margin-top:5px}
#uiShell .market-equipment-card .market-season-label{font-size:9px}
#uiShell .market-equipment-display{display:block;overflow:hidden}
#uiShell .market-equipment-podium{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;width:100%;height:190px;max-width:280px;margin:auto;padding:14px 15px 35px;background:radial-gradient(ellipse at 50% 65%,#d7be6e18,transparent 72%)}
#uiShell .market-equipment-podium>svg{display:block;width:100%;height:100%;max-width:220px;max-height:150px;object-fit:contain;filter:drop-shadow(0 8px 6px #07160f55)}
#uiShell .market-equipment-podium>i{position:absolute;z-index:-1;bottom:12px;left:12%;width:76%;height:23px;border:2px solid #b9b98575;border-radius:50%;background:#778168;box-shadow:0 6px 0 #314b35,0 11px 0 #0f241a8f}
#uiShell .market-equipment-podium[data-equipment-family=shield]>svg{max-width:100px}
#uiShell .market-equipment-display .display-caption{padding:9px;border-top:1px solid var(--window-line)}
#uiShell .equipment-market .market-equipment-note{font-size:11px;line-height:1.5;color:#a8ba9e;margin:10px 0 0}
@media(max-width:700px){
 #uiShell .market-sections button{padding:8px 5px;font-size:10px;line-height:1.4}
 #uiShell .market-family-picker{grid-template-columns:repeat(3,minmax(0,1fr))}
 #uiShell .market-family-group:last-child .market-family-picker{grid-template-columns:repeat(4,minmax(0,1fr))}
 #uiShell .market-family-picker button{min-height:48px;padding:6px 3px}#uiShell .market-family-picker strong{font-size:10px}#uiShell .market-family-picker small{font-size:8px}
 #uiShell .market-equipment-display{display:flex;gap:7px}
 #uiShell .market-equipment-podium{width:42%;flex:none;height:150px;padding:12px 5px 33px;margin:0;max-width:150px}
 #uiShell .market-equipment-display .display-caption{border:0;padding:5px;flex:1;min-width:0}
 #uiShell .equipment-market .market-equipment-note{font-size:10px;line-height:1.4;margin-top:7px}
 #uiShell .market-equipment-podium>i{left:5%;width:90%;height:18px}
 #uiShell .market-equipment-card{min-height:120px;padding:8px;grid-template-rows:62px auto}
 #uiShell .market-equipment-art{height:62px}#uiShell .market-equipment-art>svg{max-height:62px}
 #uiShell .market-equipment-card strong{font-size:11px}#uiShell .market-equipment-card small{font-size:9px}
}
@media(max-height:500px) and (orientation:landscape){
 #uiShell .market-family-picker{grid-template-columns:repeat(5,minmax(0,1fr))}
 #uiShell .market-family-picker button{min-height:44px;padding:6px 4px}#uiShell .market-family-picker small{display:none}
 #uiShell .market-equipment-categories{gap:7px;margin-bottom:12px}
 #uiShell .market-equipment-display{display:block}
 #uiShell .market-equipment-podium{width:100%;height:114px;max-width:180px;margin:auto;padding:4px 10px 25px}
 #uiShell .market-equipment-podium>svg{max-height:90px}
 #uiShell .market-equipment-display .display-caption{padding:4px 6px}
 #uiShell .equipment-market .market-equipment-note{font-size:9px}
 #uiShell .market-equipment-card{grid-template-rows:52px auto;min-height:105px;padding:7px;gap:6px}
 #uiShell .market-equipment-art{height:52px}#uiShell .market-equipment-art>svg{max-height:52px}
}
