/* A compact forum editor, intentionally independent of account/admin cards. */
.modal-backdrop .modal.posting-modal{width:min(680px,100%);max-width:680px;padding:26px;background:#191919;border:1px solid #363636;border-radius:10px;box-shadow:0 20px 70px #0008}
.posting-modal .modal-head{margin-bottom:6px}.posting-modal .modal-head h2{font-size:19px;line-height:1.4;letter-spacing:-.2px}.posting-modal .modal-close{width:32px;height:32px;border-radius:5px}
.posting-context{font-size:12px;color:#aaa;line-height:1.5;margin:0 0 24px;overflow-wrap:anywhere}.posting-context span{padding:0 6px;color:#666}
.posting-title>span{display:flex;justify-content:space-between;align-items:center}.posting-title small{font-size:11px;color:#919191;font-weight:400;font-variant-numeric:tabular-nums}
.posting-modal .input{height:43px;padding:10px 12px;border:1px solid #3b3b3b;border-radius:6px;background:#141414;color:#f1f1f1;font-size:14px}
.forum-editor{min-width:0}.forum-editor .rich-field{margin-bottom:0}.forum-editor .editor-label{font-size:12px;font-weight:500;color:#ccc;margin-bottom:8px}
.forum-editor .editor-shell{overflow:hidden;border:1px solid #363636;border-radius:7px;background:#141414}.forum-editor .editor-shell:focus-within{border-color:#777}
.forum-editor .editor-tools{display:flex;align-items:center;gap:4px;flex-wrap:wrap;padding:7px 9px;border-bottom:1px solid #333;background:#202020;min-height:45px}
.forum-editor .editor-tools button{display:grid;place-items:center;min-width:32px;height:30px;border:0;border-radius:4px;background:none;color:#d2d2d2;font-size:13px;cursor:pointer;padding:0 8px}
.forum-editor .editor-tools button:hover,.forum-editor .editor-tools button[aria-pressed=true]{background:#343434;color:#fff}
.forum-editor .editor-tools button:disabled{opacity:.4;cursor:default}.forum-editor .editor-tools .editor-preview-toggle{display:block;margin-left:auto;font-size:12px;padding:0 10px;min-width:70px}
.forum-editor .color-tool{display:flex;align-items:center;height:30px;padding:0 8px;border:0;border-radius:4px;background:none;color:#bcbcbc;font-size:11px;gap:7px}.forum-editor .color-swatch{width:12px;height:12px;border:1px solid #777;border-radius:3px;background:#eee}.editor-divider{height:16px;width:1px;background:#3c3c3c;margin:0 5px}
.forum-editor .visual-editor,.forum-editor .forum-preview{min-height:220px;max-height:45vh;overflow-y:auto;background:#141414;padding:17px 15px;color:#eee;font-size:14px;line-height:1.75;overflow-wrap:anywhere;white-space:pre-wrap;border:0;border-radius:0;outline:0;font-family:inherit;box-shadow:none}
.forum-editor .visual-editor:empty:before{content:attr(data-static-placeholder);color:#808080;pointer-events:none}.forum-editor .visual-editor[aria-invalid=true]{box-shadow:inset 0 -2px #c97d7d}
.forum-editor [hidden],.posting-modal [hidden],.forum-reply-composer [hidden]{display:none!important}
.forum-editor-meta{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#909090;padding:9px 1px;line-height:1.5}.message-count{flex:none;font-variant-numeric:tabular-nums}.message-count.over-limit{color:#eda5a5}.draft-state{min-width:0}
.posting-draft-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 0 0;font-size:11px;color:#777}.posting-draft-actions button,.forum-reply-composer [data-discard-draft]{font-size:12px;color:#aaa}.posting-draft-actions button:disabled{opacity:.4;cursor:default}
.posting-modal .modal-actions{padding-top:18px;margin-top:20px;border-top:1px solid #303030;gap:10px}.posting-modal .modal-actions button{min-height:37px;border-radius:6px;padding:8px 16px;font-size:12px;font-weight:500;box-shadow:none}
.posting-modal .modal-error,.posting-error{color:#efabab;font-size:12px;line-height:1.6;background:#261c1c;border:1px solid #503333;padding:10px 12px;border-radius:5px}
.preview-empty{color:#888;font-size:13px;margin:0}
.shell .forum-reply-composer{border-radius:8px;padding:22px;background:#191919;margin-top:20px}.forum-reply-heading{display:flex;align-items:center;gap:11px;margin-bottom:20px}.forum-reply-heading>.avatar{width:32px;height:32px;border-radius:50%;flex:none;overflow:hidden}.forum-reply-heading h2{font-size:14px;line-height:1.4;font-weight:600;margin:0}.forum-reply-heading small{font-size:11px;color:#999}.forum-reply-heading>div{min-width:0}
.forum-reply-composer .composer-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px}.forum-reply-composer .composer-actions .primary{font-size:12px;min-height:37px;padding:8px 17px}
.forum-pending{padding:15px 18px;border:1px solid #414038;background:#1c1c19;border-radius:6px;margin:0 0 18px;color:#d5d1bb}.forum-pending>strong{display:block;font-size:12px;font-weight:500}.forum-pending>span{display:block;font-size:11px;color:#aaa;margin-top:5px}.forum-pending>div{display:flex;justify-content:space-between;gap:18px;padding-top:12px;font-size:12px;overflow-wrap:anywhere}.forum-pending time{color:#929292;font-size:11px;flex:none}
.forum-posting-rule{font-size:12px;line-height:1.6;color:#aaa;margin:12px 0}.shell .post-controls{align-items:center;flex-wrap:wrap}.shell .post-body{min-width:0}.shell .formatted-content{overflow-wrap:anywhere}
.forum-editor :is(button,input):focus-visible,.posting-modal button:focus-visible{outline:2px solid #ccc;outline-offset:2px}
.shell .forum-thread-heading{align-items:center}.forum-thread-heading .manage-actions{display:flex;flex-wrap:wrap;gap:8px;flex:none;margin-left:auto}.forum-editor-meta .restore-edit-draft{font-size:11px;color:#ddd;flex:none}.forum-editor-meta:has(.restore-edit-draft){flex-wrap:wrap}
.thread-pagination{flex-wrap:wrap;gap:8px;margin:18px 0}.thread-pagination>span{font-size:12px;color:#aaa;padding:8px 4px}
@media(max-width:600px){.modal-backdrop:has(.posting-modal){padding:12px}.modal-backdrop .modal.posting-modal{padding:18px;max-height:calc(100dvh - 24px);overflow-y:auto}.posting-modal .modal-head h2{font-size:18px}.posting-context{margin-bottom:20px}.forum-editor .visual-editor,.forum-editor .forum-preview{min-height:180px;font-size:16px}.posting-modal .input{font-size:16px}.forum-editor-meta{font-size:10px;gap:8px}.posting-draft-actions>span{display:none}.forum-editor .editor-tools button{height:36px}.forum-editor .editor-tools{padding:5px}.shell .forum-reply-composer{padding:16px}.forum-pending>div{display:block}.forum-pending time{display:block;margin-top:5px}.posting-modal .modal-actions button{min-height:42px}}
