.mention-autocomplete-dropdown {
  list-style: none;
  margin: 0;
  padding: 0.45rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(98, 239, 170, 0.04);
  max-height: 280px;
  overflow-y: auto;
  min-width: 240px;
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.9rem;
  opacity: 0;
  transform: scale(0.96) translateY(-6px);
  transform-origin: center top;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.mention-autocomplete-dropdown.is-open {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.mention-autocomplete-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.1s ease;
  position: relative;
}

.mention-autocomplete-item:not(:last-child) {
  margin-bottom: 0.15rem;
}

.mention-autocomplete-item:hover,
.mention-autocomplete-item.active {
  background: var(--surface-2);
}

.mention-autocomplete-item.active {
  outline: 1px solid rgba(98, 239, 170, 0.25);
  outline-offset: -1px;
}

.mention-autocomplete-item:hover .mention-autocomplete-name,
.mention-autocomplete-item.active .mention-autocomplete-name {
  color: var(--text);
}

.mention-autocomplete-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  background: linear-gradient(135deg, var(--accent) 0%, var(--teal) 100%);
  box-shadow: 0 2px 8px rgba(98, 239, 170, 0.18);
}

.mention-autocomplete-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}

.mention-autocomplete-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.12s ease;
}

.mention-autocomplete-handle {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mention-autocomplete-empty {
  padding: 1rem 0.8rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.mention-match {
  color: var(--accent);
  font-weight: 600;
  background: transparent;
}

.note-content .mention {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.notification-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 9px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 0.3rem;
}
