/* ============================================================
   Community — Profile Library + Forum
   Built on the site design tokens (--card / --border / --well /
   --text-* / --radius / --brand / --signal) so it flips cleanly
   for light/dark and matches the rest of the site exactly.
   ============================================================ */
.profiles { padding: 48px 0 72px; }
.profiles .wrap.narrow { max-width: 720px; }
.profiles-hero { max-width: 720px; margin-bottom: 28px; }
.profiles-hero h1 { margin: 0 0 8px; }

.profiles-filter {
  display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end;
  padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--card); margin-bottom: 28px;
}
.profiles-filter .form-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.profiles-filter input, .profiles-filter select {
  padding: 9px 11px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--well); color: var(--text-primary); font: inherit; min-width: 160px;
  transition: border-color .15s ease, background-color .15s ease;
}
.profiles-filter input:focus, .profiles-filter select:focus {
  border-color: var(--brand); background: var(--card-hover); outline: none;
}
.profiles-filter select {
  appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%237A8089' stroke-width='2'><polyline points='2 4 6 8 10 4'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center;
}
.profiles-filter .btn { white-space: nowrap; min-width: 0; }
.profiles-clear { align-self: center; font-size: 14px; text-decoration: underline; color: var(--text-mute); }
.profiles-count { font-size: 14px; color: var(--text-mute); margin: 0 0 14px; }

/* Shared empty / zero-result state — a styled dashed placeholder. */
.profiles-empty, .community-empty {
  color: var(--text-dim); padding: 28px 22px; text-align: center;
  background: var(--card); border: 1px dashed var(--hairline); border-radius: var(--radius);
}

.profile-grid {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.profile-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.profile-card:hover { border-color: var(--brand-soft); background: var(--card-hover); transform: translateY(-2px); }
.profile-card-link { display: block; padding: 18px; color: inherit; text-decoration: none; }
.profile-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.profile-card-head h2 { margin: 0; font-size: 18px; line-height: 1.25; }
.profile-card-title { margin: 6px 0 14px; font-size: 14px; color: var(--text-mute); }
.profile-card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--text-faint); margin-top: 12px; }

.profile-badge {
  flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 999px; text-transform: uppercase;
}
.profile-badge-verified { background: rgba(79,156,255,.16); color: var(--brand); }
.profile-badge-community { background: var(--well); color: var(--text-dim); border: 1px solid var(--hairline); }

/* Fingerprint — mini (vertical bars on cards) + full (labelled rows). */
.profile-fp-mini { display: flex; align-items: flex-end; gap: 4px; height: 38px; }
.profile-fp-mini .profile-fp-bar {
  position: relative; flex: 1 1 0; height: 100%; min-width: 0;
  background: var(--well); border-radius: 3px; overflow: hidden;
}
.profile-fp-mini .profile-fp-fill {
  position: absolute; left: 0; right: 0; bottom: 0; background: var(--brand); border-radius: 3px;
}
.profile-fp-full { display: grid; gap: 10px; margin-top: 14px; max-width: 560px; }
.profile-fp-row { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 12px; }
.profile-fp-label { font-size: 13px; color: var(--text-dim); }
.profile-fp-track { height: 10px; background: var(--well); border-radius: 999px; overflow: hidden; }
.profile-fp-full .profile-fp-fill { display: block; height: 100%; background: var(--brand); border-radius: 999px; }

.profile-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.profile-detail-head h1 { margin: 0 0 4px; }
.profile-crumb { margin: 0 0 18px; font-size: 14px; }
.profile-crumb a { text-decoration: none; color: var(--text-mute); }
.profile-crumb a:hover { color: var(--brand); }
.profile-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0 0 22px; padding: 0; }
.profile-facts > div { display: flex; flex-direction: column; }
.profile-facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); }
.profile-facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.profile-section { margin-top: 34px; }
.profile-section h2 { margin: 0 0 6px; font-size: 20px; }
.profile-notes { white-space: pre-wrap; line-height: 1.6; max-width: 640px; color: var(--text-dim); }
.profile-json {
  max-height: 460px; overflow: auto; padding: 16px; border-radius: var(--radius);
  background: var(--well); border: 1px solid var(--border);
  font-size: 12.5px; line-height: 1.5; white-space: pre; -webkit-overflow-scrolling: touch;
}

@media (max-width: 560px) {
  .profile-fp-row { grid-template-columns: 96px 1fr; }
  .profile-detail-head { flex-direction: column; }
}

/* ---- Community: submit, reviews, UGC ---- */
/* Hero / page action button-rows reuse the site .cta-row geometry. */
.profiles-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.feedback-success {
  border: 1px solid color-mix(in srgb, var(--ok) 55%, transparent);
  background: color-mix(in srgb, var(--ok) 12%, transparent);
  border-radius: var(--radius); padding: 12px 14px; margin: 0 0 18px; line-height: 1.5;
}
.feedback-success strong { display: block; }

/* User-generated content box: scope + safe defaults for rendered markdown. */
.ugc { line-height: 1.6; max-width: 680px; overflow-wrap: anywhere; }
.ugc h2, .ugc h3, .ugc h4 { color: var(--fg); line-height: 1.3; }
.ugc h2 { margin: 0 0 12px; font-size: 1.3em; }
.ugc h3 { margin: 0 0 10px; font-size: 1.15em; }
.ugc h4 { margin: 0 0 8px; font-size: 1em; }
.ugc p { margin: 0 0 12px; }
.ugc ul { margin: 0 0 12px; padding-left: 22px; list-style: disc; }
.ugc li { margin-bottom: 6px; }
.ugc a { color: var(--brand); }
.ugc strong { font-weight: 700; }
.ugc em { font-style: italic; }
.ugc code {
  font-family: var(--font-mono); font-size: .88em; color: var(--fg);
  background: var(--well); border: 1px solid var(--border); border-radius: 5px;
  padding: 1px 5px;
}
.ugc pre {
  max-width: 100%; overflow-x: auto; margin: 0 0 12px; padding: 12px 14px;
  background: var(--well); border: 1px solid var(--border); border-radius: var(--radius);
  white-space: pre; tab-size: 4;
}
.ugc pre code { padding: 0; border: 0; background: none; color: var(--fg-dim); }
.ugc blockquote {
  margin: 0 0 12px; padding: 10px 14px;
  background: var(--well); border: 1px solid var(--hairline); border-left: 3px solid var(--brand-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-mute); font-style: italic;
}
.ugc blockquote p { margin: 0; }
.ugc blockquote p + p { margin-top: 8px; }

/* Standalone YouTube links use a first-party consent facade. There is no
   remote thumbnail or iframe until the reader chooses to load the player. */
.forum-youtube-facade {
  display: grid; grid-template-columns: minmax(170px, 34%) minmax(0, 1fr);
  max-width: 760px; min-height: 180px; margin: 0 0 12px; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card);
}
.forum-youtube-poster {
  display: grid; place-items: center; min-height: 180px;
  background:
    radial-gradient(circle at 35% 25%, color-mix(in srgb, var(--brand) 28%, transparent), transparent 48%),
    linear-gradient(145deg, var(--well), color-mix(in srgb, var(--fg) 14%, var(--well)));
}
.forum-youtube-poster span {
  position: relative; width: 64px; height: 46px; border-radius: 13px;
  background: var(--brand); box-shadow: 0 8px 28px color-mix(in srgb, var(--brand) 28%, transparent);
}
.forum-youtube-poster span::after {
  content: ""; position: absolute; top: 50%; left: 52%; transform: translate(-42%, -50%);
  width: 0; height: 0; border-top: 9px solid transparent; border-bottom: 9px solid transparent;
  border-left: 15px solid white;
}
.forum-youtube-copy { align-self: center; padding: 18px 20px; }
.forum-youtube-title { display: block; margin-bottom: 6px; font-size: 16px; color: var(--fg); }
.ugc .forum-youtube-privacy { margin: 0 0 14px; color: var(--text-mute); font-size: 13px; line-height: 1.5; }
.forum-youtube-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.forum-youtube-actions a { font-size: 13px; }
.forum-youtube-facade.is-loaded { display: block; min-height: 200px; background: var(--card); }
.forum-youtube-player {
  display: block; width: 100%; min-height: 200px; aspect-ratio: 16 / 9; border: 0; background: #000;
}
.forum-youtube-loaded-actions { padding: 9px 12px; text-align: right; }
.forum-youtube-loaded-actions:empty { display: none; }
.forum-youtube-loaded-actions a { font-size: 13px; }

@media (max-width: 560px) {
  .forum-youtube-facade { grid-template-columns: 1fr; }
  .forum-youtube-poster { min-height: 145px; }
  .forum-youtube-copy { padding: 16px; }
}

.profile-stars { color: var(--signal); letter-spacing: 2px; font-size: 15px; line-height: 1; }
.profile-stars .star-empty { color: var(--text-faint); }
.profile-rating-line { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; }

.profile-reviews { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 16px; }
.profile-review { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.profile-review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.profile-review-by { font-weight: 600; }
.profile-review-date { color: var(--text-faint); }

.profile-submit-form, .profile-review-form { display: grid; gap: 14px; max-width: 640px; }
.profile-submit-form .form-row { display: flex; flex-wrap: wrap; gap: 14px; }
.profile-submit-form .form-row .form-field { flex: 1 1 140px; min-width: 0; }
.profile-submit-form textarea, .profile-review-form textarea,
.profile-submit-form input, .profile-submit-form select {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--well); color: var(--text-primary); font: inherit;
  transition: border-color .15s ease, background-color .15s ease;
}
.profile-submit-form textarea:focus, .profile-review-form textarea:focus,
.profile-submit-form input:focus, .profile-submit-form select:focus {
  border-color: var(--brand); background: var(--card-hover); outline: none;
}
.profile-submit-form textarea, .profile-review-form textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; resize: vertical;
}
.profile-submit-form input[type="file"] { font-family: inherit; padding: 8px 10px; color: var(--text-dim); }
.profile-review-form { margin-top: 8px; }
/* "paste or upload" divider on the share form */
.profile-or-sep {
  display: flex; align-items: center; gap: 12px; margin: 2px 0;
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint);
}
.profile-or-sep::before, .profile-or-sep::after {
  content: ""; flex: 1; height: 1px; background: var(--hairline);
}

/* ---- Community: search ---- */
.community-search-form {
  display: flex; flex-wrap: wrap; gap: 10px; max-width: 540px; margin: 4px 0 28px;
}
.community-search-form input[type="search"] {
  flex: 1 1 260px; min-width: 0; padding: 11px 14px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--well); color: var(--text-primary);
  font: inherit; font-size: 15px; transition: border-color .15s ease, background-color .15s ease;
}
.community-search-form input[type="search"]:focus { border-color: var(--brand); background: var(--card-hover); outline: none; }
.search-kind {
  display: inline-block; margin-right: 8px; padding: 1px 8px; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; border-radius: 4px;
  background: rgba(79,156,255,.16); color: var(--brand); vertical-align: 1px;
}

/* ============================================================
   Community FORUM look — the furniture people recognise as "a
   forum": breadcrumbs, a bordered board with divided rows, topic
   rows with reply counts + last activity, and classic two-column
   "postbit" threads (author rail on the left, post on the right).
   Built on the site tokens; letter-avatars are first-party.
   ============================================================ */

/* ---- Letter avatars (first-party; bg colour set inline) ---- */
.forum-avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 700;
  font-size: 15px; line-height: 1; text-transform: uppercase; overflow: hidden;
  /* Take the neon edge off the letter-avatar palette without maintaining a
     second set of hexes — solid colour discs are a forum staple, just calmer. */
  filter: saturate(.8);
}
.forum-avatar-sm { width: 26px; height: 26px; font-size: 12px; }
.forum-avatar-lg { width: 56px; height: 56px; font-size: 24px; }

/* ---- Breadcrumbs ---- */
.forum-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 16px; font-size: 13.5px; color: var(--text-faint); }
.forum-crumbs a { color: var(--text-mute); text-decoration: none; }
.forum-crumbs a:hover { color: var(--brand); }
.forum-crumbs .sep { color: var(--text-faint); }
.forum-crumbs .here { color: var(--text-dim); }

/* ---- Board frame (wraps a category or topic list) ---- */
.forum-board { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--card); margin: 0 0 22px; }
.forum-board-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 18px; background: var(--section-bg); border-bottom: 1px solid var(--border);
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-mute);
}
.forum-board-head .col-stat { font-size: 11px; }

/* ---- Category rows: icon | name+desc | topic count ---- */
.forum-cats, .forum-topics { list-style: none; margin: 0; padding: 0; }
.forum-cat, .forum-topic { border-bottom: 1px solid var(--hairline); }
.forum-cat:last-child, .forum-topic:last-child { border-bottom: none; }
.forum-cat:hover, .forum-topic:hover { background: var(--card-hover); }

/* Category rows: coloured left bar (set inline per category) | name+desc |
   topic/post counts | last-post column. */
.forum-cat { border-left: 4px solid var(--border); }
/* Fixed count/last-post tracks so columns line up vertically across rows. */
.forum-cat > a { display: grid; grid-template-columns: minmax(0, 1fr) 132px minmax(180px, 240px); align-items: center; gap: 0 18px; padding: 14px 18px; color: inherit; text-decoration: none; }
.forum-cat-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.forum-cat-name { font-size: 16.5px; font-weight: 700; color: var(--text-primary); }
.forum-cat-desc { font-size: 13.5px; color: var(--text-mute); line-height: 1.5; }
.forum-cat-badge {
  margin-left: 8px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px; background: var(--well); border: 1px solid var(--hairline);
  color: var(--text-mute); vertical-align: 2px;
}
.forum-cat-counts { text-align: right; white-space: nowrap; line-height: 1.4; font-size: 12px; color: var(--text-faint); }
.forum-cat-counts .n { font-weight: 700; color: var(--text-dim); font-variant-numeric: tabular-nums; }

