.vocabulary-layout { max-width: 1700px; min-width:0; }
.vocab-toolbar { display:flex; flex-wrap:wrap; align-items:end; gap:16px; padding:18px 0; }
.vocab-toolbar label { display:grid; gap:6px; min-width:140px; }
.vocab-toolbar input,.vocab-toolbar select { min-height:40px; max-width:100%; border:1px solid #c9d0cc; border-radius:4px; padding:8px; background:white; color:#20241f; }
#bookSelect { width:350px; }
.vocab-tabs { display:flex; gap:24px; border-bottom:1px solid #c9d0cc; margin:12px 0 8px; }
.vocab-tabs button { background:none; border:0; border-bottom:3px solid transparent; padding:14px 4px; border-radius:0; color:#596560; }
.vocab-tabs button[aria-selected=true] { color:#245b43; border-bottom-color:#2f6f4f; font-weight:700; }
.table-scroll { overflow-x:auto; width:100%; }
.vocab-table { border-collapse:collapse; width:100%; min-width:700px; background:#fff; font-size:14px; }
.vocab-table th,.vocab-table td { text-align:left; padding:12px; border-bottom:1px solid #e0e5e2; vertical-align:top; max-width:320px; overflow-wrap:anywhere; }
.vocab-table th { background:#edf1f4; color:#374951; white-space:nowrap; }
.vocab-table td:first-child { font-weight:600; }
.vocab-table small { display:block; color:#8b541b; margin-top:5px; }
.vocab-table button { padding:6px 12px; min-height:32px; margin-bottom:6px; white-space:nowrap; }
.pagination { display:flex; gap:20px; align-items:center; justify-content:center; padding:20px; }
.check-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:12px; margin:16px 0 24px; }
.check-line { display:flex!important; align-items:center; gap:8px; }
.check-line input { width:18px; height:18px; min-height:0; flex-shrink:0; }
.entry-fields { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.vocab-error,.dialog-error { color:#a23232; overflow-wrap:anywhere; }
dialog { width:620px; max-width:calc(100vw - 32px); max-height:90vh; overflow:auto; padding:24px; border:1px solid #d3dcd6; border-radius:8px; }
dialog::backdrop { background:#0006; }
dialog .field { margin:12px 0; }
dialog input,dialog textarea,dialog select { width:100%; min-width:0; }
dialog input[type=checkbox] { width:18px; }
dialog textarea { min-height:70px; }
#entryOriginal { white-space:pre-wrap; overflow-wrap:anywhere; background:#f3f5f6; padding:12px; }
.vocabulary-layout h2 { font-size:19px; }
.vocabulary-layout [hidden] { display:none!important; }
.vocabulary-page .notice:not(:empty) { position:static; grid-column:2; margin:0 24px 20px; max-width:none; box-shadow:none; }
@media(max-width:980px) { .vocabulary-page .notice:not(:empty) { grid-column:1; } }
@media(max-width:700px) { .entry-fields { grid-template-columns:1fr; } .vocab-toolbar label,#bookSelect { width:100%; } .vocab-tabs { gap:16px; } dialog { padding:16px; } .topbar-actions { flex-wrap:wrap; } }
