/* Inherits the composer's theme variables. No shared theme overrides. */
.nd-mentions { position: relative; min-width: 0; }
.nd-composer .gen-prompt#prompt.nd-mention-bridge {
  position: absolute; width: 1px; height: 1px; min-height: 0; max-height: 1px;
  padding: 0; margin: -1px; border: 0; overflow: hidden; clip-path: inset(50%);
  opacity: 0; pointer-events: none;
}
.nd-mention-editor {
  min-height: 7.5rem; max-height: 12rem; overflow-y: auto; padding: .25rem .125rem;
  color: var(--ndc-text, inherit); background: transparent; border-radius: .25rem;
  font: inherit; font-size: 1rem; line-height: 1.85; white-space: pre-wrap;
  overflow-wrap: anywhere; word-break: normal; caret-color: var(--ndc-accent, currentColor);
  outline: none; scrollbar-width: thin; overscroll-behavior: contain;
}
.nd-mention-editor[data-empty="true"]::before { content: attr(data-placeholder); color: var(--ndc-muted, #8d9488); pointer-events: none; }
.nd-mention-editor:focus-visible { outline: 1px solid var(--ndc-line, currentColor); outline-offset: .25rem; }
.nd-mention-editor[aria-disabled="true"] { opacity: .65; }
.nd-composer-expanded .nd-mention-editor { min-height: 10rem; height: min(32dvh, 18rem); max-height: 34dvh; }
.nd-mention-chip {
  display: inline-flex; align-items: center; gap: .3rem; max-width: 100%; height: 1.8rem;
  vertical-align: middle; margin: .08rem .12rem; padding: .15rem .45rem .15rem .18rem;
  border: 1px solid var(--ndc-line, #4d5546); border-radius: .45rem;
  background: var(--ndc-panel, #20241d); color: var(--ndc-text, inherit);
  font-size: .85em; font-weight: 500; line-height: 1; white-space: nowrap;
  user-select: all; -webkit-user-select: all; cursor: text;
}
.nd-mention-chip img { display: block; width: 1.35rem; height: 1.35rem; flex: 0 0 1.35rem; object-fit: cover; border-radius: .25rem; pointer-events: none; }
.nd-mention-chip > span { pointer-events: none; }
.nd-mention-missing { border-style: dashed; text-decoration: underline dotted; }
.nd-mention-missing-icon { display: grid; place-items: center; width: 1.25rem; height: 1.25rem; font-weight: 700; border: 1px solid currentColor; border-radius: 50%; }
.nd-mention-help, .nd-mention-notice { margin: .4rem 0 0; color: var(--ndc-muted, inherit); font-size: .6875rem; line-height: 1.5; overflow-wrap: anywhere; }
.nd-mention-notice.nd-mention-error { color: var(--ndc-text, inherit); border-left: 2px solid currentColor; padding-left: .5rem; }
.nd-mention-menu {
  position: fixed; z-index: 1000; box-sizing: border-box; max-width: calc(100vw - 1.5rem); max-height: 14rem; overflow-y: auto;
  padding: .35rem; border: 1px solid var(--ndc-line, #4d5546); border-radius: .65rem;
  background: var(--ndc-bg, #141710); color: var(--ndc-text, #eef1e8); box-shadow: 0 .75rem 2.5rem #0005;
  overscroll-behavior: contain; scrollbar-width: thin;
}
.nd-mention-menu[hidden], .nd-mention-notice[hidden], .nd-mention-repair[hidden] { display: none; }
.nd-mention-repair { margin-top: .5rem; min-height: 44px; padding: .5rem .75rem; max-width: 100%; border: 1px solid var(--ndc-line, #4d5546); border-radius: .5rem; background: var(--ndc-panel, #20241d); color: var(--ndc-text, inherit); font: inherit; font-size: .8125rem; cursor: pointer; }
.nd-mention-repair:focus-visible { outline: 2px solid var(--ndc-accent, currentColor); outline-offset: 2px; }
.nd-mention-option { display: flex; align-items: center; min-height: 3rem; gap: .65rem; padding: .35rem .45rem; border-radius: .4rem; cursor: pointer; }
.nd-mention-option[aria-selected="true"], .nd-mention-option:hover { background: var(--ndc-hover, #303629); outline: 1px solid var(--ndc-line, #4d5546); }
.nd-mention-option img { display: block; flex: 0 0 2.25rem; width: 2.25rem; height: 2.25rem; object-fit: cover; border-radius: .3rem; }
.nd-mention-option-words { display: grid; min-width: 0; gap: .1rem; }
.nd-mention-option strong { font-size: .8125rem; font-weight: 600; }
.nd-mention-option-words > span { overflow: hidden; color: var(--ndc-muted, #b3baa9); font-size: .6875rem; white-space: nowrap; text-overflow: ellipsis; }
.nd-mention-empty { margin: .5rem; font-size: .75rem; line-height: 1.5; }
@media (max-width: 719px) { .nd-mention-editor { min-height: 6rem; max-height: 11rem; font-size: 1rem; } }
@media (prefers-reduced-motion: reduce) { .nd-mentions * { scroll-behavior: auto; } }
