@media (min-width: 701px) {
  .topbar.dashboard-header {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 14px !important;
    min-width: 0;
  }

  .topbar.dashboard-header > .brand-link {
    flex: 0 0 auto !important;
    min-width: max-content;
    position: relative;
    z-index: 1;
  }

  .topbar.dashboard-header > .dashboard-nav {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: 100%;
    width: auto !important;
    position: relative;
    z-index: 0;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: safe center;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-block: 2px;
  }

  .topbar.dashboard-header > .dashboard-nav::-webkit-scrollbar {
    display: none;
  }

  .topbar.dashboard-header > .dashboard-nav .dashboard-tab {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  .topbar.dashboard-header > #openShopHeaderButton,
  .topbar.dashboard-header > .top-actions {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    position: relative;
    z-index: 1;
  }

  .topbar.dashboard-header .top-actions {
    margin-left: 0 !important;
  }
}

@media (min-width: 701px) and (max-width: 1640px) {
  .topbar.dashboard-header > .dashboard-nav {
    gap: 2px !important;
  }

  .topbar.dashboard-header > .dashboard-nav .dashboard-tab {
    padding-inline: 8px !important;
    gap: 6px !important;
  }
}

/* Phones: the brand name never wraps ("GlowAut / h"); the tab strip gives up space instead and scrolls sideways. */
.topbar.dashboard-header .brand-link strong{white-space:nowrap}
@media (max-width: 700px) {
  .topbar.dashboard-header > .brand-link {
    flex: 0 0 auto !important;
    min-width: max-content !important;
  }

  .topbar.dashboard-header > .brand-link .brand-copy {
    min-width: max-content !important;
  }

  .topbar.dashboard-header > .dashboard-nav {
    min-width: 0 !important;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: safe center;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .topbar.dashboard-header > .dashboard-nav::-webkit-scrollbar {
    display: none;
  }

  .topbar.dashboard-header > .dashboard-nav .dashboard-tab {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }
}
