/* State-specific overrides must win over generic rarity and button rules. */
#game-root .black-market-listing-dialog .black-market-item-choice.is-selected {
  background:#d6caa8!important;border:2px solid #8b763e!important;
  box-shadow:inset 0 0 0 1px #f5edda;color:#302d21!important;
}
#game-root .black-market-listing-dialog .black-market-item-choice.is-selected strong {
  color:#302d21!important;-webkit-text-fill-color:#302d21;font-weight:700;
}
#game-root .bag-slot > .bag-slot__count,
#game-root .bag-slot[style] > .bag-slot__count {
  color:#fff9e8!important;-webkit-text-fill-color:#fff9e8;
  background:#354432!important;opacity:1;text-shadow:none!important;
  font-size:12px;font-weight:700;line-height:1.2;
  min-width:14px;max-width:calc(100% - 6px);box-sizing:border-box;
  padding:2px 4px;text-align:center;white-space:nowrap;
}
/* Keep one decorated outer frame. The content fills it, including empty slots. */
#game-root dialog.slot-selection-modal {
  box-sizing:border-box;width:360px;min-width:0;max-width:calc(var(--game-design-width) - 32px);
}
#game-root .slot-selection-modal > .attribute-modal__content {
  box-sizing:border-box;width:100%;min-width:0;max-width:100%;
  background:transparent!important;background-image:none!important;
  border:0;box-shadow:none;padding:18px;
}
