.rtx {
    border: 1px solid #e6e8ec;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}
.rtx-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #eef1f5;
    background: #f8fafc;
}
.rtx-group {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    border-right: 1px solid #e5e7eb;
    padding-right: 6px;
    margin-right: 4px;
}
.rtx-group:last-child {
    border-right: 0;
    margin-right: 0;
    padding-right: 0;
}
.rtx-btn,
.rtx-select,
.rtx-color {
    border: 1px solid #dbe1ea;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    height: 30px;
    font-size: 12px;
}
.rtx-btn {
    min-width: 30px;
    padding: 0 8px;
    cursor: pointer;
    font-weight: 600;
}
.rtx-btn:hover { box-shadow: 0 2px 6px rgba(0,0,0,0.07); }
.rtx-btn.active {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}
.rtx-select { padding: 0 6px; }
.rtx-color { width: 30px; padding: 2px; }
.rtx-editor {
    min-height: 180px;
    max-height: 420px;
    overflow: auto;
    padding: 12px;
    font-size: 14px;
    line-height: 1.55;
    color: #111827;
}
.rtx-editor:focus { outline: none; }
.rtx-editor:empty::before {
    content: attr(data-placeholder);
    color: #9ca3af;
}
.rtx-editor img { max-width: 100%; height: auto; border-radius: 8px; }
.rtx-editor a { color: #2f6bff; }
.rtx-foot {
    border-top: 1px solid #eef1f5;
    background: #f8fafc;
    color: #6b7280;
    font-size: 12px;
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
}
