Cytokines health and disease ppt for pathology resident doctor

Asking for Preferences
Reading File
Reading File
Reading File
Finding Sources
Finding Sources
Reading File
Reading File
Reading File
Finding Sources
Finding Sources
Finding Sources
Reading File
Reading File
Reading File
Reading File
Running Command

mkdir -p /home/daytona/workspace/cytokines-ppt && ls /home/daytona/workspace/cytokines-ppt/

Writing File

~/cytokines-ppt/build.js

const pptxgen = require("pptxgenjs");
const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Cytokines: Health and Disease";
pres.author = "Pathology Resident Lecture";

// ── Color Palette ──────────────────────────────────────────────
const C = {
  navy:    "0A1628",   // dominant dark background
  darkBg:  "0D1F3C",
  midBlue: "1A3A6B",
  accent:  "3B82F6",   // bright blue accent
  teal:    "0EA5E9",
  orange:  "F97316",
  red:     "EF4444",
  green:   "22C55E",
  yellow:  "FACC15",
  white:   "FFFFFF",
  light:   "E2EAF4",
  muted:   "94A3B8",
  cardBg:  "132347",
};

// ── Helper: slide background ────────────────────────────────────
function darkBg(slide) {
  slide.background = { color: C.navy };
}

function accentLine(slide, y = 1.1) {
  slide.addShape(pres.ShapeType.rect, {
    x: 0.5, y, w: 9, h: 0.04,
    fill: { color: C.accent },
    line: { type: "none" },
  });
}

function slideTitle(slide, title, sub = null) {
  slide.addText(title, {
    x: 0.5, y: 0.22, w: 9, h: 0.7,
    fontSize: 28, bold: true, color: C.white, fontFace: "Calibri",
    margin: 0,
  });
  accentLine(slide, 0.96);
  if (sub) {
    slide.addText(sub, {
      x: 0.5, y: 1.05, w: 9, h: 0.38,
      fontSize: 13, color: C.teal, fontFace: "Calibri", italic: true,
      margin: 0,
    });
  }
}

function bulletBox(slide, items, x, y, w, h, fontSize = 13, color = C.light) {
  const textArr = items.map((item, i) => ({
    text: item,
    options: { bullet: { indent: 12 }, breakLine: i < items.length - 1, color },
  }));
  slide.addText(textArr, {
    x, y, w, h, fontSize, fontFace: "Calibri",
    valign: "top", margin: [4, 8, 4, 8],
    line: { color: C.midBlue, width: 1 },
    fill: { color: C.cardBg },
    rectRadius: 0.07,
  });
}

function card(slide, label, body, x, y, w, h, accentColor = C.accent) {
  // card background
  slide.addShape(pres.ShapeType.rect, {
    x, y, w, h,
    fill: { color: C.cardBg },
    line: { color: accentColor, width: 1.5 },
  });
  // label bar
  slide.addShape(pres.ShapeType.rect, {
    x, y, w, h: 0.32,
    fill: { color: accentColor },
    line: { type: "none" },
  });
  slide.addText(label, {
    x: x + 0.1, y: y + 0.02, w: w - 0.2, h: 0.28,
    fontSize: 11, bold: true, color: C.white, fontFace: "Calibri",
    margin: 0, valign: "middle",
  });
  slide.addText(body, {
    x: x + 0.1, y: y + 0.34, w: w - 0.2, h: h - 0.42,
    fontSize: 10.5, color: C.light, fontFace: "Calibri",
    valign: "top", margin: 0,
  });
}

function footerNote(slide, text) {
  slide.addText(text, {
    x: 0.3, y: 5.25, w: 9.4, h: 0.28,
    fontSize: 9, color: C.muted, fontFace: "Calibri", italic: true,
    margin: 0,
  });
}

// ════════════════════════════════════════════════════════════════
// SLIDE 1 – TITLE
// ════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color: C.navy };
  // big accent bar
  s.addShape(pres.ShapeType.rect, {
    x: 0, y: 0, w: 0.18, h: 5.625,
    fill: { color: C.accent }, line: { type: "none" },
  });
  s.addShape(pres.ShapeType.rect, {
    x: 0, y: 4.8, w: 10, h: 0.825,
    fill: { color: C.midBlue }, line: { type: "none" },
  });
  s.addText("CYTOKINES", {
    x: 0.4, y: 0.55, w: 9.2, h: 1.2,
    fontSize: 68, bold: true, color: C.white, fontFace: "Calibri",
    charSpacing: 10, margin: 0,
  });
  s.addText("Health and Disease", {
    x: 0.4, y: 1.75, w: 9.2, h: 0.7,
    fontSize: 36, bold: false, color: C.teal, fontFace: "Calibri",
    margin: 0,
  });
  s.addShape(pres.ShapeType.rect, {
    x: 0.4, y: 2.55, w: 5, h: 0.05,
    fill: { color: C.accent }, line: { type: "none" },
  });
  s.addText("A Broad Overview for Pathology Residents", {
    x: 0.4, y: 2.72, w: 9.2, h: 0.45,
    fontSize: 18, color: C.light, fontFace: "Calibri", italic: true,
    margin: 0,
  });
  s.addText("Mediators of Immunity · Inflammation · Repair · Disease", {
    x: 0.4, y: 3.3, w: 9.2, h: 0.38,
    fontSize: 14, color: C.muted, fontFace: "Calibri",
    margin: 0,
  });
  s.addText("Pathology Lecture Series  |  2026", {
    x: 0.4, y: 4.88, w: 9.2, h: 0.35,
    fontSize: 12, color: C.light, fontFace: "Calibri",
    margin: 0,
  });
}

// ════════════════════════════════════════════════════════════════
// SLIDE 2 – LEARNING OBJECTIVES
// ════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  darkBg(s);
  slideTitle(s, "Learning Objectives");
  const items = [
    "Define cytokines and classify the major cytokine families (TNF, IL, IFN, CSF, chemokines)",
    "Understand cytokine receptors and key signaling pathways (JAK-STAT, NF-κB, MAPK)",
    "Describe the role of cytokines in acute and chronic inflammation",
    "Explain how cytokine dysregulation drives autoimmune disease, cancer, and cytokine storm",
    "Identify clinically used cytokine therapies and anti-cytokine biologics",
    "Apply cytokine biology to pathological diagnoses and disease mechanisms",
  ];
  bulletBox(s, items, 0.5, 1.3, 9, 3.9, 14.5);
  footerNote(s, "Sources: Robbins & Cotran Pathologic Basis of Disease; Henry's Clinical Diagnosis & Management; Cellular and Molecular Immunology (Abbas); Roitt's Essential Immunology");
}

// ════════════════════════════════════════════════════════════════
// SLIDE 3 – WHAT ARE CYTOKINES?
// ════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  darkBg(s);
  slideTitle(s, "What Are Cytokines?", "Pleiotropic protein mediators of immune and inflammatory responses");

  s.addText("Definition", {
    x: 0.5, y: 1.3, w: 9, h: 0.3,
    fontSize: 13, bold: true, color: C.teal, fontFace: "Calibri", margin: 0,
  });
  s.addText(
    "Cytokines are proteins produced by many cell types — principally activated lymphocytes, macrophages, and dendritic cells, but also endothelial, epithelial, and connective tissue cells — that mediate and regulate immune and inflammatory reactions. (Robbins & Cotran)",
    {
      x: 0.5, y: 1.6, w: 9, h: 0.65,
      fontSize: 12.5, color: C.light, fontFace: "Calibri",
      fill: { color: C.cardBg }, margin: [5, 8, 5, 8],
    }
  );

  // 4 property cards
  const props = [
    { label: "Pleiotropic", body: "One cytokine → multiple effects on different cell types", color: C.accent },
    { label: "Redundant", body: "Multiple cytokines → same biological effect", color: C.teal },
    { label: "Synergistic / Antagonistic", body: "Cytokines interact; effects depend on context and combinations", color: C.orange },
    { label: "Auto / Para / Endocrine", body: "Act on the secreting cell, neighbors, or distant organs", color: C.green },
  ];
  props.forEach((p, i) => {
    card(s, p.label, p.body, 0.5 + i * 2.28, 2.38, 2.2, 1.2, p.color);
  });

  s.addText("The term cytokine encompasses: lymphokines · monokines · interleukins · colony-stimulating factors · interferons · TNF family · chemokines · adipokines", {
    x: 0.5, y: 3.7, w: 9, h: 0.45,
    fontSize: 11.5, color: C.muted, fontFace: "Calibri", italic: true,
    fill: { color: C.cardBg }, margin: [4, 8, 4, 8],
  });

  s.addText("Active at femtomolar–picomolar concentrations", {
    x: 0.5, y: 4.28, w: 9, h: 0.35,
    fontSize: 12.5, color: C.yellow, fontFace: "Calibri", bold: true,
    fill: { color: C.midBlue }, margin: [4, 8, 4, 8], align: "center",
  });

  footerNote(s, "Henry's Clinical Diagnosis & Management by Laboratory Methods, 7e (Table 49.1)");
}

// ════════════════════════════════════════════════════════════════
// SLIDE 4 – CLASSIFICATION OF CYTOKINE FAMILIES
// ════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  darkBg(s);
  slideTitle(s, "Classification of Cytokine Families");

  const families = [
    {
      name: "TNF Family",
      color: C.red,
      points: ["TNF-α, TNF-β (LT-α)", "Produced by macrophages, T cells, mast cells", "Regulate apoptosis, survival, differentiation", "Prototype: sepsis mediator"],
    },
    {
      name: "Interleukins (ILs)",
      color: C.accent,
      points: ["IL-1 family: IL-1α/β, IL-18, IL-33", "IL-6 family: IL-6, IL-11, OSM", "γc family: IL-2, IL-4, IL-7, IL-15, IL-21", "IL-12 family: IL-12, IL-23, IL-27, IL-35", "IL-17 family, IL-10 family"],
    },
    {
      name: "Interferons (IFNs)",
      color: C.teal,
      points: ["Type I: IFN-α, IFN-β (antiviral)", "Type II: IFN-γ (macrophage activation)", "Type III: IFN-λ (mucosal immunity)", "Key in antiviral defense & cancer surveillance"],
    },
    {
      name: "CSFs & Chemokines",
      color: C.green,
      points: ["G-CSF, GM-CSF, M-CSF (IL-3)", "Drive hematopoiesis & myeloid differentiation", "Chemokines: ~50 small proteins", "CXC (α), CC (β), CX3C, XC subtypes"],
    },
  ];

  families.forEach((f, i) => {
    const x = 0.25 + (i % 2) * 4.85;
    const y = 1.3 + Math.floor(i / 2) * 2.05;
    // header bar
    s.addShape(pres.ShapeType.rect, { x, y, w: 4.6, h: 0.34, fill: { color: f.color }, line: { type: "none" } });
    s.addText(f.name, { x: x + 0.12, y: y + 0.03, w: 4.36, h: 0.28, fontSize: 13, bold: true, color: C.white, fontFace: "Calibri", margin: 0 });
    // body
    s.addShape(pres.ShapeType.rect, { x, y: y + 0.34, w: 4.6, h: 1.62, fill: { color: C.cardBg }, line: { color: f.color, width: 1 } });
    const textArr = f.points.map((pt, j) => ({
      text: pt,
      options: { bullet: { indent: 10 }, breakLine: j < f.points.length - 1, color: C.light },
    }));
    s.addText(textArr, { x: x + 0.12, y: y + 0.38, w: 4.36, h: 1.52, fontSize: 11, fontFace: "Calibri", valign: "top", margin: 0 });
  });

  footerNote(s, "Henry's 7e; Cellular and Molecular Immunology (Abbas 10e); Roitt's Essential Immunology 14e");
}

// ════════════════════════════════════════════════════════════════
// SLIDE 5 – CYTOKINE RECEPTORS & SIGNALING
// ════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  darkBg(s);
  slideTitle(s, "Cytokine Receptors & Signaling Pathways");

  const receptors = [
    { name: "Class I (Hematopoietin)", examples: "IL-2, IL-4, IL-6, G-CSF, GM-CSF receptors", pathway: "JAK-STAT", color: C.accent },
    { name: "Class II (Interferon)", examples: "IFN-α/β, IFN-γ, IL-10 receptors", pathway: "JAK-STAT (STAT1/2)", color: C.teal },
    { name: "TNF Receptor (TNFR)", examples: "TNFR1, TNFR2, CD40, FasR", pathway: "NF-κB, Caspase, MAPK", color: C.red },
    { name: "Immunoglobulin Superfamily", examples: "IL-1R, IL-18R, M-CSF-R", pathway: "NF-κB, MAPK", color: C.orange },
    { name: "Chemokine Receptors", examples: "CXCR1-6, CCR1-10 (GPCRs)", pathway: "PI3K, MAPK, Ca²⁺", color: C.green },
  ];

  receptors.forEach((r, i) => {
    const y = 1.25 + i * 0.79;
    s.addShape(pres.ShapeType.rect, { x: 0.4, y, w: 0.22, h: 0.62, fill: { color: r.color }, line: { type: "none" } });
    s.addShape(pres.ShapeType.rect, { x: 0.65, y, w: 8.9, h: 0.62, fill: { color: C.cardBg }, line: { color: r.color, width: 1 } });
    s.addText(r.name, { x: 0.75, y: y + 0.04, w: 3.2, h: 0.28, fontSize: 12, bold: true, color: C.white, fontFace: "Calibri", margin: 0 });
    s.addText(r.examples, { x: 0.75, y: y + 0.32, w: 5.4, h: 0.24, fontSize: 10.5, color: C.light, fontFace: "Calibri", margin: 0 });
    // pathway badge
    s.addShape(pres.ShapeType.roundRect, { x: 7.1, y: y + 0.1, w: 2.2, h: 0.42, fill: { color: r.color }, line: { type: "none" }, rectRadius: 0.12 });
    s.addText(r.pathway, { x: 7.1, y: y + 0.1, w: 2.2, h: 0.42, fontSize: 10, bold: true, color: C.white, fontFace: "Calibri", align: "center", valign: "middle", margin: 0 });
  });

  s.addText("JAK-STAT: Cytokine binds receptor → JAK phosphorylation → STAT dimerization → nuclear translocation → gene transcription. Negative regulation by SOCS and PIAS proteins.", {
    x: 0.4, y: 5.2, w: 9.2, h: 0.32,
    fontSize: 9.5, color: C.muted, fontFace: "Calibri", italic: true, margin: 0,
  });
}

