/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/.pnpm/next@15.5.14_react-dom@19.2.4_react@19.2.4__react@19.2.4_sass@1.99.0/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/.pnpm/next@15.5.14_react-dom@19.2.4_react@19.2.4__react@19.2.4_sass@1.99.0/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/components/forum/forum.css ***!
  \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*
  Forum-specific styles. Imported by /forum routes.
  Mirrors idnc-new-design/Forum*.html. Foundation tokens come from globals.css.

  Approach:
  - Class names live in the .fx- prefix or unprefixed where they were already
    used in the design HTML (e.g. .thread-row, .post). Some unprefixed names
    are common (e.g. .chip, .post) — they're scoped under .fx-forum-page when
    risk of collision exists.
*/

/* ─── shared layout primitives ─── */
.fx-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-2);
}

.fx-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}

@keyframes fx-pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ─── breadcrumbs ─── */
.fx-crumbs {
  font-size: 12px;
  color: #86868B;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.fx-crumbs i,
.fx-crumbs svg { width: 12px; height: 12px; flex-shrink: 0; }
.fx-crumbs a { color: inherit; }
.fx-crumbs a:hover { color: #1D1D1F; }
.fx-crumbs .here { color: #1D1D1F; font-weight: 500; }

/* ─── page hero (forum index) ─── */
.fx-page-head { padding-block: 24px 32px; }
.fx-page-head .fx-crumbs { margin-bottom: 16px; }
.fx-page-head-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: end;
}
@media (max-width: 880px) {
  .fx-page-head-grid { grid-template-columns: 1fr; gap: 24px; }
}
.fx-page-head h1 {
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-top: 14px;
}
.fx-page-head h1 em {
  font-style: normal;
  color: #86868B;
  font-weight: 600;
}
.fx-page-head .lede {
  margin-top: 18px;
  font-size: 16px;
  color: #86868B;
  line-height: 1.65;
  max-width: 48ch;
}

/* ─── quick stats panel (home + category hero) ─── */
.fx-quick-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}
.fx-qs { display: flex; flex-direction: column; gap: 2px; }
.fx-qs .v {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-feature-settings: 'tnum' 1;
}
.fx-qs .v .delta {
  font-size: 10px;
  color: #166534;
  font-weight: 600;
  margin-right: 6px;
  vertical-align: 1px;
}
.fx-qs .k {
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #86868B;
  font-weight: 600;
}
.fx-qs .live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #22C55E;
  border-radius: 9999px;
  animation: fx-pulse 2s ease-in-out infinite;
  margin-left: 6px;
  vertical-align: 1px;
}

/* ─── 3-column layout (forum index) ─── */
.fx-layout-3 {
  display: grid;
  grid-template-columns: 280px 1fr 300px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 1100px) {
  .fx-layout-3 { grid-template-columns: 1fr 280px; }
  .fx-layout-3 .fx-col-left { display: none; }
}
@media (max-width: 880px) {
  .fx-layout-3 { grid-template-columns: 1fr; }
  .fx-layout-3 .fx-col-right { display: none; }
}

/* ─── 2-column layout (category + topic) ─── */
.fx-layout-2 {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 980px) {
  .fx-layout-2 { grid-template-columns: 1fr; }
  .fx-layout-2 .fx-col-right { display: none; }
}

