.lookupTab { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.lookupTab svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.editor > .side.lookupActive { display: flex; flex-direction: column; overflow: hidden; }
.lookupActive .sideHeader { flex: none; }
.editorLookupPanel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.lookupControls { flex: none; padding: 10px 12px; border-bottom: 1px solid var(--ui-border); }
.lookupControls h2 { margin: 0 0 4px; font: 600 16px/1.4 system-ui, sans-serif; }
.lookupControls p { margin: 0; color: var(--ui-muted); font-size: 12px; line-height: 1.5; }
.lookupOptions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 8px; }
.lookupOptions label { min-width: 0; color: var(--ui-muted); font-size: 11px; }
.lookupOptions select { display: block; box-sizing: border-box; width: 100%; margin-top: 3px; color: var(--color-font); }
.lookupPagination { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; }
.lookupPagination span { flex: 1; color: var(--ui-muted); }
.lookupPagination button { flex: none; }
.lookupResults { flex: 0 1 auto; max-height: 28%; min-height: 65px; overflow-y: auto; overscroll-behavior: contain; padding: 8px 12px; border-bottom: 1px solid var(--ui-border); }
.editor .lookupResult { display: block; box-sizing: border-box; width: 100%; margin: 0 0 6px; padding: 9px 10px; text-align: left; border: 1px solid var(--ui-border); border-radius: 6px; line-height: 1.5; }
.lookupResult.active { background: var(--ui-accent-soft); border-color: var(--ui-accent); }
.lookupResult strong, .lookupResult span { display: block; overflow-wrap: anywhere; }
.lookupResult strong { font-size: 12px; font-weight: 600; }
.lookupResult span { color: var(--ui-muted); font-size: 12px; margin-top: 3px; }
.lookupResult .lookupResultEnglish { color: var(--color-font); }
.lookupResult .lookupResultStats { font-size: 11px; }
.lookupQueryMatch { padding: 0 1px; border-radius: 2px; background: #ffe08a; color: #352600; font-weight: 650; }
.lookupReference { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px; }
.editor .lookupReference h3 { margin: 0 0 5px; font: 600 13px/1.5 system-ui, sans-serif; overflow-wrap: anywhere; }
.lookupReference header p { margin: 0 0 6px; color: var(--ui-muted); font-size: 11px; }
.lookupReference header details { margin-bottom: 8px; font-size: 11px; color: var(--ui-muted); }
.lookupReference header summary { cursor: pointer; }
.lookupStats { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ui-muted); font-size: 11px; }
.lookupReferenceBlock { padding: 10px 0; border-top: 1px solid var(--ui-border); }
.lookupReferenceBlock h4 { margin: 0 0 8px; color: var(--ui-muted); font-size: 11px; font-weight: 500; }
.lookupTextLabel { margin: 6px 0 4px; color: var(--ui-muted); font-size: 11px; font-weight: 600; }
.lookupText { margin: 0; padding: 8px; background: var(--color-element); border: 1px solid var(--ui-border); border-radius: 5px; white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: 13px; line-height: 1.7; user-select: text; }
.lookupEmpty { margin: 0; padding: 8px 0; color: var(--ui-muted); font-size: 13px; line-height: 1.6; }
:is(.editorLookupPanel, .lookupTab) :is(button, input, select, [tabindex]):focus-visible, .lookupTab:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 2px; }
@media (max-width: 760px) {
  .editor > .side.lookupActive { min-height: 580px; height: 75vh; }
}
