.caption-entity,
.caption-entity--mention,
.caption-entity--hashtag,
[class*="mention-link"],
[class*="hashtag-link"] {
  color: var(--brand) !important;
  font-weight: 400 !important;
}

.linkeem-comment-rich-input {
  position: relative !important;
  z-index: 10002 !important;
  color: transparent !important;
  caret-color: var(--text) !important;
  background: transparent !important;
}

.linkeem-comment-rich-mirror {
  position: fixed;
  z-index: 10001;
  display: none;
  box-sizing: border-box;
  overflow: hidden;
  pointer-events: none;
  color: var(--text);
  background: var(--surface);
  white-space: pre;
}

.linkeem-comment-rich-mirror > span {
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  min-width: max-content;
  transform: translateY(-50%);
  white-space: pre;
}

.linkeem-comment-rich-mirror .linkeem-comment-entity {
  color: var(--brand);
  font-weight: 400;
}

.linkeem-mention-menu {
  position: fixed;
  z-index: 10020;
  display: none;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .18);
}

.linkeem-mention-option {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  background: transparent;
  text-align: left;
}

.linkeem-mention-option:last-child {
  border-bottom: 0;
}

.linkeem-mention-option:hover,
.linkeem-mention-option.is-active {
  background: color-mix(in srgb, var(--brand) 9%, var(--surface));
}

.linkeem-mention-option img {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  object-fit: cover;
}

.linkeem-mention-option > span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.linkeem-mention-option b {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.linkeem-mention-option small {
  overflow: hidden;
  color: var(--brand);
  font-size: 12px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.linkeem-mention-empty {
  padding: 16px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
