/* Forum – premium community styles (public site, light + dark). Uses the global tokens of app.css. */
.fx {
  --fx-soft: color-mix(in srgb, var(--brand) 5%, var(--card));
  --fx-tile: color-mix(in srgb, var(--brand-2) 13%, var(--card));
  --fx-hover: color-mix(in srgb, var(--brand-2) 6%, var(--card));
  --fx-gold-text: #7a5628;
  --fx-focus: #0b5d47;
  padding-top: 8px;
}
html[data-theme="dark"] .fx { --fx-gold-text: #e2b15a; --fx-focus: #e2b15a; --fx-soft: color-mix(in srgb, #fff 4%, var(--card)); }
.fx-narrow { max-width: 860px; margin-inline: auto; }
.fx .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fx .kicker { color: var(--fx-gold-text); }
.fx a:hover { color: var(--brand); }
.fx a:focus-visible, .fx button:focus-visible, .fx select:focus-visible, .fx summary:focus-visible, .fx input:focus-visible { outline: 2px solid var(--fx-focus); outline-offset: 2px; }

/* breadcrumbs */
.fx-crumbs { margin: 14px 0 4px; font-size: .88rem; }
.fx-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; align-items: center; }
.fx-crumbs li { display: inline-flex; align-items: center; color: var(--muted); max-width: 100%; }
.fx-crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--muted); opacity: .8; }
.fx-crumbs a { color: var(--muted); font-weight: 500; }
.fx-crumbs a:hover { color: var(--brand); text-decoration: underline; }
.fx-crumbs li span[aria-current] { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }

