.pull-refresh-indicator {
  --pull-distance: 0px;
  position: fixed;
  z-index: 30;
  top: max(0.5rem, env(safe-area-inset-top));
  left: 50%;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  background: var(--paper);
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% + var(--pull-distance)));
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.pull-refresh-indicator.is-visible {
  opacity: 1;
}

.pull-refresh-indicator.is-ready {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.pull-refresh-indicator.is-refreshing .pull-refresh-icon {
  animation: pull-refresh-spin 800ms linear infinite;
}

.pull-refresh-icon {
  display: inline-grid;
  width: 1rem;
  height: 1rem;
  place-items: center;
}

.pull-refresh-icon svg,
.card-icon svg,
.button-icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.pull-refresh-icon svg {
  width: 1rem;
  height: 1rem;
}

.pull-refresh-indicator.is-ready .pull-refresh-icon {
  transform: rotate(180deg);
}

@keyframes pull-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pull-refresh-indicator {
    display: none;
  }
}