/* Last-post column (forum index): small avatar + latest topic + by/when. */
.forum-lastpost { display: flex; align-items: center; gap: 10px; min-width: 0; }
.forum-lastpost-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.forum-lastpost-title { font-size: 13px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.forum-lastpost-meta { font-size: 11.5px; color: var(--text-faint); }
.forum-lastpost-empty { font-size: 12.5px; color: var(--text-faint); }

/* ---- Topic rows: starter avatar | title+meta | replies/views | last activity ----
   Fixed count/last tracks (124px/172px) so the columns line up across rows. */
.forum-topic > a { display: grid; grid-template-columns: auto minmax(0, 1fr) 124px 172px; align-items: center; gap: 0 14px; padding: 12px 16px; color: inherit; text-decoration: none; }
.forum-topic-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.forum-topic-title { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.forum-topic-by { font-size: 12.5px; color: var(--text-mute); }
/* coloured category tag (used in the Latest list + search). Soft tinted label,
   not a solid fill — keeps the colour-coding for scanning without the
   "ransom-note" loudness of saturated pills stacked down a list. Driven by an
   inline --cat custom property so one rule themes every category, and the
   color-mix toward --text-primary keeps the label legible in light AND dark. */
.forum-cat-tag {
  display: inline-block; padding: 1px 8px; margin-right: 8px; font-size: 11px; font-weight: 700;
  border-radius: 5px; vertical-align: 1px;
  background: color-mix(in srgb, var(--cat, var(--brand)) 15%, transparent);
  color: color-mix(in srgb, var(--cat, var(--brand)) 72%, var(--text-primary));
  border: 1px solid color-mix(in srgb, var(--cat, var(--brand)) 28%, transparent);
}
.forum-topic-counts { display: flex; gap: 0; justify-content: center; white-space: nowrap; }
.forum-topic-counts .stat { width: 62px; text-align: center; line-height: 1.15; }
.forum-topic-counts .n { display: block; font-size: 14px; font-weight: 700; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.forum-topic-counts .l { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-faint); }
/* meta (right-aligned) | avatar pinned to the track's right edge, so the
   avatars form a straight vertical column regardless of name length. */
.forum-topic-last { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; white-space: nowrap; font-size: 12px; color: var(--text-faint); }
.forum-topic-last .forum-lastpost-meta { display: flex; flex-direction: column; text-align: right; line-height: 1.25; min-width: 0; }

.forum-toolbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 0 0 14px; font-size: 14px; }
.forum-toolbar .forum-sort { display: flex; gap: 4px; }
.forum-toolbar .forum-sort a { padding: 4px 10px; border-radius: 999px; text-decoration: none; color: var(--text-mute); }
.forum-toolbar .forum-sort a.is-active { background: var(--card); border: 1px solid var(--border); color: var(--text-primary); }
.fx-moderator-tools { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.fx-moderator-tools label { display: grid; gap: 4px; min-width: 170px; color: var(--fg-mute); font-size: 11.5px; }
.fx-moderator-tools .fx-select { min-height: 34px; padding-block: 5px; }

.forum-section-title { margin: 28px 0 12px; font-size: 18px; }
.forum-topic-substats { margin: -10px 0 18px; font-size: 13px; color: var(--text-faint); }
.forum-support-note { margin-top: 20px; color: var(--text-mute); }
.forum-locked-note { margin-top: 14px; padding: 10px 14px; border-radius: var(--radius); background: var(--well); border: 1px solid var(--hairline); color: var(--text-mute); font-size: 14px; }

/* "new since last visit" markers. */
.forum-new-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-right: 6px; vertical-align: 1px; }
.forum-new-dot[hidden] { display: none; }
.forum-new-tag {
  display: inline-block; margin-left: 8px; padding: 0 7px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; border-radius: 999px; background: rgba(79,156,255,.16); color: var(--brand);
}

/* ---- Postbit thread: author rail (left) + post (right) ---- */
/* A thread reads as a forum at a roomy width — wider than the 720px narrow
   transactional wrap, so it doesn't float cramped in the centre. */
.forum-thread-wrap { max-width: 960px; }
.forum-posts { list-style: none; margin: 0 0 22px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--card); }
.forum-post { display: grid; grid-template-columns: 156px 1fr; border-bottom: 1px solid var(--border); }
.forum-post:last-child { border-bottom: none; }
.forum-postbit-aside {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 18px 14px; background: var(--well); border-right: 1px solid var(--border);
}
.forum-postbit-author { font-weight: 700; font-size: 14px; }
.forum-postbit-author a { color: var(--text-primary); text-decoration: none; }
.forum-postbit-author a:hover { color: var(--brand); }
.forum-postbit-rank { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.forum-postbit-stat { font-size: 11.5px; color: var(--text-faint); }
.forum-postbit-main { display: flex; flex-direction: column; min-width: 0; }
.forum-postbit-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 16px; border-bottom: 1px solid var(--hairline); font-size: 12.5px; color: var(--text-faint);
}
.forum-postbit-bar .forum-post-num { font-weight: 600; color: var(--text-mute); }
.forum-postbit-when { color: var(--text-faint); }
.forum-postbit-edited { font-style: italic; }
.forum-postbit-body { padding: 14px 18px; min-width: 0; }
/* Let the post body fill the (now wider) post column instead of the global
   680px UGC cap, with a comfortable readability ceiling. */
.forum-postbit-body .ugc { max-width: 760px; }
.forum-post.is-deleted, .forum-post.is-blocked { display: block; padding: 14px 16px; background: var(--well); }
.forum-post.is-blocked { border-left: 3px solid var(--border); }
.forum-blocked-stub { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--text-faint); font-size: 14px; }

.forum-quote-ref {
  display: inline-block; margin: 0 0 8px; padding: 2px 10px; font-size: 12px;
  border-radius: 999px; background: var(--well); border: 1px solid var(--hairline); color: var(--text-mute);
}
.forum-quote-ref:hover { color: var(--brand); }

/* Per-post action links (quote / edit / delete / report) — right-aligned. */
.forum-post-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 16px; padding: 0 16px 14px; font-size: 13px; }
.forum-post-actions a, .forum-post-actions button {
  color: var(--text-mute); text-decoration: none; background: none; border: none; padding: 0; font: inherit; font-size: 13px; cursor: pointer;
}
.forum-post-actions a:hover, .forum-post-actions button:hover { color: var(--brand); }

/* Reaction (like) toggle — a flat per-item count, no leaderboard. */
.reaction-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card); color: var(--text-mute);
  font: inherit; font-size: 13px; cursor: pointer; transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.reaction-btn:hover { border-color: var(--brand-soft); color: var(--text-primary); }
.reaction-btn.is-on { border-color: var(--brand-soft); background: rgba(79,156,255,.12); color: var(--brand); }
.reaction-btn .reaction-count { font-variant-numeric: tabular-nums; }

/* Lighter "comment" style for the inline profile-discussion thread (a
   profile page is narrow; the full postbit rail is overkill there). */
.forum-comments { list-style: none; margin: 0 0 20px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--card); }
.forum-comment { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; padding: 14px 16px; border-bottom: 1px solid var(--hairline); }
.forum-comment:last-child { border-bottom: none; }
.forum-comment.is-deleted, .forum-comment.is-blocked { display: block; background: var(--well); }
.forum-comment.is-blocked { border-left: 3px solid var(--border); }
.forum-comment-body { min-width: 0; }
.forum-comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.forum-comment-by { font-weight: 700; font-size: 14px; }
.forum-comment-by a { color: var(--text-primary); text-decoration: none; }
.forum-comment-by a:hover { color: var(--brand); }
.forum-comment-when { font-size: 12.5px; color: var(--text-faint); }

/* The reply / new-post composer. */
.forum-post-form { display: grid; gap: 12px; max-width: 680px; margin-top: 8px; }
.forum-post-form textarea {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--well); color: var(--text-primary); font: inherit; resize: vertical;
  transition: border-color .15s ease, background-color .15s ease;
}
.forum-post-form textarea:focus { border-color: var(--brand); background: var(--card-hover); outline: none; }

/* The "Profile discussion" feed (compact topic rows in a board). */
.forum-feed { list-style: none; margin: 0; padding: 0; }
.forum-feed-row { border-bottom: 1px solid var(--hairline); }
.forum-feed-row:last-child { border-bottom: none; }
.forum-feed-row:hover { background: var(--card-hover); }
.forum-feed-row a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 14px; padding: 12px 16px; color: inherit; text-decoration: none; }
.forum-feed-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.forum-feed-aircraft { font-weight: 600; color: var(--text-primary); }
.forum-feed-title { font-size: 12.5px; color: var(--text-mute); }
.forum-feed-meta { font-size: 12.5px; color: var(--text-faint); white-space: nowrap; text-align: right; }

@media (max-width: 600px) {
  /* Postbit collapses to a stacked card with a horizontal author header. */
  .forum-post { grid-template-columns: 1fr; }
  .forum-postbit-aside {
    flex-direction: row; align-items: center; text-align: left; gap: 10px;
    padding: 10px 14px; border-right: none; border-bottom: 1px solid var(--border);
  }
  .forum-postbit-aside .forum-avatar-lg { width: 36px; height: 36px; font-size: 16px; }
  .forum-postbit-stat, .forum-postbit-rank { font-size: 11px; }
  /* Drop the secondary columns on small screens. */
  .forum-cat > a { grid-template-columns: 1fr auto; }
  .forum-lastpost { display: none; }
  .forum-topic > a { grid-template-columns: auto 1fr auto; }
  .forum-topic-last { display: none; }
  .forum-topic-counts { gap: 10px; }
}

/* ============================================================
   FORUM CANVAS — read as a dense, boxed forum app (white panels
   on a faint canvas, compact type, full width, two-column thread)
   rather than an airy marketing page.
   ============================================================ */
.forum-canvas { background: var(--well); }
.forum-canvas.profiles { padding: 26px 0 60px; }
.forum-wide { max-width: 1200px; }

/* Forum headings are forum-sized, not marketing-hero-sized. */
.forum-canvas .profiles-hero { margin-bottom: 16px; }
.forum-canvas .profiles-hero h1 { font-size: 25px; line-height: 1.2; letter-spacing: -0.01em; }
.forum-canvas .profiles-hero .lede { font-size: 14.5px; margin-top: 4px; }
.forum-canvas .forum-section-title { font-size: 16px; margin: 24px 0 10px; }

/* White boards read as panels on the faint canvas. */
.forum-canvas .forum-board,
.forum-canvas .forum-posts,
.forum-canvas .forum-side-box { box-shadow: 0 1px 2px rgba(0,0,0,.05); }

/* Thread head: a compact title + a Reply action (forum, not blog hero). */
.forum-thread-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 20px; margin: 2px 0; }
.forum-thread-head h1 { margin: 0; font-size: 23px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; min-width: 0; }
.forum-thread-actions { display: flex; gap: 8px; flex: none; }
.forum-thread-actions .btn { height: 36px; min-width: 0; padding: 0 16px; font-size: 13px; }
.forum-topic-substats { margin: 4px 0 16px; font-size: 13px; color: var(--text-faint); }

/* Two-column thread: posts + an "About this topic" sidebar. */
.forum-thread-layout { display: grid; grid-template-columns: minmax(0, 1fr) 268px; gap: 24px; align-items: start; }
.forum-side-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; position: sticky; top: 84px; }
.forum-side-box h3 { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-mute); }
.forum-side-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--hairline); font-size: 13px; }
.forum-side-row .k { color: var(--text-faint); }
.forum-side-row .v { margin-left: auto; text-align: right; font-weight: 600; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.forum-side-person { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.forum-side-person a { color: var(--text-primary); text-decoration: none; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.forum-side-person a:hover { color: var(--brand); }
.forum-side-box form { margin-top: 14px; }
.forum-side-box .btn { width: 100%; }

/* Denser postbit. */
.forum-post { grid-template-columns: 132px 1fr; }
.forum-postbit-aside { padding: 14px 10px; gap: 4px; }
.forum-postbit-aside .forum-avatar-lg { width: 44px; height: 44px; font-size: 18px; }
.forum-postbit-author { font-size: 13.5px; }
.forum-postbit-stat { font-size: 11px; }
.forum-postbit-bar { padding: 7px 16px; font-size: 12px; }
.forum-postbit-body { padding: 12px 16px; font-size: 14px; }
.forum-postbit-body .ugc { font-size: 14px; line-height: 1.55; max-width: none; }
.forum-post-actions { padding: 0 16px 11px; }

/* ---- Markdown composer (reply / new topic / comment) ---- */
/* A white panel so it doesn't vanish into the canvas, a formatting toolbar,
   a clean textarea, and a normal-sized submit button (not a full-width slab). */
.forum-reply-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; max-width: none; }
#reply.profile-section { margin-top: 22px; }
.forum-composer-title { margin: 0 0 12px; font-size: 16px; font-weight: 700; }

/* Forum "compose" page (new topic): a white form panel on the canvas with a
   forum-sized heading + breadcrumb, so it reads as part of the forum rather
   than a generic feedback form. */
.forum-narrow { max-width: 760px; }
.forum-page-title { font-size: 25px; line-height: 1.2; letter-spacing: -0.01em; margin: 2px 0 16px; }
.forum-form-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; display: grid; gap: 16px; }
.forum-form-panel .form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.forum-form-panel input, .forum-form-panel select, .forum-form-panel textarea {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--well); color: var(--text-primary); font: inherit; font-size: 14px; transition: border-color .15s ease, background-color .15s ease;
}
.forum-form-panel textarea { resize: vertical; min-height: 92px; line-height: 1.5; }
.forum-form-panel input:focus, .forum-form-panel select:focus, .forum-form-panel textarea:focus { outline: none; border-color: var(--brand); background: var(--card-hover); }
.forum-form-panel select {
  appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%237A8089' stroke-width='2'><polyline points='2 4 6 8 10 4'/></svg>");
  background-repeat: no-repeat; background-position: right 13px center;
}
/* The composer inside the form panel shouldn't double up borders. */
.forum-form-panel .forum-composer { margin-top: 0; }
/* Direct-child buttons/links in a form panel are grid items; keep them
   auto-width + left-aligned instead of stretching to the full column. */
.forum-form-panel > .btn, .forum-form-panel > button, .forum-form-panel > a { justify-self: start; }
/* A checkbox row stays horizontal even though the panel's .form-field rule is
   more specific than .form-check-row. */
.forum-form-panel .form-check-row { flex-direction: row; align-items: flex-start; gap: 10px; }
/* Account/settings sections read tighter on the forum canvas. */
.forum-canvas .account-section { margin-top: 26px; padding-top: 22px; }
.forum-canvas .account-section h2 { font-size: 16px; margin: 0 0 6px; }

