/* ============================================================
   BioFast — Exam Analysis LIVE viewers bar · design polish
   2026-11-20 · additive styling only (no markup/logic changes)
   Scopes: #root .exam-analysis .ea-live-viewers
   Adapts automatically to light/dark via the app's --ea-* tokens.
   ============================================================ */

/* ---------- Bar container: glassy gradient card ---------- */
#root .exam-analysis .ea-live-viewers{
  position:relative;
  padding:13px 16px 14px;
  border-radius:20px;
  border:1px solid var(--ea-line);
  background:
    radial-gradient(130% 150% at 100% 0%, rgba(16,185,129,.11), transparent 44%),
    radial-gradient(130% 160% at 0% 100%, rgba(20,184,166,.10), transparent 48%),
    linear-gradient(115deg, var(--ea-surface), var(--ea-field));
  box-shadow:
    0 14px 34px rgba(2,32,25,.14),
    0 2px 8px rgba(2,32,25,.08),
    inset 0 1px 0 var(--ea-glass-highlight);
  overflow:hidden;
}

/* soft sheen sweep */
#root .exam-analysis .ea-live-viewers::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(100deg, transparent 32%, rgba(255,255,255,.10) 46%, transparent 58%);
  transform:translateX(-180%);
  animation:bflv-sheen 7s ease-in-out 1.5s infinite;
}

/* ---------- LIVE pulse dot: glowing ripple ---------- */
#root .exam-analysis .ea-live-viewers__pulse{
  width:10px;
  height:10px;
  flex:0 0 10px;
  background:linear-gradient(135deg,#34d399,#0d9488);
  box-shadow:0 0 0 0 rgba(16,185,129,.55);
  animation:bflv-pulse 2.2s cubic-bezier(.4,0,.6,1) infinite;
}

@keyframes bflv-pulse{
  0%{box-shadow:0 0 0 0 rgba(16,185,129,.5)}
  70%{box-shadow:0 0 0 10px rgba(16,185,129,0)}
  100%{box-shadow:0 0 0 0 rgba(16,185,129,0)}
}

@keyframes bflv-sheen{
  0%{transform:translateX(-180%)}
  55%{transform:translateX(180%)}
  100%{transform:translateX(180%)}
}

/* ---------- Meta row ---------- */
#root .exam-analysis .ea-live-viewers__meta{gap:9px}

#root .exam-analysis .ea-live-viewers__meta strong{
  font-size:12.5px;
  font-weight:900;
  letter-spacing:-.1px;
  color:var(--ea-heading);
}

#root .exam-analysis .ea-live-viewers__meta small{
  font-size:10px;
  opacity:.85;
}

/* ---------- Names ticker: gradient fade edges ---------- */
#root .exam-analysis .ea-live-viewers__ticker{
  font-size:12.5px;
  font-weight:800;
  line-height:2;
  mask-image:linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

#root .exam-analysis .ea-live-viewers__track{gap:10px}
#root .exam-analysis .ea-live-viewers__set{gap:10px}

#root .exam-analysis .ea-live-viewers__name{
  gap:10px;
  text-shadow:0 1px 0 rgba(0,0,0,.06);
}

#root .exam-analysis .ea-live-viewers__name:after{
  width:4px;
  height:4px;
  flex-basis:4px;
  background:linear-gradient(135deg,#22c55e,#0ea5a4);
  box-shadow:0 0 6px rgba(20,184,166,.6);
  opacity:.9;
}

/* ---------- Count pill: green-teal gradient ---------- */
#root .exam-analysis .ea-live-viewers__count{
  min-width:56px;
  padding:5px 13px;
  border:none;
  color:#ffffff;
  font-size:11.5px;
  font-weight:900;
  background:linear-gradient(135deg,#0d9488,#22c55e);
  box-shadow:
    0 6px 16px rgba(13,148,136,.35),
    inset 0 1px 0 rgba(255,255,255,.30);
  text-shadow:0 1px 1px rgba(0,64,48,.30);
}

/* ---------- Empty / connecting states ---------- */
#root .exam-analysis .ea-live-viewers__empty{
  font-size:12px;
  font-weight:700;
  color:var(--ea-muted);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  #root .exam-analysis .ea-live-viewers::before{animation:none;opacity:.4;transform:none}
  #root .exam-analysis .ea-live-viewers__pulse{animation:none;box-shadow:0 0 0 3px rgba(16,185,129,.25)}
}
