{"id":2674,"date":"2026-04-18T14:12:21","date_gmt":"2026-04-18T14:12:21","guid":{"rendered":"https:\/\/primetoolhub.com\/?page_id=2674"},"modified":"2026-08-09T08:16:24","modified_gmt":"2026-08-09T08:16:24","slug":"free-ai-image-detector-forensic-analyzer","status":"publish","type":"page","link":"https:\/\/schoolict.net\/tools\/free-ai-image-detector-forensic-analyzer\/","title":{"rendered":"Free AI Image Detector &amp; Forensic Analyzer Offline"},"content":{"rendered":"<div class=\"pth-hero-section\">\n<div class=\"pth-hero-content\">\n<h2><b data-path-to-node=\"5,1,0\" data-index-in-node=\"0\">Offline Forensic Image Verification Suite<\/b> \u2014 Free local tool for ELA, metadata scanning, and synthetic media detection.<\/h2>\n<p>Wondering if a photo or video is AI-generated? Use our free, 100% offline AI Media Forensic Analyzer to scan EXIF data and view ELA heatmaps securely in your browser.<\/p>\n<div id=\"pth-toc-placeholder\">\u00a0<\/div>\n<\/div>\n<div class=\"pth-hero-image\"><img decoding=\"async\" src=\"https:\/\/schoolict.net\/tools\/wp-content\/uploads\/2026\/04\/free-ai-image-detector-1-1024x572.jpeg\" alt=\"free ai image detector\" width=\"450\" height=\"253\" data-no-lazy=\"1\" \/><\/div>\n<\/div>\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#\ud83d\udd34-what-this-page-does-not-do\">\ud83d\udd34 What This Page Does Not Do<\/a><\/li><li><a href=\"#\ud83d\udfe1-the-content-audit-tab\">\ud83d\udfe1 The Content Audit Tab<\/a><ul><li><a href=\"#what-gets-counted\">What gets counted<\/a><\/li><li><a href=\"#reading-the-score\">Reading the score<\/a><\/li><li><a href=\"#a-real-before-and-after\">A real before and after<\/a><\/li><\/ul><\/li><li><a href=\"#\ud83d\udfe2-the-image-tabs\">\ud83d\udfe2 The Image Tabs<\/a><\/li><li><a href=\"#\ud83d\udd34-honest-limits\">\ud83d\udd34 Honest Limits<\/a><ul><li><a href=\"#a-clean-score-is-not-a-good-page\">A clean score is not a good page<\/a><\/li><li><a href=\"#the-word-lists-are-opinionated\">The word lists are opinionated<\/a><\/li><li><a href=\"#the-image-passes-suggest-they-do-not-prove\">The image passes suggest, they do not prove<\/a><\/li><li><a href=\"#missing-metadata-usually-means-nothing\">Missing metadata usually means nothing<\/a><\/li><li><a href=\"#practical-ceilings\">Practical ceilings<\/a><\/li><\/ul><\/li><li><a href=\"#\ud83d\udfe1-where-to-go-next\">\ud83d\udfe1 Where to Go Next<\/a><\/li><\/ul><\/nav><\/div>\n\n\n<style>\r\n\/* ==========================================================================\r\n   PRIME TOOL HUB - MEDIA & CONTENT FORENSICS STUDIO v5.0\r\n   ========================================================================== *\/\r\n#pth-forensic-wrapper { font-family: 'Inter', system-ui, -apple-system, sans-serif; max-width: 1400px; margin: 0 auto; background: #f8fafc; padding: 20px; border-radius: 16px; color: #0f172a; line-height: 1.6; opacity: 1; }\r\n#pth-forensic-wrapper * { box-sizing: border-box; min-width: 0; }\r\n\r\n#pth-forensic-wrapper .pth-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }\r\n#pth-forensic-wrapper .pth-h2 { font-size: 30px; font-weight: 800; color: #1d4ed8; margin: 0 0 8px 0; letter-spacing: -0.5px; }\r\n#pth-forensic-wrapper .pth-sub { font-size: 15px; color: #475569; margin: 0 0 10px 0; font-weight: 500; }\r\n#pth-forensic-wrapper .pth-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }\r\n#pth-forensic-wrapper .pth-version-badge { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }\r\n#pth-forensic-wrapper .pth-status-offline { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }\r\n#pth-forensic-wrapper .pth-head-btns { display: flex; gap: 8px; flex-wrap: wrap; }\r\n\r\n#pth-forensic-wrapper .pth-btn { padding: 9px 16px; border-radius: 8px; font-weight: 700; cursor: pointer; border: 1px solid #e2e8f0; font-family: inherit; font-size: 14px; background: #ffffff; color: #334155; }\r\n#pth-forensic-wrapper .pth-btn:hover { background: #f1f5f9; color: #0f172a; }\r\n#pth-forensic-wrapper .pth-btn.primary { background: #1d4ed8; color: #ffffff; border-color: #1d4ed8; }\r\n#pth-forensic-wrapper .pth-btn.primary:hover { background: #1e40af; color: #ffffff; }\r\n#pth-forensic-wrapper .pth-btn.success { background: #047857; color: #ffffff; border-color: #047857; }\r\n#pth-forensic-wrapper .pth-btn.success:hover { background: #065f46; color: #ffffff; }\r\n#pth-forensic-wrapper .pth-btn.danger { background: #fee2e2; color: #991b1b; border-color: #fecaca; }\r\n#pth-forensic-wrapper .pth-btn.danger:hover { background: #fecaca; color: #7f1d1d; }\r\n#pth-forensic-wrapper .pth-btn.sm { padding: 5px 11px; font-size: 12px; }\r\n#pth-forensic-wrapper .pth-btn:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }\r\n#pth-forensic-wrapper .pth-btn[disabled] { opacity: 0.55; cursor: not-allowed; }\r\n\r\n#pth-forensic-wrapper .pth-tabbar { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 2px solid #e2e8f0; margin-bottom: 20px; }\r\n#pth-forensic-wrapper .pth-tab { padding: 11px 18px; border: none; background: transparent; font-family: inherit; font-size: 14px; font-weight: 700; color: #64748b; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }\r\n#pth-forensic-wrapper .pth-tab:hover { color: #1d4ed8; }\r\n#pth-forensic-wrapper .pth-tab.active { color: #1d4ed8; border-bottom-color: #1d4ed8; }\r\n#pth-forensic-wrapper .pth-tab:focus-visible { outline: 3px solid #93c5fd; outline-offset: -3px; }\r\n#pth-forensic-wrapper .pth-panel { display: none; }\r\n#pth-forensic-wrapper .pth-panel.active { display: block; }\r\n\r\n#pth-forensic-wrapper .pth-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 22px; align-items: start; }\r\n#pth-forensic-wrapper .pth-grid.pth-full-width { grid-template-columns: 1fr; }\r\n#pth-forensic-wrapper .pth-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); margin-bottom: 18px; }\r\n#pth-forensic-wrapper .pth-card:last-child { margin-bottom: 0; }\r\n#pth-forensic-wrapper .pth-card-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; font-weight: 800; color: #0f172a; margin: 0 0 14px 0; }\r\n\r\n#pth-forensic-wrapper .pth-label { font-size: 13px; font-weight: 700; color: #334155; display: block; margin-bottom: 5px; }\r\n#pth-forensic-wrapper .pth-inp, #pth-forensic-wrapper .pth-select, #pth-forensic-wrapper .pth-textarea { width: 100%; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-family: inherit; font-size: 14px; color: #0f172a; background: #ffffff; }\r\n#pth-forensic-wrapper .pth-textarea { line-height: 1.7; resize: vertical; min-height: 210px; }\r\n#pth-forensic-wrapper .pth-inp:focus, #pth-forensic-wrapper .pth-select:focus, #pth-forensic-wrapper .pth-textarea:focus { outline: 3px solid #93c5fd; outline-offset: 1px; border-color: #1d4ed8; }\r\n#pth-forensic-wrapper .pth-ctrlbar { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }\r\n#pth-forensic-wrapper .pth-stat { background: #f1f5f9; color: #475569; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }\r\n\r\n#pth-forensic-wrapper .pth-drop { border: 2px dashed #cbd5e1; border-radius: 10px; padding: 30px 20px; text-align: center; background: #f8fafc; cursor: pointer; }\r\n#pth-forensic-wrapper .pth-drop:hover { border-color: #1d4ed8; background: #eff6ff; }\r\n#pth-forensic-wrapper .pth-drop.over { border-color: #1d4ed8; background: #dbeafe; }\r\n\r\n\/* Verdict banner *\/\r\n#pth-forensic-wrapper .pth-verdict { display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: 12px; margin-bottom: 18px; flex-wrap: wrap; min-height: 92px; }\r\n#pth-forensic-wrapper .pth-verdict.good { background: #f0fdf4; border: 1px solid #bbf7d0; }\r\n#pth-forensic-wrapper .pth-verdict.warn { background: #fffbeb; border: 1px solid #fde68a; }\r\n#pth-forensic-wrapper .pth-verdict.bad { background: #fef2f2; border: 1px solid #fecaca; }\r\n#pth-forensic-wrapper .pth-verdict.neu { background: #f8fafc; border: 1px solid #e2e8f0; }\r\n#pth-forensic-wrapper .pth-vscore { font-size: 38px; font-weight: 800; font-family: 'Consolas', monospace; line-height: 1; }\r\n#pth-forensic-wrapper .pth-verdict.good .pth-vscore { color: #166534; }\r\n#pth-forensic-wrapper .pth-verdict.warn .pth-vscore { color: #92400e; }\r\n#pth-forensic-wrapper .pth-verdict.bad .pth-vscore { color: #991b1b; }\r\n#pth-forensic-wrapper .pth-verdict.neu .pth-vscore { color: #475569; }\r\n#pth-forensic-wrapper .pth-vtext { flex: 1; min-width: 200px; }\r\n#pth-forensic-wrapper .pth-vlabel { font-size: 17px; font-weight: 800; color: #0f172a; margin-bottom: 3px; }\r\n#pth-forensic-wrapper .pth-vdesc { font-size: 13.5px; color: #475569; }\r\n\r\n#pth-forensic-wrapper .pth-statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }\r\n#pth-forensic-wrapper .pth-statgrid.three { grid-template-columns: repeat(3, 1fr); }\r\n#pth-forensic-wrapper .pth-statbox { border: 1px solid #e2e8f0; border-radius: 8px; padding: 13px; text-align: center; background: #f8fafc; }\r\n#pth-forensic-wrapper .pth-statbox .n { font-size: 21px; font-weight: 800; color: #0f172a; font-family: 'Consolas', monospace; }\r\n#pth-forensic-wrapper .pth-statbox .t { font-size: 11px; color: #64748b; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }\r\n#pth-forensic-wrapper .pth-statbox.good { background: #f0fdf4; border-color: #bbf7d0; }\r\n#pth-forensic-wrapper .pth-statbox.good .n { color: #166534; }\r\n#pth-forensic-wrapper .pth-statbox.warn { background: #fffbeb; border-color: #fde68a; }\r\n#pth-forensic-wrapper .pth-statbox.warn .n { color: #92400e; }\r\n#pth-forensic-wrapper .pth-statbox.bad { background: #fef2f2; border-color: #fecaca; }\r\n#pth-forensic-wrapper .pth-statbox.bad .n { color: #991b1b; }\r\n\r\n#pth-forensic-wrapper .pth-finding { border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px 14px; margin-bottom: 9px; background: #ffffff; }\r\n#pth-forensic-wrapper .pth-finding.high { border-left: 4px solid #dc2626; background: #fef2f2; }\r\n#pth-forensic-wrapper .pth-finding.med { border-left: 4px solid #d97706; background: #fffbeb; }\r\n#pth-forensic-wrapper .pth-finding.low { border-left: 4px solid #16a34a; background: #f0fdf4; }\r\n#pth-forensic-wrapper .pth-f-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 5px; }\r\n#pth-forensic-wrapper .pth-f-title { font-size: 13.5px; font-weight: 800; color: #0f172a; }\r\n#pth-forensic-wrapper .pth-f-count { font-family: 'Consolas', monospace; font-weight: 800; font-size: 13px; color: #475569; }\r\n#pth-forensic-wrapper .pth-f-why { font-size: 12.5px; color: #475569; line-height: 1.55; margin-bottom: 6px; }\r\n#pth-forensic-wrapper .pth-f-hits { display: flex; flex-wrap: wrap; gap: 6px; }\r\n#pth-forensic-wrapper .pth-hit { background: #ffffff; border: 1px solid #e2e8f0; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #334155; font-family: 'Consolas', monospace; }\r\n\r\n#pth-forensic-wrapper .pth-bar-row { display: grid; grid-template-columns: 128px 1fr 60px; gap: 10px; align-items: center; margin-bottom: 8px; font-size: 12.5px; }\r\n#pth-forensic-wrapper .pth-bar-name { color: #334155; font-weight: 700; }\r\n#pth-forensic-wrapper .pth-bar-track { background: #f1f5f9; border-radius: 999px; height: 9px; overflow: hidden; }\r\n#pth-forensic-wrapper .pth-bar-fill { height: 100%; border-radius: 999px; background: #1d4ed8; width: 0; }\r\n#pth-forensic-wrapper .pth-bar-fill.g { background: #16a34a; }\r\n#pth-forensic-wrapper .pth-bar-fill.w { background: #d97706; }\r\n#pth-forensic-wrapper .pth-bar-fill.b { background: #dc2626; }\r\n#pth-forensic-wrapper .pth-bar-val { text-align: right; font-family: 'Consolas', monospace; color: #475569; font-weight: 700; }\r\n\r\n#pth-forensic-wrapper .pth-canvaswrap { border: 1px solid #e2e8f0; border-radius: 8px; background: #ffffff; padding: 10px; text-align: center; min-height: 120px; }\r\n#pth-forensic-wrapper canvas { max-width: 100%; height: auto; border-radius: 6px; }\r\n#pth-forensic-wrapper .pth-imgrow { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }\r\n\r\n#pth-forensic-wrapper .pth-tablewrap { border: 1px solid #e2e8f0; border-radius: 8px; overflow: auto; max-height: 360px; min-height: 90px; }\r\n#pth-forensic-wrapper table { width: 100%; border-collapse: collapse; font-size: 13px; }\r\n#pth-forensic-wrapper th { background: #f1f5f9; color: #334155; text-align: left; padding: 8px 11px; font-weight: 800; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.4px; position: sticky; top: 0; }\r\n#pth-forensic-wrapper td { padding: 8px 11px; border-top: 1px solid #f1f5f9; color: #334155; vertical-align: top; word-break: break-word; }\r\n#pth-forensic-wrapper td.k { font-weight: 700; color: #0f172a; width: 34%; }\r\n#pth-forensic-wrapper .pth-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }\r\n#pth-forensic-wrapper .pth-pill.g { background: #dcfce7; color: #166534; }\r\n#pth-forensic-wrapper .pth-pill.w { background: #fef3c7; color: #92400e; }\r\n#pth-forensic-wrapper .pth-pill.b { background: #fee2e2; color: #991b1b; }\r\n\r\n#pth-forensic-wrapper .pth-note { padding: 12px 15px; border-radius: 8px; font-size: 13.5px; margin-bottom: 14px; line-height: 1.6; }\r\n#pth-forensic-wrapper .pth-note.info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }\r\n#pth-forensic-wrapper .pth-note.ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }\r\n#pth-forensic-wrapper .pth-note.warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }\r\n\r\n#pth-forensic-wrapper .pth-side h3 { font-size: 15px; font-weight: 800; color: #1e293b; margin: 0 0 9px 0; }\r\n#pth-forensic-wrapper .pth-side h3.spaced { margin-top: 22px; }\r\n#pth-forensic-wrapper .pth-side p { font-size: 13.5px; color: #475569; margin: 0 0 12px 0; }\r\n#pth-forensic-wrapper .pth-side ul { margin: 0 0 12px 0; padding-left: 18px; }\r\n#pth-forensic-wrapper .pth-side li { font-size: 13.5px; color: #475569; margin-bottom: 6px; }\r\n#pth-forensic-wrapper .pth-side a { color: #1d4ed8; font-weight: 700; text-decoration: none; }\r\n#pth-forensic-wrapper .pth-side a:hover { text-decoration: underline; }\r\n#pth-forensic-wrapper code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-family: 'Consolas', monospace; font-size: 12.5px; color: #1e293b; }\r\n#pth-forensic-wrapper .pth-tip { background: #eff6ff; border: 1px solid #bfdbfe; padding: 13px; border-radius: 8px; font-size: 13px; color: #1e40af; line-height: 1.6; }\r\n\r\n@media (max-width: 900px) {\r\n    #pth-forensic-wrapper { padding: 14px; }\r\n    #pth-forensic-wrapper .pth-grid { grid-template-columns: 1fr; }\r\n    #pth-forensic-wrapper .pth-h2 { font-size: 24px; }\r\n    #pth-forensic-wrapper .pth-tab { padding: 10px 12px; font-size: 13px; }\r\n    #pth-forensic-wrapper .pth-statgrid, #pth-forensic-wrapper .pth-statgrid.three { grid-template-columns: repeat(2, 1fr); }\r\n    #pth-forensic-wrapper .pth-imgrow { grid-template-columns: 1fr; }\r\n    #pth-forensic-wrapper .pth-bar-row { grid-template-columns: 100px 1fr 52px; }\r\n}\r\n<\/style>\r\n\r\n<div id=\"pth-forensic-toast\" style=\"position:fixed; bottom:24px; right:24px; background:#0f172a; color:#ffffff; padding:13px 22px; border-radius:10px; font-size:14px; font-weight:700; box-shadow:0 10px 25px rgba(0,0,0,0.2); z-index:2147483000; display:none; font-family:'Inter',system-ui,sans-serif; max-width:320px;\" role=\"status\" aria-live=\"polite\">Done<\/div>\r\n\r\n<div id=\"pth-forensic-wrapper\">\r\n\r\n    <div class=\"pth-head\">\r\n        <div>\r\n            <h2 class=\"pth-h2\">\ud83d\udd2c Media &amp; Content Forensics Studio<\/h2>\r\n            <p class=\"pth-sub\">Check an image for signs of editing, and audit written content for the patterns that make a page read as machine-written.<\/p>\r\n            <div class=\"pth-badges\">\r\n                <span class=\"pth-version-badge\">v5.0<\/span>\r\n                <span class=\"pth-status-offline\">\ud83d\udd12 100% Offline<\/span>\r\n            <\/div>\r\n        <\/div>\r\n        <div class=\"pth-head-btns\">\r\n            <button type=\"button\" class=\"pth-btn\" id=\"pth-f-sample\">\ud83d\udca1 Load Sample<\/button>\r\n            <button type=\"button\" class=\"pth-btn\" id=\"pth-f-fw\">\u26f6 Full Width<\/button>\r\n            <button type=\"button\" class=\"pth-btn danger\" id=\"pth-f-clear\">\ud83d\uddd1\ufe0f Clear<\/button>\r\n        <\/div>\r\n    <\/div>\r\n\r\n    <div class=\"pth-tabbar\" role=\"tablist\">\r\n        <button type=\"button\" class=\"pth-tab active\" data-pth-panel=\"content\" role=\"tab\">\ud83d\udcdd Content Audit<\/button>\r\n        <button type=\"button\" class=\"pth-tab\" data-pth-panel=\"image\" role=\"tab\">\ud83d\uddbc\ufe0f Image Forensics<\/button>\r\n        <button type=\"button\" class=\"pth-tab\" data-pth-panel=\"meta\" role=\"tab\">\ud83d\uddfa\ufe0f Metadata<\/button>\r\n        <button type=\"button\" class=\"pth-tab\" data-pth-panel=\"report\" role=\"tab\">\ud83d\udccb Report<\/button>\r\n    <\/div>\r\n\r\n    <div class=\"pth-grid\" id=\"pth-f-grid\">\r\n\r\n        <div>\r\n            <!-- ============ PANEL 1: CONTENT AUDIT ============ -->\r\n            <div class=\"pth-panel active\" id=\"pth-panel-content\" role=\"tabpanel\">\r\n                <div class=\"pth-card\">\r\n                    <div class=\"pth-card-title\">\r\n                        <span>\ud83d\udcdd Text to audit<\/span>\r\n                        <div style=\"display:flex; gap:7px; flex-wrap:wrap; align-items:center;\">\r\n                            <input type=\"text\" id=\"pth-f-kw\" class=\"pth-inp\" style=\"width:190px; padding:6px 10px; font-size:12.5px;\" placeholder=\"Focus keyword (optional)\" aria-label=\"Focus keyword\">\r\n                            <button type=\"button\" class=\"pth-btn sm primary\" id=\"pth-f-audit\">\u26a1 Audit<\/button>\r\n                        <\/div>\r\n                    <\/div>\r\n                    <p style=\"font-size:12.5px; color:#64748b; margin:0 0 9px 0;\">Paste the body text of a page. HTML is fine \u2014 tags are stripped before counting. Nothing is uploaded.<\/p>\r\n                    <textarea id=\"pth-f-text\" class=\"pth-textarea\" placeholder=\"Paste your article, tool description or page copy here...\" aria-label=\"Text to audit\"><\/textarea>\r\n                    <div class=\"pth-ctrlbar\" style=\"margin-top:11px; margin-bottom:0;\">\r\n                        <span class=\"pth-stat\" id=\"pth-f-wc\">0 words<\/span>\r\n                        <span class=\"pth-stat\" id=\"pth-f-sc\">0 sentences<\/span>\r\n                        <span class=\"pth-stat\" id=\"pth-f-pc\">0 paragraphs<\/span>\r\n                    <\/div>\r\n                <\/div>\r\n\r\n                <div class=\"pth-card\">\r\n                    <div class=\"pth-verdict neu\" id=\"pth-f-verdict\">\r\n                        <div class=\"pth-vscore\" id=\"pth-f-score\">--<\/div>\r\n                        <div class=\"pth-vtext\">\r\n                            <div class=\"pth-vlabel\" id=\"pth-f-vlabel\">Nothing audited yet<\/div>\r\n                            <div class=\"pth-vdesc\" id=\"pth-f-vdesc\">Paste some text and press Audit. The score counts editorial problems, so lower is better.<\/div>\r\n                        <\/div>\r\n                    <\/div>\r\n\r\n                    <div class=\"pth-statgrid\">\r\n                        <div class=\"pth-statbox\" id=\"pth-box-banned\"><div class=\"n\" id=\"pth-f-banned\">0<\/div><div class=\"t\">Banned words<\/div><\/div>\r\n                        <div class=\"pth-statbox\" id=\"pth-box-tells\"><div class=\"n\" id=\"pth-f-tells\">0<\/div><div class=\"t\">Structural tells<\/div><\/div>\r\n                        <div class=\"pth-statbox\" id=\"pth-box-rhythm\"><div class=\"n\" id=\"pth-f-rhythm\">--<\/div><div class=\"t\">Rhythm score<\/div><\/div>\r\n                        <div class=\"pth-statbox\" id=\"pth-box-density\"><div class=\"n\" id=\"pth-f-density\">--<\/div><div class=\"t\">Keyword %<\/div><\/div>\r\n                    <\/div>\r\n\r\n                    <h3 style=\"font-size:15px; font-weight:800; color:#1e293b; margin:0 0 11px 0;\">What to fix<\/h3>\r\n                    <div id=\"pth-f-findings\"><p style=\"font-size:13px; color:#94a3b8; margin:0;\">Findings appear here, most important first.<\/p><\/div>\r\n                <\/div>\r\n\r\n                <div class=\"pth-card\">\r\n                    <div class=\"pth-card-title\"><span>\ud83d\udccf Sentence rhythm<\/span><span class=\"pth-stat\" id=\"pth-f-rhythm-note\"><\/span><\/div>\r\n                    <p style=\"font-size:12.5px; color:#64748b; margin:0 0 11px 0;\">Human writing varies sentence length a lot. Generated text tends to settle into one comfortable length and stay there. This chart is that variation made visible.<\/p>\r\n                    <div class=\"pth-canvaswrap\"><canvas id=\"pth-f-rhythm-canvas\" width=\"700\" height=\"150\"><\/canvas><\/div>\r\n                    <div id=\"pth-f-rhythm-bars\" style=\"margin-top:14px;\"><\/div>\r\n                <\/div>\r\n\r\n                <div class=\"pth-card\">\r\n                    <div class=\"pth-card-title\"><span>\ud83d\udd01 Repeated openers<\/span><\/div>\r\n                    <p style=\"font-size:12.5px; color:#64748b; margin:0 0 11px 0;\">Paragraphs and sentences that all begin the same way are one of the most visible tells, and one of the easiest things to fix.<\/p>\r\n                    <div class=\"pth-tablewrap\">\r\n                        <table>\r\n                            <thead><tr><th style=\"width:120px;\">Opening<\/th><th style=\"width:70px;\">Times<\/th><th>Example<\/th><\/tr><\/thead>\r\n                            <tbody id=\"pth-f-openers\"><\/tbody>\r\n                        <\/table>\r\n                    <\/div>\r\n                <\/div>\r\n            <\/div>\r\n\r\n            <!-- ============ PANEL 2: IMAGE FORENSICS ============ -->\r\n            <div class=\"pth-panel\" id=\"pth-panel-image\" role=\"tabpanel\">\r\n                <div class=\"pth-card\">\r\n                    <div class=\"pth-card-title\"><span>\ud83d\uddbc\ufe0f Load an image<\/span><span class=\"pth-stat\" id=\"pth-f-img-stat\">No image loaded<\/span><\/div>\r\n                    <div class=\"pth-drop\" id=\"pth-f-drop\">\r\n                        <div style=\"font-size:34px; margin-bottom:8px;\">\ud83d\udcc2<\/div>\r\n                        <div style=\"font-size:14px; font-weight:700; color:#334155;\">Drop an image here, or click to browse<\/div>\r\n                        <div style=\"font-size:12.5px; color:#64748b; margin-top:5px;\">JPEG, PNG or WebP. The file is read in your browser and never uploaded.<\/div>\r\n                        <input type=\"file\" id=\"pth-f-file\" accept=\"image\/*\" style=\"display:none;\" aria-label=\"Choose an image file\">\r\n                    <\/div>\r\n                    <div class=\"pth-ctrlbar\" style=\"margin-top:12px; margin-bottom:0;\">\r\n                        <button type=\"button\" class=\"pth-btn primary\" id=\"pth-f-run-image\">\ud83d\udd2c Run analysis<\/button>\r\n                        <select id=\"pth-f-ela-q\" class=\"pth-select\" style=\"width:auto;\" aria-label=\"ELA quality\">\r\n                            <option value=\"90\">ELA quality 90<\/option>\r\n                            <option value=\"75\" selected>ELA quality 75<\/option>\r\n                            <option value=\"60\">ELA quality 60<\/option>\r\n                        <\/select>\r\n                    <\/div>\r\n                <\/div>\r\n\r\n                <div class=\"pth-card\">\r\n                    <div class=\"pth-card-title\"><span>\ud83d\udd0d Passes<\/span><\/div>\r\n                    <div class=\"pth-imgrow\">\r\n                        <div>\r\n                            <div class=\"pth-label\">Original<\/div>\r\n                            <div class=\"pth-canvaswrap\"><canvas id=\"pth-f-c-orig\" width=\"420\" height=\"280\"><\/canvas><\/div>\r\n                        <\/div>\r\n                        <div>\r\n                            <div class=\"pth-label\">Error level analysis<\/div>\r\n                            <div class=\"pth-canvaswrap\"><canvas id=\"pth-f-c-ela\" width=\"420\" height=\"280\"><\/canvas><\/div>\r\n                        <\/div>\r\n                        <div>\r\n                            <div class=\"pth-label\">Noise residual<\/div>\r\n                            <div class=\"pth-canvaswrap\"><canvas id=\"pth-f-c-noise\" width=\"420\" height=\"280\"><\/canvas><\/div>\r\n                        <\/div>\r\n                        <div>\r\n                            <div class=\"pth-label\">Luminance gradient<\/div>\r\n                            <div class=\"pth-canvaswrap\"><canvas id=\"pth-f-c-grad\" width=\"420\" height=\"280\"><\/canvas><\/div>\r\n                        <\/div>\r\n                    <\/div>\r\n                    <div class=\"pth-note info\" style=\"margin-top:14px; margin-bottom:0;\" id=\"pth-f-img-note\">Load an image and press Run analysis. Each pass is a different way of looking at the same pixels.<\/div>\r\n                <\/div>\r\n\r\n                <div class=\"pth-card\">\r\n                    <div class=\"pth-card-title\"><span>\ud83d\udcca Measurements<\/span><\/div>\r\n                    <div class=\"pth-statgrid three\">\r\n                        <div class=\"pth-statbox\"><div class=\"n\" id=\"pth-f-ela-mean\">--<\/div><div class=\"t\">ELA mean<\/div><\/div>\r\n                        <div class=\"pth-statbox\"><div class=\"n\" id=\"pth-f-noise-sd\">--<\/div><div class=\"t\">Noise sigma<\/div><\/div>\r\n                        <div class=\"pth-statbox\"><div class=\"n\" id=\"pth-f-uniform\">--<\/div><div class=\"t\">Noise uniformity<\/div><\/div>\r\n                    <\/div>\r\n                    <div class=\"pth-canvaswrap\"><canvas id=\"pth-f-c-hist\" width=\"700\" height=\"150\"><\/canvas><\/div>\r\n                    <p style=\"font-size:12.5px; color:#64748b; margin:11px 0 0 0;\">Histogram of the luminance channel. Sharp isolated spikes or comb-like gaps often mean the image has been through a levels or curves adjustment.<\/p>\r\n                <\/div>\r\n            <\/div>\r\n\r\n            <!-- ============ PANEL 3: METADATA ============ -->\r\n            <div class=\"pth-panel\" id=\"pth-panel-meta\" role=\"tabpanel\">\r\n                <div class=\"pth-card\">\r\n                    <div class=\"pth-card-title\"><span>\ud83d\uddfa\ufe0f File metadata<\/span><button type=\"button\" class=\"pth-btn sm\" id=\"pth-f-copy-meta\">\ud83d\udccb Copy<\/button><\/div>\r\n                    <div class=\"pth-note info\" id=\"pth-f-meta-note\">Load an image on the Image Forensics tab and its metadata is read here. An absence of metadata is itself informative.<\/div>\r\n                    <div class=\"pth-tablewrap\">\r\n                        <table>\r\n                            <thead><tr><th style=\"width:34%;\">Field<\/th><th>Value<\/th><\/tr><\/thead>\r\n                            <tbody id=\"pth-f-meta-rows\"><\/tbody>\r\n                        <\/table>\r\n                    <\/div>\r\n                <\/div>\r\n                <div class=\"pth-card\">\r\n                    <div class=\"pth-card-title\"><span>\ud83d\udd10 File identity<\/span><\/div>\r\n                    <div class=\"pth-tablewrap\">\r\n                        <table>\r\n                            <thead><tr><th style=\"width:34%;\">Field<\/th><th>Value<\/th><\/tr><\/thead>\r\n                            <tbody id=\"pth-f-hash-rows\"><\/tbody>\r\n                        <\/table>\r\n                    <\/div>\r\n                    <p style=\"font-size:12.5px; color:#64748b; margin:11px 0 0 0;\">A SHA-256 digest identifies this exact file. Record it alongside any finding so the analysis can be tied to the file it was run on.<\/p>\r\n                <\/div>\r\n            <\/div>\r\n\r\n            <!-- ============ PANEL 4: REPORT ============ -->\r\n            <div class=\"pth-panel\" id=\"pth-panel-report\" role=\"tabpanel\">\r\n                <div class=\"pth-card\">\r\n                    <div class=\"pth-card-title\">\r\n                        <span>\ud83d\udccb Combined report<\/span>\r\n                        <div style=\"display:flex; gap:7px; flex-wrap:wrap;\">\r\n                            <button type=\"button\" class=\"pth-btn sm\" id=\"pth-f-build-report\">\ud83d\udd04 Rebuild<\/button>\r\n                            <button type=\"button\" class=\"pth-btn sm\" id=\"pth-f-copy-report\">\ud83d\udccb Copy<\/button>\r\n                            <button type=\"button\" class=\"pth-btn sm success\" id=\"pth-f-save-report\">\ud83d\udcbe Save<\/button>\r\n                        <\/div>\r\n                    <\/div>\r\n                    <div class=\"pth-ctrlbar\">\r\n                        <label class=\"pth-label\" for=\"pth-f-rep-fmt\" style=\"margin:0;\">Format<\/label>\r\n                        <select id=\"pth-f-rep-fmt\" class=\"pth-select\" style=\"width:auto;\" aria-label=\"Report format\">\r\n                            <option value=\"md\">Markdown<\/option>\r\n                            <option value=\"txt\">Plain text<\/option>\r\n                            <option value=\"json\">JSON<\/option>\r\n                        <\/select>\r\n                    <\/div>\r\n                    <textarea id=\"pth-f-report\" class=\"pth-textarea\" style=\"min-height:340px; font-family:'Consolas','Monaco',monospace; font-size:12.5px;\" readonly placeholder=\"Run an audit or an image analysis, then press Rebuild.\" aria-label=\"Report output\"><\/textarea>\r\n                <\/div>\r\n            <\/div>\r\n        <\/div>\r\n\r\n        <!-- ============ SIDEBAR ============ -->\r\n        <div class=\"pth-card pth-side\" id=\"pth-f-side\">\r\n            <div id=\"pth-side-content\">\r\n                <h3>What this tab is and is not<\/h3>\r\n                <p>It does <strong>not<\/strong> give you a percentage saying how likely a text is machine-written. Those numbers are unreliable enough to be actively harmful \u2014 a good page flagged at 85% gets rewritten for nothing.<\/p>\r\n                <p>What it does instead is count things that are actually countable: words search reviewers associate with padding, sentence structures that repeat, openers that all look alike, and keyword density that has crept too high. Every finding points at a specific place in your text.<\/p>\r\n                <h3 class=\"spaced\">Reading the score<\/h3>\r\n                <p>The number is a problem count weighted by severity, so <strong>lower is better<\/strong>. Under 15 is a clean page. Over 40 means a reviewer skimming it would notice something is off before they could say why.<\/p>\r\n                <div class=\"pth-tip\"><strong>The honest caveat:<\/strong> a page can score zero here and still be thin. No counter can tell you whether your writing is useful. It can only tell you whether it reads like filler.<\/div>\r\n            <\/div>\r\n\r\n            <div id=\"pth-side-image\" style=\"display:none;\">\r\n                <h3>What each pass shows<\/h3>\r\n                <p><strong>Error level analysis<\/strong> re-saves the image at a set quality and maps the difference. Areas edited after the original save often compress differently and show up brighter. It is suggestive, not conclusive.<\/p>\r\n                <p><strong>Noise residual<\/strong> subtracts a blurred copy from the original, leaving sensor noise. Real camera noise is fairly even; a pasted region frequently carries different noise or almost none.<\/p>\r\n                <p><strong>Luminance gradient<\/strong> exposes lighting direction. Objects lit from a different angle than their surroundings stand out here more clearly than to the eye.<\/p>\r\n                <div class=\"pth-tip\"><strong>Read them together.<\/strong> Any single pass produces false alarms on ordinary photos. A finding worth acting on shows up in more than one.<\/div>\r\n            <\/div>\r\n\r\n            <div id=\"pth-side-meta\" style=\"display:none;\">\r\n                <h3>Absence is a signal<\/h3>\r\n                <p>A photo straight from a camera carries make, model, exposure, lens and often GPS. A file with none of that has been through something \u2014 a social platform, a screenshot, an export, or a deliberate strip.<\/p>\r\n                <p>Editing software usually leaves its own trace. A Software field naming an image editor tells you the file was opened and re-saved, which is not proof of manipulation but is worth knowing.<\/p>\r\n                <div class=\"pth-tip\"><strong>Careful:<\/strong> most image hosts strip metadata automatically. Missing EXIF on a downloaded image usually means the platform removed it, not that anyone hid anything.<\/div>\r\n            <\/div>\r\n\r\n            <div id=\"pth-side-report\" style=\"display:none;\">\r\n                <h3>Why a report rather than a screen<\/h3>\r\n                <p>Findings scattered across four tabs are hard to act on and impossible to hand to anyone else. The report pulls everything into one document with the file hash and a timestamp at the top.<\/p>\r\n                <p>The hash matters more than it looks. It ties the analysis to one exact file, so if the file is later edited the digest no longer matches and the report is visibly about a different version.<\/p>\r\n                <div class=\"pth-tip\"><strong>Markdown<\/strong> pastes cleanly into most editors and issue trackers. <strong>JSON<\/strong> is there if you want to feed the results into something else.<\/div>\r\n            <\/div>\r\n\r\n            <h3 class=\"spaced\">Related tools<\/h3>\r\n            <ul>\r\n                <li><a href=\"https:\/\/schoolict.net\/tools\/free-word-counter-and-text-case-converter\/\">Word Counter &amp; Case Converter<\/a> \u2014 counts, case and keyword density<\/li>\r\n                <li><a href=\"https:\/\/schoolict.net\/tools\/ai-sentiment-analyzer\/\">Sentiment &amp; Brand Studio<\/a> \u2014 tone rather than editorial quality<\/li>\r\n                <li><a href=\"https:\/\/schoolict.net\/tools\/html-entity-encoder-decoder\/\">Entity &amp; Escape Studio<\/a> \u2014 strip invisible characters from pasted text<\/li>\r\n                <li><a href=\"https:\/\/schoolict.net\/tools\/free-advanced-image-studio-pro\/\">Advanced Image Studio<\/a> \u2014 edit and convert rather than inspect<\/li>\r\n            <\/ul>\r\n        <\/div>\r\n\r\n    <\/div>\r\n<\/div>\r\n\r\n<script data-no-optimize=\"1\" data-no-minify=\"1\" data-cfasync=\"false\">\r\n(function() {\r\n    'use strict';\r\n\r\n    var CT = '<' + '\/';\r\n    var LT = String.fromCharCode(60);\r\n    var GT = String.fromCharCode(62);\r\n\r\n    window.pthForensicApp = {\r\n        initialized: false,\r\n        bound: false,\r\n        currentTab: 'content',\r\n        img: null,\r\n        imgFile: null,\r\n        imgResults: null,\r\n        textResults: null,\r\n        metaRows: [],\r\n\r\n        \/* ---------- Editorial word lists ----------\r\n           The banned list is the house style list: words that read as padding\r\n           and that reviewers associate with generated filler. *\/\r\n        BANNED: ['furthermore', 'moreover', 'delve', 'landscape', 'testament', 'beacon', 'paramount',\r\n            'unleash', 'elevate', 'intricate', 'leverage', 'robust', 'synergy', 'additionally',\r\n            'utilize', 'utilise', 'holistic', 'comprehensive', 'foster', 'enhance', 'optimize',\r\n            'optimise', 'seamless', 'pivotal', 'realm', 'tapestry', 'consequently', 'hence',\r\n            'myriad', 'plethora', 'harness', 'embark', 'underscore', 'underpin', 'bolster',\r\n            'spearhead', 'meticulous', 'nuanced', 'profound', 'remarkable', 'revolutionize',\r\n            'revolutionise', 'streamline', 'facilitate', 'empower', 'cutting-edge', 'game-changer',\r\n            'state-of-the-art', 'unparalleled', 'unwavering', 'invaluable', 'indispensable'],\r\n\r\n        SOFT: ['crucial', 'vital', 'essential', 'significant', 'notably', 'arguably', 'indeed',\r\n            'ultimately', 'importantly', 'effectively', 'efficiently', 'seamlessly', 'truly',\r\n            'simply', 'basically', 'literally', 'actually', 'various', 'numerous', 'several'],\r\n\r\n        PHRASES: [\r\n            { p: 'in conclusion', why: 'A summary heading a reader can see coming. Cut it and state the point.' },\r\n            { p: 'to summarize', why: 'Same problem as \"in conclusion\" - announce nothing, just say it.' },\r\n            { p: 'to summarise', why: 'Same problem as \"in conclusion\" - announce nothing, just say it.' },\r\n            { p: 'it is important to note', why: 'If it is important, write it. This phrase adds five words and no meaning.' },\r\n            { p: 'it is worth noting', why: 'Same as above. Delete the preamble and keep the fact.' },\r\n            { p: 'in the world of', why: 'A stock opener. Start with the specific thing instead.' },\r\n            { p: 'in the realm of', why: 'A stock opener. Start with the specific thing instead.' },\r\n            { p: 'when it comes to', why: 'Almost always removable without changing the sentence.' },\r\n            { p: 'at its core', why: 'Filler. The sentence works without it.' },\r\n            { p: 'in essence', why: 'Filler. The sentence works without it.' },\r\n            { p: 'that being said', why: 'A hedge that usually replaces a real transition.' },\r\n            { p: 'in todays fast-paced', why: 'One of the most recognisable generated openers there is.' },\r\n            { p: 'in todays digital', why: 'One of the most recognisable generated openers there is.' },\r\n            { p: 'ever-evolving', why: 'Stock modifier that says nothing about the subject.' },\r\n            { p: 'a wide range of', why: 'Vague. Name two of them instead.' },\r\n            { p: 'a variety of', why: 'Vague. Name two of them instead.' },\r\n            { p: 'plays a crucial role', why: 'Stock construction. Say what it actually does.' },\r\n            { p: 'plays a vital role', why: 'Stock construction. Say what it actually does.' },\r\n            { p: 'the key to', why: 'Overused framing. State the thing directly.' },\r\n            { p: 'lets dive into', why: 'Conversational filler before the real sentence.' },\r\n            { p: 'lets explore', why: 'Conversational filler before the real sentence.' },\r\n            { p: 'buckle up', why: 'Filler enthusiasm. Readers skip it.' },\r\n            { p: 'look no further', why: 'Sales-page filler that reviewers notice.' },\r\n            { p: 'rest assured', why: 'Reassurance that reads as padding.' },\r\n            { p: 'needless to say', why: 'If it is needless, delete it.' }\r\n        ],\r\n\r\n        STRUCTURES: [\r\n            { re: \/\\bnot only\\b[^.!?]{1,80}\\bbut also\\b\/gi, name: 'Not only ... but also', why: 'A construction that appears far more often in generated prose than in natural writing. Split it into two sentences.' },\r\n            { re: \/\\bit(?:'|\\u2019)?s not (?:just |merely |simply )?[^.,;!?]{2,40},? it(?:'|\\u2019)?s\\b\/gi, name: 'It is not X, it is Y', why: 'A signature rhetorical flip. One is fine for emphasis; three in a page is a pattern.' },\r\n            { re: \/\\bwhether you(?:'|\\u2019)?re\\b[^.!?]{1,60}\\bor\\b\/gi, name: 'Whether you are X or Y', why: 'Stock audience-addressing opener. Address one reader instead of hedging across several.' },\r\n            { re: \/\\bfrom\\b\\s+\\w[^.!?]{0,40}\\bto\\b\\s+\\w[^.!?]{0,40},\\s*\\w\/gi, name: 'From X to Y, ...', why: 'Stock range framing. Usually replaceable with a concrete example.' },\r\n            { re: \/\\b(?:isn(?:'|\\u2019)?t|aren(?:'|\\u2019)?t|wasn(?:'|\\u2019)?t)\\s+just\\b\/gi, name: 'Is not just ...', why: 'Sets up a reveal the reader did not ask for. Often removable.' },\r\n            { re: \/\\b\\w+,\\s+\\w+,\\s+and\\s+\\w+\\b\/g, name: 'Rule-of-three lists', why: 'Three-item lists are natural in moderation. A page built almost entirely from them reads mechanical.' },\r\n            { re: \/\\u2014\/g, name: 'Em dashes', why: 'Useful punctuation, but heavy use is a recognised tell. Some can become full stops or commas.' },\r\n            { re: \/\\b(?:can|could|may|might|would|should)\\s+(?:potentially|possibly|perhaps)\\b\/gi, name: 'Double hedging', why: 'Two hedges in a row weaken the sentence. Keep one at most.' }\r\n        ],\r\n\r\n        STOP: ['the', 'a', 'an', 'and', 'or', 'but', 'if', 'of', 'to', 'in', 'on', 'at', 'for', 'with',\r\n            'is', 'are', 'was', 'were', 'be', 'been', 'being', 'it', 'its', 'this', 'that', 'these',\r\n            'those', 'i', 'we', 'you', 'he', 'she', 'they', 'them', 'my', 'our', 'your', 'as', 'so',\r\n            'do', 'does', 'did', 'have', 'has', 'had', 'not', 'no', 'from', 'by', 'about', 'will',\r\n            'can', 'just', 'than', 'then', 'there', 'here', 'when', 'what', 'which', 'who', 'how',\r\n            'all', 'any', 'some', 'more', 'most', 'other', 'such', 'only', 'own', 'same', 'too'],\r\n\r\n        \/* ---------- start up ---------- *\/\r\n        init: function() {\r\n            var self = this;\r\n            var failures = [];\r\n            var step = function(name, fn) {\r\n                try { fn(); } catch (err) {\r\n                    failures.push(name);\r\n                    if (window.console && window.console.error) {\r\n                        window.console.error('[Forensics Studio] ' + name + ' failed', err);\r\n                    }\r\n                }\r\n            };\r\n            step('portalToast', function() { self.portalToast(); });\r\n            step('bindAll', function() { self.bindAll(); });\r\n            if (failures.length && window.console && window.console.warn) {\r\n                window.console.warn('[Forensics Studio] steps failed: ' + failures.join(', '));\r\n            }\r\n        },\r\n\r\n        portalToast: function() {\r\n            var t = document.getElementById('pth-forensic-toast');\r\n            if (t && t.parentNode !== document.body) { document.body.appendChild(t); }\r\n        },\r\n\r\n        bindAll: function() {\r\n            var self = this;\r\n            if (this.bound) { return; }\r\n            this.bound = true;\r\n\r\n            document.addEventListener('click', function(e) {\r\n                if (!self.inside(e.target)) { return; }\r\n                var tab = self.closestClass(e.target, 'pth-tab');\r\n                if (tab) { e.preventDefault(); self.switchTab(tab.getAttribute('data-pth-panel')); return; }\r\n                var drop = self.closestId(e.target, 'pth-f-drop');\r\n                if (drop) {\r\n                    var f = document.getElementById('pth-f-file');\r\n                    if (f) { f.click(); }\r\n                    return;\r\n                }\r\n                var btn = self.closestTag(e.target, 'BUTTON');\r\n                if (btn && btn.id) { self.route(btn.id, e); }\r\n            }, false);\r\n\r\n            document.addEventListener('input', function(e) {\r\n                var n = e.target;\r\n                if (!n || !n.id || !self.inside(n)) { return; }\r\n                if (n.id === 'pth-f-text') { self.updateCounts(); }\r\n            }, false);\r\n\r\n            document.addEventListener('change', function(e) {\r\n                var n = e.target;\r\n                if (!n || !n.id || !self.inside(n)) { return; }\r\n                if (n.id === 'pth-f-file') { self.handleFile(n.files && n.files[0]); }\r\n                else if (n.id === 'pth-f-rep-fmt') { self.buildReport(); }\r\n            }, false);\r\n\r\n            var drop = document.getElementById('pth-f-drop');\r\n            if (drop) {\r\n                drop.addEventListener('dragover', function(e) { e.preventDefault(); drop.classList.add('over'); }, false);\r\n                drop.addEventListener('dragleave', function() { drop.classList.remove('over'); }, false);\r\n                drop.addEventListener('drop', function(e) {\r\n                    e.preventDefault();\r\n                    drop.classList.remove('over');\r\n                    if (e.dataTransfer && e.dataTransfer.files && e.dataTransfer.files[0]) {\r\n                        self.handleFile(e.dataTransfer.files[0]);\r\n                    }\r\n                }, false);\r\n            }\r\n        },\r\n\r\n        inside: function(node) {\r\n            while (node && node.nodeType === 1) {\r\n                if (node.id === 'pth-forensic-wrapper') { return true; }\r\n                node = node.parentNode;\r\n            }\r\n            return false;\r\n        },\r\n\r\n        closestId: function(node, id) {\r\n            while (node && node.nodeType === 1) {\r\n                if (node.id === id) { return node; }\r\n                if (node.id === 'pth-forensic-wrapper') { return null; }\r\n                node = node.parentNode;\r\n            }\r\n            return null;\r\n        },\r\n\r\n        closestClass: function(node, cls) {\r\n            while (node && node.nodeType === 1) {\r\n                if (node.className && typeof node.className === 'string' && (' ' + node.className + ' ').indexOf(' ' + cls + ' ') >= 0) { return node; }\r\n                if (node.id === 'pth-forensic-wrapper') { return null; }\r\n                node = node.parentNode;\r\n            }\r\n            return null;\r\n        },\r\n\r\n        closestTag: function(node, tag) {\r\n            while (node && node.nodeType === 1) {\r\n                if (node.tagName === tag) { return node; }\r\n                if (node.id === 'pth-forensic-wrapper') { return null; }\r\n                node = node.parentNode;\r\n            }\r\n            return null;\r\n        },\r\n\r\n        route: function(id, e) {\r\n            if (id === 'pth-f-sample') { this.loadSample(); }\r\n            else if (id === 'pth-f-fw') { this.toggleWidth(); }\r\n            else if (id === 'pth-f-clear') { this.clearAll(); }\r\n            else if (id === 'pth-f-audit') { this.runAudit(); }\r\n            else if (id === 'pth-f-run-image') { this.runImage(); }\r\n            else if (id === 'pth-f-copy-meta') { this.copyMeta(); }\r\n            else if (id === 'pth-f-build-report') { this.buildReport(); }\r\n            else if (id === 'pth-f-copy-report') { this.copyText(this.val('pth-f-report'), 'Report'); }\r\n            else if (id === 'pth-f-save-report') { this.saveReport(); }\r\n            else { return; }\r\n            if (e && e.preventDefault) { e.preventDefault(); }\r\n        },\r\n\r\n        \/* ---------- helpers ---------- *\/\r\n        val: function(id) { var el = document.getElementById(id); return el ? el.value : ''; },\r\n        setText: function(id, t) { var el = document.getElementById(id); if (el) { el.innerHTML = t; } },\r\n        setVal: function(id, v) { var el = document.getElementById(id); if (el) { el.value = v; } },\r\n\r\n        esc: function(s) {\r\n            return String(s == null ? '' : s).replace(\/&\/g, '&amp;')\r\n                .replace(new RegExp(LT, 'g'), '&lt;')\r\n                .replace(new RegExp(GT, 'g'), '&gt;')\r\n                .replace(\/\"\/g, '&quot;');\r\n        },\r\n\r\n        toast: function(msg, isErr) {\r\n            var t = document.getElementById('pth-forensic-toast');\r\n            if (!t) { return; }\r\n            t.innerHTML = msg;\r\n            t.style.background = isErr ? '#991b1b' : '#0f172a';\r\n            t.style.display = 'block';\r\n            if (this.toastTimer) { clearTimeout(this.toastTimer); }\r\n            this.toastTimer = setTimeout(function() { t.style.display = 'none'; }, 3000);\r\n        },\r\n\r\n        copyText: function(v, label) {\r\n            var self = this;\r\n            if (!v) { this.toast('Nothing to copy yet', true); return; }\r\n            if (navigator.clipboard && navigator.clipboard.writeText) {\r\n                navigator.clipboard.writeText(v).then(function() { self.toast(label + ' copied'); })['catch'](function() { self.fallbackCopy(v, label); });\r\n            } else { this.fallbackCopy(v, label); }\r\n        },\r\n\r\n        fallbackCopy: function(v, label) {\r\n            var ta = document.createElement('textarea');\r\n            ta.value = v;\r\n            ta.setAttribute('readonly', 'readonly');\r\n            ta.style.position = 'fixed';\r\n            ta.style.left = '-9999px';\r\n            document.body.appendChild(ta);\r\n            ta.select();\r\n            try { document.execCommand('copy'); this.toast(label + ' copied'); }\r\n            catch (err) { this.toast('Copy failed - select and copy manually', true); }\r\n            document.body.removeChild(ta);\r\n        },\r\n\r\n        switchTab: function(name) {\r\n            var tabs = document.querySelectorAll('#pth-forensic-wrapper .pth-tab');\r\n            var panels = document.querySelectorAll('#pth-forensic-wrapper .pth-panel');\r\n            var sides = ['content', 'image', 'meta', 'report'];\r\n            var i, el;\r\n            for (i = 0; i < tabs.length; i++) {\r\n                tabs[i].classList.remove('active');\r\n                if (tabs[i].getAttribute('data-pth-panel') === name) { tabs[i].classList.add('active'); }\r\n            }\r\n            for (i = 0; i < panels.length; i++) { panels[i].classList.remove('active'); }\r\n            el = document.getElementById('pth-panel-' + name);\r\n            if (el) { el.classList.add('active'); }\r\n            for (i = 0; i < sides.length; i++) {\r\n                el = document.getElementById('pth-side-' + sides[i]);\r\n                if (el) { el.style.display = (sides[i] === name) ? 'block' : 'none'; }\r\n            }\r\n            this.currentTab = name;\r\n            if (name === 'report') { this.buildReport(); }\r\n        },\r\n\r\n        toggleWidth: function() {\r\n            var g = document.getElementById('pth-f-grid');\r\n            var s = document.getElementById('pth-f-side');\r\n            var b = document.getElementById('pth-f-fw');\r\n            if (!g || !s || !b) { return; }\r\n            if (g.classList.contains('pth-full-width')) {\r\n                g.classList.remove('pth-full-width');\r\n                s.style.display = 'block';\r\n                b.innerHTML = '\\u26F6 Full Width';\r\n            } else {\r\n                g.classList.add('pth-full-width');\r\n                s.style.display = 'none';\r\n                b.innerHTML = '\\u25E8 Split View';\r\n            }\r\n        },\r\n\r\n        \/* ---------- text utilities ---------- *\/\r\n        stripHtml: function(s) {\r\n            var out = String(s);\r\n            out = out.replace(new RegExp(LT + 'script[\\\\s\\\\S]*?' + CT + 'script' + GT, 'gi'), ' ');\r\n            out = out.replace(new RegExp(LT + 'style[\\\\s\\\\S]*?' + CT + 'style' + GT, 'gi'), ' ');\r\n            out = out.replace(new RegExp(LT + '[^' + GT + ']*' + GT, 'g'), ' ');\r\n            out = out.replace(\/&nbsp;\/gi, ' ').replace(\/&amp;\/gi, '&').replace(\/&quot;\/gi, '\"');\r\n            return out.replace(\/[ \\t]{2,}\/g, ' ');\r\n        },\r\n\r\n        words: function(s) {\r\n            var t = String(s).replace(\/[^\\w\\s'\\u2019-]\/g, ' ').replace(\/^\\s+|\\s+$\/g, '');\r\n            return t ? t.split(\/\\s+\/) : [];\r\n        },\r\n\r\n        sentences: function(s) {\r\n            var parts = String(s).split(\/([.!?]+)\/);\r\n            var out = [];\r\n            var i, buf = '';\r\n            for (i = 0; i < parts.length; i++) {\r\n                buf += parts[i];\r\n                if (\/^[.!?]+$\/.test(parts[i])) {\r\n                    var t = buf.replace(\/^\\s+|\\s+$\/g, '');\r\n                    if (t && this.words(t).length > 0) { out.push(t); }\r\n                    buf = '';\r\n                }\r\n            }\r\n            var last = buf.replace(\/^\\s+|\\s+$\/g, '');\r\n            if (last && this.words(last).length > 0) { out.push(last); }\r\n            return out;\r\n        },\r\n\r\n        paragraphs: function(s) {\r\n            var raw = String(s).split(\/\\n\\s*\\n|\\n\/);\r\n            var out = [];\r\n            var i, t;\r\n            for (i = 0; i < raw.length; i++) {\r\n                t = raw[i].replace(\/^\\s+|\\s+$\/g, '');\r\n                if (t && this.words(t).length > 3) { out.push(t); }\r\n            }\r\n            return out;\r\n        },\r\n\r\n        updateCounts: function() {\r\n            var plain = this.stripHtml(this.val('pth-f-text'));\r\n            this.setText('pth-f-wc', this.words(plain).length + ' words');\r\n            this.setText('pth-f-sc', this.sentences(plain).length + ' sentences');\r\n            this.setText('pth-f-pc', this.paragraphs(plain).length + ' paragraphs');\r\n        },\r\n\r\n        escRe: function(s) { return String(s).replace(\/[.*+?^${}()|[\\]\\\\]\/g, '\\\\$&'); },\r\n\r\n        countWord: function(text, word) {\r\n            var m = text.match(new RegExp('\\\\b' + this.escRe(word) + '\\\\b', 'gi'));\r\n            return m ? m.length : 0;\r\n        },\r\n\r\n        \/* ---------- the audit ---------- *\/\r\n        runAudit: function() {\r\n            var raw = this.val('pth-f-text');\r\n            if (!raw || !raw.replace(\/\\s\/g, '')) { this.toast('Paste some text first', true); return; }\r\n\r\n            var text = this.stripHtml(raw);\r\n            var words = this.words(text);\r\n            var sents = this.sentences(text);\r\n            var paras = this.paragraphs(text);\r\n            var wc = words.length;\r\n\r\n            var findings = [];\r\n            var penalty = 0;\r\n            var i, j, n, hits;\r\n\r\n            \/* banned vocabulary *\/\r\n            var bannedHits = [];\r\n            var bannedTotal = 0;\r\n            for (i = 0; i < this.BANNED.length; i++) {\r\n                n = this.countWord(text, this.BANNED[i]);\r\n                if (n) { bannedHits.push(this.BANNED[i] + ' x' + n); bannedTotal += n; }\r\n            }\r\n            if (bannedTotal) {\r\n                penalty += bannedTotal * 3;\r\n                findings.push({\r\n                    sev: bannedTotal > 4 ? 'high' : 'med',\r\n                    title: 'House-style banned words',\r\n                    count: bannedTotal,\r\n                    why: 'These read as padding and are strongly associated with generated filler. Each one can be replaced with a plainer word or cut entirely.',\r\n                    hits: bannedHits\r\n                });\r\n            }\r\n\r\n            \/* soft padding *\/\r\n            var softHits = [];\r\n            var softTotal = 0;\r\n            for (i = 0; i < this.SOFT.length; i++) {\r\n                n = this.countWord(text, this.SOFT[i]);\r\n                if (n >= 2) { softHits.push(this.SOFT[i] + ' x' + n); softTotal += n; }\r\n            }\r\n            if (softTotal >= 4) {\r\n                penalty += Math.round(softTotal * 0.8);\r\n                findings.push({\r\n                    sev: 'med',\r\n                    title: 'Weak intensifiers used repeatedly',\r\n                    count: softTotal,\r\n                    why: 'Words like crucial, vital and essential add emphasis without adding information. Used often they flatten the writing.',\r\n                    hits: softHits\r\n                });\r\n            }\r\n\r\n            \/* stock phrases *\/\r\n            var phraseHits = [];\r\n            var phraseTotal = 0;\r\n            var flat = text.replace(\/[\\u2019']\/g, '').toLowerCase();\r\n            for (i = 0; i < this.PHRASES.length; i++) {\r\n                var pat = this.PHRASES[i].p.replace(\/[\\u2019']\/g, '');\r\n                var re = new RegExp(this.escRe(pat), 'g');\r\n                var m = flat.match(re);\r\n                if (m) { phraseHits.push(this.PHRASES[i].p + ' x' + m.length); phraseTotal += m.length; }\r\n            }\r\n            if (phraseTotal) {\r\n                penalty += phraseTotal * 4;\r\n                findings.push({\r\n                    sev: phraseTotal > 2 ? 'high' : 'med',\r\n                    title: 'Stock phrases',\r\n                    count: phraseTotal,\r\n                    why: 'Recognisable filler openers and transitions. Each one can be deleted without changing the meaning of its sentence.',\r\n                    hits: phraseHits\r\n                });\r\n            }\r\n\r\n            \/* structural tells *\/\r\n            var structHits = [];\r\n            var structTotal = 0;\r\n            for (i = 0; i < this.STRUCTURES.length; i++) {\r\n                this.STRUCTURES[i].re.lastIndex = 0;\r\n                var sm = text.match(this.STRUCTURES[i].re);\r\n                if (!sm) { continue; }\r\n                var threshold = this.STRUCTURES[i].name === 'Rule-of-three lists' ? 3 : (this.STRUCTURES[i].name === 'Em dashes' ? 4 : 1);\r\n                if (sm.length >= threshold) {\r\n                    structHits.push(this.STRUCTURES[i].name + ' x' + sm.length);\r\n                    structTotal += sm.length;\r\n                    findings.push({\r\n                        sev: sm.length >= threshold * 2 ? 'high' : 'med',\r\n                        title: this.STRUCTURES[i].name,\r\n                        count: sm.length,\r\n                        why: this.STRUCTURES[i].why,\r\n                        hits: []\r\n                    });\r\n                    penalty += sm.length * 2;\r\n                }\r\n            }\r\n\r\n            \/* sentence rhythm *\/\r\n            var lens = [];\r\n            for (i = 0; i < sents.length; i++) { lens.push(this.words(sents[i]).length); }\r\n            var rhythm = this.rhythmScore(lens);\r\n            if (sents.length >= 6) {\r\n                if (rhythm.cv < 0.35) {\r\n                    penalty += 12;\r\n                    findings.push({\r\n                        sev: 'high',\r\n                        title: 'Sentences are unusually uniform',\r\n                        count: rhythm.cvPct,\r\n                        why: 'Sentence lengths barely vary, which is the single most visible difference between generated prose and human writing. Break a long one in half and let a short one stand alone.',\r\n                        hits: ['mean ' + rhythm.mean + ' words', 'variation ' + rhythm.cvPct + '%']\r\n                    });\r\n                } else if (rhythm.cv < 0.5) {\r\n                    penalty += 5;\r\n                    findings.push({\r\n                        sev: 'med',\r\n                        title: 'Sentence rhythm is a little flat',\r\n                        count: rhythm.cvPct,\r\n                        why: 'There is some variation but not much. A few deliberately short sentences would lift it.',\r\n                        hits: ['mean ' + rhythm.mean + ' words', 'variation ' + rhythm.cvPct + '%']\r\n                    });\r\n                }\r\n                if (rhythm.mean > 26) {\r\n                    penalty += 6;\r\n                    findings.push({\r\n                        sev: 'med',\r\n                        title: 'Sentences run long on average',\r\n                        count: rhythm.mean,\r\n                        why: 'An average above about 25 words makes a page hard going. Split the longest few.',\r\n                        hits: []\r\n                    });\r\n                }\r\n            }\r\n\r\n            \/* repeated openers *\/\r\n            var openers = this.openerCounts(sents, paras);\r\n            if (openers.worst && openers.worst.n >= 3) {\r\n                penalty += openers.worst.n * 2;\r\n                findings.push({\r\n                    sev: openers.worst.n >= 5 ? 'high' : 'med',\r\n                    title: 'Repeated sentence openers',\r\n                    count: openers.worst.n,\r\n                    why: 'Several sentences begin with the same two words. Varying the opening is one of the quickest ways to make a page read as written rather than assembled.',\r\n                    hits: [openers.worst.key + ' x' + openers.worst.n]\r\n                });\r\n            }\r\n\r\n            \/* keyword density *\/\r\n            var kw = this.val('pth-f-kw').replace(\/^\\s+|\\s+$\/g, '');\r\n            var density = null;\r\n            if (kw && wc) {\r\n                var kn = (text.toLowerCase().match(new RegExp(this.escRe(kw.toLowerCase()), 'g')) || []).length;\r\n                density = Math.round((kn * this.words(kw).length \/ wc) * 1000) \/ 10;\r\n                if (density > 2.5) {\r\n                    penalty += Math.round((density - 2.5) * 6);\r\n                    findings.push({\r\n                        sev: density > 4 ? 'high' : 'med',\r\n                        title: 'Keyword density is too high',\r\n                        count: density + '%',\r\n                        why: 'The focus keyword appears ' + kn + ' times in ' + wc + ' words. Above roughly 2.5% it reads as stuffing to both readers and reviewers. House style is two or three uses on a whole page.',\r\n                        hits: [kw + ' x' + kn]\r\n                    });\r\n                }\r\n            }\r\n\r\n            \/* thin content *\/\r\n            if (wc < 300) {\r\n                penalty += 6;\r\n                findings.push({\r\n                    sev: 'med',\r\n                    title: 'Thin, if this is a whole page',\r\n                    count: wc + ' words',\r\n                    why: 'Under about 300 words a published page struggles to stand on its own. Ignore this if you pasted an extract to check the style - it only matters when this is the whole page.',\r\n                    hits: []\r\n                });\r\n            } else if (wc < 600) {\r\n                penalty += 3;\r\n                findings.push({\r\n                    sev: 'low',\r\n                    title: 'On the short side',\r\n                    count: wc + ' words',\r\n                    why: 'Fine if every sentence earns its place. Worth checking the reader leaves with something concrete rather than a summary of what they already knew.',\r\n                    hits: []\r\n                });\r\n            }\r\n\r\n            \/* paragraph uniformity *\/\r\n            if (paras.length >= 5) {\r\n                var plens = [];\r\n                for (i = 0; i < paras.length; i++) { plens.push(this.words(paras[i]).length); }\r\n                var pr = this.rhythmScore(plens);\r\n                if (pr.cv < 0.3) {\r\n                    penalty += 6;\r\n                    findings.push({\r\n                        sev: 'med',\r\n                        title: 'Paragraphs are all the same size',\r\n                        count: pr.cvPct,\r\n                        why: 'Every paragraph running to a similar length is a layout tell. A one-line paragraph now and then breaks it up.',\r\n                        hits: ['mean ' + pr.mean + ' words']\r\n                    });\r\n                }\r\n            }\r\n\r\n            if (!findings.length) {\r\n                findings.push({\r\n                    sev: 'low',\r\n                    title: 'Nothing flagged',\r\n                    count: 0,\r\n                    why: 'No banned vocabulary, stock phrases or structural tells were found, and the rhythm looks natural. This checks style rather than substance, so it cannot tell you whether the page is useful.',\r\n                    hits: []\r\n                });\r\n            }\r\n\r\n            this.textResults = {\r\n                words: wc, sentences: sents.length, paragraphs: paras.length,\r\n                banned: bannedTotal, phrases: phraseTotal, structures: structTotal,\r\n                rhythm: rhythm, density: density, keyword: kw,\r\n                penalty: penalty, findings: findings, openers: openers\r\n            };\r\n\r\n            this.renderAudit();\r\n            this.toast('Audit complete - ' + findings.length + ' finding' + (findings.length === 1 ? '' : 's'));\r\n        },\r\n\r\n        rhythmScore: function(lens) {\r\n            var i, sum = 0;\r\n            if (!lens.length) { return { mean: 0, sd: 0, cv: 0, cvPct: 0, lens: [] }; }\r\n            for (i = 0; i < lens.length; i++) { sum += lens[i]; }\r\n            var mean = sum \/ lens.length;\r\n            var sq = 0;\r\n            for (i = 0; i < lens.length; i++) { sq += (lens[i] - mean) * (lens[i] - mean); }\r\n            var sd = Math.sqrt(sq \/ lens.length);\r\n            var cv = mean ? sd \/ mean : 0;\r\n            return {\r\n                mean: Math.round(mean * 10) \/ 10,\r\n                sd: Math.round(sd * 10) \/ 10,\r\n                cv: cv,\r\n                cvPct: Math.round(cv * 100),\r\n                lens: lens\r\n            };\r\n        },\r\n\r\n        openerCounts: function(sents, paras) {\r\n            var counts = {};\r\n            var examples = {};\r\n            var i, w, key;\r\n            for (i = 0; i < sents.length; i++) {\r\n                w = this.words(sents[i]);\r\n                if (w.length < 2) { continue; }\r\n                key = (w[0] + ' ' + w[1]).toLowerCase();\r\n                counts[key] = (counts[key] || 0) + 1;\r\n                if (!examples[key]) { examples[key] = sents[i]; }\r\n            }\r\n            var list = [];\r\n            for (key in counts) {\r\n                if (counts.hasOwnProperty(key) && counts[key] >= 2) {\r\n                    list.push({ key: key, n: counts[key], ex: examples[key] });\r\n                }\r\n            }\r\n            list.sort(function(a, b) { return b.n - a.n; });\r\n            return { list: list, worst: list.length ? list[0] : null };\r\n        },\r\n\r\n        renderAudit: function() {\r\n            var r = this.textResults;\r\n            if (!r) { return; }\r\n            var i;\r\n\r\n            var score = r.penalty;\r\n            var cls = score < 15 ? 'good' : (score < 40 ? 'warn' : 'bad');\r\n            var box = document.getElementById('pth-f-verdict');\r\n            if (box) { box.className = 'pth-verdict ' + cls; }\r\n            this.setText('pth-f-score', score);\r\n\r\n            var label, desc;\r\n            if (cls === 'good') {\r\n                label = 'Clean';\r\n                desc = 'Nothing here would make a reviewer pause. Remember this measures style, not whether the page is actually useful.';\r\n            } else if (cls === 'warn') {\r\n                label = 'Worth a pass';\r\n                desc = 'A handful of fixable problems. Work down the list below - most are single-word deletions.';\r\n            } else {\r\n                label = 'Needs work';\r\n                desc = 'Enough tells that a reader would notice something was off before they could name it. Start with the red findings.';\r\n            }\r\n            this.setText('pth-f-vlabel', label);\r\n            this.setText('pth-f-vdesc', desc);\r\n\r\n            this.setText('pth-f-banned', r.banned);\r\n            this.setText('pth-f-tells', r.phrases + r.structures);\r\n            this.setText('pth-f-rhythm', r.rhythm.cvPct + '%');\r\n            this.setText('pth-f-density', r.density === null ? '--' : r.density + '%');\r\n\r\n            var bb = document.getElementById('pth-box-banned');\r\n            if (bb) { bb.className = 'pth-statbox' + (r.banned === 0 ? ' good' : (r.banned > 4 ? ' bad' : ' warn')); }\r\n            var bt = document.getElementById('pth-box-tells');\r\n            if (bt) { bt.className = 'pth-statbox' + ((r.phrases + r.structures) === 0 ? ' good' : ((r.phrases + r.structures) > 4 ? ' bad' : ' warn')); }\r\n            var br = document.getElementById('pth-box-rhythm');\r\n            if (br) { br.className = 'pth-statbox' + (r.rhythm.cv >= 0.5 ? ' good' : (r.rhythm.cv < 0.35 ? ' bad' : ' warn')); }\r\n            var bd = document.getElementById('pth-box-density');\r\n            if (bd) { bd.className = 'pth-statbox' + (r.density === null ? '' : (r.density <= 2.5 ? ' good' : (r.density > 4 ? ' bad' : ' warn'))); }\r\n\r\n            var html = '';\r\n            for (i = 0; i < r.findings.length; i++) {\r\n                var f = r.findings[i];\r\n                html += '<div class=\"pth-finding ' + f.sev + '\">' +\r\n                    '<div class=\"pth-f-head\"><span class=\"pth-f-title\">' + this.esc(f.title) + CT + 'span>' +\r\n                    '<span class=\"pth-f-count\">' + this.esc(f.count) + CT + 'span>' + CT + 'div>' +\r\n                    '<div class=\"pth-f-why\">' + this.esc(f.why) + CT + 'div>';\r\n                if (f.hits && f.hits.length) {\r\n                    html += '<div class=\"pth-f-hits\">';\r\n                    for (var k = 0; k < f.hits.length && k < 24; k++) {\r\n                        html += '<span class=\"pth-hit\">' + this.esc(f.hits[k]) + CT + 'span>';\r\n                    }\r\n                    html += CT + 'div>';\r\n                }\r\n                html += CT + 'div>';\r\n            }\r\n            var fb = document.getElementById('pth-f-findings');\r\n            if (fb) { fb.innerHTML = html; }\r\n\r\n            this.drawRhythm(r.rhythm.lens);\r\n            this.renderRhythmBars(r.rhythm);\r\n            this.renderOpeners(r.openers);\r\n        },\r\n\r\n        drawRhythm: function(lens) {\r\n            var c = document.getElementById('pth-f-rhythm-canvas');\r\n            if (!c || !c.getContext) { return; }\r\n            var ctx = c.getContext('2d');\r\n            ctx.clearRect(0, 0, c.width, c.height);\r\n            if (!lens || !lens.length) { return; }\r\n\r\n            var max = 1, i;\r\n            for (i = 0; i < lens.length; i++) { if (lens[i] > max) { max = lens[i]; } }\r\n            var bw = c.width \/ lens.length;\r\n            var pad = bw > 4 ? 1 : 0;\r\n\r\n            for (i = 0; i < lens.length; i++) {\r\n                var h = (lens[i] \/ max) * (c.height - 20);\r\n                var ratio = lens[i] \/ max;\r\n                ctx.fillStyle = ratio > 0.75 ? '#dc2626' : (ratio < 0.3 ? '#16a34a' : '#1d4ed8');\r\n                ctx.fillRect(i * bw + pad, c.height - h - 10, bw - pad * 2, h);\r\n            }\r\n            ctx.strokeStyle = '#cbd5e1';\r\n            ctx.beginPath();\r\n            ctx.moveTo(0, c.height - 10);\r\n            ctx.lineTo(c.width, c.height - 10);\r\n            ctx.stroke();\r\n        },\r\n\r\n        renderRhythmBars: function(r) {\r\n            var box = document.getElementById('pth-f-rhythm-bars');\r\n            if (!box) { return; }\r\n            var pct = r.cvPct > 100 ? 100 : r.cvPct;\r\n            var cls = r.cv >= 0.5 ? 'g' : (r.cv < 0.35 ? 'b' : 'w');\r\n            var meanPct = Math.round((r.mean \/ 40) * 100);\r\n            if (meanPct > 100) { meanPct = 100; }\r\n            box.innerHTML =\r\n                '<div class=\"pth-bar-row\"><span class=\"pth-bar-name\">Length variation<' + '\/span>' +\r\n                '<span class=\"pth-bar-track\"><span class=\"pth-bar-fill ' + cls + '\" style=\"width:' + pct + '%;\">' + CT + 'span>' + CT + 'span>' +\r\n                '<span class=\"pth-bar-val\">' + r.cvPct + '%' + CT + 'span>' + CT + 'div>' +\r\n                '<div class=\"pth-bar-row\"><span class=\"pth-bar-name\">Mean length<' + '\/span>' +\r\n                '<span class=\"pth-bar-track\"><span class=\"pth-bar-fill ' + (r.mean > 26 ? 'w' : 'g') + '\" style=\"width:' + meanPct + '%;\">' + CT + 'span>' + CT + 'span>' +\r\n                '<span class=\"pth-bar-val\">' + r.mean + CT + 'span>' + CT + 'div>';\r\n            this.setText('pth-f-rhythm-note', r.cv >= 0.5 ? 'Natural variation' : (r.cv < 0.35 ? 'Too uniform' : 'A little flat'));\r\n        },\r\n\r\n        renderOpeners: function(o) {\r\n            var body = document.getElementById('pth-f-openers');\r\n            if (!body) { return; }\r\n            if (!o || !o.list.length) {\r\n                body.innerHTML = '<tr><td colspan=\"3\" style=\"text-align:center; color:#94a3b8; padding:20px;\">No opening pair was used more than once.' + CT + 'td>' + CT + 'tr>';\r\n                return;\r\n            }\r\n            var html = '';\r\n            var i;\r\n            for (i = 0; i < o.list.length && i < 12; i++) {\r\n                var ex = o.list[i].ex;\r\n                if (ex.length > 90) { ex = ex.substring(0, 90) + '...'; }\r\n                html += '<tr><td style=\"font-family:Consolas,monospace; font-weight:700;\">' + this.esc(o.list[i].key) + CT + 'td>' +\r\n                    '<td><span class=\"pth-pill ' + (o.list[i].n >= 4 ? 'b' : (o.list[i].n >= 3 ? 'w' : 'g')) + '\">' + o.list[i].n + CT + 'span>' + CT + 'td>' +\r\n                    '<td style=\"color:#475569;\">' + this.esc(ex) + CT + 'td>' + CT + 'tr>';\r\n            }\r\n            body.innerHTML = html;\r\n        },\r\n\r\n        \/* ---------- image forensics ---------- *\/\r\n        handleFile: function(file) {\r\n            var self = this;\r\n            if (!file) { return; }\r\n            if (file.size > 24 * 1024 * 1024) { this.toast('That file is over 24 MB - try a smaller one', true); return; }\r\n            this.imgFile = file;\r\n\r\n            var reader = new FileReader();\r\n            reader.onload = function(e) {\r\n                var im = new Image();\r\n                im.onload = function() {\r\n                    self.img = im;\r\n                    self.setText('pth-f-img-stat', im.width + ' x ' + im.height + ', ' + Math.round(file.size \/ 1024) + ' KB');\r\n                    self.drawTo('pth-f-c-orig', im);\r\n                    self.readMeta(file, e.target.result);\r\n                    self.toast('Image loaded - press Run analysis');\r\n                };\r\n                im.onerror = function() { self.toast('That file could not be read as an image', true); };\r\n                im.src = e.target.result;\r\n            };\r\n            reader.onerror = function() { self.toast('The file could not be read', true); };\r\n            reader.readAsDataURL(file);\r\n        },\r\n\r\n        drawTo: function(canvasId, source) {\r\n            var c = document.getElementById(canvasId);\r\n            if (!c || !c.getContext) { return null; }\r\n            var ctx = c.getContext('2d');\r\n            var scale = Math.min(c.width \/ source.width, c.height \/ source.height, 1);\r\n            var w = Math.round(source.width * scale);\r\n            var h = Math.round(source.height * scale);\r\n            ctx.clearRect(0, 0, c.width, c.height);\r\n            ctx.drawImage(source, (c.width - w) \/ 2, (c.height - h) \/ 2, w, h);\r\n            return { ctx: ctx, x: (c.width - w) \/ 2, y: (c.height - h) \/ 2, w: w, h: h };\r\n        },\r\n\r\n        runImage: function() {\r\n            if (!this.img) { this.toast('Load an image first', true); return; }\r\n            var self = this;\r\n            this.toast('Analysing...');\r\n            setTimeout(function() {\r\n                try { self.doImagePasses(); }\r\n                catch (err) {\r\n                    self.toast('Analysis failed on this image', true);\r\n                    if (window.console && window.console.error) { window.console.error('[Forensics Studio]', err); }\r\n                }\r\n            }, 30);\r\n        },\r\n\r\n        doImagePasses: function() {\r\n            var im = this.img;\r\n            var W = 420, H = 280;\r\n            var scale = Math.min(W \/ im.width, H \/ im.height, 1);\r\n            var w = Math.max(1, Math.round(im.width * scale));\r\n            var h = Math.max(1, Math.round(im.height * scale));\r\n\r\n            var work = document.createElement('canvas');\r\n            work.width = w; work.height = h;\r\n            var wctx = work.getContext('2d');\r\n            wctx.drawImage(im, 0, 0, w, h);\r\n            var base = wctx.getImageData(0, 0, w, h);\r\n\r\n            var q = parseInt(this.val('pth-f-ela-q'), 10) \/ 100;\r\n            var jpeg = work.toDataURL('image\/jpeg', q);\r\n            var self = this;\r\n            var re = new Image();\r\n\r\n            re.onload = function() {\r\n                var c2 = document.createElement('canvas');\r\n                c2.width = w; c2.height = h;\r\n                var c2ctx = c2.getContext('2d');\r\n                c2ctx.drawImage(re, 0, 0, w, h);\r\n                var comp = c2ctx.getImageData(0, 0, w, h);\r\n\r\n                var ela = self.elaPass(base, comp, w, h);\r\n                var noise = self.noisePass(base, w, h);\r\n                var grad = self.gradientPass(base, w, h);\r\n                var hist = self.histogram(base);\r\n\r\n                self.paint('pth-f-c-ela', ela.data, w, h);\r\n                self.paint('pth-f-c-noise', noise.data, w, h);\r\n                self.paint('pth-f-c-grad', grad, w, h);\r\n                self.drawHistogram(hist);\r\n\r\n                self.setText('pth-f-ela-mean', ela.mean);\r\n                self.setText('pth-f-noise-sd', noise.sd);\r\n                self.setText('pth-f-uniform', noise.uniformity + '%');\r\n\r\n                self.imgResults = {\r\n                    width: im.width, height: im.height,\r\n                    elaMean: ela.mean, elaMax: ela.max,\r\n                    noiseSd: noise.sd, uniformity: noise.uniformity,\r\n                    histSpikes: hist.spikes, histGaps: hist.gaps\r\n                };\r\n\r\n                var note = document.getElementById('pth-f-img-note');\r\n                if (note) {\r\n                    var msgs = [];\r\n                    if (ela.mean > 12) { msgs.push('ELA response is high overall, which is normal for a heavily compressed or resized file and not evidence on its own.'); }\r\n                    if (noise.uniformity < 55) { msgs.push('Noise varies noticeably across the frame - worth comparing the bright areas of the noise pass against the original.'); }\r\n                    if (hist.gaps > 24) { msgs.push('The histogram has comb-like gaps, which usually means levels or curves were applied at some point.'); }\r\n                    if (hist.spikes > 3) { msgs.push('Several isolated histogram spikes, often left by posterisation or a heavy filter.'); }\r\n                    if (!msgs.length) { msgs.push('Nothing stands out across the four passes. That is not proof the image is untouched, only that these methods found nothing.'); }\r\n                    note.className = 'pth-note ' + (msgs.length > 2 ? 'warn' : 'info');\r\n                    note.innerHTML = msgs.join(' ');\r\n                }\r\n                self.toast('Analysis complete');\r\n            };\r\n            re.onerror = function() { self.toast('Could not re-encode for ELA', true); };\r\n            re.src = jpeg;\r\n        },\r\n\r\n        elaPass: function(a, b, w, h) {\r\n            var out = new Uint8ClampedArray(a.data.length);\r\n            var i, d, max = 0, sum = 0, n = 0;\r\n            for (i = 0; i < a.data.length; i += 4) {\r\n                var dr = Math.abs(a.data[i] - b.data[i]);\r\n                var dg = Math.abs(a.data[i + 1] - b.data[i + 1]);\r\n                var db = Math.abs(a.data[i + 2] - b.data[i + 2]);\r\n                d = (dr + dg + db) \/ 3;\r\n                if (d > max) { max = d; }\r\n                sum += d; n++;\r\n                var amp = d * 14;\r\n                if (amp > 255) { amp = 255; }\r\n                out[i] = amp; out[i + 1] = amp; out[i + 2] = amp; out[i + 3] = 255;\r\n            }\r\n            return { data: out, mean: Math.round((sum \/ n) * 100) \/ 100, max: Math.round(max) };\r\n        },\r\n\r\n        noisePass: function(a, w, h) {\r\n            var src = a.data;\r\n            var out = new Uint8ClampedArray(src.length);\r\n            var vals = [];\r\n            var x, y, i, k;\r\n            for (y = 1; y < h - 1; y++) {\r\n                for (x = 1; x < w - 1; x++) {\r\n                    i = (y * w + x) * 4;\r\n                    var sum = 0;\r\n                    for (k = -1; k <= 1; k++) {\r\n                        var j1 = ((y + k) * w + (x - 1)) * 4;\r\n                        var j2 = ((y + k) * w + x) * 4;\r\n                        var j3 = ((y + k) * w + (x + 1)) * 4;\r\n                        sum += (src[j1] + src[j1 + 1] + src[j1 + 2]) \/ 3;\r\n                        sum += (src[j2] + src[j2 + 1] + src[j2 + 2]) \/ 3;\r\n                        sum += (src[j3] + src[j3 + 1] + src[j3 + 2]) \/ 3;\r\n                    }\r\n                    var avg = sum \/ 9;\r\n                    var lum = (src[i] + src[i + 1] + src[i + 2]) \/ 3;\r\n                    var res = Math.abs(lum - avg);\r\n                    vals.push(res);\r\n                    var amp = res * 9;\r\n                    if (amp > 255) { amp = 255; }\r\n                    out[i] = amp; out[i + 1] = amp; out[i + 2] = amp; out[i + 3] = 255;\r\n                }\r\n            }\r\n            var sum2 = 0, m;\r\n            for (m = 0; m < vals.length; m++) { sum2 += vals[m]; }\r\n            var mean = vals.length ? sum2 \/ vals.length : 0;\r\n            var sq = 0;\r\n            for (m = 0; m < vals.length; m++) { sq += (vals[m] - mean) * (vals[m] - mean); }\r\n            var sd = Math.sqrt(vals.length ? sq \/ vals.length : 0);\r\n\r\n            \/* Uniformity compares noise in the four quadrants. Even sensor noise\r\n               scores high; a pasted region often drags one quadrant away. *\/\r\n            var quads = [0, 0, 0, 0], counts = [0, 0, 0, 0];\r\n            var idx = 0;\r\n            for (y = 1; y < h - 1; y++) {\r\n                for (x = 1; x < w - 1; x++) {\r\n                    var qi = (y < h \/ 2 ? 0 : 2) + (x < w \/ 2 ? 0 : 1);\r\n                    quads[qi] += vals[idx];\r\n                    counts[qi]++;\r\n                    idx++;\r\n                }\r\n            }\r\n            var qm = [], mn = 1e9, mx = 0;\r\n            for (m = 0; m < 4; m++) {\r\n                var v = counts[m] ? quads[m] \/ counts[m] : 0;\r\n                qm.push(v);\r\n                if (v < mn) { mn = v; }\r\n                if (v > mx) { mx = v; }\r\n            }\r\n            var uniformity = mx > 0 ? Math.round((mn \/ mx) * 100) : 100;\r\n\r\n            return { data: out, sd: Math.round(sd * 100) \/ 100, uniformity: uniformity };\r\n        },\r\n\r\n        gradientPass: function(a, w, h) {\r\n            var src = a.data;\r\n            var out = new Uint8ClampedArray(src.length);\r\n            var x, y, i;\r\n            for (y = 1; y < h - 1; y++) {\r\n                for (x = 1; x < w - 1; x++) {\r\n                    i = (y * w + x) * 4;\r\n                    var l = function(xx, yy) {\r\n                        var j = (yy * w + xx) * 4;\r\n                        return (src[j] + src[j + 1] + src[j + 2]) \/ 3;\r\n                    };\r\n                    var gx = l(x + 1, y) - l(x - 1, y);\r\n                    var gy = l(x, y + 1) - l(x, y - 1);\r\n                    var mag = Math.sqrt(gx * gx + gy * gy);\r\n                    if (mag > 255) { mag = 255; }\r\n                    var ang = (Math.atan2(gy, gx) + Math.PI) \/ (2 * Math.PI);\r\n                    out[i] = Math.round(mag * ang);\r\n                    out[i + 1] = Math.round(mag * (1 - ang));\r\n                    out[i + 2] = Math.round(mag * 0.6);\r\n                    out[i + 3] = 255;\r\n                }\r\n            }\r\n            return out;\r\n        },\r\n\r\n        histogram: function(a) {\r\n            var bins = [];\r\n            var i;\r\n            for (i = 0; i < 256; i++) { bins.push(0); }\r\n            for (i = 0; i < a.data.length; i += 4) {\r\n                var lum = Math.round((a.data[i] * 0.299 + a.data[i + 1] * 0.587 + a.data[i + 2] * 0.114));\r\n                if (lum < 0) { lum = 0; }\r\n                if (lum > 255) { lum = 255; }\r\n                bins[lum]++;\r\n            }\r\n            var total = 0;\r\n            for (i = 0; i < 256; i++) { total += bins[i]; }\r\n            var avg = total \/ 256;\r\n            var gaps = 0, spikes = 0;\r\n            for (i = 1; i < 255; i++) {\r\n                if (bins[i] === 0 && bins[i - 1] > avg * 0.2 && bins[i + 1] > avg * 0.2) { gaps++; }\r\n                if (bins[i] > avg * 6 && bins[i] > bins[i - 1] * 3 && bins[i] > bins[i + 1] * 3) { spikes++; }\r\n            }\r\n            return { bins: bins, gaps: gaps, spikes: spikes };\r\n        },\r\n\r\n        paint: function(canvasId, buf, w, h) {\r\n            var c = document.getElementById(canvasId);\r\n            if (!c || !c.getContext) { return; }\r\n            var ctx = c.getContext('2d');\r\n            var tmp = document.createElement('canvas');\r\n            tmp.width = w; tmp.height = h;\r\n            var tctx = tmp.getContext('2d');\r\n            var id = tctx.createImageData(w, h);\r\n            var i;\r\n            for (i = 0; i < buf.length; i++) { id.data[i] = buf[i]; }\r\n            tctx.putImageData(id, 0, 0);\r\n            ctx.clearRect(0, 0, c.width, c.height);\r\n            ctx.drawImage(tmp, (c.width - w) \/ 2, (c.height - h) \/ 2);\r\n        },\r\n\r\n        drawHistogram: function(hist) {\r\n            var c = document.getElementById('pth-f-c-hist');\r\n            if (!c || !c.getContext) { return; }\r\n            var ctx = c.getContext('2d');\r\n            ctx.clearRect(0, 0, c.width, c.height);\r\n            var max = 1, i;\r\n            for (i = 0; i < 256; i++) { if (hist.bins[i] > max) { max = hist.bins[i]; } }\r\n            var bw = c.width \/ 256;\r\n            for (i = 0; i < 256; i++) {\r\n                var hh = (hist.bins[i] \/ max) * (c.height - 14);\r\n                ctx.fillStyle = hist.bins[i] === 0 ? '#fecaca' : '#1d4ed8';\r\n                ctx.fillRect(i * bw, c.height - hh - 7, bw, hh || 1);\r\n            }\r\n        },\r\n\r\n        \/* ---------- metadata ---------- *\/\r\n        readMeta: function(file, dataUrl) {\r\n            var rows = [];\r\n            rows.push(['File name', file.name]);\r\n            rows.push(['File type', file.type || 'unknown']);\r\n            rows.push(['File size', Math.round(file.size \/ 1024) + ' KB (' + file.size + ' bytes)']);\r\n            if (file.lastModified) {\r\n                rows.push(['Last modified', new Date(file.lastModified).toISOString().replace('T', ' ').substring(0, 19) + ' UTC']);\r\n            }\r\n            if (this.img) { rows.push(['Dimensions', this.img.width + ' x ' + this.img.height + ' px']); }\r\n\r\n            var self = this;\r\n            var head = dataUrl.indexOf(',');\r\n            var b64 = head >= 0 ? dataUrl.substring(head + 1) : '';\r\n            var bin = '';\r\n            try { bin = window.atob(b64.substring(0, 120000)); } catch (err) { bin = ''; }\r\n\r\n            var hasExif = bin.indexOf('Exif') >= 0;\r\n            var hasXmp = bin.indexOf('http:\/\/ns.adobe.com\/xap') >= 0 || bin.indexOf('x:xmpmeta') >= 0;\r\n            var hasIptc = bin.indexOf('Photoshop 3.0') >= 0;\r\n            var hasC2pa = bin.indexOf('c2pa') >= 0 || bin.indexOf('jumb') >= 0;\r\n\r\n            rows.push(['EXIF block', hasExif ? 'present' : 'not found']);\r\n            rows.push(['XMP block', hasXmp ? 'present' : 'not found']);\r\n            rows.push(['IPTC block', hasIptc ? 'present' : 'not found']);\r\n            rows.push(['C2PA credentials', hasC2pa ? 'present' : 'not found']);\r\n\r\n            var soft = this.findSoftware(bin);\r\n            if (soft) { rows.push(['Software trace', soft]); }\r\n\r\n            if (!hasExif && !hasXmp && !hasIptc) {\r\n                rows.push(['Reading', 'No metadata of any kind. Common after a social platform upload, a screenshot, or a deliberate strip - and also normal for a generated image.']);\r\n            }\r\n\r\n            this.metaRows = rows;\r\n            this.renderMeta(rows);\r\n            this.hashFile(file);\r\n        },\r\n\r\n        findSoftware: function(bin) {\r\n            var names = ['Adobe Photoshop', 'Photoshop', 'GIMP', 'Lightroom', 'Affinity', 'Paint.NET',\r\n                'Canva', 'Figma', 'Pixelmator', 'Snapseed', 'Picasa', 'ImageMagick', 'Midjourney',\r\n                'Stable Diffusion', 'DALL', 'Firefly'];\r\n            var i;\r\n            for (i = 0; i < names.length; i++) {\r\n                if (bin.indexOf(names[i]) >= 0) { return names[i]; }\r\n            }\r\n            return '';\r\n        },\r\n\r\n        renderMeta: function(rows) {\r\n            var body = document.getElementById('pth-f-meta-rows');\r\n            if (!body) { return; }\r\n            if (!rows.length) {\r\n                body.innerHTML = '<tr><td colspan=\"2\" style=\"text-align:center; color:#94a3b8; padding:20px;\">No image loaded yet.' + CT + 'td>' + CT + 'tr>';\r\n                return;\r\n            }\r\n            var html = '', i;\r\n            for (i = 0; i < rows.length; i++) {\r\n                html += '<tr><td class=\"k\">' + this.esc(rows[i][0]) + CT + 'td><td>' + this.esc(rows[i][1]) + CT + 'td>' + CT + 'tr>';\r\n            }\r\n            body.innerHTML = html;\r\n        },\r\n\r\n        hashFile: function(file) {\r\n            var self = this;\r\n            var body = document.getElementById('pth-f-hash-rows');\r\n            if (!body) { return; }\r\n            body.innerHTML = '<tr><td class=\"k\">SHA-256' + CT + 'td><td>calculating...' + CT + 'td>' + CT + 'tr>';\r\n\r\n            if (!window.crypto || !window.crypto.subtle || !window.FileReader) {\r\n                body.innerHTML = '<tr><td class=\"k\">SHA-256' + CT + 'td><td>not available in this browser' + CT + 'td>' + CT + 'tr>';\r\n                return;\r\n            }\r\n            var reader = new FileReader();\r\n            reader.onload = function(e) {\r\n                window.crypto.subtle.digest('SHA-256', e.target.result).then(function(buf) {\r\n                    var arr = new Uint8Array(buf);\r\n                    var hex = '', i;\r\n                    for (i = 0; i < arr.length; i++) {\r\n                        hex += (arr[i] < 16 ? '0' : '') + arr[i].toString(16);\r\n                    }\r\n                    self.fileHash = hex;\r\n                    body.innerHTML = '<tr><td class=\"k\">SHA-256' + CT + 'td><td style=\"font-family:Consolas,monospace; font-size:11.5px;\">' + hex + CT + 'td>' + CT + 'tr>' +\r\n                        '<tr><td class=\"k\">Analysed at' + CT + 'td><td>' + new Date().toISOString().replace('T', ' ').substring(0, 19) + ' UTC' + CT + 'td>' + CT + 'tr>';\r\n                })['catch'](function() {\r\n                    body.innerHTML = '<tr><td class=\"k\">SHA-256' + CT + 'td><td>could not be calculated' + CT + 'td>' + CT + 'tr>';\r\n                });\r\n            };\r\n            reader.readAsArrayBuffer(file);\r\n        },\r\n\r\n        copyMeta: function() {\r\n            if (!this.metaRows.length) { this.toast('No metadata to copy yet', true); return; }\r\n            var lines = [], i;\r\n            for (i = 0; i < this.metaRows.length; i++) {\r\n                lines.push(this.metaRows[i][0] + ': ' + this.metaRows[i][1]);\r\n            }\r\n            this.copyText(lines.join('\\n'), 'Metadata');\r\n        },\r\n\r\n        \/* ---------- report ---------- *\/\r\n        buildReport: function() {\r\n            var fmt = this.val('pth-f-rep-fmt') || 'md';\r\n            var t = this.textResults;\r\n            var im = this.imgResults;\r\n            var stamp = new Date().toISOString().replace('T', ' ').substring(0, 19) + ' UTC';\r\n            var out;\r\n\r\n            if (!t && !im) {\r\n                this.setVal('pth-f-report', '');\r\n                this.toast('Run an audit or an image analysis first', true);\r\n                return;\r\n            }\r\n\r\n            if (fmt === 'json') {\r\n                out = JSON.stringify({\r\n                    generated: stamp,\r\n                    file: this.imgFile ? { name: this.imgFile.name, bytes: this.imgFile.size, sha256: this.fileHash || null } : null,\r\n                    content: t ? {\r\n                        words: t.words, sentences: t.sentences, paragraphs: t.paragraphs,\r\n                        bannedWords: t.banned, stockPhrases: t.phrases, structuralTells: t.structures,\r\n                        rhythmVariationPct: t.rhythm.cvPct, meanSentenceWords: t.rhythm.mean,\r\n                        keyword: t.keyword || null, keywordDensityPct: t.density,\r\n                        editorialScore: t.penalty,\r\n                        findings: t.findings\r\n                    } : null,\r\n                    image: im || null\r\n                }, null, 2);\r\n            } else {\r\n                var L = [];\r\n                var h1 = fmt === 'md' ? '# ' : '';\r\n                var h2 = fmt === 'md' ? '## ' : '';\r\n                var bullet = fmt === 'md' ? '- ' : '  * ';\r\n\r\n                L.push(h1 + 'Forensics report');\r\n                L.push('Generated: ' + stamp);\r\n                L.push('');\r\n\r\n                if (this.imgFile) {\r\n                    L.push(h2 + 'File');\r\n                    L.push(bullet + 'Name: ' + this.imgFile.name);\r\n                    L.push(bullet + 'Size: ' + this.imgFile.size + ' bytes');\r\n                    if (this.fileHash) { L.push(bullet + 'SHA-256: ' + this.fileHash); }\r\n                    L.push('');\r\n                }\r\n\r\n                if (t) {\r\n                    L.push(h2 + 'Content audit');\r\n                    L.push(bullet + 'Editorial score: ' + t.penalty + ' (lower is better; under 15 is clean)');\r\n                    L.push(bullet + 'Length: ' + t.words + ' words, ' + t.sentences + ' sentences, ' + t.paragraphs + ' paragraphs');\r\n                    L.push(bullet + 'Banned words: ' + t.banned);\r\n                    L.push(bullet + 'Stock phrases: ' + t.phrases);\r\n                    L.push(bullet + 'Structural tells: ' + t.structures);\r\n                    L.push(bullet + 'Sentence length variation: ' + t.rhythm.cvPct + '% (mean ' + t.rhythm.mean + ' words)');\r\n                    if (t.density !== null) { L.push(bullet + 'Keyword density: ' + t.density + '% for \"' + t.keyword + '\"'); }\r\n                    L.push('');\r\n                    L.push(h2 + 'Findings');\r\n                    var i;\r\n                    for (i = 0; i < t.findings.length; i++) {\r\n                        var f = t.findings[i];\r\n                        L.push(bullet + '[' + f.sev.toUpperCase() + '] ' + f.title + ' (' + f.count + ')');\r\n                        L.push('    ' + f.why);\r\n                        if (f.hits && f.hits.length) { L.push('    Instances: ' + f.hits.slice(0, 20).join(', ')); }\r\n                    }\r\n                    L.push('');\r\n                }\r\n\r\n                if (im) {\r\n                    L.push(h2 + 'Image analysis');\r\n                    L.push(bullet + 'Dimensions: ' + im.width + ' x ' + im.height);\r\n                    L.push(bullet + 'ELA mean: ' + im.elaMean + ' (max ' + im.elaMax + ')');\r\n                    L.push(bullet + 'Noise sigma: ' + im.noiseSd);\r\n                    L.push(bullet + 'Noise uniformity across quadrants: ' + im.uniformity + '%');\r\n                    L.push(bullet + 'Histogram gaps: ' + im.histGaps + ', isolated spikes: ' + im.histSpikes);\r\n                    L.push('');\r\n                    L.push('Note: these measurements are indicative, not conclusive. Compression, resizing and ordinary editing all move them. Treat a single flagged value as a reason to look more closely, never as proof.');\r\n                    L.push('');\r\n                }\r\n\r\n                if (this.metaRows.length) {\r\n                    L.push(h2 + 'Metadata');\r\n                    for (i = 0; i < this.metaRows.length; i++) {\r\n                        L.push(bullet + this.metaRows[i][0] + ': ' + this.metaRows[i][1]);\r\n                    }\r\n                }\r\n\r\n                out = L.join('\\n');\r\n            }\r\n\r\n            this.setVal('pth-f-report', out);\r\n        },\r\n\r\n        saveReport: function() {\r\n            var text = this.val('pth-f-report');\r\n            if (!text) { this.buildReport(); text = this.val('pth-f-report'); }\r\n            if (!text) { this.toast('Nothing to save yet', true); return; }\r\n            var fmt = this.val('pth-f-rep-fmt') || 'md';\r\n            var names = { md: 'forensics-report.md', txt: 'forensics-report.txt', json: 'forensics-report.json' };\r\n            try {\r\n                var blob = new Blob([text], { type: 'text\/plain;charset=utf-8' });\r\n                var url = URL.createObjectURL(blob);\r\n                var a = document.createElement('a');\r\n                a.href = url;\r\n                a.download = names[fmt];\r\n                document.body.appendChild(a);\r\n                a.click();\r\n                document.body.removeChild(a);\r\n                setTimeout(function() { URL.revokeObjectURL(url); }, 1000);\r\n                this.toast('Report saved');\r\n            } catch (err) {\r\n                this.toast('Your browser blocked the download', true);\r\n            }\r\n        },\r\n\r\n        \/* ---------- shared ---------- *\/\r\n        loadSample: function() {\r\n            var sample = 'In today\\u2019s fast-paced digital landscape, it is important to note that comprehensive tools play a crucial role in modern workflows. ' +\r\n                'Furthermore, these robust solutions leverage cutting-edge technology to deliver seamless experiences. ' +\r\n                'Moreover, the intricate tapestry of features empowers users to optimize their productivity effectively. ' +\r\n                'Whether you\\u2019re a developer or a designer, this comprehensive platform will elevate your workflow significantly. ' +\r\n                'Additionally, the holistic approach fosters collaboration across teams. ' +\r\n                'It is not just a tool, it is a complete ecosystem for productivity. ' +\r\n                'Not only does it streamline processes but it also enhances overall efficiency. ' +\r\n                'The plethora of options available is truly remarkable and utterly invaluable. ' +\r\n                'Consequently, users can harness the full potential of this pivotal solution. ' +\r\n                'In conclusion, this game-changing platform delivers unparalleled value in every realm.';\r\n            this.setVal('pth-f-text', sample);\r\n            this.setVal('pth-f-kw', 'comprehensive');\r\n            this.updateCounts();\r\n            this.switchTab('content');\r\n            this.runAudit();\r\n        },\r\n\r\n        clearAll: function() {\r\n            this.setVal('pth-f-text', '');\r\n            this.setVal('pth-f-kw', '');\r\n            this.setVal('pth-f-report', '');\r\n            this.img = null;\r\n            this.imgFile = null;\r\n            this.imgResults = null;\r\n            this.textResults = null;\r\n            this.metaRows = [];\r\n            this.fileHash = null;\r\n            this.updateCounts();\r\n            this.setText('pth-f-score', '--');\r\n            this.setText('pth-f-vlabel', 'Nothing audited yet');\r\n            this.setText('pth-f-vdesc', 'Paste some text and press Audit. The score counts editorial problems, so lower is better.');\r\n            var v = document.getElementById('pth-f-verdict');\r\n            if (v) { v.className = 'pth-verdict neu'; }\r\n            var ids = ['pth-f-banned', 'pth-f-tells'];\r\n            var i;\r\n            for (i = 0; i < ids.length; i++) { this.setText(ids[i], '0'); }\r\n            this.setText('pth-f-rhythm', '--');\r\n            this.setText('pth-f-density', '--');\r\n            this.setText('pth-f-img-stat', 'No image loaded');\r\n            this.setText('pth-f-ela-mean', '--');\r\n            this.setText('pth-f-noise-sd', '--');\r\n            this.setText('pth-f-uniform', '--');\r\n            var wipe = ['pth-f-findings', 'pth-f-openers', 'pth-f-meta-rows', 'pth-f-hash-rows', 'pth-f-rhythm-bars'];\r\n            for (i = 0; i < wipe.length; i++) {\r\n                var el = document.getElementById(wipe[i]);\r\n                if (el) { el.innerHTML = ''; }\r\n            }\r\n            var canv = ['pth-f-c-orig', 'pth-f-c-ela', 'pth-f-c-noise', 'pth-f-c-grad', 'pth-f-c-hist', 'pth-f-rhythm-canvas'];\r\n            for (i = 0; i < canv.length; i++) {\r\n                var c = document.getElementById(canv[i]);\r\n                if (c && c.getContext) { c.getContext('2d').clearRect(0, 0, c.width, c.height); }\r\n            }\r\n            this.toast('Everything cleared');\r\n        }\r\n    };\r\n\r\n    \/* ---------- 4-layer bootstrap ---------- *\/\r\n    function pthForensicRunInit() {\r\n        if (window.pthForensicApp.initialized) { return; }\r\n        if (!document.getElementById('pth-forensic-wrapper')) { return; }\r\n        window.pthForensicApp.initialized = true;\r\n        try {\r\n            window.pthForensicApp.init();\r\n        } catch (err) {\r\n            if (window.console && window.console.error) {\r\n                window.console.error('[Forensics Studio] startup failed', err);\r\n            }\r\n            try { window.pthForensicApp.bindAll(); } catch (inner) { return; }\r\n        }\r\n    }\r\n\r\n    pthForensicRunInit();\r\n\r\n    if (document.readyState === 'loading') {\r\n        document.addEventListener('DOMContentLoaded', pthForensicRunInit);\r\n    }\r\n\r\n    window.addEventListener('load', function() { setTimeout(pthForensicRunInit, 50); });\r\n\r\n    function pthForensicWatch() {\r\n        if (typeof MutationObserver === 'undefined' || !document.body) { return; }\r\n        var observer = new MutationObserver(function() {\r\n            if (document.getElementById('pth-forensic-wrapper')) { pthForensicRunInit(); }\r\n        });\r\n        observer.observe(document.body, { childList: true, subtree: true });\r\n        setTimeout(function() { observer.disconnect(); }, 10000);\r\n    }\r\n\r\n    if (document.body) { pthForensicWatch(); } else { document.addEventListener('DOMContentLoaded', pthForensicWatch); }\r\n})();\r\n<\/script>\n\n\n\n<style>\n.pth-container{max-width:1480px;margin:0 auto;padding:0 20px;box-sizing:border-box}\n.pth-feature-wrap{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px;margin-bottom:40px}\n.pth-feat-box{border:1px solid #e2e8f0;background:#fff;padding:24px;border-radius:12px;box-shadow:0 4px 6px -1px rgba(0,0,0,0.02)}\n.pth-feat-title{font-size:1.05rem;font-weight:800;color:#0f172a;margin:0 0 10px;display:flex;align-items:center;gap:10px}\n.pth-feat-text{font-size:.9rem;color:#1e293b;line-height:1.6;margin:0;font-weight:500}\n.pth-steps-wrap{border:1px solid #e2e8f0;background:#fff;padding:40px 30px;border-radius:16px;text-align:center;box-shadow:0 4px 6px -1px rgba(0,0,0,0.02);margin-bottom:40px;width:100%;box-sizing:border-box}\n.pth-steps-title{font-size:1.2rem;font-weight:800;color:#0f172a;text-transform:uppercase;margin:0 0 35px;letter-spacing:1px}\n.pth-steps-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:30px}\n.pth-step-item{display:flex;flex-direction:column;align-items:center}\n.pth-step-num{width:45px;height:45px;background:ACCENT;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:1.2rem;margin-bottom:15px}\n.pth-step-name{font-weight:800;color:#0f172a;margin:0 0 8px;font-size:1rem}\n.pth-step-desc{font-size:.9rem;color:#1e293b;line-height:1.5;margin:0;font-weight:500}\n<\/style>\n<div class=\"pth-container\">\n  <div class=\"pth-feature-wrap\">\n    <div class=\"pth-feat-box\">\n      <p class=\"pth-feat-title\"><span aria-hidden=\"true\">\ud83d\udee1\ufe0f<\/span> Files Stay Local<\/p>\n      <p class=\"pth-feat-text\">The image analysis happens entirely inside your browser. We never upload your 24 MB JPEGs or screenshots to an external server, which keeps sensitive files private.<\/p>\n    <\/div>\n    <div class=\"pth-feat-box\">\n      <p class=\"pth-feat-title\"><span aria-hidden=\"true\">\ud83d\udd0d<\/span> Real Error Level Analysis<\/p>\n      <p class=\"pth-feat-text\">It resaves your image at a known quality and maps the difference. If someone pasted a face into the frame, those pixels will usually compress differently than the background.<\/p>\n    <\/div>\n    <div class=\"pth-feat-box\">\n      <p class=\"pth-feat-title\"><span aria-hidden=\"true\">\ud83d\udcc2<\/span> Metadata Extraction<\/p>\n      <p class=\"pth-feat-text\">Most social platforms strip EXIF data instantly. If your file still has IPTC blocks or C2PA credentials, the script reads them so you can see which software last touched it.<\/p>\n    <\/div>\n  <\/div>\n  <div class=\"pth-steps-wrap\">\n    <p class=\"pth-steps-title\">How to Use the Forensics Studio<\/p>\n    <div class=\"pth-steps-grid\">\n      <div class=\"pth-step-item\">\n        <div class=\"pth-step-num\" aria-hidden=\"true\">1<\/div>\n        <p class=\"pth-step-name\">Load an image<\/p>\n        <p class=\"pth-step-desc\">Drag a JPG or PNG onto the target area. The script scales anything over 2000 pixels down automatically so it does not lock up your browser.<\/p>\n      <\/div>\n      <div class=\"pth-step-item\">\n        <div class=\"pth-step-num\" aria-hidden=\"true\">2<\/div>\n        <p class=\"pth-step-name\">Run the passes<\/p>\n        <p class=\"pth-step-desc\">Click the audit button. The tool runs the error level, noise residual, and gradient checks simultaneously across the file.<\/p>\n      <\/div>\n      <div class=\"pth-step-item\">\n        <div class=\"pth-step-num\" aria-hidden=\"true\">3<\/div>\n        <p class=\"pth-step-name\">Check the readouts<\/p>\n        <p class=\"pth-step-desc\">Look for bright white patches on the ELA tab. A solid bright shape on a dark background usually points to an area that was edited later.<\/p>\n      <\/div>\n      <div class=\"pth-step-item\">\n        <div class=\"pth-step-num\" aria-hidden=\"true\">4<\/div>\n        <p class=\"pth-step-name\">Save the hash<\/p>\n        <p class=\"pth-step-desc\">Grab the SHA-256 digest from the report tab. You can use it later to prove you tested this exact version of the file before any other changes were made.<\/p>\n      <\/div>\n    <\/div>\n  <\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Last Updated: August 2026<\/strong><\/p>\n\n\n\n<h2 id=\"\ud83d\udd34-what-this-page-does-not-do\" class=\"wp-block-heading\">\ud83d\udd34 What This Page Does Not Do<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Start with the omission, because it is deliberate. This content audit tool will not give you a percentage saying how likely a text is machine-written.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Those numbers are not reliable enough to act on. OpenAI withdrew its own classifier after measuring it at around a quarter accuracy, and independent testing has repeatedly flagged human writing \u2014 particularly by non-native English speakers \u2014 as machine-generated. A number like that is worse than no number, because you will rewrite a page that was fine.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So the Content Audit tab counts things that are actually countable, and tells you where each one is. Every finding points at a word or a pattern you can find in your own text and change.<\/p>\n\n\n\n<h2 id=\"\ud83d\udfe1-the-content-audit-tab\" class=\"wp-block-heading\">\ud83d\udfe1 The Content Audit Tab<\/h2>\n\n\n\n<h3 id=\"what-gets-counted\" class=\"wp-block-heading\">What gets counted<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\ud83d\udd35&nbsp;<strong>Banned vocabulary<\/strong>&nbsp;\u2014 52 words that read as padding \u2014&nbsp;<code>furthermore<\/code>,&nbsp;<code>comprehensive<\/code>,&nbsp;<code>robust<\/code>,&nbsp;<code>leverage<\/code>,&nbsp;<code>seamless<\/code>,&nbsp;<code>delve<\/code>,&nbsp;<code>tapestry<\/code>,&nbsp;<code>myriad<\/code>&nbsp;and the rest. None is wrong in isolation; a page carrying twelve of them reads as assembled rather than written.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\ud83d\udfe0&nbsp;<strong>Stock phrases<\/strong>&nbsp;\u2014 25 constructions with no content:&nbsp;<code>in today's fast-paced digital landscape<\/code>,&nbsp;<code>it is important to note that<\/code>,&nbsp;<code>when it comes to<\/code>,&nbsp;<code>in conclusion<\/code>. Each can be deleted without changing the meaning of its sentence, which is the test for filler.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\ud83d\udfe3&nbsp;<strong>Structural tells<\/strong>&nbsp;\u2014 patterns rather than words. &#8220;Not only X but also Y&#8221;, &#8220;it&#8217;s not just X, it&#8217;s Y&#8221;, &#8220;whether you&#8217;re a beginner or an expert&#8221;, rule-of-three lists, em-dash density, doubled hedging. One is fine. A page built from them is a shape a reader recognises before they can name it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\ud83d\udd35&nbsp;<strong>Sentence rhythm<\/strong>&nbsp;\u2014 the chart under the findings. Human writing varies sentence length considerably; generated prose settles near one comfortable length and stays there. Below about 35% variation the tab flags it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\ud83d\udfe0&nbsp;<strong>Repeated openers<\/strong>&nbsp;\u2014 every sentence beginning with the same two words. Easy to miss while writing, obvious to a reader, and quick to fix.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\ud83d\udfe3&nbsp;<strong>Keyword density<\/strong>&nbsp;\u2014 enter your focus keyword and it flags anything above 2.5%. This is the mistake that creeps in during editing rather than writing.<\/p>\n\n\n\n<h3 id=\"reading-the-score\" class=\"wp-block-heading\">Reading the score<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">It is a weighted problem count, so&nbsp;<strong>lower is better<\/strong>. Under 15 is clean, 15 to 40 is worth a pass, above 40 means a reader would notice something was off.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Press&nbsp;<strong>Load Sample<\/strong>&nbsp;to see the difference. The built-in sample is filler written on purpose and scores&nbsp;<strong>113<\/strong>, with 24 banned words and three stock phrases named individually. A short paragraph of plain writing scores&nbsp;<strong>6<\/strong>.<\/p>\n\n\n\n<h3 id=\"a-real-before-and-after\" class=\"wp-block-heading\">A real before and after<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This sentence scores badly:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Furthermore, this comprehensive solution leverages robust technology to deliver a seamless experience.<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Four banned words in fifteen. It also says nothing \u2014 strip the vocabulary and no fact remains. That is the real problem, and the word count is only the symptom. The fix is not a thesaurus:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>It converts a 40 MB video in about nine seconds on a mid-range laptop.<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Same length, one concrete claim, zero flagged words.<\/p>\n\n\n\n<h2 id=\"\ud83d\udfe2-the-image-tabs\" class=\"wp-block-heading\">\ud83d\udfe2 The Image Tabs<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Four passes run over the same pixels.&nbsp;<strong>Error level analysis<\/strong>&nbsp;re-saves the image at a set quality and maps the difference, since regions edited after the original save often compress differently.&nbsp;<strong>Noise residual<\/strong>&nbsp;subtracts a blurred copy to leave sensor noise, and reports how evenly that noise sits across the four quadrants.&nbsp;<strong>Luminance gradient<\/strong>&nbsp;exposes lighting direction, so an object lit from the wrong angle stands out. The&nbsp;<strong>histogram<\/strong>&nbsp;shows comb-like gaps where levels or curves have been applied.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The&nbsp;<strong>Metadata<\/strong>&nbsp;tab reads which blocks are present \u2014 EXIF, XMP, IPTC, C2PA content credentials \u2014 and looks for a software trace. It also computes a SHA-256 digest so a finding can be tied to one exact file.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The&nbsp;<strong>Report<\/strong>&nbsp;tab pulls everything into one Markdown, plain text or JSON document with the hash and a timestamp at the top.<\/p>\n\n\n\n<h2 id=\"\ud83d\udd34-honest-limits\" class=\"wp-block-heading\">\ud83d\udd34 Honest Limits<\/h2>\n\n\n\n<h3 id=\"a-clean-score-is-not-a-good-page\" class=\"wp-block-heading\">A clean score is not a good page<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This is the limitation that matters most. The audit measures style, not substance. A page can score zero and still be useless \u2014 accurate, readable, and telling the reader nothing they did not already know. No counter can detect that. If your page has no example, no number and no limitation anyone would care about, the score will not save it.<\/p>\n\n\n\n<h3 id=\"the-word-lists-are-opinionated\" class=\"wp-block-heading\">The word lists are opinionated<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Comprehensive<\/code>&nbsp;is a perfectly good word. It is on the list because it is used as filler far more often than it is used precisely. If you genuinely mean it, use it and ignore the flag. The tool counts; you decide.<\/p>\n\n\n\n<h3 id=\"the-image-passes-suggest-they-do-not-prove\" class=\"wp-block-heading\">The image passes suggest, they do not prove<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Compression, resizing, screenshots and ordinary editing all move these measurements. A high ELA reading on a heavily compressed photo means nothing on its own. Treat any single flagged value as a reason to look more closely, never as a conclusion, and only take a finding seriously when more than one pass agrees.<\/p>\n\n\n\n<h3 id=\"missing-metadata-usually-means-nothing\" class=\"wp-block-heading\">Missing metadata usually means nothing<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Most image hosts strip EXIF automatically on upload. An image with no metadata has almost certainly been through a platform, not through a cover-up.<\/p>\n\n\n\n<h3 id=\"practical-ceilings\" class=\"wp-block-heading\">Practical ceilings<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Images are capped at 24 MB and scaled down before the passes run, because a full-resolution analysis of a 40-megapixel file locks up a phone. Everything is held in the page, so a refresh clears it \u2014 save the report before closing the tab.<\/p>\n\n\n\n<h2 id=\"\ud83d\udfe1-where-to-go-next\" class=\"wp-block-heading\">\ud83d\udfe1 Where to Go Next<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">For counts, case conversion and keyword frequency on their own, the&nbsp;<a href=\"https:\/\/schoolict.net\/tools\/free-word-counter-and-text-case-converter\/\">Word Counter &amp; Case Converter<\/a>&nbsp;is the lighter tool. For why generated text has these patterns in the first place, and what search guidance actually says about it, there is a companion piece:&nbsp;<a href=\"https:\/\/schoolict.net\/tools\/how-to-spot-ai-written-content\/\">how to spot AI-written content<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Google&#8217;s own position is set out in its&nbsp;<a href=\"https:\/\/developers.google.com\/search\/blog\/2023\/02\/google-search-and-ai-content\" rel=\"noreferrer noopener\" target=\"_blank\">guidance on AI-generated content<\/a>, and the image passes here are built on the&nbsp;<a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/Canvas_API\" rel=\"noreferrer noopener\" target=\"_blank\">Canvas API<\/a>.<\/p>\n\n\n\n<style>\n.pth-faq-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }\n.pth-faq-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }\n.pth-faq-q { font-size: 15px; font-weight: 800; color: #0f172a; margin: 0 0 8px 0; line-height: 1.4; }\n.pth-faq-a { font-size: 14px; color: #475569; margin: 0; line-height: 1.65; font-weight: 500; }\n@media (max-width: 992px) { .pth-faq-wrap { grid-template-columns: repeat(2, 1fr); } }\n@media (max-width: 640px) { .pth-faq-wrap { grid-template-columns: 1fr; } }\n<\/style>\n \n<h2>\u2753 Frequently Asked Questions<\/h2>\n \n<div class=\"pth-faq-wrap\">\n \n  <div class=\"pth-faq-card\">\n    <p class=\"pth-faq-q\">Why is there no AI probability percentage?<\/p>\n    <p class=\"pth-faq-a\">Because those numbers are unreliable enough to cause harm. A false high reading makes you rewrite a page that was fine. Countable, locatable problems are more useful than a guess.<\/p>\n  <\/div>\n \n  <div class=\"pth-faq-card\">\n    <p class=\"pth-faq-q\">Is my text or image uploaded anywhere?<\/p>\n    <p class=\"pth-faq-a\">No. Both run in your browser. Open DevTools, watch the Network tab and press Audit \u2014 there is no request to see, because none is made.<\/p>\n  <\/div>\n \n  <div class=\"pth-faq-card\">\n    <p class=\"pth-faq-q\">What does the score mean?<\/p>\n    <p class=\"pth-faq-a\">A weighted count of editorial problems, so lower is better. Under 15 is clean, 15 to 40 is worth a pass, above 40 means a reader would notice something was off.<\/p>\n  <\/div>\n \n  <div class=\"pth-faq-card\">\n    <p class=\"pth-faq-q\">Does a score of zero mean my page is good?<\/p>\n    <p class=\"pth-faq-a\">No. It means the style is clean. Whether the page is useful \u2014 whether it has a real example, a number, an honest limitation \u2014 is not something a counter can measure.<\/p>\n  <\/div>\n \n  <div class=\"pth-faq-card\">\n    <p class=\"pth-faq-q\">Can I paste HTML straight in?<\/p>\n    <p class=\"pth-faq-a\">Yes. Tags are stripped before anything is counted, so pasting the source of a page works as well as pasting the rendered text.<\/p>\n  <\/div>\n \n  <div class=\"pth-faq-card\">\n    <p class=\"pth-faq-q\">Why is a normal word like <code>comprehensive<\/code> flagged?<\/p>\n    <p class=\"pth-faq-a\">Because it is used as filler far more often than precisely. If you mean it, keep it. The list is a prompt to check, not a rule to obey.<\/p>\n  <\/div>\n \n  <div class=\"pth-faq-card\">\n    <p class=\"pth-faq-q\">What sentence rhythm should I aim for?<\/p>\n    <p class=\"pth-faq-a\">Above about 50% variation reads naturally. Below 35% is flat. The quickest fix is to split one long sentence and let a short one stand on its own.<\/p>\n  <\/div>\n \n  <div class=\"pth-faq-card\">\n    <p class=\"pth-faq-q\">Does high ELA mean an image was edited?<\/p>\n    <p class=\"pth-faq-a\">Not by itself. Compression and resizing raise it too. Only treat it seriously when the noise or gradient pass points at the same region.<\/p>\n  <\/div>\n \n  <div class=\"pth-faq-card\">\n    <p class=\"pth-faq-q\">What is the SHA-256 digest for?<\/p>\n    <p class=\"pth-faq-a\">It identifies that exact file. Record it with any finding, and if the file is later changed the digest no longer matches \u2014 so the report is visibly about a different version.<\/p>\n  <\/div>\n \n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Offline Forensic Image Verification Suite \u2014 Free local tool for ELA, metadata scanning, and synthetic media detection. Wondering if a photo or video is AI-generated? Use our free, 100% offline AI Media Forensic Analyzer to scan EXIF data and view ELA heatmaps securely in your browser. \u00a0 \ud83d\udee1\ufe0f Files Stay Local The image analysis happens &#8230; <a title=\"Free AI Image Detector &amp; Forensic Analyzer Offline\" class=\"read-more\" href=\"https:\/\/schoolict.net\/tools\/free-ai-image-detector-forensic-analyzer\/\" aria-label=\"Read more about Free AI Image Detector &amp; Forensic Analyzer Offline\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":2685,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2674","page","type-page","status-publish","has-post-thumbnail"],"_links":{"self":[{"href":"https:\/\/schoolict.net\/tools\/wp-json\/wp\/v2\/pages\/2674","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/schoolict.net\/tools\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/schoolict.net\/tools\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/schoolict.net\/tools\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/schoolict.net\/tools\/wp-json\/wp\/v2\/comments?post=2674"}],"version-history":[{"count":4,"href":"https:\/\/schoolict.net\/tools\/wp-json\/wp\/v2\/pages\/2674\/revisions"}],"predecessor-version":[{"id":7016,"href":"https:\/\/schoolict.net\/tools\/wp-json\/wp\/v2\/pages\/2674\/revisions\/7016"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/schoolict.net\/tools\/wp-json\/wp\/v2\/media\/2685"}],"wp:attachment":[{"href":"https:\/\/schoolict.net\/tools\/wp-json\/wp\/v2\/media?parent=2674"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}