.forum-composer { display: block; }
.forum-compose-reply-context { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; padding: 9px 11px; color: var(--fg-mute); background: var(--card-2); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 12.5px; }
.forum-compose-reply-context strong { color: var(--fg); }
.forum-compose-reply-context .fx-icon-btn { margin-left: auto; }
.forum-compose-reply-context[hidden], .forum-quote-tray[hidden] { display: none; }
.forum-quote-tray { display: grid; gap: 8px; margin-bottom: 10px; }
.forum-compose-quote { position: relative; margin: 0; padding: 10px 38px 10px 13px; background: var(--well); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.forum-compose-quote > div { display: flex; justify-content: space-between; gap: 12px; color: var(--fg-mute); font-size: 11.5px; }
.forum-compose-quote > div strong { color: var(--fg-dim); }
.forum-compose-quote blockquote { margin: 6px 0 0; color: var(--fg-dim); font-size: 13.5px; line-height: 1.5; }
.forum-compose-quote > .fx-icon-btn { position: absolute; top: 8px; right: 8px; }
.forum-composer-tabs { display: flex; gap: 3px; width: max-content; padding: 3px; margin-bottom: 6px; background: var(--well); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.forum-composer-tabs button { padding: 5px 12px; border: 0; border-radius: 5px; background: transparent; color: var(--fg-mute); font: inherit; font-size: 12.5px; cursor: pointer; }
.forum-composer-tabs button.on { color: var(--fg); background: var(--card); box-shadow: 0 1px 2px rgb(0 0 0 / .06); }
.forum-composer-bar { display: flex; flex-wrap: wrap; gap: 3px; padding: 6px; background: var(--well); border: 1px solid var(--border); border-bottom: none; border-radius: var(--radius) var(--radius) 0 0; }
.md-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 30px; padding: 0 9px; border: 1px solid transparent; border-radius: var(--radius-sm); background: none; color: var(--text-mute); font: inherit; font-size: 13.5px; line-height: 1; cursor: pointer; transition: background-color .12s ease, border-color .12s ease, color .12s ease; }
.md-btn:hover { background: var(--card); border-color: var(--border); color: var(--text-primary); }
.forum-composer textarea {
  display: block; width: 100%; box-sizing: border-box; margin: 0; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius);
  background: var(--card); color: var(--text-primary); font: inherit; font-size: 15px; line-height: 1.65;
  min-height: 190px; resize: vertical; transition: border-color .15s ease;
}
.forum-composer textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,156,255,.12); }
.forum-composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.forum-composer-hint { font-size: 12.5px; color: var(--text-faint); line-height: 1.5; }
.forum-composer-hint code { font-size: 12px; }
.forum-preview {
  min-height: 190px; padding: 15px 16px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--card);
}
.forum-preview[hidden], .forum-privacy-warning[hidden] { display: none; }
.forum-privacy-warning {
  margin-top: 10px; padding: 9px 11px; border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--signal) 45%, var(--border));
  background: color-mix(in srgb, var(--signal) 8%, var(--card));
  color: var(--fg-dim); font-size: 12.5px; line-height: 1.45;
}
.forum-composer-submit { min-width: 0; padding: 0 24px; flex: none; }
.forum-media-toolbar { gap: 5px; }
.forum-media-toolbar svg { flex: none; }
.forum-media-uploader { margin-top: 10px; }
.forum-media-uploader[hidden] { display: none; }
.forum-media-tray { display: grid; gap: 7px; }
.forum-media-tray[hidden] { display: none; }
.forum-media-item { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--well); }
.forum-media-item > img { width: 80px; height: 60px; object-fit: cover; border-radius: 5px; background: var(--card-2); }
.forum-media-item > label { display: grid; gap: 4px; color: var(--fg-mute); font-size: 11.5px; }
.forum-media-item > label small { color: var(--fg-faint); font: inherit; }
.forum-media-item-actions { grid-column: 3; grid-row: 1; display: grid; grid-template-columns: auto 32px; gap: 5px; align-items: center; }
.forum-media-label { grid-column: 1 / -1; color: var(--fg-mute); font-size: 11px; font-weight: 650; text-align: center; }
.forum-media-insert { min-width: 112px; min-height: 32px; padding: 5px 9px; }
.forum-media-item.is-inline { border-color: color-mix(in srgb, var(--brand) 55%, var(--border)); }
.forum-media-status { min-height: 0; margin: 6px 1px 0; color: var(--fg-mute); font-size: 12px; }
.forum-media-status.error { color: var(--danger); }
.forum-attachment-gallery { display: grid; gap: 14px; margin-top: 14px; }
.forum-attachment-gallery.multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.forum-attachment-gallery figure { position: relative; margin: 0; }
.forum-inline-attachment { position: relative; margin: 18px 0; max-width: 100%; }
.forum-attachment-open { display: block; width: fit-content; max-width: 100%; border-radius: var(--radius); cursor: zoom-in; }
.forum-attachment-open:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.forum-attachment-gallery img, .forum-inline-attachment img { display: block; width: auto; max-width: 100%; height: auto; max-height: 680px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--well); object-fit: contain; }
.forum-attachment-gallery.multi .forum-attachment-open { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--border); background: var(--well); }
.forum-attachment-gallery.multi img { width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; background: transparent; }
.forum-attachment-gallery figcaption, .forum-inline-attachment figcaption { max-width: 80ch; margin-top: 5px; color: var(--fg-mute); font-size: 12px; line-height: 1.45; }
.forum-inline-attachment-preview { padding: 0; }
.forum-inline-attachment-preview [data-inline-image-content] { display: block; }
.forum-inline-attachment-preview img { max-height: 520px; }
.forum-inline-image-missing { display: block; padding: 18px; border: 1px dashed var(--border-hi); border-radius: var(--radius); color: var(--fg-mute); text-align: center; }
.forum-attachment-report { display: inline-block; margin-top: 4px; color: var(--fg-mute); font-size: 11px; }
.forum-lightbox .forum-lb-stage { width: min(96vw, 1600px); max-height: 100vh; }
.forum-lb-viewport { display: grid; place-items: center; max-width: 96vw; max-height: calc(100vh - 180px); overflow: auto; overscroll-behavior: contain; touch-action: pan-y; border-radius: 8px; }
.forum-lightbox .forum-lb-stage img { max-width: 96vw; max-height: calc(100vh - 180px); cursor: zoom-in; }
.forum-lightbox.is-actual-size .forum-lb-viewport { place-items: start center; touch-action: pan-x pan-y; }
.forum-lightbox.is-actual-size .forum-lb-stage img { max-width: none; max-height: none; cursor: zoom-out; }
.forum-lb-status { display: flex; align-items: baseline; justify-content: center; gap: 10px; width: min(90vw, 90ch); text-align: center; }
.forum-lb-caption { overflow-wrap: anywhere; color: rgba(229, 231, 235, 0.82); font-size: 13px; font-weight: 500; line-height: 1.45; }
.forum-lb-count { flex: 0 0 auto; color: rgba(229, 231, 235, 0.58); font-family: var(--font-mono); font-size: 12px; }
.forum-lb-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.forum-lb-action { min-height: 38px; padding: 8px 12px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; background: rgba(10, 12, 15, 0.72); color: #E5E7EB; font: inherit; font-size: 12px; line-height: 1.2; text-decoration: none; cursor: pointer; }
.forum-lb-action:hover, .forum-lb-action:focus-visible { border-color: rgba(120, 170, 255, 0.7); background: rgba(30, 35, 42, 0.92); color: #fff; }
.forum-lightbox .lb-btn[hidden] { display: none; }
.forum-selection-quote { position: fixed; z-index: 1200; padding: 7px 11px; border: 1px solid var(--border-hi); border-radius: 999px; background: var(--fg); color: var(--bg); box-shadow: var(--shadow-lg); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.forum-selection-quote[hidden] { display: none; }

@media (max-width: 720px) {
  .forum-attachment-gallery.multi { grid-template-columns: 1fr; }
  .forum-lb-viewport, .forum-lightbox .forum-lb-stage img { max-height: calc(100dvh - 210px); }
  .forum-lightbox .lb-close { top: 10px; right: 10px; }
}

@media (max-width: 560px) {
  .forum-composer-foot { flex-direction: column; align-items: stretch; }
  .forum-composer-submit { width: 100%; }
  .forum-composer textarea { font-size: 16px; min-height: 180px; }
  .forum-compose-quote > div { flex-direction: column; gap: 2px; }
  .forum-media-item { grid-template-columns: 64px minmax(0, 1fr); }
  .forum-media-item > img { width: 64px; height: 52px; }
  .forum-media-item-actions { grid-column: 1 / -1; grid-row: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; }
  .forum-media-label { margin-right: auto; text-align: left; }
  .forum-media-insert { min-width: 0; }
}

@media (max-width: 880px) {
  .forum-thread-layout { grid-template-columns: 1fr; }
  .forum-side-box { position: static; }
}

/* ---- Community: pagination (public Pager) ---- */
.pager { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin: 28px 0 0; }
.pager a, .pager span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px;
  padding: 0 12px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--card); color: var(--text-dim); text-decoration: none; font-size: 14px;
}
.pager a:hover { border-color: var(--brand-soft); background: var(--card-hover); color: var(--text-primary); }
.pager .is-current { background: var(--brand-fill); border-color: var(--brand-fill); color: #fff; font-weight: 600; }
.pager .pager-gap { border: none; background: none; color: var(--text-faint); min-width: 0; padding: 0 4px; }

/* ---- Community: member profile page ---- */
/* Member profile — two-column forum profile: a profile card in a sticky left
   sidebar + the member's activity on the right. Fills the width cleanly instead
   of one wide, sparse, half-empty card. */
.member-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.member-side { min-width: 0; }
.member-main { min-width: 0; }
.member-main > .forum-section-title:first-child { margin-top: 0; }
.member-pcard { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 20px; text-align: center; position: sticky; top: 84px; }
.member-pcard .forum-avatar-lg { width: 78px; height: 78px; font-size: 32px; margin: 0 auto 12px; }
.member-pcard-name { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; word-break: break-word; }
.member-pcard .member-trust { margin-top: 8px; }
.member-pcard-stats { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: var(--text-mute); }
.member-pcard-stats strong { color: var(--text-primary); font-weight: 700; font-variant-numeric: tabular-nums; }
.member-pcard-joined { font-size: 12.5px; color: var(--text-faint); }
.member-pcard-action { margin-top: 16px; }
.member-pcard-action form { margin: 0; }
.member-pcard-action .btn { width: 100%; }
.member-trust { display: inline-block; padding: 1px 8px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-radius: 999px; background: var(--well); border: 1px solid var(--hairline); color: var(--text-mute); }
.member-blocked-note { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--well); border: 1px solid var(--hairline); color: var(--text-mute); font-size: 12.5px; }
.member-empty { color: var(--text-faint); font-size: 14px; margin: 0 0 8px; padding: 2px; }
@media (max-width: 760px) {
  .member-layout { grid-template-columns: 1fr; gap: 18px; }
  .member-pcard { position: static; }
}

/* ---- Community: account preferences ---- */
.form-check-row { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; }
.form-check-row input { margin-top: 3px; }
.account-section { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--hairline); }
.account-block-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.account-block-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }


/* ============================================================
   Community Forum redesign (x- visual system)
   Source: docs/community/forum-redesign/Forum.html
   ============================================================ */
  /* fx-root carries the community accent tokens. It deliberately does NOT
     force a min-height:100vh sticky-footer flex column — the marketing pages
     flow content then footer, and the community pages now match, so a sparse
     page (sign-in, empty search) no longer opens a tall gap before the footer. */
