#ptr-indicator {
  position: fixed;
  top: 0;
  left: 50%;
  width: 38px;
  height: 38px;
  margin-left: -19px;
  margin-top: -50px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 3px 14px rgba(15, 23, 42, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
  pointer-events: none;
  color: #64748b;
}

#ptr-indicator.ptr-visible {
  opacity: 1;
}

#ptr-indicator.ptr-ready {
  color: #0f172a;
}

#ptr-indicator.ptr-refreshing {
  opacity: 1;
}

#ptr-arrow {
  transition: transform 0.1s linear;
}

#ptr-indicator.ptr-refreshing #ptr-arrow {
  display: none;
}

#ptr-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid #e2e8f0;
  border-top-color: #0f172a;
  border-radius: 50%;
  animation: ptr-spin 0.65s linear infinite;
}

#ptr-indicator.ptr-refreshing #ptr-loader {
  display: block;
}

@keyframes ptr-spin {
  to { transform: rotate(360deg); }
}

/* Reduce the native overscroll "glow"/bounce fighting our own gesture
   while the app is running standalone. Harmless no-op in browsers that
   don't support the property. */
html.ptr-standalone,
html.ptr-standalone body {
  overscroll-behavior-y: contain;
}