.community-editor{min-width:0;container:forum-editor / inline-size;border:1px solid #e4e4e7;border-radius:12px;overflow:hidden;background:#fff}.community-editor-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px}.community-editor-heading>label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600}.community-editor-heading>label span{border-radius:4px;background:#f4f4f5;color:#71717a;padding:2px 6px;font-size:11px;font-weight:400}.community-editor-heading>div{display:inline-flex;gap:2px;border-radius:8px;padding:3px;background:#f4f4f5}.community-editor-heading button{padding:5px 12px;font-size:12px;border-radius:5px;color:#71717a}.community-editor-heading button[aria-pressed=true]{background:#fff;color:#b91c1c;box-shadow:0 1px 3px #0001}.community-editor-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:3px;padding:8px 12px;background:#fafafa;border-block:1px solid #e4e4e7}.community-editor-toolbar button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:32px;min-height:32px;padding:5px 8px;border:1px solid transparent;border-radius:5px;color:#52525b;font-size:12px}.community-editor-toolbar button:hover:not(:disabled){border-color:#e4e4e7;background:#fff;color:#e60012}.community-editor button:focus-visible{outline:2px solid #e60012;outline-offset:2px}.community-editor button:disabled{opacity:.4;cursor:not-allowed}.community-editor-separator{width:1px;height:18px;margin-inline:4px;background:#d4d4d8}.community-editor-body{display:grid;min-width:0}.community-editor-body>textarea{display:block;min-width:0;width:100%;min-height:380px;padding:20px;border:0;background:#fafafa;outline:none;resize:vertical;font:14px/1.9 Consolas,Microsoft YaHei,monospace;-moz-tab-size:4;-o-tab-size:4;tab-size:4}.community-editor-body>textarea:focus{box-shadow:inset 0 0 0 2px #e600121a}.community-editor[data-mode=preview] .community-editor-body>textarea{display:none}.community-editor-preview{min-width:0;min-height:380px;max-height:720px;overflow-y:auto;padding:20px;font-size:14px}.community-editor-empty{color:#a1a1aa}.community-editor-hint{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:8px 16px;border-top:1px solid #e4e4e7;font-size:11px;color:#71717a}.community-editor-hint>:last-child{white-space:nowrap;margin-left:auto}.community-editor-images{padding:14px 16px;border-top:1px solid #e4e4e7}.community-editor-images-heading{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}.community-editor-images-heading strong{font-size:12px;font-weight:600}.community-editor-images-heading>span{font-size:11px;color:#71717a}.community-editor-images ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:8px;margin-top:12px}.community-editor-images li{display:flex;align-items:center;gap:8px;min-width:0;border:1px solid #e4e4e7;padding:8px;border-radius:8px}.community-editor-images li>img{width:42px;height:42px;-o-object-fit:cover;object-fit:cover;border:1px solid #f4f4f5;border-radius:4px}.community-editor-images li>div{min-width:0;flex:1}.community-editor-images li strong{display:block;overflow-wrap:anywhere;font-size:11px;font-weight:500}.community-editor-images li small{color:#71717a;font-size:10px}.community-editor-images li button{flex-shrink:0;color:#71717a;font-size:11px;padding:6px;border-radius:4px}.community-editor-images li button:hover:not(:disabled){background:#fef2f2;color:#b91c1c}.community-editor-upload{display:flex;align-items:center;gap:8px;margin-top:12px;color:#52525b;font-size:12px}.community-editor-upload>span:first-of-type{overflow-wrap:anywhere;min-width:0;flex:1}.community-editor-error{margin-top:10px;border-radius:6px;background:#fef2f2;color:#b91c1c;padding:10px 12px;font-size:12px}.community-editor-dialog{width:min(640px,calc(100vw - 32px));max-height:85dvh;overflow-y:auto;border:1px solid #e4e4e7;border-radius:16px;padding:24px}.community-editor-dialog::backdrop{background:#09090b70}.community-editor-dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.community-editor-dialog h3{font-size:18px;font-weight:700}.community-editor-dialog label{display:block;margin-top:16px;color:#52525b;font-size:12px;font-weight:600}.community-editor-dialog :is(input,select,textarea){display:block;width:100%;min-width:0;margin-top:8px;border:1px solid #d4d4d8;border-radius:8px;padding:10px 12px;font-size:14px;font-weight:400}.community-editor-dialog textarea{font-family:Consolas,monospace;line-height:1.7;resize:vertical;white-space:pre}.community-editor-dialog :is(input,select,textarea):focus{outline:2px solid #e6001220;border-color:#e60012}.community-editor-dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}.community-editor-dialog-actions button{border-radius:8px;padding:10px 18px;font-size:13px}.community-editor-dialog-actions button:last-child{background:#e60012;color:#fff}@container forum-editor (min-width: 800px){.community-editor[data-mode=split] .community-editor-body{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.community-editor[data-mode=split] .community-editor-preview{border-left:1px solid #e4e4e7}}@container forum-editor (max-width: 799px){.community-editor[data-mode=split] .community-editor-preview{border-top:1px solid #e4e4e7}}@media(max-width:640px){.community-create-form{padding:20px 16px;border-radius:16px}.community-editor-heading,.community-editor-images{padding:12px}.community-editor-toolbar{gap:2px;padding:6px}.community-editor-toolbar button{min-width:34px;min-height:36px;padding:5px 7px}.community-editor-body>textarea,.community-editor-preview{min-height:300px;padding:12px}}
