/* 400px admin top nav wrap. This lives here, not in dashboard.css,
   because that file is frozen at 2335 lines by test_structure_ratchet:
   split new code into its own module instead of growing the file,
   following the dashboard_reduced_motion.css precedent.

   The 2026-09-30 phone pass made the links strip scroll inside a
   fixed 52px bar. At 400px the strip still reads as clipped: nothing
   on screen says it scrolls, and the edge fade is too subtle to read
   as an affordance, so User portal is cut off at the right edge.
   At phone width only, the bar grows and the links wrap instead:
   every link is fully visible with no swipe required. Tablet widths
   keep the scrolling strip they already have. */
@media (max-width: 576px) {
  .admin-nav {
    height: auto;
    padding: var(--s-8) var(--s-12);
  }
  .admin-nav .nav-inner {
    flex-wrap: wrap;
    gap: var(--s-8);
  }
  .admin-nav .nav-links {
    width: 100%;
    flex-wrap: wrap;
    overflow-x: visible;
    -webkit-mask-image: none;
    mask-image: none;
    min-width: 0;
  }
  .admin-nav .nav-links > * {
    flex: 0 1 auto;
    min-width: 0;
  }
  .admin-nav .btn-ghost,
  .admin-nav .admin-metadata-container {
    white-space: normal;
  }
  .admin-nav .admin-metadata-container {
    overflow-wrap: anywhere;
    text-align: left;
  }
}
