.account-menu {
  position: relative;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.account-menu summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 7px;
  border-radius: 10px;
  cursor: pointer;
  list-style: none;
  transition: background .16s ease;
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.account-menu summary:hover,
.account-menu[open] summary {
  background: rgba(255, 255, 255, .1);
}

.account-menu summary:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.account-menu .avatar {
  flex: 0 0 auto;
}

.account-identity {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.account-identity strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-identity small {
  font-size: 10px;
  opacity: .55;
}

.account-chevron {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  opacity: .56;
  transition: transform .16s ease;
}

.account-menu[open] .account-chevron {
  transform: rotate(180deg);
}

.account-menu-panel {
  position: absolute;
  z-index: 30;
  right: 0;
  bottom: calc(100% + 8px);
  left: 0;
  min-width: 190px;
  padding: 8px;
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(11, 18, 43, .25);
}

.account-menu-panel > small {
  display: block;
  padding: 6px 10px 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.account-menu-panel a,
.account-menu-panel button {
  display: block;
  width: 100%;
  padding: 9px 10px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.account-menu-panel a:hover,
.account-menu-panel button:hover,
.account-menu-panel a:focus-visible,
.account-menu-panel button:focus-visible {
  background: #f1eee7;
  outline: none;
}

.account-menu-panel form {
  margin-top: 3px;
  padding-top: 3px;
  border-top: 1px solid var(--line);
}

.account-page {
  min-height: calc(100vh - 138px);
  padding: 58px 32px 80px;
}

.account-page .form-card {
  margin: 0 auto;
}

.account-form-intro {
  margin-bottom: 24px;
  color: var(--muted);
}

.password-help {
  margin: -6px 0 18px;
  color: var(--muted);
  font-size: 10px;
}

.password-help ul {
  margin: 0;
  padding-left: 18px;
}

.account-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .sidebar {
    z-index: 5;
  }

  .account-menu summary {
    justify-content: center;
    padding: 9px 4px;
  }

  .account-identity,
  .account-chevron {
    display: none;
  }

  .account-menu-panel {
    right: auto;
    left: 0;
  }
}

@media (max-width: 620px) {
  .account-page {
    padding: 30px 18px 60px;
  }

  .account-form-actions {
    flex-direction: column-reverse;
  }

  .account-form-actions .button {
    width: 100%;
  }
}