.fx-col-left,
.fx-col-right {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.fx-col-center {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.fx-col-center.tight { gap: 20px; }

/* ─── left col: category nav ─── */
.fx-cat-nav { padding: 14px; }
.fx-cat-nav h3 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #86868B;
  padding: 6px 8px 12px;
}
.fx-cat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 14px;
  font-size: 13px;
  color: #1D1D1F;
  transition: background 200ms ease;
}
.fx-cat-row:hover { background: rgba(0, 0, 0, 0.04); }
.fx-cat-row.active { background: #1D1D1F; color: #fff; }
.fx-cat-row.active .count { color: rgba(255, 255, 255, 0.5); }
.fx-cat-row .swatch {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  flex-shrink: 0;
}
.fx-cat-row .name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fx-cat-row .count {
  font-size: 11px;
  color: #86868B;
  font-feature-settings: 'tnum' 1;
}
.fx-cat-row.active .swatch {
  outline: 2px solid rgba(255, 255, 255, 0.25);
  outline-offset: 1px;
}

/* ─── countries chip list ─── */
.fx-country-list { padding: 14px; }
.fx-country-list h3 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #86868B;
  padding: 6px 8px 12px;
}
.fx-country-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.04);
  margin: 3px;
}
.fx-country-chip:hover { background: rgba(0, 0, 0, 0.08); }
.fx-country-chip .num { color: #86868B; font-feature-settings: 'tnum' 1; }

/* ─── filter strip (chips + search + new btn) ─── */
.fx-filter-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}
.fx-filter-strip .filters {
  display: flex;
  gap: 4px;
  flex: 1;
  flex-wrap: wrap;
}
.fx-chip {
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 9999px;
  color: #1D1D1F;
  transition: background 200ms ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.fx-chip:hover { background: rgba(0, 0, 0, 0.04); }
.fx-chip.active { background: #1D1D1F; color: #fff; }
.fx-chip .badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 9999px;
  background: #FEF3C7;
  color: #92400E;
  font-weight: 600;
  font-feature-settings: 'tnum' 1;
}
.fx-chip.active .badge { background: rgba(255, 255, 255, 0.18); color: #fff; }

.fx-filter-strip .search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 9999px;
  padding: 8px 14px;
  min-width: 180px;
}
.fx-filter-strip .search svg { width: 14px; height: 14px; color: #86868B; }
.fx-filter-strip .search input {
  background: transparent;
  border: 0;
  outline: 0;
  font-family: inherit;
  font-size: 13px;
  color: #1D1D1F;
  width: 100%;
}
.fx-filter-strip .search input::-moz-placeholder { color: #86868B; }
.fx-filter-strip .search input::placeholder { color: #86868B; }

.fx-new-btn {
  background: #1D1D1F;
  color: #fff;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fx-new-btn svg { width: 14px; height: 14px; }
.fx-new-btn:hover { background: #000; }

/* ─── welcome strip (logged-in dark pill) ─── */
.fx-welcome {
  padding: 16px 22px;
  background: #1D1D1F;
  color: #fff;
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  position: relative;
}
.fx-welcome::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.05), transparent 40%);
}
.fx-welcome > * { position: relative; z-index: 1; }
.fx-welcome .av {
  width: 42px; height: 42px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #86868B, #3a3a3c);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.fx-welcome .text { flex: 1; min-width: 0; }
.fx-welcome .greet {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 2px;
}
.fx-welcome .body { font-size: 15px; font-weight: 500; line-height: 1.4; }
.fx-welcome .body strong { font-weight: 700; }
.fx-welcome .cta {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 9px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.fx-welcome .cta:hover { background: rgba(255, 255, 255, 0.14); }
.fx-welcome .cta svg { width: 13px; height: 13px; }

/* ─── pinned cards (2-up) ─── */
.fx-pinned-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 680px) {
  .fx-pinned-wrap { grid-template-columns: 1fr; }
}
.fx-pinned {
  padding: 20px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 200ms ease, box-shadow 200ms ease;
  position: relative;
  overflow: hidden;
}
.fx-pinned:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}
.fx-pinned .top { display: flex; align-items: center; gap: 8px; }
.fx-pin-icon {
  width: 24px; height: 24px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fx-pin-icon svg { width: 13px; height: 13px; color: #1D1D1F; }
.fx-pinned .label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #1D1D1F;
}
.fx-pinned h4 {
  font-size: 16px; font-weight: 600;
  line-height: 1.35; letter-spacing: -0.015em;
}
.fx-pinned .summary {
  font-size: 13px; color: #86868B; line-height: 1.55;
}
.fx-pinned .by {
  font-size: 11px; color: #86868B;
  display: flex; align-items: center; gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.fx-pinned .by .av {
  width: 18px; height: 18px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #1D1D1F, #86868B);
  color: #fff;
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ─── thread section header ─── */
.fx-thread-section .head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 4px;
  flex-wrap: wrap;
  gap: 10px;
}
.fx-thread-section .head h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.fx-thread-section .head h2 svg {
  width: 18px; height: 18px; color: #86868B;
}
.fx-thread-section .head .sort {
  font-size: 12px;
  color: #86868B;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.fx-thread-section .head .sort .sep {
  width: 1px; height: 10px; background: rgba(0, 0, 0, 0.15);
}
.fx-thread-section .head .sort a {
  color: #1D1D1F; font-weight: 500;
}
.fx-thread-section .head .sort a.active {
  background: #1D1D1F; color: #fff;
  padding: 4px 10px; border-radius: 9999px;
}

/* ─── thread list + thread row (4-col) ─── */
.fx-thread-list {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.fx-thread {
  display: grid;
  grid-template-columns: 36px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 200ms ease;
  position: relative;
}
.fx-thread:first-of-type { border-top: 0; }
.fx-thread:hover { background: rgba(0, 0, 0, 0.02); }
.fx-thread.unread::before {
  content: "";
  position: absolute;
  inset-inline-end: 0;       /* RTL leading edge */
  top: 18px;
  bottom: 18px;
  width: 3px;
  background: #1D1D1F;
  border-radius: 0 3px 3px 0;
}
.fx-thread .avatar {
  width: 36px; height: 36px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--g1, #1D1D1F), var(--g2, #86868B));
  color: #fff;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fx-thread .body { min-width: 0; }
.fx-thread .head-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 5px; flex-wrap: wrap;
}
.fx-thread .cat-tag {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: #1D1D1F;
  display: inline-flex; align-items: center; gap: 6px;
}
.fx-thread .cat-tag .swatch {
  width: 6px; height: 6px; border-radius: 2px;
}
.fx-thread .country-tag {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: #1D1D1F;
  background: rgba(0, 0, 0, 0.04);
  padding: 3px 8px; border-radius: 6px;
}
.fx-thread .new-tag {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: #92400E;
  background: #FEF3C7;
  padding: 2px 7px; border-radius: 9999px;
}
.fx-thread .solved-tag {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: #166534;
  background: #DCFCE7;
  padding: 2px 7px; border-radius: 9999px;
  display: inline-flex; align-items: center; gap: 4px;
}
.fx-thread .solved-tag svg { width: 10px; height: 10px; }
.fx-thread h3 {
  font-size: 15px; font-weight: 600;
  line-height: 1.4; letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.fx-thread.unread h3 { font-weight: 700; }
.fx-thread .preview {
  font-size: 12px; color: #86868B;
  line-height: 1.5; margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.fx-thread .by-line {
  margin-top: 8px;
  font-size: 11px; color: #86868B;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.fx-thread .by-line .name { color: #1D1D1F; font-weight: 500; }
.fx-thread .by-line .tag-pill {
  background: rgba(0, 0, 0, 0.04);
  color: #1D1D1F;
  padding: 1px 7px; border-radius: 6px;
  font-weight: 500;
}
.fx-thread .by-line .dot-sep { color: rgba(0, 0, 0, 0.2); }

.fx-thread .stats {
  display: flex; flex-direction: column;
  align-items: center; gap: 2px;
  min-width: 48px;
}
.fx-thread .stats .v {
  font-size: 14px; font-weight: 700;
  letter-spacing: -0.01em;
  font-feature-settings: 'tnum' 1;
}
.fx-thread .stats .k {
  font-size: 9px; letter-spacing: 0.08em;
  text-transform: uppercase; color: #86868B;
  font-weight: 600;
}
.fx-thread .stats.unread-stat {
  background: #FEF3C7;
  padding: 6px 8px;
  border-radius: 10px;
}
.fx-thread .stats.unread-stat .v,
.fx-thread .stats.unread-stat .k { color: #92400E; }

.fx-thread .last-poster {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 4px;
  min-width: 80px;
}
.fx-thread .last-poster .when {
  font-size: 11px; color: #86868B;
  font-feature-settings: 'tnum' 1;
}
.fx-thread .last-poster .who {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: #1D1D1F;
}
.fx-thread .last-poster .who .av {
  width: 18px; height: 18px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--g1, #1D1D1F), var(--g2, #86868B));
  color: #fff;
  font-size: 8px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.fx-thread-list .more {
  padding: 18px;
  text-align: center;
  font-size: 13px;
  color: #86868B;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 200ms ease;
  display: block;
}
.fx-thread-list .more:hover {
  background: rgba(0, 0, 0, 0.02);
  color: #1D1D1F;
}
.fx-thread-list .more svg {
  width: 14px; height: 14px;
  display: inline-block;
  vertical-align: -3px;
  margin-inline-start: 6px;
}

/* ─── right rail panels ─── */
.fx-panel-pad { padding: 20px; }
.fx-panel-pad h3 {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #86868B; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.fx-panel-pad h3 .num {
  color: #1D1D1F;
  font-feature-settings: 'tnum' 1;
}
.fx-panel-pad h3 .more-link {
  font-size: 11px;
  color: #86868B;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}

/* online list */
.fx-online { display: flex; flex-direction: column; }
.fx-online-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 12px;
}
.fx-online-row:first-of-type { border-top: 0; padding-top: 0; }
.fx-online-row .av {
  width: 28px; height: 28px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--g1, #1D1D1F), var(--g2, #86868B));
  color: #fff;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.fx-online-row .av::after {
  content: "";
  position: absolute;
  bottom: -1px;
  inset-inline-start: -1px;
  width: 9px; height: 9px;
  border-radius: 9999px;
  background: #22C55E;
  border: 2px solid #fff;
}
.fx-online-row .av.away::after { background: #86868B; }
.fx-online-row .body { flex: 1; min-width: 0; }
.fx-online-row .name {
  font-size: 12px; font-weight: 600;
  color: #1D1D1F; line-height: 1.3;
}
.fx-online-row .where {
  font-size: 11px; color: #86868B;
  display: flex; align-items: center; gap: 4px;
  margin-top: 1px;
}
.fx-online-row .where svg { width: 10px; height: 10px; }
.fx-online-row .role {
  font-size: 9px; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 700;
  padding: 2px 6px; border-radius: 5px;
  background: rgba(0, 0, 0, 0.04); color: #86868B;
}
.fx-online-row .role.mod { background: #1D1D1F; color: #fff; }

.fx-online-footer {
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 11px;
  color: #86868B;
  display: flex;
  justify-content: space-between;
}
.fx-online-footer a { color: #1D1D1F; font-weight: 500; }

/* live activity */
.fx-activity-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 12px;
}
.fx-activity-row:first-of-type { border-top: 0; padding-top: 0; }
.fx-activity-row .ico {
  width: 24px; height: 24px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.fx-activity-row .ico svg { width: 12px; height: 12px; color: #86868B; }
.fx-activity-row .body { flex: 1; min-width: 0; }
.fx-activity-row .body p {
  font-size: 12px; line-height: 1.45; color: #1D1D1F;
}
.fx-activity-row .body p strong { font-weight: 600; }
.fx-activity-row .body p a { color: #1D1D1F; font-weight: 600; }
.fx-activity-row .body .when {
  font-size: 10px; color: #86868B;
  margin-top: 3px;
  font-feature-settings: 'tnum' 1;
}

/* telegram nudge (dark gradient) */
.fx-tg-nudge {
  padding: 18px;
  background: linear-gradient(180deg, #1D1D1F, #2a2a2c);
  color: #fff;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}
.fx-tg-nudge::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06), transparent 50%);
}
.fx-tg-nudge > * { position: relative; z-index: 1; }
.fx-tg-nudge .label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  margin-bottom: 10px;
}
.fx-tg-nudge h4 { font-size: 15px; font-weight: 600; line-height: 1.4; }
.fx-tg-nudge p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
  margin-top: 8px;
}
.fx-tg-nudge .cta {
  margin-top: 14px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 9px 14px;
  font-size: 12px; font-weight: 500;
}
.fx-tg-nudge .cta svg { width: 13px; height: 13px; }
.fx-tg-nudge .cta:hover { background: rgba(255, 255, 255, 0.14); }

/* ─── floating action button ─── */
.fx-fab {
  position: fixed;
  bottom: 32px;
  inset-inline-start: 32px;
  z-index: 40;
  width: 56px; height: 56px;
  border-radius: 9999px;
  background: #1D1D1F;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 200ms ease;
}
.fx-fab:hover { transform: translateY(-2px) scale(1.04); }
.fx-fab svg { width: 22px; height: 22px; }
@media (max-width: 760px) {
  .fx-fab { bottom: 20px; inset-inline-start: 20px; }
}

/* ─── CATEGORY HERO ─── */
.fx-cat-header {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 32px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
  padding: 36px;
  overflow: hidden;
  position: relative;
}
.fx-cat-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 90% 10%, rgba(0, 0, 0, 0.025), transparent 40%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 400'%3E%3Cg fill='none' stroke='black' stroke-width='0.4' opacity='0.06'%3E%3Cpath d='M-50,80 Q200,40 400,80 T850,70'/%3E%3Cpath d='M-50,140 Q200,100 400,140 T850,130'/%3E%3Cpath d='M-50,200 Q200,160 400,200 T850,190'/%3E%3Cpath d='M-50,260 Q200,220 400,260 T850,250'/%3E%3Cpath d='M-50,320 Q200,280 400,320 T850,310'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover, cover;
}
.fx-cat-header > * { position: relative; z-index: 1; }
.fx-cat-head-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 880px) {
  .fx-cat-head-grid { grid-template-columns: 1fr; gap: 28px; }
}
.fx-cat-head-grid .top-bar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.fx-cat-head-grid .top-bar .swatch {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: #1D1D1F;
  display: flex; align-items: center; justify-content: center;
}
.fx-cat-head-grid .top-bar .swatch svg { width: 16px; height: 16px; color: #fff; }
.fx-cat-head-grid .top-bar .label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #86868B;
}
.fx-cat-header h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.fx-cat-header h1 em {
  font-style: normal;
  color: #86868B;
  font-weight: 600;
}
.fx-cat-header .lede {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.7;
  color: #1D1D1F;
  max-width: 48ch;
}
.fx-cat-header .lede strong { font-weight: 600; }
.fx-cat-header .lede em {
  font-style: normal;
  background: rgba(0, 0, 0, 0.04);
  padding: 1px 6px;
  border-radius: 5px;
}

.fx-cat-actions {
  margin-top: 24px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.fx-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 9999px;
  padding: 11px 18px;
  font-size: 13px; font-weight: 500;
  transition: transform 200ms ease, background 200ms ease;
}
.fx-btn-primary { background: #1D1D1F; color: #fff; }
.fx-btn-primary:hover { background: #000; transform: translateY(-1px); }
.fx-btn-ghost { background: rgba(0, 0, 0, 0.04); color: #1D1D1F; }
.fx-btn-ghost:hover { background: rgba(0, 0, 0, 0.08); }
.fx-btn-line {
  background: #fff;
  color: #1D1D1F;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.fx-btn-line:hover { background: rgba(0, 0, 0, 0.02); }
.fx-btn svg { width: 14px; height: 14px; stroke-width: 2.25; }

/* category info side (stats + mods) */
.fx-cat-info { display: flex; flex-direction: column; gap: 18px; }
.fx-cat-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.fx-cat-stat {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 18px;
  padding: 14px 16px;
}
.fx-cat-stat .v {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.025em;
  font-feature-settings: 'tnum' 1;
}
.fx-cat-stat .v .delta {
  font-size: 10px;
  color: #166534;
  font-weight: 600;
  margin-right: 6px;
  vertical-align: 1px;
}
.fx-cat-stat .k {
  font-size: 10px; letter-spacing: 0.10em;
  text-transform: uppercase; color: #86868B;
  font-weight: 600; margin-top: 2px;
}
.fx-cat-stat .live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: #22C55E;
  border-radius: 9999px;
  animation: fx-pulse 2s ease-in-out infinite;
  margin-left: 6px; vertical-align: 1px;
}

.fx-mods {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex; align-items: center; gap: 14px;
}
.fx-mods .label {
  font-size: 10px; letter-spacing: 0.10em;
  text-transform: uppercase; color: #86868B;
  font-weight: 600; flex-shrink: 0;
}
.fx-mods .stack { display: flex; }
.fx-mods .stack .av {
  width: 30px; height: 30px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--g1, #1D1D1F), var(--g2, #86868B));
  color: #fff;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #F5F5F7;
}
.fx-mods .stack .av + .av { margin-right: -10px; }
.fx-mods .text { font-size: 12px; color: #1D1D1F; line-height: 1.4; min-width: 0; }
.fx-mods .text .names { font-weight: 500; }
.fx-mods .text .role { color: #86868B; font-size: 11px; }

/* sub-categories chip strip */
.fx-subcats {
  display: flex; gap: 8px;
  padding: 6px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 24px;
}
.fx-subcats::-webkit-scrollbar { display: none; }
.fx-subcat {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 9999px;
  font-size: 13px; color: #1D1D1F;
  transition: background 200ms ease;
}
.fx-subcat:hover { background: rgba(0, 0, 0, 0.04); }
.fx-subcat.active { background: #1D1D1F; color: #fff; }
.fx-subcat .num {
  font-size: 11px;
  color: #86868B;
  font-feature-settings: 'tnum' 1;
}
.fx-subcat.active .num { color: rgba(255, 255, 255, 0.55); }

/* ─── FAQ / pinned answers (dark card, category page) ─── */
.fx-faq-card {
  background: #1D1D1F;
  color: #fff;
  border-radius: 28px;
  padding: 28px;
  overflow: hidden;
  position: relative;
}
.fx-faq-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.05), transparent 50%);
  pointer-events: none;
}
.fx-faq-card > * { position: relative; z-index: 1; }
.fx-faq-card .top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; flex-wrap: wrap; gap: 12px;
}
.fx-faq-card .top .label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.fx-faq-card .top .label svg { width: 13px; height: 13px; }
.fx-faq-card .top h2 {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.2;
  margin-top: 8px;
}
.fx-faq-card .top p {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 42ch;
}
.fx-faq-card .top a.more {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 8px 14px;
  border-radius: 9999px;
  font-size: 12px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.fx-faq-card .top a.more:hover { background: rgba(255, 255, 255, 0.14); }
.fx-faq-card .top a.more svg { width: 12px; height: 12px; }

.fx-faq-list { display: flex; flex-direction: column; gap: 0; }
.fx-faq-item {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 14px 0;
}
.fx-faq-item:first-of-type { border-top: 0; padding-top: 6px; }
.fx-faq-item .q {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  font-size: 14px; font-weight: 500;
  line-height: 1.45; cursor: pointer;
}
.fx-faq-item .q .arrow {
  width: 22px; height: 22px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.fx-faq-item .q .arrow svg { width: 11px; height: 11px; color: rgba(255, 255, 255, 0.7); }
.fx-faq-item .a {
  margin-top: 10px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}
.fx-faq-item .a .src {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  display: flex; align-items: center; gap: 6px;
}
.fx-faq-item .a .src a { color: #fff; font-weight: 500; }
.fx-faq-item .a .src svg { width: 11px; height: 11px; }

/* ─── pagination ─── */
.fx-pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px;
  margin-top: 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
  flex-wrap: wrap;
}
.fx-pagination .info {
  font-size: 12px;
  color: #86868B;
  padding: 0 14px;
  font-feature-settings: 'tnum' 1;
}
.fx-pagination .pages { display: flex; gap: 2px; padding: 2px; flex-wrap: wrap; }
.fx-page {
  min-width: 32px;
  height: 32px;
  border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; color: #1D1D1F;
  padding: 0 10px;
}
.fx-page:hover { background: rgba(0, 0, 0, 0.04); }
.fx-page.active { background: #1D1D1F; color: #fff; font-weight: 600; }
.fx-page.disabled { color: rgba(0, 0, 0, 0.2); pointer-events: none; }
.fx-page svg { width: 13px; height: 13px; }

/* ─── right rail: subscribe ─── */
.fx-sub-panel { padding: 18px; }
.fx-sub-panel .label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #86868B;
  font-weight: 600;
  margin-bottom: 6px;
}
.fx-sub-panel h4 { font-size: 14px; font-weight: 600; line-height: 1.4; }
.fx-sub-panel p {
  font-size: 12px; color: #86868B;
  margin-top: 6px; line-height: 1.55;
}
.fx-sub-controls {
  margin-top: 14px;
  display: flex; gap: 6px;
  background: #F5F5F7;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 9999px;
  padding: 4px;
}
.fx-sub-opt {
  flex: 1;
  padding: 8px 10px;
  border-radius: 9999px;
  font-size: 11px; font-weight: 500;
  color: #86868B;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  transition: background 200ms ease, color 200ms ease;
  background: transparent; border: 0;
  font-family: inherit;
}
.fx-sub-opt svg { width: 11px; height: 11px; }
.fx-sub-opt:hover { color: #1D1D1F; }
.fx-sub-opt.active { background: #1D1D1F; color: #fff; }

/* leaderboard */
.fx-leader-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.fx-leader-row:first-of-type { border-top: 0; padding-top: 0; }
.fx-leader-row .rank {
  width: 20px;
  font-size: 11px; font-weight: 700;
  color: #86868B;
  font-feature-settings: 'tnum' 1;
  text-align: center;
}
.fx-leader-row .av {
  width: 28px; height: 28px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--g1, #1D1D1F), var(--g2, #86868B));
  color: #fff;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fx-leader-row .body { flex: 1; min-width: 0; }
.fx-leader-row .name { font-size: 12px; font-weight: 600; line-height: 1.3; }
.fx-leader-row .where { font-size: 11px; color: #86868B; margin-top: 1px; }
.fx-leader-row .score {
  font-size: 13px; font-weight: 700; color: #1D1D1F;
  font-feature-settings: 'tnum' 1;
}
.fx-leader-row .score small {
  font-size: 10px; font-weight: 600;
  color: #86868B; margin-right: 3px;
}

/* tag cloud */
.fx-tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-tag-cloud a {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.04);
  color: #1D1D1F;
}
.fx-tag-cloud a:hover { background: rgba(0, 0, 0, 0.08); }
.fx-tag-cloud a .num {
  font-size: 10px;
  color: #86868B;
  font-feature-settings: 'tnum' 1;
  margin-right: 4px;
}
.fx-tag-cloud a.large { font-size: 14px; font-weight: 600; }
.fx-tag-cloud a.medium { font-size: 13px; font-weight: 500; }

/* related rows (sidebar) */
.fx-related-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 200ms ease;
  border-radius: 8px;
}
.fx-related-row:first-of-type { border-top: 0; padding-top: 0; }
.fx-related-row .ico {
  width: 28px; height: 28px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.04);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fx-related-row .ico svg { width: 13px; height: 13px; color: #1D1D1F; }
.fx-related-row .body { flex: 1; min-width: 0; }
.fx-related-row .name { font-size: 13px; font-weight: 500; }
.fx-related-row .num {
  font-size: 11px;
  color: #86868B;
  font-feature-settings: 'tnum' 1;
}

/* related (block layout, used on topic page) */
.fx-related-block {
  display: block;
  padding: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 200ms ease;
}
.fx-related-block:first-of-type { border-top: 0; padding-top: 0; }
.fx-related-block .tags {
  display: flex; gap: 6px; margin-bottom: 4px;
}
.fx-related-block .country-tag {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: #1D1D1F;
  background: rgba(0, 0, 0, 0.04);
  padding: 2px 6px; border-radius: 5px;
}
.fx-related-block .country-tag.solved {
  background: #DCFCE7; color: #166534;
}
.fx-related-block h4 {
  font-size: 13px; font-weight: 500;
  line-height: 1.45; color: #1D1D1F;
}
.fx-related-block .meta-row {
  font-size: 11px; color: #86868B;
  margin-top: 4px;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.fx-related-block .meta-row .v {
  color: #1D1D1F; font-weight: 500;
  font-feature-settings: 'tnum' 1;
}

/* ─── TOPIC HEADER CARD ─── */
.fx-topic-head {
  padding: 32px 36px 28px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}
.fx-topic-head .tags {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 14px;
}
.fx-topic-head .country-tag {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: #1D1D1F;
  background: rgba(0, 0, 0, 0.04);
  padding: 4px 10px; border-radius: 6px;
}
.fx-topic-head .solved-tag {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: #166534;
  background: #DCFCE7;
  padding: 4px 10px; border-radius: 9999px;
  display: inline-flex; align-items: center; gap: 4px;
}
.fx-topic-head .solved-tag svg { width: 11px; height: 11px; }
.fx-topic-head .meta-tag { font-size: 11px; color: #86868B; }
.fx-topic-head h1 {
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  text-wrap: pretty;
}
.fx-topic-head .sub-meta {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #86868B;
}
.fx-topic-head .sub-meta .stat {
  display: inline-flex; align-items: center; gap: 6px;
}
.fx-topic-head .sub-meta .stat svg { width: 13px; height: 13px; }
.fx-topic-head .sub-meta .stat .v {
  color: #1D1D1F; font-weight: 600;
  font-feature-settings: 'tnum' 1;
}
.fx-topic-head .sub-meta .actions {
  margin-inline-start: auto;
  display: flex; gap: 6px;
}

.fx-icon-btn {
  width: 34px; height: 34px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.04);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 200ms ease;
  border: 0; cursor: pointer; padding: 0;
}
.fx-icon-btn:hover { background: rgba(0, 0, 0, 0.08); }
.fx-icon-btn svg { width: 14px; height: 14px; color: #1D1D1F; }

/* accepted-answer teaser */
.fx-accepted-teaser {
  padding: 20px 24px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-inline-end: 3px solid #166534;
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}
.fx-accepted-teaser .badge {
  display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: #DCFCE7;
  color: #166534;
}
.fx-accepted-teaser .badge svg { width: 20px; height: 20px; }
.fx-accepted-teaser .body .label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #166534;
  font-weight: 700;
}
.fx-accepted-teaser .body p {
  font-size: 14px;
  color: #1D1D1F;
  margin-top: 4px;
  line-height: 1.5;
  max-width: 60ch;
}
.fx-accepted-teaser .body .by {
  margin-top: 6px;
  font-size: 12px;
  color: #86868B;
}
.fx-accepted-teaser .body .by .name { color: #1D1D1F; font-weight: 500; }
.fx-accepted-teaser .jump {
  background: #1D1D1F; color: #fff;
  padding: 9px 14px;
  border-radius: 9999px;
  font-size: 12px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.fx-accepted-teaser .jump:hover { background: #000; }
.fx-accepted-teaser .jump svg { width: 12px; height: 12px; }
@media (max-width: 680px) {
  .fx-accepted-teaser { grid-template-columns: 1fr; }
  .fx-accepted-teaser .jump { justify-self: start; }
}

/* ─── POSTS ─── */
.fx-post {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.fx-post-head {
  padding: 18px 24px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.fx-post.op .fx-post-head { background: #FAFAFA; }
.fx-post-head .av {
  width: 44px; height: 44px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--g1, #1D1D1F), var(--g2, #86868B));
  color: #fff;
  font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fx-post.op .fx-post-head .av {
  width: 52px; height: 52px;
  font-size: 17px;
}
.fx-post-head .who .top-row {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 2px;
}
.fx-post-head .name { font-size: 14px; font-weight: 600; color: #1D1D1F; }
.fx-post.op .fx-post-head .name { font-size: 15px; }
.fx-post-head .role-tag {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(0, 0, 0, 0.04);
  color: #1D1D1F;
  padding: 2px 7px; border-radius: 6px;
}
.fx-post-head .role-tag.op-tag { background: #1D1D1F; color: #fff; }
.fx-post-head .role-tag.mod-tag { background: #FEF3C7; color: #92400E; }
.fx-post-head .role-tag.solved-tag {
  background: #DCFCE7; color: #166534;
  display: inline-flex; align-items: center; gap: 3px;
}
.fx-post-head .role-tag.solved-tag svg { width: 10px; height: 10px; }
.fx-post-head .who-meta {
  font-size: 11px; color: #86868B;
  display: flex; gap: 10px;
  flex-wrap: wrap; align-items: center;
}
.fx-post-head .who-meta .dot-sep { color: rgba(0, 0, 0, 0.2); }
.fx-post-head .when {
  font-size: 12px; color: #86868B;
  font-feature-settings: 'tnum' 1;
  text-align: end;
}
.fx-post-head .when .num { color: #1D1D1F; font-weight: 500; }

/* post body */
.fx-post-body { padding: 24px 32px 28px; }
.fx-post.op .fx-post-body { padding: 28px 36px 32px; }
.fx-post-body p {
  font-size: 15px;
  line-height: 1.85;
  color: #1D1D1F;
  margin-bottom: 14px;
}
.fx-post.op .fx-post-body > p:first-of-type { font-size: 18px; line-height: 1.7; }
.fx-post.op .fx-post-body > p:first-of-type::first-letter {
  font-size: 1.4em;
  font-weight: 700;
  padding-left: 0.05em;
}
.fx-post-body strong { font-weight: 600; }
.fx-post-body em {
  font-style: normal;
  background: rgba(0, 0, 0, 0.04);
  padding: 1px 6px;
  border-radius: 5px;
}
.fx-post-body h2 {
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.025em;
  margin: 28px 0 12px;
  scroll-margin-top: 96px;
}
.fx-post-body h3 {
  font-size: 15px; font-weight: 600;
  margin: 20px 0 8px;
}
.fx-post-body ul,
.fx-post-body ol {
  padding-inline-start: 24px;
  margin: 6px 0 18px;
}
.fx-post-body li {
  font-size: 15px; line-height: 1.85;
  margin-bottom: 6px;
}
.fx-post-body li::marker { color: #86868B; }
.fx-post-body hr {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 20px 0;
}

/* TOC */
.fx-post-body .toc,
.fx-post-body nav.toc {
  margin: 14px 0 24px;
  padding: 18px 22px;
  background: rgba(0, 0, 0, 0.025);
  border-radius: 16px;
}
.fx-post-body .toc .label,
.fx-post-body nav.toc .label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #86868B;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.fx-post-body .toc .label svg,
.fx-post-body nav.toc .label svg { width: 12px; height: 12px; }
.fx-post-body .toc ol,
.fx-post-body nav.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.fx-post-body .toc li,
.fx-post-body nav.toc li {
  font-size: 13px;
  padding: 5px 0;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  display: flex; gap: 10px;
  margin: 0;
}
.fx-post-body .toc li:first-of-type,
.fx-post-body nav.toc li:first-of-type { border-top: 0; }
.fx-post-body .toc li .num,
.fx-post-body nav.toc li .num {
  color: #86868B; font-weight: 600;
  font-feature-settings: 'tnum' 1;
  min-width: 22px;
}
.fx-post-body .toc li a,
.fx-post-body nav.toc li a {
  color: #1D1D1F; flex: 1;
}
.fx-post-body .toc li a:hover,
.fx-post-body nav.toc li a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* facts grid */
.fx-post-body .facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 14px 0 22px;
}
@media (max-width: 680px) {
  .fx-post-body .facts { grid-template-columns: 1fr; }
}
.fx-post-body .fact {
  background: rgba(0, 0, 0, 0.025);
  border-radius: 14px;
  padding: 14px 16px;
}
.fx-post-body .fact .k {
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #86868B;
  font-weight: 600;
}
.fx-post-body .fact .v {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  margin-top: 4px;
}

/* image placeholder */
.fx-post-body .post-image {
  margin: 22px 0;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.04);
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  color: #86868B;
  font-size: 12px;
  border: 1px dashed rgba(0, 0, 0, 0.12);
  flex-direction: column; gap: 8px;
}
.fx-post-body .post-image svg { width: 24px; height: 24px; }

/* quote */
.fx-post-body blockquote.quote {
  margin: 18px 0;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.03);
  border-inline-end: 3px solid rgba(0, 0, 0, 0.2);
  border-radius: 12px;
}
.fx-post-body blockquote.quote .qsrc {
  font-size: 11px;
  color: #86868B;
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.fx-post-body blockquote.quote .qsrc svg { width: 12px; height: 12px; }
.fx-post-body blockquote.quote .qsrc .name { color: #1D1D1F; font-weight: 500; }
.fx-post-body blockquote.quote p {
  font-size: 14px !important;
  line-height: 1.7 !important;
  margin-bottom: 0 !important;
  color: #1D1D1F;
}

/* warning callout */
.fx-post-body .callout-warn {
  margin: 20px 0;
  padding: 14px 18px;
  background: #FEF3C7;
  border-radius: 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}
.fx-post-body .callout-warn svg {
  width: 18px; height: 18px;
  color: #92400E;
  margin-top: 2px;
}
.fx-post-body .callout-warn p {
  font-size: 13px !important;
  line-height: 1.65 !important;
  color: #92400E !important;
  margin-bottom: 0 !important;
}
.fx-post-body .callout-warn p strong { font-weight: 700; }

/* post footer */
.fx-post-foot {
  padding: 14px 24px;
  background: #FAFAFA;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.fx-post.op .fx-post-foot { background: #F5F5F7; }
.fx-reactions { display: flex; gap: 6px; flex-wrap: wrap; }
.fx-react {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 12px;
  color: #1D1D1F;
  transition: background 200ms ease;
  font-family: inherit;
  cursor: pointer;
}
.fx-react:hover { background: rgba(0, 0, 0, 0.04); }
.fx-react.active {
  background: #1D1D1F;
  color: #fff;
  border-color: #1D1D1F;
}
.fx-react svg { width: 13px; height: 13px; }
.fx-react .num { font-weight: 600; font-feature-settings: 'tnum' 1; }

.fx-post-foot .right {
  margin-inline-start: auto;
  display: flex; gap: 4px;
}
.fx-post-foot .right .fx-icon-btn { background: transparent; }
.fx-post-foot .right .fx-icon-btn:hover { background: rgba(0, 0, 0, 0.06); }
.fx-reply-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  color: #1D1D1F;
  background: transparent;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.fx-reply-btn:hover { background: rgba(0, 0, 0, 0.06); }
.fx-reply-btn svg { width: 13px; height: 13px; }

/* accepted post */
.fx-post.accepted {
  border: 2px solid #166534;
  box-shadow: 0 12px 40px rgba(22, 101, 52, 0.10);
}
.fx-post.accepted .fx-post-head { background: #F0FDF4; }
.fx-accepted-banner {
  padding: 10px 24px;
  background: #DCFCE7;
  color: #166534;
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  letter-spacing: -0.01em;
}
.fx-accepted-banner svg { width: 14px; height: 14px; }
.fx-accepted-banner .by {
  margin-inline-start: auto;
  color: #166534;
  font-weight: 500;
  opacity: 0.7;
}

/* day divider */
.fx-day-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 8px 4px;
  font-size: 11px;
  color: #86868B;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.fx-day-divider::before,
.fx-day-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}

/* paginated replies indicator */
.fx-reply-count-bar {
  padding: 14px 22px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  margin-top: 6px;
}
.fx-reply-count-bar h2 {
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.025em;
  display: flex; align-items: center; gap: 10px;
}
.fx-reply-count-bar h2 svg { width: 16px; height: 16px; color: #86868B; }
.fx-reply-count-bar .sort {
  font-size: 12px;
  color: #86868B;
  display: inline-flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.fx-reply-count-bar .sort .sep {
  width: 1px; height: 10px; background: rgba(0, 0, 0, 0.15);
}
.fx-reply-count-bar .sort a { color: #1D1D1F; font-weight: 500; }
.fx-reply-count-bar .sort a.active {
  background: #1D1D1F; color: #fff;
  padding: 4px 10px; border-radius: 9999px;
}

.fx-show-more-row {
  text-align: center;
  padding: 8px 0;
}
.fx-show-more-row a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  font-size: 12px;
  color: #1D1D1F;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}
.fx-show-more-row a svg { width: 14px; height: 14px; }

/* ─── topic right rail ─── */
.fx-author-card { padding: 22px; text-align: center; }
.fx-author-card .av-big {
  width: 64px; height: 64px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #3a3a3c, #1D1D1F);
  color: #fff;
  font-size: 22px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.fx-author-card .name { font-size: 16px; font-weight: 600; }
.fx-author-card .role {
  font-size: 11px;
  color: #86868B;
  margin-top: 2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.fx-author-card .where {
  font-size: 13px;
  color: #1D1D1F;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
}
.fx-author-card .where svg { width: 12px; height: 12px; color: #86868B; }
.fx-author-card .bio {
  font-size: 12px;
  color: #86868B;
  margin-top: 10px;
  line-height: 1.6;
  text-align: center;
}
.fx-author-card .stats {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.fx-author-card .stats .stat .v {
  font-size: 16px; font-weight: 700;
  font-feature-settings: 'tnum' 1;
}
.fx-author-card .stats .stat .k {
  font-size: 9px;
  color: #86868B;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}
.fx-author-card .actions {
  margin-top: 16px;
  display: flex;
  gap: 6px;
}
.fx-author-card .actions .fx-btn {
  flex: 1;
  padding: 9px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  justify-content: center;
}

/* participants */
.fx-participants { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-participants .av-sm {
  width: 32px; height: 32px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--g1, #1D1D1F), var(--g2, #86868B));
  color: #fff;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
}
.fx-participants .av-sm .count-tag {
  position: absolute;
  bottom: -2px;
  inset-inline-end: -3px;
  background: #1D1D1F;
  color: #fff;
  font-size: 9px; font-weight: 600;
  padding: 1px 4px;
  border-radius: 9999px;
  border: 1.5px solid #fff;
  line-height: 1;
  font-feature-settings: 'tnum' 1;
}
.fx-participants .av-more {
  width: 32px; height: 32px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.04);
  color: #1D1D1F;
  font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  font-feature-settings: 'tnum' 1;
}

/* ─── sticky reply composer ─── */
.fx-reply-shell {
  position: fixed;
  bottom: 0;
  inset-inline-start: 0;
  inset-inline-end: 0;
  z-index: 40;
  background: linear-gradient(180deg, transparent 0%, rgba(245, 245, 247, 0.95) 30%, #F5F5F7 100%);
  padding: 32px 0 18px;
  pointer-events: none;
}
.fx-reply-shell .reply {
  pointer-events: auto;
  max-width: calc(1280px - 320px - 28px - 64px);
  margin-inline-start: max(32px, calc((100vw - 1280px) / 2 + 32px));
  margin-inline-end: calc(320px + 28px + max(32px, (100vw - 1280px) / 2 + 32px));
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.10);
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 36px 1fr auto auto;
  gap: 12px;
  align-items: center;
}
@media (max-width: 980px) {
  .fx-reply-shell .reply {
    margin-inline-end: max(20px, (100vw - 1280px) / 2 + 20px);
    margin-inline-start: max(20px, (100vw - 1280px) / 2 + 20px);
  }
}
.fx-reply-shell .reply .av {
  width: 36px; height: 36px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #86868B, #1D1D1F);
  color: #fff;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.fx-reply-shell .reply .field {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 13px;
  color: #86868B;
  border: 1px solid transparent;
  transition: background 200ms ease, border-color 200ms ease;
  display: block;
}
.fx-reply-shell .reply .field:hover { background: rgba(0, 0, 0, 0.06); }
.fx-reply-shell .reply .field strong { color: #1D1D1F; font-weight: 600; }
.fx-reply-shell .reply .tools { display: flex; gap: 2px; }
.fx-reply-shell .reply .tools .fx-icon-btn {
  width: 32px; height: 32px;
  background: transparent;
}
.fx-reply-shell .reply .tools .fx-icon-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}
.fx-reply-shell .reply .send {
  background: #1D1D1F;
  color: #fff;
  padding: 10px 16px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fx-reply-shell .reply .send:hover { background: #000; }
.fx-reply-shell .reply .send svg { width: 13px; height: 13px; }
@media (max-width: 680px) {
  .fx-reply-shell .reply {
    grid-template-columns: 32px 1fr auto;
    gap: 8px;
    padding: 10px 12px;
  }
  .fx-reply-shell .reply .tools { display: none; }
}

/* main bottom padding when topic page is open (so sticky composer doesn't cover content) */
.fx-topic-main { padding-bottom: 160px; }