.fx-root { --accent: var(--brand); --accent-hover: var(--brand-hover); --accent-soft: var(--brand-soft); --accent-ink: #fff; }
  .fx-wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
  .fx-page { max-width: 1100px; margin: 0 auto; padding: 32px 24px 72px; }
  /* Narrow pages (forms, articles, threads) keep a comfortable ~820 reading
     column, but it sits LEFT-aligned inside the full 1100 frame rather than
     being a centered 820 page — so every community page's header lines up
     with the sub-nav and the full-width pages (no "shifted in" headers). */
  .fx-page.narrow { max-width: 1100px; }
  .fx-page.narrow > * { max-width: 820px; }
  .fx-link { color: var(--accent); }
  .fx-link:hover { text-decoration: underline; text-underline-offset: 2px; }
  .fx-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
  .fx-row-gap { display: flex; gap: 10px; }
  .fx-dotsep { width: 3px; height: 3px; border-radius: 999px; background: var(--fg-faint); display: inline-block; flex: none; }
  *:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; border-radius: 4px; }

  /* ---------- BUTTONS ---------- */
  .fx-btn { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; font-size: 13.5px; padding: 9px 15px;
    border-radius: 7px; border: 1px solid transparent; line-height: 1; transition: all .15s ease-out; white-space: nowrap; }
  .fx-btn-primary { background: var(--brand-fill); color: #fff; }
  .fx-btn-primary:hover { background: var(--brand-fill-hover); color: #fff; transform: translateY(-1px); }
  .fx-btn-primary:disabled { opacity: .45; transform: none; cursor: not-allowed; }
  .fx-btn-ghost { background: var(--card-2); color: var(--fg); border-color: var(--border); }
  .fx-btn-ghost:hover { background: var(--card-hover); border-color: var(--border-hi); }
  .fx-kbd { font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-mute); background: var(--card-2);
    border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; padding: 3px 6px; line-height: 1; }
  .fx-kbd.sm { padding: 1px 4px; font-size: 9.5px; border-bottom-width: 1px; }
  button.fx-kbd:hover { color: var(--fg); border-color: var(--border-hi); }

  /* ---------- NAV ---------- */
  .fx-nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: var(--nav-bg);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
  .fx-nav .fx-wrap { max-width: none; padding: 0 28px; }
  .fx-nav-in { display: flex; align-items: center; gap: 20px; height: 100%; }
  .fx-brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; letter-spacing: -.01em; flex: none; }
  .fx-nav-links { display: flex; align-items: center; gap: 18px; flex: 1 1 0; min-width: 0; overflow: hidden; }
  .fx-nav-link { font-size: 13.5px; color: var(--fg-dim); transition: color .15s; position: relative; }
  .fx-nav-link:hover { color: var(--fg); }
  .fx-nav-link.active { color: var(--fg); font-weight: 500; }
  .fx-nav-link.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px; background: var(--accent); border-radius: 2px; }
  .fx-nav-cta { display: flex; align-items: center; gap: 12px; flex: none; }
  .fx-icon-btn { display: inline-flex; align-items: center; gap: 5px; background: none; border: 1px solid transparent; color: var(--fg-mute);
    padding: 7px 8px; border-radius: 7px; transition: all .15s; }
  .fx-icon-btn:hover { color: var(--fg); background: var(--card-2); }
  .fx-lang { position: relative; }
  .fx-lang-code { font-family: var(--font-mono); font-size: 11px; font-weight: 500; }
  .fx-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px; z-index: 60; background: var(--card);
    border: 1px solid var(--border-hi); border-radius: 10px; padding: 6px; box-shadow: var(--shadow-lg); max-height: 340px; overflow: auto; }
  .fx-menu.right { right: 0; left: auto; min-width: 180px; }
  .fx-menu-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left;
    background: none; border: none; color: var(--fg-dim); font-size: 13px; padding: 8px 10px; border-radius: 7px; transition: all .12s; }
  .fx-menu-item:hover { background: var(--card-2); color: var(--fg); }
  .fx-menu-item.on { color: var(--fg); }
  .fx-scrim-bare { position: fixed; inset: 0; z-index: 40; }

  /* ---------- PAGE HEADER ---------- */
  .fx-pagehead { margin-bottom: 22px; }
  .fx-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
  .fx-h1 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 8px 0 0; }
  .fx-h1.topic { font-size: 27px; margin-top: 12px; max-width: 800px; text-wrap: balance; }
  .fx-lede { font-size: 15.5px; line-height: 1.55; color: var(--fg-dim); max-width: 620px; margin: 12px 0 0; }
  .fx-crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-mute); margin-bottom: 6px; }
  .fx-crumbs a { color: var(--fg-mute); }
  .fx-crumbs a:hover { color: var(--accent); }
  .fx-crumb-cur { color: var(--fg-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 50ch; }

  /* ---------- SEARCH BAR ---------- */
  .fx-searchbar { display: flex; align-items: center; gap: 10px; width: 100%; background: var(--well);
    border: 1px solid var(--border); border-radius: 9px; padding: 0 12px; height: 42px; transition: border-color .15s, box-shadow .15s; }
  .fx-searchbar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
  .fx-searchbar.trigger { cursor: text; }
  .fx-searchbar.trigger:hover { border-color: var(--border-hi); }
  .fx-search-input { flex: 1; background: none; border: none; outline: none; color: var(--fg); font-size: 14px; font-family: var(--font-ui); }
  .fx-search-input::placeholder { color: var(--fg-mute); }
  .fx-search-ph { flex: 1; color: var(--fg-mute); font-size: 14px; text-align: left; }
  .fx-search-clear { display: inline-flex; background: none; border: none; color: var(--fg-mute); padding: 4px; border-radius: 5px; }
  .fx-search-clear:hover { color: var(--fg); background: var(--card-2); }

  .fx-hero-search { background: var(--section-bg); border: 1px solid var(--border); border-radius: 12px; padding: 22px 22px 18px; margin-bottom: 16px;
    background-image: radial-gradient(circle at 50% -40%, var(--accent-soft) 0%, transparent 60%); }
  .fx-hero-search-inner .fx-searchbar { height: 50px; background: var(--card); font-size: 15px; }
  .fx-hero-search-hint { margin-top: 10px; font-size: 12.5px; color: var(--fg-mute); display: flex; gap: 6px; align-items: center; }
  .fx-hero-search-hint code, .fx-ic { font-family: var(--font-mono); font-size: .88em; background: var(--card-2); border: 1px solid var(--border);
    padding: 1px 6px; border-radius: 5px; color: var(--fg-dim); }

  /* ---------- TOOLBAR ---------- */
  .fx-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
  .fx-toolbar-search { flex: 1; min-width: 0; }
  .fx-toolbar-right { display: flex; align-items: center; gap: 10px; flex: none; }
  .fx-sort { position: relative; }
  .fx-sort-cur { font-size: 13.5px; }
  .fx-seeall { font-size: 12.5px; color: var(--fg-mute); }
  .fx-seeall:hover { color: var(--accent); }

  /* ---------- CARD + SECTION ---------- */
  .fx-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
  .fx-cat-wrap, .fx-activity-wrap { margin-bottom: 22px; overflow: hidden; }
  .fx-sec-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); }
  .fx-sec-title { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--fg-dim); }
  .fx-sec-count { font-family: var(--font-mono); font-size: 11px; color: var(--fg-mute); background: var(--card-2); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; }

  /* ---------- CATEGORY LIST ---------- */
  .fx-cat-list { display: flex; flex-direction: column; }
  .fx-cat-row { display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: center; gap: 16px; width: 100%; text-align: left;
    background: none; border: none; border-bottom: 1px dashed var(--hairline); padding: 16px 18px; transition: background .15s; }
  .fx-cat-row:last-child { border-bottom: none; }
  .fx-cat-row:hover { background: var(--hover-wash); }
  .fx-cat-primary { display: grid; grid-template-columns: 44px minmax(0, 1fr) 130px; align-items: center; gap: 16px; min-width: 0; }
  .fx-cat-primary:hover .fx-cat-name, .fx-cat-last:hover .fx-cat-last-title { color: var(--accent); }
  .fx-cat-ic { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px;
    background: var(--card-2); border: 1px solid var(--border); }
  .fx-cat-ic.lg { width: 48px; height: 48px; }
  .fx-cat-ic.xl { width: 60px; height: 60px; border-radius: 14px; }
  .fx-cat-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
  .fx-cat-name-row { display: flex; align-items: center; gap: 9px; }
  .fx-cat-name { font-size: 15.5px; font-weight: 600; color: var(--fg); }
  .fx-cat-desc { font-size: 13px; color: var(--fg-mute); line-height: 1.45; max-width: 60ch;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .fx-pill-ro { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-mute);
    background: var(--card-2); border: 1px solid var(--border); border-radius: 999px; padding: 2px 7px; }
  .fx-cat-stats { display: grid; grid-template-columns: auto 1fr; gap: 1px 8px; align-items: baseline; }
  .fx-stat-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; color: var(--fg); text-align: right; }
  .fx-stat-lab { font-size: 11.5px; color: var(--fg-mute); }
  .fx-cat-last { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .fx-cat-last-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .fx-cat-last-title { font-size: 12.5px; color: var(--fg-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fx-cat-last-meta { font-family: var(--font-mono); font-size: 11px; color: var(--fg-faint); }

  /* ---------- CATEGORY CARDS ---------- */
  .fx-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); }
  .fx-cat-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; background: var(--card);
    border: none; padding: 20px 20px 16px; transition: background .15s; }
  .fx-cat-card:hover { background: var(--card-hover); }
  .fx-cat-card-head { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 4px; }
  .fx-cat-card .fx-cat-name { font-size: 15px; }
  .fx-cat-card .fx-cat-desc { -webkit-line-clamp: 2; min-height: 2.9em; }
  .fx-cat-card-foot { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--fg-mute); margin-top: 8px; width: 100%; }
  .fx-cat-card-foot .fx-stat-num { font-size: 12.5px; }
  .fx-cat-card-last { margin-left: auto; display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-faint); }

  /* ---------- TOPIC ROWS ---------- */
  .fx-topic-list.pinned { background: color-mix(in srgb, var(--accent-soft) 7%, transparent); border-bottom: 1px solid var(--border); }
  .fx-topic-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 16px; width: 100%; text-align: left;
    background: none; border: none; border-bottom: 1px dashed var(--hairline); padding: 13px 18px; transition: background .15s; }
  .fx-topic-row:last-child { border-bottom: none; }
  .fx-topic-row:hover { background: var(--hover-wash); }
  .fx-topic-av { flex: none; }
  .fx-topic-main { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
  .fx-topic-titleline { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .fx-topic-title { font-size: 14.5px; font-weight: 500; color: var(--fg); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fx-topic-row:hover .fx-topic-title { color: var(--accent); }
  .fx-topic-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--fg-mute); }
  .fx-topic-by { color: var(--fg-mute); }
  .fx-topic-author { color: var(--fg-dim); font-weight: 500; }
  .fx-topic-time { font-family: var(--font-mono); font-size: 11px; color: var(--fg-faint); }
  .fx-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 500; color: var(--fg-dim);
    background: var(--card-2); border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; transition: all .12s; }
  .fx-chip:hover { border-color: var(--accent); color: var(--accent); }
  .fx-chip svg { color: var(--accent); }
  .fx-tag-sm { font-family: var(--font-mono); font-size: 11px; color: var(--fg-mute); background: var(--well); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; }
  .fx-flag { display: inline-flex; align-items: center; gap: 4px; flex: none; border-radius: 6px; }
  .fx-flag.pin { color: var(--accent); }
  .fx-flag.solved { color: var(--ok); }
  .fx-flag.ans { color: var(--fg-mute); }
  .fx-flag.lg { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border: 1px solid; }
  .fx-flag.pin.lg { background: var(--accent-soft); border-color: transparent; }
  .fx-flag.solved.lg { background: rgba(108,198,107,.12); border-color: rgba(108,198,107,.3); }
  /* An author's own first post awaiting moderation: visible to them only, and
     deliberately muted so it reads as pending rather than published. */
  .fx-flag.held { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
                  padding: 2px 7px; color: var(--fg-mute); border: 1px dashed var(--line); }
  .fx-topic-row.fx-topic-held { opacity: .62; }
  .fx-topic-row.fx-topic-held .fx-topic-title { font-style: italic; }
  /* Same treatment for the author's own held reply inside a thread. */
  .fx-post.fx-post-held { opacity: .68; border-style: dashed; }
  .fx-post.fx-post-held .fx-post-num { color: var(--fg-mute); }
  .fx-topic-counts { display: flex; align-items: center; gap: 14px; flex: none; }
  .fx-count { display: inline-flex; align-items: center; gap: 5px; }
  .fx-count-n { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 500; color: var(--fg-dim); }
  .fx-topic-last { display: flex; align-items: center; gap: 8px; flex: none; width: 92px; }
  .fx-topic-last-time { font-family: var(--font-mono); font-size: 11px; color: var(--fg-faint); }
  .fx-topic-row.fx-topic-row-aligned { grid-template-columns: auto minmax(0, 1fr) 186px 104px; }
  .fx-topic-row-aligned .fx-topic-counts { display: grid; grid-template-columns: 92px 82px; align-items: center; justify-items: end; gap: 12px; width: 186px; }
  .fx-topic-row-aligned .fx-count { width: 100%; justify-content: flex-end; white-space: nowrap; }
  .fx-topic-row-aligned .fx-topic-last { display: grid; grid-template-columns: minmax(0, 1fr) 30px; align-items: center; gap: 8px; width: 104px; }
  .fx-topic-row-aligned .fx-topic-last-time { text-align: right; white-space: nowrap; }
  .fx-topic-row-aligned .fx-topic-last > :last-child { justify-self: end; }

  /* compact density */
  .fx-root[data-density="compact"] .fx-topic-row { padding: 8px 16px; gap: 12px; }
  .fx-root[data-density="compact"] .fx-topic-meta { gap: 7px; }
  .fx-root[data-density="compact"] .fx-cat-row { padding: 11px 16px; }
  .fx-root[data-density="compact"] .fx-topic-title { font-size: 14px; }

  /* ---------- CATEGORY HERO ---------- */
  .fx-cat-hero { display: flex; gap: 18px; align-items: flex-start; padding: 8px 0 24px; }
  .fx-cat-hero-main { flex: 1; }
  .fx-cat-hero-title { display: flex; align-items: center; gap: 12px; }
  .fx-cat-hero-stats { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--fg-mute); }

  /* ---------- PRIVACY NOTE ---------- */
  .fx-privacy-note { display: flex; gap: 10px; align-items: flex-start; background: var(--section-bg); border: 1px solid var(--border);
    border-radius: 10px; padding: 14px 16px; font-size: 13px; color: var(--fg-mute); line-height: 1.5; }
  .fx-privacy-note svg { margin-top: 2px; }

  /* ---------- COMMAND PALETTE ---------- */
  .fx-palette-scrim { position: fixed; inset: 0; z-index: 100; background: rgba(5,7,10,.55); backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 20px 20px; }
  .fx-palette { width: 100%; max-width: 600px; background: var(--card); border: 1px solid var(--border-hi); border-radius: 14px;
    box-shadow: var(--shadow-lg); overflow: hidden; opacity: 1; transform: none; animation: fx-pop .14s ease-out both; }
  @keyframes fx-pop { from { transform: translateY(-8px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }
  .fx-palette-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
  .fx-palette-input { flex: 1; background: none; border: none; outline: none; color: var(--fg); font-size: 16px; font-family: var(--font-ui); }
  .fx-palette-input::placeholder { color: var(--fg-mute); }
  .fx-palette-list { max-height: 50vh; overflow: auto; padding: 6px; }
  .fx-palette-label { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-faint); padding: 8px 10px 4px; }
  .fx-palette-empty { padding: 20px 10px; font-size: 13.5px; color: var(--fg-mute); text-align: center; }
  .fx-palette-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: none;
    padding: 10px 10px; border-radius: 9px; color: var(--fg-dim); }
  .fx-palette-row.active { background: var(--card-2); color: var(--fg); }
  .fx-pal-ic { width: 30px; height: 30px; flex: none; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 7px; background: var(--well); border: 1px solid var(--border); color: var(--fg-mute); }
  .fx-pal-ic.accent { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
  .fx-palette-row.active .fx-pal-ic.accent { color: var(--accent); }
  .fx-pal-main { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fx-pal-sub { font-family: var(--font-mono); font-size: 11px; color: var(--fg-faint); flex: none; }
  .fx-palette-foot { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--fg-mute); }
  .fx-palette-foot .fx-kbd { margin-right: 3px; }

  /* ---------- SEARCH RESULTS ---------- */
  .fx-search-hero { margin: 6px 0 18px; }
  .fx-results-head { margin-bottom: 14px; }
  .fx-results-count { font-size: 15px; color: var(--fg-dim); }
  .fx-results-count strong { color: var(--fg); font-family: var(--font-mono); }
  .fx-q { color: var(--accent); }
  .fx-scope-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
  .fx-scope { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--fg-dim); background: var(--card-2);
    border: 1px solid var(--border); border-radius: 999px; padding: 6px 13px; transition: all .12s; }
  .fx-scope:hover { border-color: var(--border-hi); }
  .fx-scope.on { background: var(--accent-soft); border-color: transparent; color: var(--fg); font-weight: 500; }
  .fx-scope-n { font-family: var(--font-mono); font-size: 11px; color: var(--fg-mute); }
  .fx-scope.on .fx-scope-n { color: var(--fg-dim); }
  .fx-result-list { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
  .fx-result-list .fx-topic-row { border-bottom: 1px solid var(--hairline); }
  .fx-empty { display: flex; gap: 14px; align-items: flex-start; padding: 28px 20px; }
  .fx-empty.pad { justify-content: center; color: var(--fg-mute); font-size: 14px; }
  .fx-empty-ic { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px;
    background: var(--well); border: 1px solid var(--border); color: var(--fg-mute); }
  .fx-empty-h { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
  .fx-empty-p { font-size: 13.5px; color: var(--fg-mute); }
  .fx-empty-p code { font-family: var(--font-mono); font-size: .9em; color: var(--accent); }

  /* ---------- TOPIC PAGE ---------- */
  .fx-topic-hero { padding: 6px 0 22px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
  .fx-topic-hero-flags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .fx-topic-hero-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--fg-mute); }
  .fx-topic-hero-meta .fx-mono { color: var(--fg-dim); }
  .fx-tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
  .fx-tag-cloud.inline { margin-left: 4px; }
  .fx-topic-solution-note { margin-bottom: 14px; }
  .fx-topic-grid { display: grid; grid-template-columns: 1fr 280px; gap: 28px; align-items: start; }
  .fx-thread { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

  .fx-post { display: grid; grid-template-columns: 150px 1fr; gap: 4px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
  .fx-post.op { border-color: var(--border-hi); }
  .fx-post.is-solution { border-color: color-mix(in srgb, var(--ok) 65%, var(--border)); box-shadow: inset 3px 0 0 var(--ok); }
  .fx-post-author { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 14px; border-right: 1px dashed var(--hairline);
    background: var(--card-2); text-align: center; }
  .fx-post-author-meta { display: flex; flex-direction: column; align-items: center; gap: 3px; }
  .fx-post-name { font-size: 13.5px; font-weight: 600; color: var(--fg); }
  .fx-post-name:hover { color: var(--accent); }
  .fx-post-badges { display: flex; gap: 5px; margin: 2px 0; }
  .fx-badge-op { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .06em; color: var(--accent); background: var(--accent-soft);
    border-radius: 4px; padding: 1px 5px; font-weight: 600; }
  .fx-post-since { font-family: var(--font-mono); font-size: 11px; color: var(--fg-faint); }
  .fx-post-body-wrap { padding: 18px 22px 12px; min-width: 0; }
  .fx-post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
  .fx-post-num { font-family: var(--font-mono); font-size: 12px; color: var(--fg-faint); }
  .fx-post-time { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-mute); margin-left: auto; }
  .fx-post-body { font-size: 15px; line-height: 1.6; color: var(--fg-dim); }
  .fx-post-body code.fx-ic { font-family: var(--font-mono); font-size: .85em; background: var(--well); border: 1px solid var(--border); padding: 1px 6px; border-radius: 5px; color: var(--accent); }
  .fx-rendered-quotes { display: grid; gap: 8px; margin-bottom: 12px; }
  .fx-quote { margin: 0; padding: 10px 14px; background: var(--well); border-left: 2px solid var(--accent); border-radius: 0 8px 8px 0; }
  .fx-quote blockquote { margin: 0; color: var(--fg-mute); font-size: 13.5px; line-height: 1.5; }
  .fx-quote figcaption { margin-top: 5px; color: var(--fg-faint); font-size: 11.5px; }
  .fx-quote figcaption a { color: var(--accent); }
  .fx-quote-head { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg-mute); margin-bottom: 5px; }
  .fx-quote-head strong { color: var(--fg-dim); }
  .fx-quote-text { font-size: 13.5px; color: var(--fg-mute); line-height: 1.45; }
  .fx-post-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--hairline); }
  .fx-post-act { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid transparent; color: var(--fg-mute);
    font-size: 12.5px; padding: 6px 10px; border-radius: 7px; white-space: nowrap; transition: all .12s; }
  .fx-post-act:hover { background: var(--card-2); color: var(--fg); }
  .fx-post-act.on { color: var(--accent); }
  .fx-post-act.subtle { margin-left: auto; }
  .fx-reply-context { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 10px; color: var(--fg-mute); font-size: 12.5px; }
  a.fx-reply-context:hover { color: var(--accent); }

  /* ABOUT sidebar */
  .fx-about { display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--nav-h) + 18px); }
  .fx-about-card { padding: 16px 18px; }
  .fx-about-h { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-faint); margin: 0 0 14px; font-weight: 600; }
  .fx-about-dl { margin: 0; display: flex; flex-direction: column; gap: 11px; }
  .fx-about-dl > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .fx-about-dl dt { font-size: 12.5px; color: var(--fg-mute); }
  .fx-about-dl dd { margin: 0; font-size: 12.5px; color: var(--fg-dim); display: flex; align-items: center; gap: 7px; }
  .fx-parts { display: flex; flex-wrap: wrap; gap: 7px; }

  /* SIGN-IN CTA + REPLY */
  .fx-signin-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--section-bg);
    border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; flex-wrap: wrap; }
  .fx-signin-text { display: flex; flex-direction: column; gap: 3px; }
  .fx-signin-h { font-size: 15px; font-weight: 600; }
  .fx-signin-p { font-size: 13px; color: var(--fg-mute); }
  .fx-signin-acts { display: flex; gap: 10px; }
  .fx-reply { padding: 16px 18px; }
  .fx-reply-head { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; margin-bottom: 12px; }
  .fx-reply-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; padding: 0 2px; }
  .fx-reply-hint { font-size: 12px; color: var(--fg-mute); line-height: 1.5; }

  /* EDITOR */
  .fx-editor { border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: var(--well); }
  .fx-editor-bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; border-bottom: 1px solid var(--border); background: var(--card-2); }
  .fx-editor-tools { display: flex; flex-wrap: wrap; gap: 2px; }
  .fx-tool { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; background: none; border: none; color: var(--fg-mute); padding: 6px 8px; border-radius: 6px; font: inherit; font-size: 13px; line-height: 1; transition: all .12s; }
  .fx-tool:hover { background: var(--card-hover); color: var(--fg); }
  .fx-editor-tabs { display: flex; gap: 2px; }
  .fx-etab { background: none; border: none; color: var(--fg-mute); font-size: 12.5px; padding: 5px 11px; border-radius: 6px; }
  .fx-etab.on { background: var(--card); color: var(--fg); border: 1px solid var(--border); }
  .fx-textarea { width: 100%; min-height: 130px; resize: vertical; background: var(--well); border: none; outline: none; color: var(--fg);
    font-family: var(--font-ui); font-size: 14.5px; line-height: 1.6; padding: 14px; }
  .fx-textarea::placeholder { color: var(--fg-mute); }
  .fx-preview { min-height: 130px; padding: 14px; font-size: 14.5px; line-height: 1.6; color: var(--fg-dim); }
  .fx-preview.empty { color: var(--fg-faint); font-style: italic; }
  .fx-preview code.fx-ic { font-family: var(--font-mono); font-size: .85em; background: var(--card-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 5px; color: var(--accent); }

  /* COMPOSER */
  .fx-compose { padding: 22px 24px; display: flex; flex-direction: column; gap: 20px; }
  .fx-field { display: flex; flex-direction: column; gap: 8px; position: relative; }
  fieldset.fx-field { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
  .fx-field-lab { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-mute); }
  .fx-field-opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--fg-faint); }
  .fx-field-hint { font-size: 12px; color: var(--fg-mute); }
  .fx-field > .fx-field-hint { position: absolute; right: 2px; top: 0; font-family: var(--font-mono); }
  .fx-input { width: 100%; min-width: 0; background: var(--well); border: 1px solid var(--border); border-radius: 9px; padding: 12px 14px; font-family: var(--font-ui);
    font-size: 14.5px; color: var(--fg); outline: none; transition: border-color .15s, box-shadow .15s; }
  .fx-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
  .fx-input::placeholder { color: var(--fg-mute); }
  .fx-cat-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
  .fx-cat-opt { display: inline-flex; align-items: center; justify-content: flex-start; gap: 7px; min-height: 42px; font-size: 13px; color: var(--fg-dim); background: var(--card-2);
    border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; cursor: pointer; user-select: none; transition: all .12s; }
  .fx-cat-opt svg { color: var(--fg-mute); }
  .fx-cat-opt:hover { border-color: var(--border-hi); }
  .fx-cat-opt.on,
  .fx-cat-picker .fx-cat-opt.on { background: var(--card); border-color: var(--accent); color: var(--fg); font-weight: 500; box-shadow: 0 0 0 2px var(--accent-soft); }
  .fx-cat-opt.on svg,
  .fx-cat-picker .fx-cat-opt.on svg { color: var(--accent); }
  .fx-cat-opt:has(input:focus-visible) { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
  .fx-tag-input { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; background: var(--well); border: 1px solid var(--border);
    border-radius: 9px; padding: 9px 12px; min-height: 44px; }
  .fx-tag-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
  .fx-tag-edit { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 12px; color: var(--fg-dim);
    background: var(--card-2); border: 1px solid var(--border); border-radius: 6px; padding: 3px 4px 3px 8px; }
  .fx-tag-edit button { display: inline-flex; background: none; border: none; color: var(--fg-mute); padding: 2px; border-radius: 4px; }
  .fx-tag-edit button:hover { color: var(--err); background: var(--card-hover); }
  .fx-tag-field { flex: 1; min-width: 120px; background: none; border: none; outline: none; color: var(--fg); font-size: 13.5px; font-family: var(--font-ui); }
  .fx-tag-field::placeholder { color: var(--fg-mute); }
  .fx-compose-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; flex-wrap: wrap; }

  /* ---------- FOOTER ---------- */
  .fx-footer { border-top: 1px solid var(--border); padding: 48px 0 36px; margin-top: 24px; }
  .fx-foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
  .fx-foot-blurb { font-size: 13.5px; color: var(--fg-dim); line-height: 1.6; max-width: 320px; margin: 12px 0 0; }
  .fx-foot-ln { color: var(--accent); }
  .fx-foot-ln:hover { text-decoration: underline; }
  .fx-skyline { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-faint); letter-spacing: .08em; }
  .fx-foot-col h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-faint); margin: 0 0 14px; font-weight: 500; }
  .fx-foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
  .fx-foot-col a { font-size: 13.5px; color: var(--fg-dim); transition: color .15s; }
  .fx-foot-col a:hover { color: var(--fg); }
  .fx-foot-meta { font-family: var(--font-mono); font-size: 12px; color: var(--fg-faint); }
  .fx-foot-copy { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 22px;
    border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-faint); flex-wrap: wrap; }

  /* ---------- USER MENU + BUTTON SIZES ---------- */
  .fx-usermenu-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--card-2); border: 1px solid var(--border);
    border-radius: 999px; padding: 4px 12px 4px 5px; font-size: 13.5px; font-weight: 500; color: var(--fg); transition: all .15s; }
  .fx-usermenu-btn:hover { border-color: var(--border-hi); background: var(--card-hover); }
  .fx-menu-sep { height: 1px; background: var(--border); margin: 5px 2px; }
  .fx-btn-lg { padding: 12px 20px; font-size: 14.5px; }
  .fx-btn-sm { padding: 6px 12px; font-size: 12.5px; }

  /* ---------- SIGN IN ---------- */
  .fx-auth-page { padding-top: 56px; }
  .fx-auth-h { font-size: 42px; margin-bottom: 10px; }
  .fx-auth-card { padding: 26px 28px; margin-top: 28px; }
  .fx-auth-form { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
  .fx-auth-form .fx-field { width: 100%; }
  .fx-auth-fine { font-size: 12.5px; color: var(--fg-mute); margin: 2px 0 0; line-height: 1.5; max-width: 52ch; }
  .fx-sent { display: flex; gap: 16px; align-items: flex-start; }
  .fx-sent-ic { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
    background: rgba(108,198,107,.14); border: 1px solid rgba(108,198,107,.34); color: var(--ok); }
  .fx-sent-h { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
  .fx-sent-p { font-size: 14px; color: var(--fg-dim); line-height: 1.55; }
  .fx-demo-link { display: inline-block; margin-top: 12px; font-size: 13px; background: none; border: none; padding: 0; cursor: pointer; }

  /* ---------- YOUR ACCOUNT ---------- */
  .fx-acct-card { padding: 22px 24px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
  .fx-acct-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; width: 100%; align-items: start; }
  .fx-acct-aside { display: flex; flex-direction: column; gap: 14px; padding-top: 26px; }
  .fx-acct-note { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-faint); }
  .fx-input-avatar { position: relative; }
  .fx-input-avatar .fx-input { width: 100%; padding-right: 44px; }
  .fx-input-adorn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
  .fx-acct-sec { padding: 24px 0; border-top: 1px solid var(--border); }
  .fx-acct-sec-h { font-size: 17px; font-weight: 600; margin: 0 0 4px; display: flex; align-items: baseline; gap: 8px; }
  .fx-acct-count { font-family: var(--font-mono); font-size: 13px; color: var(--fg-mute); font-weight: 400; }
  .fx-acct-desc { font-size: 13.5px; color: var(--fg-mute); line-height: 1.55; margin: 0 0 16px; max-width: 70ch; }
  .fx-acct-text { font-size: 14px; color: var(--fg-dim); line-height: 1.55; margin: 0; }
  .fx-acct-text.mute { color: var(--fg-mute); }
  .fx-empty-card { background: var(--well); border: 1px dashed var(--border-hi); border-radius: 10px; padding: 26px 20px; text-align: center;
    font-size: 13.5px; color: var(--fg-mute); line-height: 1.55; }
  .fx-quote-inline { color: var(--fg-dim); }
  .fx-acct-foot { padding: 24px 0 0; border-top: 1px solid var(--border); margin-top: 8px; }
  .fx-toggle-row { display: flex; align-items: center; gap: 12px; background: none; border: none; padding: 0; text-align: left; color: var(--fg-dim); font-size: 14px; }
  .fx-switch { width: 38px; height: 22px; flex: none; border-radius: 999px; background: var(--card-hi); border: 1px solid var(--border); position: relative; transition: all .18s; }
  .fx-switch.on { background: var(--accent); border-color: transparent; }
  .fx-switch-knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 999px; background: #fff; transition: transform .18s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
  .fx-switch.on .fx-switch-knob { transform: translateX(16px); }
  .fx-toggle-label { line-height: 1.45; }
  .fx-check-row { display: flex; align-items: flex-start; gap: 10px; background: none; border: none; padding: 0; text-align: left; color: var(--fg-dim); font-size: 14px; line-height: 1.45; }
  .fx-check { width: 18px; height: 18px; flex: none; margin-top: 1px; border-radius: 5px; border: 1px solid var(--border-hi); background: var(--well);
    display: inline-flex; align-items: center; justify-content: center; color: var(--accent-ink); transition: all .15s; }
  .fx-check.on { background: var(--accent); border-color: transparent; }

  /* ---------- USER PROFILE ---------- */
  .fx-profile-grid { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; margin-top: 8px; }
  .fx-profile-card { padding: 28px 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
  .fx-profile-name { font-size: 20px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; margin-top: 4px; }
  .fx-profile-stats { display: flex; flex-direction: column; gap: 12px; width: 100%; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--hairline); font-size: 14px; color: var(--fg-dim); }
  .fx-profile-joined { font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-faint); }
  .fx-prof-h { font-size: 18px; font-weight: 600; margin: 0 0 14px; }
  .fx-prof-posts { overflow: hidden; }
  .fx-prof-post { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; text-align: left; background: none;
    border: none; border-bottom: 1px dashed var(--hairline); padding: 15px 18px; transition: background .15s; }
  .fx-prof-post:last-child { border-bottom: none; }
  .fx-prof-post:hover { background: var(--hover-wash); }
  .fx-prof-post-title { font-size: 14.5px; font-weight: 500; color: var(--fg); }
  .fx-prof-post:hover .fx-prof-post-title { color: var(--accent); }
  .fx-prof-post-time { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-faint); flex: none; }
  .fx-post-av-btn { background: none; border: none; padding: 0; cursor: pointer; }

  /* ---------- GUIDELINES ---------- */
  .fx-guide { padding: 6px 24px; }
  .fx-guide-row { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-bottom: 1px dashed var(--hairline); }
  .fx-guide-row:last-child { border-bottom: none; }
  .fx-guide-n { font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--accent); flex: none; padding-top: 1px; }
  .fx-guide-h { font-size: 15.5px; font-weight: 600; margin-bottom: 4px; }
  .fx-guide-p { font-size: 13.5px; color: var(--fg-mute); line-height: 1.55; }

  /* ============ PROFILE LIBRARY ============ */
  .fx-library-page { padding-top: 34px; }
  .fx-library-page > .fx-latest, .fx-library-page > .fx-library-browse { padding-top: 0; padding-bottom: 0; }
  .fx-lib-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
  .fx-statstrip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin: 24px 0 10px; }
  .fx-stat { background: var(--card); padding: 16px 18px; display: flex; flex-direction: column; gap: 3px; }
  .fx-stat-v { font-family: var(--font-mono); font-size: 24px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
  .fx-stat-k { font-size: 11px; color: var(--fg-mute); text-transform: uppercase; letter-spacing: .08em; }

  .fx-lib-featured { margin: 28px 0; }
  .fx-feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 4px; }
  .fx-pcard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
  .fx-accard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

  /* latest profiles */
  .fx-latest { margin: 0 0 42px; }
  .fx-lib-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
  .fx-lib-section-head h2 { margin: 5px 0 0; font-size: 24px; letter-spacing: -.02em; }
  .fx-latest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .fx-latest-card { min-width: 0; display: flex; flex-direction: column; gap: 13px; padding: 18px; color: var(--fg); background: var(--card); border: 1px solid var(--border); border-radius: 12px; transition: transform .15s ease-out, border-color .15s, box-shadow .15s; }
  .fx-latest-card:hover { transform: translateY(-2px); border-color: var(--accent-soft); box-shadow: var(--shadow); }
  .fx-latest-top, .fx-latest-foot, .fx-latest-tags { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .fx-latest-aircraft { min-width: 0; display: flex; align-items: center; gap: 10px; }
  .fx-latest-aircraft > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .fx-latest-aircraft strong { overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
  .fx-latest-aircraft small { color: var(--fg-faint); font-family: var(--font-mono); font-size: 10px; }
  .fx-latest-plane { width: 34px; height: 34px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); background: var(--card-2); border: 1px solid var(--border); border-radius: 8px; }
  .fx-latest-title { min-height: 2.7em; font-size: 16px; font-weight: 600; line-height: 1.35; }
  .fx-latest-card:hover .fx-latest-title { color: var(--accent); }
  .fx-latest-tags { justify-content: flex-start; overflow: hidden; color: var(--fg-mute); font-size: 11.5px; white-space: nowrap; }
  .fx-latest-tags > span:last-child { overflow: hidden; text-overflow: ellipsis; }
  .fx-latest-foot { padding-top: 12px; color: var(--fg-mute); border-top: 1px dashed var(--hairline); font-size: 11.5px; }
  .fx-latest-foot > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fx-new-badge { display: inline-flex; align-items: center; flex: none; padding: 2px 7px; color: var(--accent); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent); border-radius: 999px; font-family: var(--font-mono); font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

  /* library finder + browse controls */
  .fx-library-browse { scroll-margin-top: calc(var(--nav-h) + 18px); }
  .fx-lib-section-head.browse { margin-bottom: 12px; }
  .fx-lib-result-total { color: var(--fg-mute); font-size: 13px; }
  .fx-lib-result-total strong { color: var(--fg); font-family: var(--font-mono); }
  .fx-lib-filters { margin: 0 0 14px; padding: 18px; }
  .fx-lib-filters .fx-lfield.grow { min-width: 180px; }
  .fx-lib-filters .fx-select { min-width: 124px; }
  .fx-select-order { min-width: 116px; }
  .fx-lib-filter-button { height: 40px; }
  .fx-lib-tablebar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
  .fx-active-filters { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
  .fx-filter-summary { color: var(--fg-mute); font-size: 12.5px; }
  .fx-filter-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; color: var(--fg-dim); background: var(--card-2); border: 1px solid var(--border); border-radius: 999px; font-size: 11.5px; }
  .fx-filter-chip:hover { color: var(--accent); border-color: var(--accent); }
  .fx-filter-chip span { font-size: 15px; line-height: .7; }
  .fx-clear-filters { margin-left: 3px; font-size: 12px; }
  .fx-seg-btn { text-decoration: none; }
  .fx-lib-empty { display: flex; flex-direction: column; align-items: center; gap: 7px; }
  .fx-lib-empty strong { color: var(--fg); font-size: 15px; }
  .fx-lib-empty > div { display: flex; gap: 8px; margin-top: 7px; }

  /* semantic profile table */
  .fx-ptable-shell { overflow: hidden; }
  .fx-ptable-scroll { overflow-x: auto; }
  .fx-ptable { width: 100%; min-width: 1180px; border-spacing: 0; border-collapse: separate; table-layout: fixed; }
  .fx-ptable.with-discussion .fx-pcol-aircraft { width: 18%; } .fx-ptable.with-discussion .fx-pcol-profile { width: 19%; } .fx-ptable.with-discussion .fx-pcol-sim { width: 13%; }
  .fx-ptable.with-discussion .fx-pcol-hardware { width: 13%; } .fx-ptable.with-discussion .fx-pcol-added { width: 7%; } .fx-ptable.with-discussion .fx-pcol-reviews { width: 8%; }
  .fx-ptable.with-discussion .fx-pcol-discussion { width: 12%; } .fx-ptable.with-discussion .fx-pcol-downloads { width: 7%; } .fx-ptable.with-discussion .fx-pcol-open { width: 3%; }
  .fx-ptable.without-discussion .fx-pcol-aircraft { width: 20%; } .fx-ptable.without-discussion .fx-pcol-profile { width: 25%; } .fx-ptable.without-discussion .fx-pcol-sim { width: 13%; }
  .fx-ptable.without-discussion .fx-pcol-hardware { width: 15%; } .fx-ptable.without-discussion .fx-pcol-added { width: 8%; } .fx-ptable.without-discussion .fx-pcol-reviews { width: 10%; }
  .fx-ptable.without-discussion .fx-pcol-downloads { width: 6%; } .fx-ptable.without-discussion .fx-pcol-open { width: 3%; }
  .fx-ptable th, .fx-ptable td { text-align: left; vertical-align: middle; }
  .fx-ptable thead th { padding: 11px 12px; color: var(--fg-faint); background: var(--card-2); border-bottom: 1px solid var(--border); font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
  .fx-ptable thead th:nth-child(1) { padding-left: 18px; }
  .fx-ptable thead th.num { text-align: right; }
  .fx-pth-sort { color: inherit; text-decoration: none; }
  .fx-pth-sort::after { content: ""; margin-left: 4px; opacity: 0; }
  .fx-pth-sort:hover, .fx-pth-sort.active { color: var(--accent); }
  .fx-pth-sort:hover::after { content: "↕"; opacity: 1; }
  .fx-pth-sort.active.asc::after { content: "↑"; opacity: 1; }
  .fx-pth-sort.active.desc::after { content: "↓"; opacity: 1; }
  .fx-prow td { min-width: 0; overflow: hidden; padding: 14px 12px; background: var(--card); border-bottom: 1px solid var(--hairline); color: var(--fg-dim); font-size: 12.5px; transition: background .15s; }
  .fx-prow td:first-child { padding-left: 18px; }
  .fx-prow:last-child td { border-bottom: none; }
  .fx-prow:hover td { background: var(--hover-wash); }
  .fx-prow-aircraft-inner { display: flex; min-width: 0; align-items: center; gap: 9px; }
  .fx-prow-cell-value { min-width: 0; }
  .fx-prow-plane { width: 29px; height: 29px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); background: var(--card-2); border: 1px solid var(--border); border-radius: 7px; }
  .fx-prow-aircraft-inner > span:last-child, .fx-prow-profile { min-width: 0; overflow: hidden; }
  .fx-prow-aircraft-name, .fx-prow-name { display: block; max-width: 100%; overflow: hidden; color: var(--fg); font-size: 13.5px; font-weight: 600; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
  .fx-prow-name { font-size: 14px; }
  .fx-prow:hover .fx-prow-aircraft-name, .fx-prow:hover .fx-prow-name { color: var(--accent); }
  .fx-prow-icao, .fx-prow-by { display: block; margin-top: 3px; overflow: hidden; color: var(--fg-faint); font-family: var(--font-mono); font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
  .fx-prow-by { font-family: var(--font-ui); font-size: 11.5px; }
  .fx-prow-hardware { line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
  .fx-prow-date { white-space: nowrap; }
  .fx-prow-date .fx-new-badge { margin-bottom: 4px; }
  .fx-prow-date time { display: block; color: var(--fg-mute); font-family: var(--font-mono); font-size: 10.5px; }
  .fx-prow-rating { white-space: nowrap; }
  .fx-prow-rating-value { display: inline-flex; align-items: baseline; }
  .fx-prow-rating-value .fx-stars-ct { margin-left: 3px; }
  .fx-ptable .fx-cat-tag { display: inline-flex; max-width: 100%; white-space: nowrap; }
  .fx-prow-discuss a { display: inline-flex; align-items: center; gap: 5px; color: var(--fg-dim); white-space: nowrap; }
  .fx-prow-discuss a:hover { color: var(--accent); }
  .fx-prow-discuss-time { display: block; margin: 3px 0 0 19px; color: var(--fg-faint); font-family: var(--font-mono); font-size: 9.5px; }
  .fx-prow-downloads { text-align: right !important; white-space: nowrap; }
  .fx-prow-download-value { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; }
  .fx-prow-downloads svg { color: var(--fg-mute); }
  .fx-prow-open { padding-left: 0 !important; }
  .fx-prow-open a { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; color: var(--fg-mute); border-radius: 6px; }
  .fx-prow-open a:hover { color: var(--accent); background: var(--accent-soft); }
  .fx-chip.sm { padding: 1px 7px; font-size: 10.5px; }

  @media (max-width: 880px) {
    .fx-hide-md { display: none !important; }
  }

  /* force signature */
  .fx-sig { display: flex; align-items: flex-end; width: 100%; border-bottom: 1px solid var(--hairline); padding-bottom: 1px; }
  .fx-sig-bar { flex: 1; background: var(--accent); border-radius: 2px 2px 0 0; min-height: 6px; }
  .fx-sigpanel { display: flex; flex-direction: column; gap: 9px; margin-top: 6px; }
  .fx-sigrow { display: grid; grid-template-columns: 96px 1fr 30px; align-items: center; gap: 12px; }
  .fx-sigrow-lab { font-size: 12.5px; color: var(--fg-dim); }
  .fx-sigrow-track { height: 8px; border-radius: 999px; background: var(--well); border: 1px solid var(--border); overflow: hidden; }
  .fx-sigrow-fill { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
  .fx-sigrow-val { font-family: var(--font-mono); font-size: 12px; color: var(--fg-mute); text-align: right; }

  /* character traits */
  .fx-traits { display: flex; flex-wrap: wrap; gap: 6px; }
  .fx-trait { font-size: 11.5px; font-weight: 500; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--card-2); color: var(--fg-dim); white-space: nowrap; }
  .fx-trait.tone-strong, .fx-trait.tone-firm { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
  .fx-trait.tone-light, .fx-trait.tone-min { color: var(--fg-mute); }
  .fx-traitlist { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-top: 4px; }
  .fx-traitrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--hairline); }
  .fx-traitrow-lab { font-size: 13.5px; color: var(--fg-mute); }
  .fx-traitrow-word { font-size: 12.5px; font-weight: 400; color: var(--fg-dim); }
  .fx-traitrow-word.tone-strong, .fx-traitrow-word.tone-firm, .fx-traitrow-word.tone-mod { color: var(--fg-dim); }
  .fx-traitrow-word.tone-light { color: var(--fg-mute); }
  .fx-traitrow-word.tone-min { color: var(--fg-faint); }
  .fx-accard-toppick { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--well); border: 1px solid var(--border); border-radius: 8px; }
  .fx-accard-tp-lab { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-faint); }
  .fx-accard-tp-name { font-size: 13px; font-weight: 500; color: var(--fg-dim); }
  .fx-preview-ph { font-size: 12.5px; color: var(--fg-faint); font-style: italic; padding: 12px 0; border-top: 1px dashed var(--hairline); border-bottom: 1px dashed var(--hairline); }

  /* stars */
  .fx-stars-wrap { display: inline-flex; align-items: center; gap: 6px; }
  .fx-stars { position: relative; display: inline-flex; }
  .fx-stars-bg { display: inline-flex; color: var(--border-hi); }
  .fx-stars-bg svg { fill: none; }
  .fx-stars-fg { position: absolute; top: 0; left: 0; overflow: hidden; white-space: nowrap; }
  .fx-stars-fgrow { display: inline-flex; color: var(--signal); }
  .fx-stars-fgrow svg { fill: currentColor; }
  .fx-stars-num { font-family: var(--font-mono); font-size: 12px; color: var(--fg-dim); }
  .fx-stars-num.muted { color: var(--fg-faint); }
  .fx-stars-ct { color: var(--fg-mute); }

  /* badges */
  .fx-cat-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-mute); background: var(--card-2); border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; }

  /* profile card */
  .fx-pcard { display: flex; flex-direction: column; gap: 14px; text-align: left; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px; transition: all .15s ease-out; }
  .fx-pcard:hover { border-color: var(--accent-soft); transform: translateY(-2px); box-shadow: var(--shadow); }
  .fx-pcard-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
  .fx-pcard-titles { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
  .fx-pcard-title { font-size: 15.5px; font-weight: 600; line-height: 1.3; }
  .fx-pcard-ac { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--fg-mute); }
  .fx-pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--hairline); }
  .fx-pcard-by { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--fg-dim); }
  .fx-pcard-dl { display: inline-flex; align-items: center; gap: 5px; }

  /* aircraft card */
  .fx-accard { display: flex; flex-direction: column; gap: 14px; text-align: left; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px; transition: all .15s ease-out; }
  .fx-accard:hover { border-color: var(--accent-soft); transform: translateY(-2px); box-shadow: var(--shadow); }
  .fx-accard-head { display: flex; gap: 12px; align-items: center; }
  .fx-accard-ic { width: 42px; height: 42px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--accent); flex: none; }
  .fx-accard-titles { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .fx-accard-name { font-size: 16px; font-weight: 600; }
  .fx-accard-sub { font-size: 12px; color: var(--fg-mute); }
  .fx-accard-count { display: flex; align-items: baseline; gap: 6px; }
  .fx-accard-n { font-family: var(--font-mono); font-size: 26px; font-weight: 600; color: var(--accent); letter-spacing: -.02em; }
  .fx-accard-nlab { font-size: 13px; color: var(--fg-mute); }
  .fx-accard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--hairline); }
  .fx-avstack { display: inline-flex; }
  .fx-avstack-i { margin-left: -7px; } .fx-avstack-i:first-child { margin-left: 0; }
  .fx-accard-meta { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--fg-mute); }

  /* filters */
  .fx-lib-filters { display: flex; gap: 14px; align-items: flex-end; padding: 16px 18px; margin: 10px 0 18px; flex-wrap: wrap; }
  .fx-lfield { display: flex; flex-direction: column; gap: 6px; }
  .fx-lfield.grow { flex: 1; min-width: 200px; }
  .fx-lfield-lab { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-mute); }
  .fx-search-inline { display: flex; align-items: center; gap: 8px; background: var(--well); border: 1px solid var(--border); border-radius: 8px; padding: 0 12px; height: 40px; }
  .fx-search-inline:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
  .fx-linput { flex: 1; min-width: 0; width: 100%; background: none; border: none; outline: none; color: var(--fg); font-size: 14px; font-family: var(--font-ui); }
  .fx-linput::placeholder { color: var(--fg-mute); }
  .fx-select-wrap { position: relative; }
  .fx-select { appearance: none; -webkit-appearance: none; background: var(--well); border: 1px solid var(--border); border-radius: 8px; height: 40px; padding: 0 34px 0 12px; font-size: 14px; font-family: var(--font-ui); color: var(--fg); min-width: 140px; cursor: pointer; }
  .fx-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
  .fx-select-caret { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--fg-mute); pointer-events: none; }

  /* sub-bar */
  .fx-lib-subbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; flex-wrap: wrap; }
  .fx-lib-count { font-size: 13.5px; color: var(--fg-mute); }
  .fx-lib-count strong { color: var(--fg); font-family: var(--font-mono); }
  .fx-seg { display: inline-flex; background: var(--card-2); border: 1px solid var(--border); border-radius: 8px; padding: 3px; gap: 2px; }
  .fx-seg-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fg-mute); background: none; border: none; padding: 6px 12px; border-radius: 6px; }
  .fx-seg-btn.on { background: var(--card); color: var(--fg); box-shadow: var(--shadow-sm); }

  /* aircraft hero */
  .fx-ac-hero { display: flex; gap: 18px; align-items: flex-start; padding: 8px 0 22px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
  .fx-ac-hero-ic { width: 60px; height: 60px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--accent); flex: none; }
  .fx-ac-hero-main { flex: 1; min-width: 0; }
  .fx-ac-hero-titles { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .fx-ac-hero-stats { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-size: 13.5px; color: var(--fg-mute); }

  /* profile detail */
  .fx-pd-hero { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; padding-bottom: 22px; border-bottom: 1px solid var(--border); margin-bottom: 22px; flex-wrap: wrap; }
  .fx-pd-hero-main { min-width: 0; flex: 1; }
  .fx-pd-flags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .fx-pd-by { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-size: 13.5px; color: var(--fg-mute); }
  .fx-pd-author { display: inline-flex; align-items: center; gap: 7px; background: none; border: none; color: var(--fg-dim); font-size: 13.5px; font-weight: 500; }
  .fx-pd-author:hover { color: var(--accent); }
  .fx-pd-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .fx-pd-report { display: inline-flex; align-items: center; gap: 5px; background: none; border: none; color: var(--fg-mute); font-size: 12.5px; }
  .fx-pd-report:hover { color: var(--err); }
  .fx-pd-license { flex-basis: 100%; margin: 12px 0 0; font-size: 12.5px; color: var(--fg-mute); line-height: 1.55; }
  .fx-pd-grid { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
  .fx-pd-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  .fx-pd-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--nav-h) + 18px); }
  .fx-pd-card { padding: 20px 22px; }
  .fx-pd-h { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; margin-bottom: 6px; }
  .fx-pd-sub { font-size: 13px; color: var(--fg-mute); margin: 0 0 16px; line-height: 1.5; }
  .fx-pd-notes { font-size: 14.5px; line-height: 1.65; color: var(--fg-dim); }
  .fx-pd-notes p { margin: 0 0 12px; } .fx-pd-notes p:last-child { margin: 0; }

  .fx-pd-manage-actions { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
  .fx-pd-manage-actions > details { min-width: 0; max-width: 100%; }
  .fx-pd-manage-actions > details[open] { flex-basis: 100%; }
  .fx-pd-manage-actions > form { margin: 0; }
  .fx-pd-manage-actions .fx-btn { min-height: 42px; line-height: 1.35; white-space: normal; text-align: center; justify-content: center; }
  .fx-pd-manage-actions summary { cursor: pointer; }
  .fx-pd-manage-actions .fx-rev-form { margin-top: 16px; }
  @media (max-width: 540px) {
    .fx-pd-manage-actions > details, .fx-pd-manage-actions > form { width: 100%; }
    .fx-pd-manage-actions > details > summary, .fx-pd-manage-actions > form > .fx-btn { width: 100%; }
  }

  .fx-rev-summary { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px dashed var(--hairline); }
  .fx-rev-big { font-family: var(--font-mono); font-size: 40px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
  .fx-rev-ct { font-size: 12.5px; color: var(--fg-mute); margin-top: 5px; }
  .fx-rev-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 18px; }
  .fx-rev { display: flex; gap: 12px; }
  .fx-rev-body { flex: 1; min-width: 0; }
  .fx-rev-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
  .fx-rev-user { font-size: 13.5px; font-weight: 600; }
  .fx-rev-time { font-family: var(--font-mono); font-size: 11px; color: var(--fg-faint); margin-left: auto; }
  .fx-rev-text { font-size: 14px; color: var(--fg-dim); line-height: 1.55; margin: 0; }
  .fx-pd-card#reviews > .fx-empty-card + .fx-empty-card,
  .fx-pd-card#reviews > .fx-empty-card + .fx-signin-cta,
  .fx-pd-card#reviews > .fx-empty-card + .fx-rev-form { margin-top: 16px; }
  .fx-rev-form { padding-top: 16px; border-top: 1px dashed var(--hairline); display: flex; flex-direction: column; gap: 12px; }
  .fx-rev-form-row { display: flex; align-items: center; gap: 14px; }
  .fx-starpick { display: inline-flex; gap: 2px; }
  .fx-starpick-b { background: none; border: none; color: var(--border-hi); padding: 2px; }
  .fx-starpick-b svg { fill: none; }
  .fx-starpick-b.on { color: var(--signal); }
  .fx-starpick-b.on svg { fill: currentColor; }
  .fx-rev-ta { min-height: 80px; }
  .fx-rev-form-foot { display: flex; justify-content: flex-end; }
  .fx-signin-cta.sm { padding: 14px 16px; }

  .fx-cmt-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
  .fx-cmt { display: flex; gap: 12px; }
  .fx-cmt-body { flex: 1; min-width: 0; }
  .fx-cmt-head { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
  .fx-cmt-user { font-size: 13px; font-weight: 600; }
  .fx-cmt-time { font-family: var(--font-mono); font-size: 11px; color: var(--fg-faint); }
  .fx-cmt-text { font-size: 14px; color: var(--fg-dim); line-height: 1.55; margin: 0; }
  .fx-cmt-form { display: flex; flex-direction: column; gap: 10px; }
  .fx-empty-card + .fx-cmt-form { margin-top: 16px; }

  .fx-json { background: var(--well); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; overflow: auto; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; color: var(--fg-dim); max-height: 360px; margin: 0; }

  .fx-side-list { display: flex; flex-direction: column; }
  .fx-side-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: none; border: none; border-bottom: 1px dashed var(--hairline); padding: 10px 0; text-align: left; }
  .fx-side-row:hover .fx-side-title { color: var(--accent); }
  .fx-side-row-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
  .fx-side-title { font-size: 13px; font-weight: 500; }
  .fx-side-by { font-size: 11.5px; color: var(--fg-mute); }
  .fx-side-dl { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--fg-mute); flex: none; }
  .fx-side-all { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; color: var(--accent); font-size: 13px; font-weight: 500; padding: 12px 0 0; }
  .fx-author-card { display: flex; align-items: center; gap: 12px; background: none; border: none; text-align: left; width: 100%; }
  .fx-author-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
  .fx-author-meta { font-size: 12px; color: var(--fg-mute); }
  .fx-author-card:hover .fx-author-name { color: var(--accent); }

  /* share */
  .fx-share-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
  .fx-share-form { min-width: 0; padding: 8px 24px 24px; display: flex; flex-direction: column; }
  .fx-share-sec { padding: 20px 0; border-bottom: 1px solid var(--border); }
  .fx-share-sec:last-child { border-bottom: none; }
  .fx-share-sec-h { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-mute); margin-bottom: 16px; }
  .fx-field-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
  .fx-field-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
  .fx-field-row2 > .fx-field, .fx-field-row3 > .fx-field { min-width: 0; }
  .fx-field-ok { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ok); margin-top: 2px; }
  .fx-dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; border: 1.5px dashed var(--border-hi); border-radius: 12px; padding: 28px 20px; cursor: pointer; transition: all .15s; background: var(--well); }
  .fx-dropzone:hover { border-color: var(--accent); background: var(--card-2); }
  .fx-dropzone.has { border-style: solid; border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
  .fx-dropzone-main { font-size: 14px; font-weight: 500; color: var(--fg); }
  .fx-dropzone-sub { font-size: 12px; color: var(--fg-mute); }
  .fx-or { display: flex; align-items: center; gap: 12px; color: var(--fg-faint); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; margin: 16px 0; }
  .fx-or::before, .fx-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
  .fx-json-ta { min-height: 120px; font-family: var(--font-mono); font-size: 12.5px; }
  .fx-share-terms { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--border); line-height: 1.55; }
  .fx-share-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; flex-wrap: wrap; }
  .fx-share-preview { position: sticky; top: calc(var(--nav-h) + 18px); display: flex; flex-direction: column; gap: 10px; }
  .fx-preview-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-faint); }
  .fx-pcard.preview { cursor: default; }
  .fx-pcard.preview:hover { transform: none; box-shadow: none; border-color: var(--border); }
  .fx-preview-note { font-size: 12px; color: var(--fg-mute); line-height: 1.5; }

  @media (max-width: 900px) {
    .fx-latest-grid { grid-template-columns: 1fr 1fr; }
    .fx-latest-card:last-child { display: none; }
    .fx-pd-grid { grid-template-columns: 1fr; }
    .fx-pd-side { position: static; flex-direction: row; flex-wrap: wrap; }
    .fx-pd-side .fx-about-card { flex: 1; min-width: 220px; }
    .fx-share-grid { grid-template-columns: 1fr; }
    .fx-share-preview { position: static; }
    .fx-statstrip { grid-template-columns: repeat(2, 1fr); }
    .fx-feat-grid { grid-template-columns: 1fr; }
    .fx-field-row2, .fx-field-row3 { grid-template-columns: 1fr; }
  }

  /* ---------- RESPONSIVE ---------- */
  @media (max-width: 980px) {
    .fx-nav-links { display: none; }
  }
  @media (max-width: 900px) {
    .fx-topic-row.fx-topic-row-aligned { grid-template-columns: auto minmax(0, 1fr) 158px 96px; gap: 12px; }
    .fx-topic-row-aligned .fx-topic-counts { grid-template-columns: 76px 70px; gap: 12px; width: 158px; }
    .fx-topic-row-aligned .fx-topic-last { grid-template-columns: minmax(0, 1fr) 30px; width: 96px; }
    .fx-topic-grid { grid-template-columns: 1fr; }
    .fx-about { position: static; flex-direction: row; flex-wrap: wrap; }
    .fx-about-card { flex: 1; min-width: 220px; }
    .fx-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .fx-cat-row { grid-template-columns: minmax(0, 1fr); }
    .fx-cat-primary { grid-template-columns: 40px minmax(0, 1fr) auto; }
    .fx-cat-last { display: none; }
    .fx-profile-grid { grid-template-columns: 1fr; }
    .fx-acct-grid { grid-template-columns: 1fr; gap: 18px; }
    .fx-acct-aside { padding-top: 0; }
    .fx-lib-tablebar { align-items: flex-start; flex-direction: column; }
  }
  @media (max-width: 720px) {
    .fx-root,
    .fx-main {
      width: 100%;
      max-width: 100vw;
      overflow-x: clip;
    }
    .fx-page {
      box-sizing: border-box;
      width: 100%;
      max-width: 100vw;
      padding: 28px 16px 64px;
      overflow-x: clip;
    }
    .fx-page > *,
    .fx-card,
    .fx-searchbar,
    .fx-search-inline,
    .fx-lib-filters,
    .fx-statstrip,
    .fx-ptable,
    .fx-pcard,
    .fx-accard,
    .fx-topic-grid,
    .fx-profile-grid,
    .fx-acct-grid,
    .fx-pd-grid,
    .fx-share-grid,
    .fx-topic-hero,
    .fx-ac-hero,
    .fx-pd-hero {
      max-width: 100%;
      min-width: 0;
    }
    .fx-toolbar {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      align-items: stretch;
      gap: 10px;
    }
    .fx-toolbar-search,
    .fx-toolbar-right,
    .fx-toolbar-right .fx-btn {
      width: 100%;
      min-width: 0;
    }
    .fx-toolbar-right {
      justify-content: stretch;
    }
    .fx-toolbar .fx-searchbar,
    .fx-search-inline,
    .fx-lfield,
    .fx-lfield.grow,
    .fx-select {
      width: 100%;
      min-width: 0;
    }
    .fx-btn {
      max-width: 100%;
      justify-content: center;
    }
    .fx-lib-actions,
    .fx-pd-actions,
    .fx-share-foot {
      width: 100%;
      align-items: stretch;
    }
    .fx-lib-actions .fx-btn,
    .fx-pd-actions .fx-btn,
    .fx-share-foot .fx-btn {
      flex: 1 1 auto;
      min-width: 0;
    }
    .fx-lib-actions .fx-btn { flex: 1 1 0; white-space: normal; text-align: center; }
    .fx-lib-filters {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      padding: 14px;
    }
    .fx-cat-picker {
      grid-template-columns: minmax(0, 1fr);
    }
    .fx-sec-head,
    .fx-cat-row,
    .fx-topic-row,
    .fx-prow,
    .fx-pgroup-head {
      min-width: 0;
    }
    .fx-cat-name-row {
      flex-wrap: wrap;
    }
    .fx-lede,
    .fx-cat-desc,
    .fx-topic-title,
    .fx-pcard-title,
    .fx-pd-notes,
    .fx-rev-text,
    .fx-cmt-text {
      max-width: 100%;
      overflow-wrap: anywhere;
    }
    .fx-topic-title {
      white-space: normal;
    }
    .fx-topic-counts {
      display: none;
    }
    .fx-topic-row-aligned .fx-topic-counts,
    .fx-topic-row-aligned .fx-topic-last {
      display: none;
    }
    .fx-nav-links { display: none; }
    .fx-hide-sm { display: none; }
    .fx-cat-grid { grid-template-columns: 1fr; }
    .fx-cat-row { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 14px; }
    .fx-cat-primary { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
    .fx-cat-stats { display: none; }
    .fx-topic-row { grid-template-columns: auto minmax(0, 1fr) auto; padding: 13px 16px; gap: 12px; }
    .fx-topic-row.fx-topic-row-aligned { grid-template-columns: auto minmax(0, 1fr) auto; }
    .fx-library-page { padding-top: 18px; }
    .fx-latest { margin-bottom: 34px; }
    .fx-lib-section-head { align-items: flex-start; }
    .fx-lib-section-head h2 { font-size: 21px; }
    .fx-lib-section-head .fx-seeall { display: none; }
    .fx-latest-grid { grid-template-columns: minmax(0, 1fr); }
    .fx-latest-card:last-child { display: flex; }
    .fx-lib-tablebar { margin-top: 4px; }
    .fx-seg { width: 100%; }
    .fx-seg-btn { flex: 1; justify-content: center; }
    .fx-ptable-scroll { overflow: visible; }
    .fx-ptable { width: 100%; min-width: 0; display: block; table-layout: auto; }
    .fx-ptable colgroup { display: none; }
    .fx-ptable thead { display: none; }
    .fx-ptable tbody { display: block; width: 100%; }
    .fx-prow { position: relative; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 18px; padding: 15px 16px; border-bottom: 1px solid var(--border); }
    .fx-prow:last-child { border-bottom: none; }
    .fx-prow td, .fx-prow td:first-child { display: grid; grid-template-columns: 82px minmax(0, 1fr); align-items: baseline; gap: 8px; padding: 6px 0; background: transparent; border: none; white-space: normal; }
    .fx-prow:hover td { background: transparent; }
    .fx-prow td::before { content: attr(data-label); color: var(--fg-faint); font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
    .fx-prow td > * { grid-column: 2; min-width: 0; }
    .fx-prow .fx-prow-aircraft, .fx-prow .fx-prow-profile { grid-column: 1 / -1; display: flex; padding-right: 34px; }
    .fx-prow td.fx-prow-aircraft, .fx-prow td.fx-prow-aircraft:first-child { display: flex; grid-template-columns: none; align-items: center; padding-left: 0; }
    .fx-prow td.fx-prow-aircraft > * { grid-column: auto; }
    .fx-prow-aircraft-inner { width: 100%; }
    .fx-prow .fx-prow-aircraft::before, .fx-prow .fx-prow-profile::before { display: none; }
    .fx-prow .fx-prow-profile { display: block; padding-top: 8px; padding-bottom: 10px; }
    .fx-prow-aircraft-name, .fx-prow-name { white-space: normal; overflow-wrap: anywhere; }
    .fx-prow-hardware { white-space: normal; overflow-wrap: anywhere; }
    .fx-prow-date .fx-prow-cell-value { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
    .fx-prow-date .fx-new-badge { display: inline-flex; width: max-content; margin: 0; }
    .fx-prow-date time { display: inline; }
    .fx-prow-discuss { grid-column: 1 / -1; }
    .fx-prow-discuss-time { margin-left: 19px; }
    .fx-prow-downloads { text-align: left !important; }
    .fx-prow-download-value { justify-content: flex-start; }
    .fx-prow-open { position: absolute; top: 16px; right: 12px; display: block !important; padding: 0 !important; }
    .fx-prow-open::before { display: none; }
    .fx-topic-last { display: none; }
    .fx-foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .fx-post { grid-template-columns: 1fr; }
    .fx-post-author { flex-direction: row; border-right: none; border-bottom: 1px dashed var(--hairline); justify-content: flex-start; gap: 12px; padding: 14px 18px; }
    .fx-post-author-meta { align-items: flex-start; }
    .fx-post-act.subtle { margin-left: 0; }
    .fx-h1 { font-size: 25px; }
  }

  @media (max-width: 480px) {
    .fx-prow { grid-template-columns: 1fr; }
    .fx-prow td, .fx-prow td:first-child, .fx-prow-discuss { grid-column: 1; }
    .fx-prow .fx-prow-aircraft, .fx-prow .fx-prow-profile { grid-column: 1; }
    .fx-prow-discuss-time { margin-left: 19px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .fx-latest-card { transition: border-color .15s; }
    .fx-latest-card:hover { transform: none; }
  }

/* Community redesign integration on the existing public header */
.community-nav-actions {
  margin-left: auto;
  gap: 10px;
}
.community-guidelines-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
}
.fx-usermenu {
  position: relative;
}
.fx-usermenu > summary {
  list-style: none;
  cursor: pointer;
}
.fx-usermenu > summary::-webkit-details-marker {
  display: none;
}
.community-nav-avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--fg);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}
.community-nav-handle {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.community-user-menu form {
  margin: 0;
}
.community-user-menu .fx-menu-item {
  text-decoration: none;
  cursor: pointer;
}
.top .community-nav-actions .fx-btn {
  text-decoration: none;
}
@media (max-width: 760px) {
  .community-guidelines-link,
  .community-nav-handle {
    display: none;
  }
  .community-nav-actions {
    margin-left: 0;
  }
}

/* Small glue classes used by the Razor implementation */
.fx-crumbs svg {
  flex: none;
  color: var(--fg-faint);
}
.fx-cat-wrap,
.fx-activity-wrap,
.fx-lib-featured {
  padding: 0;
}
.fx-search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
  flex-wrap: wrap;
}
.fx-scopes {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.fx-rule-list {
  list-style: none;
  counter-reset: fx-rule;
  margin: 0;
  padding: 0;
}
.fx-rule-list li {
  counter-increment: fx-rule;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--hairline);
}
.fx-rule-list li:last-child {
  border-bottom: none;
}
.fx-rule-list li::before {
  content: counter(fx-rule);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card-2);
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}
/* The number is the ::before pseudo (auto-placed in column 1). Pin BOTH the
   heading and the body text to column 2 so grid auto-placement can't drop the
   <span> into the narrow 34px first column — which rendered it one word per
   line. */
