.voice-capture [hidden] {
  display: none;
}

.voice-capture-heading .practice-title {
  margin-bottom: .8rem;
}

.voice-capture-card {
  margin-top: 1rem;
}

.voice-capture-card h2 {
  margin: 0 0 .9rem;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  letter-spacing: -.04em;
}

.voice-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: .75rem;
}

.voice-settings-grid label, .voice-position {
  display: grid;
  gap: .4rem;
  min-width: 0;
  font-size: .9rem;
  font-weight: 700;
}

.voice-position {
  max-width: 28rem;
  margin-top: .8rem;
}

.voice-capture :is(select, input[type="text"]) {
  width: 100%;
  min-height: 2.7rem;
  border: 1px solid #bbcbbd;
  border-radius: 8px;
  padding: .55rem .7rem;
  background: #fcfdf9;
  color: #16362e;
  font: inherit;
  font-weight: 450;
}

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

.voice-capture-prompt {
  white-space: pre-wrap;
}

.voice-simulator {
  margin-bottom: 1rem;
  padding: .8rem .9rem;
  border: 1px solid #d6e4d7;
  border-radius: 8px;
  background: #f8fbf5;
}

.voice-simulator h3 {
  margin: 0 0 .35rem;
  font-size: 1rem;
}

.voice-simulator .practice-hint {
  margin-bottom: 0;
}

.voice-device-details {
  max-width: 34rem;
  padding: .6rem .8rem;
  border-radius: 8px;
  border: 1px solid #d6e4d7;
}

.voice-device-details summary {
  cursor: pointer;
  font-weight: 650;
}

.voice-device-details dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem .8rem;
  margin: .65rem 0 0;
  font-size: .88rem;
}

.voice-device-details dd {
  margin: 0;
}

.voice-check-results {
  margin-block: .4rem;
  padding-inline-start: 1.25rem;
  color: #40594e;
  font-size: .9rem;
  line-height: 1.5;
}

.voice-check-results:empty {
  margin: 0;
}

.voice-baseline {
  padding: .65rem .8rem;
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: #edf3e6;
  font-size: .9rem;
}

.voice-traces {
  display: grid;
  gap: .6rem;
}

.voice-trace {
  min-width: 0;
  margin: .6rem 0;
  padding: .65rem .8rem;
  border: 1px solid #d6e4d7;
  border-radius: 10px;
  background: #f8fbf5;
}

.voice-trace figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .3rem .75rem;
  margin-bottom: .6rem;
  font-size: .88rem;
}

.voice-trace figcaption span, .voice-axis, .voice-capture-clock {
  font-family: ui-monospace, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

.voice-capture .voice-plot {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  gap: .4rem;
}

.voice-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: .71rem;
  color: #40594e;
}

.voice-capture .voice-plot canvas {
  display: block;
  width: 100%;
  height: clamp(70px, 16vw, 124px);
}

.voice-trace .practice-hint {
  margin-bottom: 0;
}

.voice-capture-clock {
  display: block;
  margin-top: .75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #153e33;
}
