.newsfeed-v2-root {
  --nf2-bg: #f5f8fd;
  --nf2-surface: #ffffff;
  --nf2-text: #10213a;
  --nf2-muted: #61708a;
  --nf2-border: #d8e3f0;
  --nf2-accent: #0f766e;
}

.newsfeed-v2-shell {
  border: 1px solid var(--nf2-border);
  border-radius: 18px;
  background: radial-gradient(1000px 360px at 0% -40%, #daf4ff 0%, var(--nf2-bg) 45%, #f5f8fd 100%);
  padding: 16px;
  margin-bottom: 16px;
  animation: nf2-fade .25s ease;
}

.newsfeed-v2-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 10px;
}

.newsfeed-v2-kicker {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 11px;
  color: var(--nf2-muted);
}

.newsfeed-v2-header h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
  color: var(--nf2-text);
}

.newsfeed-v2-actions {
  display: flex;
  gap: 8px;
}

.newsfeed-v2-rail {
  display: flex;
  gap: 8px;
  margin: 6px 0 12px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.newsfeed-v2-chip {
  border: 1px solid var(--nf2-border);
  background: #fff;
  color: var(--nf2-text);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.newsfeed-v2-chip.is-active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.newsfeed-v2-mode,
.newsfeed-v2-refresh {
  border: 1px solid var(--nf2-border);
  background: var(--nf2-surface);
  color: var(--nf2-text);
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 600;
  text-decoration: none;
}

.newsfeed-v2-mode.is-active {
  background: var(--nf2-accent);
  color: #fff;
  border-color: var(--nf2-accent);
}

.newsfeed-v2-alert {
  margin-bottom: 10px;
  border: 1px dashed var(--nf2-border);
  border-radius: 12px;
  padding: 8px 10px;
  color: var(--nf2-muted);
  font-size: 13px;
}

.newsfeed-v2-loader,
.newsfeed-v2-error {
  margin-bottom: 10px;
}

.newsfeed-v2-loader:not(.x-hidden)::after {
  content: "";
  display: block;
  margin-top: 8px;
  height: 88px;
  border-radius: 14px;
  background: linear-gradient(90deg, #edf2f7 0%, #f7fafc 40%, #edf2f7 100%);
  background-size: 200% 100%;
  animation: nf2-shimmer 1.1s linear infinite;
}

.newsfeed-v2-error {
  color: #b42318;
}

.newsfeed-v2-stream .posts-filter {
  border: 1px solid var(--nf2-border);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: var(--nf2-surface);
  position: relative;
  overflow: visible;
  z-index: 30;
  min-height: 46px;
}

/* Hide ALL dropdown-menus inside the filter card unconditionally.
   This prevents the countries-filter and type-filter dropdowns from
   rendering inline before Vue mounts and adds the body class. */
.posts-filter .dropdown-menu {
  display: none !important;
}

.posts-filter .dropdown-menu.show {
  display: block !important;
}

/* ── Filter toggle button ─────────────────────────────────────── */
body.nf2-site-shell-active .newsfeed-v2-stream .posts-filter .js_posts-filter,
body.newsfeed-v2-active .newsfeed-v2-stream .posts-filter .js_posts-filter {
  position: relative;
  z-index: 9;
}

body.nf2-site-shell-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-toggle,
body.newsfeed-v2-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--nf2-border);
  background: var(--nf2-surface);
  font-size: 13px;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

body.nf2-site-shell-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-toggle:hover,
body.newsfeed-v2-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-toggle:hover {
  background: rgba(59, 130, 246, 0.07);
  border-color: rgba(59, 130, 246, 0.36);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

body.nf2-site-shell-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-toggle[aria-expanded="true"],
body.newsfeed-v2-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-toggle[aria-expanded="true"] {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.5);
  color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

body.night-mode.nf2-site-shell-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-toggle[aria-expanded="true"],
body.night-mode.newsfeed-v2-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-toggle[aria-expanded="true"] {
  background: rgba(96, 165, 250, 0.15);
  border-color: rgba(96, 165, 250, 0.5);
  color: #93c5fd;
}

body.nf2-site-shell-active .newsfeed-v2-stream .posts-filter .js_posts-filter .btn-group-icon,
body.newsfeed-v2-active .newsfeed-v2-stream .posts-filter .js_posts-filter .btn-group-icon {
  font-size: 13px;
  opacity: 0.7;
}

/* Active (non-All) filter state */
body.nf2-site-shell-active .newsfeed-v2-stream .posts-filter .js_posts-filter[data-value]:not([data-value="all"]) .dropdown-toggle,
body.newsfeed-v2-active .newsfeed-v2-stream .posts-filter .js_posts-filter[data-value]:not([data-value="all"]) .dropdown-toggle {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.5);
  color: #1d4ed8;
}

body.night-mode.nf2-site-shell-active .newsfeed-v2-stream .posts-filter .js_posts-filter[data-value]:not([data-value="all"]) .dropdown-toggle,
body.night-mode.newsfeed-v2-active .newsfeed-v2-stream .posts-filter .js_posts-filter[data-value]:not([data-value="all"]) .dropdown-toggle {
  background: rgba(96, 165, 250, 0.18);
  border-color: rgba(96, 165, 250, 0.55);
  color: #93c5fd;
}

/* ── Dropdown panel ───────────────────────────────────────────── */
body.nf2-site-shell-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-menu,
body.newsfeed-v2-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  display: none;
  min-width: 210px;
  max-width: min(280px, calc(100vw - 20px));
  max-height: min(62vh, 380px);
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 14px;
  border: 1px solid var(--nf2-border);
  background: #fff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(15, 23, 42, 0.08);
  z-index: 9999;
  padding: 6px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, 0.3) transparent;
  overscroll-behavior: contain;
}

body.nf2-site-shell-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-menu .js_scroller,
body.newsfeed-v2-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-menu .js_scroller {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

body.nf2-site-shell-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-menu.show,
body.newsfeed-v2-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-menu.show {
  display: block;
  animation: nf2-filter-drop-in 0.14s ease forwards;
}

@keyframes nf2-filter-drop-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

body.night-mode.nf2-site-shell-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-menu,
body.night-mode.newsfeed-v2-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-menu {
  background: #1e2a3a;
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow: 0 20px 48px rgba(2, 6, 23, 0.48), 0 4px 12px rgba(2, 6, 23, 0.28);
}

/* ── Dropdown items ───────────────────────────────────────────── */
body.nf2-site-shell-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-item,
body.newsfeed-v2-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-item {
  min-height: 40px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 14px;
  text-align: left;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 8px;
  margin: 1px 6px;
  cursor: pointer;
  transition: background 0.1s ease, color 0.1s ease;
  width: calc(100% - 12px);
  white-space: nowrap;
}

body.nf2-site-shell-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-item:hover,
body.newsfeed-v2-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-item:hover {
  background: rgba(59, 130, 246, 0.08);
  color: #1d4ed8;
}

body.night-mode.nf2-site-shell-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-item:hover,
body.night-mode.newsfeed-v2-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-item:hover {
  background: rgba(96, 165, 250, 0.12);
  color: #93c5fd;
}

body.nf2-site-shell-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-item .main-icon,
body.newsfeed-v2-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-item .main-icon {
  width: 18px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  color: #555 !important;
  opacity: 0.8;
}

body.nf2-site-shell-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-item .main-icon svg,
body.nf2-site-shell-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-item .main-icon svg *,
body.nf2-site-shell-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-item .main-icon i,
body.newsfeed-v2-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-item .main-icon svg,
body.newsfeed-v2-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-item .main-icon svg *,
body.newsfeed-v2-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-item .main-icon i {
  color: currentColor !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8;
}

body.nf2-site-shell-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-item > span:last-child,
body.newsfeed-v2-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-item > span:last-child {
  flex: 1 1 auto;
  text-align: left;
}

/* ── Mobile ───────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .newsfeed-v2-stream .posts-filter {
    padding: 8px 12px;
    min-height: 44px;
    border-radius: 12px;
  }

  body.nf2-site-shell-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-toggle,
  body.newsfeed-v2-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-toggle {
    padding: 5px 12px 5px 10px;
    font-size: 12.5px;
  }

  body.nf2-site-shell-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-menu,
  body.newsfeed-v2-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-menu {
    min-width: 220px;
    max-width: min(288px, calc(100vw - 24px));
    max-height: min(58vh, 360px);
    top: calc(100% + 6px);
    right: 0;
    border-radius: 16px;
    padding: 8px 0;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18), 0 4px 10px rgba(15, 23, 42, 0.08);
  }

  body.nf2-site-shell-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-item,
  body.newsfeed-v2-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-item {
    min-height: 46px;
    gap: 12px;
    padding: 10px 14px;
    margin: 1px 8px;
    border-radius: 12px;
    font-size: 14px;
  }

  body.nf2-site-shell-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-item .main-icon,
  body.newsfeed-v2-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-item .main-icon {
    width: 20px;
    min-width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  body.nf2-site-shell-active .newsfeed-v2-stream .posts-filter .js_posts-filter,
  body.newsfeed-v2-active .newsfeed-v2-stream .posts-filter .js_posts-filter {
    position: static;
  }

  body.nf2-site-shell-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-toggle,
  body.newsfeed-v2-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-toggle {
    min-height: 38px;
  }

  body.nf2-site-shell-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-menu,
  body.newsfeed-v2-active .newsfeed-v2-stream .posts-filter .js_posts-filter .dropdown-menu {
    max-width: calc(100vw - 24px);
    border-radius: 18px;
  }
}

/* Keep Warm-style post type pills cleanly inside the v2 filter card */
body.newsfeed-v2-active .newsfeed-v2-stream .ele_post_filters {
  margin: 0 0 12px;
  padding: 8px;
  border: 1px solid var(--nf2-border);
  border-radius: 14px;
  background: var(--nf2-surface);
  overflow: hidden;
}

body.newsfeed-v2-active .newsfeed-v2-stream .ele_post_filters_nav {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  cursor: grab;
}

body.newsfeed-v2-active .newsfeed-v2-stream .ele_post_filters_nav.is-dragging {
  cursor: grabbing;
  user-select: none;
}

body.newsfeed-v2-active .newsfeed-v2-stream .ele_post_filters_nav > .filterby {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid #e6edf7;
  border-radius: 12px;
  padding: 9px 12px;
  background: #fff;
  box-shadow: none;
}

body.newsfeed-v2-active .newsfeed-v2-stream .ele_post_filters_nav > .filterby.active {
  background: #f1f6fd;
  border-color: #d8e3f0;
}

.newsfeed-v2-stream .js_posts_stream > ul {
  gap: 10px;
}

/* ── Mobile full-bleed feed (≤600px) ─────────────────────────────────────── */
@media (max-width: 600px) {
  body.nf2-site-shell-active .newsfeed-v2-shell,
  body.newsfeed-v2-active .newsfeed-v2-shell,
  .newsfeed-v2-shell {
    margin-left: 0;
    margin-right: 0;
    padding-left: 12px;
    padding-right: 12px;
    border-left: 1px solid var(--nf2-border);
    border-right: 1px solid var(--nf2-border);
    border-radius: 16px;
  }

  body.nf2-site-shell-active .newsfeed-v2-shell .nf2-composer,
  body.newsfeed-v2-active .newsfeed-v2-shell .nf2-composer,
  .newsfeed-v2-shell .nf2-composer,
  body.nf2-site-shell-active .newsfeed-v2-stream .ele_post_filters,
  body.newsfeed-v2-active .newsfeed-v2-stream .ele_post_filters,
  .newsfeed-v2-stream .posts-filter {
    margin-left: 0;
    margin-right: 0;
  }

  .newsfeed-v2-shell .newsfeed-v2-header {
    padding-left: 0;
    padding-right: 0;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .newsfeed-v2-header h2 {
    font-size: 18px;
  }

  .newsfeed-v2-actions {
    width: 100%;
    justify-content: flex-start;
  }

  body.nf2-site-shell-active .js_posts_stream > ul > li > .post:not(.ele_post_skel),
  body.nf2-site-shell-active .js_posts_stream > .post:not(.ele_post_skel),
  .newsfeed-v2-stream .post:not(.ele_post_skel) {
    border-radius: 0 !important;
    border-left: none;
    border-right: none;
    box-shadow: none !important;
  }

  .newsfeed-v2-stream .js_posts_stream > ul {
    gap: 6px;
  }
}

/* Mobile-first polish for feed density and tap targets */
@media (max-width: 767px) {
  .newsfeed-v2-root {
    --nf2-border: #d4deec;
  }

  .newsfeed-v2-shell {
    padding: 10px;
    border-radius: 14px;
    margin-bottom: 10px;
  }

  .newsfeed-v2-header {
    margin-bottom: 8px;
    gap: 8px;
  }

  .newsfeed-v2-kicker {
    font-size: 10px;
    letter-spacing: .08em;
  }

  .newsfeed-v2-header h2 {
    font-size: 24px;
    letter-spacing: -0.02em;
  }

  .newsfeed-v2-rail {
    gap: 6px;
    margin: 4px 0 10px;
  }

  .newsfeed-v2-chip {
    padding: 7px 11px;
    font-size: 12px;
  }

  .nf2-composer {
    margin: 0 0 10px;
    padding: 10px;
    border-radius: 12px;
  }

  .nf2-composer-box {
    padding: 10px;
    border-radius: 10px;
  }

  .nf2-composer-actions {
    gap: 6px;
    margin-top: 8px;
  }

  .nf2-pill {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 11px;
  }

  .newsfeed-v2-stream .js_posts_stream > ul {
    gap: 8px;
  }

  .newsfeed-v2-stream .post {
    border-radius: 14px !important;
  }
}

body.nf2-site-shell-active .js_posts_stream > ul > li > .post:not(.ele_post_skel),
body.nf2-site-shell-active .js_posts_stream > .post:not(.ele_post_skel),
.newsfeed-v2-stream .post:not(.ele_post_skel) {
  border-radius: 12px;
  overflow: visible;
  border: 1px solid transparent;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .10), 0 1px 2px 0 rgba(0, 0, 0, .06);
  background: #fff !important;
  transform: none;
  opacity: 1;
  animation: none;
}

body.nf2-site-shell-active .js_posts_stream > ul > li > .post::before,
body.nf2-site-shell-active .js_posts_stream > .post::before,
body.newsfeed-v2-active .newsfeed-v2-stream .post::before {
  content: "" !important;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: inherit;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background: linear-gradient(90deg, #0b5fb4 0%, #1278df 52%, #0e6fce 100%) !important;
  box-shadow: 0 1px 0 rgba(18, 120, 223, 0.18);
  pointer-events: none;
  z-index: 0;
}

.nf2-composer {
  margin: 0 0 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--nf2-border);
  border-radius: 14px;
}

.nf2-composer-box {
  width: 100%;
  border: 1px solid #dce6f4;
  border-radius: 12px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fbff;
  color: var(--nf2-text);
  min-width: 0;
}

.nf2-composer-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f8fe4 0%, #0f68d2 100%);
  color: #fff;
  font-size: 12px;
  box-shadow: 0 4px 10px rgba(15, 121, 219, 0.28);
}

