

.workspace.is-live .call-pill {
  background: #effaf3;
  color: #17643a;
  border: 1px solid #c9ead7;
  font-weight: 900;
  letter-spacing: .04em;
}



.live-controls button:focus-visible {
  outline: 3px solid #f6df57;
  outline-offset: 3px;
}

.live-demo-recovery {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #dbe0e9;
  border-radius: 12px;
  background: #fffef7;
  color: #172152;
}

.live-demo-recovery[hidden] {
  display: none;
}

.live-demo-recovery-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.live-demo-recovery-heading strong {
  font-size: 14px;
}

.live-demo-recovery p {
  margin: 8px 0;
  font-size: 12px;
  line-height: 1.5;
}

.live-demo-recovery details summary {
  width: fit-content;
  color: #173edb;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.live-demo-recovery-heading button {
  border: 0;
  padding: 4px;
  background: transparent;
  color: #53607b;
  font: inherit;
  font-size: 11px;
  text-decoration: underline;
  cursor: pointer;
}

.live-demo-recovery #live-demo-retry {
  min-height: 42px;
  margin-top: 12px;
  padding: 9px 16px;
}

.live-demo-recovery button:focus-visible,
.live-demo-recovery summary:focus-visible {
  outline: 3px solid #173edb;
  outline-offset: 3px;
}

.live-controls {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}

.live-controls[hidden] {
  display: none;
}

.live-controls button {
  border: 1px solid #cbd5ee;
  border-radius: 7px;
  background: #fff;
  color: #172152;
  padding: 6px 9px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.live-controls .live-end-button {
  color: #fff;
  border-color: #173edb;
  background: #173edb;
}

.workspace.is-live .workspace-top .status-dot {
  background: #2eaf70;
  box-shadow: 0 0 0 4px rgb(46 175 112 / 14%);
}

.workspace.is-live .wave span {
  animation: live-wave .9s ease-in-out infinite alternate;
}

.workspace.is-live .wave span:nth-child(3n) { animation-delay: -.45s; }
.workspace.is-live .wave span:nth-child(3n + 1) { animation-delay: -.2s; }

.assistant-turn,
.caller-turn {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 9px 10px;
  border-radius: 8px;
  line-height: 1.5;
}

.assistant-turn { background: #f0f4ff; }
.caller-turn { background: #fff9d8; }
.assistant-turn b,
.caller-turn b { color: #173edb; font-size: 11px; }
.assistant-turn span,
.caller-turn span { min-width: 0; overflow-wrap: anywhere; }

.workspace.is-live .conversation-head span:first-child {
  color: #173edb;
  font-weight: 850;
}

.workspace.is-live .outcome.changed {
  border-color: #c7d5ff;
  background: #f5f7ff;
}

.workspace.is-live .outcome.changed .outcome-icon {
  color: #173edb;
  background: #e4ebff;
}

@keyframes live-wave {
  from { transform: scaleY(.45); opacity: .55; }
  to { transform: scaleY(1.15); opacity: 1; }
}

@media (max-width: 600px) {
  .live-controls { gap: 5px; }
  .live-controls button { padding: 6px 7px; font-size: 10px; }
  .assistant-turn,
  .caller-turn { grid-template-columns: 68px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .workspace.is-live .wave span { transition: none; animation: none; }
}