// ════════════════════════════════════════════════════════════════
// SLIDE 6 – CYTOKINES IN ACUTE INFLAMMATION
// ════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  darkBg(s);
  slideTitle(s, "Cytokines in Acute Inflammation", "Based on Robbins & Cotran Table 3.7");

  // Table header
  const headers = ["Cytokine", "Principal Source", "Key Actions"];
  const hWidths = [1.6, 3.1, 4.8];
  const hX = [0.25, 1.88, 4.95];
  headers.forEach((h, i) => {
    s.addShape(pres.ShapeType.rect, { x: hX[i], y: 1.22, w: hWidths[i], h: 0.35, fill: { color: C.accent }, line: { type: "none" } });
    s.addText(h, { x: hX[i] + 0.08, y: 1.22, w: hWidths[i] - 0.08, h: 0.35, fontSize: 12, bold: true, color: C.white, fontFace: "Calibri", valign: "middle", margin: 0 });
  });

  const rows = [
    ["TNF-α", "Macrophages, DC, mast cells, T cells", "Endothelial adhesion molecules ↑; systemic effects (fever, wasting, shock); promotes leukocyte recruitment"],
    ["IL-1α/β", "Macrophages, DC, epithelial cells", "Similar to TNF; greater role in fever; activates endothelium; acute phase response"],
    ["IL-6", "Macrophages, endothelium, T cells", "Acute phase proteins (CRP, fibrinogen); promotes B cell differentiation; fever"],
    ["Chemokines", "Macrophages, endothelium, T cells, mast cells", "Recruit leukocytes to inflammation sites; regulate leukocyte migration in tissues"],
    ["IL-17", "T lymphocytes (Th17)", "Recruits neutrophils and monocytes; amplifies inflammation"],
  ];

  const rowColors = [C.navy, C.cardBg, C.navy, C.cardBg, C.navy];
  rows.forEach((row, ri) => {
    const y = 1.57 + ri * 0.68;
    rowColors.forEach((_, ci) => {
      s.addShape(pres.ShapeType.rect, { x: hX[ci], y, w: hWidths[ci], h: 0.66, fill: { color: rowColors[ri] }, line: { color: C.midBlue, width: 0.5 } });
      s.addText(row[ci], {
        x: hX[ci] + 0.08, y: y + 0.04, w: hWidths[ci] - 0.1, h: 0.58,
        fontSize: ci === 0 ? 12 : 10.5, bold: ci === 0, color: ci === 0 ? C.yellow : C.light,
        fontFace: "Calibri", valign: "middle", margin: 0,
      });
    });
  });
  footerNote(s, "Robbins & Cotran Pathologic Basis of Disease, 10e – Chapter 3 (Table 3.7)");
}

// ════════════════════════════════════════════════════════════════
// SLIDE 7 – CYTOKINES IN CHRONIC INFLAMMATION
// ════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  darkBg(s);
  slideTitle(s, "Cytokines in Chronic Inflammation");

  const left = [
    { cytokine: "IL-12", source: "DC, macrophages", action: "Drives IFN-γ production; promotes Th1 polarization; activates NK cells", color: C.accent },
    { cytokine: "IFN-γ", source: "T lymphocytes, NK cells", action: "Classic macrophage activator; ↑MHC expression; kills microbes and tumor cells; drives Th1 immunity", color: C.teal },
    { cytokine: "IL-17", source: "Th17 T cells", action: "Recruits neutrophils and monocytes to chronic inflammation sites; key in autoimmune diseases", color: C.orange },
    { cytokine: "TGF-β", source: "T regs, macrophages, platelets", action: "Anti-inflammatory; promotes fibrosis; drives Treg differentiation; inhibits effector T cells", color: C.green },
    { cytokine: "IL-10", source: "Macrophages, T regs", action: "Anti-inflammatory; suppresses macrophage and DC activation; maintains homeostasis", color: C.yellow },
  ];

  left.forEach((item, i) => {
    const y = 1.25 + i * 0.8;
    s.addShape(pres.ShapeType.rect, { x: 0.3, y, w: 1.3, h: 0.66, fill: { color: item.color }, line: { type: "none" } });
    s.addText(item.cytokine, { x: 0.3, y: y + 0.08, w: 1.3, h: 0.5, fontSize: 14, bold: true, color: C.white, fontFace: "Calibri", align: "center", valign: "middle", margin: 0 });

    s.addShape(pres.ShapeType.rect, { x: 1.65, y, w: 7.9, h: 0.66, fill: { color: C.cardBg }, line: { color: item.color, width: 1 } });
    s.addText(`Source: ${item.source}`, { x: 1.75, y: y + 0.04, w: 7.7, h: 0.22, fontSize: 10, color: C.muted, fontFace: "Calibri", italic: true, margin: 0 });
    s.addText(item.action, { x: 1.75, y: y + 0.28, w: 7.7, h: 0.34, fontSize: 11, color: C.light, fontFace: "Calibri", margin: 0 });
  });

  footerNote(s, "Robbins & Cotran, 10e – Chapter 3; Cellular and Molecular Immunology (Abbas 10e)");
}

// ════════════════════════════════════════════════════════════════
// SLIDE 8 – TH1 / TH2 / TH17 / TREG CYTOKINE BALANCE
// ════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  darkBg(s);
  slideTitle(s, "T Helper Cell Subsets & Cytokine Balance");

  const subsets = [
    {
      name: "Th1",
      polarizing: "IL-12, IFN-γ",
      master: "T-bet",
      produces: "IFN-γ, TNF, IL-2",
      role: "Intracellular pathogens, macrophage activation, autoimmunity (MS, T1DM)",
      color: C.accent,
    },
    {
      name: "Th2",
      polarizing: "IL-4",
      master: "GATA-3",
      produces: "IL-4, IL-5, IL-13",
      role: "Parasites, allergy, asthma; B cell help; eosinophil activation",
      color: C.orange,
    },
    {
      name: "Th17",
      polarizing: "TGF-β + IL-6, IL-23",
      master: "RORγt",
      produces: "IL-17A/F, IL-22, IL-21",
      role: "Extracellular pathogens (fungi, bacteria); IBD, RA, psoriasis",
      color: C.red,
    },
    {
      name: "Treg",
      polarizing: "TGF-β, IL-2",
      master: "FoxP3",
      produces: "IL-10, TGF-β, IL-35",
      role: "Suppresses autoimmunity; maintains peripheral tolerance; limits inflammation",
      color: C.green,
    },
  ];

  subsets.forEach((ss, i) => {
    const x = 0.25 + i * 2.4;
    // Header
    s.addShape(pres.ShapeType.rect, { x, y: 1.25, w: 2.28, h: 0.42, fill: { color: ss.color }, line: { type: "none" } });
    s.addText(ss.name, { x, y: 1.25, w: 2.28, h: 0.42, fontSize: 18, bold: true, color: C.white, fontFace: "Calibri", align: "center", valign: "middle", margin: 0 });
    // Body
    s.addShape(pres.ShapeType.rect, { x, y: 1.67, w: 2.28, h: 3.62, fill: { color: C.cardBg }, line: { color: ss.color, width: 1.2 } });
    const rows = [
      ["Polarizing\nSignals", ss.polarizing],
      ["Master\nTranscription", ss.master],
      ["Cytokines\nProduced", ss.produces],
      ["Protective\nRole", ss.role],
    ];
    rows.forEach(([label, val], ri) => {
      const ry = 1.72 + ri * 0.88;
      s.addText(label, { x: x + 0.1, y: ry, w: 2.08, h: 0.3, fontSize: 9.5, bold: true, color: ss.color, fontFace: "Calibri", margin: 0 });
      s.addText(val, { x: x + 0.1, y: ry + 0.3, w: 2.08, h: 0.52, fontSize: 10, color: C.light, fontFace: "Calibri", margin: 0 });
    });
  });
  footerNote(s, "Roitt's Essential Immunology 14e; Cellular and Molecular Immunology, Abbas 10e");
}

// ════════════════════════════════════════════════════════════════
// SLIDE 9 – CYTOKINE STORM
// ════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  darkBg(s);
  slideTitle(s, "Cytokine Storm", "Pathological amplification of the cytokine response");

  // Definition box
  s.addShape(pres.ShapeType.rect, { x: 0.4, y: 1.3, w: 9.2, h: 0.7, fill: { color: C.midBlue }, line: { color: C.red, width: 1.5 } });
  s.addText(
    "\"TNF, IL-6, and IL-1 are the principal cytokine mediators of sepsis, but IFN-γ and IL-12 may also contribute. This early burst of large amounts of cytokines is sometimes called a cytokine storm.\" — Cellular & Molecular Immunology",
    { x: 0.5, y: 1.34, w: 9, h: 0.62, fontSize: 11, color: C.light, fontFace: "Calibri", italic: true, valign: "middle", margin: 0 }
  );

  const causes = [
    { title: "Bacterial Sepsis", detail: "LPS triggers massive TNF-α, IL-1, IL-6 release from macrophages; vascular collapse, DIC, multi-organ failure" },
    { title: "Viral Infection", detail: "SARS-CoV-2, influenza: plasmacytoid DC → IFN storm; TNF, IL-6 surges; endothelial injury, coagulopathy" },
    { title: "Macrophage Activation Syndrome (MAS)", detail: "Fulminant cytokine storm: fever, DIC, hepatobiliary dysfunction, cytopenias, hyperferritinemia" },
    { title: "CAR-T / Immunotherapy", detail: "T cell activation → massive IL-6, IFN-γ release; clinical syndrome managed with tocilizumab" },
  ];

  causes.forEach((c, i) => {
    const x = 0.4 + (i % 2) * 4.7;
    const y = 2.15 + Math.floor(i / 2) * 1.45;
    s.addShape(pres.ShapeType.rect, { x, y, w: 4.5, h: 0.32, fill: { color: C.red }, line: { type: "none" } });
    s.addText(c.title, { x: x + 0.1, y: y + 0.03, w: 4.3, h: 0.26, fontSize: 12, bold: true, color: C.white, fontFace: "Calibri", margin: 0 });
    s.addShape(pres.ShapeType.rect, { x, y: y + 0.32, w: 4.5, h: 1.05, fill: { color: C.cardBg }, line: { color: C.red, width: 1 } });
    s.addText(c.detail, { x: x + 0.1, y: y + 0.35, w: 4.3, h: 1.0, fontSize: 10.5, color: C.light, fontFace: "Calibri", margin: 0 });
  });

  footerNote(s, "Cellular & Molecular Immunology (Abbas); Medical Microbiology 9e; Goldman-Cecil Medicine 2025; Harrison's Principles 22e");
}

// ════════════════════════════════════════════════════════════════
// SLIDE 10 – CYTOKINES IN AUTOIMMUNE DISEASE
// ════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  darkBg(s);
  slideTitle(s, "Cytokines in Autoimmune Disease");

  s.addText(
    "Under homeostatic conditions, proinflammatory cytokine responses are balanced by anti-inflammatory responses. Persistent challenge or immune dysregulation leads to chronic inflammatory disease. (Henry's 7e)",
    { x: 0.4, y: 1.25, w: 9.2, h: 0.55, fontSize: 11.5, color: C.light, fontFace: "Calibri", italic: true, fill: { color: C.cardBg }, margin: [4, 8, 4, 8] }
  );

  const diseases = [
    { disease: "Rheumatoid Arthritis", cytokines: "TNF-α ↑, IL-1β ↑, IL-6 ↑, IL-17A ↑, IL-18 ↑", targets: "Anti-TNF (etanercept, infliximab), anti-IL-6R (tocilizumab), anakinra" },
    { disease: "Systemic Lupus Erythematosus", cytokines: "IFN-α ↑ (type I IFN signature), IL-6 ↑, BLyS ↑; IL-10 dysregulated", targets: "Belimumab (anti-BLyS), anifrolumab (anti-IFNAR)" },
    { disease: "IBD (Crohn's/UC)", cytokines: "TNF-α ↑, IL-1β ↑, IL-6 ↑, IL-12/23 ↑, IL-17A ↑", targets: "Anti-TNF (infliximab), anti-IL-12/23 (ustekinumab), anti-IL-17" },
    { disease: "Psoriasis", cytokines: "IL-17A ↑↑, IL-23 ↑, IL-22 ↑, TNF-α ↑", targets: "Anti-IL-17 (secukinumab, ixekizumab), anti-IL-23 (guselkumab, risankizumab)" },
    { disease: "Multiple Sclerosis", cytokines: "IFN-γ ↑, IL-17A ↑, IL-6 ↑; IL-10 reduced in lesions", targets: "IFN-β therapy, natalizumab, ozanimod" },
  ];

  const cols = ["Disease", "Key Cytokines Elevated", "Therapeutic Targets"];
  const cx = [0.3, 2.95, 6.5];
  const cw = [2.55, 3.45, 3.0];
  cols.forEach((c, i) => {
    s.addShape(pres.ShapeType.rect, { x: cx[i], y: 1.88, w: cw[i], h: 0.32, fill: { color: C.midBlue }, line: { color: C.accent, width: 0.5 } });
    s.addText(c, { x: cx[i] + 0.06, y: 1.88, w: cw[i] - 0.1, h: 0.32, fontSize: 11, bold: true, color: C.teal, fontFace: "Calibri", valign: "middle", margin: 0 });
  });

  diseases.forEach((d, ri) => {
    const y = 2.2 + ri * 0.61;
    const rowBg = ri % 2 === 0 ? C.cardBg : C.navy;
    const vals = [d.disease, d.cytokines, d.targets];
    vals.forEach((v, ci) => {
      s.addShape(pres.ShapeType.rect, { x: cx[ci], y, w: cw[ci], h: 0.59, fill: { color: rowBg }, line: { color: C.midBlue, width: 0.5 } });
      s.addText(v, { x: cx[ci] + 0.06, y: y + 0.04, w: cw[ci] - 0.1, h: 0.51, fontSize: ci === 0 ? 11 : 10, bold: ci === 0, color: ci === 0 ? C.yellow : C.light, fontFace: "Calibri", valign: "middle", margin: 0 });
    });
  });

  footerNote(s, "Henry's 7e; Roitt's 14e; Robbins & Cotran 10e");
}

