.pwa-refresh-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9999px;
  background: transparent;
  color: #a1a1aa;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.pwa-refresh-btn:hover {
  color: #fff;
  border-color: #3f3f46;
  background: rgba(39, 39, 42, 0.65);
}

.pwa-refresh-btn--loading {
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(16, 185, 129, 0.12);
  pointer-events: none;
  cursor: wait;
}

.pwa-refresh-btn--loading i {
  animation: pwa-refresh-spin 0.65s linear infinite;
}

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

@media (max-width: 767px) {
  html.pwa-standalone .pwa-refresh-btn {
    display: inline-flex;
  }

  html.pwa-standalone.pwa-refreshing::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 250;
    background: linear-gradient(90deg, transparent, #10b981, transparent);
    background-size: 200% 100%;
    animation: pwa-refresh-bar 0.9s ease-in-out infinite;
    pointer-events: none;
  }
}

@keyframes pwa-refresh-bar {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}