/* Zero-height overlay: arriving posts never move the page being read. */
.feed-updates {
  position: sticky;
  top: calc(var(--feed-header-height, 140px) + 12px);
  z-index: 9;
  display: flex;
  justify-content: center;
  height: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.feed-updates[hidden] { display: none !important; }

.feed-updates-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  gap: 8px;
  width: max-content;
  max-width: calc(100% - 32px);
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid #c7e778;
  border-radius: 24px;
  background: var(--lime, #d7f58a);
  color: #18230e;
  box-shadow: 0 3px 16px #0006;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
}

.feed-updates-button:hover { background: var(--lime-hover, #e0ffa1); }
.feed-updates-button:focus-visible { outline: 2px solid var(--text, #f1f3f2); outline-offset: 4px; }
.feed-updates-button:disabled, .feed-updates-loading .feed-updates-button { cursor: wait; opacity: .85; }
.feed-updates-button .icon { width: 16px; height: 16px; }
.feed-updates-button [data-feed-updates-label] { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 540px) {
  .feed-updates { top: calc(var(--feed-header-height, 170px) + 10px); }
  .feed-updates-button { max-width: calc(100% - 28px); padding: 10px 14px; font-size: 11px; }
}
