.voice-heading { margin-bottom: 24px; }
.voice-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.voice-tabs { display: flex; gap: 4px; }
.voice-tabs button, .voice-sort {
  min-height: 44px; padding: 0 13px; border: 1px solid transparent; border-radius: 6px;
  background: var(--paper); color: #52685d; font: inherit; font-size: 14px;
}
.voice-tabs button:hover { background: var(--canvas); }
.voice-tabs button[aria-pressed="true"] {
  color: var(--green-dark); background: var(--green-soft); border-color: #c8ddd1; font-weight: 650;
}
.voice-search {
  display: flex; align-items: center; flex: 1 1 210px; gap: 8px; min-width: 0; min-height: 44px;
  padding-inline: 11px; border: 1px solid var(--line); border-radius: 8px; background: #f5f7f3; color: #52685d;
}
.voice-search input { min-width: 0; width: 100%; padding: 7px 0; border: 0; background: transparent; color: var(--ink); }
.voice-search input::placeholder { color: #52685d; }
.voice-sort { border-color: var(--line); background: #f5f7f3; }
.voice-sort:focus-visible { outline: 3px solid #68b5a4; outline-offset: 3px; }
.voice-tagline { margin: 12px 0 0; color: #52685d; font-size: 14px; }
.voice-list { margin-top: 23px; border: 1px solid var(--line); border-radius: 10px; }
.voice-list-head, .voice-row { display: grid; align-items: center; padding-inline: 18px; }
.voice-list-head { grid-template-columns: minmax(0,1fr) 70px 175px; gap: 14px; min-height: 44px;
  border-radius: 10px 10px 0 0; background: var(--canvas); color: #52685d; font-size: 13px; }
.voice-count { margin: 0; }
.voice-rows { padding: 0; margin: 0; list-style: none; }
.voice-row { grid-template-columns: minmax(0,1fr) 259px; gap: 14px; min-height: 60px; border-top: 1px solid var(--line); }
.voice-row:last-child { border-radius: 0 0 10px 10px; }
.voice-row:hover { background: var(--canvas); }
.voice-row.voice-active { background: var(--green-soft); }
.voice-row h2 { margin: 0; overflow-wrap: anywhere; font-size: 16px; line-height: 1.4; font-weight: 650; }
.voice-version { display: grid; grid-template-columns: 70px 175px; align-items: center; gap: 14px; }
.voice-duration, .voice-missing { color: #52685d; font-size: 13px; font-variant-numeric: tabular-nums; }
.voice-missing { grid-column: 2; }
.voice-actions { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.voice-actions .button { gap: 5px; min-height: 39px; padding: 5px 9px; font-size: 13px; }
.voice-actions .voice-play { min-width: 72px; background: var(--green-soft); color: var(--green-dark); border-color: #c8ddd1; }
.voice-play:hover { border-color: var(--green); }
.voice-actions .voice-play[data-playing="true"] { color: white; background: var(--green); border-color: var(--green); }
.voice-play[data-playing="true"] svg { display: none; }
.voice-play[data-playing="true"]::before { content: ""; width: 9px; height: 11px; border-inline: 3px solid currentColor; }
.voice-empty { margin: 0; padding: 18px; border-top: 1px solid var(--line); color: #52685d; }
.voice-dock {
  position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: minmax(0,1fr) minmax(120px,2fr) auto;
  gap: 12px; align-items: center; padding: 13px max(20px,calc((100vw - 890px)/2)); background: var(--paper);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(36,46,43,.08);
}
.voice-dock strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voice-dock span { display: block; color: var(--green-dark); font-size: 13px; }
.voice-dock audio { width: 100%; height: 43px; }
body:has(.voice-dock:not([hidden])) .page-footer { padding-bottom: 110px; }

@media (max-width:600px) {
  .voice-heading { margin-bottom: 16px; }
  .voice-tools { gap: 8px; }
  .voice-tabs { flex-basis: 100%; }
  .voice-search { flex-basis: 115px; }
  .voice-list-head { grid-template-columns: 1fr; padding-inline: 11px; }
  .voice-list-head > span { display: none; }
  .voice-row { grid-template-columns: minmax(0,1fr) auto; column-gap: 7px; row-gap: 0; padding: 9px 11px; min-height: 67px; }
  .voice-row h2 { grid-column: 1; grid-row: 1; }
  .voice-version:not([hidden]) { display: contents; }
  .voice-duration { grid-column: 1; grid-row: 2; }
  .voice-actions, .voice-missing { grid-column: 2; grid-row: 1 / 3; }
  .voice-actions { gap: 5px; }
  .voice-actions .button { padding-inline: 6px; }
  .voice-actions .voice-play { min-width: 0; }
  .voice-dock { grid-template-columns: minmax(0,1fr) auto; padding: 10px 16px; gap: 5px 9px; }
  .voice-dock audio { grid-column: 1/-1; grid-row: 2; }
  body:has(.voice-dock:not([hidden])) .page-footer { padding-bottom: 130px; }
}

#voice-library-entry { margin-top: 15px; }
#voice-library-entry h2 { margin: 0 0 5px; color: #294737; font-size: 19px; font-weight: 650; }
#voice-library-entry p { margin: 0; color: #52685d; font-size: 13px; }
#voice-library-entry .course-symbol { width: 52px; height: 56px; background: var(--green-soft); color: var(--green); }
#voice-library-entry .course-symbol svg { width: 27px; height: 27px; }
@media (max-width:600px) {
  #voice-library-entry { padding: 14px; gap: 11px; }
  #voice-library-entry h2 { font-size: 17px; }
  #voice-library-entry .course-symbol { width: 38px; height: 42px; }
}
