.forum-rich-content { white-space: normal; overflow-wrap: anywhere; }
.forum-rich-content p { margin: 0; min-height: 1.5em; white-space: pre-wrap; }
.forum-rich-content .forum-content-list { margin: .4em 0; padding-left: 1.8em; }
.forum-rich-content li { white-space: pre-wrap; }
.forum-rich-content .forum-content-image { display: block; max-width: 100%; max-height: 900px; width: auto; height: auto; margin: .4em 0; border-radius: 3px; }
.forum-color-black { color: #000000; }
.forum-color-red { color: #e60000; }
.forum-color-orange { color: #ff9900; }
.forum-color-yellow { color: #ffff00; }
.forum-color-green { color: #008a00; }
.forum-color-blue { color: #0066cc; }
.forum-color-purple { color: #9933ff; }
.forum-color-gray { color: #808080; }
.forum-size-small { font-size: .75em; }
.forum-size-large { font-size: 1.5em; }
.forum-size-huge { font-size: 2.5em; }
.forum-align-center { text-align: center; }
.forum-align-right { text-align: right; }
.forum-align-justify { text-align: justify; }
.forum-code-block { white-space: pre-wrap; overflow-x: auto; padding: 12px; background: hsla(var(--xf-contentAltBg)); }
.forum-topic-owner { font-size: inherit; font-weight: normal; }
.forum-edit-action { display: inline-flex; align-items: center; gap: 4px; }
.forum-edit-action svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.forum-edit-metadata { color: hsla(var(--xf-textColorMuted)); font-size: 12px; }
.forum-post-edit, .forum-post-edit > .p-body-content { display: block; width: 100%; }
.forum-post-edit .block--form { margin-left: 0; margin-right: auto; }
.forum-post-edit .formRow { display: block; }
.forum-post-edit .formRow > dt, .forum-post-edit .formRow > dd { display: block; width: auto; text-align: left; border: 0; }
.forum-post-edit .formRow > dt { padding: 15px 14px 0; background: transparent; }
.forum-post-edit .formRow > dd { padding: 8px 14px 15px; }
.forum-post-edit .formSubmitRow > dt { display: none; }
.forum-post-edit .formSubmitRow > dd { padding: 0; }
.forum-post-edit .formSubmitRow-controls { padding-left: 0; text-align: left; }
.forum-editor-shell { position: relative; max-width: 100%; overflow: hidden; border: 1px solid hsla(var(--xf-borderColor)); border-radius: 4px; background: hsla(var(--xf-contentBg)); }
.forum-editor-shell:focus-within { border-color: hsla(var(--xf-textColorAttention)); }
.forum-editor-shell .ql-toolbar.ql-snow { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; border: 0; border-bottom: 1px solid hsla(var(--xf-borderColor)); background: hsla(var(--xf-contentAltBg)); color: hsla(var(--xf-textColor)); font-family: inherit; padding: 8px; }
.forum-editor-shell .ql-toolbar.ql-snow .ql-formats { display: inline-flex; flex-wrap: wrap; max-width: 100%; align-items: center; gap: 2px; margin: 0 8px 0 0; }
.forum-editor-shell .ql-container.ql-snow { border: 0; font: inherit; }
.forum-editor-shell .ql-editor { min-height: 220px; font: inherit; line-height: 1.5; padding: 12px; }
.forum-editor-shell .ql-editor:focus-visible { outline: none; }
.forum-editor-shell .ql-editor.ql-blank::before { color: hsla(var(--xf-textColorMuted)); font-style: normal; }
.forum-editor-shell .ql-toolbar button { color: hsla(var(--xf-textColor)); border-radius: 3px; white-space: nowrap; }
.forum-editor-shell .ql-toolbar .ql-bold { font-weight: 700; }
.forum-editor-shell .ql-toolbar .ql-italic { font-style: italic; }
.forum-editor-shell .ql-toolbar .ql-underline { text-decoration: underline; text-underline-offset: 2px; }
.forum-editor-shell .ql-toolbar .ql-strike { text-decoration: line-through; }
.forum-editor-shell .ql-snow .ql-stroke { stroke: currentColor; }
.forum-editor-shell .ql-snow .ql-fill { fill: currentColor; }
.forum-editor-shell .ql-toolbar button:hover, .forum-editor-shell .ql-toolbar button:focus-visible, .forum-editor-shell .ql-toolbar button.ql-active { color: hsla(var(--xf-linkColor)); background: hsla(var(--xf-contentHighlightBg)); }
.forum-editor-shell .forum-editor-select { display: inline-block; width: auto; max-width: 145px; padding: 3px 5px; border: 1px solid hsla(var(--xf-borderColor)); border-radius: 3px; background: hsla(var(--xf-contentBg)); color: hsla(var(--xf-textColor)); font: inherit; font-size: 12px; }
.forum-editor-shell .ql-tooltip { display: none; }
.forum-editor-error { margin: 8px 0 0; color: #e47676; font-size: 13px; }
.forum-editor-mentions { position: static; width: 100%; max-height: 180px; overflow-y: auto; margin: 0; padding: 4px; list-style: none; border-top: 1px solid hsla(var(--xf-borderColor)); background: hsla(var(--xf-contentBg)); }
.forum-editor-mentions li { padding: 6px 8px; cursor: pointer; }
.forum-editor-mentions li.is-active, .forum-editor-mentions li:hover { background: hsla(var(--xf-contentHighlightBg)); color: hsla(var(--xf-linkColor)); }
@media (max-width: 650px) { .forum-editor-shell .ql-editor { min-height: 180px; } .forum-edit-metadata { float: none; margin-bottom: 5px; } }
