.speech-heading .practice-title {
  margin-bottom: 1rem;
}

.speech-card {
  margin-top: 1rem;
}

.speech-card > h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.04em;
}

.speech-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.speech-cues {
  margin: 0 0 1rem;
  padding-inline-start: 1.25rem;
  color: #435b50;
  line-height: 1.55;
}

.speech-example,
.speech-script,
.speech-take {
  min-width: 0;
  padding: clamp(0.9rem, 3vw, 1.2rem);
  border: 1px solid #d7e4d7;
  border-radius: 0.65rem;
  background: #f0f5eb;
}

.speech-script {
  margin-top: 0.75rem;
  background: #faf9f3;
}

.speech-reminder {
  margin-block: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-inline-start: 3px solid #9fb68d;
  background: #f4f7ee;
  font-size: 0.9rem;
}
.speech-reminder p {
  margin-top: 0.3rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.speech-transcript {
  margin: 0.65rem 0 0;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.speech-demo-transcript {
  margin-top: 0.75rem;
}

.speech-demo-transcript summary {
  cursor: pointer;
  font-weight: 650;
}

.speech-practice .speech-audio {
  max-width: 100%;
  width: min(100%, 24rem);
}

.speech-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.85rem 0 0.65rem;
}

.speech-practice [hidden] {
  display: none;
}

.speech-clock {
  font:
    650 clamp(1.45rem, 5vw, 1.85rem) / 1.2 ui-monospace,
    Consolas,
    monospace;
  font-variant-numeric: tabular-nums;
  color: #153e33;
}

.speech-capture-status {
  min-height: 1.5em;
  margin-bottom: 0;
}

.speech-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 0.65rem;
}

.speech-take-meta {
  display: flex;
  gap: 0.4rem 0.7rem;
  flex-wrap: wrap;
  margin: 0.2rem 0 0.45rem;
  font:
    650 0.78rem/1.3 ui-monospace,
    Consolas,
    monospace;
}

.speech-take .practice-hint:last-child {
  margin-bottom: 0;
}

.speech-gaps {
  margin-top: 0.8rem;
}

.speech-gap-markers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.speech-gaps [role="status"]:empty {
  margin: 0;
}

.speech-assessment select {
  width: min(100%, 22rem);
  min-height: 2.65rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #bbcbbd;
  border-radius: 8px;
  background: #fcfdf9;
  color: #16362e;
  font: inherit;
}

.speech-practice select:focus-visible {
  outline: 3px solid #527e43;
  outline-offset: 3px;
}
