.turbo-progress-bar {
  height: 3px;
  background: var(--brand-text);
  top: env(safe-area-inset-top, 0px);
}

form[aria-busy="true"] input[type="submit"],
form[aria-busy="true"] button {
  cursor: progress;
}

.pulse {
  width: 20px;
  height: 20px;
  flex: none;
}

.pulse-stem {
  opacity: 0.35;
}

.pulse-dot {
  fill: var(--brand-text);
  transform-box: view-box;
  transform-origin: 49px 16px;
  animation: pulse-beat 1100ms cubic-bezier(0.3, 0, 0.2, 1) infinite;
}

@keyframes pulse-beat {
  0% { transform: scale(1); }
  14% { transform: scale(1.4); }
  28% { transform: scale(1); }
  42% { transform: scale(1.2); }
  56%, 100% { transform: scale(1); }
}

@keyframes pulse-fade {
  from { opacity: 1; }
  to { opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-dot {
    animation: pulse-fade 2000ms ease-in-out infinite alternate;
  }
}

.busy-note {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

form[data-busy-scope][aria-busy="true"] .busy-note,
[data-busy-scope]:has(form[aria-busy="true"]) .busy-note {
  display: flex;
}

.busy-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.net-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  border-top: 2px solid var(--danger);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.875rem;
}

.net-bar[hidden] {
  display: none;
}

.net-bar-slow {
  border-top-color: var(--warning);
}

.net-bar span {
  flex: 1 1 12rem;
}
