.app-header .user-menu-wrap {
  position: relative;
  flex: 0 0 auto;
  margin-left: 20px;
}

.app-header .user-menu-button {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 120px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text-inverse);
  cursor: pointer;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-base);
  overflow: hidden;
  text-align: right;
}

.app-header .user-menu-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 4px;
}

.app-header .user-menu-main {
  display: flex;
  flex: 0 1 100px;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
  max-width: 100px;
}

.app-header .user-menu-main span {
  display: block;
  width: 100%;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-header .user-menu-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-sm);
}

.app-header .user-menu-arrow {
  position: relative;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-left: var(--space-4);
  margin-right: -2px;
}

.app-header .user-menu-arrow::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  width: 6px;
  height: 6px;
  border-right: 2px solid rgba(255, 255, 255, 0.75);
  border-bottom: 2px solid rgba(255, 255, 255, 0.75);
  transform: rotate(45deg);
}

.app-header .user-menu-wrap.open .user-menu-arrow::before {
  top: 6px;
  transform: rotate(225deg);
}

.app-header .user-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 1px;
  z-index: var(--z-index-dropdown);
  display: flex;
  flex-direction: column;
  width: 213px;
  padding: 8px 0;
  background: var(--color-surface);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  color: var(--color-text-primary);
  text-align: left;
}

.app-header .user-menu-dropdown[hidden] {
  display: none;
}

.app-header .user-menu-dropdown button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 33px;
  padding: 5px 12px;
  border: 0;
  background: transparent;
  color: var(--color-text-primary);
  cursor: pointer;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  line-height: 21px;
  text-align: left;
}

.app-header .user-menu-dropdown button:hover,
.app-header .user-menu-dropdown button:focus-visible {
  background-color: rgba(66, 133, 244, 0.05);
  color: var(--color-focus);
  outline: none;
}

.app-header .user-menu-icon {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  color: var(--color-text-muted);
}

.app-header .user-menu-icon::before,
.app-header .user-menu-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.app-header .user-menu-icon--overview::before {
  inset: 2px;
  border-radius: var(--radius-round);
  background: linear-gradient(90deg, var(--color-text-muted) 0 48%, transparent 48% 52%, var(--color-text-muted) 52% 100%);
}

.app-header .user-menu-icon--settings::before {
  inset: 3px;
  border: 3px solid currentColor;
  border-radius: var(--radius-round);
}

.app-header .user-menu-icon--settings::after {
  top: 0;
  left: 8px;
  width: 2px;
  height: 18px;
  background: currentColor;
  box-shadow: -6px 6px 0 -1px currentColor, 6px -6px 0 -1px currentColor;
}

.app-header .user-menu-icon--admin::before {
  top: 2px;
  left: 6px;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-round);
  background: currentColor;
}

.app-header .user-menu-icon--admin::after {
  right: 3px;
  bottom: 2px;
  left: 3px;
  height: 8px;
  border-radius: 8px 8px 3px 3px;
  background: currentColor;
}

.app-header .user-menu-icon--api::before {
  top: 7px;
  left: 1px;
  width: 9px;
  height: 7px;
  border: 3px solid currentColor;
  border-radius: var(--radius-round);
}

.app-header .user-menu-icon--api::after {
  top: 9px;
  left: 9px;
  width: 8px;
  height: 3px;
  background: currentColor;
  box-shadow: 4px 0 0 currentColor;
}

.app-header .user-menu-icon--schemes::before {
  inset: 3px;
  border: 2px solid currentColor;
}

.app-header .user-menu-icon--schemes::after {
  top: 1px;
  left: 6px;
  width: 6px;
  height: 16px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.app-header .user-menu-icon--logout::before {
  top: 3px;
  left: 2px;
  width: 10px;
  height: 12px;
  border: 2px solid currentColor;
  border-right: 0;
}

.app-header .user-menu-icon--logout::after {
  top: 6px;
  right: 1px;
  width: 9px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