.fx-rule-list strong {
  grid-column: 2;
  display: block;
  font-size: 14px;
  color: var(--fg);
  margin-bottom: 2px;
}
.fx-rule-list span {
  grid-column: 2;
  color: var(--fg-mute);
  font-size: 13.5px;
  line-height: 1.55;
}
.fx-inline-form {
  display: inline-flex;
  margin: 0;
}
.fx-post-actions.compact {
  align-items: center;
  flex-wrap: wrap;
}
.fx-post-actions.compact .fx-post-act {
  text-decoration: none;
}
.fx-report-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.fx-share-sec > .fx-field + .fx-field,
.fx-share-sec > .fx-field-row2,
.fx-share-sec > .fx-field-row3 {
  margin-top: 14px;
}
.fx-textarea {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 14px;
}
.fx-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.fx-editor .fx-textarea {
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 13px 14px;
}
.fx-field-row3 .fx-select {
  width: 100%;
  min-width: 0;
}
.fx-cmt .fx-empty-card {
  padding: 14px 16px;
  text-align: left;
}
.fx-rev-text.ugc,
.fx-cmt-text.ugc {
  max-width: none;
}
.fx-chip {
  white-space: nowrap;
}

/* WEB-0019 — MOZA preset converter. Uses the community design tokens and
   existing form/card typography; these rules only provide the report layout. */
