.controls h2, .subtitle-toolbar h2 { margin-top: 0; }
.sample { margin: 20px 0; padding: 16px; border: 1px solid #c8dfd2; border-radius: 10px; background: #f3f8f5; }
.sample h3 { margin: 0 0 12px; font-size: 15px; }
.sample label[for="example-choice"] { margin: 0 0 6px; }
.sample select { margin-bottom: 12px; }
.sample small { display: block; margin-top: 7px; }
.sample audio { display: block; width: 100%; height: 38px; margin: 0 0 12px; }
.sample button { display: block; }
.sample details { margin: 12px 0 0; color: #4c6558; }
.sample p { margin-bottom: 0; line-height: 1.6; }
details { font-size: 12px; }
summary { cursor: pointer; padding: 4px 0; }
.settings { margin: 18px 0; }
.settings summary { font-weight: 600; }
.record-area { padding-top: 8px; }
#recording-review { margin-top: 14px; text-align: left; }
#recording-review p { color: #53685c; font-size: 12px; line-height: 1.5; }
#review-player { display: block; width: 100%; height: 36px; }
.text-button { color: #325c48; }
#edit-caption { margin-left: auto; text-decoration: underline; }
#edit-dialog { width: min(90vw, 440px); box-sizing: border-box; color: #264337; border: 1px solid #c8dfd2; border-radius: 12px; padding: 22px; }
#edit-dialog::backdrop { background: rgb(22 45 34 / 40%); }
#edit-dialog h2 { margin: 0 0 14px; }
#edit-dialog label { display: block; margin: 12px 0 5px; font-size: 13px; }
#edit-dialog label[hidden] { display: none; }
#edit-english { box-sizing: border-box; width: 100%; resize: vertical; padding: 10px; font: inherit; }
#edit-message, #mic-reading { font-size: 12px; }
.edit-actions { display: flex; align-items: center; justify-content: flex-end; gap: 15px; }
#edit-save { border: 0; border-radius: 8px; padding: 10px 14px; background: var(--green); color: white; }
#mic-level { margin: 14px 0; text-align: left; }
#mic-meter { width: 100%; display: block; }
.status-bar { align-items: baseline; flex-wrap: wrap; }
.subtitle-footer { color: #526459; }
.caption-text:empty::before { display: block; margin: 35px 0; color: #64796b; font-size: 13px; }
#english:empty::before { content: "English captions will appear here."; }
#translation:empty::before { content: "Translated captions will appear here."; }
footer { color: #5f7266; line-height: 1.6; }
footer a { color: #326b52; }
@media (max-width: 650px) {
  .caption-panel { min-height: 100px; }
  .subtitles { scroll-margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}
