/* Full-screen, three-panel armory. Native dialog keeps the hangar inert while shopping. */
#main-menu #panel-chassis { position:fixed; inset:0; width:100%; height:100%; height:100dvh; max-width:none; max-height:none; margin:0; padding:0; border:0; border-radius:0; transform:none; overflow:hidden; color:var(--ui-text); background:#091317; box-sizing:border-box; }
#main-menu #panel-chassis[open] { display:flex; flex-direction:column; }
.backpack-shop::backdrop { background:#091317; }
.backpack-shop *, .backpack-shop *::before, .backpack-shop *::after { box-sizing:border-box; }
.backpack-shop { --shop-status-font:600 13px/1.3 var(--ui-font); }
.backpack-shop button { cursor:pointer; font-family:var(--ui-font); border-radius:2px; }
.backpack-shop button:focus-visible { outline:2px solid var(--ui-cyan); outline-offset:-3px; }
.backpack-shop button:disabled { cursor:default; }

.shop-header { flex-shrink:0; display:flex; align-items:center; gap:32px; min-height:90px; padding:14px 40px; border-bottom:1px solid #304248; background:#101c21; }
#main-menu .shop-back { position:static; display:flex; align-items:center; gap:12px; padding:12px 16px; color:var(--ui-text); border:1px solid var(--ui-edge); font:12px var(--ui-mono); }
.shop-back-arrow { font:24px/1 var(--ui-font); }
.shop-back-label { font:inherit; }
.shop-heading { padding-left:32px; border-left:1px solid var(--ui-edge); }
.shop-eyebrow { font:9px var(--ui-mono); letter-spacing:.16em; color:var(--ui-muted); }
.shop-heading h2 { margin:2px 0 0; font:900 42px/.95 var(--ui-display); letter-spacing:.03em; }
.shop-wallet { margin-left:auto; display:flex; align-items:center; gap:20px; color:var(--ui-warn); }
.shop-wallet span { font:11px var(--ui-mono); }
.shop-wallet strong { font:28px var(--ui-mono); }

.shop-content { flex:1; min-height:0; display:grid; grid-template-columns:clamp(240px,18vw,320px) clamp(340px,25vw,470px) minmax(390px,1fr); overflow:hidden; }
.shop-mechs, .shop-catalog, .shop-inspector { min-width:0; min-height:0; }
.shop-mechs, .shop-catalog { display:flex; flex-direction:column; overflow:hidden; }
.shop-mechs { padding:26px 18px 18px 24px; background:#0c181d; border-right:1px solid #304248; }
.shop-catalog { padding:26px 22px 20px; background:#0a1519; border-right:1px solid #304248; }
.shop-panel-heading { flex:none; display:flex; align-items:flex-start; gap:12px; }
.shop-panel-number { flex:none; display:grid; place-items:center; width:25px; height:25px; border:1px solid #365159; color:#7f9ba0; font:9px var(--ui-mono); }
.shop-panel-heading h3 { margin:5px 0 0; font:650 21px/1.1 var(--ui-font); }
.shop-panel-intro, .shop-intro, .shop-earn { color:var(--ui-muted); font:12px/1.55 var(--ui-font); }
.shop-panel-intro { flex:none; margin:12px 0 17px; }
.shop-chassis-purchase { flex:none; padding:16px; margin:18px 0 12px; border:1px solid #796442; background:#29271d; }
.shop-chassis-purchase > strong { font:650 13px var(--ui-font); color:var(--ui-warn); }
.shop-chassis-purchase > p { margin:7px 0 10px; font:11px/1.5 var(--ui-font); color:var(--ui-muted); }
.shop-chassis-purchase .shop-purchase { min-height:44px; font-size:11px; padding:7px; }
#chassis-feedback:not(:empty) { flex:none; margin:0 0 10px; }
#main-menu .mech-lock { position:absolute; z-index:3; top:5px; right:5px; padding:3px 4px; background:#182024e8; color:var(--ui-warn); font:8px var(--ui-mono); }
#main-menu .mech-lock:empty { display:none; }
#main-menu .mech-thumbnail.locked .mech-thumb-name i { display:none; }
.shop-mech-list > button.locked .shop-mech-selected { display:block; color:var(--ui-warn); border-color:#796442; }
/* Locked frames are projections of the existing mech art. The live hangar
   uses the same cyan scanlines on its actual meshes. */
#main-menu .mech-thumbnail.locked img,
.shop-mech-list > button.locked img,
.shop-product.locked .shop-product-art img,
.shop-inspector.item-locked .shop-stage img,
#main-menu #menu-locked-mech {
  filter:grayscale(1) sepia(1) saturate(5) hue-rotate(140deg) brightness(1.45) drop-shadow(0 0 8px #39c9ff88);
  opacity:.72;
  mask-image:repeating-linear-gradient(to bottom,#000 0px,#000 2px,#0005 3px,#0005 4px);
}
#main-menu #menu-locked-mech {
  display:none; position:absolute; z-index:0; left:50%; top:50%; transform:translate(-50%,-50%);
  width:44vw; height:84%; object-fit:contain; pointer-events:none;
}
#main-menu.preview-locked:not(.scene-ready) #menu-fallback-hangar { opacity:0; }
#main-menu.preview-locked:not(.scene-ready) #menu-locked-mech { display:block; }
#main-menu .mech-unlock-panel {
  grid-column:2; grid-row:2 / 4; align-self:center; justify-self:center; z-index:3;
  box-sizing:border-box; width:min(300px,100%); padding:18px; display:grid; gap:12px; text-align:center;
  border:1px solid #69dbff99; border-top:2px solid #8de8ff; background:#071a24dc;
  box-shadow:0 0 36px #20a9e026,0 16px 40px #0007; backdrop-filter:blur(5px);
}
#main-menu .mech-unlock-panel[hidden] { display:none; }
.mech-unlock-heading { display:flex; align-items:center; justify-content:center; gap:8px; color:#a4e9fa; font:10px var(--ui-mono); letter-spacing:.08em; }
.mech-unlock-heading svg { width:23px; height:23px; flex:none; stroke:currentColor; stroke-width:1.5; }
#mech-unlock-price { color:var(--ui-warn); font:26px var(--ui-mono); }
.mech-unlock-note { margin:0; color:var(--ui-muted); font:11px/1.5 var(--ui-font); }
#mech-unlock-feedback { margin:0; }
@media(max-height:700px) and (min-width:701px), (min-width:560px) and (max-width:700px) {
  #main-menu .mech-unlock-panel { grid-row:2; padding:12px; gap:8px; }
  .mech-unlock-heading { font-size:8px; gap:5px; }
  .mech-unlock-heading svg { width:18px; height:18px; }
  #mech-unlock-price { font-size:22px; }
  #mech-unlock { font-size:11px; min-height:42px; padding:7px; }
  .mech-unlock-note { display:none; }
}
@media(max-width:559px) {
  #main-menu .mech-unlock-panel { grid-column:1; grid-row:4; order:3; align-self:start; width:calc(100% - 96px); padding:10px; gap:8px; }
  .mech-unlock-heading { font-size:9px; letter-spacing:0; }
  .mech-unlock-heading svg { width:18px; height:18px; }
  #mech-unlock-price { font-size:22px; }
  #mech-unlock { min-height:42px; font-size:11px; padding:6px; }
  .mech-unlock-note { display:none; }
}
@media(max-width:700px) {
  #main-menu #menu-locked-mech { width:72vw; height:68%; top:46%; }
}

/* Chassis cards form a vertical roster so future mechs simply append and scroll. */
.shop-mech-list { flex:1; min-height:0; display:flex; flex-direction:column; gap:14px; overflow-y:auto; overscroll-behavior:contain; padding:0 5px 0 0; scrollbar-width:thin; scrollbar-color:#3b5960 transparent; }
.shop-mech-list > button, .shop-mech-placeholder { flex:none; position:relative; min-height:0; padding:0; overflow:hidden; text-align:left; color:var(--ui-text); border:1px solid #30454c; background:#101f25; }
.shop-mech-list > button { transition:border-color .15s,background .15s,transform .15s; }
.shop-mech-list > button:hover { border-color:#6f959a; background:#172a31; }
.shop-mech-list > button[aria-pressed=true] { border-color:var(--ui-cyan); background:#153037; box-shadow:inset 3px 0 var(--ui-cyan); }
.shop-mech-art { position:relative; display:block; height:220px; overflow:hidden; background:radial-gradient(ellipse at 60% 48%,#31535eaa 0,#142930 49%,#0c181d 76%); }
.shop-mech-art::after { content:''; position:absolute; left:16%; right:8%; bottom:10px; height:17px; border:1px solid #6c939933; border-radius:50%; }
.shop-mech-art img { position:absolute; z-index:1; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 7%; pointer-events:none; filter:drop-shadow(0 12px 9px #0009); }
.shop-mech-art img.roster-rendered { inset:auto auto -1px -12.5%; width:125%; height:auto; object-fit:initial; object-position:initial; }
.shop-mech-bay { position:absolute; z-index:2; left:11px; top:10px; color:#729096; font:9px var(--ui-mono); letter-spacing:.12em; }
.shop-mech-selected { display:none; position:absolute; z-index:2; right:10px; top:9px; padding:3px 5px; color:var(--ui-cyan); border:1px solid #5cd7d799; background:#0a171bd9; font:8px var(--ui-mono); letter-spacing:.1em; }
.shop-mech-list > button[aria-pressed=true] .shop-mech-selected { display:block; }
.shop-mech-copy { position:relative; z-index:3; display:flex; align-items:flex-end; justify-content:space-between; gap:8px; padding:10px 11px 11px; border-top:1px solid #2c4248; background:#101f25; }
.shop-mech-title { min-width:0; }
.shop-mech-title > small { display:block; overflow:hidden; margin-bottom:4px; color:#7c999e; font:8px var(--ui-mono); letter-spacing:.09em; text-overflow:ellipsis; white-space:nowrap; }
.shop-mech-title > strong { display:block; font:750 15px/1 var(--ui-font); text-transform:uppercase; }
.shop-mech-specs { flex:none; display:flex; gap:9px; color:#d7e5e6; font:11px/1 var(--ui-mono); text-align:right; }
.shop-mech-specs span { display:flex; flex-direction:column; gap:4px; }
.shop-mech-specs small { color:#66848a; font:6px var(--ui-mono); letter-spacing:.06em; }
.shop-mech-placeholder { border-style:dashed; }
.shop-mech-placeholder .shop-mech-art { display:grid; place-items:center; background:radial-gradient(ellipse at center,#28444c88 0,#142930 49%,#0c181d 76%); }
.shop-mech-placeholder-mark { position:relative; z-index:1; display:grid; place-items:center; width:72px; height:72px; border:1px dashed #52747a; color:#89a9ac; font:42px/1 var(--ui-mono); }
.shop-mech-placeholder .shop-mech-title > strong { color:#9cb8bb; }

/* Backpack inventory is its own independently scrolling panel. */
.shop-catalog-heading { align-items:flex-start; }
.shop-catalog-heading > div { min-width:0; }
.shop-catalog-heading #shop-owned-count { margin-left:auto; padding-top:4px; }
#shop-owned-count { white-space:nowrap; font:9px var(--ui-mono); color:var(--ui-cyan); }
.shop-intro { flex:none; margin:12px 0 17px 37px; max-width:360px; }
.shop-categories { flex:none; display:flex; gap:6px; margin-top:14px; }
.shop-categories button { flex:1; min-width:0; min-height:40px; padding:7px; border:1px solid #385058; background:#111f25; color:var(--ui-muted); font:600 11px var(--ui-font); }
.shop-categories button[aria-pressed=true] { border-color:var(--ui-cyan); color:var(--ui-cyan); background:#183138; }
#main-menu .shop-products[hidden] { display:none; }
.shop-products { flex:1; min-height:0; display:flex; flex-direction:column; gap:10px; overflow-y:auto; overscroll-behavior:contain; padding-right:5px; scrollbar-width:thin; scrollbar-color:#3b5960 transparent; }
.shop-product { --item-color:var(--ui-cyan); flex:none; position:relative; min-width:0; min-height:142px; display:grid; grid-template-columns:minmax(116px,39%) minmax(0,1fr); padding:0; overflow:hidden; text-align:left; color:var(--ui-text); background:#111f25; border:1px solid #30454c; transition:background .15s,border-color .15s; }
.shop-product:hover { background:#192b32; border-color:#8aa7ac; }
.shop-product.inspecting { border-color:var(--ui-cyan); box-shadow:inset 3px 0 var(--ui-cyan); background:#183138; }
.shop-product-art { position:relative; display:block; min-height:140px; background:radial-gradient(ellipse at center,#29404988,transparent 72%); border-right:1px solid #30454c; }
.shop-product-art img { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:contain; padding:7px; filter:drop-shadow(0 12px 8px #0007); }
.shop-product-index { position:absolute; z-index:2; left:10px; top:9px; font:9px var(--ui-mono); color:#769197; }
.shop-product-check { display:none; position:absolute; z-index:2; right:9px; top:7px; color:var(--ui-cyan); font:15px var(--ui-font); }
.shop-product.on .shop-product-check { display:block; }
.shop-product-copy { min-width:0; display:flex; flex-direction:column; justify-content:center; padding:13px 13px 11px; }
.shop-product-role { display:block; font:8px var(--ui-mono); letter-spacing:.15em; color:var(--item-color); margin-bottom:7px; }
.shop-product strong { display:block; font:650 14px/1.25 var(--ui-font); }
.shop-product-cooldown { display:block; margin-top:7px; color:var(--ui-muted); font:9px var(--ui-mono); }
.shop-product small { display:block; border-top:1px solid #38505888; padding-top:9px; margin-top:11px; color:var(--ui-warn); font:9px var(--ui-mono); }
.shop-product.on small { color:var(--ui-cyan); }
.shop-earn { flex:none; margin:14px 0 0; font-size:10px; }

/* Existing detail view, now isolated as the third panel. */
.shop-inspector { --item-color:var(--ui-cyan); background:#111f25; display:flex; flex-direction:column; overflow-y:auto; }
.shop-inspector.chassis-locked > :is(.shop-stage,.shop-item-info) { display:none; }
.shop-backpack-preview { flex:1; min-height:0; display:flex; flex-direction:column; padding:26px 30px 20px; }
.shop-backpack-preview[hidden] { display:none; }
.shop-backpack-preview .shop-products { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-content:start; }
.shop-backpack-preview .shop-product { grid-template-columns:minmax(92px,38%) minmax(0,1fr); }
.shop-backpack-preview .shop-product:hover { background:#111f25; border-color:#30454c; }
@media(max-width:1180px) {
  .shop-backpack-preview { padding:16px 12px; }
  .shop-backpack-preview .shop-products { display:flex; }
}
@media(max-width:700px) {
  .shop-backpack-preview { padding:12px 9px; }
  .shop-backpack-preview .shop-product { grid-template-columns:minmax(58px,38%) minmax(0,1fr); }
}
.shop-stage { flex:none; height:clamp(230px,calc(100vh - 540px),420px); position:relative; display:grid; place-items:center; overflow:hidden; background:radial-gradient(ellipse at 50% 55%,#2c4854aa,transparent 66%),linear-gradient(#273b4233 1px,transparent 1px),linear-gradient(90deg,#273b4233 1px,transparent 1px); background-size:auto,40px 40px,40px 40px; }
.shop-stage::after { content:''; position:absolute; width:64%; height:21%; bottom:14%; border:1px solid #65878d44; border-radius:50%; pointer-events:none; }
.shop-stage img { position:absolute; height:100%; width:100%; object-fit:contain; padding:22px; z-index:1; filter:drop-shadow(0 22px 14px #0007); }
/* Dual loadouts share the gun's art, offset into a clearly visible pair. */
.dual-weapon-art > img { inset:0; box-sizing:border-box; }
.dual-weapon-art > img:not(.dual-weapon-copy) { transform:translate(-9%,-15%) scale(.82); }
.dual-weapon-art > img.dual-weapon-copy { transform:translate(9%,15%) scale(.82); }
.shop-stage-label, .shop-stage-caption { position:absolute; z-index:2; left:26px; font:9px var(--ui-mono); letter-spacing:.13em; color:#90a9ae; }
.shop-stage-label { top:20px; right:26px; display:flex; justify-content:space-between; }
.shop-stage-caption { bottom:14px; }
.shop-item-info { padding:22px 30px 18px; border-top:1px solid #304248; }
.shop-item-meta { display:flex; justify-content:space-between; gap:12px; font:9px var(--ui-mono); letter-spacing:.12em; color:var(--item-color); }
#shop-item-owned { color:var(--ui-muted); }
#shop-item-name { margin:10px 0 12px; font:900 clamp(28px,2.6vw,42px)/1.05 var(--ui-display); text-transform:uppercase; }
#back-system-detail { color:var(--ui-muted); font:13px/1.6 var(--ui-font); margin:0; min-height:42px; }
.shop-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:18px 0; padding:15px 0; border-block:1px solid #304248; }
.shop-stats dt { font:8px var(--ui-mono); letter-spacing:.07em; color:var(--ui-muted); }
.shop-stats dd { margin:6px 0 0; font:18px var(--ui-mono); }
.shop-fit > span { display:block; color:var(--ui-muted); font:9px var(--ui-mono); margin-bottom:10px; }
.shop-purchase { width:100%; min-height:50px; border:1px solid var(--ui-action); background:var(--ui-action); color:var(--ui-on-action); font:650 13px var(--ui-font); letter-spacing:.03em; }
.shop-purchase:hover:not(:disabled) { filter:brightness(1.12); }
.shop-purchase:disabled { background:#203036; border-color:#405259; color:#b5c7c9; }
.shop-purchase[data-equipped=true] { color:var(--ui-cyan); border-color:#477b7c; }
.shop-feedback { color:var(--ui-warn); font:12px/1.5 var(--ui-font); margin:8px 0 0; }
.shop-feedback:empty { display:none; }
.shop-hint { margin:12px 0 0; text-align:center; color:var(--ui-muted); font:11px var(--ui-font); }
.shop-hint kbd { font:inherit; border:1px solid var(--ui-edge); padding:1px 4px; }
.shop-footer { flex-shrink:0; display:flex; justify-content:space-between; gap:16px; border-top:1px solid #304248; padding:12px 40px; color:var(--ui-muted); font:9px var(--ui-mono); }
.shop-footer > span:first-child { color:var(--ui-cyan); letter-spacing:.1em; }

@media(min-width:1600px) {
 .shop-mechs { padding:34px 24px 22px 30px; }
 .shop-catalog { padding:34px 30px 22px; }
 .shop-mech-art { height:240px; }
 .shop-product { min-height:154px; grid-template-columns:minmax(138px,40%) minmax(0,1fr); }
 .shop-product-art { min-height:152px; }
 .shop-item-info { padding:27px 40px; }
}

@media(max-width:1180px) and (min-width:1051px) {
 .shop-content { grid-template-columns:220px 320px minmax(0,1fr); }
 .shop-mechs { padding-inline:14px 10px; }
 .shop-catalog { padding-inline:14px 10px; }
 .shop-mech-specs { display:none; }
 .shop-panel-heading { gap:8px; }
 .shop-panel-number { width:22px; height:22px; }
 .shop-intro { margin-left:30px; }
 .shop-product { grid-template-columns:112px minmax(0,1fr); }
 .shop-item-info { padding:20px; }
}

/* Compact landscape keeps all three jobs visible. Each column scrolls on its
   own, so the detail view no longer falls below several screens of cards. */
@media(max-width:1050px) and (min-width:701px) {
 .shop-header { min-height:66px; padding:8px 16px; gap:18px; }
 #main-menu .shop-back { padding:8px 11px; font-size:10px; }
 .shop-heading { padding-left:18px; }
 .shop-heading h2 { font-size:30px; }
 .shop-wallet { gap:12px; }
 .shop-wallet span { font-size:9px; }
 .shop-wallet strong { font-size:22px; }
 .shop-content { grid-template-columns:clamp(165px,20vw,190px) clamp(235px,29vw,280px) minmax(280px,1fr); overflow:hidden; }
 .shop-mechs, .shop-catalog { overflow:hidden; padding:12px 9px; }
 .shop-panel-heading { gap:6px; }
 .shop-panel-number { width:20px; height:20px; font-size:8px; }
 .shop-panel-heading h3 { margin-top:3px; font-size:15px; }
 .shop-panel-intro, .shop-intro { margin:6px 0 9px; font-size:10px; line-height:1.35; }
 .shop-intro { margin-left:26px; }
 .shop-mech-list, .shop-products { flex:1; min-height:0; overflow-y:auto; }
 .shop-mech-list { gap:8px; }
 .shop-mech-art { height:96px; }
 .shop-mech-copy { padding:7px 8px 8px; }
 .shop-mech-title > small { font-size:7px; }
 .shop-mech-title > strong { font-size:12px; }
 .shop-mech-specs, .shop-earn { display:none; }
 .shop-products { gap:7px; }
 .shop-product { min-height:108px; grid-template-columns:minmax(78px,36%) minmax(0,1fr); }
 .shop-product-art { min-height:106px; }
 .shop-product-art img { padding:4px; }
 .shop-product-copy { padding:8px; }
 .shop-product-role { margin-bottom:5px; font-size:7px; }
 .shop-product strong { font-size:12px; }
 .shop-product-cooldown { margin-top:5px; font-size:8px; }
 .shop-product small { margin-top:7px; padding-top:6px; font-size:8px; }
 .shop-inspector { grid-column:auto; min-height:0; border-top:0; overflow-y:auto; }
 .shop-stage { height:clamp(170px,34vh,230px); }
 .shop-stage img { padding:14px; }
 .shop-stage-label, .shop-stage-caption { left:15px; font-size:8px; }
 .shop-stage-label { top:12px; right:15px; }
 .shop-stage-caption { bottom:9px; }
 .shop-item-info { padding:13px 16px; }
 #shop-item-name { margin:7px 0 8px; font-size:24px; }
 #back-system-detail { min-height:0; font-size:11px; line-height:1.4; }
 .shop-stats { gap:8px; margin:10px 0; padding:9px 0; }
 .shop-stats dt { font-size:7px; }
 .shop-stats dd { margin-top:4px; font-size:14px; }
 .shop-fit > span { margin-bottom:7px; font-size:8px; }
 .shop-purchase { min-height:40px; font-size:11px; }
 .shop-feedback, .shop-hint { font-size:9px; }
 .shop-hint { margin-top:8px; }
 .shop-footer { padding:8px 16px; font-size:8px; }
}

@media(max-width:700px) {
 .shop-header { min-height:76px; padding:10px 14px; gap:12px; }
 #main-menu .shop-back { padding:8px; font-size:9px; gap:5px; }
 .shop-heading { padding-left:0; border:0; }
 .shop-heading .shop-eyebrow { display:none; }
 .shop-heading h2 { font-size:30px; }
 .shop-wallet { display:block; text-align:right; }
 .shop-wallet span { display:block; margin-bottom:3px; font-size:8px; }
 .shop-wallet strong { font-size:20px; }
 .shop-content { display:flex; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; overscroll-behavior-inline:contain; scrollbar-width:thin; scrollbar-color:#3b5960 transparent; }
 .shop-mechs, .shop-catalog, .shop-inspector { flex:0 0 50%; min-width:0; height:100%; scroll-snap-align:start; scroll-snap-stop:always; }
 .shop-mechs, .shop-catalog { padding:12px 9px; overflow:hidden; border-right:1px solid #304248; border-bottom:0; }
 .shop-inspector { overflow-y:auto; scroll-snap-align:end; }
 .shop-panel-heading { gap:6px; }
 .shop-panel-number { width:20px; height:20px; font-size:8px; }
 .shop-panel-heading h3 { margin-top:3px; font-size:16px; }
 .shop-panel-intro, .shop-intro { margin:7px 0 9px; font-size:10px; line-height:1.35; }
 .shop-mech-list { flex:1; min-height:0; flex-direction:column; gap:8px; overflow-x:hidden; overflow-y:auto; padding:0 4px 0 0; scroll-snap-type:none; }
 .shop-mech-list > button { flex:none; width:100%; min-height:0; scroll-snap-align:none; }
 .shop-mech-art { height:92px; }
 .shop-mech-copy { padding:7px 8px 8px; }
 .shop-mech-specs { display:none; }
 .shop-intro { margin-left:26px; }
 .shop-products { flex:1; min-height:0; flex-direction:column; gap:7px; overflow-x:hidden; overflow-y:auto; padding:0 4px 0 0; scroll-snap-type:none; }
 .shop-product { flex:none; width:100%; min-height:108px; display:grid; grid-template-columns:minmax(58px,38%) minmax(0,1fr); scroll-snap-align:none; }
 .shop-product-art { min-height:106px; height:auto; border-right:1px solid #30454c; border-bottom:0; }
 .shop-product-art img { padding:3px; }
 .shop-product-copy { justify-content:center; padding:7px; }
 .shop-product-role { margin-bottom:5px; }
 .shop-product-cooldown { margin-top:5px; }
 .shop-product small { margin-top:7px; padding-top:6px; }
 .shop-earn { display:none; }
 .shop-stage { height:190px; }
 .shop-stage img { padding:10px; }
 .shop-stage-label, .shop-stage-caption { left:12px; font-size:7px; }
 .shop-stage-label { top:10px; right:12px; }
 .shop-stage-caption { bottom:8px; }
 .shop-item-info { padding:12px 10px; }
 #shop-item-name { margin:7px 0 8px; font-size:23px; }
 #back-system-detail { min-height:0; font-size:10px; line-height:1.4; }
 .shop-stats { grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; margin:10px 0; padding:8px 0; }
 .shop-stats dt { font-size:6px; }
 .shop-stats dd { margin-top:4px; font-size:12px; }
 .shop-fit > span { margin-bottom:7px; font-size:7px; }
 .shop-purchase { min-height:38px; padding:6px; font-size:10px; }
 .shop-feedback, .shop-hint { font-size:8px; }
 .shop-footer { padding:11px 14px; font-size:8px; }
 .shop-footer > span:last-child { max-width:180px; text-align:right; }
}

@media(max-height:700px) and (min-width:1051px) {
 .shop-header { min-height:68px; padding-block:8px; }
 .shop-heading h2 { font-size:30px; }
 .shop-mechs, .shop-catalog { padding-top:16px; }
 .shop-panel-intro, .shop-intro { margin-top:8px; margin-bottom:10px; }
 .shop-mech-list > button { min-height:138px; }
 .shop-mech-art { height:88px; }
 .shop-earn { display:none; }
 .shop-product { min-height:116px; }
 .shop-product-art { min-height:114px; }
 .shop-stage { height:205px; }
 .shop-item-info { padding-top:16px; }
 .shop-stats { margin-block:12px; padding-block:11px; }
 .shop-footer { padding-block:8px; }
}

/* Art leads the armory; technical information is available on demand. */
.backpack-shop:not(.quick-loadout) :is(.shop-eyebrow,.shop-panel-number,.shop-panel-intro,
  .shop-intro,.shop-earn,.shop-product-role,.shop-product-cooldown,.shop-product-index,
  .shop-stage-label,.shop-stage-caption,.shop-fit,.shop-hint,.shop-item-meta,
  .shop-mech-placeholder,.shop-mech-bay,.shop-mech-title > small,#shop-owned-count) { display:none; }
.backpack-shop:not(.quick-loadout) .shop-header { min-height:72px; gap:24px; }
.backpack-shop:not(.quick-loadout) .shop-heading { border:0; padding:0; }
.backpack-shop:not(.quick-loadout) .shop-heading h2 { font:650 26px/1.2 var(--ui-font); letter-spacing:0; }
.backpack-shop:not(.quick-loadout) .shop-wallet strong { font:600 22px var(--ui-font); font-variant-numeric:tabular-nums; }
.backpack-shop:not(.quick-loadout) .shop-content { grid-template-columns:clamp(210px,18vw,260px) clamp(340px,29vw,440px) minmax(0,1fr); }
.backpack-shop:not(.quick-loadout) :is(.shop-mechs,.shop-catalog) { padding:20px 16px; }
.backpack-shop:not(.quick-loadout) .shop-panel-heading h3 { font-size:18px; margin:0; }
.backpack-shop:not(.quick-loadout) .shop-mech-list { gap:10px; margin-top:16px; }
.backpack-shop:not(.quick-loadout) .shop-mech-art { height:clamp(104px,18vh,174px); }
.backpack-shop:not(.quick-loadout) .shop-mech-selected { font:9px var(--ui-font); letter-spacing:0; }
.backpack-shop:not(.quick-loadout) .shop-mech-specs { font:11px var(--ui-font); }
.backpack-shop:not(.quick-loadout) .shop-mech-specs small { font:8px var(--ui-font); }
.backpack-shop:not(.quick-loadout) .shop-categories {
  display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center;
  gap:12px; margin:16px 0;
}
.shop-category-label { display:flex; align-items:center; gap:7px; min-width:0; color:var(--ui-muted); font:600 12px var(--ui-font); }
.backpack-shop:not(.quick-loadout) .shop-categories { grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; }
#main-menu .shop-categories > button[data-shop-category] { min-width:0; min-height:44px; padding:6px 3px; border:1px solid #365159; background:#101f25; color:var(--ui-muted); font:600 11px var(--ui-font); }
#main-menu .shop-categories > button[aria-pressed="true"] { color:var(--ui-cyan); border-color:var(--ui-cyan); background:#153037; }
.shop-mount-loadout { flex:none; margin:0 0 12px; color:var(--ui-cyan); font:12px/1.5 var(--ui-font); overflow-wrap:anywhere; }
#main-menu .shop-mount-loadout[hidden], #main-menu #mount-unequip[hidden] { display:none; }
@media(max-width:360px) {
  #main-menu .backpack-shop:not(.quick-loadout) .shop-categories { gap:2px; }
  #main-menu .shop-categories > button[data-shop-category] { padding-inline:0; font-size:9px; }
}
.shop-category-label:first-child { justify-content:flex-end; }
.shop-categories[data-category="weapons"] [data-category-label="weapons"],
.shop-categories[data-category="backpacks"] [data-category-label="backpacks"] { color:var(--ui-cyan); }
#main-menu .shop-categories .shop-category-switch {
  --switch-width:48px; --switch-height:28px; --switch-knob:20px; --switch-travel:20px;
  position:relative; flex:none; width:var(--switch-width); min-width:var(--switch-width); min-height:44px;
  padding:0; border:0; border-radius:6px; background:none;
}
.shop-category-switch::before {
  content:''; position:absolute; left:0; top:50%; transform:translateY(-50%);
  width:100%; height:var(--switch-height); box-sizing:border-box;
  border:1px solid #547777; border-radius:999px; background:#122a30;
  transition:background .18s,border-color .18s;
}
.shop-category-switch::after {
  content:''; position:absolute; top:50%; left:4px;
  width:var(--switch-knob); height:var(--switch-knob); border-radius:50%; background:var(--ui-cyan);
  transform:translateY(-50%); transition:transform .18s;
}
.shop-category-switch[aria-checked="true"]::before { border-color:var(--ui-cyan); background:#72ddd02b; }
.shop-category-switch[aria-checked="true"]::after { transform:translate(var(--switch-travel),-50%); }
.shop-category-switch:hover::before { border-color:var(--ui-cyan); }
@media(prefers-reduced-motion:reduce) { .shop-category-switch::before, .shop-category-switch::after { transition:none; } }
.backpack-shop:not(.quick-loadout) .shop-products { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:max-content; align-content:start; gap:10px; }
.backpack-shop:not(.quick-loadout) .shop-product { display:flex; flex-direction:column; min-height:0; border-radius:5px; }
.backpack-shop:not(.quick-loadout) .shop-product.inspecting { box-shadow:inset 0 0 0 1px var(--ui-cyan); }
.backpack-shop:not(.quick-loadout) .shop-product-art { flex:none; width:100%; height:132px; min-height:132px; border:0; }
.backpack-shop:not(.quick-loadout) .shop-product-art img { padding:12px; }
.backpack-shop:not(.quick-loadout) .shop-product-copy { gap:8px; padding:10px 12px 12px; }
.backpack-shop:not(.quick-loadout) .shop-product strong { min-height:34px; font:600 14px/1.2 var(--ui-font); }
.backpack-shop:not(.quick-loadout) .shop-product small { margin:0; padding:0; border:0; font:11px var(--ui-font); }
.backpack-shop:not(.quick-loadout) .shop-product-check { display:none; width:22px; height:22px; place-items:center; border-radius:50%; background:var(--ui-cyan); color:var(--ui-bg); }
.backpack-shop:not(.quick-loadout) .shop-product.on .shop-product-check { display:grid; }
.backpack-shop:not(.quick-loadout) .shop-stage { height:clamp(190px,calc(100dvh - 470px),360px); }
.backpack-shop:not(.quick-loadout) .shop-stage img { padding:26px; }
.backpack-shop:not(.quick-loadout) .shop-inspector { container:shop-inspector / inline-size; }
.backpack-shop:not(.quick-loadout) .shop-item-info {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; padding:20px 26px;
}
.shop-item-overview { min-width:0; }
.backpack-shop:not(.quick-loadout) #shop-item-name { margin:0 0 8px; font:650 26px/1.2 var(--ui-font); text-transform:none; }
#shop-item-summary { color:var(--ui-muted); font:13px/1.5 var(--ui-font); margin:0 0 18px; }
#shop-item-summary > p { margin:0; }
.shop-skill { display:grid; grid-template-columns:32px minmax(0,1fr); gap:10px; padding:12px 0; }
.shop-skill:first-child { padding-top:0; }
.shop-skill + .shop-skill { border-top:1px solid #304248; }
.shop-skill:last-child { padding-bottom:0; }
.shop-skill-icon { color:var(--ui-cyan); background-color:currentColor; mask:var(--skill-icon) center / contain no-repeat; }
.shop-skill-icon { width:28px; height:28px; margin-top:2px; }
.shop-skill[data-kind="active"] .shop-skill-icon { color:var(--ui-warn); }
.shop-skill-head { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; margin-bottom:5px; }
.shop-skill-head > span { font:600 10px var(--ui-font); color:var(--ui-cyan); text-transform:uppercase; letter-spacing:.04em; }
.shop-skill[data-kind="active"] .shop-skill-head > span { color:var(--ui-warn); }
.shop-skill-head strong { flex:1 1 110px; color:var(--ui-text); font:600 13px/1.3 var(--ui-font); }
.shop-skill-head kbd { flex:none; padding:2px 5px; border:1px solid #41595d; border-radius:3px; color:var(--ui-muted); font:10px var(--ui-font); }
.shop-skill p { margin:0; }
.shop-skill small { display:block; margin-top:5px; color:var(--ui-warn); font:11px var(--ui-font); }
#back-system-detail h4 { margin:0 0 6px; color:var(--ui-text); font:600 13px var(--ui-font); }
.backpack-shop:not(.quick-loadout) #back-system-detail { font:13px/1.55 var(--ui-font); }
#back-system-detail p { margin:0; }
#back-system-detail section + section { margin-top:16px; }
.shop-footer a { color:var(--ui-muted); text-underline-offset:3px; }
.shop-footer a:hover { color:var(--ui-cyan); }
.shop-price { display:flex; align-items:baseline; gap:8px; margin:0 0 10px; color:var(--ui-warn); }
.shop-price strong { font:700 32px/1.1 var(--ui-font); font-variant-numeric:tabular-nums; letter-spacing:-.02em; }
.shop-price > span { font:600 11px var(--ui-font); letter-spacing:.05em; }
.shop-price-status { margin:0 0 16px; color:var(--ui-warn); font:600 14px/1.4 var(--ui-font); }
.shop-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.shop-actions .shop-purchase, .shop-actions .shop-secondary {
  width:auto; min-width:min(144px,100%); max-width:100%; min-height:44px; padding:10px 20px;
  border-radius:5px; font:600 13px/1.3 var(--ui-font); letter-spacing:0;
}
.shop-actions .shop-secondary { border:1px solid #547777; background:transparent; color:var(--ui-text); }
.shop-actions .shop-secondary:hover { border-color:var(--ui-cyan); background:#183138; }
.mount-purchase-controls { margin:0 0 14px; padding:12px; border:1px solid #54777788; border-radius:4px; background:#10292e; }
.mount-unit-price { display:flex; justify-content:space-between; flex-wrap:wrap; gap:5px 10px; font:12px/1.4 var(--ui-font); }
.mount-purchase-controls p { margin:8px 0; color:#b3cbc8; font:11px/1.5 var(--ui-font); }
.mount-quantity { display:flex; align-items:center; gap:10px; margin:12px 0; }
#main-menu .mount-quantity button { display:grid; place-items:center; width:44px; height:44px; padding:0; border:1px solid #658a8899; border-radius:3px; background:#173238; color:#edf5f4; font:24px var(--ui-font); }
#main-menu .mount-quantity button:disabled { opacity:.4; }
.mount-quantity output { min-width:24px; text-align:center; color:#f0f7f5; font:650 18px var(--ui-mono); }
.mount-quantity > span { font:11px var(--ui-font); color:#a6bdbc; }
#main-menu #back-system-unlock.consumable-buy { background:#173238; color:#edf5f4; border:1px solid #658a8899; }
#main-menu #back-system-unlock.consumable-buy:hover:not(:disabled) { background:#244449; border-color:var(--ui-cyan); filter:none; }
.mount-loadout.quick-loadout .shop-product-copy { grid-template-columns:1fr; gap:3px; }
.mount-loadout.quick-loadout .shop-product small { text-align:left; font-size:10px !important; }
.mount-loadout.quick-loadout .shop-product-cooldown { display:block; font-size:9px; }
.mount-loadout.quick-loadout #shop-item-name { display:block; margin:0 0 8px; font:650 16px var(--ui-font); text-transform:none; }
.mount-loadout.quick-loadout .mount-purchase-controls { margin-bottom:10px; padding:8px; }
.mount-loadout.quick-loadout .mount-quantity { margin:8px 0; }
.mount-loadout.quick-loadout .shop-actions { display:grid; grid-template-columns:minmax(0,1fr) 80px; gap:8px; }
.mount-loadout.quick-loadout .shop-actions button { min-width:0; width:100%; padding:8px; }
#main-menu .mount-loadout.quick-loadout .shop-content { overflow:hidden; }
#main-menu .mount-loadout.quick-loadout .shop-catalog { flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; }
#main-menu .mount-loadout.quick-loadout .shop-inspector { position:static; }
#main-menu .quick-loadout .shop-product-check { display:none; }
#panel-chassis.mount-loadout .shop-product small { color:var(--ui-warn); }
@media(min-width:560px) and (max-height:700px) {
  #main-menu #panel-chassis.mount-loadout.quick-loadout { width:600px; }
  #main-menu .mount-loadout.quick-loadout .shop-content { display:grid; grid-template-columns:1fr 1fr; }
  #main-menu .mount-loadout.quick-loadout .shop-catalog { border-right:1px solid #395554; }
  .mount-loadout.quick-loadout .shop-item-info { border-top:0; }
}
#panel-chassis .shop-product[data-price="false"] small,
#panel-chassis .shop-purchase[data-equipped="true"] { font:var(--shop-status-font); letter-spacing:0; }
#panel-chassis .shop-product[data-price="false"] small { color:var(--ui-muted); }
#panel-chassis .shop-product.on[data-price="false"] small { color:var(--ui-cyan); }
#panel-chassis .shop-product[data-stock="true"] small { color:var(--ui-cyan); font-size:16px; font-weight:650; font-variant-numeric:tabular-nums; }
.shop-detail { min-width:0; align-self:start; border-left:1px solid #304248; padding-left:24px; }
.shop-detail .shop-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
.shop-detail .shop-stats dd { overflow-wrap:anywhere; }
@container shop-inspector (max-width:660px) {
  .backpack-shop:not(.quick-loadout) .shop-item-info { grid-template-columns:minmax(0,1fr); gap:18px; }
  .shop-detail { border-left:0; border-top:1px solid #304248; padding:16px 0 0; }
}
@container shop-inspector (max-width:300px) {
  .shop-detail .shop-stats { grid-template-columns:minmax(0,1fr); }
}
#shop-item-upgrade { min-height:54px; min-width:108px; width:auto; padding:8px 12px; font-size:14px; }
#main-menu .equipment-gold { color:var(--ui-warn); font-variant-numeric:tabular-nums; }
#main-menu #shop-item-upgrade.equipment-upgrade-button { display:flex; flex-direction:column; justify-content:center; align-items:center; gap:3px; background:#3b3421; border:1px solid #cba553; border-radius:2px; color:#fff2d4; letter-spacing:0; }
#main-menu #shop-item-upgrade.equipment-upgrade-button .equipment-gold { font-size:12px; }
#main-menu #shop-item-upgrade.equipment-upgrade-button:hover:not(:disabled), #main-menu #shop-item-upgrade.equipment-upgrade-button:focus-visible { background:#51452a; border-color:#ffe2a0; filter:none; outline:2px solid #ffe2a0; outline-offset:2px; }
#main-menu #shop-item-upgrade.equipment-upgrade-button:disabled { background:#16272c; border-color:#405259; color:#b5c7c9; }
#main-menu .upgrade-loadout .shop-catalog, .upgrade-loadout .shop-actions { display:none; }
.upgrade-loadout .shop-item-info { border-top:0; }
.shop-upgrade-path { min-width:0; align-self:start; border:1px solid #496a6966; border-top:2px solid var(--ui-cyan); border-radius:2px; background:#0a1b20; overflow:hidden; }
.upgrade-path-header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 14px 12px; }
.upgrade-path-header h4 { margin:0; color:#d5e6df; font:650 14px/1.3 var(--ui-font); text-transform:uppercase; letter-spacing:.1em; }
.upgrade-path-header > span { color:var(--ui-cyan); font:12px var(--ui-mono); font-variant-numeric:tabular-nums; }
.upgrade-steps { position:relative; list-style:none; margin:0; padding:0 10px 12px; max-height:340px; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#547777 #0a1b20; }
.upgrade-steps:focus-visible { outline:1px solid var(--ui-cyan); outline-offset:-2px; }
.upgrade-steps > li { position:relative; display:grid; grid-template-columns:32px minmax(0,1fr); gap:8px; padding:0 0 8px; }
.upgrade-steps > li:not(:last-child)::after { content:''; position:absolute; left:15px; top:56px; bottom:-40px; width:1px; background:#375052; }
.upgrade-step-marker { display:grid; place-items:center; width:30px; height:30px; margin-top:41px; border:1px solid #405957; border-radius:2px; background:#0e2429; color:#a6bfba; font:600 12px var(--ui-mono); z-index:1; }
.upgrade-step-body { position:relative; min-width:0; height:112px; box-sizing:border-box; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; border:1px solid #46615b88; border-radius:2px; padding:12px; background:#102328; }
.upgrade-step-badge { color:#bed6ce; font:600 11px var(--ui-font); text-transform:uppercase; letter-spacing:.05em; }
.upgrade-step-effect { min-width:0; margin:0; color:#e2ece6; font:600 16px/1.35 var(--ui-font); }
.upgrade-step-stat { display:block; overflow-wrap:break-word; }
.upgrade-step-locked { min-width:78px; display:flex; flex-direction:column; align-items:center; gap:7px; color:#809a91; }
.upgrade-step-locked svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:square; }
.upgrade-step-locked .equipment-gold { font:600 12px var(--ui-font); white-space:nowrap; }
.upgrade-steps [data-status="next"] .upgrade-step-body:has(#shop-upgrade-status:not([hidden])) { padding-bottom:30px; }
#shop-upgrade-status { position:absolute; left:12px; right:12px; bottom:8px; margin:0; font:12px/1.25 var(--ui-font); }
.upgrade-steps [data-status="complete"]::after { background:#609f91; }
.upgrade-steps [data-status="complete"] .upgrade-step-marker { color:#9ed8c7; border-color:#609f91; }
.upgrade-steps [data-status="complete"] .upgrade-step-body { background:#0d2226; }
.upgrade-steps [data-status="current"] .upgrade-step-marker { border-color:var(--ui-cyan); color:#09211f; background:var(--ui-cyan); box-shadow:0 0 10px #71d8ce22; }
.upgrade-steps [data-status="current"] .upgrade-step-body { background:#12302f; border-color:#619e9677; }
.upgrade-steps [data-status="current"] .upgrade-step-badge { color:var(--ui-cyan); }
.upgrade-steps [data-status="next"] .upgrade-step-marker { color:var(--ui-warn); border-color:var(--ui-warn); box-shadow:0 0 10px #d8af501a; }
.upgrade-steps [data-status="next"] .upgrade-step-body { border-color:#d8af5080; border-left:2px solid var(--ui-warn); background:linear-gradient(110deg,#282e24,#172724); }
.upgrade-steps [data-status="next"] .upgrade-step-effect { color:#fff0ce; }
.upgrade-steps [data-status="future"] .upgrade-step-effect { color:#acc2ba; }
.upgrade-steps [data-status="future"] .upgrade-step-body { border-style:dashed; background:#0d2024; }
.shop-equipment-progress { display:grid; gap:16px; margin:26px 0 0; }
.shop-equipment-progress[hidden] { display:none; }
.equipment-stat-label { display:block; margin-bottom:8px; color:#cde0d8; font:600 14px/1.3 var(--ui-font); }
.equipment-stat-row[data-next="true"] .equipment-stat-label { color:var(--ui-warn); }
.equipment-stat-blocks { display:grid; grid-template-columns:repeat(var(--stat-blocks),minmax(0,1fr)); gap:5px; padding-inline:2px; }
.equipment-stat-blocks > i { display:block; min-width:0; height:12px; transform:skewX(-12deg); border:1px solid #47625b; background:#0b1c20; }
.equipment-stat-blocks [data-state="filled"] { border-color:#75dacf; background:var(--ui-cyan); box-shadow:0 0 7px #71d8ce26; }
.equipment-stat-blocks [data-state="next"] { border-color:#dbb354; background:#352e1e; }
.equipment-stat-blocks .just-upgraded { animation:stat-block-unlock .7s ease-out; }
@keyframes stat-block-unlock { 0%,35% { background:#fff0ad; border-color:#fff0ad; box-shadow:0 0 16px #ffd77b99; } }
@media(prefers-reduced-motion:reduce) { .equipment-stat-blocks .just-upgraded { animation:none; } }
.shop-inspector.has-upgrade-path .shop-detail { grid-column:1 / -1; border-left:0; border-top:1px solid #304248; padding:16px 0 0; }
.quick-loadout:not(.upgrade-loadout) .shop-upgrade-path { display:none; }
.quick-loadout:not(.upgrade-loadout) .shop-equipment-progress { display:none; }
#main-menu .upgrade-loadout .shop-item-info { display:block; padding:0; }
.upgrade-loadout .shop-equipment-progress { margin:16px 12px 12px; }
.upgrade-loadout .shop-feedback:not(:empty) { margin:8px 10px 10px; }
#main-menu .upgrade-loadout .shop-inspector { position:static; }
.quick-loadout.upgrade-loadout .shop-upgrade-path { width:calc(100% - 20px); margin:10px; box-sizing:border-box; }
.upgrade-loadout .upgrade-steps { max-height:280px; }
@media(min-width:560px) {
  #main-menu #panel-chassis.quick-loadout.upgrade-loadout { width:680px; }
  #main-menu .quick-loadout.upgrade-loadout .shop-inspector { display:grid; grid-template-columns:minmax(0,.8fr) minmax(260px,1fr); align-items:start; }
  .quick-loadout.upgrade-loadout .shop-item-info { grid-column:1; }
  .quick-loadout.upgrade-loadout .shop-upgrade-path { grid-column:2; }
}
.backpack-shop:not(.quick-loadout) .shop-inspector.has-upgrade-path .shop-item-info { grid-template-columns:minmax(0,1fr); }
.backpack-shop:not(.quick-loadout) .shop-upgrade-path {
  flex:none; display:flex; flex-direction:column; width:100%; min-height:260px; height:min(520px,65dvh);
  margin:0; border-inline:0; border-bottom:0; border-radius:0;
}
.backpack-shop:not(.quick-loadout) .shop-upgrade-path[hidden] { display:none; }
.backpack-shop:not(.quick-loadout) .shop-upgrade-path .upgrade-steps { flex:1; min-height:0; max-height:none; }
.backpack-shop:not(.quick-loadout) .upgrade-path-header { flex:none; padding:20px 16px 16px; }
@media(min-width:1280px) {
  .backpack-shop:not(.quick-loadout) .shop-inspector.has-upgrade-path {
    display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,.9fr);
    grid-template-rows:auto minmax(0,1fr); overflow:hidden;
  }
  .backpack-shop:not(.quick-loadout) .shop-inspector.has-upgrade-path .shop-stage { grid-column:1; grid-row:1; }
  .backpack-shop:not(.quick-loadout) .shop-inspector.has-upgrade-path .shop-item-info {
    grid-column:1; grid-row:2; min-height:0; overflow-y:auto; overscroll-behavior:contain; align-content:start; padding:20px;
  }
  .backpack-shop:not(.quick-loadout) .shop-inspector.has-upgrade-path .shop-upgrade-path {
    grid-column:2; grid-row:1 / -1; align-self:stretch; min-height:0; height:auto; border-top:0; border-left:1px solid #496a6966;
  }
  .backpack-shop:not(.quick-loadout) .shop-inspector.has-upgrade-path .upgrade-path-header { border-top:2px solid var(--ui-cyan); }
}
.backpack-shop:not(.quick-loadout) .shop-product[data-price="true"] small { font-size:17px; font-weight:650; font-variant-numeric:tabular-nums; }
.backpack-shop:not(.quick-loadout) .shop-chassis-purchase .shop-purchase { width:auto; min-width:min(144px,100%); max-width:100%; padding:10px 20px; border-radius:5px; font-size:13px; }
.backpack-shop:not(.quick-loadout) .shop-stats dd { font:16px var(--ui-font); }
.backpack-shop:not(.quick-loadout) .shop-footer { font:11px var(--ui-font); }
.backpack-shop:not(.quick-loadout) .shop-chassis-purchase { margin:0 0 16px; }
.backpack-shop:not(.quick-loadout) .shop-backpack-preview { padding:20px 16px; }
.backpack-shop:not(.quick-loadout) .shop-backpack-preview .shop-products { margin-top:16px; }
@media(max-width:1050px) {
  .backpack-shop:not(.quick-loadout) .shop-content { grid-template-columns:clamp(165px,20vw,210px) clamp(235px,29vw,340px) minmax(0,1fr); }
  .backpack-shop:not(.quick-loadout) :is(.shop-mechs,.shop-catalog,.shop-backpack-preview) { padding:14px 10px; }
  .backpack-shop:not(.quick-loadout) .shop-products { grid-template-columns:minmax(0,1fr); }
  .backpack-shop:not(.quick-loadout) .shop-product-art { height:112px; min-height:112px; }
  .backpack-shop:not(.quick-loadout) .shop-product strong { min-height:0; }
  .shop-category-label { font-size:11px; gap:5px; }
  .backpack-shop:not(.quick-loadout) .shop-item-info { padding:16px; }
  .backpack-shop:not(.quick-loadout) #shop-item-name { font-size:22px; }
}
@media(max-width:700px) {
  .backpack-shop:not(.quick-loadout) .shop-content { touch-action:pan-x pan-y; }
  .backpack-shop:not(.quick-loadout) :is(.shop-mech-list,.shop-products,.shop-inspector,.upgrade-steps) { overscroll-behavior-x:auto; }
  .backpack-shop:not(.quick-loadout) .shop-header { gap:12px; }
  .backpack-shop:not(.quick-loadout) .shop-heading h2 { font-size:22px; }
  .backpack-shop:not(.quick-loadout) .shop-panel-heading h3 { font-size:16px; }
  .backpack-shop:not(.quick-loadout) .shop-categories { gap:4px; margin:12px 0; }
  .shop-category-label { font-size:10px; }
  .shop-category-label .menu-action-icon { display:none; }
  #main-menu .shop-categories .shop-category-switch { --switch-width:36px; --switch-height:24px; --switch-knob:16px; --switch-travel:12px; }
  .backpack-shop:not(.quick-loadout) .shop-mech-art { height:112px; }
  .backpack-shop:not(.quick-loadout) .shop-product-copy { padding:8px; }
  .backpack-shop:not(.quick-loadout) .shop-product strong { font-size:12px; }
  .backpack-shop:not(.quick-loadout) .shop-stage { height:180px; }
  .backpack-shop:not(.quick-loadout) .shop-stage img { padding:12px; }
  .backpack-shop:not(.quick-loadout) .shop-item-info { padding:12px; }
  .backpack-shop:not(.quick-loadout) #shop-item-name { font-size:20px; }
  #shop-item-summary { font-size:12px; }
  .backpack-shop:not(.quick-loadout) .shop-purchase { min-height:44px; }
  .shop-actions { gap:8px; }
  .shop-actions .shop-purchase, .shop-actions .shop-secondary { padding-inline:10px; }
  .shop-price strong { font-size:28px; }
  .backpack-shop:not(.quick-loadout) .shop-product[data-price="true"] small { font-size:16px; }
  .backpack-shop:not(.quick-loadout) .shop-footer { padding:10px 14px; font-size:9px; }
}
@container shop-inspector (max-width:300px) {
  .shop-actions .shop-purchase, .shop-actions .shop-secondary { width:100%; }
}
@media(max-width:559px) {
  .backpack-shop:not(.quick-loadout) .shop-inspector { flex-basis:100%; }
}
