:root {
  --page: #f6f3ea;
  --panel: #fdfcf9;
  --panel-2: #efebdd;
  --ink: #1c202c;
  --dim: #6b6458;
  --line: #e3ddcc;
  --amber: #edb100;
  --brown: #8a4a2b;
  --serif: Georgia, "Songti TC", "Hiragino Mincho ProN", "Noto Serif TC", serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "PingFang TC",
    sans-serif;
  color: var(--ink);
  background: var(--page);
  font-size: 14px;
  line-height: 1.6;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 1160px;
  margin: auto;
  padding: 0 32px 48px;
}
header {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  font-style: italic;
}
.brand img {
  object-fit: contain;
}
.experiment {
  color: var(--brown);
  font-size: 12px;
}
h1 {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.25;
  margin: 28px 0;
}
h2 {
  font-size: 16px;
  margin: 0;
  font-weight: 650;
}
h3 {
  font-size: 14px;
  margin: 26px 0 10px;
  font-weight: 650;
}
h4 {
  font-size: 12px;
  margin: 0 0 8px;
  font-weight: 650;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.results {
  border-left: 1.5px solid var(--line);
  padding-left: 32px;
  min-width: 0;
}
.results > h2 {
  margin-bottom: 16px;
}
.setup {
  min-width: 0;
}
.settings {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 6px;
}
.input-row {
  display: flex;
  gap: 6px;
  min-width: 0;
}
.input-row select {
  min-width: 0;
}
.input-row button {
  flex: none;
}
select,
input:not([type="checkbox"]),
textarea {
  width: 100%;
  min-width: 0;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  padding: 9px 10px;
  caret-color: var(--brown);
}
textarea {
  resize: vertical;
}
.check {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
  margin: 12px 0;
}
.check input {
  margin: 0;
  accent-color: var(--brown);
}
button {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid transparent;
  border-radius: 6px;
  padding: 8px 14px;
  background: var(--amber);
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
button:hover:not(:disabled) {
  background: #e3a900;
}
button:active {
  background: #d89f00;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.secondary {
  border-color: var(--line);
  background: var(--panel);
  color: var(--ink);
}
.secondary:hover:not(:disabled) {
  background: var(--panel-2);
}
.text-button {
  background: transparent;
  border-color: transparent;
  color: var(--brown);
  padding: 6px 0;
}
.text-button:hover:not(:disabled) {
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 3px;
}
::selection {
  background: #edb10055;
  color: var(--ink);
}
details {
  margin: 12px 0;
  color: var(--dim);
  font-size: 12px;
}
summary {
  width: fit-content;
  cursor: pointer;
  user-select: none;
  color: var(--brown);
  padding: 4px 0;
}
details p {
  margin: 10px 0;
  max-width: 70ch;
}
details a {
  color: var(--brown);
  text-underline-offset: 3px;
}
.advanced {
  margin: 12px 0 22px;
}
.advanced > label:not(.check) {
  margin-top: 12px;
}
.hint,
.instruction {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.6;
}
.hint:empty {
  display: none;
}
.instruction {
  margin: 8px 0 14px;
}
.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.title-row h3 {
  margin: 24px 0 8px;
}
.title-row > button {
  align-self: center;
}
.title-row h2 {
  margin: 0;
}
blockquote {
  margin: 0;
  padding: 18px 20px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  font-size: 20px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
blockquote:lang(bn) {
  font-family: "Noto Sans Bengali", "Kohinoor Bangla", sans-serif;
  letter-spacing: 0;
  line-height: 2;
}
.capture {
  margin-top: 20px;
}
.capture-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
.capture-label strong {
  font-weight: 500;
}
.capture-label span {
  font-family: var(--mono);
  color: var(--dim);
}
progress {
  width: 100%;
  height: 5px;
  accent-color: var(--brown);
  margin: 10px 0 14px;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
#status {
  font-size: 12px;
  color: var(--dim);
  margin: 12px 0;
  min-height: 1.6em;
}
.empty {
  font-size: 13px;
  color: var(--dim);
  margin: 0;
  padding: 8px 0 24px;
}
.playback {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.playback label {
  font-weight: 500;
}
audio {
  width: 100%;
  height: 34px;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
th {
  font-size: 11px;
  font-weight: 500;
  color: var(--dim);
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1.5px solid var(--line);
}
td {
  padding: 9px 6px;
  border-bottom: 1px solid var(--line);
}
th:not(:first-child),
td:not(:first-child) {
  text-align: right;
}
td:not(:first-child) {
  font-family: var(--mono);
  white-space: nowrap;
}
td:first-child {
  max-width: 220px;
}
#qualityStatus,
#asrStatus {
  margin: 8px 0;
}
.transcript-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0;
}
.transcript-pair p {
  font-size: 13px;
  overflow-wrap: anywhere;
  margin: 0;
}
.recommendation {
  margin: 12px 0;
}
.recommendation > p {
  font-size: 13px;
  margin: 0;
}
.recommendation details {
  margin: 2px 0 14px;
}
.report-actions {
  border-top: 1.5px solid var(--line);
  padding-top: 16px;
  margin-top: 20px;
}
.difference {
  font-size: 13px;
  overflow-wrap: anywhere;
  margin: 8px 0;
}
.difference mark {
  background: #f7dfad;
  color: #623d19;
  padding: 1px 3px;
}
.difference del {
  color: #92361f;
  background: #f7e0d8;
}
.difference ins {
  color: #315a2a;
  background: #e3ecd9;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
@media (max-width: 850px) {
  main {
    padding: 0 22px 32px;
  }
  .workspace {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .results {
    border-left: 0;
    border-top: 1.5px solid var(--line);
    padding: 22px 0 0;
  }
  h1 {
    margin: 22px 0;
    font-size: 26px;
  }
  .empty {
    padding-bottom: 0;
  }
}
@media (max-width: 480px) {
  main {
    padding: 0 18px 28px;
  }
  header {
    height: 58px;
  }
  .settings {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  select,
  input:not([type="checkbox"]),
  textarea {
    font-size: 16px;
  }
  blockquote {
    font-size: 19px;
    padding: 14px 16px;
  }
  .playback,
  .transcript-pair {
    grid-template-columns: 1fr;
  }
  .capture-label {
    align-items: center;
  }
  th,
  td {
    padding-inline: 4px;
  }
  td:first-child {
    max-width: 145px;
  }
}
.result-summary {
  margin: 0 0 8px;
}
.result-summary > div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.result-summary dt {
  color: var(--dim);
  font-size: 13px;
}
.result-summary dd {
  margin: 0;
  min-width: 0;
}
.result-summary strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}
.result-summary dd p {
  font-size: 13px;
  color: var(--dim);
  margin: 6px 0 0;
  line-height: 1.7;
}
.analysis-status {
  font-size: 12px;
  color: var(--brown);
  min-height: 1.6em;
  margin: 12px 0 18px;
}
.analysis-status:empty {
  display: none;
}
#technicalDetails,
#asrSection {
  margin: 16px 0;
}
#technicalDetails > h3 {
  margin-top: 16px;
}
#technicalDetails .recommendation {
  margin-top: 20px;
}
#technicalDetails .recommendation:first-of-type {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
@media (max-width: 480px) {
  .result-summary > div {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
  }
  .result-summary strong {
    font-size: 14px;
  }
}
.take-label-title {
  margin-top: 16px;
}
.take-label {
  margin-bottom: 14px;
}
.prominent-metrics {
  margin-bottom: 8px;
}
.prominent-metrics caption {
  text-align: left;
  color: var(--dim);
  font-size: 12px;
  padding: 0 0 8px;
}
.prominent-metrics th[scope="row"] {
  font-family: inherit;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  max-width: 150px;
  line-height: 1.5;
}
.prominent-metrics td {
  padding-block: 10px;
}
.metric-number {
  font: 600 18px/1.4 var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.metric-unit {
  font-size: 11px;
  color: var(--dim);
  margin-left: 4px;
}
.metric-group th {
  padding: 14px 6px 5px;
  color: var(--brown);
  font-size: 11px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.metric-delta {
  display: block;
  font: 11px/1.6 var(--mono);
  color: var(--dim);
  margin-top: 3px;
}
.device-comparison {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1.5px solid var(--line);
  scroll-margin-top: 20px;
  min-width: 0;
}
.comparison-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.comparison-tools label {
  margin: 0;
  flex: none;
}
.comparison-tools select {
  max-width: 270px;
}
.comparison-scroll caption {
  text-align: left;
  font-size: 12px;
  color: var(--dim);
  padding-bottom: 8px;
}
.comparison-scroll table {
  table-layout: fixed;
  min-width: 560px;
}
.comparison-scroll th:first-child {
  width: 160px;
  text-align: left;
}
.comparison-scroll th:not(:first-child),
.comparison-scroll td {
  min-width: 150px;
  text-align: right;
}
.comparison-scroll .metric-number {
  font-size: 17px;
}
.comparison-scroll th[scope="row"] {
  color: var(--ink);
  font-weight: 500;
  max-width: none;
}
.comparison-device {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.comparison-meta {
  display: block;
  font-size: 10px;
  line-height: 1.7;
  color: var(--dim);
  font-weight: 400;
  margin-top: 5px;
}
#compareLink {
  font-size: 12px;
  color: var(--brown);
  text-underline-offset: 3px;
}
.results > .title-row {
  margin-bottom: 16px;
}
@media (max-width: 480px) {
  .metric-number {
    font-size: 16px;
  }
  .prominent-metrics th[scope="row"] {
    max-width: 100px;
    font-size: 11px;
  }
  .prominent-metrics td {
    padding-inline: 4px;
  }
  .metric-unit {
    font-size: 10px;
    margin-left: 2px;
  }
  .device-comparison {
    margin-top: 28px;
  }
  .comparison-tools {
    align-items: baseline;
  }
  .comparison-tools select {
    font-size: 14px;
  }
  .comparison-scroll {
    max-width: 100%;
  }
}
.score-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0;
}
.score-controls label {
  margin: 0;
  white-space: nowrap;
}
.score-controls select {
  max-width: 230px;
  font-size: 13px;
}
.score-method {
  margin: 4px 0 16px;
}
.score-row {
  background: #edb10012;
}
.score-row th {
  color: var(--ink);
  font-weight: 650;
}
.score-row .metric-number {
  font-size: 23px;
  color: var(--brown);
}
.score-row td {
  padding-block: 14px;
}
.auto-asr {
  margin-top: 18px;
}
@media (max-width: 480px) {
  .score-row .metric-number {
    font-size: 19px;
  }
  .score-controls {
    gap: 8px;
  }
  .score-controls select {
    font-size: 13px;
  }
  .score-controls label {
    font-size: 11px;
  }
}
.listening-advice {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.7;
  margin: 12px 0;
}
.listening-advice:empty {
  display: none;
}
.comparison-swipe {
  display: none;
}
.comparison-scroll th[scope="row"],
.comparison-scroll thead th:first-child {
  position: sticky;
  left: 0;
  background: var(--page);
  z-index: 1;
}
.comparison-scroll .score-row th[scope="row"] {
  background: #f4ecd0;
}
@media (max-width: 480px) {
  .comparison-swipe {
    display: block;
    font-size: 11px;
    color: var(--brown);
    margin: 6px 0;
  }
}

/* Operate flow: actual time and completed work, separate from input level. */
#captureProgress {
  height: 7px;
  margin-bottom: 4px;
}
progress {
  appearance: none;
  border: 0;
  border-radius: 3px;
  overflow: hidden;
  background: var(--line);
}
progress::-webkit-progress-bar {
  background: var(--line);
  border-radius: 3px;
}
progress::-webkit-progress-value {
  background: var(--brown);
  border-radius: 3px;
}
progress::-moz-progress-bar {
  background: var(--brown);
  border-radius: 3px;
}
progress:not([value]) {
  background: var(--panel-2);
}
progress:not([value])::-webkit-progress-bar {
  background: var(--panel-2);
}
@keyframes pending-work {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(235%);
  }
}
.input-level {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--dim);
  font-size: 11px;
}
.input-level meter {
  width: 90px;
  height: 8px;
  accent-color: var(--brown);
}
.input-level meter::-webkit-meter-bar {
  border: none;
  background: var(--line);
}
.input-level meter::-webkit-meter-optimum-value {
  background: var(--brown);
}
.setup[data-recording="reading"] blockquote {
  border-color: var(--brown);
}
.workflow {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1.5px solid var(--line);
}
.workflow-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.workflow-heading strong {
  font-size: 14px;
  font-weight: 600;
}
#workflowElapsed {
  font-size: 11px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.task-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.task-list li {
  margin: 12px 0;
}
.task-list li > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-size: 12px;
}
.task-list li > div > span:last-child {
  color: var(--dim);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.task-list progress {
  display: block;
  height: 4px;
  margin: 6px 0 0;
}
.task-list [data-state="running"] > div > span:last-child {
  color: var(--brown);
}
.task-list [data-state="failed"] > div > span:last-child,
.task-list [data-state="partial"] > div > span:last-child {
  color: #92361f;
}
.task-list [data-state="complete"] > div > span:last-child {
  color: #315a2a;
}
.workflow-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.workflow-actions:has(button:not([hidden])) {
  margin-top: 16px;
}
.workflow-actions:not(:has(button:not([hidden]))) {
  display: none;
}
.metric-number {
  overflow-wrap: normal;
}
#resultsTitle {
  scroll-margin-top: 18px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media (max-width: 480px) {
  button {
    min-height: 42px;
  }
  .text-button {
    min-width: 42px;
  }
  .check {
    min-height: 32px;
    align-items: center;
  }
  .check input {
    width: 17px;
    height: 17px;
    flex: none;
  }
  .workflow-heading {
    flex-wrap: wrap;
    gap: 4px 12px;
  }
  .task-list li > div {
    gap: 8px;
  }
}
.workflow[data-complete="true"] .task-list {
  display: none;
}
.workflow[data-complete="true"] .workflow-heading {
  margin-bottom: 0;
}

.task-track {
  position: relative;
  overflow: hidden;
}
.task-track:has(progress:not([value]):not([hidden]))::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30%;
  height: 4px;
  background: var(--brown);
  border-radius: 3px;
  animation: pending-work 1.5s ease-in-out infinite alternate;
}
@media (prefers-reduced-motion: reduce) {
  .task-track:has(progress:not([value]):not([hidden]))::after {
    animation: none;
    opacity: 0.5;
  }
}

