/* =========================================================================
   Shared — Processing overlay (covers a card while server work is in flight)
   ========================================================================= */
.processing-overlay {
  /* Fixed to the viewport (not absolute) so the scrim + blur cover the WHOLE
     screen. Absolute + inset:0 sized it to the nearest positioned ancestor,
     #screen-call — a centered, max-width:1180px column — so the blur only
     covered that call card and left the header, footer, and side gutters clear.
     Fixed fills the viewport regardless of that ancestor. */
  position: fixed;
  inset: 0;
  /* Scrim tints the page base, so it reads correctly in light and dark. */
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  /* Above every live element and the fixed app footer: `.call-grid`
     (assistant-chat.css) is z-index:20 and the app footer is z-index:19. Keep
     this comfortably above both so the overlay covers the entire screen. */
  z-index: 100;
  backdrop-filter: blur(4px);
}

.processing-spinner {
  width: 32px;
  height: 32px;
  border: 2.5px solid var(--border-emph);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.processing-message {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.03em;
  /* Rotating copy (see dom.js): fade out/in on each phrase swap. */
  transition: opacity 0.24s var(--ease);
}
.processing-message.is-swapping { opacity: 0; }
