
/* =========================================================
   WOORDS 2.0 — Development Dashboard
   Scoped to dashboard_v2.php
   ========================================================= */

body:has(.app) {
  --v2-bg: #f2f3f5;
  --v2-surface: #ffffff;
  --v2-text: #17191d;
  --v2-muted: #858b96;
  --v2-border: #edf0f2;
  --v2-radius: 18px;
  --v2-sidebar: 300px;
  --v2-rail: 82px;
}

body:has(.v2-navigation) {
  background: var(--v2-bg) !important;
  color: var(--v2-text);
  font-family: Inter, Arial, sans-serif;
}

/* Application shell */

body:has(.app) .app {
  --rail: var(--v2-rail);
  --side: var(--v2-sidebar);
  --feed: 760px;

  width: min(1600px, calc(100% - 48px));
  min-height: calc(100vh - 112px);
  margin: 24px auto 32px;
  padding-top: 0 !important;

  display: grid !important;
  grid-template-columns:
    var(--v2-rail)
    minmax(0, 1fr)
    var(--v2-sidebar) !important;

  background: var(--v2-surface) !important;
  border: 1px solid var(--v2-border);
  border-radius: 26px;
  box-shadow: 0 18px 70px rgba(18, 25, 38, .055);
  overflow: visible;
  align-items: stretch;
}

/* Existing navigation — visual refinement */

body:has(.app) .rail {
  position: sticky !important;
  top: 100px !important;
  width: var(--v2-rail) !important;
  min-width: var(--v2-rail) !important;
  height: calc(100vh - 48px) !important;

  background: #fff !important;
  border-right: 1px solid var(--v2-border) !important;
  border-radius: 26px 0 0 26px;
  padding: 24px 12px !important;
}

body:has(.app) .nav-btn {
  border-radius: 15px !important;
  transform: none !important;
}

body:has(.app) .nav-btn.active {
  background: #17191d !important;
  color: #fff !important;
}

/* Central feed */

body:has(.app) .main {
  min-width: 0;
  padding: 32px 38px 48px !important;
  background: #fff !important;
}

body:has(.app) .feed {
  width: 100% !important;
  max-width: 760px !important;
  margin: 0 auto;
  background: transparent !important;
}

/* Composer */

body:has(.app) .composer {
  margin: 12px 0 24px !important;
  padding: 10px 8px;
  border: 1px solid var(--v2-border) !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 8px 28px rgba(17,24,39,.035);
}

body:has(.app) .composer textarea {
  font-family: inherit;
  font-size: 15px;
  line-height: 1.65;
}

body:has(.app) .composer-actions {
  border-top: 1px solid var(--v2-border);
  margin-top: 8px;
  padding-top: 14px;
}

/* Feed cards */

body:has(.app) #feedList > * {
  border-radius: 20px;
}

body:has(.app) .post-card {
  background: #fff;
  border: 1px solid var(--v2-border);
  border-radius: 20px !important;
  box-shadow: 0 6px 25px rgba(17,24,39,.025);
  margin-bottom: 18px;
}

/* Right discovery panel */

body:has(.app) .side {
  display: block;
  min-width: 0;
  padding: 32px 20px !important;
  border-left: 1px solid var(--v2-border);
  background: #fff !important;
  border-radius: 0 26px 26px 0;
}

body:has(.app) .side .right-rail {
  max-width: none !important;
  gap: 16px !important;
}

body:has(.app) .side .right-card {
  border: 1px solid var(--v2-border) !important;
  border-radius: 18px !important;
  background: #fafbfc !important;
  padding: 20px !important;
  box-shadow: none !important;
}

body:has(.app) .right-card-title {
  color: #17191d;
  font-weight: 700;
}

/* Header */

body:has(.app) .topbar {
  background: #fff !important;
  border-bottom: 1px solid var(--v2-border) !important;
}

body:has(.app) .topbar-inner {
  max-width: 1600px;
  margin: 0 auto;
}

