[data-wd-demo="on-device-british-speech-recognition"] .wd-card-header .wd-input {
  width: 180px;
  flex: none;
}

[data-wd-demo="on-device-british-speech-recognition"] .wd-table td {
  white-space: normal;
}

[data-wd-demo="on-device-british-speech-recognition"] .asr-phone {
  width: 280px;
  margin: 0 auto;
  background: #0e1114;
  border: 10px solid #3a3f44;
  border-radius: 32px;
  min-height: 440px;
  padding: 8px 14px 16px;
  display: flex;
  flex-direction: column;
}

[data-wd-demo="on-device-british-speech-recognition"] .asr-notch {
  width: 96px;
  height: 16px;
  margin: 0 auto 10px;
  background: #050607;
  border-radius: 0 0 12px 12px;
}

[data-wd-demo="on-device-british-speech-recognition"] .asr-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 8px;
}

[data-wd-demo="on-device-british-speech-recognition"] .asr-thread {
  flex: 1;
  display: grid;
  gap: 8px;
  align-content: end;
  min-height: 220px;
}

[data-wd-demo="on-device-british-speech-recognition"] .asr-bubble {
  max-width: 92%;
  padding: 8px 10px;
  border-radius: 14px 14px 14px 4px;
  background: #2c3034;
  font-size: 13px;
}

[data-wd-demo="on-device-british-speech-recognition"] .asr-bubble.user {
  justify-self: end;
  background: #0d6efd;
  color: #fff;
  border-radius: 14px 14px 4px 14px;
}

[data-wd-demo="on-device-british-speech-recognition"] .asr-partial {
  color: #8f979e;
  background: transparent;
  border: 1px dashed #373b3e;
}

[data-wd-demo="on-device-british-speech-recognition"] .asr-partial.is-cleared {
  border-style: solid;
  color: #6c757d;
  font-size: 11px;
}

[data-wd-demo="on-device-british-speech-recognition"] .asr-meter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 28px;
  margin: 10px 0 8px;
}

[data-wd-demo="on-device-british-speech-recognition"] .asr-meter i {
  display: block;
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: #0dcaf0;
}

[data-wd-demo="on-device-british-speech-recognition"] .asr-phone.is-live .asr-meter i {
  animation: b031-asr 0.7s ease-in-out infinite;
}

[data-wd-demo="on-device-british-speech-recognition"] .asr-phone.is-live .asr-meter i:nth-child(2n) { animation-delay: 0.1s; }
[data-wd-demo="on-device-british-speech-recognition"] .asr-phone.is-live .asr-meter i:nth-child(3n) { animation-delay: 0.2s; }

[data-wd-demo="on-device-british-speech-recognition"] .asr-hold {
  height: 48px;
  border: 0;
  border-radius: 24px;
  background: #198754;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

[data-wd-demo="on-device-british-speech-recognition"] .asr-hold.is-live {
  background: #dc3545;
}

[data-wd-demo="on-device-british-speech-recognition"] .asr-audio {
  display: block;
  width: 100%;
  margin-top: 12px;
}

[data-wd-demo="on-device-british-speech-recognition"] .asr-live-line {
  display: grid;
  gap: 6px;
}

[data-wd-demo="on-device-british-speech-recognition"] .asr-live-line [data-seg] {
  padding: 2px 4px;
  border-radius: 6px;
}

[data-wd-demo="on-device-british-speech-recognition"] .asr-live-line [data-seg].is-on {
  background: rgba(255, 255, 255, 0.28);
}

[data-wd-demo="on-device-british-speech-recognition"] tr.is-on td {
  background: rgba(13, 202, 240, 0.22);
}

[data-wd-demo="on-device-british-speech-recognition"] .asr-warn {
  margin: auto 0;
  padding: 16px 8px;
  text-align: center;
}

@keyframes b031-asr {
  0%, 100% { height: 8px; }
  50% { height: 22px; }
}