// ════════════════════════════════════════════════════════════════
// SLIDE 11 – CYTOKINES IN CANCER
// ════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  darkBg(s);
  slideTitle(s, "Cytokines in Cancer", "Dual role: tumor suppression vs. tumor promotion");

  // Two column layout
  // Tumor promoting
  s.addShape(pres.ShapeType.rect, { x: 0.3, y: 1.25, w: 4.45, h: 0.38, fill: { color: C.red }, line: { type: "none" } });
  s.addText("TUMOR PROMOTING", { x: 0.3, y: 1.25, w: 4.45, h: 0.38, fontSize: 13, bold: true, color: C.white, fontFace: "Calibri", align: "center", valign: "middle", margin: 0 });
  s.addShape(pres.ShapeType.rect, { x: 0.3, y: 1.63, w: 4.45, h: 3.4, fill: { color: C.cardBg }, line: { color: C.red, width: 1 } });
  const promoting = [
    "TNF-α: NF-κB activation → anti-apoptotic genes, tumor survival",
    "IL-6: JAK-STAT3 → proliferation; Castleman disease; promotes multiple myeloma growth",
    "IL-10: Immunosuppressive in tumor microenvironment; limits antitumor CTL responses",
    "TGF-β: Suppresses tumor immunity; promotes EMT and metastasis",
    "VEGF (cytokine-like): Angiogenesis driven by IL-6, TNF-α stimulation",
    "IL-17: Promotes angiogenesis; links chronic inflammation to cancer (CRC, NSCLC)",
  ];
  const ptArr = promoting.map((p, i) => ({ text: p, options: { bullet: { indent: 10 }, breakLine: i < promoting.length - 1, color: C.light } }));
  s.addText(ptArr, { x: 0.4, y: 1.68, w: 4.25, h: 3.3, fontSize: 10.5, fontFace: "Calibri", valign: "top", margin: 0 });

  // Tumor suppressing
  s.addShape(pres.ShapeType.rect, { x: 5.25, y: 1.25, w: 4.45, h: 0.38, fill: { color: C.green }, line: { type: "none" } });
  s.addText("TUMOR SUPPRESSING / THERAPY", { x: 5.25, y: 1.25, w: 4.45, h: 0.38, fontSize: 13, bold: true, color: C.white, fontFace: "Calibri", align: "center", valign: "middle", margin: 0 });
  s.addShape(pres.ShapeType.rect, { x: 5.25, y: 1.63, w: 4.45, h: 3.4, fill: { color: C.cardBg }, line: { color: C.green, width: 1 } });
  const suppressing = [
    "IFN-α: Approved for melanoma, lymphoma, CML, Kaposi sarcoma — inhibits proliferation, ↑MHC-I",
    "IL-2 (high-dose): ~10% response in melanoma/RCC; stimulates CD8+ CTLs and NK cells",
    "IFN-γ: Macrophage activation; antitumor in animal models; ↑MHC-I → CTL susceptibility",
    "IL-12: Activates NK cells + CTLs; anti-angiogenic via IFN-γ; immunotherapy research",
    "GM-CSF: Used post-chemotherapy; enhances DC accumulation in tumors (TVEC contains GM-CSF gene)",
    "G-CSF / G-CSF analogs: Reduce febrile neutropenia after chemotherapy",
  ];
  const stArr = suppressing.map((p, i) => ({ text: p, options: { bullet: { indent: 10 }, breakLine: i < suppressing.length - 1, color: C.light } }));
  s.addText(stArr, { x: 5.35, y: 1.68, w: 4.25, h: 3.3, fontSize: 10.5, fontFace: "Calibri", valign: "top", margin: 0 });

  footerNote(s, "Cellular & Molecular Immunology (Abbas 10e) – Chapter 15; Henry's 7e; Robbins & Cotran 10e");
}

// ════════════════════════════════════════════════════════════════
// SLIDE 12 – KEY INDIVIDUAL CYTOKINES: TNF, IL-1, IL-6
// ════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  darkBg(s);
  slideTitle(s, "Key Cytokines in Depth: TNF-α · IL-1 · IL-6");

  const cytokines = [
    {
      name: "TNF-α",
      color: C.red,
      source: "Macrophages, DC, mast cells, T cells",
      receptor: "TNFR1 (ubiquitous), TNFR2",
      pathway: "NF-κB, caspase-dependent apoptosis",
      actions: [
        "↑ Endothelial adhesion molecules (ICAM-1, E-selectin, VCAM-1)",
        "Fever, weight loss (cachexia), hypotension",
        "Acute phase response",
        "Promotes neutrophil and monocyte recruitment",
        "High levels → septic shock, DIC",
      ],
      disease: "Sepsis, RA, IBD, Crohn's, cachexia",
    },
    {
      name: "IL-1β",
      color: C.orange,
      source: "Macrophages, DC, epithelial cells",
      receptor: "IL-1R1 (signal) / IL-1R2 (decoy), IL-1RA (antagonist)",
      pathway: "NF-κB, MAPK via MyD88/IRAK",
      actions: [
        "Potent fever induction (hypothalamic PGE2)",
        "Endothelial activation; promotes vascular permeability",
        "Stimulates IL-6 and IL-8 production",
        "Activates T cells and B cells",
        "Drives inflammasome in gout (IL-1β cleaved by caspase-1)",
      ],
      disease: "Gout, Still's disease, NLRP3 inflammasomopathies, RA",
    },
    {
      name: "IL-6",
      color: C.teal,
      source: "Macrophages, endothelium, fibroblasts, T cells",
      receptor: "IL-6R (soluble + membrane bound) / gp130",
      pathway: "JAK1/2 → STAT3 (primary); MAPK",
      actions: [
        "Major driver of acute phase response (CRP, SAA, fibrinogen ↑)",
        "Hepatocyte stimulation → CRP production (biomarker use)",
        "Promotes B cell differentiation → antibody production",
        "Elevated in COVID-19, Castleman disease, myeloma",
        "Tocilizumab targets IL-6R (RA, cytokine storm)",
      ],
      disease: "Multiple myeloma, Castleman disease, RA, sepsis, COVID-19",
    },
  ];

  cytokines.forEach((cy, i) => {
    const x = 0.22 + i * 3.2;
    s.addShape(pres.ShapeType.rect, { x, y: 1.2, w: 3.08, h: 0.38, fill: { color: cy.color }, line: { type: "none" } });
    s.addText(cy.name, { x, y: 1.2, w: 3.08, h: 0.38, fontSize: 16, bold: true, color: C.white, fontFace: "Calibri", align: "center", valign: "middle", margin: 0 });
    s.addShape(pres.ShapeType.rect, { x, y: 1.58, w: 3.08, h: 3.82, fill: { color: C.cardBg }, line: { color: cy.color, width: 1 } });

    const fields = [
      ["Source", cy.source],
      ["Receptor", cy.receptor],
      ["Pathway", cy.pathway],
      ["Disease", cy.disease],
    ];
    let yOff = 1.62;
    fields.forEach(([label, val]) => {
      s.addText(label + ": ", { x: x + 0.1, y: yOff, w: 0.75, h: 0.28, fontSize: 9, bold: true, color: cy.color, fontFace: "Calibri", margin: 0 });
      s.addText(val, { x: x + 0.85, y: yOff, w: 2.1, h: 0.28, fontSize: 9, color: C.light, fontFace: "Calibri", margin: 0 });
      yOff += 0.28;
    });
    yOff += 0.06;
    s.addText("Key Actions:", { x: x + 0.1, y: yOff, w: 2.9, h: 0.22, fontSize: 9, bold: true, color: cy.color, fontFace: "Calibri", margin: 0 });
    yOff += 0.2;
    const actArr = cy.actions.map((a, ai) => ({ text: a, options: { bullet: { indent: 8 }, breakLine: ai < cy.actions.length - 1, color: C.light } }));
    s.addText(actArr, { x: x + 0.1, y: yOff, w: 2.9, h: 2.2, fontSize: 9, fontFace: "Calibri", valign: "top", margin: 0 });
  });

  footerNote(s, "Robbins & Cotran 10e (Chapter 3); Henry's 7e; Cellular & Molecular Immunology (Abbas 10e)");
}

// ════════════════════════════════════════════════════════════════
// SLIDE 13 – INTERFERONS & CHEMOKINES
// ════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  darkBg(s);
  slideTitle(s, "Interferons & Chemokines");

  // Interferons
  s.addShape(pres.ShapeType.rect, { x: 0.3, y: 1.22, w: 4.55, h: 0.35, fill: { color: C.teal }, line: { type: "none" } });
  s.addText("INTERFERONS", { x: 0.3, y: 1.22, w: 4.55, h: 0.35, fontSize: 13, bold: true, color: C.white, fontFace: "Calibri", align: "center", valign: "middle", margin: 0 });

  const ifnRows = [
    { type: "Type I  IFN-α/β", detail: "Antiviral defense; produced by plasmacytoid DCs; ↑MHC-I; used in hepatitis, hairy cell leukemia, melanoma" },
    { type: "Type II  IFN-γ", detail: "Macrophage activator; promotes Th1; upregulates MHC-I and II; key in tuberculosis, intracellular pathogens" },
    { type: "Type III  IFN-λ", detail: "Mucosal antiviral immunity; acts at epithelial barriers; limits spread of respiratory viruses" },
    { type: "IFN-α therapy", detail: "Approved: melanoma, CML, HCV, hairy cell leukemia, Kaposi sarcoma; inhibits proliferation + ↑NK killing" },
  ];
  ifnRows.forEach((r, i) => {
    const y = 1.57 + i * 0.88;
    const bg = i % 2 === 0 ? C.cardBg : C.navy;
    s.addShape(pres.ShapeType.rect, { x: 0.3, y, w: 4.55, h: 0.84, fill: { color: bg }, line: { color: C.teal, width: 0.5 } });
    s.addText(r.type, { x: 0.4, y: y + 0.04, w: 4.35, h: 0.26, fontSize: 11, bold: true, color: C.teal, fontFace: "Calibri", margin: 0 });
    s.addText(r.detail, { x: 0.4, y: y + 0.3, w: 4.35, h: 0.5, fontSize: 10, color: C.light, fontFace: "Calibri", margin: 0 });
  });

  // Chemokines
  s.addShape(pres.ShapeType.rect, { x: 5.2, y: 1.22, w: 4.55, h: 0.35, fill: { color: C.orange }, line: { type: "none" } });
  s.addText("CHEMOKINES", { x: 5.2, y: 1.22, w: 4.55, h: 0.35, fontSize: 13, bold: true, color: C.white, fontFace: "Calibri", align: "center", valign: "middle", margin: 0 });

  const chemRows = [
    { type: "CXC (α-chemokines)", detail: "CXCL8 (IL-8): neutrophil chemotaxis; CXCL9/10/11: recruit Th1/CTLs via CXCR3; CXCL12/SDF-1: B cell & stem cell homing" },
    { type: "CC (β-chemokines)", detail: "CCL2 (MCP-1): monocyte recruitment; CCL5 (RANTES): T cell and eosinophil attraction; CCL11: eosinophils in allergy" },
    { type: "CX3C & XC", detail: "Fractalkine (CX3CL1): tethers monocytes to endothelium; Lymphotactin (XCL1): attracts CD8+ T cells" },
    { type: "Disease Relevance", detail: "HIV uses CCR5/CXCR4 as co-receptors; maraviroc (CCR5 antagonist) as antiretroviral; CXCR4 in bone marrow niche" },
  ];
  chemRows.forEach((r, i) => {
    const y = 1.57 + i * 0.88;
    const bg = i % 2 === 0 ? C.cardBg : C.navy;
    s.addShape(pres.ShapeType.rect, { x: 5.2, y, w: 4.55, h: 0.84, fill: { color: bg }, line: { color: C.orange, width: 0.5 } });
    s.addText(r.type, { x: 5.3, y: y + 0.04, w: 4.35, h: 0.26, fontSize: 11, bold: true, color: C.orange, fontFace: "Calibri", margin: 0 });
    s.addText(r.detail, { x: 5.3, y: y + 0.3, w: 4.35, h: 0.5, fontSize: 10, color: C.light, fontFace: "Calibri", margin: 0 });
  });

  footerNote(s, "Cellular & Molecular Immunology (Abbas); Robbins & Cotran 10e; Roitt's 14e");
}

// ════════════════════════════════════════════════════════════════
// SLIDE 14 – ANTI-CYTOKINE THERAPEUTICS
// ════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  darkBg(s);
  slideTitle(s, "Anti-Cytokine Therapeutics & Cytokine Therapy", "Biologics and recombinant cytokines in clinical use");

  const drugs = [
    { drug: "Infliximab / Adalimumab / Etanercept", target: "TNF-α", indication: "RA, Crohn's, UC, ankylosing spondylitis, psoriasis", type: "Anti-cytokine", color: C.red },
    { drug: "Tocilizumab / Sarilumab", target: "IL-6 receptor", indication: "RA, GCA, cytokine storm (COVID-19, CAR-T toxicity)", type: "Anti-cytokine", color: C.teal },
    { drug: "Anakinra / Canakinumab", target: "IL-1R / IL-1β", indication: "Gout, Still's disease, CAPS, pericarditis, MAS/sepsis", type: "Anti-cytokine", color: C.orange },
    { drug: "Secukinumab / Ixekizumab", target: "IL-17A", indication: "Psoriasis, PsA, ankylosing spondylitis", type: "Anti-cytokine", color: C.accent },
    { drug: "Ustekinumab", target: "IL-12/IL-23 (p40)", indication: "Crohn's disease, UC, psoriasis, PsA", type: "Anti-cytokine", color: C.green },
    { drug: "IL-2 (high dose)", target: "IL-2 (agonist)", indication: "Melanoma, RCC — ~10% response; vascular leak limits use", type: "Cytokine therapy", color: C.yellow },
    { drug: "IFN-α (pegylated)", target: "IFN-α (agonist)", indication: "HCV, HBV, hairy cell leukemia, melanoma, CML, Kaposi sarcoma", type: "Cytokine therapy", color: C.yellow },
    { drug: "G-CSF (filgrastim) / GM-CSF", target: "CSF receptor", indication: "Post-chemotherapy neutropenia; stem cell mobilization", type: "Cytokine therapy", color: C.green },
  ];

  // Table
  const cols = ["Drug / Agent", "Target", "Indication", "Type"];
  const cx = [0.2, 3.15, 5.8, 8.95];
  const cw = [2.85, 2.55, 3.05, 0.9];
  cols.forEach((c, i) => {
    s.addShape(pres.ShapeType.rect, { x: cx[i], y: 1.22, w: cw[i], h: 0.32, fill: { color: C.midBlue }, line: { color: C.accent, width: 0.5 } });
    s.addText(c, { x: cx[i] + 0.05, y: 1.22, w: cw[i] - 0.08, h: 0.32, fontSize: 11, bold: true, color: C.teal, fontFace: "Calibri", valign: "middle", margin: 0 });
  });

  drugs.forEach((d, ri) => {
    const y = 1.54 + ri * 0.5;
    const rowBg = ri % 2 === 0 ? C.cardBg : C.navy;
    const vals = [d.drug, d.target, d.indication, d.type];
    vals.forEach((v, ci) => {
      s.addShape(pres.ShapeType.rect, { x: cx[ci], y, w: cw[ci], h: 0.48, fill: { color: rowBg }, line: { color: C.midBlue, width: 0.5 } });
      s.addText(v, {
        x: cx[ci] + 0.05, y: y + 0.04, w: cw[ci] - 0.08, h: 0.4,
        fontSize: ci === 3 ? 8.5 : 9.5, color: ci === 0 ? C.yellow : ci === 3 ? d.color : C.light,
        bold: ci === 0 || ci === 3,
        fontFace: "Calibri", valign: "middle", margin: 0,
      });
    });
  });

  footerNote(s, "Cellular & Molecular Immunology (Abbas 10e); Goodman & Gilman's Pharmacology; Robbins & Cotran 10e");
}

