/* WizardOS · AI Look up popover (core/lookup-pop.js). The reading app's "AI explanation" popover in Appearance v1 tokens:
 * fully opaque panel (--wz-panel over --wz-base), follows the live skin; the kit's dark defaults are the standalone fallback.
 * Selectable/copyable text is opted in with the chat selection rule in core/chats.css. */
.wos-lookup {
  position: fixed; left: 0; top: 0; z-index: 250; box-sizing: border-box; max-height: calc(100vh - 24px); overflow: auto; overscroll-behavior: contain;
  padding: var(--wz-space-3) var(--wz-space-4) var(--wz-space-3); border-radius: var(--wz-radius); text-align: left;
  background: var(--wz-panel); border: 1px solid var(--wz-border);
  box-shadow: 0 12px 34px color-mix(in srgb, black 55%, transparent), 0 0 0 1px color-mix(in srgb, black 25%, transparent);
  color: var(--wz-text); font-family: var(--wz-font-ui); font-size: var(--wz-text-md); line-height: 1.42;
  animation: wos-lk-in 140ms var(--wz-ease);
}
.wos-lookup[hidden] { display: none; }
@keyframes wos-lk-in { from { transform: translateY(4px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .wos-lookup { animation: none; } }
.wos-lookup .lk-term { font-family: var(--wz-font-ui); font-size: var(--wz-text-md); font-weight: 650; line-height: 1.3; color: var(--wz-text); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wos-lookup .lk-body { margin: var(--wz-space-2) 0 0; font-family: var(--wz-font-reading, var(--wz-font-ui)); font-size: var(--wz-text-lg); line-height: 1.45; color: var(--wz-text); overflow-wrap: anywhere; }
.wos-lookup[data-state="loading"] .lk-body, .wos-lookup[data-state="streaming"] .lk-body, .wos-lookup[data-state="error"] .lk-body { color: var(--wz-text-secondary); }
.wos-lookup small { display: block; margin-top: var(--wz-space-3); color: var(--wz-text-muted); font-family: var(--wz-font-ui); font-size: 0.66rem; font-weight: 700; line-height: 1; letter-spacing: .12em; text-transform: uppercase; }
.wos-lookup .lk-retry {
  display: inline-flex; align-items: center; min-height: 32px; margin-left: var(--wz-space-1); padding: 0 var(--wz-space-3); border-radius: var(--wz-radius-pill);
  border: 1px solid var(--wz-border); background: var(--wz-accent-soft); color: var(--wz-accent);
  font-family: var(--wz-font-ui); font-size: var(--wz-text-sm); font-weight: 650; line-height: 1; -webkit-tap-highlight-color: transparent;
}
.wos-lookup .lk-retry:active { background: var(--wz-border); }
