/* v0.28.2 — One consistent shortcut position across every battle tool.
   The shortcut is never part of the button's flex/grid flow; reward-ready
   markers stay in the opposite (top-right) corner. */
body > .app-shell .battle-utility-panel > button.button {
  position:relative!important;
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  grid-template-columns:none!important;
  padding-left:22px!important;
  padding-right:22px!important;
  box-sizing:border-box!important;
}
body > .app-shell .battle-utility-panel > button.button::before {
  content:none!important;
  display:none!important;
}
body > .app-shell .battle-utility-panel > button.button > .utility-button-label {
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  grid-column:auto!important;
  width:100%!important;
  min-width:0!important;
  padding:0!important;
  margin:0!important;
  text-align:center!important;
}
body > .app-shell .battle-utility-panel > button.button > kbd.utility-hotkey,
body > .app-shell .battle-utility-panel > .auto-wave-count > kbd.auto-count-hotkey {
  position:absolute!important;
  inset:auto!important;
  left:4px!important;
  top:4px!important;
  right:auto!important;
  bottom:auto!important;
  transform:none!important;
  display:inline-flex!important;
  visibility:visible!important;
  align-items:center!important;
  justify-content:center!important;
  flex:none!important;
  grid-column:auto!important;
  align-self:auto!important;
  justify-self:auto!important;
  width:auto!important;
  min-width:16px!important;
  height:16px!important;
  min-height:16px!important;
  max-height:16px!important;
  margin:0!important;
  padding:0 2px!important;
  border:1px solid #557a89!important;
  border-bottom:2px solid #385667!important;
  border-radius:3px!important;
  background:#0a222c!important;
  color:#d5edf4!important;
  font-size:9px!important;
  font-weight:800!important;
  line-height:1!important;
  white-space:nowrap!important;
  box-sizing:border-box!important;
  z-index:4!important;
}
/* The N shortcut belongs to the numeric-control row, not the button flow. */
body > .app-shell .battle-utility-panel > .auto-wave-count {
  position:relative!important;
  box-sizing:border-box!important;
  padding-left:20px!important;
  padding-right:3px!important;
}
/* Reward badges (quest / achievement) intentionally remain top-right. */
body > .app-shell .battle-utility-panel > #gameQuestsBtn > #questCountBadge,
body > .app-shell .battle-utility-panel > #achievementBtn > #achievementCountBadge {
  position:absolute!important;
  top:3px!important;
  right:3px!important;
  left:auto!important;
  bottom:auto!important;
}
@media(max-height:560px), (max-width:700px) {
  body > .app-shell .battle-utility-panel > button.button {
    padding-left:15px!important;
    padding-right:6px!important;
  }
  body > .app-shell .battle-utility-panel > button.button > kbd.utility-hotkey,
  body > .app-shell .battle-utility-panel > .auto-wave-count > kbd.auto-count-hotkey {
    top:2px!important;
    left:2px!important;
    min-width:12px!important;
    height:12px!important;
    min-height:12px!important;
    max-height:12px!important;
    padding:0 1px!important;
    font-size:7px!important;
    border-radius:2px!important;
  }
  body > .app-shell .battle-utility-panel > .auto-wave-count {
    padding-left:14px!important;
    padding-right:2px!important;
  }
}

/* v0.28.3: Quest J and achievement Y must use the same TOP-LEFT lane as T/Z/Q/A/D/N/W.
   An old v85 rule targeted their IDs and pinned only those two keys bottom-right.
   These ID-level selectors deliberately win over all preceding responsive rules. */
body > .app-shell .battle-utility-panel > #gameQuestsBtn > kbd.utility-hotkey,
body > .app-shell .battle-utility-panel > #achievementBtn > kbd.utility-hotkey {
  position:absolute!important;
  inset:auto!important;
  top:4px!important;
  left:4px!important;
  bottom:auto!important;
  right:auto!important;
  transform:none!important;
  justify-self:auto!important;
  align-self:auto!important;
  z-index:5!important;
}
body > .app-shell .battle-utility-panel > #gameQuestsBtn > .utility-button-label,
body > .app-shell .battle-utility-panel > #achievementBtn > .utility-button-label {
  padding-right:0!important;
  padding-left:0!important;
}
@media (max-height:560px), (max-width:700px) {
  body > .app-shell .battle-utility-panel > #gameQuestsBtn > kbd.utility-hotkey,
  body > .app-shell .battle-utility-panel > #achievementBtn > kbd.utility-hotkey {
    top:2px!important;
    left:2px!important;
    right:auto!important;
    bottom:auto!important;
  }
}