/* Tablet */

@media (max-width: 1100px) {
  body:has(.app) .app {
    --v2-sidebar: 270px;
  }

  body:has(.app) .main {
    padding: 26px 22px !important;
  }
}

@media (max-width: 900px) {
  body:has(.app) .app {
    width: calc(100% - 24px);
    grid-template-columns: 82px minmax(0, 1fr) !important;
  }

  body:has(.app) .side {
    display: none !important;
  }
}

/* Mobile */

@media (max-width: 720px) {
  body:has(.app) .app {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: block !important;
  }

  body:has(.app) .rail {
    display: none !important;
  }

  body:has(.app) .main {
    padding: 16px 12px 32px !important;
  }

  body:has(.app) .feed {
    max-width: 100% !important;
  }

  body:has(.app) .composer {
    border-radius: 16px !important;
  }
}

/* =========================================================
   WOORDS 2.0 — Full navigation sidebar
   ========================================================= */

body:has(.v2-navigation) .app {
  --v2-rail: 240px;
  grid-template-columns:
    240px minmax(0, 1fr) var(--v2-sidebar) !important;
}

body:has(.v2-navigation) .rail.v2-navigation {
  width: 240px !important;
  min-width: 240px !important;
  align-items: stretch !important;
  padding: 28px 18px !important;
  gap: 8px !important;
}

body:has(.v2-navigation) .v2-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 10px 28px;
  color: #17191d;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.8px;
  text-decoration: none;
}

body:has(.v2-navigation) .v2-brand img {
  width: 43px;
  height: 43px;
  object-fit: contain;
}

body:has(.v2-navigation) .v2-nav-caption {
  color: #9aa0a9;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 0 14px 10px;
}

body:has(.v2-navigation) .rail .nav {
  align-items: stretch !important;
  gap: 5px !important;
}

body:has(.v2-navigation) .rail .nav-btn {
  width: 100% !important;
  height: 46px !important;
  display: flex !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 15px;
  padding: 0 14px !important;
  border-radius: 12px !important;
  font-size: 13px;
  font-weight: 600;
  color: #606772;
  opacity: 1 !important;
  text-align: left;
}

body:has(.v2-navigation) .rail .nav-btn .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

body:has(.v2-navigation) .rail .nav-btn.active {
  background: #17191d !important;
  color: #fff !important;
}

body:has(.v2-navigation) .rail .nav-btn:hover:not(.active) {
  background: #f4f5f7 !important;
  color: #17191d;
}

body:has(.v2-navigation) .v2-nav-label {
  white-space: nowrap;
}

body:has(.v2-navigation) .rail form {
  width: 100%;
}

body:has(.v2-navigation) .rail .avatar {
  margin: 12px auto 0;
}

@media (max-width: 1180px) {
  body:has(.v2-navigation) .app {
    grid-template-columns: 220px minmax(0,1fr) !important;
  }

  body:has(.v2-navigation) .rail.v2-navigation {
    width: 220px !important;
    min-width: 220px !important;
  }

  body:has(.v2-navigation) .side {
    display: none !important;
  }
}

@media (max-width: 720px) {
  body:has(.v2-navigation) .app {
    display: block !important;
  }

  body:has(.v2-navigation) .rail.v2-navigation {
    display: none !important;
  }
}

/* =========================================================
   WOORDS 2.0 — Header
   ========================================================= */

