...      if ok:
                processed += 1
            else:
                failed += 1
                log.write(f"[FAIL] {rel} {err}\n")

        log.write(f"[DONE] ok={processed} failed={failed} total={len(extract_files)}\n")

    print(f"FERTIG Phase3: ok={processed} failed={failed} total={len(extract_files)}")
    print(f"Output: {results_path}")
    print(f"Index:  {index_path}")
    print(f"Lo...