.forum-loading { position:relative; pointer-events:none; user-select:none; }
.forum-loading-status {
  position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden;
  clip-path:inset(50%); white-space:nowrap;
}
.forum-loading-status [lang="en"], html:lang(en) .forum-loading-status [lang="ru"] { display:none; }
html:lang(en) .forum-loading-status [lang="en"] { display:inline; }
.forum-skeleton-line {
  display:block; position:relative; width:var(--skeleton-width); max-width:100%; min-width:0;
}
.forum-skeleton-line::before { content:"\00a0"; }
.forum-skeleton-line::after {
  content:""; position:absolute; inset:50% 0 auto; height:.58em; border-radius:8px;
  transform:translateY(-50%);
  background:linear-gradient(100deg,#272d29 25%,#424a44 50%,#272d29 75%);
  background-size:240% 100%; background-position:64% center;
}
.forum-skeleton-shape { background:#232925; }
.forum-skeleton-copy { flex:1; min-width:0; }
.forum-skeleton-group-title { grid-column:1 / 3; }
.forum-skeleton-count { margin-inline:auto; }
.forum-skeleton-stat { width:38px; height:19px; }
.forum-skeleton-extra-line { display:none; }
@media (max-width:430px) {
  .forum-skeleton-extra-line { display:block; }
}
@keyframes forum-loading-shimmer {
  from { background-position:140% center; }
  to { background-position:-40% center; }
}
@media (prefers-reduced-motion:no-preference) {
  .forum-skeleton-line::after { animation:forum-loading-shimmer 1.3s linear infinite; }
}

.tab-btn[data-tab="docs"] { display:none; }
.fc-topic-title {
  display:flow-root; flex:1; min-width:0; font-size:.92rem; line-height:max(22px,1.5em);
}
.fc-topic-title-tags {
  float:left; display:flex; gap:4px; max-inline-size:50%; margin-inline-end:8px;
}
.fc-topic-title-tags > .fc-tag {
  display:block; flex:0 1 auto; overflow:hidden; text-overflow:ellipsis; line-height:14px;
}
.fc-t-stats { margin-inline-start:auto; justify-content:flex-end; }
.fc-actions-group { display:contents; }
.fc-topic-counts { display:none; }
.fc-reader-heading { margin:0; font-size:clamp(1.15rem,3vw,1.65rem); line-height:1.2; }
.fc-crumbs a:has(svg) { display:inline-flex; align-items:center; gap:4px; }
.fc-crumbs a > svg { width:15px; height:15px; flex:none; }
.fc-author-identity {
  display:flex; flex-direction:column; align-items:center;
  gap:4px; max-width:100%; min-width:0; text-align:center;
}
.fc-author-identity .fc-author-name { min-width:0; }
.fc-author-identity .fc-presence { order:1; white-space:nowrap; }

.forum-format-tools .forum-format-button { width:34px; min-height:34px; padding:6px; }
.forum-format-button svg,.forum-tool svg { width:17px; height:17px; flex:none; }
.forum-editor-tools .forum-tool { display:inline-flex; align-items:center; justify-content:center; gap:7px; }
.forum-format-button:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }

@media (min-width:721px) {
  .fc-trow > .fc-main:has(.fc-pin) {
    display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:8px;
  }
  .fc-trow .fc-title-line:has(> .fc-pin) { display:contents; }
  .fc-trow .fc-pin { grid-column:2; grid-row:1 / span 2; align-self:center; }
}
@media (max-width:980px) {
  .fc-trow .fc-topic-meta { display:flex; flex-wrap:wrap; align-items:baseline; gap:3px 8px; }
  .fc-topic-counts,.fc-topic-counts > span { display:inline-flex; align-items:center; }
  .fc-topic-counts { gap:9px; color:var(--muted); font-variant-numeric:tabular-nums; }
  .fc-topic-counts > span { gap:3px; white-space:nowrap; }
  .fc-topic-counts svg { width:13px; height:13px; }
  .fc-trow > .fc-pair,.fc-thead > :nth-child(3) { display:none; }
}
@media (min-width:721px) and (max-width:980px) {
  .fc-trow,.fc-thead { grid-template-columns:44px minmax(0,1fr) 72px; }
}
@media (max-width:720px) {
  .fc-post .fc-author { display:grid; grid-template-columns:40px minmax(0,1fr); gap:6px 9px; }
  .fc-author-identity {
    display:grid; grid-template-columns:minmax(0,max-content) max-content; align-items:baseline;
    gap:2px 7px; width:fit-content; text-align:start;
  }
  .fc-author-identity .fc-presence { order:0; }
  .fc-author-identity .fc-role { grid-column:1 / -1; }
  .fc-author .fc-status { grid-column:1 / -1; }
  .fc-post .fc-actions { gap:2px 6px; padding:5px 12px; }
  .fc-actions-group { display:flex; flex:1 0 auto; min-width:0; max-width:100%; justify-content:flex-end; gap:2px; }
  .fc-actions-group > .fc-link-btn {
    flex:1 1 auto; justify-content:center; min-width:0; min-height:36px;
    gap:4px; padding-inline:3px; text-align:center; overflow-wrap:anywhere;
  }
  .fc-actions-group:only-child > .fc-link-btn:only-child { flex-grow:0; }

  .forum-editor-tools { grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:4px 9px; }
  .forum-editor-tools .forum-format-tools { grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:3px 4px; }
  .forum-format-tools > .forum-format-group { display:contents; }
  .forum-format-tools .forum-format-button { flex:1 0 calc(20% - 4px); width:auto; min-height:40px; }
  .forum-format-tools:has([data-forum-format="model"]) .forum-format-button { flex-basis:calc(100% / 6 - 4px); }
  .forum-editor-tools > .forum-tool { min-width:0; min-height:40px; padding-inline:8px; }
  .forum-editor-tools > .forum-upload-policy { width:auto; padding:0; text-align:right; white-space:nowrap; }
}
@media (max-width:480px) {
  .fc-actions-group { flex-basis:100%; }
}
@media (max-width:360px) {
  .fc-actions-group + .fc-actions-group:has(> :nth-child(3)) > .fc-link-btn { flex-direction:column; min-height:42px; }
}