/* hero */
.fx-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 18px 0 22px; flex-wrap: wrap; }
.fx-hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1; margin: 0 0 10px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fx-hero .lede { margin: 0; max-width: 56ch; }
.fx-hero.is-form { padding-bottom: 12px; }
.fx-hero-side { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fx-pills { display: flex; gap: 10px; margin: 0; flex-wrap: wrap; }
.fx-pills > div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 16px; min-width: 96px; box-shadow: var(--shadow); }
.fx-pills dt { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.fx-pills dd { margin: 2px 0 0; font-family: Fraunces, Georgia, serif; font-size: 1.5rem; font-weight: 560; line-height: 1.1; }

/* icon tiles */
.fx-ico { width: 52px; height: 52px; flex: 0 0 52px; display: grid; place-items: center; border-radius: 16px; background: var(--fx-tile); color: var(--brand-2); font-size: 1.2rem; }
.fx-ico.is-lg { width: 56px; height: 56px; flex-basis: 56px; font-size: 1.35rem; }

/* category + lists */
.fx-cat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 0 22px; overflow: hidden; }
.fx-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 20px; background: var(--fx-soft); border-bottom: 1px solid var(--line); }
.fx-cat-head h2 { margin: 0; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.fx-cat.is-news .fx-cat-head h2 i { color: var(--fx-gold-text); }
.fx-count { font-family: Outfit, "Segoe UI", sans-serif; font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--fx-tile); color: var(--ink); letter-spacing: 0; }
.fx-list { display: block; }
.fx-board, .fx-topic { display: grid; align-items: center; gap: 18px; padding: 16px 20px; border-top: 1px solid var(--line); }
.fx-list > :first-child { border-top: 0; }
.fx-board { grid-template-columns: 52px minmax(0, 1fr) 150px minmax(0, 270px); }
.fx-topic { grid-template-columns: 38px minmax(0, 1fr) 150px minmax(0, 220px); }
.fx-board:hover, .fx-topic:hover { background: var(--fx-hover); }
.fx-board h3, .fx-topic h3 { margin: 0; font-family: Outfit, "Segoe UI", sans-serif; font-size: 1.08rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.fx-board h3 a, .fx-topic h3 a { color: var(--ink); }
.fx-board h3 a:hover, .fx-topic h3 a:hover { color: var(--brand-2); text-decoration: underline; text-underline-offset: 3px; }
.fx-board-main p, .fx-topic-main p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.fx-subs { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.fx-subs a { font-weight: 550; }
.fx-meta a { color: var(--ink); font-weight: 550; }
.fx-meta a:hover { color: var(--brand-2); text-decoration: underline; }
.fx-mini { display: inline-flex; gap: 4px; margin-left: 8px; vertical-align: middle; }
.fx-mini a, .fx-mini i { font-style: normal; min-width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 8px; font-size: .78rem; border: 1px solid var(--line); background: var(--card); padding: 0 6px; color: var(--ink); }
.fx-mini i { border-color: transparent; background: none; color: var(--muted); }
.fx-mini a:hover { background: var(--fx-tile); color: var(--ink); }
.fx-state { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--fx-soft); color: var(--muted); }
.fx-topic.is-pinned .fx-state { background: color-mix(in srgb, var(--gold) 20%, var(--card)); color: var(--ink); }
.fx-topic.is-closed .fx-state { opacity: .85; }
.fx-stats { display: flex; gap: 22px; margin: 0; }
.fx-stats > div { text-align: center; min-width: 54px; }
.fx-stats dt { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.fx-stats dd { margin: 2px 0 0; font-size: 1.1rem; font-weight: 600; }
.fx-last { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: .88rem; color: var(--muted); }
.fx-last > div { min-width: 0; display: flex; flex-direction: column; }
.fx-last-title { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-last-title:hover { color: var(--brand-2); text-decoration: underline; }
.fx-last span a { color: var(--ink); font-weight: 550; }
.fx-none { color: var(--muted); font-style: italic; }

/* avatars + badges */
.fx-av { border-radius: 50%; object-fit: cover; flex: 0 0 auto; display: block; background: var(--fx-tile); }
.fx-av.is-letter { --s: 40px; width: var(--s); height: var(--s); display: inline-grid; place-items: center; font-weight: 650; color: var(--brand-2); font-size: calc(var(--s) * .42); }
.fx-badge { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 650; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; background: var(--fx-soft); color: var(--ink); border: 1px solid var(--line); line-height: 1.3; text-transform: none; font-family: Outfit, "Segoe UI", sans-serif; }
.fx-badge.is-pin { background: color-mix(in srgb, var(--gold) 20%, var(--card)); }
.fx-badge.is-news { background: color-mix(in srgb, var(--brand-2) 18%, var(--card)); }
.fx-badge.is-lock { background: color-mix(in srgb, var(--ink) 8%, var(--card)); }
.fx-badge.is-wait { background: color-mix(in srgb, var(--gold) 26%, var(--card)); }
.fx-badge.is-del { background: color-mix(in srgb, var(--danger) 16%, var(--card)); color: var(--ink); }
.fx-badge.is-starter { background: var(--fx-tile); }

/* sort + pager */
.fx-sort { display: flex; gap: 6px; flex-wrap: wrap; }
.fx-sort a { padding: 6px 12px; border-radius: 999px; font-size: .84rem; font-weight: 550; color: var(--ink); border: 1px solid transparent; }
.fx-sort a:hover { background: var(--card); border-color: var(--line); color: var(--ink); }
.fx-sort a.is-on { background: var(--brand); color: var(--card); }
html[data-theme="dark"] .fx-sort a.is-on { color: #14201b; }
.fx-pager { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: center; margin: 18px 0; }
.fx-pg { min-width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; font-size: .92rem; }
a.fx-pg:hover { background: var(--fx-tile); color: var(--ink); }
.fx-pg.is-on { background: var(--brand); border-color: transparent; color: #f7f3ea; }
html[data-theme="dark"] .fx-pg.is-on { color: #14201b; }
.fx-pg.is-gap { border: 0; background: none; min-width: 20px; padding: 0; color: var(--muted); }

/* empty + gates */
.fx-empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 48px 20px; color: var(--muted); }
.fx-empty i { font-size: 2rem; color: var(--brand-2); opacity: .85; margin-bottom: 6px; }
.fx-empty strong { color: var(--ink); font-size: 1.1rem; }
.fx-empty p { margin: 0 0 8px; }
.fx-gate { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px dashed var(--line); }
.fx-gate > i { font-size: 1.4rem; color: var(--brand-2); width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--fx-tile); }
.fx-gate > div { flex: 1 1 260px; }
.fx-gate p { margin: 2px 0 0; color: var(--muted); }
.fx-gate.is-closed > i { color: var(--ink); }

/* topic header + mod bar */
.fx-thead { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; padding: 16px 0 14px; }
.fx-thead h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.1; display: flex; gap: 8px 12px; align-items: center; flex-wrap: wrap; }
.fx-thead .fx-meta { margin: 0; color: var(--muted); }
.fx-modbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; margin: 0 0 16px; border-radius: 18px; border: 1px dashed color-mix(in srgb, var(--gold) 55%, var(--line)); background: color-mix(in srgb, var(--gold) 8%, var(--card)); }
.fx-modbar-title { font-weight: 650; font-size: .86rem; margin-right: 6px; display: inline-flex; gap: 8px; align-items: center; }
.fx-modmove { display: inline-flex; gap: 6px; align-items: center; }
.fx-modmove select { width: auto; min-height: 34px; padding: 4px 10px; border-radius: 999px; font-size: .88rem; }
.fx .btn-compact { padding: 6px 12px; font-size: .86rem; min-height: 34px; display: inline-flex; align-items: center; gap: 7px; }
.fx .btn.is-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.fx .btn.is-danger:hover { background: color-mix(in srgb, var(--danger) 12%, var(--card)); color: var(--danger); }
.fx .btn-line:hover { color: var(--ink); }
.fx a.btn-solid:hover { color: #f7f3ea; }
html[data-theme="dark"] .fx a.btn-solid:hover { color: #14201b; }

/* posts */
.fx-posts { display: grid; gap: 16px; margin: 6px 0; }
.fx-post { display: grid; grid-template-columns: 196px minmax(0, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 90px; }
.fx-post:target { outline: 2px solid color-mix(in srgb, var(--brand-2) 60%, transparent); outline-offset: 2px; }
.fx-post.is-flagged { border-style: dashed; opacity: .96; }
.fx-user { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 22px 14px; background: var(--fx-soft); border-right: 1px solid var(--line); }
.fx-user-av .fx-av { box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--line); }
.fx-user-av { display: block; line-height: 0; flex: 0 0 auto; }
.fx-user-av .fx-av { width: 72px; height: 72px; }
.fx-user-name { font-weight: 650; color: var(--ink); word-break: break-word; }
.fx-user-name:hover { color: var(--brand-2); text-decoration: underline; }
.fx-user-facts { margin: 4px 0 0; display: grid; gap: 6px; width: 100%; }
.fx-user-facts > div { display: flex; justify-content: space-between; gap: 8px; font-size: .82rem; border-top: 1px solid var(--line); padding-top: 6px; }
.fx-user-facts dt { color: var(--muted); }
.fx-user-facts dd { margin: 0; font-weight: 600; }
.fx-post-main { padding: 18px 24px 14px; min-width: 0; display: flex; flex-direction: column; }
.fx-post-head { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .86rem; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.fx-post-no { color: var(--muted); font-weight: 650; padding: 1px 8px; border-radius: 8px; }
.fx-post-no:hover { background: var(--fx-tile); color: var(--ink); }
.fx-flag { display: flex; gap: 10px; align-items: center; margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; font-size: .9rem; background: color-mix(in srgb, var(--gold) 14%, var(--card)); }
.fx-body { line-height: 1.65; font-size: 1.02rem; overflow-wrap: anywhere; }
.fx-body > :first-child { margin-top: 0; }
.fx-body > :last-child { margin-bottom: 0; }
.fx-body p { margin: 0 0 .9em; }
.fx-body ul, .fx-body ol { padding-left: 1.4em; margin: 0 0 .9em; }
.fx-body a { text-decoration: underline; text-underline-offset: 3px; }
.fx-body a:hover { color: var(--brand); }
.fx-body blockquote { margin: 0 0 1em; padding: 12px 16px; border-left: 4px solid var(--gold); background: var(--fx-soft); border-radius: 0 14px 14px 0; color: var(--ink); font-size: .96rem; }
.fx-body blockquote p:last-child { margin-bottom: 0; }
.fx-body blockquote > p:first-child { color: var(--muted); font-size: .86rem; }
.fx-body blockquote > p:first-child a { color: var(--muted); }
.fx-atts { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 12px; }
.fx-atts .is-image a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--fx-soft); line-height: 0; }
.fx-atts .is-image img { height: 180px; width: auto; max-width: 260px; object-fit: cover; display: block; }
.fx-atts .is-file a { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--fx-soft); color: var(--ink); }
.fx-atts .is-file a:hover { background: var(--fx-tile); color: var(--ink); }
.fx-atts .is-file i { font-size: 1.4rem; color: var(--brand-2); }
.fx-atts .is-file span { display: grid; font-weight: 600; font-size: .92rem; word-break: break-all; }
.fx-atts .is-file small { color: var(--muted); font-weight: 400; }
.fx-edited { margin: 12px 0 0; font-size: .8rem; color: var(--muted); }
.fx-post-foot { display: flex; gap: 4px 6px; flex-wrap: wrap; align-items: center; margin-top: auto; padding-top: 14px; }
.fx-post-foot form { margin: 0; display: inline-flex; }
.fx-act { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: .86rem; font-weight: 550; padding: 6px 12px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; }
.fx-act:hover { background: var(--fx-tile); color: var(--ink); }
.fx-act.is-danger:hover { background: color-mix(in srgb, var(--danger) 14%, var(--card)); color: var(--danger); }

/* compose */
.fx-reply { margin-top: 26px; scroll-margin-top: 90px; }
.fx-reply h2 { font-size: 1.4rem; margin: 0 0 12px; }
.fx-compose { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; display: grid; gap: 18px; }
.fx-field { display: grid; gap: 8px; }
.fx-field > label, .fx-label { font-weight: 600; font-size: .94rem; }
.fx-field b { color: var(--danger); }
.fx-field small { color: var(--muted); font-weight: 400; }
.fx-field input[name="title"] { font-size: 1.08rem; padding: 13px 16px; border-radius: 14px; }
.fx-field.has-error input, .fx-field.has-error textarea { border-color: var(--danger); }
.fx-field.has-error .tox.tox-tinymce { border-color: var(--danger); }
.fx .tox.tox-tinymce { border-radius: 14px; border: 1px solid var(--line); }
.fx-alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--danger) 12%, var(--card)); border: 1px solid color-mix(in srgb, var(--danger) 40%, var(--line)); color: var(--ink); }
.fx-alert i { color: var(--danger); margin-top: 3px; }
.fx-alert ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.fx-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.fx-keep { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fx-keep label { display: flex; gap: 8px; align-items: center; font-size: .92rem; }
.hp { position: absolute; left: -9999px; }

/* attachment picker */
.fx-up { display: grid; gap: 10px; position: relative; }
.fx-up-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.fx-up-zone { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border: 2px dashed color-mix(in srgb, var(--brand-2) 40%, var(--line)); border-radius: 18px; background: var(--fx-soft); cursor: pointer; transition: background .15s, border-color .15s; }
.fx-up-zone:hover, .fx-up.is-over .fx-up-zone { background: var(--fx-tile); border-color: var(--brand-2); }
.fx-up-input:focus-visible + .fx-up-zone { outline: 2px solid var(--fx-focus); outline-offset: 2px; }
.fx-up-ico { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: 14px; background: var(--card); color: var(--brand-2); font-size: 1.25rem; border: 1px solid var(--line); }
.fx-up-text { display: grid; gap: 2px; }
.fx-up-text small { color: var(--muted); font-size: .84rem; }
.fx-up-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.fx-up-list:empty { display: none; }
.fx-up-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); min-width: 0; }
.fx-up-thumb { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 10px; object-fit: cover; background: var(--fx-tile); display: grid; place-items: center; color: var(--brand-2); }
.fx-up-name { display: grid; min-width: 0; flex: 1; font-weight: 600; font-size: .9rem; }
.fx-up-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-up-name small { color: var(--muted); font-weight: 400; }
.fx-up-del { border: 0; background: transparent; color: var(--muted); width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-size: 1rem; }
.fx-up-del:hover { background: color-mix(in srgb, var(--danger) 14%, var(--card)); color: var(--danger); }
.fx-up-error { margin: 0; color: var(--danger); font-size: .9rem; font-weight: 550; }

