.local-lookup {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: .6rem;
  margin-block: 1rem;
}

.local-lookup label { display: grid; gap: .3rem; font-weight: 650; }
.local-lookup input, .local-lookup select { min-height: 44px; min-width: 0; width: 100%; }
.local-lookup output { grid-column: 1 / -1; min-height: 1.5em; color: var(--muted); }
.local-lexicon-table { width: 100%; table-layout: fixed; overflow-wrap: anywhere; }
.local-lexicon-table th, .local-lexicon-table td { vertical-align: top; }
.local-word-table th:nth-child(4) { width: 38%; }
.local-character-table th:nth-child(3) { width: 37%; }
.local-character-table th:nth-child(2) { width: 18%; }
.local-lexicon-table span[lang^="zh-Ha"] { font-size: 1.08rem; }
.local-models a { display: inline-flex; align-items: center; gap: .15rem; margin-right: .4rem; min-height: 36px; }
.local-jumps { margin-bottom: 0; }

@media (max-width: 560px) {
  .local-lookup { grid-template-columns: minmax(0, 1fr); }
  .local-lexicon-table th, .local-lexicon-table td { padding: .42rem .28rem; font-size: .85rem; }
  .local-lexicon-table span[lang^="zh-Ha"] { font-size: 1rem; }
}

.cfdict-form .actions { grid-column: 1 / -1; margin: 0; }
.cfdict-results { list-style: none; padding: 0; display: grid; gap: .6rem; }
.cfdict-results > li { padding: .65rem .85rem; min-inline-size: 0; overflow-wrap: anywhere; background: var(--accent-bg); border-radius: 8px; }
.cfdict-results h3 { margin-bottom: .35rem; }
.cfdict-results p { margin-block: .25rem; overflow-wrap: anywhere; }