body:has(.v2-navigation) .topbar {
  height: 76px !important;
  padding: 0 28px !important;
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body:has(.v2-navigation) .topbar-inner {
  max-width: 1388px !important;
  grid-template-columns: 240px minmax(0,1fr) auto !important;
  gap: 24px !important;
}

body:has(.v2-navigation) .topbar-left {
  padding-left: 8px;
}

body:has(.v2-navigation) .topbar-centre {
  justify-content: flex-start !important;
}

body:has(.v2-navigation) .v2-header-title {
  font-size: 15px;
  font-weight: 700;
  color: #17191d;
}

body:has(.v2-navigation) .topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

body:has(.v2-navigation) .v2-create-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  background: #17191d;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

body:has(.v2-navigation) .v2-create-btn:hover {
  background: #30343b;
}

body:has(.v2-navigation) .v2-create-btn span {
  font-size: 20px;
  line-height: 1;
}

body:has(.v2-navigation) .app {
  margin-top: 28px !important;
}

@media (max-width: 900px) {
  body:has(.v2-navigation) .topbar-inner {
    grid-template-columns: auto minmax(0,1fr) auto !important;
  }
}

@media (max-width: 720px) {
  body:has(.v2-navigation) .topbar {
    padding: 0 14px !important;
  }

  body:has(.v2-navigation) .v2-header-title {
    display: none;
  }
}

/* =========================================================
   WOORDS 2.0 — Step 94: Header and sidebar alignment
   ========================================================= */

@media (min-width: 721px) {

  body:has(.v2-navigation) .topbar {
    height: 76px !important;
    box-sizing: border-box;
  }

  body:has(.v2-navigation) .topbar-inner {
    width: min(1388px, 100%) !important;
    margin: 0 auto !important;
    height: 100%;
    align-items: center;
  }

  body:has(.v2-navigation) .app {
    margin-top: 24px !important;
    padding-top: 0 !important;
  }

  body:has(.v2-navigation) .rail.v2-navigation {
    padding-top: 28px !important;
  }

  body:has(.v2-navigation) .v2-brand {
    padding-top: 12px !important;
    padding-bottom: 32px !important;
  }

}

body:has(.v2-navigation) .topbar-centre {
  min-width: 0;
}

body:has(.v2-navigation) .v2-header-title {
  font-size: 15px;
  letter-spacing: -.2px;
}



/* =========================================================
   WOORDS 2.0 — Step 96: Authoritative layout correction
   ========================================================= */

@media (min-width: 721px) {

  body:has(.v2-navigation) .app {
    padding-top: 0 !important;
    margin-top: 32px !important;
    align-items: stretch !important;
  }

  body:has(.v2-navigation) .rail.v2-navigation {
    position: relative !important;
    top: auto !important;
    align-self: stretch !important;
    height: auto !important;
    min-height: calc(100vh - 140px);
    padding-top: 34px !important;
    border-radius: 26px 0 0 26px;
  }

  body:has(.v2-navigation) .v2-brand {
    margin: 0 0 18px !important;
    padding: 10px 8px 20px !important;
    min-height: 54px;
    box-sizing: border-box;
  }

  body:has(.v2-navigation) .main {
    padding-top: 32px !important;
  }

  body:has(.v2-navigation) .side {
    padding-top: 32px !important;
  }
}


/* =========================================================
   WOORDS 2.0 — Step 100: Live people search
   ========================================================= */

body:has(.v2-navigation) .topbar-centre {
  position: relative;
  justify-content: flex-start !important;
  overflow: visible !important;
}

body:has(.v2-navigation) .v2-search {
  position: relative;
  width: min(100%, 440px);
  z-index: 200;
}

body:has(.v2-navigation) .v2-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

body:has(.v2-navigation) .v2-search-field {
  height: 43px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5e7eb;
  background: #f7f8fa;
  border-radius: 12px;
  padding: 0 15px;
}

body:has(.v2-navigation) .v2-search-field:focus-within {
  background: #fff;
  border-color: #b8bdc6;
  box-shadow: 0 0 0 3px rgba(25,28,34,.05);
}

body:has(.v2-navigation) .v2-search-icon {
  font-size: 24px;
  color: #747b86;
  line-height: 1;
}

body:has(.v2-navigation) #v2PeopleSearch {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: #17191d;
}

body:has(.v2-navigation) .v2-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  padding: 7px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 16px 45px rgba(20,25,35,.12);
  max-height: 350px;
  overflow-y: auto;
  z-index: 500;
}