/* responsive */
@media (max-width: 900px) {
  .fx-board { grid-template-columns: 52px minmax(0, 1fr); }
  .fx-topic { grid-template-columns: 38px minmax(0, 1fr); }
  .fx-board .fx-stats, .fx-topic .fx-stats, .fx-board .fx-last, .fx-topic .fx-last { grid-column: 2; }
  .fx-stats { gap: 16px; }
  .fx-stats > div { text-align: left; display: flex; gap: 6px; align-items: baseline; min-width: 0; }
  .fx-stats dd { font-size: .95rem; }
  .fx-stats dt { text-transform: none; letter-spacing: 0; font-size: .84rem; order: 2; font-weight: 400; }
}
@media (max-width: 700px) {
  .fx-post { grid-template-columns: 1fr; }
  .fx-user { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; text-align: left; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); gap: 10px 12px; }
  .fx-user-av .fx-av { width: 44px; height: 44px; }
  .fx-atts .is-image img { max-width: 100%; }
  .fx-user-facts { display: flex; width: auto; margin: 0 0 0 auto; gap: 14px; }
  .fx-user-facts > div { border-top: 0; padding-top: 0; flex-direction: column; gap: 0; text-align: right; }
  .fx-post-main { padding: 14px 16px 10px; }
  .fx-hero { padding-top: 10px; }
  .fx-compose { padding: 16px; }
  .fx-cat-head { padding: 12px 16px; }
  .fx-board, .fx-topic { padding: 14px 16px; gap: 10px 14px; }
  .fx-pills > div { min-width: 0; flex: 1; }
  .fx-crumbs li span[aria-current] { max-width: 30ch; }
}
@media (prefers-reduced-motion: reduce) { .fx-up-zone { transition: none; } }