.fx-moza-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.fx-moza-grid .fx-dropzone input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.fx-moza-grid .fx-dropzone:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fx-moza-dropzone.has { border-style: solid; border-color: color-mix(in srgb, var(--ok) 52%, var(--border)); background: color-mix(in srgb, var(--ok) 7%, var(--well)); }
.fx-moza-dropzone.has > svg { color: var(--ok); }
.fx-moza-dropzone.has .fx-dropzone-main { max-width: 100%; font-family: var(--font-mono); overflow-wrap: anywhere; }
.fx-moza-dropzone.has .fx-dropzone-sub { color: var(--ok); font-weight: 550; }
.fx-moza-dropzone.is-window-dragging { border-style: solid; border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.fx-moza-dropzone.is-window-dragging > svg { color: var(--accent); transform: translateY(-2px); }
.fx-moza-notes { display: grid; gap: 12px; }
.fx-moza-note { padding: 18px; }
.fx-moza-note h2 { margin: 0 0 7px; font-size: 14px; }
.fx-moza-note p { margin: 0; color: var(--fg-mute); font-size: 13px; line-height: 1.55; }
.fx-moza-detected { display: flex; justify-content: space-between; gap: 24px; padding: 18px 20px; margin-bottom: 18px; }
.fx-moza-detected > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fx-moza-detected > div strong { font-size: 17px; overflow-wrap: anywhere; }
.fx-moza-detected > div > span:last-child { color: var(--fg-mute); font-size: 13px; }
.fx-moza-detected dl { display: flex; gap: 28px; margin: 0; flex-wrap: wrap; }
.fx-moza-detected dl div { display: flex; flex-direction: column; gap: 4px; }
.fx-moza-detected dt { color: var(--fg-mute); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.fx-moza-detected dd { margin: 0; font-size: 13px; }
.fx-moza-confirm { width: 100%; }
.fx-moza-confirm .fx-select { width: 100%; }
.fx-field > .fx-moza-hint { position: static; margin-top: 2px; font-family: var(--font-ui); }
.fx-moza-next { margin: 16px 0 20px; padding: 18px; }
.fx-moza-next-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.fx-moza-next-head h2 { margin: 3px 0 0; font-size: 18px; }
.fx-moza-next-head > .fx-link { flex: none; margin-top: 4px; font-size: 12.5px; }
.fx-moza-next-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fx-moza-next-option { min-width: 0; margin: 0; padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--well); border: 1px solid var(--hairline); border-radius: 10px; }
.fx-moza-next-option > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fx-moza-next-option strong { font-size: 14px; }
.fx-moza-next-option span { color: var(--fg-mute); font-size: 12px; line-height: 1.45; }
.fx-moza-next-option .fx-btn { flex: none; }
.fx-moza-next-library { background: color-mix(in srgb, var(--accent) 5%, var(--well)); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); box-shadow: inset 3px 0 0 var(--accent); }
.fx-moza-next-library strong { color: var(--accent); }
.fx-moza-library-btn { background: var(--card); border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); color: var(--accent); font-weight: 600; }
.fx-moza-library-btn:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.fx-moza-baseline { display: flex; align-items: baseline; gap: 12px; padding: 14px 18px; margin: 16px 0; flex-wrap: wrap; }
.fx-moza-baseline > span:last-child { color: var(--fg-mute); font-size: 11px; }
.fx-moza-report { overflow: hidden; margin-top: 18px; padding: 0; }
.fx-moza-report .fx-sec-title { margin: 0; }
.fx-moza-table-wrap { overflow-x: auto; }
.fx-moza-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.fx-moza-table th { color: var(--fg-mute); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; text-align: left; background: var(--well); }
.fx-moza-table th, .fx-moza-table td { padding: 11px 14px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.fx-moza-table tbody tr:last-child td { border-bottom: 0; }
.fx-moza-table code, .fx-moza-details code { color: var(--fg-dim); font-size: 11px; overflow-wrap: anywhere; white-space: normal; }
.fx-moza-empty { margin: 0; padding: 18px; color: var(--fg-mute); font-size: 13px; }
.fx-moza-detail-grid { display: grid; gap: 10px; margin-top: 12px; }
.fx-moza-details { padding: 0; overflow: hidden; }
.fx-moza-details summary { min-width: 0; padding: 14px 16px; display: flex; align-items: center; gap: 9px; cursor: pointer; font-weight: 600; font-size: 13px; list-style: none; transition: background .15s; }
.fx-moza-details summary::-webkit-details-marker { display: none; }
.fx-moza-details summary::before { content: ""; width: 7px; height: 7px; flex: none; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.fx-moza-details[open] summary::before { transform: rotate(45deg); }
.fx-moza-details summary:hover { background: var(--hover-wash); }
.fx-moza-details summary:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.fx-moza-details summary span { margin-left: auto; color: var(--fg-mute); background: var(--card-2); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; font-family: var(--font-mono); font-size: 11px; font-weight: 400; }
.fx-moza-details-body { padding: 14px 16px 16px; border-top: 1px solid var(--hairline); }
.fx-moza-details-body > p { margin: 0 0 12px; color: var(--fg-mute); font-size: 12.5px; line-height: 1.5; }
.fx-moza-field-list { max-height: 340px; margin: 0; padding: 0; overflow-y: auto; scrollbar-gutter: stable; list-style: none; background: var(--well); border: 1px solid var(--hairline); border-radius: 8px; }
.fx-moza-field-list li { padding: 8px 10px; border-bottom: 1px solid var(--hairline); }
.fx-moza-field-list li:last-child { border-bottom: 0; }
.fx-moza-field-list code { display: block; color: var(--fg-dim); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; white-space: normal; }
.fx-moza-warnings { padding: 16px 18px; margin-top: 12px; }
.fx-moza-warnings h2 { margin: 0 0 5px; font-size: 14px; }
.fx-moza-warnings p, .fx-moza-warnings li { color: var(--fg-mute); font-size: 12.5px; line-height: 1.5; }
.fx-moza-warnings p { margin: 0; }
.fx-moza-warnings ul { margin: 10px 0 0; }
.fx-moza-actions { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.fx-moza-actions > div { display: flex; gap: 10px; flex-wrap: wrap; }
.fx-moza-actions form { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; margin: 0; }
.fx-moza-actions form span { max-width: 300px; color: var(--fg-mute); font-size: 11.5px; text-align: right; line-height: 1.45; }
.fx-moza-rights { margin: 14px 0 0; color: var(--fg-dim); font-size: 13px; line-height: 1.5; }
.fx-moza-provenance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; }
.fx-moza-provenance div { padding: 10px 12px; background: var(--well); border: 1px solid var(--hairline); }
.fx-moza-provenance div + div { border-left: 0; }
.fx-moza-provenance dd { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .fx-moza-grid { grid-template-columns: 1fr; }
  .fx-moza-detected { flex-direction: column; }
  .fx-moza-next-grid { grid-template-columns: 1fr; }
  .fx-moza-next-option { align-items: stretch; flex-direction: column; }
  .fx-moza-next-option .fx-btn { justify-content: center; }
  .fx-moza-actions { align-items: stretch; flex-direction: column; }
  .fx-moza-actions form { align-items: stretch; }
  .fx-moza-actions form span { text-align: left; }
  .fx-moza-provenance { grid-template-columns: 1fr; }
  .fx-moza-provenance div + div { border-left: 1px solid var(--hairline); border-top: 0; }
}

/* ============================================================
   Unified member page (Account Section handoff): shared header
   + underline tab bar. /community/u/{handle} and /community/account
   both render CommunityMemberPage; Settings is a self-only tab.
   ============================================================ */

/* Header: avatar | name+stats | right-aligned action. */
.fx-uhead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  margin-top: 8px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.fx-uhead-avatar { flex: none; }
.fx-uhead .forum-avatar-lg { width: 76px; height: 76px; font-size: 30px; }
.fx-uhead-main { min-width: 0; }
.fx-uhead-titlerow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.fx-uhead-name { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
/* "This is you" pill — accent text on a soft accent fill (handoff §6). */
.fx-uhead-you {
  flex: none;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 999px;
  padding: 3px 10px;
}
/* Stats line: dot-separated, mono numerals. */
.fx-uhead-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  margin-top: 8px;
  font-size: 14px;
  color: var(--fg-mute);
}
.fx-uhead-stats > span + span::before {
  content: "·";
  margin: 0 10px;
  color: var(--fg-faint);
}
.fx-uhead-stats .fx-mono { font-family: var(--font-mono); font-weight: 600; color: var(--fg); }
.fx-uhead-joined { font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-faint); }
.fx-uhead-action { justify-self: end; }

/* Underline tab bar. */
.fx-utabs {
  display: flex;
  gap: 26px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--border);
}
.fx-utab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 2px;
  margin-bottom: -1px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-mute);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.fx-utab:hover { color: var(--fg); }
