/* Shared navigation and desktop frame for the independent account modules. */
account-tabs { display: block; min-width: 0; margin: 0 0 30px; }

.account-tabs__nav {
  display: flex;
  gap: 4px;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0,0,0,.18);
}

.account-tabs__nav a {
  flex: 1 0 auto;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--lo);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}

.account-tabs__nav a:hover {
  background: rgba(255,255,255,.05);
  color: var(--hi);
}

.account-tabs__nav a[aria-current='page'] {
  background: rgba(255,46,136,.13);
  color: var(--pink-200);
  box-shadow: inset 0 0 0 1px rgba(255,46,136,.32);
}

.account-tabs__nav a:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: -2px;
}

@media (min-width: 821px) {
  body.profile .card,
  body.security .card,
  body.account-apps .card,
  body.account-storage .card { max-width: 960px; }

  body.profile .card,
  body.security .card { padding: 34px 38px 46px; }

  body.profile form > button {
    width: auto;
    min-width: 180px;
    padding-inline: 22px;
  }

  body.profile form > .field { max-width: 660px; }

  body.data .d-top,
  body.data .d-shell { max-width: 1080px; }

  body.dev .c-shell { max-width: 1080px; }

  body.account-apps #content:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  body.account-apps #content > .su-card { margin: 0; }
  body.account-apps #content > .su-card:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  account-tabs { margin-bottom: 24px; }
  .account-tabs__nav { justify-content: flex-start; }
  .account-tabs__nav a { flex: 0 0 auto; padding-inline: 11px; }
}
