.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-youtube-embed { display: block; width: min(100%, 720px); aspect-ratio: 16 / 9; height: auto; margin: .5em 0; border: 0; border-radius: 4px; background: #0d1117; }
.forum-youtube-channel { display: inline-flex; align-items: center; gap: 7px; margin: .2em 0; padding: 5px 10px; border: 1px solid rgba(255,0,0,.25); border-radius: 5px; background: rgba(255,0,0,.08); color: inherit; font-weight: 600; }
.forum-youtube-channel:hover { background: rgba(255,0,0,.14); text-decoration: none; }
.forum-youtube-channel-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 16px; border-radius: 5px; background: #f00; color: #fff; font-size: 10px; line-height: 1; }
.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-shell { position: relative; min-width: 0; overflow: visible; }
.forum-code-block { box-sizing: border-box; width: 100%; margin: 0; white-space: pre-wrap; overflow-x: auto; padding: 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 4px; background: #0d1117; color: #e6edf3; }
.forum-code-block-content { display: block; margin: 0; padding: 0; background: transparent; color: inherit; font: inherit; white-space: inherit; }
.forum-code-block-content .lua-keyword, .forum-code-block-content .lua-operator { color: #ff7b72; }
.forum-code-block-content .lua-literal, .forum-code-block-content .lua-number { color: #79c0ff; }
.forum-code-block-content .lua-string { color: #a5d6ff; }
.forum-code-block-content .lua-comment { color: #8b949e; font-style: italic; }
.forum-code-block-content .lua-builtin, .forum-code-block-content .lua-function { color: #d2a8ff; }
.forum-code-copy { position: absolute; top: 6px; right: 6px; z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 5px; border: 1px solid rgba(255,255,255,.18); border-radius: 4px; background: #21262d; color: #c9d1d9; cursor: pointer; }
.forum-code-copy svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.forum-code-success-icon { display: none !important; }
.forum-code-copy.is-copied .forum-code-copy-icon { display: none; }
.forum-code-copy.is-copied .forum-code-success-icon { display: block !important; }
.forum-code-copy::after { position: absolute; bottom: calc(100% + 7px); right: -1px; z-index: 4; padding: 4px 7px; border: 1px solid rgba(255,255,255,.14); border-radius: 4px; background: #21262d; color: #f0f3f6; content: attr(data-tooltip); font-family: inherit; font-size: 12px; line-height: 1.3; white-space: nowrap; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .1s ease; }
.forum-code-copy:hover, .forum-code-copy:focus-visible { background: #30363d; color: #fff; }
.forum-code-copy:hover::after, .forum-code-copy:focus-visible::after { opacity: 1; visibility: visible; }
.forum-code-copy.is-copied { border-color: rgba(63,185,80,.55); background: #12301c; color: #3fb950; }
.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-profile-manage { display: grid; gap: 16px; }
.forum-profile-manage-section { margin: 0; }
.forum-profile-manage-section .forum-admin-card { margin-bottom: 0; }
.forum-profile-list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid hsla(var(--xf-borderColorLight)); }
.forum-profile-list-toolbar .block-header { margin: 0; padding: 0; border: 0; background: transparent; }
.forum-profile-sort { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.forum-profile-sort-option { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 5px 9px; border: 1px solid hsla(var(--xf-borderColorLight)); border-radius: 4px; color: hsla(var(--xf-textColor)); font-size: 13px; line-height: 1.3; white-space: nowrap; }
.forum-profile-sort-option:hover { text-decoration: none; background: hsla(var(--xf-contentHighlightBg)); }
.forum-profile-sort-option.is-active { border-color: hsla(var(--xf-linkColor)); color: hsla(var(--xf-linkColor)); }
.forum-profile-sort-option svg, .forum-profile-like-count svg { flex: 0 0 auto; width: 14px; height: 14px; fill: currentColor; }
.forum-profile-like-count { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.forum-profile-like-count--post .forum-profile-like-number { display: inline-block; margin-left: 4px; }
.forum-profile-post-date { color: hsla(var(--xf-textColorMuted)); font-weight: normal; }
.forum-profile-like-pair dd { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; }
.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 { box-sizing: border-box; display: inline-flex; float: none; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; color: hsla(var(--xf-textColor)); border-radius: 3px; line-height: 1; text-align: center; vertical-align: middle; white-space: nowrap; }
.forum-editor-shell .ql-toolbar button svg { display: block; flex: 0 0 auto; width: 18px; height: 18px; }
.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-toolbar .ql-code-block { font-family: ui-monospace, Consolas, monospace; font-size: 12px; letter-spacing: -1px; }
.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; } }
