.vocabulary-dialog {
  width: min(540px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  box-sizing: border-box; overflow-y: auto; padding: 24px; border-radius: 16px;
  border: 1px solid var(--border, #8886); color: var(--ink, CanvasText);
  background: var(--panel, Canvas); box-shadow: 0 20px 80px #0005;
}
.vocabulary-dialog::backdrop { background: #0007; }
.vocabulary-dialog [hidden] { display: none !important; }
.vocabulary-dialog h2 { margin: 0; font-size: 1.3rem; }
.vocabulary-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.vocabulary-dialog header button { background: transparent; border: 0; color: inherit; font-size: 24px; cursor: pointer; }
.vocabulary-field { display: flex; flex-wrap: wrap; align-content: flex-start; align-items: center; gap: 6px; min-height: 110px; padding: 8px; border: 1px solid var(--border, #8888); border-radius: 10px; background: var(--bg, Canvas); }
.vocabulary-field:focus-within { outline: 2px solid var(--accent, #e88740); outline-offset: 2px; }
.vocabulary-field input { flex: 1 1 130px; width: 130px; min-width: 80px; max-width: 100%; border: 0; border-radius: 0; padding: 5px; background: transparent; box-shadow: none; color: inherit; font: inherit; }
.vocabulary-field input:focus { outline: none; box-shadow: none; }
.vocabulary-chip { display: inline-flex; align-items: center; max-width: 100%; border-radius: 6px; background: color-mix(in srgb, currentColor 13%, transparent); }
.vocabulary-chip button { min-width: 0; background: transparent; color: inherit; border: 0; padding: 4px 7px; cursor: pointer; font: inherit; }
.vocabulary-chip button:first-child { white-space: normal; overflow-wrap: anywhere; text-align: left; }
.vocabulary-chip button:last-child { flex-shrink: 0; opacity: .7; }
.vocabulary-chip button:focus-visible { outline: 2px solid var(--accent, #e88740); border-radius: 4px; }
.vocabulary-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; font-size: .85rem; opacity: .8; }
.vocabulary-meta p { margin: 0; }
.vocabulary-status { min-height: 1.5em; font-size: .9rem; }
.vocabulary-dialog footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.wc-mic-settings-panel [data-vocabulary-open] { width: 100%; margin-top: 10px; }
@media (max-width: 480px) { .vocabulary-dialog { padding: 18px; } }
