/* Uses the merged LIGHTMODE surfaces, typography and controls. */
.voice-demo-launch {
  margin-top: 16px;
  width: 100%;
}
.voice-demo-dialog {
  width: min(960px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid var(--control-border);
  border-radius: 24px;
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: 0 24px 80px rgb(26 39 53 / 20%);
}
.voice-demo-dialog::backdrop {
  background: rgb(25 35 48 / 40%);
  backdrop-filter: blur(4px);
}
.voice-demo-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 32px 24px;
  border-bottom: 1px solid var(--line);
}
.voice-demo-eyebrow {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 8px;
}
.voice-demo-heading h2 {
  font:
    750 32px/1.12 Dragon,
    "Instrument Sans",
    sans-serif;
  font-variation-settings:
    "Inkt" 10,
    "Angl" 10;
  letter-spacing: 0;
}
.voice-demo-heading .icon-button {
  flex-shrink: 0;
}
.voice-demo-body {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 420px;
}
.voice-demo-controls {
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface-panel);
}
.voice-demo-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  color: var(--action-orange);
  background: var(--surface-raised);
  border: 1px solid var(--control-border);
  margin-bottom: 8px;
}
.voice-demo-avatar svg {
  width: 28px;
  height: 28px;
}
.voice-demo-controls h3 {
  font-size: 18px;
  letter-spacing: -0.02em;
}
.voice-demo-controls > p {
  font-size: 13px;
  color: var(--muted);
}
.voice-demo-controls label {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
}
.voice-demo-controls select {
  width: 100%;
  background: var(--surface-raised);
  border-color: var(--control-border);
  border-radius: 8px;
}
.voice-demo-controls .field-help {
  min-height: 38px;
  font-size: 12px;
}
.voice-demo-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: 4px;
}
.voice-demo-actions button {
  width: 100%;
}
.voice-demo-actions [data-demo-stop] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.voice-demo-controls .voice-demo-status {
  min-height: 40px;
  color: var(--ink);
}
.voice-demo-controls .voice-demo-status.error {
  color: #b33024;
}
.voice-demo-controls audio {
  width: 100%;
  height: 40px;
}
.voice-demo-controls .voice-demo-notice {
  font-size: 11px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--control-border);
}
.voice-demo-conversation {
  padding: 28px 32px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.voice-demo-conversation > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 20px;
}
.voice-demo-conversation h3 {
  font-size: 14px;
}
.voice-demo-conversation > header span {
  font-size: 11px;
  color: var(--muted);
}
.voice-demo-transcript {
  height: 350px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 2px 4px 16px;
}
.voice-demo-placeholder {
  margin: auto;
  color: var(--muted);
  max-width: 220px;
  text-align: center;
  font-size: 14px;
}
.voice-demo-turn {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px 12px 12px 4px;
  background: var(--surface-panel);
  max-width: 92%;
  overflow-wrap: anywhere;
}
.voice-demo-turn strong {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  color: var(--muted);
}
.voice-demo-turn p {
  font-size: 14px;
  white-space: pre-wrap;
}
.voice-demo-customer {
  align-self: flex-end;
  background: var(--surface-raised);
  border-radius: 12px 12px 4px 12px;
}
.voice-demo-only {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 32px;
  background: var(--surface-panel);
  border-radius: 24px;
}
.voice-demo-only > div {
  width: min(100%, 400px);
  padding: 32px;
  border-radius: 16px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
}
.voice-demo-only h1 {
  font-family: Dragon, sans-serif;
  font-size: 40px;
  margin-bottom: 16px;
}
.voice-demo-only p {
  color: var(--muted);
}
@media (max-width: 720px) {
  .voice-demo-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 20px;
  }
  .voice-demo-heading {
    padding: 20px;
    align-items: flex-start;
  }
  .voice-demo-heading h2 {
    font-size: 29px;
  }
  .voice-demo-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .voice-demo-controls {
    padding: 20px;
    gap: 10px;
  }
  .voice-demo-avatar {
    display: none;
  }
  .voice-demo-controls .field-help {
    min-height: 0;
  }
  .voice-demo-controls .voice-demo-status {
    min-height: 0;
  }
  .voice-demo-controls .voice-demo-notice {
    margin-top: 0;
    padding-top: 12px;
  }
  .voice-demo-conversation {
    padding: 20px;
  }
  .voice-demo-transcript {
    height: 220px;
    min-height: 120px;
  }
}
