.board-main{min-height:65vh;padding-top:65px;padding-bottom:90px}.board-main h1{font-size:30px;letter-spacing:-.05em;margin:4px 0}.board-intro{color:#888;font-size:12px}.board-layout{display:grid;grid-template-columns:220px 1fr;gap:25px;margin-top:26px}.board-layout nav,.board-content{border:1px solid #ece9e3;border-radius:10px;background:#fff;padding:20px}.board-layout nav a{display:block;padding:10px 12px;border-radius:6px;font-size:13px}.board-layout nav a[aria-current=page]{background:#f4efe5;color:#83653b;font-weight:700}.board-content h2{font-size:20px;margin:0 0 18px}.post-row{width:100%;background:none;border:0;border-bottom:1px solid #eee;text-align:left;padding:14px 6px;cursor:pointer;color:#333}.post-row:hover{background:#faf7f0}.post-row strong{display:block;font-size:13px}.post-row small{color:#888;font-size:10px}.post-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.9}.back{background:#f5f2ed;border:0;border-radius:6px;padding:8px 13px;cursor:pointer}.pager{display:flex;gap:14px;align-items:center;justify-content:center;margin-top:25px}.pager button{border:1px solid #ddd;background:white;border-radius:6px;padding:7px 15px}.pager button:disabled{opacity:.4}#board-status{font-size:12px;color:#8b785a;margin-top:15px}@media(max-width:700px){.board-main{padding-top:35px}.board-layout{grid-template-columns:1fr}.board-layout nav{display:flex;flex-wrap:wrap;gap:4px}.board-layout nav a{padding:7px 10px}}
.write-post{display:grid;gap:13px;margin-top:18px;border:1px solid #eee;border-radius:8px;padding:20px}.write-post[hidden],.start-write[hidden]{display:none}.write-post h3{margin:0;font-size:17px}.write-post label{display:grid;gap:5px;font-size:12px}.write-post input,.write-post textarea{width:100%;padding:11px;border:1px solid #ddd;border-radius:6px;background:white;color:#303436;font:inherit}.write-actions{display:flex;gap:9px}.write-actions button,.start-write{border:0;border-radius:6px;background:#153c6c;color:#fff;padding:10px 15px;cursor:pointer}.write-actions button:last-child{background:#f1ede6;color:#555}.start-write{margin-top:20px}

.post-controls{display:flex;gap:9px;flex-wrap:wrap;margin-top:22px}.post-controls>button{border:1px solid #dedbd5;background:#fff;border-radius:6px;padding:9px 15px;cursor:pointer}.post-controls>button:last-of-type{color:#a23636}.post-controls form{width:100%}

.comments{border-top:1px solid #eee;margin-top:30px;padding-top:20px}.comments h3{font-size:17px}.comment-item{border-bottom:1px solid #eee;padding:14px 0}.comment-item strong{font-size:12px}.comment-item small{display:block;color:#999;font-size:10px}.comment-item p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.comment-item button,.comments>button,.comment-form button{border:1px solid #dedbd5;border-radius:6px;background:#fff;padding:8px 12px;cursor:pointer}.comment-form{display:grid;gap:10px;margin-top:18px}.comment-form textarea{border:1px solid #ddd;border-radius:7px;padding:12px;background:#fff;color:#303436;font:inherit;width:100%}.comment-form button{background:#153c6c;color:#fff;justify-self:start}

.report-button{border:1px solid #dedbd5;background:#fff;color:#777;border-radius:6px;padding:7px 11px;font-size:11px;cursor:pointer;margin-top:10px}.report-actions{display:flex;gap:10px;flex-wrap:wrap}.report-actions button{border:1px solid #ddd;border-radius:6px;padding:8px 13px;background:#fff;cursor:pointer}

/* Public board search and share controls */
#search-posts{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:0 0 18px;padding:16px;border:1px solid #e9e5dd;border-radius:12px;background:linear-gradient(135deg,#fffdf9,#f9f7f2)}
#search-posts label{display:flex;flex-direction:column;gap:6px;color:#6c6962;font-size:11px;font-weight:700}
#search-posts label:has(#post-query){flex:1 1 190px;min-width:0}
#search-posts input,#search-posts select{min-height:40px;width:100%;padding:8px 11px;border:1px solid #ddd8cd;border-radius:8px;background:#fff;color:#303436;font:inherit;font-size:12px}
#search-posts input:focus-visible,#search-posts select:focus-visible{outline:2px solid #c9a96b;outline-offset:2px}
#search-posts button,.share-post{min-height:40px;padding:9px 15px;border:1px solid #c9a96b;border-radius:8px;background:#303436;color:#fff;font-size:12px;font-weight:700;cursor:pointer;transition:background .18s ease,transform .18s ease}
#search-posts button:hover,.share-post:hover{background:#4b5051;transform:translateY(-1px)}
#search-posts #clear-post-search{background:#fff;color:#70634e;border-color:#ddd8cd}
#search-posts #clear-post-search:hover{background:#f3eee5}
.share-post{margin-left:8px;background:#f9f5ed;color:#78613d}
.share-post:hover{background:#f0e5d0}
.share-post:disabled{opacity:.55;cursor:wait;transform:none}
@media(max-width:600px){#search-posts{padding:12px;gap:8px}#search-posts label:has(#post-query){flex-basis:100%}#search-posts button{flex:1 1 100px}.share-post{margin-left:6px}}
@media(prefers-reduced-motion:reduce){#search-posts button,.share-post{transition:none}#search-posts button:hover,.share-post:hover{transform:none}}

#post-pager[hidden]{display:none}

/* SAERO ENGINE community: CS2KR-inspired clean card layout */
.board-main{padding-top:22px!important;padding-bottom:45px!important;max-width:1400px!important}
.board-main>h1{font-size:clamp(24px,2.5vw,34px)!important;font-weight:850!important;color:inherit!important}
.board-intro{margin:4px 0 18px;color:#7c899a;font-size:13px}
.board-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 14px}
#board-list{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
#board-list a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 17px;border:1px solid #d7e0eb;border-radius:30px;background:#fff;color:#20252d!important;text-decoration:none;font-size:13px;font-weight:650}
#board-list a[aria-current=page]{background:#ff8400!important;color:#fff!important;border-color:#ff8400!important}
.board-layout{display:block!important;margin-top:0!important}
.board-content{padding:0!important;border:0!important;background:transparent!important}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
#search-posts{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:8px!important;padding:0!important;border:0!important;background:transparent!important;margin:0 0 14px!important}
#search-posts label{display:flex!important;flex-direction:row!important;align-items:center!important;gap:0!important;min-width:0!important}
#search-posts label:has(#post-query){flex:1 1 auto!important}
#search-posts label:has(#post-query){font-size:0!important}
#search-posts label:has(#post-scope),#search-posts label:has(#post-sort),#search-posts label:has(#post-size){font-size:0!important}
#search-posts input,#search-posts select{min-height:44px!important;border:1px solid #d7e0eb!important;border-radius:9px!important;background:#fff!important;color:#20252d!important;font-size:13px!important}
#search-posts button{min-height:44px!important;border:1px solid #d7e0eb!important;background:#fff!important;color:#20252d!important;border-radius:9px!important}
#post-list{display:grid;gap:9px}
.post-row{display:flex!important;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:78px;padding:18px 20px!important;background:#fff!important;border:1px solid #e2e8f0!important;border-radius:14px!important;box-shadow:0 3px 12px rgba(28,41,58,.045);color:#20252d!important}
.post-row strong{font-size:14px!important;font-weight:800!important}
.post-row small{font-size:11px!important;color:#7c899a!important;text-align:right}
.post-row:hover{border-color:#ffb367!important;background:#fffaf5!important}
.start-write{flex:none;display:inline-flex!important;align-items:center;justify-content:center;min-height:44px;padding:10px 19px!important;margin:0!important;background:#ff8400!important;color:#fff!important;border:0!important;border-radius:10px!important;font-size:14px;font-weight:800}
.start-write[hidden]{display:none!important}
#board-status{font-size:12px;color:#8793a4;margin:10px 0}
.write-post{max-width:820px;margin:16px auto 0;padding:22px!important;gap:12px!important;background:#fff!important;border:1px solid #e0e7ef!important;border-radius:16px!important;box-shadow:0 8px 26px rgba(28,41,58,.05)}
.write-post h3{font-size:23px!important;font-weight:850}
.write-post label{font-size:13px!important;font-weight:800!important;color:#263245!important}
.write-post input,.write-post textarea{border:1px solid #d6e0ec!important;border-radius:10px!important;padding:13px!important;background:#fff!important;color:#20252d!important;font-size:14px!important}
.write-post textarea{min-height:210px;line-height:1.8;resize:vertical}
.board-editor-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:10px;border:1px solid #d6e0ec;border-radius:10px;background:#f6f8fc}
.board-editor-toolbar button,.board-editor-toolbar select{min-height:34px;padding:5px 10px;border:1px solid #d6e0ec;border-radius:8px;background:transparent;color:#263245;cursor:pointer}
.board-editor-toolbar button:hover{background:#fff}
.board-editor-toolbar input[type=color]{width:36px!important;height:34px!important;min-height:0!important;padding:3px!important;cursor:pointer}
.editor-color-label,.editor-hint{font-size:12px;color:#8793a4}
.write-actions button[type=submit]{width:100%;min-height:48px;border:0;border-radius:10px;background:#ff8400!important;color:#fff!important;font-weight:850}
.write-actions button[type=button]{min-height:48px}
@media(max-width:760px){.board-toolbar{align-items:flex-start;flex-direction:column}#board-list a{min-height:36px;padding:7px 12px}#search-posts{flex-wrap:wrap!important}#search-posts label:has(#post-query){flex-basis:100%!important;order:1}#search-posts label:has(#post-scope){flex:1!important;order:0}#search-posts label:has(#post-sort),#search-posts label:has(#post-size){flex:1!important;order:0}#search-posts button{order:2;flex:1!important}.post-row{align-items:flex-start;flex-direction:column}.post-row small{text-align:left}.write-post{padding:15px!important}}

/* Text formatting is rendered from safe DOM nodes, never raw post HTML. */
.post-body .post-text-large{font-size:1.28em;font-weight:650}
.post-body .post-text-small{font-size:.82em}
.post-body .post-text-normal{font-size:1em}
.post-body strong{font-weight:800}
.post-body u{text-decoration:underline;text-underline-offset:2px}
.post-body s{text-decoration:line-through}

/* Live composer preview reuses the same safe post-body DOM renderer. */
.board-editor-preview{border:1px solid #d6e0ec;border-radius:10px;overflow:hidden;background:#fff}
.board-editor-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 13px;background:#f6f8fc;border-bottom:1px solid #d6e0ec;color:#263245;font-size:12px}
.board-editor-preview-heading span{color:#8793a4;font-weight:400}
.board-editor-preview-body{min-height:72px;padding:14px 15px;overflow-wrap:anywhere;color:#263245}
.board-editor-preview-body .post-body{margin:0;white-space:pre-wrap;line-height:1.8}
.editor-preview-empty{margin:0;color:#8793a4;font-size:13px}
@media(max-width:600px){.board-editor-preview-heading{align-items:flex-start;flex-direction:column}}

/* Quote blocks in published posts and live editor preview. */
.post-body .post-line{min-height:1.65em;white-space:pre-wrap;overflow-wrap:anywhere}
.post-body .post-quote{
 margin:12px 0;
 padding:12px 16px;
 border-inline-start:3px solid #ff8400;
 border-radius:0 9px 9px 0;
 background:rgba(255,132,0,.075);
 color:inherit;
 font-size:.96em;
 line-height:1.8;
 overflow-wrap:anywhere;
}
.post-body .post-quote>div{white-space:pre-wrap;min-height:1.6em}
.se-v7-app[data-theme="dark"] .post-body .post-quote{background:rgba(255,132,0,.11)}
@media(max-width:600px){.post-body .post-quote{margin:9px 0;padding:10px 12px}}

/* Composer stays focused; the list search returns after cancel or save. */
#search-posts[hidden]{display:none!important}
.write-board-context{margin:-4px 0 4px;color:#7c899a;font-size:12px}
.write-board-context strong{color:#ff8400}

/* Board listing and detail presentation, shared across light/dark shell. */
#post-list .post-row{
 display:flex!important;flex-direction:row!important;
 align-items:center!important;justify-content:space-between!important;
 gap:16px!important;text-align:left!important;
}
.post-row-title{display:block;min-width:0;flex:1 1 auto;overflow-wrap:anywhere}
.post-row-meta{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap;flex:0 1 auto;font-size:11px;color:#778395;text-align:right}
.post-row-author{font-weight:700;color:#566478}
.post-row-date,.post-row-views,.post-row-comments{white-space:nowrap}
#post-detail{padding:22px 24px;border:1px solid #e2e8f0;border-radius:16px;background:#fff;color:#20252d}
.post-detail-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}
.post-detail-header{padding-bottom:20px;border-bottom:1px solid #e4e9f0;margin-bottom:24px}
.post-detail-header h3{font-size:clamp(20px,2vw,28px);font-weight:850;line-height:1.4;margin:0 0 12px;overflow-wrap:anywhere}
.post-detail-meta{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;color:#7c899a}
#post-detail>.post-body{min-height:160px;font-size:14px;line-height:1.9}
#post-detail .comments{margin-top:30px}
.se-v7-app[data-theme="dark"] #post-detail{background:rgba(17,24,35,.88);border-color:rgba(255,255,255,.18);color:#f3f4f6}
.se-v7-app[data-theme="dark"] .post-detail-header{border-color:rgba(255,255,255,.18)}
.se-v7-app[data-theme="dark"] .post-row-meta,.se-v7-app[data-theme="dark"] .post-row-author{color:#66758a}
@media(max-width:760px){
 #post-list .post-row{flex-direction:column!important;align-items:stretch!important;gap:9px!important}
 .post-row-meta{justify-content:flex-start;text-align:left}
 #post-detail{padding:16px}
 .post-detail-nav{margin-bottom:16px}
}

/* Composer usability: readable counter, keyboard guidance and focus states. */
.editor-assist{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
#editor-count{font-size:12px;font-variant-numeric:tabular-nums;color:#7c899a;white-space:nowrap}
.board-editor-toolbar button:focus-visible,.board-editor-toolbar select:focus-visible,
.write-post textarea:focus-visible,.write-post input:focus-visible{
 outline:2px solid #ff8400;outline-offset:2px;
}
.se-v7-app[data-theme="dark"] .editor-assist,#editor-count{color:#8492a6}
@media(max-width:600px){.editor-assist{align-items:flex-start;flex-direction:column}}

/* YouTube embeds are opt-in and preserve 16:9 layout on all screens. */
.post-youtube{position:relative;width:100%;max-width:800px;aspect-ratio:16/9;margin:14px 0;overflow:hidden;border-radius:12px;background:#111827}
.post-youtube iframe{display:block;width:100%;height:100%;border:0}
.post-youtube-load{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border:1px solid rgba(255,255,255,.15);border-radius:12px;background:linear-gradient(135deg,#202936,#111827);color:#fff;font-size:15px;font-weight:800;cursor:pointer}
.post-youtube-load:hover,.post-youtube-load:focus-visible{background:linear-gradient(135deg,#313d50,#171f2e);outline:2px solid #ff8400;outline-offset:-3px}
@media(max-width:600px){.post-youtube{border-radius:8px;margin:10px 0}}

/* Private image-upload staging UI; uploads are not yet post attachments. */
.board-image-upload-status:empty,.board-image-previews:empty{display:none}
.board-image-upload-status{margin:10px 0;font-size:12px;color:#8b651b;line-height:1.6}
.board-image-previews{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}
.board-image-preview-card{width:min(240px,100%);padding:9px;border:1px solid rgba(130,145,160,.35);border-radius:12px;background:rgba(140,150,160,.07)}
.board-image-preview-card img{display:block;width:100%;height:135px;object-fit:contain;border-radius:8px;background:rgba(0,0,0,.08)}
.board-image-preview-card small{display:block;margin-top:8px;font-size:11px;line-height:1.5;color:inherit;opacity:.75}

.board-image-remove{margin-top:8px;width:100%;padding:8px 10px;border:1px solid rgba(180,80,80,.4);border-radius:8px;background:transparent;color:inherit;font-size:12px;cursor:pointer}
.board-image-remove:hover{background:rgba(180,80,80,.12)}
.board-image-remove:disabled{opacity:.55;cursor:wait}

.post-image-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px;margin:20px 0}
.post-image-gallery img{display:block;width:100%;max-height:540px;object-fit:contain;border-radius:12px;border:1px solid rgba(130,145,160,.25);background:rgba(130,145,160,.07)}

.post-image-tile{min-width:0;display:flex;flex-direction:column;gap:8px}
.post-image-tile .board-image-remove{margin-top:0}

.board-edit-images{display:flex;flex-direction:column;gap:10px;padding:14px;margin:12px 0;border:1px solid rgba(130,145,160,.25);border-radius:12px}
.board-edit-images input[type=file]{max-width:100%;font:inherit}
.board-edit-images button{align-self:flex-start;padding:9px 14px;border-radius:9px;cursor:pointer}
.board-edit-images p{margin:0;font-size:12px;opacity:.8}
