.demo {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px -26px #00000026;
  overflow: hidden;
}

.demo-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 19px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.demo-top strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.demo-content {
  padding: 28px 28px 24px;
}

.demo-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
  gap: 25px;
}

.demo-tabs button {
  padding: 0 0 13px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  color: var(--muted);
  min-height: 44px;
}

.demo-tabs button[aria-selected="true"] {
  color: var(--blue);
  border-color: var(--blue);
  font-weight: 600;
}

.demo-question {
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.4;
  font-weight: 600;
  min-height: 100px;
  margin-bottom: 34px;
}

.demo-panel {
  min-height: 310px;
  display: flex;
  flex-direction: column;
}

.audio-player {
  width: 100%;
  margin-top: auto;
}

.audio-player audio {
  display: block;
  width: 100%;
  height: 54px;
  accent-color: var(--blue);
}

.audio-note {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}

.sample-answer {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 22px;
}

.follow-up {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.follow-up p {
  font-size: 16px;
  color: var(--ink);
}

.follow-up .question-label {
  margin-bottom: 10px;
}

.stage-2 .audio-player {
  margin-top: 0;
  margin-bottom: 28px;
}

.answer-transcript {
  background: #f3f5f8;
  border-radius: 8px;
  padding: 20px;
  font-size: 17px;
  line-height: 1.7;
}

.audio-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: #a51f1f;
  margin-top: 12px;
}

.audio-error[hidden] {
  display: none;
}

.audio-error button {
  border: 0;
  color: var(--blue);
  background: transparent;
  min-height: 44px;
  padding: 8px;
}
