// hive-menu.js — , the generic dropdown-menu shadow-DOM custom // element behind any "click a trigger, get a positioned dropdown" UI // (currently just 's per-agent "⋮" menu). Owns // open/close state, trigger + dropdown positioning, singleton // close-on-open coordination across every `` instance in the // app, and the document-level outside-click/Escape listeners. Doesn't // know or care what's inside the trigger/dropdown — opaque DOM nodes the // caller hands over via `._opts = { trigger, content }` before appending // (same `._opts`-before-append convention `` uses). // // `trigger`/`content` are appended as *light-DOM* children, projected // into the shadow template via named ``s rather than moved into // the shadow root. Load-bearing: it keeps the caller's own class-scoped // styling applying to the nodes it built — a `