/* Battle controls only: keep choosing a count beside the explicit Attack action. */
.lq3-battle-command {
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  margin-top: 10px;
}
.lq3-battle-command .lq3-battle-command-count {
  display: grid;
  flex: 0 1 104px;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
}
.lq3-battle-command-count input[type="number"] {
  box-sizing: border-box;
  width: 100%;
  max-width: 104px;
  min-width: 0;
  min-height: 42px;
  margin: 0;
  padding: 8px 10px;
  font: inherit;
}
.lq3-battle-command > .custom-energy-action {
  display: block;
  order: -1;
  flex: 0 1 104px;
  min-width: 0;
  width: auto;
  margin: 0;
}
.lq3-battle-command button,
.lq3-battle-queue-strip button {
  flex: 0 0 auto;
  width: auto !important;
  max-width: 100%;
  min-width: 0;
  min-height: 42px;
  margin: 0;
  padding: 9px 14px;
  line-height: 1.25;
  white-space: normal;
}
.lq3-battle-command > .timer-line,
.lq3-battle-command > .muted {
  flex: 1 0 100%;
  order: 1;
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.5;
}
.lq3-battle-command-cost {
  flex: 0 1 auto;
  align-self: center;
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}
.lq3-battle-command-error {
  flex: 1 0 100%;
  margin: 0;
  color: #ffb4a6;
  font-size: 12px;
  line-height: 1.4;
}
.lq3-battle-command-error:empty {
  display: none;
}
.lq3-battle-queue-strip:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 10px 12px;
  margin: 10px 0 0;
  border-radius: 9px;
}
.lq3-battle-queue-copy {
  flex: 1 1 230px;
  min-width: 0;
}
.lq3-battle-queue-copy h3,
.lq3-battle-queue-copy p,
.lq3-battle-queue-copy .timer-line {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}
.lq3-battle-queue-copy h3 {
  font-size: 13px;
}
.lq3-battle-queue-copy > strong,
.lq3-battle-queue-copy > span,
.lq3-battle-queue-copy > small {
  display: block;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}
.lq3-battle-queue-copy > strong {
  font-size: 13px;
}
.lq3-battle-queue-actions {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.lq3-battle-command [hidden],
.lq3-battle-queue-strip[hidden],
.lq3-battle-queue-strip [hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .lq3-battle-command {
    gap: 8px;
  }
  .lq3-battle-command button,
  .lq3-battle-queue-strip button,
  .lq3-battle-command-count input[type="number"] {
    min-height: 44px;
  }
  .lq3-battle-queue-strip:not([hidden]) {
    padding: 9px 10px;
    gap: 7px;
  }
  .lq3-battle-queue-actions {
    flex-basis: 100%;
  }
}
