.mobile-menu:not([hidden]) {
  max-height: calc(100vh - 92px);
  max-height: calc(100dvh - 92px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.admin-bar .mobile-menu:not([hidden]) {
  max-height: calc(100vh - 124px);
  max-height: calc(100dvh - 124px);
}

.ppg-account-link {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  font-size: 12px;
  font-weight: 800;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.ppg-account-link:hover {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.ppg-account-link svg {
  width: 20px;
  height: 20px;
}

.ppg-mobile-account-link {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

@media (max-width: 1180px) {
  .ppg-account-link {
    width: 44px;
    padding: 0;
  }

  .ppg-account-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (max-width: 960px) {
  .mobile-menu:not([hidden]) {
    max-height: calc(100vh - 82px);
    max-height: calc(100dvh - 82px);
  }

  body.admin-bar .mobile-menu:not([hidden]) {
    max-height: calc(100vh - 128px);
    max-height: calc(100dvh - 128px);
  }

  .ppg-account-link {
    width: 42px;
    min-height: 42px;
  }
}

@media (max-width: 620px) {
  .ppg-account-link {
    order: 2;
  }
}
