.forum-composer { min-width: 0; margin: 0 0 20px; }
.forum-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.forum-form .forum-editor-heading > label { margin: 0; }
.forum-editor-modes { display: flex; padding: 3px; gap: 3px; border: 1px solid #deedf0; border-radius: 9px; background: #f4f9fa; }
.forum-editor-modes button { padding: 5px 9px; border: 0; border-radius: 6px; background: transparent; color: #78929b; font-size: 10px; font-weight: 800; line-height: 1.5; }
.forum-editor-modes button[aria-pressed=true] { background: #fff; color: #178996; box-shadow: 0 1px 5px #3467720c; }
.forum-editor-frame { border: 1px solid #d9e9ed; border-radius: 12px; background: #fff; }
.forum-editor-frame:focus-within { border-color: #50b8c2; box-shadow: 0 0 0 2px #d9f3f5; }
.forum-editor-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 8px; border-bottom: 1px solid #e0edef; border-radius: 12px 12px 0 0; background: #f8fbfc; }
.forum-editor-tool-group { display: flex; align-items: center; gap: 2px; padding-right: 6px; border-right: 1px solid #dfeaed; }
.forum-editor-tool-group:last-child { border-right: 0; padding-right: 0; }
.forum-editor-toolbar button { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #537780; font-size: 15px; line-height: 1; }
.forum-editor-toolbar button svg { width: 18px; height: 18px; }
.forum-editor-toolbar button:hover, .forum-editor-toolbar button[aria-pressed=true], .forum-editor-toolbar button[aria-expanded=true] { color: #098d9d; border-color: #c8e8ec; background: #e5f6f8; }
.forum-editor-toolbar button i { color: inherit; font-family: Georgia, serif; font-weight: 700; }
.forum-form .forum-editor-toolbar select { width: 115px; min-height: 32px; padding: 5px 25px 5px 8px; border: 1px solid #e1ecef; border-radius: 6px; font-size: 11px; background-color: #fff; }
.forum-editor-visual { min-height: 190px; padding: 18px; cursor: text; }
.forum-editor-visual:focus { outline: none; }
.forum-editor-visual:empty::before { content: attr(data-placeholder); color: #9caeb4; pointer-events: none; }
.forum-form .forum-editor-source, .forum-form [data-forum-plain] { min-height: 205px; padding: 17px 18px; border: 0; border-radius: 12px; background: transparent; box-shadow: none; outline: none; }
.forum-form .forum-editor-source:focus, .forum-form [data-forum-plain]:focus { outline: none; }
.forum-form .forum-editor-source { border-radius: 12px 12px 0 0; font: 12px/1.7 Consolas, Monaco, monospace; color: #537180; tab-size: 2; }
.forum-editor-footer { display: flex; justify-content: space-between; gap: 14px; padding: 11px 15px; border-top: 1px solid #edf3f5; color: #95a8ae; font-size: 10px; line-height: 1.6; }
.forum-editor-footer > :last-child { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.forum-editor-footer .is-error, .forum-editor-status.is-error { color: #b84d53; }
.forum-editor-link { padding: 13px 15px; border-bottom: 1px solid #dcebed; background: #eff9fa; }
.forum-editor-link > div { display: flex; align-items: center; gap: 8px; }
.forum-editor-link > div > input { flex: 1; min-width: 0; }
.forum-editor-link .forum-button { min-height: 39px; padding: 8px 12px; font-size: 11px; }
.forum-editor-close { flex: 0 0 auto; border: 0; background: none; color: #7499a4; font-size: 23px; padding: 5px; }
.forum-editor-link > .forum-text-link { padding: 0; margin-top: 10px; background: none; border: none; font-size: 10px; }
.forum-composer-actions { display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; }
.forum-attach-picker { position: relative; flex: 0 0 auto; }
.forum-attach-picker > summary { display: flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 12px; border: 1px solid #cee9ed; border-radius: 10px; background: #f2fbfc; color: #398d9c; font-size: 11px; font-weight: 800; cursor: pointer; list-style: none; }
.forum-attach-picker > summary::-webkit-details-marker { display: none; }
.forum-attach-picker > summary svg { width: 21px; height: 21px; }
.forum-attach-picker[open] > summary { background: #e0f5f8; border-color: #b2e3e9; }
.forum-attach-panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 85; width: 254px; padding: 13px 9px 10px; border: 1px solid #dbecef; border-radius: 15px; background: #fff; box-shadow: 0 13px 35px #214c651c; }
.forum-attach-panel > strong { display: block; padding: 0 10px 8px; color: #91a7af; font-size: 10px; font-weight: 800; }
.forum-attach-panel > button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: none; border-radius: 9px; background: #fff; color: #5095a2; text-align: left; }
.forum-attach-panel > button:hover { background: #eff9fb; }
.forum-attach-panel > button > svg { width: 25px; height: 25px; flex: 0 0 auto; }
.forum-attach-panel > button b { display: block; font-size: 12px; color: #416e7c; }
.forum-attach-panel > button small { display: block; margin-top: 2px; color: #94a7ae; font-size: 9px; }
.forum-attach-panel > p { border-top: 1px solid #eef4f5; padding: 10px 10px 0; margin-top: 5px; color: #9cb0b7; font-size: 9px; }
.forum-composer .social-picker { margin: 0; flex: 1; }
.forum-composer .social-picker-actions { gap: 7px; }
.forum-composer .social-picker summary { width: 43px; height: 42px; padding: 9px; border-radius: 10px; background: #f2fbfc; }
.forum-composer .social-picker-panel { z-index: 90; }
.forum-composer .social-sticker-preview { padding-top: 7px; margin-left: -128px; }
.forum-composer .social-sticker-preview img { width: 112px; height: 112px; }
.forum-file-fallback { margin-top: 15px; }
.forum-form .forum-file-fallback input { padding: 10px; font-size: 11px; }
.forum-editor-status { margin-top: 12px; color: #70969f; font-size: 11px; line-height: 1.6; }
.forum-editor-status:empty { display: none; }
.forum-upload-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 15px; }
.forum-upload-previews:empty { display: none; }
.forum-upload-preview { position: relative; min-width: 0; overflow: hidden; border: 1px solid #dcebef; border-radius: 11px; background: #f8fcfc; }
.forum-upload-preview-media { display: grid; place-items: center; width: 100%; height: 100px; background: #eaf5f7; color: #71a8b3; }
.forum-upload-preview-media > img, .forum-upload-preview-media > video { width: 100%; height: 100%; object-fit: cover; }
.forum-upload-preview-media > svg { width: 33px; height: 33px; }
.forum-upload-preview-caption { padding: 10px; }
.forum-upload-preview-caption > strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #5b7e89; font-size: 10px; font-weight: 700; }
.forum-upload-preview-caption > small { display: block; color: #9cb0b6; font-size: 9px; margin-top: 3px; }
.forum-upload-remove { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; background: #fffffff0; border: 1px solid #d9e7eb; color: #6b939e; border-radius: 50%; font-size: 20px; line-height: 1; }
.forum-existing-files { margin-top: 19px; }
.forum-existing-files h3 { font-size: 12px; margin-bottom: 12px; color: #7a9ca7; }
.forum-existing-file { display: flex; align-items: center; gap: 10px; padding: 12px; margin-bottom: 8px; border: 1px solid #deedf0; border-radius: 10px; background: #fbfefe; }
.forum-existing-file-icon { flex: 0 0 auto; color: #77a8b5; }
.forum-existing-file > a { flex: 1; min-width: 0; color: #577f8c; font-size: 11px; overflow-wrap: anywhere; }
.forum-existing-file > a small { display: block; color: #9aadb4; margin-top: 3px; font-size: 9px; }
.forum-existing-file > .forum-check { flex: 0 0 auto; font-size: 10px; }
.forum-existing-file.is-removed { opacity: .65; background: #fbf6f5; }
.forum-existing-file.is-removed > a { text-decoration: line-through; }
.forum-rich-body, .forum-post-body.forum-rich-body { white-space: normal; overflow-wrap: anywhere; font-size: 14px; line-height: 1.85; }
.forum-rich-body > :first-child { margin-top: 0; }
.forum-rich-body > :last-child { margin-bottom: 0; }
.forum-rich-body p { margin: 0 0 12px; }
.forum-rich-body h2 { margin: 21px 0 11px; font-size: 23px; line-height: 1.35; }
.forum-rich-body h3 { margin: 18px 0 9px; font-size: 19px; line-height: 1.4; }
.forum-rich-body ul, .forum-rich-body ol { margin: 12px 0; padding-left: 25px; }
.forum-rich-body li { margin: 5px 0; }
.forum-rich-body blockquote { margin: 16px 0; padding: 12px 17px; border-left: 3px solid #65bcc5; border-radius: 0 10px 10px 0; background: #f0f9fa; color: #67949f; }
.forum-rich-body blockquote > :last-child { margin-bottom: 0; }
.forum-rich-body a { color: #078d9e; text-decoration: underline; text-underline-offset: 3px; }
.forum-rich-body em { color: inherit; font-style: italic; }
.forum-rich-body b, .forum-rich-body strong { font-weight: 850; }
.forum-post-sticker { width: 160px; max-width: 100%; height: auto; object-fit: contain; margin-top: 15px; }
.forum-post-attachments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 18px; }
.forum-attachment { min-width: 0; margin: 0; padding: 0; overflow: hidden; border: 1px solid #e0edf0; border-radius: 12px; background: #f8fcfd; }
.forum-attachment-image > a { display: block; }
.forum-attachment-image img { width: 100%; height: auto; max-height: 320px; object-fit: contain; background: #eaf5f7; }
.forum-attachment-video { grid-column: 1 / -1; }
.forum-attachment video { display: block; width: 100%; max-height: 420px; background: #173941; }
.forum-attachment-audio { grid-column: 1 / -1; padding-top: 10px; }
.forum-attachment audio { display: block; width: calc(100% - 16px); height: 42px; margin: 0 8px; }
.forum-attachment-file { grid-column: 1 / -1; }
.forum-attachment figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; color: #81a1ad; font-size: 10px; line-height: 1.5; }
.forum-attachment figcaption > span { min-width: 0; overflow-wrap: anywhere; }
.forum-attachment figcaption > a { flex: 0 0 auto; color: #6095a2; }
.forum-attachment figcaption svg { width: 17px; height: 17px; }
.forum-file-download { display: flex; align-items: center; gap: 12px; padding: 16px; color: #709faa; }
.forum-file-download > span { flex: 1; min-width: 0; }
.forum-file-download strong { display: block; font-size: 12px; font-weight: 750; color: #517f8d; overflow-wrap: anywhere; }
.forum-file-download small { display: block; margin-top: 5px; color: #97aeb7; font-size: 10px; }
.forum-file-download svg { flex: 0 0 auto; width: 23px; height: 23px; }
.forum-file-download > svg:last-child { width: 18px; height: 18px; }
@media (max-width: 600px) {
    .forum-editor-heading { gap: 8px; }
    .forum-editor-modes button { font-size: 9px; padding: 5px 7px; }
    .forum-editor-toolbar { gap: 6px 4px; padding: 7px; }
    .forum-editor-tool-group { padding-right: 5px; }
    .forum-editor-toolbar button { width: 31px; height: 34px; font-size: 14px; }
    .forum-form .forum-editor-toolbar select { width: 109px; font-size: 11px; }
    .forum-editor-visual { min-height: 185px; padding: 15px 13px; font-size: 16px; }
    .forum-form .forum-editor-source, .forum-form [data-forum-plain] { font-size: 16px; padding: 15px 13px; }
    .forum-editor-footer { padding: 10px 12px; gap: 9px; font-size: 8px; }
    .forum-editor-footer > :last-child { font-size: 8px; }
    .forum-editor-link { padding: 12px; }
    .forum-editor-link > div { flex-wrap: wrap; gap: 7px; }
    .forum-editor-link > div > input { flex-basis: calc(100% - 35px); }
    .forum-editor-link > div > .forum-button { order: 3; width: 100%; }
    .forum-editor-close { width: 23px; }
    .forum-composer-actions { gap: 8px; }
    .forum-attach-picker > summary { padding: 8px 10px; font-size: 10px; }
    .forum-composer .social-picker summary { width: 41px; }
    .forum-composer .social-sticker-preview { margin-left: -116px; }
    .forum-composer .social-picker-panel { border-radius: 15px; padding: 12px; }
    .forum-upload-previews { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .forum-upload-preview-media { height: 85px; }
    .forum-upload-preview-caption { padding: 8px; }
    .forum-existing-file { padding: 10px; gap: 8px; }
    .forum-existing-file > a { font-size: 10px; }
    .forum-existing-file > .forum-check { font-size: 9px; gap: 5px; }
    .forum-post-body.forum-rich-body { font-size: 13px; }
    .forum-post-body.forum-rich-body h2 { font-size: 21px; }
    .forum-post-body.forum-rich-body h3 { font-size: 18px; }
    .forum-post-attachments { gap: 9px; }
    .forum-attachment figcaption { padding: 8px; font-size: 9px; }
    .forum-file-download { padding: 12px; gap: 9px; }
    .forum-file-download strong { font-size: 11px; }
}
