.universal-rte {
  margin-top: 6px;
  margin-bottom: 12px;
}
.universal-rte-toolbar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}
.universal-rte-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.universal-rte-row-typography {
  width: auto;
  max-width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}
.universal-rte-row-typography .universal-rte-btn {
  background: var(--input-bg) !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
}
.universal-rte-row-typography .universal-rte-btn:hover,
.universal-rte-row-typography .universal-rte-btn:focus {
  background: var(--input-bg) !important;
  color: var(--text) !important;
  border-color: var(--brand) !important;
  transform: none !important;
}
.universal-rte-row-typography .universal-rte-btn option {
  background: #0f172a;
  color: #f8fafc;
}
.universal-rte-btn {
  padding: 8px 10px !important;
  min-height: 42px;
  font-size: 14px !important;
  line-height: 1.2;
  border-radius: 8px !important;
}
.universal-rte-editor {
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--input-bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}
.universal-rte-editor:focus {
  outline: 2px solid rgba(59,130,246,.25);
  border-color: var(--brand);
}
.universal-rte-hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 520px) {
  .universal-rte-toolbar {
    gap: 6px;
  }
  .universal-rte-btn {
    padding: 7px 8px !important;
    font-size: 13px !important;
  }
}

.universal-rte-font {
  min-width: 0;
  flex: 0 0 205px;
  width: 205px;
}

.universal-rte-size {
  min-width: 140px;
  flex: 0 0 140px;
  width: 140px;
}

@media (max-width: 900px) {
  .universal-rte-row-typography {
    width: 100% !important;
    flex-wrap: wrap;
  }
  .universal-rte-font,
  .universal-rte-size {
    flex: 1 1 100%;
    width: 100%;
  }
}
