html body .app .sidebar .sidebar-account {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 100%;
  min-height: 68px;
  margin-top: auto;
  padding: 10px;
  border-top: 1px solid #e1ebe9;
  background: inherit;
}

html body .app .sidebar-account #accountMenuButton {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 8px;
  width: 100% !important;
  height: 44px;
  min-height: 44px;
  padding: 6px 8px !important;
  justify-content: stretch !important;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  cursor: pointer;
}

html body .app .sidebar-account #accountMenuButton:hover,
html body .app .sidebar-account #accountMenuButton[aria-expanded="true"] {
  background: var(--brand-selected);
}

html body .app .sidebar-account #accountMenuButton:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

html body .app .sidebar-account .account-initials {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #e5f1ee;
  color: #32574f;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

html body .app .sidebar-account .account-identity {
  display: block !important;
  min-width: 0;
  text-align: left;
}

html body .app .sidebar-account #accountName {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body .app .sidebar-account #accountMeta {
  display: none;
}

html body .app .sidebar-account .user-arrow {
  display: block;
  width: 12px;
  height: 12px;
  margin: 0;
  color: var(--muted);
}

html body .app .sidebar-account #accountMenuButton[aria-expanded="true"] .user-arrow {
  transform: rotate(180deg);
}

html body .app .sidebar-account .user-menu-panel {
  position: fixed;
  inset: auto;
  z-index: 200;
  width: min(240px, calc(100vw - 16px));
  max-height: calc(100dvh - 16px);
  overflow-y: auto;
  border-radius: 6px;
}

html body .app .sidebar-account .user-menu-panel button {
  min-height: 40px;
  font-size: 13px;
  font-weight: 500;
}

@media (min-width: 768px) {
  html body .app.is-sidebar-collapsed:not(.is-sidebar-drawer-open) .sidebar .sidebar-account {
    padding: 10px 6px;
  }

  html body .app.is-sidebar-collapsed:not(.is-sidebar-drawer-open) .sidebar-account #accountMenuButton {
    display: grid;
    grid-template-columns: 28px;
    justify-content: center !important;
    gap: 0;
    padding: 6px;
  }

  html body .app.is-sidebar-collapsed:not(.is-sidebar-drawer-open) .sidebar-account .account-identity,
  html body .app.is-sidebar-collapsed:not(.is-sidebar-drawer-open) .sidebar-account .user-arrow {
    display: none !important;
  }
}

@media (max-width: 1180px) {
  html body .app.is-sidebar-drawer-open .sidebar-account .account-identity {
    display: block !important;
  }
}

@media (max-width: 767px) {
  html body .app .sidebar .sidebar-account {
    display: none;
  }

  html body .app.is-sidebar-drawer-open .sidebar .sidebar-account {
    display: block;
    min-height: 64px;
    padding: 8px;
  }
}
