/* The connection glyph and what a board shows while a read is slow or after it failed: AppSignal and
   BoardConnection on Android and iOS, with SignalTokens' sizes and timing (wave 1.4 s, badge after the fade). */

/* ---------- The glyph (48 × 48, shared with the apps) ---------- */
.signal{display:block;flex:none;overflow:visible}
.signal-arc{stroke:currentColor;stroke-width:4.2;stroke-linecap:round}
.signal-dot{fill:currentColor}
.signal-reaching{color:var(--soft-primary-ink)}
.signal-lost{color:var(--muted)}
/* A loss keeps the inner arc and fades the outer two; the badge then pops in once. */
.signal-lost .signal-arc:not(:first-child){opacity:.22;animation:signal-fade .36s var(--ease-standard) backwards}
.signal-badge circle:first-child{fill:var(--soft-danger-ink)}
.signal-badge path{stroke:var(--card);stroke-width:2.2;stroke-linecap:round}
.signal-badge-dot{fill:var(--card)}
.signal-badge{transform-box:fill-box;transform-origin:center;animation:signal-pop .5s cubic-bezier(.34,1.56,.64,1) .48s backwards}
@keyframes signal-fade{from{opacity:1}}
@keyframes signal-pop{from{transform:scale(0)}}
/* Each arc lights up in turn, from the dot outwards, while a request is on its way. */
.signal-reaching .signal-arc{animation:signal-wave 1.4s ease-in-out infinite;animation-delay:calc(var(--arc) * .224s)}
@keyframes signal-wave{0%,45%,100%{opacity:.22}22.5%{opacity:1}}

/* ---------- The card in place of a board's rows ---------- */
.board-connection{display:flex;flex-direction:column;align-items:center;margin-top:20px;padding:24px 18px;text-align:center;border:1px solid var(--line);border-radius:var(--radius-xl);background:var(--surface-secondary)}
.board-connection-halo{display:grid;place-items:center;width:112px;height:112px;border-radius:50%;background:color-mix(in srgb,var(--soft-mint) 65%,transparent)}
.board-connection-halo .signal{width:64px;height:64px}
.board-page .board-connection h2{margin:16px 0 0;color:var(--ink);font:600 22px/29px var(--app-font)}
.board-connection p{max-width:320px;margin:8px 0 0;color:var(--muted);font:500 14px/20px var(--app-font)}
.board-connection .button{margin-top:24px;min-width:160px}

/* ---------- The hint that joins slow placeholders, and the quiet inline retry ---------- */
.board-slow-hint{display:flex;align-items:center;gap:8px;margin:16px 0 0;color:var(--muted);font:600 12px/16px var(--app-font);visibility:hidden;animation:board-slow-hint .36s var(--ease-out) var(--slow-delay) forwards}
.board-slow-hint .signal,.board-inline-error .signal{width:18px;height:18px}
@keyframes board-slow-hint{from{visibility:visible;opacity:0;transform:translateY(-4px)}to{visibility:visible;opacity:1;transform:none}}
.board-inline-error{display:flex;align-items:center;gap:8px;margin-top:8px;padding:4px 0}
.board-inline-error p{flex:1;margin:0;font:600 12px/16px var(--app-font);color:var(--muted)}
.board-inline-error .link{min-height:44px;padding:0 12px;border-radius:var(--radius-button);font-size:14px}
.board-inline-error .link:hover{background:var(--soft-primary)}

/* Reduced motion (styles.css stops every animation): resting frames, and the hint still appears on time. */
@media (prefers-reduced-motion: reduce){
  .board-slow-hint{animation:board-slow-hint-show 1ms linear var(--slow-delay) forwards!important}
  @keyframes board-slow-hint-show{to{visibility:visible}}
}
