.feed-new-posts-notice {
  position: sticky;
  top: 72px;
  z-index: 30;
  display: block;
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: 10px auto 14px;
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #1877f2, #145db8);
  box-shadow: 0 10px 24px rgba(24, 119, 242, .24);
}
.feed-new-posts-notice:hover,
.feed-new-posts-notice:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(24, 119, 242, .28);
  outline: none;
}
@media (max-width: 720px) {
  .feed-new-posts-notice {
    top: 58px;
    font-size: 13px;
    padding: 8px 14px;
  }
}

.feed-phase5-resume-pill {
  position: sticky;
  top: 72px;
  z-index: 29;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: 8px auto 12px;
  border-radius: 999px;
  padding: 8px 12px 8px 15px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .14);
  border: 1px solid rgba(15, 23, 42, .08);
}
.feed-phase5-resume-pill button {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
  line-height: 20px;
  color: #334155;
  background: rgba(15, 23, 42, .08);
}
.feed-phase5-resume-pill button:hover,
.feed-phase5-resume-pill button:focus-visible {
  background: rgba(15, 23, 42, .14);
  outline: none;
}
@media (max-width: 720px) {
  .feed-phase5-resume-pill {
    top: 58px;
    font-size: 12px;
    padding: 7px 10px 7px 13px;
  }
}

/* Feed Phase 10: feed-card render budget. Feed/profile-feed only; no sidebar selectors. */
@supports (content-visibility: auto) {
  .feed-phase10-content-visibility-ok #feed [data-post-card],
  .feed-phase10-content-visibility-ok #profile-feed [data-post-card] {
    content-visibility: auto;
    contain-intrinsic-size: auto 460px;
  }

  .feed-phase10-content-visibility-ok #feed [data-post-card][data-feed-phase10-near="1"],
  .feed-phase10-content-visibility-ok #profile-feed [data-post-card][data-feed-phase10-near="1"] {
    contain-intrinsic-size: auto;
  }
}


/* Feed Phase 11 uses a JS idle/request scheduler only. No sidebar selectors or layout hooks are added here. */


/* Feed Phase 12: network retry / offline guard. Feed/profile-feed only; no sidebar selectors. */
.feed-phase12-retry-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  padding: 13px 14px;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .10);
  color: #0f172a;
}
.feed-phase12-retry-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(24, 119, 242, .10);
  color: #1877f2;
  font-size: 19px;
  font-weight: 900;
}
.feed-phase12-retry-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.feed-phase12-retry-copy strong {
  font-size: 14px;
  line-height: 1.2;
}
.feed-phase12-retry-copy span {
  font-size: 12px;
  line-height: 1.35;
  color: #64748b;
}
.feed-phase12-retry-card button {
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #1877f2, #145db8);
  box-shadow: 0 8px 18px rgba(24, 119, 242, .20);
}
.feed-phase12-retry-card button:hover,
.feed-phase12-retry-card button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}
.feed-phase12-offline-pill {
  position: sticky;
  top: 72px;
  z-index: 31;
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: 8px auto 12px;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  color: #78350f;
  background: rgba(254, 243, 199, .97);
  border: 1px solid rgba(245, 158, 11, .24);
  box-shadow: 0 10px 24px rgba(120, 53, 15, .12);
}
@media (max-width: 720px) {
  .feed-phase12-retry-card {
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding: 12px;
  }
  .feed-phase12-retry-card button {
    grid-column: 1 / -1;
    width: 100%;
  }
  .feed-phase12-offline-pill {
    top: 58px;
    font-size: 12px;
  }
}
