// Atlas · Step 5 — Draft review with inline Google-Docs-style comments const { useState: useStateDr, useEffect: useEffectDr, useMemo: useMemoDr, useRef: useRefDr, useCallback: useCallbackDr, } = React; const NOWRAP_THRESHOLD = 25; function getCellsForColumn(table, colIdx) { const cells = []; Array.from(table.rows).forEach(tr => { let cursor = 0; for (const cell of tr.cells) { const span = parseInt(cell.getAttribute("colspan") || "1", 10); if (cursor === colIdx) { cells.push(cell); break; } if (cursor > colIdx) break; cursor += span; } }); return cells; } function applyTableColumnWidths(html) { if (!html || !html.includes("