/* Division 2 inventory: modelled on the in-game inventory / gear selection screens. Dark only, like the game. */
:root {
  color-scheme: dark;
  --bg: #0d0f12;
  --bg-2: #15181d;
  --panel: rgba(18, 21, 26, 0.82);
  --panel-solid: #171a20;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.28);
  --text: #ecebe7;
  --muted: #a3a29c;
  --faint: #6f6e69;
  --shd: #ff6d10;          /* SHD orange: focus + primary action only */
  --hi: #e9a43a;           /* High-End */
  --hi-deep: #8a5a17;
  --named: #ffd257;        /* named item text */
  --set: #34b56a;          /* Gear Set */
  --set-deep: #155c33;
  --exo: #e8582e;          /* Exotic */
  --exo-deep: #7c2410;
  --off: #e5492f;          /* offensive attribute */
  --def: #3f9ded;          /* defensive attribute */
  --skl: #f0c133;          /* skill attribute */
  --radius: 2px;
  --gap: 10px;
  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-cond: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background:
    radial-gradient(1200px 700px at 30% 40%, rgba(255, 109, 16, 0.06), transparent 60%),
    linear-gradient(180deg, #11141a 0%, var(--bg) 70%);
  color: var(--text);
  font: 15px/1.4 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--shd); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- top bar */
.topbar {
  display: flex; align-items: center; gap: 24px;
  height: 56px; padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 12, 15, 0.9);
  position: sticky; top: 0; z-index: 20;
}
.brand { font: 700 18px/1 var(--font-cond); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.brand b { color: var(--shd); font-weight: 700; }
.tabs { display: flex; gap: 2px; height: 100%; }
.tabs a {
  display: flex; align-items: center; padding: 0 18px;
  font: 600 15px/1 var(--font-cond); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent;
}
.tabs a:hover { color: var(--text); }
.tabs a[aria-current='page'] { color: var(--text); border-bottom-color: var(--shd); background: linear-gradient(0deg, rgba(255,109,16,.14), transparent); }
.topbar .spacer { flex: 1; }
.quality { display: flex; border: 1px solid var(--line); }
.quality button {
  border: 0; background: transparent; padding: 6px 12px;
  font: 600 13px/1 var(--font-cond); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.quality button[aria-pressed='true'] { background: var(--text); color: #111; }

/* ---------------------------------------------------------------- shared panel */
.panel { background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.panel-title {
  margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line);
  font: 600 13px/1 var(--font-cond); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.label { font: 600 12px/1 var(--font-cond); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------------------------------------------------------------- agent + stats */
.agent { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 0; }
.agent img {
  height: 100%; max-height: calc(100vh - 120px); width: auto; object-fit: contain;
  /* fade the render's hard edges into the page, like the in-game scene */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%),
                      linear-gradient(180deg, transparent 0, #000 8%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%),
                      linear-gradient(180deg, transparent 0, #000 8%, #000 80%, transparent 100%);
          mask-composite: intersect;
}
.stats { width: 220px; }
.stats dl { margin: 0; padding: 10px 14px 12px; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; }
.stats dt { color: var(--muted); font-size: 13px; }
.stats dd { margin: 0; text-align: right; font: 600 15px/1.2 var(--font-cond); font-variant-numeric: tabular-nums; }
.cores { display: flex; justify-content: space-around; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cores span { display: flex; flex-direction: column; align-items: center; gap: 4px; font: 700 20px/1 var(--font-cond); }
.core-icon { width: 12px; height: 12px; transform: rotate(45deg); display: inline-block; }
.core-icon.off { background: var(--off); }
.core-icon.def { background: var(--def); }
.core-icon.skl { background: var(--skl); }

/* ---------------------------------------------------------------- tiles */
.tile {
  position: relative; display: grid; grid-template-rows: auto 1fr auto auto; gap: 4px;
  min-height: 116px; padding: 8px 10px 8px;
  text-align: left; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(135deg, #20242b, #171a1f);
  overflow: hidden;
}
.tile:hover { border-color: var(--line-strong); }
.tile .slot { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 600 11px/1 var(--font-cond); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,.72); }
/* the art sits in its own band between the label and the name, like the in-game tiles */
.tile .pic { position: absolute; inset: 22px 10px 46px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.tile .pic img { max-height: 100%; max-width: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.45)); }
.tile .slot, .tile .name, .tile .meta { position: relative; z-index: 1; text-shadow: 0 1px 2px rgba(0,0,0,.55); }
.tile .name { align-self: end; min-height: 1.15em; font: 600 15px/1.15 var(--font-cond); letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .meta { display: flex; align-items: center; gap: 6px; font: 600 13px/1 var(--font-cond); color: rgba(255,255,255,.85); font-variant-numeric: tabular-nums; }
.tile .meta .core-icon { width: 9px; height: 9px; }
.tile.wide { min-height: 124px; }
.tile.wide .pic { inset: 18px 10px 12px 34%; justify-content: flex-end; }

.r-high_end { background: linear-gradient(135deg, var(--hi-deep), var(--hi) 140%); border-color: rgba(233,164,58,.55); }
.r-named    { background: linear-gradient(135deg, var(--hi-deep), var(--hi) 140%); border-color: rgba(255,210,87,.7); }
.r-named .name { color: var(--named); }
.r-gear_set { background: linear-gradient(135deg, var(--set-deep), var(--set) 150%); border-color: rgba(52,181,106,.55); }
.r-exotic   { background: linear-gradient(135deg, var(--exo-deep), var(--exo) 150%); border-color: rgba(232,88,46,.6); }
.tile.empty { background: rgba(255,255,255,.02); border-style: dashed; }
.tile.empty .name { color: var(--faint); font-weight: 500; }
.tile.empty .pic::before { content: '+'; font: 300 30px/1 var(--font-cond); color: var(--faint); }
.tile .equipped {
  position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; display: grid; place-items: center;
  background: var(--text); color: #111; font-size: 12px; font-weight: 700;
}
.tile[aria-current='true'] { outline: 2px solid var(--text); outline-offset: -2px; }

/* ---------------------------------------------------------------- overview */
.overview {
  display: grid; gap: 18px; padding: 18px 24px 24px;
  grid-template-columns: minmax(260px, 0.72fr) minmax(440px, 1.2fr) minmax(320px, 1fr);
  grid-template-areas: 'weapons agent gear' 'bottom bottom bonuses';
  min-height: calc(100vh - 56px);
}
.ov-weapons { grid-area: weapons; display: grid; gap: var(--gap); align-content: start; }
.ov-gear { grid-area: gear; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-content: start; }
.ov-agent { grid-area: agent; position: relative; min-height: 560px; }
.ov-agent .agent { position: absolute; inset: 0 0 0 150px; }
.ov-agent .stats { position: absolute; left: 0; top: 0; z-index: 2; }
.ov-bottom { grid-area: bottom; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); align-content: start; }
.ov-bonuses { grid-area: bonuses; }
.group-label { margin: 6px 0 2px; }

/* ---------------------------------------------------------------- set bonuses */
.bonus-list { list-style: none; margin: 0; padding: 4px 0; }
.bonus-set { padding: 8px 14px; border-bottom: 1px solid var(--line); }
.bonus-set:last-child { border-bottom: 0; }
.bonus-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.bonus-head strong { font: 600 15px/1.2 var(--font-cond); }
.bonus-head .count { font: 600 13px/1 var(--font-cond); color: var(--muted); font-variant-numeric: tabular-nums; }
.bonus-set.k-gear .bonus-head strong { color: var(--set); }
.tier { display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 3px 0; font-size: 13.5px; color: var(--faint); }
.tier .pc { font: 600 12px/1.5 var(--font-cond); letter-spacing: .06em; }
.tier.on { color: var(--text); }
.tier.on .pc { color: var(--hi); }
.k-gear .tier.on .pc { color: var(--set); }
.empty-note { padding: 12px 14px; color: var(--muted); font-size: 13.5px; }

/* ---------------------------------------------------------------- selection view */
.select {
  display: grid; gap: 18px; padding: 18px 24px 0;
  grid-template-columns: minmax(240px, 0.75fr) minmax(360px, 1.2fr) minmax(340px, 0.95fr);
  height: calc(100vh - 56px);
}
.sel-agent { position: relative; min-height: 0; }
.sel-agent .agent { position: absolute; inset: 0; }
.sel-agent .stats { position: absolute; left: 0; top: 0; z-index: 2; }
.sel-list { display: grid; grid-template-rows: auto auto 1fr auto; min-height: 0; }
.sel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.sel-head h1 { margin: 0; font: 700 26px/1 var(--font-cond); letter-spacing: .06em; text-transform: uppercase; }
.sel-head .count { color: var(--muted); font: 600 14px/1 var(--font-cond); letter-spacing: .08em; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 0; }
.filters input[type='search'] {
  flex: 1 1 180px; min-width: 0; padding: 8px 10px; background: rgba(0,0,0,.35);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.chip {
  padding: 6px 10px; border: 1px solid var(--line); background: transparent;
  font: 600 12px/1 var(--font-cond); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.chip[aria-pressed='true'] { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,.08); }
.chip .swatch { display: inline-block; width: 8px; height: 8px; margin-right: 6px; vertical-align: 1px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow: auto; align-content: start; padding: 2px 6px 12px 2px; }
.list-foot { padding: 8px 0 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; }
.hints { display: flex; gap: 14px; flex-wrap: wrap; }
.hints kbd {
  display: inline-block; min-width: 20px; padding: 1px 5px; margin-right: 5px; text-align: center;
  border: 1px solid var(--line-strong); font: 600 11px/1.5 var(--font-cond); color: var(--text);
}

/* ---------------------------------------------------------------- detail card */
.detail { overflow: auto; align-self: start; max-height: calc(100vh - 80px); }
.card-head { padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
.card-head h2 { margin: 0; font: 700 20px/1.1 var(--font-cond); letter-spacing: .02em; }
.card-head .rarity { font: 600 13px/1 var(--font-cond); letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.card-head .big { grid-row: span 2; text-align: right; font: 700 26px/1 var(--font-cond); font-variant-numeric: tabular-nums; align-self: center; }
.card-head .big small { display: block; font: 600 11px/1.2 var(--font-cond); letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.card-head.r-named h2 { color: var(--named); }
.card-pic { padding: 12px 14px; display: flex; justify-content: center; background: rgba(0,0,0,.25); border-bottom: 1px solid var(--line); }
.card-pic img { max-height: 150px; object-fit: contain; }
.card-sec { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.card-sec:last-of-type { border-bottom: 0; }
.card-sec h3 { margin: 0 0 6px; font: 600 12px/1 var(--font-cond); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.attr { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; }
.attr .v { font: 600 15px/1 var(--font-cond); font-variant-numeric: tabular-nums; }
.attr select, .card-sec select {
  width: 100%; padding: 5px 6px; background: rgba(0,0,0,.4); border: 1px solid var(--line); border-radius: var(--radius);
}
.attr.unset .v { color: var(--faint); }
.talent-name { font: 600 16px/1.2 var(--font-cond); color: var(--text); }
.talent-desc { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px; }
.kv div { display: flex; flex-direction: column; gap: 2px; }
.kv dt { font: 600 11px/1 var(--font-cond); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kv dd { margin: 0; font: 600 17px/1.1 var(--font-cond); font-variant-numeric: tabular-nums; }
.actions { display: flex; gap: 8px; padding: 12px 14px; }
.btn {
  padding: 9px 16px; border: 1px solid var(--line-strong); background: transparent; border-radius: var(--radius);
  font: 600 14px/1 var(--font-cond); letter-spacing: .1em; text-transform: uppercase;
}
.btn:hover { background: rgba(255,255,255,.06); }
.btn.primary { background: var(--shd); border-color: var(--shd); color: #160a02; }
.btn.primary:hover { background: #ff8436; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------------------------------------------------------------- loadouts */
.loadouts { padding: 18px 24px 32px; display: grid; gap: 14px; }
.loadouts-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.loadouts-head h1 { margin: 0; font: 700 26px/1 var(--font-cond); letter-spacing: .06em; text-transform: uppercase; }
.loadout-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; align-items: start; }
.loadout { display: grid; grid-template-rows: auto 1fr auto; }
.loadout header { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); gap: 8px; }
.loadout header .idx { font: 700 13px/1 var(--font-cond); color: var(--muted); letter-spacing: .1em; }
.loadout header strong { flex: 1; font: 600 17px/1.1 var(--font-cond); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loadout .spec { font: 600 12px/1 var(--font-cond); letter-spacing: .12em; text-transform: uppercase; color: var(--shd); }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 12px 14px; align-content: start; }
.thumbs span.w { grid-column: span 2; aspect-ratio: 2 / 1; }
.thumbs span { aspect-ratio: 1; border: 1px solid var(--line); background: rgba(255,255,255,.03); display: grid; place-items: center; overflow: hidden; }
.thumbs span img { width: 100%; height: 100%; object-fit: contain; }
.thumbs span.r-high_end, .thumbs span.r-named { border-color: rgba(233,164,58,.6); }
.thumbs span.r-gear_set { border-color: rgba(52,181,106,.6); }
.thumbs span.r-exotic { border-color: rgba(232,88,46,.7); }
.loadout footer { display: flex; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.loadout footer .btn { padding: 7px 10px; font-size: 13px; }
.loadout.vacant { border-style: dashed; background: transparent; grid-template-rows: auto auto; }
.loadout.vacant header { border-bottom: 0; }
.loadout.vacant strong { color: var(--faint); font-weight: 500; }
.loadouts-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.notice { padding: 40px 24px; color: var(--muted); }

/* ---------------------------------------------------------------- damage */
.damage {
  display: grid; gap: 18px; padding: 18px 24px 32px; align-items: start;
  grid-template-columns: minmax(260px, 300px) minmax(380px, 1fr) minmax(320px, 420px);
}
.damage > * { min-width: 0; }
.dmg-rank { overflow-x: auto; }
.sc-body { display: grid; gap: 16px; padding: 14px; }
.sc-body fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sc-body legend { margin-bottom: 8px; padding: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; }
.seg legend { width: 100%; }
.seg-opt { flex: 1 1 0; min-width: 0; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span {
  display: flex; flex-direction: column; gap: 2px; padding: 7px 8px; border: 1px solid var(--line);
  font: 600 13px/1.1 var(--font-cond); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); cursor: pointer;
}
.seg-opt span small { font: 500 12px/1.2 var(--font); letter-spacing: 0; text-transform: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg-opt input:checked + span { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,.08); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--shd); outline-offset: 2px; }
.sc-row { display: grid; grid-template-columns: 82px 1fr 52px; align-items: center; gap: 10px; }
.sc-row output { text-align: right; font: 600 15px/1 var(--font-cond); font-variant-numeric: tabular-nums; }
.sc-row input[type='range'] { width: 100%; accent-color: var(--shd); }
.sc-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sc-row2 label { display: grid; gap: 6px; }
.sc-body select { width: 100%; padding: 6px; background: rgba(0,0,0,.4); border: 1px solid var(--line); border-radius: var(--radius); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.checks legend { grid-column: 1 / -1; }
.checks label { display: flex; align-items: center; gap: 8px; font-size: 14px; text-transform: capitalize; }
.checks input { accent-color: var(--shd); width: 16px; height: 16px; }
.disputed summary { cursor: pointer; }
.disputed p { margin: 8px 0; color: var(--muted); font-size: 13px; }
.disputed .seg { margin-top: 10px; }
.kv4 { grid-template-columns: repeat(4, 1fr); }
.status-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.status-list li { display: grid; grid-template-columns: 70px 1fr auto; gap: 10px; padding: 5px 0; font-size: 13.5px; color: var(--faint); border-bottom: 1px solid rgba(255,255,255,.05); }
.status-list li .st { font: 600 11px/1.6 var(--font-cond); letter-spacing: .12em; text-transform: uppercase; }
.status-list li.on { color: var(--text); }
.status-list li.on .st { color: var(--set); }
.status-list li .why { color: var(--muted); font-size: 12.5px; text-align: right; max-width: 220px; }
.flag { display: inline-block; padding: 1px 6px; margin-left: 6px; border: 1px solid var(--line-strong); font: 600 11px/1.5 var(--font-cond); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rank-note { margin: 0; padding: 10px 14px; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); }
.rank { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rank th, .rank td { padding: 6px 10px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: top; }
.rank thead th { font: 600 11px/1.2 var(--font-cond); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rank tbody th { font: 600 14px/1.25 var(--font-cond); }
.rank td:nth-child(2), .rank td:nth-child(3) { font: 600 14px/1.2 var(--font-cond); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rank td.needs { color: var(--muted); font-size: 12.5px; }
.rank tr.current { background: rgba(255,109,16,.08); }
.rank .muted, .muted { color: var(--faint); }
.link { border: 0; background: none; padding: 0 0 0 6px; color: var(--shd); font: 600 12px/1 var(--font-cond); letter-spacing: .08em; text-transform: uppercase; }
.link:hover { text-decoration: underline; }
.dps-link { color: var(--shd); text-decoration: none; }
.dps-link:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .damage { grid-template-columns: minmax(260px, 300px) 1fr; }
  .dmg-rank { grid-column: 1 / -1; }
  .overview { grid-template-columns: 1fr 1fr; grid-template-areas: 'agent agent' 'weapons gear' 'bottom bottom' 'bonuses bonuses'; }
  .ov-agent { min-height: 460px; }
  .ov-bottom { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .select { grid-template-columns: minmax(340px, 1.2fr) minmax(320px, 1fr); height: auto; }
  .sel-agent { display: none; }
  .grid { overflow: visible; }
  .detail { max-height: none; position: sticky; top: 70px; }
}
@media (max-width: 720px) {
  .damage { grid-template-columns: 1fr; padding: 12px 16px 24px; }
  .kv4 { grid-template-columns: repeat(2, 1fr); }
  .topbar { gap: 12px; padding: 0 16px; height: auto; min-height: 56px; flex-wrap: wrap; }
  .brand { font-size: 16px; padding-top: 10px; }
  .tabs { order: 3; width: 100%; height: 44px; }
  .tabs a { padding: 0 12px; }
  .overview { grid-template-columns: 1fr; grid-template-areas: 'agent' 'weapons' 'gear' 'bottom' 'bonuses'; padding: 12px 16px 24px; }
  .ov-agent { min-height: 380px; }
  .ov-agent .stats { width: 180px; }
  .ov-bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .select { grid-template-columns: 1fr; padding: 12px 16px 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail { position: static; }
  .loadouts { padding: 12px 16px 24px; }
  .kv { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .tile, .btn, .chip { transition: border-color .12s, background-color .12s; }
}
