.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; display: inline-block; margin-bottom: 8px; color: var(--green); text-decoration: underline; }
.catalogue-panel { padding: 16px 23px 18px; }
#catalogue-heading:focus { outline: none; }
.voice-filters { display: grid; grid-template-columns: auto minmax(0, 1fr) 140px; gap: 10px; align-items: center; }
.voice-status { display: flex; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.voice-status label { position: relative; flex: 1 1 auto; cursor: pointer; }
.voice-status input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.voice-status span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); font-size: 14px; white-space: nowrap; }
.voice-status b { color: var(--ink); font-weight: 600; }
.voice-status input:checked + span { border-color: var(--green); background: var(--pale); color: var(--green); font-weight: 600; }
.voice-status input:checked + span b { color: var(--green); }
.voice-status input:focus-visible + span { outline: 3px solid #97b65b; outline-offset: 2px; }
.voice-filters .field input, .voice-filters .field select { min-height: 42px; padding: 7px 10px; font-size: 14px; }
.selection-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 40px; margin-top: 4px; }
.selection-actions { display: flex; align-items: center; gap: 8px; }
.select-all { display: flex; align-items: center; gap: 7px; font-size: 13px; cursor: pointer; }
.selection-toolbar .button { min-height: 34px; padding: 4px 12px; font-size: 13px; }
.admin-voice-list { display: grid; }
.admin-voice { display: grid; grid-template-columns: 20px 36px minmax(0, 1fr) auto; align-items: center; column-gap: 10px; padding: 8px 6px; border-top: 1px solid var(--line); scroll-margin-bottom: 150px; }
.admin-voice.selected { background: #f6f9f2; }
.admin-voice.playing { background: var(--pale); box-shadow: inset 3px 0 0 var(--green); }
.voice-check-cell { display: flex; align-items: center; min-height: 20px; }
.voice-play { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #bdcdbf; border-radius: 50%; background: #fff; color: var(--green); font-size: 13px; line-height: 1; }
.voice-play::before { content: "\25B6\FE0E"; margin-left: 2px; }
.voice-play[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: #fff; }
.voice-play[aria-pressed="true"]::before { content: "\2759\2759"; margin-left: 0; font-size: 11px; }
.voice-play:hover { border-color: var(--green); }
.voice-content { min-width: 0; }
.admin-voice-title { display: block; font-weight: 600; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
label.admin-voice-title { cursor: pointer; }
.voice-meta { display: flex; flex-wrap: wrap; gap: 0 10px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.voice-meta .subtitle-ready { color: var(--green); }
.voice-tag { padding: 0 6px; border-radius: 4px; background: #eff5ee; color: #1b6943; }
.voice-row-actions { display: flex; justify-content: flex-end; }
.voice-row-actions .text-button { padding: 6px 0; font-size: 13px; white-space: nowrap; }
.voice-player { position: sticky; bottom: 8px; z-index: 2; margin-top: 12px; padding: 8px 12px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 6px 24px #153d2b24; }
.voice-player-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.voice-player-title { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.voice-player-head .text-button { padding: 2px 0; font-size: 13px; }
.voice-player audio { display: block; width: 100%; height: 36px; margin-top: 4px; }
.voice-player details { margin-top: 6px; color: var(--muted); font-size: 13px; }
.voice-player summary { cursor: pointer; color: var(--green); }
.voice-player details p { max-height: 30vh; margin: 5px 0 0; overflow-y: auto; overflow-wrap: anywhere; white-space: pre-wrap; }
#upload-dialog { width: min(560px, calc(100% - 28px)); }
#upload-dialog .editor-heading { margin-bottom: 16px; }
#upload-dialog .callout { margin: 0; }
.speaker-picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.speaker-picker legend { margin-bottom: 8px; padding: 0; font-weight: 500; }
.speaker-picker label { display: flex; flex: 1 1 130px; align-items: center; gap: 7px; min-width: 0; padding: 11px 10px; border: 1px solid #bdcdbf; border-radius: 8px; font-size: 14px; cursor: pointer; }
.speaker-picker label:has(input:checked) { border-color: var(--green); background: var(--pale); color: var(--green); }
.speaker-picker input { flex-shrink: 0; width: 17px; height: 17px; accent-color: var(--green); }
@media (max-width: 899px) {
  .voice-filters { grid-template-columns: minmax(0, 1fr) 118px; }
  .voice-status { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .catalogue-panel { padding: 13px 13px 14px; }
  .voice-status span { min-height: 40px; padding: 0 6px; font-size: 13px; }
  .voice-filters { gap: 8px; }
  .voice-filters .field select { padding-left: 7px; }
  .admin-voice { grid-template-columns: 20px 44px minmax(0, 1fr); column-gap: 8px; padding: 8px 2px; }
  .voice-play { width: 44px; height: 44px; }
  .voice-row-actions { grid-column: 3; justify-content: flex-start; }
  .voice-row-actions .text-button { padding: 3px 0; }
  .voice-player { bottom: 4px; padding: 6px 10px 8px; }
  #upload-dialog { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 20px 16px; border: 0; border-radius: 0; }
}
