:root {
  color-scheme: dark;
  --bg: #0b0c10;
  --panel: #15171c;
  --text: #f4f5f7;
  --muted: #9aa0ad;
  --border: #2a2e38;
  --accent: #c9b37e;
  --user-bg: #2a3344;
  --assistant-bg: #1b1d24;
  --mic: #d7263d;
  --mic-soft: #3a1520;
  --focus-ring: #c9b37e;
  --listen: #ff8a9a;
  --speak: #8fd4a4;
  --radius: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.4;
  overflow-x: hidden;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #111;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
a, button, input { font: inherit; }
button {
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
}
button:hover { border-color: var(--accent); }
*:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}
.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 720px;
  margin: 0 auto;
}
.app-top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
}
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  padding-top: calc(0.5rem + env(safe-area-inset-top, 0px));
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.brand { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
.brand h1 {
  font-size: 0.98rem;
  margin: 0;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-mark { color: var(--accent); font-size: 1.05rem; }
.header-actions { display: flex; align-items: center; gap: 0.35rem; flex-shrink: 0; }
.badge {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--muted);
}
.mute-button {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  background: transparent;
}
.mute-button[aria-pressed="true"] { opacity: 0.55; }

.state-indicator {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--muted);
  padding: 0.35rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: #101218;
}
.build-stamp {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.state-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}
.state-indicator[data-state="idle"] .state-dot { background: #6e7685; }
.state-indicator[data-state="listening"] { color: var(--listen); }
.state-indicator[data-state="listening"] .state-dot {
  background: var(--mic);
  box-shadow: 0 0 0 0 rgba(215, 38, 61, 0.55);
  animation: listen-pulse 1.2s ease-out infinite;
}
.state-indicator[data-state="your-turn"] {
  color: var(--accent);
  background: #1a1810;
  border-bottom-color: var(--accent);
  animation: your-turn-bar-pulse 1.4s ease-out infinite;
}
.state-indicator[data-state="your-turn"] .state-text {
  font-size: 0.86rem;
  font-weight: 800;
}
.state-indicator[data-state="your-turn"] .state-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(201, 179, 126, 0.55);
  animation: your-turn-pulse 1.1s ease-out infinite;
}
.your-turn-cue {
  flex-shrink: 0;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--accent);
  background: #1a1810;
  animation: your-turn-bar-pulse 1.4s ease-out infinite;
}
.your-turn-cue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}
.your-turn-cue-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--accent);
  min-width: 0;
}
.your-turn-live {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.your-turn-wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}
.wave-bar {
  display: block;
  width: 3px;
  height: 16px;
  border-radius: 1px;
  background: var(--accent);
  transform-origin: center bottom;
  animation: wave-listen 0.85s ease-in-out infinite;
}
.wave-bar:nth-child(1) { animation-delay: 0s; animation-duration: 0.72s; }
.wave-bar:nth-child(2) { animation-delay: 0.08s; animation-duration: 0.95s; }
.wave-bar:nth-child(3) { animation-delay: 0.16s; animation-duration: 0.68s; }
.wave-bar:nth-child(4) { animation-delay: 0.04s; animation-duration: 1.05s; }
.wave-bar:nth-child(5) { animation-delay: 0.2s; animation-duration: 0.78s; }
.wave-bar:nth-child(6) { animation-delay: 0.12s; animation-duration: 0.9s; }
.wave-bar:nth-child(7) { animation-delay: 0.24s; animation-duration: 0.74s; }
.your-turn-dots {
  display: flex;
  align-items: center;
  gap: 3px;
}
.listen-dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: listen-dot 1.05s ease-in-out infinite;
}
.listen-dot:nth-child(2) { animation-delay: 0.18s; }
.listen-dot:nth-child(3) { animation-delay: 0.36s; }
.your-turn-cue.is-mic-open .your-turn-wave,
.your-turn-cue.is-mic-open .your-turn-dots {
  visibility: visible;
}
.your-turn-cue-lead {
  margin: 0.12rem 0 0;
  font-size: 0.8rem;
  color: var(--text);
}
.state-indicator[data-state="thinking"] { color: var(--accent); }
.state-indicator[data-state="thinking"] .state-dot { background: var(--accent); }
.state-indicator[data-state="speaking"] {
  color: var(--speak);
  background: #101814;
}
.state-indicator[data-state="speaking"] .state-dot {
  background: var(--speak);
  animation: speak-pulse 1s ease-in-out infinite;
}
.state-indicator[data-state="blocked"] {
  color: var(--listen);
  background: #1a1014;
}
.state-indicator[data-state="blocked"] .state-dot { background: var(--mic); }
.mic-retry {
  flex-shrink: 0;
  padding: 0.08rem 0.55rem;
  min-height: 24px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #111;
  background: var(--accent);
  border-color: var(--accent);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.55rem 0.85rem 0.15rem;
}
.first-run {
  flex-shrink: 0;
  margin: 0 0 0.55rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--assistant-bg);
}
.first-run-title {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  font-weight: 700;
}
.first-run-lead {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
}
.first-run-steps {
  margin: 0.45rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.first-run-steps li { margin: 0.12rem 0; }
.first-run.is-live {
  border-color: var(--accent);
  background: #1a1810;
}
.first-run-live .first-run-title {
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
}
.first-run-live .first-run-lead {
  margin: 0;
  color: var(--text);
  font-size: 0.86rem;
}
.first-run.is-done {
  display: none !important;
}

.messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.15rem 0 0.55rem;
  -webkit-overflow-scrolling: touch;
}
.bubble {
  max-width: 88%;
  padding: 0.55rem 0.75rem;
  border-radius: 16px;
  font-size: 0.94rem;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.bubble-user {
  align-self: flex-end;
  background: var(--user-bg);
  border-bottom-right-radius: 6px;
}
.bubble-assistant {
  align-self: flex-start;
  background: var(--assistant-bg);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
}
.bubble-interim {
  opacity: 0.78;
  font-style: italic;
  border: 1px dashed var(--listen);
}
.bubble-interim::before {
  content: "Hearing\2026 ";
  font-style: normal;
  font-weight: 700;
  color: var(--listen);
}
.bubble-speaking {
  box-shadow: inset 3px 0 0 var(--speak);
  border-color: var(--speak);
}
.bubble-speaking::after {
  content: "Speaking";
  display: block;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--speak);
}
.fallback-note { font-size: 0.78rem; color: var(--muted); margin: 0 0 0.35rem; }

