/* The working indicator both portals show while something slow is happening.
 *
 * THE HEADWATERS MARK, NOT A RING (Eric, 2026-08-09). It replaced a generic
 * bordered circle in the DocuSign overlays on both sides -- the customer's and
 * the reviewer's -- which was the one moment in either app that looked like
 * nobody had chosen it.
 *
 * RECOLOURED, NOT REDRAWN. The mark is a white PNG with a transparent
 * background, so it is used here as a MASK and the colour comes from
 * `background`. That is what makes it Headwaters blue without a second asset to
 * keep in step, and it means a future dark-on-light placement is a one-line
 * change rather than another file. The -webkit- prefix is still required by
 * Safari.
 *
 * MOTION IS DECORATION. Anything using this must also say in words what is
 * happening: the spin carries no information, and under
 * prefers-reduced-motion it becomes a pulse rather than disappearing, so the
 * indicator still reads as "busy" to somebody who has asked for less movement.
 */

.hwspin {
  width: 44px;
  height: 44px;
  background: var(--blue);
  -webkit-mask: url('/shared/img/headwaters-mark-white.png') center / contain no-repeat;
  mask: url('/shared/img/headwaters-mark-white.png') center / contain no-repeat;
  animation: hwspin-rotate 1.4s linear infinite;
}

/* On a dark ground -- the reviewer's full-screen working overlay -- where blue
 * on forest has too little contrast to read. */
.hwspin.on-dark {
  background: var(--white);
}

.hwspin.sm { width: 30px; height: 30px; }

/* Stopped, but still there: the overlay keeps the mark visible after the work
 * finishes so the panel does not empty out before the message is read. */
.hwspin.done { animation: none; }

@keyframes hwspin-rotate { to { transform: rotate(360deg); } }
@keyframes hwspin-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

@media (prefers-reduced-motion: reduce) {
  .hwspin { animation: hwspin-pulse 1.8s ease-in-out infinite; }
}
