/* Keep store-page navigation separate from the brand and signed-in user. */
.profile-topbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, auto) minmax(180px, 1fr);
  gap: 16px;
  padding-block: 10px;
}

.profile-topbar .view-tabs {
  position: static;
  left: auto;
  max-width: 100%;
  min-width: 0;
  justify-self: center;
  transform: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.profile-topbar .access-controls {
  justify-self: end;
}

@media (max-width: 1400px) {
  .profile-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .profile-topbar .view-tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 700px) {
  .profile-topbar {
    padding: 12px 18px;
  }

  .profile-topbar .view-tabs {
    justify-content: flex-start;
  }

  .profile-topbar .view-tabs button {
    flex: 0 0 auto;
  }
}
