.forum-editor-shell {
  border: 1px solid rgba(55, 65, 81, 1);
  border-radius: 0.5rem;
  background: rgba(17, 24, 39, 1);
}

.forum-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.65rem;
  border-bottom: 1px solid rgba(55, 65, 81, 1);
  background: rgba(31, 41, 55, 0.7);
}

.forum-editor-btn {
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.55rem;
  border: 1px solid rgba(75, 85, 99, 1);
  border-radius: 0.375rem;
  background: rgba(31, 41, 55, 1);
  color: rgba(229, 231, 235, 1);
  font-size: 0.82rem;
}

.forum-editor-btn:hover {
  background: rgba(55, 65, 81, 1);
}

.forum-editor-btn.is-active {
  border-color: rgba(99, 102, 241, 0.6);
  background: rgba(79, 70, 229, 0.25);
  color: rgba(224, 231, 255, 1);
}

.forum-editor-content {
  min-height: 180px;
  padding: 0.9rem;
  outline: none;
  color: #fff;
}

.forum-editor-content[data-placeholder]:empty:before {
  content: attr(data-placeholder);
  color: rgba(156, 163, 175, 1);
  pointer-events: none;
}

.forum-editor-content a {
  color: #93c5fd;
  text-decoration: underline;
}

.forum-editor-content img {
  max-width: 100%;
  border-radius: 0.375rem;
}

.forum-editor-content pre {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(51, 65, 85, 1);
  border-radius: 0.375rem;
  padding: 0.65rem;
  overflow-x: auto;
}

.forum-editor-content blockquote {
  border-left: 3px solid rgba(99, 102, 241, 0.6);
  margin: 0.5rem 0;
  padding-left: 0.75rem;
  color: rgba(209, 213, 219, 1);
}

.forum-mention {
  display: inline-block;
  padding: 0 0.35rem;
  border-radius: 0.35rem;
  background: rgba(59, 130, 246, 0.2);
  color: rgba(191, 219, 254, 1);
  font-weight: 600;
}

.forum-mention-suggestions {
  position: fixed;
  z-index: 9999;
  width: 270px;
  max-height: 240px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(55, 65, 81, 1);
  border-radius: 0.5rem;
  background: rgba(17, 24, 39, 0.98);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.45);
}

.forum-mention-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  color: rgba(229, 231, 235, 1);
  border: none;
  background: transparent;
  text-align: left;
}

.forum-mention-item:hover,
.forum-mention-item.is-active {
  background: rgba(55, 65, 81, 0.95);
}

.forum-mention-item img {
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  object-fit: cover;
}

.forum-mention-empty {
  padding: 0.65rem 0.75rem;
  color: rgba(156, 163, 175, 1);
  font-size: 0.85rem;
  text-align: center;
  user-select: none;
}