/* F2: reports + moderation hints */
.fx-report > summary { list-style: none; }
.fx-report > summary::-webkit-details-marker { display: none; }
.fx-report[open] { flex: 1 0 100%; order: 9; }
.fx-report[open] > summary { background: var(--fx-tile); color: var(--ink); }
.fx-post-foot form.fx-report-form { display: grid; gap: 8px; margin: 8px 0 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--fx-soft); max-width: 460px; }
.fx-report-form label { font-weight: 600; font-size: .86rem; }
.fx-report-form select, .fx-report-form input:not(.hp) { width: 100%; }
.fx-report-form .btn { justify-self: start; }
.fx-act.is-done { cursor: default; color: var(--fx-gold-text); }
.fx-act.is-done:hover { background: transparent; color: var(--fx-gold-text); }
.fx-post-foot a.fx-act { text-decoration: none; }

/* ── F3: Abos, Ungelesen, Erwähnungen ─────────────────────────── */
.fx-badge.is-new { background: color-mix(in srgb, var(--brand-2) 16%, var(--card)); color: var(--ink); border-color: color-mix(in srgb, var(--brand-2) 40%, var(--line)); text-decoration: none; }
.fx-badge.is-new i { font-size: .45rem; color: var(--brand-2); }
a.fx-badge.is-new:hover { background: color-mix(in srgb, var(--brand-2) 26%, var(--card)); color: var(--ink); }
.fx-topic.is-unread .fx-topic-main h3 > a:first-child, .fx-board.is-unread h3 > a { font-weight: 750; }
.fx-topic.is-unread .fx-state, .fx-board.is-unread .fx-ico { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--brand-2) 55%, transparent); }
.fx-sub-form { display: inline-flex; margin: 0; }
.fx .btn.is-on { background: var(--fx-tile); }
.fx-thead-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fx-hero-side .fx-sub-form + .btn, .fx-hero-side .fx-sub-form + .fx-badge { margin-top: 8px; }
.fx-hero-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.fx-hero-tools form { margin: 0; }
.fx-dot-count { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--gold); color: #1c140c; font-size: .72rem; font-weight: 700; display: inline-grid; place-items: center; }
.fx-body a.fx-mention { font-weight: 650; text-decoration: none; padding: 0 4px; border-radius: 6px; background: color-mix(in srgb, var(--brand-2) 10%, var(--card)); }
.fx-body a.fx-mention:hover { text-decoration: underline; }
.fx-unsub { max-width: 620px; margin: 40px auto; padding: 36px 32px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 14px 40px rgba(20, 30, 25, .07); }
.fx-unsub h1 { font-size: 1.5rem; margin: 12px 0 10px; }
.fx-unsub p { color: var(--muted); }
.fx-unsub-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--fx-tile); color: var(--brand-2); font-size: 1.6rem; }
.fx-unsub-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
@media (max-width: 640px) { .fx-hero-tools { justify-content: flex-start; } .fx-unsub { padding: 26px 18px; margin: 20px auto; } }

