html.nyvi-pull-enabled, html.nyvi-pull-enabled body {
  overscroll-behavior-y: none;
}

#pull-refresh {
  position: fixed;
  z-index: 70;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  left: 50%;
  transform: translate(-50%, calc(var(--pull-progress, 0) * 12px));
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-strong, var(--accent));
  box-shadow: 0 4px 16px rgb(42 30 40 / 12%);
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
}

#pull-refresh svg {
  width: 20px;
  height: 20px;
  transform: rotate(calc(var(--pull-progress, 0) * 180deg));
}

#pull-refresh.loading svg { animation: nyvi-refresh-turn .85s linear infinite; }
@keyframes nyvi-refresh-turn { to { transform: rotate(540deg); } }

@media (prefers-reduced-motion: reduce) {
  #pull-refresh { transform: translateX(-50%); }
  #pull-refresh svg, #pull-refresh.loading svg { transform: none; animation: none; }
}
