/* Forum — Invision Community style layout */
.forum-page{--fm-box:#151a15;--fm-row:#262e25;--fm-edge:#333d31;max-width:1340px;min-height:70vh;margin:auto;padding:30px 32px 80px}
.forum-page .button{padding:11px 18px;gap:10px;font-size:13px;border-radius:7px}
.fm-loading{color:var(--muted)}
.fm-crumbs{margin-bottom:26px;padding:11px 16px;border:1px solid var(--fm-edge);border-radius:9px;background:#121712;font-size:13px}
.fm-crumbs ol{display:flex;flex-wrap:wrap;align-items:center;gap:6px 0;list-style:none;margin:0;padding:0}.fm-crumbs li{display:flex;align-items:center;min-width:0}.fm-crumbs li+li:before{content:'›';margin:0 10px;color:#5d6657}
.fm-crumbs a{color:#d8dccf}.fm-crumbs a:hover{color:var(--orange)}.fm-crumbs [aria-current]{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:420px}
.fm-header{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:24px}.fm-header>div:first-child{min-width:0}
.fm-header h1{font-family:Inter,Arial,sans-serif;font-size:clamp(26px,3vw,34px);font-weight:800;line-height:1.25;letter-spacing:-.02em;margin:0 0 6px;overflow-wrap:anywhere}.fm-header h1:focus{outline:none}
.fm-lead{max-width:680px;margin:0;font-size:15px;color:var(--muted)}.fm-actions{display:flex;flex-wrap:wrap;gap:10px;flex-shrink:0}
.fm-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:24px;align-items:start}
.fm-box{overflow:hidden;margin-bottom:24px;border:1px solid var(--fm-edge);border-radius:10px;background:var(--fm-box);box-shadow:0 8px 24px #0002}
.fm-box-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0;padding:13px 18px;border-bottom:1px solid #4a3a28;background:linear-gradient(90deg,#3b2a1b,#1f261e);font:700 15px/1.4 Inter,Arial,sans-serif;letter-spacing:0;color:#fff}
.fm-row{display:grid;grid-template-columns:auto minmax(0,1fr) 120px minmax(0,250px);gap:18px;align-items:center;padding:16px 18px;border-top:1px solid var(--fm-row);transition:background .15s}.fm-box-title+.fm-row{border-top:0}.fm-row:hover{background:#1a2019}
.fm-forum-icon{display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:#2a1f15;border:1px solid #6b4a2c;color:var(--orange)}.fm-forum-icon svg{width:22px;height:22px}
.fm-title{font-size:16px;font-weight:700;line-height:1.4;letter-spacing:-.005em;margin:0 0 3px;overflow-wrap:anywhere}.fm-title a:hover{color:var(--orange)}
.fm-desc{margin:0;font-size:13px;line-height:1.55;color:var(--muted)}
.fm-meta{margin:0;font-size:12px;line-height:1.5;color:var(--muted)}.fm-meta strong{color:#d8dccf;font-weight:600}.fm-meta a{color:#e8c9a6;font-weight:600}.fm-meta a:hover{color:var(--orange)}
.fm-stats{display:grid;gap:2px;text-align:right;font-size:13px;color:var(--muted)}.fm-stats strong{color:var(--text)}
.fm-last{display:flex;align-items:center;gap:10px;min-width:0;font-size:13px}.fm-last>div{min-width:0}.fm-last-title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;color:#e7e6df}.fm-last-title:hover{color:var(--orange)}.fm-last-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.fm-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover;background:#0f130f;border:1px solid #3b4436}.fm-avatar.small{width:24px;height:24px}.fm-avatar.starter{width:42px;height:42px}.fm-avatar.editor{width:48px;height:48px}
.fm-empty{padding:34px 24px;text-align:center;color:#c0c6b6}.fm-empty p{margin:0 auto 18px;max-width:520px}.fm-empty .button{margin:0 5px}
.fm-side .fm-box-title{font-size:14px}.fm-stat-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 18px;border-top:1px solid var(--fm-row);font-size:13px;color:var(--muted)}.fm-box-title+.fm-stat-row{border-top:0}.fm-stat-row strong{color:var(--text)}
.fm-who{display:flex;align-items:center;gap:8px;min-width:0}.fm-who strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fm-recent{display:flex;gap:12px;padding:13px 18px;border-top:1px solid var(--fm-row)}.fm-box-title+.fm-recent{border-top:0}.fm-recent>div{min-width:0}.fm-recent-title{display:block;font-size:14px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}.fm-recent-title:hover{color:var(--orange)}.fm-side-empty{padding:16px 18px;margin:0;font-size:13px;color:var(--muted)}
.fm-bar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin:0 0 16px}
.fm-pages{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 16px}.fm-bar .fm-pages{margin:0}
.fm-page{min-width:36px;height:34px;padding:0 11px;border:1px solid var(--fm-edge);border-radius:7px;background:#1a2019;color:#d8dccf;font-size:13px;font-weight:600;cursor:pointer}.fm-page:hover:not(:disabled){border-color:var(--orange);color:var(--orange)}.fm-page.active{background:var(--orange);border-color:var(--orange);color:#171813}.fm-page:disabled:not(.active){opacity:.45;cursor:default}
.fm-gap{padding:0 4px;color:var(--muted)}.fm-page-label{margin-left:6px;font-size:12px;color:var(--muted)}
.fm-topic-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-top:6px}.fm-topic-meta .fm-avatar{width:28px;height:28px}
.fm-posts{display:grid;gap:16px;margin-bottom:18px}
.fm-post{display:grid;grid-template-columns:190px minmax(0,1fr);overflow:hidden;border:1px solid var(--fm-edge);border-radius:10px;background:var(--fm-box)}
.fm-author{display:flex;flex-direction:column;align-items:center;padding:20px 14px;text-align:center;background:#10150f;border-right:1px solid var(--fm-row)}
.fm-author-name{max-width:100%;font-size:15px;line-height:1.35;overflow-wrap:anywhere}
.fm-group{margin:4px 0 14px;font-size:12px;font-weight:700;color:var(--muted)}.fm-group.staff{color:var(--orange)}
.fm-author-photo{width:96px;height:96px;border-radius:10px;object-fit:cover;background:#0f130f;border:2px solid #3b4436}.fm-post-count{margin-top:12px;font-size:12px;color:var(--muted)}
.fm-post-main{display:flex;flex-direction:column;min-width:0}
.fm-post-meta{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 20px;border-bottom:1px solid var(--fm-row);font-size:13px;color:var(--muted)}
.fm-badge{padding:3px 9px;border:1px solid #b67a48;border-radius:5px;background:#49301e;color:#ffd7ad;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.fm-body{flex:1;padding:20px;font-size:15px;line-height:1.8;color:#dde3d5;overflow-wrap:anywhere}.fm-body p{margin:0 0 14px;white-space:pre-wrap}.fm-body>:last-child{margin-bottom:0}
.fm-body blockquote{margin:0 0 14px;padding:12px 16px;border:1px solid #3a4234;border-left:3px solid var(--orange);border-radius:0 8px 8px 0;background:#1b2119;color:#c4cbbb;font-size:14px;white-space:pre-wrap}
.fm-body cite{display:block;margin-bottom:6px;font-size:13px;font-style:normal;font-weight:700;color:#e8c9a6;white-space:normal}
.fm-post-foot{display:flex;justify-content:flex-end;gap:8px;padding:10px 20px;border-top:1px solid var(--fm-row)}
.fm-action{padding:6px 13px;border:1px solid #3d4739;border-radius:6px;background:transparent;color:#cfd5c6;font-size:12px;font-weight:600;cursor:pointer}.fm-action:hover{border-color:var(--orange);color:var(--orange)}.fm-action.danger:hover{border-color:#d0806e;color:#f2a896}
.fm-back{font-size:13px;font-weight:600;color:#d8dccf}.fm-back:hover{color:var(--orange)}
.fm-editor{display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px;padding:20px}.fm-editor-fields{display:grid;gap:12px;min-width:0}
.fm-editor textarea,.fm-compose input,.fm-compose select,.fm-compose textarea{width:100%;max-width:100%;padding:12px 14px;border:1px solid #4b5940;border-radius:8px;background:#0f140e;color:#edf0e9;font:inherit;font-size:15px}
.fm-editor textarea,.fm-compose textarea{min-height:170px;line-height:1.7;resize:vertical}.fm-editor textarea:focus,.fm-compose :is(input,select,textarea):focus{outline:2px solid var(--orange);outline-offset:1px}
.fm-editor-bar{display:flex;justify-content:flex-end;align-items:center;gap:16px}.fm-status{flex:1;margin:0;font-size:13px;color:#efc185;overflow-wrap:anywhere}
.fm-compose{display:grid;gap:18px;padding:22px}.fm-field{display:grid;gap:8px;font-size:14px;font-weight:600;color:#d8dccf}.fm-compose textarea{min-height:260px}
@media(max-width:1000px){.fm-layout{grid-template-columns:1fr}.fm-row{grid-template-columns:auto minmax(0,1fr) 110px}.fm-row>.fm-last{grid-column:2/-1}}
@media(max-width:700px){.forum-page{padding:22px 16px 56px}.fm-header{flex-direction:column;align-items:flex-start}.fm-row{grid-template-columns:auto minmax(0,1fr);gap:8px 14px;padding:14px}.fm-row>.fm-stats{grid-column:2;display:flex;gap:14px;text-align:left}.fm-row>.fm-last{grid-column:2}.fm-forum-icon{width:40px;height:40px}
 .fm-post{grid-template-columns:1fr}.fm-author{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:12px;align-items:center;padding:12px 16px;text-align:left;border-right:0;border-bottom:1px solid var(--fm-row)}.fm-author-photo{grid-row:1/3;grid-column:1;width:44px;height:44px;border-width:1px}.fm-author-name{grid-column:2}.fm-group{grid-column:2;margin:0}.fm-post-count{display:none}
 .fm-post-meta,.fm-body,.fm-post-foot{padding-left:16px;padding-right:16px}.fm-editor{grid-template-columns:1fr;padding:16px}.fm-avatar.editor{display:none}.fm-compose{padding:16px}.fm-crumbs [aria-current]{max-width:200px}.fm-page-label{display:none}}
