.speech-check-root { width: 100%; min-width: 0; color: var(--text, #252936); }
.speech-check-root [hidden] { display: none !important; }
.speech-check-root .studio-prose { margin: 0 0 16px; }
.speech-check-image { display: block; max-width: 100%; max-height: 420px; object-fit: contain; margin: 12px auto 20px; }
.speech-check-controls { display: grid; gap: 12px; width: 100%; max-width: 720px; min-width: 0; color: var(--text); }
.speech-check-context, .speech-check-condition, .speech-check-consents, .speech-check-item-points, .speech-check-item-actions [data-speech-timer] { color: var(--text); }
.speech-check-context, .speech-check-condition, .speech-check-reference, .speech-check-progress { margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.speech-check-condition { font-weight: 600; }
.speech-check-reference { color: var(--text-soft); }
.speech-check-progress { font-size: .95em; color: var(--text-soft); }
.speech-check-series { display: grid; gap: 0; max-width: 100%; }
.speech-check-item-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; min-width: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.speech-check-item-row.speech-check-actions { display: grid; }
.speech-check-sample { grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.speech-check-item-row:has(.speech-check-sample) .speech-check-item-actions { grid-column: 2; grid-row: 2; }
.speech-check-sample > button { width: 210px; max-width: 100%; min-width: 0; justify-content: center; }
.speech-check-sample > button span { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.speech-check-sample > span { color: var(--text-soft); line-height: 1.4; overflow-wrap: anywhere; }
.speech-check-item-copy { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.speech-check-item-number { display: inline-grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); color: var(--text); font-weight: 600; }
.speech-check-item-actions { display: grid; grid-template-columns: 144px 140px 36px; align-items: center; gap: 8px; }
.speech-check-root .speech-check-item-actions > button { min-height: 44px; }
.speech-check-item-actions > button { grid-column: 1; grid-row: 1; justify-content: center; }
.speech-check-item-actions [data-speech-timer] { grid-column: 2; grid-row: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.speech-check-item-actions .speech-check-item-points { grid-column: 3; grid-row: 1; }
.speech-check-item-points { min-width: 34px; text-align: center; white-space: nowrap; }
.speech-check-item-status { grid-column: 1 / -1; min-width: 0; margin: 0; line-height: 1.4; overflow-wrap: anywhere; color: var(--text-soft); }
.speech-check-item-row.is-recording .speech-check-item-number { background: var(--primary, #873ca0); color: #fff; }
.speech-check-root :focus-visible { outline: 3px solid var(--focus, #2477a8); outline-offset: 2px; }
.speech-check-consents { display: grid; gap: 10px; }
.speech-check-consents label { display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; cursor: pointer; }
.speech-check-consents input { flex: 0 0 20px; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--primary, #873ca0); }
.speech-check-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.speech-check-root button { min-height: 44px; }
.speech-check-root audio { display: block; width: min(100%, 460px); }
.speech-check-message { min-height: 1.5em; margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.speech-check-message:empty { min-height: 0; }
#studioSpeechForm .field, #studioSpeechForm .field input, #studioSpeechForm .field select { min-width: 0; }
#studioSpeechForm .ql-toolbar .ql-formats { flex-wrap: wrap; max-width: 100%; }
#studioSpeechForm input[type="checkbox"] { width: 20px; min-height: 20px; margin: 0 8px 0 0; vertical-align: middle; }
@media (max-width: 600px) {
  .speech-check-item-row:has(.speech-check-sample) .speech-check-item-actions { grid-column: 1; grid-row: 3; }
  .speech-check-sample > button { width: 100%; min-width: 0; }
  .speech-check-item-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .speech-check-item-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .speech-check-item-actions > button { width: 100%; grid-column: 1 / -1; }
  .speech-check-item-actions [data-speech-timer] { grid-column: 1; grid-row: 2; }
  .speech-check-item-actions .speech-check-item-points { grid-column: 2; grid-row: 2; }
}
