/* lm-topbar (tb1): phone top bar fit.
   On phones the logo took 155px, which squeezed the Deposit button (text spilled out)
   and the balance pill (username and amount cut off, e.g. "EMO 3,614").
   Now the logo shrinks to fit and Deposit + balance (or Log in + Sign up) always show in full.
   Also: the Dark / Light / Premium theme switch wraps instead of widening the page. */
@media (max-width: 520px) {
  header.topbar #mobLogo { flex: 1 1 auto; min-width: 64px; }
  header.topbar #mobLogo img.lg { width: auto; max-width: 100%; height: auto; max-height: 26px; object-fit: contain; object-position: left center; }
  header.topbar #authArea { flex: 0 0 auto; }
  header.topbar #authArea > .btn { flex: 0 0 auto; min-width: 0; white-space: nowrap; padding: 7px 10px; overflow: visible; }
  header.topbar #authArea > .balpill { flex: 0 0 auto; max-width: none; overflow: visible; white-space: nowrap; }
  header.topbar #authArea > .balpill b { white-space: nowrap; overflow: visible; text-overflow: clip; }
  header.topbar #authArea > .balpill small { display: block; max-width: 74px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* a very long username shortens with "…"; the amount never does */
  .setrow { flex-wrap: wrap; }
  .seg.themeseg { flex-wrap: wrap; max-width: 100%; }
}
