:root {
  --community-canvas: #e8edef;
  --community-paper: #f9fbfb;
  --community-paper-strong: #ffffff;
  --community-ink: #0b1419;
  --community-copy: #263942;
  --community-muted: #687b84;
  --community-line: rgba(12, 32, 42, .15);
  --community-line-strong: rgba(12, 32, 42, .25);
  --community-red: #e12649;
  --community-red-dark: #b81735;
  --community-blue: #19769a;
  --community-green: #16885a;
  --community-gold: #a66c00;
  --community-shadow: 0 18px 52px rgba(17, 32, 39, .08);
  --community-feed-width: 46rem;
  --community-rail-width: 19.5rem;
}

html { min-width: 20rem; }

body.community-feed-page {
  min-height: 100vh;
  color: var(--community-ink);
  background: var(--community-canvas);
  font-family: var(--body);
  font-size: var(--type-body, .9375rem);
  line-height: 1.55;
}

/* Keep the shared command deck legible above this page's light canvas. */
.community-feed-page .command-nav,
.community-feed-page .command-nav.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, .1);
  background: #05080b;
  box-shadow: 0 10px 30px rgba(5, 8, 11, .18);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.community-feed-page .command-brand,
.community-feed-page .command-actions {
  color: #f3f6f7;
}

.community-feed-page .command-links a:is(.active, .is-active, [aria-current="page"]) {
  color: #fff;
}

.community-feed-page .command-links a:is(.active, .is-active, [aria-current="page"])::after {
  transform: scaleX(1);
}

.community-feed-page.dialog-open { overflow: hidden; }
.community-feed-page button,
.community-feed-page input,
.community-feed-page textarea,
.community-feed-page select { font: inherit; }
.community-feed-page button { cursor: pointer; }
.community-feed-page [hidden] { display: none !important; }
.community-feed-page .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.community-main {
  position: relative;
  width: min(72.5rem, calc(100% - 2rem));
  min-height: 70vh;
  margin-inline: auto;
  padding: calc(var(--nav-h) + 1.5rem) 0 5rem;
}

.community-guest-gate {
  position: fixed;
  z-index: 1150;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(34rem, calc(100% - 2rem));
  justify-items: center;
  gap: .75rem;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border: 1px solid rgba(255, 255, 255, .16);
  border-top: 3px solid var(--community-red);
  color: #f4f7f8;
  background: rgba(5, 11, 15, .96);
  box-shadow: 0 26px 90px rgba(0, 0, 0, .55);
  text-align: center;
  transform: translate(-50%, -43%);
}
.community-guest-gate[hidden] { display: none !important; }
.community-auth-pending .community-guest-gate { display: none !important; }
.community-auth-pending .community-layout { visibility: hidden; }
.community-guest-signal { color: var(--community-green); text-shadow: 0 0 16px currentColor; }
.community-guest-eyebrow { margin: 0; color: #ff6d88; font-size: .72rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.community-guest-gate h2 { margin: 0; font: 900 clamp(2.4rem, 8vw, 4.4rem)/.86 var(--display); letter-spacing: -.025em; text-transform: uppercase; }
.community-guest-gate > p:not(.community-guest-eyebrow) { max-width: 28rem; margin: .2rem 0 .45rem; color: #aebdc3; line-height: 1.55; }
.community-guest-actions { display: flex; width: min(25rem, 100%); gap: .65rem; }
.community-guest-actions .ctv-action { flex: 1 1 0; min-height: 3rem; justify-content: center; }
.community-guest-locked .community-layout {
  min-height: 70vh;
  filter: blur(11px) saturate(.55);
  opacity: .46;
  pointer-events: none;
  user-select: none;
}
.community-guest-locked .community-footer { filter: blur(5px); opacity: .55; pointer-events: none; }

.community-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--community-feed-width)) minmax(17rem, var(--community-rail-width));
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: start;
  justify-content: center;
}

.community-feed-column { min-width: 0; }

/* Composer: one clear starting point instead of a dashboard header. */
.quick-composer {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: .85rem 1rem;
  padding: 1.15rem 1.2rem .8rem;
  border: 1px solid var(--community-line);
  color: var(--community-ink);
  background: var(--community-paper-strong);
  box-shadow: var(--community-shadow);
}

.quick-composer-avatar,
.operator-hq-avatar,
.composer-author-avatar,
.post-avatar,
.comment-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #162630, #091116);
  font: 800 .82rem/1 var(--body);
}

.quick-composer-avatar { width: 3rem; height: 3rem; }
.quick-composer-avatar img,
.operator-hq-avatar img,
.composer-author-avatar img,
.post-avatar,
.comment-avatar { width: 100%; height: 100%; object-fit: cover; }

.quick-composer-prompt {
  min-width: 0;
  min-height: 3rem;
  padding: .15rem 1rem;
  border: 1px solid var(--community-line);
  border-radius: 999px;
  color: var(--community-muted);
  background: #f0f4f5;
  text-align: left;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.quick-composer-prompt:hover,
.quick-composer-prompt:focus-visible {
  border-color: rgba(225, 38, 73, .42);
  background: #fff;
  transform: translateY(-1px);
}

.quick-composer-prompt strong,
.quick-composer-prompt span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-composer-prompt strong { color: var(--community-copy); font-size: .9rem; }
.quick-composer-prompt span { margin-top: .08rem; font-size: .75rem; }

.quick-composer-tools {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: .75rem;
  border-top: 1px solid var(--community-line);
}

.quick-composer-tools button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .55rem .75rem;
  border: 0;
  color: #526770;
  background: transparent;
  font-size: .75rem;
  font-weight: 800;
  transition: color .18s ease, background .18s ease;
}

