/* YZPullRefresh — shared pull-to-refresh component (yzpr- prefix to avoid conflicts) */
.yzpr-indicator {
  position: fixed;
  /* Offset below the fixed mobile top app bar (#yznav-topbar) when present.
     Falls back to the safe-area top when there is no top bar (desktop / other pages). */
  top: var(--yzptr-top-offset, max(10px, env(safe-area-inset-top)));
  left: 50%;
  z-index: 12000;
  width: min(calc(100vw - 28px), 420px);
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 999px;

  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;

  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(15, 23, 42, .10);
  box-shadow:
    0 18px 44px rgba(15, 23, 42, .16),
    inset 0 1px 0 rgba(255, 255, 255, .92);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-18px) scale(.96);
  transition:
    opacity 160ms cubic-bezier(.22, 1, .36, 1),
    transform 160ms cubic-bezier(.22, 1, .36, 1);
}

.yzpr-indicator.yzpr-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.yzpr-spinner {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 3px solid rgba(15, 23, 42, .10);
  border-top-color: var(--primary-2, #155EEF);
  transform: rotate(0deg);
}

.yzpr-indicator.yzpr-ready .yzpr-spinner,
.yzpr-indicator.yzpr-loading .yzpr-spinner {
  animation: yzprSpin .78s linear infinite;
}

.yzpr-text {
  color: var(--ink, #07111F);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.5;
  text-align: start;
}

@keyframes yzprSpin {
  to {
    transform: rotate(360deg);
  }
}
