/* KeneAI's live bubble: colour + motion per cue (see public/js/live-bubble.js).
   Palette mid-tones that read in light and dark. Motion differs per cue so
   colour is never the only signal. */
.lb-teal   { --c: #1D9E75; }
.lb-amber  { --c: #BA7517; }
.lb-blue   { --c: #378ADD; }
.lb-purple { --c: #7F77DD; }
.lb-gray   { --c: #888780; }

.message.lb-live .lb-cue.lb-cue {
  display: flex; align-items: center; gap: .65rem;
  border-color: color-mix(in srgb, var(--c) 55%, transparent);
}
.lb-ic { width: 28px; height: 22px; display: flex; align-items: center; justify-content: center; flex: none; gap: 3px; }
.lb-chip { display: flex; align-items: center; gap: .5rem; font-size: .8rem; margin-bottom: .4rem; color: var(--c); }
.lb-chip .lb-ic { width: 22px; height: 16px; }

.lb-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.lb-still { opacity: .6; }
.lb-breathe { animation: lb-br 2.4s ease-in-out infinite; }
.lb-breathe.lb-slow { animation-duration: 4.5s; }
@keyframes lb-br { 0%,100% { transform: scale(.8); opacity: .55; } 50% { transform: scale(1.25); opacity: 1; } }

.lb-gather { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.lb-gather::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--c); animation: lb-ga 1.8s ease-in infinite; }
@keyframes lb-ga { 0% { transform: scale(1.2); opacity: 0; } 30% { opacity: .9; } 100% { transform: scale(.4); opacity: 0; } }

.lb-d3 { display: flex; gap: 3px; align-items: center; }
.lb-d3 i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); display: block; animation: lb-bn 1.1s ease-in-out infinite; }
.lb-d3 i:nth-child(2) { animation-delay: .15s; }
.lb-d3 i:nth-child(3) { animation-delay: .3s; }
@keyframes lb-bn { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

.lb-ring { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.lb-ring::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--c); animation: lb-rg 1.1s ease-out infinite; }
@keyframes lb-rg { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }

.lb-eq { display: flex; gap: 3px; align-items: center; }
.lb-eq i { width: 3px; border-radius: 2px; background: var(--c); display: block; animation: lb-eq 1s ease-in-out infinite; }
.lb-eq i:nth-child(1) { height: 8px; }
.lb-eq i:nth-child(2) { height: 16px; animation-delay: .2s; }
.lb-eq i:nth-child(3) { height: 12px; animation-delay: .4s; }
@keyframes lb-eq { 0%,100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }

.lb-pz { display: flex; gap: 3px; }
.lb-pz i { width: 4px; height: 14px; background: var(--c); border-radius: 1px; display: block; }

@media (prefers-reduced-motion: reduce) {
  .lb-breathe, .lb-gather::after, .lb-d3 i, .lb-ring::after, .lb-eq i { animation: none !important; }
}
