@keyframes b001-stt-level {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

@keyframes b001-stt-ping {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  100% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
}

@keyframes b001-stt-row {
  from { background: rgba(13, 202, 240, 0.16); }
  to { background: transparent; }
}

[data-wd-demo="always-on-speech-transcription"] .wd-card-header .wd-input {
  width: 160px;
  margin: 0;
}

[data-wd-demo="always-on-speech-transcription"] .wd-table td,
[data-wd-demo="always-on-speech-transcription"] .wd-table th {
  white-space: normal;
}

[data-wd-demo="always-on-speech-transcription"] .stt-time {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--wd-muted);
}

[data-wd-demo="always-on-speech-transcription"] tr.is-low td {
  background: rgba(255, 193, 7, 0.1);
}

[data-wd-demo="always-on-speech-transcription"] tr.stt-in td {
  animation: b001-stt-row 0.45s ease;
}

[data-wd-demo="always-on-speech-transcription"] .stt-audio {
  display: block;
  width: 100%;
  margin: 8px 0 12px;
}

[data-wd-demo="always-on-speech-transcription"] tr.is-on td {
  background: rgba(13, 202, 240, 0.2);
}

[data-wd-demo="always-on-speech-transcription"] .stt-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  animation: b001-stt-ping 1.6s infinite;
}

[data-wd-demo="always-on-speech-transcription"] .stt-meter {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 46px;
  margin-bottom: 10px;
}

[data-wd-demo="always-on-speech-transcription"] .stt-meter i {
  display: block;
  width: 5px;
  height: 70%;
  border-radius: 3px;
  background: #4ade80;
  transform-origin: center bottom;
  animation: b001-stt-level 0.95s ease-in-out infinite;
}

[data-wd-demo="always-on-speech-transcription"] .stt-meter i:nth-child(1) { height: 28%; animation-delay: 0.05s; }
[data-wd-demo="always-on-speech-transcription"] .stt-meter i:nth-child(2) { height: 48%; animation-delay: 0.15s; }
[data-wd-demo="always-on-speech-transcription"] .stt-meter i:nth-child(3) { height: 72%; animation-delay: 0.02s; }
[data-wd-demo="always-on-speech-transcription"] .stt-meter i:nth-child(4) { height: 90%; animation-delay: 0.22s; }
[data-wd-demo="always-on-speech-transcription"] .stt-meter i:nth-child(5) { height: 60%; animation-delay: 0.08s; }
[data-wd-demo="always-on-speech-transcription"] .stt-meter i:nth-child(6) { height: 84%; animation-delay: 0.18s; }
[data-wd-demo="always-on-speech-transcription"] .stt-meter i:nth-child(7) { height: 40%; animation-delay: 0.28s; }
[data-wd-demo="always-on-speech-transcription"] .stt-meter i:nth-child(8) { height: 66%; animation-delay: 0.1s; }
[data-wd-demo="always-on-speech-transcription"] .stt-meter i:nth-child(9) { height: 34%; animation-delay: 0.24s; }
[data-wd-demo="always-on-speech-transcription"] .stt-meter i:nth-child(10) { height: 52%; animation-delay: 0.04s; }
[data-wd-demo="always-on-speech-transcription"] .stt-meter i:nth-child(11) { height: 26%; animation-delay: 0.16s; }

[data-wd-demo="always-on-speech-transcription"].is-idle .stt-meter i {
  animation: none;
  transform: scaleY(0.2);
  background: #8f979e;
}

[data-wd-demo="always-on-speech-transcription"].is-idle .stt-dot {
  animation: none;
  background: #ffc107;
  box-shadow: none;
}
