.rich-editor { min-width: 0; }
.rich-editor-controls { display: flex; justify-content: flex-end; margin-bottom: .5rem; }
.rich-editor .ql-toolbar.ql-snow { display: flex; flex-wrap: wrap; gap: .375rem; border-color: var(--border, #e5ddd5); background: var(--bg-muted, #f0ede9); border-radius: .5rem .5rem 0 0; }
.rich-editor .ql-toolbar .ql-formats { display: inline-flex; align-items: center; margin: 0; }
.rich-editor .ql-toolbar button { min-width: 36px; min-height: 36px; padding: 7px; }
.rich-editor .ql-container { background: white; border-radius: 0 0 .5rem .5rem; }
.rich-editor .ql-editor { min-height: 13rem; font: inherit; line-height: 1.7; overflow-wrap: anywhere; }
.rich-editor .ql-editor img, .profile-rich img, .content-rich img { width: 100%; height: auto; }
.rich-editor [hidden] { display: none !important; }
textarea[data-rich-text]:not([hidden]) { min-height: 20rem; font: 13px/1.6 monospace; }
textarea[data-rich-text][hidden] { display: none !important; }
.profile-rich { overflow-wrap: anywhere; }
.profile-rich p { margin-bottom: 1em; }
.profile-rich :is(ul,ol) { padding-inline-start: 1.5em; }
@media (max-width: 600px) { .rich-editor .ql-toolbar button { min-width: 40px; min-height: 40px; } }
