/* HUBNRO community — compact discussion lists, shared reading and composing surfaces. */
:root {
    --fm-bg: transparent; --fm-card: #fff; --fm-card-hover: #f8fbfd; --fm-card-glass: #fff;
    --fm-soft: #f4f7fa; --fm-soft-alt: #edf2f7; --fm-border: #dfe7ee; --fm-border-hover: #87b5ca;
    --fm-text: #20364b; --fm-text-secondary: #465e72; --fm-text-muted: #556b7d;
    --fm-primary: #187794; --fm-primary-hover: #105f7a; --fm-primary-soft: #eaf5f8; --fm-primary-text: #fff;
    --fm-accent-gold: #996411; --fm-accent-gold-soft: #fff4da; --fm-accent-emerald: #117a61;
    --fm-accent-emerald-soft: #e8f6f0; --fm-accent-red: #bc3943; --fm-accent-red-soft: #fff0f1;
    --fm-shadow-sm: 0 2px 8px #19384e04; --fm-shadow: 0 5px 20px #19384e05;
    --fm-radius: 14px; --fm-radius-sm: 9px;
}
[data-theme="dark"] {
    --fm-card: #17212c; --fm-card-hover: #1c2936; --fm-card-glass: #17212c;
    --fm-soft: #1e2c3a; --fm-soft-alt: #263747; --fm-border: #314251; --fm-border-hover: #51859a;
    --fm-text: #e6eef5; --fm-text-secondary: #b3c4d1; --fm-text-muted: #a0b2c3;
    --fm-primary: #70cde3; --fm-primary-hover: #a1e4ef; --fm-primary-soft: #203c49; --fm-primary-text: #10232c;
    --fm-accent-gold: #ebc36a; --fm-accent-gold-soft: #3a3325; --fm-accent-emerald: #81d8b4;
    --fm-accent-emerald-soft: #1d3935; --fm-accent-red: #ffa2aa; --fm-accent-red-soft: #3c2934;
    --fm-shadow: 0 4px 18px #00000010;
}
.forum-page { max-width:1160px; margin: 0 auto; padding: 8px 0 32px; color: var(--fm-text); font: inherit; font-size:16px; line-height:1.65; }
.fm-reading-page { max-width:980px; }
.forum-page *, .forum-page *::before, .forum-page *::after { box-sizing: border-box; }
.forum-page a { color: inherit; text-decoration: none; }
.forum-page a:hover { color: var(--fm-primary); }
.forum-page button, .forum-page input, .forum-page select, .forum-page textarea { font: inherit; }
.forum-page :is(a,button,input,select,textarea):focus-visible { outline: 3px solid var(--fm-primary); outline-offset: 3px; }
.forum-page img { max-width: 100%; }
.fm-bread { display:flex; align-items:center; flex-wrap:wrap; gap:9px; margin-bottom:18px; color:var(--fm-text-muted); font-size:14px; }
.fm-bread a { display:inline-flex; gap:6px; align-items:center; }
.fm-bread .fa-chevron-right { font-size:8px; }
.fm-bread span:last-child { min-width:0; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fm-eyebrow { display:block; color:var(--fm-primary); font-size:13px; font-weight:750; letter-spacing:1.2px; margin-bottom:5px; }
.fm-community-header { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.fm-community-header h1 { margin:0; color:var(--fm-text); font-size:34px; line-height:1.25; font-weight:780; letter-spacing:-.8px; }
.fm-community-header p { margin:8px 0 0; color:var(--fm-text-secondary); font-size:17px; }
.fm-header-actions { display:flex; gap:8px; flex-shrink:0; }
.fm-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:46px; padding:11px 17px; border:1px solid transparent; border-radius:9px; cursor:pointer; font-size:16px; font-weight:650; line-height:1.35; text-align:center; transition:background .15s,border-color .15s; }
:is(.forum-page,.hn-admin-forum-page) .fm-btn-primary { color:var(--fm-primary-text); background:var(--fm-primary); border-color:var(--fm-primary); box-shadow:0 3px 8px #16779512; }
:is(.forum-page,.hn-admin-forum-page) .fm-btn-primary:hover { background:var(--fm-primary-hover); border-color:var(--fm-primary-hover); color:var(--fm-primary-text); }
.fm-btn-secondary { background:var(--fm-card); color:var(--fm-text-secondary); border-color:var(--fm-border); }
.fm-btn-secondary:hover { background:var(--fm-soft); border-color:var(--fm-border-hover); }
.fm-btn:disabled { opacity:.6; cursor:wait; }
.fm-community-summary { display:flex; align-items:center; flex-wrap:wrap; gap:10px 22px; margin:16px 0 22px; padding-bottom:18px; border-bottom:1px solid var(--fm-border); color:var(--fm-text-secondary); font-size:15px; }
.fm-community-summary span { display:flex; align-items:center; gap:5px; }
.fm-community-summary strong { color:var(--fm-text); font-weight:650; font-variant-numeric:tabular-nums;  font-size:17px; }
.fm-community-summary i { margin-right:3px; color:var(--fm-primary); }
.fm-layout-grid { display:grid; grid-template-columns:minmax(0,1fr) 316px; gap:24px; align-items:start; }
.fm-main-column, .fm-side-column { min-width:0; }
.fm-side-column { display:flex; flex-direction:column; gap:18px; }
.fm-community-search { display:flex; align-items:center; gap:12px; padding:6px 7px 6px 16px; background:var(--fm-card); border:1px solid var(--fm-border); border-radius:13px; margin:0 0 16px; }
.fm-community-search > i { color:var(--fm-text-muted); font-size:15px; }
.fm-community-search input { min-width:0; flex:1; background:transparent; border:0; color:var(--fm-text); font-size:16px; padding:10px 0; outline:none; }
.fm-community-search:focus-within { border-color:var(--fm-primary); box-shadow:0 0 0 2px var(--fm-primary-soft); }
.fm-community-search input:focus-visible { outline:0; }
.fm-community-search input::placeholder { color:var(--fm-text-muted); }
.fm-community-search .fm-btn { padding:10px 14px; }
.fm-discussions { border:1px solid var(--fm-border); border-radius:var(--fm-radius); overflow:hidden; background:var(--fm-card); box-shadow:0 6px 24px #19384e08; }
.fm-discussion-tabs { display:grid; gap:6px; padding:7px; border-bottom:1px solid var(--fm-border); background:var(--fm-soft); overflow-x:auto; overflow-y:hidden; scrollbar-width:thin;  grid-template-columns:repeat(4,minmax(0,1fr));  overflow:visible; }
.fm-discussion-tabs a { display:flex; align-items:center; min-height:46px; padding:10px 6px; border-bottom:2px solid transparent; margin-bottom:0; flex-shrink:0; font-size:15px; font-weight:650; color:var(--fm-text-secondary);  min-width:0;  justify-content:center;  text-align:center;  border:1px solid transparent;  border-radius:8px;  line-height:1.4; }
.fm-discussion-tabs a.active { color:var(--fm-primary); border-bottom-color:var(--fm-primary);  background:var(--fm-card);  border-color:var(--fm-border);  box-shadow:0 2px 5px #19384e09; }
.fm-discussion-tabs a:focus-visible { outline-offset:-4px; }
.fm-discussion-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:17px 22px;  background:var(--fm-card); }
.fm-discussion-heading h2 { margin:0; font-size:20px; font-weight:700; }
.fm-discussion-heading > span { color:var(--fm-text-muted); font-size:14px; }
.fm-feed-row { display:grid; grid-template-columns:46px minmax(0,1fr) 150px; gap:16px; align-items:start; border-top:1px solid var(--fm-border); padding:22px; transition:background .15s; }
.fm-feed-row:hover { background:var(--fm-card-hover); }
.fm-initial-avatar { width:46px; height:46px; display:grid; place-items:center; border-radius:12px; font-size:19px; font-weight:700; align-self:start; margin-top:3px; }
.fm-tone-0 { background:var(--fm-primary-soft); color:var(--fm-primary); }
.fm-tone-1 { background:var(--fm-accent-emerald-soft); color:var(--fm-accent-emerald); }
.fm-tone-2 { background:var(--fm-accent-gold-soft); color:var(--fm-accent-gold); }
.fm-tone-3 { background:var(--fm-soft-alt); color:var(--fm-text-secondary); }
.fm-feed-content { min-width:0; }
.fm-feed-flags { display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; font-size:14px; line-height:1.5; margin-bottom:8px; }
.forum-page .fm-feed-category { color:var(--fm-primary); font-weight:600; }
.fm-feed-pin { display:inline-flex; align-items:center; gap:4px; color:var(--fm-text-muted); }
.fm-feed-content h3 { font-size:20px; font-weight:700; line-height:1.45; margin:0 0 9px; overflow-wrap:anywhere; }
.fm-feed-meta { display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; font-size:14px; color:var(--fm-text-muted); }
.fm-feed-meta > span:first-child { color:var(--fm-text-secondary); overflow-wrap:anywhere; }
.fm-feed-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px;  align-self:center; }
.fm-feed-count { text-align:center; color:var(--fm-text-secondary); font-size:14px; font-variant-numeric:tabular-nums;  display:flex;  flex-direction:column;  gap:2px;  min-width:0; }
.fm-feed-count strong { font-weight:650;  font-size:20px;  color:var(--fm-text); }
.fm-feed-count > span { display:block;  font-size:13px;  white-space:nowrap; }
.fm-start-note { display:flex; gap:12px; margin:20px 0 0; padding:16px 18px; border:1px solid var(--fm-border); border-radius:12px; color:var(--fm-text-secondary);  background:var(--fm-soft); }
.fm-start-note > i { margin-top:4px; color:var(--fm-primary); font-size:19px; }
.fm-start-note strong { display:block; color:var(--fm-text); font-weight:650; font-size:16px; }
.fm-start-note span { display:block; font-size:15px; line-height:1.65; margin-top:3px; }
.fm-side-widget { padding:20px; background:var(--fm-card); border:1px solid var(--fm-border); border-radius:var(--fm-radius); }
.fm-side-widget-head { display:flex; align-items:center; gap:8px; justify-content:space-between; margin-bottom:14px; }
.fm-side-widget-head :is(h2,h3) { margin:0; font-size:18px; font-weight:700; line-height:1.5; }
.fm-side-widget-head h2 i { color:var(--fm-accent-emerald); margin-right:4px; }
.fm-side-widget-head > span { font-size:14px; color:var(--fm-text-muted); border:1px solid var(--fm-border); padding:1px 7px; border-radius:6px; }
.fm-category-nav { display:flex; flex-direction:column; gap:3px; margin:0 -7px -5px; }
.fm-category-nav a { display:flex; align-items:center; gap:10px; padding:10px 7px; border-radius:8px; font-size:16px; font-weight:600; line-height:1.45; min-height:60px; }
.fm-category-nav a:hover { background:var(--fm-soft); }
.fm-category-nav a > span:nth-child(2) { flex:1; min-width:0; }
.fm-category-nav small { font-size:14px; color:var(--fm-text-muted); font-weight:500;  min-width:23px;  text-align:center;  background:var(--fm-soft);  border-radius:6px; }
.fm-nav-icon { display:grid; place-items:center; width:34px; height:36px; flex:0 0 auto; border-radius:8px; font-size:16px; }
.fm-rules-list { display:flex; flex-direction:column; gap:12px; padding:0; margin:0; list-style:none; }
.fm-rules-list li { display:flex; align-items:flex-start; gap:9px; font-size:15px; line-height:1.65; color:var(--fm-text-secondary); }
.fm-rules-list i { color:var(--fm-accent-emerald); font-size:12px; margin-top:5px; flex-shrink:0; }
.forum-page .fm-rules-link { display:flex; align-items:center; gap:8px; margin-top:14px; padding-top:13px; border-top:1px solid var(--fm-border); font-size:15px; color:var(--fm-primary);  min-height:44px; }
.fm-rules-link i { font-size:12px; }
.fm-help-link { display:flex; align-items:center; gap:10px; padding:0 8px; min-height:50px; }
.fm-help-link > span:nth-child(2) { flex:1; }
.fm-help-link strong { display:block; font-size:15px; font-weight:600; }
.fm-help-link small { display:block; font-size:14px; color:var(--fm-text-muted); margin-top:3px; }
.fm-help-link > i { font-size:14px; color:var(--fm-text-muted); }
.fm-directory-row { display:flex; align-items:center; gap:16px; padding:20px; border-top:1px solid var(--fm-border); }
.fm-directory-row:hover { background:var(--fm-card-hover); }
.fm-directory-icon { width:42px; height:42px; border-radius:12px; display:grid; place-items:center; flex-shrink:0; font-size:17px; }
.fm-directory-info { display:flex; flex-direction:column; min-width:0; flex:1; }
.fm-directory-info strong { font-size:19px; font-weight:650; }
.fm-directory-info > span { font-size:16px; line-height:1.65; color:var(--fm-text-secondary); margin-top:4px; }
.fm-directory-info small { font-size:14px; color:var(--fm-text-muted); margin-top:6px; }
.fm-directory-arrow { font-size:14px; color:var(--fm-text-muted); }
/* Shared summary components also used by the moderation screen. */
.fm-stats-overview { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.fm-stat-box { display:flex; align-items:center; gap:12px; padding:18px; background:var(--fm-card); border:1px solid var(--fm-border); border-radius:12px; }
.fm-stat-icon { width:40px; height:40px; flex-shrink:0; display:grid; place-items:center; border-radius:10px; font-size:17px; }
.fm-stat-info { display:flex; flex-direction:column; min-width:0; }
.fm-stat-num { font-size:23px; line-height:1.25; font-weight:700; color:var(--fm-text); font-variant-numeric:tabular-nums; }
.fm-stat-label { font-size:14px; margin-top:4px; color:var(--fm-text-secondary); }
@media (max-width:900px) { .fm-stats-overview { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:420px) { .fm-stat-box { padding:12px; gap:8px; } .fm-stat-icon { width:30px; height:30px; font-size:14px; } }
/* Category pages and their discussion rows. */
.fm-cat-hero { display:flex; justify-content:space-between; align-items:center; gap:22px; margin:0 0 24px; padding:20px 0; border-bottom:1px solid var(--fm-border); }
.fm-cat-hero-left { display:flex; align-items:center; gap:15px; min-width:0; }
.fm-cat-icon { width:48px; height:48px; border-radius:13px; color:#fff; display:grid; place-items:center; flex-shrink:0; font-size:21px; }
.fm-cat-hero-text { min-width:0; }
.fm-cat-hero-title { font-size:clamp(22px,2.4vw,28px); font-weight:750; letter-spacing:-.5px; line-height:1.3; margin:0; }
.fm-cat-hero-desc { color:var(--fm-text-secondary); font-size:16px; line-height:1.65; margin:7px 0 0; max-width:620px; }
.fm-cat-hero-actions { display:flex; flex-shrink:0; flex-wrap:wrap; gap:8px; }
.fm-cat-stats { display:flex; flex-wrap:wrap; gap:14px; font-size:14px; color:var(--fm-text-secondary); }
.fm-stat-chip { display:inline-flex; align-items:center; gap:5px; }
.fm-filter-bar { display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:16px; }
.fm-filter-tabs { display:flex; gap:4px; max-width:100%; overflow:auto; scrollbar-width:thin; }
.fm-filter-tab { display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:9px 12px; border-radius:8px; white-space:nowrap; font-size:15px; font-weight:600; }
.fm-filter-tab.active { color:var(--fm-primary); background:var(--fm-primary-soft); }
.fm-filter-tab:hover { background:var(--fm-soft); }
.fm-filter-search { min-width:0; }
.fm-filter-search-box { display:flex; align-items:center; gap:9px; border:1px solid var(--fm-border); border-radius:9px; background:var(--fm-card); padding:0 12px; min-height:44px; }
.fm-filter-search-box > i { color:var(--fm-text-muted); font-size:14px; }
.fm-filter-search-box input { width:100%; min-width:0; padding:10px 0; font-size:16px; border:0; background:transparent; color:var(--fm-text); }
.fm-search-clear { display:grid; place-items:center; min-width:32px; min-height:40px; }
.fm-search-notice { display:flex; gap:10px; justify-content:space-between; flex-wrap:wrap; background:var(--fm-primary-soft); padding:12px 18px; font-size:15px; overflow-wrap:anywhere; }
.fm-search-notice a { color:var(--fm-primary); font-weight:600; }
.fm-topics-list { background:var(--fm-card); border:1px solid var(--fm-border); border-radius:var(--fm-radius); overflow:hidden; }
.fm-topic-item { display:flex; align-items:center; gap:15px; padding:20px; border-bottom:1px solid var(--fm-border); }
.fm-topic-item:last-child { border-bottom:0; }
.fm-topic-item:hover { background:var(--fm-card-hover); }
.fm-topic-item.pinned { box-shadow:inset 3px 0 var(--fm-primary); }
.fm-topic-avatar { width:38px; height:38px; border-radius:11px; overflow:hidden; flex-shrink:0; background:var(--fm-soft); }
.fm-topic-avatar img { width:100%; height:100%; object-fit:cover; }
.fm-topic-content { min-width:0; flex:1; }
.fm-topic-title-row { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
.fm-topic-title-link { min-width:0; }
.fm-topic-title { font-size:20px; line-height:1.45; font-weight:700; overflow-wrap:anywhere; }
.fm-topic-meta { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:7px; color:var(--fm-text-muted); font-size:14px; }
.fm-topic-author { display:inline-flex; flex-wrap:wrap; gap:5px; align-items:center; overflow-wrap:anywhere; }
.fm-topic-author strong { font-weight:550; }
.fm-topic-counts { display:flex; gap:16px; font-size:14px; color:var(--fm-text-muted); }
.fm-topic-count-pill { display:inline-flex; align-items:center; gap:5px; font-variant-numeric:tabular-nums; }
.fm-topic-admin-tools { display:flex; gap:3px; flex-wrap:wrap; }
.fm-badge, .fm-badge-admin, .fm-author-pill { display:inline-flex; align-items:center; gap:4px; padding:2px 6px; border-radius:5px; font-size:12px; line-height:1.5; font-weight:650; vertical-align:middle; }
.fm-badge-pinned { color:var(--fm-accent-gold); background:var(--fm-accent-gold-soft); }
.fm-badge-lock { color:var(--fm-text-secondary); background:var(--fm-soft-alt); }
.fm-badge-new, .fm-author-pill { color:var(--fm-accent-emerald); background:var(--fm-accent-emerald-soft); }
.fm-badge-admin { color:var(--fm-primary); background:var(--fm-primary-soft); }
/* Topic reading, replies and writing: consistent, restrained surfaces. */
.fm-detail-header { padding:12px 0 22px; margin-bottom:20px; border-bottom:1px solid var(--fm-border); }
.fm-detail-top-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.fm-cat-badge-link { display:inline-flex; align-items:center; gap:7px; border:1px solid var(--fm-border); background:var(--fm-card); padding:6px 10px; font-size:14px; border-radius:7px; }
.fm-admin-action-toolbar { display:flex; gap:5px; }
.fm-detail-title { margin:15px 0 12px; font-size:clamp(23px,2.8vw,32px); line-height:1.35; letter-spacing:-.6px; font-weight:750; overflow-wrap:anywhere; }
.fm-detail-meta { display:flex; align-items:center; flex-wrap:wrap; gap:8px 16px; color:var(--fm-text-muted); font-size:14px; }
.fm-detail-meta > span { display:inline-flex; align-items:center; flex-wrap:wrap; gap:5px; }
.fm-detail-meta strong { font-weight:600; }
.fm-post { background:var(--fm-card); border:1px solid var(--fm-border); border-radius:var(--fm-radius); overflow:hidden; }
.fm-post.original { margin-bottom:26px; }
.fm-post-header { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; padding:17px 22px; border-bottom:1px solid var(--fm-border); }
.fm-post-user { display:flex; gap:11px; align-items:center; min-width:0; }
.fm-post-user-info { min-width:0; }
.fm-post-name { display:flex; align-items:center; flex-wrap:wrap; gap:6px; color:var(--fm-text); font-weight:650; font-size:16px; overflow-wrap:anywhere; }
.fm-post-role { display:block; margin-top:4px; color:var(--fm-text-muted); font-size:14px; }
.fm-post-actions-top, .fm-post-header-right { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.fm-action-btn-pill, .fm-share-btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:44px; padding:7px 11px; border:1px solid var(--fm-border); border-radius:8px; background:var(--fm-card); color:var(--fm-text-secondary); font-size:15px; cursor:pointer; }
.fm-action-btn-pill:hover, .fm-share-btn:hover { background:var(--fm-soft); }
.fm-action-btn-pill.primary { color:var(--fm-primary); background:var(--fm-primary-soft); border-color:transparent; }
.fm-reply-index { color:var(--fm-text-muted); font-size:14px; }
.fm-post-body { padding:24px; font-size:18px; line-height:1.8; color:var(--fm-text); overflow-wrap:anywhere; }
.fm-post-body p { margin:0 0 16px; }
.fm-post-body p:last-child { margin-bottom:0; }
.fm-post-body img { height:auto; border-radius:8px; }
.fm-post-footer { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; padding:13px 22px; border-top:1px solid var(--fm-border); }
.fm-post-tags { display:flex; flex-wrap:wrap; gap:8px; }
.fm-tag-chip { font-size:14px; color:var(--fm-text-secondary); padding:3px 7px; border-radius:5px; background:var(--fm-soft); }
.fm-code-wrapper { border:1px solid var(--fm-border); border-radius:9px; overflow:hidden; margin:14px 0; }
.fm-code-header { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 13px; background:var(--fm-soft); color:var(--fm-text-secondary); font-size:14px; }
.fm-code-copy-btn { background:transparent; border:0; color:var(--fm-primary); min-height:32px; cursor:pointer; }
.fm-code-wrapper pre { margin:0; padding:16px; overflow:auto; background:#152330; color:#e5f1f8; }
.fm-code-wrapper code { font:15px/1.75 ui-monospace,SFMono-Regular,monospace; white-space:pre; }
.fm-code-inline { color:var(--fm-primary); background:var(--fm-soft); padding:2px 5px; border-radius:4px; font: .9em ui-monospace,monospace; }
.fm-post-body blockquote { margin:15px 0; padding:12px 16px; border-left:3px solid var(--fm-primary); background:var(--fm-primary-soft); color:var(--fm-text-secondary); }
.fm-yt-embed { aspect-ratio:16/9; margin:15px 0; }
.fm-yt-embed iframe { width:100%; height:100%; border:0; border-radius:10px; }
.forum-page .fm-content-link { color:var(--fm-primary); text-decoration:underline; text-underline-offset:3px; }
.fm-replies-section-header, .fm-section-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-bottom:15px; }
.fm-section-title { display:flex; align-items:center; gap:8px; }
.fm-section-title h2 { font-size:20px; margin:0; font-weight:700; }
.fm-replies-list { display:flex; flex-direction:column; gap:14px; margin-bottom:24px; }
.fm-reply-form, .fm-create { padding:24px; border:1px solid var(--fm-border); background:var(--fm-card); border-radius:var(--fm-radius); }
.fm-reply-author { display:flex; align-items:center; gap:10px; margin-bottom:18px; }
.fm-reply-form-title { margin:0 0 3px; font-size:20px; font-weight:650; }
.fm-reply-as-user { color:var(--fm-text-muted); font-size:14px; }
.fm-form-group { margin-bottom:22px; }
.fm-label { display:flex; align-items:center; gap:7px; margin-bottom:9px; font-size:16px; font-weight:650; }
.fm-label i { color:var(--fm-text-muted); }
.fm-input, .fm-select, .fm-editor-textarea { width:100%; min-width:0; background:var(--fm-card); border:1px solid var(--fm-border); border-radius:8px; padding:12px; color:var(--fm-text); font-size:15px; min-height:46px; }
.fm-select option { color:var(--fm-text); background:var(--fm-card); }
.fm-editor { border:1px solid var(--fm-border); border-radius:10px; overflow:hidden; }
.fm-editor:focus-within { border-color:var(--fm-primary); }
.fm-editor-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:3px; padding:6px; background:var(--fm-soft); border-bottom:1px solid var(--fm-border); }
.fm-tool-btn { width:40px; height:40px; display:inline-grid; place-items:center; border:0; border-radius:6px; background:transparent; color:var(--fm-text-secondary); cursor:pointer; }
.fm-tool-btn:hover { background:var(--fm-soft-alt); color:var(--fm-primary); }
.fm-toolbar-sep { width:1px; height:19px; margin:0 3px; background:var(--fm-border); }
.fm-editor-textarea { display:block; border:0; border-radius:0; line-height:1.7; resize:vertical; min-height:180px; }
.fm-editor-textarea:focus-visible { outline-offset:-3px; }
.fm-form-actions { display:flex; justify-content:flex-end; align-items:center; flex-wrap:wrap; gap:9px; margin-top:17px; }
.fm-empty, .fm-locked { padding:38px 24px; text-align:center; color:var(--fm-text-secondary); background:var(--fm-card); border-radius:var(--fm-radius); }
.fm-empty > i, .fm-locked > i { font-size:27px; color:var(--fm-primary); margin-bottom:12px; }
.fm-empty h3, .fm-locked h3 { margin:0 0 8px; font-size:20px; color:var(--fm-text); font-weight:650; }
.fm-empty p, .fm-locked p { font-size:16px; margin:0 0 18px; }
.fm-pagination { display:flex; justify-content:center; gap:7px; margin:22px 0; flex-wrap:wrap; }
.fm-page-btn { display:grid; place-items:center; min-width:42px; height:44px; padding:0 10px; border:1px solid var(--fm-border); border-radius:8px; background:var(--fm-card); font-size:15px; }
.forum-page .fm-page-btn.active { background:var(--fm-primary); color:var(--fm-primary-text); border-color:var(--fm-primary); }
.fm-toast { position:fixed; left:50%; bottom:26px; transform:translateX(-50%); display:flex; gap:10px; align-items:center; padding:14px 18px; width:max-content; max-width:calc(100vw - 32px); background:var(--fm-card); color:var(--fm-text); box-shadow:0 8px 30px #0002; border:1px solid var(--fm-border); border-radius:12px; z-index:10000; font-size:14px; }
.fm-toast.success i { color:var(--fm-accent-emerald); } .fm-toast.error i { color:var(--fm-accent-red); }
@keyframes fm-slideOut { to { opacity:0; transform:translate(-50%,12px); } }
.forum-page .hn-admin-btn-action { display:grid; place-items:center; width:36px; height:36px; border:1px solid var(--fm-border); border-radius:7px; background:var(--fm-card); color:var(--fm-text-secondary); cursor:pointer; }
.forum-page .hn-admin-btn-action.danger { color:var(--fm-accent-red); }

.forum-page .fm-btn { font-size:16px; }
.forum-page :is(.fm-input,.fm-select,.fm-editor-textarea) { font-size:16px; }
.fm-feed-row.is-pinned { box-shadow:inset 3px 0 var(--fm-primary); }
.fm-feed-content, .fm-directory-info, .fm-category-nav a > span:nth-child(2) { overflow-wrap:anywhere; }
.fm-form-hint { display:flex; justify-content:space-between; flex-wrap:wrap; gap:5px 16px; color:var(--fm-text-muted); font-size:14px; margin-top:7px; }
.fm-form-hint > span:last-child { flex-shrink:0; }
@media (max-width:1250px) {
    .fm-layout-grid { grid-template-columns:minmax(0,1fr); gap:22px; }
    .fm-side-column { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:20px; }
    .fm-help-link { grid-column:1/-1; }
    .fm-cat-hero { align-items:flex-start; flex-direction:column; }
}
@media (max-width:760px) {
    .fm-community-header { align-items:flex-start; flex-wrap:wrap; gap:16px; }
    .fm-community-header h1 { font-size:30px; }
    .fm-topic-item { flex-wrap:wrap; }
    .fm-topic-counts { margin-left:53px; }
    .fm-feed-row { grid-template-columns:42px minmax(0,1fr); gap:12px; padding:20px; }
    .fm-initial-avatar { width:42px; height:42px; font-size:18px; }
    .fm-feed-metrics { grid-column:2; display:flex; flex-wrap:wrap; gap:12px 20px; }
    .fm-feed-count { flex-direction:row; align-items:baseline; gap:5px; }
    .fm-feed-count strong { font-size:16px; }
    .fm-feed-count > span { font-size:14px; }
}
@media (max-width:560px) {
    .forum-page { padding:3px 0 22px; }
    .fm-bread { margin-bottom:16px; font-size:14px; gap:7px; }
    .fm-community-header { gap:14px; }
    .fm-community-header h1 { font-size:28px; letter-spacing:-.6px; }
    .fm-community-header p { font-size:16px; line-height:1.6; margin-top:7px; }
    .fm-eyebrow { font-size:13px; letter-spacing:1px; }
    .fm-header-actions .fm-btn { min-height:46px; padding:10px 14px; }
    .fm-community-summary { gap:8px 14px; font-size:14px; margin:16px 0 18px; padding-bottom:16px; }
    .fm-community-summary strong { font-size:16px; }
    .fm-layout-grid { gap:18px; }
    .fm-community-search { gap:8px; padding-left:12px; margin-bottom:14px; }
    .fm-community-search input { font-size:16px; }
    .fm-community-search .fm-btn { font-size:15px; padding:10px; }
    .fm-discussion-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; padding:7px; }
    .fm-discussion-tabs a { min-height:46px; padding:10px 6px; font-size:15px; }
    .fm-discussion-heading { padding:16px; }
    .fm-discussion-heading h2 { font-size:19px; }
    .fm-feed-row { grid-template-columns:34px minmax(0,1fr); gap:10px; padding:18px 14px; }
    .fm-initial-avatar { width:34px; height:36px; font-size:17px; border-radius:10px; }
    .fm-feed-content h3 { font-size:19px; margin-bottom:8px; }
    .fm-feed-flags { font-size:14px; gap:5px 8px; }
    .fm-feed-meta { font-size:14px; gap:5px 7px; }
    .fm-feed-metrics { gap:10px 16px; }
    .fm-side-column { display:flex; align-items:stretch; }
    .fm-side-widget { padding:18px; }
    .fm-start-note { padding:16px; margin-top:16px; }
    .fm-directory-row { padding:18px 14px; gap:11px; align-items:flex-start; }
    .fm-directory-icon { width:34px; height:36px; font-size:17px; border-radius:10px; }
    .fm-directory-info strong { font-size:18px; }
    .fm-directory-arrow { margin-top:12px; }
    .fm-cat-hero { padding:5px 0 18px; gap:16px; margin-bottom:16px; }
    .fm-cat-hero-left { align-items:flex-start; gap:11px; }
    .fm-cat-icon { width:38px; height:40px; font-size:19px; border-radius:10px; }
    .fm-cat-hero-title { font-size:25px; }
    .fm-cat-hero-desc { font-size:16px; }
    .fm-cat-hero-actions { gap:8px; }
    .fm-cat-hero-actions .fm-btn { font-size:15px; padding:10px 12px; }
    .fm-cat-stats { gap:8px 12px; font-size:14px; }
    .fm-filter-bar { gap:12px; }
    .fm-filter-search { width:100%; }
    .fm-filter-search-box input { font-size:16px; }
    .fm-filter-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; gap:4px; }
    .fm-filter-tab { font-size:15px; padding:10px; justify-content:center; }
    .fm-topic-item { gap:10px; padding:18px 14px; }
    .fm-topic-avatar { width:34px; height:36px; border-radius:9px; }
    .fm-topic-content { flex:1 1 calc(100% - 50px); }
    .fm-topic-title { font-size:19px; }
    .fm-topic-meta { font-size:14px; gap:5px; }
    .fm-topic-counts { display:none; }
    .fm-topic-admin-tools { margin-left:44px; }
    .fm-detail-title { font-size:27px; }
    .fm-detail-meta { gap:8px 12px; font-size:14px; }
    .fm-detail-top-row { align-items:flex-start; flex-wrap:wrap; }
    .fm-post-header, .fm-post-footer { padding:16px; }
    .fm-post-body { padding:20px 16px; font-size:17px; line-height:1.8; }
    .fm-post-name { font-size:16px; }
    .fm-post-role { font-size:14px; }
    .fm-reply-form, .fm-create { padding:16px; }
    .fm-form-group { margin-bottom:20px; }
    .fm-tool-btn { width:38px; height:44px; }
    .fm-toolbar-sep { margin:0 1px; }
    .fm-empty, .fm-locked { padding:30px 16px; }
    .fm-empty h3, .fm-locked h3 { font-size:19px; }
}
@media (prefers-reduced-motion:reduce) { .forum-page *, .fm-toast { animation:none !important; transition:none !important; scroll-behavior:auto !important; } }
