              <div id="correction-debug" class="text-xs overflow-x-auto p-2 bg-white border">
                Loading...
              </div>
              <script>
                document.addEventListener("DOMContentLoaded", function() {
                  const annotatedEl = document.getElementById("annotated-text");
                  if (!annotatedEl) return;

                  // Count visible corrections
                  const visibleCorrections = annotatedEl.querySelectorAll('.rounded.group.cursor-he