/** * Portable Text block renderer — Phase 7 of the LLM-authored UI element * instantiation work. * * `renderBlocks(blocks)` walks a Portable Text tree and produces a * `DocumentFragment` of known-safe DOM. Calling code attaches the * fragment via `target.appendChild(fragment)` / * `target.insertAdjacentElement(...)` — **never** via `innerHTML`. * * The safety story: * * 1. **No `innerHTML` from agent data, ever.** Every text reaches the * DOM through `document.createTextNode` or `element.textContent`. * Even if an agent slips a `