.stats-command {
  width: min(92vw, 540px);
  max-height: min(85vh, 760px);
  padding: clamp(22px, 5vw, 36px);
  border: 1px solid #b7a1ac;
  border-radius: 18px;
  color: #302330;
  background: #fffaf8;
  box-shadow: 0 24px 80px #180e1b80;
  font: 16px/1.6 system-ui, sans-serif;
}
.stats-command::backdrop { background: #120c19b8; }
.stats-command h2 { margin: 0 0 8px; font-size: 1.35rem; }
.stats-command__note { margin: 0 0 24px; font-size: .9rem; }
.stats-command__form label { display: grid; gap: 8px; font-weight: 700; }
.stats-command__key { width: 100%; min-height: 45px; padding: 8px 12px; border: 1px solid #a38a99; border-radius: 8px; font: inherit; }
.stats-command__controls { display: flex; gap: 10px; margin-top: 16px; }
.stats-command__controls button { min-height: 44px; padding: 8px 20px; border-radius: 8px; font: inherit; cursor: pointer; }
.stats-command__submit { border: 1px solid #302330; color: #fff; background: #302330; }
.stats-command__close { border: 1px solid #a38a99; color: #302330; background: transparent; }
.stats-command__status { min-height: 1.5em; margin: 18px 0 8px; font-size: .88rem; }
.stats-command__results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stats-command__item { display: grid; gap: 3px; padding: 12px; border: 1px solid #e5d8df; border-radius: 9px; background: #fff; }
.stats-command__item span { font-size: .75rem; }
.stats-command__item strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.stats-command__explanation { margin: 18px 0 0; color: #665662; font-size: .75rem; }
@media (max-width: 420px) { .stats-command__results { grid-template-columns: 1fr; } }
