.rte {
  border: 1px solid #8a8070;
  background: #fff;
  overflow: hidden;
}
.rte-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: #e8e0c8;
  border-bottom: 1px solid #8a8070;
}
.rte-bar button,
.rte-bar select,
.rte-bar input[type=color] {
  height: 26px;
  border: 1px solid #b7aa90;
  background: #f7f3e8;
  color: #333;
  font-size: 12px;
  padding: 0 8px;
  border-radius: 2px;
}
.rte-bar button.is-on { background: #fff6d4; color: #8a1f11; font-weight: 600; }
.rte-bar label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #444;
}
.rte-bar input[type=color] { width: 32px; padding: 0; }
.rte-sep {
  width: 1px;
  height: 18px;
  background: #cfc4b3;
  margin: 0 2px;
}
.rte-body {
  min-height: 280px;
  max-height: 480px;
  overflow: auto;
  padding: 10px 12px;
  background: #fff;
  color: #222;
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}
.rte.is-source .rte-body {
  font-family: Menlo, Consolas, monospace;
  font-size: 12px;
  white-space: pre-wrap;
}
.rte-body table { border-collapse: collapse; }
.rte-body td, .rte-body th { border: 1px solid #ccc; padding: 2px 4px; }
.rte-body p { margin: 0 0 8px; }
textarea.js-rte[hidden] { display: none !important; }