.nf2-composer-text {
  min-width: 0;
  flex: 1 1 auto;
  text-align: left;
  color: var(--nf2-muted);
  font-weight: 500;
}

.nf2-composer-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nf2-pill {
  border: 1px solid var(--nf2-border);
  background: #fff;
  color: var(--nf2-text);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
}

/* Applied by decoratePosts() to initial posts; also target all .post in the
   stream so load_more-appended posts get the same treatment automatically. */
.nf2-post,
.newsfeed-v2-stream .nf2-posts-ul > li > .post {
  border-width: 1px !important;
  transition: box-shadow .18s ease, transform .18s ease;
}

.nf2-post:hover,
.newsfeed-v2-stream .nf2-posts-ul > li > .post:hover {
  box-shadow: 0 6px 18px rgba(15, 23, 42, .10);
  transform: translateY(-1px);
}

body.nf2-site-shell-active .nf2-dropdown-host-open,
body.newsfeed-v2-active .nf2-dropdown-host-open {
  position: relative;
  z-index: 1043 !important;
}

body.nf2-site-shell-active .nf2-dropdown-host-open .dropdown-menu.show,
body.newsfeed-v2-active .nf2-dropdown-host-open .dropdown-menu.show {
  z-index: 1044 !important;
}

.newsfeed-v2-stream .post-footer,
.newsfeed-v2-stream .post-actions {
  border-top-color: #ececec !important;
}

.newsfeed-v2-stream .post-action,
.newsfeed-v2-stream .post-footer .btn,
.newsfeed-v2-stream .post-footer button {
  border-radius: 11px !important;
  font-weight: 600;
}

.newsfeed-v2-stream .post-action:hover,
.newsfeed-v2-stream .post-footer .btn:hover,
.newsfeed-v2-stream .post-footer button:hover {
  background: #f1f6fd !important;
}

.newsfeed-v2-stream .js_see-more {
  border-radius: 12px;
  border: 1px solid #d8e3f0;
  background: #fff;
  color: #1d3557;
  font-weight: 600;
}

.newsfeed-v2-stream .js_see-more.done {
  background: #f8fbff;
  color: #6b7a90;
}

.nf2-empty-state {
  border: 1px dashed #cbd8ea;
  border-radius: 14px;
  padding: 14px;
  background: #f8fbff;
}

.newsfeed-v2-error {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  border-radius: 10px;
  padding: 10px 12px;
}

/* Right-side card upgrades for v2 mode */
body.newsfeed-v2-active .right-sidebar .card {
  border: 1px solid #dbe5f2;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

body.newsfeed-v2-active .right-sidebar .card .card-header {
  border-bottom: 1px solid #e6edf7;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 12px 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #1a2840;
}

body.newsfeed-v2-active .right-sidebar .card .card-body {
  padding: 12px;
}

body.newsfeed-v2-active .right-sidebar .card .card-header a,
body.newsfeed-v2-active .right-sidebar .card .card-body a {
  color: #1a2840;
}

body.newsfeed-v2-active .right-sidebar .card .main-icon,
body.newsfeed-v2-active .right-sidebar .card .main-icon *,
body.newsfeed-v2-active .right-sidebar .card svg,
body.newsfeed-v2-active .right-sidebar .card svg * {
  color: #1662d6 !important;
  fill: currentColor !important;
  stroke: currentColor !important;
}

body.newsfeed-v2-active .right-sidebar .user-box {
  border: 1px solid #d8e3f0;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  color: #1a2840 !important;
  transition: transform .15s ease, box-shadow .15s ease;
}

body.newsfeed-v2-active .right-sidebar .user-box:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.10);
}

body.newsfeed-v2-active .right-sidebar .user-box img {
  border-radius: 10px;
}

body.newsfeed-v2-active .right-sidebar .user-box .name,
body.newsfeed-v2-active .right-sidebar .user-box .username,
body.newsfeed-v2-active .right-sidebar .user-box small,
body.newsfeed-v2-active .right-sidebar .user-box .text-muted {
  color: inherit !important;
}

body.newsfeed-v2-active .right-sidebar .badge,
body.newsfeed-v2-active .right-sidebar .list-group-item,
body.newsfeed-v2-active .right-sidebar .trending-item {
  border-radius: 12px;
}

body.newsfeed-v2-active .right-sidebar a[href*="hashtag"] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d8e3f0;
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  color: #1e293b;
  font-weight: 600;
}

body.newsfeed-v2-active .right-sidebar .card.bg-indigo,
body.newsfeed-v2-active .right-sidebar .card.bg-teal,
body.newsfeed-v2-active .right-sidebar .card.bg-red {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  border: 1px solid #dbe5f2 !important;
  color: #1a2840 !important;
}

body.newsfeed-v2-active .right-sidebar .card.bg-indigo .card-header,
body.newsfeed-v2-active .right-sidebar .card.bg-teal .card-header,
body.newsfeed-v2-active .right-sidebar .card.bg-red .card-header {
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%) !important;
  color: #1a2840 !important;
}

body.newsfeed-v2-active .right-sidebar .card.bg-indigo .text-white,
body.newsfeed-v2-active .right-sidebar .card.bg-teal .text-white,
body.newsfeed-v2-active .right-sidebar .card.bg-red .text-white,
body.newsfeed-v2-active .right-sidebar .card.bg-indigo h6,
body.newsfeed-v2-active .right-sidebar .card.bg-teal h6,
body.newsfeed-v2-active .right-sidebar .card.bg-red h6 {
  color: #1a2840 !important;
}

body.newsfeed-v2-active .right-sidebar .card.bg-indigo .text-underline,
body.newsfeed-v2-active .right-sidebar .card.bg-teal .text-underline,
body.newsfeed-v2-active .right-sidebar .card.bg-red .text-underline {
  color: #1662d6 !important;
}

body.newsfeed-v2-active .right-sidebar .card.bg-red .trending-item,
body.newsfeed-v2-active .right-sidebar .card.bg-red a[href*="hashtag"] {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 8px;
  border: 1px solid #d8e3f0;
  background: #ffffff;
  color: #1a2840 !important;
}

body.newsfeed-v2-active .right-sidebar .card.bg-red .trending-item:last-child {
  margin-bottom: 0;
}

body.newsfeed-v2-active .right-sidebar .card.bg-red .frequency {
  color: #5f728c !important;
  font-weight: 500;
}

.newsfeed-v2-stream .post + .post {
  animation-delay: .04s;
}

.newsfeed-v2-stream .post-header,
.newsfeed-v2-stream .post-footer {
  padding-left: 2px;
  padding-right: 2px;
}

.newsfeed-v2-stream .post .post__action-btn,
.newsfeed-v2-stream .post .reaction-btn {
  border-radius: 12px;
}

@keyframes nf2-rise {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes nf2-fade {
  from { opacity: .4; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes nf2-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.nf2-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: rgba(17, 24, 39, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  backdrop-filter: blur(10px) saturate(1.08);
  -webkit-backdrop-filter: blur(10px) saturate(1.08);
}

body.newsfeed-v2-active.nf2-modal-open {
  overflow: hidden !important;
}

body.nf2-publisher-modal-open {
  overflow: hidden !important;
}

.nf2-modal-window {
  width: min(720px, calc(100vw - 28px));
  max-height: min(92dvh, calc(100dvh - 28px));
  overflow: auto;
  color: #172033;
  background: #fffaf4;
  border-radius: 22px;
  border: 1px solid rgba(233, 215, 195, 0.95);
  box-shadow: 0 28px 80px rgba(41, 30, 21, 0.28);
  position: relative;
}

.nf2-modal-window::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 0%, rgba(248, 181, 91, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 250, 244, 0.35) 52%, transparent);
}

.nf2-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(229, 216, 202, 0.9);
  background: rgba(255, 250, 244, 0.96);
  color: #172033;
  position: relative;
  z-index: 1;
}

.nf2-modal-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.nf2-modal-title-wrap strong {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
}

.nf2-modal-kicker {
  width: max-content;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff0dc;
  color: #9a5a1f;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
}

.nf2-modal-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.nf2-modal-post-btn {
  min-height: 40px;
  min-width: 76px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #151a24;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(21, 26, 36, 0.18);
  cursor: pointer;
}

.nf2-modal-post-btn:hover,
.nf2-modal-post-btn:focus {
  background: #242b38;
}

.nf2-modal-post-btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

.nf2-modal-post-btn.is-loading span::after {
  content: "...";
}

.nf2-modal-close-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border: 0;
  border-radius: 999px;
  background-color: #fff2e2;
  color: #7c4a21;
  font-size: 0;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
}

.nf2-modal-close-btn::before,
.nf2-modal-close-btn::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.nf2-modal-close-btn::before {
  transform: rotate(45deg);
}

.nf2-modal-close-btn::after {
  transform: rotate(-45deg);
}

.nf2-modal-close-btn:hover,
.nf2-modal-close-btn:focus {
  background: #ffe4c2;
  color: #3f2a18;
}

/* Loading / error states inside Vue publisher modal */
.nf2-modal-loading {
  padding: 26px 22px;
  color: #7a6650;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.nf2-modal-error {
  padding: 12px 22px;
  color: #991b1b;
  background: #fff1f1;
  border-bottom: 1px solid #fecaca;
  font-size: 13px;
  position: relative;
  z-index: 1;
}

/* Hide duplicate close btn rendered by _publisher.tpl _modal_mode;
   the Vue modal header already provides a close button. */
.nf2-publisher-modal-root .js_close-publisher-modal {
  display: none !important;
}

/* Hide the publisher-overlay inside the Vue modal */
.nf2-publisher-modal-root .publisher-overlay {
  display: none !important;
}

.nf2-modal-mount {
  padding: 18px 20px 20px;
  position: relative;
  z-index: 1;
}

.nf2-modal-mount #publisher-wapper {
  margin: 0;
}

@media (max-width: 767px) {
  .nf2-modal-backdrop {
    inset: 0 !important;
    align-items: center;
    justify-content: center;
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  }

  .nf2-modal-window {
    width: min(720px, calc(100vw - 20px));
    max-height: min(92dvh, calc(100dvh - 20px));
    border-radius: 16px;
  }

  .nf2-modal-mount {
    padding: 6px;
  }

  .nf2-modal-close-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 26px;
  }

  .newsfeed-v2-stream .post-actions {
    gap: 0;
  }

  .newsfeed-v2-stream .post-actions > .valign {
    width: 100%;
    justify-content: center;
    gap: 6px;
  }

  .newsfeed-v2-stream .post-actions > .valign:last-child {
    margin-left: 0;
  }

  .newsfeed-v2-stream .post-actions .action-btn,
  .newsfeed-v2-stream .post-actions .reaction-btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    height: 40px;
    justify-content: center;
    font-size: 14px;
    gap: 6px;
    padding: 0 6px;
  }

  .newsfeed-v2-stream .post-actions .action-btn span,
  .newsfeed-v2-stream .post-actions .reaction-btn-name,
  .newsfeed-v2-stream .post-actions .action-btn.js_comment span {
    display: inline-block !important;
  }

  .newsfeed-v2-stream .post-meta .title {
    align-items: flex-start;
    row-gap: 3px;
  }

  .newsfeed-v2-stream .post-meta .title .post-title {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    line-height: 1.25;
    color: #64748b;
    font-weight: 600;
  }

  .newsfeed-v2-stream .post-meta .title .post-title .post-author {
    color: #0f172a;
    font-weight: 700;
  }

  .newsfeed-v2-stream .post-meta .title .post-title .fa-caret-right {
    margin-left: 2px !important;
    margin-right: 2px !important;
    opacity: 0.65;
  }

  .newsfeed-v2-stream .post-meta .title .post-title .badge.rounded-pill {
    font-size: 11px;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 999px;
  }

  .newsfeed-v2-stream .post-time {
    margin-top: 6px;
    gap: 4px;
  }

  .newsfeed-v2-stream .post-time .post-sub-item {
    font-size: 12px;
    color: #64748b;
  }
}

/* Vue modal owns the frame; flatten legacy publisher chrome when embedded */
.nf2-publisher-embedded .publisher-overlay,
.nf2-publisher-embedded .publisher-close {
  display: none !important;
}

