/* Additive mobile polish: preserves the site's existing colors and components. */
:root { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html { scroll-padding-top: 76px; }
body { overflow-x: clip; }
img, video, iframe, canvas, svg { max-width: 100%; }
input, select, textarea, button { font: inherit; }
input, select, textarea { max-width: 100%; }
@media (max-width: 768px) {
  .container { width: min(100% - 28px, 100%); }
  .header-row { gap: 12px; flex-wrap: wrap; }
  .logo { max-width: 128px; height: auto; }
  .header-links { gap: 14px; flex-wrap: wrap; }
  button, .btn, [role="button"], input[type="submit"] { min-height: 44px; }
  input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px !important; }
  table { min-width: 620px; }
  .table-responsive, .table-wrapper, .table-container { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .row { row-gap: 14px; }
  .card, .auth-card, .form-card { max-width: 100%; }
  .modal-dialog { width: calc(100% - 24px); max-width: none; margin: 12px auto; }
  .dropdown-menu { max-width: calc(100vw - 24px); }
}
@media (max-width: 420px) {
  .container { width: calc(100% - 22px); }
  .header-row { padding-block: 10px; }
  h1 { font-size: clamp(1.45rem, 7vw, 2rem); }
  .btn-group, .action-group { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
