.common-rte-wrapper {
  width: 100%;
}

.common-rte-toggle-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.6rem;
}

.common-rte-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.55rem;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  border: 1px solid #cfd8e3;
  border-bottom: 0;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.common-rte-group {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding-right: 0.45rem;
  border-right: 1px solid #d6dfeb;
}

.common-rte-group:last-child {
  border-right: 0;
  padding-right: 0;
}

.common-rte-toolbar button,
.common-rte-select {
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid #d6dfeb;
  border-radius: 0.45rem;
  background: #fff;
  color: #1f2937;
}

.common-rte-select {
  width: auto;
  min-width: 8.5rem;
  padding: 0 0.65rem;
}

.common-rte-toolbar button:hover,
.common-rte-toolbar button.is-active {
  border-color: #6ea8fe;
  background: #eaf2ff;
  color: #0d6efd;
}

.common-rte-editor {
  min-height: 240px;
  padding: 1rem 1.1rem;
  background: #fff;
  overflow: auto;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  line-height: 1.65;
}

.common-rte-editor:focus {
  border-color: #6ea8fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
  outline: 0;
}

.common-rte-editor h2,
.common-rte-editor h3 {
  margin: 0.35rem 0 0.6rem;
  font-weight: 700;
}

.common-rte-editor blockquote {
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid #7aa7f8;
  background: #f3f7ff;
  color: #334155;
}

.common-rte-editor a {
  color: #0d6efd;
  text-decoration: underline;
}

.common-rte-source {
  min-height: 240px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.55;
  background: #0f172a;
  color: #e2e8f0;
}