.fx-utab.on { color: var(--fg); border-bottom-color: var(--accent); font-weight: 600; }
/* Count pill: muted by default; accent on the active tab (handoff §6). */
.fx-utab-ct {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 8px;
}
.fx-utab.on .fx-utab-ct {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}
.fx-utab-panel { display: block; }
/* Sign out sits in its own bordered footer at the bottom of Settings. */
.fx-utab-signout {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

@media (max-width: 720px) {
  .fx-uhead {
    grid-template-columns: auto 1fr;
    gap: 16px;
  }
  .fx-uhead-action {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 4px;
  }
  .fx-utabs { gap: 18px; overflow-x: auto; }
}

/* ============================================================
   Community sub-nav — secondary bar under the main nav, shown only on the
   Community + Profiles surface (rendered by SiteNav). Shares the marketing
   `.wrap` so it lines up with the page content frame. Lives OUTSIDE .fx-root,
   so it uses the global tokens (--brand, not the fx-scoped --accent).
   ============================================================ */
.community-subnav {
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.community-subnav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
}
.community-subnav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.community-subnav-links::-webkit-scrollbar { display: none; }
.community-subnav-link {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 13.5px;
  color: var(--fg-mute);
  text-decoration: none;
  padding: 13px 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s;
}
.community-subnav-link:hover { color: var(--fg); }
.community-subnav-link.active {
  color: var(--fg);
  font-weight: 600;
  border-bottom-color: var(--brand);
}
.community-subnav-auth {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.community-nav-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.community-nav-handle {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.community-language-note {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--brand) 10%, var(--bg));
  color: var(--fg);
}
.community-language-note .wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 9px;
  padding-bottom: 9px;
  font-size: 13.5px;
  line-height: 1.45;
}
.community-language-note strong {
  flex: 0 0 auto;
  color: var(--brand);
}

@media (max-width: 640px) {
  .community-subnav .wrap { gap: 10px; }
  .community-subnav-links { gap: 16px; }
  .community-nav-handle { display: none; }
  .community-language-note .wrap {
    display: block;
    font-size: 13px;
  }
  .community-language-note strong {
    display: block;
    margin-bottom: 2px;
  }
}