body:has(.v2-navigation) .v2-search-results[hidden] {
  display: none !important;
}

body:has(.v2-navigation) .v2-search-person {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border-radius: 9px;
  color: #17191d;
  text-decoration: none;
}

body:has(.v2-navigation) .v2-search-person:hover,
body:has(.v2-navigation) .v2-search-person:focus-visible {
  background: #f4f5f7;
}

body:has(.v2-navigation) .v2-search-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e9ebf0;
  color: #30343b;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
}

body:has(.v2-navigation) .v2-search-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body:has(.v2-navigation) .v2-search-meta {
  min-width: 0;
}

body:has(.v2-navigation) .v2-search-name {
  font-size: 13px;
  font-weight: 700;
}

body:has(.v2-navigation) .v2-search-handle {
  font-size: 11px;
  color: #858b96;
}

body:has(.v2-navigation) .v2-search-message {
  padding: 12px;
  font-size: 12px;
  color: #858b96;
}

@media (max-width: 720px) {
  body:has(.v2-navigation) .v2-search {
    width: 100%;
  }

  body:has(.v2-navigation) .v2-search-field {
    height: 38px;
  }

  body:has(.v2-navigation) #v2PeopleSearch {
    font-size: 12px;
  }
}

/* ==========================================================
   WOORDS 2.0 — Search interaction fix
   ========================================================== */

body:has(.v2-navigation) .v2-search,
body:has(.v2-navigation) #v2PeopleSearch,
body:has(.v2-navigation) #v2SearchResults,
body:has(.v2-navigation) #v2SearchResults * {
    pointer-events: auto;
}


/* ==========================================================
   WOORDS 2.0 — Composer redesign
   Development dashboard only
   ========================================================== */

body:has(.v2-navigation) .composer {
    background: #ffffff;
    border: 1px solid #e9ebef;
    border-radius: 20px;
    padding: 22px 24px 18px;
    margin-bottom: 22px;
    box-shadow: 0 6px 24px rgba(20, 28, 45, 0.035);
    overflow: visible;
}

body:has(.v2-navigation) .composer-inner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

body:has(.v2-navigation) .composer-ava {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f3f6;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px #e8ebef;
}

body:has(.v2-navigation) .composer-ava .ava-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

body:has(.v2-navigation) .composer-body {
    flex: 1;
    min-width: 0;
    position: relative;
}

body:has(.v2-navigation) #composerText {
    display: block;
    width: 100%;
    min-height: 112px;
    padding: 10px 2px 14px;
    border: 0;
    outline: none;
    resize: vertical;
    background: transparent;
    color: #202733;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    box-shadow: none;
    pointer-events: auto;
}

body:has(.v2-navigation) #composerText::placeholder {
    color: #949ba7;
    opacity: 1;
}

body:has(.v2-navigation) #composerText:focus {
    border: 0;
    outline: none;
    box-shadow: none;
}

body:has(.v2-navigation) .composer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
    margin-top: 12px;
    border-top: 1px solid #edf0f3;
}

body:has(.v2-navigation) .composer-actions .hint {
    color: #8b94a2;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

body:has(.v2-navigation) .composer-actions .cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

body:has(.v2-navigation) #charCount {
    font-size: 12px;
    font-weight: 600;
    color: #929aa6;
    min-width: 42px;
    text-align: right;
}

body:has(.v2-navigation) #pollToggleBtn {
    background: #f4f6f8;
    color: #4b5563;
    border: 1px solid #e9edf1;
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease;
}

body:has(.v2-navigation) #pollToggleBtn:hover {
    background: #e9edf2;
    border-color: #dce2e9;
}

body:has(.v2-navigation) #postBtn {
    background: #222b38;
    color: #ffffff;
    border: 1px solid #222b38;
    border-radius: 11px;
    min-width: 100px;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

body:has(.v2-navigation) #postBtn:not(:disabled):hover {
    background: #38465a;
    transform: translateY(-1px);
}

