@media (max-width: 1023px) {
  .shell { padding: 12px 12px 44px; }

  .table-wrap { overflow-x: auto; }
  .ptable thead th { position: static; border-radius: 0; }

  .ptable th:nth-child(5), .ptable td:nth-child(5),
  .ptable th:nth-child(10), .ptable td:nth-child(10),
  .ptable th:nth-child(11), .ptable td:nth-child(11) { display: none; }
}

@media (max-width: 767px) {
  .topnav-inner { flex-wrap: wrap; gap: 0 10px; padding: 6px 12px; }
  .topnav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    border-top: 1px solid var(--line-soft);
    margin-top: 6px;
  }
  .nav-link { height: 40px; padding: 0 10px; font-size: 12px; }

  .shell { padding: 10px 8px 40px; }

  .fo-input-row { flex-wrap: wrap; }
  .searchbar { flex-basis: 100%; }
  .fo-input-row .btn { flex: 1; }

  .filterbar-actions { width: 100%; justify-self: stretch; }
  .filterbar-actions .btn-ghost { flex: 1; justify-content: center; }
  .select-wrap { flex: 1 1 45%; }

  .ptable th:nth-child(4), .ptable td:nth-child(4),
  .ptable th:nth-child(8), .ptable td:nth-child(8) { display: none; }

  .advanced { padding: 10px; }

  .statlist { grid-template-columns: 1fr; }
}

@media (min-width: 1440px) {
  .shell,
  .wiki-layout { max-width: 1240px; }
  .topnav-inner,
  .footer-grid { max-width: 1240px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
