/* Final audio review cabin lock: one cockpit, one work area, no legacy overflow. */
html:not(.react-student-embedded) body[data-active-panel="audio"] .main {
  overflow: hidden !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] .panel[data-panel="audio"].active {
  width: 100% !important;
  max-width: 100% !important;
  height: calc(100vh - 80px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-review-cabin {
  width: 100% !important;
  max-width: 100% !important;
  height: calc(100vh - 80px) !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: 184px minmax(0, 1fr) 116px !important;
  gap: 12px !important;
  align-items: stretch !important;
  padding: 18px 18px 14px !important;
  overflow: hidden !important;
  background: #f5f8fc !important;
  box-sizing: border-box !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-cabin-form {
  grid-row: 1 !important;
  min-width: 0 !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-rows: 56px 116px !important;
  gap: 12px !important;
  overflow: hidden !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-cabin-header {
  height: 56px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  margin: 0 !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-cabin-title {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-cabin-title h2 {
  margin: 0 !important;
  font-size: 24px !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-upload-button {
  flex: 0 0 auto !important;
  width: 180px !important;
  height: 42px !important;
  min-height: 42px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-upload-button em {
  display: none !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-cabin-statusbar {
  height: 116px !important;
  min-height: 116px !important;
  display: grid !important;
  grid-template-columns: minmax(220px, 1.35fr) 100px 110px 110px minmax(210px, 1.05fr) !important;
  gap: 12px !important;
  align-items: stretch !important;
  padding: 12px !important;
  border: 1px solid rgba(124, 77, 255, 0.12) !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
  overflow: hidden !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-status-hero,
html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-top-metric,
html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-training-card {
  min-width: 0 !important;
  border-radius: 16px !important;
  background: #fff !important;
  border: 1px solid rgba(124, 77, 255, 0.12) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-top-metric {
  display: grid !important;
  align-content: center !important;
  justify-items: start !important;
  gap: 2px !important;
  padding: 7px 12px !important;
  line-height: 1.08 !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-top-metric strong {
  display: block !important;
  font-size: 28px !important;
  line-height: 0.95 !important;
  letter-spacing: 0 !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-top-metric span,
html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-top-metric em {
  line-height: 1.12 !important;
  white-space: nowrap !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-top-metric span,
html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-top-metric small {
  font-size: 12px !important;
  line-height: 1.1 !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-training-card {
  display: grid !important;
  align-content: center !important;
  gap: 6px !important;
  padding: 12px 14px !important;
  line-height: 1.2 !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-session-fields,
html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-status-actions,
html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-preview {
  display: none !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-cabin-workspace,
html:not(.react-student-embedded) body:has(.panel[data-panel="audio"].active) .audio-cabin-workspace {
  grid-row: 2 !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  align-self: stretch !important;
  display: grid !important;
  grid-template-columns: 252px minmax(0, 1fr) 300px !important;
  gap: 14px !important;
  overflow: hidden !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-timeline-panel,
html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-review-main,
html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-coach-panel,
html:not(.react-student-embedded) body:has(.panel[data-panel="audio"].active) .audio-timeline-panel,
html:not(.react-student-embedded) body:has(.panel[data-panel="audio"].active) .audio-review-main,
html:not(.react-student-embedded) body:has(.panel[data-panel="audio"].active) .audio-coach-panel {
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  align-self: stretch !important;
  border-radius: 20px !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.055) !important;
  overflow: hidden !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-timeline-panel,
html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-coach-panel {
  display: flex !important;
  flex-direction: column !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-dialogue-timeline,
html:not(.react-student-embedded) body:has(.panel[data-panel="audio"].active) .audio-dialogue-timeline {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
  padding: 10px 8px 10px 12px !important;
  box-sizing: border-box !important;
  transform: none !important;
  transition: none !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-dialogue-timeline > button.audio-cabin-timeline-item,
html:not(.react-student-embedded) body:has(.panel[data-panel="audio"].active) .audio-dialogue-timeline > button.audio-cabin-timeline-item {
  width: calc(100% - 4px) !important;
  max-width: calc(100% - 4px) !important;
  min-width: 0 !important;
  height: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) 32px !important;
  align-items: center !important;
  column-gap: 4px !important;
  padding: 10px 4px 10px 20px !important;
  margin: 0 !important;
  text-align: left !important;
  white-space: normal !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  transform: none !important;
  transition: background-color 120ms ease, border-color 120ms ease !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-dialogue-timeline > button.audio-cabin-timeline-item > *,
html:not(.react-student-embedded) body:has(.panel[data-panel="audio"].active) .audio-dialogue-timeline > button.audio-cabin-timeline-item > * {
  min-width: 0 !important;
  max-width: 100% !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-dialogue-timeline > button.audio-cabin-timeline-item strong,
html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-dialogue-timeline > button.audio-cabin-timeline-item span,
html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-dialogue-timeline > button.audio-cabin-timeline-item em,
html:not(.react-student-embedded) body:has(.panel[data-panel="audio"].active) .audio-dialogue-timeline > button.audio-cabin-timeline-item strong,
html:not(.react-student-embedded) body:has(.panel[data-panel="audio"].active) .audio-dialogue-timeline > button.audio-cabin-timeline-item span,
html:not(.react-student-embedded) body:has(.panel[data-panel="audio"].active) .audio-dialogue-timeline > button.audio-cabin-timeline-item em {
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.25 !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-dialogue-timeline > button.audio-cabin-timeline-item .audio-timeline-time,
html:not(.react-student-embedded) body:has(.panel[data-panel="audio"].active) .audio-dialogue-timeline > button.audio-cabin-timeline-item .audio-timeline-time {
  width: auto !important;
  min-width: 0 !important;
  font-size: 12px !important;
  text-align: left !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-dialogue-timeline > button.audio-cabin-timeline-item small,
html:not(.react-student-embedded) body:has(.panel[data-panel="audio"].active) .audio-dialogue-timeline > button.audio-cabin-timeline-item small {
  width: auto !important;
  min-width: 0 !important;
  max-width: 32px !important;
  padding: 2px 3px !important;
  font-size: 10px !important;
  line-height: 1.1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-main-scroll {
  height: 100% !important;
  min-height: 0 !important;
  overflow: auto !important;
  padding: 18px !important;
  box-sizing: border-box !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-coach-panel,
html:not(.react-student-embedded) body:has(.panel[data-panel="audio"].active) .audio-coach-panel {
  padding: 14px !important;
  overflow: auto !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-report-digest,
html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-coach-card {
  min-height: 0 !important;
  overflow: auto !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-cabin-waveform {
  max-width: 100% !important;
  overflow: hidden !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-action-bar,
html:not(.react-student-embedded) body:has(.panel[data-panel="audio"].active) .audio-action-bar {
  grid-row: 3 !important;
  height: auto !important;
  min-height: 116px !important;
  max-height: none !important;
  align-self: stretch !important;
  display: grid !important;
  grid-template-columns: 88px minmax(220px, 1fr) minmax(250px, 1.05fr) auto !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 12px 16px !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-progress-shell {
  display: none !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-action-buttons {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(108px, 1fr)) !important;
  gap: 10px !important;
  min-width: 380px !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] #audioReviewMetrics,
html:not(.react-student-embedded) body[data-active-panel="audio"] #audioAutoStatus,
html:not(.react-student-embedded) body[data-active-panel="audio"] #audioPipelineStatus,
html:not(.react-student-embedded) body[data-active-panel="audio"] #audioChecklistBox {
  display: none !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-review-standard-compare,
html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-compare-grid,
html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-compare-grid section,
html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-compare-grid p {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-compare-grid section {
  min-height: 132px !important;
  align-content: start !important;
}

html:not(.react-student-embedded) body[data-active-panel="audio"] .audio-compare-grid p {
  min-height: 0 !important;
  display: block !important;
  white-space: normal !important;
  word-break: normal !important;
}
