body { margin: 0; }
.app-loader {
  --loader-bg: #e3eeff; --loader-fg: #14171f; --loader-muted: #4f5a70; --loader-mark: hsl(225 40% 12%); --loader-on-mark: #fff;
  display: flex; width: 100%; min-height: 16rem; box-sizing: border-box;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 1.25rem; padding: 2rem; text-align: center; color: var(--loader-fg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) {
  .app-loader { --loader-bg: #0b1222; --loader-fg: #eef1f6; --loader-muted: #98a0ad; --loader-mark: hsl(216 45% 96%); --loader-on-mark: hsl(221 51% 9%); }
}
.app-loader--fullscreen { min-height: 100vh; min-height: 100dvh; background: var(--loader-bg); }
.app-loader__mark {
  display: grid; width: 4.5rem; height: 4.5rem; place-items: center;
  border-radius: 1.25rem; color: var(--loader-on-mark);
  background: var(--loader-mark);
  animation: coach-breathe 2.6s ease-in-out infinite;
}
.app-loader__mark svg { width: 66%; height: 66%; }
.app-loader__brand { font-size: 1.125rem; font-weight: 700; letter-spacing: -.03em; }
.app-loader__brand span { color: var(--loader-muted); font-weight: 600; }
.app-loader__copy { margin: -.5rem 0 0; color: var(--loader-muted); font-size: .875rem; line-height: 1.6; }
.app-loader__bars { display: flex; height: 1.5rem; align-items: center; gap: .35rem; }
.app-loader__bars i {
  display: block; width: .25rem; height: 1.25rem; border-radius: 1rem;
  background: var(--loader-fg); animation: coach-rhythm 1.2s ease-in-out infinite;
}
.app-loader__bars i:nth-child(2) { animation-delay: .15s; }
.app-loader__bars i:nth-child(3) { animation-delay: .3s; }
.app-loader__bars i:nth-child(4) { animation-delay: .45s; }
.app-loader__bars i:nth-child(5) { animation-delay: .6s; }
.app-loader--compact .app-loader__mark { width: 3.5rem; height: 3.5rem; border-radius: 1rem; }
.app-loader--compact .app-loader__mark svg { width: 66%; height: 66%; }
@keyframes coach-rhythm {
  0%, 100% { transform: scaleY(.35); opacity: .35; }
  50% { transform: scaleY(1); opacity: 1; }
}
@keyframes coach-breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .app-loader__mark, .app-loader__bars i { animation: none; }
  .app-loader__bars i:nth-child(even) { height: .75rem; opacity: .5; }
}
