@media (max-width: 767px) {
  #historyContainer { overflow: visible; scroll-margin-top: 20px; }
  .history-pagination { padding: 8px 8px 16px 0; }
  .history-pagination p { margin: 0 0 10px; font-size: 13px; }
  .history-pagination > div { display: flex; flex-wrap: wrap; gap: 10px; }
  .history-pagination button { min-height: 44px; padding: 10px 14px; border: 1px solid currentColor; border-radius: 12px; font-size: 14px; font-weight: 600; }
  .history-pagination button:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
}
