
.mention {
  color: var(--accent, #14f195);
  font-weight: 700;
  text-decoration: none;
}

.mention:hover,
.mention:focus-visible {
  text-decoration: underline;
  outline: none;
}

.mention-list {
  position: fixed;
  z-index: 220;
  display: grid;
  width: min(320px, calc(100vw - 16px));
  max-height: 290px;
  margin: 0;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.5);
  padding: 4px;
  list-style: none;
}

.mention-list[hidden] {
  display: none;
}

.mention-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  padding: 7px 9px;
}

.mention-option[aria-selected="true"],
.mention-option:hover {
  background: color-mix(in srgb, var(--accent, #14f195) 14%, transparent);
}

.mention-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--surface-raised, #151d28);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
}

.mention-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mention-names {
  min-width: 0;
  line-height: 1.25;
}

.mention-names strong,
.mention-names span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mention-names strong {
  font-size: 13.5px;
}

.mention-names span {
  color: var(--text-muted);
  font-size: 12px;
}

.mention-empty {
  color: var(--text-muted);
  font-size: 12.5px;
  padding: 10px 12px;
}
