// Vector Arithmetic panel (extracted from Sidebar.js in H4 4.6). // A − B + C term inputs + Top-K, firing ctx.onCalculate; results land in #math-results. /** @typedef {import('../types.js').PanelContext} PanelContext */ /** * Build the Vector Arithmetic card and wire the CALCULATE button. * @param {PanelContext} ctx * @returns {HTMLElement} */ export function buildVectorMathPanel(ctx) { const arithmetic = document.createElement('div'); arithmetic.className = 'section-card'; arithmetic.innerHTML = `