.inventory-deck {
  display:grid;
  grid-template-columns:minmax(0, 2.2fr) minmax(0, 1fr);
  gap:12px;
}
.inventory-doll {
  display:grid;
  grid-template-columns:minmax(52px, 1fr) minmax(0, 3fr) minmax(52px, 1fr);
  gap:6px;
  min-width:0;
  padding:7px;
  border:1px solid #536985;
  background:linear-gradient(145deg,#17263b,#080f1d 60%);
  border-radius:10px;
}
.inventory-doll .hero-display { min-height:0; }
.inventory-doll .hero-display img { height:clamp(240px,45vw,430px); }
.slot-rail { display:grid; grid-auto-rows:minmax(65px, 1fr); gap:5px; }
.equip-slot,.stash-item {
  --item-color:#88a3bf;
  position:relative;
  display:grid;
  justify-items:center;
  align-content:center;
  min-width:0;
  padding:4px;
  color:#e7edf7;
  border:1px solid var(--item-color);
  background:radial-gradient(ellipse at 50% 40%,color-mix(in srgb,var(--item-color) 20%,#142238),#0b1322 78%);
  border-radius:5px;
}
.equip-slot small,.equip-slot strong {font-size:clamp(.6rem,1.4vw,.77rem);line-height:1.15;overflow-wrap:anywhere}
.equip-slot small {color:var(--item-color)}
.equip-slot span {font-size:1.35rem;color:#67849e}
.equip-slot img {width:100%;height:clamp(27px,6vw,50px);object-fit:contain}
.stash {margin-top:12px;padding:12px;background:#0d1627;border:1px solid #354b68;border-radius:8px}
.stash h3 {margin:0 0 8px}
.stash h3 small {font-size:.75rem;color:#b1cce1;margin-left:6px}
.stash-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(54px,1fr));gap:5px}
.stash-grid>p {grid-column:1/-1}
.stash-item {aspect-ratio:1;align-content:stretch;cursor:pointer}
.stash-item[draggable=true] {cursor:grab}
.stash-item img {width:100%;height:100%;min-height:0;object-fit:contain}
.stash-item small {position:absolute;right:2px;bottom:2px;padding:1px 3px;border-radius:2px;color:#e8f4ff;background:#081020;font-size:.62rem;font-weight:800}
.equip-slot.rarity-rare,.stash-item.rarity-rare {--item-color:#6bc5ff}
.equip-slot.rarity-epic,.stash-item.rarity-epic {--item-color:#da8cff}
.equip-slot.rarity-legendary,.stash-item.rarity-legendary {--item-color:#ffc56b;box-shadow:inset 0 0 12px #ffc56b52}
.stash-selection {display:flex;justify-content:space-between;align-items:center;gap:8px;margin:10px 0 0;padding:9px;background:#111f32;border-radius:5px}
.stash-selection p {margin:3px 0;font-size:.82rem}
.abort-mission {width:fit-content;margin-left:auto;color:#ffb8a6}
.abort-mission p {margin-block:5px}
@media(max-width:680px) {
  .inventory-deck {grid-template-columns:1fr}
  .inventory-doll {grid-template-columns:minmax(46px,1fr) minmax(0,3fr) minmax(46px,1fr)}
}
