.forum-editor-page { max-width: 880px; margin: 2.5rem auto; min-width: 0; }
.forum-editor-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.forum-editor-heading h1 { margin: 0 0 .5rem; }
.forum-editor-heading p, .forum-editor-help, .forum-draft-row p { color: var(--secondary-text-color); }
.forum-editor label { display: block; margin: 1rem 0 .5rem; font-weight: 600; }
.forum-editor input[type="text"], .forum-editor select, .forum-editor textarea { box-sizing: border-box; width: 100%; border: 1px solid var(--border-color); border-radius: 10px; background: var(--page-background); color: var(--text-color); font: inherit; padding: .8rem; }
.forum-editor select { max-width: 320px; }
.forum-editor textarea { min-height: 340px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; line-height: 1.6; tab-size: 4; }
.forum-editor button, .forum-draft-row button { font: inherit; color: var(--text-color); background: var(--hover-background); border: 1px solid var(--border-color); border-radius: 8px; padding: .55rem .8rem; cursor: pointer; }
.forum-editor button:active:not([aria-pressed="true"], .account-primary), .forum-draft-row button:active { background: var(--press-background); }
.forum-editor button:focus-visible, .forum-editor input:focus-visible, .forum-editor select:focus-visible, .forum-editor textarea:focus-visible, .forum-editor-preview:focus-visible, .forum-draft-row button:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; }
.forum-editor-modes { display: flex; gap: .4rem; margin: 1.5rem 0 1rem; }
.forum-editor-modes [aria-pressed="true"] { color: white; background: var(--accent-blue); border-color: var(--accent-edge-color); }
.forum-editor-tools { display: none; flex-wrap: wrap; gap: .4rem; }
.forum-editor[data-enhanced="true"] .forum-editor-tools { display: flex; }
.forum-editor-tools button { font-size: .875rem; }
.forum-editor-tools p { width: 100%; margin: .2rem 0; }
#forum-editor-count:empty { display: none; }
.forum-editor-help { font-size: .875rem; line-height: 1.5; }
.forum-editor-preview { min-height: 340px; border: 1px solid var(--border-color); border-radius: 10px; padding: 1.25rem; overflow-wrap: anywhere; }
.forum-editor[data-mode="write"] .forum-editor-preview, .forum-editor[data-mode="preview"] .forum-editor-write { display: none; }
.forum-editor-notice { padding: var(--card-padding); border: 1px solid var(--border-color); border-radius: var(--card-radius); }
#forum-editor-status { min-height: 1.5em; margin-bottom: .4rem; }
.forum-editor[data-error="true"] #forum-editor-status { font-weight: 600; }
.forum-editor-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: 1.25rem; }
.forum-editor .account-primary { background: var(--accent-blue); border-color: var(--accent-edge-color); color: white; margin: 0; border-radius: 999px; padding: 0 1.25rem; }
.forum-editor[data-recoverable="false"] [data-recover] { display: none; }
.forum-draft-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--border-color); }
.forum-draft-row h2 { font-size: 1.15rem; overflow-wrap: anywhere; }
@media (max-width: 600px) { .forum-editor-page { margin: 1.5rem auto; } .forum-editor select { max-width: none; } .forum-editor-preview { padding: .8rem; } .forum-draft-row { align-items: flex-start; flex-direction: column; } }

#forum-attachments { padding: 0; list-style: none; }
#forum-attachments li { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .75rem 0; }
#forum-attachments li span { flex: 1 1 14rem; overflow-wrap: anywhere; }
#forum-attachments button { padding: .35rem .7rem; }
#forum-attachments-status { overflow-wrap: anywhere; }
#forum-attachments-status.site-warning, #forum-attachments .site-warning { color: var(--accent-orange); }

.forum-flow-picker { width: 100%; }
.forum-flow-picker summary { cursor: pointer; padding: .5rem 0; }
[data-flow-choices] { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .5rem; max-height: 24rem; overflow-y: auto; }
[data-flow-choices] button { border-color: var(--forum-card-border); display: flex; flex-direction: column; align-items: start; text-align: start; }
.forum-attachment-thumbnail { outline: 1px solid var(--forum-card-border); border-radius: 8px; width: 5rem; height: auto; aspect-ratio: var(--flow-preview-aspect-ratio); object-fit: contain; }
.forum-attachment-detail { flex-basis: 100%; color: var(--secondary-text-color); font-size: .85rem; }