/* The test wizard owns the viewport; the detailed lab stays underneath. */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
#testWizard {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--page);
  color: var(--ink);
}
#testWizard::backdrop {
  background: var(--page);
}
body:has(#testWizard[open]) {
  overflow: hidden;
}
.wizard-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.wizard-header {
  flex: none;
  height: 80px;
  padding: 0 40px;
}
.wizard-header > span {
  font: 600 23px var(--serif);
}
.wizard-close {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  background: transparent;
  color: var(--ink);
}
.wizard-close:hover:not(:disabled) {
  background: var(--panel-2);
}
.wizard-steps {
  display: flex;
  flex: none;
  gap: 36px;
  justify-content: center;
  list-style: none;
  margin: 24px 0 0;
  padding: 0 24px;
}
.wizard-steps li {
  color: var(--dim);
  font-size: 18px;
  padding-bottom: 8px;
  border-bottom: 3px solid transparent;
}
.wizard-steps li[aria-current="step"] {
  color: var(--brown);
  border-bottom-color: var(--brown);
  font-weight: 650;
}
.wizard-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 28px 40px;
}
.wizard-page {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}
.wizard-page h2 {
  font-size: 38px;
  line-height: 1.3;
  margin: 0 0 24px;
  font-weight: 650;
}
.wizard-page h2:focus {
  outline: none;
}
.wizard-fields {
  max-width: 720px;
  display: grid;
  gap: 24px;
}
.wizard-fields label,
.wizard-playback label {
  font-size: 20px;
  margin-bottom: 10px;
}
.wizard-fields select {
  font-size: 22px;
  min-height: 60px;
  padding: 12px 16px;
}
.wizard-device-row {
  display: flex;
  gap: 12px;
}
#testWizard button {
  font-size: 20px;
  min-height: 56px;
  padding: 12px 24px;
}
#testWizard .wizard-close {
  padding: 0;
}
.wizard-device-row button {
  flex: none;
}
.wizard-note {
  color: var(--dim);
  font-size: 18px;
  line-height: 1.6;
  margin: 12px 0;
}
.wizard-note:empty {
  display: none;
}
.wizard-check {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  cursor: pointer;
}
.wizard-check input {
  width: 24px;
  height: 24px;
  accent-color: var(--brown);
  margin: 4px 0 0;
  flex: none;
}
.wizard-check small {
  display: block;
  font-weight: 400;
  font-size: 18px;
  color: var(--dim);
}
.wizard-countdown {
  font: 600 120px/1.2 var(--mono);
  color: var(--brown);
  font-variant-numeric: tabular-nums;
}
.wizard-instruction {
  font-size: 26px;
  line-height: 1.6;
  margin: 16px 0;
  color: var(--dim);
}
#wizardPassage {
  font-size: 36px;
  line-height: 1.8;
  padding: 24px 32px;
  margin-top: 22px;
}
.wizard-analysis-status {
  margin: 36px 0;
}
.wizard-analysis-status > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1.5px solid var(--line);
  padding: 24px 0;
}
.wizard-analysis-status dt {
  font-size: 24px;
}
.wizard-analysis-status dd {
  font-size: 32px;
  color: var(--brown);
  font-weight: 600;
  text-align: right;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.wizard-footer {
  flex: none;
  background: var(--page);
  padding-top: 12px;
  border-top: 1.5px solid var(--line);
}
.wizard-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px 20px;
}
#wizardProgressText {
  margin: 0;
  font-size: 20px;
  color: var(--dim);
}
.wizard-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 20px;
}
.wizard-buttons .text-button {
  padding-inline: 8px;
}
.wizard-progress-track {
  position: relative;
  overflow: hidden;
}
#wizardProgress {
  display: block;
  width: 100%;
  height: 18px;
  margin: 0;
  border-radius: 0;
}
#wizardProgress::-webkit-progress-bar,
#wizardProgress::-webkit-progress-value {
  border-radius: 0;
}
.wizard-progress-track:has(progress:not([value]))::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30%;
  height: 18px;
  background: var(--brown);
  animation: pending-work 1.5s ease-in-out infinite alternate;
}
#wizardMetrics {
  width: 100%;
}
#wizardMetrics th {
  font-size: 19px;
  padding: 12px 10px;
}
#wizardMetrics th[scope="row"] {
  color: var(--ink);
  font-size: 22px;
  font-weight: 500;
}
#wizardMetrics td {
  padding: 12px 10px;
}
#wizardMetrics b {
  font: 600 40px/1.25 var(--mono);
  font-variant-numeric: tabular-nums;
}
#wizardMetrics td span {
  font-size: 16px;
  color: var(--dim);
  margin-left: 6px;
}
#wizardMetrics tbody tr:first-child {
  background: #edb10012;
}
#wizardMetrics tbody tr:first-child b {
  color: var(--brown);
  font-size: 48px;
}
.wizard-playback {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}
.wizard-playback audio {
  height: 44px;
}
@media (max-width: 700px) {
  .wizard-header {
    height: 64px;
    padding-inline: 18px;
  }
  .wizard-steps {
    gap: 28px;
    margin-top: 16px;
  }
  .wizard-steps li {
    font-size: 17px;
  }
  .wizard-body {
    padding: 22px 20px;
  }
  .wizard-page h2 {
    font-size: 30px;
    margin-bottom: 20px;
  }
  .wizard-fields {
    gap: 20px;
  }
  .wizard-fields select {
    font-size: 20px;
  }
  .wizard-device-row {
    flex-wrap: wrap;
  }
  #testWizard button {
    font-size: 19px;
    min-height: 54px;
    padding: 10px 18px;
  }
  .wizard-device-row select {
    flex: 1;
    min-width: 160px;
  }
  .wizard-countdown {
    font-size: 112px;
  }
  .wizard-instruction {
    font-size: 23px;
  }
  #wizardPassage {
    font-size: 27px;
    line-height: 1.7;
    padding: 16px 18px;
  }
  .wizard-footer-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 0 20px 16px;
  }
  #wizardProgressText {
    font-size: 18px;
  }
  .wizard-buttons {
    justify-content: flex-start;
    gap: 10px;
  }
  .wizard-buttons > button:first-child:not([hidden]) {
    flex: 1;
  }
  .wizard-analysis-status > div {
    flex-direction: column;
    gap: 8px;
    padding: 20px 0;
  }
  .wizard-analysis-status dt {
    font-size: 22px;
  }
  .wizard-analysis-status dd {
    font-size: 28px;
    text-align: left;
  }
  #wizardMetrics th {
    padding: 10px 4px;
    font-size: 16px;
  }
  #wizardMetrics th[scope="row"] {
    font-size: 17px;
    max-width: 130px;
  }
  #wizardMetrics td {
    padding: 12px 4px;
  }
  #wizardMetrics b {
    font-size: 27px;
  }
  #wizardMetrics tbody tr:first-child b {
    font-size: 32px;
  }
  #wizardMetrics td span {
    font-size: 12px;
    margin-left: 3px;
  }
  .wizard-playback {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .wizard-note {
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wizard-progress-track:has(progress:not([value]))::after {
    animation: none;
    opacity: 0.5;
  }
}
.wizard-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.wizard-brand img {
  object-fit: contain;
}
@media (max-width: 700px) {
  #wizardMetrics td span {
    display: block;
    margin-left: 0;
  }
}