// ════════════════════════════════════════════════════════════════
// SLIDE 15 – JAK INHIBITORS & CYTOKINE ASSAYS
// ════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  darkBg(s);
  slideTitle(s, "JAK Inhibitors & Cytokine Lab Measurement");

  // Left: JAKi
  s.addShape(pres.ShapeType.rect, { x: 0.3, y: 1.22, w: 4.5, h: 0.35, fill: { color: C.accent }, line: { type: "none" } });
  s.addText("JAK INHIBITORS (JAKi)", { x: 0.3, y: 1.22, w: 4.5, h: 0.35, fontSize: 13, bold: true, color: C.white, fontFace: "Calibri", align: "center", valign: "middle", margin: 0 });
  s.addShape(pres.ShapeType.rect, { x: 0.3, y: 1.57, w: 4.5, h: 3.78, fill: { color: C.cardBg }, line: { color: C.accent, width: 1 } });
  const jakiContent = [
    "Block JAK1, JAK2, JAK3, TYK2 — block downstream STAT activation",
    "Oral small-molecule drugs; broad cytokine signal suppression",
    "",
    "Tofacitinib (JAK1/3) — RA, UC, psoriatic arthritis",
    "Baricitinib (JAK1/2) — RA, alopecia areata, COVID-19",
    "Ruxolitinib (JAK1/2) — myelofibrosis, polycythemia vera, GVHD",
    "Upadacitinib (JAK1 selective) — RA, IBD, atopic dermatitis",
    "",
    "Side effects: ↑infection risk, reactivation of TB/herpes zoster",
    "JAK2 mutations (V617F) in myeloproliferative neoplasms — diagnostic marker",
    "γc receptor mutations → SCID (X-linked SCID via JAK3 deficiency)",
  ];
  const jakArr = jakiContent.map((t, i) => ({
    text: t,
    options: t === "" ? { breakLine: true } : { bullet: { indent: 10 }, breakLine: i < jakiContent.length - 1, color: C.light },
  }));
  s.addText(jakArr, { x: 0.4, y: 1.61, w: 4.3, h: 3.68, fontSize: 10.5, fontFace: "Calibri", valign: "top", margin: 0 });

  // Right: Cytokine Assays
  s.addShape(pres.ShapeType.rect, { x: 5.2, y: 1.22, w: 4.5, h: 0.35, fill: { color: C.green }, line: { type: "none" } });
  s.addText("CYTOKINE LAB MEASUREMENT", { x: 5.2, y: 1.22, w: 4.5, h: 0.35, fontSize: 13, bold: true, color: C.white, fontFace: "Calibri", align: "center", valign: "middle", margin: 0 });
  s.addShape(pres.ShapeType.rect, { x: 5.2, y: 1.57, w: 4.5, h: 3.78, fill: { color: C.cardBg }, line: { color: C.green, width: 1 } });

  const assayContent = [
    "ELISA: Gold standard for quantitative measurement of individual cytokines (IL-1α/β, IL-4, IL-5, IL-6, IL-10, IFN-γ, TNF-α)",
    "",
    "Multiplex assays (Luminex, electrochemiluminescence): Measure panels of 20–40 cytokines simultaneously; low volume; high sensitivity",
    "",
    "Bioassays: Historically gold standard; time-consuming; not routine clinical use",
    "",
    "Clinical uses:",
    "  • Ferritin + IL-18 + sIL-2R in MAS / HLH diagnosis",
    "  • IL-6 monitoring in CAR-T cytokine syndrome",
    "  • IFN-γ release assays (QuantiFERON) for TB",
    "  • Elevated IL-6 in COVID-19 — prognostic marker",
  ];
  const assayArr = assayContent.map((t, i) => ({
    text: t,
    options: t === "" ? { breakLine: true } : { bullet: { indent: t.startsWith("  ") ? 20 : 10 }, breakLine: i < assayContent.length - 1, color: C.light },
  }));
  s.addText(assayArr, { x: 5.3, y: 1.61, w: 4.3, h: 3.68, fontSize: 10.5, fontFace: "Calibri", valign: "top", margin: 0 });

  footerNote(s, "Henry's Clinical Diagnosis & Management 7e; Goodman & Gilman's Pharmacology 14e");
}

// ════════════════════════════════════════════════════════════════
// SLIDE 16 – CYTOKINES IN PATHOLOGY PRACTICE
// ════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  darkBg(s);
  slideTitle(s, "Cytokines in Pathology Practice", "Recognizing cytokine-mediated tissue changes");

  const topics = [
    {
      title: "Granuloma Formation",
      color: C.teal,
      detail: "IFN-γ activates macrophages → epithelioid cell transformation → granuloma. IL-12 drives Th1 responses upstream. TNF-α essential for granuloma maintenance (anti-TNF → TB reactivation risk).",
    },
    {
      title: "Acute Phase Response",
      color: C.orange,
      detail: "IL-6, IL-1, TNF-α signal hepatocytes → CRP, SAA, fibrinogen ↑; albumin, transferrin ↓. CRP rise on histology workup signals active inflammation. Serum amyloid A → AA amyloidosis in chronic inflammation.",
    },
    {
      title: "Tissue Fibrosis",
      color: C.accent,
      detail: "TGF-β1: master pro-fibrotic cytokine → myofibroblast activation → collagen deposition. PDGF, IL-13 contribute. Seen in hepatic cirrhosis, IPF, post-inflammatory scars.",
    },
    {
      title: "Tumor Microenvironment",
      color: C.red,
      detail: "IL-10, TGF-β → immunosuppressive TME → T cell exhaustion. IL-6/STAT3 → tumor cell survival. M2 macrophage polarization by IL-4, IL-10, IL-13 → poor anti-tumor immunity.",
    },
    {
      title: "Hemophagocytic Lymphohistiocytosis / MAS",
      color: C.yellow,
      detail: "Extreme cytokine storm: IFN-γ, IL-18, IL-6, TNF-α. Histology: hemophagocytosis in marrow/liver. Ferritin >10,000 ng/mL diagnostic clue. Treated with etoposide, dexamethasone, IL-1R antagonist.",
    },
    {
      title: "Inflammatory Bowel Disease",
      color: C.green,
      detail: "Crohn's: Th1/Th17 driven (IFN-γ, IL-17, IL-12/23); non-caseating granulomas. UC: Th2/IL-13 dominant; diffuse mucosal inflammation without granulomas. Anti-TNF and anti-IL-12/23 effective.",
    },
  ];

  topics.forEach((t, i) => {
    const x = 0.22 + (i % 3) * 3.22;
    const y = 1.28 + Math.floor(i / 3) * 2.08;
    s.addShape(pres.ShapeType.rect, { x, y, w: 3.1, h: 0.32, fill: { color: t.color }, line: { type: "none" } });
    s.addText(t.title, { x: x + 0.08, y: y + 0.03, w: 2.94, h: 0.26, fontSize: 10.5, bold: true, color: C.white, fontFace: "Calibri", valign: "middle", margin: 0 });
    s.addShape(pres.ShapeType.rect, { x, y: y + 0.32, w: 3.1, h: 1.68, fill: { color: C.cardBg }, line: { color: t.color, width: 1 } });
    s.addText(t.detail, { x: x + 0.08, y: y + 0.36, w: 2.94, h: 1.6, fontSize: 9.5, color: C.light, fontFace: "Calibri", valign: "top", margin: 0 });
  });

  footerNote(s, "Robbins & Cotran Pathologic Basis of Disease, 10e; Henry's 7e");
}

// ════════════════════════════════════════════════════════════════
// SLIDE 17 – SUMMARY: CYTOKINES AT A GLANCE
// ════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  darkBg(s);
  slideTitle(s, "Summary: Cytokines at a Glance");

  const summaryTable = [
    ["TNF-α", "Inflammation / Sepsis", "Anti-TNF biologics"],
    ["IL-1β", "Fever / Inflammasome", "Anakinra, Canakinumab"],
    ["IL-6", "Acute Phase / Myeloma", "Tocilizumab"],
    ["IFN-γ", "Macrophage Activation / Granuloma", "Emapalumab (anti-IFN-γ for HLH)"],
    ["IL-12/23", "Th1/Th17 differentiation", "Ustekinumab"],
    ["IL-17A", "Neutrophilic Inflammation / Psoriasis", "Secukinumab, Ixekizumab"],
    ["TGF-β", "Fibrosis / Immune suppression", "Pirfenidone (fibrosis); research targets"],
    ["IL-10", "Anti-inflammatory / Tolerance", "Deficiency → IBD; preclinical agonists"],
    ["IFN-α/β", "Antiviral / Type I IFN signature (SLE)", "Pegylated IFN-α; anifrolumab"],
    ["CSFs", "Hematopoiesis / Myeloid support", "G-CSF (filgrastim); GM-CSF (sargramostim)"],
  ];

  const cols = ["Cytokine", "Primary Role / Disease", "Therapeutic Strategy"];
  const cx = [0.25, 2.65, 6.55];
  const cw = [2.3, 3.8, 3.2];
  cols.forEach((c, i) => {
    s.addShape(pres.ShapeType.rect, { x: cx[i], y: 1.2, w: cw[i], h: 0.32, fill: { color: C.accent }, line: { type: "none" } });
    s.addText(c, { x: cx[i] + 0.06, y: 1.2, w: cw[i] - 0.1, h: 0.32, fontSize: 12, bold: true, color: C.white, fontFace: "Calibri", valign: "middle", margin: 0 });
  });

  summaryTable.forEach((row, ri) => {
    const y = 1.52 + ri * 0.39;
    const bg = ri % 2 === 0 ? C.cardBg : C.navy;
    row.forEach((cell, ci) => {
      s.addShape(pres.ShapeType.rect, { x: cx[ci], y, w: cw[ci], h: 0.37, fill: { color: bg }, line: { color: C.midBlue, width: 0.5 } });
      s.addText(cell, {
        x: cx[ci] + 0.06, y: y + 0.04, w: cw[ci] - 0.1, h: 0.3,
        fontSize: ci === 0 ? 11 : 9.5, bold: ci === 0, color: ci === 0 ? C.yellow : C.light,
        fontFace: "Calibri", valign: "middle", margin: 0,
      });
    });
  });

  footerNote(s, "Robbins & Cotran 10e; Henry's 7e; Cellular & Molecular Immunology (Abbas 10e); Roitt's 14e");
}

// ════════════════════════════════════════════════════════════════
// SLIDE 18 – CLOSING / THANK YOU
// ════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color: C.navy };
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 1.5, fill: { color: C.midBlue }, line: { type: "none" } });
  s.addShape(pres.ShapeType.rect, { x: 0, y: 1.5, w: 0.18, h: 4.125, fill: { color: C.accent }, line: { type: "none" } });
  s.addText("Key Takeaways", { x: 0.5, y: 0.1, w: 9, h: 0.7, fontSize: 32, bold: true, color: C.white, fontFace: "Calibri", margin: 0 });
  s.addShape(pres.ShapeType.rect, { x: 0.5, y: 0.88, w: 4.5, h: 0.05, fill: { color: C.accent }, line: { type: "none" } });
  s.addText("Pathology Resident Lecture Series  |  2026", { x: 0.5, y: 0.98, w: 9, h: 0.36, fontSize: 13, color: C.muted, fontFace: "Calibri", italic: true, margin: 0 });

  const takeaways = [
    "Cytokines are pleiotropic, redundant protein mediators active at picomolar concentrations — context and combinations determine effects",
    "JAK-STAT is the primary signaling cascade; NF-κB and MAPK also critical; SOCS proteins provide negative feedback",
    "TNF-α, IL-1β, IL-6 are the master mediators of acute inflammation and sepsis",
    "T helper subsets (Th1/Th2/Th17/Treg) are defined by their cytokine profiles and transcription factors",
    "Cytokine dysregulation drives autoimmunity, cancer, fibrosis, and potentially life-threatening cytokine storm",
    "Anti-cytokine biologics and JAK inhibitors have transformed treatment of RA, IBD, psoriasis, and lymphoma",
    "Pathologists must recognize cytokine-mediated tissue changes: granulomas (IFN-γ), fibrosis (TGF-β), hemophagocytosis (IFN-γ storm)",
  ];
  const taArr = takeaways.map((t, i) => ({
    text: t,
    options: { bullet: { indent: 14 }, breakLine: i < takeaways.length - 1, color: C.light },
  }));
  s.addText(taArr, { x: 0.4, y: 1.6, w: 9.3, h: 3.72, fontSize: 12.5, fontFace: "Calibri", valign: "top", margin: [6, 8, 6, 8], fill: { color: C.cardBg } });

  s.addText("Questions & Discussion", { x: 0.3, y: 5.18, w: 9.4, h: 0.32, fontSize: 14, bold: true, color: C.accent, fontFace: "Calibri", align: "center", margin: 0 });
}

// ── Write file ─────────────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/cytokines-ppt/Cytokines_Health_and_Disease.pptx" })
  .then(() => console.log("DONE: /home/daytona/workspace/cytokines-ppt/Cytokines_Health_and_Disease.pptx"))
  .catch(err => { console.error(err); process.exit(1); });
Editing File

~/cytokines-ppt/build.js

Successfully replaced 1 instance(s) of the string in '/home/daytona/workspace/cytokines-ppt/build.js'
Running Command

