/* Note mentions: the @ picker in the note editor and the "Mentioned in" panel on entity pages */

.mention-menu {
  position: absolute;
  z-index: 10000;
  min-width: 220px;
  max-width: 320px;
  max-height: 260px;
  overflow-y: auto;
  padding: 4px 0;
  background: var(--card-bg, #1e1e1e);
  border: 1px solid var(--border-color, #444);
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  font-size: 0.95rem;
}

.mention-menu-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--text-light, #eee);
}

.mention-menu-item.active,
.mention-menu-item:hover {
  background: var(--hover-bg, rgba(255, 255, 255, 0.08));
}

.mention-menu-kind {
  color: var(--text-dark, #999);
  font-size: 0.8rem;
  text-transform: capitalize;
  align-self: center;
}

.mentions-panel {
  margin: 1.5rem auto 0;
  max-width: 720px;
  text-align: left;
}

.mentions-panel h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.mentions-panel-empty {
  color: var(--text-dark, #999);
  font-size: 0.9rem;
}

.mentions-panel-item {
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--border-color, #444);
  border-radius: 6px;
}

.mentions-panel-title {
  font-weight: 600;
}

.mentions-panel-meta {
  color: var(--text-dark, #999);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.mentions-panel-snippet {
  font-size: 0.9rem;
  color: var(--text-light, #ddd);
  overflow-wrap: anywhere;
}

a.mentions-panel-item {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.mentions-panel-item:hover {
  border-color: var(--accent, #c9a227);
}
