.rte-host {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white, #fff);
}

.rte-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  background: var(--bg, #f8f9fb);
}

.rte-btn {
  min-width: 32px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 6px;
  background: var(--white, #fff);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}

.rte-btn:hover {
  border-color: var(--accent, #2979ff);
  color: var(--accent, #2979ff);
}

.rte-color-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 30px;
  overflow: hidden;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 6px;
  background: var(--white, #fff);
  box-sizing: border-box;
}

.rte-color {
  display: block;
  width: 32px;
  height: 30px;
  min-width: 0;
  max-width: 32px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  cursor: pointer;
  background: transparent;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.rte-color::-webkit-color-swatch-wrapper {
  padding: 3px;
}

.rte-color::-webkit-color-swatch {
  border: none;
  border-radius: 4px;
}

.rte-color::-moz-color-swatch {
  border: none;
  border-radius: 4px;
}

.rte-body {
  min-height: 72px;
  max-height: 200px;
  overflow-y: auto;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.45;
  outline: none;
}

.rte-body:empty::before {
  content: attr(data-placeholder);
  color: var(--light, #94a3b8);
  pointer-events: none;
}

.rte-body a {
  color: var(--accent, #2979ff);
}

.html-rich-text {
  line-height: 1.45;
  word-break: break-word;
}

.html-rich-text a {
  color: var(--accent, #2979ff);
}

.system-message.html-rich-text,
.room-announcement-text.html-rich-text {
  display: block;
}
