/* "Typing…" and "Recording a voice note…" in a chat (shared/conversation-activity.js LOOK; same on iPhone and iPad).
   The bubble is a received message's card, so it sits exactly where their next message will appear. */
.vibe-activity-item{animation:activity-in var(--sp-dur-snappy,510ms) var(--sp-ease-snappy,ease-out) both}
@keyframes activity-in{from{opacity:0;transform:translateY(6px) scale(.96)}to{opacity:1;transform:none}}
.vibe-message.vibe-activity{display:inline-flex;align-items:center;min-height:21px;width:auto;max-width:max-content;cursor:default}
/* Typing: a 2×2 violet square turns a quarter, pauses, turns again; its squares breathe. */
.activity-square{display:grid;grid-template-columns:7px 7px;gap:3px;margin:0 6px;animation:activity-turn 2.4s cubic-bezier(.6,0,.4,1) infinite}
.activity-square i{width:7px;height:7px;border-radius:2px;background:#7a45f0;animation:activity-breathe 1.2s ease-in-out infinite alternate}
.activity-square i:nth-child(2),.activity-square i:nth-child(3){animation-delay:.6s}
@keyframes activity-turn{0%,20%{transform:rotate(0)}50%,70%{transform:rotate(90deg)}100%{transform:rotate(180deg)}}
@keyframes activity-breathe{from{opacity:.35}to{opacity:1}}
/* Recording: a violet mic lights up and pulses, bars move, until the voice note arrives. */
.vibe-activity.is-recording{gap:10px}
.activity-mic{flex:none;width:23px;height:23px;border-radius:7px;display:grid;place-items:center;background:#7a45f0;animation:activity-glow 1.2s ease-in-out infinite}
.activity-mic svg{width:12px;height:12px;fill:#fff}
@keyframes activity-glow{0%,100%{box-shadow:0 0 0 0 rgba(122,69,240,.55);filter:brightness(1)}50%{box-shadow:0 0 0 7px rgba(122,69,240,0);filter:brightness(1.25)}}
.activity-bars{display:inline-flex;gap:2px;align-items:center;height:18px}
.activity-bars i{width:3px;height:4px;border-radius:2px;background:#7a45f0;animation:activity-level .6s ease-in-out infinite alternate}
.activity-bars i:nth-child(odd){animation-duration:.45s}.activity-bars i:nth-child(3n){animation-duration:.75s}
@keyframes activity-level{from{height:4px;opacity:.45}to{height:18px;opacity:1}}
.activity-label{font-size:13px;font-weight:700;color:#7a45f0}
@media (prefers-reduced-motion:reduce){.vibe-activity-item,.activity-square,.activity-square i,.activity-mic,.activity-bars i{animation:none}.activity-bars i{height:10px}}
