/* Bunker Armory: image-backed hardware; live HTML owns every control and label. */
dialog.armory-dialog {
 --ink:#e3d4b8; --muted:#a59e8d; --cyan:#9bd9de; --orange:#ffbc59;
 --line:#474131; --panel:#0b0d0c; --housing:78px; --art-height:clamp(66px,calc(24svh - 107px),168px);
 width:min(1240px,calc(100vw - 24px)); max-width:none; max-height:calc(100svh - 20px);
 border:var(--housing) solid transparent; border-image:url('assets/armory-console-v13.png') 180 / var(--housing) stretch;
 border-radius:0; background:#0b0d0c; color:var(--ink); overflow:hidden;
}
.armory-dialog::backdrop{background:#020709a8;backdrop-filter:blur(2px)}
.armory-dialog #dialog-content{max-height:calc(100svh - 20px - 2*var(--housing));overflow:auto;scrollbar-color:#6d6045 #101310;scrollbar-width:thin}
.armory-dialog .armory-console{padding:12px 16px 0}
.armory-console button:focus-visible{outline:2px solid #b7f5f5;outline-offset:3px}
.armory-console .shop-header{align-items:center;margin-bottom:14px}
.armory-console .shop-header h2{color:#e5cda5;font-size:40px;font-weight:650;letter-spacing:-.035em;margin:0 0 3px}
.armory-console .eyebrow{color:#efb252;font-size:12px;letter-spacing:.075em}
.armory-console .wallet{font-size:38px;line-height:1.1;font-weight:600;color:#ffc36b}
.armory-console .wallet small{font-size:11px;font-weight:400;color:#bc9c66;margin-top:6px}
.armory-manifest{display:flex;align-items:stretch;gap:8px;margin-bottom:12px;flex-wrap:wrap}
.armory-manifest .run-limits{flex:0 1 auto;align-items:center;justify-content:space-between;gap:6px 18px;padding:8px 12px;margin:0;border:1px solid #4c4433;background:#0a0c0b;color:#b8ad96;font-size:11px;white-space:nowrap}
.armory-manifest .run-limits b{color:#e6d2aa}.armory-manifest .ultimate-limit b{color:#ffc168}
.armory-manifest .loadout-strip{margin:0;gap:6px;align-items:stretch}
.armory-manifest .loadout-chip{background:#0c100f;border-color:#4c493b;border-radius:2px;color:#c6b99f;padding:7px 10px;font-size:12px}
.armory-manifest .loadout-chip.equipped{border-color:#598d8e;color:#c9e2df}
.armory-manifest .loadout-chip small{color:#b4a58c;margin-left:6px}
.armory-manifest .loadout-chip.equipped small{color:#a6ced0}
.armory-manifest .loadout-chip.empty{border-style:dashed;color:#af9972}
.armory-manifest:has(.practice-limits) .practice-limits{flex-basis:100%;border:0;padding:0;color:#bba678;font-size:10px}
.armory-manifest:has(.practice-limits) .loadout-strip{flex:1}.armory-manifest:has(.practice-limits) .loadout-chip{flex:1;justify-content:center;padding:5px}
.armory-console .arsenal-nav{border:0;border-bottom:1px solid #61533a;border-radius:0;background:#111410;padding:0 0 7px;gap:8px;margin-bottom:12px}
.armory-console .arsenal-nav button,.armory-console .compact-repair,.armory-console .shop-footer>.primary-button,.armory-console .shop-footer>.secondary-button{
 border:9px solid transparent;border-image:url('assets/armory-cartridge-v13.png') 80 / 9px stretch;border-radius:0;background:#141610;
}
.armory-console .arsenal-nav button{color:#b6a689;font:12px var(--mono);text-transform:uppercase;min-height:51px;padding:3px 10px;gap:10px}
.armory-console .arsenal-nav button[aria-pressed=true]{color:#ffce78;background:#292113;box-shadow:inset 0 0 0 1px #b17c31}
.armory-console .arsenal-nav button:hover:not(:disabled){background:#29251a;color:#ffe0a3}
.armory-console .arsenal-nav small{color:#ad9e7d;font-size:9px}
.armory-console .arsenal-nav button[aria-pressed=true] small{color:#d9b26e}
.armory-console .arsenal-section-heading{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.armory-console .arsenal-tiles{grid-template-columns:repeat(12,minmax(0,1fr));gap:10px;padding:6px;background:#171a14;border:1px solid #3e3b2e}
.armory-console .installation-tiles>.arsenal-tile{grid-column:span 3}.armory-console .installation-tiles>.arsenal-tile:nth-child(n+5){grid-column:span 3}
.armory-console .support-tiles>.arsenal-tile{grid-column:span 4}
.armory-console .arsenal-tile{border:10px solid transparent;border-image:url('assets/armory-cartridge-v13.png') 80 / 10px stretch;border-radius:0;background:#0b0d0c}
.armory-console .arsenal-tile.available{background:#242821;box-shadow:0 0 0 2px #77eef0,0 0 22px #77eef06b,inset 0 0 22px #77eef012;animation:availablePulse 1.45s ease-in-out infinite}
.armory-console .arsenal-tile.available::before{content:"";position:absolute;inset:-10px;border:14px solid transparent;border-image:url('assets/armory-cartridge-v13.png') 80 / 14px stretch;filter:brightness(1.65) sepia(.75) saturate(1.5);pointer-events:none;z-index:1}
.armory-console .available-flag{position:absolute;z-index:4;left:10px;top:9px;padding:3px 7px;border:1px solid #86ffff;background:#082426;color:#a9ffff;font:700 9px/1.2 monospace;letter-spacing:1.2px;box-shadow:0 0 10px #6ff8ff88;pointer-events:none}
.armory-console .arsenal-tile.available .tile-buy>strong{color:#bfffff;text-shadow:0 0 8px #67efff80}
@keyframes availablePulse{50%{box-shadow:0 0 0 3px #ffe18d,0 0 30px #efb64b78,inset 0 0 28px #efb64b18}}
.armory-console .arsenal-tile:hover,.armory-console .arsenal-tile:focus-within{box-shadow:inset 0 0 0 2px #e3b365}
.armory-console .tile-buy{padding:7px 8px 3px;min-height:0;height:100%;border-radius:0;background:transparent;gap:0}
.armory-console .tile-buy:hover:not(:disabled){background:#181910}
.equipment-art{display:flex;align-items:center;justify-content:center;width:100%;height:var(--art-height);margin:0 0 8px;pointer-events:none;overflow:hidden}
.equipment-sprite{display:block;width:min(100%,calc(var(--art-height,105px) * var(--sprite-aspect)));height:auto;max-width:100%;background-repeat:no-repeat;mix-blend-mode:lighten;flex:none}
.armory-console .tile-buy>strong{color:#eee0c7;font:600 17px/1.3 system-ui,sans-serif;min-height:0}
.armory-console .tile-buy:disabled>strong{color:#c3b9a3}
.armory-console .unavailable .equipment-art{opacity:.76;filter:saturate(.75)}
.armory-console .tile-buy .tile-summary{font:13px/1.5 system-ui,sans-serif;color:#b5b3a8;margin:6px 0 12px;min-height:18px}
.armory-console .tile-bottom{border-top:1px solid #3a382d;min-height:29px;padding-top:7px;gap:10px}
.armory-console .tile-bottom>b{color:#ffc168;font-size:15px}.armory-console .tile-bottom small{font-size:8px;display:inline}
.armory-console .unavailable .tile-bottom>b{color:#bbae92}
.armory-console .tile-rank{gap:5px}.armory-console .tile-rank i{border-color:#857754;background:#10130f;width:7px;height:7px;border-radius:0}
.armory-console .tile-rank i.filled{background:#a5d9d5;border-color:#c9eeea}
.armory-console .tile-info{top:0;right:0;min-width:38px;min-height:38px;color:#c9b488;border-radius:2px;background:#0b0d0ca6;z-index:2}
.armory-console .tile-info:hover,.armory-console .tile-info[aria-expanded=true]{background:#372d1b;color:#ffe1a9}
.armory-console .tile-badge{top:6px;left:7px;max-width:calc(100% - 50px);font-size:10px;padding:4px 6px;background:#0b0d0cf0;border:1px solid #554b35;color:#d9b478}
.armory-console .arsenal-tooltip{background:#171b16;border:1px solid #a5874f;color:#ded7c7;border-radius:3px}
.armory-console .arsenal-tooltip>strong{color:#ffe0a2}.armory-console .arsenal-tooltip p{color:#c7c3b6}
.armory-console .arsenal-tooltip>span{color:#e9e2d0}.armory-console .tooltip-reason{border-color:#514632;color:#efc079}
.armory-console .arsenal-hint{font-size:11px;color:#bbb4a4;margin:10px 0}.armory-console .arsenal-hint span{color:#a29984}
.armory-console .site-status{display:grid;gap:7px;margin-top:10px;color:#d8c39e}
.sentinel-status{display:flex;align-items:center;gap:18px;background:#151710;border:1px solid #514831;padding:8px 12px}
.armory-console .site-status .sentinel-status span{padding:0;border:0;background:none;font-size:12px}
.sentinel-status b{color:#9fdfdf;font-weight:500}.sentinel-status.destroyed b{color:#ffba91}
.sentinel-status progress{flex:1;min-width:70px;max-width:700px;height:11px;appearance:none;border:1px solid #7e6235;background:#0a0c09;accent-color:#efb151}
.sentinel-status progress::-webkit-progress-bar{background:#0a0c09}.sentinel-status progress::-webkit-progress-value{background:#efb151}.sentinel-status progress::-moz-progress-bar{background:#efb151}
.armory-dialog .armory-console .shop-footer{position:sticky;bottom:0;z-index:3;margin-top:12px;padding:12px 0;background:#0b0d0c;border-top:1px solid #655234;gap:18px}
.armory-console .shop-footer>div{display:flex;align-items:center;gap:18px}
.armory-console .compact-repair{color:#d1bc91;font-size:12px;min-height:52px;padding:6px 14px;white-space:nowrap}
.armory-console .compact-repair:disabled{opacity:.6}
.armory-console .repair-info{font-size:11px;margin:0;color:#c6a66a;line-height:1.5}
.armory-console .shop-footer>.primary-button{background:#eeb04f;color:#1c1508;min-height:62px;min-width:270px;font-size:16px;padding:8px 28px;letter-spacing:.035em}
.armory-console .shop-footer>.primary-button:hover{background:#ffd381}
.armory-console .shop-footer>.secondary-button{color:#ddc79e;background:#171a14}
.armory-console .intro,.armory-console .weapon-path>p{color:#b8b5a8}
.armory-console .weapon-path{border-color:#514730;background:#111510}
.armory-console .weapon-path li{border-color:#34372b}.armory-console .weapon-path li small{color:#b0b3a4}
.armory-console .weapon-path-actions button{background:#242619;border-color:#64583a;color:#e4d0a7}
.armory-console .lab-note{background:#292619;color:#e6c990}
.armory-console .weapon-path.ultimate-path{background:#252216}
.armory-console .support-tiles .equipment-art{--art-height:clamp(160px,25svh,240px);margin:20px 0 14px;background:#0b0d0c;border:1px solid #393a2d;border-radius:2px}
.armory-console .support-tiles .equipment-sprite{filter:brightness(1.18)}
.armory-console .support-tiles:has(>.arsenal-tile:last-child:nth-child(2))>.arsenal-tile{grid-column:span 6}
@media(min-width:901px) and (max-height:800px){
 dialog.armory-dialog{--housing:28px;--art-height:76px;width:min(1140px,calc(100vw - 24px))}
 .armory-dialog .armory-console{padding:6px 10px 0}
 .armory-console .shop-header{margin-bottom:8px}.armory-console .shop-header h2{font-size:27px}.armory-console .wallet{font-size:29px}.armory-console .eyebrow{font-size:10px}
 .armory-manifest{margin-bottom:8px;gap:5px}.armory-manifest .run-limits{font-size:10px;padding:5px 9px;gap:8px}.armory-manifest .loadout-chip{padding:4px 7px;font-size:11px}.armory-manifest .loadout-chip .arsenal-icon{width:18px;height:18px}
 .armory-console .arsenal-nav{margin-bottom:7px;padding-bottom:5px}.armory-console .arsenal-nav button{min-height:40px;border-width:7px;border-image-width:7px;padding:1px 7px;font-size:11px}.armory-console .arsenal-nav small{font-size:8px}
 .armory-console .arsenal-tiles{gap:6px;padding:4px}.armory-console .arsenal-tile{border-width:8px;border-image-width:8px}.armory-console .arsenal-tile.available::before{inset:-8px;border-width:10px;border-image-width:10px}
 .armory-console .tile-buy{padding:3px 6px}.armory-console .tile-buy>strong{font-size:14px}.armory-console .tile-buy .tile-summary{font-size:11px;margin:4px 0 6px}.armory-console .tile-bottom{min-height:25px;padding-top:5px}.armory-console .tile-bottom>b{font-size:13px}
 .armory-console .arsenal-hint{margin:7px 0;font-size:10px}.armory-console .site-status{margin-top:7px}.sentinel-status{padding:6px 9px}
 .armory-dialog .armory-console .shop-footer{padding:8px 0;margin-top:8px}.armory-console .shop-footer>.primary-button{min-height:46px;min-width:220px;font-size:12px}.armory-console .compact-repair{min-height:44px;font-size:11px}.armory-console .repair-info{font-size:10px}
}
@media(max-width:900px){
 dialog.armory-dialog{--housing:24px;--art-height:105px;width:calc(100vw - 16px)}
 .armory-dialog .armory-console{padding:8px 8px 0}.armory-console .shop-header h2{font-size:30px}
 .armory-manifest .run-limits{flex-basis:100%}.armory-manifest .loadout-strip{flex:1}.armory-manifest .loadout-chip{flex:1;justify-content:center}
 .armory-console .installation-tiles>.arsenal-tile,.armory-console .installation-tiles>.arsenal-tile:nth-child(n+5),.armory-console .support-tiles>.arsenal-tile{grid-column:span 6}
 .armory-console .arsenal-nav button{padding:4px;font-size:11px}.armory-console .shop-footer>div{flex-direction:column;align-items:flex-start;gap:6px}
 .armory-console .shop-footer>.primary-button{min-width:0;padding:8px 15px;font-size:12px}
}
@media(max-width:520px){
 dialog.armory-dialog{--housing:14px;--art-height:100px;width:calc(100vw - 10px);max-height:calc(100svh - 10px)}
 .armory-dialog #dialog-content{max-height:calc(100svh - 10px - 2*var(--housing))}.armory-dialog .armory-console{padding:8px 4px 0}
 .armory-console .shop-header{gap:8px;margin-bottom:12px}.armory-console .shop-header h2{font-size:26px}.armory-console .eyebrow{font-size:8px;letter-spacing:.02em}.armory-console .wallet{font-size:28px}.armory-console .wallet small{font-size:8px}
 .armory-manifest .run-limits{white-space:normal;font-size:10px;gap:5px 10px;padding:7px}.armory-manifest .loadout-chip{font-size:10px;padding:6px}.armory-manifest .loadout-chip small{font-size:8px}
 .armory-manifest:has(.practice-limits) .loadout-chip{flex:1 1 27%}.armory-manifest .loadout-chip .arsenal-icon{width:18px;height:18px}
 .armory-console .arsenal-nav{gap:3px}.armory-console .arsenal-nav button{border-width:6px;border-image-width:6px;font-size:9px;min-height:61px;gap:4px}.armory-console .arsenal-nav small{font-size:8px}
 .armory-console .arsenal-tiles{gap:5px;padding:3px}.armory-console .arsenal-tile{border-width:7px;border-image-width:7px}.armory-console .tile-buy{padding:5px}.armory-console .tile-buy>strong{font-size:13px;min-height:34px}.armory-console .tile-buy .tile-summary{font-size:11px;min-height:33px;margin:3px 0 8px}
 .armory-console .tile-bottom>b{font-size:12px}.armory-console .tile-bottom small{display:none}.armory-console .tile-info{min-width:44px;min-height:44px;background:transparent}.armory-console .tile-badge{top:8px;left:0;font-size:9px;padding:3px;max-width:calc(100% - 38px)}
 .armory-console .arsenal-tile.available::before{inset:-7px;border-width:10px;border-image-width:10px}
 .armory-console .tile-rank{gap:3px}.armory-console .tile-rank i{width:6px;height:6px}.armory-console .arsenal-hint{font-size:10px}
 .sentinel-status{flex-wrap:wrap;gap:8px;padding:8px}.sentinel-status progress{flex-basis:100%}
 .armory-dialog .armory-console .shop-footer{flex-direction:column-reverse;align-items:stretch;gap:9px;padding:8px 0;margin-top:8px}
 .armory-console .shop-footer>div{flex-direction:row;align-items:center;gap:10px}.armory-console .compact-repair{width:auto;min-height:44px;padding:3px 6px;font-size:9px}.armory-console .repair-info{text-align:left;font-size:9px;flex:1}.armory-console .shop-footer>.primary-button{min-height:47px}
}
@media(prefers-reduced-motion:reduce){.armory-console button{transition:none}.armory-console .arsenal-tile.available{animation:none}}

@media(min-width:901px) and (min-height:801px){.armory-console .installation-tiles>.arsenal-tile:nth-child(n+5) .equipment-art{--art-height:145px}.armory-console .arsenal-nav button{font-size:14px}.armory-console .run-limits{font-size:12px}}

/* Illustrated menu symbols: fixed boxes preserve labels, hit targets and aspect ratios. */
.menu-art{display:inline-flex;align-items:center;justify-content:center;flex:none;pointer-events:none;overflow:hidden;--art-height:32px}
.menu-art .equipment-sprite{filter:brightness(1.5)}
.armory-console .arsenal-nav .menu-art{width:42px;height:34px;--art-height:34px}
.armory-console .loadout-chip .menu-art{width:38px;height:26px;--art-height:26px}
.armory-console .compact-repair .menu-art{width:32px;height:27px;--art-height:27px}
.weapon-identity{display:flex;align-items:center;gap:12px;min-width:0}
.armory-console .weapon-heading{align-items:center}
.armory-console .weapon-identity .menu-art{width:85px;height:55px;--art-height:55px}
@media(max-width:520px){
 .armory-console .arsenal-nav .menu-art{width:36px;height:30px;--art-height:30px}
 .armory-console .loadout-chip .menu-art{width:29px;height:23px;--art-height:23px}
 .armory-console .support-tiles .equipment-art{--art-height:120px;margin-top:25px}
 .armory-console .weapon-identity .menu-art{width:57px;height:42px;--art-height:42px}
 .armory-console .weapon-heading{font-size:12px}
}