body:has(.v2-navigation) #postBtn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

body:has(.v2-navigation) .poll-builder {
    margin-top: 12px;
    border-top: 1px solid #edf0f3;
    padding-top: 18px !important;
}

body:has(.v2-navigation) .public-composer-note {
    margin-top: 8px;
    font-size: 12px;
    color: #87909d;
}

@media (max-width: 640px) {
    body:has(.v2-navigation) .composer {
        padding: 18px 16px;
        border-radius: 16px;
    }

    body:has(.v2-navigation) .composer-inner {
        gap: 12px;
    }

    body:has(.v2-navigation) #composerText {
        min-height: 95px;
        font-size: 14px;
    }

    body:has(.v2-navigation) .composer-actions {
        gap: 10px;
    }
}


/* ==========================================================
   WOORDS 2.0 — Adaptive composer
   ========================================================== */

/* Compact composer for logged-out visitors */
body:has(.v2-navigation) .main[data-public-mode="1"] .composer {
    padding: 18px 22px;
    border-radius: 18px;
}

body:has(.v2-navigation) .main[data-public-mode="1"] .composer-inner {
    align-items: center;
    min-height: 52px;
}

body:has(.v2-navigation) .main[data-public-mode="1"] .composer-ava {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
}

body:has(.v2-navigation) .main[data-public-mode="1"] #composerText {
    min-height: 44px;
    height: 44px;
    max-height: 44px;
    padding: 11px 4px;
    resize: none;
    overflow: hidden;
    font-size: 14px;
    line-height: 22px;
    cursor: pointer;
}

body:has(.v2-navigation) .main[data-public-mode="1"] .public-composer-note {
    margin: 12px 0 0 60px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #929aa6;
    font-size: 12px;
    line-height: 1.5;
}

/* Hide publishing controls for visitors */
body:has(.v2-navigation) .main[data-public-mode="1"] .composer-actions {
    display: none;
}

/* Keep the full composer for logged-in members */
body:has(.v2-navigation) .main[data-public-mode="0"] #composerText {
    min-height: 112px;
}

/* Responsive visitor composer */
@media (max-width: 640px) {
    body:has(.v2-navigation) .main[data-public-mode="1"] .composer {
        padding: 15px 16px;
    }

    body:has(.v2-navigation) .main[data-public-mode="1"] .public-composer-note {
        margin-left: 0;
    }
}


/* ==========================================================
   WOORDS 2.0 — Composer refinements
   ========================================================== */

/* Slightly reduce the overall composer footprint */
body:has(.v2-navigation) .main[data-public-mode="0"] .composer {
    padding: 18px 22px 15px;
}

body:has(.v2-navigation) .main[data-public-mode="0"] #composerText {
    min-height: 68px;
    height: 68px;
    padding: 10px 2px;
    resize: vertical;
}

/* Cleaner toolbar */
body:has(.v2-navigation) .composer-actions {
    margin-top: 8px;
    padding-top: 12px;
}

body:has(.v2-navigation) .composer-actions .cta {
    gap: 10px;
}

/* Style the existing Add photo control */
body:has(.v2-navigation) .composer-actions .js-attach {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #e7ebf0;
    border-radius: 10px;
    background: #f4f6f8;
    color: #4b5563;
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
    transition: background 0.2s ease, border-color 0.2s ease;
}

body:has(.v2-navigation) .composer-actions .js-attach:hover {
    background: #e9edf2;
    border-color: #dce2e9;
}

/* Keep the existing icon visible and correctly sized */
body:has(.v2-navigation) .composer-actions .js-attach i,
body:has(.v2-navigation) .composer-actions .js-attach svg {
    display: inline-block;
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 1;
}

/* Consistent keyboard focus */
body:has(.v2-navigation) .composer-actions button:focus-visible {
    outline: 2px solid #64748b;
    outline-offset: 3px;
}