/* ── F4: Reaktionen, Ränge, Signaturen, Umfragen, Suche, Zusammenführen ─────────── */
.fx-hint { margin: 0; font-size: .86rem; color: var(--muted); }
.fx-check { display: inline-flex; gap: 8px; align-items: center; font-size: .94rem; font-weight: 550; }
.fx-rank { font-size: .78rem; font-weight: 650; letter-spacing: .02em; color: var(--fx-gold-text); font-family: Outfit, "Segoe UI", sans-serif; }
.fx-rank.is-team { display: inline-flex; gap: 6px; align-items: center; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--brand-2) 14%, var(--card)); color: var(--ink); }
.fx-rank.is-team i { color: var(--brand-2); }
html[data-theme="dark"] .fx-rank.is-team i { color: var(--fx-gold-text); }

.fx-react { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.fx-rx { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .82rem; font-weight: 550; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer; line-height: 1.2; transition: background .15s, border-color .15s, color .15s; }
.fx-rx b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.fx-rx:hover { background: var(--fx-tile); color: var(--ink); border-color: color-mix(in srgb, var(--brand-2) 35%, var(--line)); }
.fx-rx.is-on { background: color-mix(in srgb, var(--brand-2) 14%, var(--card)); border-color: color-mix(in srgb, var(--brand-2) 55%, var(--line)); color: var(--ink); }
.fx-rx.is-on i { color: var(--brand-2); }
html[data-theme="dark"] .fx-rx.is-on i { color: var(--fx-gold-text); }
.fx-react.is-static .fx-rx { cursor: default; }
.fx-react.is-static .fx-rx:hover { background: var(--card); color: var(--muted); border-color: var(--line); }
.fx-sig { margin: 16px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .84rem; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.fx-pick { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px dashed color-mix(in srgb, var(--gold) 55%, var(--line)); background: color-mix(in srgb, var(--gold) 8%, var(--card)); color: var(--ink); cursor: pointer; }
.fx-pick input { width: auto; margin: 0; }
.fx-badge.is-private { background: color-mix(in srgb, var(--brand-2) 12%, var(--card)); }

.fx-modtools { margin: -6px 0 16px; border: 1px dashed color-mix(in srgb, var(--gold) 55%, var(--line)); border-radius: 18px; background: color-mix(in srgb, var(--gold) 5%, var(--card)); }
.fx-modtools > summary { cursor: pointer; padding: 10px 16px; font-weight: 650; font-size: .88rem; display: flex; gap: 8px; align-items: center; border-radius: 18px; list-style: none; }
.fx-modtools > summary::-webkit-details-marker { display: none; }
.fx-modtools > summary:hover { background: color-mix(in srgb, var(--gold) 12%, var(--card)); }
.fx-modtools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; padding: 4px 16px 16px; }
.fx-modtool { display: grid; gap: 8px; align-content: start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.fx-modtool h3 { margin: 0; font-size: 1rem; }
.fx-modtool label { font-weight: 600; font-size: .88rem; }
.fx-modtool .btn { justify-self: start; margin-top: 4px; }

.fx-poll { margin: 0 0 18px; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(135deg, color-mix(in srgb, var(--brand-2) 7%, var(--card)), var(--card) 60%); box-shadow: var(--shadow); scroll-margin-top: 90px; }
.fx-poll-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.fx-poll-icon { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 14px; background: var(--fx-tile); color: var(--brand-2); font-size: 1.2rem; }
html[data-theme="dark"] .fx-poll-icon { color: var(--fx-gold-text); }
.fx-poll-head .kicker { margin: 0 0 2px; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.fx-poll-head h2 { margin: 0 0 4px; font-size: 1.25rem; line-height: 1.25; }
.fx-poll-head .fx-meta { margin: 0; font-size: .86rem; color: var(--muted); }
.fx-poll-form fieldset { border: 0; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.fx-poll-choice { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-weight: 550; }
.fx-poll-choice:hover { background: var(--fx-hover); border-color: color-mix(in srgb, var(--brand-2) 35%, var(--line)); }
.fx-poll-choice input { width: auto; margin: 0; accent-color: var(--brand-2); }
.fx-poll-results { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 12px; }
.fx-poll-row { display: flex; justify-content: space-between; gap: 12px; font-size: .94rem; font-weight: 550; margin-bottom: 5px; }
.fx-poll-row i { color: var(--brand-2); }
html[data-theme="dark"] .fx-poll-row i { color: var(--fx-gold-text); }
.fx-poll-num { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }
.fx-poll-bar { display: block; width: 100%; height: 10px; border: 0; border-radius: 999px; background: var(--fx-soft); appearance: none; -webkit-appearance: none; overflow: hidden; }
.fx-poll-bar::-webkit-meter-bar { background: color-mix(in srgb, var(--ink) 8%, var(--card)); border: 0; border-radius: 999px; height: 10px; }
.fx-poll-bar::-webkit-meter-optimum-value, .fx-poll-bar::-webkit-meter-suboptimum-value, .fx-poll-bar::-webkit-meter-even-less-good-value { background: linear-gradient(90deg, var(--brand-2), color-mix(in srgb, var(--brand-2) 60%, var(--gold))); border-radius: 999px; }
.fx-poll-bar::-moz-meter-bar { background: linear-gradient(90deg, var(--brand-2), color-mix(in srgb, var(--brand-2) 60%, var(--gold))); border-radius: 999px; }
.is-mine .fx-poll-bar::-webkit-meter-optimum-value { background: linear-gradient(90deg, var(--gold), color-mix(in srgb, var(--gold) 60%, var(--brand-2))); }
.fx-pollbox { border: 1px solid var(--line); border-radius: 16px; background: var(--fx-soft); }
.fx-pollbox > summary { cursor: pointer; padding: 12px 16px; font-weight: 600; display: flex; gap: 8px; align-items: center; border-radius: 16px; }
.fx-pollbox > summary:hover { background: var(--fx-tile); }
.fx-pollbox > summary small { color: var(--muted); font-weight: 400; }
.fx-pollbox[open] { padding-bottom: 16px; }
.fx-pollbox > .fx-field, .fx-pollbox > .fx-poll-opts { margin: 12px 16px 0; }
.fx-poll-opts { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; }
.fx-poll-opts select { width: auto; min-width: 180px; }

.fx-searchbar { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 6px 6px 6px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.fx-searchbar > i { color: var(--muted); }
.fx-searchbar input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 8px 4px; box-shadow: none; }
.fx-searchbar input:focus-visible { outline-offset: 0; border-radius: 8px; }
.fx-searchform { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 14px; align-items: end; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); margin-bottom: 18px; }
.fx-search-count { margin: 0 0 10px; color: var(--muted); }
.fx-hits { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.fx-hit { padding: 16px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
.fx-hit:hover { background: var(--fx-hover); }
.fx-hit-title { font-weight: 650; font-size: 1.06rem; color: var(--ink); text-decoration: none; }
.fx-hit-title:hover { text-decoration: underline; color: var(--ink); }
.fx-hit-title small { color: var(--muted); font-weight: 500; font-size: .84rem; }
.fx-hit-snip { margin: 6px 0; color: var(--ink); font-size: .94rem; line-height: 1.55; }
.fx-hit .fx-meta { margin: 0; font-size: .84rem; color: var(--muted); }
.fx mark, .search-forum mark { background: color-mix(in srgb, var(--gold) 32%, var(--card)); color: var(--ink); border-radius: 4px; padding: 0 2px; }

@media (max-width: 700px) {
  .fx-searchform { grid-template-columns: 1fr; }
  .fx-rx-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fx-rx { padding: 6px 12px; }
  .fx-poll { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { .fx-rx { transition: none; } }
