/* Ember Mail loading screen: Pip, the proactive helper robot, replaces the grey route-loading spinner.
   One inline SVG (bulwark/brand/pip.svg, also rendered by components/mail/loading-pip.tsx) plus this CSS.
   Scoped to the one full-screen loader (h-screen shell + the exact 5-class spinner); the other animate-spin
   uses in Bulwark have different class sets and are untouched. Served by mail-bulwark-edge.
   Palette = the ember tokens (invite/static/ember.css, mirrored in tokens.css): ember #cb3814 / #ff9e71,
   ink #191210 / #f5f1ed, canvas #fefaf7 / #110c0a. No external assets, no inline JS (CSP). */
.flex.h-screen.items-center.justify-center.bg-background
  .animate-spin.rounded-full.h-12.w-12.border-b-2.border-foreground.mx-auto {
  width: 96px;
  height: 112px;
  border: 0;
  border-radius: 0;
  animation: pip-bob 2.6s ease-in-out infinite;
  background: url("/ember-brand/pip.svg") center / contain no-repeat;
}
.flex.h-screen.items-center.justify-center.bg-background
  .animate-spin.rounded-full.h-12.w-12.border-b-2.border-foreground.mx-auto + p {
  margin-top: 0.75rem;
  letter-spacing: 0.01em;
}
/* The component renders its own SVG, so the edge background image must not double up. */
.flex.h-screen.items-center.justify-center.bg-background .ember-pip-loader {
  background: none;
  animation: none;
  width: auto;
  height: auto;
}
.ember-pip-stage { position: relative; width: 96px; height: 112px; margin: 0 auto; }
.ember-pip-stage .ember-pip { width: 100%; height: 100%; display: block; animation: pip-bob 2.6s ease-in-out infinite; }
.ember-pip-stage.is-thinking .ember-pip { animation: pip-bob 2.6s ease-in-out infinite, pip-tilt 3.2s ease-in-out infinite; }
.ember-pip-line { margin-top: 0.75rem; letter-spacing: 0.01em; }
@keyframes pip-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes pip-tilt {
  0%, 100% { rotate: 0deg; }
  40% { rotate: -3deg; }
  70% { rotate: 3deg; }
}
/* Pip keeps its warm cream shell in both themes: a dark shell read as a black
   robot on phones (10-22). Only the soft parts adapt to the dark canvas. */
.dark .ember-pip .stem { stroke: #ada29b; }
.dark .ember-pip .hover { fill: #fa8054; }
@media (prefers-reduced-motion: reduce) {
  .flex.h-screen.items-center.justify-center.bg-background
    .animate-spin.rounded-full.h-12.w-12.border-b-2.border-foreground.mx-auto,
  .ember-pip-stage .ember-pip,
  .ember-pip-stage.is-thinking .ember-pip {
    animation: none;
  }
}