/* WOORDS 2.0 — Final composer icon refinements */

body:has(.v2-navigation) #composerText {
    resize: none;
}

body:has(.v2-navigation) .composer-actions .js-attach svg {
    display: block;
    width: 19px;
    height: 19px;
}


/* ==========================================================
   WOORDS 2.0 — Feed cards
   Scoped exclusively to the V2 dashboard
   ========================================================== */

body:has(.v2-navigation) #feedList {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Card container */
body:has(.v2-navigation) #feedList > article.post {
    background: #fff;
    border: 1px solid #e8ebef;
    border-radius: 20px;
    padding: 20px 20px 16px;
    margin: 0;
    box-shadow: 0 3px 14px rgba(20, 28, 45, 0.025);
    overflow: visible;
}

/* Main layout */
body:has(.v2-navigation) #feedList .post-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

body:has(.v2-navigation) #feedList .post-main {
    flex: 1;
    min-width: 0;
}

/* Author information */
body:has(.v2-navigation) #feedList .post-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    min-height: 24px;
    margin-bottom: 6px;
    line-height: 1.35;
}

/* Post text */
body:has(.v2-navigation) #feedList .post-text {
    font-size: 14px;
    line-height: 1.65;
    color: #252c38;
    overflow-wrap: anywhere;
    margin-bottom: 12px;
}

/* Links */
body:has(.v2-navigation) #feedList .post-text a {
    color: #355c9a;
    text-decoration: none;
}

body:has(.v2-navigation) #feedList .post-text a:hover {
    text-decoration: underline;
}

/* Engagement toolbar */
body:has(.v2-navigation) #feedList .post-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 42px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f1f4;
}

/* Engagement buttons */
body:has(.v2-navigation) #feedList .post-footer .icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 34px;
    min-height: 34px;
    padding: 6px 8px;
    border-radius: 10px;
    background: transparent;
    border: 0;
    color: #8a929e;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

body:has(.v2-navigation) #feedList .post-footer .icon-btn:hover {
    background: #f3f5f7;
    color: #303947;
}

body:has(.v2-navigation) #feedList .post-footer .icon-btn svg {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
}

/* Counts */
body:has(.v2-navigation) #feedList .action-count,
body:has(.v2-navigation) #feedList .reply-label,
body:has(.v2-navigation) #feedList .repost-count {
    font-size: 12px;
    font-weight: 500;
}

/* Preserve selected action colours */
body:has(.v2-navigation) #feedList .js-like.liked {
    color: #e85582;
}

body:has(.v2-navigation) #feedList .js-repost.reposted {
    color: #28b98a;
}

/* Keyboard accessibility */
body:has(.v2-navigation) #feedList .post-footer .icon-btn:focus-visible {
    outline: 2px solid #64748b;
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    body:has(.v2-navigation) #feedList > article.post {
        padding: 16px 14px 12px;
        border-radius: 16px;
    }

    body:has(.v2-navigation) #feedList .post-row {
        gap: 10px;
    }

    body:has(.v2-navigation) #feedList .post-footer {
        gap: 4px;
    }
}


/* ==========================================================
   WOORDS 2.0 — Validated feed spacing corrections
   ========================================================== */

body:has(.v2-navigation) #composerText {
    resize: none !important;
}

body:has(.v2-navigation) #feedList .post-row {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body:has(.v2-navigation) #feedList .post-footer {
    margin-top: 10px !important;
    padding-top: 10px !important;
    padding-bottom: 4px !important;
    min-height: 36px !important;
}

body:has(.v2-navigation) #feedList > article.post {
    margin-top: 0 !important;
}


/* ==========================================================
   WOORDS 2.0 — Author header refinements
   ========================================================== */

/* Consistent author avatar */
body:has(.v2-navigation) #feedList .post-row > .ava {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    background: #f3f5f7;
}

