/* Waiting screens of the cabinet (layout B): a veil over the working card, or a server-rendered waiting card.
   Tokens only (site/styles.css); see site/busy.js. */
.busy-host { position: relative; }
.busy-veil { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; padding: 44px 20px 20px; text-align: center; border-radius: inherit; background: rgba(16, 14, 12, .9); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: busy-in .2s var(--ease) both; }
.busy-veil.busy-out { animation: busy-out .35s var(--ease) both; }
.busy-veil.busy-ok, .busy-veil.busy-error { cursor: pointer; }
.busy-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 20px; text-align: center; }
.busy-capy { width: 88px; height: 88px; flex: none; animation: busy-hop 1.4s var(--ease) infinite; }
.busy-ok .busy-capy, .busy-error .busy-capy { animation: busy-pop .45s var(--ease) both; }
.busy-title { font-size: 16px; line-height: 1.35; color: var(--text); max-width: 34ch; }
.busy-sub { font-size: 13px; color: var(--text-muted); max-width: 40ch; }
.busy-error .busy-title { color: var(--err); }
.busy-dots { display: inline-flex; gap: 5px; height: 8px; align-items: center; }
.busy-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: busy-dot 1.2s infinite; }
.busy-dots i:nth-child(2) { animation-delay: .15s; }
.busy-dots i:nth-child(3) { animation-delay: .3s; }
.busy-steps { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; text-align: left; font-size: 13px; }
.busy-steps li { display: flex; align-items: center; gap: 9px; color: var(--text-muted); }
.busy-steps li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--border-strong); }
.busy-steps li.is-done { color: var(--text); }
.busy-steps li.is-done::before { border-color: var(--ok); background: var(--ok); }
.busy-steps li.is-now { color: var(--text); }
.busy-steps li.is-now::before { border-color: var(--accent); background: var(--accent); animation: busy-dot 1.2s infinite; }
.busy-timer { font-family: var(--mono); font-size: 12px; color: var(--text-faint); }
.busy-timer[hidden] { display: none; }
@keyframes busy-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes busy-out { to { opacity: 0; } }
@keyframes busy-hop { 0%, 100% { transform: none; } 40% { transform: translateY(-6%); } }
@keyframes busy-pop { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }
@keyframes busy-dot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .busy-capy, .busy-dots i, .busy-steps li.is-now::before, .busy-veil, .busy-veil.busy-out { animation: none; }
}
@media (max-width: 760px) {
  .busy-capy { width: 72px; height: 72px; }
  .busy-veil { padding: 14px; }
}
.busy-host:has(> .busy-veil) { min-height: 300px; }