.composer {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.composer-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}
.composer-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
#textInput {
  flex: 1;
  min-width: 0;
  padding: 0.62rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
}
.send-button {
  background: var(--accent);
  color: #111;
  border-color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
.pause-hint {
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.speak-hint {
  margin: 0.12rem 0 0;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 650;
  color: var(--speak);
  letter-spacing: 0.02em;
  opacity: 0.92;
}
.return-hint {
  margin: 0.12rem 0 0;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  opacity: 0.96;
  animation: return-speak-cue 2.5s ease-out 1;
}
.reinterrupt-hint {
  margin: 0.12rem 0 0;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  opacity: 0.96;
  animation: reinterrupt-flash 1s ease-out 1;
}
.interrupt-hint {
  margin: 0.12rem 0 0;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 650;
  color: var(--listen);
  letter-spacing: 0.02em;
  opacity: 0.92;
  animation: interrupt-flash 1.2s ease-out 1;
}
.continue-hint {
  margin: 0.12rem 0 0;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 650;
  color: var(--listen);
  letter-spacing: 0.02em;
  opacity: 0.92;
  animation: continue-cue 4s ease-out 1;
}
.listen-resume-hint {
  margin: 0.12rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  opacity: 0.96;
  animation: listen-resume-cue 4s ease-out 1;
}
.resumed-listen-hint {
  margin: 0.12rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  opacity: 0.96;
  animation: resumed-listen-flash 0.9s ease-out 1;
}
.after-resume-hint {
  margin: 0.12rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  opacity: 0.96;
  animation: after-resume-flash 0.9s ease-out 1;
}
.listening-again-hint {
  margin: 0.12rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  opacity: 0.96;
  animation: listening-again-flash 0.9s ease-out 1;
}
.still-with-you-hint {
  margin: 0.12rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  opacity: 0.96;
  animation: still-with-you-flash 0.9s ease-out 1;
}
.keep-going-hint {
  margin: 0.12rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  opacity: 0.96;
  animation: keep-going-flash 0.9s ease-out 1;
}
.right-here-hint {
  margin: 0.12rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  opacity: 0.96;
  animation: right-here-flash 0.9s ease-out 1;
}
.still-here-hint {
  margin: 0.12rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  opacity: 0.96;
  animation: still-here-flash 0.9s ease-out 1;
}
.right-with-you-hint {
  margin: 0.12rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  opacity: 0.96;
  animation: right-with-you-flash 0.9s ease-out 1;
}
.right-beside-you-hint {
  margin: 0.12rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  opacity: 0.96;
  animation: right-beside-you-flash 0.9s ease-out 1;
}
.still-beside-you-hint {
  margin: 0.12rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  opacity: 0.96;
  animation: still-beside-you-flash 0.9s ease-out 1;
}
.right-there-hint {
  margin: 0.12rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  opacity: 0.96;
  animation: right-there-flash 0.9s ease-out 1;
}
.still-there-hint {
  margin: 0.12rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  opacity: 0.96;
  animation: still-there-flash 0.9s ease-out 1;
}
.right-nearby-hint {
  margin: 0.12rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  opacity: 0.96;
  animation: right-nearby-flash 0.9s ease-out 1;
}
.still-nearby-hint {
  margin: 0.12rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  opacity: 0.96;
  animation: still-nearby-flash 0.9s ease-out 1;
}
.right-around-hint {
  margin: 0.12rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  opacity: 0.96;
  animation: right-around-flash 0.9s ease-out 1;
}
.still-around-hint {
  margin: 0.12rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  opacity: 0.96;
  animation: still-around-flash 0.9s ease-out 1;
}
.right-close-hint {
  margin: 0.12rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  opacity: 0.96;
  animation: right-close-flash 0.9s ease-out 1;
}
.still-close-hint {
  margin: 0.12rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  opacity: 0.96;
  animation: still-close-flash 0.9s ease-out 1;
}
.right-near-hint {
  margin: 0.12rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  opacity: 0.96;
  animation: right-near-flash 0.9s ease-out 1;
}
.resume-hint {
  margin: 0.12rem 0 0;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 650;
  color: var(--accent);
  letter-spacing: 0.02em;
  opacity: 0.88;
}
.paused-tip {
  flex-shrink: 0;
  margin: 0 0 0.55rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--accent);
  border-radius: 14px;
  background: #1a1810;
}
.paused-tip-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0 0 0.2rem;
}
.paused-tip-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
}
.paused-elapsed {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.paused-tip-lead {
  margin: 0;
  color: var(--text);
  font-size: 0.86rem;
}
.state-indicator[data-state="paused"] {
  color: var(--accent);
  background: #14130e;
}
.state-indicator[data-state="paused"] .state-dot { background: var(--muted); }
.mic-button {
  position: relative;
  background: var(--mic);
  color: #fff;
  border-color: var(--mic);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0.95rem;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}
.mic-button[aria-pressed="true"] {
  background: var(--mic-soft);
  border-color: var(--mic);
  box-shadow: 0 0 0 3px rgba(215, 38, 61, 0.35);
}
.mic-copy {
  font-size: 0.9rem;
  white-space: nowrap;
}
.mic-pulse {
  display: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}
.mic-button[aria-pressed="true"] .mic-pulse {
  display: inline-block;
  animation: listen-pulse 1.2s ease-out infinite;
}
.mic-button.is-your-turn {
  box-shadow: 0 0 0 3px rgba(201, 179, 126, 0.45);
}
.mic-button.is-your-turn .mic-pulse {
  background: var(--accent);
  animation: your-turn-pulse 1.1s ease-out infinite;
}
.mic-button.is-paused {
  box-shadow: none;
}
.mic-button.is-speaking {
  box-shadow: 0 0 0 3px rgba(143, 212, 164, 0.45);
}
.mic-button.is-return-speak {
  box-shadow: 0 0 0 3px rgba(201, 179, 126, 0.55);
}
.mic-button.is-reinterrupt {
  box-shadow: 0 0 0 3px rgba(201, 179, 126, 0.65);
}
.mic-button.is-listen-resume {
  box-shadow: 0 0 0 3px rgba(201, 179, 126, 0.7);
}
.mic-button.is-resumed-listen {
  box-shadow: 0 0 0 3px rgba(201, 179, 126, 0.7);
}
.mic-button.is-after-resume {
  box-shadow: 0 0 0 3px rgba(201, 179, 126, 0.7);
}
.mic-button.is-listening-again {
  box-shadow: 0 0 0 3px rgba(201, 179, 126, 0.7);
}
.mic-button.is-still-with-you {
  box-shadow: 0 0 0 3px rgba(201, 179, 126, 0.7);
}
.mic-button.is-keep-going {
  box-shadow: 0 0 0 3px rgba(201, 179, 126, 0.7);
}
.mic-button.is-right-here {
  box-shadow: 0 0 0 3px rgba(201, 179, 126, 0.7);
}
.mic-button.is-still-here {
  box-shadow: 0 0 0 3px rgba(201, 179, 126, 0.7);
}
.mic-button.is-right-with-you {
  box-shadow: 0 0 0 3px rgba(201, 179, 126, 0.7);
}
.mic-button.is-right-beside-you {
  box-shadow: 0 0 0 3px rgba(201, 179, 126, 0.7);
}
.mic-button.is-still-beside-you {
  box-shadow: 0 0 0 3px rgba(201, 179, 126, 0.7);
}
.mic-button.is-right-there {
  box-shadow: 0 0 0 3px rgba(201, 179, 126, 0.7);
}
.mic-button.is-still-there {
  box-shadow: 0 0 0 3px rgba(201, 179, 126, 0.7);
}
.mic-button.is-right-nearby {
  box-shadow: 0 0 0 3px rgba(201, 179, 126, 0.7);
}
.mic-button.is-still-nearby {
  box-shadow: 0 0 0 3px rgba(201, 179, 126, 0.7);
}
.mic-button.is-right-around {
  box-shadow: 0 0 0 3px rgba(201, 179, 126, 0.7);
}
.mic-button.is-still-around {
  box-shadow: 0 0 0 3px rgba(201, 179, 126, 0.7);
}
.mic-button.is-right-close {
  box-shadow: 0 0 0 3px rgba(201, 179, 126, 0.7);
}
.mic-button.is-still-close {
  box-shadow: 0 0 0 3px rgba(201, 179, 126, 0.7);
}
.mic-button.is-right-near {
  box-shadow: 0 0 0 3px rgba(201, 179, 126, 0.7);
}
.app-footer { display: none; }
@media (min-width: 720px) {
  .app-footer {
    display: block;
    text-align: center;
    color: var(--muted);
    font-size: 0.75rem;
    padding: 0.35rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 480px) {
  html, body { overflow-x: hidden; }
  main { grid-template-columns: 1fr; }
  .app-shell { max-width: 100%; }
  .badge { font-size: 0.6rem; padding: 0.1rem 0.4rem; }
  .bubble { max-width: 94%; }
  .brand h1 { font-size: 0.92rem; }
  .build-stamp { font-size: 0.6rem; }
}
@media (max-width: 390px) {
  .badge { font-size: 0.58rem; }
  .build-stamp {
    display: inline;
    font-size: 0.58rem;
    visibility: visible;
  }
  .your-turn-cue-title { font-size: 0.82rem; }
  .wave-bar { width: 2px; }
}
@keyframes listen-pulse {
  0% { box-shadow: 0 0 0 0 rgba(215, 38, 61, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(215, 38, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(215, 38, 61, 0); }
}
@keyframes your-turn-pulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 179, 126, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(201, 179, 126, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 179, 126, 0); }
}
@keyframes your-turn-bar-pulse {
  0%, 100% { box-shadow: inset 0 0 0 0 rgba(201, 179, 126, 0); }
  50% { box-shadow: inset 0 0 0 2px rgba(201, 179, 126, 0.65); }
}
@keyframes speak-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
@keyframes interrupt-flash {
  0% { opacity: 0.45; }
  18% { opacity: 0.96; }
  70% { opacity: 0.92; }
  100% { opacity: 0.55; }
}
@keyframes continue-cue {
  0% { opacity: 0.35; }
  8% { opacity: 0.96; }
  82% { opacity: 0.92; }
  100% { opacity: 0.62; }
}
@keyframes listen-resume-cue {
  0% { opacity: 0.35; }
  10% { opacity: 1; }
  82% { opacity: 0.96; }
  100% { opacity: 0.7; }
}
@keyframes return-speak-cue {
  0% { opacity: 0.35; }
  10% { opacity: 1; }
  80% { opacity: 0.96; }
  100% { opacity: 0.88; }
}
@keyframes reinterrupt-flash {
  0% { opacity: 0.4; }
  16% { opacity: 1; }
  70% { opacity: 0.96; }
  100% { opacity: 0.7; }
}
@keyframes resumed-listen-flash {
  0% { opacity: 0.4; }
  16% { opacity: 1; }
  70% { opacity: 0.96; }
  100% { opacity: 0.7; }
}
@keyframes after-resume-flash {
  0% { opacity: 0.4; }
  16% { opacity: 1; }
  70% { opacity: 0.96; }
  100% { opacity: 0.7; }
}
@keyframes listening-again-flash {
  0% { opacity: 0.4; }
  16% { opacity: 1; }
  70% { opacity: 0.96; }
  100% { opacity: 0.7; }
}
@keyframes still-with-you-flash {
  0% { opacity: 0.4; }
  16% { opacity: 1; }
  70% { opacity: 0.96; }
  100% { opacity: 0.7; }
}
@keyframes keep-going-flash {
  0% { opacity: 0.4; }
  16% { opacity: 1; }
  70% { opacity: 0.96; }
  100% { opacity: 0.7; }
}
@keyframes right-here-flash {
  0% { opacity: 0.4; }
  16% { opacity: 1; }
  70% { opacity: 0.96; }
  100% { opacity: 0.7; }
}
@keyframes still-here-flash {
  0% { opacity: 0.4; }
  16% { opacity: 1; }
  70% { opacity: 0.96; }
  100% { opacity: 0.7; }
}
@keyframes right-with-you-flash {
  0% { opacity: 0.4; }
  16% { opacity: 1; }
  70% { opacity: 0.96; }
  100% { opacity: 0.7; }
}
@keyframes right-beside-you-flash {
  0% { opacity: 0.4; }
  16% { opacity: 1; }
  70% { opacity: 0.96; }
  100% { opacity: 0.7; }
}
@keyframes still-beside-you-flash {
  0% { opacity: 0.4; }
  16% { opacity: 1; }
  70% { opacity: 0.96; }
  100% { opacity: 0.7; }
}
@keyframes right-there-flash {
  0% { opacity: 0.4; }
  16% { opacity: 1; }
  70% { opacity: 0.96; }
  100% { opacity: 0.7; }
}
@keyframes still-there-flash {
  0% { opacity: 0.4; }
  16% { opacity: 1; }
  70% { opacity: 0.96; }
  100% { opacity: 0.7; }
}
@keyframes right-nearby-flash {
  0% { opacity: 0.4; }
  16% { opacity: 1; }
  70% { opacity: 0.96; }
  100% { opacity: 0.7; }
}
@keyframes still-nearby-flash {
  0% { opacity: 0.4; }
  16% { opacity: 1; }
  70% { opacity: 0.96; }
  100% { opacity: 0.7; }
}
@keyframes right-around-flash {
  0% { opacity: 0.4; }
  16% { opacity: 1; }
  70% { opacity: 0.96; }
  100% { opacity: 0.7; }
}
@keyframes still-around-flash {
  0% { opacity: 0.4; }
  16% { opacity: 1; }
  70% { opacity: 0.96; }
  100% { opacity: 0.7; }
}
@keyframes right-close-flash {
  0% { opacity: 0.4; }
  16% { opacity: 1; }
  70% { opacity: 0.96; }
  100% { opacity: 0.7; }
}
@keyframes still-close-flash {
  0% { opacity: 0.4; }
  16% { opacity: 1; }
  70% { opacity: 0.96; }
  100% { opacity: 0.7; }
}
@keyframes right-near-flash {
  0% { opacity: 0.4; }
  16% { opacity: 1; }
  70% { opacity: 0.96; }
  100% { opacity: 0.7; }
}
@keyframes wave-listen {
  0%, 100% { transform: scaleY(0.28); opacity: 0.55; }
  50% { transform: scaleY(1); opacity: 1; }
}
@keyframes listen-dot {
  0%, 80%, 100% { opacity: 0.28; transform: scale(0.7); }
  40% { opacity: 1; transform: scale(1); }
}

.bubble-error {
  align-self: flex-start;
  background: #3a1520;
  border: 1px solid var(--mic);
  color: #ffd2d8;
}
.bubble-fallback {
  opacity: 0.96;
  border-style: dashed;
}
