/* Vocabulary-only additions; reuse the existing theme and component tokens. */
.word-card__senses { white-space: pre-line; overflow-wrap: anywhere; line-height: 1.65; }
.word-card__dictionary-root { font-weight: 700; margin-bottom: 8px; }
.word-card__source { display: block; opacity: .75; line-height: 1.5; }
.word-card__dictionary p { margin: 8px 0 12px; }
.vocab__filter-toggle, .vocabulary-preview__filters label { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.vocab__filter-toggle input, .vocabulary-preview__filters input { width: 18px; height: 18px; accent-color: var(--accent); }
.vocab.is-recalling .vocab-item__gloss { visibility: hidden; }
.vocab-item__favorite { min-width: 40px; flex-shrink: 0; }
.vocab .vocab-item__actions { flex-wrap: wrap; gap: 8px; }
.vocab .vocab-item__mastery { white-space: normal; }
.vocab .tabs { overflow-x: auto; }
.vocab .vocab-item__word, .vocab .vocab-item__gloss { overflow-wrap: anywhere; }
.vocab__more { margin: 20px 0; }
.vocabulary-preview { width: min(680px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text); overflow: auto; box-shadow: 0 12px 40px #0004; }
.vocabulary-preview::backdrop { background: #0006; backdrop-filter: blur(3px); }
.vocabulary-preview__head, .vocabulary-preview__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.vocabulary-preview__head h2 { font-size: 22px; font-weight: 700; }
.vocabulary-preview__filters { display: flex; gap: 20px; flex-wrap: wrap; margin: 16px 0; }
.vocabulary-preview__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.vocabulary-preview__word { text-align: left; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised, var(--surface)); color: inherit; min-height: 48px; cursor: pointer; overflow-wrap: anywhere; }
.vocabulary-preview__word:hover { border-color: var(--accent); }
.vocabulary-preview__word strong, .vocabulary-preview__meaning { display: block; }
.vocabulary-preview__meaning { margin-top: 8px; font-size: 14px; line-height: 1.5; white-space: pre-line; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.vocabulary-preview__meaning[hidden] { display: none; }
@media (max-width: 480px) { .vocabulary-preview { padding: 16px; } .vocabulary-preview__list { grid-template-columns: 1fr; } .vocab .tab { padding-inline: 10px; flex-shrink: 0; } }

.vocab__subnav { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.vocab .page__head > .vocab__subnav { grid-column: 1 / -1; grid-row: auto; justify-self: start; }
.vocab__filters summary { display: flex; align-items: center; gap: 8px; min-height: 40px; font: 700 20px/1.4 var(--font-heading); cursor: pointer; }
.vocab__filters summary::after { content: '\2304'; margin-left: auto; }
.vocab__filters[open] summary::after { transform: rotate(180deg); }
.vocab__filter-fields { display: grid; gap: 16px; margin-top: 16px; }
.vocabulary-library__panel { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--panel-bg); }
.vocabulary-library__lookup { display: flex; gap: 12px; }
.vocabulary-library__lookup .input { flex: 1; min-width: 0; }
.vocabulary-library__filters { display: flex; gap: 12px; margin: 16px 0; }
.vocabulary-library__filters .select { flex: 1; min-width: 0; }
.vocabulary-library__note { font-size: 13px; line-height: 1.6; color: var(--text-secondary); }
.vocabulary-library__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.vocabulary-library__meaning { white-space: pre-line; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; line-height: 1.6; }
.vocabulary-library__pagination { display: flex; justify-content: space-between; gap: 16px; }
.vocabulary-library__speech-notice, .word-card__speech-notice { color: var(--text); border-left: 3px solid var(--accent); padding: 8px 12px; line-height: 1.6; }
@media (max-width: 600px) { .vocabulary-library__panel { padding: 16px; } .vocabulary-library__lookup { flex-wrap: wrap; } .vocabulary-library__lookup .input { flex-basis: 100%; } .vocabulary-library__lookup .btn { width: 100%; } .vocabulary-library__list { grid-template-columns: 1fr; } .vocabulary-library__filters { flex-wrap: wrap; } .vocabulary-library__filters .select { flex-basis: 100%; } }