body:has(.v2-navigation) #feedList .post-row > .ava .ava-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Author header layout */
body:has(.v2-navigation) #feedList .post-head {
    display: flex;
    align-items: center;
    min-height: 24px;
    margin-bottom: 7px;
}

body:has(.v2-navigation) #feedList .post-head .meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
    font-size: 13px;
    line-height: 1.4;
}

/* Display name */
body:has(.v2-navigation) #feedList .post-head .name {
    color: #1e2530 !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    overflow-wrap: anywhere;
}

body:has(.v2-navigation) #feedList .post-head .name:hover {
    text-decoration: underline !important;
}

/* Username */
body:has(.v2-navigation) #feedList .username-inline {
    color: #8b96a5;
    font-size: 12px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

/* Timestamp and separator */
body:has(.v2-navigation) #feedList .post-head .time,
body:has(.v2-navigation) #feedList .post-head .dot {
    color: #9aa3b0;
    font-size: 12px;
    font-weight: 400;
}

/* Pinned indicator */
body:has(.v2-navigation) #feedList .sticky-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 7px;
    border: 1px solid #e5e9ee;
    background: #f4f6f8;
    color: #596574;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    body:has(.v2-navigation) #feedList .post-row > .ava {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    body:has(.v2-navigation) #feedList .post-head .meta {
        gap: 4px;
    }

    body:has(.v2-navigation) #feedList .username-inline {
        font-size: 11px;
    }
}


/* ==========================================================
   WOORDS 2.0 — Suggested people redesign
   ========================================================== */

body:has(.v2-navigation) .suggested-card {
    padding: 18px 16px;
}

body:has(.v2-navigation) .suggested-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

body:has(.v2-navigation) .suggested-user {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    min-width: 0;
}

body:has(.v2-navigation) .suggested-person {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    width: 100%;
    text-decoration: none;
}

body:has(.v2-navigation) .suggested-avatar {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

body:has(.v2-navigation) .suggested-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    gap: 2px;
}

body:has(.v2-navigation) .suggested-meta strong {
    display: block;
    color: #202733;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
}

body:has(.v2-navigation) .suggested-meta span {
    display: block;
    color: #8793a3;
    font-size: 12px;
    white-space: normal;
    overflow-wrap: anywhere;
}

body:has(.v2-navigation) .suggested-meta em {
    display: block;
    color: #9ba5b3;
    font-size: 11px;
    font-style: normal;
    white-space: normal;
}

body:has(.v2-navigation) .suggested-follow {
    align-self: stretch;
    width: 100%;
    min-height: 32px;
    border-radius: 9px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
}


/* ==========================================================
   WOORDS 2.0 — Compact suggested-user controls
   ========================================================== */

body:has(.v2-navigation) .suggested-list {
    gap: 16px;
}

body:has(.v2-navigation) .suggested-user {
    gap: 7px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef0f3;
}

body:has(.v2-navigation) .suggested-user:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

body:has(.v2-navigation) .suggested-follow {
    align-self: flex-start;
    width: auto;
    min-width: 86px;
    min-height: 30px;
    margin-left: 46px;
    padding: 6px 15px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
}

body:has(.v2-navigation) .suggested-follow:hover {
    filter: brightness(1.15);
}


/* ==========================================================
   WOORDS 2.0 — Fixed header alignment
   ========================================================== */

body:has(.v2-navigation) .app {
    margin-top: 76px !important;
}

body:has(.v2-navigation) .v2-navigation {
    padding-top: 0 !important;
}

body:has(.v2-navigation) .main {
    padding-top: 0 !important;
}


/* ==========================================================
   WOORDS 2.0 — Step 132
   Unified desktop scrolling
   ========================================================== */

@media (min-width: 1200px) {

  body:has(.v2-navigation) aside.side {
    overflow-y: visible !important;
    overflow-x: visible !important;
    max-height: none !important;
    height: auto !important;
  }

  body:has(.v2-navigation) .right-rail {
    overflow-y: visible !important;
    max-height: none !important;
    height: auto !important;
  }

}

