* @param {HTMLElement} root the element draw() rebuilds.
* @param {Function} draw replaces root's children; the text field the operator types in keeps focus and caret when draw() rebuilds it under the same aria-label.
* @param {Object} item a decision, a decision row, a decision card or a permission ask: id, options [{label, description, preview}], recommended (labels joined by PICKED), multi.
* @param {Object} how pick: called with the answer, one label, the toggled labels in option order joined by PICKED, or the trimmed Other text, and true for the Other text only; other: the Other field's placeholder; toggled: the Set of toggled labels of a multi decision, kept by the caller across redraws; chosen: the answer given so far, "" for none; locked: whether the dialog takes no answer; hint: what an answer does, shown in the titles; group: an extra class of the option list.
* @returns {HTMLElement} the dialog an AskUserQuestion shows: numbered options with their description, the recommended ones tagged, a free-text Other row, Send for a multi decision, and a preview pane beside them once an option has one. The keys 1 to n pick or toggle an option, n + 1 focuses Other.
constsend=item.multi?h("button",{type:"button",class:"btn small primary choice-send",disabled:how.locked||!how.toggled.size,...named("Send",revealed(`Send the toggled options: ${how.hint}`))},icon("bi-check2-square"),"Send"):null;
constinput=h("input",{class:"field",type:"text",maxlength:OTHER_LIMIT,placeholder:how.other,"aria-label":`Other answer to ${item.id}`,value:typed||drafts.get(item.id)||null,disabled:how.locked});