.nf2-publisher-embedded .publisher {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.nf2-publisher-embedded .publisher-message,
.nf2-publisher-embedded .publisher-tools-tabs,
.nf2-publisher-embedded .publisher-footer,
.nf2-publisher-embedded .publisher-meta,
.nf2-publisher-embedded .publisher-attachments {
  border-left: 0 !important;
  border-right: 0 !important;
}

.nf2-publisher-embedded .publisher-message {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-height: 132px;
  padding: 18px !important;
  border: 1px solid rgba(225, 210, 194, 0.95) !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.nf2-publisher-embedded .publisher-avatar {
  width: 44px !important;
  height: 44px !important;
  border-radius: 999px !important;
  object-fit: cover;
  box-shadow: 0 0 0 3px #fff4e6;
}

.nf2-publisher-embedded .colored-text-wrapper {
  min-width: 0;
}

.nf2-publisher-embedded textarea.js_publisher-scraper {
  min-height: 92px !important;
  width: 100% !important;
  padding: 4px 0 !important;
  border: 0 !important;
  outline: 0 !important;
  resize: none !important;
  background: transparent !important;
  color: #1f2937 !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
}

.nf2-publisher-embedded textarea.js_publisher-scraper::placeholder {
  color: #9a8978;
}

.nf2-publisher-embedded .publisher-emojis {
  position: static !important;
  align-self: start;
  color: #a15c20;
}

.nf2-publisher-embedded .publisher-tools-tabs {
  margin-top: 14px;
}

.nf2-publisher-embedded .publisher-tools-tabs ul.row {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 0 !important;
}

.nf2-publisher-embedded .publisher-tools-tabs li[class*="col-"] {
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
}

.nf2-publisher-embedded .publisher-tools-tab {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  min-height: 42px;
  padding: 9px 12px !important;
  border: 1px solid #eadccf !important;
  border-radius: 12px !important;
  background: #fffdf9 !important;
  color: #2f3747 !important;
  font-weight: 700;
  font-size: 12px !important;
  line-height: 1.25 !important;
  white-space: normal !important;
}

.nf2-publisher-embedded .publisher-tools-tab .svg-container,
.nf2-publisher-embedded .publisher-tools-tab .js_x-uploader {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
}

.nf2-publisher-embedded .publisher-meta {
  margin-top: 12px;
  border: 1px solid #eadccf !important;
  border-radius: 12px !important;
  background: #fffdf9 !important;
}

/* Warm Theme create-post modal parity for the Vue publisher island */
.nf2-publisher-modal-root .nf2-modal-backdrop,
.nf2-modal-backdrop.nf2-publisher-modal-root {
  background: rgba(12, 18, 28, 0.72);
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  overscroll-behavior: contain;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nf2-publisher-modal-root .nf2-modal-window {
  width: min(860px, calc(100vw - 28px));
  height: auto;
  max-height: min(92dvh, calc(100dvh - 28px));
  position: relative;
  top: auto;
  left: auto;
  margin: 0 auto;
  transform: none;
  overflow: hidden;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(210, 224, 240, 0.85);
  box-shadow: 0 26px 64px rgba(9, 23, 46, 0.34);
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  align-self: center;
  min-height: 0;
  color: #10213a;
  overscroll-behavior: contain;
}

.nf2-publisher-modal-root .nf2-modal-window::before,
.nf2-publisher-modal-root .nf2-modal-kicker {
  display: none !important;
}

.nf2-publisher-modal-root .nf2-modal-head {
  gap: 12px;
  min-height: 58px;
  padding: 10px 14px;
  border-bottom: 1px solid #e6edf7;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 5;
  flex: 0 0 auto;
}

.nf2-publisher-modal-root .nf2-modal-head strong {
  font-size: 16px;
  line-height: 1.2;
  color: #10213a;
  font-weight: 800;
}

.nf2-publisher-modal-root .nf2-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nf2-publisher-modal-root .nf2-modal-head-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #e6edf7;
}

/* Upload dropdown in modal tools-tabs */
.nf2-publisher-modal-root .js_publisher-upload-toggle {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.nf2-publisher-modal-root .publisher-upload-caret {
  font-size: 11px;
  opacity: 0.7;
  transition: transform 0.18s ease;
}

.nf2-publisher-modal-root .js_publisher-upload-toggle:has(.publisher-upload-options.is-open) .publisher-upload-caret {
  transform: rotate(180deg);
}

.nf2-publisher-modal-root .publisher-upload-options {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 160px;
  background: #fff;
  border: 1px solid #e6edf7;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  z-index: 200;
  padding: 6px 0;
  white-space: nowrap;
}

.nf2-publisher-modal-root .publisher-upload-options.is-open {
  display: block;
}

.nf2-publisher-modal-root .publisher-upload-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #2d3748;
  cursor: pointer;
  transition: background 0.12s;
}

.nf2-publisher-modal-root .publisher-upload-option:hover {
  background: #f4f7fb;
  color: #087ee8;
}

.nf2-publisher-modal-root .publisher-upload-option .action-icon {
  flex-shrink: 0;
}

.nf2-publisher-modal-root .publisher-upload-option span.js_x-uploader,
.nf2-publisher-modal-root .publisher-upload-option .js_nf2-publisher-upload-form {
  display: contents;
}

.nf2-publisher-modal-root .js_nf2-publisher-upload-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nf2-publisher-modal-root .nf2-modal-post-btn {
  min-width: 104px;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  background: #087ee8;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 24px -16px rgba(8, 126, 232, 0.9);
}

.nf2-publisher-modal-root .nf2-modal-post-btn:hover,
.nf2-publisher-modal-root .nf2-modal-post-btn:focus {
  background: #076fcc;
  color: #fff;
}

.nf2-publisher-modal-root .nf2-modal-close-btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background-color: #f1f5f9;
  color: #0f172a;
}

.nf2-publisher-modal-root .nf2-modal-close-btn:hover,
.nf2-publisher-modal-root .nf2-modal-close-btn:focus {
  background: #e2e8f0;
  color: #020617;
}

.nf2-publisher-modal-root .nf2-modal-mount {
  padding: 10px;
  overflow: auto;
  min-height: 0;
  flex: 1 1 auto;
  background: #fff;
}

.nf2-publisher-modal-root .daytime_message,
.nf2-publisher-embedded .daytime_message {
  display: none !important;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* publisher-slider becomes a flex column so CSS order controls child sequence without DOM moves */
.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-slider {
  display: flex !important;
  flex-direction: column !important;
  flex: 0 0 auto !important;
  min-height: 0 !important;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher > .publisher-slider,
.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-tools-tabs,
.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-emojis {
  display: block !important;
}

/* Flex order for slider children: actions → scraper/attachments → meta panels → textarea → footer */
.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-slider > .publisher-tools-tabs {
  order: 1;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-slider > .publisher-scraper,
.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-slider > .publisher-attachments {
  order: 5;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-slider > .publisher-meta,
.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-slider > .publisher-custom-thumbnail {
  order: 8;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-slider > .publisher-footer {
  order: 100;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher > .publisher-slider:first-of-type {
  order: 1;
  position: static !important;
  background: #fff !important;
  box-shadow: none !important;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-message {
  order: 2;
  display: block !important;
  position: relative !important;
  min-height: 138px !important;
  padding: 14px 14px 14px 68px !important;
  border: 0 !important;
  border-top: 1px solid #e6edf7 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher > .publisher-slider:last-of-type {
  order: 3;
}

/* Force create-post action icons to black in the Vue publisher modal */
.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-tools-tab .main-icon,
.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-tools-tab .main-icon *,
.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-tools-tab .action-icon,
.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-tools-tab .action-icon *,
.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-tools-tab svg,
.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-tools-tab svg * {
  color: #111 !important;
  fill: #111 !important;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-footer.valign {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  min-height: 56px !important;
  padding: 8px 12px !important;
  background: #fff !important;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-avatar {
  position: absolute !important;
  left: 14px !important;
  top: 14px !important;
  width: 40px !important;
  height: 40px !important;
  padding: 2px !important;
  border: 1px solid #efefef !important;
  border-radius: 50% !important;
  object-fit: cover;
  box-shadow: none !important;
}

/* publisher-message moved inside publisher-slider: no avatar offset, full-width textarea, after meta panels */
.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-slider > .publisher-message {
  order: 10 !important;
  padding: 14px !important;
  min-height: 90px !important;
  border-top: 1px solid #e6edf7 !important;
  border-bottom: 1px solid #e6edf7 !important;
}

/* Feelings dropdown: above the textarea when open */
.nf2-publisher-modal-root #feelings-menu {
  z-index: 150;
  position: relative;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-slider .publisher-avatar {
  display: none !important;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-slider .publisher-message:not(.colored) .colored-text-wrapper {
  min-height: 80px !important;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-slider .publisher-message:not(.colored) .colored-text-wrapper textarea,
.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-slider .publisher-message:not(.colored) .colored-text-wrapper textarea.js_publisher-scraper {
  min-height: 80px !important;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-message:not(.colored) .colored-text-wrapper,
body.publisher-focus .nf2-publisher-modal-root .nf2-publisher-embedded .publisher-message:not(.colored) .colored-text-wrapper {
  display: flex !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 112px !important;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-message:not(.colored) .colored-text-wrapper .sovf-richtext,
body.publisher-focus .nf2-publisher-modal-root .nf2-publisher-embedded .publisher-message:not(.colored) .colored-text-wrapper .sovf-richtext {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 100% !important;
  align-self: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-message:not(.colored) .colored-text-wrapper textarea,
body.publisher-focus .nf2-publisher-modal-root .nf2-publisher-embedded .publisher-message:not(.colored) .colored-text-wrapper textarea,
.nf2-publisher-modal-root .nf2-publisher-embedded textarea.js_publisher-scraper {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 112px !important;
  max-height: 190px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #10213a !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  text-align: left !important;
  resize: none !important;
  outline: none !important;
}

/* TipTap source-mode textarea: the broad textarea rule above accidentally reveals it —
   hide it here with higher specificity, but re-show in source mode. */
.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-message:not(.colored) .colored-text-wrapper .sovf-richtext .sovf-richtext__source,
body.publisher-focus .nf2-publisher-modal-root .nf2-publisher-embedded .publisher-message:not(.colored) .colored-text-wrapper .sovf-richtext .sovf-richtext__source {
  display: none !important;
  min-height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-message:not(.colored) .colored-text-wrapper .sovf-richtext.is-source-mode .sovf-richtext__source,
body.publisher-focus .nf2-publisher-modal-root .nf2-publisher-embedded .publisher-message:not(.colored) .colored-text-wrapper .sovf-richtext.is-source-mode .sovf-richtext__source {
  display: block !important;
  min-height: 220px !important;
}

/* rich text editor (TipTap) inside composer */
.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-message:not(.colored) .colored-text-wrapper textarea.js_publisher-scraper.tox-target,
body.publisher-focus .nf2-publisher-modal-root .nf2-publisher-embedded .publisher-message:not(.colored) .colored-text-wrapper textarea.js_publisher-scraper.tox-target,
.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-message:not(.colored) .colored-text-wrapper textarea.js_publisher-scraper[aria-hidden="true"],
body.publisher-focus .nf2-publisher-modal-root .nf2-publisher-embedded .publisher-message:not(.colored) .colored-text-wrapper textarea.js_publisher-scraper[aria-hidden="true"],
.nf2-publisher-modal-root .nf2-publisher-embedded .publisher.is-richtext-mode .publisher-message:not(.colored) .colored-text-wrapper textarea.js_publisher-scraper,
body.publisher-focus .nf2-publisher-modal-root .nf2-publisher-embedded .publisher.is-richtext-mode .publisher-message:not(.colored) .colored-text-wrapper textarea.js_publisher-scraper {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-message:not(.colored) .colored-text-wrapper .sovf-richtext,
body.publisher-focus .nf2-publisher-modal-root .nf2-publisher-embedded .publisher-message:not(.colored) .colored-text-wrapper .sovf-richtext {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
  align-self: stretch !important;
  min-height: 220px !important;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-message:not(.colored) .colored-text-wrapper .sovf-richtext__content,
body.publisher-focus .nf2-publisher-modal-root .nf2-publisher-embedded .publisher-message:not(.colored) .colored-text-wrapper .sovf-richtext__content {
  min-height: 220px !important;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-emojis {
  position: absolute !important;
  right: 14px !important;
  bottom: 14px !important;
  color: #5e72e4;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-tools-tabs {
  margin: 0 15px !important;
  padding-top: 15px !important;
  border-top: 1px solid #f4f4f4 !important;
  border-bottom: 1px solid #f4f4f4 !important;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-tools-tabs ul.row {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
  gap: 10px !important;
  margin: 0 !important;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-tools-tabs li[class*="col-"] {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-tools-tab {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  min-height: 42px !important;
  margin-bottom: 0 !important;
  padding: 9px 12px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: #f7f7f7 !important;
  color: #555 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  box-shadow: none !important;
  white-space: normal !important;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-tools-tab:hover {
  background: #f3f3f3 !important;
  color: var(--link-color) !important;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-meta {
  margin: 12px 15px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.nf2-vue-publisher {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  flex-direction: column;
  background: #fff;
}

.nf2-vue-rich-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 28px;
  border-bottom: 1px solid #e6edf7;
}

.nf2-vue-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #1f2937;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.nf2-vue-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nf2-vue-switch span {
  position: relative;
  width: 30px;
  height: 16px;
  border-radius: 999px;
  background: #e5e7eb;
  box-shadow: inset 0 0 0 1px #d1d5db;
}

.nf2-vue-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.24);
  transition: transform 0.16s ease;
}

.nf2-vue-switch input:checked + span {
  background: #087ee8;
  box-shadow: none;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-hero {
  margin: 6px 12px 14px;
  padding: 18px 18px 16px;
  border: 1px solid #d7e4f3;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(8, 126, 232, 0.12), transparent 42%),
    linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-message--reel-wizard {
  padding-top: 6px !important;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 6px 12px 14px;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-stepper__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid #dce7f4;
  border-radius: 18px;
  background: #fff;
  color: #30455f;
  text-align: left;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-stepper__item.is-active {
  border-color: #76a8ff;
  background: linear-gradient(180deg, #f5f9ff 0%, #e8f2ff 100%);
  box-shadow: 0 16px 30px -24px rgba(8, 126, 232, 0.9);
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-stepper__item.is-complete {
  border-color: #cde7d8;
  background: linear-gradient(180deg, #f7fffb 0%, #eefbf5 100%);
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-stepper__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: #e8f0fb;
  color: #2454b7;
  font-size: 13px;
  font-weight: 800;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-stepper__item.is-active .publisher-reel-stepper__index {
  background: #0a84ff;
  color: #fff;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-stepper__item.is-complete .publisher-reel-stepper__index {
  background: #17a772;
  color: #fff;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-stepper__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-stepper__copy strong {
  color: #10213a;
  font-size: 13px;
  font-weight: 800;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-stepper__copy em {
  color: #6a7d93;
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-hero__copy strong {
  display: block;
  margin-bottom: 6px;
  color: #10213a;
  font-size: 20px;
  line-height: 1.2;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-hero__copy p {
  margin: 0;
  color: #56708f;
  font-size: 14px;
  line-height: 1.6;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(8, 126, 232, 0.1);
  color: #2d67d6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-contexts {
  margin-top: 18px;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-contexts__label,
.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-hashtags-shell__label {
  display: block;
  margin-bottom: 10px;
  color: #223653;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-contexts__targets {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-contexts__choice {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 88px;
  min-height: 96px;
  border: 1px solid #d7dfeb;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: #0f172a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-contexts__choice.is-active {
  border-color: #76a8ff;
  background: linear-gradient(180deg, #f5f9ff 0%, #e8f2ff 100%);
  box-shadow: 0 14px 34px -24px rgba(8, 126, 232, 0.75);
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-contexts__choice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.06);
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-contexts__choice-label {
  font-size: 14px;
  font-weight: 700;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-contexts__field {
  margin-top: 16px;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-contexts__field-label {
  display: block;
  margin-bottom: 8px;
  color: #223653;
  font-size: 14px;
  font-weight: 700;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-contexts__select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d7dfeb;
  border-radius: 14px;
  background: #fff;
  color: #10213a;
  font-size: 14px;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-message {
  min-height: 0 !important;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher[data-reel-only-mode="1"] .colored-text-wrapper,
.nf2-publisher-modal-root .nf2-publisher-embedded .publisher[data-reel-only-mode="1"] textarea.js_publisher-scraper,
body.publisher-focus .nf2-publisher-modal-root .nf2-publisher-embedded .publisher[data-reel-only-mode="1"] .colored-text-wrapper,
body.publisher-focus .nf2-publisher-modal-root .nf2-publisher-embedded .publisher[data-reel-only-mode="1"] textarea.js_publisher-scraper {
  display: none !important;
}

.nf2-publisher-modal-root .nf2-publisher-embedded [data-reel-step-panel].x-hidden {
  display: none !important;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-step-card {
  margin: 0 12px 18px;
  padding: 18px;
  border: 1px solid #dce7f4;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 16px 36px -30px rgba(15, 23, 42, 0.4);
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-step-card__head {
  margin-bottom: 14px;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-step-card__eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: #2d67d6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-step-card__head strong {
  display: block;
  color: #10213a;
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 6px;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-step-card__head p {
  margin: 0;
  color: #60748b;
  font-size: 14px;
  line-height: 1.6;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-step-card--final {
  margin-bottom: 14px;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-review-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f7fbff;
  border: 1px solid #dce7f4;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-review-card__label {
  display: block;
  margin-bottom: 8px;
  color: #70849c;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-review-card__value {
  color: #10213a;
  font-size: 18px;
  font-weight: 800;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-audience-picker {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #dce7f4;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-audience-picker__label {
  color: #10213a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-audience-picker__options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-audience-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 96px;
  padding: 16px;
  border: 1px solid #d7dfeb;
  border-radius: 18px;
  background: #fff;
  color: #10213a;
  text-align: left;
  box-shadow: 0 8px 22px -26px rgba(15, 23, 42, 0.6);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-audience-option:hover,
.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-audience-option:focus {
  transform: translateY(-1px);
  border-color: #9bbcff;
  box-shadow: 0 16px 34px -28px rgba(8, 126, 232, 0.85);
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-audience-option.is-active {
  border-color: #76a8ff;
  background: linear-gradient(180deg, #f5f9ff 0%, #e8f2ff 100%);
  box-shadow: 0 16px 34px -28px rgba(8, 126, 232, 0.85);
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-audience-option i {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #2454b7;
  font-size: 18px;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-audience-option span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-audience-option strong {
  color: #10213a;
  font-size: 15px;
  font-weight: 800;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-audience-option em {
  color: #60748b;
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-hashtags-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding-right: 34px;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-hashtags-shell .tagify {
  border: 1px solid #d9e2ef;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  min-height: 62px;
  padding: 10px 12px;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-hashtags-shell .tagify__input {
  margin: 4px 0 0;
  color: #10213a;
  font-size: 15px;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-hashtags-shell .tagify__tag {
  margin: 4px 6px 0 0;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-hashtags-shell .tagify__tag > div {
  border-radius: 999px;
  background: linear-gradient(180deg, #0a84ff 0%, #0867d5 100%);
  color: #fff;
  font-weight: 700;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-hashtags-shell__hint {
  color: #5f7289;
  font-size: 13px;
  line-height: 1.5;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-hashtags-shell__boost {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dde8f7;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-hashtags-shell__boost--compact {
  padding: 0;
  border: 0;
  background: transparent;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-hashtags-shell__boost-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-hashtags-shell__boost-copy strong {
  color: #10213a;
  font-size: 14px;
  font-weight: 800;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-hashtags-shell__boost-copy span {
  color: #61748d;
  font-size: 13px;
  line-height: 1.45;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-hashtags-shell__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-hashtag-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid #cfdcf1;
  border-radius: 999px;
  background: #fff;
  color: #2454b7;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-hashtag-chip:hover,
.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-hashtag-chip:focus {
  transform: translateY(-1px);
  border-color: #79a7ff;
  box-shadow: 0 12px 24px -20px rgba(8, 126, 232, 0.9);
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-hashtag-chip.is-active {
  border-color: #0a84ff;
  background: linear-gradient(180deg, #0a84ff 0%, #0867d5 100%);
  color: #fff;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-caption-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  color: #64748b;
  font-size: 13px;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-caption-note__counter {
  font-weight: 700;
  color: #10213a;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-caption-note__counter.is-near-limit,
.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-caption-note__counter.is-at-limit {
  color: #2454b7;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-upload-feedback {
  margin-top: 12px;
  border-radius: 16px;
  font-weight: 700;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-wizard-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 0 12px 18px;
  padding: 14px 16px;
  border: 1px solid #dce7f4;
  border-radius: 20px;
  background: #f9fbff;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-wizard-actions__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 4px;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-wizard-actions__copy strong {
  color: #10213a;
  font-size: 15px;
  font-weight: 800;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-wizard-actions__copy span {
  color: #60748b;
  font-size: 13px;
  line-height: 1.45;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-wizard-actions__button {
  min-width: 102px;
  border-radius: 999px;
}

.nf2-publisher-modal-root .nf2-modal-post-btn.is-wizard-next {
  background: linear-gradient(180deg, #0a84ff 0%, #0867d5 100%);
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-audience-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2454b7;
  font-size: 13px;
  font-weight: 700;
}

.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-footer-buttons--reel .js_publisher-privacy,
.nf2-publisher-modal-root .nf2-publisher-embedded .publisher-footer-buttons--reel .js_publisher-privacy-public {
  display: none !important;
}

@media (max-width: 767px) {
  .nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-contexts__targets {
    gap: 10px;
  }

  .nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-stepper {
    grid-template-columns: 1fr;
  }

  .nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-contexts__choice {
    width: calc(33.333% - 7px);
    min-width: 86px;
  }

  .nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-review-grid,
  .nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-wizard-actions {
    grid-template-columns: 1fr;
  }

  .nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-caption-note {
    flex-direction: column;
    align-items: flex-start;
  }

  .nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-audience-picker__options {
    grid-template-columns: 1fr;
  }

  .nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-audience-option {
    min-height: 0;
  }
}

.nf2-vue-switch input:checked + span::after {
  transform: translateX(14px);
}

.nf2-vue-switch b {
  font-weight: 500;
}

.nf2-vue-composer-main {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  min-height: 160px;
  padding: 18px 28px 22px;
  border-bottom: 1px solid #e6edf7;
}

.nf2-vue-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}

.nf2-vue-avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  background: #f1f5f9;
}

.nf2-vue-composer-main textarea {
  width: 100%;
  min-height: 132px;
  padding: 8px 0;
  border: 0;
  outline: 0;
  resize: none;
  color: #111827;
  background: transparent;
  font-size: 16px;
  line-height: 1.55;
}

.nf2-vue-composer-main textarea::placeholder {
  color: #111827;
  opacity: 1;
  font-weight: 700;
}

.nf2-vue-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 6px 28px;
  border-bottom: 1px solid #e6edf7;
  background: #f8fafc;
}

.nf2-vue-privacy,
.nf2-vue-inline-actions button {
  border: 0;
  background: transparent;
  color: #111827;
  cursor: pointer;
}

.nf2-vue-privacy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #dbe3ee;
  font-size: 13px;
  font-weight: 700;
}

.nf2-vue-inline-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nf2-vue-inline-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 18px;
}

.nf2-vue-inline-actions button:hover {
  background: #e8eef6;
}

.nf2-vue-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 28px;
}

.nf2-vue-tool {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 78px;
  padding: 10px;
  border: 1px solid #dfe8f5;
  border-radius: 10px;
  background: #f8fbff;
  color: #203047;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.nf2-vue-tool i {
  color: #087ee8;
  font-size: 22px;
}

.nf2-vue-tool:hover,
.nf2-vue-tool.is-active {
  background: #edf6ff;
  border-color: #9dccf8;
  color: #075aa0;
}

.nf2-vue-options {
  margin: 0 28px 22px;
  border-top: 1px solid #e6edf7;
}

.nf2-vue-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  margin: 0;
  border-bottom: 1px solid #e6edf7;
  cursor: pointer;
}

.nf2-vue-option span {
  display: grid;
  gap: 3px;
}

.nf2-vue-option strong {
  color: #1f2937;
  font-size: 15px;
  line-height: 1.2;
}

.nf2-vue-option small {
  color: #75859c;
  font-size: 13px;
}

.nf2-vue-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nf2-vue-option i {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 30px;
  border-radius: 999px;
  background: #e5e7eb;
}

.nf2-vue-option i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.18);
  transition: transform 0.16s ease;
}

.nf2-vue-option input:checked + i {
  background: #087ee8;
}

.nf2-vue-option input:checked + i::after {
  transform: translateX(18px);
}

.nf2-publisher-legacy-backing {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.nf2-publisher-legacy-backing input[type="file"] {
  pointer-events: auto !important;
}

@media (max-width: 767px) {
  .nf2-vue-rich-row,
  .nf2-vue-composer-main,
  .nf2-vue-toolbar,
  .nf2-vue-tool-grid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nf2-vue-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nf2-vue-options {
    margin-left: 16px;
    margin-right: 16px;
  }
}

@media (max-width: 767px) {
  .nf2-modal-backdrop.nf2-publisher-modal-root {
    align-items: center;
    padding:
      max(8px, env(safe-area-inset-top))
      8px
      max(8px, env(safe-area-inset-bottom))
      8px;
  }

  .nf2-publisher-modal-root .nf2-modal-window {
    width: min(720px, calc(100vw - 20px));
    height: auto;
    max-height: min(94dvh, calc(100dvh - 16px));
    border-radius: 16px;
    top: auto;
    left: auto;
    margin: 0 auto;
    transform: none;
    align-self: center;
  }

  .nf2-publisher-modal-root .nf2-modal-head {
    min-height: 56px;
    padding: 8px 10px 8px 14px;
  }

  .nf2-publisher-modal-root .nf2-vue-publisher {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 0 12px;
  }

  .nf2-publisher-modal-root .nf2-modal-post-btn {
    min-width: 86px;
    min-height: 40px;
    padding: 0 16px;
  }

  .nf2-publisher-embedded .publisher-tools-tabs ul.row,
  .nf2-publisher-modal-root .nf2-publisher-embedded .publisher-tools-tabs ul.row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .nf2-publisher-modal-root .nf2-publisher-embedded .publisher-tools-tabs li[class*="col-"] {
    flex-basis: auto !important;
    width: auto !important;
    max-width: none !important;
  }

  .nf2-publisher-embedded .publisher-tools-tab,
  .nf2-publisher-modal-root .nf2-publisher-embedded .publisher-tools-tab {
    min-height: 40px !important;
    padding: 8px 10px !important;
    font-size: 11.5px !important;
  }

  .nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-stepper {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(84px, 1fr);
    grid-template-columns: none;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 8px 4px;
    margin: 0 0 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-stepper::-webkit-scrollbar {
    display: none;
  }

  .nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-stepper__item {
    min-height: 0;
    min-width: 84px;
    padding: 8px 10px;
    border-radius: 16px;
    gap: 6px;
  }

  .nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-stepper__copy strong {
    font-size: 12px;
    line-height: 1.1;
  }

  .nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-stepper__copy em {
    display: none;
  }

  .nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-stepper__copy {
    gap: 0;
  }

  .nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-stepper__index {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-hero,
  .nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-step-card,
  .nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-wizard-actions {
    margin-left: 8px;
    margin-right: 8px;
  }

  .nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-hero,
  .nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-step-card {
    padding: 14px;
    border-radius: 18px;
  }

  .nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-step-card__head strong,
  .nf2-publisher-modal-root .nf2-publisher-embedded .publisher-reel-hero__copy strong {
    font-size: 18px;
  }
}

/* Vue modal already provides the primary submit action in the header */
.nf2-modal-mount .publisher-footer .publisher-footer-options,
.nf2-publisher-embedded .publisher-footer .js_publisher-btn {
  display: none !important;
}

/* ------------------------------------------------------------------
   Legacy sfModal: hide by default (Bootstrap CSS not loaded on this theme)
   Bootstrap normally provides display:none; we replicate it here so the
   modal is invisible until sfModal('show') sets display:block inline.
   ------------------------------------------------------------------ */
#modal {
  display: none;
}

/* ------------------------------------------------------------------
   Legacy create-post modal polish (all entry points, all devices)
   ------------------------------------------------------------------ */
#modal.modal-publisher {
  padding: 12px !important;
}

#modal.modal-publisher .modal-dialog {
  width: min(860px, calc(100vw - 24px)) !important;
  max-width: 860px !important;
  max-height: min(92dvh, calc(100dvh - 24px)) !important;
  margin: auto !important;
}

#modal.modal-publisher .modal-content {
  border-radius: 20px !important;
  overflow: hidden !important;
  border: 1px solid rgba(210, 224, 240, 0.9) !important;
  box-shadow: 0 28px 64px rgba(9, 23, 46, 0.34) !important;
}

#modal.modal-publisher .modal-body,
#modal.modal-publisher #publisher-wapper-modal,
#modal.modal-publisher #publisher-wapper-modal .publisher {
  padding: 0 !important;
  margin: 0 !important;
  overflow-x: hidden !important;
}

#modal.modal-publisher #publisher-wapper-modal .publisher {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#modal.modal-publisher #publisher-wapper-modal .publisher-close .js_close-publisher-modal {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 999px !important;
  background: #f1f5f9 !important;
  color: #0f172a !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

@media (max-width: 767px) {
  #modal.modal-publisher {
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)) !important;
  }

  #modal.modal-publisher .modal-dialog {
    width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
  }

  #modal.modal-publisher .modal-content {
    border-radius: 16px !important;
  }
}

/* ------------------------------------------------------------------
   Publisher reel modal – proper viewport centering & reel stepper
   for the legacy #modal path (when nf2PublisherModalActive is false).
   Uses body.sovfhub-next-theme prefix to beat the (1,2,1) specificity
   of the base _head.css.tpl #modal rules.
   ------------------------------------------------------------------ */

/* Make the shown modal a proper flex centering overlay */
body.sovfhub-next-theme #modal.modal-publisher.show {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden auto !important;
}

/* Dialog: natural size, not min-height:100dvh; inherit publisher dimensions */
body.sovfhub-next-theme #modal.modal-publisher.show .modal-dialog {
  min-height: 0 !important;
  flex: 0 1 auto !important;
  width: min(860px, calc(100vw - 24px)) !important;
  max-width: 860px !important;
  max-height: min(92dvh, calc(100dvh - 24px)) !important;
}

body.sovfhub-next-theme #modal.modal-publisher .modal-content {
  max-height: min(92dvh, calc(100dvh - 24px)) !important;
  overflow-y: auto !important;
}

/* ── Reel stepper layout (desktop grid) ── */
body.sovfhub-next-theme #modal.modal-publisher .publisher-reel-stepper {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 0 0 14px !important;
  overflow: hidden !important;
}

body.sovfhub-next-theme #modal.modal-publisher .publisher-reel-stepper__item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 0 !important;
  padding: 12px 12px 11px !important;
  border: 1px solid #dce7f4 !important;
  border-radius: 16px !important;
  background: #fff !important;
  color: #30455f !important;
  text-align: left !important;
  box-sizing: border-box !important;
}

body.sovfhub-next-theme #modal.modal-publisher .publisher-reel-stepper__item.is-active {
  border-color: #76a8ff !important;
  background: linear-gradient(180deg, #f5f9ff 0%, #e8f2ff 100%) !important;
}

body.sovfhub-next-theme #modal.modal-publisher .publisher-reel-stepper__item.is-complete {
  border-color: #cde7d8 !important;
  background: linear-gradient(180deg, #f7fffb 0%, #eefbf5 100%) !important;
}

body.sovfhub-next-theme #modal.modal-publisher .publisher-reel-stepper__index {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 50% !important;
  background: #e8eef6 !important;
  color: #546e8a !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  flex-shrink: 0 !important;
}

body.sovfhub-next-theme #modal.modal-publisher .publisher-reel-stepper__item.is-active .publisher-reel-stepper__index {
  background: #0a84ff !important;
  color: #fff !important;
}

body.sovfhub-next-theme #modal.modal-publisher .publisher-reel-stepper__item.is-complete .publisher-reel-stepper__index {
  background: #17a772 !important;
  color: #fff !important;
}

body.sovfhub-next-theme #modal.modal-publisher .publisher-reel-stepper__copy {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

body.sovfhub-next-theme #modal.modal-publisher .publisher-reel-stepper__copy strong {
  color: #10213a !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

body.sovfhub-next-theme #modal.modal-publisher .publisher-reel-stepper__copy em {
  color: #6a7d93 !important;
  font-size: 11px !important;
  font-style: normal !important;
}

/* ── Mobile responsive overrides ── */
@media (max-width: 767px) {
  body.sovfhub-next-theme #modal.modal-publisher {
    padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom)) !important;
  }

  body.sovfhub-next-theme #modal.modal-publisher.show .modal-dialog {
    width: calc(100vw - 16px) !important;
    max-height: calc(100dvh - 16px) !important;
  }

  body.sovfhub-next-theme #modal.modal-publisher .modal-content {
    max-height: calc(100dvh - 16px) !important;
    border-radius: 16px !important;
  }

  /* Horizontally scrollable stepper on small screens */
  body.sovfhub-next-theme #modal.modal-publisher .publisher-reel-stepper {
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(80px, 1fr) !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    padding: 0 4px 4px !important;
    margin: 0 0 8px !important;
  }

  body.sovfhub-next-theme #modal.modal-publisher .publisher-reel-stepper::-webkit-scrollbar {
    display: none !important;
  }

  body.sovfhub-next-theme #modal.modal-publisher .publisher-reel-stepper__item {
    min-width: 80px !important;
    padding: 8px 10px !important;
    border-radius: 14px !important;
    gap: 6px !important;
  }

  body.sovfhub-next-theme #modal.modal-publisher .publisher-reel-stepper__index {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    font-size: 12px !important;
  }

  body.sovfhub-next-theme #modal.modal-publisher .publisher-reel-stepper__copy em {
    display: none !important;
  }
}

/* ------------------------------------------------------------------
   Final compact header sizing (wins over earlier migration overrides)
   ------------------------------------------------------------------ */
body.newsfeed-v2-active,
body.nf2-header-mounted {
  --sovf-fixed-header-offset: 64px;
}

html.nf2-site-shell-pending body,
body.newsfeed-v2-active,
body.nf2-header-mounted {
  padding-top: 8px !important;
}

body.newsfeed-v2-active .main-header,
body.nf2-header-mounted .main-header {
  margin-bottom: 4px !important;
}

body.newsfeed-v2-active .ele_navbar_top,
body.nf2-header-mounted .ele_navbar_top {
  height: var(--sovf-fixed-header-offset) !important;
  min-height: var(--sovf-fixed-header-offset) !important;
}

@media (max-width: 900px) {
  body.newsfeed-v2-active,
  body.nf2-header-mounted {
    --sovf-fixed-header-offset: 46px;
  }

  html.nf2-site-shell-pending body,
  body.newsfeed-v2-active,
  body.nf2-header-mounted {
    padding-top: 8px !important;
  }
}

@media (max-width: 668px) {
  body.newsfeed-v2-active,
  body.nf2-header-mounted {
    --sovf-fixed-header-offset: 46px;
  }

  html.nf2-site-shell-pending body,
  body.newsfeed-v2-active,
  body.nf2-header-mounted {
    padding-top: calc(8px + env(safe-area-inset-top)) !important;
  }

  body.nf2-header-mounted .nf2-site-header-menu .ele_toggle_sidebar,
  body.nf2-header-mounted .nf2-site-header-brand .logo-wrapper {
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 10px !important;
  }

  body.nf2-header-mounted .nf2-site-header-brand .logo-wrapper {
    min-width: 48px !important;
    padding: 0 10px !important;
  }

  body.nf2-header-mounted .nf2-site-header-brand .logo-wrapper img {
    max-height: 24px !important;
    max-width: 32px !important;
  }
}


/* Critical v2 fallback styles (scoped) */
body.newsfeed-v2-active .newsfeed-v2-shell {
  border: 1px solid #d8e3f0;
  border-radius: 16px;
  background: #f7fbff;
  padding: 14px;
  margin-bottom: 14px;
}

body.newsfeed-v2-active .newsfeed-v2-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 10px;
}

body.newsfeed-v2-active .newsfeed-v2-actions {
  display: flex;
  gap: 8px;
}

body.newsfeed-v2-active .newsfeed-v2-mode {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8e3f0;
  border-radius: 999px;
  padding: 7px 14px;
  text-decoration: none;
  color: #10213a;
  background: #fff;
  font-weight: 600;
}

body.newsfeed-v2-active .newsfeed-v2-mode.is-active {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

body.newsfeed-v2-active .nf2-composer {
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid #d8e3f0;
  border-radius: 14px;
  background: #fff;
}

body.newsfeed-v2-active .nf2-composer-box {
  width: 100%;
  border: 1px solid #dce6f4;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fbff;
  color: #10213a;
}

body.newsfeed-v2-active .nf2-composer-avatar {
  background: linear-gradient(135deg, #0f8fe4 0%, #0f68d2 100%);
  box-shadow: 0 4px 10px rgba(15, 121, 219, 0.28);
}

body.newsfeed-v2-active .nf2-composer-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

body.newsfeed-v2-active .nf2-pill {
  border: 1px solid #d8e3f0;
  border-radius: 999px;
  background: #fff;
  color: #10213a;
  padding: 6px 12px;
  font-weight: 600;
}

@media  (max-width: 767px) {
  body.newsfeed-v2-active .newsfeed-v2-actions,
  body.newsfeed-v2-active .nf2-composer-actions,
  body.newsfeed-v2-active .newsfeed-v2-stream .posts-filter {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  body.newsfeed-v2-active .newsfeed-v2-mode,
  body.newsfeed-v2-active .nf2-pill {
    flex: 0 0 auto;
  }
}

/* Sidebar polish for Vue newsfeed mode */
body.newsfeed-v2-active .ele_navbar_top_side {
  border-radius: 18px;
  border: 1px solid #d8e3f0;
  background: #ffffff;
  box-shadow: 0 24px 50px -30px rgba(15, 23, 42, 0.45);
}

body.newsfeed-v2-active .ele_navbar_top_side .sidebar_innr {
  padding: 14px 14px 18px !important;
}

body.newsfeed-v2-active .ele_navbar_top_side_all_heading.js_mobile_menu_accordion {
  margin: 12px 0 8px;
  padding: 10px 8px;
  border-radius: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #344256;
}

body.newsfeed-v2-active .ele_navbar_top_side_all_heading.js_mobile_menu_accordion:hover {
  background: #f5f8fc;
}

body.newsfeed-v2-active .ele_navbar_top_side_all_sec.menu-accordion-body a {
  border: 1px solid #e3ebf5;
  background: #fbfdff;
  border-radius: 12px;
  color: #223047;
  transition: all .18s ease;
}

body.newsfeed-v2-active .ele_navbar_top_side_all_sec.menu-accordion-body a:hover {
  border-color: #cfe0f5;
  background: #f3f8ff;
  transform: translateY(-1px);
}

body.newsfeed-v2-active .ele_navbar_top_side .ele_navbar_profile_quick {
  margin-bottom: 10px;
  padding-bottom: 14px;
}

/* Professional polish pass (scoped to Vue newsfeed only) */
body.newsfeed-v2-active,
body.nf2-site-shell-active {
  --nf2-surface: #ffffff;
  --nf2-surface-soft: #f8fbff;
  --nf2-border: #dbe7f4;
  --nf2-border-strong: #cbdcf0;
  --nf2-text: #1a2840;
  --nf2-muted: #6e7f96;
  --nf2-accent: #0b84f3;
}

body.newsfeed-v2-active .newsfeed-v2-shell {
  background: linear-gradient(180deg, #f9fcff 0%, #f3f8ff 100%);
  border: 1px solid var(--nf2-border);
  border-radius: 18px;
  box-shadow: 0 20px 42px -32px rgba(14, 40, 74, 0.5);
  padding: 16px;
}

body.newsfeed-v2-active .newsfeed-v2-title {
  color: var(--nf2-text);
  letter-spacing: 0.02em;
}

body.newsfeed-v2-active .newsfeed-v2-kicker {
  color: var(--nf2-muted);
  letter-spacing: 0.12em;
}

body.newsfeed-v2-active .newsfeed-v2-mode {
  border: 1px solid var(--nf2-border-strong);
  background: var(--nf2-surface);
  color: var(--nf2-text);
  font-weight: 700;
  box-shadow: 0 6px 14px -12px rgba(15, 33, 60, 0.35);
}

body.newsfeed-v2-active .newsfeed-v2-mode.is-active {
  background: linear-gradient(135deg, #0e8af8 0%, #0a71d4 100%);
  border-color: #0a71d4;
  color: #fff;
}

body.newsfeed-v2-active .nf2-composer {
  border: 1px solid var(--nf2-border);
  border-radius: 16px;
  background: var(--nf2-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body.newsfeed-v2-active .nf2-composer-box {
  border: 1px solid var(--nf2-border);
  background: var(--nf2-surface-soft);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

body.newsfeed-v2-active .nf2-composer-box:hover {
  border-color: #bfd5ee;
  background: #f3f9ff;
  box-shadow: 0 10px 20px -18px rgba(17, 74, 136, 0.5);
}

body.newsfeed-v2-active .nf2-pill {
  border: 1px solid var(--nf2-border);
  background: var(--nf2-surface);
  color: #243651;
  font-weight: 700;
  transition: all .18s ease;
}

body.newsfeed-v2-active .nf2-pill:hover {
  border-color: #bdd4ef;
  background: #f2f8ff;
}

body.nf2-site-shell-active .js_posts_stream > ul > li > .post:not(.ele_post_skel),
body.nf2-site-shell-active .js_posts_stream > .post:not(.ele_post_skel),
body.newsfeed-v2-active .newsfeed-v2-stream .post:not(.ele_post_skel) {
  box-shadow: 0 16px 34px -28px rgba(15, 34, 64, 0.45);
}

body.nf2-site-shell-active .js_posts_stream .post .post-header,
body.newsfeed-v2-active .newsfeed-v2-stream .post .post-header {
  color: var(--nf2-text);
}

body.nf2-site-shell-active .js_posts_stream .post .post-time,
body.nf2-site-shell-active .js_posts_stream .post .post-meta,
body.nf2-site-shell-active .js_posts_stream .post .text-muted,
body.newsfeed-v2-active .newsfeed-v2-stream .post .post-time,
body.newsfeed-v2-active .newsfeed-v2-stream .post .post-meta,
body.newsfeed-v2-active .newsfeed-v2-stream .post .text-muted {
  color: var(--nf2-muted) !important;
}

body.newsfeed-v2-active .ele_navbar_top_side {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

body.newsfeed-v2-active .ele_navbar_top_side .sidebar_innr {
  scrollbar-width: thin;
}

body.newsfeed-v2-active .ele_navbar_top_side .sidebar_innr::-webkit-scrollbar {
  width: 7px;
}

body.newsfeed-v2-active .ele_navbar_top_side .sidebar_innr::-webkit-scrollbar-thumb {
  background: #d2deec;
  border-radius: 99px;
}

body.newsfeed-v2-active .ele_navbar_profile_link {
  border: 1px solid var(--nf2-border);
  border-radius: 12px;
  background: #fbfdff;
  padding: 8px;
}

body.newsfeed-v2-active .ele_navbar_wallet_chip {
  border-radius: 999px;
  background: #eef6ff;
  color: #145aa8;
}

/* Header migration skin (Vue mode only) */
body.newsfeed-v2-active .main-header {
  margin-bottom: 20px;
}

body.newsfeed-v2-active .ele_navbar_top {
  height: 62px;
  background: linear-gradient(90deg, #0767b8 0%, #0b84f3 45%, #0a74d8 100%);
  box-shadow: 0 14px 28px -24px rgba(5, 37, 73, 0.8);
}

body.newsfeed-v2-active .ele_header {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.newsfeed-v2-active .ele_toggle_sidebar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  margin: 0 2px 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #eaf4ff;
  background: rgba(255, 255, 255, 0.12);
}

body.newsfeed-v2-active .main-header .logo-wrapper {
  padding: 0 4px;
}

body.newsfeed-v2-active .main-header .logo-wrapper img {
  max-height: 34px;
}

body.newsfeed-v2-active .main-header .search-wrapper {
  margin: 0 0 0 8px;
}

body.newsfeed-v2-active .main-header .search-wrapper > form {
  margin: 0;
}

body.newsfeed-v2-active .main-header .search-wrapper .form-control {
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1d2d43;
  border: 1px solid rgba(9, 55, 102, 0.2);
}

body.newsfeed-v2-active .main-header .search-wrapper > form svg {
  color: #46678f;
  opacity: 0.9;
}

body.newsfeed-v2-active .ele_navbar_top_right {
  top: 0;
  padding: 10px 14px;
}

body.newsfeed-v2-active .ele_hdr_droptoggle {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f4f9ff;
  background: rgba(255, 255, 255, 0.14);
}

body.newsfeed-v2-active .ele_hdr_droptoggle:before {
  display: none;
}

body.newsfeed-v2-active .ele_header_shadow {
  opacity: 0.35;
}

@media (max-width: 768px) {
  body.newsfeed-v2-active .ele_navbar_top {
    height: 60px;
  }

  body.newsfeed-v2-active .main-header .search-wrapper .form-control {
    height: 40px;
    font-size: 14px;
  }

  body.newsfeed-v2-active .ele_navbar_top_right {
    padding: 0;
  }
}

/* Keep action cluster in header on mobile (disable legacy bottom dock in Vue mode) */
@media (max-width: 668px) {
  body.newsfeed-v2-active .ele_navbar_top_right,
  body.newsfeed-v2-force .ele_navbar_top_right {
    top: 0 !important;
    bottom: auto !important;
    left: auto !important;
    right: 0 !important;
    height: 60px !important;
    width: auto !important;
    border-top: 0 !important;
    background: transparent !important;
    justify-content: flex-end !important;
    padding: 10px 10px !important;
    z-index: 1046 !important;
  }

  body.newsfeed-v2-active .ele_navbar_top_right .hide_botm_menu_home,
  body.newsfeed-v2-force .ele_navbar_top_right .hide_botm_menu_home {
    display: none !important;
  }
}

/* Header step 2: action cluster cleanup */
body.newsfeed-v2-active .ele_navbar_top_right {
  display: flex;
  align-items: center;
  gap: 6px;
}

body.newsfeed-v2-active .ele_navbar_top_right > .dropdown {
  margin: 0;
}

body.newsfeed-v2-active .ele_navbar_top_right > .dropdown .counter {
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  line-height: 18px;
  font-size: 10px;
  border: 2px solid #0b84f3;
}

body.newsfeed-v2-active .ele_hdr_user_droptoggle {
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.14);
}

body.newsfeed-v2-active .ele_hdr_user_droptoggle img {
  width: 38px;
  height: 38px;
  border-radius: 999px;
}

/* Prevent cramped/cut username in upgraded header; keep dropdown avatar clean */
body.newsfeed-v2-active .ele_hdr_user_droptoggle span {
  display: none;
}

@media (min-width: 992px) {
  body.newsfeed-v2-active .main-header .search-wrapper {
    width: min(560px, 52vw);
  }
}

@media (max-width: 991px) {
  body.newsfeed-v2-active .main-header .search-wrapper {
    width: calc(100% - 110px);
    max-width: none;
  }

  body.newsfeed-v2-active .ele_header .logo-wrapper {
    flex: 0 0 auto;
  }
}

@media (max-width: 420px) {
  body.newsfeed-v2-active .ele_hdr_droptoggle,
  body.newsfeed-v2-active .ele_toggle_sidebar,
  body.newsfeed-v2-active .ele_hdr_user_droptoggle img {
    width: 34px;
    height: 34px;
  }

  body.newsfeed-v2-active .main-header .search-wrapper {
    width: calc(100% - 96px);
    margin-left: 6px;
  }

  body.newsfeed-v2-active .main-header .search-wrapper .form-control {
    padding-left: 34px;
  }
}

/* Hard header overrides (active + forced) */
body.newsfeed-v2-active .ele_navbar_top_right .ele_hdr_user_droptoggle span,
body.newsfeed-v2-force .ele_navbar_top_right .ele_hdr_user_droptoggle span {
  display: none !important;
}

body.newsfeed-v2-active .ele_navbar_top_right,
body.newsfeed-v2-force .ele_navbar_top_right {
  gap: 6px !important;
  overflow: hidden !important;
}

body.newsfeed-v2-active .ele_navbar_top_right > .dropdown,
body.newsfeed-v2-force .ele_navbar_top_right > .dropdown {
  margin: 0 !important;
}

body.newsfeed-v2-active .ele_navbar_top_right > .dropdown .counter,
body.newsfeed-v2-force .ele_navbar_top_right > .dropdown .counter {
  top: -2px !important;
  right: -2px !important;
}

body.nf2-header-mounted .ele_navbar_top .ele_header,
body.nf2-header-mounted .ele_navbar_top_right {
  display: none !important;
}

body.nf2-header-mounted .ele_navbar_top .container-fluid {
  display: flex;
  align-items: center;
  height: 100%;
}

.nf2-site-header-shell {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  gap: 10px;
}

.nf2-site-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.nf2-site-header-search {
  flex: 1 1 auto;
  min-width: 0;
}

.nf2-site-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.nf2-site-header-actions > * {
  margin: 0 !important;
}

body.static-page-vue-active {
  --static-page-surface: #ffffff;
  --static-page-border: #d8e3f0;
  --static-page-text: #10213a;
  --static-page-muted: #61708a;
  --static-page-accent: #0f766e;
  --static-page-warn-bg: #fff6db;
  --static-page-warn-border: #f3d07a;
  --static-page-warn-text: #6a4b00;
}

.static-page-vue-shell {
  display: block;
}

.static-page-vue-main {
  margin-top: 0;
}

.static-page-vue-frame {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 28px;
}

.static-page-vue-frame.static-page-vue-frame--fluid {
  width: calc(100% - 32px);
}

.static-page-vue-mobile-sidebar {
  display: none;
  margin-bottom: 16px;
}

.static-page-vue-panel {
  border: 1px solid var(--static-page-border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #f8fbff 100%);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  padding: 22px;
}

.static-page-vue-richtext {
  color: var(--static-page-text);
}

.static-page-vue-richtext > :first-child {
  margin-top: 0;
}

.static-page-vue-richtext > :last-child {
  margin-bottom: 0;
}

.static-page-vue-richtext .container,
.static-page-vue-richtext .container-fluid,
.static-page-vue-richtext .row,
.static-page-vue-richtext [class*="col-"] {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  float: none;
  flex: initial;
  display: block;
}

.static-page-vue-richtext .card,
.static-page-vue-richtext .card-body,
.static-page-vue-richtext .card-header,
.static-page-vue-richtext .card-footer {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

.static-page-vue-richtext .btn,
.static-page-vue-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--static-page-accent) 0%, #0b84f3 100%);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 24px rgba(11, 132, 243, 0.22);
}

.static-page-vue-richtext .btn:hover,
.static-page-vue-action:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.static-page-vue-richtext .alert,
.static-page-vue-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  border: 1px solid var(--static-page-warn-border);
  border-radius: 18px;
  background: var(--static-page-warn-bg);
  color: var(--static-page-warn-text);
  padding: 14px 16px;
}

.static-page-vue-notice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 999px;
  background: rgba(106, 75, 0, 0.12);
}

.static-page-vue-form {
  margin-top: 18px;
}

.static-page-vue-richtext img,
.static-page-vue-richtext video,
.static-page-vue-richtext iframe {
  max-width: 100%;
  border-radius: 18px;
}

.static-page-vue-richtext table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.static-page-vue-richtext table th,
.static-page-vue-richtext table td {
  border: 1px solid var(--static-page-border);
  padding: 10px 12px;
}

body.night-mode.static-page-vue-active {
  --static-page-surface: #19202c;
  --static-page-border: rgba(255, 255, 255, 0.08);
  --static-page-text: #edf3fb;
  --static-page-muted: #a6b5cb;
  --static-page-warn-bg: rgba(146, 101, 0, 0.2);
  --static-page-warn-border: rgba(243, 208, 122, 0.35);
  --static-page-warn-text: #f7dda1;
}

body.night-mode .static-page-vue-panel {
  background: linear-gradient(180deg, rgba(25, 32, 44, 0.96) 0%, rgba(20, 27, 39, 0.98) 100%);
  box-shadow: none;
}

body.night-mode .static-page-vue-richtext .card,
body.night-mode .static-page-vue-richtext .card-body,
body.night-mode .static-page-vue-richtext .card-header,
body.night-mode .static-page-vue-richtext .card-footer {
  color: var(--static-page-text);
}

@media (max-width: 767px) {
  .static-page-vue-main {
    margin-top: 0;
  }

  .static-page-vue-frame,
  .static-page-vue-frame.static-page-vue-frame--fluid {
    width: calc(100% - 20px);
  }

  .static-page-vue-mobile-sidebar {
    display: block;
  }

  .static-page-vue-panel {
    padding: 16px;
    border-radius: 20px;
  }

  .static-page-vue-richtext .btn,
  .static-page-vue-action {
    width: 100%;
  }
}

body.nf2-header-mounted .nf2-site-header-actions .ele_hdr_user_droptoggle span {
  display: none !important;
}

/* Stable mobile header layout for Vue mode */
@media (max-width: 668px) {
  body.nf2-header-mounted .nf2-site-header-shell {
    gap: 8px;
  }

  body.nf2-header-mounted .nf2-site-header-search .search-wrapper,
  body.nf2-header-mounted .nf2-site-header-search {
    min-width: 0;
    width: 100%;
  }

  body.nf2-header-mounted .nf2-site-header-search .search-wrapper > form {
    display: block !important;
    margin: 0 !important;
  }

  body.nf2-header-mounted .nf2-site-header-search .ele_toggle_search {
    display: none !important;
  }

  body.nf2-header-mounted .nf2-site-header-actions .js_live-requests {
    display: none !important;
  }
}

@media (max-width: 420px) {
  body.nf2-header-mounted .nf2-site-header-shell {
    gap: 6px;
  }

  body.nf2-header-mounted .nf2-site-header-search .search-wrapper {
    flex: 0 0 auto !important;
    width: 38px !important;
    min-width: 38px !important;
  }

  body.nf2-header-mounted .nf2-site-header-search .search-wrapper > form {
    display: none !important;
  }

  body.nf2-header-mounted .nf2-site-header-search .ele_toggle_search {
    display: inline-flex !important;
    position: static !important;
    width: 38px !important;
    height: 38px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.14) !important;
    color: #f4f9ff !important;
  }

  body.nf2-header-mounted .nf2-site-header-search .ele_toggle_search .icon-search {
    display: block !important;
  }

  body.nf2-header-mounted .nf2-site-header-search .ele_toggle_search .icon-close {
    display: none !important;
  }

  body.nf2-header-mounted .nf2-site-header-actions .js_live-messages {
    display: none !important;
  }
}

/* Vue header shell: modernized header surface */
body.nf2-header-mounted .main-header {
  margin-bottom: 26px;
}

body.nf2-header-mounted .ele_navbar_top {
  height: 82px;
  overflow: visible;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.24), transparent 20%),
    radial-gradient(circle at 82% 0%, rgba(125, 211, 252, 0.22), transparent 24%),
    linear-gradient(135deg, #0a5fb8 0%, #117be8 48%, #0d6dd2 100%);
  box-shadow: 0 22px 45px -30px rgba(5, 37, 73, 0.88);
}

body.nf2-header-mounted .ele_navbar_top .container-fluid {
  padding: 11px 20px;
}

body.nf2-header-mounted [data-newsfeed-vue-header-root] {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

body.nf2-header-mounted .ele_header_shadow {
  display: none;
}

body.nf2-header-mounted .nf2-site-header-shell {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-width: 0;
  gap: 14px;
}

body.nf2-header-mounted .nf2-site-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.nf2-header-mounted .nf2-site-header-menu,
body.nf2-header-mounted .nf2-site-header-brand,
body.nf2-header-mounted .nf2-site-header-search-wrap,
body.nf2-header-mounted .nf2-site-header-actions-wrap {
  position: relative;
}

body.nf2-header-mounted .nf2-site-header-menu .ele_toggle_sidebar,
body.nf2-header-mounted .nf2-site-header-brand .logo-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.19), rgba(255, 255, 255, 0.1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 16px 28px -24px rgba(2, 16, 44, 0.95);
  backdrop-filter: blur(12px);
}

body.nf2-header-mounted .nf2-site-header-menu .ele_toggle_sidebar {
  width: 34px;
  margin: 0;
  color: #edf6ff;
}

body.nf2-header-mounted .nf2-site-header-brand .logo-wrapper {
  min-width: 48px;
  padding: 0 10px;
}

body.nf2-header-mounted .nf2-site-header-brand .logo-wrapper img {
  max-width: 36px;
  max-height: 26px;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.18));
}

body.nf2-header-mounted .nf2-site-header-search-wrap {
  min-width: 0;
  width: 100%;
}

body.nf2-header-mounted .nf2-site-header-search {
  width: 100%;
  min-width: 0;
}

body.nf2-header-mounted .nf2-site-header-search .search-wrapper {
  width: min(760px, 100%);
  margin: 0;
}

body.nf2-header-mounted .nf2-site-header-search .search-wrapper > form {
  margin: 0 !important;
}

body.nf2-header-mounted .nf2-site-header-search .search-wrapper .form-control {
  height: 48px;
  padding: 0 18px 0 48px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(243, 248, 255, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 18px 30px -24px rgba(2, 16, 44, 0.72);
  color: #163659;
  font-size: 15px;
  font-weight: 500;
}

body.nf2-header-mounted .nf2-site-header-search .search-wrapper .form-control::placeholder {
  color: #6781a1;
  opacity: 1;
}

body.nf2-header-mounted .nf2-site-header-search .search-wrapper .form-control:focus {
  background: #ffffff;
  border-color: rgba(125, 211, 252, 0.95);
  box-shadow:
    0 0 0 4px rgba(125, 211, 252, 0.16),
    0 20px 34px -24px rgba(2, 16, 44, 0.74);
}

body.nf2-header-mounted .nf2-site-header-search .search-wrapper > form svg {
  left: 15px;
  color: #5c7697;
  opacity: 0.96;
}

body.nf2-header-mounted .nf2-site-header-actions-wrap {
  display: flex;
  align-items: center;
  justify-self: end;
  margin-left: auto;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(7, 37, 74, 0.14), rgba(255, 255, 255, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 30px -26px rgba(2, 16, 44, 0.95);
  backdrop-filter: blur(14px);
}

body.nf2-header-mounted .nf2-site-header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

body.nf2-header-mounted .nf2-site-header-actions > * {
  margin: 0 !important;
}

body.nf2-header-mounted .nf2-site-header-actions .dropdown {
  position: relative;
}

body.nf2-header-mounted .nf2-site-header-actions .ele_hdr_droptoggle {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
  color: #eff7ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.17);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

body.nf2-header-mounted .nf2-site-header-actions .ele_hdr_droptoggle:hover,
body.nf2-header-mounted .nf2-site-header-actions .show > .ele_hdr_droptoggle {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.24);
}

body.nf2-header-mounted .nf2-site-header-actions .ele_hdr_droptoggle:before {
  display: none;
}

body.nf2-header-mounted .nf2-site-header-actions .ele_hdr_droptoggle svg {
  width: 22px;
  height: 22px;
}

body.nf2-header-mounted .nf2-site-header-actions .ele_hdr_user_droptoggle {
  width: auto;
  min-width: 46px;
  padding: 0 2px 0 0;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
}

body.nf2-header-mounted .nf2-site-header-actions .ele_hdr_user_droptoggle img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}

body.nf2-header-mounted .nf2-site-header-actions .counter {
  top: -4px !important;
  right: -4px !important;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border: 0;
  border-radius: 999px;
  background: #27c3ff;
  color: #0f4d8d;
  line-height: 19px;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 8px 18px -14px rgba(2, 16, 44, 0.72);
}

body.nf2-header-mounted .nf2-site-header-actions .dropdown-menu,
body.nf2-header-mounted .nf2-site-header-search .ele_header_sarch_dropdown {
  border: 1px solid rgba(207, 223, 241, 0.95);
  border-radius: 20px;
  box-shadow: 0 28px 48px -34px rgba(4, 28, 55, 0.48);
}

@media (max-width: 900px) {
  body.nf2-header-mounted .ele_navbar_top {
    height: 76px;
  }

  body.nf2-header-mounted .ele_navbar_top .container-fluid {
    padding: 10px 14px;
  }

  body.nf2-header-mounted .nf2-site-header-shell {
    gap: 10px;
  }

  body.nf2-header-mounted .nf2-site-header-actions .js_live-requests {
    display: none !important;
  }
}

@media (max-width: 668px) {
  body.nf2-header-mounted .main-header {
    margin-bottom: 10px;
  }

  body.nf2-header-mounted .ele_navbar_top {
    height: 64px;
  }

  body.nf2-header-mounted .nf2-site-header-menu .ele_toggle_sidebar,
  body.nf2-header-mounted .nf2-site-header-brand .logo-wrapper {
    min-width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  body.nf2-header-mounted .nf2-site-header-brand .logo-wrapper {
    min-width: 50px;
    padding: 0 11px;
  }

  body.nf2-header-mounted .nf2-site-header-search .search-wrapper .form-control {
    height: 44px;
    border-radius: 16px;
    font-size: 14px;
  }

  body.nf2-header-mounted .nf2-site-header-actions-wrap {
    padding: 3px;
    border-radius: 18px;
  }

  body.nf2-header-mounted .nf2-site-header-actions .ele_hdr_droptoggle {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  body.nf2-header-mounted .nf2-site-header-actions .ele_hdr_user_droptoggle img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
}

@media (max-width: 560px) {
  body.nf2-header-mounted .nf2-site-header-actions .js_live-messages {
    display: none !important;
  }
}

@media (max-width: 420px) {
  body.nf2-header-mounted .ele_navbar_top {
    height: 66px;
  }

  body.nf2-header-mounted .ele_navbar_top .container-fluid {
    padding: 9px 10px;
  }

  body.nf2-header-mounted .nf2-site-header-shell {
    gap: 8px;
  }

  body.nf2-header-mounted .nf2-site-header-search-wrap {
    justify-self: stretch;
  }

  body.nf2-header-mounted .nf2-site-header-search .search-wrapper {
    width: 40px !important;
    min-width: 40px !important;
  }

  body.nf2-header-mounted .nf2-site-header-search .ele_toggle_search {
    width: 40px !important;
    height: 40px !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #f4fbff !important;
  }

  body.nf2-header-mounted .nf2-site-header-search .ele_toggle_search svg {
    width: 20px;
    height: 20px;
  }

  body.nf2-header-mounted .nf2-site-header-actions-wrap {
    padding: 2px;
    border-radius: 16px;
  }

  body.nf2-header-mounted .nf2-site-header-actions .ele_hdr_droptoggle {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  body.nf2-header-mounted .nf2-site-header-actions .ele_hdr_user_droptoggle {
    min-width: 40px;
  }

  body.nf2-header-mounted .nf2-site-header-actions .ele_hdr_user_droptoggle img {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }
}

.nf2-mobile-quick-dock {
  display: none;
}

html.nf2-site-shell-pending body,
body.newsfeed-v2-active,
body.nf2-header-mounted {
  padding-top: 8px !important;
}

html.nf2-site-shell-pending body.n_activated,
html.nf2-site-shell-pending body.n_live,
body.newsfeed-v2-active.n_activated,
body.newsfeed-v2-active.n_live,
body.nf2-header-mounted.n_activated,
body.nf2-header-mounted.n_live {
  padding-top: 52px !important;
}

html.nf2-site-shell-pending .ele_navbar_top {
  height: 82px;
  overflow: visible;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.24), transparent 20%),
    radial-gradient(circle at 82% 0%, rgba(125, 211, 252, 0.22), transparent 24%),
    linear-gradient(135deg, #0a5fb8 0%, #117be8 48%, #0d6dd2 100%);
  box-shadow: 0 22px 45px -30px rgba(5, 37, 73, 0.88);
}

html.nf2-site-shell-pending .ele_navbar_top .ele_header,
html.nf2-site-shell-pending .ele_navbar_top_right {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  html.nf2-site-shell-pending body,
  body.newsfeed-v2-active,
  body.nf2-header-mounted {
    padding-top: 8px !important;
  }
}

@media (max-width: 668px) {
  html.nf2-site-shell-pending body,
  body.newsfeed-v2-active,
  body.nf2-header-mounted {
    padding-top: calc(8px + env(safe-area-inset-top)) !important;
  }

  body.nf2-header-mounted {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }

  .nf2-mobile-quick-dock {
    position: fixed;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 10px;
    z-index: 1044;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(197, 216, 237, 0.92);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 247, 255, 0.92));
    box-shadow:
      0 24px 54px -34px rgba(6, 35, 66, 0.6),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
  }

  .nf2-mobile-quick-action {
    display: inline-flex;
    min-width: 0;
    min-height: 54px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 0;
    border-radius: 17px;
    background: transparent;
    color: #2d4158;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
  }

  .nf2-mobile-quick-action:hover,
  .nf2-mobile-quick-action:focus {
    color: #0f72c7;
    text-decoration: none;
    background: rgba(15, 114, 199, 0.08);
  }

  .nf2-mobile-quick-action i {
    font-size: 18px;
    line-height: 1;
  }

  .nf2-mobile-quick-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    min-height: 22px;
  }

  .nf2-mobile-quick-action .nf2-quick-counter {
    position: absolute;
    top: -8px;
    right: -11px;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border: 2px solid rgba(255, 255, 255, 0.94);
    border-radius: 999px;
    background: #ff4f7b;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    line-height: 13px;
    box-shadow: 0 8px 16px -10px rgba(255, 79, 123, 0.9);
  }

  .nf2-mobile-quick-action-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #0b7ee8 0%, #0897f2 100%);
    box-shadow: 0 14px 24px -18px rgba(8, 111, 209, 0.9);
  }

  .nf2-mobile-quick-action-primary:hover,
  .nf2-mobile-quick-action-primary:focus {
    color: #ffffff;
    background: linear-gradient(135deg, #066dcc 0%, #078be0 100%);
  }
}

@media (max-width: 380px) {
  .nf2-mobile-quick-dock {
    grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
    gap: 4px;
    padding: 7px;
  }

  .nf2-mobile-quick-action {
    min-height: 50px;
    border-radius: 15px;
    font-size: 9px;
  }
}

body.night-mode .nf2-mobile-quick-dock {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(32, 38, 45, 0.94);
}

body.night-mode .nf2-mobile-quick-action {
  color: #d6e2ef;
}

html.nf2-site-shell-pending .chat-sidebar,
body.nf2-header-mounted .chat-sidebar {
  top: 96px !important;
  bottom: 10px !important;
  max-height: calc(100vh - 106px) !important;
  z-index: 100 !important;
}

html.nf2-site-shell-pending body.n_activated .chat-sidebar,
html.nf2-site-shell-pending body.n_live .chat-sidebar,
body.nf2-header-mounted.n_activated .chat-sidebar,
body.nf2-header-mounted.n_live .chat-sidebar {
  top: 140px !important;
  max-height: calc(100vh - 150px) !important;
}

@media (max-width: 900px) {
  html.nf2-site-shell-pending .chat-sidebar,
  body.nf2-header-mounted .chat-sidebar {
    top: 86px !important;
    max-height: calc(100vh - 96px) !important;
  }
}

.nf2-site-footer-source {
  display: none;
}

body.nf2-footer-mounted .nf2-site-footer {
  margin: 18px 0 0;
  padding: 0 0 18px;
}

body.nf2-footer-mounted .nf2-site-footer .footer {
  margin-top: 0;
  padding: 18px 0;
  border-top: 1px solid rgba(210, 222, 236, 0.72);
  color: #607187;
}

body.nf2-footer-mounted .nf2-site-footer .footer .links {
  text-align: right;
}

body.nf2-footer-mounted .nf2-site-footer a {
  color: #385674;
}

body.nf2-footer-mounted .nf2-site-footer a:hover {
  color: #0b7ee8;
  text-decoration: none;
}

body.night-mode.nf2-footer-mounted .nf2-site-footer .footer {
  border-top-color: rgba(255, 255, 255, 0.1);
  color: #aeb9c7;
}

body.night-mode.nf2-footer-mounted .nf2-site-footer a {
  color: #d6e2ef;
}

@media (max-width: 767px) {
  body.nf2-footer-mounted .nf2-site-footer {
    padding-bottom: 88px;
  }

  body.nf2-footer-mounted .nf2-site-footer .footer,
  body.nf2-footer-mounted .nf2-site-footer .footer .links {
    text-align: center;
  }
}

/* Composer accessibility polish: stronger contrast and subtle surface tint */
body.newsfeed-v2-active .nf2-composer {
  background: linear-gradient(180deg, #f1f5fb 0%, #eef3fa 100%) !important;
  border: 1px solid #c8d8ec !important;
  box-shadow: 0 8px 20px rgba(14, 41, 84, 0.08) !important;
}

body.newsfeed-v2-active .nf2-composer-box {
  background: #f7faff !important;
  border: 1px solid #bfd1e8 !important;
}

body.newsfeed-v2-active .nf2-composer-text {
  color: #35506f !important;
  font-weight: 600 !important;
}

/* Unified publisher card for groups/pages to match newsfeed composer */
.nf2-unified-publisher {
  margin-bottom: 16px;
}

.nf2-unified-publisher > #publisher-wapper {
  margin: 0 !important;
}

.nf2-unified-publisher > #publisher-wapper > .publisher-overlay {
  display: none !important;
}

.nf2-unified-publisher > #publisher-wapper .x-form.publisher,
.nf2-unified-publisher > #publisher-wapper .publisher {
  border: 1px solid #c8d8ec !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #f1f5fb 0%, #eef3fa 100%) !important;
  box-shadow: 0 10px 22px rgba(14, 41, 84, 0.08) !important;
  overflow: hidden !important;
}

.nf2-unified-publisher > #publisher-wapper .publisher-message {
  background: #f7faff !important;
  border-bottom: 1px solid #d8e4f3 !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.nf2-unified-publisher > #publisher-wapper .publisher-message textarea {
  color: #35506f !important;
  font-weight: 600 !important;
}

/* Groups/pages composer entry now opens modal (same flow as newsfeed) */
.nf2-unified-publisher-trigger {
  width: 100%;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #bfd1e8;
  border-radius: 14px;
  background: #f7faff;
  padding: 12px 14px;
  color: #35506f;
  text-align: left;
}

.nf2-unified-publisher-trigger:hover {
  background: #f1f6fd;
  border-color: #a9c2df;
}

.nf2-unified-publisher-trigger-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0f8b8d;
  color: #fff;
}

.nf2-unified-publisher-trigger-text {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}


/* =====================================================================
   Notification Sheet & Backdrop (nf2-notifications-bridge)
   ===================================================================== */

/* Backdrop – transparent on desktop (captures outside-clicks), dark on mobile */
.nf2-notifications-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

@media (max-width: 668px) {
  .nf2-notifications-backdrop {
    background: rgba(8, 18, 32, 0.42);
    backdrop-filter: blur(4px);
  }
}

/* Desktop – sheet appears as a fixed top-right dropdown panel */
body.nf2-notifications-open .nf2-notifications-sheet {
  display: flex !important;
  flex-direction: column;
  position: fixed !important;
  top: 66px !important;
  right: 20px !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  width: 400px !important;
  min-width: 0 !important;
  max-width: calc(100vw - 40px) !important;
  max-height: calc(100vh - 86px) !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid #e1e8f0 !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 40px -8px rgba(4, 28, 55, 0.32) !important;
  pointer-events: auto;
  z-index: 2147483001 !important;
}

body.night-mode.nf2-notifications-open .nf2-notifications-sheet {
  background: #1e2330 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 40px -8px rgba(0, 0, 0, 0.6) !important;
}

/* Hide notifications beyond the 5th item */
body.nf2-notifications-open .nf2-notifications-sheet .dropdown-widget-body li:nth-child(n+6) {
  display: none !important;
}

/* Internal layout */
body.nf2-notifications-open .nf2-notifications-sheet .dropdown-widget-header {
  flex: 0 0 auto;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f4f9;
  background: rgba(255, 255, 255, 0.96);
}

body.night-mode.nf2-notifications-open .nf2-notifications-sheet .dropdown-widget-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: rgba(30, 35, 48, 0.96);
}

body.nf2-notifications-open .nf2-notifications-sheet .dropdown-widget-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden auto;
  padding: 8px 10px;
}

body.nf2-notifications-open .nf2-notifications-sheet .dropdown-widget-footer {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-top: 1px solid #f0f4f9;
  text-align: center;
}

body.night-mode.nf2-notifications-open .nf2-notifications-sheet .dropdown-widget-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

/* Mobile – bottom sheet */
@media (max-width: 668px) {
  body.nf2-notifications-open .nf2-notifications-sheet {
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: auto !important;
    max-width: none !important;
    max-height: min(82vh, calc(100vh - 80px)) !important;
    border-radius: 24px 24px 0 0 !important;
    box-shadow: 0 -24px 64px -20px rgba(4, 28, 55, 0.56) !important;
  }
}

/* ==============================================
   Responsive Hardening (newsfeed v2 scope)
   ============================================== */
body.nf2-site-shell-active,
body.newsfeed-v2-active {
  overflow-x: hidden;
}

body.nf2-site-shell-active .newsfeed-v2-shell,
body.newsfeed-v2-active .newsfeed-v2-shell,
body.nf2-site-shell-active .newsfeed-v2-stream,
body.newsfeed-v2-active .newsfeed-v2-stream,
body.nf2-site-shell-active .newsfeed-v2-stream .js_posts_stream,
body.newsfeed-v2-active .newsfeed-v2-stream .js_posts_stream {
  min-width: 0;
}

body.nf2-site-shell-active .newsfeed-v2-stream img,
body.nf2-site-shell-active .newsfeed-v2-stream video,
body.nf2-site-shell-active .newsfeed-v2-stream iframe,
body.newsfeed-v2-active .newsfeed-v2-stream img,
body.newsfeed-v2-active .newsfeed-v2-stream video,
body.newsfeed-v2-active .newsfeed-v2-stream iframe {
  max-width: 100%;
}

body.nf2-site-shell-active .newsfeed-v2-stream .ele_post_filters_nav,
body.newsfeed-v2-active .newsfeed-v2-stream .ele_post_filters_nav {
  scroll-snap-type: x proximity;
}

body.nf2-site-shell-active .newsfeed-v2-stream .ele_post_filters_nav > .filterby,
body.newsfeed-v2-active .newsfeed-v2-stream .ele_post_filters_nav > .filterby {
  scroll-snap-align: start;
}

@media (max-width: 991px) {
  body.nf2-site-shell-active .newsfeed-v2-stream .post .dropdown-menu,
  body.nf2-site-shell-active .newsfeed-v2-stream .comment .dropdown-menu,
  body.nf2-site-shell-active .newsfeed-v2-stream .comments-filter .dropdown-menu,
  body.newsfeed-v2-active .newsfeed-v2-stream .post .dropdown-menu,
  body.newsfeed-v2-active .newsfeed-v2-stream .comment .dropdown-menu,
  body.newsfeed-v2-active .newsfeed-v2-stream .comments-filter .dropdown-menu {
    right: 0;
    left: auto;
    min-width: min(240px, calc(100vw - 24px));
    max-width: min(320px, calc(100vw - 24px));
  }
}

@media (max-width: 600px) {
  body.nf2-site-shell-active .newsfeed-v2-stream .post .dropdown-menu,
  body.nf2-site-shell-active .newsfeed-v2-stream .comment .dropdown-menu,
  body.nf2-site-shell-active .newsfeed-v2-stream .comments-filter .dropdown-menu,
  body.newsfeed-v2-active .newsfeed-v2-stream .post .dropdown-menu,
  body.newsfeed-v2-active .newsfeed-v2-stream .comment .dropdown-menu,
  body.newsfeed-v2-active .newsfeed-v2-stream .comments-filter .dropdown-menu {
    min-width: 0;
    width: min(300px, calc(100vw - 20px));
  }
}

/* ==============================================
   Responsive Hardening (newsfeed v2 scope v2.1)
   ============================================== */
body.nf2-site-shell-active .newsfeed-v2-stream .post,
body.nf2-site-shell-active .newsfeed-v2-stream .comment,
body.newsfeed-v2-active .newsfeed-v2-stream .post,
body.newsfeed-v2-active .newsfeed-v2-stream .comment {
  min-width: 0;
}

body.nf2-site-shell-active .newsfeed-v2-stream .post .post-body,
body.nf2-site-shell-active .newsfeed-v2-stream .post .post-message,
body.nf2-site-shell-active .newsfeed-v2-stream .post .post-text,
body.nf2-site-shell-active .newsfeed-v2-stream .comment .comment-body,
body.nf2-site-shell-active .newsfeed-v2-stream .comment .comment-text,
body.newsfeed-v2-active .newsfeed-v2-stream .post .post-body,
body.newsfeed-v2-active .newsfeed-v2-stream .post .post-message,
body.newsfeed-v2-active .newsfeed-v2-stream .post .post-text,
body.newsfeed-v2-active .newsfeed-v2-stream .comment .comment-body,
body.newsfeed-v2-active .newsfeed-v2-stream .comment .comment-text {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.nf2-site-shell-active .newsfeed-v2-stream table,
body.newsfeed-v2-active .newsfeed-v2-stream table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.nf2-site-shell-active .newsfeed-v2-stream pre,
body.newsfeed-v2-active .newsfeed-v2-stream pre {
  max-width: 100%;
  overflow-x: auto;
}

@media (max-width: 480px) {
  body.nf2-header-mounted .nf2-site-header-shell {
    gap: 6px;
  }

  body.nf2-header-mounted .nf2-site-header-actions {
    gap: 4px;
  }

  body.nf2-header-mounted .nf2-site-header-actions .ele_hdr_droptoggle {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }
}

@media (max-width: 360px) {
  body.nf2-header-mounted .nf2-site-header-left {
    gap: 6px;
  }

  body.nf2-header-mounted .nf2-site-header-actions {
    gap: 3px;
  }
}

/* ==============================================
   Reactions Anchoring Guard (newsfeed v2)
   ============================================== */
body.nf2-site-shell-active .newsfeed-v2-stream .reactions-wrapper,
body.newsfeed-v2-active .newsfeed-v2-stream .reactions-wrapper {
  position: relative !important;
}

body.nf2-site-shell-active .newsfeed-v2-stream .reactions-container,
body.newsfeed-v2-active .newsfeed-v2-stream .reactions-container {
  position: fixed !important;
  top: auto;
  bottom: auto !important;
  max-width: calc(100vw - 16px);
  z-index: 2147482000;
}

body.newsfeed-v2-active .nf2-reels {
  position: relative;
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid rgba(186, 210, 236, 0.92);
  border-radius: 24px;
  background:
    radial-gradient(1200px 320px at -12% -30%, rgba(14, 165, 233, 0.24) 0%, rgba(248, 251, 255, 0.96) 42%, rgba(239, 245, 255, 0.98) 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
  overflow: hidden;
}

body.newsfeed-v2-active .nf2-reels__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

body.newsfeed-v2-active .nf2-reels__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: #617b96;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.newsfeed-v2-active .nf2-reels__title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.newsfeed-v2-active .nf2-reels__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #0f7de8 0%, #1cb5ff 55%, #ff8c42 100%);
  box-shadow: 0 16px 28px rgba(15, 125, 232, 0.28);
}

body.newsfeed-v2-active .nf2-reels__title {
  margin: 0;
  color: #08233e;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

body.newsfeed-v2-active .nf2-reels__meta {
  margin: 4px 0 0;
  color: #54708c;
  font-size: 13px;
  font-weight: 600;
}

body.newsfeed-v2-active .nf2-reels__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.newsfeed-v2-active .nf2-reels__nav,
body.newsfeed-v2-active .nf2-reels__link {
  border: 0;
  border-radius: 999px;
  font: inherit;
}

body.newsfeed-v2-active .nf2-reels__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #0b3153;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(169, 192, 220, 0.84);
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

body.newsfeed-v2-active .nf2-reels__nav:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #fff;
}

body.newsfeed-v2-active .nf2-reels__nav:disabled {
  opacity: 0.42;
}

body.newsfeed-v2-active .nf2-reels__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  margin-left: auto;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  background: linear-gradient(135deg, #0f7de8 0%, #1559d6 100%);
  box-shadow: 0 14px 28px rgba(21, 89, 214, 0.24);
}

body.newsfeed-v2-active .nf2-reels__viewport {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 220px);
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.newsfeed-v2-active .nf2-reels__viewport::-webkit-scrollbar {
  display: none;
}

body.newsfeed-v2-active .nf2-reels__card {
  position: relative;
  display: block;
  min-height: 318px;
  border-radius: 20px;
  overflow: hidden;
  background-color: #08111d;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.2);
  scroll-snap-align: start;
  text-decoration: none;
  transform: translateZ(0);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

body.newsfeed-v2-active .nf2-reels__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.26);
}

body.newsfeed-v2-active .nf2-reels__card.nf2-reels__card--video-only {
  background-image: linear-gradient(180deg, #213446 0%, #0d1827 100%);
}

body.newsfeed-v2-active .nf2-reels__video,
body.newsfeed-v2-active .nf2-reels__card .plyr,
body.newsfeed-v2-active .nf2-reels__card .plyr__video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.newsfeed-v2-active .nf2-reels__video {
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

body.newsfeed-v2-active .nf2-reels__card.nf2-reels__card--video-only .nf2-reels__video {
  opacity: 1;
}

body.newsfeed-v2-active .nf2-reels__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 10, 18, 0.04) 0%, rgba(7, 10, 18, 0.28) 45%, rgba(7, 10, 18, 0.9) 100%);
}

body.newsfeed-v2-active .nf2-reels__views {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  background: rgba(7, 10, 18, 0.5);
  backdrop-filter: blur(8px);
}

body.newsfeed-v2-active .nf2-reels__body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 16px;
}

body.newsfeed-v2-active .nf2-reels__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  flex: 0 0 auto;
}

body.newsfeed-v2-active .nf2-reels__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.newsfeed-v2-active .nf2-reels__copy {
  display: block;
  min-width: 0;
}

body.newsfeed-v2-active .nf2-reels__author,
body.newsfeed-v2-active .nf2-reels__caption {
  display: block;
}

body.newsfeed-v2-active .nf2-reels__author {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

body.newsfeed-v2-active .nf2-reels__caption {
  margin-top: 4px;
  color: rgba(241, 245, 249, 0.92);
  font-size: 12px;
  line-height: 1.4;
}

body.night-mode.newsfeed-v2-active .nf2-reels {
  border-color: rgba(71, 85, 105, 0.8);
  background: radial-gradient(1000px 320px at -12% -30%, rgba(14, 165, 233, 0.2) 0%, rgba(15, 23, 42, 0.96) 42%, rgba(8, 13, 24, 0.98) 100%);
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.38);
}

body.night-mode.newsfeed-v2-active .nf2-reels__title {
  color: #f8fafc;
}

body.night-mode.newsfeed-v2-active .nf2-reels__meta,
body.night-mode.newsfeed-v2-active .nf2-reels__eyebrow {
  color: rgba(226, 232, 240, 0.74);
}

body.night-mode.newsfeed-v2-active .nf2-reels__nav {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.84);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.3);
}

body.night-mode.newsfeed-v2-active .nf2-reels__link {
  box-shadow: none;
}

/* Sovfhub Mobile Signature feed styling */
@media (max-width: 767px) {
  body.newsfeed-v2-active .newsfeed-v2-root {
    --nf2-border: #c8dcf3;
    --nf2-muted: #4f6a86;
  }

  body.newsfeed-v2-active .newsfeed-v2-shell {
    border-radius: 18px !important;
    border: 1px solid #c9dbf1 !important;
    background:
      radial-gradient(900px 300px at -16% -45%, #d8f0ff 0%, #f6faff 44%, #eef5ff 100%) !important;
    box-shadow: 0 8px 20px rgba(9, 30, 66, 0.09) !important;
    padding: 10px !important;
    margin-bottom: 10px !important;
  }

  body.newsfeed-v2-active .newsfeed-v2-header h2 {
    font-size: 34px !important;
    line-height: 1.02 !important;
    letter-spacing: -0.03em !important;
    color: #0c223a !important;
  }

  body.newsfeed-v2-active .newsfeed-v2-kicker {
    color: #6a87a5 !important;
    font-size: 9px !important;
    letter-spacing: 0.14em !important;
    font-weight: 700 !important;
  }

  body.newsfeed-v2-active .newsfeed-v2-rail {
    gap: 8px !important;
    margin: 3px 0 9px !important;
  }

  body.newsfeed-v2-active .newsfeed-v2-chip {
    min-height: 34px;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    border: 1px solid #c7dcf5 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #0e3559 !important;
    background: #ffffffd6 !important;
  }

  body.newsfeed-v2-active .newsfeed-v2-chip.is-active {
    color: #fff !important;
    border-color: transparent !important;
    background: linear-gradient(135deg, #0f7de8 0%, #1f5fd8 100%) !important;
    box-shadow: 0 8px 18px rgba(15, 96, 204, 0.34);
  }

  body.newsfeed-v2-active .nf2-composer {
    border-radius: 16px !important;
    border: 1px solid #cde0f7 !important;
    background: #ffffff !important;
    box-shadow: 0 6px 16px rgba(13, 45, 82, 0.07) !important;
    padding: 10px !important;
  }

  body.newsfeed-v2-active .nf2-composer-box {
    min-height: 44px;
    border-radius: 999px !important;
    border: 1px solid #c4d9f3 !important;
    background: linear-gradient(180deg, #f8fbff 0%, #f1f7ff 100%) !important;
    padding: 8px 12px !important;
  }

  body.newsfeed-v2-active .nf2-composer-avatar {
    width: 26px !important;
    height: 26px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #0f8fe4 0%, #0f68d2 100%) !important;
    box-shadow: 0 4px 10px rgba(15, 121, 219, 0.28);
  }

  body.newsfeed-v2-active .nf2-composer-avatar i {
    font-size: 11px;
  }

  body.newsfeed-v2-active .nf2-composer-text {
    font-size: 13px !important;
    color: #4f6c88 !important;
    font-weight: 600 !important;
  }

  body.newsfeed-v2-active .nf2-composer-actions {
    margin-top: 9px !important;
    gap: 7px !important;
  }

  body.newsfeed-v2-active .nf2-pill {
    min-height: 31px !important;
    padding: 5px 10px !important;
    border-radius: 999px !important;
    border: 1px solid #c9dcf3 !important;
    background: #f8fbff !important;
    color: #153a60 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
  }

  body.newsfeed-v2-active .newsfeed-v2-stream .post:not(.ele_post_skel) {
    border-radius: 10px !important;
    border: 1px solid #d4e2f2 !important;
    box-shadow: 0 1px 2px rgba(9, 30, 66, 0.08) !important;
    overflow: hidden !important;
  }

  body.newsfeed-v2-active .newsfeed-v2-stream .post .post-media {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  body.newsfeed-v2-active .newsfeed-v2-stream .post .post-media-image,
  body.newsfeed-v2-active .newsfeed-v2-stream .post .post-media-image img,
  body.newsfeed-v2-active .newsfeed-v2-stream .post .post-media-image .image,
  body.newsfeed-v2-active .newsfeed-v2-stream .post .post-media-video,
  body.newsfeed-v2-active .newsfeed-v2-stream .post .pg_1x {
    border-radius: 0 !important;
  }

  body.newsfeed-v2-active .newsfeed-v2-stream .post .post-text {
    margin-bottom: 8px !important;
    padding: 0 12px !important;
    font-size: 15.5px;
    line-height: 1.42;
  }

  body.newsfeed-v2-active .newsfeed-v2-stream .post .post-stats {
    padding: 8px 12px !important;
    gap: 8px !important;
    font-size: 12px !important;
    text-transform: none !important;
    color: #65676b !important;
    border-top: 1px solid #e7edf3 !important;
  }

  body.newsfeed-v2-active .newsfeed-v2-stream .post .post-actions {
    margin-top: 0 !important;
    padding: 2px 6px 6px !important;
    border-top: 1px solid #e7edf3 !important;
  }

  body.newsfeed-v2-active .newsfeed-v2-stream .post .post-actions .action-btn,
  body.newsfeed-v2-active .newsfeed-v2-stream .post .post-actions .reaction-btn {
    min-height: 40px !important;
    color: #65676b !important;
    border-radius: 8px !important;
  }

  body.newsfeed-v2-active .newsfeed-v2-stream .post .post-actions .action-btn span,
  body.newsfeed-v2-active .newsfeed-v2-stream .post .post-actions .reaction-btn-name,
  body.newsfeed-v2-active .newsfeed-v2-stream .post .post-actions .action-btn.js_comment span {
    display: inline-block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #65676b !important;
  }

  body.newsfeed-v2-active .newsfeed-v2-stream .post .post-actions .reaction-btn-icon,
  body.newsfeed-v2-active .newsfeed-v2-stream .post .post-actions .action-btn > .action-icon {
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    margin-right: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.newsfeed-v2-active .newsfeed-v2-stream .post .post-actions .action-btn > .action-icon path,
  body.newsfeed-v2-active .newsfeed-v2-stream .post .post-actions .action-btn > .action-icon g,
  body.newsfeed-v2-active .newsfeed-v2-stream .post .post-actions .action-btn > .action-icon circle,
  body.newsfeed-v2-active .newsfeed-v2-stream .post .post-actions .action-btn > .action-icon rect,
  body.newsfeed-v2-active .newsfeed-v2-stream .post .post-actions .reaction-btn-icon i,
  body.newsfeed-v2-active .newsfeed-v2-stream .post .post-actions .reaction-btn-icon [class*="fa-"],
  body.newsfeed-v2-active .newsfeed-v2-stream .post .post-actions .reaction-btn-icon .fa {
    fill: #65676b !important;
    color: #65676b !important;
  }

  body.newsfeed-v2-active .nf2-reels {
    padding: 14px !important;
    border-radius: 20px !important;
  }

  body.newsfeed-v2-active .nf2-reels__head {
    flex-direction: column;
    gap: 12px;
  }

  body.newsfeed-v2-active .nf2-reels__title {
    font-size: 21px;
  }

  body.newsfeed-v2-active .nf2-reels__actions {
    width: 100%;
    justify-content: flex-start;
  }

  body.newsfeed-v2-active .nf2-reels__viewport {
    grid-auto-columns: minmax(170px, 76vw);
  }

  body.newsfeed-v2-active .nf2-reels__card {
    min-height: 284px;
  }
}
