.account-menu-wrap {
  position: relative;
  min-width: 0;
}
.account-menu-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.account-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #dceeed;
  color: #087d7f;
  font-size: 14px;
  font-weight: 700;
}
.account-details {
  display: grid;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.account-details strong {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-details small {
  font-size: 10px;
  margin: 0;
  color: var(--muted);
}
.account-chevron {
  font-size: 16px;
  transition: transform 0.15s;
}
.account-menu-trigger[aria-expanded='true'] .account-chevron {
  transform: rotate(180deg);
}
.account-menu-panel {
  position: absolute;
  z-index: 30;
  width: 300px;
  max-width: calc(100vw - 28px);
  max-height: calc(100dvh - 90px);
  overflow-y: auto;
  right: 0;
  top: calc(100% + 9px);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--ink);
  box-shadow: 0 14px 40px #102e3b26;
}
.account-menu-panel[hidden] {
  display: none;
}
.account-menu-heading {
  display: grid;
  gap: 4px;
  padding: 10px 12px 14px;
  margin-bottom: 5px;
  border-bottom: 1px solid var(--line);
}
.account-menu-heading strong {
  font-size: 14px;
}
.account-menu-heading small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.account-menu-panel [role='menuitem'] {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 12px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.account-menu-panel [role='menuitem'] > span:last-child {
  display: grid;
  gap: 4px;
}
.account-menu-panel [role='menuitem'] strong {
  font-size: 13px;
}
.account-menu-panel [role='menuitem'] small {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.account-menu-panel [role='menuitem']:hover,
.account-menu-panel [role='menuitem']:focus-visible {
  background: #edf6f5;
  outline: 2px solid #087d7f;
  outline-offset: -2px;
}
.account-menu-icon {
  text-align: center;
  color: #087d7f;
  font-size: 18px;
}
.account-menu-divider {
  height: 1px;
  margin: 5px 8px;
  background: var(--line);
}
.account-sidebar {
  margin-top: 16px;
}
.account-sidebar .account-menu-trigger {
  border-color: #365362;
  background: #1d3d4b;
  color: white;
}
.account-sidebar .account-details small {
  color: #bbd1da;
  margin: 0;
  font-size: 10px;
}
.account-sidebar .account-menu-panel {
  bottom: calc(100% + 9px);
  top: auto;
  left: 0;
  right: auto;
  width: 270px;
}
.account-sidebar .account-menu-panel small {
  margin: 0;
  color: var(--muted);
}
.account-topbar .account-menu-trigger {
  width: auto;
  max-width: 190px;
  padding: 6px 9px;
}
.account-topbar .account-details {
  max-width: 112px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 11;
}
.sidebar {
  z-index: 20;
}
@media (max-width: 650px) {
  .account-sidebar {
    display: none;
  }
  .topbar #date-label {
    display: none;
  }
  .topbar .topbar-tools {
    margin-left: auto;
    gap: 10px;
  }
  .account-topbar .account-menu-trigger {
    max-width: 180px;
  }
  .account-sidebar .account-menu-panel {
    width: 250px;
    max-height: calc(100dvh - 150px);
  }
}
