.mention {
  background: var(--color-selected);
  color: var(--color-link);
  padding: 0.15em 0.5em;
  border-radius: 999px;
  font-weight: 500;
}

.mentions {
  position: absolute;
  z-index: 1000;
  min-width: 16rem;
  max-width: min(32rem, 90vw);
  max-height: 24rem;
  overflow-y: auto;
  padding: 0.4rem 0;
  margin: 0.2rem 0 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border-darker);
  border-radius: 0.5rem;
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.12);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mentions[hidden] {
  display: none;
}

.mentions__person {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  line-height: 1.2;
}

.mentions__person--chosen,
.mentions__person:hover {
  background: var(--color-surface);
}

.mentions__initials {
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-border-darker);
  color: var(--color-text-reversed, #fff);
  font-size: 0.75rem;
  font-weight: 600;
}

.mentions__name {
  flex: 1;
  min-width: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
