.forum-editor{border:1px solid #cbd3d6;border-radius:8px;background:#fff;overflow:hidden;color:#333}
.forum-editor:focus-within{border-color:#719ba8;box-shadow:0 0 0 2px #e9f2f5}
.forum-editor-toolbar{display:flex;gap:4px;align-items:center;flex-wrap:wrap;padding:6px 10px;border-top:1px solid #e6eaec;background:#fff}
.forum-editor button{font:inherit;cursor:pointer}
.forum-editor input[hidden]{display:none!important}
.forum-editor-tool{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:0;border-radius:5px;background:transparent;color:#375c68;padding:8px 12px}
.forum-editor-tool:hover,.forum-editor-tool:focus-visible{background:#eaf2f5}
.forum-editor-photo{color:#71848b;font-size:16px!important;flex-shrink:0}
.forum-editor-link-toggle{font-size:16px!important}
.forum-editor-toolbar .forum-editor-tool{height:48px;color:#71848b}
.forum-editor-toolbar .forum-editor-emoji-toggle{display:inline-flex!important;align-items:center!important;justify-content:center!important;vertical-align:middle;margin:0;transform:none}
.forum-editor-emoji-toggle svg{display:block;flex-shrink:0;width:18px;height:18px;margin:0;vertical-align:middle}
.forum-editor-emoji-toggle{font-family:Arial,sans-serif!important;font-size:28px!important;line-height:1;min-width:48px;min-height:48px;padding:8px 10px}
.forum-editor-emojis{display:grid;grid-template-columns:repeat(auto-fit,minmax(44px,1fr));gap:2px;padding:8px 10px;border-bottom:1px solid #e6eaec;background:#fafbfb}
.forum-editor-emojis[hidden]{display:none}
.forum-editor-emojis button{font-size:24px;line-height:1;min-width:44px;min-height:44px;padding:8px}
.forum-editor-body{position:relative;min-height:150px;padding:14px 16px;font-size:16px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;outline:0}
.forum-editor-body:empty:before,.forum-editor-body.is-empty:before{position:absolute;content:attr(data-placeholder);color:#899297;pointer-events:none}
.forum-editor-body a{color:#24667d;text-decoration:underline}
.forum-editor-footer{display:flex;gap:12px;align-items:center;padding:6px 10px;border-top:1px solid #eef0f1}
.forum-editor-status{color:#748086;font-size:13px;line-height:1.4}
.forum-editor-footer[hidden]{display:none}
.forum-editor-status[role=alert]{color:#a13c36}
.forum-editor-card{display:block;position:relative;margin:8px 0;padding:12px 48px 12px 14px;border-left:3px solid #7b9eac;background:#f4f7f8;border-radius:4px;white-space:normal;user-select:none}
.forum-editor-card strong{display:block;font-size:13px;color:#4f6974;margin-bottom:4px}
.forum-editor-card .forum-editor-quote-text{white-space:pre-wrap;max-height:140px;overflow:auto;font-size:14px;color:#627076}
.forum-editor-card img{width:auto;height:auto;max-width:100%;max-height:180px;display:block;border-radius:5px}
.forum-editor-card .forum-editor-remove{position:absolute;right:2px;top:2px;width:44px;height:44px;padding:0;border:0;background:transparent;color:#65747b;font-size:25px;line-height:44px;border-radius:5px}
.forum-editor-card .forum-editor-remove:hover{background:#e4ebee}
#new_post.forum-editor-ready textarea[name=message]{display:none}
#new_post.forum-editor-ready button[value=preview]{display:none}
#new_post.forum-editor-ready .form-group{margin-bottom:14px}
#new_post.forum-editor-ready button[value=save]{min-height:44px;min-width:145px;border-radius:6px}
#new_post.forum-editor-ready .actions{margin-top:12px}
#new_post.forum-editor-ready{background:#f2f7fa;border-radius:8px}
.forum-editor-link-dialog{display:flex;flex-wrap:wrap;gap:8px;padding:12px;border-top:1px solid #e6eaec;background:#fafbfb}
.forum-editor-link-dialog[hidden]{display:none}
.forum-editor-link-dialog label{width:100%;font-weight:normal;font-size:14px;margin:0}
.forum-topic-options{margin:16px 0;color:#555}
.forum-topic-options summary{display:flex;align-items:center;gap:8px;cursor:pointer;color:#71848b;padding:8px 0;min-height:44px;font-size:14px;list-style:none}
.forum-topic-options summary::-webkit-details-marker{display:none}
.forum-topic-options summary:before{content:'+';flex-shrink:0;font-size:20px;line-height:1;width:18px;text-align:center}
.forum-topic-options[open] summary:before{content:'−'}
.forum-topic-options[open] summary{margin-bottom:8px}
.forum-topic-options input[name=subject]{font-size:16px}
@media(max-width:600px){.forum #content:has(#new_post.forum-editor-ready){padding-bottom:24px}}
.forum-editor-link-dialog input{flex:1;min-width:160px;border:1px solid #cad3d7;border-radius:5px;padding:10px;font-size:16px;height:44px}
@media(max-width:600px){.forum-editor-body{padding:12px;min-height:100px}#new_post.forum-editor-ready .buttons{float:none;display:flex;justify-content:flex-end}#new_post.forum-editor-ready button[value=save]{width:100%}.forum-editor-footer{align-items:flex-start;flex-wrap:wrap}.forum-editor-toolbar{padding:4px 8px}}