cat > /home/daytona/workspace/cytokines-ppt/build.js << 'JSEOF' const pptxgen = require("pptxgenjs"); const pres = new pptxgen(); pres.layout = "LAYOUT_16x9"; pres.title = "Cytokines: Health and Disease"; const C = { navy: "0A1628", darkBg: "0D1F3C", midBlue: "1A3A6B", accent: "3B82F6", teal: "0EA5E9", orange: "F97316", red: "EF4444", green: "22C55E", yellow: "FACC15", white: "FFFFFF", light: "E2EAF4", muted: "94A3B8", cardBg: "132347", }; function darkBg(slide) { slide.background = { color: C.navy }; } function accentLine(slide, y) { slide.addShape(pres.ShapeType.rect, { x: 0.5, y: y || 0.96, w: 9, h: 0.04, fill: { color: C.accent }, line: { type: "none" } }); } function slideTitle(slide, title, sub) { slide.addText(title, { x: 0.5, y: 0.22, w: 9, h: 0.7, fontSize: 28, bold: true, color: C.white, fontFace: "Calibri", margin: 0 }); accentLine(slide, 0.96); if (sub) slide.addText(sub, { x: 0.5, y: 1.05, w: 9, h: 0.36, fontSize: 13, color: C.teal, fontFace: "Calibri", italic: true, margin: 0 }); } function footerNote(slide, text) { slide.addText(text, { x: 0.3, y: 5.25, w: 9.4, h: 0.28, fontSize: 9, color: C.muted, fontFace: "Calibri", italic: true, margin: 0 }); } // ─── SLIDE 1: TITLE ─────────────────────────────────────────────── { const s = pres.addSlide(); s.background = { color: C.navy }; s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.18, h: 5.625, fill: { color: C.accent }, line: { type: "none" } }); s.addShape(pres.ShapeType.rect, { x: 0, y: 4.8, w: 10, h: 0.825, fill: { color: C.midBlue }, line: { type: "none" } }); s.addText("CYTOKINES", { x: 0.4, y: 0.5, w: 9.2, h: 1.2, fontSize: 68, bold: true, color: C.white, fontFace: "Calibri", charSpacing: 10, margin: 0 }); s.addText("Health and Disease", { x: 0.4, y: 1.75, w: 9.2, h: 0.7, fontSize: 36, color: C.teal, fontFace: "Calibri", margin: 0 }); s.addShape(pres.ShapeType.rect, { x: 0.4, y: 2.55, w: 5, h: 0.05, fill: { color: C.accent }, line: { type: "none" } }); s.addText("A Broad Overview for Pathology Residents", { x: 0.4, y: 2.7, w: 9.2, h: 0.45, fontSize: 18, color: C.light, fontFace: "Calibri", italic: true, margin: 0 }); s.addText("Mediators of Immunity · Inflammation · Repair · Disease", { x: 0.4, y: 3.25, w: 9.2, h: 0.38, fontSize: 14, color: C.muted, fontFace: "Calibri", margin: 0 }); s.addText("Pathology Lecture Series | 2026", { x: 0.4, y: 4.88, w: 9.2, h: 0.35, fontSize: 12, color: C.light, fontFace: "Calibri", margin: 0 }); } // ─── SLIDE 2: LEARNING OBJECTIVES ───────────────────────────────── { const s = pres.addSlide(); darkBg(s); slideTitle(s, "Learning Objectives"); const items = [ "Define cytokines and classify the major families: TNF, ILs, IFNs, CSFs, chemokines", "Understand cytokine receptors and key signaling pathways (JAK-STAT, NF-κB, MAPK)", "Describe roles of cytokines in acute and chronic inflammation", "Explain how cytokine dysregulation drives autoimmune disease, cancer, and cytokine storm", "Identify clinically used cytokine therapies and anti-cytokine biologics (anti-TNF, anti-IL-6, JAKi)", "Apply cytokine biology to pathological diagnoses and tissue changes", ]; const tArr = items.map((t, i) => ({ text: t, options: { bullet: { indent: 14 }, breakLine: i < items.length - 1, color: C.light } })); s.addText(tArr, { x: 0.5, y: 1.32, w: 9, h: 4.0, fontSize: 14.5, fontFace: "Calibri", valign: "top", margin: [6, 10, 6, 10], fill: { color: C.cardBg }, line: { color: C.midBlue, width: 1 } }); footerNote(s, "Sources: Robbins & Cotran 10e; Henry's Clinical Diagnosis & Management 7e; Cellular & Molecular Immunology (Abbas 10e); Roitt's 14e"); } // ─── SLIDE 3: WHAT ARE CYTOKINES? ───────────────────────────────── { const s = pres.addSlide(); darkBg(s); slideTitle(s, "What Are Cytokines?", "Pleiotropic protein mediators — active at femtomolar-picomolar concentrations"); s.addText( "\"Cytokines are proteins produced by many cell types — principally activated lymphocytes, macrophages, and dendritic cells, but also endothelial, epithelial, and connective tissue cells — that mediate and regulate immune and inflammatory reactions.\" — Robbins & Cotran, 10e", { x: 0.5, y: 1.32, w: 9, h: 0.72, fontSize: 12, color: C.light, fontFace: "Calibri", italic: true, fill: { color: C.cardBg }, margin: [5, 8, 5, 8] } ); const props = [ { label: "Pleiotropic", body: "One cytokine → multiple effects on different cell types", color: C.accent }, { label: "Redundant", body: "Multiple different cytokines → same biological effect", color: C.teal }, { label: "Synergistic / Antagonistic", body: "Combined cytokine effects are context-dependent", color: C.orange }, { label: "Auto / Para / Endocrine", body: "Acts on secreting cell, adjacent cells, or distant organs", color: C.green }, ]; props.forEach((p, i) => { const x = 0.5 + i * 2.28; s.addShape(pres.ShapeType.rect, { x, y: 2.18, w: 2.2, h: 0.32, fill: { color: p.color }, line: { type: "none" } }); s.addText(p.label, { x: x + 0.08, y: 2.18, w: 2.04, h: 0.32, fontSize: 11, bold: true, color: C.white, fontFace: "Calibri", valign: "middle", margin: 0 }); s.addShape(pres.ShapeType.rect, { x, y: 2.5, w: 2.2, h: 1.0, fill: { color: C.cardBg }, line: { color: p.color, width: 1 } }); s.addText(p.body, { x: x + 0.08, y: 2.54, w: 2.04, h: 0.92, fontSize: 11, color: C.light, fontFace: "Calibri", valign: "middle", margin: 0 }); }); s.addText("Includes: lymphokines · monokines · interleukins · CSFs · interferons · TNF family · chemokines · adipokines", { x: 0.5, y: 3.62, w: 9, h: 0.36, fontSize: 11.5, color: C.muted, fontFace: "Calibri", italic: true, fill: { color: C.cardBg }, margin: [3, 8, 3, 8] }); s.addText("Key concept: The same cytokine may have protective or pathological roles depending on context, timing, and concentration", { x: 0.5, y: 4.08, w: 9, h: 0.42, fontSize: 12, color: C.yellow, fontFace: "Calibri", bold: true, fill: { color: C.midBlue }, margin: [5, 8, 5, 8], align: "center" }); footerNote(s, "Henry's Clinical Diagnosis & Management by Laboratory Methods, 7e; Robbins & Cotran Pathologic Basis of Disease, 10e"); } // ─── SLIDE 4: CYTOKINE FAMILIES ─────────────────────────────────── { const s = pres.addSlide(); darkBg(s); slideTitle(s, "Classification of Cytokine Families"); const families = [ { name: "TNF Family", color: C.red, points: ["TNF-α, TNF-β (lymphotoxin)", "Macrophages, T cells, mast cells", "Regulates apoptosis, survival, organogenesis", "TNFR1 ubiquitous; TNFR2 mainly immune cells", "Prototype mediator of sepsis and cachexia"] }, { name: "Interleukins (ILs)", color: C.accent, points: ["IL-1 family: IL-1α/β, IL-18, IL-33", "IL-6 family: IL-6, IL-11, oncostatin M", "γc family: IL-2, IL-4, IL-7, IL-15, IL-21", "IL-12 family: IL-12, IL-23, IL-27, IL-35", "IL-17 family; IL-10 anti-inflammatory family"] }, { name: "Interferons (IFNs)", color: C.teal, points: ["Type I: IFN-α, IFN-β — antiviral defense", "Type II: IFN-γ — macrophage activation", "Type III: IFN-λ — mucosal antiviral immunity", "IFN-α: antitumor; IFN-γ: Th1 / granuloma", "Type I IFN signature hallmark of SLE"] }, { name: "CSFs & Chemokines", color: C.green, points: ["G-CSF, GM-CSF, M-CSF (IL-3) — hematopoiesis", "CSFs drive myeloid differentiation", "~50 chemokines: CXC (α), CC (β), CX3C, XC", "CXCL8: neutrophil chemotaxis; CXCL12: BM homing", "CCR5/CXCR4 co-receptors for HIV entry"] }, ]; families.forEach((f, i) => { const x = 0.25 + (i % 2) * 4.85; const y = 1.28 + Math.floor(i / 2) * 2.1; s.addShape(pres.ShapeType.rect, { x, y, w: 4.6, h: 0.34, fill: { color: f.color }, line: { type: "none" } }); s.addText(f.name, { x: x + 0.1, y: y + 0.03, w: 4.4, h: 0.28, fontSize: 13, bold: true, color: C.white, fontFace: "Calibri", margin: 0 }); s.addShape(pres.ShapeType.rect, { x, y: y + 0.34, w: 4.6, h: 1.68, fill: { color: C.cardBg }, line: { color: f.color, width: 1 } }); const tArr = f.points.map((p, j) => ({ text: p, options: { bullet: { indent: 10 }, breakLine: j < f.points.length - 1, color: C.light } })); s.addText(tArr, { x: x + 0.12, y: y + 0.38, w: 4.36, h: 1.58, fontSize: 11, fontFace: "Calibri", valign: "top", margin: 0 }); }); footerNote(s, "Henry's 7e (Table 49.1); Cellular & Molecular Immunology (Abbas 10e); Roitt's Essential Immunology 14e"); } // ─── SLIDE 5: RECEPTORS & SIGNALING ────────────────────────────── { const s = pres.addSlide(); darkBg(s); slideTitle(s, "Cytokine Receptors & Signaling Pathways"); const receptors = [ { name: "Class I Hematopoietin Receptors", examples: "IL-2, IL-4, IL-6, IL-7, G-CSF, GM-CSF receptors", pathway: "JAK-STAT", color: C.accent }, { name: "Class II (Interferon) Receptors", examples: "IFN-α/β/γ receptors, IL-10, IL-20 family", pathway: "JAK / STAT1-3", color: C.teal }, { name: "TNF Receptor Superfamily", examples: "TNFR1, TNFR2, FasR, CD40, RANK, DR3/5", pathway: "NF-κB, Caspase", color: C.red }, { name: "Immunoglobulin Superfamily", examples: "IL-1R, IL-18R, M-CSF-R, IL-12Rβ", pathway: "NF-κB, MAPK", color: C.orange }, { name: "Chemokine Receptors (GPCRs)", examples: "CXCR1-6, CCR1-10, CXCR4, CCR5", pathway: "PI3K, MAPK, Ca²⁺", color: C.green }, ]; receptors.forEach((r, i) => { const y = 1.25 + i * 0.79; s.addShape(pres.ShapeType.rect, { x: 0.4, y, w: 0.22, h: 0.62, fill: { color: r.color }, line: { type: "none" } }); s.addShape(pres.ShapeType.rect, { x: 0.65, y, w: 8.9, h: 0.62, fill: { color: C.cardBg }, line: { color: r.color, width: 1 } }); s.addText(r.name, { x: 0.75, y: y + 0.04, w: 3.5, h: 0.28, fontSize: 12, bold: true, color: C.white, fontFace: "Calibri", margin: 0 }); s.addText(r.examples, { x: 0.75, y: y + 0.32, w: 5.8, h: 0.26, fontSize: 10.5, color: C.light, fontFace: "Calibri", margin: 0 }); s.addShape(pres.ShapeType.rect, { x: 7.1, y: y + 0.1, w: 2.2, h: 0.42, fill: { color: r.color }, line: { type: "none" } }); s.addText(r.pathway, { x: 7.1, y: y + 0.1, w: 2.2, h: 0.42, fontSize: 10, bold: true, color: C.white, fontFace: "Calibri", align: "center", valign: "middle", margin: 0 }); }); s.addText("JAK-STAT mechanism: Cytokine binds → receptor dimerization → JAK trans-phosphorylation → STAT recruitment/phosphorylation → STAT dimerization → nuclear translocation → gene transcription. SOCS proteins provide feedback inhibition (e.g. SOCS1-7).", { x: 0.4, y: 5.2, w: 9.2, h: 0.32, fontSize: 9.5, color: C.muted, fontFace: "Calibri", italic: true, margin: 0 }); } // ─── SLIDE 6: ACUTE INFLAMMATION ────────────────────────────────── { const s = pres.addSlide(); darkBg(s); slideTitle(s, "Cytokines in Acute Inflammation", "Robbins & Cotran Table 3.7"); const headers = ["Cytokine", "Principal Source", "Key Actions in Inflammation"]; const hX = [0.25, 1.88, 4.98]; const hW = [1.6, 3.0, 4.8]; headers.forEach((h, i) => { s.addShape(pres.ShapeType.rect, { x: hX[i], y: 1.22, w: hW[i], h: 0.35, fill: { color: C.accent }, line: { type: "none" } }); s.addText(h, { x: hX[i] + 0.08, y: 1.22, w: hW[i] - 0.1, h: 0.35, fontSize: 12, bold: true, color: C.white, fontFace: "Calibri", valign: "middle", margin: 0 }); }); const rows = [ ["TNF-α", "Macrophages, DC, mast cells, T cells", "↑ Endothelial adhesion molecules; fever; cachexia; hypotension; systemic shock at high levels"], ["IL-1α/β", "Macrophages, DC, epithelial cells", "Potent fever (hypothalamic PGE2); endothelial activation; acute phase response; similar to TNF"], ["IL-6", "Macrophages, other cells", "Acute phase proteins (CRP, SAA, fibrinogen ↑); B cell differentiation; fever; elevated in COVID-19"], ["Chemokines", "Macrophages, endothelium, mast cells, T cells", "Leukocyte recruitment to inflammation sites; directional migration; tissue homeostasis"], ["IL-17", "Th17 T lymphocytes", "Neutrophil and monocyte recruitment; amplifies inflammation; bridge from adaptive to innate"], ]; const rowBgs = [C.navy, C.cardBg, C.navy, C.cardBg, C.navy]; rows.forEach((row, ri) => { const y = 1.57 + ri * 0.7; row.forEach((cell, ci) => { s.addShape(pres.ShapeType.rect, { x: hX[ci], y, w: hW[ci], h: 0.68, fill: { color: rowBgs[ri] }, line: { color: C.midBlue, width: 0.5 } }); s.addText(cell, { x: hX[ci] + 0.08, y: y + 0.04, w: hW[ci] - 0.1, h: 0.6, fontSize: ci === 0 ? 13 : 10.5, bold: ci === 0, color: ci === 0 ? C.yellow : C.light, fontFace: "Calibri", valign: "middle", margin: 0 }); }); }); footerNote(s, "Robbins & Cotran Pathologic Basis of Disease, 10e — Chapter 3 (Table 3.7)"); } // ─── SLIDE 7: CHRONIC INFLAMMATION ──────────────────────────────── { const s = pres.addSlide(); darkBg(s); slideTitle(s, "Cytokines in Chronic Inflammation"); const items = [ { cy: "IL-12", src: "DC, macrophages", action: "Promotes Th1 polarization; drives IFN-γ production; activates NK cells; key in intracellular pathogen defense", color: C.accent }, { cy: "IFN-γ", src: "T cells, NK cells", action: "Classic macrophage activator ('M1'); ↑MHC-I & II expression; granuloma formation; antitumor; anti-TNF → TB reactivation by impairing IFN-γ-TNF axis", color: C.teal }, { cy: "IL-17", src: "Th17 T cells", action: "Recruits neutrophils and monocytes; drives tissue damage in psoriasis, RA, IBD, MS; linked to certain cancers", color: C.orange }, { cy: "TGF-β", src: "T regs, macrophages, platelets", action: "Anti-inflammatory (suppresses effector T cells); drives Treg differentiation; promotes fibrosis (liver cirrhosis, IPF, scleroderma); promotes EMT", color: C.green }, { cy: "IL-10", src: "T regs, macrophages", action: "Anti-inflammatory; suppresses macrophage and DC activation; maintains gut homeostasis; IL-10 deficiency → IBD in mice", color: C.yellow }, ]; items.forEach((item, i) => { const y = 1.25 + i * 0.8; s.addShape(pres.ShapeType.rect, { x: 0.3, y, w: 1.3, h: 0.68, fill: { color: item.color }, line: { type: "none" } }); s.addText(item.cy, { x: 0.3, y, w: 1.3, h: 0.68, fontSize: 15, bold: true, color: C.white, fontFace: "Calibri", align: "center", valign: "middle", margin: 0 }); s.addShape(pres.ShapeType.rect, { x: 1.65, y, w: 7.9, h: 0.68, fill: { color: C.cardBg }, line: { color: item.color, width: 1 } }); s.addText(`Source: ${item.src}`, { x: 1.75, y: y + 0.04, w: 7.7, h: 0.22, fontSize: 10, color: C.muted, fontFace: "Calibri", italic: true, margin: 0 }); s.addText(item.action, { x: 1.75, y: y + 0.26, w: 7.7, h: 0.38, fontSize: 11, color: C.light, fontFace: "Calibri", margin: 0 }); }); footerNote(s, "Robbins & Cotran 10e — Chapter 3; Cellular & Molecular Immunology (Abbas 10e)"); } // ─── SLIDE 8: TH1/TH2/TH17/TREG ────────────────────────────────── { const s = pres.addSlide(); darkBg(s); slideTitle(s, "T Helper Subsets & Cytokine Profiles"); const subsets = [ { name: "Th1", pol: "IL-12, IFN-γ", tf: "T-bet", makes: "IFN-γ, TNF, IL-2", role: "Intracellular pathogens; macrophage activation; autoimmunity (MS, T1DM)", color: C.accent }, { name: "Th2", pol: "IL-4", tf: "GATA-3", makes: "IL-4, IL-5, IL-13", role: "Parasites; allergy; asthma; B cell help; eosinophil activation", color: C.orange }, { name: "Th17", pol: "TGF-β + IL-6, IL-23", tf: "RORγt", makes: "IL-17A/F, IL-22, IL-21", role: "Fungi & extracellular bacteria; IBD, RA, psoriasis, MS", color: C.red }, { name: "Treg", pol: "TGF-β, IL-2", tf: "FoxP3", makes: "IL-10, TGF-β, IL-35", role: "Peripheral tolerance; prevents autoimmunity; limits excess inflammation", color: C.green }, ]; subsets.forEach((ss, i) => { const x = 0.25 + i * 2.4; s.addShape(pres.ShapeType.rect, { x, y: 1.25, w: 2.28, h: 0.42, fill: { color: ss.color }, line: { type: "none" } }); s.addText(ss.name, { x, y: 1.25, w: 2.28, h: 0.42, fontSize: 18, bold: true, color: C.white, fontFace: "Calibri", align: "center", valign: "middle", margin: 0 }); s.addShape(pres.ShapeType.rect, { x, y: 1.67, w: 2.28, h: 3.62, fill: { color: C.cardBg }, line: { color: ss.color, width: 1.2 } }); const rows = [["Polarizing", ss.pol], ["Master TF", ss.tf], ["Produces", ss.makes], ["Role", ss.role]]; rows.forEach(([label, val], ri) => { const ry = 1.72 + ri * 0.88; s.addText(label, { x: x + 0.1, y: ry, w: 2.08, h: 0.26, fontSize: 9.5, bold: true, color: ss.color, fontFace: "Calibri", margin: 0 }); s.addText(val, { x: x + 0.1, y: ry + 0.27, w: 2.08, h: 0.56, fontSize: 10, color: C.light, fontFace: "Calibri", margin: 0 }); }); }); footerNote(s, "Roitt's Essential Immunology 14e; Cellular & Molecular Immunology, Abbas 10e"); } // ─── SLIDE 9: CYTOKINE STORM ────────────────────────────────────── { const s = pres.addSlide(); darkBg(s); slideTitle(s, "Cytokine Storm", "Pathological amplification of cytokine responses"); s.addShape(pres.ShapeType.rect, { x: 0.4, y: 1.28, w: 9.2, h: 0.7, fill: { color: C.midBlue }, line: { color: C.red, width: 1.5 } }); s.addText("\"TNF, IL-6, and IL-1 are the principal cytokine mediators of sepsis, but IFN-γ and IL-12 may also contribute. This early burst of large amounts of cytokines is sometimes called a cytokine storm.\" — Cellular & Molecular Immunology (Abbas 10e)", { x: 0.5, y: 1.32, w: 9, h: 0.62, fontSize: 11, color: C.light, fontFace: "Calibri", italic: true, valign: "middle", margin: 0 } ); const causes = [ { title: "Bacterial Sepsis / LPS", detail: "LPS → massive TNF-α, IL-1β, IL-6 from macrophages → endothelial activation → vascular collapse, DIC, multi-organ failure. IL-6 and IL-8 elevated even in acute sepsis." }, { title: "Viral Infections (COVID-19, Influenza)", detail: "SARS-CoV-2: IFN storm from plasmacytoid DCs; TNF, IL-6, IL-8 surges → endothelial injury, coagulopathy, cytokine-mediated AKI. IL-6 as prognostic biomarker." }, { title: "Macrophage Activation Syndrome (MAS/HLH)", detail: "IFN-γ, IL-18, IL-6, TNF-α → hemophagocytosis in marrow + liver. Ferritin >10,000 ng/mL. Associated with EBV, malignancy, sJIA. Treat: etoposide, dex, IL-1R antagonist." }, { title: "CAR-T Cell Therapy / TGN1412", detail: "Activated T cells → massive IL-6, IFN-γ, TNF release → fever, hypotension, CRS. Managed with tocilizumab (anti-IL-6R). TGN1412 anti-CD28 trial: near-fatal storm 2006." }, ]; causes.forEach((c, i) => { const x = 0.4 + (i % 2) * 4.7; const y = 2.12 + Math.floor(i / 2) * 1.5; s.addShape(pres.ShapeType.rect, { x, y, w: 4.5, h: 0.32, fill: { color: C.red }, line: { type: "none" } }); s.addText(c.title, { x: x + 0.1, y: y + 0.03, w: 4.3, h: 0.26, fontSize: 12, bold: true, color: C.white, fontFace: "Calibri", margin: 0 }); s.addShape(pres.ShapeType.rect, { x, y: y + 0.32, w: 4.5, h: 1.1, fill: { color: C.cardBg }, line: { color: C.red, width: 1 } }); s.addText(c.detail, { x: x + 0.1, y: y + 0.36, w: 4.3, h: 1.02, fontSize: 10, color: C.light, fontFace: "Calibri", margin: 0 }); }); footerNote(s, "Cellular & Molecular Immunology (Abbas 10e); Medical Microbiology 9e; Goldman-Cecil 2025; Harrison's 22e; Henry's 7e"); } // ─── SLIDE 10: AUTOIMMUNE DISEASE ──────────────────────────────── { const s = pres.addSlide(); darkBg(s); slideTitle(s, "Cytokines in Autoimmune Disease"); s.addText("Persistent immune activation leads to chronic pro-inflammatory cytokine loops. Cytokine imbalances are a hallmark of autoimmune disease. (Roitt's 14e; Henry's 7e)", { x: 0.4, y: 1.25, w: 9.2, h: 0.52, fontSize: 11.5, color: C.light, fontFace: "Calibri", italic: true, fill: { color: C.cardBg }, margin: [4, 8, 4, 8] } ); const diseases = [ { d: "Rheumatoid Arthritis", cy: "TNF-α ↑, IL-1β ↑, IL-6 ↑, IL-17A ↑, IL-18 ↑", tx: "Etanercept/Infliximab (anti-TNF); Tocilizumab (anti-IL-6R); Anakinra (IL-1Ra); Baricitinib (JAKi)" }, { d: "Systemic Lupus (SLE)", cy: "Type I IFN signature ↑↑, IL-6 ↑, BLyS ↑; IL-10 dysregulated", tx: "Belimumab (anti-BLyS); Anifrolumab (anti-IFNAR1)" }, { d: "Inflammatory Bowel Disease", cy: "TNF-α ↑, IL-1β ↑, IL-6 ↑, IL-12/23 ↑, IL-17A ↑", tx: "Anti-TNF (infliximab/vedolizumab); Ustekinumab (anti-IL-12/23)" }, { d: "Psoriasis", cy: "IL-17A ↑↑, IL-23 ↑, IL-22 ↑, TNF-α ↑", tx: "Secukinumab/Ixekizumab (anti-IL-17); Guselkumab/Risankizumab (anti-IL-23)" }, { d: "Multiple Sclerosis", cy: "IFN-γ ↑, IL-17A ↑, IL-6 ↑; IL-10 reduced in plaques", tx: "IFN-β (immunomodulatory); Natalizumab; Ozanimod; Siponimod" }, ]; const cols = ["Disease", "Key Cytokines Elevated", "Therapeutic Targets"]; const cx = [0.3, 3.0, 6.55]; const cw = [2.6, 3.45, 3.0]; cols.forEach((c, i) => { s.addShape(pres.ShapeType.rect, { x: cx[i], y: 1.88, w: cw[i], h: 0.32, fill: { color: C.midBlue }, line: { color: C.accent, width: 0.5 } }); s.addText(c, { x: cx[i] + 0.06, y: 1.88, w: cw[i] - 0.1, h: 0.32, fontSize: 11, bold: true, color: C.teal, fontFace: "Calibri", valign: "middle", margin: 0 }); }); diseases.forEach((d, ri) => { const y = 2.2 + ri * 0.62; const bg = ri % 2 === 0 ? C.cardBg : C.navy; [d.d, d.cy, d.tx].forEach((v, ci) => { s.addShape(pres.ShapeType.rect, { x: cx[ci], y, w: cw[ci], h: 0.6, fill: { color: bg }, line: { color: C.midBlue, width: 0.5 } }); s.addText(v, { x: cx[ci] + 0.06, y: y + 0.04, w: cw[ci] - 0.1, h: 0.52, fontSize: ci === 0 ? 11 : 9.5, bold: ci === 0, color: ci === 0 ? C.yellow : C.light, fontFace: "Calibri", valign: "middle", margin: 0 }); }); }); footerNote(s, "Henry's 7e; Roitt's 14e; Robbins & Cotran 10e; Cellular & Molecular Immunology (Abbas 10e)"); } // ─── SLIDE 11: CYTOKINES IN CANCER ─────────────────────────────── { const s = pres.addSlide(); darkBg(s); slideTitle(s, "Cytokines in Cancer", "Dual roles: tumor promotion vs. immunosurveillance"); s.addShape(pres.ShapeType.rect, { x: 0.3, y: 1.22, w: 4.5, h: 0.36, fill: { color: C.red }, line: { type: "none" } }); s.addText("TUMOR PROMOTING", { x: 0.3, y: 1.22, w: 4.5, h: 0.36, fontSize: 13, bold: true, color: C.white, fontFace: "Calibri", align: "center", valign: "middle", margin: 0 }); s.addShape(pres.ShapeType.rect, { x: 0.3, y: 1.58, w: 4.5, h: 3.5, fill: { color: C.cardBg }, line: { color: C.red, width: 1 } }); const pro = [ "TNF-α: NF-κB activation → anti-apoptotic genes → tumor cell survival; promotes angiogenesis", "IL-6 / STAT3: Proliferation, anti-apoptosis; elevated in multiple myeloma, Castleman disease", "TGF-β: Immune evasion via T cell suppression; promotes EMT and metastasis", "IL-10: Immunosuppressive TME; limits CTL responses against tumor cells", "IL-17: Angiogenesis; links chronic inflammation to CRC, NSCLC risk", "M2 macrophage (IL-4, IL-10, IL-13 polarized): pro-tumorigenic; poor prognosis", ]; s.addText(pro.map((t, i) => ({ text: t, options: { bullet: { indent: 10 }, breakLine: i < pro.length - 1, color: C.light } })), { x: 0.4, y: 1.62, w: 4.3, h: 3.4, fontSize: 10.5, fontFace: "Calibri", valign: "top", margin: 0 }); s.addShape(pres.ShapeType.rect, { x: 5.2, y: 1.22, w: 4.5, h: 0.36, fill: { color: C.green }, line: { type: "none" } }); s.addText("TUMOR SUPPRESSING / THERAPY", { x: 5.2, y: 1.22, w: 4.5, h: 0.36, fontSize: 13, bold: true, color: C.white, fontFace: "Calibri", align: "center", valign: "middle", margin: 0 }); s.addShape(pres.ShapeType.rect, { x: 5.2, y: 1.58, w: 4.5, h: 3.5, fill: { color: C.cardBg }, line: { color: C.green, width: 1 } }); const supp = [ "IFN-α: Approved — melanoma, hairy cell leukemia, CML, lymphoma, Kaposi sarcoma; ↑ MHC-I, NK killing", "IL-2 (high-dose IV): ~10% response in melanoma/RCC; stimulates CD8+ CTLs & NK cells; vascular leak limits use", "IFN-γ: Macrophage activation; ↑ MHC-I → greater CTL susceptibility; antitumor in animal models", "IL-12: Activates NK + CTLs; anti-angiogenic (via IFN-γ); under investigation for combination immunotherapy", "GM-CSF: TVEC (oncolytic herpes) engineered to express GM-CSF → DC accumulation in TME → approved melanoma", "G-CSF/GM-CSF: Shorten post-chemotherapy neutropenia; stem cell mobilization for transplant", ]; s.addText(supp.map((t, i) => ({ text: t, options: { bullet: { indent: 10 }, breakLine: i < supp.length - 1, color: C.light } })), { x: 5.3, y: 1.62, w: 4.3, h: 3.4, fontSize: 10.5, fontFace: "Calibri", valign: "top", margin: 0 }); footerNote(s, "Cellular & Molecular Immunology (Abbas 10e), Chapter 15; Robbins & Cotran 10e; Henry's 7e"); } // ─── SLIDE 12: TNF / IL-1 / IL-6 ───────────────────────────────── { const s = pres.addSlide(); darkBg(s); slideTitle(s, "Key Cytokines: TNF-α · IL-1β · IL-6"); const cyts = [ { name: "TNF-α", color: C.red, src: "Macrophages, DC, mast cells, T cells", rx: "TNFR1 (ubiquitous), TNFR2 (immune cells)", path: "NF-κB, caspase-dependent apoptosis, MAPK", acts: ["↑ ICAM-1, E-selectin, VCAM-1 on endothelium", "Fever, cachexia, hypotension", "Acute phase response (liver)", "High levels → septic shock, DIC", "Essential for granuloma maintenance (anti-TNF → TB!)"], dis: "Sepsis, RA, IBD, cachexia, granuloma" }, { name: "IL-1β", color: C.orange, src: "Macrophages, DC, epithelial cells", rx: "IL-1R1 (signaling); IL-1R2 (decoy); IL-1RA antagonist", path: "NF-κB, MAPK via MyD88/IRAK complex", acts: ["Potent pyrogenic (hypothalamic PGE2)", "Endothelial activation, vascular permeability ↑", "Stimulates IL-6 and CXCL8 production", "T + B cell activation", "Cleaved by caspase-1 (NLRP3 inflammasome) → gout"], dis: "Gout, Still's disease, CAPS, MAS, RA" }, { name: "IL-6", color: C.teal, src: "Macrophages, endothelium, fibroblasts", rx: "IL-6R (membrane + soluble) / gp130 co-receptor", path: "JAK1/2 → STAT3 (primary); MAPK pathway", acts: ["Major driver: CRP, SAA, fibrinogen ↑ (hepatocytes)", "B cell differentiation → antibody production", "Elevated: COVID-19, Castleman disease, myeloma", "Promotes Th17 differentiation (with TGF-β)", "Tocilizumab targets IL-6R (RA, cytokine storm)"], dis: "Myeloma, Castleman disease, RA, COVID-19" }, ]; cyts.forEach((cy, i) => { const x = 0.22 + i * 3.2; s.addShape(pres.ShapeType.rect, { x, y: 1.2, w: 3.08, h: 0.36, fill: { color: cy.color }, line: { type: "none" } }); s.addText(cy.name, { x, y: 1.2, w: 3.08, h: 0.36, fontSize: 16, bold: true, color: C.white, fontFace: "Calibri", align: "center", valign: "middle", margin: 0 }); s.addShape(pres.ShapeType.rect, { x, y: 1.56, w: 3.08, h: 3.88, fill: { color: C.cardBg }, line: { color: cy.color, width: 1 } }); const fields = [["Source", cy.src], ["Receptor", cy.rx], ["Pathway", cy.path], ["Disease", cy.dis]]; let yOff = 1.6; fields.forEach(([lbl, val]) => { s.addText(lbl + ":", { x: x + 0.1, y: yOff, w: 0.78, h: 0.28, fontSize: 9, bold: true, color: cy.color, fontFace: "Calibri", margin: 0 }); s.addText(val, { x: x + 0.88, y: yOff, w: 2.08, h: 0.28, fontSize: 9, color: C.light, fontFace: "Calibri", margin: 0 }); yOff += 0.28; }); yOff += 0.05; s.addText("Actions:", { x: x + 0.1, y: yOff, w: 2.9, h: 0.22, fontSize: 9, bold: true, color: cy.color, fontFace: "Calibri", margin: 0 }); yOff += 0.2; s.addText(cy.acts.map((a, ai) => ({ text: a, options: { bullet: { indent: 8 }, breakLine: ai < cy.acts.length - 1, color: C.light } })), { x: x + 0.1, y: yOff, w: 2.9, h: 2.2, fontSize: 9, fontFace: "Calibri", valign: "top", margin: 0 }); }); footerNote(s, "Robbins & Cotran 10e (Chapter 3); Henry's 7e; Cellular & Molecular Immunology (Abbas 10e)"); } // ─── SLIDE 13: INTERFERONS & CHEMOKINES ────────────────────────── { const s = pres.addSlide(); darkBg(s); slideTitle(s, "Interferons & Chemokines"); s.addShape(pres.ShapeType.rect, { x: 0.3, y: 1.22, w: 4.55, h: 0.34, fill: { color: C.teal }, line: { type: "none" } }); s.addText("INTERFERONS", { x: 0.3, y: 1.22, w: 4.55, h: 0.34, fontSize: 13, bold: true, color: C.white, fontFace: "Calibri", align: "center", valign: "middle", margin: 0 }); const ifns = [ { t: "Type I (IFN-α/β)", d: "Antiviral defense; plasmacytoid DCs; ↑MHC-I; STAT1/STAT2/IRF9; approved for hepatitis, hairy cell leukemia, melanoma, CML, Kaposi sarcoma" }, { t: "Type II (IFN-γ)", d: "Macrophage activation (M1 polarization); ↑MHC I & II; Th1 amplification; essential for granuloma formation; mycobacterial defense" }, { t: "Type III (IFN-λ)", d: "Mucosal antiviral immunity; limits spread of respiratory viruses via epithelial barriers; emerging therapeutic target" }, { t: "IFN signature in disease", d: "Type I IFN signature: SLE hallmark. IFN-γ: HLH, MAS. IFN-β therapy in MS. Anifrolumab (anti-IFNAR1) approved for SLE" }, ]; ifns.forEach((r, i) => { const y = 1.56 + i * 0.89; s.addShape(pres.ShapeType.rect, { x: 0.3, y, w: 4.55, h: 0.85, fill: { color: i % 2 === 0 ? C.cardBg : C.navy }, line: { color: C.teal, width: 0.5 } }); s.addText(r.t, { x: 0.4, y: y + 0.04, w: 4.35, h: 0.26, fontSize: 11, bold: true, color: C.teal, fontFace: "Calibri", margin: 0 }); s.addText(r.d, { x: 0.4, y: y + 0.3, w: 4.35, h: 0.5, fontSize: 10, color: C.light, fontFace: "Calibri", margin: 0 }); }); s.addShape(pres.ShapeType.rect, { x: 5.2, y: 1.22, w: 4.55, h: 0.34, fill: { color: C.orange }, line: { type: "none" } }); s.addText("CHEMOKINES", { x: 5.2, y: 1.22, w: 4.55, h: 0.34, fontSize: 13, bold: true, color: C.white, fontFace: "Calibri", align: "center", valign: "middle", margin: 0 }); const chems = [ { t: "CXC (α-chemokines)", d: "CXCL8 (IL-8): neutrophil chemotaxis; CXCL9/10/11: Th1/CTL via CXCR3; CXCL12 (SDF-1): bone marrow homing / stem cells" }, { t: "CC (β-chemokines)", d: "CCL2 (MCP-1): monocyte recruitment; CCL5 (RANTES): T cells & eosinophils; CCL11 (eotaxin): eosinophils in allergy & asthma" }, { t: "CX3C & XC", d: "Fractalkine (CX3CL1): monocyte tethering to endothelium; Lymphotactin (XCL1): CD8+ T cell attraction to tumors" }, { t: "Disease Relevance", d: "HIV uses CCR5 + CXCR4 as co-receptors; Maraviroc (CCR5 antagonist) antiretroviral. CXCR4 in bone marrow niche; target in hematologic malignancy (Plerixafor)" }, ]; chems.forEach((r, i) => { const y = 1.56 + i * 0.89; s.addShape(pres.ShapeType.rect, { x: 5.2, y, w: 4.55, h: 0.85, fill: { color: i % 2 === 0 ? C.cardBg : C.navy }, line: { color: C.orange, width: 0.5 } }); s.addText(r.t, { x: 5.3, y: y + 0.04, w: 4.35, h: 0.26, fontSize: 11, bold: true, color: C.orange, fontFace: "Calibri", margin: 0 }); s.addText(r.d, { x: 5.3, y: y + 0.3, w: 4.35, h: 0.5, fontSize: 10, color: C.light, fontFace: "Calibri", margin: 0 }); }); footerNote(s, "Cellular & Molecular Immunology (Abbas 10e); Robbins & Cotran 10e; Roitt's 14e"); } // ─── SLIDE 14: ANTI-CYTOKINE THERAPEUTICS ──────────────────────── { const s = pres.addSlide(); darkBg(s); slideTitle(s, "Anti-Cytokine & Cytokine Therapeutics", "Biologics and recombinant cytokines in clinical use"); const drugs = [ { drug: "Infliximab / Adalimumab / Etanercept", tgt: "TNF-α", ind: "RA, Crohn's, UC, ankylosing spondylitis, psoriasis", type: "Anti-cytokine", color: C.red }, { drug: "Tocilizumab / Sarilumab", tgt: "IL-6 receptor", ind: "RA, GCA, cytokine storm (COVID-19, CAR-T)", type: "Anti-cytokine", color: C.teal }, { drug: "Anakinra / Canakinumab / Rilonacept", tgt: "IL-1R / IL-1β", ind: "Gout, Still's disease, CAPS, pericarditis, MAS", type: "Anti-cytokine", color: C.orange }, { drug: "Secukinumab / Ixekizumab / Bimekizumab", tgt: "IL-17A/F", ind: "Psoriasis, psoriatic arthritis, ankylosing spondylitis", type: "Anti-cytokine", color: C.accent }, { drug: "Ustekinumab", tgt: "IL-12/IL-23 (p40)", ind: "Crohn's, UC, psoriasis, psoriatic arthritis", type: "Anti-cytokine", color: C.green }, { drug: "IL-2 (Proleukin)", tgt: "IL-2 agonist", ind: "Melanoma, RCC — ~10% response; limited by vascular leak", type: "Cytokine Rx", color: C.yellow }, { drug: "IFN-α (Pegylated)", tgt: "IFN-α agonist", ind: "HCV, HBV, hairy cell leukemia, melanoma, CML, Kaposi", type: "Cytokine Rx", color: C.yellow }, { drug: "G-CSF (filgrastim) / GM-CSF", tgt: "CSF receptor", ind: "Post-chemotherapy neutropenia; stem cell mobilization", type: "Cytokine Rx", color: C.green }, ]; const cols = ["Drug / Agent", "Target", "Indication", "Type"]; const cx = [0.2, 3.15, 5.8, 8.96]; const cw = [2.85, 2.55, 3.06, 0.88]; cols.forEach((c, i) => { s.addShape(pres.ShapeType.rect, { x: cx[i], y: 1.22, w: cw[i], h: 0.32, fill: { color: C.midBlue }, line: { color: C.accent, width: 0.5 } }); s.addText(c, { x: cx[i] + 0.05, y: 1.22, w: cw[i] - 0.08, h: 0.32, fontSize: 11, bold: true, color: C.teal, fontFace: "Calibri", valign: "middle", margin: 0 }); }); drugs.forEach((d, ri) => { const y = 1.54 + ri * 0.5; const bg = ri % 2 === 0 ? C.cardBg : C.navy; [d.drug, d.tgt, d.ind, d.type].forEach((v, ci) => { s.addShape(pres.ShapeType.rect, { x: cx[ci], y, w: cw[ci], h: 0.48, fill: { color: bg }, line: { color: C.midBlue, width: 0.5 } }); s.addText(v, { x: cx[ci] + 0.05, y: y + 0.04, w: cw[ci] - 0.08, h: 0.4, fontSize: ci === 3 ? 8.5 : 9.5, bold: ci === 0 || ci === 3, color: ci === 0 ? C.yellow : ci === 3 ? d.color : C.light, fontFace: "Calibri", valign: "middle", margin: 0 }); }); }); footerNote(s, "Cellular & Molecular Immunology (Abbas 10e); Goodman & Gilman's Pharmacology 14e; Robbins & Cotran 10e"); } // ─── SLIDE 15: JAK INHIBITORS & ASSAYS ─────────────────────────── { const s = pres.addSlide(); darkBg(s); slideTitle(s, "JAK Inhibitors & Cytokine Lab Measurement"); s.addShape(pres.ShapeType.rect, { x: 0.3, y: 1.22, w: 4.5, h: 0.34, fill: { color: C.accent }, line: { type: "none" } }); s.addText("JAK INHIBITORS (JAKi)", { x: 0.3, y: 1.22, w: 4.5, h: 0.34, fontSize: 13, bold: true, color: C.white, fontFace: "Calibri", align: "center", valign: "middle", margin: 0 }); s.addShape(pres.ShapeType.rect, { x: 0.3, y: 1.56, w: 4.5, h: 3.78, fill: { color: C.cardBg }, line: { color: C.accent, width: 1 } }); const jaki = [ "Oral small molecules — block JAK1/2/3 or TYK2 → broad cytokine signal suppression", "Tofacitinib (JAK1/3) — RA, UC, psoriatic arthritis", "Baricitinib (JAK1/2) — RA, alopecia areata, COVID-19", "Ruxolitinib (JAK1/2) — myelofibrosis, polycythemia vera, GVHD", "Upadacitinib (JAK1) — RA, IBD, atopic dermatitis", "", "Side effects: ↑infection (TB, herpes zoster reactivation), thrombosis risk", "", "Pathology relevance:", " JAK2 V617F mutation → myeloproliferative neoplasms (PV, ET, MF)", " JAK3 / γc receptor mutations → X-linked SCID", " SOCS1/3 loss → JAK-STAT pathway upregulation in some lymphomas", ]; s.addText(jaki.map((t, i) => ({ text: t, options: t === "" ? { breakLine: true } : { bullet: { indent: t.startsWith(" ") ? 18 : 10 }, breakLine: i < jaki.length - 1, color: C.light } })), { x: 0.4, y: 1.6, w: 4.3, h: 3.68, fontSize: 10.5, fontFace: "Calibri", valign: "top", margin: 0 }); s.addShape(pres.ShapeType.rect, { x: 5.2, y: 1.22, w: 4.5, h: 0.34, fill: { color: C.green }, line: { type: "none" } }); s.addText("CYTOKINE LAB MEASUREMENT", { x: 5.2, y: 1.22, w: 4.5, h: 0.34, fontSize: 13, bold: true, color: C.white, fontFace: "Calibri", align: "center", valign: "middle", margin: 0 }); s.addShape(pres.ShapeType.rect, { x: 5.2, y: 1.56, w: 4.5, h: 3.78, fill: { color: C.cardBg }, line: { color: C.green, width: 1 } }); const assay = [ "ELISA — quantitative single cytokines (IL-1, IL-6, IL-10, TNF-α, IFN-γ); widely used", "Multiplex (Luminex / MSD) — 20-40 cytokines simultaneously; low volume; high sensitivity", "Bioassays — gold standard historically; time-consuming; not routine", "", "Clinical applications:", " • Ferritin + sIL-2R + IL-18 — MAS/HLH diagnosis", " • IL-6 monitoring — CAR-T cytokine release syndrome", " • IFN-γ release assay (QuantiFERON-TB) — tuberculosis screening", " • CRP (IL-6 driven) — ubiquitous inflammatory marker", " • Elevated IL-6 in COVID-19 — severity/prognosis", " • TNF-α, IL-8 in sepsis panels", ]; s.addText(assay.map((t, i) => ({ text: t, options: t === "" ? { breakLine: true } : { bullet: { indent: t.startsWith(" ") ? 18 : 10 }, breakLine: i < assay.length - 1, color: C.light } })), { x: 5.3, y: 1.6, w: 4.3, h: 3.68, fontSize: 10.5, fontFace: "Calibri", valign: "top", margin: 0 }); footerNote(s, "Henry's Clinical Diagnosis & Management 7e; Goodman & Gilman's Pharmacology 14e"); } // ─── SLIDE 16: CYTOKINES IN PATHOLOGY PRACTICE ─────────────────── { const s = pres.addSlide(); darkBg(s); slideTitle(s, "Cytokines in Pathology Practice", "Recognizing cytokine-mediated tissue changes"); const topics = [ { title: "Granuloma Formation", color: C.teal, detail: "IFN-γ activates macrophages → epithelioid cells → granuloma. IL-12 drives Th1 upstream. TNF-α maintains integrity — anti-TNF therapy → TB/histoplasma reactivation." }, { title: "Acute Phase Response", color: C.orange, detail: "IL-6, IL-1, TNF → hepatocyte CRP, SAA, fibrinogen ↑; albumin ↓. Sustained SAA production → AA amyloidosis (kidneys, liver, spleen) in chronic inflammation." }, { title: "Tissue Fibrosis", color: C.accent, detail: "TGF-β1: master pro-fibrotic cytokine → myofibroblast activation → collagen I/III. IPF, liver cirrhosis, scleroderma, post-inflammatory scars. PDGF and IL-13 also contribute." }, { title: "Tumor Microenvironment (TME)", color: C.red, detail: "IL-10 + TGF-β → immunosuppressive TME → T cell exhaustion. IL-6/STAT3 → tumor survival. IL-4/10/13 → M2 macrophage polarization → pro-tumorigenic milieu." }, { title: "HLH / Macrophage Activation Syndrome", color: C.yellow, detail: "Extreme IFN-γ + IL-18 + IL-6 + TNF-α → hemophagocytosis in bone marrow and liver. Ferritin >10,000 ng/mL. Treat: etoposide, dexamethasone, anakinra, emapalumab (anti-IFN-γ)." }, { title: "IBD — Crohn's vs UC", color: C.green, detail: "Crohn's: Th1/Th17 (IFN-γ, IL-17, IL-12/23) → transmural inflammation, non-caseating granulomas. UC: Th2/IL-13 dominant → diffuse mucosal disease, no granulomas. Inform biopsy interpretation." }, ]; topics.forEach((t, i) => { const x = 0.22 + (i % 3) * 3.22; const y = 1.28 + Math.floor(i / 3) * 2.1; s.addShape(pres.ShapeType.rect, { x, y, w: 3.1, h: 0.32, fill: { color: t.color }, line: { type: "none" } }); s.addText(t.title, { x: x + 0.08, y: y + 0.03, w: 2.94, h: 0.26, fontSize: 10.5, bold: true, color: C.white, fontFace: "Calibri", valign: "middle", margin: 0 }); s.addShape(pres.ShapeType.rect, { x, y: y + 0.32, w: 3.1, h: 1.7, fill: { color: C.cardBg }, line: { color: t.color, width: 1 } }); s.addText(t.detail, { x: x + 0.08, y: y + 0.36, w: 2.94, h: 1.62, fontSize: 9.5, color: C.light, fontFace: "Calibri", valign: "top", margin: 0 }); }); footerNote(s, "Robbins & Cotran Pathologic Basis of Disease, 10e; Henry's Clinical Diagnosis & Management 7e"); } // ─── SLIDE 17: SUMMARY TABLE ────────────────────────────────────── { const s = pres.addSlide(); darkBg(s); slideTitle(s, "Summary: Cytokines at a Glance"); const rows = [ ["TNF-α", "Inflammation / Sepsis / Granuloma", "Anti-TNF biologics (infliximab, adalimumab, etanercept)"], ["IL-1β", "Fever / Inflammasome / Gout", "Anakinra (IL-1Ra), Canakinumab (anti-IL-1β)"], ["IL-6", "Acute Phase / Myeloma / Castleman", "Tocilizumab (anti-IL-6R); Sarilumab"], ["IFN-γ", "Macrophage Activation / Granuloma / HLH", "Emapalumab (anti-IFN-γ) for HLH; IFN-γ release assay (TB)"], ["IL-12/23", "Th1/Th17 Differentiation / IBD / Psoriasis", "Ustekinumab (anti-p40)"], ["IL-17A", "Neutrophilic Inflammation / Psoriasis / RA", "Secukinumab, Ixekizumab, Bimekizumab"], ["TGF-β", "Fibrosis / Immune Tolerance / EMT", "Pirfenidone (IPF); research anti-TGF-β agents"], ["IL-10", "Anti-inflammatory / Gut Homeostasis", "Deficiency → IBD; therapeutic agonists in trials"], ["IFN-α/β", "Antiviral / Type I IFN signature (SLE)", "Peg-IFN-α (HCV, CML); Anifrolumab (SLE)"], ["CSFs", "Hematopoiesis / Myeloid Differentiation", "G-CSF (filgrastim); GM-CSF (sargramostim)"], ]; const cols = ["Cytokine", "Primary Role / Disease", "Therapeutic Strategy"]; const cx = [0.25, 2.65, 6.6]; const cw = [2.3, 3.85, 3.15]; cols.forEach((c, i) => { s.addShape(pres.ShapeType.rect, { x: cx[i], y: 1.2, w: cw[i], h: 0.32, fill: { color: C.accent }, line: { type: "none" } }); s.addText(c, { x: cx[i] + 0.06, y: 1.2, w: cw[i] - 0.1, h: 0.32, fontSize: 12, bold: true, color: C.white, fontFace: "Calibri", valign: "middle", margin: 0 }); }); rows.forEach((row, ri) => { const y = 1.52 + ri * 0.39; const bg = ri % 2 === 0 ? C.cardBg : C.navy; row.forEach((cell, ci) => { s.addShape(pres.ShapeType.rect, { x: cx[ci], y, w: cw[ci], h: 0.37, fill: { color: bg }, line: { color: C.midBlue, width: 0.5 } }); s.addText(cell, { x: cx[ci] + 0.06, y: y + 0.04, w: cw[ci] - 0.1, h: 0.3, fontSize: ci === 0 ? 11 : 9.5, bold: ci === 0, color: ci === 0 ? C.yellow : C.light, fontFace: "Calibri", valign: "middle", margin: 0 }); }); }); footerNote(s, "Robbins & Cotran 10e; Henry's 7e; Cellular & Molecular Immunology (Abbas 10e); Roitt's 14e"); } // ─── SLIDE 18: KEY TAKEAWAYS ────────────────────────────────────── { const s = pres.addSlide(); s.background = { color: C.navy }; s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 1.5, fill: { color: C.midBlue }, line: { type: "none" } }); s.addShape(pres.ShapeType.rect, { x: 0, y: 1.5, w: 0.18, h: 4.125, fill: { color: C.accent }, line: { type: "none" } }); s.addText("Key Takeaways", { x: 0.5, y: 0.12, w: 9, h: 0.72, fontSize: 32, bold: true, color: C.white, fontFace: "Calibri", margin: 0 }); s.addShape(pres.ShapeType.rect, { x: 0.5, y: 0.9, w: 4.5, h: 0.05, fill: { color: C.accent }, line: { type: "none" } }); s.addText("Pathology Resident Lecture Series | 2026", { x: 0.5, y: 1.0, w: 9, h: 0.36, fontSize: 13, color: C.muted, fontFace: "Calibri", italic: true, margin: 0 }); const pts = [ "Cytokines are pleiotropic, redundant protein mediators acting at femtomolar concentrations — context and combinations determine the outcome", "JAK-STAT is the dominant cytokine signaling cascade; SOCS proteins provide negative feedback; JAK2 V617F is a diagnostic marker in MPNs", "TNF-α, IL-1β, and IL-6 are the master mediators of both acute inflammation and sepsis", "T helper subsets (Th1/Th2/Th17/Treg) are defined by their cytokine profiles — know the polarizing signals and transcription factors", "Cytokine dysregulation drives autoimmunity (IFN-γ, IL-17, IL-6, IL-1), cancer (IL-6/STAT3, TGF-β), fibrosis (TGF-β), and cytokine storm (TNF, IL-6, IFN-γ)", "Anti-cytokine biologics (anti-TNF, anti-IL-6R, anti-IL-17, anti-IL-12/23) and JAK inhibitors have transformed treatment of inflammatory disease", "Pathologists must recognize cytokine-mediated tissue changes: granulomas (IFN-γ), fibrosis (TGF-β), AA amyloidosis (IL-6), hemophagocytosis (IFN-γ storm)", ]; s.addText(pts.map((t, i) => ({ text: t, options: { bullet: { indent: 14 }, breakLine: i < pts.length - 1, color: C.light } })), { x: 0.4, y: 1.6, w: 9.3, h: 3.7, fontSize: 12.5, fontFace: "Calibri", valign: "top", margin: [6, 10, 6, 10], fill: { color: C.cardBg } }); s.addText("Questions & Discussion", { x: 0.3, y: 5.2, w: 9.4, h: 0.3, fontSize: 14, bold: true, color: C.accent, fontFace: "Calibri", align: "center", margin: 0 }); } // ── Write ────────────────────────────────────────────────────── pres.writeFile({ fileName: "/home/daytona/workspace/cytokines-ppt/Cytokines_Health_and_Disease.pptx" }) .then(() => console.log("DONE")) .catch(err => { console.error(err); process.exit(1); }); JSEOF echo "Written"

