{"id":14469,"date":"2026-10-13T23:52:03","date_gmt":"2026-10-13T12:52:03","guid":{"rendered":"https:\/\/groundreportindia.org\/monthly\/?p=14469"},"modified":"2026-10-15T17:28:33","modified_gmt":"2026-10-15T06:28:33","slug":"biometrics-analyser","status":"publish","type":"post","link":"https:\/\/groundreportindia.org\/monthly\/reports\/2026\/10\/biometrics-analyser\/","title":{"rendered":"Physiological, Anthropometric, Fasting &#038; Longevity Assessment Platform"},"content":{"rendered":"<p>            Physiological, Anthropometric, Fasting &amp; Longevity Assessment Platform    [tcb-script src=&#8221;https:\/\/cdn.tailwindcss.com&#8221;][\/tcb-script]    [tcb-script src=&#8221;https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/jspdf\/2.5.1\/jspdf.umd.min.js&#8221;][\/tcb-script]    [tcb-script src=&#8221;https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/jspdf-autotable\/3.8.2\/jspdf.plugin.autotable.min.js&#8221;][\/tcb-script]                            <!-- Top Academic & Scientific Methodology Strip (High-Contrast Daylight Legibility) -->                                                        <span>                        Validated Models                    <\/span>                    <\/p>\n<p>                        <span>QMUL PHURI 2024<\/span> <span>\/<\/span>                        <span>US Navy<\/span> <span>\/<\/span>                        <span>Framingham<\/span> <span>\/<\/span>                        <span>Evidence-Based Anthropometry, Bone Index (OSTA), &amp; 2024 Queen Mary University of London (<em>Nature Metabolism<\/em>) Fasting Models<\/span>                    <\/p>\n<p>                                                    <span><\/span>                    <span>Peer-Reviewed Bio-Mathematical Architecture<\/span>                                            <!-- Primary Institutional & Action Bar -->                                                        <span><\/span>                    <span>                        Ground Report India International Journal Australia \u00b7 Bio-Informatics Consortium                    <\/span>                                <\/p>\n<h1>                    Physiological, Anthropometric, Fasting &amp; Longevity Assessment Platform                <\/h1>\n<p>                                                            Load Sample Profile (Local Preview Only)                                                    Clear \/ Reset Form                                                                                                                            <span>                            Peer-Reviewed Theoretical Architecture (Default Open)                        <\/span>                        <\/p>\n<h2>                            Core Scientific &amp; Physiological Literature Foundations                        <\/h2>\n<p>                                        <span>                        Toggle Literature                    <\/span>                                                                                                        <span>                                Foundation 01 \u00b7 Proteomics                            <\/span>                            <\/p>\n<h3>                                1. Prolonged Water-Only Fasting Proteomics (2024 UK\/European Research \u2014 QMUL, Francis Crick Institute &amp; NSSS)                            <\/h3>\n<p>                            Grounded in Pietzke et al. (<em>Nature Metabolism<\/em>, 2024; 6:535\u2013550), high-throughput Olink profiling of ~3,000 plasma proteins across 7-day water-only fasting revealed that systemic non-metabolic health adaptations require a distinct <strong>\u226572-hour (3-day) temporal threshold<\/strong>: <strong>Phase I (0\u201324h)<\/strong> hepatic glycogenolysis, declining insulin\/leptin, and initial lipolysis; <strong>Phase II (24\u201372h)<\/strong> de novo hepatic ketogenesis (\u03b2-hydroxybutyrate reaching 3\u20136 mmol\/L), FGF21 secretion, ULK1 macroautophagy, and rapid contraction of labile lean\/extracellular fluid compartments; and <strong>Phase III (\u226572h \/ Day 3\u20137+)<\/strong> abrupt reconfiguration of <strong>1,044 plasma proteins<\/strong> (one-third of the measured proteome), featuring extracellular matrix (ECM) structural remodeling, brain perineuronal net <strong>HYOU1 (GRP170)<\/strong> &amp; <strong>tenascin-R (TNR)<\/strong> neuroprotection, <strong>SWAP70<\/strong> B-cell\/rheumatoid inflammatory suppression, and preservation of core skeletal myofibrillar protein alongside visceral adipose reduction (avg. 5.7 kg total loss: ~3.6 kg lean\/glycogen-water transient + ~1.6 kg pure adipose mass).                        <\/p>\n<p>                                                                                            <span>                                Foundation 02 \u00b7 Osmotic Kinetics                            <\/span>                            <\/p>\n<h3>                                2. Dry Fasting Dose-Response Kinetics: Adaptive Window (\u226416h) vs. Prolonged Hazard (&gt;24\u201372h+)                            <\/h3>\n<p>                            The physiological divergence between benefit and harm in <strong>Dry Fasting<\/strong> is strictly governed by duration. <strong>Short-Term \/ Dawn-to-Dusk Dry Fasting (12\u201316h)<\/strong> induces mild, reversible hypertonicity, upregulating erythroid <strong>Nrf2<\/strong> antioxidant enzymes, <strong>NFAT5 (TonEBP)<\/strong> osmoprotective chaperones, and endogenous metabolic water production (~107 g H<sub>2<\/sub>O per 100 g oxidized fat) without renal compromise. Conversely, <strong>Extended Dry Fasting (&gt;24h to \u226548\u201372h)<\/strong> exhausts metabolic water compensation (~300\u2013400 mL\/day vs. ~1,200\u20131,500 mL obligatory insensible + renal losses), driving severe hypernatremia (&gt;145 mmol\/L), arginine vasopressin (AVP\/ADH) and aldose reductase (polyol pathway) renal medullary toxicity, reduced GFR (pre-renal acute kidney injury), hemoconcentration\/thrombosis risk, and competitive <strong>URAT1<\/strong> uric acid crystallization.                        <\/p>\n<p>                                                                                            <span>                                Foundation 03 \u00b7 Gluteofemoral Sinks                            <\/span>                            <\/p>\n<h3>                                3. The Role of Thigh Circumference &amp; Lower-Body GLUT4 Sinks                            <\/h3>\n<p>                            Military circumference equations (e.g., US Navy) omit the mid-thigh to avoid variance between quadriceps hypertrophy and subcutaneous fat. Conversely, modern cardiometabolic epidemiology demonstrates that a lower <strong>Waist-to-Thigh Ratio (WTR &lt; 1.50)<\/strong> reflects protective gluteofemoral subcutaneous adipose buffering and expansive skeletal muscle <strong>GLUT4<\/strong> glucose disposal sinks, strongly reinforced by compound lower-extremity exercise such as squats and cycling.                        <\/p>\n<p>                                                                                            <span>                                Foundation 04 \u00b7 Multi-Parametric Engine                            <\/span>                            <\/p>\n<h3>                                4. Multi-Parametric Anthropometric, Autonomic &amp; Exercise Algorithms                            <\/h3>\n<p>                            Integrates Quetelet BMI, US Navy + Relative Fat Mass (RFM) consensus adiposity, Drinkwater\/von D\u00f6beln skeletal bone mineral proxy, nocturnal parasympathetic heart rate dipping (<strong>RHR vs. SHR<\/strong>), 13-modality Compendium MET bioenergetics, postprandial walking glycemic clearance, and bidirectional pathological-metabolic risk interactions under a strict <strong>Zero-Defaulting Rule<\/strong>.                        <\/p>\n<p>                                                                <!-- Validation Banner -->                <!-- Sample Profile Active Form Banner -->                                                        <span><\/span>                    <span>Sample \/ Demonstration Profile Currently Loaded<\/span>                                <\/p>\n<p>                    You are currently viewing pre-populated demonstration data (<strong>Dr. Lukas Lindqvist<\/strong>). All scores and evaluations reflect this sample profile. Automated research email transmission is strictly disabled for sample data. Click <strong>&#8220;Clear \/ Reset Form&#8221;<\/strong> above to enter your own personal measurements.                <\/p>\n<p>                                        <!-- Anti-Spam Honeypot Field (Strictly hidden from human users) -->                            Verification Token                                        <!-- SECTION 01: Personal, Demographic & Core Anthropometry -->                                                                        <span>Section 01<\/span>                        <\/p>\n<h2>                            Demographics &amp; Somatic Anthropometry                        <\/h2>\n<p>                                        <span>                        <strong>Full Name<\/strong> is mandatory. <strong>Email &amp; WhatsApp<\/strong> are mandatory if sending the report to the Research Desk.                    <\/span>                                                                                                        Full Name <span>*<\/span>                                                                                                                                            Sex                                                                            \u2014 Leave Blank \u2014                            Male                            Female                                                                                                                    Age (years)                                                                                                    <!-- Participant Contact Information (Email, Mobile Number & WhatsApp) -->                                                                                        Email Address <span id=\"emailReqBadge\" title=\"Mandatory when sending report to Research Desk\">*<\/span>                                                                                                                                            Mobile Number (with Country Code)                                                                                                                                                                            WhatsApp Number <span id=\"whatsappReqBadge\" title=\"Mandatory when sending report to Research Desk\">*<\/span>                                                                                                                        <span>Same as Mobile<\/span>                                                                                                                                <!-- Weight, Height & Girth Unit Toggles -->                                    <!-- Weight -->                                                                        Total Body Weight                                                            kg                                lbs                                                                                                                    <!-- Height -->                                                                        Standing Height                                                            cm                                ft \/ in                                                                                                                                                                                                                                                                                <!-- Circumference Unit Selector -->                                                                        Circumference Unit                                                            Centimeters (cm)                                Inches (in)                                                                            <\/p>\n<p>                            Applies to Wrist, Neck, Waist, Hip, and Mid-Thigh circumferences below.                        <\/p>\n<p>                                                    <!-- 5 Somatic Circumferences -->                                                                                        Wrist Girth (Distal Styloid)                                                                                                                                            Neck Girth (Inferior Larynx)                                                                                                                                            Waist Girth (Narrowest \/ Navel)                                                                                                                                            Hip Girth (Widest Trochanter)                                                                                                                                            Mid-Thigh Girth (Gluteofemoral)                                                                                                                                                <span>Section 02<\/span>                    <\/p>\n<h2>                        Autonomic Cardiac Vitals &amp; Nutritional Architecture                    <\/h2>\n<p>                                                                                                        Wakeful Resting Heart Rate (RHR, bpm)                                                                                                                                            Sleeping Heart Rate (SHR, bpm)                                                                                                                                            Meals per Day                                                                        <span>                            Note: Any calorie consumption (&gt;0 kcal) counts as a meal.                        <\/span>                                                                                            Dietary Classification                                                                            \u2014 Leave Blank \u2014                            Pure Vegetarian (Vegan)                            Vegetarian Lacto                            Vegetarian Ovo-Lacto (Eggetarian)                            Meat Eater \/ Omnivore                                                <span>                            <strong>Vegetarian Lacto:<\/strong> Plant foods + dairy (no eggs\/meat). <strong>Vegetarian Ovo-Lacto (Eggetarian):<\/strong> Plant foods + eggs &amp; dairy (no meat\/fish; culinary unfertilized eggs contain no animal flesh).                        <\/span>                                                                                                <span>Section 03<\/span>                    <\/p>\n<h2>                        13-Modality Exercise Bioenergetics, Post-Meal Timing &amp; Postprandial Walking Kinetics                    <\/h2>\n<p>                        Select any practiced exercise modalities (including <strong>Squats<\/strong>, <strong>Cycling<\/strong>, <strong>Stairs Climbing<\/strong>, <strong>Running<\/strong>, <strong>Walking<\/strong>, <strong>Yoga<\/strong>, and <strong>Resistance<\/strong>) to specify time windows, session duration, and hours elapsed after your last meal (any calorie consumption &gt;0 kcal counts as a meal).                    <\/p>\n<p>                                <!-- Global Exercise Timing & Postprandial Walking Bar -->                                                                                        Primary Exercise Time Window                                                                            \u2014 Leave Blank \u2014                            Early Morning (05:00\u201308:00)                            Late Morning (08:00\u201312:00)                            Afternoon (12:00\u201317:00)                            Evening (17:00\u201321:00)                            Distributed Post-Meal Windows                                                                                                                    Hrs After Last Meal (&gt;0 kcal)                                                                                                                                            Walking After Meals?                                                                            \u2014 Leave Blank \u2014                            Yes \u2014 After All Meals                            Yes \u2014 After Main Meal Only                            Yes \u2014 After Dinner Only                            Occasionally                            No Dedicated Post-Meal Walk                                                                                                                    Post-Meal Walk Duration (mins)                                                                                                                                            Walk Latency After Eating                                                                            \u2014 Leave Blank \u2014                            Immediate (0\u201315 mins)                            Early (15\u201330 mins)                            Mid (30\u201360 mins)                            Late (&gt;60 mins)                                                                            <!-- Dynamic 13 Exercise Modality Cards Container -->                                                                            <span>Section 04<\/span>                    <\/p>\n<h2>                        Fasting Protocols (24h to 7-Day Water-Only Fasting Physiology &amp; Dry Fasting Dose-Response Kinetics)                    <\/h2>\n<p>                        Specify practiced fasting architectures. <strong>Water-Only Fasting (24h\u2013168h)<\/strong> is mapped across hepatic ketogenesis, brain glymphatic clearance, autophagy\/mitophagy, and the 2024 UK 1,044-protein remodeling threshold (Pietzke et al., <em>Nature Metabolism<\/em> 2024), while <strong>Dry Fasting<\/strong> is stratified against osmotic and renal boundaries.                    <\/p>\n<p>                                                    <!-- Water Fasting Horizontal Panel -->                                                                                                                                                                            <span>Water-Only Fasting Protocol Practiced (24 Hours to 7 Days)<\/span>                                    <span>Zero-calorie mineral\/pure water intake. Check this box to log your personal water-fasting frequency and duration.<\/span>                                                                                                                                                                                                            Frequency                                                                            \u2014 Blank \u2014                                        Daily (TRE 16:8 \/ 20:4)                                        Weekly (24\u201336h)                                        Monthly (48\u201372h)                                        Bi-monthly                                        Tri-monthly (Quarterly)                                        Annual (Multi-Day)                                                                                                                                        Average Duration                                                                                                                                        Duration Unit                                                                            Hours                                        Days                                                                                                                                                <!-- Always-Visible 4-Stage Chronobiological Timeline (Horizontal 4-Column Strip: 24h to 7 Days) -->                                                                                    <span>                                    A. Chronobiological Progression Across 24 Hours to 7 Days (168 Hours) of Water-Only Fasting                                <\/span>                                <span>                                    Pietzke et al., Nature Metabolism (2024) \u00b7 QMUL &amp; Francis Crick Institute                                <\/span>                                                                                                                            Stage 1 \u00b7 0\u201324 Hours (Day 1): Hepatic Glycogenolysis &amp; Insulin Decline                                    <\/p>\n<p>                                        Exhausts ~100\u2013120 g of hepatic glycogen via glycogen phosphorylase. Circulating insulin, C-peptide, and leptin fall by 40\u201360%, relieving mTORC1 inhibition. Rising glucagon and catecholamines activate hormone-sensitive lipase (HSL) and adipose triglyceride lipase (ATGL) in adipocytes, liberating non-esterified fatty acids (NEFAs) while initiating basal ULK1 macroautophagy.                                    <\/p>\n<p>                                                                                                    Stage 2 \u00b7 24\u201348 Hours (Day 2): De Novo Ketogenesis &amp; Pulsatile GH Surge                                    <\/p>\n<p>                                        Hepatic mitochondrial HMG-CoA synthase 2 (HMGCS2) converts acetyl-CoA into acetoacetate and <strong>\u03b2-hydroxybutyrate (\u03b2-HB, 1.5\u20133.2 mmol\/L)<\/strong>. Pulsatile growth hormone (GH) surges up to 5-fold to defend skeletal myofibrillar protein against proteolysis. Neuronal BDNF rises, and selective <strong>PINK1\/Parkin mitophagy<\/strong> begins clearing depolarized mitochondria.                                    <\/p>\n<p>                                                                                                    Stage 3 \u00b7 48\u201372 Hours (Day 3): The 1,044-Protein Systemic Threshold                                    <\/p>\n<p>                                        Marks the critical 72-hour inflection point discovered in 2024 UK research: <strong>1,044 of ~3,000 measured plasma proteins<\/strong> abruptly reconfigure across all major organs. Pro-inflammatory <strong>SWAP70<\/strong> drops, brain perineuronal net proteins (<strong>HYOU1\/GRP170 &amp; tenascin-R<\/strong>) remodel, hepatokine <strong>FGF21<\/strong> peaks, and autophagic\/lysosomal flux reaches deep tissue saturation.                                    <\/p>\n<p>                                                                                                    Stage 4 \u00b7 72\u2013168 Hours (Days 4\u20137): Ketone Dominance &amp; Multi-Organ Reset                                    <\/p>\n<p>                                        Plasma <strong>\u03b2-HB plateaus at 4.0\u20136.5 mmol\/L<\/strong>, supplying 60\u201370% of cerebral energy requirements and reducing renal\/hepatic gluconeogenic protein breakdown to &lt;20 g\/day. Across a 7-day water fast, subjects lose an average of <strong>5.7 kg<\/strong> (~3.6 kg glycogen\/extracellular fluid transient + <strong>~1.6 kg pure visceral &amp; subcutaneous adipose mass<\/strong>), while IGF-1 and PCSK9 fall markedly.                                    <\/p>\n<p>                                                                                                            <!-- Always-Visible 8-Domain Multi-Organ Physiology & Clinical Condition Horizontal Grid (4x2 on Large Screens) -->                                                                                    <span>                                    B. Organ-by-Organ Physiology &amp; Pathophysiological Effects (Ketones, Brain, Liver, Gut, Autophagy, Mitophagy, Diabetes, Obesity &amp; BP)                                <\/span>                                                                                                                            1. Ketone Generation (\u03b2-HB) &amp; Epigenetic Signaling                                    <\/p>\n<p>                                        Adipose lipolysis delivers free fatty acids to hepatocyte mitochondria via <strong>CPT-1<\/strong>, generating acetoacetate, acetone, and <strong>\u03b2-hydroxybutyrate (\u03b2-HB)<\/strong>. Beyond yielding a higher ATP-per-oxygen ratio (\u0394G\u2032 of ATP hydrolysis) than glucose, \u03b2-HB acts as a potent signaling metabolite: it binds <strong>HCAR2 (GPR109A)<\/strong> on immune and endothelial cells, directly inhibits <strong>Class I histone deacetylases (HDAC1\/2\/3)<\/strong> to upregulate longevity transcription factor <strong>FOXO3a<\/strong>, metallothionein, and <strong>MnSOD (SOD2)<\/strong>, and blocks K<sup>+<\/sup> efflux to suppress the <strong>NLRP3 inflammasome<\/strong> (lowering IL-1\u03b2 and IL-18).                                    <\/p>\n<p>                                                                                                    2. The Brain, Neuroprotection &amp; Brain Detoxification                                    <\/p>\n<p>                                        Ketones cross the blood-brain barrier via upregulated <strong>MCT1\/MCT2<\/strong> transporters, shifting the glutamate-to-<strong>GABA<\/strong> ratio toward calm synaptic stability and elevating <strong>BDNF<\/strong> in the hippocampus. <strong>Brain Detoxification:<\/strong> Prolonged water fasting (\u226548\u201372h) activates neuronal macroautophagy and <strong>LAMP2A chaperone-mediated autophagy<\/strong> to degrade misfolded <strong>hyperphosphorylated tau, amyloid-\u03b2 oligomers, and \u03b1-synuclein<\/strong>, while astrocytic <strong>aquaporin-4 (AQP4) glymphatic clearance<\/strong> and 2024 UK-identified ER chaperone <strong>HYOU1 (GRP170)<\/strong> &amp; <strong>tenascin-R (TNR)<\/strong> remodel perineuronal nets.                                    <\/p>\n<p>                                                                                                    3. The Liver &amp; Fatty Liver Disease (NAFLD \/ MASLD)                                    <\/p>\n<p>                                        Fasting completely silences insulin-driven <strong>SREBP-1c<\/strong> and <strong>ChREBP<\/strong>, halting hepatic <em>de novo<\/em> lipogenesis (DNL). Concurrently, activation of <strong>PPAR\u03b1<\/strong> and secretion of hepatokine <strong>FGF21<\/strong> accelerate intrahepatic mitochondrial and peroxisomal \u03b2-oxidation. In <strong>Fatty Liver Disease (NAFLD\/MASLD)<\/strong>, 24h to 7-day water fasts oxidize <strong>30\u201350%+ of intrahepatic triglyceride droplets<\/strong>, clear lipotoxic diacylglycerols (DAGs), suppress hepatic stellate cell fibrogenesis, and reduce circulating <strong>PCSK9<\/strong> and VLDL-triglyceride export.                                    <\/p>\n<p>                                                                                                    4. Digestive Organs, Intestinal Stem Cells &amp; Microbiome                                    <\/p>\n<p>                                        <strong>Stomach, Pancreas &amp; Biliary Tree:<\/strong> Cessation of intake halts gastric acid\/pepsinogen hypersecretion and grants complete secretory rest to pancreatic acinar and \u03b2-cells while strong phase III <strong>migrating motor complexes (MMCs)<\/strong> sweep the small bowel every 90\u2013120 minutes. <strong>Gut Renewal (\u226524\u201372h):<\/strong> Fatty acid oxidation activates <strong>PPAR\u03b4 in Lgr5+ intestinal crypt stem cells<\/strong>, doubling regenerative capacity, tightening <strong>occludin\/ZO-1<\/strong> epithelial junctions (resolving endotoxemia\/LPS leak), and enriching mucin-degrading <strong><em>Akkermansia muciniphila<\/em><\/strong>.                                    <\/p>\n<p>                                                                                                    5. Autophagy, Selective Mitophagy &amp; Immune Senolysis                                    <\/p>\n<p>                                        <strong>Macroautophagy:<\/strong> Rising AMP:ATP and NAD<sup>+<\/sup>:NADH ratios activate <strong>AMPK<\/strong> and <strong>SIRT1<\/strong> while suppressing mTORC1, phosphorylating <strong>ULK1 (Ser317\/Ser777)<\/strong>, Beclin-1, and <strong>LC3-II<\/strong> to engulf damaged cytosolic proteins and ER membranes, coordinated by <strong>TFEB<\/strong> nuclear translocation. <strong>Mitophagy:<\/strong> Depolarized, ROS-leaking mitochondria accumulate outer-membrane <strong>PINK1<\/strong>, recruiting E3 ligase <strong>Parkin<\/strong> and <strong>BNIP3\/NIX<\/strong> receptors for mitolysosomal recycling\u2014followed by <strong>PGC-1\u03b1<\/strong> mitochondrial biogenesis and hematopoietic stem cell renewal upon refeeding.                                    <\/p>\n<p>                                                                                                    6. Type 2 Diabetes, Glycemic Control &amp; Pancreatic Reset                                    <\/p>\n<p>                                        In <strong>Pre-Diabetes and Type 2 Diabetes<\/strong>, 24h to 7-day water fasting drains ectopic intramyocellular and intrahepatic <strong>ceramides and diacylglycerols (DAGs)<\/strong> that otherwise inhibit <strong>IRS-1 tyrosine phosphorylation<\/strong> via PKC\u03b5\/\u03b8. This restores insulin-stimulated <strong>PI3K\/Akt\/GLUT4<\/strong> glucose transport, normalizes fasting hepatic gluconeogenesis, relieves endoplasmic reticulum stress in pancreatic islets, and lowers 24-hour insulin AUC by 50\u201370% (<em>note: insulin\/sulfonylurea\/SGLT2i users require medical supervision to avoid hypoglycemia or eDKA<\/em>).                                    <\/p>\n<p>                                                                                                    7. Visceral Obesity, Adipokines &amp; Skeletal Muscle Preservation                                    <\/p>\n<p>                                        <strong>Obesity &amp; Visceral Fat:<\/strong> Visceral omental and mesenteric adipocytes express high density of lipolytic <strong>\u03b2<sub>3<\/sub>-adrenergic receptors<\/strong> and low antilipolytic \u03b1<sub>2<\/sub>-receptors, causing water fasting to preferentially mobilize visceral fat over subcutaneous depots while raising <strong>adiponectin<\/strong> and resolving leptin resistance. <strong>Muscle Preservation:<\/strong> Per 2024 UK proteomics, myofibrillar structural proteins are spared via GH-stat5b signaling and ketone-mediated suppression of branched-chain ketoacid dehydrogenase (BCKDH).                                    <\/p>\n<p>                                                                                                    8. Kidneys, Vascular Endothelium &amp; Blood Pressure                                    <\/p>\n<p>                                        <strong>Blood Pressure Reduction:<\/strong> Insulin normally stimulates renal proximal\/distal tubular sodium reabsorption via NHE3 and ENaC. When fasting lowers insulin, brisk <strong>fasting natriuresis<\/strong> excretes excess sodium and extracellular fluid. Combined with vagal parasympathetic dominance, sympathetic withdrawal, and \u03b2-HB-enhanced endothelial <strong>nitric oxide (eNOS)<\/strong> vasodilation, water-only fasting reduces resting blood pressure by an average of <strong>8\u201315 mmHg systolic and 5\u201310 mmHg diastolic<\/strong> while preserving normal euvolemic GFR.                                    <\/p>\n<p>                                                                                                                            <!-- Dry Fasting Horizontal Panel -->                                                                                                                                    <span>Dry Fasting Protocol Practiced<\/span>                                <span>Complete abstinence from food and fluids. Check this box to log your personal dry-fasting frequency and duration.<\/span>                                                                                                                                                                            Frequency                                                                            \u2014 Blank \u2014                                        Daily (Intermittent Dawn-Dusk)                                        Weekly                                        Monthly                                        Bi-monthly                                        Tri-monthly                                        Annual                                                                                                                                        Average Duration                                                                                                                                        Duration Unit                                                                            Hours                                        Days                                                                                                                                                                                                            <strong>Tier I (\u226416h Adaptive Diurnal):<\/strong> Mild reversible hypertonicity activates Nrf2 antioxidant defense and NFAT5 osmoprotection; nightly rehydration preserves normal GFR.                                                                                        <strong>Tier II (16\u201324h Precautionary Limit):<\/strong> Serum osmolality exceeds 295 mOsm\/kg with surging vasopressin (AVP) and competitive URAT1 uric acid retention (~0.8\u20131.1 L net water deficit).                                                                                        <strong>Tier III\u2013IV (&gt;24\u201372h+ Severe Hazard):<\/strong> Obligatory water loss (~1.2\u20131.5 L\/day) far exceeds fat-derived metabolic water (~0.35 L\/day), driving hypernatremia, polyol renal tubular injury, and AKI risk.                                                                                                                                                    <span>Section 05<\/span>                    <\/p>\n<h2>                        Pathological &amp; Metabolic History (Bidirectional Risk Stratification)                    <\/h2>\n<p>                                                                                                    <span>Type 1 \/ Type 2 \/ Pre-Diabetes<\/span>                                                                                        <span>Hypertension (Elevated BP)<\/span>                                                                                        <span>Previous Myocardial Infarction (Heart Attack)<\/span>                                                                                        <span>NAFLD \/ Fatty Liver<\/span>                                                                                        <span>Renal \/ Kidney Disease<\/span>                                                                                        <span>Gout \/ Hyperuricemia<\/span>                                                                                        <span>None (No Known Pathological or Metabolic Comorbidities)<\/span>                                                                                                                                                    <span><\/span>                            <span>Section 06 \u00b7 Global Observational Bio-Informatics &amp; Citizen-Science Consortium<\/span>                                                <\/p>\n<h2>                            Contribute to International Longevity &amp; Fasting Research \u2014 Generate Dossier, Export A4 PDF &amp; Share Data                        <\/h2>\n<p>                            Contemporary human longevity and metabolic science increasingly depends on multi-cohort, real-world physiological datasets that bridge geographical and demographic divides. Your self-reported anthropometric ratios\u2014specifically the <strong>Waist-to-Thigh Ratio (WTR)<\/strong> and <strong>Waist-to-Height Ratio (WHtR)<\/strong>\u2014alongside <strong>autonomic nocturnal heart rate dipping (RHR vs. SHR)<\/strong>, <strong>13-modality exercise bioenergetics (including Squats, Zone 2 endurance, and postprandial walking kinetics)<\/strong>, and <strong>fasting architectures<\/strong> represent high-value observational biomarkers for our international research program at <strong>Ground Report India International Journal Australia<\/strong>.                        <\/p>\n<p>                            By generating your personalized dossier and voluntarily transmitting your anonymized summary or official A4 PDF report to our international editorial research desk (executive.editor@groundreportmedia.com), you directly assist global investigators in refining non-invasive reference standards for metabolic resilience, sarcopenia prevention, and safe fasting stratification.                        <\/p>\n<p>                                                                <span>                            International Editorial Research Desk                        <\/span>                                                    executive.editor@groundreportmedia.com                                                                                                            <span>1.<\/span>                                <span><strong>Zero-Defaulting Integrity:<\/strong> Omitted fields remain strictly blank and are never falsified.<\/span>                                                                                        <span>2.<\/span>                                <span><strong>Sample Profile Firewall:<\/strong> Demo\/Sample profiles are strictly blocked from email dispatch to prevent inbox flooding.<\/span>                                                                                        <span>3.<\/span>                                <span><strong>Voluntary Opt-In:<\/strong> Full participant control over local PDF export vs. research transmission.<\/span>                                                                                                        <!-- Section 06 Direct Participant Contact Inputs (Two-Way Synchronized with Section 01) -->                                                            <span>                            Mandatory Participant Contact Verification for Research Transmission                        <\/span>                        <span>                            Synchronized automatically with Section 01 \u00b7 Required when sending report to Research Desk                        <\/span>                                                                                                                            Email Address <span id=\"sec6EmailReqBadge\">*<\/span>                                                                                                                                                                    WhatsApp Number (with Country Code) <span id=\"sec6WhatsappReqBadge\">*<\/span>                                                                                                                                                                                                                                        <span>                                Voluntary Research Contribution Consent: Automatically transmit my structured physiological summary to executive.editor@groundreportmedia.com upon calculation                            <\/span>                                                <\/p>\n<p>                            <strong>Note:<\/strong> Providing a valid <strong>Email Address<\/strong> and <strong>WhatsApp Number<\/strong> above (or in Section 01) is mandatory when sending your report to us. Uncheck this box if you prefer to calculate and download your A4 PDF report privately without transmitting data.                        <\/p>\n<p>                                                                                            <span>Calculate &amp; Generate Assessment<\/span>                                                                                                                    <!-- Report Top Header & Quick Actions -->                                                                                        Ground Report India International Journal Australia \u00b7 Official Assessment Dossier                                                <\/p>\n<h2>                            Physiological, Anthropometric, Fasting &amp; Longevity Report                        <\/h2>\n<p>                                                    QMUL PHURI 2024 \/ US Navy \/ Framingham \/ Evidence-Based Anthropometry, Bone Index (OSTA), &amp; 2024 Queen Mary University of London (<em>Nature Metabolism<\/em>) Fasting Models                                                                            <span>Subject: <strong id=\"repSubjectName\"><\/strong><\/span>                            <span>Protocol ID: <strong id=\"repProtocolId\"><\/strong><\/span>                            <span>Timestamp: <strong id=\"repTimestamp\"><\/strong><\/span>                                                                                                                    Download Official PDF Report (A4)                                                                            Transmit to Research Desk                                                                            <!-- Dispatch Status Banner (No Email Address Displayed Here) -->                                    Assessment generated. Ready for official A4 PDF export or voluntary research contribution.                                <!-- Sample Profile Report Alert Banner -->                                                            Notice: Demonstration \/ Sample Profile Data Active                                        <\/p>\n<p>                        This dossier was generated using sample demonstration data (<strong>Dr. Lukas Lindqvist<\/strong>) for local preview and PDF layout verification. Because this is sample data, research transmission to the editorial desk is automatically blocked. To generate your own personal assessment, click <strong>&#8220;Clear \/ Reset Form&#8221;<\/strong> at the top of the page and enter your own measurements.                    <\/p>\n<p>                                <!-- Omitted \/ Blank Fields Notification Banner -->                                                            <span>                            Incomplete Input Notice \u00b7 Zero-Defaulting Protocol Active                        <\/span>                        <span id=\"omittedFieldsCountBadge\"><\/span>                                        <\/p>\n<p id=\"omittedFieldsSummaryText\">\n<p>                                                    <!-- SECTION I: Subject Baseline Summary Strip -->                                    <\/p>\n<h3>                        I. Recorded Baseline Inputs (Strict Zero-Defaulting \u2014 Unanswered Fields Remain Blank)                    <\/h3>\n<p>                                                    <!-- SECTION II: Core Anthropometric, Autonomic & Longevity Summary Cards + Reference Table -->                                    <\/p>\n<h3>                        II. Body Composition, Cardiovascular Autonomic Status &amp; Normative Reference Limits                    <\/h3>\n<table>\n<thead>\n<tr>\n<th>Biometric \/ Physiological Parameter<\/th>\n<th>Subject Result<\/th>\n<th>Subject Evaluation \/ Omission Attribution<\/th>\n<th>Standard Normative Reference Limits<\/th>\n<\/tr>\n<\/thead>\n<tbody id=\"normativeReferenceTableBody\"><\/tbody>\n<\/table>\n<p>                                                    <!-- SECTION III: Exercise Bioenergetics & Postprandial Kinetics -->                                    <\/p>\n<h3>                        III. Exercise Bioenergetics, Post-Intake Substrate Kinetics &amp; Postprandial Walking Assessment                    <\/h3>\n<table>\n<thead>\n<tr>\n<th>Selected Exercise Modality (~METs)<\/th>\n<th>Sessions \/ Freq<\/th>\n<th>Duration &amp; Window<\/th>\n<th>Hrs Post &gt;0 kcal<\/th>\n<th>Weekly MET-Mins<\/th>\n<th>Weekly Kcal &amp; Substrate State<\/th>\n<\/tr>\n<\/thead>\n<tbody id=\"activeExerciseTableBody\"><\/tbody>\n<\/table>\n<p>                                                    <!-- SECTION IV: Personalized Active Modality Deep-Dive & 13-Modality Comparative Matrix -->                                    <\/p>\n<h3>                        IV. Modality-Specific Physiological, Cellular &amp; Organ-System Health Impacts (Including Squats &amp; WTR Synergy)                    <\/h3>\n<table>\n<thead>\n<tr>\n<th>Exercise Modality<\/th>\n<th>Status<\/th>\n<th>Cardiovascular &amp; Hemodynamic Impact<\/th>\n<th>Metabolic, Myokine &amp; GLUT4 Impact<\/th>\n<th>Musculoskeletal, WTR &amp; Longevity Synergy<\/th>\n<\/tr>\n<\/thead>\n<tbody id=\"exerciseHealthImpactsMatrixBody\"><\/tbody>\n<\/table>\n<p>                                                    <!-- SECTION V: Thigh Circumference, WTR & Peripheral GLUT4 Narrative -->                                    <\/p>\n<h3>                        V. The Role of Thigh Circumference, Waist-to-Thigh Ratio (WTR) &amp; Lower-Extremity GLUT4 Sinks                    <\/h3>\n<p>                                                    <!-- SECTION VI: 2024 UK Prolonged Fasting Proteomics & Dry Fasting Dose-Response Narrative -->                                    <\/p>\n<h3>                        VI. Cellular &amp; Proteomic Fasting Narrative (2024 UK Research \u2014 Pietzke et al.) &amp; Dry Fasting Dose-Response Thresholds                    <\/h3>\n<p>                                                    <!-- SECTION VII: Bidirectional Pathological & Metabolic History Interactions -->                                    <\/p>\n<h3>                        VII. Bidirectional Pathological &amp; Metabolic History Interaction Matrix (Impacts On &amp; By All Inputs)                    <\/h3>\n<table>\n<thead>\n<tr>\n<th>Pathological \/ Metabolic Condition<\/th>\n<th>Subject Status<\/th>\n<th>Impact OF Subject Inputs ON Condition<\/th>\n<th>Impact OF Condition ON Biomarkers &amp; Fasting Safety<\/th>\n<\/tr>\n<\/thead>\n<tbody id=\"pathologyInteractionMatrixBody\"><\/tbody>\n<\/table>\n<p>                                                    <!-- Personalized Risk Warnings -->                                    <\/p>\n<h3>                        Personalized Contraindications &amp; Physiological Safety Alerts                    <\/h3>\n<p>                                                    <!-- SECTION VIII: Calculation Dependency & Unanswered Parameter Audit Log -->                                    <\/p>\n<h3>                        VIII. Calculation Dependency &amp; Unanswered Parameter Audit Protocol (How Blank Fields Are Handled)                    <\/h3>\n<p>                        Whenever an optional input field related to a mathematical formula is left blank, its quantitative result cell is kept strictly empty (never defaulted to 0 or N\/A), and the exact missing prerequisite variable is documented below:                    <\/p>\n<table>\n<thead>\n<tr>\n<th>Mathematical Equation \/ Derived Index<\/th>\n<th>Required Prerequisite Inputs<\/th>\n<th>Calculation Status<\/th>\n<th>Handling &amp; Missing Variable Attribution<\/th>\n<\/tr>\n<\/thead>\n<tbody id=\"dependencyAuditTableBody\"><\/tbody>\n<\/table>\n<p>                                                    <!-- SECTION IX: Unified International Research Contribution, Official PDF Export & Editorial Submission Hub -->                                                                                        <span>                                IX. Section 06 International Longevity &amp; Fasting Research Contribution Hub                            <\/span>                            <\/p>\n<h3>                                Advance Global Physiological Science \u2014 Share Your Report &amp; Download Official A4 PDF                            <\/h3>\n<p>                                                <span>                            executive.editor@groundreportmedia.com                        <\/span>                                        <\/p>\n<p>                        <strong>Why Your Report Matters to International Research:<\/strong> Contemporary longevity science increasingly relies on real-world, multi-parametric human datasets linking <strong>somatic circumferences (Waist-to-Thigh &amp; Waist-to-Height Ratios)<\/strong>, <strong>autonomic nocturnal heart rate dipping (RHR vs. SHR)<\/strong>, <strong>lower-extremity &amp; aerobic exercise bioenergetics (Squats, Zone 2 Cycling, Postprandial Walking)<\/strong>, and <strong>fasting durations<\/strong>. By transmitting your structured assessment or emailing your downloaded A4 PDF dossier to executive.editor@groundreportmedia.com, you directly support international observational research published through <strong>Ground Report India International Journal Australia<\/strong>.                    <\/p>\n<p>                                                                                                        Participant Email Address <span>*<\/span>                                                                                                                                                                    Participant WhatsApp Number <span>*<\/span>                                                                                                                                                                            <span>1. Download Official A4 PDF Report<\/span>                                                                            <span>2. Transmit Research Payload Now<\/span>                                                <a id=\"btnHubMailtoLink\" href=\"mailto:executive.editor@groundreportmedia.com\">                            <span>3. Open Email Client to Attach PDF<\/span>                        <\/a>                                                                Ready for international research contribution. Your protocol ID and structured summary are formatted for executive.editor@groundreportmedia.com.                                                    <!-- Mandatory Legal & Regulatory Notice -->                                    Educational, Wellness &amp; Physiological Assessment Notice                    <\/p>\n<p>                        &#8220;This assessment, its algorithms, and the resulting scores are formulated solely for educational, informational, and personal wellness evaluation. This tool does not constitute medical advice, diagnosis, prognosis, or treatment plans. Fasting protocols\u2014specifically prolonged water or dry fasting\u2014carry physiological risks and should never be initiated without direct consultation and supervision by a qualified medical practitioner, particularly for individuals with metabolic, renal, or cardiovascular conditions.&#8221;                    <\/p>\n<p>                                            <!-- Standalone Regulatory Footer (No Email Address Displayed Here) -->                                    <span>Educational, Wellness &amp; Physiological Assessment Notice<\/span>                <span>Ground Report India International Journal Australia \u00b7 Bio-Informatics &amp; Longevity Division<\/span>                        <\/p>\n<p>                This assessment, its algorithms, and the resulting scores are formulated solely for educational, informational, and personal wellness evaluation. This tool does not constitute medical advice, diagnosis, prognosis, or treatment plans. Fasting protocols\u2014specifically prolonged water or dry fasting\u2014carry physiological risks and should never be initiated without direct consultation and supervision by a qualified medical practitioner, particularly for individuals with metabolic, renal, or cardiovascular conditions.            <\/p>\n<p>                [tcb-script]        const APP_STATE = {            mountTimestamp: Date.now(),            editorialRecipient: &#8216;executive.editor@groundreportmedia.com&#8217;,            formEndpoint: &#8216;https:\/\/formsubmit.co\/ajax\/executive.editor@groundreportmedia.com&#8217;,            sampleProfileName: &#8216;Dr. Lukas Lindqvist&#8217;,            blockedSampleNames: [&#8216;dr. lukas lindqvist&#8217;, &#8216;lukas lindqvist&#8217;, &#8216;dr. vikramaditya sharma&#8217;, &#8216;vikramaditya sharma&#8217;],            isSampleProfileActive: false,            lastAssessment: null        };        const EXERCISE_MODALITIES_CONFIG = [            {                id: &#8216;squats&#8217;,                name: &#8216;Squats (Bodyweight \/ Goblet \/ Barbell \/ Glycemic Snacks)&#8217;,                subtitle: &#8216;Quadriceps, gluteus maximus &amp; adductor recruitment; direct WTR &amp; GLUT4 sink remodeling&#8217;,                highlight: true,                intensities: [                    { val: &#8216;Bodyweight \/ Air Squats (~5.0 METs)&#8217;, label: &#8216;Bodyweight \/ Air Squats (~5.0 METs)&#8217;, met: 5.0, default: false },                    { val: &#8216;Goblet \/ Moderate Load (~6.5 METs)&#8217;, label: &#8216;Goblet \/ Moderate Load (~6.5 METs)&#8217;, met: 6.5, default: true },                    { val: &#8216;Heavy Barbell \/ Plyometric (~8.5 METs)&#8217;, label: &#8216;Heavy Barbell \/ Plyometric (~8.5 METs)&#8217;, met: 8.5, default: false }                ],                cardioImpact: &#8216;Elevates intramuscular mechanical pump pressure followed by rapid post-contraction hyperemia, endothelial nitric oxide (eNOS) release, and enhanced lower-extremity venous return.&#8217;,                metabolicImpact: &#8216;Recruits the body\u2019s largest skeletal muscle beds (quadriceps and gluteus maximus), driving insulin-independent AMPK\/AS160 GLUT4 translocation and myokine (irisin, IL-6, decorin) release.&#8217;,                musculoskeletalImpact: &#8216;Directly increases mid-thigh lean girth, lowers Waist-to-Thigh Ratio (WTR &lt; 1.50), and applies axial Wolff\u2019s Law osteogenic loading across the femoral neck and lumbar spine.&#8217;,                synergyWithFasting: &#8216;Preserves type II myofibrillar protein via mechanical mTORC1 signaling and rapidly clears post-meal glycemic excursions when performed as brief neuromuscular bouts.&#8217;            },            {                id: &#8216;outcycling&#8217;,                name: &#8216;Outdoor Cycling (Road \/ Gravel \/ Commute)&#8217;,                subtitle: &#8216;Concentric lower-body aerobic endurance, terrain-variable torque &amp; vascular compliance&#8217;,                highlight: false,                intensities: [                    { val: &#8216;Leisure \/ Commute (~5.5 METs)&#8217;, label: &#8216;Leisure \/ Commute (~5.5 METs)&#8217;, met: 5.5, default: false },                    { val: &#8216;Moderate Zone 2 (~7.5 METs)&#8217;, label: &#8216;Moderate Zone 2 (~7.5 METs)&#8217;, met: 7.5, default: true },                    { val: &#8216;Vigorous \/ Hills (~10.0 METs)&#8217;, label: &#8216;Vigorous \/ Hills (~10.0 METs)&#8217;, met: 10.0, default: false }                ],                cardioImpact: &#8216;Promotes eccentric left ventricular stroke volume, expands plasma volume, elevates parasympathetic vagal tone (lowering RHR &amp; SHR), and reduces aortic pulse wave velocity.&#8217;,                metabolicImpact: &#8216;Upregulates vastus lateralis mitochondrial density (PGC-1alpha), fatty acid translocase (CD36), and carnitine palmitoyltransferase-1 (CPT-1) lipid oxidation.&#8217;,                musculoskeletalImpact: &#8216;Builds concentric quadriceps endurance and mid-thigh lean circumference with minimal tibiofemoral impact forces.&#8217;,                synergyWithFasting: &#8216;Accelerates post-absorptive lipid beta-oxidation and expands femoral capillary density.&#8217;            },            {                id: &#8216;statcycling&#8217;,                name: &#8216;Stationary Cycling (Ergometer \/ Zone 2 \/ Spin)&#8217;,                subtitle: &#8216;Precision-controlled Zone 2 mitochondrial oxidation &amp; low-impact cardiorespiratory load&#8217;,                highlight: false,                intensities: [                    { val: &#8216;Light Recovery (~4.5 METs)&#8217;, label: &#8216;Light Recovery (~4.5 METs)&#8217;, met: 4.5, default: false },                    { val: &#8216;Steady Zone 2 (~6.8 METs)&#8217;, label: &#8216;Steady Zone 2 (~6.8 METs)&#8217;, met: 6.8, default: true },                    { val: &#8216;High-Output \/ Spin (~9.0 METs)&#8217;, label: &#8216;High-Output \/ Spin (~9.0 METs)&#8217;, met: 9.0, default: false }                ],                cardioImpact: &#8216;Provides steady laminar vascular shear stress, lowering peripheral vascular resistance and improving baroreceptor sensitivity.&#8217;,                metabolicImpact: &#8216;Maximizes FatMax mitochondrial oxidation rates and MCT1-mediated lactate clearance while expanding lower-body glycogen storage capacity.&#8217;,                musculoskeletalImpact: &#8216;Preserves knee articular cartilage while maintaining quadriceps cross-sectional area.&#8217;,                synergyWithFasting: &#8216;Provides controlled, joint-sparing aerobic turnover across both fed and post-absorptive training windows.&#8217;            },            {                id: &#8216;stairs&#8217;,                name: &#8216;Stairs Climbing (Vertical Ascent \/ StepMill)&#8217;,                subtitle: &#8216;High-gravity concentric gluteofemoral work &amp; rapid VO2max \/ glycemic demand&#8217;,                highlight: false,                intensities: [                    { val: &#8216;Moderate Pace (~6.0 METs)&#8217;, label: &#8216;Moderate Pace (~6.0 METs)&#8217;, met: 6.0, default: false },                    { val: &#8216;Steady Continuous (~8.0 METs)&#8217;, label: &#8216;Steady Continuous (~8.0 METs)&#8217;, met: 8.0, default: true },                    { val: &#8216;Vigorous \/ Weighted (~9.5 METs)&#8217;, label: &#8216;Vigorous \/ Weighted (~9.5 METs)&#8217;, met: 9.5, default: false }                ],                cardioImpact: &#8216;Rapidly elevates stroke volume and myocardial oxygen extraction efficiency.&#8217;,                metabolicImpact: &#8216;High ATP turnover activates AMPK within minutes, blunting post-meal glucose excursions when performed as 3\u201310 minute bouts.&#8217;,                musculoskeletalImpact: &#8216;Strengthens gluteus medius\/maximus, quadriceps, and soleus while osteogenically loading the proximal femur.&#8217;,                synergyWithFasting: &#8216;High mechanical efficiency for rapid glycemic disposal and lower-extremity power maintenance.&#8217;            },            {                id: &#8216;running&#8217;,                name: &#8216;Running (Road \/ Trail \/ Treadmill)&#8217;,                subtitle: &#8216;Elastic stretch-shortening cycle, osteogenic axial impact &amp; maximal aerobic capacity&#8217;,                highlight: false,                intensities: [                    { val: &#8216;Jogging (~7.0 METs)&#8217;, label: &#8216;Jogging (~7.0 METs)&#8217;, met: 7.0, default: false },                    { val: &#8216;Moderate Run (~9.5 METs)&#8217;, label: &#8216;Moderate Run (~9.5 METs)&#8217;, met: 9.5, default: true },                    { val: &#8216;Fast \/ Tempo (~11.5 METs)&#8217;, label: &#8216;Fast \/ Tempo (~11.5 METs)&#8217;, met: 11.5, default: false }                ],                cardioImpact: &#8216;Strongest stimulus for maximal cardiac output, capillary angiogenesis, and nocturnal vagal bradycardia.&#8217;,                metabolicImpact: &#8216;Triggers hepatic FGF21 release, visceral adipose lipolysis, and systemic insulin sensitization.&#8217;,                musculoskeletalImpact: &#8216;Ground reaction forces (2.5\u20133x bodyweight) stimulate osteoblastic bone mineral accretion in the tibia, femur, and spine.&#8217;,                synergyWithFasting: &#8216;Potent driver of cardiorespiratory VO2max reserve and lower-limb tendon elastic recoil.&#8217;            },            {                id: &#8216;walking&#8217;,                name: &#8216;Walking (Dedicated Brisk \/ Postprandial \/ Incline)&#8217;,                subtitle: &#8216;Soleus oxidative pump, non-insulin GLUT4 glucose clearance &amp; low-cortisol lipolysis&#8217;,                highlight: true,                intensities: [                    { val: &#8216;Gentle Stroll (~2.8 METs)&#8217;, label: &#8216;Gentle Stroll (~2.8 METs)&#8217;, met: 2.8, default: false },                    { val: &#8216;Brisk Walk (~3.8 METs)&#8217;, label: &#8216;Brisk Walk (~3.8 METs)&#8217;, met: 3.8, default: true },                    { val: &#8216;Incline \/ Nordic (~5.3 METs)&#8217;, label: &#8216;Incline \/ Nordic (~5.3 METs)&#8217;, met: 5.3, default: false }                ],                cardioImpact: &#8216;Reduces sympathetic tone, lowers systolic\/diastolic blood pressure by 4\u20138 mmHg, and supports peripheral lymphatic drainage.&#8217;,                metabolicImpact: &#8216;Sustains slow-twitch oxidative soleus and gastrocnemius contraction, clearing postprandial blood glucose and VLDL triglycerides without raising cortisol.&#8217;,                musculoskeletalImpact: &#8216;Maintains hip\/ankle synovial joint lubrication and axial posture.&#8217;,                synergyWithFasting: &#8216;Low-fatigue, low-cortisol oxidative movement suitable across all post-meal and post-absorptive windows.&#8217;            },            {                id: &#8216;stretching&#8217;,                name: &#8216;Stretching &amp; Articular Mobility&#8217;,                subtitle: &#8216;Fascial hydration, musculotendinous compliance &amp; arterial stiffness attenuation&#8217;,                highlight: false,                intensities: [                    { val: &#8216;Gentle Static (~2.3 METs)&#8217;, label: &#8216;Gentle Static (~2.3 METs)&#8217;, met: 2.3, default: true },                    { val: &#8216;Dynamic CARs \/ PNF (~3.0 METs)&#8217;, label: &#8216;Dynamic CARs \/ PNF (~3.0 METs)&#8217;, met: 3.0, default: false }                ],                cardioImpact: &#8216;Passive mechanical elongation of peripheral arteries stimulates endothelial nitric oxide and reduces peripheral arterial stiffness.&#8217;,                metabolicImpact: &#8216;Lowers HPA-axis cortisol, indirectly attenuating glucocorticoid-driven hepatic gluconeogenesis.&#8217;,                musculoskeletalImpact: &#8216;Stimulates fibroblast collagen alignment and extracellular matrix (ECM) fascial sliding.&#8217;,                synergyWithFasting: &#8216;Restores joint range of motion and parasympathetic recovery between high-load training days.&#8217;            },            {                id: &#8216;yoga&#8217;,                name: &#8216;Yoga &amp; Breathwork (Asana \/ Pranayama)&#8217;,                subtitle: &#8216;Vagal baroreflex sensitization, HRV elevation &amp; isometric postural endurance&#8217;,                highlight: false,                intensities: [                    { val: &#8216;Restorative \/ Pranayama (~2.5 METs)&#8217;, label: &#8216;Restorative \/ Pranayama (~2.5 METs)&#8217;, met: 2.5, default: false },                    { val: &#8216;Hatha \/ Flow (~3.3 METs)&#8217;, label: &#8216;Hatha \/ Flow (~3.3 METs)&#8217;, met: 3.3, default: true },                    { val: &#8216;Power \/ Ashtanga (~4.5 METs)&#8217;, label: &#8216;Power \/ Ashtanga (~4.5 METs)&#8217;, met: 4.5, default: false }                ],                cardioImpact: &#8216;Slow pranayama breathing (5.5\u20136 breaths\/min) maximizes respiratory sinus arrhythmia and widens the RHR-to-SHR nocturnal dip.&#8217;,                metabolicImpact: &#8216;Attenuates inflammatory cytokines (TNF-alpha, IL-6) and improves hepatic insulin sensitivity.&#8217;,                musculoskeletalImpact: &#8216;Isometric postural holds preserve core and paraspinal muscular endurance.&#8217;,                synergyWithFasting: &#8216;Enhances vagal heart rate variability (HRV) and downregulates sympathetic stress reactivity.&#8217;            },            {                id: &#8216;resistance&#8217;,                name: &#8216;Heavy Resistance \/ Strength Training&#8217;,                subtitle: &#8216;Mechanical tension mTORC1 signaling, lean mass preservation &amp; osteogenic loading&#8217;,                highlight: true,                intensities: [                    { val: &#8216;Moderate Hypertrophy (~5.0 METs)&#8217;, label: &#8216;Moderate Hypertrophy (~5.0 METs)&#8217;, met: 5.0, default: true },                    { val: &#8216;Heavy Compound Strength (~6.5 METs)&#8217;, label: &#8216;Heavy Compound Strength (~6.5 METs)&#8217;, met: 6.5, default: false }                ],                cardioImpact: &#8216;Improves microvascular capillary-to-fiber ratio and long-term resting blood pressure.&#8217;,                metabolicImpact: &#8216;Expands total skeletal muscle glycogen sink capacity and upregulates basal metabolic rate.&#8217;,                musculoskeletalImpact: &#8216;Primary driver of Lean Body Mass (LBM) and Drinkwater\/von D\u00f6beln bone mineral density.&#8217;,                synergyWithFasting: &#8216;Provides the mechanical tension signal required to prevent age-related and caloric-deficit sarcopenia.&#8217;            },            {                id: &#8216;hiit&#8217;,                name: &#8216;High-Intensity Interval Training (HIIT \/ Sprints)&#8217;,                subtitle: &#8216;Glycolytic\/aerobic peak power, EPOC &amp; rapid mitochondrial biogenesis&#8217;,                highlight: false,                intensities: [                    { val: &#8216;Submaximal Intervals (~8.0 METs)&#8217;, label: &#8216;Submaximal Intervals (~8.0 METs)&#8217;, met: 8.0, default: true },                    { val: &#8216;All-Out Sprint \/ Tabata (~11.0 METs)&#8217;, label: &#8216;All-Out Sprint \/ Tabata (~11.0 METs)&#8217;, met: 11.0, default: false }                ],                cardioImpact: &#8216;Rapidly expands VO2peak and stroke volume via high endothelial shear stress.&#8217;,                metabolicImpact: &#8216;Potent AMPK\/PGC-1alpha phosphorylation and post-exercise oxygen consumption (EPOC).&#8217;,                musculoskeletalImpact: &#8216;Recruits fast-twitch Type IIx fibers and stimulates pulsatile growth hormone secretion.&#8217;,                synergyWithFasting: &#8216;Best scheduled in well-hydrated windows with adequate recovery intervals to clear lactate and purine metabolites.&#8217;            },            {                id: &#8216;calisthenics&#8217;,                name: &#8216;Calisthenics &amp; Bodyweight Compound (Push-ups, Pull-ups, Lunges)&#8217;,                subtitle: &#8216;Relative strength-to-weight ratio, closed-chain neuromuscular coordination&#8217;,                highlight: false,                intensities: [                    { val: &#8216;Moderate Circuit (~4.5 METs)&#8217;, label: &#8216;Moderate Circuit (~4.5 METs)&#8217;, met: 4.5, default: true },                    { val: &#8216;Advanced \/ Weighted (~7.0 METs)&#8217;, label: &#8216;Advanced \/ Weighted (~7.0 METs)&#8217;, met: 7.0, default: false }                ],                cardioImpact: &#8216;Enhances upper- and lower-body vascular conductance and venous return.&#8217;,                metabolicImpact: &#8216;Multi-joint recruitment clears circulating glucose across upper and lower extremity muscle beds.&#8217;,                musculoskeletalImpact: &#8216;Strengthens scapular stabilizers, wrist\/forearm cortical bone, and unilateral leg stability.&#8217;,                synergyWithFasting: &#8216;High neuromuscular efficiency for preserving upper- and lower-body relative strength.&#8217;            },            {                id: &#8216;swimming&#8217;,                name: &#8216;Swimming &amp; Aquatic Endurance&#8217;,                subtitle: &#8216;Supine hydrostatic venous return, zero-impact full-body aerobic conditioning&#8217;,                highlight: false,                intensities: [                    { val: &#8216;Moderate Laps (~6.0 METs)&#8217;, label: &#8216;Moderate Laps (~6.0 METs)&#8217;, met: 6.0, default: true },                    { val: &#8216;Vigorous Freestyle (~9.0 METs)&#8217;, label: &#8216;Vigorous Freestyle (~9.0 METs)&#8217;, met: 9.0, default: false }                ],                cardioImpact: &#8216;Hydrostatic pressure augments central venous return, atrial natriuretic peptide release, and baroreflex sensitivity.&#8217;,                metabolicImpact: &#8216;Simultaneous upper- and lower-body muscle activation plus thermal dissipation elevates caloric expenditure.&#8217;,                musculoskeletalImpact: &#8216;Unloads spinal and knee joints while providing multi-planar fluid resistance.&#8217;,                synergyWithFasting: &#8216;Delivers zero-impact cardiorespiratory conditioning and mild hydrostatic natriuresis.&#8217;            },            {                id: &#8216;coreisometrics&#8217;,                name: &#8216;Core, Pilates, Planks &amp; Isometric Wall-Sits&#8217;,                subtitle: &#8216;Isometric baroreflex blood pressure reduction &amp; trunk\/gluteofemoral stabilization&#8217;,                highlight: false,                intensities: [                    { val: &#8216;Mat Pilates \/ Planks (~3.5 METs)&#8217;, label: &#8216;Mat Pilates \/ Planks (~3.5 METs)&#8217;, met: 3.5, default: true },                    { val: &#8216;Intense Wall-Sits \/ Holds (~4.8 METs)&#8217;, label: &#8216;Intense Wall-Sits \/ Holds (~4.8 METs)&#8217;, met: 4.8, default: false }                ],                cardioImpact: &#8216;Isometric wall-sits and planks elicit a potent post-contraction rebound vasodilation shown in meta-analyses to reduce resting blood pressure by 6\u20138 mmHg.&#8217;,                metabolicImpact: &#8216;Sustained quadriceps and transverse abdominis tension stimulates local insulin-independent glucose uptake.&#8217;,                musculoskeletalImpact: &#8216;Reinforces lumbopelvic stability and patellar tendon stiffness.&#8217;,                synergyWithFasting: &#8216;Low-energy-cost neuromuscular and antihypertensive stimulus suitable for daily practice.&#8217;            }        ];        function escapeHtml(str) {            if (str === null || str === undefined) return &#8221;;            return String(str)                .replace(\/&amp;\/g, &#8216;&amp;amp;&#8217;)                .replace(\/&lt;\/g, &#8216;&amp;lt;&#8217;)                .replace(\/&gt;\/g, &#8216;&amp;gt;&#8217;)                .replace(\/&#8221;\/g, &#8216;&amp;quot;&#8217;)                .replace(\/&#8217;\/g, &#8216;&amp;#39;&#8217;);        }        function parseOptionalNum(id, minAllowed = 0.0001, maxAllowed = Infinity) {            const el = document.getElementById(id);            if (!el) return null;            const raw = el.value.trim();            if (raw === &#8221;) return null;            const n = Number(raw);            if (!Number.isFinite(n) || n &lt; minAllowed || n &gt; maxAllowed) return null;            return n;        }        function fmt(val, decimals = 1, suffix = &#8221;) {            if (val === null || val === undefined || !Number.isFinite(val)) return &#8221;;            return `${Number(val).toFixed(decimals)}${suffix}`;        }        function formatNocturnalDip(delta, dipPct) {            if (delta === null || dipPct === null || !Number.isFinite(delta) || !Number.isFinite(dipPct)) return &#8221;;            if (delta &gt;= 0) {                return `-${Math.abs(delta).toFixed(0)} bpm (${dipPct.toFixed(1)}% dip)`;            }            return `+${Math.abs(delta).toFixed(0)} bpm (${dipPct.toFixed(1)}% inverse rise)`;        }        function evaluateWaterFastKineticTier(waterFast) {            if (!waterFast || !waterFast.enabled) {                return {                    practiced: false,                    hours: null,                    phaseCode: &#8216;NONE&#8217;,                    phaseLabel: &#8221;,                    evaluationNote: &#8216;Blank: Water-only fasting not practiced&#8217;,                    longevityDelta: 0                };            }            const hrs = waterFast.durationHours;            if (hrs === null) {                return {                    practiced: true,                    hours: null,                    phaseCode: &#8216;UNSPECIFIED&#8217;,                    phaseLabel: &#8216;Water Fast Enabled (Duration Blank)&#8217;,                    evaluationNote: `Frequency: ${waterFast.frequency || &#8216;Unspecified&#8217;} \u00b7 Duration left blank (Phase III proteomic threshold: \u226572h)`,                    longevityDelta: 3                };            }            if (hrs &lt;= 24) {                return {                    practiced: true,                    hours: hrs,                    phaseCode: &#8216;PHASE_I_GLYCOGENOLYTIC&#8217;,                    phaseLabel: `Phase I \u00b7 Glycogenolytic &amp; Insulin-Sensitizing Window (${hrs}h \/ \u226424h)`,                    evaluationNote: `Phase I (${hrs}h): Hepatic glycogen depletion, declining insulin\/leptin, initial adipose lipolysis; precedes the \u226572h systemic proteome shift (Pietzke et al., 2024)`,                    longevityDelta: 4                };            }            if (hrs &lt; 72) {                return {                    practiced: true,                    hours: hrs,                    phaseCode: &#8216;PHASE_II_KETOGENIC&#8217;,                    phaseLabel: `Phase II \u00b7 De Novo Ketogenic &amp; ULK1 Autophagy Window (${hrs}h \/ 24\u201372h)`,                    evaluationNote: `Phase II (${hrs}h \/ ${(hrs \/ 24).toFixed(1)}d): Surging beta-hydroxybutyrate (BHB), hepatic FGF21 release &amp; ULK1 macroautophagy; approaches the 72h systemic proteomic threshold`,                    longevityDelta: 6                };            }            if (hrs &lt;= 168) {                return {                    practiced: true,                    hours: hrs,                    phaseCode: &#8216;PHASE_III_PROTEOMIC&#8217;,                    phaseLabel: `Phase III \u00b7 Deep Systemic 1,044-Protein Remodeling Window (${hrs}h \/ ${(hrs \/ 24).toFixed(1)} Days)`,                    evaluationNote: `Phase III (${hrs}h \/ ${(hrs \/ 24).toFixed(1)}d \u2014 Pietzke et al., Nature Metabolism 2024): Crosses the \u226572h threshold; remodels 1,044 plasma proteins, downregulates SWAP70, reorganizes ECM &amp; brain HYOU1\/TNR while sparing myofibrillar protein`,                    longevityDelta: 8                };            }            return {                practiced: true,                hours: hrs,                phaseCode: &#8216;PHASE_IV_EXTENDED&#8217;,                phaseLabel: `Phase IV \u00b7 Extended Multi-Day Water Fast (${hrs}h \/ ${(hrs \/ 24).toFixed(1)} Days \u2014 Medical Supervision Required)`,                evaluationNote: `Extended Phase III+ (${hrs}h \/ ${(hrs \/ 24).toFixed(1)}d): Deep proteomic remodeling achieved, but &gt;7-day duration escalates electrolyte depletion (Na+\/K+\/Mg2+\/PO4) and refeeding syndrome risk`,                longevityDelta: 4            };        }        function evaluateDryFastSafetyTier(dryFast) {            if (!dryFast || !dryFast.enabled) {                return {                    practiced: false,                    hours: null,                    tierCode: &#8216;NONE&#8217;,                    tierLabel: &#8221;,                    evaluationNote: &#8216;Blank: Dry fasting not practiced&#8217;,                    longevityDelta: 0                };            }            const hrs = dryFast.durationHours;            if (hrs === null) {                return {                    practiced: true,                    hours: null,                    tierCode: &#8216;UNSPECIFIED&#8217;,                    tierLabel: &#8216;Dry Fast Enabled (Duration Blank)&#8217;,                    evaluationNote: `Frequency: ${dryFast.frequency || &#8216;Unspecified&#8217;} \u00b7 Duration left blank (Safe limit: \u226416h diurnal)`,                    longevityDelta: 0                };            }            if (hrs &lt;= 16) {                return {                    practiced: true,                    hours: hrs,                    tierCode: &#8216;SAFE_DIURNAL&#8217;,                    tierLabel: `Tier I \u00b7 Adaptive Diurnal Window (${hrs}h \u2264 16h Safe Limit)`,                    evaluationNote: `Adaptive diurnal window (${hrs}h): Upregulates Nrf2 antioxidant &amp; NFAT5 osmoprotective pathways; overnight rehydration prevents renal hypertonicity`,                    longevityDelta: 2                };            }            if (hrs &lt;= 24) {                return {                    practiced: true,                    hours: hrs,                    tierCode: &#8216;PRECAUTIONARY_24H&#8217;,                    tierLabel: `Tier II \u00b7 Precautionary Osmotic Threshold (${hrs}h \/ 16\u201324h Boundary)`,                    evaluationNote: `Upper physiological limit (${hrs}h): Rising serum osmolality (&gt;295 mOsm\/kg), AVP\/ADH surge &amp; URAT1 uric acid retention; strict post-fast rehydration required`,                    longevityDelta: -2                };            }            if (hrs &lt;= 48) {                return {                    practiced: true,                    hours: hrs,                    tierCode: &#8216;HAZARDOUS_48H&#8217;,                    tierLabel: `Tier III \u00b7 Exceeds Safe Physiological Limit (${hrs}h \/ &gt;24\u201348h Hazard Zone)`,                    evaluationNote: `High Osmotic &amp; Renal Strain (${hrs}h): Obligatory water losses (~1.2\u20131.5 L\/day) exceed metabolic water (~0.3\u20130.4 L\/day); hypernatremia, reduced GFR &amp; urate crystallization risk`,                    longevityDelta: -8                };            }            return {                practiced: true,                hours: hrs,                tierCode: &#8216;CRITICAL_PROLONGED&#8217;,                tierLabel: `Tier IV \u00b7 Critical Hypertonic Dehydration Hazard (${hrs}h \/ ${(hrs \/ 24).toFixed(1)} Days)`,                evaluationNote: `Severe Physiological Hazard (${hrs}h \/ ${(hrs \/ 24).toFixed(1)}d): High risk of pre-renal acute kidney injury (AKI), polyol-pathway tubular injury, hemoconcentration thrombosis &amp; arrhythmia`,                longevityDelta: -15            };        }        function renderExerciseModalityCards() {            const container = document.getElementById(&#8216;exerciseModalitiesGrid&#8217;);            if (!container) return;            container.innerHTML = EXERCISE_MODALITIES_CONFIG.map((mod, idx) =&gt; {                const borderCls = mod.highlight                    ? &#8216;border-teal-300 bg-teal-50\/30 hover:bg-teal-50\/50&#8217;                    : &#8216;border-slate-200 bg-slate-50\/50 hover:bg-slate-50&#8217;;                const intOptions = mod.intensities.map(i =&gt;                    `&lt;option value=&#8221;${escapeHtml(i.val)}&#8221; ${i.default ? &#8216;selected&#8217; : &#8221;}&gt;${escapeHtml(i.label)}&lt;\/option&gt;`                ).join(&#8221;);                return `                    &lt;div id=&#8221;ex_card_${escapeHtml(mod.id)}&#8221;&gt;                        &lt;label&gt;                            &lt;div&gt;                                &lt;input type=&#8221;checkbox&#8221; value=&#8221;${escapeHtml(mod.name)}&#8221; data-ex-id=&#8221;${escapeHtml(mod.id)}&#8221;&gt;                                &lt;div&gt;                                    &lt;span&gt;${idx + 1}. ${escapeHtml(mod.name)}&lt;\/span&gt;                                    &lt;span&gt;${escapeHtml(mod.subtitle)}&lt;\/span&gt;                                &lt;\/div&gt;                            &lt;\/div&gt;                        &lt;\/label&gt;                        &lt;div id=&#8221;ex_details_${escapeHtml(mod.id)}&#8221;&gt;                            &lt;div&gt;                                &lt;div&gt;                                    &lt;label&gt;Sessions\/Wk&lt;\/label&gt;                                    &lt;input type=&#8221;number&#8221; id=&#8221;ex_sess_${escapeHtml(mod.id)}&#8221; min=&#8221;1&#8243; max=&#8221;35&#8243; step=&#8221;1&#8243; placeholder=&#8221;e.g., 4&#8243;&gt;                                &lt;\/div&gt;                                &lt;div&gt;                                    &lt;label&gt;Freq Tier&lt;\/label&gt;                                    &lt;select id=&#8221;ex_freq_${escapeHtml(mod.id)}&#8221;&gt;                                        &lt;option value=&#8221;&#8221;&gt;\u2014 Blank \u2014&lt;\/option&gt;                                        &lt;option value=&#8221;1\u20132x \/ week&#8221;&gt;1\u20132x \/ wk&lt;\/option&gt;                                        &lt;option value=&#8221;3\u20134x \/ week&#8221; selected&gt;3\u20134x \/ wk&lt;\/option&gt;                                        &lt;option value=&#8221;Daily (5\u20137x \/ week)&#8221;&gt;5\u20137x \/ wk&lt;\/option&gt;                                    &lt;\/select&gt;                                &lt;\/div&gt;                                &lt;div&gt;                                    &lt;label&gt;Intensity&lt;\/label&gt;                                    &lt;select id=&#8221;ex_int_${escapeHtml(mod.id)}&#8221;&gt;                                        ${intOptions}                                    &lt;\/select&gt;                                &lt;\/div&gt;                                &lt;div&gt;                                    &lt;label&gt;Time Window&lt;\/label&gt;                                    &lt;select id=&#8221;ex_time_${escapeHtml(mod.id)}&#8221;&gt;                                        &lt;option value=&#8221;&#8221;&gt;\u2014 Blank \u2014&lt;\/option&gt;                                        &lt;option value=&#8221;Early Morning (05:00\u201308:00)&#8221;&gt;Early AM&lt;\/option&gt;                                        &lt;option value=&#8221;Late Morning (08:00\u201312:00)&#8221;&gt;Late AM&lt;\/option&gt;                                        &lt;option value=&#8221;Afternoon (12:00\u201317:00)&#8221;&gt;Afternoon&lt;\/option&gt;                                        &lt;option value=&#8221;Evening (17:00\u201321:00)&#8221;&gt;Evening&lt;\/option&gt;                                        &lt;option value=&#8221;Post-Meal Glycemic Snacks&#8221;&gt;Post-Meal&lt;\/option&gt;                                    &lt;\/select&gt;                                &lt;\/div&gt;                                &lt;div&gt;                                    &lt;label&gt;Mins \/ Sess&lt;\/label&gt;                                    &lt;input type=&#8221;number&#8221; id=&#8221;ex_dur_${escapeHtml(mod.id)}&#8221; min=&#8221;1&#8243; max=&#8221;360&#8243; placeholder=&#8221;mins&#8221;&gt;                                &lt;\/div&gt;                                &lt;div&gt;                                    &lt;label&gt;Hrs Post-Kcal&lt;\/label&gt;                                    &lt;input type=&#8221;number&#8221; id=&#8221;ex_fast_${escapeHtml(mod.id)}&#8221; min=&#8221;0&#8243; max=&#8221;168&#8243; step=&#8221;0.5&#8243; placeholder=&#8221;hrs&#8221;&gt;                                &lt;\/div&gt;                            &lt;\/div&gt;                        &lt;\/div&gt;                    &lt;\/div&gt;                `;            }).join(&#8221;);            document.querySelectorAll(&#8216;.ex-checkbox&#8217;).forEach(cb =&gt; {                cb.addEventListener(&#8216;change&#8217;, () =&gt; {                    const id = cb.getAttribute(&#8216;data-ex-id&#8217;);                    const panel = document.getElementById(`ex_details_${id}`);                    const card = document.getElementById(`ex_card_${id}`);                    if (panel) panel.classList.toggle(&#8216;hidden&#8217;, !cb.checked);                    if (card) card.classList.toggle(&#8216;md:col-span-2&#8217;, cb.checked);                });            });        }        function collectFormInputs() {            const fullName = document.getElementById(&#8216;fullName&#8217;).value.trim();            const rawEmail = document.getElementById(&#8216;userEmail&#8217;)?.value.trim() || document.getElementById(&#8216;sec6UserEmail&#8217;)?.value.trim() || document.getElementById(&#8216;hubUserEmail&#8217;)?.value.trim() || &#8221;;            const rawWhatsapp = document.getElementById(&#8216;userWhatsapp&#8217;)?.value.trim() || document.getElementById(&#8216;sec6UserWhatsapp&#8217;)?.value.trim() || document.getElementById(&#8216;hubUserWhatsapp&#8217;)?.value.trim() || &#8221;;            const userEmail = rawEmail || null;            const userMobile = document.getElementById(&#8216;userMobile&#8217;)?.value.trim() || null;            const userWhatsapp = rawWhatsapp || null;            const biologicalSex = document.getElementById(&#8216;biologicalSex&#8217;).value || null;            const ageYears = parseOptionalNum(&#8216;ageYears&#8217;, 10, 125);            \/\/ Weight conversion to kg if provided            const weightRaw = parseOptionalNum(&#8216;weightInput&#8217;, 1, 1100);            const weightUnit = document.getElementById(&#8216;weightUnit&#8217;).value;            const rawWeightKg = weightRaw !== null ? (weightUnit === &#8216;lbs&#8217; ? weightRaw * 0.45359237 : weightRaw) : null;            const weightKg = (rawWeightKg !== null &amp;&amp; rawWeightKg &gt;= 15 &amp;&amp; rawWeightKg &lt;= 500) ? rawWeightKg : null;            \/\/ Height conversion to cm if provided            const heightUnit = document.getElementById(&#8216;heightUnit&#8217;).value;            let heightCm = null;            if (heightUnit === &#8216;cm&#8217;) {                const rawHCm = parseOptionalNum(&#8216;heightCmInput&#8217;, 50, 275);                if (rawHCm !== null) heightCm = rawHCm;            } else {                const ft = parseOptionalNum(&#8216;heightFtInput&#8217;, 0, 9);                const inc = parseOptionalNum(&#8216;heightInInput&#8217;, 0, 12);                if (ft !== null || inc !== null) {                    const totalCm = ((ft || 0) * 12 + (inc || 0)) * 2.54;                    if (totalCm &gt;= 50 &amp;&amp; totalCm &lt;= 275) heightCm = totalCm;                }            }            \/\/ Circumferences conversion to cm if provided            const girthUnit = document.getElementById(&#8216;girthUnit&#8217;).value;            const toCm = (v, minCm, maxCm) =&gt; {                if (v === null) return null;                const cmVal = girthUnit === &#8216;in&#8217; ? v * 2.54 : v;                return (cmVal &gt;= minCm &amp;&amp; cmVal &lt;= maxCm) ? cmVal : null;            };            const wristCm = toCm(parseOptionalNum(&#8216;wristInput&#8217;, 1, 100), 8, 45);            const neckCm = toCm(parseOptionalNum(&#8216;neckInput&#8217;, 1, 150), 15, 85);            const waistCm = toCm(parseOptionalNum(&#8216;waistInput&#8217;, 1, 300), 35, 250);            const hipCm = toCm(parseOptionalNum(&#8216;hipInput&#8217;, 1, 300), 40, 250);            const thighCm = toCm(parseOptionalNum(&#8216;thighInput&#8217;, 1, 200), 20, 140);            const rhr = parseOptionalNum(&#8216;rhrInput&#8217;, 25, 220);            const shr = parseOptionalNum(&#8216;shrInput&#8217;, 20, 200);            const mealsPerDay = parseOptionalNum(&#8216;mealsPerDayInput&#8217;, 0, 24);            const dietaryProfile = document.getElementById(&#8216;dietaryProfile&#8217;).value || null;            const primaryCircadianWindow = document.getElementById(&#8216;primaryCircadianWindow&#8217;).value || null;            const hoursAfterLastIntake = parseOptionalNum(&#8216;hoursAfterLastIntake&#8217;, 0, 240);            const postMealWalkStatus = document.getElementById(&#8216;postMealWalkStatus&#8217;).value || null;            const postMealWalkDurationMins = parseOptionalNum(&#8216;postMealWalkDurationMins&#8217;, 1, 300);            const postMealWalkDelay = document.getElementById(&#8216;postMealWalkDelay&#8217;).value || null;            \/\/ Active Exercise Modalities (Zero-Defaulting: metValue is null unless matched)            const exercises = [];            document.querySelectorAll(&#8216;.ex-checkbox:checked&#8217;).forEach(cb =&gt; {                const id = cb.getAttribute(&#8216;data-ex-id&#8217;);                const modConfig = EXERCISE_MODALITIES_CONFIG.find(m =&gt; m.id === id);                const sessPerWeek = parseOptionalNum(`ex_sess_${id}`, 0.5, 50);                const freqTier = document.getElementById(`ex_freq_${id}`)?.value || null;                const intensityLabel = document.getElementById(`ex_int_${id}`)?.value || null;                const timeWindow = document.getElementById(`ex_time_${id}`)?.value || null;                const durationMins = parseOptionalNum(`ex_dur_${id}`, 1, 600);                const hoursPostIntake = parseOptionalNum(`ex_fast_${id}`, 0, 240);                let metValue = null;                if (modConfig &amp;&amp; intensityLabel) {                    const match = modConfig.intensities.find(i =&gt; i.val === intensityLabel);                    if (match &amp;&amp; Number.isFinite(match.met)) metValue = match.met;                }                exercises.push({                    id,                    modality: modConfig ? modConfig.name : cb.value,                    sessPerWeek,                    freqTier,                    intensityLabel,                    metValue,                    timeWindow,                    durationMins,                    hoursPostIntake                });            });            \/\/ Fasting Regimens            const waterFastEnabled = document.getElementById(&#8216;waterFastEnabled&#8217;).checked;            const waterFastFreq = waterFastEnabled ? (document.getElementById(&#8216;waterFastFreq&#8217;).value || null) : null;            const waterFastUnit = document.getElementById(&#8216;waterFastDurationUnit&#8217;).value;            const waterFastVal = waterFastEnabled ? parseOptionalNum(&#8216;waterFastDurationVal&#8217;, 0.5, waterFastUnit === &#8216;days&#8217; ? 40 : 1000) : null;            const rawWaterHrs = waterFastVal !== null ? (waterFastUnit === &#8216;days&#8217; ? waterFastVal * 24 : waterFastVal) : null;            const waterFastDurationHours = (rawWaterHrs !== null &amp;&amp; rawWaterHrs &lt;= 1000) ? rawWaterHrs : null;            const dryFastEnabled = document.getElementById(&#8216;dryFastEnabled&#8217;).checked;            const dryFastFreq = dryFastEnabled ? (document.getElementById(&#8216;dryFastFreq&#8217;).value || null) : null;            const dryFastUnit = document.getElementById(&#8216;dryFastDurationUnit&#8217;).value;            const dryFastVal = dryFastEnabled ? parseOptionalNum(&#8216;dryFastDurationVal&#8217;, 0.5, dryFastUnit === &#8216;days&#8217; ? 10 : 240) : null;            const rawDryHrs = dryFastVal !== null ? (dryFastUnit === &#8216;days&#8217; ? dryFastVal * 24 : dryFastVal) : null;            const dryFastDurationHours = (rawDryHrs !== null &amp;&amp; rawDryHrs &lt;= 240) ? rawDryHrs : null;            \/\/ Pathological History            const pathologies = Array.from(document.querySelectorAll(&#8216;input[name=&#8221;pathology&#8221;]:checked&#8217;)).map(el =&gt; el.value);            const isRawNonEmpty = (id) =&gt; {                const el = document.getElementById(id);                return Boolean(el &amp;&amp; el.value.trim() !== &#8221;);            };            const flagMissingOrInvalid = (id, label) =&gt; isRawNonEmpty(id) ? `${label} (Out of Range \u2014 Ignored)` : label;            \/\/ Audit of user-facing fields left empty or out of range            const omittedInputsList = [];            if (!userEmail) omittedInputsList.push(&#8216;Email Address&#8217;);            if (!userMobile) omittedInputsList.push(&#8216;Mobile Number&#8217;);            if (!userWhatsapp) omittedInputsList.push(&#8216;WhatsApp Number&#8217;);            if (!biologicalSex) omittedInputsList.push(&#8216;Biological Sex&#8217;);            if (ageYears === null) omittedInputsList.push(flagMissingOrInvalid(&#8216;ageYears&#8217;, &#8216;Age (years)&#8217;));            if (weightKg === null) omittedInputsList.push(flagMissingOrInvalid(&#8216;weightInput&#8217;, &#8216;Total Body Weight&#8217;));            if (heightCm === null) {                const hasRawH = heightUnit === &#8216;cm&#8217; ? isRawNonEmpty(&#8216;heightCmInput&#8217;) : (isRawNonEmpty(&#8216;heightFtInput&#8217;) || isRawNonEmpty(&#8216;heightInInput&#8217;));                omittedInputsList.push(hasRawH ? &#8216;Standing Height (Out of Range \u2014 Ignored)&#8217; : &#8216;Standing Height&#8217;);            }            if (wristCm === null) omittedInputsList.push(flagMissingOrInvalid(&#8216;wristInput&#8217;, &#8216;Wrist Girth&#8217;));            if (neckCm === null) omittedInputsList.push(flagMissingOrInvalid(&#8216;neckInput&#8217;, &#8216;Neck Girth&#8217;));            if (waistCm === null) omittedInputsList.push(flagMissingOrInvalid(&#8216;waistInput&#8217;, &#8216;Waist Girth&#8217;));            if (hipCm === null) omittedInputsList.push(flagMissingOrInvalid(&#8216;hipInput&#8217;, &#8216;Hip Girth&#8217;));            if (thighCm === null) omittedInputsList.push(flagMissingOrInvalid(&#8216;thighInput&#8217;, &#8216;Mid-Thigh Girth&#8217;));            if (rhr === null) omittedInputsList.push(flagMissingOrInvalid(&#8216;rhrInput&#8217;, &#8216;Wakeful Resting Heart Rate (RHR)&#8217;));            if (shr === null) omittedInputsList.push(flagMissingOrInvalid(&#8216;shrInput&#8217;, &#8216;Sleeping Heart Rate (SHR)&#8217;));            if (mealsPerDay === null) omittedInputsList.push(flagMissingOrInvalid(&#8216;mealsPerDayInput&#8217;, &#8216;Meals per Day&#8217;));            if (!dietaryProfile) omittedInputsList.push(&#8216;Dietary Classification&#8217;);            if (!primaryCircadianWindow) omittedInputsList.push(&#8216;Primary Exercise Time Window&#8217;);            if (hoursAfterLastIntake === null) omittedInputsList.push(flagMissingOrInvalid(&#8216;hoursAfterLastIntake&#8217;, &#8216;Hrs After Last Meal (&gt;0 kcal)&#8217;));            if (!postMealWalkStatus) omittedInputsList.push(&#8216;Walking After Meals Status&#8217;);            else if (postMealWalkStatus !== &#8216;No&#8217;) {                if (postMealWalkDurationMins === null) omittedInputsList.push(flagMissingOrInvalid(&#8216;postMealWalkDurationMins&#8217;, &#8216;Post-Meal Walk Duration (mins)&#8217;));                if (!postMealWalkDelay) omittedInputsList.push(&#8216;Walk Latency After Eating&#8217;);            }            if (exercises.length === 0) {                omittedInputsList.push(&#8217;13-Modality Exercise Selection (None Checked)&#8217;);            } else {                exercises.forEach(ex =&gt; {                    const missingEx = [];                    if (ex.sessPerWeek === null &amp;&amp; !ex.freqTier) missingEx.push(flagMissingOrInvalid(`ex_sess_${ex.id}`, &#8216;Sessions\/Freq&#8217;));                    if (ex.durationMins === null) missingEx.push(flagMissingOrInvalid(`ex_dur_${ex.id}`, &#8216;Mins\/Session&#8217;));                    if (!ex.timeWindow &amp;&amp; !primaryCircadianWindow) missingEx.push(&#8216;Time Window&#8217;);                    if (ex.hoursPostIntake === null &amp;&amp; hoursAfterLastIntake === null) missingEx.push(flagMissingOrInvalid(`ex_fast_${ex.id}`, &#8216;Hrs Post-Kcal&#8217;));                    if (missingEx.length &gt; 0) {                        omittedInputsList.push(`${ex.modality} (${missingEx.join(&#8216;, &#8216;)})`);                    }                });            }            if (waterFastEnabled) {                if (!waterFastFreq) omittedInputsList.push(&#8216;Water Fasting Frequency&#8217;);                if (waterFastDurationHours === null) omittedInputsList.push(flagMissingOrInvalid(&#8216;waterFastDurationVal&#8217;, &#8216;Water Fasting Average Duration&#8217;));            }            if (dryFastEnabled) {                if (!dryFastFreq) omittedInputsList.push(&#8216;Dry Fasting Frequency&#8217;);                if (dryFastDurationHours === null) omittedInputsList.push(flagMissingOrInvalid(&#8216;dryFastDurationVal&#8217;, &#8216;Dry Fasting Average Duration&#8217;));            }            if (pathologies.length === 0) {                omittedInputsList.push(&#8216;Pathological &amp; Metabolic History (Section 05)&#8217;);            }            return {                fullName,                userEmail,                userMobile,                userWhatsapp,                biologicalSex,                ageYears,                weightKg,                heightCm,                wristCm,                neckCm,                waistCm,                hipCm,                thighCm,                rhr,                shr,                mealsPerDay,                dietaryProfile,                primaryCircadianWindow,                hoursAfterLastIntake,                postMealWalkStatus,                postMealWalkDurationMins,                postMealWalkDelay,                exercises,                waterFast: {                    enabled: waterFastEnabled,                    frequency: waterFastFreq,                    durationHours: waterFastDurationHours                },                dryFast: {                    enabled: dryFastEnabled,                    frequency: dryFastFreq,                    durationHours: dryFastDurationHours                },                pathologies,                omittedInputsList            };        }        function executePhysiologicalCalculations(data) {            const dependencyAuditLog = [];            \/\/ 1. Quetelet BMI            let bmi = null;            let bmiCategory = &#8221;;            if (data.weightKg !== null &amp;&amp; data.heightCm !== null &amp;&amp; data.heightCm &gt; 0) {                const hM = data.heightCm \/ 100;                bmi = data.weightKg \/ (hM * hM);                if (bmi &lt; 18.5) bmiCategory = &#8216;Underweight (&lt;18.5 kg\/m\u00b2)&#8217;;                else if (bmi &lt; 25.0) bmiCategory = &#8216;Optimal Normative Weight (18.5\u201324.9 kg\/m\u00b2)&#8217;;                else if (bmi &lt; 30.0) bmiCategory = &#8216;Overweight \/ Elevated Mass (25.0\u201329.9 kg\/m\u00b2)&#8217;;                else bmiCategory = &#8216;Adiposity Class I+ (\u226530.0 kg\/m\u00b2)&#8217;;                dependencyAuditLog.push({                    formulaName: &#8216;Quetelet BMI (Weight \/ Height\u00b2)&#8217;,                    requiredVars: &#8216;Total Weight, Standing Height&#8217;,                    status: &#8216;Computed&#8217;,                    handlingNote: `Resolved: ${bmi.toFixed(1)} kg\/m\u00b2 (${bmiCategory})`                });            } else {                const missing = [];                if (data.weightKg === null) missing.push(&#8216;Total Weight&#8217;);                if (data.heightCm === null) missing.push(&#8216;Standing Height&#8217;);                dependencyAuditLog.push({                    formulaName: &#8216;Quetelet BMI (Weight \/ Height\u00b2)&#8217;,                    requiredVars: &#8216;Total Weight, Standing Height&#8217;,                    status: &#8216;Withheld (Blank Cell)&#8217;,                    handlingNote: `Result left blank: Missing ${missing.join(&#8216;, &#8216;)}`                });            }            \/\/ 2. US Navy Body Fat % &amp; Relative Fat Mass (RFM)            let navyBodyFatPct = null;            let rfmBodyFatPct = null;            let consensusBodyFatPct = null;            let bodyFatCategory = &#8221;;            let bodyFatMethodNote = &#8221;;            if (data.biologicalSex &amp;&amp; data.heightCm !== null &amp;&amp; data.waistCm !== null &amp;&amp; data.waistCm &gt; 0) {                const sexFlag = data.biologicalSex === &#8216;Female&#8217; ? 1 : 0;                const rfm = 64 &#8211; (20 * (data.heightCm \/ data.waistCm)) + (12 * sexFlag);                if (Number.isFinite(rfm) &amp;&amp; rfm &gt; 2 &amp;&amp; rfm &lt; 65) rfmBodyFatPct = rfm;                if (data.neckCm !== null) {                    if (data.biologicalSex === &#8216;Male&#8217; &amp;&amp; data.waistCm &gt; data.neckCm) {                        const val = 495 \/ (1.0324 &#8211; 0.19077 * Math.log10(data.waistCm &#8211; data.neckCm) + 0.15456 * Math.log10(data.heightCm)) &#8211; 450;                        if (Number.isFinite(val) &amp;&amp; val &gt; 2 &amp;&amp; val &lt; 65) navyBodyFatPct = val;                    } else if (data.biologicalSex === &#8216;Female&#8217; &amp;&amp; data.hipCm !== null &amp;&amp; (data.waistCm + data.hipCm) &gt; data.neckCm) {                        const val = 495 \/ (1.29579 &#8211; 0.35004 * Math.log10(data.waistCm + data.hipCm &#8211; data.neckCm) + 0.22100 * Math.log10(data.heightCm)) &#8211; 450;                        if (Number.isFinite(val) &amp;&amp; val &gt; 2 &amp;&amp; val &lt; 65) navyBodyFatPct = val;                    }                }            }            if (navyBodyFatPct !== null &amp;&amp; rfmBodyFatPct !== null) {                consensusBodyFatPct = (navyBodyFatPct + rfmBodyFatPct) \/ 2;                bodyFatMethodNote = `US Navy (${navyBodyFatPct.toFixed(1)}%) + RFM (${rfmBodyFatPct.toFixed(1)}%) Consensus`;            } else if (navyBodyFatPct !== null) {                consensusBodyFatPct = navyBodyFatPct;                bodyFatMethodNote = &#8216;US Navy Equation Only&#8217;;            } else if (rfmBodyFatPct !== null) {                consensusBodyFatPct = rfmBodyFatPct;                const missingNavy = [];                if (data.neckCm === null) missingNavy.push(&#8216;Neck Girth&#8217;);                if (data.biologicalSex === &#8216;Female&#8217; &amp;&amp; data.hipCm === null) missingNavy.push(&#8216;Hip Girth&#8217;);                bodyFatMethodNote = missingNavy.length &gt; 0                    ? `RFM Equation Only (US Navy omitted: ${missingNavy.join(&#8216; &amp; &#8216;)} left blank)`                    : &#8216;RFM Equation Only (Waist-Neck logarithmic boundary)&#8217;;            }            if (consensusBodyFatPct !== null) {                const isFem = data.biologicalSex === &#8216;Female&#8217;;                if (isFem) {                    if (consensusBodyFatPct &lt; 21) bodyFatCategory = &#8216;Athletic \/ Lean Female Reserve (14\u201320%)&#8217;;                    else if (consensusBodyFatPct &lt;= 28) bodyFatCategory = &#8216;Optimal Female Fitness Reserve (21\u201328%)&#8217;;                    else bodyFatCategory = &#8216;Elevated Female Adiposity (&gt;28%)&#8217;;                } else {                    if (consensusBodyFatPct &lt; 14) bodyFatCategory = &#8216;Athletic \/ Lean Male Reserve (8\u201313.9%)&#8217;;                    else if (consensusBodyFatPct &lt;= 20) bodyFatCategory = &#8216;Optimal Male Fitness Reserve (14\u201320%)&#8217;;                    else bodyFatCategory = &#8216;Elevated Male Adiposity (&gt;20%)&#8217;;                }                dependencyAuditLog.push({                    formulaName: &#8216;Consensus Body Fat % (US Navy + RFM)&#8217;,                    requiredVars: &#8216;Sex, Height, Waist (+ Neck &amp; Female Hip for US Navy)&#8217;,                    status: navyBodyFatPct !== null &amp;&amp; rfmBodyFatPct !== null ? &#8216;Computed&#8217; : &#8216;Partially Computed (RFM)&#8217;,                    handlingNote: `Resolved: ${consensusBodyFatPct.toFixed(1)}% \u2014 ${bodyFatMethodNote}`                });            } else {                const missing = [];                if (!data.biologicalSex) missing.push(&#8216;Sex&#8217;);                if (data.heightCm === null) missing.push(&#8216;Standing Height&#8217;);                if (data.waistCm === null) missing.push(&#8216;Waist Girth&#8217;);                const missingReason = missing.length &gt; 0                    ? `Missing ${missing.join(&#8216;, &#8216;)}`                    : &#8216;Inputs outside physiological logarithmic bounds (requires Waist &gt; Neck and valid Height-to-Waist ratio)&#8217;;                dependencyAuditLog.push({                    formulaName: &#8216;Consensus Body Fat % (US Navy + RFM)&#8217;,                    requiredVars: &#8216;Sex, Height, Waist (+ Neck &amp; Female Hip for US Navy)&#8217;,                    status: &#8216;Withheld (Blank Cell)&#8217;,                    handlingNote: `Result left blank: ${missingReason}`                });            }            \/\/ 3. Lean Body Mass (LBM) &amp; Fat Mass            let fatMassKg = null;            let leanBodyMassKg = null;            let lbmPct = null;            if (data.weightKg !== null &amp;&amp; consensusBodyFatPct !== null) {                fatMassKg = data.weightKg * (consensusBodyFatPct \/ 100);                leanBodyMassKg = data.weightKg &#8211; fatMassKg;                lbmPct = 100 &#8211; consensusBodyFatPct;                dependencyAuditLog.push({                    formulaName: &#8216;Lean Body Mass (LBM) &amp; Fat Mass&#8217;,                    requiredVars: &#8216;Total Weight, Consensus Body Fat %&#8217;,                    status: &#8216;Computed&#8217;,                    handlingNote: `Resolved: LBM ${leanBodyMassKg.toFixed(1)} kg (${lbmPct.toFixed(1)}%), Fat Mass ${fatMassKg.toFixed(1)} kg`                });            } else {                const missingLbm = [];                if (data.weightKg === null) missingLbm.push(&#8216;Total Weight&#8217;);                if (consensusBodyFatPct === null) missingLbm.push(&#8216;Consensus Body Fat %&#8217;);                dependencyAuditLog.push({                    formulaName: &#8216;Lean Body Mass (LBM) &amp; Fat Mass&#8217;,                    requiredVars: &#8216;Total Weight, Consensus Body Fat %&#8217;,                    status: &#8216;Withheld (Blank Cell)&#8217;,                    handlingNote: `Result left blank: Missing ${missingLbm.join(&#8216;, &#8216;)}`                });            }            \/\/ 4. Skeletal Bone Mineral Mass Proxy (Drinkwater \/ von D\u00f6beln anthropometric proxy)            let boneMineralMassKg = null;            let skeletalFrameSize = &#8221;;            if (data.heightCm !== null &amp;&amp; data.wristCm !== null &amp;&amp; data.wristCm &gt; 0) {                const hM = data.heightCm \/ 100;                const wristBreadthM = (data.wristCm \/ Math.PI) \/ 100;                const baseBone = 3.02 * Math.pow(hM * hM * wristBreadthM * 400, 0.712) * 0.11;                const computedBone = leanBodyMassKg !== null ? (baseBone * 0.7 + (leanBodyMassKg * 0.055) * 0.3) : baseBone;                if (Number.isFinite(computedBone) &amp;&amp; computedBone &gt; 0) {                    boneMineralMassKg = computedBone;                }                const rRatio = data.heightCm \/ data.wristCm;                skeletalFrameSize = `r=${rRatio.toFixed(1)} (${rRatio &gt; 10.4 ? &#8216;Slender Frame&#8217; : rRatio &gt;= 9.6 ? &#8216;Medium Frame&#8217; : &#8216;Broad\/Robust Frame&#8217;})`;                dependencyAuditLog.push({                    formulaName: &#8216;Skeletal Bone Mineral Mass Proxy (von D\u00f6beln\/Drinkwater)&#8217;,                    requiredVars: &#8216;Standing Height, Wrist Girth&#8217;,                    status: &#8216;Computed&#8217;,                    handlingNote: `Resolved: ${boneMineralMassKg.toFixed(2)} kg (${skeletalFrameSize})`                });            } else {                const missing = [];                if (data.heightCm === null) missing.push(&#8216;Standing Height&#8217;);                if (data.wristCm === null) missing.push(&#8216;Wrist Girth&#8217;);                dependencyAuditLog.push({                    formulaName: &#8216;Skeletal Bone Mineral Mass Proxy (von D\u00f6beln\/Drinkwater)&#8217;,                    requiredVars: &#8216;Standing Height, Wrist Girth&#8217;,                    status: &#8216;Withheld (Blank Cell)&#8217;,                    handlingNote: `Result left blank: Missing ${missing.join(&#8216;, &#8216;)}`                });            }            \/\/ 5. Waist-to-Hip Ratio (WHR), Waist-to-Thigh Ratio (WTR), Waist-to-Height Ratio (WHtR)            let waistToHipRatio = null;            let whrRiskCategory = &#8221;;            if (data.waistCm !== null &amp;&amp; data.hipCm !== null &amp;&amp; data.hipCm &gt; 0) {                waistToHipRatio = data.waistCm \/ data.hipCm;                const isFem = data.biologicalSex === &#8216;Female&#8217;;                const cutoff = isFem ? 0.85 : 0.90;                whrRiskCategory = waistToHipRatio &lt; cutoff ? `Low Truncal Risk (&lt;${cutoff.toFixed(2)})` : `Elevated Central Visceral Distribution (\u2265${cutoff.toFixed(2)})`;                dependencyAuditLog.push({                    formulaName: &#8216;Waist-to-Hip Ratio (WHR)&#8217;,                    requiredVars: &#8216;Waist Girth, Hip Girth&#8217;,                    status: &#8216;Computed&#8217;,                    handlingNote: `Resolved: ${waistToHipRatio.toFixed(2)} (${whrRiskCategory})`                });            } else {                const missingWhr = [];                if (data.waistCm === null) missingWhr.push(&#8216;Waist Girth&#8217;);                if (data.hipCm === null) missingWhr.push(&#8216;Hip Girth&#8217;);                dependencyAuditLog.push({                    formulaName: &#8216;Waist-to-Hip Ratio (WHR)&#8217;,                    requiredVars: &#8216;Waist Girth, Hip Girth&#8217;,                    status: &#8216;Withheld (Blank Cell)&#8217;,                    handlingNote: `Result left blank: Missing ${missingWhr.join(&#8216;, &#8216;)}`                });            }            let waistToThighRatio = null;            let wtrInterpretation = &#8221;;            if (data.waistCm !== null &amp;&amp; data.thighCm !== null &amp;&amp; data.thighCm &gt; 0) {                waistToThighRatio = data.waistCm \/ data.thighCm;                if (waistToThighRatio &lt; 1.45) wtrInterpretation = &#8216;Optimal Protective Gluteofemoral &amp; Quadriceps Sink (&lt;1.45)&#8217;;                else if (waistToThighRatio &lt;= 1.60) wtrInterpretation = &#8216;Intermediate Peripheral-to-Central Ratio (1.45\u20131.60)&#8217;;                else wtrInterpretation = &#8216;Elevated Visceral-to-Femoral Disparity (&gt;1.60 \u2014 prioritize Squats\/Cycling)&#8217;;                dependencyAuditLog.push({                    formulaName: &#8216;Waist-to-Thigh Ratio (WTR)&#8217;,                    requiredVars: &#8216;Waist Girth, Mid-Thigh Girth&#8217;,                    status: &#8216;Computed&#8217;,                    handlingNote: `Resolved: ${waistToThighRatio.toFixed(2)} (${wtrInterpretation})`                });            } else {                const missingWtr = [];                if (data.waistCm === null) missingWtr.push(&#8216;Waist Girth&#8217;);                if (data.thighCm === null) missingWtr.push(&#8216;Mid-Thigh Girth&#8217;);                dependencyAuditLog.push({                    formulaName: &#8216;Waist-to-Thigh Ratio (WTR)&#8217;,                    requiredVars: &#8216;Waist Girth, Mid-Thigh Girth&#8217;,                    status: &#8216;Withheld (Blank Cell)&#8217;,                    handlingNote: `Result left blank: Missing ${missingWtr.join(&#8216;, &#8216;)}`                });            }            let waistToHeightRatio = null;            let whtrCategory = &#8221;;            if (data.waistCm !== null &amp;&amp; data.heightCm !== null &amp;&amp; data.heightCm &gt; 0) {                waistToHeightRatio = data.waistCm \/ data.heightCm;                whtrCategory = waistToHeightRatio &lt; 0.50 ? &#8216;Optimal Cardiometabolic Threshold (&lt;0.50)&#8217; : &#8216;Elevated Central Visceral Adiposity (\u22650.50)&#8217;;                dependencyAuditLog.push({                    formulaName: &#8216;Waist-to-Height Ratio (WHtR)&#8217;,                    requiredVars: &#8216;Waist Girth, Standing Height&#8217;,                    status: &#8216;Computed&#8217;,                    handlingNote: `Resolved: ${waistToHeightRatio.toFixed(2)} (${whtrCategory})`                });            } else {                const missingWhtr = [];                if (data.waistCm === null) missingWhtr.push(&#8216;Waist Girth&#8217;);                if (data.heightCm === null) missingWhtr.push(&#8216;Standing Height&#8217;);                dependencyAuditLog.push({                    formulaName: &#8216;Waist-to-Height Ratio (WHtR)&#8217;,                    requiredVars: &#8216;Waist Girth, Standing Height&#8217;,                    status: &#8216;Withheld (Blank Cell)&#8217;,                    handlingNote: `Result left blank: Missing ${missingWhtr.join(&#8216;, &#8216;)}`                });            }            \/\/ 6. Autonomic Nocturnal Vagal Dip (RHR vs SHR) &amp; Standalone Heart Rate Evaluations            let rhrCategory = &#8221;;            if (data.rhr !== null) {                if (data.rhr &lt; 50) rhrCategory = &#8216;Athletic \/ High Vagal Bradycardia (&lt;50 bpm)&#8217;;                else if (data.rhr &lt;= 65) rhrCategory = &#8216;Optimal Cardiorespiratory Baseline (50\u201365 bpm)&#8217;;                else if (data.rhr &lt;= 75) rhrCategory = &#8216;Normal Resting Baseline (66\u201375 bpm)&#8217;;                else rhrCategory = &#8216;Elevated Sympathetic Resting Tone (&gt;75 bpm)&#8217;;                dependencyAuditLog.push({                    formulaName: &#8216;Wakeful Resting Heart Rate (RHR) Baseline&#8217;,                    requiredVars: &#8216;Wakeful RHR (bpm)&#8217;,                    status: &#8216;Computed&#8217;,                    handlingNote: `Resolved: ${data.rhr} bpm (${rhrCategory})`                });            } else {                dependencyAuditLog.push({                    formulaName: &#8216;Wakeful Resting Heart Rate (RHR) Baseline&#8217;,                    requiredVars: &#8216;Wakeful RHR (bpm)&#8217;,                    status: &#8216;Withheld (Blank Cell)&#8217;,                    handlingNote: &#8216;Result left blank: Missing Wakeful RHR&#8217;                });            }            let shrCategory = &#8221;;            if (data.shr !== null) {                if (data.shr &lt; 42) shrCategory = &#8216;Deep Athletic Nocturnal Bradycardia (&lt;42 bpm)&#8217;;                else if (data.shr &lt;= 56) shrCategory = &#8216;Optimal Nocturnal Sleeping Baseline (42\u201356 bpm)&#8217;;                else shrCategory = &#8216;Elevated Nocturnal Sleeping Heart Rate (&gt;56 bpm)&#8217;;                dependencyAuditLog.push({                    formulaName: &#8216;Sleeping Heart Rate (SHR) Nocturnal Baseline&#8217;,                    requiredVars: &#8216;Sleeping Heart Rate (SHR, bpm)&#8217;,                    status: &#8216;Computed&#8217;,                    handlingNote: `Resolved: ${data.shr} bpm (${shrCategory})`                });            } else {                dependencyAuditLog.push({                    formulaName: &#8216;Sleeping Heart Rate (SHR) Nocturnal Baseline&#8217;,                    requiredVars: &#8216;Sleeping Heart Rate (SHR, bpm)&#8217;,                    status: &#8216;Withheld (Blank Cell)&#8217;,                    handlingNote: &#8216;Result left blank: Missing Sleeping Heart Rate (SHR)&#8217;                });            }            let rhrShrDelta = null;            let rhrShrDipPct = null;            let autonomicStatus = &#8221;;            if (data.rhr !== null &amp;&amp; data.shr !== null &amp;&amp; data.rhr &gt; 0) {                rhrShrDelta = data.rhr &#8211; data.shr;                rhrShrDipPct = (rhrShrDelta \/ data.rhr) * 100;                if (rhrShrDipPct &gt;= 12 &amp;&amp; rhrShrDipPct &lt;= 25) {                    autonomicStatus = &#8216;Optimal Nocturnal Vagal Dominance (12\u201325% Dip)&#8217;;                } else if (rhrShrDipPct &gt; 25) {                    autonomicStatus = &#8216;Pronounced Parasympathetic Nocturnal Dip (&gt;25%)&#8217;;                } else if (rhrShrDipPct &gt;= 8) {                    autonomicStatus = &#8216;Moderate Nocturnal Recovery (8\u201311.9% Dip)&#8217;;                } else if (rhrShrDipPct &gt;= 0) {                    autonomicStatus = &#8216;Blunted Nocturnal Sympathetic Clearance (&lt;8% Dip)&#8217;;                } else {                    autonomicStatus = &#8216;Inverse Nocturnal Heart Rate Surge (SHR &gt; RHR \u2014 High Sympathetic Strain)&#8217;;                }                dependencyAuditLog.push({                    formulaName: &#8216;Nocturnal Parasympathetic Dip ((RHR &#8211; SHR) \/ RHR)&#8217;,                    requiredVars: &#8216;Wakeful RHR, Sleeping Heart Rate (SHR)&#8217;,                    status: &#8216;Computed&#8217;,                    handlingNote: `Resolved: ${formatNocturnalDip(rhrShrDelta, rhrShrDipPct)}`                });            } else {                const missingHr = [];                if (data.rhr === null) missingHr.push(&#8216;Wakeful RHR&#8217;);                if (data.shr === null) missingHr.push(&#8216;Sleeping Heart Rate (SHR)&#8217;);                dependencyAuditLog.push({                    formulaName: &#8216;Nocturnal Parasympathetic Dip ((RHR &#8211; SHR) \/ RHR)&#8217;,                    requiredVars: &#8216;Wakeful RHR, Sleeping Heart Rate (SHR)&#8217;,                    status: &#8216;Withheld (Blank Cell)&#8217;,                    handlingNote: `Result left blank: Missing ${missingHr.join(&#8216;, &#8216;)}`                });            }            \/\/ 7. Exercise Bioenergetics &amp; Postprandial Kinetics            const exA = {                activeCount: data.exercises.length,                weeklyTotalDurationMins: null,                weeklyAerobicMins: 0,                weeklyResistanceMobilityMins: 0,                weeklyTotalMetMinutes: null,                weeklyExerciseKcal: null,                fastedSessionsCount: 0,                timedSessionsCount: 0,                postMealWeeklyWalkMins: null,                modalityBreakdowns: [],                missingDurationModalities: [],                modalityHealthCatalogue: []            };            let sumDuration = 0;            let sumMetMins = 0;            let sumKcal = 0;            let anyResolvedDuration = false;            data.exercises.forEach(ex =&gt; {                let sessions = ex.sessPerWeek;                if (sessions === null &amp;&amp; ex.freqTier) {                    if (ex.freqTier.includes(&#8216;1\u20132&#8217;)) sessions = 1.5;                    else if (ex.freqTier.includes(&#8216;3\u20134&#8217;)) sessions = 3.5;                    else if (ex.freqTier.includes(&#8216;Daily&#8217;)) sessions = 6;                }                const hrsPost = ex.hoursPostIntake !== null ? ex.hoursPostIntake : data.hoursAfterLastIntake;                let substrateState = &#8216;Post-Intake Timing Unspecified&#8217;;                if (hrsPost !== null) {                    exA.timedSessionsCount++;                    if (hrsPost &gt;= 12) {                        exA.fastedSessionsCount++;                        substrateState = `Deep Fasted Lipolytic \/ AMPK State (${hrsPost}h post-kcal)`;                    } else if (hrsPost &gt;= 3) {                        exA.fastedSessionsCount++;                        substrateState = `Post-Absorptive Transition (${hrsPost}h post-kcal)`;                    } else if (hrsPost &lt;= 1) {                        substrateState = `Immediate Postprandial GLUT4 Sink (${hrsPost}h post-kcal)`;                    } else {                        substrateState = `Fed Glycogenolytic Window (${hrsPost}h post-kcal)`;                    }                }                let weeklyMins = null;                let weeklyMetMins = null;                let weeklyKcal = null;                if (sessions !== null &amp;&amp; ex.durationMins !== null &amp;&amp; ex.metValue !== null) {                    anyResolvedDuration = true;                    weeklyMins = sessions * ex.durationMins;                    weeklyMetMins = weeklyMins * ex.metValue;                    sumDuration += weeklyMins;                    sumMetMins += weeklyMetMins;                    if ([&#8216;squats&#8217;, &#8216;resistance&#8217;, &#8216;calisthenics&#8217;, &#8216;stretching&#8217;, &#8216;yoga&#8217;, &#8216;coreisometrics&#8217;].includes(ex.id)) {                        exA.weeklyResistanceMobilityMins += weeklyMins;                    } else {                        exA.weeklyAerobicMins += weeklyMins;                    }                    if (data.weightKg !== null) {                        weeklyKcal = (ex.metValue * 3.5 * data.weightKg \/ 200) * weeklyMins;                        sumKcal += weeklyKcal;                    }                } else {                    const missingExParts = [];                    if (sessions === null) missingExParts.push(&#8216;Sessions\/Freq&#8217;);                    if (ex.durationMins === null) missingExParts.push(&#8216;Duration (mins)&#8217;);                    if (ex.metValue === null) missingExParts.push(&#8216;Intensity (METs)&#8217;);                    exA.missingDurationModalities.push(`${ex.modality} [missing ${missingExParts.join(&#8216; &amp; &#8216;)}]`);                }                exA.modalityBreakdowns.push({                    id: ex.id,                    modality: ex.modality,                    metValue: ex.metValue,                    sessionsDisplay: sessions !== null ? `${sessions}\/wk` : (ex.freqTier || &#8221;),                    durationWindowDisplay: [ex.durationMins !== null ? `${ex.durationMins} mins` : &#8216;Duration blank&#8217;, ex.timeWindow || data.primaryCircadianWindow || &#8221;].filter(Boolean).join(&#8216; \u00b7 &#8216;),                    postIntakeDisplay: hrsPost !== null ? `${hrsPost} hrs` : &#8221;,                    weeklyMins,                    weeklyMetMins,                    weeklyKcal,                    substrateState                });            });            if (anyResolvedDuration) {                exA.weeklyTotalDurationMins = sumDuration;                exA.weeklyTotalMetMinutes = sumMetMins;                if (data.weightKg !== null) {                    exA.weeklyExerciseKcal = sumKcal;                }                dependencyAuditLog.push({                    formulaName: &#8216;Weekly Exercise Metabolic Load (MET-mins\/wk &amp; Kcal\/wk)&#8217;,                    requiredVars: &#8216;Selected Modality, Sessions\/Wk, Duration (mins) [+ Weight for Kcal]&#8217;,                    status: exA.missingDurationModalities.length === 0 ? &#8216;Computed&#8217; : &#8216;Partially Computed&#8217;,                    handlingNote: exA.missingDurationModalities.length === 0                        ? `Resolved: ${Math.round(sumMetMins)} MET-mins\/wk (${Math.round(sumDuration)} mins\/wk)${data.weightKg === null ? &#8216; [Kcal\/wk left blank: Total Weight omitted]&#8217; : &#8221;}`                        : `Computed ${Math.round(sumMetMins)} MET-mins\/wk; omitted for: ${exA.missingDurationModalities.join(&#8216;, &#8216;)}`                });            } else {                dependencyAuditLog.push({                    formulaName: &#8216;Weekly Exercise Metabolic Load (MET-mins\/wk &amp; Kcal\/wk)&#8217;,                    requiredVars: &#8216;Selected Modality, Sessions\/Wk, Duration (mins)&#8217;,                    status: &#8216;Withheld (Blank Cell)&#8217;,                    handlingNote: data.exercises.length === 0                        ? &#8216;Result left blank: No exercise modalities checked in Section 03&#8217;                        : `Result left blank: Missing parameters for ${exA.missingDurationModalities.join(&#8216;, &#8216;)}`                });            }            \/\/ Postprandial walking weekly volume            const isPostMealActive = Boolean(data.postMealWalkStatus &amp;&amp; (data.postMealWalkStatus.startsWith(&#8216;Yes&#8217;) || data.postMealWalkStatus === &#8216;Occasionally&#8217;));            const needsMealsCount = Boolean(data.postMealWalkStatus &amp;&amp; data.postMealWalkStatus.includes(&#8216;All Meals&#8217;));            const hasValidMealsCount = !needsMealsCount || (data.mealsPerDay !== null &amp;&amp; data.mealsPerDay &gt; 0);            if (isPostMealActive &amp;&amp; data.postMealWalkDurationMins !== null &amp;&amp; hasValidMealsCount) {                let walksPerWeek = 7;                let walkFreqDesc = &#8216;1 walk\/day \u00d7 7d&#8217;;                if (needsMealsCount) {                    walksPerWeek = data.mealsPerDay * 7;                    walkFreqDesc = `${data.mealsPerDay} meals\/day \u00d7 7d`;                } else if (data.postMealWalkStatus === &#8216;Occasionally&#8217;) {                    walksPerWeek = 3.5;                    walkFreqDesc = &#8216;~3.5 walks\/wk (Occasional)&#8217;;                }                exA.postMealWeeklyWalkMins = walksPerWeek * data.postMealWalkDurationMins;                dependencyAuditLog.push({                    formulaName: &#8216;Weekly Postprandial Walking Volume (Walks\/Wk \u00d7 Mins)&#8217;,                    requiredVars: &#8216;Walking After Meals Status, Post-Meal Walk Duration (mins) [+ Meals\/Day if &#8220;After All Meals&#8221;]&#8217;,                    status: &#8216;Computed&#8217;,                    handlingNote: `Resolved: ${Math.round(exA.postMealWeeklyWalkMins)} mins\/wk (${walkFreqDesc} \u00d7 ${data.postMealWalkDurationMins} mins)`                });            } else {                const missingWalk = [];                if (!data.postMealWalkStatus) missingWalk.push(&#8216;Walking After Meals Status&#8217;);                else if (data.postMealWalkStatus === &#8216;No&#8217;) missingWalk.push(&#8216;Active Post-Meal Walk (Selected &#8220;No&#8221;)&#8217;);                if (data.postMealWalkDurationMins === null) missingWalk.push(&#8216;Post-Meal Walk Duration (mins)&#8217;);                if (needsMealsCount &amp;&amp; (data.mealsPerDay === null || data.mealsPerDay &lt;= 0)) missingWalk.push(&#8216;Meals per Day (required for &#8220;After All Meals&#8221;)&#8217;);                dependencyAuditLog.push({                    formulaName: &#8216;Weekly Postprandial Walking Volume (Walks\/Wk \u00d7 Mins)&#8217;,                    requiredVars: &#8216;Walking After Meals Status, Post-Meal Walk Duration (mins) [+ Meals\/Day if &#8220;After All Meals&#8221;]&#8217;,                    status: &#8216;Withheld (Blank Cell)&#8217;,                    handlingNote: `Result left blank: Missing or inactive ${missingWalk.join(&#8216;, &#8216;)}`                });            }            \/\/ Populate 13-Modality Catalogue after modalityBreakdowns is built            exA.modalityHealthCatalogue = EXERCISE_MODALITIES_CONFIG.map(cfg =&gt; {                const matched = exA.modalityBreakdowns.find(b =&gt; b.id === cfg.id) || null;                return {                    id: cfg.id,                    modality: cfg.name,                    isActive: Boolean(matched),                    computedBreakdown: matched,                    cardioImpact: cfg.cardioImpact,                    metabolicImpact: cfg.metabolicImpact,                    musculoskeletalImpact: cfg.musculoskeletalImpact,                    synergyWithFasting: cfg.synergyWithFasting                };            });            \/\/ 8A. Water Fasting Proteomic Kinetic Stratification (2024 UK Research \u2014 Pietzke et al.)            const waterFastKinetics = evaluateWaterFastKineticTier(data.waterFast);            dependencyAuditLog.push({                formulaName: &#8216;Water-Only Fasting Proteomic Kinetic Phase (2024 UK Research: \u226424h, 24\u201372h, \u226572h)&#8217;,                requiredVars: &#8216;Water Fasting Enabled, Average Duration (hours\/days)&#8217;,                status: !data.waterFast.enabled ? &#8216;Withheld (Not Practiced)&#8217; : (waterFastKinetics.hours !== null ? &#8216;Computed&#8217; : &#8216;Withheld (Blank Cell)&#8217;),                handlingNote: !data.waterFast.enabled                    ? &#8216;Result left blank: Water-only fasting not checked in Section 04&#8217;                    : (waterFastKinetics.hours !== null                        ? `Resolved: ${waterFastKinetics.hours}h (${waterFastKinetics.phaseLabel})`                        : &#8216;Result left blank: Water Fasting checked, but Average Duration was left blank&#8217;)            });            \/\/ 8B. Dry Fasting Dose-Response Safety Stratification            const dryFastSafety = evaluateDryFastSafetyTier(data.dryFast);            dependencyAuditLog.push({                formulaName: &#8216;Dry Fasting Osmotic &amp; Renal Safety Stratification (\u226416h vs &gt;24\u201372h+)&#8217;,                requiredVars: &#8216;Dry Fasting Enabled, Average Duration (hours\/days)&#8217;,                status: !data.dryFast.enabled ? &#8216;Withheld (Not Practiced)&#8217; : (dryFastSafety.hours !== null ? &#8216;Computed&#8217; : &#8216;Withheld (Blank Cell)&#8217;),                handlingNote: !data.dryFast.enabled                    ? &#8216;Result left blank: Dry fasting not checked in Section 04&#8217;                    : (dryFastSafety.hours !== null                        ? `Resolved: ${dryFastSafety.hours}h (${dryFastSafety.tierLabel})`                        : &#8216;Result left blank: Dry Fasting checked, but Average Duration was left blank&#8217;)            });            \/\/ 9. Composite Longevity Index (0\u2013100)            let longevityScore = 62;            if (waistToHeightRatio !== null) {                longevityScore += waistToHeightRatio &lt; 0.48 ? 8 : (waistToHeightRatio &lt; 0.53 ? 3 : -6);            }            if (waistToThighRatio !== null) {                longevityScore += waistToThighRatio &lt; 1.48 ? 7 : (waistToThighRatio &lt;= 1.60 ? 2 : -4);            }            if (rhrShrDipPct !== null) {                longevityScore += (rhrShrDipPct &gt;= 12 &amp;&amp; rhrShrDipPct &lt;= 25) ? 8 : (rhrShrDipPct &gt;= 8 ? 3 : -5);            }            if (exA.weeklyTotalMetMinutes !== null) {                longevityScore += exA.weeklyTotalMetMinutes &gt;= 900 ? 10 : (exA.weeklyTotalMetMinutes &gt;= 500 ? 6 : 2);            }            if (exA.modalityBreakdowns.some(b =&gt; b.id === &#8216;squats&#8217; || b.id === &#8216;resistance&#8217;)) {                longevityScore += 4;            }            longevityScore += waterFastKinetics.longevityDelta;            longevityScore += dryFastSafety.longevityDelta;            const activePathologies = data.pathologies.filter(p =&gt; p !== &#8216;None&#8217;);            longevityScore -= activePathologies.length * 6;            longevityScore = Math.max(18, Math.min(99, Math.round(longevityScore)));            const longevityTier = longevityScore &gt;= 85                ? &#8216;Tier I \u00b7 High Autonomic, Myokine &amp; Metabolic Resilience&#8217;                : longevityScore &gt;= 70                    ? &#8216;Tier II \u00b7 Balanced Physiological Reserve&#8217;                    : &#8216;Tier III \u00b7 Priority Cardiometabolic Optimization Required&#8217;;            \/\/ 10. Reference Limits Dictionary            const referenceLimits = {                bmi: &#8216;18.5\u201324.9 kg\/m\u00b2 (Longevity optimum: 20.0\u201323.5 kg\/m\u00b2)&#8217;,                bodyFat: data.biologicalSex === &#8216;Female&#8217; ? &#8216;Female: 18.0\u201328.0% (Athletic: 14\u201320%)&#8217; : &#8216;Male: 10.0\u201320.0% (Athletic: 8\u201314%)&#8217;,                lbm: data.biologicalSex === &#8216;Female&#8217; ? &#8216;Female LBM: \u226572\u201382% of body weight&#8217; : &#8216;Male LBM: \u226580\u201390% of body weight&#8217;,                boneMass: &#8216;2.50\u20134.20 kg skeletal mineral proxy; Frame r = Height\/Wrist (9.6\u201310.4 medium)&#8217;,                whr: data.biologicalSex === &#8216;Female&#8217; ? &#8216;Female: &lt;0.85 (Optimal &lt;0.80)&#8217; : &#8216;Male: &lt;0.90 (Optimal &lt;0.85)&#8217;,                wtr: &#8216;&lt;1.50 (Optimal protective gluteofemoral\/quadriceps sink: &lt;1.45)&#8217;,                whtr: &#8216;&lt;0.50 (Universal boundary across ethnicities: 0.42\u20130.49)&#8217;,                rhr: &#8217;50\u201370 bpm wakeful resting (Endurance trained: 42\u201355 bpm)&#8217;,                shr: &#8217;40\u201356 bpm nocturnal sleeping baseline&#8217;,                vagalDip: &#8216;12.0\u201322.0% nocturnal heart rate reduction ((RHR &#8211; SHR) \/ RHR)&#8217;,                weeklyMetMinutes: &#8216;600\u20131,500+ MET-mins\/week (WHO\/ACSM longevity range)&#8217;,                postMealWalk: &#8217;10\u201320 mins brisk walking initiated 0\u201330 mins after meals&#8217;,                waterFastPhase: &#8216;Phase I (\u226424h): Glycogenolysis | Phase II (24\u201372h): Ketosis\/Autophagy | Phase III (\u226572h\u2013168h): 1,044-Protein Remodeling (Pietzke et al. 2024)&#8217;,                dryFastLimit: &#8216;Adaptive Diurnal Window: \u226416h | Precautionary: 16\u201324h | High Renal\/Hypertonic Hazard: &gt;24\u201372h+&#8217;,                longevityIndex: &#8217;85\u2013100: Tier I Resilience | 70\u201384: Tier II Reserve | &lt;70: Priority Optimization&#8217;            };            \/\/ 11. Bidirectional Pathological Interactions            const pathologyInteractions = buildBidirectionalPathologyMatrix(data, {                bmi, waistToThighRatio, waistToHeightRatio, rhrShrDipPct, exA, waterFastKinetics, dryFastSafety            });            \/\/ 12. Personalized Contraindications &amp; Risk Warnings            const riskWarnings = buildPersonalizedRiskWarnings(data, activePathologies, rhrShrDipPct, waterFastKinetics, dryFastSafety);            return {                bmi,                bmiCategory,                navyBodyFatPct,                rfmBodyFatPct,                consensusBodyFatPct,                bodyFatCategory,                bodyFatMethodNote,                fatMassKg,                leanBodyMassKg,                lbmPct,                boneMineralMassKg,                skeletalFrameSize,                waistToHipRatio,                whrRiskCategory,                waistToThighRatio,                wtrInterpretation,                waistToHeightRatio,                whtrCategory,                rhrCategory,                shrCategory,                rhrShrDelta,                rhrShrDipPct,                autonomicStatus,                exerciseAnalytics: exA,                waterFastKinetics,                dryFastSafety,                longevityScore,                longevityTier,                referenceLimits,                pathologyInteractions,                riskWarnings,                dependencyAuditLog            };        }        function buildBidirectionalPathologyMatrix(data, ctx) {            const activeSet = new Set(data.pathologies.filter(p =&gt; p !== &#8216;None&#8217;));            const hasSquatsOrLower = ctx.exA.modalityBreakdowns.some(b =&gt; [&#8216;squats&#8217;, &#8216;outcycling&#8217;, &#8216;statcycling&#8217;, &#8216;stairs&#8217;, &#8216;resistance&#8217;].includes(b.id));            const hasPostMealWalk = Boolean(data.postMealWalkStatus &amp;&amp; data.postMealWalkStatus.startsWith(&#8216;Yes&#8217;));            const crossInputCards = [                {                    domain: &#8216;1. Anthropometry &amp; Lower-Body Sinks &lt;-&gt; Pathological History&#8217;,                    impactTo: ctx.waistToHeightRatio !== null || ctx.waistToThighRatio !== null                        ? `Recorded WHtR (${ctx.waistToHeightRatio !== null ? ctx.waistToHeightRatio.toFixed(2) : &#8216;Blank&#8217;}) and WTR (${ctx.waistToThighRatio !== null ? ctx.waistToThighRatio.toFixed(2) : &#8216;Blank&#8217;}) govern portal free fatty acid flux to the liver and peripheral GLUT4 disposal capacity.`                        : &#8216;Anthropometric ratios (WHtR\/WTR) left blank; visceral-to-gluteofemoral partitioning cannot be numerically resolved.&#8217;,                    impactFrom: activeSet.size &gt; 0                        ? `Reported condition(s) (${Array.from(activeSet).join(&#8216;, &#8216;)}) promote hyperinsulinemic de novo lipogenesis or cortisol-mediated truncal fat redistribution, requiring lower-body muscle sink preservation.`                        : &#8216;No reported pathological comorbidities altering baseline adipose-to-muscle partitioning.&#8217;                },                {                    domain: &#8216;2. Autonomic Cardiac Vitals (RHR &amp; SHR) &lt;-&gt; Pathological History&#8217;,                    impactTo: ctx.rhrShrDipPct !== null                        ? `Recorded nocturnal vagal dip (${ctx.rhrShrDipPct.toFixed(1)}%) reflects parasympathetic baroreflex recovery, modulating 24-hour vascular shear stress and nocturnal blood pressure dipping.`                        : &#8216;Wakeful RHR or Sleeping SHR left blank; nocturnal autonomic dipping cannot be numerically resolved.&#8217;,                    impactFrom: activeSet.has(&#8216;Hypertension (Elevated BP)&#8217;) || activeSet.has(&#8216;Type 1 \/ Type 2 \/ Pre-Diabetes&#8217;) || activeSet.has(&#8216;Previous Myocardial Infarction (Heart Attack)&#8217;)                        ? &#8216;Cardiometabolic conditions can blunt nocturnal vagal heart rate dipping via sympathetic overdrive or cardiac autonomic neuropathy.&#8217;                        : &#8216;Autonomic RHR-to-SHR dipping is unconstrained by known cardiovascular or neuropathic comorbidities.&#8217;                },                {                    domain: &#8216;3. 13-Modality Exercise &amp; Postprandial Walking &lt;-&gt; Pathological History&#8217;,                    impactTo: `${ctx.exA.activeCount} active exercise modality(ies)${hasSquatsOrLower ? &#8216; (including lower-extremity GLUT4 sink work)&#8217; : &#8221;}${hasPostMealWalk ? &#8216; plus dedicated postprandial walking&#8217; : &#8221;} accelerate non-insulin AMPK glucose clearance and endothelial nitric oxide (eNOS) vasodilation.`,                    impactFrom: activeSet.has(&#8216;Previous Myocardial Infarction (Heart Attack)&#8217;) || activeSet.has(&#8216;Hypertension (Elevated BP)&#8217;)                        ? &#8216;Requires avoidance of extreme Valsalva spikes during heavy resistance\/HIIT; favor controlled breathing, Zone 2 endurance, and post-meal walking.&#8217;                        : &#8216;Full physiological clearance across aerobic, neuromuscular squat\/resistance, and mobility modalities.&#8217;                },                {                    domain: &#8216;4. Dietary Architecture &amp; Fasting Protocols &lt;-&gt; Pathological History&#8217;,                    impactTo: `Dietary profile (${data.dietaryProfile || &#8216;Blank&#8217;}, ${data.mealsPerDay !== null ? data.mealsPerDay + &#8216; meals\/day&#8217; : &#8216;meals blank&#8217;}) and fasting status (${ctx.waterFastKinetics.practiced ? &#8216;Water fast &#8216; + (ctx.waterFastKinetics.hours !== null ? ctx.waterFastKinetics.hours + &#8216;h&#8217; : &#8216;enabled&#8217;) : &#8216;No water fast&#8217;}; ${ctx.dryFastSafety.practiced ? &#8216;Dry fast &#8216; + (ctx.dryFastSafety.hours !== null ? ctx.dryFastSafety.hours + &#8216;h&#8217; : &#8216;enabled&#8217;) : &#8216;No dry fast&#8217;}) regulate insulin AUC, hepatic ketogenesis, and renal solute clearance.`,                    impactFrom: activeSet.has(&#8216;Gout&#8217;) || activeSet.has(&#8216;Renal\/Kidney Disease&#8217;) || activeSet.has(&#8216;Type 1 \/ Type 2 \/ Pre-Diabetes&#8217;)                        ? &#8216;Ketone bodies (beta-HB\/acetoacetate) compete with uric acid at renal URAT1 transporters; dry fasting or unsupervised prolonged fasting is contraindicated in Gout, Renal Disease, and medicated Diabetes.&#8217;                        : &#8216;Fasting ketogenesis and natriuresis proceed without known renal, urate, or pharmacological glycemic contraindications.&#8217;                }            ];            const conditionMatrix = [                {                    cond: &#8216;Type 1 \/ Type 2 \/ Pre-Diabetes&#8217;,                    isActive: activeSet.has(&#8216;Type 1 \/ Type 2 \/ Pre-Diabetes&#8217;),                    impactTo: &#8216;Squats, resistance training, and 15-min post-meal walks translocate GLUT4 independently of insulin; 24h-7d water fasting drains hepatic\/myocellular ceramides and DAGs, restoring IRS-1\/Akt signaling.&#8217;,                    impactFrom: &#8216;Chronic hyperglycemia glycates vascular collagen; if using insulin, sulfonylureas, or SGLT2 inhibitors, prolonged fasting carries severe risk of hypoglycemia or euglycemic DKA without physician dose titration.&#8217;                },                {                    cond: &#8216;Hypertension (Elevated BP)&#8217;,                    isActive: activeSet.has(&#8216;Hypertension (Elevated BP)&#8217;),                    impactTo: &#8216;Zone 2 cycling, brisk walking, isometric wall-sits\/planks, and water-fasting natriuresis (via insulin decline at renal NHE3\/ENaC) reduce systolic\/diastolic BP by 8-15 \/ 5-10 mmHg.&#8217;,                    impactFrom: &#8216;Increases left ventricular afterload and blunts RHR-to-SHR nocturnal dipping; antihypertensive diuretics\/ACEi\/ARBs require electrolyte &amp; orthostatic monitoring during fasting.&#8217;                },                {                    cond: &#8216;Previous Myocardial Infarction (Heart Attack)&#8217;,                    isActive: activeSet.has(&#8216;Previous Myocardial Infarction (Heart Attack)&#8217;),                    impactTo: &#8216;Zone 2 aerobic conditioning, postprandial walking, and pranayama\/yoga enhance vagal heart rate variability (HRV) and myocardial collateral perfusion.&#8217;,                    impactToShort: &#8216;Zone 2 &amp; walking improve vagal tone&#8217;,                    impactFrom: &#8216;Strict contraindication to prolonged (&gt;48-72h) water fasting or any dry fasting (&gt;16h) due to catecholamine surges, electrolyte shifts (K+\/Mg2+), and hemoconcentration thrombosis risk.&#8217;                },                {                    cond: &#8216;NAFLD \/ Fatty Liver&#8217;,                    isActive: activeSet.has(&#8216;NAFLD \/ Fatty Liver&#8217;),                    impactTo: &#8216;Water fasting silences SREBP-1c\/ChREBP de novo lipogenesis and activates PPAR-alpha\/FGF21, oxidizing 30-50%+ of intrahepatic triglycerides while lower-body exercise diverts postprandial glucose to muscle.&#8217;,                    impactFrom: &#8216;Hepatic steatosis drives VLDL overproduction, fetuin-A secretion, and systemic insulin resistance, elevating WHtR and blunting metabolic flexibility.&#8217;                },                {                    cond: &#8216;Renal\/Kidney Disease&#8217;,                    isActive: activeSet.has(&#8216;Renal\/Kidney Disease&#8217;),                    impactTo: &#8216;Blood pressure control, low-cortisol walking, and avoidance of hypertonic dehydration preserve glomerular filtration rate (GFR).&#8217;,                    impactFrom: &#8216;Absolute contraindication to Dry Fasting (AVP\/polyol medullary toxicity and pre-renal AKI) and unsupervised prolonged fasting due to impaired potassium, phosphate, and acid-base buffering.&#8217;                },                {                    cond: &#8216;Gout&#8217;,                    isActive: activeSet.has(&#8216;Gout&#8217;),                    impactTo: &#8216;Euvolemic hydration, optimal WHtR, and low-purine\/alkalinizing dietary patterns reduce serum urate supersaturation.&#8217;,                    impactFrom: &#8216;Fasting beta-hydroxybutyrate and lactic acid from all-out HIIT compete with uric acid for proximal tubular URAT1 excretion, precipitating acute gouty flares\u2014especially if dehydrated.&#8217;                }            ];            return { crossInputCards, conditionMatrix };        }        function buildPersonalizedRiskWarnings(data, activePathologies, rhrShrDipPct, waterFastKinetics, dryFastSafety) {            const warnings = [];            const activeSet = new Set(activePathologies);            if (dryFastSafety.practiced &amp;&amp; dryFastSafety.hours !== null &amp;&amp; dryFastSafety.hours &gt; 24) {                warnings.push(`CRITICAL OSMOTIC &amp; RENAL ALERT: Recorded Dry Fasting duration (${dryFastSafety.hours} hours) exceeds the 24-hour physiological boundary. Obligatory insensible + urinary water losses (~1,200-1,500 mL\/day) far exceed endogenous fat-derived metabolic water (~300-400 mL\/day), creating severe risk of hypernatremia, renal medullary polyol toxicity, urate crystallization, and pre-renal acute kidney injury (AKI).`);            } else if (dryFastSafety.practiced &amp;&amp; dryFastSafety.hours !== null &amp;&amp; dryFastSafety.hours &gt; 16) {                warnings.push(`PRECAUTIONARY DRY FASTING NOTICE: Recorded Dry Fasting duration (${dryFastSafety.hours} hours) enters the 16-24h precautionary osmotic zone. Ensure complete electrolyte and fluid rehydration during eating windows and avoid high-heat or high-intensity glycolytic training while fluid-restricted.`);            }            if (waterFastKinetics.practiced &amp;&amp; waterFastKinetics.hours !== null &amp;&amp; waterFastKinetics.hours &gt; 72) {                warnings.push(`EXTENDED WATER FASTING ELECTROLYTE &amp; REFEEDING NOTICE: Recorded Water-Only Fasting duration (${waterFastKinetics.hours} hours \/ ${(waterFastKinetics.hours \/ 24).toFixed(1)} days) crosses the 72-hour systemic proteomic threshold. Fasts exceeding 72 hours require targeted sodium, potassium, magnesium, and phosphate monitoring and gradual low-glycemic refeeding to prevent refeeding hypophosphatemia and orthostatic hypotension.`);            }            if (activeSet.has(&#8216;Renal\/Kidney Disease&#8217;) &amp;&amp; (dryFastSafety.practiced || (waterFastKinetics.practiced &amp;&amp; (waterFastKinetics.hours === null || waterFastKinetics.hours &gt; 24)))) {                warnings.push(&#8216;RENAL CONTRAINDICATION ALERT: Reported Renal\/Kidney Disease is a strict contraindication to Dry Fasting (risk of pre-renal acute kidney injury and medullary hypertonicity) and unsupervised prolonged fasting.&#8217;);            }            if (activeSet.has(&#8216;Gout&#8217;) &amp;&amp; (dryFastSafety.practiced || waterFastKinetics.practiced)) {                warnings.push(&#8216;GOUT \/ HYPERURICEMIA URAT1 ALERT: Fasting ketone bodies (beta-hydroxybutyrate and acetoacetate) directly compete with uric acid for proximal tubular URAT1 excretion. Maintain generous euvolemic hydration and avoid dry fasting to prevent acute uric acid crystallization.&#8217;);            }            if (activeSet.has(&#8216;Type 1 \/ Type 2 \/ Pre-Diabetes&#8217;) &amp;&amp; (waterFastKinetics.practiced || dryFastSafety.practiced)) {                warnings.push(&#8216;GLYCEMIC &amp; PHARMACOLOGICAL SAFETY ALERT: In individuals with Diabetes, fasting protocols require physician oversight\u2014especially if prescribed insulin, sulfonylureas (hypoglycemia risk), or SGLT2 inhibitors (euglycemic diabetic ketoacidosis risk).&#8217;);            }            if (activeSet.has(&#8216;Previous Myocardial Infarction (Heart Attack)&#8217;)) {                warnings.push(&#8216;CARDIOVASCULAR AUTONOMIC &amp; ELECTROLYTE ALERT: History of Myocardial Infarction contraindicates dry fasting and prolonged (&gt;48h) water fasting due to sympathetic catecholamine surges, potassium\/magnesium shifts, and hemoconcentration viscosity risk.&#8217;);            }            if (rhrShrDipPct !== null &amp;&amp; rhrShrDipPct &lt; 0) {                warnings.push(`INVERSE NOCTURNAL HEART RATE ALERT: Sleeping Heart Rate (${data.shr} bpm) exceeds Wakeful Resting Heart Rate (${data.rhr} bpm), indicating nocturnal sympathetic overdrive, late-evening meal\/glycemic load, sleep-disordered breathing, or incomplete recovery.`);            } else if (rhrShrDipPct !== null &amp;&amp; rhrShrDipPct &lt; 8) {                warnings.push(`BLUNTED NOCTURNAL VAGAL DIP NOTICE: Nocturnal heart rate reduction is ${rhrShrDipPct.toFixed(1)}% (&lt;12% optimal threshold). Consider completing your final meal &gt;=3-4 hours before sleep and incorporating slow pranayama\/parasympathetic cooldowns.`);            }            if (warnings.length === 0) {                warnings.push(&#8216;No acute pathological-fasting contraindications detected across recorded parameters. Maintain adequate mineral\/electrolyte hydration and progressive recovery intervals.&#8217;);            }            return warnings;        }        function renderReportUI(data, metrics, shouldScroll = true) {            const reportSection = document.getElementById(&#8216;reportSection&#8217;);            if (reportSection) reportSection.classList.remove(&#8216;hidden&#8217;);            const refId = (APP_STATE.lastAssessment &amp;&amp; !shouldScroll)                ? APP_STATE.lastAssessment.referenceId                : `GR-BIO-${Math.floor(100000 + Math.random() * 900000)}`;            const nowStr = (APP_STATE.lastAssessment &amp;&amp; !shouldScroll)                ? APP_STATE.lastAssessment.timestamp                : new Date().toLocaleString(&#8216;en-AU&#8217;, {                    year: &#8216;numeric&#8217;, month: &#8216;short&#8217;, day: &#8216;2-digit&#8217;,                    hour: &#8216;2-digit&#8217;, minute: &#8216;2-digit&#8217;, hour12: false                });            const normalizedName = data.fullName.trim().toLowerCase();            const isSampleSubject = APP_STATE.isSampleProfileActive || APP_STATE.blockedSampleNames.includes(normalizedName);            document.getElementById(&#8216;repSubjectName&#8217;).textContent = isSampleSubject ? `${data.fullName} [SAMPLE PROFILE]` : data.fullName;            document.getElementById(&#8216;repProtocolId&#8217;).textContent = refId;            document.getElementById(&#8216;repTimestamp&#8217;).textContent = nowStr;            \/\/ 1. Sample Profile Notification Banner in Report            const sampleBannerEl = document.getElementById(&#8216;reportSampleAlertBanner&#8217;);            const formSampleBannerEl = document.getElementById(&#8216;formSampleProfileBanner&#8217;);            if (sampleBannerEl) {                sampleBannerEl.classList.toggle(&#8216;hidden&#8217;, !isSampleSubject);            }            if (formSampleBannerEl) {                formSampleBannerEl.classList.toggle(&#8216;hidden&#8217;, !isSampleSubject);            }            \/\/ 2. Omitted \/ Empty Fields Notification Banner in Report            const omittedBannerEl = document.getElementById(&#8216;reportOmittedFieldsBanner&#8217;);            const omittedCountBadge = document.getElementById(&#8216;omittedFieldsCountBadge&#8217;);            const omittedSummaryText = document.getElementById(&#8216;omittedFieldsSummaryText&#8217;);            const omittedPillsEl = document.getElementById(&#8216;omittedFieldsPills&#8217;);            const omittedList = data.omittedInputsList || [];            const withheldFormulasCount = metrics.dependencyAuditLog.filter(a =&gt; a.status !== &#8216;Computed&#8217;).length;            if (omittedBannerEl) {                if (omittedList.length &gt; 0) {                    omittedBannerEl.classList.remove(&#8216;hidden&#8217;);                    if (omittedCountBadge) {                        omittedCountBadge.textContent = `${omittedList.length} Field${omittedList.length === 1 ? &#8221; : &#8216;s&#8217;} Left Blank \u00b7 ${withheldFormulasCount} Index${withheldFormulasCount === 1 ? &#8221; : &#8216;es&#8217;} Withheld\/Partial`;                    }                    if (omittedSummaryText) {                        omittedSummaryText.innerHTML = `You left &lt;strong&gt;${omittedList.length} input field${omittedList.length === 1 ? &#8221; : &#8216;s&#8217;} empty&lt;\/strong&gt;. Under our strict &lt;strong&gt;Zero-Defaulting Rule&lt;\/strong&gt;, we never guess or substitute synthetic numbers (such as &lt;code&gt;0&lt;\/code&gt; or averages) for missing data. Any calculation requiring an omitted measurement is kept strictly blank in the tables below and documented in &lt;strong&gt;Section VIII (Calculation Dependency Audit Log)&lt;\/strong&gt;. You can fill in any of the fields below and click &lt;strong&gt;&#8221;Calculate &amp;amp; Generate Assessment&#8221;&lt;\/strong&gt; again at any time:`;                    }                    if (omittedPillsEl) {                        omittedPillsEl.innerHTML = omittedList.map(item =&gt;                            `&lt;span&gt;${escapeHtml(item)}&lt;\/span&gt;`                        ).join(&#8221;);                    }                } else {                    omittedBannerEl.classList.add(&#8216;hidden&#8217;);                }            }            \/\/ Update Mailto link in Section IX Hub            const mailtoEl = document.getElementById(&#8216;btnHubMailtoLink&#8217;);            if (mailtoEl) {                const subj = encodeURIComponent(`Physiological &amp; Longevity Dossier [${refId}] &#8211; ${data.fullName}`);                const body = encodeURIComponent(                    `Dear Executive Editor (Ground Report India International Journal Australia),nn` +                    `Please find my Physiological, Anthropometric, Fasting &amp; Longevity Assessment summary below (Official A4 PDF attached if downloaded):nn` +                    `- Subject Name: ${data.fullName}n` +                    `- Email Address: ${data.userEmail || &#8221;}n` +                    `- Mobile Number: ${data.userMobile || &#8221;}n` +                    `- WhatsApp Number: ${data.userWhatsapp || &#8221;}n` +                    `- Protocol ID: ${refId}n` +                    `- Timestamp: ${nowStr}n` +                    `- BMI: ${fmt(metrics.bmi, 1, &#8216; kg\/m\u00b2&#8217;)}n` +                    `- Consensus Body Fat %: ${fmt(metrics.consensusBodyFatPct, 1, &#8216;%&#8217;)}n` +                    `- Waist-to-Hip Ratio (WHR): ${fmt(metrics.waistToHipRatio, 2, &#8221;)}n` +                    `- Waist-to-Thigh Ratio (WTR): ${fmt(metrics.waistToThighRatio, 2, &#8221;)}n` +                    `- Nocturnal Vagal Dip: ${fmt(metrics.rhrShrDipPct, 1, &#8216;%&#8217;)}n` +                    `- Weekly Exercise Load: ${metrics.exerciseAnalytics.weeklyTotalMetMinutes !== null ? Math.round(metrics.exerciseAnalytics.weeklyTotalMetMinutes) + &#8216; MET-mins\/wk&#8217; : &#8221;}n` +                    `- Water Fast Phase: ${metrics.waterFastKinetics.phaseLabel}n` +                    `- Dry Fast Tier: ${metrics.dryFastSafety.tierLabel}n` +                    `- Composite Longevity Index: ${metrics.longevityScore} \/ 100 (${metrics.longevityTier})n`                );                mailtoEl.href = `mailto:${APP_STATE.editorialRecipient}?subject=${subj}&amp;body=${body}`;            }            \/\/ Section I: Baseline Summary Strip            const baselineItems = [                { label: &#8216;Sex \/ Age&#8217;, val: [data.biologicalSex || &#8221;, data.ageYears !== null ? `${data.ageYears} yrs` : &#8221;].filter(Boolean).join(&#8216; \u00b7 &#8216;) },                { label: &#8216;Email \/ Mobile \/ WhatsApp&#8217;, val: [data.userEmail || &#8221;, data.userMobile ? `Mob: ${data.userMobile}` : &#8221;, data.userWhatsapp ? `WA: ${data.userWhatsapp}` : &#8221;].filter(Boolean).join(&#8216; \u00b7 &#8216;) },                { label: &#8216;Weight \/ Height&#8217;, val: [fmt(data.weightKg, 1, &#8216; kg&#8217;), fmt(data.heightCm, 1, &#8216; cm&#8217;)].filter(Boolean).join(&#8216; \/ &#8216;) },                { label: &#8216;Waist \/ Hip \/ Thigh&#8217;, val: [fmt(data.waistCm, 1, &#8216; cm&#8217;), fmt(data.hipCm, 1, &#8216; cm&#8217;), fmt(data.thighCm, 1, &#8216; cm&#8217;)].filter(Boolean).join(&#8216; \/ &#8216;) },                { label: &#8216;Wrist \/ Neck Girth&#8217;, val: [fmt(data.wristCm, 1, &#8216; cm&#8217;), fmt(data.neckCm, 1, &#8216; cm&#8217;)].filter(Boolean).join(&#8216; \/ &#8216;) },                { label: &#8216;RHR \/ SHR \/ Meals&#8217;, val: [data.rhr !== null ? `${data.rhr} bpm` : &#8221;, data.shr !== null ? `${data.shr} bpm` : &#8221;, data.mealsPerDay !== null ? `${data.mealsPerDay} meals\/d` : &#8221;].filter(Boolean).join(&#8216; \u00b7 &#8216;) },                { label: &#8216;Diet &amp; Fasting&#8217;, val: [data.dietaryProfile || &#8221;, data.waterFast.enabled ? `Water Fast (${data.waterFast.durationHours !== null ? data.waterFast.durationHours + &#8216;h&#8217; : &#8216;On&#8217;})` : &#8221;, data.dryFast.enabled ? `Dry Fast (${data.dryFast.durationHours !== null ? data.dryFast.durationHours + &#8216;h&#8217; : &#8216;On&#8217;})` : &#8221;].filter(Boolean).join(&#8216; \u00b7 &#8216;) }            ];            document.getElementById(&#8216;baselineSummaryGrid&#8217;).innerHTML = baselineItems.map(item =&gt; `                &lt;div&gt;                    &lt;span&gt;${escapeHtml(item.label)}&lt;\/span&gt;                    &lt;span&gt;${escapeHtml(item.val)}&lt;\/span&gt;                &lt;\/div&gt;            `).join(&#8221;);            \/\/ Section II: Core Metric Cards            const rl = metrics.referenceLimits;            const coreCards = [                {                    title: &#8216;Quetelet BMI&#8217;,                    value: fmt(metrics.bmi, 1, &#8216; kg\/m\u00b2&#8217;),                    sub: metrics.bmi !== null ? metrics.bmiCategory : &#8216;Blank: Requires Weight &amp; Height&#8217;,                    ref: rl.bmi                },                {                    title: &#8216;Consensus Body Fat %&#8217;,                    value: fmt(metrics.consensusBodyFatPct, 1, &#8216;%&#8217;),                    sub: metrics.consensusBodyFatPct !== null ? metrics.bodyFatCategory : &#8216;Blank: Requires Sex, Height &amp; Waist&#8217;,                    ref: rl.bodyFat                },                {                    title: &#8216;Lean Mass &amp; Bone Proxy&#8217;,                    value: metrics.leanBodyMassKg !== null ? `${metrics.leanBodyMassKg.toFixed(1)} kg LBM` : fmt(metrics.boneMineralMassKg, 2, &#8216; kg Bone&#8217;),                    sub: [metrics.lbmPct !== null ? `${metrics.lbmPct.toFixed(1)}% LBM` : &#8221;, metrics.boneMineralMassKg !== null ? `Bone: ${metrics.boneMineralMassKg.toFixed(2)} kg (${metrics.skeletalFrameSize})` : &#8221;].filter(Boolean).join(&#8216; \u00b7 &#8216;) || &#8216;Blank: Requires Weight\/Height\/Wrist&#8217;,                    ref: rl.lbm                },                {                    title: &#8216;Waist-to-Hip (WHR) &amp; WHtR&#8217;,                    value: [fmt(metrics.waistToHipRatio, 2, &#8216; WHR&#8217;), fmt(metrics.waistToHeightRatio, 2, &#8216; WHtR&#8217;)].filter(Boolean).join(&#8216; \/ &#8216;),                    sub: [metrics.whrRiskCategory, metrics.whtrCategory].filter(Boolean).join(&#8216; \u00b7 &#8216;) || &#8216;Blank: Requires Waist &amp; Hip\/Height&#8217;,                    ref: rl.whr                },                {                    title: &#8216;Waist-to-Thigh Ratio (WTR)&#8217;,                    value: fmt(metrics.waistToThighRatio, 2, &#8221;),                    sub: metrics.wtrInterpretation || &#8216;Blank: Requires Waist &amp; Mid-Thigh Girth&#8217;,                    ref: rl.wtr                },                {                    title: &#8216;Nocturnal Vagal HR Dip&#8217;,                    value: formatNocturnalDip(metrics.rhrShrDelta, metrics.rhrShrDipPct),                    sub: metrics.autonomicStatus || &#8216;Blank: Requires Wakeful RHR &amp; Sleeping SHR&#8217;,                    ref: rl.vagalDip                },                {                    title: &#8216;Fasting Kinetic Tier&#8217;,                    value: [metrics.waterFastKinetics.hours !== null ? `Water: ${metrics.waterFastKinetics.hours}h` : &#8221;, metrics.dryFastSafety.hours !== null ? `Dry: ${metrics.dryFastSafety.hours}h` : &#8221;].filter(Boolean).join(&#8216; | &#8216;),                    sub: [metrics.waterFastKinetics.phaseLabel, metrics.dryFastSafety.tierLabel].filter(Boolean).join(&#8216; \u00b7 &#8216;) || &#8216;Blank: No active fasting duration entered&#8217;,                    ref: rl.waterFastPhase                },                {                    title: &#8216;Composite Longevity Index&#8217;,                    value: `${metrics.longevityScore} \/ 100`,                    sub: metrics.longevityTier,                    ref: rl.longevityIndex                }            ];            document.getElementById(&#8216;coreMetricsCardsGrid&#8217;).innerHTML = coreCards.map(c =&gt; `                &lt;div&gt;                    &lt;div&gt;                        &lt;span&gt;${escapeHtml(c.title)}&lt;\/span&gt;                        &lt;div&gt;${escapeHtml(c.value)}&lt;\/div&gt;                        &lt;div&gt;${escapeHtml(c.sub)}&lt;\/div&gt;                    &lt;\/div&gt;                    &lt;div&gt;                        &lt;strong&gt;Ref:&lt;\/strong&gt; ${escapeHtml(c.ref)}                    &lt;\/div&gt;                &lt;\/div&gt;            `).join(&#8221;);            \/\/ Normative Reference Table            const wfk = metrics.waterFastKinetics;            const dfs = metrics.dryFastSafety;            const normRows = [                [&#8216;Quetelet BMI&#8217;, fmt(metrics.bmi, 1, &#8216; kg\/m\u00b2&#8217;), metrics.bmi !== null ? metrics.bmiCategory : &#8216;Withheld: Requires Total Weight &amp; Standing Height&#8217;, rl.bmi],                [&#8216;Consensus Body Fat %&#8217;, fmt(metrics.consensusBodyFatPct, 1, &#8216;%&#8217;), metrics.consensusBodyFatPct !== null ? `${metrics.bodyFatCategory} (${metrics.bodyFatMethodNote})` : &#8216;Withheld: Requires Sex, Standing Height &amp; Waist Girth&#8217;, rl.bodyFat],                [&#8216;Lean Body Mass (LBM)&#8217;, metrics.leanBodyMassKg !== null ? `${metrics.leanBodyMassKg.toFixed(1)} kg (${metrics.lbmPct.toFixed(1)}%)` : &#8221;, metrics.fatMassKg !== null ? `Fat Mass: ${metrics.fatMassKg.toFixed(1)} kg` : &#8216;Withheld: Requires Total Weight &amp; resolved Body Fat %&#8217;, rl.lbm],                [&#8216;Skeletal Bone Mineral Proxy&#8217;, fmt(metrics.boneMineralMassKg, 2, &#8216; kg&#8217;), metrics.skeletalFrameSize || &#8216;Withheld: Requires Standing Height &amp; Wrist Girth&#8217;, rl.boneMass],                [&#8216;Waist-to-Hip Ratio (WHR)&#8217;, fmt(metrics.waistToHipRatio, 2, &#8221;), metrics.whrRiskCategory || &#8216;Withheld: Requires Waist Girth &amp; Hip Girth&#8217;, rl.whr],                [&#8216;Waist-to-Thigh Ratio (WTR)&#8217;, fmt(metrics.waistToThighRatio, 2, &#8221;), metrics.wtrInterpretation || &#8216;Withheld: Requires Waist Girth &amp; Mid-Thigh Girth&#8217;, rl.wtr],                [&#8216;Waist-to-Height Ratio (WHtR)&#8217;, fmt(metrics.waistToHeightRatio, 2, &#8221;), metrics.whtrCategory || &#8216;Withheld: Requires Waist Girth &amp; Standing Height&#8217;, rl.whtr],                [&#8216;Wakeful Resting Heart Rate (RHR)&#8217;, data.rhr !== null ? `${data.rhr} bpm` : &#8221;, metrics.rhrCategory || &#8216;Withheld: Wakeful RHR left blank&#8217;, rl.rhr],                [&#8216;Sleeping Heart Rate (SHR)&#8217;, data.shr !== null ? `${data.shr} bpm` : &#8221;, metrics.shrCategory || &#8216;Withheld: Sleeping SHR left blank&#8217;, rl.shr],                [&#8216;Nocturnal Parasympathetic Dip&#8217;, formatNocturnalDip(metrics.rhrShrDelta, metrics.rhrShrDipPct), metrics.autonomicStatus || &#8216;Withheld: Requires Wakeful RHR &amp; Sleeping SHR&#8217;, rl.vagalDip],                [&#8216;Weekly Exercise Metabolic Load&#8217;, metrics.exerciseAnalytics.weeklyTotalMetMinutes !== null ? `${Math.round(metrics.exerciseAnalytics.weeklyTotalMetMinutes)} MET-mins\/wk` : &#8221;, metrics.exerciseAnalytics.weeklyTotalDurationMins !== null ? `${Math.round(metrics.exerciseAnalytics.weeklyTotalDurationMins)} mins\/wk across ${metrics.exerciseAnalytics.activeCount} modality(ies)` : &#8216;Withheld: Requires selected modality + session duration&#8217;, rl.weeklyMetMinutes],                [&#8216;Postprandial Walking Volume&#8217;, metrics.exerciseAnalytics.postMealWeeklyWalkMins !== null ? `${Math.round(metrics.exerciseAnalytics.postMealWeeklyWalkMins)} mins\/wk` : &#8221;, [data.postMealWalkStatus || &#8221;, data.postMealWalkDurationMins !== null ? `${data.postMealWalkDurationMins} mins\/walk` : &#8221;, data.postMealWalkDelay || &#8221;].filter(Boolean).join(&#8216; \u00b7 &#8216;) || &#8216;Withheld: Post-meal walking status or duration left blank&#8217;, rl.postMealWalk],                [&#8216;Water-Only Fasting Kinetic Phase&#8217;, wfk.hours !== null ? `${wfk.hours} hrs` : &#8221;, wfk.evaluationNote, rl.waterFastPhase],                [&#8216;Dry Fasting Osmotic Safety Tier&#8217;, dfs.hours !== null ? `${dfs.hours} hrs` : &#8221;, dfs.evaluationNote, rl.dryFastLimit],                [&#8216;Composite Longevity Index&#8217;, `${metrics.longevityScore} \/ 100`, metrics.longevityTier, rl.longevityIndex]            ];            document.getElementById(&#8216;normativeReferenceTableBody&#8217;).innerHTML = normRows.map(r =&gt; `                &lt;tr&gt;                    &lt;td&gt;${escapeHtml(r[0])}&lt;\/td&gt;                    &lt;td&gt;${escapeHtml(r[1])}&lt;\/td&gt;                    &lt;td&gt;${escapeHtml(r[2])}&lt;\/td&gt;                    &lt;td&gt;${escapeHtml(r[3])}&lt;\/td&gt;                &lt;\/tr&gt;            `).join(&#8221;);            \/\/ Section III: Exercise Bioenergetics Summary Cards &amp; Table            const exA = metrics.exerciseAnalytics;            const hasLowerBodySinkModality = exA.modalityBreakdowns.some(b =&gt; [&#8216;squats&#8217;, &#8216;outcycling&#8217;, &#8216;statcycling&#8217;, &#8216;stairs&#8217;, &#8216;resistance&#8217;].includes(b.id));            const exCards = [                {                    title: &#8216;Weekly Training Volume&#8217;,                    val: exA.weeklyTotalDurationMins !== null ? `${Math.round(exA.weeklyTotalDurationMins)} mins\/wk` : &#8221;,                    sub: exA.weeklyTotalDurationMins !== null ? `Aerobic: ${Math.round(exA.weeklyAerobicMins)}m \u00b7 Resistance\/Mobility: ${Math.round(exA.weeklyResistanceMobilityMins)}m` : &#8216;Blank: Enter session durations in Section 03&#8217;                },                {                    title: &#8216;Weekly Metabolic Load &amp; Kcal&#8217;,                    val: exA.weeklyTotalMetMinutes !== null ? `${Math.round(exA.weeklyTotalMetMinutes)} MET-mins\/wk` : &#8221;,                    sub: exA.weeklyExerciseKcal !== null ? `Estimated Burn: ~${Math.round(exA.weeklyExerciseKcal)} kcal\/week (ACSM equation)` : &#8216;Kcal requires Weight + Modality Duration&#8217;                },                {                    title: &#8216;Postprandial Walking Kinetics&#8217;,                    val: exA.postMealWeeklyWalkMins !== null ? `${Math.round(exA.postMealWeeklyWalkMins)} mins\/wk` : (data.postMealWalkStatus || &#8221;),                    sub: [data.postMealWalkStatus, data.postMealWalkDurationMins !== null ? `${data.postMealWalkDurationMins} mins\/walk` : &#8221;, data.postMealWalkDelay].filter(Boolean).join(&#8216; \u00b7 &#8216;) || &#8216;Blank: Post-meal walking not specified&#8217;                },                {                    title: &#8216;Post-Absorptive \/ Fasted Ratio&#8217;,                    val: exA.timedSessionsCount &gt; 0 ? `${exA.fastedSessionsCount} \/ ${exA.timedSessionsCount} Modalities (\u22653h)` : (data.hoursAfterLastIntake !== null ? `${data.hoursAfterLastIntake} hrs post-kcal` : &#8221;),                    sub: exA.timedSessionsCount &gt; 0 ? &#8216;Modalities performed \u22653h after last &gt;0 kcal intake&#8217; : &#8216;Blank: Hrs after last &gt;0 kcal intake not specified&#8217;                },                {                    title: &#8216;Primary Circadian Window&#8217;,                    val: data.primaryCircadianWindow || &#8221;,                    sub: data.hoursAfterLastIntake !== null ? `Global Post-Intake Latency: ${data.hoursAfterLastIntake} hrs` : &#8216;Blank: Primary exercise window not specified&#8217;                },                {                    title: &#8216;Lower-Body GLUT4 Sink Recruitment&#8217;,                    val: exA.activeCount &gt; 0 ? (hasLowerBodySinkModality ? &#8216;Active Femoral\/Gluteal Load&#8217; : &#8216;Upper\/Core\/Mobility Only&#8217;) : &#8221;,                    sub: hasLowerBodySinkModality ? &#8216;Includes Squats, Cycling, Stairs, or Heavy Resistance&#8217; : &#8216;Blank or no compound lower-extremity modality selected&#8217;                }            ];            document.getElementById(&#8216;exerciseSummaryCardsGrid&#8217;).innerHTML = exCards.map(c =&gt; `                &lt;div&gt;                    &lt;span&gt;${escapeHtml(c.title)}&lt;\/span&gt;                    &lt;div&gt;${escapeHtml(c.val)}&lt;\/div&gt;                    &lt;div&gt;${escapeHtml(c.sub)}&lt;\/div&gt;                &lt;\/div&gt;            `).join(&#8221;);            document.getElementById(&#8216;activeExerciseTableBody&#8217;).innerHTML = exA.modalityBreakdowns.length &gt; 0                ? exA.modalityBreakdowns.map(m =&gt; `                    &lt;tr&gt;                        &lt;td&gt;${escapeHtml(m.modality)}${m.metValue !== null ? ` (${m.metValue.toFixed(1)} METs)` : &#8221;}&lt;\/td&gt;                        &lt;td&gt;${escapeHtml(m.sessionsDisplay)}&lt;\/td&gt;                        &lt;td&gt;${escapeHtml(m.durationWindowDisplay)}&lt;\/td&gt;                        &lt;td&gt;${escapeHtml(m.postIntakeDisplay)}&lt;\/td&gt;                        &lt;td&gt;${m.weeklyMetMins !== null ? `${Math.round(m.weeklyMetMins)} MET-m (${Math.round(m.weeklyMins)}m)` : &#8221;}&lt;\/td&gt;                        &lt;td&gt;${m.weeklyKcal !== null ? `&lt;strong&gt;~${Math.round(m.weeklyKcal)} kcal\/wk&lt;\/strong&gt; \u00b7 ` : &#8221;}${escapeHtml(m.substrateState)}&lt;\/td&gt;                    &lt;\/tr&gt;                `).join(&#8221;)                : `&lt;tr&gt;&lt;td colspan=&#8221;6&#8243;&gt;No exercise modalities checked in Section 03. Quantitative cells remain strictly blank.&lt;\/td&gt;&lt;\/tr&gt;`;            \/\/ Section IV: Active Modality Deep-Dive Cards &amp; 13-Modality Comparative Matrix            const activeItems = exA.modalityHealthCatalogue.filter(i =&gt; i.isActive);            document.getElementById(&#8216;activeExerciseImpactsCards&#8217;).innerHTML = activeItems.length &gt; 0                ? activeItems.map(item =&gt; `                    &lt;div&gt;                        &lt;div&gt;                            &lt;span&gt;${escapeHtml(item.modality)}&lt;\/span&gt;                            &lt;span&gt;                                ${item.computedBreakdown &amp;&amp; item.computedBreakdown.weeklyMetMins !== null ? `${Math.round(item.computedBreakdown.weeklyMetMins)} MET-mins\/wk` : &#8216;Active Modality&#8217;}                            &lt;\/span&gt;                        &lt;\/div&gt;                        &lt;div&gt;                            &lt;div&gt;&lt;strong&gt;Cardiovascular Impact:&lt;\/strong&gt; ${escapeHtml(item.cardioImpact)}&lt;\/div&gt;                            &lt;div&gt;&lt;strong&gt;Metabolic &amp;amp; GLUT4 Impact:&lt;\/strong&gt; ${escapeHtml(item.metabolicImpact)}&lt;\/div&gt;                            &lt;div&gt;&lt;strong&gt;Musculoskeletal &amp;amp; WTR:&lt;\/strong&gt; ${escapeHtml(item.musculoskeletalImpact)}&lt;\/div&gt;                            &lt;div&gt;&lt;strong&gt;Recovery &amp;amp; Synergy:&lt;\/strong&gt; ${escapeHtml(item.synergyWithFasting)}&lt;\/div&gt;                        &lt;\/div&gt;                    &lt;\/div&gt;                `).join(&#8221;)                : &#8221;;            document.getElementById(&#8216;exerciseHealthImpactsMatrixBody&#8217;).innerHTML = exA.modalityHealthCatalogue.map(item =&gt; `                &lt;tr&gt;                    &lt;td&gt;${escapeHtml(item.modality)}&lt;\/td&gt;                    &lt;td&gt;${item.isActive ? &#8216;ACTIVE&#8217; : &#8216;Blank&#8217;}&lt;\/td&gt;                    &lt;td&gt;${escapeHtml(item.cardioImpact)}&lt;\/td&gt;                    &lt;td&gt;${escapeHtml(item.metabolicImpact)}&lt;\/td&gt;                    &lt;td&gt;${escapeHtml(item.musculoskeletalImpact)} &lt;span&gt;[${escapeHtml(item.synergyWithFasting)}]&lt;\/span&gt;&lt;\/td&gt;                &lt;\/tr&gt;            `).join(&#8221;);            \/\/ Section V: Thigh Circumference &amp; WTR Narrative            const hasSquats = exA.modalityBreakdowns.some(b =&gt; b.id === &#8216;squats&#8217;);            document.getElementById(&#8216;thighAnalysisNarrative&#8217;).innerHTML = `                &lt;p&gt;                    &lt;strong&gt;Why Standard Military Equations Omit the Thigh vs. Why Longevity Science Includes It:&lt;\/strong&gt; Traditional military body-fat equations (such as the US Navy circumference model) deliberately exclude mid-thigh girth because highly developed quadriceps and hamstring musculature in athletic individuals inflates circumference measurements, causing simple tape equations to misclassify muscular thighs as adiposity. Conversely, contemporary cardiometabolic epidemiology demonstrates that a larger mid-thigh circumference relative to the waist\u2014quantified by a &lt;strong&gt;Waist-to-Thigh Ratio (WTR &amp;lt; 1.50, optimal &amp;lt; 1.45)&lt;\/strong&gt;\u2014is one of the strongest non-invasive predictors of insulin sensitivity and lower all-cause cardiovascular mortality.                &lt;\/p&gt;                &lt;p&gt;                    &lt;strong&gt;Subject Evaluation &amp;amp; Lower-Extremity GLUT4 Sinks:&lt;\/strong&gt; ${                        metrics.waistToThighRatio !== null                            ? `Your recorded Waist-to-Thigh Ratio is &lt;strong&gt;${metrics.waistToThighRatio.toFixed(2)}&lt;\/strong&gt; (${metrics.wtrInterpretation}), derived from a Waist Girth of &lt;strong&gt;${data.waistCm.toFixed(1)} cm&lt;\/strong&gt; and a Mid-Thigh Girth of &lt;strong&gt;${data.thighCm.toFixed(1)} cm&lt;\/strong&gt;.`                            : &#8216;Waist or Mid-Thigh circumference was left blank; your numeric WTR cell is therefore kept strictly blank under the Zero-Defaulting Rule.&#8217;                    } ${                        hasSquats                            ? &#8216;Your active inclusion of &lt;strong&gt;Squats&lt;\/strong&gt; directly recruits the vastus lateralis, rectus femoris, and gluteus maximus, expanding peripheral GLUT4 glucose disposal sinks and actively lowering WTR.&#8217;                            : &#8216;Incorporating compound lower-body loading (such as bodyweight or goblet squats, cycling, and stair ascent) expands femoral myofibrillar cross-sectional area and insulin-independent GLUT4 translocation.&#8217;                    }                &lt;\/p&gt;            `;            \/\/ Section VI: 2024 UK Prolonged Fasting Proteomics &amp; Dry Fasting Dose-Response Narrative            document.getElementById(&#8216;proteomicNarrativeBody&#8217;).innerHTML = `                &lt;p&gt;                    &lt;strong&gt;1. Prolonged Water-Only Fasting Proteomics (2024 UK Research \u2014 Pietzke et al., &lt;em&gt;Nature Metabolism&lt;\/em&gt;):&lt;\/strong&gt; High-throughput Olink profiling of ~3,000 plasma proteins across 7-day water-only fasting at Queen Mary University of London and the Francis Crick Institute established that multi-organ systemic proteome remodeling requires a strict &lt;strong&gt;&amp;ge;72-hour (3-day) threshold&lt;\/strong&gt;. During &lt;strong&gt;Phase I (0\u201324h)&lt;\/strong&gt;, hepatic glycogen depletes and insulin\/leptin decline; during &lt;strong&gt;Phase II (24\u201372h)&lt;\/strong&gt;, hepatic HMGCS2 ketogenesis elevates &amp;beta;-hydroxybutyrate (3\u20136 mmol\/L), FGF21 rises, and ULK1\/PINK1-Parkin mitophagy clears damaged mitochondria; and upon crossing &lt;strong&gt;Phase III (&amp;ge;72h to 168h)&lt;\/strong&gt;, &lt;strong&gt;1,044 plasma proteins&lt;\/strong&gt; abruptly reconfigure across all major organs\u2014suppressing pro-inflammatory &lt;strong&gt;SWAP70&lt;\/strong&gt;, remodeling brain perineuronal net &lt;strong&gt;HYOU1 (GRP170) &amp;amp; tenascin-R (TNR)&lt;\/strong&gt;, oxidizing 30\u201350%+ of intrahepatic triglycerides, activating Lgr5+ intestinal stem cells, and preserving core skeletal myofibrillar protein.                &lt;\/p&gt;                &lt;p&gt;                    &lt;strong&gt;Subject Water-Fasting Evaluation:&lt;\/strong&gt; ${wfk.evaluationNote}.                &lt;\/p&gt;                &lt;p&gt;                    &lt;strong&gt;2. Dry Fasting Dose-Response Kinetics (&amp;le;16h Adaptive Window vs. &amp;gt;24\u201372h+ Hypertonic Hazard):&lt;\/strong&gt; While intermittent diurnal dry fasting (&lt;strong&gt;&amp;le;16 hours&lt;\/strong&gt;) induces mild, reversible tonicity that upregulates erythroid &lt;strong&gt;Nrf2&lt;\/strong&gt; antioxidant enzymes and &lt;strong&gt;NFAT5 (TonEBP)&lt;\/strong&gt; osmoprotective chaperones without renal compromise, extending dry fasting beyond &lt;strong&gt;24 to 72+ hours&lt;\/strong&gt; creates an inescapable biophysical deficit (~300\u2013400 mL\/day endogenous fat-derived metabolic water vs. ~1,200\u20131,500 mL\/day obligatory insensible + renal water loss). This drives hypernatremia, vasopressin-induced renal medullary polyol toxicity, competitive &lt;strong&gt;URAT1&lt;\/strong&gt; uric acid crystallization, and pre-renal acute kidney injury (AKI) risk. &lt;strong&gt;Subject Dry-Fasting Evaluation:&lt;\/strong&gt; ${dfs.evaluationNote}.                &lt;\/p&gt;            `;            \/\/ Section VII: Bidirectional Pathological Matrix            document.getElementById(&#8216;pathologyCrossInputCards&#8217;).innerHTML = metrics.pathologyInteractions.crossInputCards.map(c =&gt; `                &lt;div&gt;                    &lt;div&gt;${escapeHtml(c.domain)}&lt;\/div&gt;                    &lt;p&gt;&lt;strong&gt;Impact of Inputs on Risk:&lt;\/strong&gt; ${escapeHtml(c.impactTo)}&lt;\/p&gt;                    &lt;p&gt;&lt;strong&gt;Impact of Condition on Biomarkers:&lt;\/strong&gt; ${escapeHtml(c.impactFrom)}&lt;\/p&gt;                &lt;\/div&gt;            `).join(&#8221;);            document.getElementById(&#8216;pathologyInteractionMatrixBody&#8217;).innerHTML = metrics.pathologyInteractions.conditionMatrix.map(c =&gt; `                &lt;tr&gt;                    &lt;td&gt;${escapeHtml(c.cond)}&lt;\/td&gt;                    &lt;td&gt;${c.isActive ? &#8216;REPORTED&#8217; : &#8216;Blank&#8217;}&lt;\/td&gt;                    &lt;td&gt;${escapeHtml(c.impactTo)}&lt;\/td&gt;                    &lt;td&gt;${escapeHtml(c.impactFrom)}&lt;\/td&gt;                &lt;\/tr&gt;            `).join(&#8221;);            \/\/ Personalized Risk Warnings            document.getElementById(&#8216;riskWarningsContainer&#8217;).innerHTML = metrics.riskWarnings.map(w =&gt; `                &lt;div&gt;                    &lt;span&gt;&amp;bull;&lt;\/span&gt;                    &lt;p&gt;${escapeHtml(w)}&lt;\/p&gt;                &lt;\/div&gt;            `).join(&#8221;);            \/\/ Section VIII: Dependency Audit Table            document.getElementById(&#8216;dependencyAuditTableBody&#8217;).innerHTML = metrics.dependencyAuditLog.map(a =&gt; `                &lt;tr&gt;                    &lt;td&gt;${escapeHtml(a.formulaName)}&lt;\/td&gt;                    &lt;td&gt;${escapeHtml(a.requiredVars)}&lt;\/td&gt;                    &lt;td&gt;${escapeHtml(a.status)}&lt;\/td&gt;                    &lt;td&gt;${escapeHtml(a.handlingNote)}&lt;\/td&gt;                &lt;\/tr&gt;            `).join(&#8221;);            APP_STATE.lastAssessment = {                referenceId: refId,                timestamp: nowStr,                isSample: isSampleSubject,                data,                metrics            };            if (shouldScroll) {                reportSection.scrollIntoView({ behavior: &#8216;smooth&#8217;, block: &#8216;start&#8217; });            }        }        function sanitizePdfText(input) {            if (input === null || input === undefined) return &#8221;;            return String(input)                .replace(\/&amp;amp;\/g, &#8216;&amp;&#8217;)                .replace(\/&amp;lt;\/g, &#8216;&lt;&#8216;)                .replace(\/&amp;gt;\/g, &#8216;&gt;&#8217;)                .replace(\/&amp;ge;\/g, &#8216;&gt;=&#8217;)                .replace(\/&amp;le;\/g, &#8216;&lt;=&#8217;)                .replace(\/&amp;beta;\/g, &#8216;beta&#8217;)                .replace(\/&amp;alpha;\/g, &#8216;alpha&#8217;)                .replace(\/&amp;delta;\/g, &#8216;delta&#8217;)                .replace(\/u00A0\/g, &#8216; &#8216;)                .replace(\/[\u2019\u2018]\/g, &#8220;&#8216;&#8221;)                .replace(\/[\u201c\u201d]\/g, &#8216;&#8221;&#8216;)                .replace(\/\u2026\/g, &#8216;&#8230;&#8217;)                .replace(\/\u2265\/g, &#8216;&gt;=&#8217;)                .replace(\/\u2264\/g, &#8216;&lt;=&#8217;)                .replace(\/\u2192\/g, &#8216;-&gt;&#8217;)                .replace(\/&#x2194;\/g, &#8216;&lt;-&gt;&#8217;)                .replace(\/\u2248\/g, &#8216;~&#8217;)                .replace(\/\u00d7\/g, &#8216;x&#8217;)                .replace(\/\u0394\/g, &#8216;Delta &#8216;)                .replace(\/\u2032\/g, &#8220;&#8216;&#8221;)                .replace(\/\u03b2\/g, &#8216;beta&#8217;)                .replace(\/\u03b1\/g, &#8216;alpha&#8217;)                .replace(\/\u03b4\/g, &#8216;delta&#8217;)                .replace(\/\u03b5\/g, &#8216;epsilon&#8217;)                .replace(\/\u03b8\/g, &#8216;theta&#8217;)                .replace(\/\u00b5\/g, &#8216;u&#8217;)                .replace(\/\u00b0\/g, &#8216; deg&#8217;)                .replace(\/\u207a\/g, &#8216;+&#8217;)                .replace(\/\u207b\/g, &#8216;-&#8216;)                .replace(\/\u00b2\/g, &#8216;^2&#8217;)                .replace(\/\u2082\/g, &#8216;2&#8217;)                .replace(\/\u2083\/g, &#8216;3&#8217;)                .replace(\/\u2084\/g, &#8216;4&#8217;)                .replace(\/\u2013\/g, &#8216;-&#8216;)                .replace(\/\u2014\/g, &#8216; &#8211; &#8216;)                .replace(\/\u00b7\/g, &#8216;|&#8217;)                .replace(\/[\u2022&#x25aa;]\/g, &#8216;-&#8216;);        }        function sanitizeTableRows(rows) {            return rows.map(row =&gt; row.map(cell =&gt; sanitizePdfText(cell)));        }        function syncAllContactFields(sourceEmail, sourceWhatsapp) {            const emailIds = [&#8216;userEmail&#8217;, &#8216;sec6UserEmail&#8217;, &#8216;hubUserEmail&#8217;];            const whatsappIds = [&#8216;userWhatsapp&#8217;, &#8216;sec6UserWhatsapp&#8217;, &#8216;hubUserWhatsapp&#8217;];            if (sourceEmail !== undefined &amp;&amp; sourceEmail !== null) {                emailIds.forEach(id =&gt; {                    const el = document.getElementById(id);                    if (el &amp;&amp; el.value !== sourceEmail) el.value = sourceEmail;                });            }            if (sourceWhatsapp !== undefined &amp;&amp; sourceWhatsapp !== null) {                whatsappIds.forEach(id =&gt; {                    const el = document.getElementById(id);                    if (el &amp;&amp; el.value !== sourceWhatsapp) el.value = sourceWhatsapp;                });            }        }        function validateResearchContactRequirements(preferredFocusSection = &#8216;sec6&#8217;) {            const alertEl = document.getElementById(&#8216;validationAlert&#8217;);            const emailVal = (document.getElementById(&#8216;userEmail&#8217;)?.value || document.getElementById(&#8216;sec6UserEmail&#8217;)?.value || document.getElementById(&#8216;hubUserEmail&#8217;)?.value || &#8221;).trim();            const whatsappVal = (document.getElementById(&#8216;userWhatsapp&#8217;)?.value || document.getElementById(&#8216;sec6UserWhatsapp&#8217;)?.value || document.getElementById(&#8216;hubUserWhatsapp&#8217;)?.value || &#8221;).trim();            \/\/ Keep all three locations synchronized            syncAllContactFields(emailVal, whatsappVal);            const isValidEmail = \/^[^s@]+@[^s@]+.[^s@]+$\/.test(emailVal);            const whatsappDigits = whatsappVal.replace(\/[^d]\/g, &#8221;);            const isValidWhatsapp = whatsappDigits.length &gt;= 7;            if (!isValidEmail || !isValidWhatsapp) {                const missingItems = [];                if (!isValidEmail) missingItems.push(&#8216;a valid Email Address&#8217;);                if (!isValidWhatsapp) missingItems.push(&#8216;a valid WhatsApp Number (at least 7 digits)&#8217;);                const errMsg = `Mandatory Contact Requirement: To send your report to our Research Desk, please provide ${missingItems.join(&#8216; and &#8216;)} in Section 06 or Section 01 (or uncheck the Research Contribution Consent box in Section 06 for private local calculation only).`;                if (alertEl) {                    alertEl.textContent = errMsg;                    alertEl.classList.remove(&#8216;hidden&#8217;);                }                const statusEl = document.getElementById(&#8216;dispatchStatusBanner&#8217;);                const hubFb = document.getElementById(&#8216;hubDispatchFeedback&#8217;);                if (statusEl) statusEl.textContent = errMsg;                if (hubFb) hubFb.textContent = errMsg;                const targetEmailEl = preferredFocusSection === &#8216;hub&#8217;                    ? document.getElementById(&#8216;hubUserEmail&#8217;)                    : (document.getElementById(&#8216;sec6UserEmail&#8217;) || document.getElementById(&#8216;userEmail&#8217;));                const targetWhatsappEl = preferredFocusSection === &#8216;hub&#8217;                    ? document.getElementById(&#8216;hubUserWhatsapp&#8217;)                    : (document.getElementById(&#8216;sec6UserWhatsapp&#8217;) || document.getElementById(&#8216;userWhatsapp&#8217;));                if (!isValidEmail &amp;&amp; targetEmailEl) {                    targetEmailEl.focus();                    targetEmailEl.scrollIntoView({ behavior: &#8216;smooth&#8217;, block: &#8216;center&#8217; });                } else if (!isValidWhatsapp &amp;&amp; targetWhatsappEl) {                    targetWhatsappEl.focus();                    targetWhatsappEl.scrollIntoView({ behavior: &#8216;smooth&#8217;, block: &#8216;center&#8217; });                }                return false;            }            if (alertEl) alertEl.classList.add(&#8216;hidden&#8217;);            return true;        }        function syncContactRequiredBadges() {            const consentChecked = document.getElementById(&#8216;autoDispatchToggle&#8217;)?.checked;            [&#8217;emailReqBadge&#8217;, &#8216;whatsappReqBadge&#8217;, &#8216;sec6EmailReqBadge&#8217;, &#8216;sec6WhatsappReqBadge&#8217;].forEach(id =&gt; {                const badge = document.getElementById(id);                if (badge) badge.classList.toggle(&#8216;hidden&#8217;, !consentChecked);            });            [&#8216;userEmail&#8217;, &#8216;userWhatsapp&#8217;, &#8216;sec6UserEmail&#8217;, &#8216;sec6UserWhatsapp&#8217;].forEach(id =&gt; {                const el = document.getElementById(id);                if (el) el.required = Boolean(consentChecked);            });        }        function generateOfficialA4Pdf() {            const statusEl = document.getElementById(&#8216;dispatchStatusBanner&#8217;);            if (!APP_STATE.lastAssessment) {                if (statusEl) statusEl.textContent = &#8216;Please click &#8220;Calculate &amp; Generate Assessment&#8221; first to generate your report before exporting to A4 PDF.&#8217;;                return;            }            if (!window.jspdf || !window.jspdf.jsPDF) {                if (statusEl) statusEl.textContent = &#8216;PDF Engine Notice: jsPDF library is still loading or blocked by network settings. Please use browser Print (Ctrl\/Cmd + P) to save as A4 PDF.&#8217;;                return;            }            \/\/ Refresh baseline data in-place so any Email\/Mobile\/WhatsApp typed in Section IX after calculation is included in the PDF            const latestData = collectFormInputs();            if (latestData.fullName) {                const latestMetrics = executePhysiologicalCalculations(latestData);                renderReportUI(latestData, latestMetrics, false);            }            const { referenceId, timestamp, data, metrics } = APP_STATE.lastAssessment;            const { jsPDF } = window.jspdf;            const doc = new jsPDF({ orientation: &#8216;portrait&#8217;, unit: &#8216;mm&#8217;, format: &#8216;a4&#8217; });            const pageWidth = 210;            const pageHeight = 297;            const margin = 15;            const usableWidth = pageWidth &#8211; margin * 2; \/\/ 180mm            let cursorY = 22;            const ensureSpace = (neededMm) =&gt; {                if (cursorY + neededMm &gt; pageHeight &#8211; 20) {                    doc.addPage();                    cursorY = 22;                }            };            const printSectionHeading = (titleText) =&gt; {                ensureSpace(12);                cursorY += 2;                doc.setFont(&#8216;helvetica&#8217;, &#8216;bold&#8217;);                doc.setFontSize(9.2);                doc.setTextColor(15, 118, 110);                const headingLines = doc.splitTextToSize(sanitizePdfText(titleText), usableWidth);                headingLines.forEach(line =&gt; {                    doc.text(line, margin, cursorY);                    cursorY += 4.3;                });                cursorY += 1;            };            const printParagraphSection = (titleText, paragraphs) =&gt; {                printSectionHeading(titleText);                doc.setFont(&#8216;helvetica&#8217;, &#8216;normal&#8217;);                doc.setFontSize(8.0);                doc.setTextColor(51, 65, 85);                paragraphs.forEach(p =&gt; {                    const cleanText = sanitizePdfText(p || &#8221;).replace(\/s+\/g, &#8216; &#8216;).trim();                    if (!cleanText) return;                    const lines = doc.splitTextToSize(cleanText, usableWidth);                    ensureSpace(lines.length * 4.1 + 3);                    lines.forEach(line =&gt; {                        doc.text(line, margin, cursorY);                        cursorY += 4.0;                    });                    cursorY += 2.2;                });                cursorY += 1.5;            };            \/\/ Title Banner            doc.setFillColor(15, 118, 110);            doc.rect(margin, cursorY, usableWidth, 17, &#8216;F&#8217;);            doc.setFont(&#8216;helvetica&#8217;, &#8216;bold&#8217;);            doc.setFontSize(10.2);            doc.setTextColor(255, 255, 255);            doc.text(&#8216;PHYSIOLOGICAL, ANTHROPOMETRIC, FASTING &amp; LONGEVITY DOSSIER&#8217;, margin + 4, cursorY + 5.2);            doc.setFontSize(7.1);            doc.setFont(&#8216;helvetica&#8217;, &#8216;bold&#8217;);            doc.setTextColor(204, 251, 241);            doc.text(&#8216;QMUL PHURI 2024 \/ US Navy \/ Framingham \/ Evidence-Based Anthropometry, Bone Index (OSTA), &amp; 2024 QMUL (Nature Metabolism) Fasting Models&#8217;, margin + 4, cursorY + 10.0);            doc.setFontSize(7.6);            doc.setFont(&#8216;helvetica&#8217;, &#8216;normal&#8217;);            doc.setTextColor(255, 255, 255);            const pdfSubjLabel = APP_STATE.lastAssessment.isSample ? `${data.fullName} [SAMPLE \/ DEMO PROFILE]` : data.fullName;            doc.text(sanitizePdfText(`Subject: ${pdfSubjLabel}   |   Protocol ID: ${referenceId}   |   Generated: ${timestamp}`), margin + 4, cursorY + 14.8);            cursorY += 21;            \/\/ Sample Profile &amp; Omitted Fields Notice in PDF            const statusNotices = [];            if (APP_STATE.lastAssessment.isSample) {                statusNotices.push(`SAMPLE PROFILE DATA NOTICE: This dossier was generated using pre-populated demonstration data (${data.fullName}). All scores and evaluations reflect this sample profile rather than a real participant, and automated research transmission is disabled.`);            }            if (data.omittedInputsList &amp;&amp; data.omittedInputsList.length &gt; 0) {                statusNotices.push(`OMITTED FIELDS NOTICE (${data.omittedInputsList.length} Field(s) Left Blank): The following inputs were left empty: ${data.omittedInputsList.join(&#8216;, &#8216;)}. Under the strict Zero-Defaulting Protocol, no synthetic values were substituted; dependent indices remain blank and are itemized in Section VI.`);            } else {                statusNotices.push(&#8216;COMPLETE DATA VERIFICATION: All core demographic, anthropometric, autonomic, and lifestyle fields were populated.&#8217;);            }            printParagraphSection(&#8216;DATA COMPLETENESS &amp; PROFILE STATUS NOTICE&#8217;, statusNotices);            \/\/ Section I: Baseline Input Summary Table            printSectionHeading(&#8216;I. SUBJECT BASELINE &amp; RECORDED INPUTS (ZERO-DEFAULTING PROTOCOL)&#8217;);            doc.autoTable({                startY: cursorY,                margin: { top: 22, bottom: 20, left: margin, right: margin },                rowPageBreak: &#8216;avoid&#8217;,                theme: &#8216;grid&#8217;,                styles: { font: &#8216;helvetica&#8217;, fontSize: 7.4, cellPadding: 1.8, textColor: [30, 41, 59], overflow: &#8216;linebreak&#8217; },                headStyles: { fillColor: [51, 65, 85], textColor: [255, 255, 255], fontStyle: &#8216;bold&#8217; },                columnStyles: {                    0: { cellWidth: 40, fontStyle: &#8216;bold&#8217; },                    1: { cellWidth: 50 },                    2: { cellWidth: 40, fontStyle: &#8216;bold&#8217; },                    3: { cellWidth: 50 }                },                head: [[&#8216;Parameter&#8217;, &#8216;Recorded Input&#8217;, &#8216;Parameter&#8217;, &#8216;Recorded Input&#8217;]],                body: sanitizeTableRows([                    [&#8216;Full Name&#8217;, data.fullName, &#8216;Biological Sex&#8217;, data.biologicalSex || &#8221;],                    [&#8216;Email Address&#8217;, data.userEmail || &#8221;, &#8216;Mobile \/ WhatsApp&#8217;, [data.userMobile ? `Mob: ${data.userMobile}` : &#8221;, data.userWhatsapp ? `WA: ${data.userWhatsapp}` : &#8221;].filter(Boolean).join(&#8216; | &#8216;)],                    [&#8216;Age (years)&#8217;, data.ageYears !== null ? `${data.ageYears}` : &#8221;, &#8216;Dietary Profile&#8217;, data.dietaryProfile || &#8221;],                    [&#8216;Total Weight&#8217;, fmt(data.weightKg, 1, &#8216; kg&#8217;), &#8216;Standing Height&#8217;, fmt(data.heightCm, 1, &#8216; cm&#8217;)],                    [&#8216;Waist \/ Hip Girth&#8217;, [fmt(data.waistCm, 1, &#8216; cm&#8217;), fmt(data.hipCm, 1, &#8216; cm&#8217;)].filter(Boolean).join(&#8216; \/ &#8216;), &#8216;Mid-Thigh \/ Wrist \/ Neck&#8217;, [fmt(data.thighCm, 1, &#8216; cm&#8217;), fmt(data.wristCm, 1, &#8216; cm&#8217;), fmt(data.neckCm, 1, &#8216; cm&#8217;)].filter(Boolean).join(&#8216; \/ &#8216;)],                    [&#8216;Wakeful RHR \/ SHR&#8217;, [data.rhr !== null ? `${data.rhr} bpm` : &#8221;, data.shr !== null ? `${data.shr} bpm` : &#8221;].filter(Boolean).join(&#8216; \/ &#8216;), &#8216;Meals per Day (&gt;0 kcal)&#8217;, data.mealsPerDay !== null ? `${data.mealsPerDay}` : &#8221;],                    [&#8216;Primary Exercise Window&#8217;, data.primaryCircadianWindow || &#8221;, &#8216;Hrs After Last Meal (&gt;0 kcal)&#8217;, data.hoursAfterLastIntake !== null ? `${data.hoursAfterLastIntake} hrs` : &#8221;],                    [&#8216;Post-Meal Walk Status&#8217;, [data.postMealWalkStatus || &#8221;, data.postMealWalkDurationMins !== null ? `${data.postMealWalkDurationMins} mins` : &#8221;, data.postMealWalkDelay || &#8221;].filter(Boolean).join(&#8216; | &#8216;), &#8216;Reported Pathologies&#8217;, data.pathologies.length &gt; 0 ? data.pathologies.join(&#8216;, &#8216;) : &#8221;],                    [&#8216;Water Fasting&#8217;, data.waterFast.enabled ? `Yes (${data.waterFast.frequency || &#8221;} ${data.waterFast.durationHours !== null ? data.waterFast.durationHours + &#8216;h&#8217; : &#8221;})`.trim() : &#8221;, &#8216;Dry Fasting&#8217;, data.dryFast.enabled ? `Yes (${data.dryFast.frequency || &#8221;} ${data.dryFast.durationHours !== null ? data.dryFast.durationHours + &#8216;h&#8217; : &#8221;})`.trim() : &#8221;]                ])            });            cursorY = doc.lastAutoTable.finalY + 5;            \/\/ Section II: Body Composition, Vitals &amp; Normative Reference Limits            printSectionHeading(&#8216;II. BODY COMPOSITION, VITALS &amp; NORMATIVE REFERENCE LIMITS&#8217;);            const rl = metrics.referenceLimits;            const wfk = metrics.waterFastKinetics;            const dfs = metrics.dryFastSafety;            doc.autoTable({                startY: cursorY,                margin: { top: 22, bottom: 20, left: margin, right: margin },                rowPageBreak: &#8216;avoid&#8217;,                theme: &#8216;grid&#8217;,                styles: { font: &#8216;helvetica&#8217;, fontSize: 7.2, cellPadding: 1.7, textColor: [30, 41, 59], overflow: &#8216;linebreak&#8217; },                headStyles: { fillColor: [15, 118, 110], textColor: [255, 255, 255], fontStyle: &#8216;bold&#8217; },                columnStyles: {                    0: { cellWidth: 42, fontStyle: &#8216;bold&#8217; },                    1: { cellWidth: 28 },                    2: { cellWidth: 50 },                    3: { cellWidth: 60 }                },                head: [[&#8216;Biometric Parameter&#8217;, &#8216;Result&#8217;, &#8216;Subject Evaluation \/ Omission Note&#8217;, &#8216;Standard Reference Limits&#8217;]],                body: sanitizeTableRows([                    [&#8216;Quetelet BMI&#8217;, fmt(metrics.bmi, 1, &#8216; kg\/m^2&#8217;), metrics.bmi !== null ? metrics.bmiCategory : &#8216;Omitted: Requires Weight &amp; Height&#8217;, rl.bmi],                    [&#8216;Consensus Body Fat %&#8217;, fmt(metrics.consensusBodyFatPct, 1, &#8216;%&#8217;), metrics.consensusBodyFatPct !== null ? `${metrics.bodyFatCategory} (${metrics.bodyFatMethodNote})` : &#8216;Omitted: Requires Sex, Height &amp; Waist&#8217;, rl.bodyFat],                    [&#8216;Lean Body Mass (LBM)&#8217;, metrics.leanBodyMassKg !== null ? `${metrics.leanBodyMassKg.toFixed(1)} kg (${metrics.lbmPct.toFixed(1)}%)` : &#8221;, metrics.fatMassKg !== null ? `Fat Mass: ${metrics.fatMassKg.toFixed(1)} kg` : &#8216;Omitted: Requires Weight &amp; BF%&#8217;, rl.lbm],                    [&#8216;Bone Mineral Proxy&#8217;, fmt(metrics.boneMineralMassKg, 2, &#8216; kg&#8217;), metrics.skeletalFrameSize || &#8216;Omitted: Requires Height &amp; Wrist&#8217;, rl.boneMass],                    [&#8216;Waist-to-Hip (WHR)&#8217;, fmt(metrics.waistToHipRatio, 2, &#8221;), metrics.whrRiskCategory || &#8216;Omitted: Requires Waist &amp; Hip&#8217;, rl.whr],                    [&#8216;Waist-to-Thigh (WTR)&#8217;, fmt(metrics.waistToThighRatio, 2, &#8221;), metrics.wtrInterpretation || &#8216;Omitted: Requires Waist &amp; Thigh&#8217;, rl.wtr],                    [&#8216;Waist-to-Height (WHtR)&#8217;, fmt(metrics.waistToHeightRatio, 2, &#8221;), metrics.whtrCategory || &#8216;Omitted: Requires Waist &amp; Height&#8217;, rl.whtr],                    [&#8216;Wakeful RHR&#8217;, data.rhr !== null ? `${data.rhr} bpm` : &#8221;, metrics.rhrCategory || &#8216;Omitted: Wakeful RHR left blank&#8217;, rl.rhr],                    [&#8216;Sleeping SHR&#8217;, data.shr !== null ? `${data.shr} bpm` : &#8221;, metrics.shrCategory || &#8216;Omitted: Sleeping SHR left blank&#8217;, rl.shr],                    [&#8216;Nocturnal Vagal Dip&#8217;, formatNocturnalDip(metrics.rhrShrDelta, metrics.rhrShrDipPct), metrics.autonomicStatus || &#8216;Omitted: Requires RHR &amp; SHR&#8217;, rl.vagalDip],                    [&#8216;Weekly Exercise Load&#8217;, metrics.exerciseAnalytics.weeklyTotalMetMinutes !== null ? `${Math.round(metrics.exerciseAnalytics.weeklyTotalMetMinutes)} MET-m` : &#8221;, metrics.exerciseAnalytics.weeklyTotalDurationMins !== null ? `${Math.round(metrics.exerciseAnalytics.weeklyTotalDurationMins)} mins\/wk` : &#8216;Omitted: Requires Modality + Duration&#8217;, rl.weeklyMetMinutes],                    [&#8216;Postprandial Walk Load&#8217;, metrics.exerciseAnalytics.postMealWeeklyWalkMins !== null ? `${Math.round(metrics.exerciseAnalytics.postMealWeeklyWalkMins)} mins\/wk` : &#8221;, [data.postMealWalkStatus || &#8221;, data.postMealWalkDelay || &#8221;].filter(Boolean).join(&#8216; | &#8216;) || &#8216;Omitted: Post-meal walk not active&#8217;, rl.postMealWalk],                    [&#8216;Water Fast Proteomic Phase&#8217;, wfk.hours !== null ? `${wfk.hours} hrs` : &#8221;, wfk.evaluationNote, rl.waterFastPhase],                    [&#8216;Dry Fasting Safety Limit&#8217;, dfs.hours !== null ? `${dfs.hours} hrs` : &#8221;, dfs.evaluationNote, rl.dryFastLimit],                    [&#8216;Composite Longevity&#8217;, `${metrics.longevityScore} \/ 100`, metrics.longevityTier, rl.longevityIndex]                ])            });            cursorY = doc.lastAutoTable.finalY + 5;            \/\/ Section III: Active Exercise Bioenergetics Table            printSectionHeading(&#8216;III. ACTIVE EXERCISE BIOENERGETICS &amp; POST-INTAKE SUBSTRATE TIMING&#8217;);            const pdfExerciseRows = metrics.exerciseAnalytics.modalityBreakdowns.length &gt; 0                ? metrics.exerciseAnalytics.modalityBreakdowns.map(m =&gt; [                    `${m.modality}${m.metValue !== null ? &#8216; (&#8216; + m.metValue.toFixed(1) + &#8216;)&#8217; : &#8221;}`,                    m.sessionsDisplay,                    m.durationWindowDisplay,                    m.postIntakeDisplay,                    m.weeklyMins !== null ? `${Math.round(m.weeklyMins)}m (${Math.round(m.weeklyMetMins)} MET-m)` : &#8221;,                    `${m.weeklyKcal !== null ? Math.round(m.weeklyKcal) + &#8216; kcal\/wk | &#8216; : &#8221;}${m.substrateState}`                ])                : [[&#8216;No exercise modalities selected in Section 03&#8217;, &#8221;, &#8221;, &#8221;, &#8221;, &#8216;All quantitative cells remain strictly blank under Zero-Defaulting protocol&#8217;]];            doc.autoTable({                startY: cursorY,                margin: { top: 22, bottom: 20, left: margin, right: margin },                rowPageBreak: &#8216;avoid&#8217;,                theme: &#8216;grid&#8217;,                styles: { font: &#8216;helvetica&#8217;, fontSize: 7.0, cellPadding: 1.6, textColor: [30, 41, 59], overflow: &#8216;linebreak&#8217; },                headStyles: { fillColor: [15, 118, 110], textColor: [255, 255, 255], fontStyle: &#8216;bold&#8217; },                columnStyles: {                    0: { cellWidth: 36, fontStyle: &#8216;bold&#8217; },                    1: { cellWidth: 20 },                    2: { cellWidth: 34 },                    3: { cellWidth: 18 },                    4: { cellWidth: 26 },                    5: { cellWidth: 46 }                },                head: [[&#8216;Modality (~METs)&#8217;, &#8216;Sess\/Wk&#8217;, &#8216;Duration &amp; Window&#8217;, &#8216;Post-Kcal&#8217;, &#8216;Weekly METs&#8217;, &#8216;Kcal &amp; Substrate State&#8217;]],                body: sanitizeTableRows(pdfExerciseRows)            });            cursorY = doc.lastAutoTable.finalY + 5;            \/\/ Section IV: 13-Modality Exercise Physiology Matrix            printSectionHeading(&#8216;IV. 13-MODALITY EXERCISE PHYSIOLOGY &amp; ORGAN-SYSTEM HEALTH IMPACTS MATRIX&#8217;);            doc.autoTable({                startY: cursorY,                margin: { top: 22, bottom: 20, left: margin, right: margin },                rowPageBreak: &#8216;avoid&#8217;,                theme: &#8216;grid&#8217;,                styles: { font: &#8216;helvetica&#8217;, fontSize: 6.7, cellPadding: 1.5, textColor: [30, 41, 59], overflow: &#8216;linebreak&#8217; },                headStyles: { fillColor: [51, 65, 85], textColor: [255, 255, 255], fontStyle: &#8216;bold&#8217; },                columnStyles: {                    0: { cellWidth: 28, fontStyle: &#8216;bold&#8217; },                    1: { cellWidth: 14 },                    2: { cellWidth: 46 },                    3: { cellWidth: 46 },                    4: { cellWidth: 46 }                },                head: [[&#8216;Exercise Modality&#8217;, &#8216;Status&#8217;, &#8216;Cardiovascular &amp; Hemodynamic Impact&#8217;, &#8216;Metabolic, Myokine &amp; GLUT4 Impact&#8217;, &#8216;Musculoskeletal, WTR &amp; Recovery Synergy&#8217;]],                body: sanitizeTableRows((metrics.exerciseAnalytics.modalityHealthCatalogue || []).map(item =&gt; [                    item.modality,                    item.isActive ? &#8216;ACTIVE&#8217; : &#8216;Blank&#8217;,                    item.cardioImpact,                    item.metabolicImpact,                    `${item.musculoskeletalImpact} [${item.synergyWithFasting}]`                ]))            });            cursorY = doc.lastAutoTable.finalY + 5;            \/\/ Section V: Bidirectional Pathological Interaction Matrix            printSectionHeading(&#8216;V. BIDIRECTIONAL PATHOLOGICAL &amp; METABOLIC HISTORY INTERACTION MATRIX&#8217;);            doc.autoTable({                startY: cursorY,                margin: { top: 22, bottom: 20, left: margin, right: margin },                rowPageBreak: &#8216;avoid&#8217;,                theme: &#8216;grid&#8217;,                styles: { font: &#8216;helvetica&#8217;, fontSize: 6.9, cellPadding: 1.6, textColor: [30, 41, 59], overflow: &#8216;linebreak&#8217; },                headStyles: { fillColor: [15, 118, 110], textColor: [255, 255, 255], fontStyle: &#8216;bold&#8217; },                columnStyles: {                    0: { cellWidth: 44, fontStyle: &#8216;bold&#8217; },                    1: { cellWidth: 68 },                    2: { cellWidth: 68 }                },                head: [[&#8216;Cross-Input Physiological Domain&#8217;, &#8216;Impact of Recorded Inputs on Risk&#8217;, &#8216;Impact of Pathological Status on Biomarkers&#8217;]],                body: sanitizeTableRows(metrics.pathologyInteractions.crossInputCards.map(c =&gt; [                    c.domain,                    c.impactTo,                    c.impactFrom                ]))            });            cursorY = doc.lastAutoTable.finalY + 4;            doc.autoTable({                startY: cursorY,                margin: { top: 22, bottom: 20, left: margin, right: margin },                rowPageBreak: &#8216;avoid&#8217;,                theme: &#8216;grid&#8217;,                styles: { font: &#8216;helvetica&#8217;, fontSize: 6.9, cellPadding: 1.6, textColor: [30, 41, 59], overflow: &#8216;linebreak&#8217; },                headStyles: { fillColor: [71, 85, 105], textColor: [255, 255, 255], fontStyle: &#8216;bold&#8217; },                columnStyles: {                    0: { cellWidth: 34, fontStyle: &#8216;bold&#8217; },                    1: { cellWidth: 18 },                    2: { cellWidth: 64 },                    3: { cellWidth: 64 }                },                head: [[&#8216;Condition&#8217;, &#8216;Status&#8217;, &#8216;Impact of Inputs on Condition&#8217;, &#8216;Impact of Condition on Biomarkers &amp; Safety&#8217;]],                body: sanitizeTableRows(metrics.pathologyInteractions.conditionMatrix.map(c =&gt; [                    c.cond,                    c.isActive ? &#8216;REPORTED&#8217; : &#8216;Blank&#8217;,                    c.impactTo,                    c.impactFrom                ]))            });            cursorY = doc.lastAutoTable.finalY + 5;            \/\/ Section VI: Dependency Audit Table            printSectionHeading(&#8216;VI. CALCULATION DEPENDENCY &amp; UNANSWERED PARAMETER AUDIT PROTOCOL&#8217;);            doc.autoTable({                startY: cursorY,                margin: { top: 22, bottom: 20, left: margin, right: margin },                rowPageBreak: &#8216;avoid&#8217;,                theme: &#8216;grid&#8217;,                styles: { font: &#8216;helvetica&#8217;, fontSize: 7.0, cellPadding: 1.6, textColor: [30, 41, 59], overflow: &#8216;linebreak&#8217; },                headStyles: { fillColor: [51, 65, 85], textColor: [255, 255, 255], fontStyle: &#8216;bold&#8217; },                columnStyles: {                    0: { cellWidth: 46, fontStyle: &#8216;bold&#8217; },                    1: { cellWidth: 44 },                    2: { cellWidth: 26 },                    3: { cellWidth: 64 }                },                head: [[&#8216;Mathematical Equation \/ Index&#8217;, &#8216;Required Prerequisite Inputs&#8217;, &#8216;Status&#8217;, &#8216;Zero-Defaulting Attribution&#8217;]],                body: sanitizeTableRows(metrics.dependencyAuditLog.map(a =&gt; [a.formulaName, a.requiredVars, a.status, a.handlingNote]))            });            cursorY = doc.lastAutoTable.finalY + 5;            \/\/ Narrative Sections (Line-by-Line Anti-Overlap Rendering)            const thighParagraphs = Array.from(document.querySelectorAll(&#8216;#thighAnalysisNarrative p&#8217;)).map(p =&gt; p.textContent);            printParagraphSection(&#8216;VII. THIGH CIRCUMFERENCE, WTR &amp; LOWER-EXTREMITY GLUT4 SINK ANALYSIS&#8217;, thighParagraphs);            const proteomicParagraphs = Array.from(document.querySelectorAll(&#8216;#proteomicNarrativeBody p&#8217;)).map(p =&gt; p.textContent);            printParagraphSection(&#8216;VIII. CELLULAR &amp; PROTEOMIC FASTING NARRATIVE &amp; DRY FASTING DOSE-RESPONSE THRESHOLDS&#8217;, proteomicParagraphs);            \/\/ Section VIII-B: 24h to 7-Day Water-Only Fasting Multi-Organ Reference Matrix in PDF            printSectionHeading(&#8216;VIII-B. 24-HOUR TO 7-DAY WATER-ONLY FASTING MULTI-ORGAN PHYSIOLOGY MATRIX&#8217;);            doc.autoTable({                startY: cursorY,                margin: { top: 22, bottom: 20, left: margin, right: margin },                rowPageBreak: &#8216;avoid&#8217;,                theme: &#8216;grid&#8217;,                styles: { font: &#8216;helvetica&#8217;, fontSize: 6.8, cellPadding: 1.5, textColor: [30, 41, 59], overflow: &#8216;linebreak&#8217; },                headStyles: { fillColor: [15, 118, 110], textColor: [255, 255, 255], fontStyle: &#8216;bold&#8217; },                columnStyles: {                    0: { cellWidth: 46, fontStyle: &#8216;bold&#8217; },                    1: { cellWidth: 134 }                },                head: [[&#8216;Organ \/ Physiological System&#8217;, &#8217;24-Hour to 7-Day (168h) Water-Only Fasting Mechanism &amp; Pathophysiological Impact&#8217;]],                body: sanitizeTableRows([                    [&#8216;1. Ketone Generation (beta-HB) &amp; Epigenetics&#8217;, &#8216;CPT-1 and HMGCS2 generate acetoacetate and beta-hydroxybutyrate (reaching 4.0-6.5 mmol\/L by Days 4-7). Beta-HB binds HCAR2 (GPR109A), inhibits Class I HDAC1\/2\/3 to upregulate FOXO3a and MnSOD, and suppresses the NLRP3 inflammasome (IL-1beta, IL-18).&#8217;],                    [&#8216;2. Brain &amp; Neuro-Detoxification&#8217;, &#8216;MCT1\/MCT2 transport ketones across the blood-brain barrier, elevating BDNF and GABA stability. Activates neuronal macroautophagy, LAMP2A chaperone-mediated autophagy (clearing hyperphosphorylated tau, amyloid-beta, and alpha-synuclein), AQP4 glymphatic clearance, and HYOU1\/TNR perineuronal net remodeling.&#8217;],                    [&#8216;3. Liver &amp; Fatty Liver (NAFLD\/MASLD)&#8217;, &#8216;Silences SREBP-1c and ChREBP de novo lipogenesis while activating PPAR-alpha and hepatokine FGF21. Oxidizes 30-50%+ of intrahepatic triglyceride droplets across 24h-7d fasts, clears lipotoxic DAGs, and lowers circulating PCSK9 and VLDL export.&#8217;],                    [&#8216;4. Digestive Organs, Stem Cells &amp; Gut&#8217;, &#8216;Grants secretory rest to stomach, exocrine pancreas, and biliary tree while phase III migrating motor complexes (MMCs) sweep the bowel. Fatty acid oxidation activates PPAR-delta in Lgr5+ intestinal stem cells, tightens ZO-1 junctions, and enriches Akkermansia muciniphila.&#8217;],                    [&#8216;5. Autophagy, Mitophagy &amp; Immune Reset&#8217;, &#8216;Rising AMP:ATP and NAD+:NADH ratios activate AMPK\/SIRT1 and inhibit mTORC1, driving ULK1, Beclin-1, LC3-II, and TFEB macroautophagy. Depolarized mitochondria undergo selective PINK1\/Parkin and BNIP3\/NIX mitophagy, while SWAP70 pro-inflammatory signaling falls after 72h.&#8217;],                    [&#8216;6. Type 2 Diabetes &amp; Glycemic Reset&#8217;, &#8216;Drains ectopic intramyocellular and hepatic ceramides\/DAGs, relieving PKC inhibition of IRS-1\/PI3K\/Akt\/GLUT4 signaling, normalizing hepatic gluconeogenesis, and reducing 24-hour insulin AUC by 50-70% (medical supervision required if taking hypoglycemic agents).&#8217;],                    [&#8216;7. Visceral Obesity &amp; Muscle Sparing&#8217;, &#8216;Preferentially mobilizes visceral omental adipocytes via high beta-3 adrenergic receptor density (~1.6 kg pure fat loss across 7-day water fasts) while pulsatile GH (5x surge) and ketone BCKDH inhibition preserve core myofibrillar protein.&#8217;],                    [&#8216;8. Kidneys, Endothelium &amp; Blood Pressure&#8217;, &#8216;Declining insulin triggers brisk proximal\/distal tubular natriuresis (via NHE3\/ENaC), which\u2014combined with eNOS vasodilation and vagal tone\u2014lowers resting blood pressure by 8-15 mmHg systolic and 5-10 mmHg diastolic while preserving normal euvolemic GFR.&#8217;]                ])            });            cursorY = doc.lastAutoTable.finalY + 5;            printParagraphSection(&#8216;IX. PERSONALIZED CONTRAINDICATIONS &amp; SAFETY ALERTS&#8217;, metrics.riskWarnings);            \/\/ Full Verbatim Section 06 Text Included in the PDF Report            const section6Paragraphs = [                &#8216;Global Observational Bio-Informatics &amp; Citizen-Science Consortium (Ground Report India International Journal Australia): Contemporary human longevity and metabolic science increasingly depends on multi-cohort, real-world physiological datasets that bridge geographical and demographic divides. Your self-reported anthropometric ratios\u2014specifically the Waist-to-Thigh Ratio (WTR) and Waist-to-Height Ratio (WHtR)\u2014alongside autonomic nocturnal heart rate dipping (RHR vs. SHR), 13-modality exercise bioenergetics (including Squats, Zone 2 endurance, and postprandial walking kinetics), and fasting architectures represent high-value observational biomarkers.&#8217;,                &#8216;How to Contribute Your Report: By transmitting your structured assessment or emailing your downloaded Official A4 PDF Dossier to our international editorial research desk at executive.editor@groundreportmedia.com, you directly assist global investigators in refining non-invasive reference standards for metabolic resilience, sarcopenia prevention, and safe fasting stratification.&#8217;,                &#8216;Data Integrity &amp; Ethical Governance: All contributions obey strict Zero-Defaulting Integrity (unanswered parameters remain blank and are never falsified with synthetic values) and are analyzed in de-identified aggregate form for international peer-reviewed publication.&#8217;            ];            printParagraphSection(&#8216;X. SECTION 06: INTERNATIONAL LONGEVITY &amp; FASTING RESEARCH CONTRIBUTION HUB&#8217;, section6Paragraphs);            const legalText = &#8216;Educational, Wellness &amp; Physiological Assessment Notice: &#8220;This assessment, its algorithms, and the resulting scores are formulated solely for educational, informational, and personal wellness evaluation. This tool does not constitute medical advice, diagnosis, prognosis, or treatment plans. Fasting protocols\u2014specifically prolonged water or dry fasting\u2014carry physiological risks and should never be initiated without direct consultation and supervision by a qualified medical practitioner, particularly for individuals with metabolic, renal, or cardiovascular conditions.&#8221;&#8216;;            printParagraphSection(&#8216;XI. REGULATORY COMPLIANCE &amp; DISCLOSURE&#8217;, [legalText]);            \/\/ Stamp Header &amp; Footer on EVERY Page            const totalPages = doc.internal.getNumberOfPages();            for (let p = 1; p &lt;= totalPages; p++) {                doc.setPage(p);                doc.setFont(&#8216;helvetica&#8217;, &#8216;bold&#8217;);                doc.setFontSize(8.5);                doc.setTextColor(30, 41, 59);                doc.text(&#8216;Physiological, Anthropometric, Fasting &amp; Longevity Report&#8217;, margin, 12);                doc.setDrawColor(203, 213, 225);                doc.line(margin, 14.5, pageWidth &#8211; margin, 14.5);                doc.line(margin, pageHeight &#8211; 14, pageWidth &#8211; margin, pageHeight &#8211; 14);                doc.setFont(&#8216;helvetica&#8217;, &#8216;normal&#8217;);                doc.setFontSize(8);                doc.setTextColor(71, 85, 105);                doc.text(&#8216;Ground Report India International Journal Australia&#8217;, pageWidth \/ 2, pageHeight &#8211; 9.5, { align: &#8216;center&#8217; });                doc.text(`Page ${p} of ${totalPages}`, pageWidth &#8211; margin, pageHeight &#8211; 9.5, { align: &#8216;right&#8217; });            }            const safeName = data.fullName.replace(\/[^a-zA-Z0-9_-]\/g, &#8216;_&#8217;);            doc.save(`Physiological_Longevity_Report_${safeName}_${referenceId}.pdf`);        }        async function dispatchEditorialAssessment(assessment, isManualTrigger = false) {            const statusEl = document.getElementById(&#8216;dispatchStatusBanner&#8217;);            const hubFb = document.getElementById(&#8216;hubDispatchFeedback&#8217;);            if (!assessment) return;            \/\/ 0. STRICT SAMPLE PROFILE FIREWALL (Never send Sample Profile reports to email!)            const normalizedName = assessment.data.fullName.trim().toLowerCase();            const isBlockedSample = assessment.isSample ||                APP_STATE.isSampleProfileActive ||                APP_STATE.blockedSampleNames.includes(normalizedName);            if (isBlockedSample) {                const sampleBlockMsg = `Sample Profile Firewall Active: Demo\/Sample profiles (${APP_STATE.sampleProfileName}) are strictly blocked from email transmission to prevent inbox flooding. Enter a real participant profile to transmit research data.`;                if (statusEl) statusEl.textContent = sampleBlockMsg;                if (hubFb) hubFb.textContent = `${sampleBlockMsg} (Target endpoint: ${APP_STATE.editorialRecipient})`;                return;            }            \/\/ 0.5. Mandatory Email &amp; WhatsApp Verification before any transmission            if (!validateResearchContactRequirements()) {                return;            }            \/\/ Refresh contact details in assessment object in case user filled them in after initial calculation            const latestEmail = document.getElementById(&#8216;userEmail&#8217;)?.value.trim() || null;            const latestMobile = document.getElementById(&#8216;userMobile&#8217;)?.value.trim() || null;            const latestWhatsapp = document.getElementById(&#8216;userWhatsapp&#8217;)?.value.trim() || null;            assessment.data.userEmail = latestEmail;            assessment.data.userMobile = latestMobile;            assessment.data.userWhatsapp = latestWhatsapp;            \/\/ 1. Honeypot check            const hpVal = document.getElementById(&#8216;hp_verification_token&#8217;)?.value || &#8221;;            if (hpVal.trim() !== &#8221;) {                return;            }            \/\/ 2. Time-Gate Verification (4 seconds minimum for human submission unless manual button click)            const elapsedMs = Date.now() &#8211; APP_STATE.mountTimestamp;            if (!isManualTrigger &amp;&amp; elapsedMs &lt; 4000) {                const msg = `Time-gate notice: Submission completed in ${(elapsedMs \/ 1000).toFixed(1)}s (&lt;4.0s human threshold). Click &#8220;Transmit Research Payload Now&#8221; in Section IX to confirm human dispatch.`;                if (statusEl) statusEl.textContent = msg;                if (hubFb) hubFb.textContent = msg;                return;            }            \/\/ 3. Rate Limiting Check via localStorage (60 seconds cooldown per client)            try {                const lastSent = Number(localStorage.getItem(&#8216;gr_bio_last_dispatch_ts&#8217;) || &#8216;0&#8217;);                if (!isManualTrigger &amp;&amp; Date.now() &#8211; lastSent &lt; 60000) {                    const msg = &#8216;Rate-limit protection active: A research payload was recently dispatched from this browser within the last 60 seconds.&#8217;;                    if (statusEl) statusEl.textContent = msg;                    if (hubFb) hubFb.textContent = msg;                    return;                }            } catch (_) {                \/\/ Ignore storage restrictions in sandboxed iframes            }            const payload = {                _subject: `Physiological &amp; Longevity Research Report: ${assessment.data.fullName} [${assessment.referenceId}]`,                recipient: APP_STATE.editorialRecipient,                protocolId: assessment.referenceId,                timestamp: assessment.timestamp,                subjectName: assessment.data.fullName,                userEmail: assessment.data.userEmail || &#8221;,                userMobile: assessment.data.userMobile || &#8221;,                userWhatsapp: assessment.data.userWhatsapp || &#8221;,                sex: assessment.data.biologicalSex || &#8221;,                age: assessment.data.ageYears !== null ? assessment.data.ageYears : &#8221;,                dietaryProfile: assessment.data.dietaryProfile || &#8221;,                mealsPerDay: assessment.data.mealsPerDay !== null ? assessment.data.mealsPerDay : &#8221;,                bmi: fmt(assessment.metrics.bmi, 1, &#8216; kg\/m\u00b2&#8217;),                bodyFatPct: fmt(assessment.metrics.consensusBodyFatPct, 1, &#8216;%&#8217;),                leanBodyMassKg: fmt(assessment.metrics.leanBodyMassKg, 1, &#8216; kg&#8217;),                boneMineralMassKg: fmt(assessment.metrics.boneMineralMassKg, 2, &#8216; kg&#8217;),                waistToHipRatio: fmt(assessment.metrics.waistToHipRatio, 2, &#8221;),                waistToThighRatio: fmt(assessment.metrics.waistToThighRatio, 2, &#8221;),                waistToHeightRatio: fmt(assessment.metrics.waistToHeightRatio, 2, &#8221;),                rhrShrDipPct: fmt(assessment.metrics.rhrShrDipPct, 1, &#8216;%&#8217;),                weeklyMetMinutes: assessment.metrics.exerciseAnalytics.weeklyTotalMetMinutes !== null ? Math.round(assessment.metrics.exerciseAnalytics.weeklyTotalMetMinutes) : &#8221;,                postMealWalkStatus: [assessment.data.postMealWalkStatus || &#8221;, assessment.data.postMealWalkDurationMins !== null ? `${assessment.data.postMealWalkDurationMins} mins` : &#8221;].filter(Boolean).join(&#8216; \u00b7 &#8216;),                activeExerciseModalities: assessment.data.exercises.map(e =&gt; e.modality).join(&#8216;, &#8216;),                waterFastDurationHours: assessment.data.waterFast?.durationHours !== null ? assessment.data.waterFast.durationHours : &#8221;,                waterFastProteomicPhase: assessment.metrics.waterFastKinetics?.phaseLabel || &#8221;,                dryFastDurationHours: assessment.data.dryFast?.durationHours !== null ? assessment.data.dryFast.durationHours : &#8221;,                dryFastSafetyTier: assessment.metrics.dryFastSafety?.tierLabel || &#8221;,                reportedPathologies: assessment.data.pathologies.join(&#8216;, &#8216;),                omittedFieldsCount: assessment.data.omittedInputsList ? assessment.data.omittedInputsList.length : 0,                longevityScore: `${assessment.metrics.longevityScore} \/ 100 (${assessment.metrics.longevityTier})`            };            try {                if (statusEl) statusEl.textContent = &#8216;Transmitting structured research payload to the International Editorial Research Desk&#8230;&#8217;;                if (hubFb) hubFb.textContent = `Transmitting structured research payload to ${APP_STATE.editorialRecipient}&#8230;`;                const response = await fetch(APP_STATE.formEndpoint, {                    method: &#8216;POST&#8217;,                    headers: { &#8216;Content-Type&#8217;: &#8216;application\/json&#8217;, &#8216;Accept&#8217;: &#8216;application\/json&#8217; },                    body: JSON.stringify(payload)                });                if (response.ok) {                    try { localStorage.setItem(&#8216;gr_bio_last_dispatch_ts&#8217;, String(Date.now())); } catch (_) {}                    if (statusEl) statusEl.textContent = `Dispatched structured research summary to the Editorial Research Desk (Ref: ${assessment.referenceId}). Thank you for supporting international longevity research!`;                    if (hubFb) hubFb.textContent = `Dispatched structured research summary to ${APP_STATE.editorialRecipient} (Ref: ${assessment.referenceId}). Thank you for supporting international longevity research!`;                } else {                    if (statusEl) statusEl.textContent = &#8216;Research payload prepared. You may download the Official A4 PDF Report and attach it via your email client in Section IX.&#8217;;                    if (hubFb) hubFb.textContent = `Research payload prepared for ${APP_STATE.editorialRecipient}. Click &#8220;1. Download Official A4 PDF Report&#8221; and attach it via &#8220;3. Open Email Client&#8221;.`;                }            } catch (err) {                if (statusEl) statusEl.textContent = &#8216;Research payload formatted. Use Section IX below to download the Official A4 PDF Report and send via your email client.&#8217;;                if (hubFb) hubFb.textContent = `Research payload formatted for ${APP_STATE.editorialRecipient}. Click &#8220;1. Download Official A4 PDF Report&#8221; and &#8220;3. Open Email Client to Attach PDF&#8221; to send directly.`;            }        }        document.addEventListener(&#8216;DOMContentLoaded&#8217;, () =&gt; {            renderExerciseModalityCards();            const applyGirthBounds = (isIn) =&gt; {                const bounds = isIn                    ? { wristInput: [3, 18], neckInput: [6, 33], waistInput: [14, 98], hipInput: [16, 98], thighInput: [8, 55] }                    : { wristInput: [8, 45], neckInput: [15, 85], waistInput: [35, 250], hipInput: [40, 250], thighInput: [20, 140] };                const unitLabel = isIn ? &#8216;Optional (in)&#8217; : &#8216;Optional&#8217;;                Object.entries(bounds).forEach(([id, [minV, maxV]]) =&gt; {                    const el = document.getElementById(id);                    if (el) {                        el.min = String(minV);                        el.max = String(maxV);                        el.placeholder = unitLabel;                    }                });            };            \/\/ Weight unit toggle            document.getElementById(&#8216;weightUnit&#8217;).addEventListener(&#8216;change&#8217;, (e) =&gt; {                const isLbs = e.target.value === &#8216;lbs&#8217;;                const wInput = document.getElementById(&#8216;weightInput&#8217;);                if (wInput) {                    wInput.min = isLbs ? &#8217;33&#8217; : &#8217;20&#8217;;                    wInput.max = isLbs ? &#8216;990&#8217; : &#8216;450&#8217;;                    wInput.placeholder = isLbs ? &#8216;Leave blank if unknown (lbs)&#8217; : &#8216;Leave blank if unknown&#8217;;                }            });            \/\/ Height unit toggle (cm vs ft\/in)            document.getElementById(&#8216;heightUnit&#8217;).addEventListener(&#8216;change&#8217;, (e) =&gt; {                const isFtIn = e.target.value === &#8216;ftin&#8217;;                document.getElementById(&#8216;heightCmWrap&#8217;)?.classList.toggle(&#8216;hidden&#8217;, isFtIn);                document.getElementById(&#8216;heightFtInWrap&#8217;)?.classList.toggle(&#8216;hidden&#8217;, !isFtIn);            });            \/\/ Circumference unit toggle (cm vs in)            document.getElementById(&#8216;girthUnit&#8217;).addEventListener(&#8216;change&#8217;, (e) =&gt; {                applyGirthBounds(e.target.value === &#8216;in&#8217;);            });            \/\/ Fasting checkboxes &amp; unit toggles            document.getElementById(&#8216;waterFastEnabled&#8217;).addEventListener(&#8216;change&#8217;, (e) =&gt; {                document.getElementById(&#8216;waterFastDetails&#8217;).classList.toggle(&#8216;hidden&#8217;, !e.target.checked);            });            document.getElementById(&#8216;waterFastDurationUnit&#8217;).addEventListener(&#8216;change&#8217;, (e) =&gt; {                const isDays = e.target.value === &#8216;days&#8217;;                const wfVal = document.getElementById(&#8216;waterFastDurationVal&#8217;);                if (wfVal) {                    wfVal.max = isDays ? &#8217;40&#8217; : &#8216;1000&#8217;;                    wfVal.placeholder = isDays ? &#8216;e.g., 3&#8217; : &#8216;e.g., 72&#8217;;                }            });            document.getElementById(&#8216;dryFastEnabled&#8217;).addEventListener(&#8216;change&#8217;, (e) =&gt; {                document.getElementById(&#8216;dryFastDetails&#8217;).classList.toggle(&#8216;hidden&#8217;, !e.target.checked);            });            document.getElementById(&#8216;dryFastDurationUnit&#8217;).addEventListener(&#8216;change&#8217;, (e) =&gt; {                const isDays = e.target.value === &#8216;days&#8217;;                const dfVal = document.getElementById(&#8216;dryFastDurationVal&#8217;);                if (dfVal) {                    dfVal.max = isDays ? &#8217;10&#8217; : &#8216;240&#8217;;                    dfVal.placeholder = isDays ? &#8216;e.g., 1&#8217; : &#8216;e.g., 14&#8217;;                }            });            \/\/ Mutual exclusivity between &#8220;None&#8221; and specific pathologies            const noneCb = document.getElementById(&#8216;pathologyNone&#8217;);            const pathCbs = document.querySelectorAll(&#8216;.pathology-cb&#8217;);            noneCb.addEventListener(&#8216;change&#8217;, () =&gt; {                if (noneCb.checked) {                    pathCbs.forEach(cb =&gt; { cb.checked = false; });                }            });            pathCbs.forEach(cb =&gt; {                cb.addEventListener(&#8216;change&#8217;, () =&gt; {                    if (cb.checked) noneCb.checked = false;                });            });            \/\/ Clear sample flag when user edits the Full Name field to a real non-sample name            \/\/ Clear or restore sample flag when user edits the Full Name field            document.getElementById(&#8216;fullName&#8217;).addEventListener(&#8216;input&#8217;, (e) =&gt; {                const currentVal = e.target.value.trim().toLowerCase();                const isSampleName = APP_STATE.blockedSampleNames.includes(currentVal);                APP_STATE.isSampleProfileActive = isSampleName;                document.getElementById(&#8216;formSampleProfileBanner&#8217;)?.classList.toggle(&#8216;hidden&#8217;, !isSampleName);            });            \/\/ Sync WhatsApp Number with Mobile Number when &#8220;Same as Mobile&#8221; is checked            const mobileInputEl = document.getElementById(&#8216;userMobile&#8217;);            const whatsappInputEl = document.getElementById(&#8216;userWhatsapp&#8217;);            const sameAsMobileCb = document.getElementById(&#8216;whatsappSameAsMobile&#8217;);            if (sameAsMobileCb &amp;&amp; mobileInputEl &amp;&amp; whatsappInputEl) {                sameAsMobileCb.addEventListener(&#8216;change&#8217;, () =&gt; {                    if (sameAsMobileCb.checked) {                        syncAllContactFields( null, mobileInputEl.value);                    }                });                mobileInputEl.addEventListener(&#8216;input&#8217;, () =&gt; {                    if (sameAsMobileCb.checked) {                        syncAllContactFields(null, mobileInputEl.value);                    }                });            }            \/\/ Two-way real-time synchronization for Email and WhatsApp across Section 01, Section 06, and Section IX Hub            const clearAlertIfContactValid = () =&gt; {                const em = (document.getElementById(&#8216;userEmail&#8217;)?.value || &#8221;).trim();                const wa = (document.getElementById(&#8216;userWhatsapp&#8217;)?.value || &#8221;).trim().replace(\/[^d]\/g, &#8221;);                if (\/^[^s@]+@[^s@]+.[^s@]+$\/.test(em) &amp;&amp; wa.length &gt;= 7) {                    document.getElementById(&#8216;validationAlert&#8217;)?.classList.add(&#8216;hidden&#8217;);                }            };            [&#8216;userEmail&#8217;, &#8216;sec6UserEmail&#8217;, &#8216;hubUserEmail&#8217;].forEach(id =&gt; {                const el = document.getElementById(id);                if (el) {                    el.addEventListener(&#8216;input&#8217;, (e) =&gt; {                        syncAllContactFields(e.target.value, null);                        clearAlertIfContactValid();                    });                }            });            [&#8216;userWhatsapp&#8217;, &#8216;sec6UserWhatsapp&#8217;, &#8216;hubUserWhatsapp&#8217;].forEach(id =&gt; {                const el = document.getElementById(id);                if (el) {                    el.addEventListener(&#8216;input&#8217;, (e) =&gt; {                        if (sameAsMobileCb &amp;&amp; mobileInputEl &amp;&amp; e.target.value !== mobileInputEl.value) {                            sameAsMobileCb.checked = false;                        }                        syncAllContactFields(null, e.target.value);                        clearAlertIfContactValid();                    });                }            });            const autoDispatchEl = document.getElementById(&#8216;autoDispatchToggle&#8217;);            if (autoDispatchEl) {                autoDispatchEl.addEventListener(&#8216;change&#8217;, syncContactRequiredBadges);                syncContactRequiredBadges();            }            \/\/ Form Submission            document.getElementById(&#8216;assessmentForm&#8217;).addEventListener(&#8216;submit&#8217;, async (e) =&gt; {                e.preventDefault();                const alertEl = document.getElementById(&#8216;validationAlert&#8217;);                const fullName = document.getElementById(&#8216;fullName&#8217;).value.trim();                if (!fullName) {                    alertEl.textContent = &#8216;Validation Notice: Please enter your Full Name in Section 01 to generate the Personalized Physiological &amp; Longevity Report.&#8217;;                    alertEl.classList.remove(&#8216;hidden&#8217;);                    document.getElementById(&#8216;fullName&#8217;).focus();                    return;                }                \/\/ Check if the user is submitting any blocked sample profile name                if (APP_STATE.blockedSampleNames.includes(fullName.toLowerCase())) {                    APP_STATE.isSampleProfileActive = true;                }                \/\/ If user opted in to send the report to us (and is not on the blocked Sample Profile), require valid Email &amp; WhatsApp                const wantsToSendReport = document.getElementById(&#8216;autoDispatchToggle&#8217;).checked;                if (wantsToSendReport &amp;&amp; !APP_STATE.isSampleProfileActive) {                    if (!validateResearchContactRequirements()) {                        return;                    }                }                alertEl.classList.add(&#8216;hidden&#8217;);                const data = collectFormInputs();                const metrics = executePhysiologicalCalculations(data);                renderReportUI(data, metrics);                if (APP_STATE.isSampleProfileActive) {                    const statusEl = document.getElementById(&#8216;dispatchStatusBanner&#8217;);                    const hubFb = document.getElementById(&#8216;hubDispatchFeedback&#8217;);                    const msg = `Sample Profile Firewall Active (${APP_STATE.sampleProfileName}): Report rendered locally for preview and A4 PDF testing. Automated email transmission is strictly disabled for sample profiles to prevent inbox flooding.`;                    if (statusEl) statusEl.textContent = msg;                    if (hubFb) hubFb.textContent = msg;                    return;                }                if (wantsToSendReport) {                    await dispatchEditorialAssessment(APP_STATE.lastAssessment, false);                }            });            \/\/ PDF &amp; Dispatch Buttons            document.getElementById(&#8216;btnDownloadPdfTop&#8217;).addEventListener(&#8216;click&#8217;, generateOfficialA4Pdf);            document.getElementById(&#8216;btnHubDownloadPdf&#8217;).addEventListener(&#8216;click&#8217;, generateOfficialA4Pdf);            const isCurrentProfileBlockedSample = () =&gt; {                const currentName = (document.getElementById(&#8216;fullName&#8217;)?.value || &#8221;).trim().toLowerCase();                return Boolean(                    APP_STATE.isSampleProfileActive ||                    (APP_STATE.lastAssessment &amp;&amp; APP_STATE.lastAssessment.isSample) ||                    APP_STATE.blockedSampleNames.includes(currentName)                );            };            document.getElementById(&#8216;btnManualDispatch&#8217;).addEventListener(&#8216;click&#8217;, async () =&gt; {                if (isCurrentProfileBlockedSample()) {                    const msg = `Sample Profile Firewall Active: Demo\/Sample profiles (${APP_STATE.sampleProfileName}) are strictly blocked from email transmission to prevent inbox flooding. Click &#8220;Clear \/ Reset Form&#8221; at the top to enter your own measurements.`;                    const statusEl = document.getElementById(&#8216;dispatchStatusBanner&#8217;);                    const hubFb = document.getElementById(&#8216;hubDispatchFeedback&#8217;);                    if (statusEl) statusEl.textContent = msg;                    if (hubFb) hubFb.textContent = msg;                    return;                }                if (!validateResearchContactRequirements(&#8216;sec6&#8217;)) return;                if (APP_STATE.lastAssessment) {                    const latestData = collectFormInputs();                    const metrics = executePhysiologicalCalculations(latestData);                    renderReportUI(latestData, metrics, false);                    await dispatchEditorialAssessment(APP_STATE.lastAssessment, true);                } else {                    const statusEl = document.getElementById(&#8216;dispatchStatusBanner&#8217;);                    if (statusEl) statusEl.textContent = &#8216;Please click &#8220;Calculate &amp; Generate Assessment&#8221; first before transmitting your report.&#8217;;                }            });            document.getElementById(&#8216;btnHubDispatchResearch&#8217;).addEventListener(&#8216;click&#8217;, async () =&gt; {                if (isCurrentProfileBlockedSample()) {                    const msg = `Sample Profile Firewall Active: Demo\/Sample profiles (${APP_STATE.sampleProfileName}) are strictly blocked from email transmission to prevent inbox flooding. Click &#8220;Clear \/ Reset Form&#8221; at the top to enter your own measurements.`;                    const statusEl = document.getElementById(&#8216;dispatchStatusBanner&#8217;);                    const hubFb = document.getElementById(&#8216;hubDispatchFeedback&#8217;);                    if (statusEl) statusEl.textContent = msg;                    if (hubFb) hubFb.textContent = msg;                    return;                }                if (!validateResearchContactRequirements(&#8216;hub&#8217;)) return;                if (APP_STATE.lastAssessment) {                    const latestData = collectFormInputs();                    const metrics = executePhysiologicalCalculations(latestData);                    renderReportUI(latestData, metrics, false);                    await dispatchEditorialAssessment(APP_STATE.lastAssessment, true);                } else {                    const hubFb = document.getElementById(&#8216;hubDispatchFeedback&#8217;);                    if (hubFb) hubFb.textContent = &#8216;Please click &#8220;Calculate &amp; Generate Assessment&#8221; first before transmitting your report.&#8217;;                }            });            document.getElementById(&#8216;btnHubMailtoLink&#8217;).addEventListener(&#8216;click&#8217;, (e) =&gt; {                if (isCurrentProfileBlockedSample()) {                    e.preventDefault();                    const msg = `Sample Profile Firewall Active: Demo\/Sample profiles (${APP_STATE.sampleProfileName}) are strictly blocked from email transmission. Click &#8220;Clear \/ Reset Form&#8221; at the top to enter your own measurements.`;                    const statusEl = document.getElementById(&#8216;dispatchStatusBanner&#8217;);                    const hubFb = document.getElementById(&#8216;hubDispatchFeedback&#8217;);                    if (statusEl) statusEl.textContent = msg;                    if (hubFb) hubFb.textContent = msg;                    return;                }                if (!validateResearchContactRequirements(&#8216;hub&#8217;)) {                    e.preventDefault();                    return;                }                if (APP_STATE.lastAssessment) {                    const latestData = collectFormInputs();                    const metrics = executePhysiologicalCalculations(latestData);                    renderReportUI(latestData, metrics, false);                }            });            \/\/ Reset Form Button            document.getElementById(&#8216;btnResetForm&#8217;).addEventListener(&#8216;click&#8217;, () =&gt; {                APP_STATE.isSampleProfileActive = false;                APP_STATE.lastAssessment = null;                document.getElementById(&#8216;assessmentForm&#8217;).reset();                document.getElementById(&#8216;formSampleProfileBanner&#8217;)?.classList.add(&#8216;hidden&#8217;);                document.getElementById(&#8216;reportSampleAlertBanner&#8217;)?.classList.add(&#8216;hidden&#8217;);                document.getElementById(&#8216;reportOmittedFieldsBanner&#8217;)?.classList.add(&#8216;hidden&#8217;);                syncAllContactFields(&#8221;, &#8221;);                document.getElementById(&#8216;autoDispatchToggle&#8217;).checked = true;                syncContactRequiredBadges();                document.getElementById(&#8216;heightCmWrap&#8217;).classList.remove(&#8216;hidden&#8217;);                document.getElementById(&#8216;heightFtInWrap&#8217;).classList.add(&#8216;hidden&#8217;);                const wInput = document.getElementById(&#8216;weightInput&#8217;);                if (wInput) {                    wInput.min = &#8217;20&#8217;;                    wInput.max = &#8216;450&#8217;;                    wInput.placeholder = &#8216;Leave blank if unknown&#8217;;                }                applyGirthBounds(false);                const wfVal = document.getElementById(&#8216;waterFastDurationVal&#8217;);                if (wfVal) { wfVal.max = &#8216;1000&#8217;; wfVal.placeholder = &#8216;e.g., 72&#8217;; }                const dfVal = document.getElementById(&#8216;dryFastDurationVal&#8217;);                if (dfVal) { dfVal.max = &#8216;240&#8217;; dfVal.placeholder = &#8216;e.g., 14&#8217;; }                document.querySelectorAll(&#8216;.ex-checkbox&#8217;).forEach(cb =&gt; {                    const id = cb.getAttribute(&#8216;data-ex-id&#8217;);                    document.getElementById(`ex_details_${id}`)?.classList.add(&#8216;hidden&#8217;);                    document.getElementById(`ex_card_${id}`)?.classList.remove(&#8216;md:col-span-2&#8217;);                });                document.getElementById(&#8216;waterFastDetails&#8217;).classList.add(&#8216;hidden&#8217;);                document.getElementById(&#8216;dryFastDetails&#8217;).classList.add(&#8216;hidden&#8217;);                document.getElementById(&#8216;reportSection&#8217;).classList.add(&#8216;hidden&#8217;);                document.getElementById(&#8216;validationAlert&#8217;).classList.add(&#8216;hidden&#8217;);                const statusEl = document.getElementById(&#8216;dispatchStatusBanner&#8217;);                if (statusEl) statusEl.textContent = &#8216;Assessment generated. Ready for official A4 PDF export or voluntary research contribution.&#8217;;                const hubFb = document.getElementById(&#8216;hubDispatchFeedback&#8217;);                if (hubFb) hubFb.innerHTML = &#8216;Ready for international research contribution. Your protocol ID and structured summary are formatted for &lt;code&gt;executive.editor@groundreportmedia.com&lt;\/code&gt;.&#8217;;            });            \/\/ Sample Loader for 1-Click Preview Verification (STRICTLY LOCAL \u2014 NO EMAIL SENT)            document.getElementById(&#8216;btnPopulateSample&#8217;).addEventListener(&#8216;click&#8217;, () =&gt; {                document.getElementById(&#8216;assessmentForm&#8217;).reset();                APP_STATE.isSampleProfileActive = true;                document.getElementById(&#8216;formSampleProfileBanner&#8217;)?.classList.remove(&#8216;hidden&#8217;);                \/\/ Automatically uncheck the email auto-dispatch toggle when loading Sample Profile                document.getElementById(&#8216;autoDispatchToggle&#8217;).checked = false;                syncContactRequiredBadges();                document.getElementById(&#8216;validationAlert&#8217;).classList.add(&#8216;hidden&#8217;);                document.getElementById(&#8216;fullName&#8217;).value = APP_STATE.sampleProfileName;                syncAllContactFields(&#8221;, &#8221;);                document.getElementById(&#8216;userMobile&#8217;).value = &#8221;;                document.getElementById(&#8216;whatsappSameAsMobile&#8217;).checked = false;                document.getElementById(&#8216;biologicalSex&#8217;).value = &#8216;Male&#8217;;                document.getElementById(&#8216;ageYears&#8217;).value = &#8217;44&#8217;;                document.getElementById(&#8216;weightUnit&#8217;).value = &#8216;kg&#8217;;                const wInput = document.getElementById(&#8216;weightInput&#8217;);                wInput.min = &#8217;20&#8217;;                wInput.max = &#8216;450&#8217;;                wInput.placeholder = &#8216;Leave blank if unknown&#8217;;                wInput.value = &#8216;78.0&#8217;;                document.getElementById(&#8216;heightUnit&#8217;).value = &#8216;cm&#8217;;                document.getElementById(&#8216;heightCmWrap&#8217;).classList.remove(&#8216;hidden&#8217;);                document.getElementById(&#8216;heightFtInWrap&#8217;).classList.add(&#8216;hidden&#8217;);                document.getElementById(&#8216;heightCmInput&#8217;).value = &#8216;182&#8217;;                document.getElementById(&#8216;girthUnit&#8217;).value = &#8216;cm&#8217;;                applyGirthBounds(false);                const wfVal = document.getElementById(&#8216;waterFastDurationVal&#8217;);                if (wfVal) { wfVal.max = &#8216;1000&#8217;; wfVal.placeholder = &#8216;e.g., 72&#8217;; }                const dfVal = document.getElementById(&#8216;dryFastDurationVal&#8217;);                if (dfVal) { dfVal.max = &#8216;240&#8217;; dfVal.placeholder = &#8216;e.g., 14&#8217;; }                document.getElementById(&#8216;wristInput&#8217;).value = &#8216;17.6&#8217;;                document.getElementById(&#8216;neckInput&#8217;).value = &#8216;38.5&#8217;;                document.getElementById(&#8216;waistInput&#8217;).value = &#8216;82.0&#8217;;                document.getElementById(&#8216;hipInput&#8217;).value = &#8216;98.0&#8217;;                document.getElementById(&#8216;thighInput&#8217;).value = &#8216;58.5&#8217;;                document.getElementById(&#8216;rhrInput&#8217;).value = &#8217;55&#8217;;                document.getElementById(&#8216;shrInput&#8217;).value = &#8217;46&#8217;;                document.getElementById(&#8216;mealsPerDayInput&#8217;).value = &#8216;2&#8217;;                document.getElementById(&#8216;dietaryProfile&#8217;).value = &#8216;Meat Eater \/ Omnivore&#8217;;                document.getElementById(&#8216;primaryCircadianWindow&#8217;).value = &#8216;Early Morning (05:00\u201308:00)&#8217;;                document.getElementById(&#8216;hoursAfterLastIntake&#8217;).value = &#8217;14&#8217;;                document.getElementById(&#8216;postMealWalkStatus&#8217;).value = &#8216;Yes \u2014 After All Meals&#8217;;                document.getElementById(&#8216;postMealWalkDurationMins&#8217;).value = &#8217;15&#8217;;                document.getElementById(&#8216;postMealWalkDelay&#8217;).value = &#8216;Immediate (0\u201315 mins post-meal)&#8217;;                document.querySelectorAll(&#8216;.ex-checkbox&#8217;).forEach(cb =&gt; {                    const id = cb.getAttribute(&#8216;data-ex-id&#8217;);                    const active = [&#8216;squats&#8217;, &#8216;statcycling&#8217;, &#8216;walking&#8217;, &#8216;yoga&#8217;, &#8216;resistance&#8217;].includes(id);                    cb.checked = active;                    document.getElementById(`ex_details_${id}`)?.classList.toggle(&#8216;hidden&#8217;, !active);                    document.getElementById(`ex_card_${id}`)?.classList.toggle(&#8216;md:col-span-2&#8217;, active);                });                document.getElementById(&#8216;ex_sess_squats&#8217;).value = &#8216;5&#8217;;                document.getElementById(&#8216;ex_dur_squats&#8217;).value = &#8217;15&#8217;;                document.getElementById(&#8216;ex_fast_squats&#8217;).value = &#8216;0.5&#8217;;                document.getElementById(&#8216;ex_sess_statcycling&#8217;).value = &#8216;4&#8217;;                document.getElementById(&#8216;ex_dur_statcycling&#8217;).value = &#8217;45&#8217;;                document.getElementById(&#8216;ex_fast_statcycling&#8217;).value = &#8217;14&#8217;;                document.getElementById(&#8216;ex_sess_walking&#8217;).value = &#8216;7&#8217;;                document.getElementById(&#8216;ex_dur_walking&#8217;).value = &#8217;30&#8217;;                document.getElementById(&#8216;ex_fast_walking&#8217;).value = &#8216;0.25&#8217;;                document.getElementById(&#8216;ex_sess_yoga&#8217;).value = &#8216;3&#8217;;                document.getElementById(&#8216;ex_dur_yoga&#8217;).value = &#8217;30&#8217;;                document.getElementById(&#8216;ex_fast_yoga&#8217;).value = &#8217;12&#8217;;                document.getElementById(&#8216;ex_sess_resistance&#8217;).value = &#8216;3&#8217;;                document.getElementById(&#8216;ex_dur_resistance&#8217;).value = &#8217;45&#8217;;                document.getElementById(&#8216;ex_fast_resistance&#8217;).value = &#8216;3.5&#8217;;                document.getElementById(&#8216;waterFastEnabled&#8217;).checked = true;                document.getElementById(&#8216;waterFastDetails&#8217;).classList.remove(&#8216;hidden&#8217;);                document.getElementById(&#8216;waterFastFreq&#8217;).value = &#8216;Tri-monthly&#8217;;                document.getElementById(&#8216;waterFastDurationVal&#8217;).value = &#8217;72&#8217;;                document.getElementById(&#8216;waterFastDurationUnit&#8217;).value = &#8216;hours&#8217;;                document.getElementById(&#8216;dryFastEnabled&#8217;).checked = false;                document.getElementById(&#8216;dryFastDetails&#8217;).classList.add(&#8216;hidden&#8217;);                document.getElementById(&#8216;dryFastFreq&#8217;).value = &#8221;;                document.getElementById(&#8216;dryFastDurationVal&#8217;).value = &#8221;;                document.getElementById(&#8216;dryFastDurationUnit&#8217;).value = &#8216;hours&#8217;;                document.querySelectorAll(&#8216;.pathology-cb&#8217;).forEach(cb =&gt; { cb.checked = false; });                document.getElementById(&#8216;pathologyNone&#8217;).checked = true;                const data = collectFormInputs();                const metrics = executePhysiologicalCalculations(data);                renderReportUI(data, metrics);                const statusEl = document.getElementById(&#8216;dispatchStatusBanner&#8217;);                const hubFb = document.getElementById(&#8216;hubDispatchFeedback&#8217;);                const sampleNotice = `Sample Profile Loaded (${APP_STATE.sampleProfileName}): Local preview and A4 PDF export are active. Automated email dispatch is strictly blocked for sample profiles so your inbox is never flooded.`;                if (statusEl) statusEl.textContent = sampleNotice;                if (hubFb) hubFb.textContent = sampleNotice;            });        });    [\/tcb-script]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Physiological, Anthropometric, Fasting &amp; Longevity Assessment Platform [tcb-script src=&#8221;https:\/\/cdn.tailwindcss.com&#8221;][\/tcb-script] [tcb-script src=&#8221;https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/jspdf\/2.5.1\/jspdf.umd.min.js&#8221;][\/tcb-script] [tcb-script src=&#8221;https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/jspdf-autotable\/3.8.2\/jspdf.plugin.autotable.min.js&#8221;][\/tcb-script] Validated Models QMUL PHURI 2024 \/ US Navy \/ Framingham \/ Evidence-Based Anthropometry, Bone Index (OSTA), &amp; 2024 Queen Mary University of London (Nature Metabolism) Fasting Models Peer-Reviewed Bio-Mathematical Architecture Ground Report India International Journal Australia \u00b7 Bio-Informatics Consortium Physiological, Anthropometric, Fasting [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","tve_updated_post":"<div class=\"thrv_wrapper thrv_custom_html_shortcode\">\n\n\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>Physiological, Anthropometric, Fasting &amp; Longevity Assessment Platform<\/title>\n    <code class=\"tve_js_placeholder\">[tcb-script src=\"https:\/\/cdn.tailwindcss.com\"][\/tcb-script]<\/code>\n    <code class=\"tve_js_placeholder\">[tcb-script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/jspdf\/2.5.1\/jspdf.umd.min.js\"][\/tcb-script]<\/code>\n    <code class=\"tve_js_placeholder\">[tcb-script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/jspdf-autotable\/3.8.2\/jspdf.plugin.autotable.min.js\"][\/tcb-script]<\/code>\n    <link rel=\"preconnect\" href=\"https:\/\/fonts.googleapis.com\">\n    <link rel=\"preconnect\" href=\"https:\/\/fonts.gstatic.com\" crossorigin=\"\">\n    <link href=\"https:\/\/fonts.googleapis.com\/css2?family=Inter:wght@400;500;600;700&amp;display=swap\" rel=\"stylesheet\">\n    <style>\n        body {\n            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n            background-color: #f8fafc;\n            color: #1e293b;\n            line-height: 1.55;\n            -webkit-font-smoothing: antialiased;\n        }\n        *, *::before, *::after {\n            box-sizing: border-box;\n        }\n        p, span, div, td, th, label, li, code, h1, h2, h3, h4 {\n            overflow-wrap: anywhere;\n            word-break: normal;\n        }\n        table {\n            border-collapse: collapse;\n            width: 100%;\n            table-layout: auto;\n        }\n        th, td {\n            vertical-align: top;\n            line-height: 1.5;\n        }\n        .literature-heading {\n            line-height: 1.4 !important;\n            letter-spacing: -0.01em;\n            display: block;\n            margin-top: 0.35rem;\n        }\n        @media print {\n            body { background-color: #ffffff; }\n            .no-print { display: none !important; }\n            .print-break-avoid { break-inside: avoid; page-break-inside: avoid; }\n        }\n    <\/style>\n\n\n\n    <header class=\"bg-white border-b border-slate-200 sticky top-0 z-30 shadow-sm\">\n        <!-- Top Academic & Scientific Methodology Strip (High-Contrast Daylight Legibility) -->\n        <div class=\"bg-gradient-to-r from-teal-50 via-emerald-50\/80 to-teal-50 text-slate-900 border-b-2 border-teal-700\/30\">\n            <div class=\"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-2.5 flex flex-col lg:flex-row lg:items-center lg:justify-between gap-2.5\">\n                <div class=\"flex items-start sm:items-center gap-2.5 min-w-0\">\n                    <span class=\"inline-flex items-center px-2.5 py-0.5 rounded text-[11px] font-extrabold uppercase tracking-wider bg-teal-800 text-white shadow-sm shrink-0 mt-0.5 sm:mt-0\">\n                        Validated Models\n                    <\/span>\n                    <p class=\"text-xs sm:text-[13px] font-semibold text-slate-900 leading-snug tracking-tight\">\n                        <span class=\"font-extrabold text-teal-950\">QMUL PHURI 2024<\/span> <span class=\"text-teal-700 font-bold mx-1\">\/<\/span>\n                        <span class=\"font-extrabold text-teal-950\">US Navy<\/span> <span class=\"text-teal-700 font-bold mx-1\">\/<\/span>\n                        <span class=\"font-extrabold text-teal-950\">Framingham<\/span> <span class=\"text-teal-700 font-bold mx-1\">\/<\/span>\n                        <span class=\"text-slate-800\">Evidence-Based Anthropometry, Bone Index (OSTA), &amp; 2024 Queen Mary University of London (<em class=\"text-teal-950 font-serif font-bold underline decoration-teal-600\/50\">Nature Metabolism<\/em>) Fasting Models<\/span>\n                    <\/p>\n                <\/div>\n                <div class=\"hidden xl:flex items-center gap-2 shrink-0 text-[11px] font-mono font-bold uppercase tracking-wider text-teal-950 bg-white px-3 py-1 rounded-md border border-teal-300 shadow-sm\">\n                    <span class=\"w-2 h-2 rounded-full bg-emerald-600\"><\/span>\n                    <span>Peer-Reviewed Bio-Mathematical Architecture<\/span>\n                <\/div>\n            <\/div>\n        <\/div>\n\n        <!-- Primary Institutional & Action Bar -->\n        <div class=\"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-3.5 flex flex-col md:flex-row md:items-center md:justify-between gap-3\">\n            <div class=\"min-w-0 flex-1\">\n                <div class=\"flex flex-wrap items-center gap-2\">\n                    <span class=\"inline-block w-2.5 h-2.5 rounded-full bg-teal-700 shrink-0\"><\/span>\n                    <span class=\"text-[11px] font-bold uppercase tracking-widest text-teal-800\">\n                        Ground Report India International Journal Australia \u00b7 Bio-Informatics Consortium\n                    <\/span>\n                <\/div>\n                <h1 class=\"text-base sm:text-xl font-bold text-slate-900 tracking-tight mt-0.5 leading-snug\">\n                    Physiological, Anthropometric, Fasting &amp; Longevity Assessment Platform\n                <\/h1>\n            <\/div>\n            <div class=\"flex flex-wrap items-center gap-2 shrink-0 no-print\">\n                <button type=\"button\" id=\"btnPopulateSample\" class=\"bg-teal-50 hover:bg-teal-100 text-teal-900 border border-teal-300 font-semibold text-xs px-3.5 py-2 rounded-md transition shadow-sm\">\n                    Load Sample Profile (Local Preview Only)\n                <\/button>\n                <button type=\"button\" id=\"btnResetForm\" class=\"bg-slate-100 hover:bg-slate-200 text-slate-700 border border-slate-300 font-semibold text-xs px-3.5 py-2 rounded-md transition\">\n                    Clear \/ Reset Form\n                <\/button>\n            <\/div>\n        <\/div>\n    <\/header>\n\n    <main class=\"flex-1 max-w-7xl w-full mx-auto px-4 sm:px-6 lg:px-8 py-6 space-y-6\">\n\n        <section class=\"bg-white border border-slate-200 rounded-lg shadow-sm overflow-hidden\">\n            <details class=\"group\" open=\"\">\n                <summary class=\"flex flex-col sm:flex-row sm:items-center justify-between gap-4 px-5 py-4 cursor-pointer bg-slate-50 hover:bg-slate-100 transition border-b border-slate-200 list-none select-none\">\n                    <div class=\"min-w-0 flex-1 space-y-2\">\n                        <span class=\"text-[11px] font-bold uppercase tracking-wider text-teal-800 block leading-relaxed\">\n                            Peer-Reviewed Theoretical Architecture (Default Open)\n                        <\/span>\n                        <h2 class=\"text-sm sm:text-base font-bold text-slate-900 leading-relaxed\">\n                            Core Scientific &amp; Physiological Literature Foundations\n                        <\/h2>\n                    <\/div>\n                    <span class=\"text-xs font-semibold text-teal-800 bg-teal-50 border border-teal-200 px-3.5 py-2 rounded self-start sm:self-center shrink-0 leading-normal\">\n                        Toggle Literature\n                    <\/span>\n                <\/summary>\n                <div class=\"p-5 sm:p-6 grid grid-cols-1 lg:grid-cols-2 gap-6 text-xs text-slate-700 leading-relaxed\">\n                    <div class=\"p-4 sm:p-5 rounded-lg border border-slate-200 bg-slate-50\/70 flex flex-col gap-3.5 min-w-0\">\n                        <div class=\"border-b border-slate-200\/90 pb-3.5 space-y-2\">\n                            <span class=\"inline-block text-[10px] font-bold uppercase tracking-wider text-teal-800 bg-teal-50 border border-teal-200 px-2.5 py-1 rounded leading-normal\">\n                                Foundation 01 \u00b7 Proteomics\n                            <\/span>\n                            <h3 class=\"literature-heading font-bold text-slate-900 text-xs sm:text-sm break-words\">\n                                1. Prolonged Water-Only Fasting Proteomics (2024 UK\/European Research \u2014 QMUL, Francis Crick Institute &amp; NSSS)\n                            <\/h3>\n                        <\/div>\n                        <p class=\"leading-7 text-slate-700\">\n                            Grounded in Pietzke et al. (<em>Nature Metabolism<\/em>, 2024; 6:535\u2013550), high-throughput Olink profiling of ~3,000 plasma proteins across 7-day water-only fasting revealed that systemic non-metabolic health adaptations require a distinct <strong>\u226572-hour (3-day) temporal threshold<\/strong>: <strong>Phase I (0\u201324h)<\/strong> hepatic glycogenolysis, declining insulin\/leptin, and initial lipolysis; <strong>Phase II (24\u201372h)<\/strong> de novo hepatic ketogenesis (\u03b2-hydroxybutyrate reaching 3\u20136 mmol\/L), FGF21 secretion, ULK1 macroautophagy, and rapid contraction of labile lean\/extracellular fluid compartments; and <strong>Phase III (\u226572h \/ Day 3\u20137+)<\/strong> abrupt reconfiguration of <strong>1,044 plasma proteins<\/strong> (one-third of the measured proteome), featuring extracellular matrix (ECM) structural remodeling, brain perineuronal net <strong>HYOU1 (GRP170)<\/strong> &amp; <strong>tenascin-R (TNR)<\/strong> neuroprotection, <strong>SWAP70<\/strong> B-cell\/rheumatoid inflammatory suppression, and preservation of core skeletal myofibrillar protein alongside visceral adipose reduction (avg. 5.7 kg total loss: ~3.6 kg lean\/glycogen-water transient + ~1.6 kg pure adipose mass).\n                        <\/p>\n                    <\/div>\n                    <div class=\"p-4 sm:p-5 rounded-lg border border-slate-200 bg-slate-50\/70 flex flex-col gap-3.5 min-w-0\">\n                        <div class=\"border-b border-slate-200\/90 pb-3.5 space-y-2\">\n                            <span class=\"inline-block text-[10px] font-bold uppercase tracking-wider text-teal-800 bg-teal-50 border border-teal-200 px-2.5 py-1 rounded leading-normal\">\n                                Foundation 02 \u00b7 Osmotic Kinetics\n                            <\/span>\n                            <h3 class=\"literature-heading font-bold text-slate-900 text-xs sm:text-sm break-words\">\n                                2. Dry Fasting Dose-Response Kinetics: Adaptive Window (\u226416h) vs. Prolonged Hazard (&gt;24\u201372h+)\n                            <\/h3>\n                        <\/div>\n                        <p class=\"leading-7 text-slate-700\">\n                            The physiological divergence between benefit and harm in <strong>Dry Fasting<\/strong> is strictly governed by duration. <strong>Short-Term \/ Dawn-to-Dusk Dry Fasting (12\u201316h)<\/strong> induces mild, reversible hypertonicity, upregulating erythroid <strong>Nrf2<\/strong> antioxidant enzymes, <strong>NFAT5 (TonEBP)<\/strong> osmoprotective chaperones, and endogenous metabolic water production (~107 g H<sub>2<\/sub>O per 100 g oxidized fat) without renal compromise. Conversely, <strong>Extended Dry Fasting (&gt;24h to \u226548\u201372h)<\/strong> exhausts metabolic water compensation (~300\u2013400 mL\/day vs. ~1,200\u20131,500 mL obligatory insensible + renal losses), driving severe hypernatremia (&gt;145 mmol\/L), arginine vasopressin (AVP\/ADH) and aldose reductase (polyol pathway) renal medullary toxicity, reduced GFR (pre-renal acute kidney injury), hemoconcentration\/thrombosis risk, and competitive <strong>URAT1<\/strong> uric acid crystallization.\n                        <\/p>\n                    <\/div>\n                    <div class=\"p-4 sm:p-5 rounded-lg border border-slate-200 bg-slate-50\/70 flex flex-col gap-3.5 min-w-0\">\n                        <div class=\"border-b border-slate-200\/90 pb-3.5 space-y-2\">\n                            <span class=\"inline-block text-[10px] font-bold uppercase tracking-wider text-teal-800 bg-teal-50 border border-teal-200 px-2.5 py-1 rounded leading-normal\">\n                                Foundation 03 \u00b7 Gluteofemoral Sinks\n                            <\/span>\n                            <h3 class=\"literature-heading font-bold text-slate-900 text-xs sm:text-sm break-words\">\n                                3. The Role of Thigh Circumference &amp; Lower-Body GLUT4 Sinks\n                            <\/h3>\n                        <\/div>\n                        <p class=\"leading-7 text-slate-700\">\n                            Military circumference equations (e.g., US Navy) omit the mid-thigh to avoid variance between quadriceps hypertrophy and subcutaneous fat. Conversely, modern cardiometabolic epidemiology demonstrates that a lower <strong>Waist-to-Thigh Ratio (WTR &lt; 1.50)<\/strong> reflects protective gluteofemoral subcutaneous adipose buffering and expansive skeletal muscle <strong>GLUT4<\/strong> glucose disposal sinks, strongly reinforced by compound lower-extremity exercise such as squats and cycling.\n                        <\/p>\n                    <\/div>\n                    <div class=\"p-4 sm:p-5 rounded-lg border border-slate-200 bg-slate-50\/70 flex flex-col gap-3.5 min-w-0\">\n                        <div class=\"border-b border-slate-200\/90 pb-3.5 space-y-2\">\n                            <span class=\"inline-block text-[10px] font-bold uppercase tracking-wider text-teal-800 bg-teal-50 border border-teal-200 px-2.5 py-1 rounded leading-normal\">\n                                Foundation 04 \u00b7 Multi-Parametric Engine\n                            <\/span>\n                            <h3 class=\"literature-heading font-bold text-slate-900 text-xs sm:text-sm break-words\">\n                                4. Multi-Parametric Anthropometric, Autonomic &amp; Exercise Algorithms\n                            <\/h3>\n                        <\/div>\n                        <p class=\"leading-7 text-slate-700\">\n                            Integrates Quetelet BMI, US Navy + Relative Fat Mass (RFM) consensus adiposity, Drinkwater\/von D\u00f6beln skeletal bone mineral proxy, nocturnal parasympathetic heart rate dipping (<strong>RHR vs. SHR<\/strong>), 13-modality Compendium MET bioenergetics, postprandial walking glycemic clearance, and bidirectional pathological-metabolic risk interactions under a strict <strong>Zero-Defaulting Rule<\/strong>.\n                        <\/p>\n                    <\/div>\n                <\/div>\n            <\/details>\n        <\/section>\n\n        <!-- Validation Banner -->\n        <div id=\"validationAlert\" class=\"hidden bg-red-50 border border-red-300 text-red-900 px-4 py-3 rounded-lg text-xs sm:text-sm font-medium\"><\/div>\n\n        <!-- Sample Profile Active Form Banner -->\n        <div id=\"formSampleProfileBanner\" class=\"hidden bg-amber-50 border-2 border-amber-400 text-amber-950 px-4 py-3.5 rounded-lg text-xs sm:text-sm shadow-sm flex flex-col sm:flex-row sm:items-center justify-between gap-3\">\n            <div class=\"space-y-0.5\">\n                <div class=\"font-bold uppercase tracking-wider text-[11px] text-amber-800 flex items-center gap-1.5\">\n                    <span class=\"inline-block w-2 h-2 rounded-full bg-amber-600\"><\/span>\n                    <span>Sample \/ Demonstration Profile Currently Loaded<\/span>\n                <\/div>\n                <p class=\"leading-relaxed\">\n                    You are currently viewing pre-populated demonstration data (<strong>Dr. Lukas Lindqvist<\/strong>). All scores and evaluations reflect this sample profile. Automated research email transmission is strictly disabled for sample data. Click <strong>\"Clear \/ Reset Form\"<\/strong> above to enter your own personal measurements.\n                <\/p>\n            <\/div>\n        <\/div>\n\n        <form id=\"assessmentForm\" class=\"space-y-6\" novalidate=\"\">\n            <!-- Anti-Spam Honeypot Field (Strictly hidden from human users) -->\n            <div style=\"display:none; visibility:hidden; position:absolute; left:-9999px;\" aria-hidden=\"true\">\n                <label for=\"hp_verification_token\">Verification Token<\/label>\n                <input type=\"text\" id=\"hp_verification_token\" name=\"hp_verification_token\" tabindex=\"-1\" autocomplete=\"off\">\n            <\/div>\n\n            <!-- SECTION 01: Personal, Demographic & Core Anthropometry -->\n            <div class=\"bg-white border border-slate-200 rounded-lg shadow-sm p-5 sm:p-6 space-y-5\">\n                <div class=\"border-b border-slate-200 pb-3 flex flex-col sm:flex-row sm:items-center sm:justify-between gap-2\">\n                    <div>\n                        <span class=\"text-[11px] font-bold uppercase tracking-wider text-teal-800\">Section 01<\/span>\n                        <h2 class=\"text-base sm:text-lg font-bold text-slate-900\">\n                            Demographics &amp; Somatic Anthropometry\n                        <\/h2>\n                    <\/div>\n                    <span class=\"text-xs text-slate-500\">\n                        <strong>Full Name<\/strong> is mandatory. <strong>Email &amp; WhatsApp<\/strong> are mandatory if sending the report to the Research Desk.\n                    <\/span>\n                <\/div>\n\n                <div class=\"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4\">\n                    <div class=\"sm:col-span-2\">\n                        <label for=\"fullName\" class=\"block text-xs font-semibold text-slate-800 mb-1\">\n                            Full Name <span class=\"text-red-600\">*<\/span>\n                        <\/label>\n                        <input type=\"text\" id=\"fullName\" required=\"\" placeholder=\"e.g., Dr. Lukas Lindqvist\" class=\"w-full rounded-md border border-slate-300 bg-white px-3 py-2 text-sm text-slate-900 focus:border-teal-700 focus:outline-none\">\n                    <\/div>\n\n                    <div>\n                        <label for=\"biologicalSex\" class=\"block text-xs font-semibold text-slate-800 mb-1\">\n                            Sex\n                        <\/label>\n                        <select id=\"biologicalSex\" class=\"w-full rounded-md border border-slate-300 bg-white px-3 py-2 text-sm text-slate-900 focus:border-teal-700 focus:outline-none\">\n                            <option value=\"\">\u2014 Leave Blank \u2014<\/option>\n                            <option value=\"Male\">Male<\/option>\n                            <option value=\"Female\">Female<\/option>\n                        <\/select>\n                    <\/div>\n\n                    <div>\n                        <label for=\"ageYears\" class=\"block text-xs font-semibold text-slate-800 mb-1\">\n                            Age (years)\n                        <\/label>\n                        <input type=\"number\" id=\"ageYears\" min=\"10\" max=\"120\" step=\"1\" placeholder=\"Optional\" class=\"w-full rounded-md border border-slate-300 bg-white px-3 py-2 text-sm text-slate-900 focus:border-teal-700 focus:outline-none\">\n                    <\/div>\n                <\/div>\n\n                <!-- Participant Contact Information (Email, Mobile Number & WhatsApp) -->\n                <div class=\"grid grid-cols-1 sm:grid-cols-3 gap-4 pt-3 border-t border-slate-100\">\n                    <div>\n                        <label for=\"userEmail\" class=\"block text-xs font-semibold text-slate-800 mb-1\">\n                            Email Address <span id=\"emailReqBadge\" class=\"text-red-600 font-bold\" title=\"Mandatory when sending report to Research Desk\">*<\/span>\n                        <\/label>\n                        <input type=\"email\" id=\"userEmail\" placeholder=\"e.g., participant@domain.com\" class=\"w-full rounded-md border border-slate-300 bg-white px-3 py-2 text-sm text-slate-900 focus:border-teal-700 focus:outline-none\">\n                    <\/div>\n\n                    <div>\n                        <label for=\"userMobile\" class=\"block text-xs font-semibold text-slate-800 mb-1\">\n                            Mobile Number (with Country Code)\n                        <\/label>\n                        <input type=\"tel\" id=\"userMobile\" placeholder=\"e.g., +61 400 000 000 \/ +91 98765 43210\" class=\"w-full rounded-md border border-slate-300 bg-white px-3 py-2 text-sm text-slate-900 focus:border-teal-700 focus:outline-none\">\n                    <\/div>\n\n                    <div>\n                        <div class=\"flex items-center justify-between gap-2 mb-1\">\n                            <label for=\"userWhatsapp\" class=\"block text-xs font-semibold text-slate-800\">\n                                WhatsApp Number <span id=\"whatsappReqBadge\" class=\"text-red-600 font-bold\" title=\"Mandatory when sending report to Research Desk\">*<\/span>\n                            <\/label>\n                            <label class=\"inline-flex items-center gap-1 text-[11px] font-medium text-teal-800 cursor-pointer select-none\">\n                                <input type=\"checkbox\" id=\"whatsappSameAsMobile\" class=\"h-3.5 w-3.5 rounded border-slate-300 text-teal-800\">\n                                <span>Same as Mobile<\/span>\n                            <\/label>\n                        <\/div>\n                        <input type=\"tel\" id=\"userWhatsapp\" placeholder=\"e.g., +61 400 000 000\" class=\"w-full rounded-md border border-slate-300 bg-white px-3 py-2 text-sm text-slate-900 focus:border-teal-700 focus:outline-none\">\n                    <\/div>\n                <\/div>\n\n                <!-- Weight, Height & Girth Unit Toggles -->\n                <div class=\"grid grid-cols-1 md:grid-cols-3 gap-4 pt-2 border-t border-slate-100\">\n                    <!-- Weight -->\n                    <div class=\"p-3.5 rounded-lg border border-slate-200 bg-slate-50\/60 space-y-2\">\n                        <div class=\"flex items-center justify-between gap-2\">\n                            <label for=\"weightInput\" class=\"text-xs font-semibold text-slate-800\">Total Body Weight<\/label>\n                            <select id=\"weightUnit\" class=\"rounded border border-slate-300 bg-white px-2 py-1 text-xs font-medium text-slate-800\">\n                                <option value=\"kg\">kg<\/option>\n                                <option value=\"lbs\">lbs<\/option>\n                            <\/select>\n                        <\/div>\n                        <input type=\"number\" id=\"weightInput\" min=\"20\" max=\"450\" step=\"0.1\" placeholder=\"Leave blank if unknown\" class=\"w-full rounded-md border border-slate-300 bg-white px-3 py-2 text-sm text-slate-900\">\n                    <\/div>\n\n                    <!-- Height -->\n                    <div class=\"p-3.5 rounded-lg border border-slate-200 bg-slate-50\/60 space-y-2\">\n                        <div class=\"flex items-center justify-between gap-2\">\n                            <label class=\"text-xs font-semibold text-slate-800\">Standing Height<\/label>\n                            <select id=\"heightUnit\" class=\"rounded border border-slate-300 bg-white px-2 py-1 text-xs font-medium text-slate-800\">\n                                <option value=\"cm\">cm<\/option>\n                                <option value=\"ftin\">ft \/ in<\/option>\n                            <\/select>\n                        <\/div>\n                        <div id=\"heightCmWrap\">\n                            <input type=\"number\" id=\"heightCmInput\" min=\"80\" max=\"250\" step=\"0.1\" placeholder=\"Centimeters (cm)\" class=\"w-full rounded-md border border-slate-300 bg-white px-3 py-2 text-sm text-slate-900\">\n                        <\/div>\n                        <div id=\"heightFtInWrap\" class=\"hidden grid grid-cols-2 gap-2\">\n                            <input type=\"number\" id=\"heightFtInput\" min=\"3\" max=\"8\" step=\"1\" placeholder=\"Feet (ft)\" class=\"w-full rounded-md border border-slate-300 bg-white px-3 py-2 text-sm text-slate-900\">\n                            <input type=\"number\" id=\"heightInInput\" min=\"0\" max=\"12\" step=\"0.1\" placeholder=\"Inches (in)\" class=\"w-full rounded-md border border-slate-300 bg-white px-3 py-2 text-sm text-slate-900\">\n                        <\/div>\n                    <\/div>\n\n                    <!-- Circumference Unit Selector -->\n                    <div class=\"p-3.5 rounded-lg border border-slate-200 bg-slate-50\/60 space-y-2\">\n                        <div class=\"flex items-center justify-between gap-2\">\n                            <label for=\"girthUnit\" class=\"text-xs font-semibold text-slate-800\">Circumference Unit<\/label>\n                            <select id=\"girthUnit\" class=\"rounded border border-slate-300 bg-white px-2 py-1 text-xs font-medium text-slate-800\">\n                                <option value=\"cm\">Centimeters (cm)<\/option>\n                                <option value=\"in\">Inches (in)<\/option>\n                            <\/select>\n                        <\/div>\n                        <p class=\"text-[11px] text-slate-600 leading-normal\">\n                            Applies to Wrist, Neck, Waist, Hip, and Mid-Thigh circumferences below.\n                        <\/p>\n                    <\/div>\n                <\/div>\n\n                <!-- 5 Somatic Circumferences -->\n                <div class=\"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 gap-4\">\n                    <div>\n                        <label for=\"wristInput\" class=\"block text-xs font-semibold text-slate-800 mb-1\">\n                            Wrist Girth (Distal Styloid)\n                        <\/label>\n                        <input type=\"number\" id=\"wristInput\" min=\"8\" max=\"45\" step=\"0.1\" placeholder=\"Optional\" class=\"w-full rounded-md border border-slate-300 bg-white px-3 py-2 text-sm text-slate-900\">\n                    <\/div>\n                    <div>\n                        <label for=\"neckInput\" class=\"block text-xs font-semibold text-slate-800 mb-1\">\n                            Neck Girth (Inferior Larynx)\n                        <\/label>\n                        <input type=\"number\" id=\"neckInput\" min=\"15\" max=\"85\" step=\"0.1\" placeholder=\"Optional\" class=\"w-full rounded-md border border-slate-300 bg-white px-3 py-2 text-sm text-slate-900\">\n                    <\/div>\n                    <div>\n                        <label for=\"waistInput\" class=\"block text-xs font-semibold text-slate-800 mb-1\">\n                            Waist Girth (Narrowest \/ Navel)\n                        <\/label>\n                        <input type=\"number\" id=\"waistInput\" min=\"35\" max=\"250\" step=\"0.1\" placeholder=\"Optional\" class=\"w-full rounded-md border border-slate-300 bg-white px-3 py-2 text-sm text-slate-900\">\n                    <\/div>\n                    <div>\n                        <label for=\"hipInput\" class=\"block text-xs font-semibold text-slate-800 mb-1\">\n                            Hip Girth (Widest Trochanter)\n                        <\/label>\n                        <input type=\"number\" id=\"hipInput\" min=\"40\" max=\"250\" step=\"0.1\" placeholder=\"Optional\" class=\"w-full rounded-md border border-slate-300 bg-white px-3 py-2 text-sm text-slate-900\">\n                    <\/div>\n                    <div>\n                        <label for=\"thighInput\" class=\"block text-xs font-semibold text-slate-800 mb-1\">\n                            Mid-Thigh Girth (Gluteofemoral)\n                        <\/label>\n                        <input type=\"number\" id=\"thighInput\" min=\"20\" max=\"140\" step=\"0.1\" placeholder=\"Optional\" class=\"w-full rounded-md border border-slate-300 bg-white px-3 py-2 text-sm text-slate-900\">\n                    <\/div>\n                <\/div>\n            <\/div>\n\n            <div class=\"bg-white border border-slate-200 rounded-lg shadow-sm p-5 sm:p-6 space-y-5\">\n                <div class=\"border-b border-slate-200 pb-3\">\n                    <span class=\"text-[11px] font-bold uppercase tracking-wider text-teal-800\">Section 02<\/span>\n                    <h2 class=\"text-base sm:text-lg font-bold text-slate-900\">\n                        Autonomic Cardiac Vitals &amp; Nutritional Architecture\n                    <\/h2>\n                <\/div>\n\n                <div class=\"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4\">\n                    <div>\n                        <label for=\"rhrInput\" class=\"block text-xs font-semibold text-slate-800 mb-1\">\n                            Wakeful Resting Heart Rate (RHR, bpm)\n                        <\/label>\n                        <input type=\"number\" id=\"rhrInput\" min=\"25\" max=\"220\" step=\"1\" placeholder=\"e.g., 56\" class=\"w-full rounded-md border border-slate-300 bg-white px-3 py-2 text-sm text-slate-900\">\n                    <\/div>\n\n                    <div>\n                        <label for=\"shrInput\" class=\"block text-xs font-semibold text-slate-800 mb-1\">\n                            Sleeping Heart Rate (SHR, bpm)\n                        <\/label>\n                        <input type=\"number\" id=\"shrInput\" min=\"20\" max=\"200\" step=\"1\" placeholder=\"e.g., 47\" class=\"w-full rounded-md border border-slate-300 bg-white px-3 py-2 text-sm text-slate-900\">\n                    <\/div>\n\n                    <div>\n                        <label for=\"mealsPerDayInput\" class=\"block text-xs font-semibold text-slate-800 mb-1\">\n                            Meals per Day\n                        <\/label>\n                        <input type=\"number\" id=\"mealsPerDayInput\" min=\"0\" max=\"24\" step=\"1\" placeholder=\"e.g., 2\" class=\"w-full rounded-md border border-slate-300 bg-white px-3 py-2 text-sm text-slate-900\">\n                        <span class=\"block text-[10px] text-slate-500 mt-1 leading-tight\">\n                            Note: Any calorie consumption (&gt;0 kcal) counts as a meal.\n                        <\/span>\n                    <\/div>\n\n                    <div>\n                        <label for=\"dietaryProfile\" class=\"block text-xs font-semibold text-slate-800 mb-1\">\n                            Dietary Classification\n                        <\/label>\n                        <select id=\"dietaryProfile\" class=\"w-full rounded-md border border-slate-300 bg-white px-3 py-2 text-sm text-slate-900\">\n                            <option value=\"\">\u2014 Leave Blank \u2014<\/option>\n                            <option value=\"Pure Vegetarian (Vegan)\">Pure Vegetarian (Vegan)<\/option>\n                            <option value=\"Vegetarian Lacto\">Vegetarian Lacto<\/option>\n                            <option value=\"Vegetarian Ovo-Lacto (Eggetarian)\">Vegetarian Ovo-Lacto (Eggetarian)<\/option>\n                            <option value=\"Meat Eater \/ Omnivore\">Meat Eater \/ Omnivore<\/option>\n                        <\/select>\n                        <span class=\"block text-[10px] text-slate-500 mt-1 leading-tight\">\n                            <strong>Vegetarian Lacto:<\/strong> Plant foods + dairy (no eggs\/meat). <strong>Vegetarian Ovo-Lacto (Eggetarian):<\/strong> Plant foods + eggs &amp; dairy (no meat\/fish; culinary unfertilized eggs contain no animal flesh).\n                        <\/span>\n                    <\/div>\n                <\/div>\n            <\/div>\n\n            <div class=\"bg-white border border-slate-200 rounded-lg shadow-sm p-5 sm:p-6 space-y-5\">\n                <div class=\"border-b border-slate-200 pb-3\">\n                    <span class=\"text-[11px] font-bold uppercase tracking-wider text-teal-800\">Section 03<\/span>\n                    <h2 class=\"text-base sm:text-lg font-bold text-slate-900\">\n                        13-Modality Exercise Bioenergetics, Post-Meal Timing &amp; Postprandial Walking Kinetics\n                    <\/h2>\n                    <p class=\"text-xs text-slate-600 mt-1\">\n                        Select any practiced exercise modalities (including <strong>Squats<\/strong>, <strong>Cycling<\/strong>, <strong>Stairs Climbing<\/strong>, <strong>Running<\/strong>, <strong>Walking<\/strong>, <strong>Yoga<\/strong>, and <strong>Resistance<\/strong>) to specify time windows, session duration, and hours elapsed after your last meal (any calorie consumption &gt;0 kcal counts as a meal).\n                    <\/p>\n                <\/div>\n\n                <!-- Global Exercise Timing & Postprandial Walking Bar -->\n                <div class=\"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 gap-4 p-4 rounded-lg bg-slate-50 border border-slate-200\">\n                    <div>\n                        <label for=\"primaryCircadianWindow\" class=\"block text-xs font-semibold text-slate-800 mb-1\">\n                            Primary Exercise Time Window\n                        <\/label>\n                        <select id=\"primaryCircadianWindow\" class=\"w-full rounded-md border border-slate-300 bg-white px-2.5 py-2 text-xs text-slate-900\">\n                            <option value=\"\">\u2014 Leave Blank \u2014<\/option>\n                            <option value=\"Early Morning (05:00\u201308:00)\">Early Morning (05:00\u201308:00)<\/option>\n                            <option value=\"Late Morning (08:00\u201312:00)\">Late Morning (08:00\u201312:00)<\/option>\n                            <option value=\"Afternoon (12:00\u201317:00)\">Afternoon (12:00\u201317:00)<\/option>\n                            <option value=\"Evening (17:00\u201321:00)\">Evening (17:00\u201321:00)<\/option>\n                            <option value=\"Distributed Post-Meal Windows\">Distributed Post-Meal Windows<\/option>\n                        <\/select>\n                    <\/div>\n\n                    <div>\n                        <label for=\"hoursAfterLastIntake\" class=\"block text-xs font-semibold text-slate-800 mb-1\">\n                            Hrs After Last Meal (&gt;0 kcal)\n                        <\/label>\n                        <input type=\"number\" id=\"hoursAfterLastIntake\" min=\"0\" max=\"168\" step=\"0.25\" placeholder=\"e.g., 14 hrs\" class=\"w-full rounded-md border border-slate-300 bg-white px-2.5 py-2 text-xs text-slate-900\">\n                    <\/div>\n\n                    <div>\n                        <label for=\"postMealWalkStatus\" class=\"block text-xs font-semibold text-slate-800 mb-1\">\n                            Walking After Meals?\n                        <\/label>\n                        <select id=\"postMealWalkStatus\" class=\"w-full rounded-md border border-slate-300 bg-white px-2.5 py-2 text-xs text-slate-900\">\n                            <option value=\"\">\u2014 Leave Blank \u2014<\/option>\n                            <option value=\"Yes \u2014 After All Meals\">Yes \u2014 After All Meals<\/option>\n                            <option value=\"Yes \u2014 After Main Meal Only\">Yes \u2014 After Main Meal Only<\/option>\n                            <option value=\"Yes \u2014 After Dinner Only\">Yes \u2014 After Dinner Only<\/option>\n                            <option value=\"Occasionally\">Occasionally<\/option>\n                            <option value=\"No\">No Dedicated Post-Meal Walk<\/option>\n                        <\/select>\n                    <\/div>\n\n                    <div>\n                        <label for=\"postMealWalkDurationMins\" class=\"block text-xs font-semibold text-slate-800 mb-1\">\n                            Post-Meal Walk Duration (mins)\n                        <\/label>\n                        <input type=\"number\" id=\"postMealWalkDurationMins\" min=\"1\" max=\"180\" step=\"1\" placeholder=\"e.g., 15 mins\" class=\"w-full rounded-md border border-slate-300 bg-white px-2.5 py-2 text-xs text-slate-900\">\n                    <\/div>\n\n                    <div>\n                        <label for=\"postMealWalkDelay\" class=\"block text-xs font-semibold text-slate-800 mb-1\">\n                            Walk Latency After Eating\n                        <\/label>\n                        <select id=\"postMealWalkDelay\" class=\"w-full rounded-md border border-slate-300 bg-white px-2.5 py-2 text-xs text-slate-900\">\n                            <option value=\"\">\u2014 Leave Blank \u2014<\/option>\n                            <option value=\"Immediate (0\u201315 mins post-meal)\">Immediate (0\u201315 mins)<\/option>\n                            <option value=\"Early Postprandial (15\u201330 mins)\">Early (15\u201330 mins)<\/option>\n                            <option value=\"Mid Postprandial (30\u201360 mins)\">Mid (30\u201360 mins)<\/option>\n                            <option value=\"Late Postprandial (&gt;60 mins)\">Late (&gt;60 mins)<\/option>\n                        <\/select>\n                    <\/div>\n                <\/div>\n\n                <!-- Dynamic 13 Exercise Modality Cards Container -->\n                <div id=\"exerciseModalitiesGrid\" class=\"grid grid-cols-1 md:grid-cols-2 gap-3.5\"><\/div>\n            <\/div>\n\n            <div class=\"bg-white border border-slate-200 rounded-lg shadow-sm p-5 sm:p-6 space-y-5\">\n                <div class=\"border-b border-slate-200 pb-3\">\n                    <span class=\"text-[11px] font-bold uppercase tracking-wider text-teal-800\">Section 04<\/span>\n                    <h2 class=\"text-base sm:text-lg font-bold text-slate-900\">\n                        Fasting Protocols (24h to 7-Day Water-Only Fasting Physiology &amp; Dry Fasting Dose-Response Kinetics)\n                    <\/h2>\n                    <p class=\"text-xs text-slate-600 mt-1\">\n                        Specify practiced fasting architectures. <strong>Water-Only Fasting (24h\u2013168h)<\/strong> is mapped across hepatic ketogenesis, brain glymphatic clearance, autophagy\/mitophagy, and the 2024 UK 1,044-protein remodeling threshold (Pietzke et al., <em>Nature Metabolism<\/em> 2024), while <strong>Dry Fasting<\/strong> is stratified against osmotic and renal boundaries.\n                    <\/p>\n                <\/div>\n\n                <div class=\"space-y-4\">\n                    <!-- Water Fasting Horizontal Panel -->\n                    <div class=\"p-4 rounded-lg border border-slate-200 bg-slate-50\/60 space-y-4\">\n                        <div class=\"flex flex-col lg:flex-row lg:items-center lg:justify-between gap-3\">\n                            <label class=\"flex items-start gap-2.5 cursor-pointer\">\n                                <input type=\"checkbox\" id=\"waterFastEnabled\" class=\"mt-0.5 h-4 w-4 rounded border-slate-300 text-teal-800\">\n                                <div>\n                                    <span class=\"text-sm font-bold text-slate-900 block\">Water-Only Fasting Protocol Practiced (24 Hours to 7 Days)<\/span>\n                                    <span class=\"text-xs text-slate-600 block\">Zero-calorie mineral\/pure water intake. Check this box to log your personal water-fasting frequency and duration.<\/span>\n                                <\/div>\n                            <\/label>\n                        <\/div>\n\n                        <div id=\"waterFastDetails\" class=\"hidden pt-3 border-t border-slate-200\">\n                            <div class=\"grid grid-cols-1 sm:grid-cols-3 gap-3 bg-white p-3 rounded-md border border-slate-200\">\n                                <div>\n                                    <label for=\"waterFastFreq\" class=\"block text-xs font-semibold text-slate-700 mb-1\">Frequency<\/label>\n                                    <select id=\"waterFastFreq\" class=\"w-full rounded border border-slate-300 bg-white px-2.5 py-1.5 text-xs text-slate-900\">\n                                        <option value=\"\">\u2014 Blank \u2014<\/option>\n                                        <option value=\"Daily\">Daily (TRE 16:8 \/ 20:4)<\/option>\n                                        <option value=\"Weekly\">Weekly (24\u201336h)<\/option>\n                                        <option value=\"Monthly\">Monthly (48\u201372h)<\/option>\n                                        <option value=\"Bi-monthly\">Bi-monthly<\/option>\n                                        <option value=\"Tri-monthly\">Tri-monthly (Quarterly)<\/option>\n                                        <option value=\"Annual\">Annual (Multi-Day)<\/option>\n                                    <\/select>\n                                <\/div>\n                                <div>\n                                    <label for=\"waterFastDurationVal\" class=\"block text-xs font-semibold text-slate-700 mb-1\">Average Duration<\/label>\n                                    <input type=\"number\" id=\"waterFastDurationVal\" min=\"0.5\" max=\"1000\" step=\"0.5\" placeholder=\"e.g., 72\" class=\"w-full rounded border border-slate-300 bg-white px-2.5 py-1.5 text-xs text-slate-900\">\n                                <\/div>\n                                <div>\n                                    <label for=\"waterFastDurationUnit\" class=\"block text-xs font-semibold text-slate-700 mb-1\">Duration Unit<\/label>\n                                    <select id=\"waterFastDurationUnit\" class=\"w-full rounded border border-slate-300 bg-white px-2.5 py-1.5 text-xs text-slate-900\">\n                                        <option value=\"hours\">Hours<\/option>\n                                        <option value=\"days\">Days<\/option>\n                                    <\/select>\n                                <\/div>\n                            <\/div>\n                        <\/div>\n\n                        <!-- Always-Visible 4-Stage Chronobiological Timeline (Horizontal 4-Column Strip: 24h to 7 Days) -->\n                        <div class=\"bg-white p-3.5 rounded-md border border-teal-200 space-y-2.5\">\n                            <div class=\"flex flex-wrap items-center justify-between gap-2 border-b border-slate-100 pb-2\">\n                                <span class=\"text-xs font-bold uppercase tracking-wider text-teal-900\">\n                                    A. Chronobiological Progression Across 24 Hours to 7 Days (168 Hours) of Water-Only Fasting\n                                <\/span>\n                                <span class=\"text-[11px] font-semibold text-teal-800 bg-teal-50 px-2 py-0.5 rounded border border-teal-200\">\n                                    Pietzke et al., Nature Metabolism (2024) \u00b7 QMUL &amp; Francis Crick Institute\n                                <\/span>\n                            <\/div>\n                            <div class=\"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3 text-[11px] leading-relaxed\">\n                                <div class=\"p-3 rounded border border-teal-200 bg-teal-50\/30\">\n                                    <div class=\"font-bold text-teal-950 text-xs\">Stage 1 \u00b7 0\u201324 Hours (Day 1): Hepatic Glycogenolysis &amp; Insulin Decline<\/div>\n                                    <p class=\"text-slate-700 mt-1\">\n                                        Exhausts ~100\u2013120 g of hepatic glycogen via glycogen phosphorylase. Circulating insulin, C-peptide, and leptin fall by 40\u201360%, relieving mTORC1 inhibition. Rising glucagon and catecholamines activate hormone-sensitive lipase (HSL) and adipose triglyceride lipase (ATGL) in adipocytes, liberating non-esterified fatty acids (NEFAs) while initiating basal ULK1 macroautophagy.\n                                    <\/p>\n                                <\/div>\n                                <div class=\"p-3 rounded border border-teal-200 bg-teal-50\/30\">\n                                    <div class=\"font-bold text-teal-950 text-xs\">Stage 2 \u00b7 24\u201348 Hours (Day 2): De Novo Ketogenesis &amp; Pulsatile GH Surge<\/div>\n                                    <p class=\"text-slate-700 mt-1\">\n                                        Hepatic mitochondrial HMG-CoA synthase 2 (HMGCS2) converts acetyl-CoA into acetoacetate and <strong>\u03b2-hydroxybutyrate (\u03b2-HB, 1.5\u20133.2 mmol\/L)<\/strong>. Pulsatile growth hormone (GH) surges up to 5-fold to defend skeletal myofibrillar protein against proteolysis. Neuronal BDNF rises, and selective <strong>PINK1\/Parkin mitophagy<\/strong> begins clearing depolarized mitochondria.\n                                    <\/p>\n                                <\/div>\n                                <div class=\"p-3 rounded border border-teal-200 bg-teal-50\/30\">\n                                    <div class=\"font-bold text-teal-950 text-xs\">Stage 3 \u00b7 48\u201372 Hours (Day 3): The 1,044-Protein Systemic Threshold<\/div>\n                                    <p class=\"text-slate-700 mt-1\">\n                                        Marks the critical 72-hour inflection point discovered in 2024 UK research: <strong>1,044 of ~3,000 measured plasma proteins<\/strong> abruptly reconfigure across all major organs. Pro-inflammatory <strong>SWAP70<\/strong> drops, brain perineuronal net proteins (<strong>HYOU1\/GRP170 &amp; tenascin-R<\/strong>) remodel, hepatokine <strong>FGF21<\/strong> peaks, and autophagic\/lysosomal flux reaches deep tissue saturation.\n                                    <\/p>\n                                <\/div>\n                                <div class=\"p-3 rounded border border-teal-200 bg-teal-50\/30\">\n                                    <div class=\"font-bold text-teal-950 text-xs\">Stage 4 \u00b7 72\u2013168 Hours (Days 4\u20137): Ketone Dominance &amp; Multi-Organ Reset<\/div>\n                                    <p class=\"text-slate-700 mt-1\">\n                                        Plasma <strong>\u03b2-HB plateaus at 4.0\u20136.5 mmol\/L<\/strong>, supplying 60\u201370% of cerebral energy requirements and reducing renal\/hepatic gluconeogenic protein breakdown to &lt;20 g\/day. Across a 7-day water fast, subjects lose an average of <strong>5.7 kg<\/strong> (~3.6 kg glycogen\/extracellular fluid transient + <strong>~1.6 kg pure visceral &amp; subcutaneous adipose mass<\/strong>), while IGF-1 and PCSK9 fall markedly.\n                                    <\/p>\n                                <\/div>\n                            <\/div>\n                        <\/div>\n\n                        <!-- Always-Visible 8-Domain Multi-Organ Physiology & Clinical Condition Horizontal Grid (4x2 on Large Screens) -->\n                        <div class=\"bg-white p-3.5 rounded-md border border-slate-200 space-y-2.5\">\n                            <div class=\"border-b border-slate-100 pb-2\">\n                                <span class=\"text-xs font-bold uppercase tracking-wider text-teal-900\">\n                                    B. Organ-by-Organ Physiology &amp; Pathophysiological Effects (Ketones, Brain, Liver, Gut, Autophagy, Mitophagy, Diabetes, Obesity &amp; BP)\n                                <\/span>\n                            <\/div>\n                            <div class=\"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-3 text-[11px] leading-relaxed\">\n                                <div class=\"p-3 rounded border border-slate-200 bg-slate-50\/50\">\n                                    <div class=\"font-bold text-slate-900 text-xs\">1. Ketone Generation (\u03b2-HB) &amp; Epigenetic Signaling<\/div>\n                                    <p class=\"text-slate-700 mt-1\">\n                                        Adipose lipolysis delivers free fatty acids to hepatocyte mitochondria via <strong>CPT-1<\/strong>, generating acetoacetate, acetone, and <strong>\u03b2-hydroxybutyrate (\u03b2-HB)<\/strong>. Beyond yielding a higher ATP-per-oxygen ratio (\u0394G\u2032 of ATP hydrolysis) than glucose, \u03b2-HB acts as a potent signaling metabolite: it binds <strong>HCAR2 (GPR109A)<\/strong> on immune and endothelial cells, directly inhibits <strong>Class I histone deacetylases (HDAC1\/2\/3)<\/strong> to upregulate longevity transcription factor <strong>FOXO3a<\/strong>, metallothionein, and <strong>MnSOD (SOD2)<\/strong>, and blocks K<sup>+<\/sup> efflux to suppress the <strong>NLRP3 inflammasome<\/strong> (lowering IL-1\u03b2 and IL-18).\n                                    <\/p>\n                                <\/div>\n                                <div class=\"p-3 rounded border border-slate-200 bg-slate-50\/50\">\n                                    <div class=\"font-bold text-slate-900 text-xs\">2. The Brain, Neuroprotection &amp; Brain Detoxification<\/div>\n                                    <p class=\"text-slate-700 mt-1\">\n                                        Ketones cross the blood-brain barrier via upregulated <strong>MCT1\/MCT2<\/strong> transporters, shifting the glutamate-to-<strong>GABA<\/strong> ratio toward calm synaptic stability and elevating <strong>BDNF<\/strong> in the hippocampus. <strong>Brain Detoxification:<\/strong> Prolonged water fasting (\u226548\u201372h) activates neuronal macroautophagy and <strong>LAMP2A chaperone-mediated autophagy<\/strong> to degrade misfolded <strong>hyperphosphorylated tau, amyloid-\u03b2 oligomers, and \u03b1-synuclein<\/strong>, while astrocytic <strong>aquaporin-4 (AQP4) glymphatic clearance<\/strong> and 2024 UK-identified ER chaperone <strong>HYOU1 (GRP170)<\/strong> &amp; <strong>tenascin-R (TNR)<\/strong> remodel perineuronal nets.\n                                    <\/p>\n                                <\/div>\n                                <div class=\"p-3 rounded border border-slate-200 bg-slate-50\/50\">\n                                    <div class=\"font-bold text-slate-900 text-xs\">3. The Liver &amp; Fatty Liver Disease (NAFLD \/ MASLD)<\/div>\n                                    <p class=\"text-slate-700 mt-1\">\n                                        Fasting completely silences insulin-driven <strong>SREBP-1c<\/strong> and <strong>ChREBP<\/strong>, halting hepatic <em>de novo<\/em> lipogenesis (DNL). Concurrently, activation of <strong>PPAR\u03b1<\/strong> and secretion of hepatokine <strong>FGF21<\/strong> accelerate intrahepatic mitochondrial and peroxisomal \u03b2-oxidation. In <strong>Fatty Liver Disease (NAFLD\/MASLD)<\/strong>, 24h to 7-day water fasts oxidize <strong>30\u201350%+ of intrahepatic triglyceride droplets<\/strong>, clear lipotoxic diacylglycerols (DAGs), suppress hepatic stellate cell fibrogenesis, and reduce circulating <strong>PCSK9<\/strong> and VLDL-triglyceride export.\n                                    <\/p>\n                                <\/div>\n                                <div class=\"p-3 rounded border border-slate-200 bg-slate-50\/50\">\n                                    <div class=\"font-bold text-slate-900 text-xs\">4. Digestive Organs, Intestinal Stem Cells &amp; Microbiome<\/div>\n                                    <p class=\"text-slate-700 mt-1\">\n                                        <strong>Stomach, Pancreas &amp; Biliary Tree:<\/strong> Cessation of intake halts gastric acid\/pepsinogen hypersecretion and grants complete secretory rest to pancreatic acinar and \u03b2-cells while strong phase III <strong>migrating motor complexes (MMCs)<\/strong> sweep the small bowel every 90\u2013120 minutes. <strong>Gut Renewal (\u226524\u201372h):<\/strong> Fatty acid oxidation activates <strong>PPAR\u03b4 in Lgr5+ intestinal crypt stem cells<\/strong>, doubling regenerative capacity, tightening <strong>occludin\/ZO-1<\/strong> epithelial junctions (resolving endotoxemia\/LPS leak), and enriching mucin-degrading <strong><em>Akkermansia muciniphila<\/em><\/strong>.\n                                    <\/p>\n                                <\/div>\n                                <div class=\"p-3 rounded border border-slate-200 bg-slate-50\/50\">\n                                    <div class=\"font-bold text-slate-900 text-xs\">5. Autophagy, Selective Mitophagy &amp; Immune Senolysis<\/div>\n                                    <p class=\"text-slate-700 mt-1\">\n                                        <strong>Macroautophagy:<\/strong> Rising AMP:ATP and NAD<sup>+<\/sup>:NADH ratios activate <strong>AMPK<\/strong> and <strong>SIRT1<\/strong> while suppressing mTORC1, phosphorylating <strong>ULK1 (Ser317\/Ser777)<\/strong>, Beclin-1, and <strong>LC3-II<\/strong> to engulf damaged cytosolic proteins and ER membranes, coordinated by <strong>TFEB<\/strong> nuclear translocation. <strong>Mitophagy:<\/strong> Depolarized, ROS-leaking mitochondria accumulate outer-membrane <strong>PINK1<\/strong>, recruiting E3 ligase <strong>Parkin<\/strong> and <strong>BNIP3\/NIX<\/strong> receptors for mitolysosomal recycling\u2014followed by <strong>PGC-1\u03b1<\/strong> mitochondrial biogenesis and hematopoietic stem cell renewal upon refeeding.\n                                    <\/p>\n                                <\/div>\n                                <div class=\"p-3 rounded border border-slate-200 bg-slate-50\/50\">\n                                    <div class=\"font-bold text-slate-900 text-xs\">6. Type 2 Diabetes, Glycemic Control &amp; Pancreatic Reset<\/div>\n                                    <p class=\"text-slate-700 mt-1\">\n                                        In <strong>Pre-Diabetes and Type 2 Diabetes<\/strong>, 24h to 7-day water fasting drains ectopic intramyocellular and intrahepatic <strong>ceramides and diacylglycerols (DAGs)<\/strong> that otherwise inhibit <strong>IRS-1 tyrosine phosphorylation<\/strong> via PKC\u03b5\/\u03b8. This restores insulin-stimulated <strong>PI3K\/Akt\/GLUT4<\/strong> glucose transport, normalizes fasting hepatic gluconeogenesis, relieves endoplasmic reticulum stress in pancreatic islets, and lowers 24-hour insulin AUC by 50\u201370% (<em>note: insulin\/sulfonylurea\/SGLT2i users require medical supervision to avoid hypoglycemia or eDKA<\/em>).\n                                    <\/p>\n                                <\/div>\n                                <div class=\"p-3 rounded border border-slate-200 bg-slate-50\/50\">\n                                    <div class=\"font-bold text-slate-900 text-xs\">7. Visceral Obesity, Adipokines &amp; Skeletal Muscle Preservation<\/div>\n                                    <p class=\"text-slate-700 mt-1\">\n                                        <strong>Obesity &amp; Visceral Fat:<\/strong> Visceral omental and mesenteric adipocytes express high density of lipolytic <strong>\u03b2<sub>3<\/sub>-adrenergic receptors<\/strong> and low antilipolytic \u03b1<sub>2<\/sub>-receptors, causing water fasting to preferentially mobilize visceral fat over subcutaneous depots while raising <strong>adiponectin<\/strong> and resolving leptin resistance. <strong>Muscle Preservation:<\/strong> Per 2024 UK proteomics, myofibrillar structural proteins are spared via GH-stat5b signaling and ketone-mediated suppression of branched-chain ketoacid dehydrogenase (BCKDH).\n                                    <\/p>\n                                <\/div>\n                                <div class=\"p-3 rounded border border-slate-200 bg-slate-50\/50\">\n                                    <div class=\"font-bold text-slate-900 text-xs\">8. Kidneys, Vascular Endothelium &amp; Blood Pressure<\/div>\n                                    <p class=\"text-slate-700 mt-1\">\n                                        <strong>Blood Pressure Reduction:<\/strong> Insulin normally stimulates renal proximal\/distal tubular sodium reabsorption via NHE3 and ENaC. When fasting lowers insulin, brisk <strong>fasting natriuresis<\/strong> excretes excess sodium and extracellular fluid. Combined with vagal parasympathetic dominance, sympathetic withdrawal, and \u03b2-HB-enhanced endothelial <strong>nitric oxide (eNOS)<\/strong> vasodilation, water-only fasting reduces resting blood pressure by an average of <strong>8\u201315 mmHg systolic and 5\u201310 mmHg diastolic<\/strong> while preserving normal euvolemic GFR.\n                                    <\/p>\n                                <\/div>\n                            <\/div>\n                        <\/div>\n                    <\/div>\n\n                    <!-- Dry Fasting Horizontal Panel -->\n                    <div class=\"p-4 rounded-lg border border-slate-200 bg-slate-50\/60 space-y-3\">\n                        <label class=\"flex items-start gap-2.5 cursor-pointer\">\n                            <input type=\"checkbox\" id=\"dryFastEnabled\" class=\"mt-0.5 h-4 w-4 rounded border-slate-300 text-teal-800\">\n                            <div>\n                                <span class=\"text-sm font-bold text-slate-900 block\">Dry Fasting Protocol Practiced<\/span>\n                                <span class=\"text-xs text-slate-600 block\">Complete abstinence from food and fluids. Check this box to log your personal dry-fasting frequency and duration.<\/span>\n                            <\/div>\n                        <\/label>\n                        <div id=\"dryFastDetails\" class=\"hidden pt-3 border-t border-slate-200\">\n                            <div class=\"grid grid-cols-1 sm:grid-cols-3 gap-3 bg-white p-3 rounded-md border border-slate-200\">\n                                <div>\n                                    <label for=\"dryFastFreq\" class=\"block text-xs font-semibold text-slate-700 mb-1\">Frequency<\/label>\n                                    <select id=\"dryFastFreq\" class=\"w-full rounded border border-slate-300 bg-white px-2.5 py-1.5 text-xs text-slate-900\">\n                                        <option value=\"\">\u2014 Blank \u2014<\/option>\n                                        <option value=\"Daily\">Daily (Intermittent Dawn-Dusk)<\/option>\n                                        <option value=\"Weekly\">Weekly<\/option>\n                                        <option value=\"Monthly\">Monthly<\/option>\n                                        <option value=\"Bi-monthly\">Bi-monthly<\/option>\n                                        <option value=\"Tri-monthly\">Tri-monthly<\/option>\n                                        <option value=\"Annual\">Annual<\/option>\n                                    <\/select>\n                                <\/div>\n                                <div>\n                                    <label for=\"dryFastDurationVal\" class=\"block text-xs font-semibold text-slate-700 mb-1\">Average Duration<\/label>\n                                    <input type=\"number\" id=\"dryFastDurationVal\" min=\"0.5\" max=\"240\" step=\"0.5\" placeholder=\"e.g., 14\" class=\"w-full rounded border border-slate-300 bg-white px-2.5 py-1.5 text-xs text-slate-900\">\n                                <\/div>\n                                <div>\n                                    <label for=\"dryFastDurationUnit\" class=\"block text-xs font-semibold text-slate-700 mb-1\">Duration Unit<\/label>\n                                    <select id=\"dryFastDurationUnit\" class=\"w-full rounded border border-slate-300 bg-white px-2.5 py-1.5 text-xs text-slate-900\">\n                                        <option value=\"hours\">Hours<\/option>\n                                        <option value=\"days\">Days<\/option>\n                                    <\/select>\n                                <\/div>\n                            <\/div>\n                        <\/div>\n                        <div class=\"grid grid-cols-1 md:grid-cols-3 gap-2.5 text-[11px] leading-snug pt-1\">\n                            <div class=\"p-2.5 rounded border border-emerald-200 bg-emerald-50\/60 text-slate-700\">\n                                <strong>Tier I (\u226416h Adaptive Diurnal):<\/strong> Mild reversible hypertonicity activates Nrf2 antioxidant defense and NFAT5 osmoprotection; nightly rehydration preserves normal GFR.\n                            <\/div>\n                            <div class=\"p-2.5 rounded border border-amber-200 bg-amber-50\/70 text-slate-700\">\n                                <strong>Tier II (16\u201324h Precautionary Limit):<\/strong> Serum osmolality exceeds 295 mOsm\/kg with surging vasopressin (AVP) and competitive URAT1 uric acid retention (~0.8\u20131.1 L net water deficit).\n                            <\/div>\n                            <div class=\"p-2.5 rounded border border-red-200 bg-red-50\/70 text-slate-700\">\n                                <strong>Tier III\u2013IV (&gt;24\u201372h+ Severe Hazard):<\/strong> Obligatory water loss (~1.2\u20131.5 L\/day) far exceeds fat-derived metabolic water (~0.35 L\/day), driving hypernatremia, polyol renal tubular injury, and AKI risk.\n                            <\/div>\n                        <\/div>\n                    <\/div>\n                <\/div>\n            <\/div>\n\n            <div class=\"bg-white border border-slate-200 rounded-lg shadow-sm p-5 sm:p-6 space-y-4\">\n                <div class=\"border-b border-slate-200 pb-3\">\n                    <span class=\"text-[11px] font-bold uppercase tracking-wider text-teal-800\">Section 05<\/span>\n                    <h2 class=\"text-base sm:text-lg font-bold text-slate-900\">\n                        Pathological &amp; Metabolic History (Bidirectional Risk Stratification)\n                    <\/h2>\n                <\/div>\n\n                <div class=\"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3\">\n                    <label class=\"flex items-start gap-2.5 p-3 border border-slate-200 rounded-md hover:bg-slate-50 cursor-pointer\">\n                        <input type=\"checkbox\" name=\"pathology\" value=\"Type 1 \/ Type 2 \/ Pre-Diabetes\" class=\"pathology-cb mt-0.5 h-4 w-4 rounded border-slate-300 text-teal-800\">\n                        <span class=\"text-xs sm:text-sm font-medium text-slate-800\">Type 1 \/ Type 2 \/ Pre-Diabetes<\/span>\n                    <\/label>\n                    <label class=\"flex items-start gap-2.5 p-3 border border-slate-200 rounded-md hover:bg-slate-50 cursor-pointer\">\n                        <input type=\"checkbox\" name=\"pathology\" value=\"Hypertension (Elevated BP)\" class=\"pathology-cb mt-0.5 h-4 w-4 rounded border-slate-300 text-teal-800\">\n                        <span class=\"text-xs sm:text-sm font-medium text-slate-800\">Hypertension (Elevated BP)<\/span>\n                    <\/label>\n                    <label class=\"flex items-start gap-2.5 p-3 border border-slate-200 rounded-md hover:bg-slate-50 cursor-pointer\">\n                        <input type=\"checkbox\" name=\"pathology\" value=\"Previous Myocardial Infarction (Heart Attack)\" class=\"pathology-cb mt-0.5 h-4 w-4 rounded border-slate-300 text-teal-800\">\n                        <span class=\"text-xs sm:text-sm font-medium text-slate-800\">Previous Myocardial Infarction (Heart Attack)<\/span>\n                    <\/label>\n                    <label class=\"flex items-start gap-2.5 p-3 border border-slate-200 rounded-md hover:bg-slate-50 cursor-pointer\">\n                        <input type=\"checkbox\" name=\"pathology\" value=\"NAFLD \/ Fatty Liver\" class=\"pathology-cb mt-0.5 h-4 w-4 rounded border-slate-300 text-teal-800\">\n                        <span class=\"text-xs sm:text-sm font-medium text-slate-800\">NAFLD \/ Fatty Liver<\/span>\n                    <\/label>\n                    <label class=\"flex items-start gap-2.5 p-3 border border-slate-200 rounded-md hover:bg-slate-50 cursor-pointer\">\n                        <input type=\"checkbox\" name=\"pathology\" value=\"Renal\/Kidney Disease\" class=\"pathology-cb mt-0.5 h-4 w-4 rounded border-slate-300 text-teal-800\">\n                        <span class=\"text-xs sm:text-sm font-medium text-slate-800\">Renal \/ Kidney Disease<\/span>\n                    <\/label>\n                    <label class=\"flex items-start gap-2.5 p-3 border border-slate-200 rounded-md hover:bg-slate-50 cursor-pointer\">\n                        <input type=\"checkbox\" name=\"pathology\" value=\"Gout\" class=\"pathology-cb mt-0.5 h-4 w-4 rounded border-slate-300 text-teal-800\">\n                        <span class=\"text-xs sm:text-sm font-medium text-slate-800\">Gout \/ Hyperuricemia<\/span>\n                    <\/label>\n                    <label class=\"flex items-start gap-2.5 p-3 border border-teal-200 bg-teal-50\/40 rounded-md hover:bg-teal-50 cursor-pointer sm:col-span-2 lg:col-span-3\">\n                        <input type=\"checkbox\" id=\"pathologyNone\" name=\"pathology\" value=\"None\" class=\"mt-0.5 h-4 w-4 rounded border-slate-300 text-teal-800\">\n                        <span class=\"text-xs sm:text-sm font-semibold text-teal-950\">None (No Known Pathological or Metabolic Comorbidities)<\/span>\n                    <\/label>\n                <\/div>\n            <\/div>\n\n            <div class=\"bg-gradient-to-br from-slate-900 via-teal-950 to-slate-900 text-white border border-teal-700\/60 rounded-xl shadow-md p-5 sm:p-7 space-y-6\">\n                <div class=\"flex flex-col lg:flex-row lg:items-start lg:justify-between gap-6 border-b border-slate-700\/80 pb-6\">\n                    <div class=\"space-y-3 min-w-0 flex-1\">\n                        <div class=\"inline-flex flex-wrap items-center gap-2 bg-teal-900\/90 border border-teal-500\/40 text-teal-100 px-3 py-1 rounded-full text-[11px] font-semibold uppercase tracking-wider\">\n                            <span class=\"w-2 h-2 rounded-full bg-emerald-400 shrink-0\"><\/span>\n                            <span>Section 06 \u00b7 Global Observational Bio-Informatics &amp; Citizen-Science Consortium<\/span>\n                        <\/div>\n                        <h2 class=\"text-lg sm:text-xl font-bold text-white tracking-tight leading-snug\">\n                            Contribute to International Longevity &amp; Fasting Research \u2014 Generate Dossier, Export A4 PDF &amp; Share Data\n                        <\/h2>\n                        <p class=\"text-xs sm:text-sm text-slate-200 leading-relaxed\">\n                            Contemporary human longevity and metabolic science increasingly depends on multi-cohort, real-world physiological datasets that bridge geographical and demographic divides. Your self-reported anthropometric ratios\u2014specifically the <strong>Waist-to-Thigh Ratio (WTR)<\/strong> and <strong>Waist-to-Height Ratio (WHtR)<\/strong>\u2014alongside <strong>autonomic nocturnal heart rate dipping (RHR vs. SHR)<\/strong>, <strong>13-modality exercise bioenergetics (including Squats, Zone 2 endurance, and postprandial walking kinetics)<\/strong>, and <strong>fasting architectures<\/strong> represent high-value observational biomarkers for our international research program at <strong>Ground Report India International Journal Australia<\/strong>.\n                        <\/p>\n                        <p class=\"text-xs sm:text-sm text-teal-100\/90 leading-relaxed\">\n                            By generating your personalized dossier and voluntarily transmitting your anonymized summary or official A4 PDF report to our international editorial research desk (<code class=\"bg-slate-800\/90 text-teal-300 px-1.5 py-0.5 rounded font-mono\">executive.editor@groundreportmedia.com<\/code>), you directly assist global investigators in refining non-invasive reference standards for metabolic resilience, sarcopenia prevention, and safe fasting stratification.\n                        <\/p>\n                    <\/div>\n\n                    <div class=\"bg-slate-800\/90 border border-slate-700 rounded-lg p-4 shrink-0 w-full lg:w-80 space-y-2.5\">\n                        <span class=\"text-[11px] font-bold uppercase tracking-wider text-teal-300 block\">\n                            International Editorial Research Desk\n                        <\/span>\n                        <div class=\"text-xs font-mono text-white bg-slate-900\/90 px-3 py-2 rounded border border-slate-700 leading-normal\">\n                            executive.editor@groundreportmedia.com\n                        <\/div>\n                        <div class=\"text-[11px] text-slate-300 space-y-1.5 pt-1 leading-normal\">\n                            <div class=\"flex items-start gap-2\">\n                                <span class=\"text-teal-400 font-bold\">1.<\/span>\n                                <span><strong>Zero-Defaulting Integrity:<\/strong> Omitted fields remain strictly blank and are never falsified.<\/span>\n                            <\/div>\n                            <div class=\"flex items-start gap-2\">\n                                <span class=\"text-teal-400 font-bold\">2.<\/span>\n                                <span><strong>Sample Profile Firewall:<\/strong> Demo\/Sample profiles are strictly blocked from email dispatch to prevent inbox flooding.<\/span>\n                            <\/div>\n                            <div class=\"flex items-start gap-2\">\n                                <span class=\"text-teal-400 font-bold\">3.<\/span>\n                                <span><strong>Voluntary Opt-In:<\/strong> Full participant control over local PDF export vs. research transmission.<\/span>\n                            <\/div>\n                        <\/div>\n                    <\/div>\n                <\/div>\n\n                <!-- Section 06 Direct Participant Contact Inputs (Two-Way Synchronized with Section 01) -->\n                <div class=\"bg-slate-800\/80 border border-teal-600\/50 rounded-lg p-4 space-y-3\">\n                    <div class=\"flex flex-col sm:flex-row sm:items-center justify-between gap-2 border-b border-slate-700\/80 pb-2\">\n                        <span class=\"text-xs font-bold uppercase tracking-wider text-teal-300\">\n                            Mandatory Participant Contact Verification for Research Transmission\n                        <\/span>\n                        <span class=\"text-[11px] text-slate-300\">\n                            Synchronized automatically with Section 01 \u00b7 Required when sending report to Research Desk\n                        <\/span>\n                    <\/div>\n                    <div class=\"grid grid-cols-1 sm:grid-cols-2 gap-4\">\n                        <div>\n                            <label for=\"sec6UserEmail\" class=\"block text-xs font-semibold text-teal-100 mb-1\">\n                                Email Address <span id=\"sec6EmailReqBadge\" class=\"text-amber-400 font-bold\">*<\/span>\n                            <\/label>\n                            <input type=\"email\" id=\"sec6UserEmail\" placeholder=\"e.g., participant@domain.com\" class=\"w-full rounded-md border border-slate-600 bg-slate-900\/95 px-3 py-2 text-sm text-white placeholder-slate-400 focus:border-teal-400 focus:outline-none\">\n                        <\/div>\n                        <div>\n                            <label for=\"sec6UserWhatsapp\" class=\"block text-xs font-semibold text-teal-100 mb-1\">\n                                WhatsApp Number (with Country Code) <span id=\"sec6WhatsappReqBadge\" class=\"text-amber-400 font-bold\">*<\/span>\n                            <\/label>\n                            <input type=\"tel\" id=\"sec6UserWhatsapp\" placeholder=\"e.g., +61 400 000 000 \/ +91 98765 43210\" class=\"w-full rounded-md border border-slate-600 bg-slate-900\/95 px-3 py-2 text-sm text-white placeholder-slate-400 focus:border-teal-400 focus:outline-none\">\n                        <\/div>\n                    <\/div>\n                <\/div>\n\n                <div class=\"flex flex-col lg:flex-row lg:items-center lg:justify-between gap-4\">\n                    <div class=\"space-y-1.5 min-w-0 flex-1\">\n                        <label class=\"flex items-start gap-2.5 cursor-pointer\">\n                            <input type=\"checkbox\" id=\"autoDispatchToggle\" checked=\"\" class=\"mt-0.5 h-4 w-4 rounded border-slate-400 text-teal-500 focus:ring-teal-400 shrink-0\">\n                            <span class=\"text-xs sm:text-sm font-semibold text-white leading-snug\">\n                                Voluntary Research Contribution Consent: Automatically transmit my structured physiological summary to <code class=\"text-teal-300 bg-slate-800 px-1.5 py-0.5 rounded font-mono\">executive.editor@groundreportmedia.com<\/code> upon calculation\n                            <\/span>\n                        <\/label>\n                        <p class=\"text-[11px] text-slate-300 pl-6 leading-normal\">\n                            <strong>Note:<\/strong> Providing a valid <strong>Email Address<\/strong> and <strong>WhatsApp Number<\/strong> above (or in Section 01) is mandatory when sending your report to us. Uncheck this box if you prefer to calculate and download your A4 PDF report privately without transmitting data.\n                        <\/p>\n                    <\/div>\n\n                    <div class=\"flex flex-wrap items-center gap-3 shrink-0\">\n                        <button type=\"submit\" id=\"btnGenerateReport\" class=\"w-full sm:w-auto bg-teal-500 hover:bg-teal-400 text-slate-950 font-bold text-sm px-6 py-3.5 rounded-md shadow-md transition flex items-center justify-center gap-2\">\n                            <span>Calculate &amp; Generate Assessment<\/span>\n                        <\/button>\n                    <\/div>\n                <\/div>\n            <\/div>\n        <\/form>\n\n        <section id=\"reportSection\" class=\"hidden space-y-6\">\n            <div class=\"bg-white border-2 border-slate-300 rounded-lg shadow-sm p-4 sm:p-7 space-y-8 overflow-hidden\">\n\n                <!-- Report Top Header & Quick Actions -->\n                <div class=\"flex flex-col lg:flex-row lg:items-center justify-between gap-4 border-b-2 border-slate-800 pb-4\">\n                    <div class=\"min-w-0 flex-1\">\n                        <div class=\"text-xs font-bold uppercase tracking-widest text-teal-800\">\n                            Ground Report India International Journal Australia \u00b7 Official Assessment Dossier\n                        <\/div>\n                        <h2 class=\"text-lg sm:text-2xl font-bold text-slate-900 mt-0.5 leading-snug\">\n                            Physiological, Anthropometric, Fasting &amp; Longevity Report\n                        <\/h2>\n                        <div class=\"text-[11px] font-semibold text-teal-900 bg-teal-50 border border-teal-200 px-2.5 py-1 rounded mt-1.5 inline-block leading-snug\">\n                            QMUL PHURI 2024 \/ US Navy \/ Framingham \/ Evidence-Based Anthropometry, Bone Index (OSTA), &amp; 2024 Queen Mary University of London (<em>Nature Metabolism<\/em>) Fasting Models\n                        <\/div>\n                        <div class=\"flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-slate-600 mt-1.5\">\n                            <span>Subject: <strong id=\"repSubjectName\" class=\"text-slate-900\"><\/strong><\/span>\n                            <span>Protocol ID: <strong id=\"repProtocolId\" class=\"font-mono text-slate-900\"><\/strong><\/span>\n                            <span>Timestamp: <strong id=\"repTimestamp\" class=\"text-slate-900\"><\/strong><\/span>\n                        <\/div>\n                    <\/div>\n\n                    <div class=\"flex flex-wrap items-center gap-2.5 no-print shrink-0\">\n                        <button type=\"button\" id=\"btnDownloadPdfTop\" class=\"bg-teal-800 hover:bg-teal-900 text-white font-semibold text-xs sm:text-sm px-4 py-2.5 rounded-md shadow-sm transition\">\n                            Download Official PDF Report (A4)\n                        <\/button>\n                        <button type=\"button\" id=\"btnManualDispatch\" class=\"bg-slate-800 hover:bg-slate-900 text-white font-semibold text-xs sm:text-sm px-4 py-2.5 rounded-md shadow-sm transition\">\n                            Transmit to Research Desk\n                        <\/button>\n                    <\/div>\n                <\/div>\n\n                <!-- Dispatch Status Banner (No Email Address Displayed Here) -->\n                <div id=\"dispatchStatusBanner\" class=\"text-xs font-medium bg-slate-100 border border-slate-300 text-slate-800 px-3.5 py-2.5 rounded-md leading-relaxed\">\n                    Assessment generated. Ready for official A4 PDF export or voluntary research contribution.\n                <\/div>\n\n                <!-- Sample Profile Report Alert Banner -->\n                <div id=\"reportSampleAlertBanner\" class=\"hidden bg-amber-50 border-2 border-amber-400 text-amber-950 px-4 py-3.5 rounded-lg text-xs sm:text-sm space-y-1\">\n                    <div class=\"font-bold uppercase tracking-wider text-xs text-amber-900\">\n                        Notice: Demonstration \/ Sample Profile Data Active\n                    <\/div>\n                    <p class=\"leading-relaxed\">\n                        This dossier was generated using sample demonstration data (<strong>Dr. Lukas Lindqvist<\/strong>) for local preview and PDF layout verification. Because this is sample data, research transmission to the editorial desk is automatically blocked. To generate your own personal assessment, click <strong>\"Clear \/ Reset Form\"<\/strong> at the top of the page and enter your own measurements.\n                    <\/p>\n                <\/div>\n\n                <!-- Omitted \/ Blank Fields Notification Banner -->\n                <div id=\"reportOmittedFieldsBanner\" class=\"hidden bg-sky-50 border border-sky-300 text-sky-950 px-4 py-3.5 rounded-lg text-xs sm:text-sm space-y-2\">\n                    <div class=\"flex flex-wrap items-center justify-between gap-2\">\n                        <span class=\"font-bold uppercase tracking-wider text-xs text-sky-900\">\n                            Incomplete Input Notice \u00b7 Zero-Defaulting Protocol Active\n                        <\/span>\n                        <span id=\"omittedFieldsCountBadge\" class=\"text-[11px] font-bold bg-sky-100 border border-sky-300 text-sky-900 px-2.5 py-0.5 rounded-full\"><\/span>\n                    <\/div>\n                    <p id=\"omittedFieldsSummaryText\" class=\"leading-relaxed text-slate-800\"><\/p>\n                    <div id=\"omittedFieldsPills\" class=\"flex flex-wrap gap-1.5 pt-1\"><\/div>\n                <\/div>\n\n                <!-- SECTION I: Subject Baseline Summary Strip -->\n                <div class=\"space-y-2.5\">\n                    <h3 class=\"text-xs font-bold uppercase tracking-wider text-teal-900\">\n                        I. Recorded Baseline Inputs (Strict Zero-Defaulting \u2014 Unanswered Fields Remain Blank)\n                    <\/h3>\n                    <div id=\"baselineSummaryGrid\" class=\"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 xl:grid-cols-7 gap-3 text-xs\"><\/div>\n                <\/div>\n\n                <!-- SECTION II: Core Anthropometric, Autonomic & Longevity Summary Cards + Reference Table -->\n                <div class=\"space-y-4\">\n                    <h3 class=\"text-xs font-bold uppercase tracking-wider text-teal-900\">\n                        II. Body Composition, Cardiovascular Autonomic Status &amp; Normative Reference Limits\n                    <\/h3>\n                    <div id=\"coreMetricsCardsGrid\" class=\"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3.5\"><\/div>\n\n                    <div class=\"overflow-x-auto border border-slate-200 rounded-lg bg-white\">\n                        <table class=\"w-full text-left border-collapse text-xs\">\n                            <thead>\n                                <tr class=\"bg-slate-100 border-b border-slate-200 text-slate-800\">\n                                    <th class=\"py-2.5 px-3 font-bold\">Biometric \/ Physiological Parameter<\/th>\n                                    <th class=\"py-2.5 px-3 font-bold\">Subject Result<\/th>\n                                    <th class=\"py-2.5 px-3 font-bold\">Subject Evaluation \/ Omission Attribution<\/th>\n                                    <th class=\"py-2.5 px-3 font-bold\">Standard Normative Reference Limits<\/th>\n                                <\/tr>\n                            <\/thead>\n                            <tbody id=\"normativeReferenceTableBody\" class=\"divide-y divide-slate-200\"><\/tbody>\n                        <\/table>\n                    <\/div>\n                <\/div>\n\n                <!-- SECTION III: Exercise Bioenergetics & Postprandial Kinetics -->\n                <div class=\"space-y-4\">\n                    <h3 class=\"text-xs font-bold uppercase tracking-wider text-teal-900\">\n                        III. Exercise Bioenergetics, Post-Intake Substrate Kinetics &amp; Postprandial Walking Assessment\n                    <\/h3>\n                    <div id=\"exerciseSummaryCardsGrid\" class=\"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3.5\"><\/div>\n\n                    <div class=\"overflow-x-auto border border-slate-200 rounded-lg bg-white\">\n                        <table class=\"w-full text-left border-collapse text-xs\">\n                            <thead>\n                                <tr class=\"bg-slate-100 border-b border-slate-200 text-slate-800\">\n                                    <th class=\"py-2.5 px-3 font-bold\">Selected Exercise Modality (~METs)<\/th>\n                                    <th class=\"py-2.5 px-3 font-bold\">Sessions \/ Freq<\/th>\n                                    <th class=\"py-2.5 px-3 font-bold\">Duration &amp; Window<\/th>\n                                    <th class=\"py-2.5 px-3 font-bold\">Hrs Post &gt;0 kcal<\/th>\n                                    <th class=\"py-2.5 px-3 font-bold\">Weekly MET-Mins<\/th>\n                                    <th class=\"py-2.5 px-3 font-bold\">Weekly Kcal &amp; Substrate State<\/th>\n                                <\/tr>\n                            <\/thead>\n                            <tbody id=\"activeExerciseTableBody\" class=\"divide-y divide-slate-200\"><\/tbody>\n                        <\/table>\n                    <\/div>\n                <\/div>\n\n                <!-- SECTION IV: Personalized Active Modality Deep-Dive & 13-Modality Comparative Matrix -->\n                <div class=\"space-y-4\">\n                    <h3 class=\"text-xs font-bold uppercase tracking-wider text-teal-900\">\n                        IV. Modality-Specific Physiological, Cellular &amp; Organ-System Health Impacts (Including Squats &amp; WTR Synergy)\n                    <\/h3>\n                    <div id=\"activeExerciseImpactsCards\" class=\"grid grid-cols-1 gap-3\"><\/div>\n\n                    <div class=\"overflow-x-auto border border-slate-200 rounded-lg bg-white\">\n                        <table class=\"w-full text-left border-collapse text-xs\">\n                            <thead>\n                                <tr class=\"bg-slate-100 border-b border-slate-200 text-slate-800\">\n                                    <th class=\"py-2.5 px-3 font-bold\">Exercise Modality<\/th>\n                                    <th class=\"py-2.5 px-3 font-bold\">Status<\/th>\n                                    <th class=\"py-2.5 px-3 font-bold\">Cardiovascular &amp; Hemodynamic Impact<\/th>\n                                    <th class=\"py-2.5 px-3 font-bold\">Metabolic, Myokine &amp; GLUT4 Impact<\/th>\n                                    <th class=\"py-2.5 px-3 font-bold\">Musculoskeletal, WTR &amp; Longevity Synergy<\/th>\n                                <\/tr>\n                            <\/thead>\n                            <tbody id=\"exerciseHealthImpactsMatrixBody\" class=\"divide-y divide-slate-200\"><\/tbody>\n                        <\/table>\n                    <\/div>\n                <\/div>\n\n                <!-- SECTION V: Thigh Circumference, WTR & Peripheral GLUT4 Narrative -->\n                <div class=\"space-y-2.5\">\n                    <h3 class=\"text-xs font-bold uppercase tracking-wider text-teal-900\">\n                        V. The Role of Thigh Circumference, Waist-to-Thigh Ratio (WTR) &amp; Lower-Extremity GLUT4 Sinks\n                    <\/h3>\n                    <div id=\"thighAnalysisNarrative\" class=\"p-4 rounded-lg border border-slate-200 bg-slate-50 text-xs sm:text-sm text-slate-800 space-y-2.5 leading-relaxed\"><\/div>\n                <\/div>\n\n                <!-- SECTION VI: 2024 UK Prolonged Fasting Proteomics & Dry Fasting Dose-Response Narrative -->\n                <div class=\"space-y-2.5\">\n                    <h3 class=\"text-xs font-bold uppercase tracking-wider text-teal-900\">\n                        VI. Cellular &amp; Proteomic Fasting Narrative (2024 UK Research \u2014 Pietzke et al.) &amp; Dry Fasting Dose-Response Thresholds\n                    <\/h3>\n                    <div id=\"proteomicNarrativeBody\" class=\"p-4 rounded-lg border border-teal-200 bg-teal-50\/30 text-xs sm:text-sm text-slate-800 space-y-2.5 leading-relaxed\"><\/div>\n                <\/div>\n\n                <!-- SECTION VII: Bidirectional Pathological & Metabolic History Interactions -->\n                <div class=\"space-y-4\">\n                    <h3 class=\"text-xs font-bold uppercase tracking-wider text-teal-900\">\n                        VII. Bidirectional Pathological &amp; Metabolic History Interaction Matrix (Impacts On &amp; By All Inputs)\n                    <\/h3>\n                    <div id=\"pathologyCrossInputCards\" class=\"grid grid-cols-1 md:grid-cols-2 gap-4\"><\/div>\n\n                    <div class=\"overflow-x-auto border border-slate-200 rounded-lg bg-white\">\n                        <table class=\"w-full text-left border-collapse text-xs\">\n                            <thead>\n                                <tr class=\"bg-slate-100 border-b border-slate-200 text-slate-800\">\n                                    <th class=\"py-2.5 px-3 font-bold\">Pathological \/ Metabolic Condition<\/th>\n                                    <th class=\"py-2.5 px-3 font-bold\">Subject Status<\/th>\n                                    <th class=\"py-2.5 px-3 font-bold\">Impact OF Subject Inputs ON Condition<\/th>\n                                    <th class=\"py-2.5 px-3 font-bold\">Impact OF Condition ON Biomarkers &amp; Fasting Safety<\/th>\n                                <\/tr>\n                            <\/thead>\n                            <tbody id=\"pathologyInteractionMatrixBody\" class=\"divide-y divide-slate-200\"><\/tbody>\n                        <\/table>\n                    <\/div>\n                <\/div>\n\n                <!-- Personalized Risk Warnings -->\n                <div class=\"space-y-2.5\">\n                    <h3 class=\"text-xs font-bold uppercase tracking-wider text-red-900\">\n                        Personalized Contraindications &amp; Physiological Safety Alerts\n                    <\/h3>\n                    <div id=\"riskWarningsContainer\" class=\"p-4 rounded-lg border border-amber-300 bg-amber-50\/70 text-xs sm:text-sm text-slate-900 space-y-2 leading-relaxed\"><\/div>\n                <\/div>\n\n                <!-- SECTION VIII: Calculation Dependency & Unanswered Parameter Audit Log -->\n                <div class=\"space-y-2.5\">\n                    <h3 class=\"text-xs font-bold uppercase tracking-wider text-teal-900\">\n                        VIII. Calculation Dependency &amp; Unanswered Parameter Audit Protocol (How Blank Fields Are Handled)\n                    <\/h3>\n                    <p class=\"text-xs text-slate-600 leading-relaxed\">\n                        Whenever an optional input field related to a mathematical formula is left blank, its quantitative result cell is kept strictly empty (never defaulted to <code>0<\/code> or <code>N\/A<\/code>), and the exact missing prerequisite variable is documented below:\n                    <\/p>\n                    <div class=\"overflow-x-auto border border-slate-200 rounded-lg bg-white\">\n                        <table class=\"w-full text-left border-collapse text-xs\">\n                            <thead>\n                                <tr class=\"bg-slate-100 border-b border-slate-200 text-slate-800\">\n                                    <th class=\"py-2.5 px-3 font-bold\">Mathematical Equation \/ Derived Index<\/th>\n                                    <th class=\"py-2.5 px-3 font-bold\">Required Prerequisite Inputs<\/th>\n                                    <th class=\"py-2.5 px-3 font-bold\">Calculation Status<\/th>\n                                    <th class=\"py-2.5 px-3 font-bold\">Handling &amp; Missing Variable Attribution<\/th>\n                                <\/tr>\n                            <\/thead>\n                            <tbody id=\"dependencyAuditTableBody\" class=\"divide-y divide-slate-200\"><\/tbody>\n                        <\/table>\n                    <\/div>\n                <\/div>\n\n                <!-- SECTION IX: Unified International Research Contribution, Official PDF Export & Editorial Submission Hub -->\n                <div class=\"border-2 border-teal-800 rounded-lg p-5 sm:p-6 bg-teal-50\/40 space-y-4 print-break-avoid\">\n                    <div class=\"flex flex-col md:flex-row md:items-center justify-between gap-3 border-b border-teal-200 pb-3\">\n                        <div class=\"min-w-0 flex-1\">\n                            <span class=\"text-xs font-bold uppercase tracking-wider text-teal-900 block\">\n                                IX. Section 06 International Longevity &amp; Fasting Research Contribution Hub\n                            <\/span>\n                            <h3 class=\"text-base sm:text-lg font-bold text-slate-900 mt-0.5 leading-snug\">\n                                Advance Global Physiological Science \u2014 Share Your Report &amp; Download Official A4 PDF\n                            <\/h3>\n                        <\/div>\n                        <span class=\"text-xs font-mono font-semibold bg-white border border-teal-300 text-teal-900 px-3 py-1.5 rounded self-start md:self-auto shrink-0\">\n                            executive.editor@groundreportmedia.com\n                        <\/span>\n                    <\/div>\n\n                    <p class=\"text-xs sm:text-sm text-slate-700 leading-relaxed\">\n                        <strong>Why Your Report Matters to International Research:<\/strong> Contemporary longevity science increasingly relies on real-world, multi-parametric human datasets linking <strong>somatic circumferences (Waist-to-Thigh &amp; Waist-to-Height Ratios)<\/strong>, <strong>autonomic nocturnal heart rate dipping (RHR vs. SHR)<\/strong>, <strong>lower-extremity &amp; aerobic exercise bioenergetics (Squats, Zone 2 Cycling, Postprandial Walking)<\/strong>, and <strong>fasting durations<\/strong>. By transmitting your structured assessment or emailing your downloaded A4 PDF dossier to <code class=\"text-teal-900 font-semibold\">executive.editor@groundreportmedia.com<\/code>, you directly support international observational research published through <strong>Ground Report India International Journal Australia<\/strong>.\n                    <\/p>\n\n                    <div class=\"grid grid-cols-1 sm:grid-cols-2 gap-3 bg-white p-3.5 rounded-md border border-teal-300 no-print\">\n                        <div>\n                            <label for=\"hubUserEmail\" class=\"block text-xs font-semibold text-slate-800 mb-1\">\n                                Participant Email Address <span class=\"text-red-600 font-bold\">*<\/span>\n                            <\/label>\n                            <input type=\"email\" id=\"hubUserEmail\" placeholder=\"e.g., participant@domain.com\" class=\"w-full rounded border border-slate-300 bg-white px-3 py-1.5 text-xs sm:text-sm text-slate-900 focus:border-teal-700 focus:outline-none\">\n                        <\/div>\n                        <div>\n                            <label for=\"hubUserWhatsapp\" class=\"block text-xs font-semibold text-slate-800 mb-1\">\n                                Participant WhatsApp Number <span class=\"text-red-600 font-bold\">*<\/span>\n                            <\/label>\n                            <input type=\"tel\" id=\"hubUserWhatsapp\" placeholder=\"e.g., +61 400 000 000 \/ +91 98765 43210\" class=\"w-full rounded border border-slate-300 bg-white px-3 py-1.5 text-xs sm:text-sm text-slate-900 focus:border-teal-700 focus:outline-none\">\n                        <\/div>\n                    <\/div>\n\n                    <div class=\"grid grid-cols-1 md:grid-cols-3 gap-3 pt-1 no-print\">\n                        <button type=\"button\" id=\"btnHubDownloadPdf\" class=\"bg-teal-800 hover:bg-teal-900 text-white font-semibold text-xs sm:text-sm px-4 py-3 rounded-md shadow-sm transition flex items-center justify-center gap-2 text-center\">\n                            <span>1. Download Official A4 PDF Report<\/span>\n                        <\/button>\n\n                        <button type=\"button\" id=\"btnHubDispatchResearch\" class=\"bg-slate-900 hover:bg-slate-800 text-white font-semibold text-xs sm:text-sm px-4 py-3 rounded-md shadow-sm transition flex items-center justify-center gap-2 text-center\">\n                            <span>2. Transmit Research Payload Now<\/span>\n                        <\/button>\n\n                        <a id=\"btnHubMailtoLink\" href=\"mailto:executive.editor@groundreportmedia.com\" class=\"bg-white hover:bg-slate-100 text-teal-900 border border-teal-700 font-semibold text-xs sm:text-sm px-4 py-3 rounded-md shadow-sm transition flex items-center justify-center gap-2 text-center\">\n                            <span>3. Open Email Client to Attach PDF<\/span>\n                        <\/a>\n                    <\/div>\n\n                    <div id=\"hubDispatchFeedback\" class=\"text-xs font-medium text-teal-950 bg-white\/90 border border-teal-200 rounded px-3.5 py-2.5 leading-relaxed\">\n                        Ready for international research contribution. Your protocol ID and structured summary are formatted for <code class=\"font-mono\">executive.editor@groundreportmedia.com<\/code>.\n                    <\/div>\n                <\/div>\n\n                <!-- Mandatory Legal & Regulatory Notice -->\n                <div class=\"border-t border-slate-200 pt-4 text-xs text-slate-600 leading-relaxed print-break-avoid\">\n                    <div class=\"font-bold text-slate-900 mb-1\">Educational, Wellness &amp; Physiological Assessment Notice<\/div>\n                    <p>\n                        \"This assessment, its algorithms, and the resulting scores are formulated solely for educational, informational, and personal wellness evaluation. This tool does not constitute medical advice, diagnosis, prognosis, or treatment plans. Fasting protocols\u2014specifically prolonged water or dry fasting\u2014carry physiological risks and should never be initiated without direct consultation and supervision by a qualified medical practitioner, particularly for individuals with metabolic, renal, or cardiovascular conditions.\"\n                    <\/p>\n                <\/div>\n            <\/div>\n        <\/section>\n\n        <!-- Standalone Regulatory Footer (No Email Address Displayed Here) -->\n        <footer class=\"bg-white border border-slate-200 rounded-lg p-5 text-xs text-slate-600 space-y-2\">\n            <div class=\"flex flex-col sm:flex-row sm:items-center justify-between gap-2 font-semibold text-slate-800\">\n                <span>Educational, Wellness &amp; Physiological Assessment Notice<\/span>\n                <span class=\"text-teal-800\">Ground Report India International Journal Australia \u00b7 Bio-Informatics &amp; Longevity Division<\/span>\n            <\/div>\n            <p class=\"leading-relaxed\">\n                This assessment, its algorithms, and the resulting scores are formulated solely for educational, informational, and personal wellness evaluation. This tool does not constitute medical advice, diagnosis, prognosis, or treatment plans. Fasting protocols\u2014specifically prolonged water or dry fasting\u2014carry physiological risks and should never be initiated without direct consultation and supervision by a qualified medical practitioner, particularly for individuals with metabolic, renal, or cardiovascular conditions.\n            <\/p>\n        <\/footer>\n    <\/main>\n\n    <code class=\"tve_js_placeholder\">[tcb-script]\n        const APP_STATE = {\n            mountTimestamp: Date.now(),\n            editorialRecipient: 'executive.editor@groundreportmedia.com',\n            formEndpoint: 'https:\/\/formsubmit.co\/ajax\/executive.editor@groundreportmedia.com',\n            sampleProfileName: 'Dr. Lukas Lindqvist',\n            blockedSampleNames: ['dr. lukas lindqvist', 'lukas lindqvist', 'dr. vikramaditya sharma', 'vikramaditya sharma'],\n            isSampleProfileActive: false,\n            lastAssessment: null\n        };\n\n        const EXERCISE_MODALITIES_CONFIG = [\n            {\n                id: 'squats',\n                name: 'Squats (Bodyweight \/ Goblet \/ Barbell \/ Glycemic Snacks)',\n                subtitle: 'Quadriceps, gluteus maximus &amp; adductor recruitment; direct WTR &amp; GLUT4 sink remodeling',\n                highlight: true,\n                intensities: [\n                    { val: 'Bodyweight \/ Air Squats (~5.0 METs)', label: 'Bodyweight \/ Air Squats (~5.0 METs)', met: 5.0, default: false },\n                    { val: 'Goblet \/ Moderate Load (~6.5 METs)', label: 'Goblet \/ Moderate Load (~6.5 METs)', met: 6.5, default: true },\n                    { val: 'Heavy Barbell \/ Plyometric (~8.5 METs)', label: 'Heavy Barbell \/ Plyometric (~8.5 METs)', met: 8.5, default: false }\n                ],\n                cardioImpact: 'Elevates intramuscular mechanical pump pressure followed by rapid post-contraction hyperemia, endothelial nitric oxide (eNOS) release, and enhanced lower-extremity venous return.',\n                metabolicImpact: 'Recruits the body\u2019s largest skeletal muscle beds (quadriceps and gluteus maximus), driving insulin-independent AMPK\/AS160 GLUT4 translocation and myokine (irisin, IL-6, decorin) release.',\n                musculoskeletalImpact: 'Directly increases mid-thigh lean girth, lowers Waist-to-Thigh Ratio (WTR &lt; 1.50), and applies axial Wolff\u2019s Law osteogenic loading across the femoral neck and lumbar spine.',\n                synergyWithFasting: 'Preserves type II myofibrillar protein via mechanical mTORC1 signaling and rapidly clears post-meal glycemic excursions when performed as brief neuromuscular bouts.'\n            },\n            {\n                id: 'outcycling',\n                name: 'Outdoor Cycling (Road \/ Gravel \/ Commute)',\n                subtitle: 'Concentric lower-body aerobic endurance, terrain-variable torque &amp; vascular compliance',\n                highlight: false,\n                intensities: [\n                    { val: 'Leisure \/ Commute (~5.5 METs)', label: 'Leisure \/ Commute (~5.5 METs)', met: 5.5, default: false },\n                    { val: 'Moderate Zone 2 (~7.5 METs)', label: 'Moderate Zone 2 (~7.5 METs)', met: 7.5, default: true },\n                    { val: 'Vigorous \/ Hills (~10.0 METs)', label: 'Vigorous \/ Hills (~10.0 METs)', met: 10.0, default: false }\n                ],\n                cardioImpact: 'Promotes eccentric left ventricular stroke volume, expands plasma volume, elevates parasympathetic vagal tone (lowering RHR &amp; SHR), and reduces aortic pulse wave velocity.',\n                metabolicImpact: 'Upregulates vastus lateralis mitochondrial density (PGC-1alpha), fatty acid translocase (CD36), and carnitine palmitoyltransferase-1 (CPT-1) lipid oxidation.',\n                musculoskeletalImpact: 'Builds concentric quadriceps endurance and mid-thigh lean circumference with minimal tibiofemoral impact forces.',\n                synergyWithFasting: 'Accelerates post-absorptive lipid beta-oxidation and expands femoral capillary density.'\n            },\n            {\n                id: 'statcycling',\n                name: 'Stationary Cycling (Ergometer \/ Zone 2 \/ Spin)',\n                subtitle: 'Precision-controlled Zone 2 mitochondrial oxidation &amp; low-impact cardiorespiratory load',\n                highlight: false,\n                intensities: [\n                    { val: 'Light Recovery (~4.5 METs)', label: 'Light Recovery (~4.5 METs)', met: 4.5, default: false },\n                    { val: 'Steady Zone 2 (~6.8 METs)', label: 'Steady Zone 2 (~6.8 METs)', met: 6.8, default: true },\n                    { val: 'High-Output \/ Spin (~9.0 METs)', label: 'High-Output \/ Spin (~9.0 METs)', met: 9.0, default: false }\n                ],\n                cardioImpact: 'Provides steady laminar vascular shear stress, lowering peripheral vascular resistance and improving baroreceptor sensitivity.',\n                metabolicImpact: 'Maximizes FatMax mitochondrial oxidation rates and MCT1-mediated lactate clearance while expanding lower-body glycogen storage capacity.',\n                musculoskeletalImpact: 'Preserves knee articular cartilage while maintaining quadriceps cross-sectional area.',\n                synergyWithFasting: 'Provides controlled, joint-sparing aerobic turnover across both fed and post-absorptive training windows.'\n            },\n            {\n                id: 'stairs',\n                name: 'Stairs Climbing (Vertical Ascent \/ StepMill)',\n                subtitle: 'High-gravity concentric gluteofemoral work &amp; rapid VO2max \/ glycemic demand',\n                highlight: false,\n                intensities: [\n                    { val: 'Moderate Pace (~6.0 METs)', label: 'Moderate Pace (~6.0 METs)', met: 6.0, default: false },\n                    { val: 'Steady Continuous (~8.0 METs)', label: 'Steady Continuous (~8.0 METs)', met: 8.0, default: true },\n                    { val: 'Vigorous \/ Weighted (~9.5 METs)', label: 'Vigorous \/ Weighted (~9.5 METs)', met: 9.5, default: false }\n                ],\n                cardioImpact: 'Rapidly elevates stroke volume and myocardial oxygen extraction efficiency.',\n                metabolicImpact: 'High ATP turnover activates AMPK within minutes, blunting post-meal glucose excursions when performed as 3\u201310 minute bouts.',\n                musculoskeletalImpact: 'Strengthens gluteus medius\/maximus, quadriceps, and soleus while osteogenically loading the proximal femur.',\n                synergyWithFasting: 'High mechanical efficiency for rapid glycemic disposal and lower-extremity power maintenance.'\n            },\n            {\n                id: 'running',\n                name: 'Running (Road \/ Trail \/ Treadmill)',\n                subtitle: 'Elastic stretch-shortening cycle, osteogenic axial impact &amp; maximal aerobic capacity',\n                highlight: false,\n                intensities: [\n                    { val: 'Jogging (~7.0 METs)', label: 'Jogging (~7.0 METs)', met: 7.0, default: false },\n                    { val: 'Moderate Run (~9.5 METs)', label: 'Moderate Run (~9.5 METs)', met: 9.5, default: true },\n                    { val: 'Fast \/ Tempo (~11.5 METs)', label: 'Fast \/ Tempo (~11.5 METs)', met: 11.5, default: false }\n                ],\n                cardioImpact: 'Strongest stimulus for maximal cardiac output, capillary angiogenesis, and nocturnal vagal bradycardia.',\n                metabolicImpact: 'Triggers hepatic FGF21 release, visceral adipose lipolysis, and systemic insulin sensitization.',\n                musculoskeletalImpact: 'Ground reaction forces (2.5\u20133x bodyweight) stimulate osteoblastic bone mineral accretion in the tibia, femur, and spine.',\n                synergyWithFasting: 'Potent driver of cardiorespiratory VO2max reserve and lower-limb tendon elastic recoil.'\n            },\n            {\n                id: 'walking',\n                name: 'Walking (Dedicated Brisk \/ Postprandial \/ Incline)',\n                subtitle: 'Soleus oxidative pump, non-insulin GLUT4 glucose clearance &amp; low-cortisol lipolysis',\n                highlight: true,\n                intensities: [\n                    { val: 'Gentle Stroll (~2.8 METs)', label: 'Gentle Stroll (~2.8 METs)', met: 2.8, default: false },\n                    { val: 'Brisk Walk (~3.8 METs)', label: 'Brisk Walk (~3.8 METs)', met: 3.8, default: true },\n                    { val: 'Incline \/ Nordic (~5.3 METs)', label: 'Incline \/ Nordic (~5.3 METs)', met: 5.3, default: false }\n                ],\n                cardioImpact: 'Reduces sympathetic tone, lowers systolic\/diastolic blood pressure by 4\u20138 mmHg, and supports peripheral lymphatic drainage.',\n                metabolicImpact: 'Sustains slow-twitch oxidative soleus and gastrocnemius contraction, clearing postprandial blood glucose and VLDL triglycerides without raising cortisol.',\n                musculoskeletalImpact: 'Maintains hip\/ankle synovial joint lubrication and axial posture.',\n                synergyWithFasting: 'Low-fatigue, low-cortisol oxidative movement suitable across all post-meal and post-absorptive windows.'\n            },\n            {\n                id: 'stretching',\n                name: 'Stretching &amp; Articular Mobility',\n                subtitle: 'Fascial hydration, musculotendinous compliance &amp; arterial stiffness attenuation',\n                highlight: false,\n                intensities: [\n                    { val: 'Gentle Static (~2.3 METs)', label: 'Gentle Static (~2.3 METs)', met: 2.3, default: true },\n                    { val: 'Dynamic CARs \/ PNF (~3.0 METs)', label: 'Dynamic CARs \/ PNF (~3.0 METs)', met: 3.0, default: false }\n                ],\n                cardioImpact: 'Passive mechanical elongation of peripheral arteries stimulates endothelial nitric oxide and reduces peripheral arterial stiffness.',\n                metabolicImpact: 'Lowers HPA-axis cortisol, indirectly attenuating glucocorticoid-driven hepatic gluconeogenesis.',\n                musculoskeletalImpact: 'Stimulates fibroblast collagen alignment and extracellular matrix (ECM) fascial sliding.',\n                synergyWithFasting: 'Restores joint range of motion and parasympathetic recovery between high-load training days.'\n            },\n            {\n                id: 'yoga',\n                name: 'Yoga &amp; Breathwork (Asana \/ Pranayama)',\n                subtitle: 'Vagal baroreflex sensitization, HRV elevation &amp; isometric postural endurance',\n                highlight: false,\n                intensities: [\n                    { val: 'Restorative \/ Pranayama (~2.5 METs)', label: 'Restorative \/ Pranayama (~2.5 METs)', met: 2.5, default: false },\n                    { val: 'Hatha \/ Flow (~3.3 METs)', label: 'Hatha \/ Flow (~3.3 METs)', met: 3.3, default: true },\n                    { val: 'Power \/ Ashtanga (~4.5 METs)', label: 'Power \/ Ashtanga (~4.5 METs)', met: 4.5, default: false }\n                ],\n                cardioImpact: 'Slow pranayama breathing (5.5\u20136 breaths\/min) maximizes respiratory sinus arrhythmia and widens the RHR-to-SHR nocturnal dip.',\n                metabolicImpact: 'Attenuates inflammatory cytokines (TNF-alpha, IL-6) and improves hepatic insulin sensitivity.',\n                musculoskeletalImpact: 'Isometric postural holds preserve core and paraspinal muscular endurance.',\n                synergyWithFasting: 'Enhances vagal heart rate variability (HRV) and downregulates sympathetic stress reactivity.'\n            },\n            {\n                id: 'resistance',\n                name: 'Heavy Resistance \/ Strength Training',\n                subtitle: 'Mechanical tension mTORC1 signaling, lean mass preservation &amp; osteogenic loading',\n                highlight: true,\n                intensities: [\n                    { val: 'Moderate Hypertrophy (~5.0 METs)', label: 'Moderate Hypertrophy (~5.0 METs)', met: 5.0, default: true },\n                    { val: 'Heavy Compound Strength (~6.5 METs)', label: 'Heavy Compound Strength (~6.5 METs)', met: 6.5, default: false }\n                ],\n                cardioImpact: 'Improves microvascular capillary-to-fiber ratio and long-term resting blood pressure.',\n                metabolicImpact: 'Expands total skeletal muscle glycogen sink capacity and upregulates basal metabolic rate.',\n                musculoskeletalImpact: 'Primary driver of Lean Body Mass (LBM) and Drinkwater\/von D\u00f6beln bone mineral density.',\n                synergyWithFasting: 'Provides the mechanical tension signal required to prevent age-related and caloric-deficit sarcopenia.'\n            },\n            {\n                id: 'hiit',\n                name: 'High-Intensity Interval Training (HIIT \/ Sprints)',\n                subtitle: 'Glycolytic\/aerobic peak power, EPOC &amp; rapid mitochondrial biogenesis',\n                highlight: false,\n                intensities: [\n                    { val: 'Submaximal Intervals (~8.0 METs)', label: 'Submaximal Intervals (~8.0 METs)', met: 8.0, default: true },\n                    { val: 'All-Out Sprint \/ Tabata (~11.0 METs)', label: 'All-Out Sprint \/ Tabata (~11.0 METs)', met: 11.0, default: false }\n                ],\n                cardioImpact: 'Rapidly expands VO2peak and stroke volume via high endothelial shear stress.',\n                metabolicImpact: 'Potent AMPK\/PGC-1alpha phosphorylation and post-exercise oxygen consumption (EPOC).',\n                musculoskeletalImpact: 'Recruits fast-twitch Type IIx fibers and stimulates pulsatile growth hormone secretion.',\n                synergyWithFasting: 'Best scheduled in well-hydrated windows with adequate recovery intervals to clear lactate and purine metabolites.'\n            },\n            {\n                id: 'calisthenics',\n                name: 'Calisthenics &amp; Bodyweight Compound (Push-ups, Pull-ups, Lunges)',\n                subtitle: 'Relative strength-to-weight ratio, closed-chain neuromuscular coordination',\n                highlight: false,\n                intensities: [\n                    { val: 'Moderate Circuit (~4.5 METs)', label: 'Moderate Circuit (~4.5 METs)', met: 4.5, default: true },\n                    { val: 'Advanced \/ Weighted (~7.0 METs)', label: 'Advanced \/ Weighted (~7.0 METs)', met: 7.0, default: false }\n                ],\n                cardioImpact: 'Enhances upper- and lower-body vascular conductance and venous return.',\n                metabolicImpact: 'Multi-joint recruitment clears circulating glucose across upper and lower extremity muscle beds.',\n                musculoskeletalImpact: 'Strengthens scapular stabilizers, wrist\/forearm cortical bone, and unilateral leg stability.',\n                synergyWithFasting: 'High neuromuscular efficiency for preserving upper- and lower-body relative strength.'\n            },\n            {\n                id: 'swimming',\n                name: 'Swimming &amp; Aquatic Endurance',\n                subtitle: 'Supine hydrostatic venous return, zero-impact full-body aerobic conditioning',\n                highlight: false,\n                intensities: [\n                    { val: 'Moderate Laps (~6.0 METs)', label: 'Moderate Laps (~6.0 METs)', met: 6.0, default: true },\n                    { val: 'Vigorous Freestyle (~9.0 METs)', label: 'Vigorous Freestyle (~9.0 METs)', met: 9.0, default: false }\n                ],\n                cardioImpact: 'Hydrostatic pressure augments central venous return, atrial natriuretic peptide release, and baroreflex sensitivity.',\n                metabolicImpact: 'Simultaneous upper- and lower-body muscle activation plus thermal dissipation elevates caloric expenditure.',\n                musculoskeletalImpact: 'Unloads spinal and knee joints while providing multi-planar fluid resistance.',\n                synergyWithFasting: 'Delivers zero-impact cardiorespiratory conditioning and mild hydrostatic natriuresis.'\n            },\n            {\n                id: 'coreisometrics',\n                name: 'Core, Pilates, Planks &amp; Isometric Wall-Sits',\n                subtitle: 'Isometric baroreflex blood pressure reduction &amp; trunk\/gluteofemoral stabilization',\n                highlight: false,\n                intensities: [\n                    { val: 'Mat Pilates \/ Planks (~3.5 METs)', label: 'Mat Pilates \/ Planks (~3.5 METs)', met: 3.5, default: true },\n                    { val: 'Intense Wall-Sits \/ Holds (~4.8 METs)', label: 'Intense Wall-Sits \/ Holds (~4.8 METs)', met: 4.8, default: false }\n                ],\n                cardioImpact: 'Isometric wall-sits and planks elicit a potent post-contraction rebound vasodilation shown in meta-analyses to reduce resting blood pressure by 6\u20138 mmHg.',\n                metabolicImpact: 'Sustained quadriceps and transverse abdominis tension stimulates local insulin-independent glucose uptake.',\n                musculoskeletalImpact: 'Reinforces lumbopelvic stability and patellar tendon stiffness.',\n                synergyWithFasting: 'Low-energy-cost neuromuscular and antihypertensive stimulus suitable for daily practice.'\n            }\n        ];\n\n        function escapeHtml(str) {\n            if (str === null || str === undefined) return '';\n            return String(str)\n                .replace(\/&amp;\/g, '&amp;amp;')\n                .replace(\/&lt;\/g, '&amp;lt;')\n                .replace(\/&gt;\/g, '&amp;gt;')\n                .replace(\/\"\/g, '&amp;quot;')\n                .replace(\/'\/g, '&amp;#39;');\n        }\n\n        function parseOptionalNum(id, minAllowed = 0.0001, maxAllowed = Infinity) {\n            const el = document.getElementById(id);\n            if (!el) return null;\n            const raw = el.value.trim();\n            if (raw === '') return null;\n            const n = Number(raw);\n            if (!Number.isFinite(n) || n &lt; minAllowed || n &gt; maxAllowed) return null;\n            return n;\n        }\n\n        function fmt(val, decimals = 1, suffix = '') {\n            if (val === null || val === undefined || !Number.isFinite(val)) return '';\n            return `${Number(val).toFixed(decimals)}${suffix}`;\n        }\n\n        function formatNocturnalDip(delta, dipPct) {\n            if (delta === null || dipPct === null || !Number.isFinite(delta) || !Number.isFinite(dipPct)) return '';\n            if (delta &gt;= 0) {\n                return `-${Math.abs(delta).toFixed(0)} bpm (${dipPct.toFixed(1)}% dip)`;\n            }\n            return `+${Math.abs(delta).toFixed(0)} bpm (${dipPct.toFixed(1)}% inverse rise)`;\n        }\n\n        function evaluateWaterFastKineticTier(waterFast) {\n            if (!waterFast || !waterFast.enabled) {\n                return {\n                    practiced: false,\n                    hours: null,\n                    phaseCode: 'NONE',\n                    phaseLabel: '',\n                    evaluationNote: 'Blank: Water-only fasting not practiced',\n                    longevityDelta: 0\n                };\n            }\n            const hrs = waterFast.durationHours;\n            if (hrs === null) {\n                return {\n                    practiced: true,\n                    hours: null,\n                    phaseCode: 'UNSPECIFIED',\n                    phaseLabel: 'Water Fast Enabled (Duration Blank)',\n                    evaluationNote: `Frequency: ${waterFast.frequency || 'Unspecified'} \u00b7 Duration left blank (Phase III proteomic threshold: \u226572h)`,\n                    longevityDelta: 3\n                };\n            }\n            if (hrs &lt;= 24) {\n                return {\n                    practiced: true,\n                    hours: hrs,\n                    phaseCode: 'PHASE_I_GLYCOGENOLYTIC',\n                    phaseLabel: `Phase I \u00b7 Glycogenolytic &amp; Insulin-Sensitizing Window (${hrs}h \/ \u226424h)`,\n                    evaluationNote: `Phase I (${hrs}h): Hepatic glycogen depletion, declining insulin\/leptin, initial adipose lipolysis; precedes the \u226572h systemic proteome shift (Pietzke et al., 2024)`,\n                    longevityDelta: 4\n                };\n            }\n            if (hrs &lt; 72) {\n                return {\n                    practiced: true,\n                    hours: hrs,\n                    phaseCode: 'PHASE_II_KETOGENIC',\n                    phaseLabel: `Phase II \u00b7 De Novo Ketogenic &amp; ULK1 Autophagy Window (${hrs}h \/ 24\u201372h)`,\n                    evaluationNote: `Phase II (${hrs}h \/ ${(hrs \/ 24).toFixed(1)}d): Surging beta-hydroxybutyrate (BHB), hepatic FGF21 release &amp; ULK1 macroautophagy; approaches the 72h systemic proteomic threshold`,\n                    longevityDelta: 6\n                };\n            }\n            if (hrs &lt;= 168) {\n                return {\n                    practiced: true,\n                    hours: hrs,\n                    phaseCode: 'PHASE_III_PROTEOMIC',\n                    phaseLabel: `Phase III \u00b7 Deep Systemic 1,044-Protein Remodeling Window (${hrs}h \/ ${(hrs \/ 24).toFixed(1)} Days)`,\n                    evaluationNote: `Phase III (${hrs}h \/ ${(hrs \/ 24).toFixed(1)}d \u2014 Pietzke et al., Nature Metabolism 2024): Crosses the \u226572h threshold; remodels 1,044 plasma proteins, downregulates SWAP70, reorganizes ECM &amp; brain HYOU1\/TNR while sparing myofibrillar protein`,\n                    longevityDelta: 8\n                };\n            }\n            return {\n                practiced: true,\n                hours: hrs,\n                phaseCode: 'PHASE_IV_EXTENDED',\n                phaseLabel: `Phase IV \u00b7 Extended Multi-Day Water Fast (${hrs}h \/ ${(hrs \/ 24).toFixed(1)} Days \u2014 Medical Supervision Required)`,\n                evaluationNote: `Extended Phase III+ (${hrs}h \/ ${(hrs \/ 24).toFixed(1)}d): Deep proteomic remodeling achieved, but &gt;7-day duration escalates electrolyte depletion (Na+\/K+\/Mg2+\/PO4) and refeeding syndrome risk`,\n                longevityDelta: 4\n            };\n        }\n\n        function evaluateDryFastSafetyTier(dryFast) {\n            if (!dryFast || !dryFast.enabled) {\n                return {\n                    practiced: false,\n                    hours: null,\n                    tierCode: 'NONE',\n                    tierLabel: '',\n                    evaluationNote: 'Blank: Dry fasting not practiced',\n                    longevityDelta: 0\n                };\n            }\n            const hrs = dryFast.durationHours;\n            if (hrs === null) {\n                return {\n                    practiced: true,\n                    hours: null,\n                    tierCode: 'UNSPECIFIED',\n                    tierLabel: 'Dry Fast Enabled (Duration Blank)',\n                    evaluationNote: `Frequency: ${dryFast.frequency || 'Unspecified'} \u00b7 Duration left blank (Safe limit: \u226416h diurnal)`,\n                    longevityDelta: 0\n                };\n            }\n            if (hrs &lt;= 16) {\n                return {\n                    practiced: true,\n                    hours: hrs,\n                    tierCode: 'SAFE_DIURNAL',\n                    tierLabel: `Tier I \u00b7 Adaptive Diurnal Window (${hrs}h \u2264 16h Safe Limit)`,\n                    evaluationNote: `Adaptive diurnal window (${hrs}h): Upregulates Nrf2 antioxidant &amp; NFAT5 osmoprotective pathways; overnight rehydration prevents renal hypertonicity`,\n                    longevityDelta: 2\n                };\n            }\n            if (hrs &lt;= 24) {\n                return {\n                    practiced: true,\n                    hours: hrs,\n                    tierCode: 'PRECAUTIONARY_24H',\n                    tierLabel: `Tier II \u00b7 Precautionary Osmotic Threshold (${hrs}h \/ 16\u201324h Boundary)`,\n                    evaluationNote: `Upper physiological limit (${hrs}h): Rising serum osmolality (&gt;295 mOsm\/kg), AVP\/ADH surge &amp; URAT1 uric acid retention; strict post-fast rehydration required`,\n                    longevityDelta: -2\n                };\n            }\n            if (hrs &lt;= 48) {\n                return {\n                    practiced: true,\n                    hours: hrs,\n                    tierCode: 'HAZARDOUS_48H',\n                    tierLabel: `Tier III \u00b7 Exceeds Safe Physiological Limit (${hrs}h \/ &gt;24\u201348h Hazard Zone)`,\n                    evaluationNote: `High Osmotic &amp; Renal Strain (${hrs}h): Obligatory water losses (~1.2\u20131.5 L\/day) exceed metabolic water (~0.3\u20130.4 L\/day); hypernatremia, reduced GFR &amp; urate crystallization risk`,\n                    longevityDelta: -8\n                };\n            }\n            return {\n                practiced: true,\n                hours: hrs,\n                tierCode: 'CRITICAL_PROLONGED',\n                tierLabel: `Tier IV \u00b7 Critical Hypertonic Dehydration Hazard (${hrs}h \/ ${(hrs \/ 24).toFixed(1)} Days)`,\n                evaluationNote: `Severe Physiological Hazard (${hrs}h \/ ${(hrs \/ 24).toFixed(1)}d): High risk of pre-renal acute kidney injury (AKI), polyol-pathway tubular injury, hemoconcentration thrombosis &amp; arrhythmia`,\n                longevityDelta: -15\n            };\n        }\n\n        function renderExerciseModalityCards() {\n            const container = document.getElementById('exerciseModalitiesGrid');\n            if (!container) return;\n            container.innerHTML = EXERCISE_MODALITIES_CONFIG.map((mod, idx) =&gt; {\n                const borderCls = mod.highlight\n                    ? 'border-teal-300 bg-teal-50\/30 hover:bg-teal-50\/50'\n                    : 'border-slate-200 bg-slate-50\/50 hover:bg-slate-50';\n                const intOptions = mod.intensities.map(i =&gt;\n                    `&lt;option value=\"${escapeHtml(i.val)}\" ${i.default ? 'selected' : ''}&gt;${escapeHtml(i.label)}&lt;\/option&gt;`\n                ).join('');\n                return `\n                    &lt;div id=\"ex_card_${escapeHtml(mod.id)}\" class=\"border ${borderCls} rounded-lg p-3 transition min-w-0 overflow-hidden\"&gt;\n                        &lt;label class=\"flex items-center justify-between gap-2.5 cursor-pointer\"&gt;\n                            &lt;div class=\"flex items-start gap-2.5 min-w-0\"&gt;\n                                &lt;input type=\"checkbox\" value=\"${escapeHtml(mod.name)}\" data-ex-id=\"${escapeHtml(mod.id)}\" class=\"ex-checkbox mt-0.5 h-4 w-4 rounded border-slate-300 text-teal-800 focus:ring-teal-700 shrink-0\"&gt;\n                                &lt;div class=\"min-w-0\"&gt;\n                                    &lt;span class=\"text-xs sm:text-sm font-semibold text-slate-900 block leading-snug\"&gt;${idx + 1}. ${escapeHtml(mod.name)}&lt;\/span&gt;\n                                    &lt;span class=\"text-[11px] text-slate-600 block leading-normal\"&gt;${escapeHtml(mod.subtitle)}&lt;\/span&gt;\n                                &lt;\/div&gt;\n                            &lt;\/div&gt;\n                        &lt;\/label&gt;\n                        &lt;div id=\"ex_details_${escapeHtml(mod.id)}\" class=\"hidden mt-2.5 pt-2.5 border-t border-slate-200\"&gt;\n                            &lt;div class=\"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-2 items-end\"&gt;\n                                &lt;div&gt;\n                                    &lt;label class=\"block text-[10px] font-semibold text-slate-600 mb-0.5\"&gt;Sessions\/Wk&lt;\/label&gt;\n                                    &lt;input type=\"number\" id=\"ex_sess_${escapeHtml(mod.id)}\" min=\"1\" max=\"35\" step=\"1\" placeholder=\"e.g., 4\"\n                                        class=\"w-full rounded border border-slate-300 bg-white px-2 py-1 text-xs text-slate-800\"&gt;\n                                &lt;\/div&gt;\n                                &lt;div&gt;\n                                    &lt;label class=\"block text-[10px] font-semibold text-slate-600 mb-0.5\"&gt;Freq Tier&lt;\/label&gt;\n                                    &lt;select id=\"ex_freq_${escapeHtml(mod.id)}\" class=\"w-full rounded border border-slate-300 bg-white px-1.5 py-1 text-xs text-slate-800\"&gt;\n                                        &lt;option value=\"\"&gt;\u2014 Blank \u2014&lt;\/option&gt;\n                                        &lt;option value=\"1\u20132x \/ week\"&gt;1\u20132x \/ wk&lt;\/option&gt;\n                                        &lt;option value=\"3\u20134x \/ week\" selected&gt;3\u20134x \/ wk&lt;\/option&gt;\n                                        &lt;option value=\"Daily (5\u20137x \/ week)\"&gt;5\u20137x \/ wk&lt;\/option&gt;\n                                    &lt;\/select&gt;\n                                &lt;\/div&gt;\n                                &lt;div&gt;\n                                    &lt;label class=\"block text-[10px] font-semibold text-slate-600 mb-0.5\"&gt;Intensity&lt;\/label&gt;\n                                    &lt;select id=\"ex_int_${escapeHtml(mod.id)}\" class=\"w-full rounded border border-slate-300 bg-white px-1.5 py-1 text-xs text-slate-800\"&gt;\n                                        ${intOptions}\n                                    &lt;\/select&gt;\n                                &lt;\/div&gt;\n                                &lt;div&gt;\n                                    &lt;label class=\"block text-[10px] font-semibold text-slate-600 mb-0.5\"&gt;Time Window&lt;\/label&gt;\n                                    &lt;select id=\"ex_time_${escapeHtml(mod.id)}\" class=\"w-full rounded border border-slate-300 bg-white px-1.5 py-1 text-xs text-slate-800\"&gt;\n                                        &lt;option value=\"\"&gt;\u2014 Blank \u2014&lt;\/option&gt;\n                                        &lt;option value=\"Early Morning (05:00\u201308:00)\"&gt;Early AM&lt;\/option&gt;\n                                        &lt;option value=\"Late Morning (08:00\u201312:00)\"&gt;Late AM&lt;\/option&gt;\n                                        &lt;option value=\"Afternoon (12:00\u201317:00)\"&gt;Afternoon&lt;\/option&gt;\n                                        &lt;option value=\"Evening (17:00\u201321:00)\"&gt;Evening&lt;\/option&gt;\n                                        &lt;option value=\"Post-Meal Glycemic Snacks\"&gt;Post-Meal&lt;\/option&gt;\n                                    &lt;\/select&gt;\n                                &lt;\/div&gt;\n                                &lt;div&gt;\n                                    &lt;label class=\"block text-[10px] font-semibold text-slate-600 mb-0.5\"&gt;Mins \/ Sess&lt;\/label&gt;\n                                    &lt;input type=\"number\" id=\"ex_dur_${escapeHtml(mod.id)}\" min=\"1\" max=\"360\" placeholder=\"mins\"\n                                        class=\"w-full rounded border border-slate-300 bg-white px-2 py-1 text-xs text-slate-800\"&gt;\n                                &lt;\/div&gt;\n                                &lt;div&gt;\n                                    &lt;label class=\"block text-[10px] font-semibold text-slate-600 mb-0.5\"&gt;Hrs Post-Kcal&lt;\/label&gt;\n                                    &lt;input type=\"number\" id=\"ex_fast_${escapeHtml(mod.id)}\" min=\"0\" max=\"168\" step=\"0.5\" placeholder=\"hrs\"\n                                        class=\"w-full rounded border border-slate-300 bg-white px-2 py-1 text-xs text-slate-800\"&gt;\n                                &lt;\/div&gt;\n                            &lt;\/div&gt;\n                        &lt;\/div&gt;\n                    &lt;\/div&gt;\n                `;\n            }).join('');\n\n            document.querySelectorAll('.ex-checkbox').forEach(cb =&gt; {\n                cb.addEventListener('change', () =&gt; {\n                    const id = cb.getAttribute('data-ex-id');\n                    const panel = document.getElementById(`ex_details_${id}`);\n                    const card = document.getElementById(`ex_card_${id}`);\n                    if (panel) panel.classList.toggle('hidden', !cb.checked);\n                    if (card) card.classList.toggle('md:col-span-2', cb.checked);\n                });\n            });\n        }\n\n        function collectFormInputs() {\n            const fullName = document.getElementById('fullName').value.trim();\n            const rawEmail = document.getElementById('userEmail')?.value.trim() || document.getElementById('sec6UserEmail')?.value.trim() || document.getElementById('hubUserEmail')?.value.trim() || '';\n            const rawWhatsapp = document.getElementById('userWhatsapp')?.value.trim() || document.getElementById('sec6UserWhatsapp')?.value.trim() || document.getElementById('hubUserWhatsapp')?.value.trim() || '';\n            const userEmail = rawEmail || null;\n            const userMobile = document.getElementById('userMobile')?.value.trim() || null;\n            const userWhatsapp = rawWhatsapp || null;\n            const biologicalSex = document.getElementById('biologicalSex').value || null;\n            const ageYears = parseOptionalNum('ageYears', 10, 125);\n\n            \/\/ Weight conversion to kg if provided\n            const weightRaw = parseOptionalNum('weightInput', 1, 1100);\n            const weightUnit = document.getElementById('weightUnit').value;\n            const rawWeightKg = weightRaw !== null ? (weightUnit === 'lbs' ? weightRaw * 0.45359237 : weightRaw) : null;\n            const weightKg = (rawWeightKg !== null &amp;&amp; rawWeightKg &gt;= 15 &amp;&amp; rawWeightKg &lt;= 500) ? rawWeightKg : null;\n\n            \/\/ Height conversion to cm if provided\n            const heightUnit = document.getElementById('heightUnit').value;\n            let heightCm = null;\n            if (heightUnit === 'cm') {\n                const rawHCm = parseOptionalNum('heightCmInput', 50, 275);\n                if (rawHCm !== null) heightCm = rawHCm;\n            } else {\n                const ft = parseOptionalNum('heightFtInput', 0, 9);\n                const inc = parseOptionalNum('heightInInput', 0, 12);\n                if (ft !== null || inc !== null) {\n                    const totalCm = ((ft || 0) * 12 + (inc || 0)) * 2.54;\n                    if (totalCm &gt;= 50 &amp;&amp; totalCm &lt;= 275) heightCm = totalCm;\n                }\n            }\n\n            \/\/ Circumferences conversion to cm if provided\n            const girthUnit = document.getElementById('girthUnit').value;\n            const toCm = (v, minCm, maxCm) =&gt; {\n                if (v === null) return null;\n                const cmVal = girthUnit === 'in' ? v * 2.54 : v;\n                return (cmVal &gt;= minCm &amp;&amp; cmVal &lt;= maxCm) ? cmVal : null;\n            };\n            const wristCm = toCm(parseOptionalNum('wristInput', 1, 100), 8, 45);\n            const neckCm = toCm(parseOptionalNum('neckInput', 1, 150), 15, 85);\n            const waistCm = toCm(parseOptionalNum('waistInput', 1, 300), 35, 250);\n            const hipCm = toCm(parseOptionalNum('hipInput', 1, 300), 40, 250);\n            const thighCm = toCm(parseOptionalNum('thighInput', 1, 200), 20, 140);\n\n            const rhr = parseOptionalNum('rhrInput', 25, 220);\n            const shr = parseOptionalNum('shrInput', 20, 200);\n            const mealsPerDay = parseOptionalNum('mealsPerDayInput', 0, 24);\n            const dietaryProfile = document.getElementById('dietaryProfile').value || null;\n\n            const primaryCircadianWindow = document.getElementById('primaryCircadianWindow').value || null;\n            const hoursAfterLastIntake = parseOptionalNum('hoursAfterLastIntake', 0, 240);\n            const postMealWalkStatus = document.getElementById('postMealWalkStatus').value || null;\n            const postMealWalkDurationMins = parseOptionalNum('postMealWalkDurationMins', 1, 300);\n            const postMealWalkDelay = document.getElementById('postMealWalkDelay').value || null;\n\n            \/\/ Active Exercise Modalities (Zero-Defaulting: metValue is null unless matched)\n            const exercises = [];\n            document.querySelectorAll('.ex-checkbox:checked').forEach(cb =&gt; {\n                const id = cb.getAttribute('data-ex-id');\n                const modConfig = EXERCISE_MODALITIES_CONFIG.find(m =&gt; m.id === id);\n                const sessPerWeek = parseOptionalNum(`ex_sess_${id}`, 0.5, 50);\n                const freqTier = document.getElementById(`ex_freq_${id}`)?.value || null;\n                const intensityLabel = document.getElementById(`ex_int_${id}`)?.value || null;\n                const timeWindow = document.getElementById(`ex_time_${id}`)?.value || null;\n                const durationMins = parseOptionalNum(`ex_dur_${id}`, 1, 600);\n                const hoursPostIntake = parseOptionalNum(`ex_fast_${id}`, 0, 240);\n\n                let metValue = null;\n                if (modConfig &amp;&amp; intensityLabel) {\n                    const match = modConfig.intensities.find(i =&gt; i.val === intensityLabel);\n                    if (match &amp;&amp; Number.isFinite(match.met)) metValue = match.met;\n                }\n\n                exercises.push({\n                    id,\n                    modality: modConfig ? modConfig.name : cb.value,\n                    sessPerWeek,\n                    freqTier,\n                    intensityLabel,\n                    metValue,\n                    timeWindow,\n                    durationMins,\n                    hoursPostIntake\n                });\n            });\n\n            \/\/ Fasting Regimens\n            const waterFastEnabled = document.getElementById('waterFastEnabled').checked;\n            const waterFastFreq = waterFastEnabled ? (document.getElementById('waterFastFreq').value || null) : null;\n            const waterFastUnit = document.getElementById('waterFastDurationUnit').value;\n            const waterFastVal = waterFastEnabled ? parseOptionalNum('waterFastDurationVal', 0.5, waterFastUnit === 'days' ? 40 : 1000) : null;\n            const rawWaterHrs = waterFastVal !== null ? (waterFastUnit === 'days' ? waterFastVal * 24 : waterFastVal) : null;\n            const waterFastDurationHours = (rawWaterHrs !== null &amp;&amp; rawWaterHrs &lt;= 1000) ? rawWaterHrs : null;\n\n            const dryFastEnabled = document.getElementById('dryFastEnabled').checked;\n            const dryFastFreq = dryFastEnabled ? (document.getElementById('dryFastFreq').value || null) : null;\n            const dryFastUnit = document.getElementById('dryFastDurationUnit').value;\n            const dryFastVal = dryFastEnabled ? parseOptionalNum('dryFastDurationVal', 0.5, dryFastUnit === 'days' ? 10 : 240) : null;\n            const rawDryHrs = dryFastVal !== null ? (dryFastUnit === 'days' ? dryFastVal * 24 : dryFastVal) : null;\n            const dryFastDurationHours = (rawDryHrs !== null &amp;&amp; rawDryHrs &lt;= 240) ? rawDryHrs : null;\n\n            \/\/ Pathological History\n            const pathologies = Array.from(document.querySelectorAll('input[name=\"pathology\"]:checked')).map(el =&gt; el.value);\n\n            const isRawNonEmpty = (id) =&gt; {\n                const el = document.getElementById(id);\n                return Boolean(el &amp;&amp; el.value.trim() !== '');\n            };\n            const flagMissingOrInvalid = (id, label) =&gt; isRawNonEmpty(id) ? `${label} (Out of Range \u2014 Ignored)` : label;\n\n            \/\/ Audit of user-facing fields left empty or out of range\n            const omittedInputsList = [];\n            if (!userEmail) omittedInputsList.push('Email Address');\n            if (!userMobile) omittedInputsList.push('Mobile Number');\n            if (!userWhatsapp) omittedInputsList.push('WhatsApp Number');\n            if (!biologicalSex) omittedInputsList.push('Biological Sex');\n            if (ageYears === null) omittedInputsList.push(flagMissingOrInvalid('ageYears', 'Age (years)'));\n            if (weightKg === null) omittedInputsList.push(flagMissingOrInvalid('weightInput', 'Total Body Weight'));\n            if (heightCm === null) {\n                const hasRawH = heightUnit === 'cm' ? isRawNonEmpty('heightCmInput') : (isRawNonEmpty('heightFtInput') || isRawNonEmpty('heightInInput'));\n                omittedInputsList.push(hasRawH ? 'Standing Height (Out of Range \u2014 Ignored)' : 'Standing Height');\n            }\n            if (wristCm === null) omittedInputsList.push(flagMissingOrInvalid('wristInput', 'Wrist Girth'));\n            if (neckCm === null) omittedInputsList.push(flagMissingOrInvalid('neckInput', 'Neck Girth'));\n            if (waistCm === null) omittedInputsList.push(flagMissingOrInvalid('waistInput', 'Waist Girth'));\n            if (hipCm === null) omittedInputsList.push(flagMissingOrInvalid('hipInput', 'Hip Girth'));\n            if (thighCm === null) omittedInputsList.push(flagMissingOrInvalid('thighInput', 'Mid-Thigh Girth'));\n            if (rhr === null) omittedInputsList.push(flagMissingOrInvalid('rhrInput', 'Wakeful Resting Heart Rate (RHR)'));\n            if (shr === null) omittedInputsList.push(flagMissingOrInvalid('shrInput', 'Sleeping Heart Rate (SHR)'));\n            if (mealsPerDay === null) omittedInputsList.push(flagMissingOrInvalid('mealsPerDayInput', 'Meals per Day'));\n            if (!dietaryProfile) omittedInputsList.push('Dietary Classification');\n            if (!primaryCircadianWindow) omittedInputsList.push('Primary Exercise Time Window');\n            if (hoursAfterLastIntake === null) omittedInputsList.push(flagMissingOrInvalid('hoursAfterLastIntake', 'Hrs After Last Meal (&gt;0 kcal)'));\n            if (!postMealWalkStatus) omittedInputsList.push('Walking After Meals Status');\n            else if (postMealWalkStatus !== 'No') {\n                if (postMealWalkDurationMins === null) omittedInputsList.push(flagMissingOrInvalid('postMealWalkDurationMins', 'Post-Meal Walk Duration (mins)'));\n                if (!postMealWalkDelay) omittedInputsList.push('Walk Latency After Eating');\n            }\n            if (exercises.length === 0) {\n                omittedInputsList.push('13-Modality Exercise Selection (None Checked)');\n            } else {\n                exercises.forEach(ex =&gt; {\n                    const missingEx = [];\n                    if (ex.sessPerWeek === null &amp;&amp; !ex.freqTier) missingEx.push(flagMissingOrInvalid(`ex_sess_${ex.id}`, 'Sessions\/Freq'));\n                    if (ex.durationMins === null) missingEx.push(flagMissingOrInvalid(`ex_dur_${ex.id}`, 'Mins\/Session'));\n                    if (!ex.timeWindow &amp;&amp; !primaryCircadianWindow) missingEx.push('Time Window');\n                    if (ex.hoursPostIntake === null &amp;&amp; hoursAfterLastIntake === null) missingEx.push(flagMissingOrInvalid(`ex_fast_${ex.id}`, 'Hrs Post-Kcal'));\n                    if (missingEx.length &gt; 0) {\n                        omittedInputsList.push(`${ex.modality} (${missingEx.join(', ')})`);\n                    }\n                });\n            }\n            if (waterFastEnabled) {\n                if (!waterFastFreq) omittedInputsList.push('Water Fasting Frequency');\n                if (waterFastDurationHours === null) omittedInputsList.push(flagMissingOrInvalid('waterFastDurationVal', 'Water Fasting Average Duration'));\n            }\n            if (dryFastEnabled) {\n                if (!dryFastFreq) omittedInputsList.push('Dry Fasting Frequency');\n                if (dryFastDurationHours === null) omittedInputsList.push(flagMissingOrInvalid('dryFastDurationVal', 'Dry Fasting Average Duration'));\n            }\n            if (pathologies.length === 0) {\n                omittedInputsList.push('Pathological &amp; Metabolic History (Section 05)');\n            }\n\n            return {\n                fullName,\n                userEmail,\n                userMobile,\n                userWhatsapp,\n                biologicalSex,\n                ageYears,\n                weightKg,\n                heightCm,\n                wristCm,\n                neckCm,\n                waistCm,\n                hipCm,\n                thighCm,\n                rhr,\n                shr,\n                mealsPerDay,\n                dietaryProfile,\n                primaryCircadianWindow,\n                hoursAfterLastIntake,\n                postMealWalkStatus,\n                postMealWalkDurationMins,\n                postMealWalkDelay,\n                exercises,\n                waterFast: {\n                    enabled: waterFastEnabled,\n                    frequency: waterFastFreq,\n                    durationHours: waterFastDurationHours\n                },\n                dryFast: {\n                    enabled: dryFastEnabled,\n                    frequency: dryFastFreq,\n                    durationHours: dryFastDurationHours\n                },\n                pathologies,\n                omittedInputsList\n            };\n        }\n\n        function executePhysiologicalCalculations(data) {\n            const dependencyAuditLog = [];\n\n            \/\/ 1. Quetelet BMI\n            let bmi = null;\n            let bmiCategory = '';\n            if (data.weightKg !== null &amp;&amp; data.heightCm !== null &amp;&amp; data.heightCm &gt; 0) {\n                const hM = data.heightCm \/ 100;\n                bmi = data.weightKg \/ (hM * hM);\n                if (bmi &lt; 18.5) bmiCategory = 'Underweight (&lt;18.5 kg\/m\u00b2)';\n                else if (bmi &lt; 25.0) bmiCategory = 'Optimal Normative Weight (18.5\u201324.9 kg\/m\u00b2)';\n                else if (bmi &lt; 30.0) bmiCategory = 'Overweight \/ Elevated Mass (25.0\u201329.9 kg\/m\u00b2)';\n                else bmiCategory = 'Adiposity Class I+ (\u226530.0 kg\/m\u00b2)';\n                dependencyAuditLog.push({\n                    formulaName: 'Quetelet BMI (Weight \/ Height\u00b2)',\n                    requiredVars: 'Total Weight, Standing Height',\n                    status: 'Computed',\n                    handlingNote: `Resolved: ${bmi.toFixed(1)} kg\/m\u00b2 (${bmiCategory})`\n                });\n            } else {\n                const missing = [];\n                if (data.weightKg === null) missing.push('Total Weight');\n                if (data.heightCm === null) missing.push('Standing Height');\n                dependencyAuditLog.push({\n                    formulaName: 'Quetelet BMI (Weight \/ Height\u00b2)',\n                    requiredVars: 'Total Weight, Standing Height',\n                    status: 'Withheld (Blank Cell)',\n                    handlingNote: `Result left blank: Missing ${missing.join(', ')}`\n                });\n            }\n\n            \/\/ 2. US Navy Body Fat % &amp; Relative Fat Mass (RFM)\n            let navyBodyFatPct = null;\n            let rfmBodyFatPct = null;\n            let consensusBodyFatPct = null;\n            let bodyFatCategory = '';\n            let bodyFatMethodNote = '';\n\n            if (data.biologicalSex &amp;&amp; data.heightCm !== null &amp;&amp; data.waistCm !== null &amp;&amp; data.waistCm &gt; 0) {\n                const sexFlag = data.biologicalSex === 'Female' ? 1 : 0;\n                const rfm = 64 - (20 * (data.heightCm \/ data.waistCm)) + (12 * sexFlag);\n                if (Number.isFinite(rfm) &amp;&amp; rfm &gt; 2 &amp;&amp; rfm &lt; 65) rfmBodyFatPct = rfm;\n\n                if (data.neckCm !== null) {\n                    if (data.biologicalSex === 'Male' &amp;&amp; data.waistCm &gt; data.neckCm) {\n                        const val = 495 \/ (1.0324 - 0.19077 * Math.log10(data.waistCm - data.neckCm) + 0.15456 * Math.log10(data.heightCm)) - 450;\n                        if (Number.isFinite(val) &amp;&amp; val &gt; 2 &amp;&amp; val &lt; 65) navyBodyFatPct = val;\n                    } else if (data.biologicalSex === 'Female' &amp;&amp; data.hipCm !== null &amp;&amp; (data.waistCm + data.hipCm) &gt; data.neckCm) {\n                        const val = 495 \/ (1.29579 - 0.35004 * Math.log10(data.waistCm + data.hipCm - data.neckCm) + 0.22100 * Math.log10(data.heightCm)) - 450;\n                        if (Number.isFinite(val) &amp;&amp; val &gt; 2 &amp;&amp; val &lt; 65) navyBodyFatPct = val;\n                    }\n                }\n            }\n\n            if (navyBodyFatPct !== null &amp;&amp; rfmBodyFatPct !== null) {\n                consensusBodyFatPct = (navyBodyFatPct + rfmBodyFatPct) \/ 2;\n                bodyFatMethodNote = `US Navy (${navyBodyFatPct.toFixed(1)}%) + RFM (${rfmBodyFatPct.toFixed(1)}%) Consensus`;\n            } else if (navyBodyFatPct !== null) {\n                consensusBodyFatPct = navyBodyFatPct;\n                bodyFatMethodNote = 'US Navy Equation Only';\n            } else if (rfmBodyFatPct !== null) {\n                consensusBodyFatPct = rfmBodyFatPct;\n                const missingNavy = [];\n                if (data.neckCm === null) missingNavy.push('Neck Girth');\n                if (data.biologicalSex === 'Female' &amp;&amp; data.hipCm === null) missingNavy.push('Hip Girth');\n                bodyFatMethodNote = missingNavy.length &gt; 0\n                    ? `RFM Equation Only (US Navy omitted: ${missingNavy.join(' &amp; ')} left blank)`\n                    : 'RFM Equation Only (Waist-Neck logarithmic boundary)';\n            }\n\n            if (consensusBodyFatPct !== null) {\n                const isFem = data.biologicalSex === 'Female';\n                if (isFem) {\n                    if (consensusBodyFatPct &lt; 21) bodyFatCategory = 'Athletic \/ Lean Female Reserve (14\u201320%)';\n                    else if (consensusBodyFatPct &lt;= 28) bodyFatCategory = 'Optimal Female Fitness Reserve (21\u201328%)';\n                    else bodyFatCategory = 'Elevated Female Adiposity (&gt;28%)';\n                } else {\n                    if (consensusBodyFatPct &lt; 14) bodyFatCategory = 'Athletic \/ Lean Male Reserve (8\u201313.9%)';\n                    else if (consensusBodyFatPct &lt;= 20) bodyFatCategory = 'Optimal Male Fitness Reserve (14\u201320%)';\n                    else bodyFatCategory = 'Elevated Male Adiposity (&gt;20%)';\n                }\n                dependencyAuditLog.push({\n                    formulaName: 'Consensus Body Fat % (US Navy + RFM)',\n                    requiredVars: 'Sex, Height, Waist (+ Neck &amp; Female Hip for US Navy)',\n                    status: navyBodyFatPct !== null &amp;&amp; rfmBodyFatPct !== null ? 'Computed' : 'Partially Computed (RFM)',\n                    handlingNote: `Resolved: ${consensusBodyFatPct.toFixed(1)}% \u2014 ${bodyFatMethodNote}`\n                });\n            } else {\n                const missing = [];\n                if (!data.biologicalSex) missing.push('Sex');\n                if (data.heightCm === null) missing.push('Standing Height');\n                if (data.waistCm === null) missing.push('Waist Girth');\n                const missingReason = missing.length &gt; 0\n                    ? `Missing ${missing.join(', ')}`\n                    : 'Inputs outside physiological logarithmic bounds (requires Waist &gt; Neck and valid Height-to-Waist ratio)';\n                dependencyAuditLog.push({\n                    formulaName: 'Consensus Body Fat % (US Navy + RFM)',\n                    requiredVars: 'Sex, Height, Waist (+ Neck &amp; Female Hip for US Navy)',\n                    status: 'Withheld (Blank Cell)',\n                    handlingNote: `Result left blank: ${missingReason}`\n                });\n            }\n\n            \/\/ 3. Lean Body Mass (LBM) &amp; Fat Mass\n            let fatMassKg = null;\n            let leanBodyMassKg = null;\n            let lbmPct = null;\n            if (data.weightKg !== null &amp;&amp; consensusBodyFatPct !== null) {\n                fatMassKg = data.weightKg * (consensusBodyFatPct \/ 100);\n                leanBodyMassKg = data.weightKg - fatMassKg;\n                lbmPct = 100 - consensusBodyFatPct;\n                dependencyAuditLog.push({\n                    formulaName: 'Lean Body Mass (LBM) &amp; Fat Mass',\n                    requiredVars: 'Total Weight, Consensus Body Fat %',\n                    status: 'Computed',\n                    handlingNote: `Resolved: LBM ${leanBodyMassKg.toFixed(1)} kg (${lbmPct.toFixed(1)}%), Fat Mass ${fatMassKg.toFixed(1)} kg`\n                });\n            } else {\n                const missingLbm = [];\n                if (data.weightKg === null) missingLbm.push('Total Weight');\n                if (consensusBodyFatPct === null) missingLbm.push('Consensus Body Fat %');\n                dependencyAuditLog.push({\n                    formulaName: 'Lean Body Mass (LBM) &amp; Fat Mass',\n                    requiredVars: 'Total Weight, Consensus Body Fat %',\n                    status: 'Withheld (Blank Cell)',\n                    handlingNote: `Result left blank: Missing ${missingLbm.join(', ')}`\n                });\n            }\n\n            \/\/ 4. Skeletal Bone Mineral Mass Proxy (Drinkwater \/ von D\u00f6beln anthropometric proxy)\n            let boneMineralMassKg = null;\n            let skeletalFrameSize = '';\n            if (data.heightCm !== null &amp;&amp; data.wristCm !== null &amp;&amp; data.wristCm &gt; 0) {\n                const hM = data.heightCm \/ 100;\n                const wristBreadthM = (data.wristCm \/ Math.PI) \/ 100;\n                const baseBone = 3.02 * Math.pow(hM * hM * wristBreadthM * 400, 0.712) * 0.11;\n                const computedBone = leanBodyMassKg !== null ? (baseBone * 0.7 + (leanBodyMassKg * 0.055) * 0.3) : baseBone;\n                if (Number.isFinite(computedBone) &amp;&amp; computedBone &gt; 0) {\n                    boneMineralMassKg = computedBone;\n                }\n                const rRatio = data.heightCm \/ data.wristCm;\n                skeletalFrameSize = `r=${rRatio.toFixed(1)} (${rRatio &gt; 10.4 ? 'Slender Frame' : rRatio &gt;= 9.6 ? 'Medium Frame' : 'Broad\/Robust Frame'})`;\n                dependencyAuditLog.push({\n                    formulaName: 'Skeletal Bone Mineral Mass Proxy (von D\u00f6beln\/Drinkwater)',\n                    requiredVars: 'Standing Height, Wrist Girth',\n                    status: 'Computed',\n                    handlingNote: `Resolved: ${boneMineralMassKg.toFixed(2)} kg (${skeletalFrameSize})`\n                });\n            } else {\n                const missing = [];\n                if (data.heightCm === null) missing.push('Standing Height');\n                if (data.wristCm === null) missing.push('Wrist Girth');\n                dependencyAuditLog.push({\n                    formulaName: 'Skeletal Bone Mineral Mass Proxy (von D\u00f6beln\/Drinkwater)',\n                    requiredVars: 'Standing Height, Wrist Girth',\n                    status: 'Withheld (Blank Cell)',\n                    handlingNote: `Result left blank: Missing ${missing.join(', ')}`\n                });\n            }\n\n            \/\/ 5. Waist-to-Hip Ratio (WHR), Waist-to-Thigh Ratio (WTR), Waist-to-Height Ratio (WHtR)\n            let waistToHipRatio = null;\n            let whrRiskCategory = '';\n            if (data.waistCm !== null &amp;&amp; data.hipCm !== null &amp;&amp; data.hipCm &gt; 0) {\n                waistToHipRatio = data.waistCm \/ data.hipCm;\n                const isFem = data.biologicalSex === 'Female';\n                const cutoff = isFem ? 0.85 : 0.90;\n                whrRiskCategory = waistToHipRatio &lt; cutoff ? `Low Truncal Risk (&lt;${cutoff.toFixed(2)})` : `Elevated Central Visceral Distribution (\u2265${cutoff.toFixed(2)})`;\n                dependencyAuditLog.push({\n                    formulaName: 'Waist-to-Hip Ratio (WHR)',\n                    requiredVars: 'Waist Girth, Hip Girth',\n                    status: 'Computed',\n                    handlingNote: `Resolved: ${waistToHipRatio.toFixed(2)} (${whrRiskCategory})`\n                });\n            } else {\n                const missingWhr = [];\n                if (data.waistCm === null) missingWhr.push('Waist Girth');\n                if (data.hipCm === null) missingWhr.push('Hip Girth');\n                dependencyAuditLog.push({\n                    formulaName: 'Waist-to-Hip Ratio (WHR)',\n                    requiredVars: 'Waist Girth, Hip Girth',\n                    status: 'Withheld (Blank Cell)',\n                    handlingNote: `Result left blank: Missing ${missingWhr.join(', ')}`\n                });\n            }\n\n            let waistToThighRatio = null;\n            let wtrInterpretation = '';\n            if (data.waistCm !== null &amp;&amp; data.thighCm !== null &amp;&amp; data.thighCm &gt; 0) {\n                waistToThighRatio = data.waistCm \/ data.thighCm;\n                if (waistToThighRatio &lt; 1.45) wtrInterpretation = 'Optimal Protective Gluteofemoral &amp; Quadriceps Sink (&lt;1.45)';\n                else if (waistToThighRatio &lt;= 1.60) wtrInterpretation = 'Intermediate Peripheral-to-Central Ratio (1.45\u20131.60)';\n                else wtrInterpretation = 'Elevated Visceral-to-Femoral Disparity (&gt;1.60 \u2014 prioritize Squats\/Cycling)';\n                dependencyAuditLog.push({\n                    formulaName: 'Waist-to-Thigh Ratio (WTR)',\n                    requiredVars: 'Waist Girth, Mid-Thigh Girth',\n                    status: 'Computed',\n                    handlingNote: `Resolved: ${waistToThighRatio.toFixed(2)} (${wtrInterpretation})`\n                });\n            } else {\n                const missingWtr = [];\n                if (data.waistCm === null) missingWtr.push('Waist Girth');\n                if (data.thighCm === null) missingWtr.push('Mid-Thigh Girth');\n                dependencyAuditLog.push({\n                    formulaName: 'Waist-to-Thigh Ratio (WTR)',\n                    requiredVars: 'Waist Girth, Mid-Thigh Girth',\n                    status: 'Withheld (Blank Cell)',\n                    handlingNote: `Result left blank: Missing ${missingWtr.join(', ')}`\n                });\n            }\n\n            let waistToHeightRatio = null;\n            let whtrCategory = '';\n            if (data.waistCm !== null &amp;&amp; data.heightCm !== null &amp;&amp; data.heightCm &gt; 0) {\n                waistToHeightRatio = data.waistCm \/ data.heightCm;\n                whtrCategory = waistToHeightRatio &lt; 0.50 ? 'Optimal Cardiometabolic Threshold (&lt;0.50)' : 'Elevated Central Visceral Adiposity (\u22650.50)';\n                dependencyAuditLog.push({\n                    formulaName: 'Waist-to-Height Ratio (WHtR)',\n                    requiredVars: 'Waist Girth, Standing Height',\n                    status: 'Computed',\n                    handlingNote: `Resolved: ${waistToHeightRatio.toFixed(2)} (${whtrCategory})`\n                });\n            } else {\n                const missingWhtr = [];\n                if (data.waistCm === null) missingWhtr.push('Waist Girth');\n                if (data.heightCm === null) missingWhtr.push('Standing Height');\n                dependencyAuditLog.push({\n                    formulaName: 'Waist-to-Height Ratio (WHtR)',\n                    requiredVars: 'Waist Girth, Standing Height',\n                    status: 'Withheld (Blank Cell)',\n                    handlingNote: `Result left blank: Missing ${missingWhtr.join(', ')}`\n                });\n            }\n\n            \/\/ 6. Autonomic Nocturnal Vagal Dip (RHR vs SHR) &amp; Standalone Heart Rate Evaluations\n            let rhrCategory = '';\n            if (data.rhr !== null) {\n                if (data.rhr &lt; 50) rhrCategory = 'Athletic \/ High Vagal Bradycardia (&lt;50 bpm)';\n                else if (data.rhr &lt;= 65) rhrCategory = 'Optimal Cardiorespiratory Baseline (50\u201365 bpm)';\n                else if (data.rhr &lt;= 75) rhrCategory = 'Normal Resting Baseline (66\u201375 bpm)';\n                else rhrCategory = 'Elevated Sympathetic Resting Tone (&gt;75 bpm)';\n                dependencyAuditLog.push({\n                    formulaName: 'Wakeful Resting Heart Rate (RHR) Baseline',\n                    requiredVars: 'Wakeful RHR (bpm)',\n                    status: 'Computed',\n                    handlingNote: `Resolved: ${data.rhr} bpm (${rhrCategory})`\n                });\n            } else {\n                dependencyAuditLog.push({\n                    formulaName: 'Wakeful Resting Heart Rate (RHR) Baseline',\n                    requiredVars: 'Wakeful RHR (bpm)',\n                    status: 'Withheld (Blank Cell)',\n                    handlingNote: 'Result left blank: Missing Wakeful RHR'\n                });\n            }\n\n            let shrCategory = '';\n            if (data.shr !== null) {\n                if (data.shr &lt; 42) shrCategory = 'Deep Athletic Nocturnal Bradycardia (&lt;42 bpm)';\n                else if (data.shr &lt;= 56) shrCategory = 'Optimal Nocturnal Sleeping Baseline (42\u201356 bpm)';\n                else shrCategory = 'Elevated Nocturnal Sleeping Heart Rate (&gt;56 bpm)';\n                dependencyAuditLog.push({\n                    formulaName: 'Sleeping Heart Rate (SHR) Nocturnal Baseline',\n                    requiredVars: 'Sleeping Heart Rate (SHR, bpm)',\n                    status: 'Computed',\n                    handlingNote: `Resolved: ${data.shr} bpm (${shrCategory})`\n                });\n            } else {\n                dependencyAuditLog.push({\n                    formulaName: 'Sleeping Heart Rate (SHR) Nocturnal Baseline',\n                    requiredVars: 'Sleeping Heart Rate (SHR, bpm)',\n                    status: 'Withheld (Blank Cell)',\n                    handlingNote: 'Result left blank: Missing Sleeping Heart Rate (SHR)'\n                });\n            }\n\n            let rhrShrDelta = null;\n            let rhrShrDipPct = null;\n            let autonomicStatus = '';\n            if (data.rhr !== null &amp;&amp; data.shr !== null &amp;&amp; data.rhr &gt; 0) {\n                rhrShrDelta = data.rhr - data.shr;\n                rhrShrDipPct = (rhrShrDelta \/ data.rhr) * 100;\n                if (rhrShrDipPct &gt;= 12 &amp;&amp; rhrShrDipPct &lt;= 25) {\n                    autonomicStatus = 'Optimal Nocturnal Vagal Dominance (12\u201325% Dip)';\n                } else if (rhrShrDipPct &gt; 25) {\n                    autonomicStatus = 'Pronounced Parasympathetic Nocturnal Dip (&gt;25%)';\n                } else if (rhrShrDipPct &gt;= 8) {\n                    autonomicStatus = 'Moderate Nocturnal Recovery (8\u201311.9% Dip)';\n                } else if (rhrShrDipPct &gt;= 0) {\n                    autonomicStatus = 'Blunted Nocturnal Sympathetic Clearance (&lt;8% Dip)';\n                } else {\n                    autonomicStatus = 'Inverse Nocturnal Heart Rate Surge (SHR &gt; RHR \u2014 High Sympathetic Strain)';\n                }\n                dependencyAuditLog.push({\n                    formulaName: 'Nocturnal Parasympathetic Dip ((RHR - SHR) \/ RHR)',\n                    requiredVars: 'Wakeful RHR, Sleeping Heart Rate (SHR)',\n                    status: 'Computed',\n                    handlingNote: `Resolved: ${formatNocturnalDip(rhrShrDelta, rhrShrDipPct)}`\n                });\n            } else {\n                const missingHr = [];\n                if (data.rhr === null) missingHr.push('Wakeful RHR');\n                if (data.shr === null) missingHr.push('Sleeping Heart Rate (SHR)');\n                dependencyAuditLog.push({\n                    formulaName: 'Nocturnal Parasympathetic Dip ((RHR - SHR) \/ RHR)',\n                    requiredVars: 'Wakeful RHR, Sleeping Heart Rate (SHR)',\n                    status: 'Withheld (Blank Cell)',\n                    handlingNote: `Result left blank: Missing ${missingHr.join(', ')}`\n                });\n            }\n\n            \/\/ 7. Exercise Bioenergetics &amp; Postprandial Kinetics\n            const exA = {\n                activeCount: data.exercises.length,\n                weeklyTotalDurationMins: null,\n                weeklyAerobicMins: 0,\n                weeklyResistanceMobilityMins: 0,\n                weeklyTotalMetMinutes: null,\n                weeklyExerciseKcal: null,\n                fastedSessionsCount: 0,\n                timedSessionsCount: 0,\n                postMealWeeklyWalkMins: null,\n                modalityBreakdowns: [],\n                missingDurationModalities: [],\n                modalityHealthCatalogue: []\n            };\n\n            let sumDuration = 0;\n            let sumMetMins = 0;\n            let sumKcal = 0;\n            let anyResolvedDuration = false;\n\n            data.exercises.forEach(ex =&gt; {\n                let sessions = ex.sessPerWeek;\n                if (sessions === null &amp;&amp; ex.freqTier) {\n                    if (ex.freqTier.includes('1\u20132')) sessions = 1.5;\n                    else if (ex.freqTier.includes('3\u20134')) sessions = 3.5;\n                    else if (ex.freqTier.includes('Daily')) sessions = 6;\n                }\n\n                const hrsPost = ex.hoursPostIntake !== null ? ex.hoursPostIntake : data.hoursAfterLastIntake;\n                let substrateState = 'Post-Intake Timing Unspecified';\n                if (hrsPost !== null) {\n                    exA.timedSessionsCount++;\n                    if (hrsPost &gt;= 12) {\n                        exA.fastedSessionsCount++;\n                        substrateState = `Deep Fasted Lipolytic \/ AMPK State (${hrsPost}h post-kcal)`;\n                    } else if (hrsPost &gt;= 3) {\n                        exA.fastedSessionsCount++;\n                        substrateState = `Post-Absorptive Transition (${hrsPost}h post-kcal)`;\n                    } else if (hrsPost &lt;= 1) {\n                        substrateState = `Immediate Postprandial GLUT4 Sink (${hrsPost}h post-kcal)`;\n                    } else {\n                        substrateState = `Fed Glycogenolytic Window (${hrsPost}h post-kcal)`;\n                    }\n                }\n\n                let weeklyMins = null;\n                let weeklyMetMins = null;\n                let weeklyKcal = null;\n\n                if (sessions !== null &amp;&amp; ex.durationMins !== null &amp;&amp; ex.metValue !== null) {\n                    anyResolvedDuration = true;\n                    weeklyMins = sessions * ex.durationMins;\n                    weeklyMetMins = weeklyMins * ex.metValue;\n                    sumDuration += weeklyMins;\n                    sumMetMins += weeklyMetMins;\n\n                    if (['squats', 'resistance', 'calisthenics', 'stretching', 'yoga', 'coreisometrics'].includes(ex.id)) {\n                        exA.weeklyResistanceMobilityMins += weeklyMins;\n                    } else {\n                        exA.weeklyAerobicMins += weeklyMins;\n                    }\n\n                    if (data.weightKg !== null) {\n                        weeklyKcal = (ex.metValue * 3.5 * data.weightKg \/ 200) * weeklyMins;\n                        sumKcal += weeklyKcal;\n                    }\n                } else {\n                    const missingExParts = [];\n                    if (sessions === null) missingExParts.push('Sessions\/Freq');\n                    if (ex.durationMins === null) missingExParts.push('Duration (mins)');\n                    if (ex.metValue === null) missingExParts.push('Intensity (METs)');\n                    exA.missingDurationModalities.push(`${ex.modality} [missing ${missingExParts.join(' &amp; ')}]`);\n                }\n\n                exA.modalityBreakdowns.push({\n                    id: ex.id,\n                    modality: ex.modality,\n                    metValue: ex.metValue,\n                    sessionsDisplay: sessions !== null ? `${sessions}\/wk` : (ex.freqTier || ''),\n                    durationWindowDisplay: [ex.durationMins !== null ? `${ex.durationMins} mins` : 'Duration blank', ex.timeWindow || data.primaryCircadianWindow || ''].filter(Boolean).join(' \u00b7 '),\n                    postIntakeDisplay: hrsPost !== null ? `${hrsPost} hrs` : '',\n                    weeklyMins,\n                    weeklyMetMins,\n                    weeklyKcal,\n                    substrateState\n                });\n            });\n\n            if (anyResolvedDuration) {\n                exA.weeklyTotalDurationMins = sumDuration;\n                exA.weeklyTotalMetMinutes = sumMetMins;\n                if (data.weightKg !== null) {\n                    exA.weeklyExerciseKcal = sumKcal;\n                }\n                dependencyAuditLog.push({\n                    formulaName: 'Weekly Exercise Metabolic Load (MET-mins\/wk &amp; Kcal\/wk)',\n                    requiredVars: 'Selected Modality, Sessions\/Wk, Duration (mins) [+ Weight for Kcal]',\n                    status: exA.missingDurationModalities.length === 0 ? 'Computed' : 'Partially Computed',\n                    handlingNote: exA.missingDurationModalities.length === 0\n                        ? `Resolved: ${Math.round(sumMetMins)} MET-mins\/wk (${Math.round(sumDuration)} mins\/wk)${data.weightKg === null ? ' [Kcal\/wk left blank: Total Weight omitted]' : ''}`\n                        : `Computed ${Math.round(sumMetMins)} MET-mins\/wk; omitted for: ${exA.missingDurationModalities.join(', ')}`\n                });\n            } else {\n                dependencyAuditLog.push({\n                    formulaName: 'Weekly Exercise Metabolic Load (MET-mins\/wk &amp; Kcal\/wk)',\n                    requiredVars: 'Selected Modality, Sessions\/Wk, Duration (mins)',\n                    status: 'Withheld (Blank Cell)',\n                    handlingNote: data.exercises.length === 0\n                        ? 'Result left blank: No exercise modalities checked in Section 03'\n                        : `Result left blank: Missing parameters for ${exA.missingDurationModalities.join(', ')}`\n                });\n            }\n\n            \/\/ Postprandial walking weekly volume\n            const isPostMealActive = Boolean(data.postMealWalkStatus &amp;&amp; (data.postMealWalkStatus.startsWith('Yes') || data.postMealWalkStatus === 'Occasionally'));\n            const needsMealsCount = Boolean(data.postMealWalkStatus &amp;&amp; data.postMealWalkStatus.includes('All Meals'));\n            const hasValidMealsCount = !needsMealsCount || (data.mealsPerDay !== null &amp;&amp; data.mealsPerDay &gt; 0);\n\n            if (isPostMealActive &amp;&amp; data.postMealWalkDurationMins !== null &amp;&amp; hasValidMealsCount) {\n                let walksPerWeek = 7;\n                let walkFreqDesc = '1 walk\/day \u00d7 7d';\n                if (needsMealsCount) {\n                    walksPerWeek = data.mealsPerDay * 7;\n                    walkFreqDesc = `${data.mealsPerDay} meals\/day \u00d7 7d`;\n                } else if (data.postMealWalkStatus === 'Occasionally') {\n                    walksPerWeek = 3.5;\n                    walkFreqDesc = '~3.5 walks\/wk (Occasional)';\n                }\n                exA.postMealWeeklyWalkMins = walksPerWeek * data.postMealWalkDurationMins;\n                dependencyAuditLog.push({\n                    formulaName: 'Weekly Postprandial Walking Volume (Walks\/Wk \u00d7 Mins)',\n                    requiredVars: 'Walking After Meals Status, Post-Meal Walk Duration (mins) [+ Meals\/Day if \"After All Meals\"]',\n                    status: 'Computed',\n                    handlingNote: `Resolved: ${Math.round(exA.postMealWeeklyWalkMins)} mins\/wk (${walkFreqDesc} \u00d7 ${data.postMealWalkDurationMins} mins)`\n                });\n            } else {\n                const missingWalk = [];\n                if (!data.postMealWalkStatus) missingWalk.push('Walking After Meals Status');\n                else if (data.postMealWalkStatus === 'No') missingWalk.push('Active Post-Meal Walk (Selected \"No\")');\n                if (data.postMealWalkDurationMins === null) missingWalk.push('Post-Meal Walk Duration (mins)');\n                if (needsMealsCount &amp;&amp; (data.mealsPerDay === null || data.mealsPerDay &lt;= 0)) missingWalk.push('Meals per Day (required for \"After All Meals\")');\n                dependencyAuditLog.push({\n                    formulaName: 'Weekly Postprandial Walking Volume (Walks\/Wk \u00d7 Mins)',\n                    requiredVars: 'Walking After Meals Status, Post-Meal Walk Duration (mins) [+ Meals\/Day if \"After All Meals\"]',\n                    status: 'Withheld (Blank Cell)',\n                    handlingNote: `Result left blank: Missing or inactive ${missingWalk.join(', ')}`\n                });\n            }\n\n            \/\/ Populate 13-Modality Catalogue after modalityBreakdowns is built\n            exA.modalityHealthCatalogue = EXERCISE_MODALITIES_CONFIG.map(cfg =&gt; {\n                const matched = exA.modalityBreakdowns.find(b =&gt; b.id === cfg.id) || null;\n                return {\n                    id: cfg.id,\n                    modality: cfg.name,\n                    isActive: Boolean(matched),\n                    computedBreakdown: matched,\n                    cardioImpact: cfg.cardioImpact,\n                    metabolicImpact: cfg.metabolicImpact,\n                    musculoskeletalImpact: cfg.musculoskeletalImpact,\n                    synergyWithFasting: cfg.synergyWithFasting\n                };\n            });\n\n            \/\/ 8A. Water Fasting Proteomic Kinetic Stratification (2024 UK Research \u2014 Pietzke et al.)\n            const waterFastKinetics = evaluateWaterFastKineticTier(data.waterFast);\n            dependencyAuditLog.push({\n                formulaName: 'Water-Only Fasting Proteomic Kinetic Phase (2024 UK Research: \u226424h, 24\u201372h, \u226572h)',\n                requiredVars: 'Water Fasting Enabled, Average Duration (hours\/days)',\n                status: !data.waterFast.enabled ? 'Withheld (Not Practiced)' : (waterFastKinetics.hours !== null ? 'Computed' : 'Withheld (Blank Cell)'),\n                handlingNote: !data.waterFast.enabled\n                    ? 'Result left blank: Water-only fasting not checked in Section 04'\n                    : (waterFastKinetics.hours !== null\n                        ? `Resolved: ${waterFastKinetics.hours}h (${waterFastKinetics.phaseLabel})`\n                        : 'Result left blank: Water Fasting checked, but Average Duration was left blank')\n            });\n\n            \/\/ 8B. Dry Fasting Dose-Response Safety Stratification\n            const dryFastSafety = evaluateDryFastSafetyTier(data.dryFast);\n            dependencyAuditLog.push({\n                formulaName: 'Dry Fasting Osmotic &amp; Renal Safety Stratification (\u226416h vs &gt;24\u201372h+)',\n                requiredVars: 'Dry Fasting Enabled, Average Duration (hours\/days)',\n                status: !data.dryFast.enabled ? 'Withheld (Not Practiced)' : (dryFastSafety.hours !== null ? 'Computed' : 'Withheld (Blank Cell)'),\n                handlingNote: !data.dryFast.enabled\n                    ? 'Result left blank: Dry fasting not checked in Section 04'\n                    : (dryFastSafety.hours !== null\n                        ? `Resolved: ${dryFastSafety.hours}h (${dryFastSafety.tierLabel})`\n                        : 'Result left blank: Dry Fasting checked, but Average Duration was left blank')\n            });\n\n            \/\/ 9. Composite Longevity Index (0\u2013100)\n            let longevityScore = 62;\n            if (waistToHeightRatio !== null) {\n                longevityScore += waistToHeightRatio &lt; 0.48 ? 8 : (waistToHeightRatio &lt; 0.53 ? 3 : -6);\n            }\n            if (waistToThighRatio !== null) {\n                longevityScore += waistToThighRatio &lt; 1.48 ? 7 : (waistToThighRatio &lt;= 1.60 ? 2 : -4);\n            }\n            if (rhrShrDipPct !== null) {\n                longevityScore += (rhrShrDipPct &gt;= 12 &amp;&amp; rhrShrDipPct &lt;= 25) ? 8 : (rhrShrDipPct &gt;= 8 ? 3 : -5);\n            }\n            if (exA.weeklyTotalMetMinutes !== null) {\n                longevityScore += exA.weeklyTotalMetMinutes &gt;= 900 ? 10 : (exA.weeklyTotalMetMinutes &gt;= 500 ? 6 : 2);\n            }\n            if (exA.modalityBreakdowns.some(b =&gt; b.id === 'squats' || b.id === 'resistance')) {\n                longevityScore += 4;\n            }\n            longevityScore += waterFastKinetics.longevityDelta;\n            longevityScore += dryFastSafety.longevityDelta;\n            const activePathologies = data.pathologies.filter(p =&gt; p !== 'None');\n            longevityScore -= activePathologies.length * 6;\n            longevityScore = Math.max(18, Math.min(99, Math.round(longevityScore)));\n\n            const longevityTier = longevityScore &gt;= 85\n                ? 'Tier I \u00b7 High Autonomic, Myokine &amp; Metabolic Resilience'\n                : longevityScore &gt;= 70\n                    ? 'Tier II \u00b7 Balanced Physiological Reserve'\n                    : 'Tier III \u00b7 Priority Cardiometabolic Optimization Required';\n\n            \/\/ 10. Reference Limits Dictionary\n            const referenceLimits = {\n                bmi: '18.5\u201324.9 kg\/m\u00b2 (Longevity optimum: 20.0\u201323.5 kg\/m\u00b2)',\n                bodyFat: data.biologicalSex === 'Female' ? 'Female: 18.0\u201328.0% (Athletic: 14\u201320%)' : 'Male: 10.0\u201320.0% (Athletic: 8\u201314%)',\n                lbm: data.biologicalSex === 'Female' ? 'Female LBM: \u226572\u201382% of body weight' : 'Male LBM: \u226580\u201390% of body weight',\n                boneMass: '2.50\u20134.20 kg skeletal mineral proxy; Frame r = Height\/Wrist (9.6\u201310.4 medium)',\n                whr: data.biologicalSex === 'Female' ? 'Female: &lt;0.85 (Optimal &lt;0.80)' : 'Male: &lt;0.90 (Optimal &lt;0.85)',\n                wtr: '&lt;1.50 (Optimal protective gluteofemoral\/quadriceps sink: &lt;1.45)',\n                whtr: '&lt;0.50 (Universal boundary across ethnicities: 0.42\u20130.49)',\n                rhr: '50\u201370 bpm wakeful resting (Endurance trained: 42\u201355 bpm)',\n                shr: '40\u201356 bpm nocturnal sleeping baseline',\n                vagalDip: '12.0\u201322.0% nocturnal heart rate reduction ((RHR - SHR) \/ RHR)',\n                weeklyMetMinutes: '600\u20131,500+ MET-mins\/week (WHO\/ACSM longevity range)',\n                postMealWalk: '10\u201320 mins brisk walking initiated 0\u201330 mins after meals',\n                waterFastPhase: 'Phase I (\u226424h): Glycogenolysis | Phase II (24\u201372h): Ketosis\/Autophagy | Phase III (\u226572h\u2013168h): 1,044-Protein Remodeling (Pietzke et al. 2024)',\n                dryFastLimit: 'Adaptive Diurnal Window: \u226416h | Precautionary: 16\u201324h | High Renal\/Hypertonic Hazard: &gt;24\u201372h+',\n                longevityIndex: '85\u2013100: Tier I Resilience | 70\u201384: Tier II Reserve | &lt;70: Priority Optimization'\n            };\n\n            \/\/ 11. Bidirectional Pathological Interactions\n            const pathologyInteractions = buildBidirectionalPathologyMatrix(data, {\n                bmi, waistToThighRatio, waistToHeightRatio, rhrShrDipPct, exA, waterFastKinetics, dryFastSafety\n            });\n\n            \/\/ 12. Personalized Contraindications &amp; Risk Warnings\n            const riskWarnings = buildPersonalizedRiskWarnings(data, activePathologies, rhrShrDipPct, waterFastKinetics, dryFastSafety);\n\n            return {\n                bmi,\n                bmiCategory,\n                navyBodyFatPct,\n                rfmBodyFatPct,\n                consensusBodyFatPct,\n                bodyFatCategory,\n                bodyFatMethodNote,\n                fatMassKg,\n                leanBodyMassKg,\n                lbmPct,\n                boneMineralMassKg,\n                skeletalFrameSize,\n                waistToHipRatio,\n                whrRiskCategory,\n                waistToThighRatio,\n                wtrInterpretation,\n                waistToHeightRatio,\n                whtrCategory,\n                rhrCategory,\n                shrCategory,\n                rhrShrDelta,\n                rhrShrDipPct,\n                autonomicStatus,\n                exerciseAnalytics: exA,\n                waterFastKinetics,\n                dryFastSafety,\n                longevityScore,\n                longevityTier,\n                referenceLimits,\n                pathologyInteractions,\n                riskWarnings,\n                dependencyAuditLog\n            };\n        }\n\n        function buildBidirectionalPathologyMatrix(data, ctx) {\n            const activeSet = new Set(data.pathologies.filter(p =&gt; p !== 'None'));\n            const hasSquatsOrLower = ctx.exA.modalityBreakdowns.some(b =&gt; ['squats', 'outcycling', 'statcycling', 'stairs', 'resistance'].includes(b.id));\n            const hasPostMealWalk = Boolean(data.postMealWalkStatus &amp;&amp; data.postMealWalkStatus.startsWith('Yes'));\n\n            const crossInputCards = [\n                {\n                    domain: '1. Anthropometry &amp; Lower-Body Sinks &lt;-&gt; Pathological History',\n                    impactTo: ctx.waistToHeightRatio !== null || ctx.waistToThighRatio !== null\n                        ? `Recorded WHtR (${ctx.waistToHeightRatio !== null ? ctx.waistToHeightRatio.toFixed(2) : 'Blank'}) and WTR (${ctx.waistToThighRatio !== null ? ctx.waistToThighRatio.toFixed(2) : 'Blank'}) govern portal free fatty acid flux to the liver and peripheral GLUT4 disposal capacity.`\n                        : 'Anthropometric ratios (WHtR\/WTR) left blank; visceral-to-gluteofemoral partitioning cannot be numerically resolved.',\n                    impactFrom: activeSet.size &gt; 0\n                        ? `Reported condition(s) (${Array.from(activeSet).join(', ')}) promote hyperinsulinemic de novo lipogenesis or cortisol-mediated truncal fat redistribution, requiring lower-body muscle sink preservation.`\n                        : 'No reported pathological comorbidities altering baseline adipose-to-muscle partitioning.'\n                },\n                {\n                    domain: '2. Autonomic Cardiac Vitals (RHR &amp; SHR) &lt;-&gt; Pathological History',\n                    impactTo: ctx.rhrShrDipPct !== null\n                        ? `Recorded nocturnal vagal dip (${ctx.rhrShrDipPct.toFixed(1)}%) reflects parasympathetic baroreflex recovery, modulating 24-hour vascular shear stress and nocturnal blood pressure dipping.`\n                        : 'Wakeful RHR or Sleeping SHR left blank; nocturnal autonomic dipping cannot be numerically resolved.',\n                    impactFrom: activeSet.has('Hypertension (Elevated BP)') || activeSet.has('Type 1 \/ Type 2 \/ Pre-Diabetes') || activeSet.has('Previous Myocardial Infarction (Heart Attack)')\n                        ? 'Cardiometabolic conditions can blunt nocturnal vagal heart rate dipping via sympathetic overdrive or cardiac autonomic neuropathy.'\n                        : 'Autonomic RHR-to-SHR dipping is unconstrained by known cardiovascular or neuropathic comorbidities.'\n                },\n                {\n                    domain: '3. 13-Modality Exercise &amp; Postprandial Walking &lt;-&gt; Pathological History',\n                    impactTo: `${ctx.exA.activeCount} active exercise modality(ies)${hasSquatsOrLower ? ' (including lower-extremity GLUT4 sink work)' : ''}${hasPostMealWalk ? ' plus dedicated postprandial walking' : ''} accelerate non-insulin AMPK glucose clearance and endothelial nitric oxide (eNOS) vasodilation.`,\n                    impactFrom: activeSet.has('Previous Myocardial Infarction (Heart Attack)') || activeSet.has('Hypertension (Elevated BP)')\n                        ? 'Requires avoidance of extreme Valsalva spikes during heavy resistance\/HIIT; favor controlled breathing, Zone 2 endurance, and post-meal walking.'\n                        : 'Full physiological clearance across aerobic, neuromuscular squat\/resistance, and mobility modalities.'\n                },\n                {\n                    domain: '4. Dietary Architecture &amp; Fasting Protocols &lt;-&gt; Pathological History',\n                    impactTo: `Dietary profile (${data.dietaryProfile || 'Blank'}, ${data.mealsPerDay !== null ? data.mealsPerDay + ' meals\/day' : 'meals blank'}) and fasting status (${ctx.waterFastKinetics.practiced ? 'Water fast ' + (ctx.waterFastKinetics.hours !== null ? ctx.waterFastKinetics.hours + 'h' : 'enabled') : 'No water fast'}; ${ctx.dryFastSafety.practiced ? 'Dry fast ' + (ctx.dryFastSafety.hours !== null ? ctx.dryFastSafety.hours + 'h' : 'enabled') : 'No dry fast'}) regulate insulin AUC, hepatic ketogenesis, and renal solute clearance.`,\n                    impactFrom: activeSet.has('Gout') || activeSet.has('Renal\/Kidney Disease') || activeSet.has('Type 1 \/ Type 2 \/ Pre-Diabetes')\n                        ? 'Ketone bodies (beta-HB\/acetoacetate) compete with uric acid at renal URAT1 transporters; dry fasting or unsupervised prolonged fasting is contraindicated in Gout, Renal Disease, and medicated Diabetes.'\n                        : 'Fasting ketogenesis and natriuresis proceed without known renal, urate, or pharmacological glycemic contraindications.'\n                }\n            ];\n\n            const conditionMatrix = [\n                {\n                    cond: 'Type 1 \/ Type 2 \/ Pre-Diabetes',\n                    isActive: activeSet.has('Type 1 \/ Type 2 \/ Pre-Diabetes'),\n                    impactTo: 'Squats, resistance training, and 15-min post-meal walks translocate GLUT4 independently of insulin; 24h-7d water fasting drains hepatic\/myocellular ceramides and DAGs, restoring IRS-1\/Akt signaling.',\n                    impactFrom: 'Chronic hyperglycemia glycates vascular collagen; if using insulin, sulfonylureas, or SGLT2 inhibitors, prolonged fasting carries severe risk of hypoglycemia or euglycemic DKA without physician dose titration.'\n                },\n                {\n                    cond: 'Hypertension (Elevated BP)',\n                    isActive: activeSet.has('Hypertension (Elevated BP)'),\n                    impactTo: 'Zone 2 cycling, brisk walking, isometric wall-sits\/planks, and water-fasting natriuresis (via insulin decline at renal NHE3\/ENaC) reduce systolic\/diastolic BP by 8-15 \/ 5-10 mmHg.',\n                    impactFrom: 'Increases left ventricular afterload and blunts RHR-to-SHR nocturnal dipping; antihypertensive diuretics\/ACEi\/ARBs require electrolyte &amp; orthostatic monitoring during fasting.'\n                },\n                {\n                    cond: 'Previous Myocardial Infarction (Heart Attack)',\n                    isActive: activeSet.has('Previous Myocardial Infarction (Heart Attack)'),\n                    impactTo: 'Zone 2 aerobic conditioning, postprandial walking, and pranayama\/yoga enhance vagal heart rate variability (HRV) and myocardial collateral perfusion.',\n                    impactToShort: 'Zone 2 &amp; walking improve vagal tone',\n                    impactFrom: 'Strict contraindication to prolonged (&gt;48-72h) water fasting or any dry fasting (&gt;16h) due to catecholamine surges, electrolyte shifts (K+\/Mg2+), and hemoconcentration thrombosis risk.'\n                },\n                {\n                    cond: 'NAFLD \/ Fatty Liver',\n                    isActive: activeSet.has('NAFLD \/ Fatty Liver'),\n                    impactTo: 'Water fasting silences SREBP-1c\/ChREBP de novo lipogenesis and activates PPAR-alpha\/FGF21, oxidizing 30-50%+ of intrahepatic triglycerides while lower-body exercise diverts postprandial glucose to muscle.',\n                    impactFrom: 'Hepatic steatosis drives VLDL overproduction, fetuin-A secretion, and systemic insulin resistance, elevating WHtR and blunting metabolic flexibility.'\n                },\n                {\n                    cond: 'Renal\/Kidney Disease',\n                    isActive: activeSet.has('Renal\/Kidney Disease'),\n                    impactTo: 'Blood pressure control, low-cortisol walking, and avoidance of hypertonic dehydration preserve glomerular filtration rate (GFR).',\n                    impactFrom: 'Absolute contraindication to Dry Fasting (AVP\/polyol medullary toxicity and pre-renal AKI) and unsupervised prolonged fasting due to impaired potassium, phosphate, and acid-base buffering.'\n                },\n                {\n                    cond: 'Gout',\n                    isActive: activeSet.has('Gout'),\n                    impactTo: 'Euvolemic hydration, optimal WHtR, and low-purine\/alkalinizing dietary patterns reduce serum urate supersaturation.',\n                    impactFrom: 'Fasting beta-hydroxybutyrate and lactic acid from all-out HIIT compete with uric acid for proximal tubular URAT1 excretion, precipitating acute gouty flares\u2014especially if dehydrated.'\n                }\n            ];\n\n            return { crossInputCards, conditionMatrix };\n        }\n\n        function buildPersonalizedRiskWarnings(data, activePathologies, rhrShrDipPct, waterFastKinetics, dryFastSafety) {\n            const warnings = [];\n            const activeSet = new Set(activePathologies);\n\n            if (dryFastSafety.practiced &amp;&amp; dryFastSafety.hours !== null &amp;&amp; dryFastSafety.hours &gt; 24) {\n                warnings.push(`CRITICAL OSMOTIC &amp; RENAL ALERT: Recorded Dry Fasting duration (${dryFastSafety.hours} hours) exceeds the 24-hour physiological boundary. Obligatory insensible + urinary water losses (~1,200-1,500 mL\/day) far exceed endogenous fat-derived metabolic water (~300-400 mL\/day), creating severe risk of hypernatremia, renal medullary polyol toxicity, urate crystallization, and pre-renal acute kidney injury (AKI).`);\n            } else if (dryFastSafety.practiced &amp;&amp; dryFastSafety.hours !== null &amp;&amp; dryFastSafety.hours &gt; 16) {\n                warnings.push(`PRECAUTIONARY DRY FASTING NOTICE: Recorded Dry Fasting duration (${dryFastSafety.hours} hours) enters the 16-24h precautionary osmotic zone. Ensure complete electrolyte and fluid rehydration during eating windows and avoid high-heat or high-intensity glycolytic training while fluid-restricted.`);\n            }\n\n            if (waterFastKinetics.practiced &amp;&amp; waterFastKinetics.hours !== null &amp;&amp; waterFastKinetics.hours &gt; 72) {\n                warnings.push(`EXTENDED WATER FASTING ELECTROLYTE &amp; REFEEDING NOTICE: Recorded Water-Only Fasting duration (${waterFastKinetics.hours} hours \/ ${(waterFastKinetics.hours \/ 24).toFixed(1)} days) crosses the 72-hour systemic proteomic threshold. Fasts exceeding 72 hours require targeted sodium, potassium, magnesium, and phosphate monitoring and gradual low-glycemic refeeding to prevent refeeding hypophosphatemia and orthostatic hypotension.`);\n            }\n\n            if (activeSet.has('Renal\/Kidney Disease') &amp;&amp; (dryFastSafety.practiced || (waterFastKinetics.practiced &amp;&amp; (waterFastKinetics.hours === null || waterFastKinetics.hours &gt; 24)))) {\n                warnings.push('RENAL CONTRAINDICATION ALERT: Reported Renal\/Kidney Disease is a strict contraindication to Dry Fasting (risk of pre-renal acute kidney injury and medullary hypertonicity) and unsupervised prolonged fasting.');\n            }\n\n            if (activeSet.has('Gout') &amp;&amp; (dryFastSafety.practiced || waterFastKinetics.practiced)) {\n                warnings.push('GOUT \/ HYPERURICEMIA URAT1 ALERT: Fasting ketone bodies (beta-hydroxybutyrate and acetoacetate) directly compete with uric acid for proximal tubular URAT1 excretion. Maintain generous euvolemic hydration and avoid dry fasting to prevent acute uric acid crystallization.');\n            }\n\n            if (activeSet.has('Type 1 \/ Type 2 \/ Pre-Diabetes') &amp;&amp; (waterFastKinetics.practiced || dryFastSafety.practiced)) {\n                warnings.push('GLYCEMIC &amp; PHARMACOLOGICAL SAFETY ALERT: In individuals with Diabetes, fasting protocols require physician oversight\u2014especially if prescribed insulin, sulfonylureas (hypoglycemia risk), or SGLT2 inhibitors (euglycemic diabetic ketoacidosis risk).');\n            }\n\n            if (activeSet.has('Previous Myocardial Infarction (Heart Attack)')) {\n                warnings.push('CARDIOVASCULAR AUTONOMIC &amp; ELECTROLYTE ALERT: History of Myocardial Infarction contraindicates dry fasting and prolonged (&gt;48h) water fasting due to sympathetic catecholamine surges, potassium\/magnesium shifts, and hemoconcentration viscosity risk.');\n            }\n\n            if (rhrShrDipPct !== null &amp;&amp; rhrShrDipPct &lt; 0) {\n                warnings.push(`INVERSE NOCTURNAL HEART RATE ALERT: Sleeping Heart Rate (${data.shr} bpm) exceeds Wakeful Resting Heart Rate (${data.rhr} bpm), indicating nocturnal sympathetic overdrive, late-evening meal\/glycemic load, sleep-disordered breathing, or incomplete recovery.`);\n            } else if (rhrShrDipPct !== null &amp;&amp; rhrShrDipPct &lt; 8) {\n                warnings.push(`BLUNTED NOCTURNAL VAGAL DIP NOTICE: Nocturnal heart rate reduction is ${rhrShrDipPct.toFixed(1)}% (&lt;12% optimal threshold). Consider completing your final meal &gt;=3-4 hours before sleep and incorporating slow pranayama\/parasympathetic cooldowns.`);\n            }\n\n            if (warnings.length === 0) {\n                warnings.push('No acute pathological-fasting contraindications detected across recorded parameters. Maintain adequate mineral\/electrolyte hydration and progressive recovery intervals.');\n            }\n\n            return warnings;\n        }\n\n        function renderReportUI(data, metrics, shouldScroll = true) {\n            const reportSection = document.getElementById('reportSection');\n            if (reportSection) reportSection.classList.remove('hidden');\n\n            const refId = (APP_STATE.lastAssessment &amp;&amp; !shouldScroll)\n                ? APP_STATE.lastAssessment.referenceId\n                : `GR-BIO-${Math.floor(100000 + Math.random() * 900000)}`;\n            const nowStr = (APP_STATE.lastAssessment &amp;&amp; !shouldScroll)\n                ? APP_STATE.lastAssessment.timestamp\n                : new Date().toLocaleString('en-AU', {\n                    year: 'numeric', month: 'short', day: '2-digit',\n                    hour: '2-digit', minute: '2-digit', hour12: false\n                });\n\n            const normalizedName = data.fullName.trim().toLowerCase();\n            const isSampleSubject = APP_STATE.isSampleProfileActive || APP_STATE.blockedSampleNames.includes(normalizedName);\n\n            document.getElementById('repSubjectName').textContent = isSampleSubject ? `${data.fullName} [SAMPLE PROFILE]` : data.fullName;\n            document.getElementById('repProtocolId').textContent = refId;\n            document.getElementById('repTimestamp').textContent = nowStr;\n\n            \/\/ 1. Sample Profile Notification Banner in Report\n            const sampleBannerEl = document.getElementById('reportSampleAlertBanner');\n            const formSampleBannerEl = document.getElementById('formSampleProfileBanner');\n            if (sampleBannerEl) {\n                sampleBannerEl.classList.toggle('hidden', !isSampleSubject);\n            }\n            if (formSampleBannerEl) {\n                formSampleBannerEl.classList.toggle('hidden', !isSampleSubject);\n            }\n\n            \/\/ 2. Omitted \/ Empty Fields Notification Banner in Report\n            const omittedBannerEl = document.getElementById('reportOmittedFieldsBanner');\n            const omittedCountBadge = document.getElementById('omittedFieldsCountBadge');\n            const omittedSummaryText = document.getElementById('omittedFieldsSummaryText');\n            const omittedPillsEl = document.getElementById('omittedFieldsPills');\n            const omittedList = data.omittedInputsList || [];\n            const withheldFormulasCount = metrics.dependencyAuditLog.filter(a =&gt; a.status !== 'Computed').length;\n\n            if (omittedBannerEl) {\n                if (omittedList.length &gt; 0) {\n                    omittedBannerEl.classList.remove('hidden');\n                    if (omittedCountBadge) {\n                        omittedCountBadge.textContent = `${omittedList.length} Field${omittedList.length === 1 ? '' : 's'} Left Blank \u00b7 ${withheldFormulasCount} Index${withheldFormulasCount === 1 ? '' : 'es'} Withheld\/Partial`;\n                    }\n                    if (omittedSummaryText) {\n                        omittedSummaryText.innerHTML = `You left &lt;strong&gt;${omittedList.length} input field${omittedList.length === 1 ? '' : 's'} empty&lt;\/strong&gt;. Under our strict &lt;strong&gt;Zero-Defaulting Rule&lt;\/strong&gt;, we never guess or substitute synthetic numbers (such as &lt;code&gt;0&lt;\/code&gt; or averages) for missing data. Any calculation requiring an omitted measurement is kept strictly blank in the tables below and documented in &lt;strong&gt;Section VIII (Calculation Dependency Audit Log)&lt;\/strong&gt;. You can fill in any of the fields below and click &lt;strong&gt;\"Calculate &amp;amp; Generate Assessment\"&lt;\/strong&gt; again at any time:`;\n                    }\n                    if (omittedPillsEl) {\n                        omittedPillsEl.innerHTML = omittedList.map(item =&gt;\n                            `&lt;span class=\"inline-block bg-white border border-sky-300 text-sky-950 text-[11px] font-medium px-2.5 py-0.5 rounded\"&gt;${escapeHtml(item)}&lt;\/span&gt;`\n                        ).join('');\n                    }\n                } else {\n                    omittedBannerEl.classList.add('hidden');\n                }\n            }\n\n            \/\/ Update Mailto link in Section IX Hub\n            const mailtoEl = document.getElementById('btnHubMailtoLink');\n            if (mailtoEl) {\n                const subj = encodeURIComponent(`Physiological &amp; Longevity Dossier [${refId}] - ${data.fullName}`);\n                const body = encodeURIComponent(\n                    `Dear Executive Editor (Ground Report India International Journal Australia),\\n\\n` +\n                    `Please find my Physiological, Anthropometric, Fasting &amp; Longevity Assessment summary below (Official A4 PDF attached if downloaded):\\n\\n` +\n                    `- Subject Name: ${data.fullName}\\n` +\n                    `- Email Address: ${data.userEmail || ''}\\n` +\n                    `- Mobile Number: ${data.userMobile || ''}\\n` +\n                    `- WhatsApp Number: ${data.userWhatsapp || ''}\\n` +\n                    `- Protocol ID: ${refId}\\n` +\n                    `- Timestamp: ${nowStr}\\n` +\n                    `- BMI: ${fmt(metrics.bmi, 1, ' kg\/m\u00b2')}\\n` +\n                    `- Consensus Body Fat %: ${fmt(metrics.consensusBodyFatPct, 1, '%')}\\n` +\n                    `- Waist-to-Hip Ratio (WHR): ${fmt(metrics.waistToHipRatio, 2, '')}\\n` +\n                    `- Waist-to-Thigh Ratio (WTR): ${fmt(metrics.waistToThighRatio, 2, '')}\\n` +\n                    `- Nocturnal Vagal Dip: ${fmt(metrics.rhrShrDipPct, 1, '%')}\\n` +\n                    `- Weekly Exercise Load: ${metrics.exerciseAnalytics.weeklyTotalMetMinutes !== null ? Math.round(metrics.exerciseAnalytics.weeklyTotalMetMinutes) + ' MET-mins\/wk' : ''}\\n` +\n                    `- Water Fast Phase: ${metrics.waterFastKinetics.phaseLabel}\\n` +\n                    `- Dry Fast Tier: ${metrics.dryFastSafety.tierLabel}\\n` +\n                    `- Composite Longevity Index: ${metrics.longevityScore} \/ 100 (${metrics.longevityTier})\\n`\n                );\n                mailtoEl.href = `mailto:${APP_STATE.editorialRecipient}?subject=${subj}&amp;body=${body}`;\n            }\n\n            \/\/ Section I: Baseline Summary Strip\n            const baselineItems = [\n                { label: 'Sex \/ Age', val: [data.biologicalSex || '', data.ageYears !== null ? `${data.ageYears} yrs` : ''].filter(Boolean).join(' \u00b7 ') },\n                { label: 'Email \/ Mobile \/ WhatsApp', val: [data.userEmail || '', data.userMobile ? `Mob: ${data.userMobile}` : '', data.userWhatsapp ? `WA: ${data.userWhatsapp}` : ''].filter(Boolean).join(' \u00b7 ') },\n                { label: 'Weight \/ Height', val: [fmt(data.weightKg, 1, ' kg'), fmt(data.heightCm, 1, ' cm')].filter(Boolean).join(' \/ ') },\n                { label: 'Waist \/ Hip \/ Thigh', val: [fmt(data.waistCm, 1, ' cm'), fmt(data.hipCm, 1, ' cm'), fmt(data.thighCm, 1, ' cm')].filter(Boolean).join(' \/ ') },\n                { label: 'Wrist \/ Neck Girth', val: [fmt(data.wristCm, 1, ' cm'), fmt(data.neckCm, 1, ' cm')].filter(Boolean).join(' \/ ') },\n                { label: 'RHR \/ SHR \/ Meals', val: [data.rhr !== null ? `${data.rhr} bpm` : '', data.shr !== null ? `${data.shr} bpm` : '', data.mealsPerDay !== null ? `${data.mealsPerDay} meals\/d` : ''].filter(Boolean).join(' \u00b7 ') },\n                { label: 'Diet &amp; Fasting', val: [data.dietaryProfile || '', data.waterFast.enabled ? `Water Fast (${data.waterFast.durationHours !== null ? data.waterFast.durationHours + 'h' : 'On'})` : '', data.dryFast.enabled ? `Dry Fast (${data.dryFast.durationHours !== null ? data.dryFast.durationHours + 'h' : 'On'})` : ''].filter(Boolean).join(' \u00b7 ') }\n            ];\n            document.getElementById('baselineSummaryGrid').innerHTML = baselineItems.map(item =&gt; `\n                &lt;div class=\"p-3 rounded-md border border-slate-200 bg-slate-50\"&gt;\n                    &lt;span class=\"text-[10px] font-bold uppercase tracking-wider text-slate-500 block\"&gt;${escapeHtml(item.label)}&lt;\/span&gt;\n                    &lt;span class=\"text-xs font-bold text-slate-900 mt-0.5 block min-h-[1.25rem]\"&gt;${escapeHtml(item.val)}&lt;\/span&gt;\n                &lt;\/div&gt;\n            `).join('');\n\n            \/\/ Section II: Core Metric Cards\n            const rl = metrics.referenceLimits;\n            const coreCards = [\n                {\n                    title: 'Quetelet BMI',\n                    value: fmt(metrics.bmi, 1, ' kg\/m\u00b2'),\n                    sub: metrics.bmi !== null ? metrics.bmiCategory : 'Blank: Requires Weight &amp; Height',\n                    ref: rl.bmi\n                },\n                {\n                    title: 'Consensus Body Fat %',\n                    value: fmt(metrics.consensusBodyFatPct, 1, '%'),\n                    sub: metrics.consensusBodyFatPct !== null ? metrics.bodyFatCategory : 'Blank: Requires Sex, Height &amp; Waist',\n                    ref: rl.bodyFat\n                },\n                {\n                    title: 'Lean Mass &amp; Bone Proxy',\n                    value: metrics.leanBodyMassKg !== null ? `${metrics.leanBodyMassKg.toFixed(1)} kg LBM` : fmt(metrics.boneMineralMassKg, 2, ' kg Bone'),\n                    sub: [metrics.lbmPct !== null ? `${metrics.lbmPct.toFixed(1)}% LBM` : '', metrics.boneMineralMassKg !== null ? `Bone: ${metrics.boneMineralMassKg.toFixed(2)} kg (${metrics.skeletalFrameSize})` : ''].filter(Boolean).join(' \u00b7 ') || 'Blank: Requires Weight\/Height\/Wrist',\n                    ref: rl.lbm\n                },\n                {\n                    title: 'Waist-to-Hip (WHR) &amp; WHtR',\n                    value: [fmt(metrics.waistToHipRatio, 2, ' WHR'), fmt(metrics.waistToHeightRatio, 2, ' WHtR')].filter(Boolean).join(' \/ '),\n                    sub: [metrics.whrRiskCategory, metrics.whtrCategory].filter(Boolean).join(' \u00b7 ') || 'Blank: Requires Waist &amp; Hip\/Height',\n                    ref: rl.whr\n                },\n                {\n                    title: 'Waist-to-Thigh Ratio (WTR)',\n                    value: fmt(metrics.waistToThighRatio, 2, ''),\n                    sub: metrics.wtrInterpretation || 'Blank: Requires Waist &amp; Mid-Thigh Girth',\n                    ref: rl.wtr\n                },\n                {\n                    title: 'Nocturnal Vagal HR Dip',\n                    value: formatNocturnalDip(metrics.rhrShrDelta, metrics.rhrShrDipPct),\n                    sub: metrics.autonomicStatus || 'Blank: Requires Wakeful RHR &amp; Sleeping SHR',\n                    ref: rl.vagalDip\n                },\n                {\n                    title: 'Fasting Kinetic Tier',\n                    value: [metrics.waterFastKinetics.hours !== null ? `Water: ${metrics.waterFastKinetics.hours}h` : '', metrics.dryFastSafety.hours !== null ? `Dry: ${metrics.dryFastSafety.hours}h` : ''].filter(Boolean).join(' | '),\n                    sub: [metrics.waterFastKinetics.phaseLabel, metrics.dryFastSafety.tierLabel].filter(Boolean).join(' \u00b7 ') || 'Blank: No active fasting duration entered',\n                    ref: rl.waterFastPhase\n                },\n                {\n                    title: 'Composite Longevity Index',\n                    value: `${metrics.longevityScore} \/ 100`,\n                    sub: metrics.longevityTier,\n                    ref: rl.longevityIndex\n                }\n            ];\n\n            document.getElementById('coreMetricsCardsGrid').innerHTML = coreCards.map(c =&gt; `\n                &lt;div class=\"p-3.5 rounded-lg border border-slate-200 bg-slate-50\/70 flex flex-col justify-between space-y-2\"&gt;\n                    &lt;div&gt;\n                        &lt;span class=\"text-[11px] font-bold uppercase tracking-wider text-teal-800 block\"&gt;${escapeHtml(c.title)}&lt;\/span&gt;\n                        &lt;div class=\"text-base sm:text-lg font-bold text-slate-900 mt-0.5 min-h-[1.5rem]\"&gt;${escapeHtml(c.value)}&lt;\/div&gt;\n                        &lt;div class=\"text-[11px] text-slate-700 mt-0.5 leading-snug\"&gt;${escapeHtml(c.sub)}&lt;\/div&gt;\n                    &lt;\/div&gt;\n                    &lt;div class=\"pt-2 border-t border-slate-200\/80 text-[10px] text-slate-500 leading-snug\"&gt;\n                        &lt;strong&gt;Ref:&lt;\/strong&gt; ${escapeHtml(c.ref)}\n                    &lt;\/div&gt;\n                &lt;\/div&gt;\n            `).join('');\n\n            \/\/ Normative Reference Table\n            const wfk = metrics.waterFastKinetics;\n            const dfs = metrics.dryFastSafety;\n            const normRows = [\n                ['Quetelet BMI', fmt(metrics.bmi, 1, ' kg\/m\u00b2'), metrics.bmi !== null ? metrics.bmiCategory : 'Withheld: Requires Total Weight &amp; Standing Height', rl.bmi],\n                ['Consensus Body Fat %', fmt(metrics.consensusBodyFatPct, 1, '%'), metrics.consensusBodyFatPct !== null ? `${metrics.bodyFatCategory} (${metrics.bodyFatMethodNote})` : 'Withheld: Requires Sex, Standing Height &amp; Waist Girth', rl.bodyFat],\n                ['Lean Body Mass (LBM)', metrics.leanBodyMassKg !== null ? `${metrics.leanBodyMassKg.toFixed(1)} kg (${metrics.lbmPct.toFixed(1)}%)` : '', metrics.fatMassKg !== null ? `Fat Mass: ${metrics.fatMassKg.toFixed(1)} kg` : 'Withheld: Requires Total Weight &amp; resolved Body Fat %', rl.lbm],\n                ['Skeletal Bone Mineral Proxy', fmt(metrics.boneMineralMassKg, 2, ' kg'), metrics.skeletalFrameSize || 'Withheld: Requires Standing Height &amp; Wrist Girth', rl.boneMass],\n                ['Waist-to-Hip Ratio (WHR)', fmt(metrics.waistToHipRatio, 2, ''), metrics.whrRiskCategory || 'Withheld: Requires Waist Girth &amp; Hip Girth', rl.whr],\n                ['Waist-to-Thigh Ratio (WTR)', fmt(metrics.waistToThighRatio, 2, ''), metrics.wtrInterpretation || 'Withheld: Requires Waist Girth &amp; Mid-Thigh Girth', rl.wtr],\n                ['Waist-to-Height Ratio (WHtR)', fmt(metrics.waistToHeightRatio, 2, ''), metrics.whtrCategory || 'Withheld: Requires Waist Girth &amp; Standing Height', rl.whtr],\n                ['Wakeful Resting Heart Rate (RHR)', data.rhr !== null ? `${data.rhr} bpm` : '', metrics.rhrCategory || 'Withheld: Wakeful RHR left blank', rl.rhr],\n                ['Sleeping Heart Rate (SHR)', data.shr !== null ? `${data.shr} bpm` : '', metrics.shrCategory || 'Withheld: Sleeping SHR left blank', rl.shr],\n                ['Nocturnal Parasympathetic Dip', formatNocturnalDip(metrics.rhrShrDelta, metrics.rhrShrDipPct), metrics.autonomicStatus || 'Withheld: Requires Wakeful RHR &amp; Sleeping SHR', rl.vagalDip],\n                ['Weekly Exercise Metabolic Load', metrics.exerciseAnalytics.weeklyTotalMetMinutes !== null ? `${Math.round(metrics.exerciseAnalytics.weeklyTotalMetMinutes)} MET-mins\/wk` : '', metrics.exerciseAnalytics.weeklyTotalDurationMins !== null ? `${Math.round(metrics.exerciseAnalytics.weeklyTotalDurationMins)} mins\/wk across ${metrics.exerciseAnalytics.activeCount} modality(ies)` : 'Withheld: Requires selected modality + session duration', rl.weeklyMetMinutes],\n                ['Postprandial Walking Volume', metrics.exerciseAnalytics.postMealWeeklyWalkMins !== null ? `${Math.round(metrics.exerciseAnalytics.postMealWeeklyWalkMins)} mins\/wk` : '', [data.postMealWalkStatus || '', data.postMealWalkDurationMins !== null ? `${data.postMealWalkDurationMins} mins\/walk` : '', data.postMealWalkDelay || ''].filter(Boolean).join(' \u00b7 ') || 'Withheld: Post-meal walking status or duration left blank', rl.postMealWalk],\n                ['Water-Only Fasting Kinetic Phase', wfk.hours !== null ? `${wfk.hours} hrs` : '', wfk.evaluationNote, rl.waterFastPhase],\n                ['Dry Fasting Osmotic Safety Tier', dfs.hours !== null ? `${dfs.hours} hrs` : '', dfs.evaluationNote, rl.dryFastLimit],\n                ['Composite Longevity Index', `${metrics.longevityScore} \/ 100`, metrics.longevityTier, rl.longevityIndex]\n            ];\n\n            document.getElementById('normativeReferenceTableBody').innerHTML = normRows.map(r =&gt; `\n                &lt;tr class=\"hover:bg-slate-50\"&gt;\n                    &lt;td class=\"py-2 px-3 font-semibold text-slate-900\"&gt;${escapeHtml(r[0])}&lt;\/td&gt;\n                    &lt;td class=\"py-2 px-3 font-mono font-bold text-teal-900\"&gt;${escapeHtml(r[1])}&lt;\/td&gt;\n                    &lt;td class=\"py-2 px-3 text-slate-700\"&gt;${escapeHtml(r[2])}&lt;\/td&gt;\n                    &lt;td class=\"py-2 px-3 text-slate-600\"&gt;${escapeHtml(r[3])}&lt;\/td&gt;\n                &lt;\/tr&gt;\n            `).join('');\n\n            \/\/ Section III: Exercise Bioenergetics Summary Cards &amp; Table\n            const exA = metrics.exerciseAnalytics;\n            const hasLowerBodySinkModality = exA.modalityBreakdowns.some(b =&gt; ['squats', 'outcycling', 'statcycling', 'stairs', 'resistance'].includes(b.id));\n            const exCards = [\n                {\n                    title: 'Weekly Training Volume',\n                    val: exA.weeklyTotalDurationMins !== null ? `${Math.round(exA.weeklyTotalDurationMins)} mins\/wk` : '',\n                    sub: exA.weeklyTotalDurationMins !== null ? `Aerobic: ${Math.round(exA.weeklyAerobicMins)}m \u00b7 Resistance\/Mobility: ${Math.round(exA.weeklyResistanceMobilityMins)}m` : 'Blank: Enter session durations in Section 03'\n                },\n                {\n                    title: 'Weekly Metabolic Load &amp; Kcal',\n                    val: exA.weeklyTotalMetMinutes !== null ? `${Math.round(exA.weeklyTotalMetMinutes)} MET-mins\/wk` : '',\n                    sub: exA.weeklyExerciseKcal !== null ? `Estimated Burn: ~${Math.round(exA.weeklyExerciseKcal)} kcal\/week (ACSM equation)` : 'Kcal requires Weight + Modality Duration'\n                },\n                {\n                    title: 'Postprandial Walking Kinetics',\n                    val: exA.postMealWeeklyWalkMins !== null ? `${Math.round(exA.postMealWeeklyWalkMins)} mins\/wk` : (data.postMealWalkStatus || ''),\n                    sub: [data.postMealWalkStatus, data.postMealWalkDurationMins !== null ? `${data.postMealWalkDurationMins} mins\/walk` : '', data.postMealWalkDelay].filter(Boolean).join(' \u00b7 ') || 'Blank: Post-meal walking not specified'\n                },\n                {\n                    title: 'Post-Absorptive \/ Fasted Ratio',\n                    val: exA.timedSessionsCount &gt; 0 ? `${exA.fastedSessionsCount} \/ ${exA.timedSessionsCount} Modalities (\u22653h)` : (data.hoursAfterLastIntake !== null ? `${data.hoursAfterLastIntake} hrs post-kcal` : ''),\n                    sub: exA.timedSessionsCount &gt; 0 ? 'Modalities performed \u22653h after last &gt;0 kcal intake' : 'Blank: Hrs after last &gt;0 kcal intake not specified'\n                },\n                {\n                    title: 'Primary Circadian Window',\n                    val: data.primaryCircadianWindow || '',\n                    sub: data.hoursAfterLastIntake !== null ? `Global Post-Intake Latency: ${data.hoursAfterLastIntake} hrs` : 'Blank: Primary exercise window not specified'\n                },\n                {\n                    title: 'Lower-Body GLUT4 Sink Recruitment',\n                    val: exA.activeCount &gt; 0 ? (hasLowerBodySinkModality ? 'Active Femoral\/Gluteal Load' : 'Upper\/Core\/Mobility Only') : '',\n                    sub: hasLowerBodySinkModality ? 'Includes Squats, Cycling, Stairs, or Heavy Resistance' : 'Blank or no compound lower-extremity modality selected'\n                }\n            ];\n            document.getElementById('exerciseSummaryCardsGrid').innerHTML = exCards.map(c =&gt; `\n                &lt;div class=\"p-3.5 rounded-lg border border-slate-200 bg-slate-50\/70\"&gt;\n                    &lt;span class=\"text-[11px] font-bold uppercase tracking-wider text-teal-800 block\"&gt;${escapeHtml(c.title)}&lt;\/span&gt;\n                    &lt;div class=\"text-base font-bold text-slate-900 mt-0.5 min-h-[1.5rem]\"&gt;${escapeHtml(c.val)}&lt;\/div&gt;\n                    &lt;div class=\"text-[11px] text-slate-600 mt-0.5 leading-snug\"&gt;${escapeHtml(c.sub)}&lt;\/div&gt;\n                &lt;\/div&gt;\n            `).join('');\n\n            document.getElementById('activeExerciseTableBody').innerHTML = exA.modalityBreakdowns.length &gt; 0\n                ? exA.modalityBreakdowns.map(m =&gt; `\n                    &lt;tr class=\"hover:bg-slate-50\"&gt;\n                        &lt;td class=\"py-2 px-3 font-semibold text-slate-900\"&gt;${escapeHtml(m.modality)}${m.metValue !== null ? ` (${m.metValue.toFixed(1)} METs)` : ''}&lt;\/td&gt;\n                        &lt;td class=\"py-2 px-3 text-slate-700\"&gt;${escapeHtml(m.sessionsDisplay)}&lt;\/td&gt;\n                        &lt;td class=\"py-2 px-3 text-slate-700\"&gt;${escapeHtml(m.durationWindowDisplay)}&lt;\/td&gt;\n                        &lt;td class=\"py-2 px-3 font-mono text-slate-800\"&gt;${escapeHtml(m.postIntakeDisplay)}&lt;\/td&gt;\n                        &lt;td class=\"py-2 px-3 font-mono font-semibold text-teal-900\"&gt;${m.weeklyMetMins !== null ? `${Math.round(m.weeklyMetMins)} MET-m (${Math.round(m.weeklyMins)}m)` : ''}&lt;\/td&gt;\n                        &lt;td class=\"py-2 px-3 text-slate-700\"&gt;${m.weeklyKcal !== null ? `&lt;strong&gt;~${Math.round(m.weeklyKcal)} kcal\/wk&lt;\/strong&gt; \u00b7 ` : ''}${escapeHtml(m.substrateState)}&lt;\/td&gt;\n                    &lt;\/tr&gt;\n                `).join('')\n                : `&lt;tr&gt;&lt;td colspan=\"6\" class=\"py-3 px-3 text-slate-500 italic\"&gt;No exercise modalities checked in Section 03. Quantitative cells remain strictly blank.&lt;\/td&gt;&lt;\/tr&gt;`;\n\n            \/\/ Section IV: Active Modality Deep-Dive Cards &amp; 13-Modality Comparative Matrix\n            const activeItems = exA.modalityHealthCatalogue.filter(i =&gt; i.isActive);\n            document.getElementById('activeExerciseImpactsCards').innerHTML = activeItems.length &gt; 0\n                ? activeItems.map(item =&gt; `\n                    &lt;div class=\"p-3.5 rounded-lg border border-teal-200 bg-teal-50\/30 space-y-2\"&gt;\n                        &lt;div class=\"flex flex-wrap items-center justify-between gap-2 border-b border-teal-200\/70 pb-1.5\"&gt;\n                            &lt;span class=\"text-xs font-bold text-teal-950\"&gt;${escapeHtml(item.modality)}&lt;\/span&gt;\n                            &lt;span class=\"text-[11px] font-mono font-semibold text-teal-900 bg-white px-2 py-0.5 rounded border border-teal-200\"&gt;\n                                ${item.computedBreakdown &amp;&amp; item.computedBreakdown.weeklyMetMins !== null ? `${Math.round(item.computedBreakdown.weeklyMetMins)} MET-mins\/wk` : 'Active Modality'}\n                            &lt;\/span&gt;\n                        &lt;\/div&gt;\n                        &lt;div class=\"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-2.5 text-[11px] text-slate-700 leading-relaxed\"&gt;\n                            &lt;div&gt;&lt;strong class=\"text-slate-900 block\"&gt;Cardiovascular Impact:&lt;\/strong&gt; ${escapeHtml(item.cardioImpact)}&lt;\/div&gt;\n                            &lt;div&gt;&lt;strong class=\"text-slate-900 block\"&gt;Metabolic &amp;amp; GLUT4 Impact:&lt;\/strong&gt; ${escapeHtml(item.metabolicImpact)}&lt;\/div&gt;\n                            &lt;div&gt;&lt;strong class=\"text-slate-900 block\"&gt;Musculoskeletal &amp;amp; WTR:&lt;\/strong&gt; ${escapeHtml(item.musculoskeletalImpact)}&lt;\/div&gt;\n                            &lt;div&gt;&lt;strong class=\"text-slate-900 block\"&gt;Recovery &amp;amp; Synergy:&lt;\/strong&gt; ${escapeHtml(item.synergyWithFasting)}&lt;\/div&gt;\n                        &lt;\/div&gt;\n                    &lt;\/div&gt;\n                `).join('')\n                : '';\n\n            document.getElementById('exerciseHealthImpactsMatrixBody').innerHTML = exA.modalityHealthCatalogue.map(item =&gt; `\n                &lt;tr class=\"${item.isActive ? 'bg-teal-50\/40' : 'hover:bg-slate-50'}\"&gt;\n                    &lt;td class=\"py-2 px-3 font-semibold text-slate-900\"&gt;${escapeHtml(item.modality)}&lt;\/td&gt;\n                    &lt;td class=\"py-2 px-3 font-mono text-[11px] ${item.isActive ? 'font-bold text-teal-800' : 'text-slate-400'}\"&gt;${item.isActive ? 'ACTIVE' : 'Blank'}&lt;\/td&gt;\n                    &lt;td class=\"py-2 px-3 text-slate-700\"&gt;${escapeHtml(item.cardioImpact)}&lt;\/td&gt;\n                    &lt;td class=\"py-2 px-3 text-slate-700\"&gt;${escapeHtml(item.metabolicImpact)}&lt;\/td&gt;\n                    &lt;td class=\"py-2 px-3 text-slate-700\"&gt;${escapeHtml(item.musculoskeletalImpact)} &lt;span class=\"text-slate-500\"&gt;[${escapeHtml(item.synergyWithFasting)}]&lt;\/span&gt;&lt;\/td&gt;\n                &lt;\/tr&gt;\n            `).join('');\n\n            \/\/ Section V: Thigh Circumference &amp; WTR Narrative\n            const hasSquats = exA.modalityBreakdowns.some(b =&gt; b.id === 'squats');\n            document.getElementById('thighAnalysisNarrative').innerHTML = `\n                &lt;p&gt;\n                    &lt;strong&gt;Why Standard Military Equations Omit the Thigh vs. Why Longevity Science Includes It:&lt;\/strong&gt; Traditional military body-fat equations (such as the US Navy circumference model) deliberately exclude mid-thigh girth because highly developed quadriceps and hamstring musculature in athletic individuals inflates circumference measurements, causing simple tape equations to misclassify muscular thighs as adiposity. Conversely, contemporary cardiometabolic epidemiology demonstrates that a larger mid-thigh circumference relative to the waist\u2014quantified by a &lt;strong&gt;Waist-to-Thigh Ratio (WTR &amp;lt; 1.50, optimal &amp;lt; 1.45)&lt;\/strong&gt;\u2014is one of the strongest non-invasive predictors of insulin sensitivity and lower all-cause cardiovascular mortality.\n                &lt;\/p&gt;\n                &lt;p&gt;\n                    &lt;strong&gt;Subject Evaluation &amp;amp; Lower-Extremity GLUT4 Sinks:&lt;\/strong&gt; ${\n                        metrics.waistToThighRatio !== null\n                            ? `Your recorded Waist-to-Thigh Ratio is &lt;strong&gt;${metrics.waistToThighRatio.toFixed(2)}&lt;\/strong&gt; (${metrics.wtrInterpretation}), derived from a Waist Girth of &lt;strong&gt;${data.waistCm.toFixed(1)} cm&lt;\/strong&gt; and a Mid-Thigh Girth of &lt;strong&gt;${data.thighCm.toFixed(1)} cm&lt;\/strong&gt;.`\n                            : 'Waist or Mid-Thigh circumference was left blank; your numeric WTR cell is therefore kept strictly blank under the Zero-Defaulting Rule.'\n                    } ${\n                        hasSquats\n                            ? 'Your active inclusion of &lt;strong&gt;Squats&lt;\/strong&gt; directly recruits the vastus lateralis, rectus femoris, and gluteus maximus, expanding peripheral GLUT4 glucose disposal sinks and actively lowering WTR.'\n                            : 'Incorporating compound lower-body loading (such as bodyweight or goblet squats, cycling, and stair ascent) expands femoral myofibrillar cross-sectional area and insulin-independent GLUT4 translocation.'\n                    }\n                &lt;\/p&gt;\n            `;\n\n            \/\/ Section VI: 2024 UK Prolonged Fasting Proteomics &amp; Dry Fasting Dose-Response Narrative\n            document.getElementById('proteomicNarrativeBody').innerHTML = `\n                &lt;p&gt;\n                    &lt;strong&gt;1. Prolonged Water-Only Fasting Proteomics (2024 UK Research \u2014 Pietzke et al., &lt;em&gt;Nature Metabolism&lt;\/em&gt;):&lt;\/strong&gt; High-throughput Olink profiling of ~3,000 plasma proteins across 7-day water-only fasting at Queen Mary University of London and the Francis Crick Institute established that multi-organ systemic proteome remodeling requires a strict &lt;strong&gt;&amp;ge;72-hour (3-day) threshold&lt;\/strong&gt;. During &lt;strong&gt;Phase I (0\u201324h)&lt;\/strong&gt;, hepatic glycogen depletes and insulin\/leptin decline; during &lt;strong&gt;Phase II (24\u201372h)&lt;\/strong&gt;, hepatic HMGCS2 ketogenesis elevates &amp;beta;-hydroxybutyrate (3\u20136 mmol\/L), FGF21 rises, and ULK1\/PINK1-Parkin mitophagy clears damaged mitochondria; and upon crossing &lt;strong&gt;Phase III (&amp;ge;72h to 168h)&lt;\/strong&gt;, &lt;strong&gt;1,044 plasma proteins&lt;\/strong&gt; abruptly reconfigure across all major organs\u2014suppressing pro-inflammatory &lt;strong&gt;SWAP70&lt;\/strong&gt;, remodeling brain perineuronal net &lt;strong&gt;HYOU1 (GRP170) &amp;amp; tenascin-R (TNR)&lt;\/strong&gt;, oxidizing 30\u201350%+ of intrahepatic triglycerides, activating Lgr5+ intestinal stem cells, and preserving core skeletal myofibrillar protein.\n                &lt;\/p&gt;\n                &lt;p&gt;\n                    &lt;strong&gt;Subject Water-Fasting Evaluation:&lt;\/strong&gt; ${wfk.evaluationNote}.\n                &lt;\/p&gt;\n                &lt;p&gt;\n                    &lt;strong&gt;2. Dry Fasting Dose-Response Kinetics (&amp;le;16h Adaptive Window vs. &amp;gt;24\u201372h+ Hypertonic Hazard):&lt;\/strong&gt; While intermittent diurnal dry fasting (&lt;strong&gt;&amp;le;16 hours&lt;\/strong&gt;) induces mild, reversible tonicity that upregulates erythroid &lt;strong&gt;Nrf2&lt;\/strong&gt; antioxidant enzymes and &lt;strong&gt;NFAT5 (TonEBP)&lt;\/strong&gt; osmoprotective chaperones without renal compromise, extending dry fasting beyond &lt;strong&gt;24 to 72+ hours&lt;\/strong&gt; creates an inescapable biophysical deficit (~300\u2013400 mL\/day endogenous fat-derived metabolic water vs. ~1,200\u20131,500 mL\/day obligatory insensible + renal water loss). This drives hypernatremia, vasopressin-induced renal medullary polyol toxicity, competitive &lt;strong&gt;URAT1&lt;\/strong&gt; uric acid crystallization, and pre-renal acute kidney injury (AKI) risk. &lt;strong&gt;Subject Dry-Fasting Evaluation:&lt;\/strong&gt; ${dfs.evaluationNote}.\n                &lt;\/p&gt;\n            `;\n\n            \/\/ Section VII: Bidirectional Pathological Matrix\n            document.getElementById('pathologyCrossInputCards').innerHTML = metrics.pathologyInteractions.crossInputCards.map(c =&gt; `\n                &lt;div class=\"p-3.5 rounded-lg border border-slate-200 bg-slate-50\/70 space-y-1.5 text-xs\"&gt;\n                    &lt;div class=\"font-bold text-teal-900\"&gt;${escapeHtml(c.domain)}&lt;\/div&gt;\n                    &lt;p class=\"text-slate-700\"&gt;&lt;strong&gt;Impact of Inputs on Risk:&lt;\/strong&gt; ${escapeHtml(c.impactTo)}&lt;\/p&gt;\n                    &lt;p class=\"text-slate-700\"&gt;&lt;strong&gt;Impact of Condition on Biomarkers:&lt;\/strong&gt; ${escapeHtml(c.impactFrom)}&lt;\/p&gt;\n                &lt;\/div&gt;\n            `).join('');\n\n            document.getElementById('pathologyInteractionMatrixBody').innerHTML = metrics.pathologyInteractions.conditionMatrix.map(c =&gt; `\n                &lt;tr class=\"${c.isActive ? 'bg-amber-50\/70' : 'hover:bg-slate-50'}\"&gt;\n                    &lt;td class=\"py-2 px-3 font-semibold text-slate-900\"&gt;${escapeHtml(c.cond)}&lt;\/td&gt;\n                    &lt;td class=\"py-2 px-3 font-mono text-[11px] ${c.isActive ? 'font-bold text-amber-900' : 'text-slate-400'}\"&gt;${c.isActive ? 'REPORTED' : 'Blank'}&lt;\/td&gt;\n                    &lt;td class=\"py-2 px-3 text-slate-700\"&gt;${escapeHtml(c.impactTo)}&lt;\/td&gt;\n                    &lt;td class=\"py-2 px-3 text-slate-700\"&gt;${escapeHtml(c.impactFrom)}&lt;\/td&gt;\n                &lt;\/tr&gt;\n            `).join('');\n\n            \/\/ Personalized Risk Warnings\n            document.getElementById('riskWarningsContainer').innerHTML = metrics.riskWarnings.map(w =&gt; `\n                &lt;div class=\"flex items-start gap-2\"&gt;\n                    &lt;span class=\"font-bold text-amber-900 shrink-0\"&gt;&amp;bull;&lt;\/span&gt;\n                    &lt;p&gt;${escapeHtml(w)}&lt;\/p&gt;\n                &lt;\/div&gt;\n            `).join('');\n\n            \/\/ Section VIII: Dependency Audit Table\n            document.getElementById('dependencyAuditTableBody').innerHTML = metrics.dependencyAuditLog.map(a =&gt; `\n                &lt;tr class=\"hover:bg-slate-50\"&gt;\n                    &lt;td class=\"py-2 px-3 font-semibold text-slate-900\"&gt;${escapeHtml(a.formulaName)}&lt;\/td&gt;\n                    &lt;td class=\"py-2 px-3 text-slate-600\"&gt;${escapeHtml(a.requiredVars)}&lt;\/td&gt;\n                    &lt;td class=\"py-2 px-3 font-mono text-[11px] ${a.status === 'Computed' ? 'font-bold text-teal-800' : 'text-amber-800'}\"&gt;${escapeHtml(a.status)}&lt;\/td&gt;\n                    &lt;td class=\"py-2 px-3 text-slate-700\"&gt;${escapeHtml(a.handlingNote)}&lt;\/td&gt;\n                &lt;\/tr&gt;\n            `).join('');\n\n            APP_STATE.lastAssessment = {\n                referenceId: refId,\n                timestamp: nowStr,\n                isSample: isSampleSubject,\n                data,\n                metrics\n            };\n\n            if (shouldScroll) {\n                reportSection.scrollIntoView({ behavior: 'smooth', block: 'start' });\n            }\n        }\n\n        function sanitizePdfText(input) {\n            if (input === null || input === undefined) return '';\n            return String(input)\n                .replace(\/&amp;amp;\/g, '&amp;')\n                .replace(\/&amp;lt;\/g, '&lt;')\n                .replace(\/&amp;gt;\/g, '&gt;')\n                .replace(\/&amp;ge;\/g, '&gt;=')\n                .replace(\/&amp;le;\/g, '&lt;=')\n                .replace(\/&amp;beta;\/g, 'beta')\n                .replace(\/&amp;alpha;\/g, 'alpha')\n                .replace(\/&amp;delta;\/g, 'delta')\n                .replace(\/\\u00A0\/g, ' ')\n                .replace(\/[\u2019\u2018]\/g, \"'\")\n                .replace(\/[\u201c\u201d]\/g, '\"')\n                .replace(\/\u2026\/g, '...')\n                .replace(\/\u2265\/g, '&gt;=')\n                .replace(\/\u2264\/g, '&lt;=')\n                .replace(\/\u2192\/g, '-&gt;')\n                .replace(\/\u2194\/g, '&lt;-&gt;')\n                .replace(\/\u2248\/g, '~')\n                .replace(\/\u00d7\/g, 'x')\n                .replace(\/\u0394\/g, 'Delta ')\n                .replace(\/\u2032\/g, \"'\")\n                .replace(\/\u03b2\/g, 'beta')\n                .replace(\/\u03b1\/g, 'alpha')\n                .replace(\/\u03b4\/g, 'delta')\n                .replace(\/\u03b5\/g, 'epsilon')\n                .replace(\/\u03b8\/g, 'theta')\n                .replace(\/\u00b5\/g, 'u')\n                .replace(\/\u00b0\/g, ' deg')\n                .replace(\/\u207a\/g, '+')\n                .replace(\/\u207b\/g, '-')\n                .replace(\/\u00b2\/g, '^2')\n                .replace(\/\u2082\/g, '2')\n                .replace(\/\u2083\/g, '3')\n                .replace(\/\u2084\/g, '4')\n                .replace(\/\u2013\/g, '-')\n                .replace(\/\u2014\/g, ' - ')\n                .replace(\/\u00b7\/g, '|')\n                .replace(\/[\u2022\u25aa]\/g, '-');\n        }\n\n        function sanitizeTableRows(rows) {\n            return rows.map(row =&gt; row.map(cell =&gt; sanitizePdfText(cell)));\n        }\n\n        function syncAllContactFields(sourceEmail, sourceWhatsapp) {\n            const emailIds = ['userEmail', 'sec6UserEmail', 'hubUserEmail'];\n            const whatsappIds = ['userWhatsapp', 'sec6UserWhatsapp', 'hubUserWhatsapp'];\n\n            if (sourceEmail !== undefined &amp;&amp; sourceEmail !== null) {\n                emailIds.forEach(id =&gt; {\n                    const el = document.getElementById(id);\n                    if (el &amp;&amp; el.value !== sourceEmail) el.value = sourceEmail;\n                });\n            }\n            if (sourceWhatsapp !== undefined &amp;&amp; sourceWhatsapp !== null) {\n                whatsappIds.forEach(id =&gt; {\n                    const el = document.getElementById(id);\n                    if (el &amp;&amp; el.value !== sourceWhatsapp) el.value = sourceWhatsapp;\n                });\n            }\n        }\n\n        function validateResearchContactRequirements(preferredFocusSection = 'sec6') {\n            const alertEl = document.getElementById('validationAlert');\n            const emailVal = (document.getElementById('userEmail')?.value || document.getElementById('sec6UserEmail')?.value || document.getElementById('hubUserEmail')?.value || '').trim();\n            const whatsappVal = (document.getElementById('userWhatsapp')?.value || document.getElementById('sec6UserWhatsapp')?.value || document.getElementById('hubUserWhatsapp')?.value || '').trim();\n\n            \/\/ Keep all three locations synchronized\n            syncAllContactFields(emailVal, whatsappVal);\n\n            const isValidEmail = \/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$\/.test(emailVal);\n            const whatsappDigits = whatsappVal.replace(\/[^\\d]\/g, '');\n            const isValidWhatsapp = whatsappDigits.length &gt;= 7;\n\n            if (!isValidEmail || !isValidWhatsapp) {\n                const missingItems = [];\n                if (!isValidEmail) missingItems.push('a valid Email Address');\n                if (!isValidWhatsapp) missingItems.push('a valid WhatsApp Number (at least 7 digits)');\n\n                const errMsg = `Mandatory Contact Requirement: To send your report to our Research Desk, please provide ${missingItems.join(' and ')} in Section 06 or Section 01 (or uncheck the Research Contribution Consent box in Section 06 for private local calculation only).`;\n                if (alertEl) {\n                    alertEl.textContent = errMsg;\n                    alertEl.classList.remove('hidden');\n                }\n\n                const statusEl = document.getElementById('dispatchStatusBanner');\n                const hubFb = document.getElementById('hubDispatchFeedback');\n                if (statusEl) statusEl.textContent = errMsg;\n                if (hubFb) hubFb.textContent = errMsg;\n\n                const targetEmailEl = preferredFocusSection === 'hub'\n                    ? document.getElementById('hubUserEmail')\n                    : (document.getElementById('sec6UserEmail') || document.getElementById('userEmail'));\n                const targetWhatsappEl = preferredFocusSection === 'hub'\n                    ? document.getElementById('hubUserWhatsapp')\n                    : (document.getElementById('sec6UserWhatsapp') || document.getElementById('userWhatsapp'));\n\n                if (!isValidEmail &amp;&amp; targetEmailEl) {\n                    targetEmailEl.focus();\n                    targetEmailEl.scrollIntoView({ behavior: 'smooth', block: 'center' });\n                } else if (!isValidWhatsapp &amp;&amp; targetWhatsappEl) {\n                    targetWhatsappEl.focus();\n                    targetWhatsappEl.scrollIntoView({ behavior: 'smooth', block: 'center' });\n                }\n                return false;\n            }\n\n            if (alertEl) alertEl.classList.add('hidden');\n            return true;\n        }\n\n        function syncContactRequiredBadges() {\n            const consentChecked = document.getElementById('autoDispatchToggle')?.checked;\n            ['emailReqBadge', 'whatsappReqBadge', 'sec6EmailReqBadge', 'sec6WhatsappReqBadge'].forEach(id =&gt; {\n                const badge = document.getElementById(id);\n                if (badge) badge.classList.toggle('hidden', !consentChecked);\n            });\n            ['userEmail', 'userWhatsapp', 'sec6UserEmail', 'sec6UserWhatsapp'].forEach(id =&gt; {\n                const el = document.getElementById(id);\n                if (el) el.required = Boolean(consentChecked);\n            });\n        }\n\n        function generateOfficialA4Pdf() {\n            const statusEl = document.getElementById('dispatchStatusBanner');\n            if (!APP_STATE.lastAssessment) {\n                if (statusEl) statusEl.textContent = 'Please click \"Calculate &amp; Generate Assessment\" first to generate your report before exporting to A4 PDF.';\n                return;\n            }\n            if (!window.jspdf || !window.jspdf.jsPDF) {\n                if (statusEl) statusEl.textContent = 'PDF Engine Notice: jsPDF library is still loading or blocked by network settings. Please use browser Print (Ctrl\/Cmd + P) to save as A4 PDF.';\n                return;\n            }\n            \/\/ Refresh baseline data in-place so any Email\/Mobile\/WhatsApp typed in Section IX after calculation is included in the PDF\n            const latestData = collectFormInputs();\n            if (latestData.fullName) {\n                const latestMetrics = executePhysiologicalCalculations(latestData);\n                renderReportUI(latestData, latestMetrics, false);\n            }\n            const { referenceId, timestamp, data, metrics } = APP_STATE.lastAssessment;\n            const { jsPDF } = window.jspdf;\n\n            const doc = new jsPDF({ orientation: 'portrait', unit: 'mm', format: 'a4' });\n            const pageWidth = 210;\n            const pageHeight = 297;\n            const margin = 15;\n            const usableWidth = pageWidth - margin * 2; \/\/ 180mm\n            let cursorY = 22;\n\n            const ensureSpace = (neededMm) =&gt; {\n                if (cursorY + neededMm &gt; pageHeight - 20) {\n                    doc.addPage();\n                    cursorY = 22;\n                }\n            };\n\n            const printSectionHeading = (titleText) =&gt; {\n                ensureSpace(12);\n                cursorY += 2;\n                doc.setFont('helvetica', 'bold');\n                doc.setFontSize(9.2);\n                doc.setTextColor(15, 118, 110);\n                const headingLines = doc.splitTextToSize(sanitizePdfText(titleText), usableWidth);\n                headingLines.forEach(line =&gt; {\n                    doc.text(line, margin, cursorY);\n                    cursorY += 4.3;\n                });\n                cursorY += 1;\n            };\n\n            const printParagraphSection = (titleText, paragraphs) =&gt; {\n                printSectionHeading(titleText);\n                doc.setFont('helvetica', 'normal');\n                doc.setFontSize(8.0);\n                doc.setTextColor(51, 65, 85);\n\n                paragraphs.forEach(p =&gt; {\n                    const cleanText = sanitizePdfText(p || '').replace(\/\\s+\/g, ' ').trim();\n                    if (!cleanText) return;\n                    const lines = doc.splitTextToSize(cleanText, usableWidth);\n                    ensureSpace(lines.length * 4.1 + 3);\n                    lines.forEach(line =&gt; {\n                        doc.text(line, margin, cursorY);\n                        cursorY += 4.0;\n                    });\n                    cursorY += 2.2;\n                });\n                cursorY += 1.5;\n            };\n\n            \/\/ Title Banner\n            doc.setFillColor(15, 118, 110);\n            doc.rect(margin, cursorY, usableWidth, 17, 'F');\n            doc.setFont('helvetica', 'bold');\n            doc.setFontSize(10.2);\n            doc.setTextColor(255, 255, 255);\n            doc.text('PHYSIOLOGICAL, ANTHROPOMETRIC, FASTING &amp; LONGEVITY DOSSIER', margin + 4, cursorY + 5.2);\n            doc.setFontSize(7.1);\n            doc.setFont('helvetica', 'bold');\n            doc.setTextColor(204, 251, 241);\n            doc.text('QMUL PHURI 2024 \/ US Navy \/ Framingham \/ Evidence-Based Anthropometry, Bone Index (OSTA), &amp; 2024 QMUL (Nature Metabolism) Fasting Models', margin + 4, cursorY + 10.0);\n            doc.setFontSize(7.6);\n            doc.setFont('helvetica', 'normal');\n            doc.setTextColor(255, 255, 255);\n            const pdfSubjLabel = APP_STATE.lastAssessment.isSample ? `${data.fullName} [SAMPLE \/ DEMO PROFILE]` : data.fullName;\n            doc.text(sanitizePdfText(`Subject: ${pdfSubjLabel}   |   Protocol ID: ${referenceId}   |   Generated: ${timestamp}`), margin + 4, cursorY + 14.8);\n            cursorY += 21;\n\n            \/\/ Sample Profile &amp; Omitted Fields Notice in PDF\n            const statusNotices = [];\n            if (APP_STATE.lastAssessment.isSample) {\n                statusNotices.push(`SAMPLE PROFILE DATA NOTICE: This dossier was generated using pre-populated demonstration data (${data.fullName}). All scores and evaluations reflect this sample profile rather than a real participant, and automated research transmission is disabled.`);\n            }\n            if (data.omittedInputsList &amp;&amp; data.omittedInputsList.length &gt; 0) {\n                statusNotices.push(`OMITTED FIELDS NOTICE (${data.omittedInputsList.length} Field(s) Left Blank): The following inputs were left empty: ${data.omittedInputsList.join(', ')}. Under the strict Zero-Defaulting Protocol, no synthetic values were substituted; dependent indices remain blank and are itemized in Section VI.`);\n            } else {\n                statusNotices.push('COMPLETE DATA VERIFICATION: All core demographic, anthropometric, autonomic, and lifestyle fields were populated.');\n            }\n            printParagraphSection('DATA COMPLETENESS &amp; PROFILE STATUS NOTICE', statusNotices);\n\n            \/\/ Section I: Baseline Input Summary Table\n            printSectionHeading('I. SUBJECT BASELINE &amp; RECORDED INPUTS (ZERO-DEFAULTING PROTOCOL)');\n\n            doc.autoTable({\n                startY: cursorY,\n                margin: { top: 22, bottom: 20, left: margin, right: margin },\n                rowPageBreak: 'avoid',\n                theme: 'grid',\n                styles: { font: 'helvetica', fontSize: 7.4, cellPadding: 1.8, textColor: [30, 41, 59], overflow: 'linebreak' },\n                headStyles: { fillColor: [51, 65, 85], textColor: [255, 255, 255], fontStyle: 'bold' },\n                columnStyles: {\n                    0: { cellWidth: 40, fontStyle: 'bold' },\n                    1: { cellWidth: 50 },\n                    2: { cellWidth: 40, fontStyle: 'bold' },\n                    3: { cellWidth: 50 }\n                },\n                head: [['Parameter', 'Recorded Input', 'Parameter', 'Recorded Input']],\n                body: sanitizeTableRows([\n                    ['Full Name', data.fullName, 'Biological Sex', data.biologicalSex || ''],\n                    ['Email Address', data.userEmail || '', 'Mobile \/ WhatsApp', [data.userMobile ? `Mob: ${data.userMobile}` : '', data.userWhatsapp ? `WA: ${data.userWhatsapp}` : ''].filter(Boolean).join(' | ')],\n                    ['Age (years)', data.ageYears !== null ? `${data.ageYears}` : '', 'Dietary Profile', data.dietaryProfile || ''],\n                    ['Total Weight', fmt(data.weightKg, 1, ' kg'), 'Standing Height', fmt(data.heightCm, 1, ' cm')],\n                    ['Waist \/ Hip Girth', [fmt(data.waistCm, 1, ' cm'), fmt(data.hipCm, 1, ' cm')].filter(Boolean).join(' \/ '), 'Mid-Thigh \/ Wrist \/ Neck', [fmt(data.thighCm, 1, ' cm'), fmt(data.wristCm, 1, ' cm'), fmt(data.neckCm, 1, ' cm')].filter(Boolean).join(' \/ ')],\n                    ['Wakeful RHR \/ SHR', [data.rhr !== null ? `${data.rhr} bpm` : '', data.shr !== null ? `${data.shr} bpm` : ''].filter(Boolean).join(' \/ '), 'Meals per Day (&gt;0 kcal)', data.mealsPerDay !== null ? `${data.mealsPerDay}` : ''],\n                    ['Primary Exercise Window', data.primaryCircadianWindow || '', 'Hrs After Last Meal (&gt;0 kcal)', data.hoursAfterLastIntake !== null ? `${data.hoursAfterLastIntake} hrs` : ''],\n                    ['Post-Meal Walk Status', [data.postMealWalkStatus || '', data.postMealWalkDurationMins !== null ? `${data.postMealWalkDurationMins} mins` : '', data.postMealWalkDelay || ''].filter(Boolean).join(' | '), 'Reported Pathologies', data.pathologies.length &gt; 0 ? data.pathologies.join(', ') : ''],\n                    ['Water Fasting', data.waterFast.enabled ? `Yes (${data.waterFast.frequency || ''} ${data.waterFast.durationHours !== null ? data.waterFast.durationHours + 'h' : ''})`.trim() : '', 'Dry Fasting', data.dryFast.enabled ? `Yes (${data.dryFast.frequency || ''} ${data.dryFast.durationHours !== null ? data.dryFast.durationHours + 'h' : ''})`.trim() : '']\n                ])\n            });\n            cursorY = doc.lastAutoTable.finalY + 5;\n\n            \/\/ Section II: Body Composition, Vitals &amp; Normative Reference Limits\n            printSectionHeading('II. BODY COMPOSITION, VITALS &amp; NORMATIVE REFERENCE LIMITS');\n\n            const rl = metrics.referenceLimits;\n            const wfk = metrics.waterFastKinetics;\n            const dfs = metrics.dryFastSafety;\n            doc.autoTable({\n                startY: cursorY,\n                margin: { top: 22, bottom: 20, left: margin, right: margin },\n                rowPageBreak: 'avoid',\n                theme: 'grid',\n                styles: { font: 'helvetica', fontSize: 7.2, cellPadding: 1.7, textColor: [30, 41, 59], overflow: 'linebreak' },\n                headStyles: { fillColor: [15, 118, 110], textColor: [255, 255, 255], fontStyle: 'bold' },\n                columnStyles: {\n                    0: { cellWidth: 42, fontStyle: 'bold' },\n                    1: { cellWidth: 28 },\n                    2: { cellWidth: 50 },\n                    3: { cellWidth: 60 }\n                },\n                head: [['Biometric Parameter', 'Result', 'Subject Evaluation \/ Omission Note', 'Standard Reference Limits']],\n                body: sanitizeTableRows([\n                    ['Quetelet BMI', fmt(metrics.bmi, 1, ' kg\/m^2'), metrics.bmi !== null ? metrics.bmiCategory : 'Omitted: Requires Weight &amp; Height', rl.bmi],\n                    ['Consensus Body Fat %', fmt(metrics.consensusBodyFatPct, 1, '%'), metrics.consensusBodyFatPct !== null ? `${metrics.bodyFatCategory} (${metrics.bodyFatMethodNote})` : 'Omitted: Requires Sex, Height &amp; Waist', rl.bodyFat],\n                    ['Lean Body Mass (LBM)', metrics.leanBodyMassKg !== null ? `${metrics.leanBodyMassKg.toFixed(1)} kg (${metrics.lbmPct.toFixed(1)}%)` : '', metrics.fatMassKg !== null ? `Fat Mass: ${metrics.fatMassKg.toFixed(1)} kg` : 'Omitted: Requires Weight &amp; BF%', rl.lbm],\n                    ['Bone Mineral Proxy', fmt(metrics.boneMineralMassKg, 2, ' kg'), metrics.skeletalFrameSize || 'Omitted: Requires Height &amp; Wrist', rl.boneMass],\n                    ['Waist-to-Hip (WHR)', fmt(metrics.waistToHipRatio, 2, ''), metrics.whrRiskCategory || 'Omitted: Requires Waist &amp; Hip', rl.whr],\n                    ['Waist-to-Thigh (WTR)', fmt(metrics.waistToThighRatio, 2, ''), metrics.wtrInterpretation || 'Omitted: Requires Waist &amp; Thigh', rl.wtr],\n                    ['Waist-to-Height (WHtR)', fmt(metrics.waistToHeightRatio, 2, ''), metrics.whtrCategory || 'Omitted: Requires Waist &amp; Height', rl.whtr],\n                    ['Wakeful RHR', data.rhr !== null ? `${data.rhr} bpm` : '', metrics.rhrCategory || 'Omitted: Wakeful RHR left blank', rl.rhr],\n                    ['Sleeping SHR', data.shr !== null ? `${data.shr} bpm` : '', metrics.shrCategory || 'Omitted: Sleeping SHR left blank', rl.shr],\n                    ['Nocturnal Vagal Dip', formatNocturnalDip(metrics.rhrShrDelta, metrics.rhrShrDipPct), metrics.autonomicStatus || 'Omitted: Requires RHR &amp; SHR', rl.vagalDip],\n                    ['Weekly Exercise Load', metrics.exerciseAnalytics.weeklyTotalMetMinutes !== null ? `${Math.round(metrics.exerciseAnalytics.weeklyTotalMetMinutes)} MET-m` : '', metrics.exerciseAnalytics.weeklyTotalDurationMins !== null ? `${Math.round(metrics.exerciseAnalytics.weeklyTotalDurationMins)} mins\/wk` : 'Omitted: Requires Modality + Duration', rl.weeklyMetMinutes],\n                    ['Postprandial Walk Load', metrics.exerciseAnalytics.postMealWeeklyWalkMins !== null ? `${Math.round(metrics.exerciseAnalytics.postMealWeeklyWalkMins)} mins\/wk` : '', [data.postMealWalkStatus || '', data.postMealWalkDelay || ''].filter(Boolean).join(' | ') || 'Omitted: Post-meal walk not active', rl.postMealWalk],\n                    ['Water Fast Proteomic Phase', wfk.hours !== null ? `${wfk.hours} hrs` : '', wfk.evaluationNote, rl.waterFastPhase],\n                    ['Dry Fasting Safety Limit', dfs.hours !== null ? `${dfs.hours} hrs` : '', dfs.evaluationNote, rl.dryFastLimit],\n                    ['Composite Longevity', `${metrics.longevityScore} \/ 100`, metrics.longevityTier, rl.longevityIndex]\n                ])\n            });\n            cursorY = doc.lastAutoTable.finalY + 5;\n\n            \/\/ Section III: Active Exercise Bioenergetics Table\n            printSectionHeading('III. ACTIVE EXERCISE BIOENERGETICS &amp; POST-INTAKE SUBSTRATE TIMING');\n\n            const pdfExerciseRows = metrics.exerciseAnalytics.modalityBreakdowns.length &gt; 0\n                ? metrics.exerciseAnalytics.modalityBreakdowns.map(m =&gt; [\n                    `${m.modality}${m.metValue !== null ? ' (' + m.metValue.toFixed(1) + ')' : ''}`,\n                    m.sessionsDisplay,\n                    m.durationWindowDisplay,\n                    m.postIntakeDisplay,\n                    m.weeklyMins !== null ? `${Math.round(m.weeklyMins)}m (${Math.round(m.weeklyMetMins)} MET-m)` : '',\n                    `${m.weeklyKcal !== null ? Math.round(m.weeklyKcal) + ' kcal\/wk | ' : ''}${m.substrateState}`\n                ])\n                : [['No exercise modalities selected in Section 03', '', '', '', '', 'All quantitative cells remain strictly blank under Zero-Defaulting protocol']];\n\n            doc.autoTable({\n                startY: cursorY,\n                margin: { top: 22, bottom: 20, left: margin, right: margin },\n                rowPageBreak: 'avoid',\n                theme: 'grid',\n                styles: { font: 'helvetica', fontSize: 7.0, cellPadding: 1.6, textColor: [30, 41, 59], overflow: 'linebreak' },\n                headStyles: { fillColor: [15, 118, 110], textColor: [255, 255, 255], fontStyle: 'bold' },\n                columnStyles: {\n                    0: { cellWidth: 36, fontStyle: 'bold' },\n                    1: { cellWidth: 20 },\n                    2: { cellWidth: 34 },\n                    3: { cellWidth: 18 },\n                    4: { cellWidth: 26 },\n                    5: { cellWidth: 46 }\n                },\n                head: [['Modality (~METs)', 'Sess\/Wk', 'Duration &amp; Window', 'Post-Kcal', 'Weekly METs', 'Kcal &amp; Substrate State']],\n                body: sanitizeTableRows(pdfExerciseRows)\n            });\n            cursorY = doc.lastAutoTable.finalY + 5;\n\n            \/\/ Section IV: 13-Modality Exercise Physiology Matrix\n            printSectionHeading('IV. 13-MODALITY EXERCISE PHYSIOLOGY &amp; ORGAN-SYSTEM HEALTH IMPACTS MATRIX');\n\n            doc.autoTable({\n                startY: cursorY,\n                margin: { top: 22, bottom: 20, left: margin, right: margin },\n                rowPageBreak: 'avoid',\n                theme: 'grid',\n                styles: { font: 'helvetica', fontSize: 6.7, cellPadding: 1.5, textColor: [30, 41, 59], overflow: 'linebreak' },\n                headStyles: { fillColor: [51, 65, 85], textColor: [255, 255, 255], fontStyle: 'bold' },\n                columnStyles: {\n                    0: { cellWidth: 28, fontStyle: 'bold' },\n                    1: { cellWidth: 14 },\n                    2: { cellWidth: 46 },\n                    3: { cellWidth: 46 },\n                    4: { cellWidth: 46 }\n                },\n                head: [['Exercise Modality', 'Status', 'Cardiovascular &amp; Hemodynamic Impact', 'Metabolic, Myokine &amp; GLUT4 Impact', 'Musculoskeletal, WTR &amp; Recovery Synergy']],\n                body: sanitizeTableRows((metrics.exerciseAnalytics.modalityHealthCatalogue || []).map(item =&gt; [\n                    item.modality,\n                    item.isActive ? 'ACTIVE' : 'Blank',\n                    item.cardioImpact,\n                    item.metabolicImpact,\n                    `${item.musculoskeletalImpact} [${item.synergyWithFasting}]`\n                ]))\n            });\n            cursorY = doc.lastAutoTable.finalY + 5;\n\n            \/\/ Section V: Bidirectional Pathological Interaction Matrix\n            printSectionHeading('V. BIDIRECTIONAL PATHOLOGICAL &amp; METABOLIC HISTORY INTERACTION MATRIX');\n\n            doc.autoTable({\n                startY: cursorY,\n                margin: { top: 22, bottom: 20, left: margin, right: margin },\n                rowPageBreak: 'avoid',\n                theme: 'grid',\n                styles: { font: 'helvetica', fontSize: 6.9, cellPadding: 1.6, textColor: [30, 41, 59], overflow: 'linebreak' },\n                headStyles: { fillColor: [15, 118, 110], textColor: [255, 255, 255], fontStyle: 'bold' },\n                columnStyles: {\n                    0: { cellWidth: 44, fontStyle: 'bold' },\n                    1: { cellWidth: 68 },\n                    2: { cellWidth: 68 }\n                },\n                head: [['Cross-Input Physiological Domain', 'Impact of Recorded Inputs on Risk', 'Impact of Pathological Status on Biomarkers']],\n                body: sanitizeTableRows(metrics.pathologyInteractions.crossInputCards.map(c =&gt; [\n                    c.domain,\n                    c.impactTo,\n                    c.impactFrom\n                ]))\n            });\n            cursorY = doc.lastAutoTable.finalY + 4;\n\n            doc.autoTable({\n                startY: cursorY,\n                margin: { top: 22, bottom: 20, left: margin, right: margin },\n                rowPageBreak: 'avoid',\n                theme: 'grid',\n                styles: { font: 'helvetica', fontSize: 6.9, cellPadding: 1.6, textColor: [30, 41, 59], overflow: 'linebreak' },\n                headStyles: { fillColor: [71, 85, 105], textColor: [255, 255, 255], fontStyle: 'bold' },\n                columnStyles: {\n                    0: { cellWidth: 34, fontStyle: 'bold' },\n                    1: { cellWidth: 18 },\n                    2: { cellWidth: 64 },\n                    3: { cellWidth: 64 }\n                },\n                head: [['Condition', 'Status', 'Impact of Inputs on Condition', 'Impact of Condition on Biomarkers &amp; Safety']],\n                body: sanitizeTableRows(metrics.pathologyInteractions.conditionMatrix.map(c =&gt; [\n                    c.cond,\n                    c.isActive ? 'REPORTED' : 'Blank',\n                    c.impactTo,\n                    c.impactFrom\n                ]))\n            });\n            cursorY = doc.lastAutoTable.finalY + 5;\n\n            \/\/ Section VI: Dependency Audit Table\n            printSectionHeading('VI. CALCULATION DEPENDENCY &amp; UNANSWERED PARAMETER AUDIT PROTOCOL');\n\n            doc.autoTable({\n                startY: cursorY,\n                margin: { top: 22, bottom: 20, left: margin, right: margin },\n                rowPageBreak: 'avoid',\n                theme: 'grid',\n                styles: { font: 'helvetica', fontSize: 7.0, cellPadding: 1.6, textColor: [30, 41, 59], overflow: 'linebreak' },\n                headStyles: { fillColor: [51, 65, 85], textColor: [255, 255, 255], fontStyle: 'bold' },\n                columnStyles: {\n                    0: { cellWidth: 46, fontStyle: 'bold' },\n                    1: { cellWidth: 44 },\n                    2: { cellWidth: 26 },\n                    3: { cellWidth: 64 }\n                },\n                head: [['Mathematical Equation \/ Index', 'Required Prerequisite Inputs', 'Status', 'Zero-Defaulting Attribution']],\n                body: sanitizeTableRows(metrics.dependencyAuditLog.map(a =&gt; [a.formulaName, a.requiredVars, a.status, a.handlingNote]))\n            });\n            cursorY = doc.lastAutoTable.finalY + 5;\n\n            \/\/ Narrative Sections (Line-by-Line Anti-Overlap Rendering)\n            const thighParagraphs = Array.from(document.querySelectorAll('#thighAnalysisNarrative p')).map(p =&gt; p.textContent);\n            printParagraphSection('VII. THIGH CIRCUMFERENCE, WTR &amp; LOWER-EXTREMITY GLUT4 SINK ANALYSIS', thighParagraphs);\n\n            const proteomicParagraphs = Array.from(document.querySelectorAll('#proteomicNarrativeBody p')).map(p =&gt; p.textContent);\n            printParagraphSection('VIII. CELLULAR &amp; PROTEOMIC FASTING NARRATIVE &amp; DRY FASTING DOSE-RESPONSE THRESHOLDS', proteomicParagraphs);\n\n            \/\/ Section VIII-B: 24h to 7-Day Water-Only Fasting Multi-Organ Reference Matrix in PDF\n            printSectionHeading('VIII-B. 24-HOUR TO 7-DAY WATER-ONLY FASTING MULTI-ORGAN PHYSIOLOGY MATRIX');\n            doc.autoTable({\n                startY: cursorY,\n                margin: { top: 22, bottom: 20, left: margin, right: margin },\n                rowPageBreak: 'avoid',\n                theme: 'grid',\n                styles: { font: 'helvetica', fontSize: 6.8, cellPadding: 1.5, textColor: [30, 41, 59], overflow: 'linebreak' },\n                headStyles: { fillColor: [15, 118, 110], textColor: [255, 255, 255], fontStyle: 'bold' },\n                columnStyles: {\n                    0: { cellWidth: 46, fontStyle: 'bold' },\n                    1: { cellWidth: 134 }\n                },\n                head: [['Organ \/ Physiological System', '24-Hour to 7-Day (168h) Water-Only Fasting Mechanism &amp; Pathophysiological Impact']],\n                body: sanitizeTableRows([\n                    ['1. Ketone Generation (beta-HB) &amp; Epigenetics', 'CPT-1 and HMGCS2 generate acetoacetate and beta-hydroxybutyrate (reaching 4.0-6.5 mmol\/L by Days 4-7). Beta-HB binds HCAR2 (GPR109A), inhibits Class I HDAC1\/2\/3 to upregulate FOXO3a and MnSOD, and suppresses the NLRP3 inflammasome (IL-1beta, IL-18).'],\n                    ['2. Brain &amp; Neuro-Detoxification', 'MCT1\/MCT2 transport ketones across the blood-brain barrier, elevating BDNF and GABA stability. Activates neuronal macroautophagy, LAMP2A chaperone-mediated autophagy (clearing hyperphosphorylated tau, amyloid-beta, and alpha-synuclein), AQP4 glymphatic clearance, and HYOU1\/TNR perineuronal net remodeling.'],\n                    ['3. Liver &amp; Fatty Liver (NAFLD\/MASLD)', 'Silences SREBP-1c and ChREBP de novo lipogenesis while activating PPAR-alpha and hepatokine FGF21. Oxidizes 30-50%+ of intrahepatic triglyceride droplets across 24h-7d fasts, clears lipotoxic DAGs, and lowers circulating PCSK9 and VLDL export.'],\n                    ['4. Digestive Organs, Stem Cells &amp; Gut', 'Grants secretory rest to stomach, exocrine pancreas, and biliary tree while phase III migrating motor complexes (MMCs) sweep the bowel. Fatty acid oxidation activates PPAR-delta in Lgr5+ intestinal stem cells, tightens ZO-1 junctions, and enriches Akkermansia muciniphila.'],\n                    ['5. Autophagy, Mitophagy &amp; Immune Reset', 'Rising AMP:ATP and NAD+:NADH ratios activate AMPK\/SIRT1 and inhibit mTORC1, driving ULK1, Beclin-1, LC3-II, and TFEB macroautophagy. Depolarized mitochondria undergo selective PINK1\/Parkin and BNIP3\/NIX mitophagy, while SWAP70 pro-inflammatory signaling falls after 72h.'],\n                    ['6. Type 2 Diabetes &amp; Glycemic Reset', 'Drains ectopic intramyocellular and hepatic ceramides\/DAGs, relieving PKC inhibition of IRS-1\/PI3K\/Akt\/GLUT4 signaling, normalizing hepatic gluconeogenesis, and reducing 24-hour insulin AUC by 50-70% (medical supervision required if taking hypoglycemic agents).'],\n                    ['7. Visceral Obesity &amp; Muscle Sparing', 'Preferentially mobilizes visceral omental adipocytes via high beta-3 adrenergic receptor density (~1.6 kg pure fat loss across 7-day water fasts) while pulsatile GH (5x surge) and ketone BCKDH inhibition preserve core myofibrillar protein.'],\n                    ['8. Kidneys, Endothelium &amp; Blood Pressure', 'Declining insulin triggers brisk proximal\/distal tubular natriuresis (via NHE3\/ENaC), which\u2014combined with eNOS vasodilation and vagal tone\u2014lowers resting blood pressure by 8-15 mmHg systolic and 5-10 mmHg diastolic while preserving normal euvolemic GFR.']\n                ])\n            });\n            cursorY = doc.lastAutoTable.finalY + 5;\n\n            printParagraphSection('IX. PERSONALIZED CONTRAINDICATIONS &amp; SAFETY ALERTS', metrics.riskWarnings);\n\n            \/\/ Full Verbatim Section 06 Text Included in the PDF Report\n            const section6Paragraphs = [\n                'Global Observational Bio-Informatics &amp; Citizen-Science Consortium (Ground Report India International Journal Australia): Contemporary human longevity and metabolic science increasingly depends on multi-cohort, real-world physiological datasets that bridge geographical and demographic divides. Your self-reported anthropometric ratios\u2014specifically the Waist-to-Thigh Ratio (WTR) and Waist-to-Height Ratio (WHtR)\u2014alongside autonomic nocturnal heart rate dipping (RHR vs. SHR), 13-modality exercise bioenergetics (including Squats, Zone 2 endurance, and postprandial walking kinetics), and fasting architectures represent high-value observational biomarkers.',\n                'How to Contribute Your Report: By transmitting your structured assessment or emailing your downloaded Official A4 PDF Dossier to our international editorial research desk at executive.editor@groundreportmedia.com, you directly assist global investigators in refining non-invasive reference standards for metabolic resilience, sarcopenia prevention, and safe fasting stratification.',\n                'Data Integrity &amp; Ethical Governance: All contributions obey strict Zero-Defaulting Integrity (unanswered parameters remain blank and are never falsified with synthetic values) and are analyzed in de-identified aggregate form for international peer-reviewed publication.'\n            ];\n            printParagraphSection('X. SECTION 06: INTERNATIONAL LONGEVITY &amp; FASTING RESEARCH CONTRIBUTION HUB', section6Paragraphs);\n\n            const legalText = 'Educational, Wellness &amp; Physiological Assessment Notice: \"This assessment, its algorithms, and the resulting scores are formulated solely for educational, informational, and personal wellness evaluation. This tool does not constitute medical advice, diagnosis, prognosis, or treatment plans. Fasting protocols\u2014specifically prolonged water or dry fasting\u2014carry physiological risks and should never be initiated without direct consultation and supervision by a qualified medical practitioner, particularly for individuals with metabolic, renal, or cardiovascular conditions.\"';\n            printParagraphSection('XI. REGULATORY COMPLIANCE &amp; DISCLOSURE', [legalText]);\n\n            \/\/ Stamp Header &amp; Footer on EVERY Page\n            const totalPages = doc.internal.getNumberOfPages();\n            for (let p = 1; p &lt;= totalPages; p++) {\n                doc.setPage(p);\n                doc.setFont('helvetica', 'bold');\n                doc.setFontSize(8.5);\n                doc.setTextColor(30, 41, 59);\n                doc.text('Physiological, Anthropometric, Fasting &amp; Longevity Report', margin, 12);\n                doc.setDrawColor(203, 213, 225);\n                doc.line(margin, 14.5, pageWidth - margin, 14.5);\n\n                doc.line(margin, pageHeight - 14, pageWidth - margin, pageHeight - 14);\n                doc.setFont('helvetica', 'normal');\n                doc.setFontSize(8);\n                doc.setTextColor(71, 85, 105);\n                doc.text('Ground Report India International Journal Australia', pageWidth \/ 2, pageHeight - 9.5, { align: 'center' });\n                doc.text(`Page ${p} of ${totalPages}`, pageWidth - margin, pageHeight - 9.5, { align: 'right' });\n            }\n\n            const safeName = data.fullName.replace(\/[^a-zA-Z0-9_-]\/g, '_');\n            doc.save(`Physiological_Longevity_Report_${safeName}_${referenceId}.pdf`);\n        }\n\n        async function dispatchEditorialAssessment(assessment, isManualTrigger = false) {\n            const statusEl = document.getElementById('dispatchStatusBanner');\n            const hubFb = document.getElementById('hubDispatchFeedback');\n\n            if (!assessment) return;\n\n            \/\/ 0. STRICT SAMPLE PROFILE FIREWALL (Never send Sample Profile reports to email!)\n            const normalizedName = assessment.data.fullName.trim().toLowerCase();\n            const isBlockedSample = assessment.isSample ||\n                APP_STATE.isSampleProfileActive ||\n                APP_STATE.blockedSampleNames.includes(normalizedName);\n\n            if (isBlockedSample) {\n                const sampleBlockMsg = `Sample Profile Firewall Active: Demo\/Sample profiles (${APP_STATE.sampleProfileName}) are strictly blocked from email transmission to prevent inbox flooding. Enter a real participant profile to transmit research data.`;\n                if (statusEl) statusEl.textContent = sampleBlockMsg;\n                if (hubFb) hubFb.textContent = `${sampleBlockMsg} (Target endpoint: ${APP_STATE.editorialRecipient})`;\n                return;\n            }\n\n            \/\/ 0.5. Mandatory Email &amp; WhatsApp Verification before any transmission\n            if (!validateResearchContactRequirements()) {\n                return;\n            }\n\n            \/\/ Refresh contact details in assessment object in case user filled them in after initial calculation\n            const latestEmail = document.getElementById('userEmail')?.value.trim() || null;\n            const latestMobile = document.getElementById('userMobile')?.value.trim() || null;\n            const latestWhatsapp = document.getElementById('userWhatsapp')?.value.trim() || null;\n            assessment.data.userEmail = latestEmail;\n            assessment.data.userMobile = latestMobile;\n            assessment.data.userWhatsapp = latestWhatsapp;\n\n            \/\/ 1. Honeypot check\n            const hpVal = document.getElementById('hp_verification_token')?.value || '';\n            if (hpVal.trim() !== '') {\n                return;\n            }\n\n            \/\/ 2. Time-Gate Verification (4 seconds minimum for human submission unless manual button click)\n            const elapsedMs = Date.now() - APP_STATE.mountTimestamp;\n            if (!isManualTrigger &amp;&amp; elapsedMs &lt; 4000) {\n                const msg = `Time-gate notice: Submission completed in ${(elapsedMs \/ 1000).toFixed(1)}s (&lt;4.0s human threshold). Click \"Transmit Research Payload Now\" in Section IX to confirm human dispatch.`;\n                if (statusEl) statusEl.textContent = msg;\n                if (hubFb) hubFb.textContent = msg;\n                return;\n            }\n\n            \/\/ 3. Rate Limiting Check via localStorage (60 seconds cooldown per client)\n            try {\n                const lastSent = Number(localStorage.getItem('gr_bio_last_dispatch_ts') || '0');\n                if (!isManualTrigger &amp;&amp; Date.now() - lastSent &lt; 60000) {\n                    const msg = 'Rate-limit protection active: A research payload was recently dispatched from this browser within the last 60 seconds.';\n                    if (statusEl) statusEl.textContent = msg;\n                    if (hubFb) hubFb.textContent = msg;\n                    return;\n                }\n            } catch (_) {\n                \/\/ Ignore storage restrictions in sandboxed iframes\n            }\n\n            const payload = {\n                _subject: `Physiological &amp; Longevity Research Report: ${assessment.data.fullName} [${assessment.referenceId}]`,\n                recipient: APP_STATE.editorialRecipient,\n                protocolId: assessment.referenceId,\n                timestamp: assessment.timestamp,\n                subjectName: assessment.data.fullName,\n                userEmail: assessment.data.userEmail || '',\n                userMobile: assessment.data.userMobile || '',\n                userWhatsapp: assessment.data.userWhatsapp || '',\n                sex: assessment.data.biologicalSex || '',\n                age: assessment.data.ageYears !== null ? assessment.data.ageYears : '',\n                dietaryProfile: assessment.data.dietaryProfile || '',\n                mealsPerDay: assessment.data.mealsPerDay !== null ? assessment.data.mealsPerDay : '',\n                bmi: fmt(assessment.metrics.bmi, 1, ' kg\/m\u00b2'),\n                bodyFatPct: fmt(assessment.metrics.consensusBodyFatPct, 1, '%'),\n                leanBodyMassKg: fmt(assessment.metrics.leanBodyMassKg, 1, ' kg'),\n                boneMineralMassKg: fmt(assessment.metrics.boneMineralMassKg, 2, ' kg'),\n                waistToHipRatio: fmt(assessment.metrics.waistToHipRatio, 2, ''),\n                waistToThighRatio: fmt(assessment.metrics.waistToThighRatio, 2, ''),\n                waistToHeightRatio: fmt(assessment.metrics.waistToHeightRatio, 2, ''),\n                rhrShrDipPct: fmt(assessment.metrics.rhrShrDipPct, 1, '%'),\n                weeklyMetMinutes: assessment.metrics.exerciseAnalytics.weeklyTotalMetMinutes !== null ? Math.round(assessment.metrics.exerciseAnalytics.weeklyTotalMetMinutes) : '',\n                postMealWalkStatus: [assessment.data.postMealWalkStatus || '', assessment.data.postMealWalkDurationMins !== null ? `${assessment.data.postMealWalkDurationMins} mins` : ''].filter(Boolean).join(' \u00b7 '),\n                activeExerciseModalities: assessment.data.exercises.map(e =&gt; e.modality).join(', '),\n                waterFastDurationHours: assessment.data.waterFast?.durationHours !== null ? assessment.data.waterFast.durationHours : '',\n                waterFastProteomicPhase: assessment.metrics.waterFastKinetics?.phaseLabel || '',\n                dryFastDurationHours: assessment.data.dryFast?.durationHours !== null ? assessment.data.dryFast.durationHours : '',\n                dryFastSafetyTier: assessment.metrics.dryFastSafety?.tierLabel || '',\n                reportedPathologies: assessment.data.pathologies.join(', '),\n                omittedFieldsCount: assessment.data.omittedInputsList ? assessment.data.omittedInputsList.length : 0,\n                longevityScore: `${assessment.metrics.longevityScore} \/ 100 (${assessment.metrics.longevityTier})`\n            };\n\n            try {\n                if (statusEl) statusEl.textContent = 'Transmitting structured research payload to the International Editorial Research Desk...';\n                if (hubFb) hubFb.textContent = `Transmitting structured research payload to ${APP_STATE.editorialRecipient}...`;\n                const response = await fetch(APP_STATE.formEndpoint, {\n                    method: 'POST',\n                    headers: { 'Content-Type': 'application\/json', 'Accept': 'application\/json' },\n                    body: JSON.stringify(payload)\n                });\n                if (response.ok) {\n                    try { localStorage.setItem('gr_bio_last_dispatch_ts', String(Date.now())); } catch (_) {}\n                    if (statusEl) statusEl.textContent = `Dispatched structured research summary to the Editorial Research Desk (Ref: ${assessment.referenceId}). Thank you for supporting international longevity research!`;\n                    if (hubFb) hubFb.textContent = `Dispatched structured research summary to ${APP_STATE.editorialRecipient} (Ref: ${assessment.referenceId}). Thank you for supporting international longevity research!`;\n                } else {\n                    if (statusEl) statusEl.textContent = 'Research payload prepared. You may download the Official A4 PDF Report and attach it via your email client in Section IX.';\n                    if (hubFb) hubFb.textContent = `Research payload prepared for ${APP_STATE.editorialRecipient}. Click \"1. Download Official A4 PDF Report\" and attach it via \"3. Open Email Client\".`;\n                }\n            } catch (err) {\n                if (statusEl) statusEl.textContent = 'Research payload formatted. Use Section IX below to download the Official A4 PDF Report and send via your email client.';\n                if (hubFb) hubFb.textContent = `Research payload formatted for ${APP_STATE.editorialRecipient}. Click \"1. Download Official A4 PDF Report\" and \"3. Open Email Client to Attach PDF\" to send directly.`;\n            }\n        }\n\n        document.addEventListener('DOMContentLoaded', () =&gt; {\n            renderExerciseModalityCards();\n\n            const applyGirthBounds = (isIn) =&gt; {\n                const bounds = isIn\n                    ? { wristInput: [3, 18], neckInput: [6, 33], waistInput: [14, 98], hipInput: [16, 98], thighInput: [8, 55] }\n                    : { wristInput: [8, 45], neckInput: [15, 85], waistInput: [35, 250], hipInput: [40, 250], thighInput: [20, 140] };\n                const unitLabel = isIn ? 'Optional (in)' : 'Optional';\n                Object.entries(bounds).forEach(([id, [minV, maxV]]) =&gt; {\n                    const el = document.getElementById(id);\n                    if (el) {\n                        el.min = String(minV);\n                        el.max = String(maxV);\n                        el.placeholder = unitLabel;\n                    }\n                });\n            };\n\n            \/\/ Weight unit toggle\n            document.getElementById('weightUnit').addEventListener('change', (e) =&gt; {\n                const isLbs = e.target.value === 'lbs';\n                const wInput = document.getElementById('weightInput');\n                if (wInput) {\n                    wInput.min = isLbs ? '33' : '20';\n                    wInput.max = isLbs ? '990' : '450';\n                    wInput.placeholder = isLbs ? 'Leave blank if unknown (lbs)' : 'Leave blank if unknown';\n                }\n            });\n\n            \/\/ Height unit toggle (cm vs ft\/in)\n            document.getElementById('heightUnit').addEventListener('change', (e) =&gt; {\n                const isFtIn = e.target.value === 'ftin';\n                document.getElementById('heightCmWrap')?.classList.toggle('hidden', isFtIn);\n                document.getElementById('heightFtInWrap')?.classList.toggle('hidden', !isFtIn);\n            });\n\n            \/\/ Circumference unit toggle (cm vs in)\n            document.getElementById('girthUnit').addEventListener('change', (e) =&gt; {\n                applyGirthBounds(e.target.value === 'in');\n            });\n\n            \/\/ Fasting checkboxes &amp; unit toggles\n            document.getElementById('waterFastEnabled').addEventListener('change', (e) =&gt; {\n                document.getElementById('waterFastDetails').classList.toggle('hidden', !e.target.checked);\n            });\n            document.getElementById('waterFastDurationUnit').addEventListener('change', (e) =&gt; {\n                const isDays = e.target.value === 'days';\n                const wfVal = document.getElementById('waterFastDurationVal');\n                if (wfVal) {\n                    wfVal.max = isDays ? '40' : '1000';\n                    wfVal.placeholder = isDays ? 'e.g., 3' : 'e.g., 72';\n                }\n            });\n            document.getElementById('dryFastEnabled').addEventListener('change', (e) =&gt; {\n                document.getElementById('dryFastDetails').classList.toggle('hidden', !e.target.checked);\n            });\n            document.getElementById('dryFastDurationUnit').addEventListener('change', (e) =&gt; {\n                const isDays = e.target.value === 'days';\n                const dfVal = document.getElementById('dryFastDurationVal');\n                if (dfVal) {\n                    dfVal.max = isDays ? '10' : '240';\n                    dfVal.placeholder = isDays ? 'e.g., 1' : 'e.g., 14';\n                }\n            });\n\n            \/\/ Mutual exclusivity between \"None\" and specific pathologies\n            const noneCb = document.getElementById('pathologyNone');\n            const pathCbs = document.querySelectorAll('.pathology-cb');\n            noneCb.addEventListener('change', () =&gt; {\n                if (noneCb.checked) {\n                    pathCbs.forEach(cb =&gt; { cb.checked = false; });\n                }\n            });\n            pathCbs.forEach(cb =&gt; {\n                cb.addEventListener('change', () =&gt; {\n                    if (cb.checked) noneCb.checked = false;\n                });\n            });\n\n            \/\/ Clear sample flag when user edits the Full Name field to a real non-sample name\n            \/\/ Clear or restore sample flag when user edits the Full Name field\n            document.getElementById('fullName').addEventListener('input', (e) =&gt; {\n                const currentVal = e.target.value.trim().toLowerCase();\n                const isSampleName = APP_STATE.blockedSampleNames.includes(currentVal);\n                APP_STATE.isSampleProfileActive = isSampleName;\n                document.getElementById('formSampleProfileBanner')?.classList.toggle('hidden', !isSampleName);\n            });\n\n            \/\/ Sync WhatsApp Number with Mobile Number when \"Same as Mobile\" is checked\n            const mobileInputEl = document.getElementById('userMobile');\n            const whatsappInputEl = document.getElementById('userWhatsapp');\n            const sameAsMobileCb = document.getElementById('whatsappSameAsMobile');\n\n            if (sameAsMobileCb &amp;&amp; mobileInputEl &amp;&amp; whatsappInputEl) {\n                sameAsMobileCb.addEventListener('change', () =&gt; {\n                    if (sameAsMobileCb.checked) {\n                        syncAllContactFields( null, mobileInputEl.value);\n                    }\n                });\n                mobileInputEl.addEventListener('input', () =&gt; {\n                    if (sameAsMobileCb.checked) {\n                        syncAllContactFields(null, mobileInputEl.value);\n                    }\n                });\n            }\n\n            \/\/ Two-way real-time synchronization for Email and WhatsApp across Section 01, Section 06, and Section IX Hub\n            const clearAlertIfContactValid = () =&gt; {\n                const em = (document.getElementById('userEmail')?.value || '').trim();\n                const wa = (document.getElementById('userWhatsapp')?.value || '').trim().replace(\/[^\\d]\/g, '');\n                if (\/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$\/.test(em) &amp;&amp; wa.length &gt;= 7) {\n                    document.getElementById('validationAlert')?.classList.add('hidden');\n                }\n            };\n\n            ['userEmail', 'sec6UserEmail', 'hubUserEmail'].forEach(id =&gt; {\n                const el = document.getElementById(id);\n                if (el) {\n                    el.addEventListener('input', (e) =&gt; {\n                        syncAllContactFields(e.target.value, null);\n                        clearAlertIfContactValid();\n                    });\n                }\n            });\n\n            ['userWhatsapp', 'sec6UserWhatsapp', 'hubUserWhatsapp'].forEach(id =&gt; {\n                const el = document.getElementById(id);\n                if (el) {\n                    el.addEventListener('input', (e) =&gt; {\n                        if (sameAsMobileCb &amp;&amp; mobileInputEl &amp;&amp; e.target.value !== mobileInputEl.value) {\n                            sameAsMobileCb.checked = false;\n                        }\n                        syncAllContactFields(null, e.target.value);\n                        clearAlertIfContactValid();\n                    });\n                }\n            });\n\n            const autoDispatchEl = document.getElementById('autoDispatchToggle');\n            if (autoDispatchEl) {\n                autoDispatchEl.addEventListener('change', syncContactRequiredBadges);\n                syncContactRequiredBadges();\n            }\n\n            \/\/ Form Submission\n            document.getElementById('assessmentForm').addEventListener('submit', async (e) =&gt; {\n                e.preventDefault();\n                const alertEl = document.getElementById('validationAlert');\n                const fullName = document.getElementById('fullName').value.trim();\n                if (!fullName) {\n                    alertEl.textContent = 'Validation Notice: Please enter your Full Name in Section 01 to generate the Personalized Physiological &amp; Longevity Report.';\n                    alertEl.classList.remove('hidden');\n                    document.getElementById('fullName').focus();\n                    return;\n                }\n\n                \/\/ Check if the user is submitting any blocked sample profile name\n                if (APP_STATE.blockedSampleNames.includes(fullName.toLowerCase())) {\n                    APP_STATE.isSampleProfileActive = true;\n                }\n\n                \/\/ If user opted in to send the report to us (and is not on the blocked Sample Profile), require valid Email &amp; WhatsApp\n                const wantsToSendReport = document.getElementById('autoDispatchToggle').checked;\n                if (wantsToSendReport &amp;&amp; !APP_STATE.isSampleProfileActive) {\n                    if (!validateResearchContactRequirements()) {\n                        return;\n                    }\n                }\n\n                alertEl.classList.add('hidden');\n\n                const data = collectFormInputs();\n                const metrics = executePhysiologicalCalculations(data);\n                renderReportUI(data, metrics);\n\n                if (APP_STATE.isSampleProfileActive) {\n                    const statusEl = document.getElementById('dispatchStatusBanner');\n                    const hubFb = document.getElementById('hubDispatchFeedback');\n                    const msg = `Sample Profile Firewall Active (${APP_STATE.sampleProfileName}): Report rendered locally for preview and A4 PDF testing. Automated email transmission is strictly disabled for sample profiles to prevent inbox flooding.`;\n                    if (statusEl) statusEl.textContent = msg;\n                    if (hubFb) hubFb.textContent = msg;\n                    return;\n                }\n\n                if (wantsToSendReport) {\n                    await dispatchEditorialAssessment(APP_STATE.lastAssessment, false);\n                }\n            });\n\n            \/\/ PDF &amp; Dispatch Buttons\n            document.getElementById('btnDownloadPdfTop').addEventListener('click', generateOfficialA4Pdf);\n            document.getElementById('btnHubDownloadPdf').addEventListener('click', generateOfficialA4Pdf);\n            const isCurrentProfileBlockedSample = () =&gt; {\n                const currentName = (document.getElementById('fullName')?.value || '').trim().toLowerCase();\n                return Boolean(\n                    APP_STATE.isSampleProfileActive ||\n                    (APP_STATE.lastAssessment &amp;&amp; APP_STATE.lastAssessment.isSample) ||\n                    APP_STATE.blockedSampleNames.includes(currentName)\n                );\n            };\n            document.getElementById('btnManualDispatch').addEventListener('click', async () =&gt; {\n                if (isCurrentProfileBlockedSample()) {\n                    const msg = `Sample Profile Firewall Active: Demo\/Sample profiles (${APP_STATE.sampleProfileName}) are strictly blocked from email transmission to prevent inbox flooding. Click \"Clear \/ Reset Form\" at the top to enter your own measurements.`;\n                    const statusEl = document.getElementById('dispatchStatusBanner');\n                    const hubFb = document.getElementById('hubDispatchFeedback');\n                    if (statusEl) statusEl.textContent = msg;\n                    if (hubFb) hubFb.textContent = msg;\n                    return;\n                }\n                if (!validateResearchContactRequirements('sec6')) return;\n                if (APP_STATE.lastAssessment) {\n                    const latestData = collectFormInputs();\n                    const metrics = executePhysiologicalCalculations(latestData);\n                    renderReportUI(latestData, metrics, false);\n                    await dispatchEditorialAssessment(APP_STATE.lastAssessment, true);\n                } else {\n                    const statusEl = document.getElementById('dispatchStatusBanner');\n                    if (statusEl) statusEl.textContent = 'Please click \"Calculate &amp; Generate Assessment\" first before transmitting your report.';\n                }\n            });\n            document.getElementById('btnHubDispatchResearch').addEventListener('click', async () =&gt; {\n                if (isCurrentProfileBlockedSample()) {\n                    const msg = `Sample Profile Firewall Active: Demo\/Sample profiles (${APP_STATE.sampleProfileName}) are strictly blocked from email transmission to prevent inbox flooding. Click \"Clear \/ Reset Form\" at the top to enter your own measurements.`;\n                    const statusEl = document.getElementById('dispatchStatusBanner');\n                    const hubFb = document.getElementById('hubDispatchFeedback');\n                    if (statusEl) statusEl.textContent = msg;\n                    if (hubFb) hubFb.textContent = msg;\n                    return;\n                }\n                if (!validateResearchContactRequirements('hub')) return;\n                if (APP_STATE.lastAssessment) {\n                    const latestData = collectFormInputs();\n                    const metrics = executePhysiologicalCalculations(latestData);\n                    renderReportUI(latestData, metrics, false);\n                    await dispatchEditorialAssessment(APP_STATE.lastAssessment, true);\n                } else {\n                    const hubFb = document.getElementById('hubDispatchFeedback');\n                    if (hubFb) hubFb.textContent = 'Please click \"Calculate &amp; Generate Assessment\" first before transmitting your report.';\n                }\n            });\n            document.getElementById('btnHubMailtoLink').addEventListener('click', (e) =&gt; {\n                if (isCurrentProfileBlockedSample()) {\n                    e.preventDefault();\n                    const msg = `Sample Profile Firewall Active: Demo\/Sample profiles (${APP_STATE.sampleProfileName}) are strictly blocked from email transmission. Click \"Clear \/ Reset Form\" at the top to enter your own measurements.`;\n                    const statusEl = document.getElementById('dispatchStatusBanner');\n                    const hubFb = document.getElementById('hubDispatchFeedback');\n                    if (statusEl) statusEl.textContent = msg;\n                    if (hubFb) hubFb.textContent = msg;\n                    return;\n                }\n                if (!validateResearchContactRequirements('hub')) {\n                    e.preventDefault();\n                    return;\n                }\n                if (APP_STATE.lastAssessment) {\n                    const latestData = collectFormInputs();\n                    const metrics = executePhysiologicalCalculations(latestData);\n                    renderReportUI(latestData, metrics, false);\n                }\n            });\n\n            \/\/ Reset Form Button\n            document.getElementById('btnResetForm').addEventListener('click', () =&gt; {\n                APP_STATE.isSampleProfileActive = false;\n                APP_STATE.lastAssessment = null;\n                document.getElementById('assessmentForm').reset();\n                document.getElementById('formSampleProfileBanner')?.classList.add('hidden');\n                document.getElementById('reportSampleAlertBanner')?.classList.add('hidden');\n                document.getElementById('reportOmittedFieldsBanner')?.classList.add('hidden');\n                syncAllContactFields('', '');\n                document.getElementById('autoDispatchToggle').checked = true;\n                syncContactRequiredBadges();\n                document.getElementById('heightCmWrap').classList.remove('hidden');\n                document.getElementById('heightFtInWrap').classList.add('hidden');\n                const wInput = document.getElementById('weightInput');\n                if (wInput) {\n                    wInput.min = '20';\n                    wInput.max = '450';\n                    wInput.placeholder = 'Leave blank if unknown';\n                }\n                applyGirthBounds(false);\n                const wfVal = document.getElementById('waterFastDurationVal');\n                if (wfVal) { wfVal.max = '1000'; wfVal.placeholder = 'e.g., 72'; }\n                const dfVal = document.getElementById('dryFastDurationVal');\n                if (dfVal) { dfVal.max = '240'; dfVal.placeholder = 'e.g., 14'; }\n                document.querySelectorAll('.ex-checkbox').forEach(cb =&gt; {\n                    const id = cb.getAttribute('data-ex-id');\n                    document.getElementById(`ex_details_${id}`)?.classList.add('hidden');\n                    document.getElementById(`ex_card_${id}`)?.classList.remove('md:col-span-2');\n                });\n                document.getElementById('waterFastDetails').classList.add('hidden');\n                document.getElementById('dryFastDetails').classList.add('hidden');\n                document.getElementById('reportSection').classList.add('hidden');\n                document.getElementById('validationAlert').classList.add('hidden');\n                const statusEl = document.getElementById('dispatchStatusBanner');\n                if (statusEl) statusEl.textContent = 'Assessment generated. Ready for official A4 PDF export or voluntary research contribution.';\n                const hubFb = document.getElementById('hubDispatchFeedback');\n                if (hubFb) hubFb.innerHTML = 'Ready for international research contribution. Your protocol ID and structured summary are formatted for &lt;code class=\"font-mono\"&gt;executive.editor@groundreportmedia.com&lt;\/code&gt;.';\n            });\n\n            \/\/ Sample Loader for 1-Click Preview Verification (STRICTLY LOCAL \u2014 NO EMAIL SENT)\n            document.getElementById('btnPopulateSample').addEventListener('click', () =&gt; {\n                document.getElementById('assessmentForm').reset();\n                APP_STATE.isSampleProfileActive = true;\n                document.getElementById('formSampleProfileBanner')?.classList.remove('hidden');\n                \/\/ Automatically uncheck the email auto-dispatch toggle when loading Sample Profile\n                document.getElementById('autoDispatchToggle').checked = false;\n                syncContactRequiredBadges();\n                document.getElementById('validationAlert').classList.add('hidden');\n\n                document.getElementById('fullName').value = APP_STATE.sampleProfileName;\n                syncAllContactFields('', '');\n                document.getElementById('userMobile').value = '';\n                document.getElementById('whatsappSameAsMobile').checked = false;\n                document.getElementById('biologicalSex').value = 'Male';\n                document.getElementById('ageYears').value = '44';\n                document.getElementById('weightUnit').value = 'kg';\n                const wInput = document.getElementById('weightInput');\n                wInput.min = '20';\n                wInput.max = '450';\n                wInput.placeholder = 'Leave blank if unknown';\n                wInput.value = '78.0';\n                document.getElementById('heightUnit').value = 'cm';\n                document.getElementById('heightCmWrap').classList.remove('hidden');\n                document.getElementById('heightFtInWrap').classList.add('hidden');\n                document.getElementById('heightCmInput').value = '182';\n                document.getElementById('girthUnit').value = 'cm';\n                applyGirthBounds(false);\n                const wfVal = document.getElementById('waterFastDurationVal');\n                if (wfVal) { wfVal.max = '1000'; wfVal.placeholder = 'e.g., 72'; }\n                const dfVal = document.getElementById('dryFastDurationVal');\n                if (dfVal) { dfVal.max = '240'; dfVal.placeholder = 'e.g., 14'; }\n                document.getElementById('wristInput').value = '17.6';\n                document.getElementById('neckInput').value = '38.5';\n                document.getElementById('waistInput').value = '82.0';\n                document.getElementById('hipInput').value = '98.0';\n                document.getElementById('thighInput').value = '58.5';\n                document.getElementById('rhrInput').value = '55';\n                document.getElementById('shrInput').value = '46';\n                document.getElementById('mealsPerDayInput').value = '2';\n                document.getElementById('dietaryProfile').value = 'Meat Eater \/ Omnivore';\n\n                document.getElementById('primaryCircadianWindow').value = 'Early Morning (05:00\u201308:00)';\n                document.getElementById('hoursAfterLastIntake').value = '14';\n                document.getElementById('postMealWalkStatus').value = 'Yes \u2014 After All Meals';\n                document.getElementById('postMealWalkDurationMins').value = '15';\n                document.getElementById('postMealWalkDelay').value = 'Immediate (0\u201315 mins post-meal)';\n\n                document.querySelectorAll('.ex-checkbox').forEach(cb =&gt; {\n                    const id = cb.getAttribute('data-ex-id');\n                    const active = ['squats', 'statcycling', 'walking', 'yoga', 'resistance'].includes(id);\n                    cb.checked = active;\n                    document.getElementById(`ex_details_${id}`)?.classList.toggle('hidden', !active);\n                    document.getElementById(`ex_card_${id}`)?.classList.toggle('md:col-span-2', active);\n                });\n\n                document.getElementById('ex_sess_squats').value = '5';\n                document.getElementById('ex_dur_squats').value = '15';\n                document.getElementById('ex_fast_squats').value = '0.5';\n\n                document.getElementById('ex_sess_statcycling').value = '4';\n                document.getElementById('ex_dur_statcycling').value = '45';\n                document.getElementById('ex_fast_statcycling').value = '14';\n\n                document.getElementById('ex_sess_walking').value = '7';\n                document.getElementById('ex_dur_walking').value = '30';\n                document.getElementById('ex_fast_walking').value = '0.25';\n\n                document.getElementById('ex_sess_yoga').value = '3';\n                document.getElementById('ex_dur_yoga').value = '30';\n                document.getElementById('ex_fast_yoga').value = '12';\n\n                document.getElementById('ex_sess_resistance').value = '3';\n                document.getElementById('ex_dur_resistance').value = '45';\n                document.getElementById('ex_fast_resistance').value = '3.5';\n\n                document.getElementById('waterFastEnabled').checked = true;\n                document.getElementById('waterFastDetails').classList.remove('hidden');\n                document.getElementById('waterFastFreq').value = 'Tri-monthly';\n                document.getElementById('waterFastDurationVal').value = '72';\n                document.getElementById('waterFastDurationUnit').value = 'hours';\n\n                document.getElementById('dryFastEnabled').checked = false;\n                document.getElementById('dryFastDetails').classList.add('hidden');\n                document.getElementById('dryFastFreq').value = '';\n                document.getElementById('dryFastDurationVal').value = '';\n                document.getElementById('dryFastDurationUnit').value = 'hours';\n\n                document.querySelectorAll('.pathology-cb').forEach(cb =&gt; { cb.checked = false; });\n                document.getElementById('pathologyNone').checked = true;\n\n                const data = collectFormInputs();\n                const metrics = executePhysiologicalCalculations(data);\n                renderReportUI(data, metrics);\n\n                const statusEl = document.getElementById('dispatchStatusBanner');\n                const hubFb = document.getElementById('hubDispatchFeedback');\n                const sampleNotice = `Sample Profile Loaded (${APP_STATE.sampleProfileName}): Local preview and A4 PDF export are active. Automated email dispatch is strictly blocked for sample profiles so your inbox is never flooded.`;\n                if (statusEl) statusEl.textContent = sampleNotice;\n                if (hubFb) hubFb.textContent = sampleNotice;\n            });\n        });\n    [\/tcb-script]<\/code>\n\n<\/div>","tve_custom_css":"","tve_user_custom_css":"","tve_globals":{"e":"1","font_cls":[]},"tcb2_ready":1,"tcb_editor_enabled":1,"tve_landing_page":"","_tve_header":"","_tve_footer":""},"categories":[2],"tags":[533],"gri_pub_year":[],"gri_pub_month":[],"gri_volume":[],"gri_edition":[],"class_list":["post-14469","post","type-post","status-publish","format-standard","hentry","category-reports","tag-health"],"_links":{"self":[{"href":"https:\/\/groundreportindia.org\/monthly\/wp-json\/wp\/v2\/posts\/14469","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/groundreportindia.org\/monthly\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/groundreportindia.org\/monthly\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/groundreportindia.org\/monthly\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/groundreportindia.org\/monthly\/wp-json\/wp\/v2\/comments?post=14469"}],"version-history":[{"count":15,"href":"https:\/\/groundreportindia.org\/monthly\/wp-json\/wp\/v2\/posts\/14469\/revisions"}],"predecessor-version":[{"id":14558,"href":"https:\/\/groundreportindia.org\/monthly\/wp-json\/wp\/v2\/posts\/14469\/revisions\/14558"}],"wp:attachment":[{"href":"https:\/\/groundreportindia.org\/monthly\/wp-json\/wp\/v2\/media?parent=14469"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/groundreportindia.org\/monthly\/wp-json\/wp\/v2\/categories?post=14469"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/groundreportindia.org\/monthly\/wp-json\/wp\/v2\/tags?post=14469"},{"taxonomy":"gri_pub_year","embeddable":true,"href":"https:\/\/groundreportindia.org\/monthly\/wp-json\/wp\/v2\/gri_pub_year?post=14469"},{"taxonomy":"gri_pub_month","embeddable":true,"href":"https:\/\/groundreportindia.org\/monthly\/wp-json\/wp\/v2\/gri_pub_month?post=14469"},{"taxonomy":"gri_volume","embeddable":true,"href":"https:\/\/groundreportindia.org\/monthly\/wp-json\/wp\/v2\/gri_volume?post=14469"},{"taxonomy":"gri_edition","embeddable":true,"href":"https:\/\/groundreportindia.org\/monthly\/wp-json\/wp\/v2\/gri_edition?post=14469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}