/* The additional equipment slot needs room for its visible caption. */
#character-sheet.bf-character-polish[data-backpack-ui="v1"] .sheet-body {
  grid-template-rows: minmax(0,1fr) calc(var(--u)*96) calc(var(--u)*27) calc(var(--u)*75) calc(var(--u)*34);
}
/* Expanded bags retain one bounded reading surface; quantities stay in cells. */
body.premium-hud #inventory[data-expanded-backpack]:not([data-item-book="open"]) .inventory-content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
body.premium-hud #inventory[data-expanded-backpack] #bag-grid .item-slot {
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}
body.premium-hud #inventory[data-expanded-backpack] #bag-grid .item-quantity {
  position: absolute;
  right: 3px;
  bottom: 3px;
  z-index: 1;
  line-height: 1;
}
body.premium-hud #inventory[data-expanded-backpack] .bag-shortcut-help {
  position: static;
  margin-top: 10px;
}