Running Command

cd /home/daytona/workspace/cytokines-ppt && node build.js 2>&1

Running Command

ls -lh /home/daytona/workspace/cytokines-ppt/Cytokines_Health_and_Disease.pptx

Your presentation is ready:

Cytokines Health and Disease

Presentation · PPTX


What's inside (18 slides)

#Slide
1Title — bold typographic cover, dark navy with blue accent bar
2Learning Objectives
3What Are Cytokines? — definition, 4 key properties (pleiotropic, redundant, synergistic, auto/para/endocrine)
4Classification of Cytokine Families — TNF, ILs (with subfamilies), IFNs, CSFs + Chemokines
5Receptors & Signaling Pathways — Class I/II, TNFR, IgSF, GPCRs; JAK-STAT, NF-κB, MAPK overview
6Cytokines in Acute Inflammation — Robbins Table 3.7 (TNF, IL-1, IL-6, chemokines, IL-17)
7Cytokines in Chronic Inflammation — IL-12, IFN-γ, IL-17, TGF-β, IL-10 with pathology pearls
8Th1/Th2/Th17/Treg Cytokine Profiles — polarizing signals, master TFs, disease links
9Cytokine Storm — sepsis, COVID-19, MAS/HLH, CAR-T toxicity
10Cytokines in Autoimmune Disease — RA, SLE, IBD, psoriasis, MS with therapeutic targets
11Cytokines in Cancer — dual role: tumor-promoting vs. immunosurveillance/therapy
12TNF-α / IL-1β / IL-6 in Depth — source, receptor, pathway, key actions, disease per cytokine
13Interferons & Chemokines — type I/II/III IFNs; CXC, CC, CX3C chemokines; HIV co-receptors
14Anti-Cytokine & Cytokine Therapeutics — 8 agents in a color-coded table
15JAK Inhibitors & Cytokine Lab Measurement — JAKi drugs + JAK2 V617F; ELISA, multiplex, clinical uses
16Cytokines in Pathology Practice — granulomas, acute phase/AA amyloidosis, fibrosis, TME, HLH, IBD
17Summary Table — 10 cytokines: role, disease, therapeutic strategy at a glance
18Key Takeaways & Discussion
Design: Dark navy background throughout, bright blue accent lines, color-coded cards per cytokine family, tabular layouts for quick review. All content sourced from Robbins & Cotran 10e, Henry's Laboratory Medicine 7e, Abbas Cellular & Molecular Immunology 10e, and Roitt's Essential Immunology 14e.
This is a shared conversation. Sign in to Orris to start your own chat.