:host {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  z-index: 1060;
  display: block;
  width: min(18rem, calc(100vw - 2rem));
}

.user-dropdown {
  display: grid;
  background: #ffffff;
  border: 1px solid rgba(32, 32, 32, 0.1);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
  padding: 0.75rem;
  animation: user-dropdown-enter 0.16s ease-out;
}

.user-dropdown__profile {
  padding: 0.25rem;
}

.user-dropdown__name {
  color: #a0a0a0;
  font-size: 13px;
  font-weight: 325;
  line-height: 1.2;
}

.user-dropdown__divider {
  height: 1px;
  margin: 0.6rem 0;
  background: rgba(32, 32, 32, 0.08);
}

.user-dropdown__item {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 0.65rem 0.6rem;
  color: #8a8a8a;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: color 0.15s ease;
  text-decoration: none;
}

.user-dropdown__item:active,
.user-dropdown__item:hover,
.user-dropdown__item:focus-visible {
  color: var(--tenant-primary);
  outline: none;
}

@keyframes user-dropdown-enter {
  from {
    opacity: 0;
    transform: translateY(-0.35rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 575.98px) {
  :host {
    right: -0.5rem;
  }
}
