.phrase-groups { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.phrase-groups button { text-align: left; }
.phrase-groups button[aria-pressed=true] {
  border-color: #8baa89;
  background: #e4eee0;
  box-shadow: inset 0 -2px #5f8863;
}
.phrase-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(175px, .8fr) auto;
  align-items: end;
  gap: 8px;
  margin-bottom: 20px;
}
.phrase-filters :is(input[type=search], select) {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 6px 9px;
  border: 1px solid #cbdac8;
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
}
.phrase-check { display: flex; gap: 6px; align-items: center; min-height: 40px; font-size: 13px; cursor: pointer; }
.phrase-check input { accent-color: var(--green); }
.phrase-results {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
.phrase-results h2 { margin: 0 0 4px; font-size: clamp(20px, 3vw, 26px); scroll-margin-top: 14px; }
.phrase-results + .vocab-guide { margin-top: 9px; font-size: 14px; }
.phrase-review { margin-top: 12px; }
.phrase-review summary { color: var(--green); font-size: 14px; font-weight: 650; cursor: pointer; }
.phrase-batches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  align-items: start;
  gap: 4px;
  max-height: min(45vh, 350px);
  overflow: auto;
}
.phrase-batches label { background: var(--paper); }
.phrase-review-footer { margin-top: 6px; }
.phrase-library .vocab-pager select { max-width: min(52vw, 280px); }
.phrase-table { table-layout: fixed; }
.phrase-table th:first-child { width: 57%; }
.phrase-table td { padding-block: 9px; vertical-align: top; overflow-wrap: anywhere; }
.phrase-table .vocab-translation { margin: 0; font-size: 15px; }
.phrase-sentence-line { display: flex; align-items: flex-start; gap: 7px; }
.phrase-sentence-line .vocab-sentence { min-width: 0; }
.phrase-sentence-line .phrase-sound { width: 31px; height: 31px; flex: none; }
.phrase-sound svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.phrase-row-note { margin: 3px 0 0; color: var(--v-muted); font-size: 12px; }
.phrase-library .vocab-gloss-word { color: inherit; }
.phrase-library .vocab-gloss-word:focus-visible { outline-offset: 2px; }
.phrase-library .flashcard-prompt h2 { font-size: clamp(22px, 4.5vw, 35px); line-height: 1.42; }
.phrase-library .flashcard-card-top span { letter-spacing: 0; }
.phrase-library .vocab-deck { overflow: auto; }
.phrase-library .vocab-gloss-tip { max-width: min(300px, calc(100vw - 16px)); line-height: 1.5; }
@media (max-width: 730px) {
  .phrase-filters { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 490px) {
  .phrase-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phrase-library .vocab-pager .flashcard-button { padding-inline: 7px; }
  .phrase-library .vocab-pager select { max-width: min(42vw, 220px); }
}
