
.common-popup {
  position: absolute;
  z-index: var(--layer-modal);
  background: var(--surface-section);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-2);
  border-radius: var(--radius-2);
  padding: 0.35em;
  max-width: min(420px, 90vw);
}

.common-popup-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 260px;
  overflow-y: auto;
}

.common-popup-list li {
  list-style: none;
}

.mention-popup ul,
.common-popup ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mention-item {
  padding: 0.3em 0.5em;
  cursor: pointer;
}

.llm-model-item {
  display: flex;
  gap: 0.75em;
  align-items: center;
  justify-content: space-between;
}

.llm-model-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.llm-model-delete {
  flex: 0 0 auto;
  width: 1.75em;
  height: 1.75em;
  padding: 0;
  color: var(--text-muted);
  font: inherit;
  line-height: 1;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: var(--radius-round);
}

.llm-model-delete:hover,
.llm-model-delete:focus-visible {
  color: var(--text-primary);
  background: var(--surface-hover);
}

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

.common-popup-item {
  padding: 0.35em 0.5em;
  cursor: pointer;
}

.command-item {
  display: flex;
  gap: 0.5em;
  align-items: baseline;
}

.command-label {
  font-weight: var(--weight-6);
}

.command-args {
  font-size: 0.85em;
  color: var(--text-muted);
}

.command-aliases {
  font-size: 0.85em;
  color: var(--text-muted);
}

.command-description {
  margin-top: 0.2em;
  font-size: 0.85em;
  color: var(--text-muted);
}
