/* RusChat Forum - Air-aware. No fixed light/dark palette or custom font. */
.rcfm-wrap{--rf-bg:var(--surface,#fff);--rf-soft:var(--surface-soft,#f7f9fb);--rf-text:var(--text,#1d2935);--rf-muted:var(--muted,#748191);--rf-line:var(--line,#dae2e9);--rf-primary:var(--accent,#6686a3);--rf-strong:var(--accent-strong,#486f92);--rf-radius:var(--r-md,8px);--rf-pill:var(--r-sm,6px);font-family:inherit;color:var(--rf-text);width:100%;max-width:100%;min-width:0;margin:0 auto 2rem;font-size:inherit;overflow-wrap:anywhere}
.rcfm-wrap *{box-sizing:border-box}.rcfm-wrap a{text-decoration:none;color:inherit}.rcfm-wrap a:hover{color:var(--rf-strong)}.rcfm-wrap button,.rcfm-wrap input,.rcfm-wrap select,.rcfm-wrap textarea{font:inherit;max-width:100%}.rcfm-wrap button{cursor:pointer}.rcfm-wrap .fa{font-size:1em}
.rcfm-toolbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:0 0 1.2rem;flex-wrap:wrap}.rcfm-crumb{font-size:.88em;color:var(--rf-muted);display:flex;align-items:center;flex-wrap:wrap;gap:.45rem}.rcfm-crumb a:hover{color:var(--rf-primary)}.rcfm-sep{opacity:.6}.rcfm-search{display:flex;align-items:center;border:1px solid var(--rf-line);background:var(--rf-bg);border-radius:var(--rf-pill);width:min(270px,100%);height:38px;padding:0 .3rem 0 .8rem}.rcfm-search input{min-width:0;border:0;outline:0;flex:1;background:transparent;color:var(--rf-text)}.rcfm-search button{border:0;background:transparent;color:var(--rf-muted);padding:.4rem .6rem}
.rcfm-panel-head{background:var(--rf-bg);border:1px solid var(--rf-line);border-radius:var(--rf-radius);padding:1.4rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}.rcfm-panel-head h1{font-size:1.6rem;line-height:1.25;margin:0;font-weight:720;color:var(--rf-text);overflow-wrap:anywhere}.rcfm-panel-head p{font-size:.92rem;color:var(--rf-muted);margin:.42rem 0 0}.rcfm-panel{border:1px solid var(--rf-line);background:var(--rf-bg);border-radius:var(--rf-radius);overflow:hidden;margin:0 0 1rem}.rcfm-group-title{margin:0;padding:1.03rem 1.2rem;border-bottom:1px solid var(--rf-line);font-size:1.08rem;line-height:1.4;font-weight:700}.rcfm-group-title a:hover{color:var(--rf-strong)}
.rcfm-forum-row{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(80px,.4fr) minmax(160px,.8fr);align-items:center;min-height:100px;gap:1rem;padding:1rem 1.2rem;border-bottom:1px solid var(--rf-line)}.rcfm-forum-row:last-child{border-bottom:0}.rcfm-forum-row:hover,.rcfm-row:hover,.rcfm-topic-row:hover{background:var(--rf-soft)}.rcfm-forum-title{display:flex;align-items:center;min-width:0;gap:1rem}.rcfm-forum-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;background:var(--rf-primary);color:white;border-radius:var(--rf-pill);font-size:1.14rem}.rcfm-row-main{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:.3rem}.rcfm-row-main strong{font-size:1rem;font-weight:700;line-height:1.35}.rcfm-row-main small{font-size:.85rem;color:var(--rf-muted);line-height:1.45}.rcfm-forum-count{text-align:center;color:var(--rf-text);font-size:1rem}.rcfm-forum-count span{display:block}.rcfm-forum-count small,.rcfm-topic-count small{color:var(--rf-muted);font-size:.8rem;display:block}.rcfm-last{font-size:.87rem;min-width:0;color:var(--rf-text)}.rcfm-last>a{display:block;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rcfm-last small{display:block;color:var(--rf-muted);font-size:.82rem;margin-top:.3rem}.rcfm-row{display:flex;align-items:center;gap:1rem;padding:1rem 1.2rem;border-bottom:1px solid var(--rf-line)}.rcfm-row:last-child{border-bottom:0}.rcfm-row>.fa:last-child{margin-left:auto;color:var(--rf-muted)}
.rcfm-table-head,.rcfm-topic-row{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(105px,.45fr) minmax(145px,.65fr);gap:1rem;align-items:center}.rcfm-table-head{background:var(--rf-soft);color:var(--rf-muted);padding:.9rem 1.2rem;font-size:.8rem;border-bottom:1px solid var(--rf-line);text-transform:uppercase;letter-spacing:.035em}.rcfm-table-head span:not(:first-child){text-align:right}.rcfm-topic-row{padding:1rem 1.2rem;border-bottom:1px solid var(--rf-line)}.rcfm-topic-row:last-child{border-bottom:0}.rcfm-topic-main{min-width:0;display:flex;align-items:flex-start;gap:.95rem}.rcfm-topic-main>div{min-width:0}.rcfm-topic-main strong{display:inline;font-weight:700;font-size:.97rem}.rcfm-topic-main small{display:block;color:var(--rf-muted);margin-top:.32rem;font-size:.84rem}.rcfm-topic-icon{color:var(--rf-primary);font-size:1.2rem;line-height:1.5}.rcfm-topic-count,.rcfm-topic-row .rcfm-last{text-align:right}.rcfm-status{display:inline-block;margin-left:.5rem;padding:.12rem .38rem;border-radius:4px;color:#a66d20;background:var(--amber-soft,#f4eee1);font-size:.72rem}.rcfm-empty{text-align:center;color:var(--rf-muted);padding:2rem 1rem}
.rcfm-btn{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;padding:.72rem 1.05rem;border:1px solid var(--rf-line);background:var(--rf-bg);color:var(--rf-text);font-weight:650;line-height:1;border-radius:var(--rf-pill);white-space:nowrap}.rcfm-btn.rcfm-primary{background:var(--rf-primary);color:var(--accent-ink,#fff);border-color:var(--rf-primary)}.rcfm-btn.rcfm-primary:hover{background:var(--rf-strong);color:#fff}.rcfm-alert{border:1px solid var(--rf-line);border-radius:var(--rf-radius);padding:1rem 1.1rem;background:var(--rf-soft);margin:0 0 1rem}.rcfm-alert.rcfm-error{background:var(--negative-soft,#f5eaea);color:var(--negative,#ad3939)}.rcfm-pager{display:flex;flex-wrap:wrap;gap:.35rem;margin:.9rem 0 1.1rem}.rcfm-pager a{border:1px solid var(--rf-line);border-radius:var(--rf-pill);min-width:34px;text-align:center;padding:.48rem .65rem;background:var(--rf-bg)}.rcfm-pager a.current{color:var(--accent-ink,#fff);background:var(--rf-primary);border-color:var(--rf-primary)}
.rcfm-editor{display:grid;gap:1rem;padding:1.2rem}.rcfm-editor label{display:grid;gap:.42rem;font-weight:650;font-size:.93rem}.rcfm-editor input,.rcfm-editor textarea{background:var(--rf-soft);border:1px solid var(--rf-line);border-radius:var(--rf-pill);color:var(--rf-text);padding:.8rem;outline:0;width:100%;font-weight:400}.rcfm-editor input:focus,.rcfm-editor textarea:focus{border-color:var(--rf-primary)}.rcfm-editor textarea{resize:vertical;min-height:200px;line-height:1.6}.rcfm-editor-tools{display:flex;align-items:center;justify-content:space-between;gap:1rem}.rcfm-editor-tools span{font-size:.8rem;color:var(--rf-muted)}
.rcfm-post{display:grid;grid-template-columns:180px minmax(0,1fr);border-bottom:1px solid var(--rf-line);background:var(--rf-bg);min-height:190px}.rcfm-thread{border:1px solid var(--rf-line);border-radius:var(--rf-radius);overflow:hidden;margin-bottom:1rem}.rcfm-post:last-child{border-bottom:0}.rcfm-post-user{background:var(--rf-soft);border-right:1px solid var(--rf-line);padding:1.1rem .8rem;display:flex;align-items:center;gap:.4rem;flex-direction:column;text-align:center}.rcfm-post-user strong{font-size:.92rem;line-height:1.3}.rcfm-post-user small{font-size:.8rem;color:var(--rf-muted)}.rcfm-avatar{width:68px;height:68px;object-fit:cover;border-radius:50%;background:var(--rf-line)}.rcfm-avatar-empty{display:inline-flex;align-items:center;justify-content:center;color:var(--rf-muted);font-size:1.7rem}.rcfm-post-meta{font-size:.82rem;color:var(--rf-muted);margin-top:.6rem}.rcfm-post-body{padding:1.15rem 1.25rem;display:flex;flex-direction:column;min-width:0}.rcfm-post-top{display:flex;justify-content:space-between;gap:.8rem;font-size:.8rem;color:var(--rf-muted);margin-bottom:1rem}.rcfm-message{line-height:1.7;white-space:normal;flex:1;min-height:70px;word-break:break-word}.rcfm-message blockquote{background:var(--rf-soft);border-left:3px solid var(--rf-primary);padding:.8rem 1rem;margin:1rem 0}.rcfm-message pre{padding:1rem;background:var(--rf-soft);border:1px solid var(--rf-line);border-radius:var(--rf-pill);white-space:pre-wrap;word-break:break-word;max-width:100%}.rcfm-message a{color:var(--rf-strong);text-decoration:underline}.rcfm-edited{color:var(--rf-muted);font-size:.75rem;margin:.7rem 0}.rcfm-post-actions{display:flex;flex-wrap:wrap;align-items:center;gap:1rem;margin-top:1.2rem;font-size:.82rem}.rcfm-post-actions button{background:none;border:0;padding:0;color:var(--rf-muted)}.rcfm-post-actions a{color:var(--rf-muted)}.rcfm-post-actions .fa{color:var(--rf-primary)}.rcfm-inline{display:inline}.rcfm-reply{padding-top:1rem}.rcfm-reply h2{margin:0;padding:0 1.2rem;font-size:1.18rem}.rcfm-mod{position:relative}.rcfm-mod summary{list-style:none;cursor:pointer;background:var(--rf-soft);padding:.65rem 1rem;border:1px solid var(--rf-line);border-radius:var(--rf-pill);font-size:.85rem}.rcfm-mod[open] form{position:absolute;right:0;top:2.5rem;background:var(--rf-bg);border:1px solid var(--rf-line);padding:.7rem;min-width:190px;z-index:2;box-shadow:var(--shadow-menu,0 8px 28px #0002);display:flex;flex-direction:column;gap:.4rem}.rcfm-mod form button{background:transparent;border:0;padding:.5rem;text-align:left;color:var(--rf-text)}.rcfm-mod form button:hover{background:var(--rf-soft)}
@media(max-width:900px){.rcfm-forum-row{grid-template-columns:minmax(0,1fr) 85px;gap:.7rem}.rcfm-forum-row>.rcfm-last{grid-column:1/-1;padding-left:52px}.rcfm-table-head,.rcfm-topic-row{grid-template-columns:minmax(0,1fr) 110px}.rcfm-table-head span:last-child,.rcfm-topic-row>.rcfm-last{display:none}}
@media(max-width:620px){.rcfm-wrap{font-size:.94rem}.rcfm-toolbar{align-items:stretch}.rcfm-search{width:100%}.rcfm-panel-head{padding:1rem;flex-direction:column;align-items:flex-start}.rcfm-panel-head h1{font-size:1.3rem}.rcfm-group-title{padding:.85rem}.rcfm-forum-row{grid-template-columns:minmax(0,1fr);padding:.85rem;min-height:unset}.rcfm-forum-row>.rcfm-forum-count,.rcfm-forum-row>.rcfm-last{display:none}.rcfm-forum-title{gap:.7rem}.rcfm-forum-icon{flex-basis:32px;width:32px;height:32px}.rcfm-table-head{grid-template-columns:1fr}.rcfm-table-head span:nth-child(2){display:none}.rcfm-topic-row{grid-template-columns:minmax(0,1fr);padding:.8rem}.rcfm-topic-count{display:none}.rcfm-post{grid-template-columns:1fr}.rcfm-post-user{flex-direction:row;text-align:left;padding:.7rem;gap:.65rem;border-right:0;border-bottom:1px solid var(--rf-line)}.rcfm-post-user .rcfm-avatar{width:38px;height:38px}.rcfm-post-user .rcfm-post-meta{margin:0 0 0 auto}.rcfm-post-body{padding:1rem}.rcfm-editor{padding:1rem}.rcfm-editor-tools{align-items:stretch;flex-direction:column}.rcfm-editor-tools .rcfm-btn{width:100%}.rcfm-mod[open] form{left:0;right:auto}}
.rcfm-bbtoolbar{display:flex;gap:.2rem;flex-wrap:wrap;margin:-.45rem 0 -.8rem;padding:.35rem;background:var(--rf-soft);border:1px solid var(--rf-line);border-radius:var(--rf-pill)}.rcfm-bbtoolbar button{border:0;background:transparent;color:var(--rf-text);min-width:34px;min-height:31px;border-radius:var(--rf-pill)}.rcfm-bbtoolbar button:hover{background:var(--rf-primary);color:white}.rcfm-last .rcfm-avatar{float:left;width:32px;height:32px;margin-right:.6rem}.rcfm-auth-links{display:flex;gap:.75rem;margin:-.3rem 0 1rem;font-size:.9em}.rcfm-auth-links a{color:var(--rf-strong);text-decoration:underline}

/* Forum 1.2: complete user cards. Inherit colors and typography from Air. */
.rcfm-post{grid-template-columns:216px minmax(0,1fr)}
.rcfm-post-user{align-items:stretch;text-align:left;gap:.8rem;padding:1.05rem .9rem}
.rcfm-author-top{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.35rem;min-width:0}
.rcfm-author-avatar{display:inline-flex;align-items:center;justify-content:center;line-height:0;max-width:100%}
.rcfm-author-top .rcfm-avatar{height:76px;width:76px;flex:none}
.rcfm-author-identity{display:flex;flex-direction:column;gap:.2rem;min-width:0;align-items:center;overflow-wrap:anywhere}
.rcfm-author-identity strong{font-size:.94rem}
.rcfm-author-identity .rcfm-author-group{font-size:.78rem;color:var(--rf-muted)}
.rcfm-author-stats{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border:1px solid var(--rf-line);border-radius:var(--rf-pill);overflow:hidden;background:var(--rf-bg)}
.rcfm-author-stats>div{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:.55rem .3rem;min-width:0;gap:.15rem}
.rcfm-author-stats>div+div{border-left:1px solid var(--rf-line)}
.rcfm-author-stats span{font-size:.72rem;color:var(--rf-muted);white-space:normal;text-align:center}
.rcfm-author-stats b{font-size:.95rem;font-weight:700;color:var(--rf-text)}
.rcfm-author-details{width:100%;margin:0;display:flex;flex-direction:column;gap:.4rem;font-size:.77rem}
.rcfm-author-details>div{display:flex;justify-content:space-between;gap:.45rem;align-items:flex-start;min-width:0;flex-wrap:wrap}
.rcfm-author-details dt{color:var(--rf-muted);white-space:nowrap}
.rcfm-author-details dd{margin:0;color:var(--rf-text);text-align:right;overflow-wrap:anywhere;min-width:0}
.rcfm-author-details .fa{color:var(--rf-primary)}
.rcfm-author-online{color:var(--positive,var(--rf-strong));white-space:nowrap}
.rcfm-author-online .fa{font-size:.55em}
@media(max-width:620px){
 .rcfm-post{grid-template-columns:minmax(0,1fr)}
 .rcfm-post-user{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.5rem .75rem;padding:.75rem}
 .rcfm-author-top{flex-direction:row;justify-content:flex-start;text-align:left;gap:.65rem}
 .rcfm-author-top .rcfm-avatar{height:44px;width:44px}
 .rcfm-author-identity{align-items:flex-start}
 .rcfm-author-stats{min-width:138px}
 .rcfm-author-stats>div{padding:.35rem .3rem}
 .rcfm-author-stats span{font-size:.67rem}
 .rcfm-author-stats b{font-size:.84rem}
 .rcfm-author-details{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.3rem .7rem;border-top:1px solid var(--rf-line);padding-top:.5rem;font-size:.72rem}
 .rcfm-author-details>div{gap:.2rem;display:flex;flex-wrap:wrap;justify-content:flex-start}
 .rcfm-author-details dd{text-align:left}
}
@media(max-width:380px){.rcfm-post-user{grid-template-columns:1fr}.rcfm-author-stats{width:100%}.rcfm-author-details{grid-template-columns:1fr}}


/* 1.3 Air typography + compact directory. The site owns colors, font family,
   font-size variables and theme variants (light, dark and accent). */
.rcfm-wrap {
  font-family: inherit;
  font-size: var(--font-size-base, .9rem);
  line-height: 1.5;
}
.rcfm-wrap .rcfm-panel-head { padding: 1rem 1.15rem; gap: .75rem; }
.rcfm-wrap .rcfm-panel-head h1 { font-size: var(--fs-h3, 1.4rem); font-weight: 700; letter-spacing: -.022em; }
.rcfm-wrap .rcfm-panel-head p { font-size: var(--fs-meta, .9375rem); line-height: 1.45; }
.rcfm-wrap .rcfm-group-title { padding: .68rem 1rem; font-size: var(--fs-ui, .95rem); line-height: 1.4; }
.rcfm-wrap .rcfm-crumb, .rcfm-wrap .rcfm-auth-links { font-size: var(--fs-meta, .9375rem); }
.rcfm-wrap .rcfm-search { height: var(--control-h, 2.875rem); }
.rcfm-wrap .rcfm-search input { font-size: var(--fs-ui, .95rem); }
.rcfm-wrap .rcfm-btn { font-size: var(--fs-ui, .95rem); padding: .58rem .85rem; border-radius: var(--r-sm, 6px); }
.rcfm-wrap .rcfm-forum-row {
  grid-template-columns: minmax(0, 1fr) 178px minmax(190px, .57fr);
  min-height: 66px;
  gap: .8rem;
  padding: .53rem 1rem;
}
.rcfm-wrap .rcfm-forum-title { gap: .72rem; }
.rcfm-wrap .rcfm-forum-icon { width: 30px; height: 30px; flex: 0 0 30px; font-size: .95rem; }
.rcfm-wrap .rcfm-row-main { gap: .14rem; }
.rcfm-wrap .rcfm-row-main strong,
.rcfm-wrap .rcfm-topic-main strong { font-size: var(--fs-ui, .95rem); line-height: 1.35; font-weight: 650; }
.rcfm-wrap .rcfm-row-main small,
.rcfm-wrap .rcfm-topic-main small { font-size: var(--font-size-sm, .86rem); line-height: 1.35; margin-top: 0; }
.rcfm-wrap .rcfm-forum-count {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-size: var(--fs-ui, .95rem);
  line-height: 1.25;
  white-space: nowrap;
}
.rcfm-wrap .rcfm-forum-count .rcfm-count-item { display: inline-flex; align-items: baseline; gap: .26rem; }
.rcfm-wrap .rcfm-forum-count .rcfm-count-item strong { color: var(--rf-text); font-weight: 650; font-size: inherit; }
.rcfm-wrap .rcfm-forum-count .rcfm-count-item small { display: inline; color: var(--rf-muted); font-size: var(--font-size-xs, .75rem); }
.rcfm-wrap .rcfm-forum-count .rcfm-count-separator { display: block; width: 1px; height: .83rem; background: var(--rf-line); flex: 0 0 1px; }
.rcfm-wrap .rcfm-last { font-size: var(--font-size-sm, .86rem); line-height: 1.35; }
.rcfm-wrap .rcfm-last small { font-size: var(--font-size-xs, .75rem); margin-top: .2rem; }
.rcfm-wrap .rcfm-last .rcfm-avatar { width: 28px; height: 28px; margin-right: .48rem; }
.rcfm-wrap .rcfm-row { padding: .6rem 1rem; gap: .75rem; min-height: 56px; }
.rcfm-wrap .rcfm-table-head { padding: .58rem 1rem; font-size: var(--font-size-xs, .75rem); }
.rcfm-wrap .rcfm-topic-row { padding: .65rem 1rem; min-height: 64px; gap: .7rem; }
.rcfm-wrap .rcfm-topic-main { gap: .65rem; }
.rcfm-wrap .rcfm-topic-main small { margin-top: .16rem; }
.rcfm-wrap .rcfm-topic-icon { font-size: 1rem; }
.rcfm-wrap .rcfm-topic-count { font-size: var(--font-size-sm, .86rem); line-height: 1.35; }
.rcfm-wrap .rcfm-topic-count small { font-size: var(--font-size-xs, .75rem); }
.rcfm-wrap .rcfm-post-user strong { font-size: var(--fs-ui, .95rem); }
.rcfm-wrap .rcfm-author-identity .rcfm-author-group { font-size: var(--font-size-sm, .86rem); }
.rcfm-wrap .rcfm-post-body { font-size: var(--font-size-lg, 1rem); }
.rcfm-wrap .rcfm-message { line-height: 1.65; }
.rcfm-wrap .rcfm-post-top,.rcfm-wrap .rcfm-post-actions { font-size: var(--font-size-sm, .86rem); }
.rcfm-wrap .rcfm-editor label { font-size: var(--fs-ui, .95rem); }
.rcfm-wrap .rcfm-editor input,.rcfm-wrap .rcfm-editor textarea { font-size: var(--font-size-lg, 1rem); }
@media (max-width: 1020px) {
  .rcfm-wrap .rcfm-forum-row { grid-template-columns: minmax(0, 1fr) 170px; min-height: 62px; }
  .rcfm-wrap .rcfm-forum-row > .rcfm-last { display: none; }
}
@media (max-width: 650px) {
  .rcfm-wrap { font-size: var(--font-size-base, .9rem); }
  .rcfm-wrap .rcfm-panel-head { padding: .85rem; }
  .rcfm-wrap .rcfm-panel-head h1 { font-size: var(--fs-h4, 1.25rem); }
  .rcfm-wrap .rcfm-group-title { padding: .62rem .82rem; }
  .rcfm-wrap .rcfm-forum-row { grid-template-columns: minmax(0, 1fr); gap: .32rem; padding: .56rem .8rem; }
  .rcfm-wrap .rcfm-forum-row > .rcfm-forum-count {
    display: flex; grid-column: 1 / -1; justify-content: flex-start;
    margin-left: 40px; gap: .48rem; font-size: var(--font-size-sm, .86rem);
  }
  .rcfm-wrap .rcfm-forum-title { gap: .65rem; }
  .rcfm-wrap .rcfm-forum-row > .rcfm-last { display: none; }
  .rcfm-wrap .rcfm-forum-icon { width: 28px; height: 28px; flex-basis: 28px; }
  .rcfm-wrap .rcfm-row { padding: .6rem .8rem; }
  .rcfm-wrap .rcfm-table-head { display: none; }
  .rcfm-wrap .rcfm-topic-row { grid-template-columns: minmax(0, 1fr); padding: .6rem .8rem; min-height: 58px; gap: .23rem; }
  .rcfm-wrap .rcfm-topic-count { display: block; text-align: left; padding-left: 25px; font-size: var(--font-size-xs, .75rem); color: var(--rf-muted); }
  .rcfm-wrap .rcfm-topic-count small { display: inline; margin-left: .35rem; font-size: inherit; }
}


/* 1.4: native Air typography for user cards, not arbitrary tiny rem values. */
.rcfm-wrap .rcfm-post-user {
  font-family: inherit;
  font-size: var(--fs-ui, .95rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: normal;
  color: var(--rf-text);
}
.rcfm-wrap .rcfm-post-user :not(.fa) { font-family: inherit; letter-spacing: inherit; }
.rcfm-wrap .rcfm-author-identity strong,
.rcfm-wrap .rcfm-author-identity strong a {
  font-size: var(--fs-ui, .95rem);
  font-weight: 650;
  line-height: 1.35;
}
.rcfm-wrap .rcfm-author-identity .rcfm-author-group {
  font-size: var(--fs-meta, .9375rem);
  font-weight: 400;
  line-height: 1.4;
}
.rcfm-wrap .rcfm-author-stats span {
  font-size: var(--fs-meta, .9375rem);
  font-weight: 400;
  line-height: 1.35;
}
.rcfm-wrap .rcfm-author-stats b {
  font-size: var(--fs-ui, .95rem);
  font-weight: 650;
  line-height: 1.3;
}
.rcfm-wrap .rcfm-author-details,
.rcfm-wrap .rcfm-author-details dt,
.rcfm-wrap .rcfm-author-details dd {
  font-size: var(--fs-meta, .9375rem);
  font-weight: 400;
  line-height: 1.4;
}
.rcfm-wrap .rcfm-author-details dt { color: var(--rf-muted); }
.rcfm-wrap .rcfm-author-details dd { color: var(--rf-text); }
.rcfm-wrap .rcfm-author-stats > div { gap: .15rem; }
.rcfm-wrap .rcfm-post-user .fa { font-family: FontAwesome !important; }
@media (max-width: 620px) {
  .rcfm-wrap .rcfm-post-user { font-size: var(--fs-ui, .95rem); }
  .rcfm-wrap .rcfm-author-details { font-size: var(--fs-meta, .9375rem); }
}

/* 1.5: working hierarchical navigation and streamlined editor. */
.rcfm-wrap .rcfm-crumb a {display:inline-flex;align-items:center;gap:.3rem;min-width:0;cursor:pointer;overflow-wrap:anywhere;text-decoration:none}
.rcfm-wrap .rcfm-crumb a:hover,.rcfm-wrap .rcfm-crumb a:focus-visible {color:var(--rf-primary);text-decoration:underline;text-underline-offset:3px}
.rcfm-wrap .rcfm-crumb a[aria-current="page"] {color:var(--rf-text);font-weight:600}
.rcfm-wrap .rcfm-crumb .rcfm-sep {user-select:none;flex:none}
.rcfm-wrap .rcfm-editor-tools {justify-content:flex-end}
@media (max-width:620px){.rcfm-wrap .rcfm-crumb{max-width:100%}.rcfm-wrap .rcfm-editor-tools .rcfm-btn{width:100%}}

/* Only search remains in forum toolbar: breadcrumbs belong to the site speedbar. */
.rcfm-toolbar{justify-content:flex-end}

/* 1.6.2: mention action matches the forum's existing inline action buttons. */
.rcfm-wrap .rcfm-post-actions .rcfm-mention {display:inline-flex;align-items:center;gap:6px;font:inherit;color:var(--rf-muted);border:0;background:transparent;padding:0;cursor:pointer;}
.rcfm-wrap .rcfm-post-actions .rcfm-mention>.fa {display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 16px!important;width:16px!important;height:16px!important;margin:0!important;padding:0!important;font-family:FontAwesome!important;font-size:16px!important;font-style:normal!important;font-weight:400!important;line-height:1!important;vertical-align:middle!important;text-align:center!important;color:var(--rf-primary);}
.rcfm-wrap .rcfm-post-actions .rcfm-mention:hover {color:var(--rf-strong);}

/* BBCode editor icons: precisely aligned with RusChat controls. */
.rcfm-wrap .rcfm-bbtoolbar{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin:0;padding:7px;border-radius:6px}
.rcfm-wrap .rcfm-bbtoolbar button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;min-width:36px;min-height:36px;padding:0;margin:0;border-radius:6px;font-weight:600;line-height:1}
.rcfm-wrap .rcfm-bbtoolbar button>.fa{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 16px!important;width:16px!important;height:16px!important;margin:0!important;padding:0!important;font-family:FontAwesome!important;font-size:16px!important;font-weight:400!important;line-height:1!important;vertical-align:middle!important;text-align:center!important}
.rcfm-wrap .rcfm-editor-tools .rcfm-btn{border-radius:6px;font-weight:600;display:inline-flex;align-items:center;gap:8px}
.rcfm-wrap .rcfm-editor-tools .rcfm-btn>.fa{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;font-size:16px;font-weight:400;line-height:1}
.rcfm-wrap .rcfm-upload-status:empty{display:none}.rcfm-wrap .rcfm-upload-status{font-size:.88em;color:var(--rf-muted)}
.rcfm-wrap .rcfm-message .rcfm-inline-image{display:block;width:auto;height:auto;max-width:100%;max-height:750px;object-fit:contain;border-radius:6px;margin:.45em 0}
.rcfm-wrap .rcfm-message .rcfm-align-left{text-align:left}.rcfm-wrap .rcfm-message .rcfm-align-center{text-align:center}.rcfm-wrap .rcfm-message .rcfm-align-right{text-align:right}
.rcfm-wrap .rcfm-message h2{font-size:1.3em;font-weight:600;margin:.7em 0 .4em}.rcfm-wrap .rcfm-message h3{font-size:1.14em;font-weight:600;margin:.65em 0 .35em}
.rcfm-wrap .rcfm-message ul,.rcfm-wrap .rcfm-message ol{margin:.6em 0 .6em 1.5em;padding:0}.rcfm-wrap .rcfm-message li{margin:.2em 0}

/* v1.6.8: ONLY category headings have small inline icons.
   Forum and subforum icons retain their exact v1.6.6 44x44 / 26px treatment. */
.rcfm-wrap .rcfm-group-title a{display:inline-flex;align-items:center;gap:.5em;min-width:0}
.rcfm-wrap .rcfm-group-title .rcfm-category-icon{
    display:inline-flex;align-items:center;justify-content:center;
    position:static;flex:0 0 1em;width:1em;min-width:1em;height:1em;
    margin:0;padding:0;border:0;border-radius:0;background:transparent;
    box-shadow:none;color:var(--rf-primary);font-size:1em;line-height:1;
}
.rcfm-wrap .rcfm-group-title .rcfm-category-icon>.fa{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    width:1em!important;height:1em!important;margin:0!important;padding:0!important;
    font-family:FontAwesome!important;font-size:1em!important;font-style:normal!important;
    font-weight:400!important;line-height:1!important;text-align:center!important;
}
/* Forums and subforums: retain v1.6.6 original sizes and backgrounds. */
.rcfm-wrap .rcfm-forum-title .rcfm-forum-icon,
.rcfm-wrap .rcfm-sub .rcfm-forum-icon{
    display:inline-flex;align-items:center;justify-content:center;
    flex:0 0 44px;width:44px;min-width:44px;height:44px;
    border-radius:6px;background:var(--rf-soft);color:var(--rf-primary);
    border:1px solid var(--rf-line);line-height:1;
}
.rcfm-wrap .rcfm-forum-title .rcfm-forum-icon>.fa,
.rcfm-wrap .rcfm-sub .rcfm-forum-icon>.fa{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    width:28px!important;height:28px!important;
    font-family:FontAwesome!important;font-size:26px!important;
    font-style:normal!important;font-weight:400!important;line-height:1!important;
    text-align:center!important;margin:0!important;padding:0!important;
}
@media(max-width:620px){
    .rcfm-wrap .rcfm-forum-title .rcfm-forum-icon,
    .rcfm-wrap .rcfm-sub .rcfm-forum-icon{flex-basis:40px;width:40px;min-width:40px;height:40px}
    .rcfm-wrap .rcfm-forum-title .rcfm-forum-icon>.fa,
    .rcfm-wrap .rcfm-sub .rcfm-forum-icon>.fa{font-size:24px!important}
}

/* Follow the font scale of the active RusChat Air theme across the forum. */
.rcfm-wrap { font-family: inherit; font-size: var(--fs-ui, inherit); line-height: 1.5; }
.rcfm-wrap .rcfm-panel-head h1 { font-size: var(--fs-h3, 1.4em); }
.rcfm-wrap .rcfm-group-title { font-size: var(--fs-ui, inherit); }
.rcfm-wrap .rcfm-row-main strong,
.rcfm-wrap .rcfm-topic-main strong,
.rcfm-wrap .rcfm-post-user strong,
.rcfm-wrap .rcfm-author-identity strong,
.rcfm-wrap .rcfm-author-identity strong a { font-size: var(--fs-ui, inherit); }
.rcfm-wrap .rcfm-row-main small,
.rcfm-wrap .rcfm-topic-main small,
.rcfm-wrap .rcfm-last,
.rcfm-wrap .rcfm-last small,
.rcfm-wrap .rcfm-forum-count small,
.rcfm-wrap .rcfm-topic-count,
.rcfm-wrap .rcfm-topic-count small,
.rcfm-wrap .rcfm-crumb,
.rcfm-wrap .rcfm-table-head,
.rcfm-wrap .rcfm-post-top,
.rcfm-wrap .rcfm-post-actions,
.rcfm-wrap .rcfm-post-meta,
.rcfm-wrap .rcfm-post-user small,
.rcfm-wrap .rcfm-author-identity .rcfm-author-group,
.rcfm-wrap .rcfm-author-stats span,
.rcfm-wrap .rcfm-author-details,
.rcfm-wrap .rcfm-author-details dt,
.rcfm-wrap .rcfm-author-details dd,
.rcfm-wrap .rcfm-editor-tools span { font-size: var(--fs-meta, inherit); }
.rcfm-wrap .rcfm-forum-count,
.rcfm-wrap .rcfm-author-stats b,
.rcfm-wrap .rcfm-search input,
.rcfm-wrap .rcfm-btn,
.rcfm-wrap .rcfm-editor label,
.rcfm-wrap .rcfm-editor input,
.rcfm-wrap .rcfm-editor textarea { font-size: var(--fs-ui, inherit); }
.rcfm-wrap .rcfm-post-body,
.rcfm-wrap .rcfm-message { font-size: var(--fs-body, inherit); }
.rcfm-wrap .rcfm-group-title .rcfm-category-icon { font-size: 1em; }
@media (max-width: 650px) {
  .rcfm-wrap { font-size: var(--fs-ui, inherit); }
}