.quick-composer-tools button + button { border-left: 1px solid var(--community-line); }
.quick-composer-tools button:hover,
.quick-composer-tools button:focus-visible { color: var(--community-red); background: rgba(225, 38, 73, .055); }
.quick-composer-tools button > span { font-size: 1.05rem; }
.quick-composer-tools .quick-composer-action { color: #fff; background: var(--community-red); }
.quick-composer-tools .quick-composer-action:hover,
.quick-composer-tools .quick-composer-action:focus-visible { color: #fff; background: var(--community-red-dark); }

/* Compact feed controls with one clear feed/system switch. */
.community-toolbar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 4rem;
  align-items: stretch;
  justify-content: stretch;
  gap: .5rem;
  margin-top: 1rem;
  border: 0;
  background: transparent;
}

.community-scope-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  border: 1px solid #1c3039;
  background: #0a141a;
}
.community-scope-switch button {
  display: flex;
  min-height: 4rem;
  align-items: center;
  gap: .52rem;
  padding: 0 1rem;
  border: 0;
  color: #9babb2;
  background: transparent;
  font: 850 .76rem/1 var(--body);
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}
.community-scope-switch button + button { border-left: 1px solid #263941; }
.community-scope-switch button span { color: var(--community-red); font-family: var(--display); font-weight: 900; }
.community-scope-switch button:hover,
.community-scope-switch button:focus-visible { color: #fff; background: #13222a; }
.community-scope-switch button:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--community-red); outline-offset: -3px; }
.community-scope-switch button.is-active { color: #fff; background: #172630; box-shadow: inset 0 -3px 0 var(--community-red); }

.feed-filter-menu { position: relative; }
.feed-filter-menu > summary,
.community-refresh {
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: 0 1rem;
  border: 0;
  color: #fff;
  background: #cf203f;
  font-family: var(--display);
  font-size: .8rem;
  font-weight: 850;
  letter-spacing: .065em;
  list-style: none;
  text-transform: uppercase;
  transition: color .18s ease, background .18s ease;
}
.feed-filter-menu > summary::-webkit-details-marker { display: none; }
.feed-filter-chevron { font-size: 1rem; line-height: 1; transition: transform .18s ease; }
.feed-filter-menu[open] .feed-filter-chevron { transform: rotate(180deg); }
.feed-filter-menu > summary:hover,
.feed-filter-menu > summary:focus-visible,
.community-refresh:hover,
.community-refresh:focus-visible { color: #fff; background: var(--community-red-dark); }
.feed-filter-menu > summary:focus-visible,
.community-refresh:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.community-refresh {
  width: 4rem;
  padding: 0;
  color: #fff;
  background: #101d24;
  font-family: var(--body);
  font-size: 1.18rem;
}

.feed-filter-popover {
  position: absolute;
  top: calc(100% + .55rem);
  right: 0;
  display: grid;
  width: min(23rem, calc(100vw - 2rem));
  gap: .85rem;
  padding: 1.05rem;
  border: 1px solid rgba(151, 180, 192, .45);
  background: #fff;
  box-shadow: 0 24px 70px rgba(3, 11, 15, .32);
}
.search-field,
.select-field,
.form-field { display: grid; gap: .38rem; }
.search-field > span,
.select-field > span,
.form-field > span,
.rich-editor-label {
  color: #50636c;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.search-field input,
.select-field select,
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-height: 2.85rem;
  padding: .72rem .8rem;
  border: 1px solid var(--community-line-strong);
  border-radius: 0;
  outline: 0;
  color: var(--community-ink);
  background: #f9fbfb;
}
.form-field textarea { resize: vertical; line-height: 1.5; }
.search-field input:focus,
.select-field select:focus,
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-color: var(--community-red); box-shadow: 0 0 0 3px rgba(225, 38, 73, .11); }

.community-new-items {
  position: relative;
  z-index: 4;
  display: flex;
  min-height: 2.8rem;
  width: max-content;
  max-width: calc(100% - 2rem);
  align-items: center;
  justify-content: center;
  gap: .55rem;
  margin: .85rem auto 0;
  padding: .6rem 1rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(120deg, #13242c, #0a151b);
  box-shadow: 0 12px 34px rgba(5, 16, 22, .24), inset 3px 0 0 var(--community-red);
  font-size: .75rem;
}
.community-new-items > span { color: var(--community-green); font-size: .58rem; text-shadow: 0 0 .55rem currentColor; }
.community-new-items > i { color: #9eb0b7; font-style: normal; font-weight: 800; }
.community-new-items:hover,
.community-new-items:focus-visible { background: #1a303a; box-shadow: 0 14px 38px rgba(5, 16, 22, .3), inset 3px 0 0 #ff5877; }

.community-posts-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.45rem .1rem .75rem;
}
.community-posts-heading > div { display: flex; align-items: center; gap: .65rem; }
.community-posts-heading h2 { margin: 0; font: 900 1.45rem/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.community-posts-heading p { margin: 0; color: var(--community-muted); font-size: .75rem; text-align: right; }
.feed-live-indicator,
.pulse-live,
.operator-status { display: inline-flex; align-items: center; gap: .4rem; color: var(--community-green); font-size: .75rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.feed-live-indicator i,
.pulse-live i,
.operator-status i { width: .42rem; height: .42rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 .65rem currentColor; }

.community-access-state,
.community-feed { display: grid; gap: .85rem; }
.state-panel {
  display: grid;
  justify-items: center;
  gap: .7rem;
  padding: 4rem 1.5rem;
  border: 1px solid var(--community-line);
  background: rgba(255, 255, 255, .62);
  text-align: center;
}
.state-panel h2 { margin: 0; font: 900 1.75rem/1 var(--display); text-transform: uppercase; }
.state-panel p { margin: 0; color: var(--community-muted); }
.spinner { width: 1.6rem; height: 1.6rem; border: 2px solid rgba(12, 32, 42, .15); border-top-color: var(--community-red); border-radius: 50%; animation: community-spin .8s linear infinite; }
@keyframes community-spin { to { transform: rotate(360deg); } }

.community-activity-dialog {
  width: min(43rem, calc(100% - 2rem));
  max-height: min(46rem, calc(100dvh - 2rem));
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: .8rem;
  color: #edf3f5;
  background: #071015;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .62);
}
.community-activity-dialog::backdrop { background: rgba(2, 6, 8, .76); backdrop-filter: blur(6px); }
.community-activity-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.25rem; border-bottom: 1px solid rgba(159, 215, 238, .16); }
.community-activity-head span { color: #ff6f89; font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.community-activity-head h2 { margin: .2rem 0 0; font: 900 2rem/.9 var(--display); text-transform: uppercase; }
.community-activity-head .dialog-close { position: static; flex: 0 0 auto; width: 2.75rem; height: 2.75rem; border: 1px solid rgba(255, 255, 255, .18); color: #fff; background: transparent; }
.community-activity-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid rgba(159, 215, 238, .16); }
.community-activity-tabs button { position: relative; min-height: 3.4rem; padding: .7rem 1rem; border: 0; color: #8fa2aa; background: transparent; font-size: .75rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.community-activity-tabs button + button { border-left: 1px solid rgba(159, 215, 238, .16); }
.community-activity-tabs button.is-active { color: #fff; background: rgba(255, 255, 255, .035); }
.community-activity-tabs button.is-active::after { position: absolute; right: 1rem; bottom: -1px; left: 1rem; height: 3px; background: var(--community-red); content: ""; }
.community-activity-tabs b { display: inline-grid; min-width: 1.45rem; height: 1.45rem; margin-left: .35rem; place-items: center; border-radius: 999px; color: #fff; background: var(--community-red); font-size: .68rem; }
.community-activity-feed { display: grid; max-height: min(29rem, calc(100dvh - 15rem)); overflow-y: auto; }
.live-activity-item { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; gap: .8rem; align-items: center; min-height: 5rem; padding: .8rem 1.1rem; border-bottom: 1px solid rgba(159, 215, 238, .12); color: #edf3f5; text-decoration: none; }
.live-activity-item:hover,
.live-activity-item:focus-visible { background: rgba(159, 215, 238, .07); }
.live-activity-item.is-new { box-shadow: inset 3px 0 0 var(--community-red); }
.live-activity-signal { display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border: 1px solid rgba(159, 215, 238, .26); border-radius: 50%; color: #9fd7ee; background: #101b21; font: 900 .75rem/1 var(--display); }
.live-activity-copy { display: grid; min-width: 0; gap: .2rem; }
.live-activity-copy small { color: #ff6f89; font-size: .65rem; font-weight: 900; letter-spacing: .08em; }
.live-activity-copy strong { overflow: hidden; color: #eaf0f2; font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.live-activity-copy p { margin: 0; overflow: hidden; color: #90a3aa; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.live-activity-item time { color: #83969e; font-size: .7rem; white-space: nowrap; }
.activity-empty { padding: 3rem 1.25rem; color: #9badb4; text-align: center; }
.community-activity-footer { display: flex; min-height: 4.2rem; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border-top: 1px solid rgba(159, 215, 238, .16); }
.community-activity-footer span { color: #82959d; font-size: .7rem; }
.community-activity-footer .ctv-action { min-height: 2.75rem; }

/* Facebook-like status card: one surface, no nested dashboard chrome. */
.community-post-card {
  position: relative;
  min-width: 0;
  overflow: visible;
  border: 1px solid var(--community-line);
  color: var(--community-ink);
  background: var(--community-paper-strong);
  box-shadow: 0 9px 30px rgba(17, 32, 39, .055);
}
.community-post-card.is-pinned { border-top: 3px solid var(--community-gold); }
.community-post-card.is-system { border-top: 3px solid var(--community-red); }
.community-post-card.is-solved { border-left: 3px solid var(--community-green); }
.community-post-card.is-locked { background: #f4f6f6; }
.community-post-card.is-new-post {
  border-left: 4px solid var(--community-red);
  background: linear-gradient(90deg, rgba(225, 38, 73, .075), #fff 4.5rem);
  box-shadow: 0 11px 34px rgba(182, 23, 53, .12);
}

.post-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1rem .2rem;
}
.post-author { display: flex; min-width: 0; flex: 1 1 auto; align-items: center; gap: .7rem; color: inherit; }
.post-avatar-link {
  display: inline-grid;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  overflow: hidden;
  border-radius: 50%;
  color: inherit;
  text-decoration: none;
}
.post-avatar-link:hover .post-avatar { box-shadow: 0 0 0 2px var(--community-red); }
.post-avatar-link:focus-visible { outline: 2px solid var(--community-red); outline-offset: 3px; }
.post-avatar { width: 2.75rem; height: 2.75rem; }
.post-author-copy,
.post-author-line { display: flex; min-width: 0; align-items: center; gap: .42rem; }
.post-author-copy { align-items: flex-start; flex-direction: column; gap: .12rem; }
.post-author-line { flex-wrap: wrap; }
.post-author-name,
.post-author-profile {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: .36rem;
  color: inherit;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
.post-author-name strong,
.post-author-profile strong { overflow: hidden; max-width: 18rem; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.author-clan {
  display: inline;
  flex: 0 1 auto;
  min-height: 0;
  max-width: 9.5rem;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: #344b55;
  background: transparent;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .025em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-time,
.comment-head time { color: var(--community-muted); font-size: .75rem; }
.post-role { display: inline-flex; flex-wrap: wrap; gap: .25rem; }
.post-badge {
  display: inline-flex;
  min-height: 1.05rem;
  align-items: center;
  padding: .06rem .3rem;
  color: #526770;
  background: #eaf0f2;
  font-size: .625rem;
  font-weight: 850;
  letter-spacing: .03em;
  line-height: 1.15;
  text-transform: uppercase;
}
.post-badge-admin,
.post-badge-new { color: #fff; background: var(--community-red); }
.post-badge-moderator { color: #fff; background: var(--community-blue); }
.post-badge-creator,
.post-badge-solved { color: #fff; background: var(--community-green); }
.post-badge-verified { color: #fff; background: #1d647f; }
.post-badge-locked { color: #fff; background: #596970; }

.post-menu { position: relative; flex: 0 0 auto; }
.post-menu summary {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  color: #60727b;
  cursor: pointer;
  list-style: none;
  letter-spacing: .11em;
}
.post-menu summary::-webkit-details-marker { display: none; }
.post-menu summary:hover,
.post-menu summary:focus-visible { color: var(--community-red); background: #eef2f3; }
.menu-popover {
  position: absolute;
  z-index: 12;
  top: 2.5rem;
  right: 0;
  display: grid;
  width: 13.5rem;
  padding: .4rem;
  border: 1px solid var(--community-line-strong);
  background: #fff;
  box-shadow: 0 20px 60px rgba(7, 21, 28, .2);
}
.menu-popover button,
.menu-popover span { padding: .7rem .75rem; border: 0; color: var(--community-copy); background: transparent; font-size: .75rem; text-align: left; }
.menu-popover button:hover,
.menu-popover button:focus-visible { color: var(--community-red); background: rgba(225, 38, 73, .06); }
.menu-popover .danger { color: #bf2440; }

.post-content { display: grid; gap: .65rem; padding: .65rem 1rem .95rem; }
.post-category {
  width: max-content;
  color: var(--community-red);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.post-title { margin: 0; font: 900 clamp(1.3rem, 3vw, 1.65rem)/1.08 var(--display); letter-spacing: .005em; }
.post-text,
.post-copy,
.comment-copy { margin: 0; color: var(--community-copy); font-size: .91rem; line-height: 1.62; overflow-wrap: anywhere; white-space: pre-wrap; }
.post-meta { display: flex; flex-wrap: wrap; gap: .35rem; }
.community-rich-title { display: block; margin: .8rem 0 .35rem; font: 800 1.08rem/1.2 var(--display); }
.community-rich-line { display: block; min-width: 0; white-space: pre-wrap; }
.community-rich-break { display: block; height: .7rem; }
.community-rich-list { margin: .45rem 0 .45rem 1.25rem; padding: 0; }
.community-auto-link,
.community-mention { color: #126c91; font-weight: 700; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: .18em; transition: color .18s ease, text-decoration-color .18s ease; }
.community-auto-link:hover,
.community-auto-link:focus-visible,
.community-mention:hover,
.community-mention:focus-visible,
.post-author-name:hover,
.post-author-name:focus-visible,
.post-author-profile:hover,
.post-author-profile:focus-visible { color: var(--community-red); text-decoration-color: currentColor; }
.community-auto-link:focus-visible,
.community-mention:focus-visible,
.post-author-name:focus-visible,
.post-author-profile:focus-visible { outline: 2px solid var(--community-red); outline-offset: 3px; }

.post-media,
.post-link { display: block; margin: .1rem -1rem -.95rem; }
.post-media img { width: 100%; max-height: 37rem; object-fit: cover; }
.post-link { padding: .85rem 1rem; border-top: 1px solid var(--community-line); color: var(--community-blue); font-size: .76rem; font-weight: 800; text-decoration: none; }

.community-link-preview {
  display: grid;
  width: min(100%, 34rem);
  min-height: 5.6rem;
  grid-template-columns: 9rem minmax(0, 1fr) 2.65rem;
  align-items: stretch;
  margin-top: .2rem;
  overflow: hidden;
  border: 1px solid #c8d3d7;
  border-radius: .72rem;
  color: var(--community-ink);
  background: #f4f7f8;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.community-link-preview.is-generic { min-height: 4.7rem; grid-template-columns: minmax(0, 1fr) 2.65rem; }
.community-link-preview:hover { border-color: rgba(225, 38, 73, .62); background: #fff; box-shadow: 0 12px 28px rgba(7, 21, 28, .1); transform: translateY(-1px); }
.community-link-preview:focus-visible { outline: 3px solid rgba(225, 38, 73, .32); outline-offset: 2px; border-color: var(--community-red); }
.community-link-preview-media { position: relative; display: block; min-width: 0; overflow: hidden; background: #071015; }
.community-link-preview-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.community-link-preview-play { position: absolute; top: 50%; left: 50%; display: grid; width: 2.15rem; height: 2.15rem; place-items: center; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; color: #fff; background: rgba(225, 38, 73, .92); font-size: .7rem; font-style: normal; transform: translate(-50%, -50%); box-shadow: 0 5px 16px rgba(0, 0, 0, .28); }
.community-link-preview-copy { display: grid; min-width: 0; align-content: center; gap: .18rem; padding: .68rem .78rem; }
.community-link-preview-copy small { color: var(--community-red); font-size: .62rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.community-link-preview-copy strong { display: -webkit-box; overflow: hidden; font: 850 .9rem/1.14 var(--display); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.community-link-preview-url { overflow: hidden; color: #5a6e77; font-size: .68rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.community-link-preview-arrow { display: grid; place-items: center; border-left: 1px solid #d3dcdf; color: #596d76; font-size: .9rem; font-style: normal; transition: color .18s ease, background-color .18s ease; }
.community-link-preview:hover .community-link-preview-arrow { color: #fff; background: var(--community-red); }
.comment-body .community-link-preview { width: min(100%, 28rem); min-height: 4.9rem; grid-template-columns: 7.4rem minmax(0, 1fr) 2.45rem; margin-top: .55rem; }
.comment-body .community-link-preview.is-generic { min-height: 4.35rem; grid-template-columns: minmax(0, 1fr) 2.45rem; }
.comment-body .community-link-preview-copy { padding: .58rem .68rem; }

/* Media stays compact in the feed; the existing viewer preserves the full asset. */
.post-media-stack {
  display: grid;
  min-width: 0;
  gap: .55rem;
}

.post-media-gallery,
.community-image-gallery,
.attachment-gallery {
  display: grid;
  width: min(100%, 42rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  margin: .25rem auto 0;
  overflow: hidden;
  border: 1px solid #c7d2d6;
  border-radius: .45rem;
  background: #d7dfe2;
}
.post-media-gallery[data-count="1"],
.community-image-gallery.image-count-1 { grid-template-columns: 1fr; }
.post-media-gallery button,
.community-image-gallery button,
.attachment-gallery button {
  position: relative;
  display: block;
  width: 100%;
  height: 10rem;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #d8e0e3;
  cursor: zoom-in;
}
.post-media-gallery[data-count="1"] button,
.community-image-gallery.image-count-1 button {
  height: clamp(11rem, 28vw, 18rem);
}
.post-media-gallery img,
.community-image-gallery img,
.attachment-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
body.community-feed-page .community-post-card.is-system .post-media-gallery[data-count="1"] button,
body.community-feed-page .community-post-card.is-system .community-image-gallery.image-count-1 button {
  height: clamp(12rem, 30vw, 18rem);
  background: #071015;
}
.community-post-card.is-system .post-media-gallery[data-count="1"] img,
.community-post-card.is-system .community-image-gallery.image-count-1 img {
  object-fit: contain;
}
.post-media-gallery button:hover img,
.community-image-gallery button:hover img { transform: scale(1.025); }
.post-media-gallery button:focus-visible,
.community-image-gallery button:focus-visible,
.attachment-gallery button:focus-visible { z-index: 1; outline: 3px solid var(--community-red); outline-offset: -3px; }
.media-overflow-count { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(2, 9, 13, .58); font: 900 2rem/1 var(--display); }

/* Structured system updates use one flat information band instead of nested cards. */
.community-post-card:is(
  .is-system-stream_recap,
  .is-system-livestream_recap,
  .is-system-stream-recap,
  .is-system-livestream-recap
) { border-top-color: var(--community-blue); }
.community-post-card:is(.is-system-weekly_overview, .is-system-weekly-overview) { border-top-color: #238a91; }
.community-post-card:is(.is-system-xp_wheel_started, .is-system-xp-wheel-started) { border-top-color: var(--community-gold); }

.system-detail {
  display: grid;
  min-width: 0;
  gap: .8rem;
  margin: .15rem -1rem -.15rem;
  padding: .9rem 1rem;
  border-top: 1px solid var(--community-line);
  border-bottom: 1px solid var(--community-line);
  color: var(--community-copy);
  background: #f2f6f7;
}
.system-detail :is(h3, p, figure, dl) { margin: 0; }
.system-detail :is(h3, .system-detail-title) {
  color: var(--community-ink);
  font: 900 1.05rem/1.1 var(--display);
  letter-spacing: .015em;
  text-transform: uppercase;
}
.system-detail :is(p, .system-detail-copy) { font-size: .82rem; line-height: 1.55; }

.system-metric-rail {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
  border-top: 1px solid var(--community-line);
  border-bottom: 1px solid var(--community-line);
}
.system-metric-rail > * {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: .18rem;
  min-height: 4.2rem;
  padding: .62rem .72rem;
}
.system-metric-rail > * + * { border-left: 1px solid var(--community-line); }
.system-metric-rail :is(small, dt, .system-metric-label) {
  color: var(--community-muted);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.system-metric-rail :is(strong, b, dd, .system-metric-value) {
  margin: 0;
  color: var(--community-ink);
  font: 900 1.15rem/1 var(--display);
  overflow-wrap: anywhere;
}

.system-recap-video {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(9rem, .7fr) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border-top: 1px solid var(--community-line);
  border-bottom: 1px solid var(--community-line);
  color: inherit;
  background: #071015;
  text-decoration: none;
}
.system-recap-video :is(figure, picture) { min-width: 0; margin: 0; }
.system-recap-video img {
  display: block;
  width: 100%;
  height: 9.25rem;
  object-fit: cover;
}
.system-recap-video > :is(div, span):last-child {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: .3rem;
  padding: .8rem .9rem;
  color: #dce6e9;
}
.system-recap-video :is(small, .system-video-label) { color: #86abb9; font-size: .68rem; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.system-recap-video :is(strong, .system-video-title) { color: #fff; font: 900 1.1rem/1.08 var(--display); }

.system-ranking,
.system-support {
  display: grid;
  min-width: 0;
  border-top: 1px solid var(--community-line);
  border-bottom: 1px solid var(--community-line);
}
.system-ranking > *,
.system-support > * {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  min-height: 2.9rem;
  padding: .48rem .15rem;
}
.system-ranking > * + *,
.system-support > * + * { border-top: 1px solid var(--community-line); }
.system-ranking :is(strong, b),
.system-support :is(strong, b) { color: var(--community-ink); }
.system-ranking :is(small, span),
.system-support :is(small, span) { min-width: 0; overflow: hidden; color: var(--community-muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }

.system-cta {
  display: inline-flex;
  min-height: 2.75rem;
  width: max-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .62rem .82rem;
  border: 1px solid #172932;
  color: #fff;
  background: #0b171d;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .035em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.system-cta:hover,
.system-cta:focus-visible { border-color: var(--community-red); color: #fff; background: var(--community-red); }
.system-cta:focus-visible { outline: 2px solid var(--community-ink); outline-offset: 2px; }

/* Official system bulletins: asymmetric magazine layout, built without nested cards. */
.community-post-card.is-system {
  --system-accent: #e12649;
  --system-accent-rgb: 225, 38, 73;
  overflow: hidden;
  border: 1px solid #cbd5d9;
  border-radius: 0;
  color: var(--community-ink);
  background: #fff;
  box-shadow: 0 16px 42px rgba(17, 32, 39, .09);
}
.community-post-card.is-system::before {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--system-accent);
  content: "";
}
.community-post-card:is(.is-system-daily_reward_jackpot, .is-system-daily-reward-jackpot, .is-system-xp_wheel_started, .is-system-xp-wheel-started) {
  --system-accent: #ffbd38;
  --system-accent-rgb: 255, 189, 56;
}
.community-post-card:is(.is-system-giveaway_started, .is-system-giveaway-started) {
  --system-accent: #ffb92f;
  --system-accent-rgb: 255, 185, 47;
}
.community-post-card:is(.is-system-giveaway_winners, .is-system-giveaway-winners, .is-system-member_digest, .is-system-member-digest, .is-system-member_joined, .is-system-member-joined, .is-system-creator_joined, .is-system-creator-joined) {
  --system-accent: #42dca1;
  --system-accent-rgb: 66, 220, 161;
}
.community-post-card:is(.is-system-stream_recap, .is-system-livestream_recap, .is-system-stream-recap, .is-system-livestream-recap, .is-system-weekly_overview, .is-system-weekly-overview, .is-system-leaderboard_final, .is-system-leaderboard-final) {
  --system-accent: #58d8e4;
  --system-accent-rgb: 88, 216, 228;
}
.community-post-card:is(.is-system-tacticool_news, .is-system-tacticool-news) {
  --system-accent: #61afff;
  --system-accent-rgb: 97, 175, 255;
}
.community-post-card:is(.is-system-youtube_video, .is-system-youtube-video) {
  --system-accent: #ff3d61;
  --system-accent-rgb: 255, 61, 97;
}
.community-post-card.is-system .post-card-header {
  min-height: 3.9rem;
  align-items: center;
  padding: .85rem 1.2rem .65rem 1.45rem;
  border-bottom: 1px solid #e0e6e8;
  background: #fff;
}
.community-post-card.is-system .post-avatar-link,
.community-post-card.is-system .post-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0;
}
.community-post-card.is-system .post-avatar {
  border: 0;
  color: #fff;
  background: var(--community-ink);
  box-shadow: none;
}
.community-post-card.is-system .post-author-profile strong {
  color: var(--community-ink);
  font-size: .8rem;
  letter-spacing: .02em;
}
.community-post-card.is-system .post-time { color: var(--community-muted); font-size: .68rem; }
.system-signal-stamp {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .42rem;
  padding: .2rem 0;
  border: 0;
  color: var(--system-accent);
  background: transparent;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.system-signal-stamp i,
.system-signal-state i {
  width: .38rem;
  height: .38rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 .7rem currentColor;
}
.community-post-card.is-system .post-content {
  display: grid;
  grid-template-areas: "bulletin" "meta" "detail" "media";
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0 1.2rem 1.15rem 1.45rem;
  color: var(--community-copy);
  background: #fff;
}
.community-post-card.is-system .post-content:has(> .post-media-stack) {
  grid-template-areas: "bulletin media" "meta media" "detail media";
  grid-template-columns: minmax(0, 1.16fr) minmax(15rem, .84fr);
  column-gap: 1.5rem;
}
.system-bulletin {
  grid-area: bulletin;
  display: grid;
  min-width: 0;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  align-content: start;
  gap: 1rem;
  padding: 1.2rem 0 1rem;
}
.system-bulletin-code {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: .3rem;
  padding: .15rem .9rem 0 0;
  border-right: 1px solid #d4dde0;
  text-align: right;
}
.system-bulletin-code small,
.system-bulletin-code em {
  color: #7b8c93;
  font-size: .46rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .09em;
  line-height: 1;
}
.system-bulletin-code b {
  color: var(--system-accent);
  font: 900 2.55rem/.84 var(--display);
  letter-spacing: -.04em;
}
.system-bulletin-body {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: .68rem;
}
.system-bulletin-mastline {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .65rem;
  padding-bottom: .45rem;
  border-bottom: 1px solid #d4dde0;
}
.system-bulletin-eyebrow {
  color: var(--system-accent);
  font-size: .55rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.system-bulletin-type {
  overflow: hidden;
  color: #657981;
  font-size: .58rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.system-bulletin-title {
  max-width: 38rem;
  margin: .1rem 0 0;
  color: var(--community-ink);
  font: 900 clamp(1.7rem, 4.2vw, 2.55rem)/.92 var(--display);
  letter-spacing: -.018em;
  text-transform: uppercase;
  text-wrap: balance;
}
.system-bulletin-copy {
  max-width: 38rem;
  margin: 0;
  color: var(--community-copy);
  font-size: .88rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.community-post-card.is-system .post-meta {
  grid-area: meta;
  padding: 0 0 .8rem;
}
.community-post-card.is-system .system-detail {
  grid-area: detail;
  gap: .72rem;
  margin: 0;
  padding: .9rem 0 0;
  border: 0;
  border-top: 1px solid #d5dee1;
  color: var(--community-copy);
  background: transparent;
}
.community-post-card.is-system .system-detail :is(h3, .system-detail-title) { color: var(--community-ink); }
.community-post-card.is-system .system-metric-rail {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.1rem;
  padding: .7rem 0;
  border-top: 1px solid #d5dee1;
  border-bottom: 1px solid #d5dee1;
  background: transparent;
}
.community-post-card.is-system .system-metric-rail > * {
  min-height: 0;
  flex: 0 1 auto;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: .35rem;
  padding: 0;
  border: 0;
  background: transparent;
}
.community-post-card.is-system .system-metric-rail > * + * {
  padding-left: 1.1rem;
  border-left: 1px solid #cfd9dd;
}
.community-post-card.is-system .system-metric-rail :is(small, dt, .system-metric-label) { color: #758991; }
.community-post-card.is-system .system-metric-rail :is(strong, b, dd, .system-metric-value) {
  color: var(--community-ink);
  font-size: 1rem;
}
.community-post-card.is-system .system-cta {
  min-height: 0;
  margin-top: .2rem;
  padding: .3rem 0 .22rem;
  border: 0;
  border-bottom: 2px solid var(--system-accent);
  color: var(--community-ink);
  background: transparent;
  box-shadow: none;
}
.community-post-card.is-system .system-cta:hover,
.community-post-card.is-system .system-cta:focus-visible {
  border-color: var(--community-ink);
  color: var(--system-accent);
  background: transparent;
}
.community-post-card.is-system .system-ranking,
.community-post-card.is-system .system-support { border-color: #d5dee1; }
.community-post-card.is-system .system-ranking > * + *,
.community-post-card.is-system .system-support > * + * { border-color: #d5dee1; }
.community-post-card.is-system .system-ranking :is(strong, b),
.community-post-card.is-system .system-support :is(strong, b) { color: var(--community-ink); }
.community-post-card.is-system .system-ranking :is(small, span),
.community-post-card.is-system .system-support :is(small, span) { color: var(--community-muted); }
.community-post-card.is-system .system-recap-video {
  border-color: #d5dee1;
  color: var(--community-ink);
  background: #f3f6f7;
}
.community-post-card.is-system .system-recap-video > :is(div, span):last-child { color: var(--community-copy); }
.community-post-card.is-system .system-recap-video :is(small, .system-video-label) { color: var(--community-blue); }
.community-post-card.is-system .system-recap-video :is(strong, .system-video-title) { color: var(--community-ink); }
.community-post-card.is-system .post-media-stack {
  grid-area: media;
  align-self: stretch;
  margin: 0 -1.2rem -1.15rem 0;
  padding-left: 1.5rem;
  overflow: hidden;
  border: 0;
  border-left: 1px solid #d5dee1;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.community-post-card.is-system .post-media-gallery,
.community-post-card.is-system .community-image-gallery {
  width: 100%;
  margin: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: #f2f5f6;
}
.community-post-card.is-system .post-media-gallery[data-count="1"] button,
.community-post-card.is-system .community-image-gallery.image-count-1 button {
  height: 100%;
  min-height: 19rem;
}
body.community-feed-page .community-post-card:is(.is-system-giveaway_started, .is-system-giveaway-started, .is-system-giveaway_winners, .is-system-giveaway-winners) .post-media-stack,
body.community-feed-page .community-post-card:is(.is-system-giveaway_started, .is-system-giveaway-started, .is-system-giveaway_winners, .is-system-giveaway-winners) .post-media-gallery,
body.community-feed-page .community-post-card:is(.is-system-giveaway_started, .is-system-giveaway-started, .is-system-giveaway_winners, .is-system-giveaway-winners) .community-image-gallery,
body.community-feed-page .community-post-card:is(.is-system-giveaway_started, .is-system-giveaway-started, .is-system-giveaway_winners, .is-system-giveaway-winners) .post-media-gallery button,
body.community-feed-page .community-post-card:is(.is-system-giveaway_started, .is-system-giveaway-started, .is-system-giveaway_winners, .is-system-giveaway-winners) .community-image-gallery button {
  background: transparent;
}
body.community-feed-page .community-post-card:is(.is-system-giveaway_started, .is-system-giveaway-started, .is-system-giveaway_winners, .is-system-giveaway-winners) :is(.post-media-gallery, .community-image-gallery) img {
  background: transparent;
  object-fit: contain;
}
.community-post-card.is-system .post-actions {
  color: var(--community-ink);
  background: #fff;
}

@media (max-width: 44rem) {
  .community-post-card.is-system .post-content:has(> .post-media-stack) {
    grid-template-areas: "media" "bulletin" "meta" "detail";
    grid-template-columns: minmax(0, 1fr);
  }
  .community-post-card.is-system .post-media-stack {
    margin: 0 -1.2rem 0 -1.45rem;
    padding: 0;
    border-top: 0;
    border-left: 0;
  }
  body.community-feed-page .community-post-card.is-system .post-media-gallery[data-count="1"] button,
  body.community-feed-page .community-post-card.is-system .community-image-gallery.image-count-1 button { min-height: 12rem; }
  .system-bulletin { grid-template-columns: 3.65rem minmax(0, 1fr); gap: .75rem; }
  .system-bulletin-code { padding-right: .65rem; }
  .system-bulletin-code b { font-size: 2rem; }
  .system-signal-stamp strong { display: none; }
  .system-signal-stamp { padding-inline: .2rem; }
  .system-bulletin-title { font-size: clamp(1.55rem, 8vw, 2.15rem); }
}

.post-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  min-height: 3.35rem;
  padding: .45rem .75rem;
  border-top: 1px solid var(--community-line);
}
.reaction-group,
.button-row,
.comment-actions { display: flex; min-width: 0; align-items: center; gap: .2rem; }
.reaction-group { overflow-x: auto; scrollbar-width: none; }
.reaction-group::-webkit-scrollbar { display: none; }
.reaction-button,
.post-action,
.comment-actions button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: .32rem;
  padding: .48rem .68rem;
  border: 0;
  border-radius: .35rem;
  color: #60747d;
  background: transparent;
  font-size: .75rem;
  font-weight: 800;
  white-space: nowrap;
}
.reaction-button { min-width: 2.75rem; }
.reaction-group .reaction-button:first-child,
.reaction-button.is-like,
.reaction-button[data-reaction="heart"] {
  color: #344d58;
  font-weight: 900;
}
.reaction-button:hover,
.reaction-button:focus-visible,
.post-action:hover,
.post-action:focus-visible,
.post-action.active,
.comment-actions button:hover,
.comment-actions button:focus-visible { color: var(--community-red); background: rgba(225, 38, 73, .065); }
.reaction-button.active,
.reaction-button[aria-pressed="true"],
.comment-actions .reaction-button.active,
.comment-actions .reaction-button[aria-pressed="true"] {
  color: #fff;
  background: var(--community-red);
  box-shadow: inset 0 0 0 1px rgba(104, 8, 28, .34), 0 5px 14px rgba(225, 38, 73, .18);
}
.post-action.has-unread { color: #fff; background: var(--community-red); }
.post-action.has-unread:hover,
.post-action.has-unread:focus-visible { color: #fff; background: var(--community-red-dark); }
.reaction-button:focus-visible,
.post-action:focus-visible,
.comment-actions button:focus-visible { outline: 2px solid var(--community-red); outline-offset: 1px; }
.reaction-group .reaction-button:first-child.active,
.reaction-button.is-like.active,
.reaction-button[data-reaction="heart"].active { color: #fff; background: var(--community-red); }
.reaction-trigger {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  padding: .45rem .72rem;
  border: 0;
  border-radius: .4rem;
  color: #455e68;
  background: transparent;
  font-size: .75rem;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, transform .16s ease;
}
.reaction-trigger-icon {
  display: grid;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  font-size: 1.05rem;
  line-height: 1;
}
.reaction-trigger:hover,
.reaction-trigger:focus-visible { color: var(--community-red); background: rgba(225, 38, 73, .07); }
.reaction-trigger:focus-visible { outline: 2px solid var(--community-red); outline-offset: 1px; }
.reaction-trigger.is-active {
  color: #fff;
  background: var(--community-red);
  box-shadow: 0 5px 14px rgba(225, 38, 73, .18);
}
.reaction-trigger.is-active:hover,
.reaction-trigger.is-active:focus-visible { color: #fff; background: var(--community-red-dark); }
.post-actions .reaction-trigger--compact {
  width: 2.6rem;
  min-width: 2.6rem;
  padding-inline: .45rem;
}
.reaction-overview,
.comment-reaction-overview {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: .38rem;
  color: #667b84;
  line-height: 1;
  white-space: nowrap;
}
.reaction-overview-icons {
  color: initial;
  font-size: .86rem;
  letter-spacing: -.24rem;
  padding-right: .22rem;
}
.reaction-overview small,
.comment-reaction-overview small { font-size: .7rem; font-weight: 750; }
.comment-reaction-overview { margin-right: .2rem; }

.community-reaction-picker {
  position: fixed;
  z-index: 1080;
  display: flex;
  align-items: center;
  gap: .2rem;
  max-width: calc(100vw - 1rem);
  padding: .42rem;
  border: 1px solid rgba(167, 205, 218, .28);
  border-radius: 999px;
  color: #fff;
  background: #0d171c;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .36), 0 0 0 1px rgba(255, 49, 86, .06);
}
.community-reaction-picker::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 49, 86, .08), transparent 42%, rgba(78, 224, 205, .06));
  pointer-events: none;
}
.community-reaction-picker > button {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 2.35rem;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: transparent;
  font-size: 1.22rem;
  line-height: 1;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.community-reaction-picker > button:hover,
.community-reaction-picker > button:focus-visible {
  transform: translateY(-2px) scale(1.1);
  background: rgba(255, 255, 255, .1);
}
.community-reaction-picker > button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.community-reaction-picker > button.is-active,
.community-reaction-picker > button[aria-pressed="true"] {
  background: rgba(255, 49, 86, .2);
  box-shadow: inset 0 0 0 1px rgba(255, 82, 113, .7), 0 0 18px rgba(255, 49, 86, .2);
}
.button-row { justify-content: flex-end; }

.post-actions > .button-row {
  gap: .1rem;
  padding: .18rem;
  border: 1px solid #d5dee1;
  background: #f1f5f6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
.post-actions > .button-row .post-action {
  min-height: 2.75rem;
  gap: .42rem;
  padding: .45rem .78rem;
  border-radius: .2rem;
  color: #455e68;
  font-size: .72rem;
  letter-spacing: .012em;
  transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}
.post-actions > .button-row .post-action::before {
  content: "";
  width: .95rem;
  height: .95rem;
  flex: 0 0 .95rem;
  background: currentColor;
  -webkit-mask: var(--post-action-icon) center / contain no-repeat;
  mask: var(--post-action-icon) center / contain no-repeat;
}
.post-actions > .button-row .post-action:nth-child(1) {
  --post-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16v12H9l-5 4V4Z'/%3E%3C/svg%3E");
}
.post-actions > .button-row .post-action:nth-child(2) {
  --post-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3C/svg%3E");
}
.post-actions > .button-row .post-action:nth-child(3) {
  --post-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V3m0 0L7 8m5-5 5 5'/%3E%3Cpath d='M5 13v7h14v-7'/%3E%3C/svg%3E");
}
.post-actions > .button-row .post-action:hover,
.post-actions > .button-row .post-action:focus-visible,
.post-actions > .button-row .post-action.active {
  color: var(--community-red);
  background: #fff;
  box-shadow: 0 1px 5px rgba(24, 44, 53, .09);
}
.post-actions > .button-row .post-action:nth-child(2).active {
  color: #08744b;
  background: #e4f5ec;
}
.post-actions > .button-row .post-action.has-unread,
.post-actions > .button-row .post-action.has-unread:hover,
.post-actions > .button-row .post-action.has-unread:focus-visible {
  color: #fff;
  background: var(--community-red);
  box-shadow: 0 5px 16px rgba(225, 38, 73, .2);
}

.poll-options { display: grid; gap: .45rem; margin-top: .25rem; }
.poll-option { position: relative; min-height: 3.25rem; overflow: hidden; padding: .65rem .8rem; border: 1px solid var(--community-line-strong); color: var(--community-ink); background: #f6f9f9; text-align: left; }
.poll-option.selected { border-color: var(--community-red); }
.poll-option > span:first-child { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 1rem; }
.poll-option small { color: var(--community-muted); }
.poll-track { position: absolute; inset: auto 0 0; height: 3px; background: #dce3e5; }
.poll-fill { display: block; height: 100%; background: var(--community-red); }

/* Conversation stays inside the status card. */
.post-comments { padding: .85rem 1rem 1rem; border-top: 1px solid var(--community-line); background: #f4f7f7; }
.comments-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.comments-header-copy { display: grid; gap: .18rem; min-width: 0; }
.comments-header h3 { margin: 0; font: 900 1.05rem/1 var(--display); text-transform: uppercase; }
.comments-header-copy > span { color: #4f626b; font: 800 .68rem/1.2 var(--sans); letter-spacing: .07em; text-transform: uppercase; }
.comments-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: .55rem; min-width: 0; }
.comments-sort-field {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  overflow: hidden;
  border: 1px solid #aebbc0;
  border-radius: .5rem;
  color: #4f626b;
  background: #e7edef;
  font: 800 .68rem/1 var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.comments-sort-field > span { padding: 0 .72rem; white-space: nowrap; }
.comments-sort-field select {
  min-width: 7.75rem;
  min-height: 2.7rem;
  appearance: none;
  padding: .55rem 2.15rem .55rem .78rem;
  border: 0;
  border-left: 1px solid #c4ced2;
  border-radius: 0;
  color: #071017;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23071017' stroke-width='2'%3E%3Cpath d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .68rem center;
  background-size: .95rem;
  font: 800 .76rem/1 var(--sans);
  cursor: pointer;
}
.comments-sort-field:hover { border-color: var(--community-red); background: #eef3f4; }
.comments-sort-field:focus-within { border-color: #b61735; box-shadow: 0 0 0 3px rgba(182, 23, 53, .18); }
.comments-sort-field select:focus-visible { outline: 0; }
.comments-list { display: grid; gap: .8rem; }
.comment-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  width: 100%;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--community-line);
}
.comment-pagination .ctv-action {
  min-width: 11.5rem;
  min-height: 2.75rem;
  justify-content: center;
  border: 1px solid #aebbc0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  color: #071017;
  text-align: center;
}
.comment-pagination .ctv-action:hover {
  border-color: var(--red);
  background: #f9e9ec;
  color: #9f1730;
  transform: translateY(-1px);
}
.comment-pagination .ctv-action:focus-visible {
  border-color: #b61735;
  outline: 3px solid #b61735;
  outline-offset: 2px;
}
.comment-card { position: relative; display: grid; grid-template-columns: 2.15rem minmax(0, 1fr); gap: .6rem; }
.comment-card.is-reply { margin-left: 2.6rem; }
.comment-card.is-reply::before { content: ""; position: absolute; top: -.8rem; bottom: -.8rem; left: -1.25rem; width: 1px; background: #c7d2d6; }
.comment-card.is-new-comment,
.comment-card.is-new-comment-highlight,
.comment-card.is-deep-linked,
.comment-card.is-unread-target {
  margin-right: -.55rem;
  margin-left: -.55rem;
  padding: .55rem;
  border-left: 3px solid var(--community-red);
  background: rgba(225, 38, 73, .07);
  box-shadow: 0 0 0 1px rgba(225, 38, 73, .08);
}
.comment-card.is-unread-target {
  scroll-margin-block: 7rem 2rem;
  animation: community-unread-focus 1.05s ease-out 2;
}
@keyframes community-unread-focus {
  0%, 100% { box-shadow: 0 0 0 1px rgba(225, 38, 73, .12); }
  45% { box-shadow: 0 0 0 5px rgba(225, 38, 73, .18), 0 12px 28px rgba(8, 17, 23, .12); }
}
.comment-avatar-link { display: inline-grid; width: 2.15rem; height: 2.15rem; border-radius: 50%; color: inherit; text-decoration: none; }
.comment-avatar-link:hover .comment-avatar { box-shadow: 0 0 0 2px var(--community-red); }
.comment-avatar-link:focus-visible { outline: 2px solid var(--community-red); outline-offset: 3px; }
.comment-avatar { width: 2.15rem; height: 2.15rem; }
.comment-body { min-width: 0; }
.comment-head { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-bottom: .25rem; }
.comment-head > :is(span, .comment-author, .comment-author-line) { display: flex; min-width: 0; align-items: center; gap: .35rem; }
.comment-author-line { flex: 1 1 auto; flex-wrap: wrap; }
.comment-author { display: inline-flex; min-width: 0; align-items: center; gap: .35rem; color: inherit; text-decoration: none; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.comment-author:hover,
.comment-author:focus-visible { color: var(--community-red); text-decoration: underline; }
.comment-author:focus-visible { outline: 2px solid var(--community-red); outline-offset: 3px; }
.comment-author strong { overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.comment-head .author-clan { max-width: 7.5rem; font-size: .72rem; }
.comment-copy {
  width: fit-content;
  max-width: 100%;
  padding: .55rem .72rem;
  border-radius: .25rem .9rem .9rem .9rem;
  background: #e6ecee;
  font-size: .82rem;
  line-height: 1.5;
}
.comment-attachment-gallery.attachment-gallery {
  width: min(100%, 32rem);
  margin: .45rem 0 .15rem;
  border-color: #becbd0;
  border-radius: .55rem;
}
.comment-attachment-gallery.attachment-gallery button { height: 7.5rem; }
.comment-attachment-gallery.attachment-gallery.image-count-1 button { height: clamp(8rem, 19vw, 11rem); }
.comment-reply-context { margin-bottom: .22rem; color: var(--community-blue); font-size: .75rem; font-weight: 750; }
.comment-reply-context a { color: inherit; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .18em; }
.comment-reply-context a:hover,
.comment-reply-context a:focus-visible { color: var(--community-red); text-decoration-color: currentColor; }
.comment-reply-context a:focus-visible { outline: 2px solid var(--community-red); outline-offset: 2px; }
.comment-actions { flex-wrap: wrap; margin-top: .15rem; }
.comment-actions button { min-height: 2.75rem; padding: .3rem .48rem; font-size: .75rem; }
.comment-actions .danger { color: #bd2340; }
.comment-empty,
.comment-loading,
.comment-error { padding: 1.1rem; color: var(--community-muted); background: rgba(255, 255, 255, .55); font-size: .75rem; text-align: center; }
.comment-error strong { display: block; color: #b31d38; }
.comment-error p { margin: .25rem 0 .65rem; }

.comment-composer { position: relative; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem auto; gap: .55rem; align-items: end; margin-top: .85rem; }
.comment-composer-avatar { display: grid; width: 2.75rem; height: 2.75rem; align-self: start; place-items: center; border: 1px solid var(--community-line-strong); border-radius: 50%; object-fit: cover; background: #0b1820; color: #fff; font-size: .75rem; font-weight: 900; }
.comment-composer textarea,
.comment-rich-editor {
  width: 100%;
  min-height: 2.8rem;
  max-height: 11rem;
  padding: .7rem .8rem;
  overflow-y: auto;
  resize: none;
  border: 1px solid var(--community-line-strong);
  border-radius: .8rem;
  outline: 0;
  color: var(--community-ink);
  background: #fff;
  line-height: 1.45;
}
.comment-composer textarea:focus,
.comment-rich-editor:focus { border-color: var(--community-red); box-shadow: 0 0 0 3px rgba(225, 38, 73, .1); }
.comment-rich-editor:empty::before {
  content: attr(data-placeholder);
  color: #5b6f78;
  pointer-events: none;
}
.comment-composer > .ctv-action { min-width: 6rem; align-self: end; }
.comment-reply-banner { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--community-blue); font-size: .75rem; }
.comment-reply-banner button { border: 0; color: var(--community-red); background: transparent; font-size: .75rem; font-weight: 800; }
.comment-composer-tools,
.comment-attachment-preview { grid-column: 2 / -1; }
.comment-composer-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.comment-photo-action {
  display: grid;
  width: 2.75rem;
  min-height: 2.75rem;
  place-items: center;
  padding: 0;
  border: 1px solid var(--community-line-strong);
  border-radius: .72rem;
  color: #263a43;
  background: linear-gradient(180deg, #fff, #edf2f4);
  font-size: 1.1rem;
  font-weight: 850;
  box-shadow: 0 5px 13px rgba(7, 21, 28, .08);
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.comment-photo-action:hover,
.comment-photo-action:focus-visible { border-color: var(--community-red); color: var(--community-red); box-shadow: 0 7px 17px rgba(225, 38, 73, .14); transform: translateY(-1px); }
.comment-photo-action:focus-visible { outline: 2px solid var(--community-red); outline-offset: 2px; }
.comment-photo-action svg { width: 1.15rem; height: 1.15rem; }
.comment-character-count { margin-left: auto; color: #50636c; font-size: .75rem; font-weight: 750; }
.comment-character-count.is-over { color: #b61735; }
.comment-attachment-status { color: #50636c; font-size: .75rem; }
.comment-attachment-status:empty { display: none; }
.rich-toolbar[hidden] { display: none; }

.community-mention-menu {
  z-index: 30;
  display: grid;
  grid-column: 2 / -1;
  width: min(22rem, 100%);
  max-height: 17rem;
  overflow-y: auto;
  border: 1px solid var(--community-line-strong);
  background: #fff;
  box-shadow: 0 18px 50px rgba(5, 18, 25, .2);
}
.rich-editor-field > .community-mention-menu { position: absolute; right: 0; bottom: .25rem; left: 0; transform: translateY(100%); }
.community-mention-menu[hidden] { display: none; }
.community-mention-menu button {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  min-height: 3.25rem;
  align-items: center;
  gap: .65rem;
  padding: .45rem .7rem;
  border: 0;
  border-bottom: 1px solid var(--community-line);
  color: var(--community-ink);
  background: #fff;
  text-align: left;
}
.community-mention-menu button:hover,
.community-mention-menu button:focus-visible,
.community-mention-menu button.is-active { color: var(--community-red); background: #f4f7f8; }
.community-mention-menu button:focus-visible { outline: 2px solid var(--community-red); outline-offset: -3px; }
.community-mention-avatar { width: 2.2rem; height: 2.2rem; border-radius: 50%; object-fit: cover; background: #0b1820; color: #fff; }
.community-mention-menu button > span { display: grid; min-width: 0; }
.community-mention-menu strong,
.community-mention-menu small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-mention-menu small { color: #526770; }

.load-more {
  display: flex;
  min-height: 3.25rem;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 0 1rem;
  border: 1px solid var(--community-line-strong);
  color: var(--community-ink);
  background: rgba(255, 255, 255, .55);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.load-more:hover,
.load-more:focus-visible { border-color: var(--community-red); color: var(--community-red); background: #fff; }

/* Side rail is intentionally flat: information, not stacked cards. */
.community-side-rail { position: sticky; top: calc(var(--nav-h) + 1.5rem); display: grid; gap: 0; min-width: 0; }
.community-side-rail > section { padding: 1.15rem 0 1.3rem; border-bottom: 1px solid var(--community-line-strong); }
.community-side-rail > section:first-child { padding-top: 0; }
.community-side-rail header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.rail-label { color: #5d7079; font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.operator-hq-identity { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; }
.operator-hq-avatar { width: 3rem; height: 3rem; }
.operator-hq-avatar-link { display: inline-grid; flex: 0 0 auto; width: 3rem; height: 3rem; overflow: hidden; border-radius: 50%; color: inherit; text-decoration: none; }
.operator-hq-avatar-link:hover .operator-hq-avatar { box-shadow: 0 0 0 2px var(--community-red); }
.operator-hq-avatar-link:focus-visible { outline: 2px solid var(--community-red); outline-offset: 3px; }
.operator-hq-identity > span:last-child { display: grid; min-width: 0; }
.operator-hq-identity small,
.operator-hq-identity em { color: var(--community-muted); font-size: .75rem; font-style: normal; }
.operator-hq-name { display: inline-flex; min-height: 2.75rem; align-items: center; overflow: hidden; color: var(--community-ink); font: 900 1.2rem/1.1 var(--display); text-decoration: underline; text-decoration-color: transparent; text-overflow: ellipsis; white-space: nowrap; }
.operator-hq-name:hover,
.operator-hq-name:focus-visible { color: var(--community-red); text-decoration-color: currentColor; }
.operator-hq-name:focus-visible { outline: 2px solid var(--community-red); outline-offset: 2px; }
.operator-hq-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1rem; border-block: 1px solid var(--community-line); }
.operator-hq-stats span { display: grid; gap: .2rem; padding: .75rem .4rem; border-right: 1px solid var(--community-line); }
.operator-hq-stats span:last-child { border-right: 0; }
.operator-hq-stats b { font: 900 1.25rem/1 var(--display); }
.operator-hq-stats small { color: var(--community-muted); font-size: .75rem; text-transform: uppercase; }
.operator-hq-actions { display: flex; gap: 1rem; margin-top: .8rem; }
.operator-hq-actions a { color: var(--community-blue); font-size: .75rem; font-weight: 800; text-decoration: none; }
.operator-hq-actions a:hover,
.operator-hq-actions a:focus-visible { color: var(--community-red); }

.community-pulse-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: .85rem 0 0; }
.community-pulse-grid > div { display: grid; gap: .15rem; }
.community-pulse-grid dt { color: var(--community-muted); font-size: .75rem; text-transform: uppercase; }
.community-pulse-grid dd { order: -1; margin: 0; font: 900 1.45rem/1 var(--display); }
.community-shortcuts { display: grid; margin-top: .8rem; }
.community-shortcuts button { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: .65rem; align-items: center; min-height: 3.75rem; padding: .55rem 0; border: 0; border-top: 1px solid var(--community-line); color: var(--community-ink); background: transparent; text-align: left; }
.community-shortcuts button > b { display: grid; width: 2rem; height: 2rem; place-items: center; color: #fff; background: #17272f; font-size: .75rem; }
.community-shortcuts button > span { display: grid; }
.community-shortcuts strong { font-size: .75rem; }
.community-shortcuts small { color: var(--community-muted); font-size: .75rem; }
.community-shortcuts button > i { color: var(--community-red); font-style: normal; }
.community-shortcuts button:hover strong,
.community-shortcuts button:focus-visible strong { color: var(--community-red); }

.community-rules h2 { margin: .65rem 0 0; font: 900 2rem/.9 var(--display); text-transform: uppercase; }
.community-rules ul { margin: 1rem 0 0; padding: 0; list-style: none; }
.community-rules li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-top: 1px solid var(--community-line); font-size: .75rem; }
.community-rules li b { color: var(--community-green); }
.community-rules p { margin: .75rem 0 0; color: var(--community-muted); font-size: .75rem; }
.community-metrics h2 { margin: 0 0 .55rem; font: 900 .85rem/1 var(--display); text-transform: uppercase; }
.community-metrics > div { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; color: var(--community-muted); font-size: .75rem; }
.community-metrics strong { color: var(--community-ink); }
.community-metrics p { margin: .65rem 0 0; color: var(--community-green); font-size: .75rem; font-weight: 750; }

/* Composer and utility dialogs. */
.community-feed-page .dialog {
  width: min(43rem, calc(100% - 2rem));
  max-height: min(52rem, calc(100dvh - 2rem));
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 0;
  color: #eef4f6;
  background: #0a1116;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .55);
}
.community-feed-page .dialog::backdrop { background: rgba(2, 6, 8, .76); backdrop-filter: blur(7px); }
.community-feed-page .dialog > form { display: grid; min-height: 100%; }
.dialog-header,
.dialog-footer { position: sticky; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem; background: rgba(10, 17, 22, .97); }
.dialog-header { top: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.dialog-footer { bottom: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.dialog-header > div { display: grid; gap: .2rem; }
.dialog-header span { color: #8fa2ab; font-size: .75rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.dialog-header h2 { margin: 0; color: #fff; font: 900 1.7rem/1 var(--display); text-transform: uppercase; }
.dialog-close { display: grid; width: 2.65rem; height: 2.65rem; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255, 255, 255, .16); color: #fff; background: transparent; font-size: 1.4rem; }
.dialog-close:hover,
.dialog-close:focus-visible { border-color: var(--red); color: var(--red); }
.dialog-content,
.composer-body { display: grid; gap: 1rem; padding: 1.1rem; }
.composer-author { display: flex; align-items: center; gap: .7rem; padding: .9rem 1.1rem 0; }
.composer-author-avatar { width: 2.6rem; height: 2.6rem; }
.composer-author > span:last-child { display: grid; }
.composer-author strong { font-size: .78rem; }
.composer-author small { color: #879ba5; font-size: .75rem; }
.dialog .form-field > span,
.dialog .rich-editor-label { color: #9eb0b8; }
.dialog .form-field input,
.dialog .form-field textarea,
.dialog .form-field select { border-color: rgba(185, 215, 226, .18); color: #edf3f5; background: #0d171d; }
.dialog .form-field input:focus,
.dialog .form-field textarea:focus,
.dialog .form-field select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 49, 86, .13); }
.composer-headline b,
.rich-editor-label b { float: right; color: #71858f; font-weight: 650; }

.rich-editor-field { position: relative; display: grid; }
.rich-toolbar { display: flex; flex-wrap: wrap; gap: .25rem; padding: .45rem; border: 1px solid rgba(185, 215, 226, .18); border-bottom: 0; background: #080e12; }
.rich-toolbar > span { width: 1px; margin: .2rem .15rem; background: rgba(255, 255, 255, .13); }
.rich-toolbar button { min-width: 2.35rem; min-height: 2.35rem; padding: .35rem .55rem; border: 1px solid transparent; color: #a7b7be; background: transparent; font-size: .75rem; font-weight: 800; }
.rich-toolbar button:hover,
.rich-toolbar button:focus-visible,
.rich-toolbar button[aria-pressed="true"] { border-color: rgba(255, 49, 86, .55); color: #fff; background: rgba(255, 49, 86, .12); }
.rich-editor { min-height: 11rem; max-height: 22rem; padding: 1rem; overflow-y: auto; border: 1px solid rgba(185, 215, 226, .18); outline: 0; color: #eef3f5; background: #0d171d; line-height: 1.62; white-space: pre-wrap; }
.rich-editor:empty::before { content: attr(data-placeholder); color: #647982; pointer-events: none; }
.rich-editor:focus { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.rich-editor-storage { position: fixed !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }

.composer-attachments { border: 1px solid rgba(185, 215, 226, .18); background: #0b1419; }
.composer-attachments > header { display: flex; min-height: 3.75rem; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem .75rem; }
.composer-attachments header > div { display: grid; }
.composer-attachments strong { font-size: .75rem; }
.composer-attachments small { color: #71858f; font-size: .75rem; }
.composer-upload-action { display: inline-flex; min-height: 2.75rem; align-items: center; gap: .55rem; padding: .5rem .82rem; border: 1px solid rgba(255, 255, 255, .2); border-radius: .65rem; color: #fff; background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)); font-size: .75rem; font-weight: 850; cursor: pointer; box-shadow: 0 7px 18px rgba(0, 0, 0, .16); transition: border-color .18s ease, color .18s ease, background-color .18s ease, transform .18s ease; }
.composer-upload-action:hover,
.composer-upload-action:focus-within { border-color: var(--red); color: #fff; background: rgba(255, 49, 86, .14); transform: translateY(-1px); }
.composer-upload-action svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.attachment-preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; padding: 2px; background: #1b262c; }
.attachment-preview-item { position: relative; height: clamp(7rem, 16vw, 10rem); min-height: 0; overflow: hidden; background: #152129; }
.community-attachment-draft-preview { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.attachment-preview-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.community-attachment-draft-copy { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; display: grid; min-width: 0; padding: .55rem .65rem; color: #fff; background: linear-gradient(180deg, transparent, rgba(2, 7, 10, .92)); pointer-events: none; }
.community-attachment-draft-copy strong,
.community-attachment-draft-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-preview-item button { position: absolute; z-index: 2; top: .45rem; right: .45rem; display: grid; width: 2.75rem; height: 2.75rem; place-items: center; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; color: #fff; background: rgba(4, 9, 12, .8); }
.attachment-preview-item progress { position: absolute; right: .5rem; bottom: .5rem; left: .5rem; width: calc(100% - 1rem); accent-color: var(--red); }
.attachment-status { min-height: 0; margin: 0; padding: 0 .75rem; color: #8da2ac; font-size: .75rem; }
.attachment-status:not(:empty) { padding-block: .55rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.attachment-status.is-error,
.form-error { color: #ff8fa4; }
.form-error { min-height: 0; margin: 0; padding: 0 1.1rem; font-size: .75rem; }
.form-error:not(:empty) { padding-block: .65rem; background: rgba(255, 49, 86, .08); }
.dialog-footer > span { max-width: 22rem; color: #83969f; font-size: .75rem; }
.dialog-footer > div { display: flex; gap: .5rem; }
.dialog .ctv-action { min-height: 2.75rem; justify-content: center; padding-inline: .9rem; border: 1px solid rgba(255, 255, 255, .16); }
.dialog .ctv-action--primary { border-color: var(--red); background: var(--red); }
.dialog .ctv-action--danger { border-color: #d53a53; color: #fff; background: #a51d34; }
.danger-notice { padding: 1rem; border-left: 3px solid var(--red); background: rgba(255, 49, 86, .08); }
.danger-notice p { margin: .35rem 0 0; color: #9fb0b7; font-size: .75rem; }

.community-media-dialog { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; overflow: hidden; border: 0; color: #fff; background: rgba(2, 5, 7, .97); }
.community-media-dialog::backdrop { background: #020507; }
.community-media-dialog figure { display: grid; height: 100%; place-items: center; margin: 0; padding: 3.5rem 4.5rem; }
.community-media-dialog img { max-width: 100%; max-height: calc(100dvh - 7rem); object-fit: contain; }
.community-media-dialog figcaption { position: absolute; bottom: max(1rem, env(safe-area-inset-bottom)); left: 50%; max-width: min(42rem, calc(100% - 3rem)); color: #ccd6da; font-size: .75rem; text-align: center; transform: translateX(-50%); }
.media-dialog-close,
.media-dialog-nav { position: absolute; z-index: 2; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); color: #fff; background: rgba(8, 14, 18, .72); }
.media-dialog-close { top: 1rem; right: 1rem; width: 3rem; height: 3rem; font-size: 1.5rem; }
.media-dialog-nav { top: 50%; width: 3rem; height: 4.5rem; font-size: 2rem; transform: translateY(-50%); }
.media-dialog-nav.previous { left: 1rem; }
.media-dialog-nav.next { right: 1rem; }

.toast-region { position: fixed; z-index: 6000; right: 1rem; bottom: 1rem; display: grid; width: min(24rem, calc(100% - 2rem)); gap: .5rem; pointer-events: none; }
.toast { padding: .8rem 1rem; border-left: 3px solid var(--community-green); color: #fff; background: #0b161c; box-shadow: 0 14px 45px rgba(0, 0, 0, .35); font-size: .75rem; pointer-events: auto; }
.toast.error { border-color: var(--community-red); }

.community-footer { color: var(--text); }

@media (max-width: 62rem) {
  .community-main { width: min(47rem, calc(100% - 1.5rem)); }
  .community-layout { grid-template-columns: minmax(0, 1fr); }
  .community-side-rail { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; }
  .community-side-rail > section:first-child { padding-top: 1.15rem; }
  .community-rules,
  .community-metrics { display: none; }
}

@media (max-width: 57.5rem) {
  .community-feed-page .command-nav,
  .community-feed-page .command-nav.is-scrolled {
    min-height: var(--nav-h);
  }

  .community-feed-page .command-links {
    top: var(--nav-h);
    border-color: rgba(255, 255, 255, .12);
    background: #05080b;
  }
}

@media (max-width: 44rem) {
  .community-main { width: 100%; padding-top: calc(var(--nav-h) + .65rem); padding-bottom: 2rem; }
  .community-guest-gate { top: calc(var(--nav-h) + 50%); width: calc(100% - 1rem); padding: 1.45rem 1rem; transform: translate(-50%, -50%); }
  .community-guest-actions { flex-direction: column; }
  .community-activity-dialog { width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .community-activity-feed { max-height: none; min-height: 0; height: calc(100dvh - 13rem); }
  .community-activity-footer { align-items: stretch; flex-direction: column; }
  .community-activity-footer .ctv-action { width: 100%; justify-content: center; }
  .live-activity-item { grid-template-columns: 2.15rem minmax(0, 1fr); }
  .live-activity-item time { grid-column: 2; }
  .community-feed-page .ctv-account-nav-login { width: auto; min-width: 3.75rem; padding-inline: .7rem; overflow: visible; color: #fff !important; font-size: .75rem !important; }
  .community-feed-page .ctv-account-nav-login::after { content: none; }
  .community-layout { gap: 0; }
  .quick-composer,
  .community-post-card,
  .state-panel { border-right: 0; border-left: 0; box-shadow: none; }
  .quick-composer { padding-inline: .85rem; }
  .community-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 3.75rem; gap: .4rem; padding-left: 0; }
  .community-scope-switch { grid-column: 1 / -1; grid-row: 1; }
  .community-scope-switch button { min-height: 3.5rem; padding-inline: .75rem; }
  .feed-filter-menu { grid-column: 1; grid-row: 2; min-width: 0; }
  .feed-filter-menu > summary { min-height: 3.5rem; width: 100%; justify-content: space-between; border-left: 0; }
  .community-refresh { grid-column: 2; grid-row: 2; width: 3.75rem; min-height: 3.5rem; }
  .feed-filter-popover { right: auto; left: 0; width: min(23rem, calc(100vw - 1rem)); }
  .community-posts-heading { padding-inline: .8rem; }
  .community-posts-heading p { display: none; }
  .community-feed { gap: .6rem; padding-block: .1rem; background: #dce3e5; }
  .post-card-header { padding-inline: .85rem; }
  .post-content { padding-inline: .85rem; }
  .post-media,
  .post-link,
  .post-media-gallery,
  .community-image-gallery,
  .attachment-gallery { margin-right: -.85rem; margin-left: -.85rem; }
  .community-link-preview { min-height: 5.15rem; grid-template-columns: 6.8rem minmax(0, 1fr) 2.35rem; }
  .community-link-preview.is-generic { min-height: 4.3rem; grid-template-columns: minmax(0, 1fr) 2.35rem; }
  .community-link-preview-copy { padding: .55rem .62rem; }
  .community-link-preview-copy strong { font-size: .84rem; }
  .community-link-preview-url { font-size: .62rem; }
  .comment-body .community-link-preview { grid-template-columns: 6rem minmax(0, 1fr) 2.25rem; }
  .comment-body .community-link-preview.is-generic { grid-template-columns: minmax(0, 1fr) 2.25rem; }
  .post-actions { grid-template-columns: 1fr; gap: .1rem; padding-inline: .55rem; }
  .reaction-group { border-bottom: 1px solid var(--community-line); }
  .reaction-group {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .reaction-group::-webkit-scrollbar { display: none; }
  .button-row { display: grid; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem; }
  .reaction-button,
  .post-action { flex: 0 0 auto; justify-content: center; text-align: center; scroll-snap-align: start; }
  .button-row .post-action { min-width: 0; width: 100%; padding-inline: .35rem; }
  .post-comments { padding-inline: .8rem; }
  .comments-header { align-items: flex-start; flex-direction: column; }
  .comments-header-actions { width: 100%; justify-content: space-between; }
  .comments-sort-field { flex: 1 1 auto; }
  .comments-sort-field select { width: 100%; }
  .comment-pagination { display: flex; align-items: stretch; flex-direction: column; }
  .comment-pagination .ctv-action { width: min(100%, 22rem); margin-inline: auto; }
  .comment-card.is-reply { margin-left: 1.5rem; }
  .comment-card.is-reply::before { left: -.75rem; }
  .community-side-rail { display: block; padding: 0 .9rem; }
  .community-side-rail > section { display: none; }
  .community-side-rail > .operator-hq-panel { display: block; }
  .operator-hq-stats,
  .operator-hq-actions { display: none; }
  .operator-hq-panel { display: flex !important; align-items: center; justify-content: space-between; gap: 1rem; }
  .operator-hq-panel > header { display: none; }
  .operator-hq-identity { margin-top: 0; }
  .quick-composer-tools { grid-template-columns: repeat(2, 1fr); }
  .quick-composer-tools .quick-composer-action { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .15); }
  .community-feed-page .dialog { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; }
  .dialog-header { padding-top: max(1rem, env(safe-area-inset-top)); }
  .dialog-footer { align-items: stretch; flex-direction: column; padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
  .dialog-footer > span { max-width: none; }
  .dialog-footer > div { display: grid; grid-template-columns: .7fr 1.3fr; }
  .composer-body,
  .dialog-content { padding-inline: .85rem; }
  .rich-editor { min-height: 9rem; }
  .rich-toolbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .rich-toolbar::-webkit-scrollbar { display: none; }
  .rich-toolbar button { flex: 0 0 auto; min-height: 2.75rem; }
  .attachment-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .attachment-preview-item { height: clamp(6.75rem, 29vw, 8.75rem); min-height: 0; }
  .comment-composer { grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem; }
  .comment-composer > .ctv-action { grid-column: 2 / -1; width: 100%; }
  .comment-composer-tools,
  .comment-attachment-preview,
  .community-mention-menu { grid-column: 2 / -1; }
  .post-media-gallery button,
  .community-image-gallery button,
  .attachment-gallery button { height: 8.25rem; min-height: 0; }
  .post-media-gallery[data-count="1"] button,
  .community-image-gallery.image-count-1 button { height: clamp(10rem, 48vw, 14rem); }
  .community-post-card.is-system .post-media-gallery[data-count="1"] button,
  .community-post-card.is-system .community-image-gallery.image-count-1 button { height: clamp(9.5rem, 44vw, 12rem); }
  .comment-attachment-gallery.attachment-gallery {
    width: min(100%, 28rem);
    margin: .45rem 0 .15rem;
  }
  .comment-attachment-gallery.attachment-gallery button { height: 6.5rem; }
  .comment-attachment-gallery.attachment-gallery.image-count-1 button { height: clamp(7.5rem, 36vw, 9.5rem); }
  .system-detail { margin-inline: -.85rem; padding-inline: .85rem; }
  .system-metric-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-metric-rail > * { min-height: 3.85rem; padding: .55rem .62rem; }
  .system-metric-rail > *:nth-child(odd) { border-left: 0; }
  .system-metric-rail > *:nth-child(n + 3) { border-top: 1px solid var(--community-line); }
  .system-recap-video { grid-template-columns: 1fr; }
  .system-recap-video img { height: 10.5rem; }
  .system-ranking > *,
  .system-support > * { gap: .48rem; }
  .system-cta { width: 100%; }
  .media-dialog-nav { top: auto; bottom: max(.75rem, env(safe-area-inset-bottom)); width: 3.25rem; height: 3.25rem; transform: none; }
  .community-media-dialog figure { padding: 3.75rem .75rem 5rem; }
}

@media (max-width: 25rem) {
  .quick-composer { grid-template-columns: 2.65rem minmax(0, 1fr); gap: .65rem; }
  .quick-composer-avatar { width: 2.65rem; height: 2.65rem; }
  .quick-composer-prompt { min-height: 2.65rem; }
  .quick-composer-prompt span { display: none; }
  .post-author-name strong,
  .post-author-profile strong { max-width: 10rem; }
  .post-avatar-link,
  .post-avatar { width: 2.45rem; height: 2.45rem; }
  .dialog-header h2 { font-size: 1.4rem; }
  .community-reaction-picker { gap: .1rem; padding: .35rem; }
  .community-reaction-picker > button { width: 2.1rem; height: 2.1rem; flex-basis: 2.1rem; font-size: 1.08rem; }
}

@media (prefers-reduced-motion: reduce) {
  .community-feed-page *,
  .community-feed-page *::before,
  .community-feed-page *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (prefers-contrast: more) {
  :root { --community-line: rgba(5, 18, 25, .38); --community-line-strong: rgba(5, 18, 25, .58); }
  .community-post-card,
  .quick-composer { border-width: 2px; }
}

/* Community vNext — compact social feed, clearer controls and less dashboard chrome. */
:root {
  --community-feed-width: 50rem;
  --community-rail-width: 18.5rem;
  --community-radius: .75rem;
}

body.community-feed-page {
  background:
    radial-gradient(circle at 10% 8%, rgba(225, 38, 73, .055), transparent 25rem),
    radial-gradient(circle at 92% 20%, rgba(25, 118, 154, .06), transparent 28rem),
    #e9eef0;
}

.community-main {
  width: min(82rem, calc(100% - 2.5rem));
  padding-top: calc(var(--nav-h) + 1.15rem);
}

.community-layout {
  grid-template-columns: minmax(0, var(--community-feed-width)) minmax(17rem, var(--community-rail-width));
  gap: clamp(1.35rem, 2.6vw, 2.35rem);
}

.quick-composer {
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .7rem;
  padding: .72rem;
  border-radius: var(--community-radius);
  box-shadow: 0 10px 28px rgba(17, 32, 39, .07);
}

.quick-composer-prompt {
  min-height: 3.15rem;
  padding-inline: .95rem;
  border-radius: .65rem;
  background: #f3f6f7;
}

.quick-composer-prompt strong { font-size: .88rem; }
.quick-composer-prompt span { font-size: .7rem; }

.quick-composer-tools {
  grid-column: auto;
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: 0;
  border: 0;
}

.quick-composer-tools button,
.quick-composer-tools button + button {
  min-height: 3.15rem;
  padding: .45rem .68rem;
  border: 1px solid var(--community-line);
  border-radius: .55rem;
}

.quick-composer-tools .quick-composer-action {
  order: -1;
  padding-inline: .9rem;
  border-color: var(--community-red);
}

.quick-composer-tools button:not(.quick-composer-action) {
  min-width: 3.15rem;
  color: #405761;
  background: #f7f9f9;
  font-size: 0;
}

.quick-composer-tools button:not(.quick-composer-action) > span { font-size: 1.05rem; }

.quick-composer-icon {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.community-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .55rem;
  margin-top: .75rem;
}

.community-scope-switch {
  overflow: hidden;
  border: 1px solid #243943;
  border-radius: .65rem;
  background: #0a141a;
  box-shadow: 0 7px 18px rgba(4, 13, 18, .12);
}

.community-scope-switch button {
  min-height: 3.25rem;
  justify-content: center;
  padding: 0 .85rem;
  font-size: .72rem;
}

.community-scope-switch button span {
  color: #6af0ae;
  font-family: inherit;
  font-size: .5rem;
}

.feed-filter-menu > summary {
  min-height: 3.25rem;
  padding: 0 1.05rem;
  border-radius: .65rem;
  font-size: .74rem;
  box-shadow: 0 7px 18px rgba(176, 22, 51, .14);
}

.community-refresh { display: none; }

.community-posts-heading { align-items: center; padding: 1.15rem .15rem .65rem; }
.community-posts-heading h2 { font-size: 1.35rem; }
.community-posts-heading p { max-width: 24rem; }
.community-access-state,
.community-feed { gap: .9rem; }

.community-new-items {
  min-height: 2.65rem;
  margin-top: .7rem;
  box-shadow: 0 9px 24px rgba(5, 16, 22, .2), inset 3px 0 0 var(--community-red);
}

.community-post-card {
  overflow: clip;
  border-radius: var(--community-radius);
  box-shadow: 0 8px 24px rgba(17, 32, 39, .06);
}
.community-post-card.is-new-post { background: linear-gradient(90deg, rgba(225, 38, 73, .07), #fff 3.35rem); }
.post-card-header { padding: .88rem .95rem .15rem; }
.post-content { gap: .58rem; padding: .58rem .95rem .85rem; }
.post-title { font-size: clamp(1.22rem, 2.2vw, 1.5rem); }
.post-text,
.post-copy,
.comment-copy { font-size: .9rem; line-height: 1.58; }
.post-category { font-size: .68rem; }
.post-media,
.post-link { margin-right: -.95rem; margin-left: -.95rem; }
.post-media { margin-bottom: -.85rem; }
.post-actions { min-height: 3.15rem; padding: .38rem .58rem; }
.post-actions > .button-row { border: 0; border-radius: .55rem; background: #f1f4f5; box-shadow: none; }
.post-actions > .button-row .post-action { min-height: 2.6rem; padding-inline: .68rem; }
.reaction-trigger { min-height: 2.6rem; }

.comments-panel { border-top-color: rgba(12, 32, 42, .18); background: #f2f6f7; }

.community-side-rail { top: calc(var(--nav-h) + 1rem); gap: .75rem; }
.community-side-rail > section,
.community-side-rail > section:first-child {
  padding: .95rem;
  overflow: hidden;
  border: 1px solid var(--community-line);
  border-radius: var(--community-radius);
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 8px 24px rgba(17, 32, 39, .045);
}

.operator-hq-panel {
  color: #eef4f6;
  background: linear-gradient(135deg, rgba(225, 38, 73, .14), transparent 42%), #09141a !important;
  border-color: #20343e !important;
}
.operator-hq-panel .rail-label,
.operator-hq-panel .operator-hq-identity small,
.operator-hq-panel .operator-hq-identity em,
.operator-hq-panel .operator-hq-stats small { color: #8ea1aa; }
.operator-hq-panel .operator-hq-name,
.operator-hq-panel .operator-hq-stats b { color: #fff; }
.operator-hq-panel .operator-hq-stats { margin-top: .8rem; border-color: rgba(255, 255, 255, .12); }
.operator-hq-panel .operator-hq-stats span { padding: .62rem .35rem; border-color: rgba(255, 255, 255, .12); }
.operator-hq-panel .operator-hq-actions { justify-content: space-between; margin-top: .65rem; }
.operator-hq-panel .operator-hq-actions a { color: #a9d9eb; }
.operator-hq-identity { margin-top: .72rem; }
.operator-hq-name { min-height: 2rem; }

.community-pulse-grid { margin-top: .7rem; padding: .68rem 0; border-block: 1px solid var(--community-line); }
.community-pulse-grid > div { text-align: center; }
.community-pulse-grid dd { font-size: 1.3rem; }
.community-pulse-grid dt { font-size: .63rem; }
.community-shortcuts { margin-top: 0; }
.community-shortcuts button { min-height: 3.2rem; padding: .45rem 0; }
.community-shortcuts button > b { border-radius: .4rem; }

.community-rules { color: #eaf1f3; background: #101c22 !important; border-color: #263b45 !important; }
.community-rules .rail-label,
.community-rules p { color: #8fa1aa; }
.community-rules h2 { margin-top: .5rem; color: #fff; font-size: 1.55rem; }
.community-rules ul { margin-top: .75rem; }
.community-rules li { padding: .43rem 0; border-color: rgba(255, 255, 255, .1); }
.community-rules li span { color: #b8c5ca; }
.community-rules p { margin-top: .55rem; font-size: .68rem; }

.community-metrics { display: none !important; }
.feed-filter-popover,
.menu-popover { border-radius: .7rem; }
.community-activity-dialog,
.community-feed-page .dialog { border-radius: .85rem; }

@media (max-width: 72rem) {
  .community-main { width: min(72rem, calc(100% - 2rem)); }
  .community-layout { grid-template-columns: minmax(0, 1fr) 17.25rem; gap: 1.15rem; }
  .quick-composer-tools .quick-composer-action { font-size: .7rem; }
}

@media (max-width: 62rem) {
  .community-main { width: min(50rem, calc(100% - 2rem)); }
  .community-layout { grid-template-columns: minmax(0, 1fr); }
  .community-side-rail { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .community-side-rail > section:first-child { padding-top: .95rem; }
  .community-rules { display: none; }
}

@media (max-width: 44rem) {
  .community-main { width: 100%; padding-top: calc(var(--nav-h) + .55rem); }
  .community-feed-column { padding-inline: .7rem; }
  .quick-composer { grid-template-columns: 2.7rem minmax(0, 1fr) auto; padding: .58rem; }
  .quick-composer-avatar { width: 2.7rem; height: 2.7rem; }
  .quick-composer-prompt { min-height: 2.7rem; }
  .quick-composer-prompt span { display: none; }
  .quick-composer-tools { gap: .25rem; }
  .quick-composer-tools button,
  .quick-composer-tools button + button { min-width: 2.7rem; min-height: 2.7rem; padding: .3rem; }
  .quick-composer-tools .quick-composer-action { width: 2.7rem; overflow: hidden; color: transparent; font-size: 0; }
  .quick-composer-tools .quick-composer-action span { color: #fff; font-size: 1.1rem; }
  .community-toolbar { margin-top: .55rem; }
  .community-scope-switch button,
  .feed-filter-menu > summary { min-height: 3rem; }
  .feed-filter-label { max-width: 3.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .community-posts-heading { padding: .95rem .05rem .55rem; }
  .community-posts-heading p { display: none; }
  .community-posts-heading h2 { font-size: 1.2rem; }
  .community-post-card { border-radius: .65rem; }
  .post-actions { grid-template-columns: 1fr; }
  .community-side-rail { padding-inline: .7rem; }
  .community-side-rail > .operator-hq-panel { display: flex; padding: .72rem; }
}

@media (max-width: 25rem) {
  .quick-composer { grid-template-columns: 2.6rem minmax(0, 1fr) 2.6rem; }
  .quick-composer-tools button:not(.quick-composer-action) { display: none; }
  .community-scope-switch button { padding-inline: .45rem; font-size: .67rem; }
}
/* Community conversation timeline v41 */
.post-comments {
  --comment-avatar-size: 2.35rem;
  padding: .78rem 1rem .95rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(242, 246, 247, .94)),
    #f4f7f7;
}

.comments-header {
  margin-bottom: .25rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid #cad5d9;
}

.comments-header-copy {
  display: flex;
  align-items: baseline;
  gap: .5rem;
}

.comments-header h3 { font-size: .98rem; }

.comments-header-copy > span {
  padding: .18rem .44rem;
  border: 1px solid #c5d0d4;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  font-size: .6rem;
  letter-spacing: .08em;
}

.comments-header-actions { gap: .4rem; }

.comments-sort-field {
  min-height: 2.25rem;
  border-color: #c1ccd0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
}

.comments-sort-field > span { padding: 0 .58rem 0 .7rem; font-size: .58rem; }

.comments-sort-field select {
  min-width: 6.9rem;
  min-height: 2.2rem;
  padding: .42rem 1.9rem .42rem .64rem;
  border-left-color: #d3dcdf;
  background-position: right .55rem center;
  background-size: .8rem;
  font-size: .7rem;
}

.comments-close-action {
  width: 2.3rem;
  min-width: 2.3rem;
  min-height: 2.3rem;
  justify-content: center;
  padding: 0;
  border: 1px solid #c1ccd0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .78);
  color: #53666f;
  font: 600 1.2rem/1 var(--sans);
}

.comments-list { gap: 0; }

.comment-card {
  grid-template-columns: var(--comment-avatar-size) minmax(0, 1fr);
  gap: .72rem;
  padding: .78rem 0;
  border-bottom: 1px solid rgba(151, 170, 178, .42);
}

.comment-card:last-child { border-bottom: 0; }

.comment-card.is-reply {
  margin-left: 3rem;
  padding-left: .85rem;
}

.comment-card.is-reply::before {
  top: 0;
  bottom: 0;
  left: -.7rem;
  width: 2px;
  background: linear-gradient(180deg, #9eb1b9, #d2dcdf);
}

.comment-card.is-reply::after {
  position: absolute;
  top: 1.82rem;
  left: -.7rem;
  width: .72rem;
  height: 1px;
  background: #9eb1b9;
  content: "";
}

.comment-card.is-new-comment,
.comment-card.is-new-comment-highlight,
.comment-card.is-deep-linked,
.comment-card.is-unread-target {
  margin: .14rem 0;
  padding: .72rem .65rem;
  border-left: 3px solid var(--community-red);
  border-radius: .45rem;
  background: linear-gradient(90deg, rgba(225, 38, 73, .065), rgba(225, 38, 73, .018) 72%, transparent);
  box-shadow: none;
}

.comment-card.is-reply:is(.is-new-comment, .is-new-comment-highlight, .is-deep-linked, .is-unread-target) {
  margin-left: 3rem;
  padding-left: .85rem;
}

.comment-card.is-own-comment:not(.is-new-comment, .is-new-comment-highlight, .is-deep-linked, .is-unread-target) {
  background: linear-gradient(90deg, rgba(15, 139, 110, .035), transparent 68%);
}

.comment-avatar-link,
.comment-avatar {
  width: var(--comment-avatar-size);
  height: var(--comment-avatar-size);
}

/* Keep avatar dimensions stable even if a legacy rule wins the cascade. */
.post-comments .comment-avatar-link,
.post-comments .comment-avatar {
  width: 2.35rem !important;
  min-width: 2.35rem;
  max-width: 2.35rem;
  height: 2.35rem !important;
  min-height: 2.35rem;
  max-height: 2.35rem;
}

.comment-avatar-link { box-shadow: 0 0 0 1px rgba(65, 87, 97, .18); }
.comment-avatar-link:hover .comment-avatar { box-shadow: 0 0 0 2px var(--community-red), 0 5px 12px rgba(10, 25, 32, .14); }

.comment-head { margin: 0 0 .12rem; }
.comment-author-line { gap: .28rem; }
.comment-author strong { font-size: .8rem; }
.comment-head time { flex: 0 0 auto; color: #687b84; font-size: .66rem; }
.comment-head .post-role { display: inline-flex; gap: .18rem; }
.comment-head .post-badge { padding: .16rem .32rem; font-size: .52rem; letter-spacing: .035em; }

.comment-reply-context {
  margin: .08rem 0 .18rem;
  font-size: .68rem;
}

.comment-body > .post-badge-new,
.comment-body > .post-badge-solved {
  display: inline-flex;
  margin: .12rem .3rem .08rem 0;
  padding: .16rem .38rem;
  border-radius: 999px;
  font-size: .55rem;
}

.comment-copy {
  width: auto;
  max-width: 48rem;
  padding: .34rem 0 0;
  border-radius: 0;
  color: #16272f;
  background: transparent;
  font-size: .88rem;
  line-height: 1.5;
}

.comment-actions {
  position: relative;
  gap: .32rem;
  margin-top: .45rem;
}

.comment-actions > button,
.comment-more-menu > summary {
  display: inline-flex;
  min-height: 2.15rem;
  align-items: center;
  justify-content: center;
  padding: .28rem .66rem;
  border: 1px solid #c5d0d4;
  border-radius: 999px;
  color: #50646d;
  background: rgba(255, 255, 255, .7);
  font: 800 .68rem/1 var(--sans);
  cursor: pointer;
}

.comment-actions > button:hover,
.comment-actions > button:focus-visible,
.comment-more-menu > summary:hover,
.comment-more-menu > summary:focus-visible {
  border-color: var(--community-red);
  color: #ae1934;
  background: #fff;
}

.comment-actions .reaction-trigger.is-active {
  border-color: var(--community-red);
  color: #fff;
  background: var(--community-red);
}

.comment-reaction-overview {
  display: inline-flex;
  min-height: 2.15rem;
  align-items: center;
  gap: .28rem;
  padding: .25rem .62rem;
  border: 1px solid #d0dadd;
  border-radius: 999px;
  color: #526771;
  background: rgba(236, 241, 242, .8);
}

.comment-reaction-overview small { font-size: .65rem; font-weight: 750; }
.reaction-overview-icons { letter-spacing: -.08em; }

.comment-more-menu { position: relative; }
.comment-more-menu > summary { min-width: 2.15rem; padding-inline: .5rem; list-style: none; letter-spacing: .08em; }
.comment-more-menu > summary::-webkit-details-marker { display: none; }

.comment-more-popover {
  position: absolute;
  z-index: 18;
  top: calc(100% + .35rem);
  right: 0;
  display: grid;
  width: max-content;
  min-width: 9.5rem;
  overflow: hidden;
  padding: .3rem;
  border: 1px solid #aebdc3;
  border-radius: .65rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(7, 19, 25, .2);
}

.comment-more-popover button {
  min-height: 2.25rem;
  justify-content: flex-start;
  padding: .48rem .65rem;
  border: 0;
  border-radius: .4rem;
  color: #314852;
  background: transparent;
  font: 800 .7rem/1.2 var(--sans);
  text-align: left;
}

.comment-more-popover button:hover,
.comment-more-popover button:focus-visible { color: #ae1934; background: #f6e7ea; }
.comment-more-popover button.danger { color: #bd2340; }

@media (max-width: 44rem) {
  .post-comments { padding: .68rem .72rem .82rem; }
  .comments-header { align-items: center; flex-direction: row; gap: .55rem; }
  .comments-header-copy > span { display: none; }
  .comments-header-actions { width: auto; margin-left: auto; }
  .comments-sort-field { flex: 0 1 auto; }
  .comments-sort-field > span { display: none; }
  .comments-sort-field select { width: auto; min-width: 6.45rem; border-left: 0; }
  .comment-card { gap: .58rem; padding-block: .7rem; }
  .comment-card.is-reply { margin-left: 1.5rem; padding-left: .55rem; }
  .comment-card.is-reply::before { left: -.45rem; }
  .comment-card.is-reply::after { left: -.45rem; width: .45rem; }
  .comment-card.is-reply:is(.is-new-comment, .is-new-comment-highlight, .is-deep-linked, .is-unread-target) {
    margin-left: 1.5rem;
    padding-left: .55rem;
  }
  .comment-head { align-items: flex-start; gap: .35rem; }
  .comment-author strong { max-width: 11rem; }
  .comment-copy { font-size: .85rem; }
  .comment-actions { gap: .25rem; }
  .comment-actions > button,
  .comment-more-menu > summary,
  .comment-reaction-overview { min-height: 2.05rem; padding: .24rem .55rem; }
  .comment-reaction-overview small { max-width: 7.4rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .comment-more-popover { right: auto; left: 0; }
}

/* Comment composer and direct reaction summary v43 */
.post-comments .comment-composer {
  grid-template-columns: 2.35rem minmax(0, 1fr);
  gap: .65rem;
  align-items: start;
  margin-top: .7rem;
  padding-top: .8rem;
  border-top: 1px solid rgba(151, 170, 178, .42);
}

.post-comments .comment-composer-avatar {
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  box-shadow: 0 0 0 1px rgba(65, 87, 97, .2), 0 5px 14px rgba(10, 25, 32, .1);
}

.comment-composer-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #bcc9ce;
  border-radius: .85rem;
  background: #fff;
  box-shadow: 0 6px 18px rgba(10, 25, 32, .07);
  transition: border-color .16s ease, box-shadow .16s ease;
}

.comment-composer-panel:focus-within {
  border-color: var(--community-red);
  box-shadow: 0 0 0 3px rgba(225, 38, 73, .09), 0 9px 22px rgba(10, 25, 32, .09);
}

.post-comments .comment-composer .comment-rich-editor {
  min-height: 4.8rem;
  max-height: 11rem;
  padding: .75rem .85rem .65rem;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  font-size: .86rem;
  line-height: 1.55;
}

.post-comments .comment-composer .comment-rich-editor:focus { box-shadow: none; }

.post-comments .comment-composer-tools {
  display: flex;
  grid-column: auto;
  flex-wrap: nowrap;
  align-items: center;
  gap: .4rem;
  min-height: 2.85rem;
  padding: .35rem .4rem .35rem .5rem;
  border-top: 1px solid #d8e0e3;
  background: #f5f8f8;
}

.post-comments .comment-photo-action {
  display: inline-flex;
  width: auto;
  min-height: 2.15rem;
  align-items: center;
  gap: .35rem;
  padding: .3rem .48rem;
  border: 0;
  border-radius: .5rem;
  color: #526771;
  background: transparent;
  font: 800 .67rem/1 var(--sans);
}

.post-comments .comment-photo-action:hover,
.post-comments .comment-photo-action:focus-visible { color: #ae1934; background: #fff; }
.post-comments .comment-photo-action svg { width: 1rem; height: 1rem; }

.post-comments .comment-character-count {
  margin-left: auto;
  color: #75868d;
  font-size: .63rem;
  font-weight: 750;
  white-space: nowrap;
}

.post-comments .comment-attachment-status:empty { display: none; }

.post-comments .comment-composer-tools > .ctv-action {
  min-width: 7rem;
  min-height: 2.2rem;
  padding: .45rem .72rem;
  border-radius: .5rem;
  font-size: .68rem;
}

.post-comments .comment-attachment-preview {
  grid-column: auto;
  margin: 0;
  padding: .5rem .65rem 0;
}

.post-comments .comment-reply-banner { grid-column: 1 / -1; }

.comment-actions > .reaction-trigger--compact {
  width: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0;
  border-color: transparent;
  color: #5c7079;
  background: transparent;
  box-shadow: none;
  font-size: 1rem;
}

.comment-actions > .reaction-trigger--compact:hover,
.comment-actions > .reaction-trigger--compact:focus-visible {
  border-color: transparent;
  color: #ae1934;
  background: rgba(225, 38, 73, .075);
}

.comment-actions .reaction-trigger--compact.is-active,
.comment-actions .reaction-trigger--compact.is-active:hover,
.comment-actions .reaction-trigger--compact.is-active:focus-visible {
  border-color: transparent;
  color: inherit;
  background: rgba(225, 38, 73, .075);
  box-shadow: none;
}

.comment-reaction-overview {
  min-height: 0;
  gap: .48rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.comment-reaction-overview[hidden] { display: none; }

.comment-reaction-item {
  display: inline-flex;
  align-items: center;
  gap: .16rem;
  color: #526771;
  font: 800 .7rem/1 var(--sans);
}

.comment-reaction-emoji { font-size: .92rem; }
.comment-reaction-count { transform: translateY(.03rem); }

@media (max-width: 44rem) {
  .post-comments .comment-composer { grid-template-columns: 2.15rem minmax(0, 1fr); gap: .52rem; }
  .post-comments .comment-composer-avatar { width: 2.15rem; height: 2.15rem; }
  .post-comments .comment-composer .comment-rich-editor { min-height: 4.35rem; padding: .68rem .72rem .58rem; }
  .post-comments .comment-composer-tools { grid-column: auto; gap: .25rem; padding-inline: .34rem; }
  .post-comments .comment-photo-label { display: none; }
  .post-comments .comment-photo-action { width: 2.1rem; justify-content: center; padding-inline: 0; }
  .post-comments .comment-composer-tools > .ctv-action { grid-column: auto; width: auto; min-width: 5.8rem; }
  .comment-actions > .reaction-trigger--compact { min-height: 2rem; padding: 0; }
  .comment-reaction-overview { min-height: 0; padding: 0; }
}

/* Unified comment action rail v44 */
.comment-actions {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 2.2rem;
  flex-wrap: nowrap;
  gap: .08rem;
  align-items: center;
  margin-top: .48rem;
  padding: .14rem;
  border: 1px solid #d3dcdf;
  border-radius: .68rem;
  background: rgba(244, 247, 248, .92);
}

.comment-actions > .comment-reply-action,
.comment-actions > .reaction-trigger--compact,
.comment-more-menu > summary {
  width: auto;
  min-width: 1.9rem;
  min-height: 1.9rem;
  padding: .25rem .48rem;
  border: 0;
  border-radius: .48rem;
  color: #50646d;
  background: transparent;
  box-shadow: none;
  font: 800 .68rem/1 var(--sans);
}

.comment-actions > .comment-reply-action::before {
  content: "↩";
  margin-right: .3rem;
  color: #78909a;
  font-size: .82rem;
}

.comment-actions > .reaction-trigger--compact {
  padding-inline: .38rem;
  font-size: .92rem;
}

.comment-more-menu > summary {
  padding-inline: .42rem;
  font-size: 0;
  letter-spacing: 0;
}

.comment-more-menu > summary::before {
  content: "•••";
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .08em;
}

.comment-actions > .comment-reply-action:hover,
.comment-actions > .comment-reply-action:focus-visible,
.comment-actions > .reaction-trigger--compact:hover,
.comment-actions > .reaction-trigger--compact:focus-visible,
.comment-more-menu > summary:hover,
.comment-more-menu > summary:focus-visible {
  border: 0;
  color: #ae1934;
  background: #fff;
  box-shadow: 0 2px 8px rgba(11, 27, 34, .08);
}

.comment-actions .reaction-trigger--compact.is-active,
.comment-actions .reaction-trigger--compact.is-active:hover,
.comment-actions .reaction-trigger--compact.is-active:focus-visible {
  color: #ae1934;
  background: rgba(225, 38, 73, .08);
}

.comment-actions .comment-reaction-overview {
  min-height: 1.9rem;
  gap: .42rem;
  margin: 0;
  padding: .2rem .48rem;
  border-left: 1px solid #d3dcdf;
}

.comment-actions .comment-reaction-item { color: #354c56; }
.comment-actions .comment-reaction-emoji { font-size: .9rem; }
.comment-actions .comment-reaction-count { color: #6a7f87; }

@media (max-width: 44rem) {
  .comment-actions {
    gap: .04rem;
    padding: .12rem;
  }
  .comment-actions > .comment-reply-action,
  .comment-actions > .reaction-trigger--compact,
  .comment-more-menu > summary { min-height: 1.85rem; }
  .comment-actions .comment-reaction-overview {
    min-height: 1.85rem;
    padding-inline: .4rem;
  }
}

/* Screenshot-inspired flat comment cards v52 */
.post-comments {
  --comment-avatar-size: 2.3rem;
  padding: 1rem 1rem 1.1rem;
  border-top: 1px solid #cad4d7;
  background: #f5f7f7;
}

.comments-header {
  min-height: 2.4rem;
  margin: 0;
  padding: 0 0 .8rem;
  border: 0;
}

.comments-header-copy {
  align-items: center;
  gap: .55rem;
}

.comments-header h3 {
  color: #17282f;
  font: 800 1rem/1.25 var(--sans);
  letter-spacing: 0;
  text-transform: none;
}

.comments-header-copy > span {
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #6d7e85;
  background: transparent;
  font: 600 .68rem/1 var(--sans);
  letter-spacing: 0;
  text-transform: none;
}

.comments-sort-field {
  min-height: 2.15rem;
  border-color: #cad4d7;
  border-radius: .5rem;
  background: #fff;
}

.comments-sort-field select {
  min-height: 2.08rem;
  font-size: .68rem;
}

.comments-close-action {
  width: 2.15rem;
  min-width: 2.15rem;
  min-height: 2.15rem;
  border-color: #cad4d7;
  border-radius: .5rem;
  background: #fff;
}

.comments-entry {
  margin: 0 0 1rem;
  padding: .05rem 0 1rem;
  border-bottom: 1px solid #d4dcdf;
}

.comments-entry .comment-composer {
  margin: 0;
  padding: 0;
  border: 0;
}

.comments-entry .comment-composer-panel {
  border-color: #c7d1d5;
  border-radius: .6rem;
  box-shadow: none;
}

.comments-entry .comment-composer-panel:focus-within {
  box-shadow: 0 0 0 3px rgba(225, 38, 73, .08);
}

.comments-entry .comment-rich-editor {
  min-height: 3.9rem;
}

.comment-guest-action {
  display: flex;
  width: 100%;
  min-height: 3.25rem;
  align-items: center;
  justify-content: flex-start;
  padding: .75rem .9rem;
  border: 1px solid #c7d1d5;
  border-radius: .55rem;
  color: #273b44;
  background: #fff;
  font: 750 .78rem/1.2 var(--sans);
  text-align: left;
}

.comment-guest-action:hover,
.comment-guest-action:focus-visible {
  border-color: #9baeb5;
  color: var(--community-red);
  background: #fff;
}

.comments-list {
  display: grid;
  gap: .55rem;
}

.comment-card,
.comment-card:last-child {
  grid-template-columns: var(--comment-avatar-size) minmax(0, 1fr);
  gap: .7rem;
  padding: .75rem .8rem;
  border: 1px solid #d4dcdf;
  border-radius: .55rem;
  background: #fff;
  box-shadow: none;
}

.comment-card.is-own-comment:not(.is-new-comment, .is-new-comment-highlight, .is-deep-linked, .is-unread-target) {
  background: #fff;
}

.comment-card.is-reply {
  margin-left: 2.65rem;
  padding-left: .8rem;
}

.comment-card.is-reply::before,
.comment-card.is-reply::after { display: none; }

.comment-card.is-new-comment,
.comment-card.is-new-comment-highlight,
.comment-card.is-deep-linked,
.comment-card.is-unread-target,
.comment-card.is-reply:is(.is-new-comment, .is-new-comment-highlight, .is-deep-linked, .is-unread-target) {
  margin-top: 0;
  margin-bottom: 0;
  padding: .75rem .8rem;
  border-top: 1px solid #d4dcdf;
  border-right: 1px solid #d4dcdf;
  border-bottom: 1px solid #d4dcdf;
  border-left: 3px solid var(--community-red);
  border-radius: .55rem;
  background: linear-gradient(90deg, rgba(225, 38, 73, .045), #fff 38%);
}

.comment-card.is-reply:is(.is-new-comment, .is-new-comment-highlight, .is-deep-linked, .is-unread-target) {
  margin-left: 2.65rem;
}

.comment-head {
  justify-content: flex-start;
  gap: .42rem;
  margin: 0 0 .28rem;
}

.comment-author-line {
  flex: 0 1 auto;
  gap: .3rem;
}

.comment-author strong {
  color: #17282f;
  font-size: .78rem;
}

.comment-head time {
  margin-right: auto;
  color: #7b8b92;
  font-size: .65rem;
}

.comment-head-menu {
  flex: 0 0 auto;
  margin-left: auto;
}

.comment-head-menu > summary {
  width: 1.8rem;
  min-width: 1.8rem;
  min-height: 1.8rem;
  padding: 0;
  border: 0;
  border-radius: .4rem;
  color: #687b84;
  background: transparent;
}

.comment-head-menu > summary:hover,
.comment-head-menu > summary:focus-visible {
  color: var(--community-red);
  background: #f4e8eb;
  box-shadow: none;
}

.comment-copy {
  max-width: none;
  padding: .18rem 0 0;
  color: #2d4048;
  font-size: .84rem;
  line-height: 1.5;
}

.comment-actions {
  display: inline-flex;
  width: auto;
  min-height: 1.9rem;
  gap: .1rem;
  margin-top: .42rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.comment-actions > .comment-reply-action,
.comment-actions > .reaction-trigger--compact {
  min-height: 1.85rem;
  padding: .22rem .42rem;
  border: 0;
  border-radius: .38rem;
  color: #63767e;
  background: transparent;
  font-size: .66rem;
}

.comment-actions > .comment-reply-action:hover,
.comment-actions > .comment-reply-action:focus-visible,
.comment-actions > .reaction-trigger--compact:hover,
.comment-actions > .reaction-trigger--compact:focus-visible {
  color: #a91833;
  background: #f5eaec;
  box-shadow: none;
}

.comment-actions .comment-reaction-overview {
  min-height: 1.85rem;
  padding: .2rem .42rem;
  border: 0;
}

.comment-empty {
  border: 1px solid #d4dcdf;
  border-radius: .55rem;
  background: #fff;
}

@media (max-width: 44rem) {
  .post-comments { padding: .8rem .7rem .9rem; }
  .comments-header-copy > span { display: inline; }
  .comments-entry { margin-bottom: .75rem; padding-bottom: .8rem; }
  .comment-card,
  .comment-card:last-child { gap: .58rem; padding: .68rem; }
  .comment-card.is-reply,
  .comment-card.is-reply:is(.is-new-comment, .is-new-comment-highlight, .is-deep-linked, .is-unread-target) {
    margin-left: 1.25rem;
    padding-left: .68rem;
  }
  .comment-head { flex-wrap: wrap; }
  .comment-head time { margin-right: 0; }
  .comment-head-menu { margin-left: auto; }
  .comment-copy { font-size: .82rem; }
}

/* Screenshot-inspired flat member posts v53 */
.community-post-card:not(.is-system) {
  overflow: hidden;
  border: 1px solid #cfd8dc;
  border-radius: .78rem;
  color: #0d1d24;
  background: #fff;
  box-shadow: 0 7px 20px rgba(15, 31, 39, .055);
}

.community-post-card:not(.is-system).is-new-post {
  border-left: 3px solid var(--community-red);
  background: #fff;
  box-shadow: 0 8px 22px rgba(182, 23, 53, .075);
}

.community-post-card:not(.is-system).is-pinned { border-top: 3px solid var(--community-gold); }
.community-post-card:not(.is-system).is-solved { border-left: 3px solid var(--community-green); }

.community-post-card:not(.is-system) .post-card-header {
  align-items: center;
  padding: .85rem .95rem .22rem;
}

.community-post-card:not(.is-system) .post-author { gap: .68rem; }

.community-post-card:not(.is-system) .post-avatar-link,
.community-post-card:not(.is-system) .post-avatar {
  width: 2.65rem;
  height: 2.65rem;
}

.community-post-card:not(.is-system) .post-author-copy { gap: .08rem; }
.community-post-card:not(.is-system) .post-author-line { gap: .38rem; }

.community-post-card:not(.is-system) .post-author-profile strong {
  color: #102129;
  font-size: .84rem;
  font-weight: 850;
}

.community-post-card:not(.is-system) .post-time {
  color: #76888f;
  font-size: .67rem;
}

.community-post-card:not(.is-system) .post-badge {
  min-height: 1rem;
  padding: .05rem .28rem;
  font-size: .57rem;
}

.community-post-card:not(.is-system) .post-menu summary {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: .45rem;
}

.community-post-card:not(.is-system) .post-content {
  gap: .5rem;
  padding: .58rem .95rem .88rem;
}

.community-post-card:not(.is-system) .post-category {
  color: var(--community-red);
  font: 900 .64rem/1 var(--sans);
  letter-spacing: .085em;
}

.community-post-card:not(.is-system) .post-title {
  color: #07171e;
  font: 900 clamp(1.22rem, 2.2vw, 1.48rem)/1.08 var(--display);
  letter-spacing: 0;
}

.community-post-card:not(.is-system) .post-text {
  color: #30434b;
  font-size: .88rem;
  line-height: 1.55;
}

.community-post-card:not(.is-system).is-status-post .post-text {
  color: #07171e;
  font: 900 clamp(1.18rem, 2.15vw, 1.42rem)/1.12 var(--display);
  letter-spacing: 0;
}

.community-post-card:not(.is-system) .post-meta { margin-top: .08rem; }

.community-post-card:not(.is-system) .post-media-stack,
.community-post-card:not(.is-system) .post-media,
.community-post-card:not(.is-system) .post-link {
  margin-right: -.95rem;
  margin-left: -.95rem;
}

.community-post-card:not(.is-system) .post-actions {
  min-height: 3.35rem;
  padding: .38rem .58rem;
  border-top: 1px solid #d4dcdf;
  background: #fff;
}

.community-post-card:not(.is-system) .reaction-group {
  gap: .15rem;
  padding-left: .08rem;
}

.community-post-card:not(.is-system) .reaction-trigger {
  min-height: 2.4rem;
  border-radius: .48rem;
}

.community-post-card:not(.is-system) .post-actions > .button-row {
  gap: .05rem;
  padding: .14rem;
  border: 0;
  border-radius: .58rem;
  background: #f0f3f4;
  box-shadow: none;
}

.community-post-card:not(.is-system) .post-actions > .button-row .post-action {
  min-height: 2.45rem;
  padding: .4rem .68rem;
  border-radius: .42rem;
  color: #49616b;
  font-size: .7rem;
}

.community-post-card:not(.is-system) .post-actions > .button-row .post-action:hover,
.community-post-card:not(.is-system) .post-actions > .button-row .post-action:focus-visible,
.community-post-card:not(.is-system) .post-actions > .button-row .post-action.active {
  background: #fff;
  box-shadow: 0 2px 7px rgba(18, 38, 47, .07);
}

@media (max-width: 44rem) {
  .community-post-card:not(.is-system) { border-radius: .65rem; }
  .community-post-card:not(.is-system) .post-card-header { padding: .72rem .72rem .18rem; }
  .community-post-card:not(.is-system) .post-content { padding: .52rem .72rem .72rem; }
  .community-post-card:not(.is-system) .post-media-stack,
  .community-post-card:not(.is-system) .post-media,
  .community-post-card:not(.is-system) .post-link {
    margin-right: -.72rem;
    margin-left: -.72rem;
  }
  .community-post-card:not(.is-system) .post-actions {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .3rem;
    padding: .32rem .4rem;
  }
  .community-post-card:not(.is-system) .post-actions > .button-row .post-action {
    min-width: 2.4rem;
    padding-inline: .48rem;
  }
}

@media (max-width: 28rem) {
  .community-post-card:not(.is-system) .post-actions > .button-row .post-action {
    overflow: hidden;
    max-width: 2.55rem;
    color: transparent;
    font-size: 0;
  }
  .community-post-card:not(.is-system) .post-actions > .button-row .post-action::before { color: #49616b; }
}

/* Compact inline comment composer v54 */
.comments-entry .comment-composer {
  grid-template-columns: 2.3rem minmax(0, 1fr);
  gap: .62rem;
  align-items: start;
}

.comments-entry .comment-composer-avatar {
  width: 2.3rem;
  height: 2.3rem;
  margin-top: .05rem;
  border: 1px solid #c7d1d5;
  box-shadow: none;
}

.comments-entry .comment-composer-panel {
  overflow: hidden;
  border: 1px solid #c7d1d5;
  border-radius: .58rem;
  background: #fff;
  box-shadow: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.comments-entry .comment-composer-panel:focus-within {
  border-color: #9baeb5;
  box-shadow: 0 0 0 3px rgba(225, 38, 73, .065);
}

.comments-entry .comment-composer .comment-rich-editor {
  min-height: 3.35rem;
  max-height: 10rem;
  padding: .72rem .8rem .58rem;
  color: #263a43;
  background: #fff;
  font-size: .82rem;
  line-height: 1.48;
  transition: min-height .16s ease;
}

.comments-entry .comment-composer .comment-rich-editor:focus { min-height: 4.4rem; }

.comments-entry .comment-composer .comment-rich-editor:empty::before {
  color: #6f8189;
  font-weight: 500;
}

.comments-entry .comment-composer-tools {
  min-height: 2.7rem;
  gap: .35rem;
  padding: .3rem .38rem .3rem .45rem;
  border-top: 1px solid #d7dfe2;
  background: #f3f6f6;
}

.comments-entry .comment-photo-action {
  min-height: 2rem;
  padding: .3rem .5rem;
  border: 1px solid transparent;
  border-radius: .42rem;
  color: #52666f;
  background: transparent;
  font-size: .66rem;
}

.comments-entry .comment-photo-action:hover,
.comments-entry .comment-photo-action:focus-visible {
  border-color: #d0dade;
  color: #a91833;
  background: #fff;
  box-shadow: none;
  transform: none;
}

.comments-entry .comment-character-count {
  color: #71838a;
  font-size: .61rem;
}

.comments-entry .comment-composer-tools > .ctv-action {
  min-width: 6.8rem;
  min-height: 2.05rem;
  padding: .38rem .66rem;
  border-radius: .45rem;
  font-size: .65rem;
  box-shadow: none;
}

.comments-entry .comment-attachment-preview {
  padding: .45rem .55rem 0;
  border-top: 1px solid #e0e6e8;
}

.comments-entry .comment-reply-banner {
  margin-bottom: .05rem;
  padding: .45rem .6rem;
  border: 1px solid #c7d1d5;
  border-radius: .5rem;
  background: #fff;
}

@media (max-width: 44rem) {
  .comments-entry .comment-composer { grid-template-columns: 2.05rem minmax(0, 1fr); gap: .48rem; }
  .comments-entry .comment-composer-avatar { width: 2.05rem; height: 2.05rem; }
  .comments-entry .comment-composer .comment-rich-editor {
    min-height: 3.15rem;
    padding: .66rem .68rem .52rem;
  }
  .comments-entry .comment-composer .comment-rich-editor:focus { min-height: 4rem; }
  .comments-entry .comment-composer-tools { padding-inline: .3rem; }
  .comments-entry .comment-composer-tools > .ctv-action { min-width: 5.7rem; }
}

/* Tactical Social design system v58 */
:root {
  --social-bg: #edf1f2;
  --social-surface: #fff;
  --social-surface-muted: #f5f7f7;
  --social-ink: #0a1a21;
  --social-copy: #30464f;
  --social-muted: #667982;
  --social-line: #cbd5d9;
  --social-line-strong: #aebdc3;
  --social-red: #e12649;
  --social-teal: #137d80;
  --social-radius: .78rem;
  --social-shadow: 0 8px 24px rgba(9, 28, 37, .065);
}

body.community-feed-page {
  color: var(--social-ink);
  background:
    linear-gradient(rgba(9, 28, 37, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 28, 37, .025) 1px, transparent 1px),
    var(--social-bg);
  background-size: 4rem 4rem;
}

.community-main { width: min(79rem, calc(100% - 2.5rem)); }
.community-layout { grid-template-columns: minmax(0, 49.5rem) minmax(16rem, 18rem); gap: 1.5rem; justify-content: center; }

.quick-composer,
.community-post-card,
.community-side-rail > section {
  border: 1px solid var(--social-line);
  border-radius: var(--social-radius);
  background: var(--social-surface);
  box-shadow: var(--social-shadow);
}

.quick-composer { padding: .7rem; }
.quick-composer-prompt { min-height: 2.9rem; background: var(--social-surface-muted); }
.quick-composer-tools button,
.quick-composer-tools button + button { min-height: 2.9rem; border-color: var(--social-line); }

.community-toolbar {
  position: sticky;
  z-index: 30;
  top: calc(var(--nav-h) + .45rem);
  min-height: 3.15rem;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .45rem;
  margin-top: .7rem;
  padding: .35rem;
  border: 1px solid var(--social-line);
  border-radius: .72rem;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 7px 22px rgba(9, 28, 37, .09);
  backdrop-filter: blur(12px);
}

.community-scope-switch {
  border: 0;
  border-radius: .48rem;
  background: var(--social-surface-muted);
  box-shadow: none;
}

.community-scope-switch button {
  min-height: 2.4rem;
  padding: 0 .85rem;
  color: #526871;
  font-size: .7rem;
}

.community-scope-switch button + button { border-left: 1px solid var(--social-line); }
.community-scope-switch button:hover,
.community-scope-switch button:focus-visible { color: var(--social-ink); background: #fff; }
.community-scope-switch button.is-active {
  color: #fff;
  background: var(--social-ink);
  box-shadow: inset 0 -2px 0 var(--social-red);
}
.community-scope-switch button span { color: #55d9a7; }

.feed-filter-menu > summary {
  min-height: 2.4rem;
  padding: 0 .85rem;
  border: 1px solid var(--social-line);
  border-radius: .48rem;
  color: var(--social-copy);
  background: #fff;
  box-shadow: none;
  font-size: .7rem;
}
.feed-filter-menu > summary:hover,
.feed-filter-menu > summary:focus-visible { border-color: var(--social-line-strong); color: var(--social-red); background: #fff; }
.feed-filter-popover { border-color: var(--social-line); background: #fff; box-shadow: 0 18px 45px rgba(8, 25, 33, .16); }

.community-posts-heading { padding: 1rem .15rem .55rem; }
.community-posts-heading h2 { color: var(--social-ink); font-size: 1.25rem; }
.community-posts-heading p { color: var(--social-muted); }
.feed-live-indicator { color: var(--social-teal); }

.community-feed { gap: .85rem; }
.community-post-card,
.community-post-card:not(.is-system),
.community-post-card.is-system {
  overflow: clip;
  border: 1px solid var(--social-line);
  border-radius: var(--social-radius);
  background-color: var(--social-surface);
  box-shadow: var(--social-shadow);
  content-visibility: auto;
  contain-intrinsic-size: auto 34rem;
}

.community-post-card.is-system::before { border-radius: var(--social-radius) var(--social-radius) 0 0; }
.community-post-card.is-system .post-card-header,
.community-post-card:not(.is-system) .post-card-header { border-bottom-color: #d7e0e3; }
.community-post-card.is-system .post-actions,
.community-post-card:not(.is-system) .post-actions { background: var(--social-surface-muted); }
.community-post-card .post-author-profile,
.community-post-card .post-author-name,
.comment-author { min-height: 1.5rem; align-items: center; }

.community-side-rail { gap: .75rem; }
.community-side-rail > section,
.community-side-rail > section:first-child { padding: 1rem; }
.community-side-rail > .community-rules,
.community-side-rail > .community-metrics { display: none !important; }

.operator-hq-panel {
  color: var(--social-ink);
  border-color: var(--social-line) !important;
  background:
    linear-gradient(135deg, rgba(225, 38, 73, .07), transparent 48%),
    #fff !important;
}
.operator-hq-panel .rail-label,
.operator-hq-panel .operator-hq-identity small,
.operator-hq-panel .operator-hq-identity em,
.operator-hq-panel .operator-hq-stats small { color: var(--social-muted); }
.operator-hq-panel .operator-hq-name,
.operator-hq-panel .operator-hq-stats b { color: var(--social-ink); }
.operator-hq-panel .operator-hq-stats { border-color: var(--social-line); }
.operator-hq-panel .operator-hq-stats span { border-color: var(--social-line); }
.operator-hq-panel .operator-hq-actions a { color: #166e8d; }
.operator-status { color: #08744f; background: #e9f8f1; }

.community-pulse-panel { background: rgba(255, 255, 255, .94) !important; }
.community-pulse-grid { border-color: var(--social-line); }
.community-shortcuts button { min-height: 3.35rem; }
.community-shortcuts button:hover,
.community-shortcuts button:focus-visible { background: var(--social-surface-muted); }

.post-actions > .button-row .post-action,
.reaction-trigger,
.comment-actions button,
.comments-entry button,
.comments-header button { min-height: 2.5rem; }

.community-feed-page :where(a, button, summary, input, select, textarea, [contenteditable="true"]):focus-visible {
  outline: 2px solid var(--social-red);
  outline-offset: 2px;
}

.community-mobile-dock { display: none; }

@media (max-width: 62rem) {
  .community-main { width: min(50rem, calc(100% - 1.5rem)); }
  .community-layout { grid-template-columns: minmax(0, 1fr); }
  .community-side-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 44rem) {
  body.community-feed-page { background-size: 3rem 3rem; }
  .community-main { padding-bottom: calc(5.7rem + env(safe-area-inset-bottom)); }
  .community-feed-column { padding-inline: .55rem; }
  .community-toolbar {
    top: calc(var(--nav-h) + .3rem);
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .35rem;
    margin-top: .45rem;
    padding: .3rem;
  }
  .community-scope-switch { grid-column: 1; grid-row: 1; }
  .community-scope-switch button { min-height: 2.55rem; padding-inline: .62rem; }
  .feed-filter-menu { grid-column: 2; grid-row: 1; }
  .feed-filter-menu > summary { width: 2.7rem; min-height: 2.55rem; justify-content: center; padding: 0; }
  .feed-filter-menu .feed-filter-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .feed-filter-chevron { font-size: 1rem; }
  .community-posts-heading { padding: .8rem .15rem .45rem; }
  .community-post-card,
  .community-post-card:not(.is-system),
  .community-post-card.is-system { border-radius: .7rem; }
  .community-feed { gap: .65rem; padding-block: 0; background: transparent; }
  .community-side-rail { display: none !important; }
  .operations-footer { padding-bottom: calc(5.4rem + env(safe-area-inset-bottom)); }

  .community-mobile-dock {
    position: fixed;
    z-index: 900;
    right: .5rem;
    bottom: max(.5rem, env(safe-area-inset-bottom));
    left: .5rem;
    display: grid;
    min-height: 4.1rem;
    grid-template-columns: 1fr 1fr 3.8rem 1fr 1fr;
    align-items: center;
    gap: .12rem;
    padding: .35rem .4rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: .9rem;
    color: #d7e2e6;
    background: rgba(7, 19, 25, .96);
    box-shadow: 0 18px 48px rgba(2, 9, 13, .34);
    backdrop-filter: blur(16px);
  }
  .community-mobile-dock-item {
    display: grid;
    min-width: 0;
    min-height: 3.25rem;
    place-items: center;
    align-content: center;
    gap: .22rem;
    padding: .25rem .15rem;
    border: 0;
    border-radius: .55rem;
    color: #91a5ae;
    background: transparent;
    font: 800 .58rem/1 var(--sans);
    letter-spacing: .025em;
    text-decoration: none;
  }
  .community-mobile-dock-item svg,
  .community-mobile-dock-create svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .community-mobile-dock-item:hover,
  .community-mobile-dock-item:focus-visible,
  .community-mobile-dock-item.is-active { color: #fff; background: rgba(255, 255, 255, .075); }
  .community-mobile-dock-item.is-active svg { color: #62e3b0; }
  .community-mobile-dock-create {
    display: grid;
    width: 3.25rem;
    height: 3.25rem;
    place-self: center;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--social-red);
    box-shadow: 0 8px 20px rgba(225, 38, 73, .34);
  }
  .community-mobile-dock-create svg { width: 1.45rem; height: 1.45rem; stroke-width: 2.2; }
  .post-author-profile,
  .post-author-name,
  .comment-author { min-height: 1.75rem; }
}

/* Full editorial member-post redesign v55 */
.community-post-card:not(.is-system) {
  --member-post-accent: #e12649;
  overflow: hidden;
  border: 1px solid #c9d3d7;
  border-radius: .88rem;
  background: #fff;
  box-shadow: 0 10px 28px rgba(12, 31, 40, .08);
}

.community-post-card:not(.is-system).is-type-question { --member-post-accent: #17779b; }
.community-post-card:not(.is-system).is-type-tactic { --member-post-accent: #138862; }
.community-post-card:not(.is-system).is-type-update { --member-post-accent: #d48a00; }
.community-post-card:not(.is-system).is-type-poll { --member-post-accent: #e12649; }

.community-post-card:not(.is-system)::before {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: .25rem;
  background: var(--member-post-accent);
  content: "";
}

.community-post-card:not(.is-system) .post-card-header {
  min-height: 4.65rem;
  padding: 1.05rem 1.05rem .82rem;
  border-bottom: 1px solid #d8e0e3;
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--member-post-accent) 6%, #fff), #fff 44%);
}

.community-post-card:not(.is-system) .post-avatar-link,
.community-post-card:not(.is-system) .post-avatar {
  width: 2.85rem;
  height: 2.85rem;
}

.community-post-card:not(.is-system) .post-author-profile strong {
  font-size: .9rem;
  letter-spacing: .008em;
}

.community-post-card:not(.is-system) .post-menu summary {
  border: 1px solid transparent;
  background: rgba(255, 255, 255, .68);
}

.community-post-card:not(.is-system) .post-menu summary:hover,
.community-post-card:not(.is-system) .post-menu summary:focus-visible {
  border-color: #d0dade;
  color: var(--member-post-accent);
  background: #fff;
}

.community-post-card:not(.is-system) .post-content {
  gap: .72rem;
  padding: .9rem 1.05rem 1.1rem;
}

.community-post-card:not(.is-system) .post-category {
  display: inline-flex;
  min-height: 1.55rem;
  align-items: center;
  padding: .24rem .48rem;
  border: 1px solid color-mix(in srgb, var(--member-post-accent) 28%, #d8e0e3);
  border-radius: 999px;
  color: var(--member-post-accent);
  background: color-mix(in srgb, var(--member-post-accent) 7%, #fff);
  font: 900 .61rem/1 var(--sans);
  letter-spacing: .085em;
}

.community-post-card:not(.is-system) .post-title {
  max-width: 44rem;
  color: #06161d;
  font: 900 clamp(1.38rem, 2.5vw, 1.72rem)/1.06 var(--display);
}

.community-post-card:not(.is-system) .post-text {
  max-width: 46rem;
  color: #30454e;
  font-size: .9rem;
  line-height: 1.58;
}

.community-post-card:not(.is-system).is-status-post .post-text {
  max-width: 44rem;
  font-size: clamp(1.3rem, 2.3vw, 1.62rem);
  line-height: 1.08;
}

.community-post-card:not(.is-system) .poll-options {
  counter-reset: member-poll-choice;
  gap: .58rem;
  margin-top: .15rem;
}

.community-post-card:not(.is-system) .poll-option {
  counter-increment: member-poll-choice;
  min-height: 3.8rem;
  padding: .88rem .95rem .88rem 3.4rem;
  border: 1px solid #ccd6da;
  border-radius: .68rem;
  color: #172a32;
  background: #f8fafa;
  box-shadow: 0 2px 0 rgba(13, 34, 43, .025);
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.community-post-card:not(.is-system) .poll-option::before {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: .82rem;
  display: grid;
  width: 1.85rem;
  height: 1.85rem;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--member-post-accent) 34%, #cbd5d9);
  border-radius: 50%;
  color: var(--member-post-accent);
  background: #fff;
  content: counter(member-poll-choice, upper-alpha);
  font: 900 .68rem/1 var(--sans);
  transform: translateY(-50%);
}

.community-post-card:not(.is-system) .poll-option:hover,
.community-post-card:not(.is-system) .poll-option:focus-visible {
  border-color: var(--member-post-accent);
  background: #fff;
  box-shadow: 0 6px 16px rgba(17, 38, 47, .08);
  transform: translateY(-1px);
}

.community-post-card:not(.is-system) .poll-option.selected {
  border-color: var(--member-post-accent);
  background: color-mix(in srgb, var(--member-post-accent) 5%, #fff);
}

.community-post-card:not(.is-system) .poll-option > span:first-child {
  align-items: center;
  font-size: .84rem;
}

.community-post-card:not(.is-system) .poll-track {
  height: .3rem;
  background: #e0e6e8;
}

.community-post-card:not(.is-system) .poll-fill {
  background: linear-gradient(90deg, var(--member-post-accent), color-mix(in srgb, var(--member-post-accent) 58%, #ff9caf));
}

.community-post-card:not(.is-system) .post-actions {
  min-height: 3.65rem;
  padding: .48rem .68rem;
  border-top: 1px solid #d5dde0;
  background: #f6f8f8;
}

.community-post-card:not(.is-system) .reaction-group {
  min-height: 2.5rem;
  padding: .12rem .2rem;
  border-radius: .55rem;
}

.community-post-card:not(.is-system) .post-actions > .button-row {
  padding: .12rem;
  border: 1px solid #d5dde0;
  border-radius: .6rem;
  background: #fff;
}

.community-post-card:not(.is-system) .post-actions > .button-row .post-action {
  min-height: 2.45rem;
  color: #455d67;
}

.community-post-card:not(.is-system) .post-actions > .button-row .post-action:hover,
.community-post-card:not(.is-system) .post-actions > .button-row .post-action:focus-visible,
.community-post-card:not(.is-system) .post-actions > .button-row .post-action.active {
  color: var(--member-post-accent);
  background: color-mix(in srgb, var(--member-post-accent) 6%, #fff);
  box-shadow: none;
}

@media (max-width: 44rem) {
  .community-post-card:not(.is-system) { border-radius: .7rem; }
  .community-post-card:not(.is-system)::before { height: .2rem; }
  .community-post-card:not(.is-system) .post-card-header {
    min-height: 4.25rem;
    padding: .88rem .75rem .68rem;
  }
  .community-post-card:not(.is-system) .post-avatar-link,
  .community-post-card:not(.is-system) .post-avatar { width: 2.55rem; height: 2.55rem; }
  .community-post-card:not(.is-system) .post-content { gap: .62rem; padding: .72rem .75rem .86rem; }
  .community-post-card:not(.is-system) .poll-option {
    min-height: 3.45rem;
    padding: .72rem .7rem .72rem 3.1rem;
  }
  .community-post-card:not(.is-system) .poll-option::before { left: .68rem; width: 1.7rem; height: 1.7rem; }
  .community-post-card:not(.is-system) .post-actions { padding: .38rem .42rem; }
}

/* Full split-layout comment composer redesign v56 */
.comments-entry .comment-composer {
  display: block;
  margin: 0;
  padding: 0;
}

.comments-entry .comment-composer-panel {
  display: grid;
  min-height: 8.6rem;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  grid-template-areas:
    "identity editor"
    "identity preview"
    "identity tools";
  overflow: hidden;
  border: 1px solid #c8d2d6;
  border-top: 4px solid var(--community-red);
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 8px 22px rgba(13, 32, 41, .07);
}

.comments-entry .comment-composer-panel:focus-within {
  border-color: #b5c2c7;
  border-top-color: var(--community-red);
  box-shadow: 0 0 0 3px rgba(225, 38, 73, .075), 0 10px 26px rgba(13, 32, 41, .08);
}

.comment-composer-identity {
  grid-area: identity;
  display: flex;
  min-width: 0;
  align-items: flex-start;
  flex-direction: column;
  gap: .72rem;
  padding: .95rem .8rem;
  border-right: 1px solid #d4dde0;
  background:
    linear-gradient(155deg, rgba(225, 38, 73, .1), rgba(225, 38, 73, .018) 58%),
    #f4f7f7;
}

.comments-entry .comment-composer-identity .comment-composer-avatar {
  width: 2.55rem;
  min-width: 2.55rem;
  height: 2.55rem;
  margin: 0;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(225, 38, 73, .28), 0 5px 13px rgba(20, 38, 47, .11);
}

.comment-composer-identity-copy {
  display: grid;
  min-width: 0;
  gap: .22rem;
}

.comment-composer-identity-copy small {
  color: #b51c38;
  font: 900 .57rem/1 var(--sans);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.comment-composer-identity-copy strong {
  max-width: 7.7rem;
  overflow: hidden;
  color: #14272f;
  font: 850 .76rem/1.2 var(--sans);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comments-entry .comment-composer .comment-rich-editor {
  grid-area: editor;
  min-height: 5.2rem;
  max-height: 12rem;
  padding: .9rem 1rem .72rem;
  border: 0;
  color: #263b44;
  background: #fff;
  font-size: .86rem;
  line-height: 1.55;
}

.comments-entry .comment-composer .comment-rich-editor:focus { min-height: 5.2rem; }

.comments-entry .comment-composer .comment-rich-editor:empty::before {
  color: #71838b;
  font-weight: 500;
}

.comments-entry .comment-attachment-preview {
  grid-area: preview;
  margin: 0;
  padding: .48rem .75rem 0;
  border-top: 1px solid #e0e6e8;
  background: #fff;
}

.comments-entry .comment-composer-tools {
  grid-area: tools;
  min-height: 3.05rem;
  gap: .42rem;
  padding: .38rem .45rem .38rem .62rem;
  border-top: 1px solid #d6dfe2;
  background: #eef3f4;
}

.comments-entry .comment-photo-action {
  min-height: 2.2rem;
  padding: .36rem .58rem;
  border: 1px solid #d1dbde;
  border-radius: .48rem;
  color: #455d67;
  background: #fff;
}

.comments-entry .comment-photo-action:hover,
.comments-entry .comment-photo-action:focus-visible {
  border-color: var(--community-red);
  color: #a91833;
  background: #fff;
}

.comments-entry .comment-character-count {
  padding: .22rem .4rem;
  border-radius: 999px;
  color: #687b84;
  background: rgba(255, 255, 255, .72);
  font-size: .61rem;
}

.comments-entry .comment-composer-tools > .ctv-action {
  min-width: 7.35rem;
  min-height: 2.25rem;
  padding: .42rem .72rem;
  border-radius: .5rem;
  font-size: .66rem;
  box-shadow: 0 5px 13px rgba(225, 38, 73, .16);
}

@media (max-width: 44rem) {
  .comments-entry .comment-composer-panel {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "identity"
      "editor"
      "preview"
      "tools";
    border-radius: .65rem;
  }

  .comment-composer-identity {
    min-height: 3.65rem;
    align-items: center;
    flex-direction: row;
    gap: .62rem;
    padding: .58rem .68rem;
    border-right: 0;
    border-bottom: 1px solid #d4dde0;
  }

  .comments-entry .comment-composer-identity .comment-composer-avatar {
    width: 2.2rem;
    min-width: 2.2rem;
    height: 2.2rem;
  }

  .comment-composer-identity-copy { gap: .14rem; }
  .comment-composer-identity-copy strong { max-width: 14rem; }

  .comments-entry .comment-composer .comment-rich-editor {
    min-height: 4.5rem;
    padding: .78rem .75rem .62rem;
  }

  .comments-entry .comment-composer .comment-rich-editor:focus { min-height: 4.5rem; }
  .comments-entry .comment-composer-tools { padding-inline: .38rem; }
  .comments-entry .comment-composer-tools > .ctv-action { min-width: 5.9rem; }
}

/* Clean horizontal comment composer v57 */
.comments-entry .comment-composer-panel {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "identity"
    "editor"
    "preview"
    "tools";
  border: 1px solid #c9d3d7;
  border-radius: .7rem;
  background: #fff;
  box-shadow: none;
}

.comments-entry .comment-composer-panel:focus-within {
  border-color: #aebdc3;
  box-shadow: 0 0 0 3px rgba(23, 119, 155, .07);
}

.comments-entry .comment-composer-identity {
  min-height: 3.45rem;
  align-items: center;
  flex-direction: row;
  gap: .62rem;
  padding: .56rem .72rem;
  border-right: 0;
  border-bottom: 1px solid #d7dfe2;
  background: linear-gradient(90deg, rgba(225, 38, 73, .045), #f8fafa 8rem, #f8fafa);
  box-shadow: inset 3px 0 0 var(--community-red);
}

.comments-entry .comment-composer-identity .comment-composer-avatar {
  width: 2.15rem;
  min-width: 2.15rem;
  height: 2.15rem;
  border: 1px solid #fff;
  box-shadow: 0 0 0 1px #c8d3d7;
}

.comments-entry .comment-composer-identity-copy {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: .38rem;
}

.comments-entry .comment-composer-identity-copy small {
  color: #71838a;
  font: 800 .59rem/1 var(--sans);
  letter-spacing: .055em;
  text-transform: uppercase;
}

.comments-entry .comment-composer-identity-copy strong {
  max-width: min(26rem, 60vw);
  color: #14272f;
  font: 850 .75rem/1.2 var(--sans);
}

.comments-entry .comment-composer .comment-rich-editor {
  min-height: 4.35rem;
  max-height: 12rem;
  padding: .82rem .88rem .68rem;
  font-size: .85rem;
}

.comments-entry .comment-composer .comment-rich-editor:focus { min-height: 4.35rem; }

.comments-entry .comment-composer-tools {
  min-height: 2.85rem;
  padding: .34rem .42rem .34rem .52rem;
  background: #f3f6f6;
}

.comments-entry .comment-photo-action {
  min-height: 2.1rem;
  padding: .34rem .52rem;
  border-color: #d2dbde;
  background: #fff;
}

.comments-entry .comment-character-count {
  padding: 0;
  border-radius: 0;
  color: #72848b;
  background: transparent;
}

.comments-entry .comment-composer-tools > .ctv-action {
  min-width: 7rem;
  min-height: 2.15rem;
  border-radius: .46rem;
  box-shadow: none;
}

@media (max-width: 44rem) {
  .comments-entry .comment-composer-panel { border-radius: .6rem; }
  .comments-entry .comment-composer-identity { min-height: 3.25rem; padding: .5rem .58rem; }
  .comments-entry .comment-composer-identity .comment-composer-avatar {
    width: 2rem;
    min-width: 2rem;
    height: 2rem;
  }
  .comments-entry .comment-composer-identity-copy strong { max-width: 52vw; }
  .comments-entry .comment-composer .comment-rich-editor {
    min-height: 4rem;
    padding: .72rem .68rem .58rem;
  }
  .comments-entry .comment-composer .comment-rich-editor:focus { min-height: 4rem; }
  .comments-entry .comment-composer-tools > .ctv-action { min-width: 5.7rem; }
}

/* Tactical Social v58 final authority — keep every post family on one shared shell. */
.community-toolbar > .community-refresh { display: none !important; }

.community-post-card,
.community-post-card:not(.is-system),
.community-post-card.is-system {
  border: 1px solid var(--social-line);
  border-radius: var(--social-radius);
  background-color: var(--social-surface);
  box-shadow: var(--social-shadow);
}

.community-post-card:not(.is-system) .post-card-header {
  border-bottom-color: #d7e0e3;
  background: linear-gradient(100deg, color-mix(in srgb, var(--member-post-accent) 4%, #fff), #fff 42%);
}

.community-post-card:not(.is-system) .post-actions { background: var(--social-surface-muted); }

@media (max-width: 44rem) {
  .community-post-card,
  .community-post-card:not(.is-system),
  .community-post-card.is-system { border-radius: .7rem; }
}

/* Soft arena background v59 */
body.community-feed-page {
  background-color: var(--social-bg);
  background-image:
    linear-gradient(180deg, rgba(244, 247, 247, .42) 0%, rgba(237, 241, 242, .68) 52vh, var(--social-bg) 105vh),
    linear-gradient(90deg, rgba(247, 249, 249, .62) 0%, rgba(247, 249, 249, .32) 58%, rgba(247, 249, 249, .54) 100%),
    url("./community-arena-background-v59.webp");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}

@media (max-width: 44rem) {
  body.community-feed-page {
    background-image:
      linear-gradient(180deg, rgba(244, 247, 247, .5) 0%, rgba(237, 241, 242, .76) 56vh, var(--social-bg) 100vh),
      linear-gradient(90deg, rgba(247, 249, 249, .5), rgba(247, 249, 249, .38)),
      url("./community-arena-background-v59.webp");
    background-position: 68% top;
    background-size: auto 100vh;
    background-attachment: scroll;
  }
}

/* Light feed controls v60 */
.community-scope-switch {
  gap: .18rem;
  padding: .18rem;
  border: 1px solid var(--social-line);
  border-radius: .52rem;
  background: #f0f3f4;
}

.community-scope-switch button {
  min-height: 2.05rem;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: .36rem;
  color: #5b6e77;
  background: transparent;
  box-shadow: none;
}

.community-scope-switch button + button { border-left: 1px solid transparent; }
.community-scope-switch button span { color: #d88394; text-shadow: none; }

.community-scope-switch button:hover,
.community-scope-switch button:focus-visible {
  border-color: #dfc9ce;
  color: #a71934;
  background: #fff;
  box-shadow: 0 3px 10px rgba(35, 52, 60, .065);
}

.community-scope-switch button.is-active {
  border-color: rgba(225, 38, 73, .24);
  color: #a31631;
  background: linear-gradient(180deg, #fff, #fff1f4);
  box-shadow: 0 3px 11px rgba(225, 38, 73, .09), inset 0 -2px 0 var(--social-red);
}

.community-scope-switch button.is-active span { color: var(--social-red); }

.community-new-items {
  min-height: 2.65rem;
  margin: .7rem auto 0;
  padding: .5rem .8rem;
  border: 1px solid rgba(225, 38, 73, .28);
  border-radius: .62rem;
  color: var(--social-ink);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 7px 20px rgba(26, 44, 53, .08), inset 3px 0 0 var(--social-red);
  backdrop-filter: blur(10px);
}

.community-new-items > span {
  color: var(--social-red);
  font-size: .6rem;
  text-shadow: 0 0 .6rem rgba(225, 38, 73, .32);
}

.community-new-items > i { color: #b51a36; }

.community-new-items:hover,
.community-new-items:focus-visible {
  border-color: rgba(225, 38, 73, .55);
  color: #95162e;
  background: #fff7f8;
  box-shadow: 0 9px 24px rgba(225, 38, 73, .11), inset 3px 0 0 var(--social-red);
  transform: translateY(-1px);
}

@media (max-width: 44rem) {
  .community-scope-switch button { min-height: 2.15rem; }
  .community-new-items { min-height: 2.55rem; margin-top: .55rem; }
}

/* Inline comment replies v61 */
.comment-inline-reply {
  grid-column: 2 / -1;
  min-width: 0;
  width: 100%;
  margin-top: .65rem;
  margin-bottom: 0;
  padding-top: .65rem;
  padding-bottom: 0;
  border-top: 1px solid #d8e0e3;
  border-bottom: 0;
}

.comment-inline-reply .comment-composer { width: 100%; }
.comment-inline-reply .comment-composer-panel {
  display: grid;
  min-width: 0;
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "identity"
    "editor"
    "preview"
    "tools";
}
.comment-inline-reply .comment-composer-identity {
  min-width: 0;
  align-items: center;
  flex-direction: row;
}
.comment-inline-reply .comment-rich-editor { min-width: 0; width: 100%; }
.comment-inline-reply .comment-reply-banner {
  margin: 0 0 .4rem;
  border-radius: .45rem;
  background: #fff2f5;
}

.comment-inline-reply .comment-composer-panel {
  border-color: #d6c6ca;
  box-shadow: 0 5px 16px rgba(34, 50, 58, .055);
}

.comment-inline-reply-fallback { margin: 0 0 .55rem; }

@media (max-width: 44rem) {
  .comment-inline-reply {
    grid-column: 1 / -1;
    margin-top: .55rem;
    padding-top: .55rem;
  }
}

/* Calm selected reactions and compact unread-comment signals v67 */
.post-actions .reaction-trigger.is-active,
.post-actions .reaction-trigger.is-active:hover,
.post-actions .reaction-trigger.is-active:focus-visible,
.comment-actions .reaction-trigger.is-active,
.comment-actions .reaction-trigger.is-active:hover,
.comment-actions .reaction-trigger.is-active:focus-visible {
  position: relative;
  border: 1px solid rgba(225, 38, 73, .26);
  color: #a31631;
  background: linear-gradient(180deg, #fff, #fff3f5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .82), 0 2px 8px rgba(109, 28, 45, .08);
}

.post-actions .reaction-trigger.is-active::after {
  position: absolute;
  top: .28rem;
  right: .28rem;
  width: .36rem;
  height: .36rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--social-red, var(--community-red));
  box-shadow: 0 1px 4px rgba(130, 18, 41, .22);
  content: "";
}

.post-actions .reaction-trigger.is-active:hover,
.post-actions .reaction-trigger.is-active:focus-visible {
  border-color: rgba(225, 38, 73, .42);
  background: #fff;
  transform: translateY(-1px);
}

.post-actions > .button-row .post-action.has-unread,
.post-actions > .button-row .post-action.has-unread:hover,
.post-actions > .button-row .post-action.has-unread:focus-visible,
.community-post-card:not(.is-system) .post-actions > .button-row .post-action.has-unread,
.community-post-card:not(.is-system) .post-actions > .button-row .post-action.has-unread:hover,
.community-post-card:not(.is-system) .post-actions > .button-row .post-action.has-unread:focus-visible {
  color: #3e5d58;
  background: linear-gradient(180deg, #fff, #f4fbf9);
  box-shadow: inset 0 0 0 1px rgba(27, 148, 118, .25), 0 2px 8px rgba(20, 89, 73, .07);
}

.post-action-label { line-height: 1; }

.post-action-count {
  color: #70848b;
  font-size: .64rem;
  font-weight: 850;
  line-height: 1;
}

.post-action-unread-badge {
  display: inline-grid;
  min-width: 1.4rem;
  min-height: 1.25rem;
  place-items: center;
  padding: .14rem .34rem;
  border: 1px solid rgba(23, 143, 113, .22);
  border-radius: 999px;
  color: #087258;
  background: #ddf5ee;
  font-size: .61rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: .01em;
}

.comment-card.is-new-comment,
.comment-card.is-new-comment-highlight,
.comment-card.is-unread-target,
.comment-card.is-reply:is(.is-new-comment, .is-new-comment-highlight, .is-unread-target) {
  border-left-color: #22a484;
  background: linear-gradient(90deg, rgba(34, 164, 132, .065), #fff 38%);
}

@media (max-width: 44rem) {
  .post-actions > .button-row .post-action.has-unread { padding-inline: .48rem; }
  .post-action-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .post-action-count { display: none; }
  .post-action-unread-badge { min-width: 1.28rem; padding-inline: .26rem; }
}
