/* The box a word is looked up in (word-lookup.js): its translation, saving it as a card, the dictionary */
.wl-pop { position: fixed; z-index: 60; width: min(400px, calc(100vw - 16px)); max-height: min(72vh, 620px); overflow-y: auto;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-lg, 0 8px 24px rgba(0, 0, 0, .18)); line-height: 1.5; }
.wl-pop[hidden] { display: none; }
.wl-head { display: flex; align-items: flex-start; gap: 4px; }
.wl-title { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.wl-title b { font-size: 1.15em; overflow-wrap: anywhere; }
.wl-ipa { color: var(--text-2); font-size: .9em; }
.wl-sub { font-size: .82em; }
.wl-icon { padding: 2px 6px; border: none; background: none; font-size: .95em; line-height: 1; cursor: pointer; }
.wl-close { color: var(--muted); }
.wl-body { margin: 8px 0 10px; font-size: .92em; overflow-wrap: anywhere; }
.wl-vi { margin-bottom: 8px; }
.wl-ai { margin-bottom: 10px; padding: 8px 10px; border-radius: 10px; background: var(--primary-soft); }
.wl-ai.muted { background: var(--surface-2); }
.wl-ai p { margin: 6px 0 0; }
.wl-ai blockquote { margin: 6px 0 0; padding-left: 8px; border-left: 3px solid var(--primary-border); }
.wl-label { font-size: .78em; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.wl-meaning { font-weight: 700; font-size: 1.05em; }
.wl-senses section { margin-top: 6px; }
.wl-senses ol { margin: 2px 0 0; padding-left: 20px; }
.wl-senses li { margin: 2px 0; }
.wl-senses li > span { margin-right: 6px; }
.wl-sense { padding: 0 6px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface); font-size: .8em; cursor: pointer; }
.wl-sense:disabled { cursor: default; border-color: transparent; }
.wl-yg { margin: 0 0 10px; font-size: .88em; }
.wl-yg[hidden] { display: none; }
.wl-yg summary { cursor: pointer; color: var(--primary-text); }
.wl-yg > div { margin-top: 6px; }
.wl-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.wl-actions a.sm { padding: 5px 12px; border: 1px solid var(--border-strong); border-radius: 8px; font-size: .85em; text-decoration: none; }
.wl-note { margin-top: 6px; font-size: .82em; }
.wl-note:empty { display: none; }
/* a phone: docked along the bottom, over the page, not next to a selection the phone's own menu covers */
@media (max-width: 600px) {
  .wl-pop { top: auto !important; left: 8px !important; right: 8px; bottom: 8px; width: auto; max-height: 60vh; }
}
.wl-chip { padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.wl-hl-btn { background: rgba(250, 204, 21, .45); }
