Major depressive disorder and bipolar disorder Resource: Kaplan 12th edition, DSM 5-TR The outline for the presentation for each disorder is as follows: o Introduction and Epidemiology o Clinical Features o Diagnostic Criteria (DSM 5-TR) o Management (Pharmacological and Non-pharmacological) o PrognosisBuilding 35+ slides now with a fresh, modern design — clean cards layout, bold visuals, concise bullet points.

Reading File
Reading File
Finding Sources
Finding Sources
Reading File
Reading File
Finding Sources
Reading File
Reading File
Finding Sources
Reading File
Reading File
Reading File
Reading File
Reading File
Reading File
Running Command

mkdir -p /home/daytona/workspace/mood-disorders-pptx && ls /home/daytona/workspa…

Writing File

~/mood-disorders-pptx/build.js

const pptxgen = require("pptxgenjs");

const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Mood Disorders: MDD & Bipolar Disorder";
pres.author = "Kaplan & Sadock 12e / DSM-5-TR";

// ─── PALETTE ────────────────────────────────────────────────────────────────
const C = {
  navy:    "0A1628",   // dominant dark background
  blue:    "1565C0",   // section header
  teal:    "00838F",   // accent / bipolar
  amber:   "F57F17",   // accent / highlight
  plum:    "6A1B9A",   // MDD accent
  white:   "FFFFFF",
  offWhite:"F5F7FA",
  slate:   "455A64",
  light:   "E3F2FD",
  card:    "132338",   // dark card bg
  cardAlt: "0D2137",
  mddAccent: "7E57C2", // purple for MDD
  bpAccent:  "00ACC1", // teal for Bipolar
  warn:    "FF7043",
};

// ─── HELPER: section divider ─────────────────────────────────────────────────
function sectionDivider(pres, label, color = C.blue, sub = "") {
  const sl = pres.addSlide();
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: "100%", fill: { color: C.navy } });
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 2.2, w: "100%", h: 0.08, fill: { color: color } });
  sl.addText(label, {
    x: 0.6, y: 1.5, w: 8.8, h: 1.2,
    fontSize: 42, bold: true, color: C.white, fontFace: "Calibri",
    align: "center", valign: "middle"
  });
  if (sub) {
    sl.addText(sub, {
      x: 0.6, y: 2.5, w: 8.8, h: 0.7,
      fontSize: 20, color: color, fontFace: "Calibri",
      align: "center"
    });
  }
  return sl;
}

// ─── HELPER: content card slide ──────────────────────────────────────────────
function cardSlide(pres, { title, bullets, accent = C.blue, bg = C.navy, titleColor = C.white, cols = false, colData = null }) {
  const sl = pres.addSlide();
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: "100%", fill: { color: bg } });
  // top accent bar
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: 0.1, fill: { color: accent } });
  // title
  sl.addText(title, {
    x: 0.4, y: 0.15, w: 9.2, h: 0.7,
    fontSize: 24, bold: true, color: titleColor, fontFace: "Calibri",
    align: "left", valign: "middle", margin: 0
  });
  // divider
  sl.addShape(pres.ShapeType.line, {
    x: 0.4, y: 0.88, w: 9.2, h: 0,
    line: { color: accent, width: 1.5, dashType: "solid" }
  });

  if (cols && colData) {
    const colW = 4.4;
    colData.forEach((col, i) => {
      const xOff = 0.3 + i * (colW + 0.35);
      // card bg
      sl.addShape(pres.ShapeType.rect, {
        x: xOff, y: 1.0, w: colW, h: 4.2,
        fill: { color: C.card }, line: { color: accent, width: 1 }
      });
      sl.addText(col.header, {
        x: xOff + 0.1, y: 1.05, w: colW - 0.2, h: 0.45,
        fontSize: 14, bold: true, color: accent, fontFace: "Calibri"
      });
      const items = col.items.map((t, idx) => ({
        text: t,
        options: { bullet: { type: "bullet", indent: 10 }, breakLine: idx < col.items.length - 1, fontSize: 13, color: C.offWhite, fontFace: "Calibri" }
      }));
      sl.addText(items, {
        x: xOff + 0.1, y: 1.52, w: colW - 0.2, h: 3.6,
        valign: "top"
      });
    });
  } else if (bullets) {
    const items = bullets.map((b, i) => ({
      text: b,
      options: { bullet: { type: "bullet", indent: 14 }, breakLine: i < bullets.length - 1, fontSize: 15, color: C.offWhite, fontFace: "Calibri", paraSpaceBefore: 4 }
    }));
    sl.addText(items, {
      x: 0.4, y: 0.95, w: 9.2, h: 4.5,
      valign: "top"
    });
  }
  return sl;
}

// ─── HELPER: two-column layout ───────────────────────────────────────────────
function twoColSlide(pres, { title, left, right, accent = C.blue }) {
  const sl = pres.addSlide();
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: "100%", fill: { color: C.navy } });
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: 0.1, fill: { color: accent } });
  sl.addText(title, {
    x: 0.4, y: 0.15, w: 9.2, h: 0.7,
    fontSize: 24, bold: true, color: C.white, fontFace: "Calibri", margin: 0
  });
  sl.addShape(pres.ShapeType.line, {
    x: 0.4, y: 0.88, w: 9.2, h: 0,
    line: { color: accent, width: 1.5 }
  });

  // left col
  sl.addShape(pres.ShapeType.rect, { x: 0.3, y: 1.0, w: 4.4, h: 4.3, fill: { color: C.card }, line: { color: accent, width: 1 } });
  sl.addText(left.header, { x: 0.4, y: 1.08, w: 4.2, h: 0.4, fontSize: 14, bold: true, color: accent, fontFace: "Calibri" });
  sl.addText(left.items.map((t, i) => ({ text: t, options: { bullet: true, breakLine: i < left.items.length - 1, fontSize: 13, color: C.offWhite, fontFace: "Calibri", paraSpaceBefore: 3 } })), {
    x: 0.35, y: 1.5, w: 4.3, h: 3.6, valign: "top"
  });

  // right col
  sl.addShape(pres.ShapeType.rect, { x: 5.05, y: 1.0, w: 4.6, h: 4.3, fill: { color: C.card }, line: { color: accent, width: 1 } });
  sl.addText(right.header, { x: 5.15, y: 1.08, w: 4.4, h: 0.4, fontSize: 14, bold: true, color: accent, fontFace: "Calibri" });
  sl.addText(right.items.map((t, i) => ({ text: t, options: { bullet: true, breakLine: i < right.items.length - 1, fontSize: 13, color: C.offWhite, fontFace: "Calibri", paraSpaceBefore: 3 } })), {
    x: 5.1, y: 1.5, w: 4.5, h: 3.6, valign: "top"
  });
  return sl;
}

// ─── HELPER: criteria box slide ──────────────────────────────────────────────
function criteriaSlide(pres, { title, intro, criteria, note = "", accent = C.blue }) {
  const sl = pres.addSlide();
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: "100%", fill: { color: C.navy } });
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: 0.1, fill: { color: accent } });
  sl.addText(title, {
    x: 0.4, y: 0.12, w: 9.2, h: 0.72,
    fontSize: 24, bold: true, color: C.white, fontFace: "Calibri", margin: 0
  });
  sl.addShape(pres.ShapeType.line, { x: 0.4, y: 0.87, w: 9.2, h: 0, line: { color: accent, width: 1.5 } });

  let yOff = 0.98;
  if (intro) {
    sl.addText(intro, {
      x: 0.4, y: yOff, w: 9.2, h: 0.5,
      fontSize: 14, color: C.amber, fontFace: "Calibri", bold: true, italic: true
    });
    yOff += 0.5;
  }

  // criteria box
  sl.addShape(pres.ShapeType.rect, { x: 0.3, y: yOff, w: 9.4, h: 3.8, fill: { color: C.card }, line: { color: accent, width: 1.5 } });
  sl.addText(criteria.map((t, i) => ({
    text: t,
    options: { bullet: { type: "bullet", indent: 14 }, breakLine: i < criteria.length - 1, fontSize: 13.5, color: C.offWhite, fontFace: "Calibri", paraSpaceBefore: 5 }
  })), { x: 0.45, y: yOff + 0.1, w: 9.1, h: 3.6, valign: "top" });

  if (note) {
    sl.addText(note, {
      x: 0.4, y: yOff + 3.9, w: 9.2, h: 0.5,
      fontSize: 12, color: C.amber, fontFace: "Calibri", italic: true
    });
  }
  return sl;
}

// ─── SLIDE 1: TITLE ──────────────────────────────────────────────────────────
{
  const sl = pres.addSlide();
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: "100%", fill: { color: C.navy } });
  // decorative bars
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.35, h: "100%", fill: { color: C.mddAccent } });
  sl.addShape(pres.ShapeType.rect, { x: 9.65, y: 0, w: 0.35, h: "100%", fill: { color: C.bpAccent } });
  sl.addShape(pres.ShapeType.rect, { x: 0.35, y: 2.4, w: 9.3, h: 0.08, fill: { color: C.amber } });

  sl.addText("MOOD DISORDERS", {
    x: 0.5, y: 0.6, w: 9.0, h: 0.9,
    fontSize: 46, bold: true, color: C.white, fontFace: "Calibri",
    align: "center", charSpacing: 6
  });
  sl.addText("Major Depressive Disorder  |  Bipolar Disorder", {
    x: 0.5, y: 1.55, w: 9.0, h: 0.7,
    fontSize: 22, color: C.amber, fontFace: "Calibri", align: "center"
  });
  sl.addText("Based on Kaplan & Sadock's Synopsis of Psychiatry, 12th Edition\nDSM-5-TR Diagnostic Criteria", {
    x: 0.5, y: 2.65, w: 9.0, h: 0.8,
    fontSize: 15, color: C.offWhite, fontFace: "Calibri",
    align: "center", italic: true
  });

  // two pills: MDD | Bipolar
  sl.addShape(pres.ShapeType.roundRect, { x: 1.5, y: 3.7, w: 3.0, h: 0.7, fill: { color: C.mddAccent }, rectRadius: 0.1 });
  sl.addText("Major Depressive Disorder", { x: 1.5, y: 3.7, w: 3.0, h: 0.7, fontSize: 13, bold: true, color: C.white, fontFace: "Calibri", align: "center", valign: "middle" });
  sl.addShape(pres.ShapeType.roundRect, { x: 5.5, y: 3.7, w: 3.0, h: 0.7, fill: { color: C.bpAccent }, rectRadius: 0.1 });
  sl.addText("Bipolar Disorder", { x: 5.5, y: 3.7, w: 3.0, h: 0.7, fontSize: 13, bold: true, color: C.white, fontFace: "Calibri", align: "center", valign: "middle" });

  sl.addText("Psychiatry | July 2026", {
    x: 0.5, y: 4.9, w: 9.0, h: 0.4,
    fontSize: 11, color: C.slate, fontFace: "Calibri", align: "center"
  });
}

// ─── SLIDE 2: OUTLINE ───────────────────────────────────────────────────────
{
  const sl = pres.addSlide();
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: "100%", fill: { color: C.navy } });
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: 0.1, fill: { color: C.amber } });
  sl.addText("Presentation Outline", {
    x: 0.4, y: 0.18, w: 9.2, h: 0.7,
    fontSize: 28, bold: true, color: C.white, fontFace: "Calibri"
  });
  sl.addShape(pres.ShapeType.line, { x: 0.4, y: 0.92, w: 9.2, h: 0, line: { color: C.amber, width: 1.5 } });

  const sections = [
    ["01", "Introduction & Epidemiology", C.mddAccent],
    ["02", "Clinical Features", C.mddAccent],
    ["03", "DSM-5-TR Diagnostic Criteria", C.amber],
    ["04", "Management (Pharmacological & Non-pharmacological)", C.bpAccent],
    ["05", "Prognosis", C.teal],
  ];
  sections.forEach(([num, text, col], i) => {
    const y = 1.1 + i * 0.82;
    sl.addShape(pres.ShapeType.rect, { x: 0.3, y: y, w: 9.4, h: 0.7, fill: { color: C.card }, line: { color: col, width: 1 } });
    sl.addShape(pres.ShapeType.rect, { x: 0.3, y: y, w: 0.55, h: 0.7, fill: { color: col } });
    sl.addText(num, { x: 0.3, y: y, w: 0.55, h: 0.7, fontSize: 18, bold: true, color: C.white, fontFace: "Calibri", align: "center", valign: "middle" });
    sl.addText(text, { x: 0.95, y: y, w: 8.6, h: 0.7, fontSize: 16, color: C.offWhite, fontFace: "Calibri", valign: "middle" });
  });
  sl.addText("Each disorder covered: MDD  ·  Bipolar Disorder", {
    x: 0.4, y: 5.2, w: 9.2, h: 0.3, fontSize: 12, color: C.amber, fontFace: "Calibri", italic: true
  });
}

// ═══════════════════════════════════════════════════════════════════
//  PART I — MAJOR DEPRESSIVE DISORDER
// ═══════════════════════════════════════════════════════════════════

// SLIDE 3: MDD Section Header
sectionDivider(pres,
  "PART I",
  C.mddAccent,
  "Major Depressive Disorder (MDD)"
);

// SLIDE 4: MDD — Introduction
cardSlide(pres, {
  title: "MDD — Introduction",
  accent: C.mddAccent,
  bullets: [
    "Major depressive disorder (MDD) is a primary mood disorder characterized by persistent depressed mood and/or loss of interest or pleasure (anhedonia)",
    "Represents the leading cause of disability worldwide — affects thinking, behavior, and physical health",
    "Distinguished from normal sadness by severity, duration, and functional impairment",
    "DSM-5-TR requires ≥5 symptoms persisting for ≥2 weeks; at least one must be depressed mood or anhedonia",
    "First episode most commonly occurs before age 40 (50% of patients)",
    "Associated with significant morbidity: impairs work, social, and family functioning",
    "Kaplan: 'Mood disorders are chronic, and psychiatrists must educate patients and families about future treatment strategies'"
  ]
});

// SLIDE 5: MDD — Epidemiology
cardSlide(pres, {
  title: "MDD — Epidemiology",
  accent: C.mddAccent,
  bullets: [
    "Lifetime prevalence: ~17% in the general population (US data)",
    "12-month prevalence: ~7% in adults; nearly double in adolescents (SAMHSA data)",
    "Sex ratio: Women affected ~2× more often than men (1.5–3:1 ratio)",
    "Incidence is rising among younger persons, particularly adolescents",
    "Mean age of onset: ~30–40 years; however, adolescent onset is increasingly recognized",
    "Children (prepubertal): sex ratio ~1:1; shifts to female predominance after puberty",
    "Comorbid conditions common: anxiety disorders (~50%), substance use disorder (~30%), personality disorders",
    "Higher rates in persons with chronic medical illness, chronic pain, and neurological disorders"
  ]
});

// SLIDE 6: MDD — Clinical Features (Part 1)
cardSlide(pres, {
  title: "MDD — Clinical Features: Core Symptoms (SIG E CAPS)",
  accent: C.mddAccent,
  bullets: [
    "S — Sleep: Insomnia (early morning awakening most classic) OR hypersomnia",
    "I — Interest: Markedly diminished interest or pleasure (anhedonia) in nearly all activities",
    "G — Guilt: Feelings of worthlessness or excessive/inappropriate guilt",
    "E — Energy: Fatigue or loss of energy nearly every day",
    "C — Concentration: Diminished ability to think, concentrate, or indecisiveness",
    "A — Appetite: Decreased or increased appetite; significant weight loss or gain (>5% body weight/month)",
    "P — Psychomotor: Observable agitation or retardation (not just subjective feeling)",
    "S — Suicide: Recurrent thoughts of death, suicidal ideation, plan, or attempt"
  ]
});

// SLIDE 7: MDD — Clinical Features (Part 2)
twoColSlide(pres, {
  title: "MDD — Clinical Features: Subtypes & Associated Features",
  accent: C.mddAccent,
  left: {
    header: "DSM-5-TR Specifiers",
    items: [
      "With anxious distress",
      "With melancholic features (anhedonia, early morning awakening, diurnal variation, profound guilt)",
      "With atypical features (mood reactivity, hypersomnia, hyperphagia, leaden paralysis)",
      "With psychotic features (mood-congruent or incongruent)",
      "With catatonic features",
      "With peripartum onset (within 4 weeks postpartum)",
      "With seasonal pattern (SAD)"
    ]
  },
  right: {
    header: "Associated Features",
    items: [
      "Tearfulness, irritability, rumination",
      "Somatic complaints (headaches, GI distress, pain)",
      "Hopelessness — strongest predictor of suicide",
      "Social withdrawal and isolation",
      "Cognitive impairment mimicking dementia ('pseudodementia')",
      "In children: somatic complaints, agitation, irritability more prominent than sadness",
      "In adolescents: antisocial behavior, substance use, academic decline"
    ]
  }
});

// SLIDE 8: MDD — Psychotic Features
cardSlide(pres, {
  title: "MDD — With Psychotic Features",
  accent: C.mddAccent,
  bullets: [
    "Occurs in severe MDD; reflects poor prognosis",
    "Mood-congruent delusions: guilt, worthlessness, disease, nihilism, deserved punishment",
    "Mood-incongruent symptoms suggest comorbid primary psychotic disorder (schizoaffective, schizophrenia)",
    "Hallucinations: typically a single voice from outside the head with derogatory or suicidal content",
    "Psychotic depression is rare in prepubertal children (cognitive immaturity); present in ~50% of psychotically depressed adolescents",
    "Treatment: antidepressant + antipsychotic combination, or ECT (especially effective for psychotic depression)"
  ]
});

// SLIDE 9: MDD — DSM-5-TR Criteria
criteriaSlide(pres, {
  title: "MDD — DSM-5-TR Diagnostic Criteria",
  intro: "Criterion A: ≥5 of the following symptoms for ≥2 weeks (at least 1 must be #1 or #2):",
  accent: C.mddAccent,
  criteria: [
    "1. Depressed mood most of the day, nearly every day (subjective or observed)",
    "2. Markedly diminished interest or pleasure in all/almost all activities",
    "3. Significant weight/appetite change (>5% body weight in 1 month)",
    "4. Insomnia or hypersomnia nearly every day",
    "5. Psychomotor agitation or retardation (observable by others)",
    "6. Fatigue or loss of energy nearly every day",
    "7. Feelings of worthlessness or excessive/inappropriate guilt",
    "8. Diminished concentration or indecisiveness nearly every day",
    "9. Recurrent thoughts of death, suicidal ideation, or suicide attempt"
  ],
  note: "Criteria B–E: Symptoms cause significant distress/impairment; not attributable to substances/medical condition; not better explained by psychotic disorder; no history of manic/hypomanic episode"
});

// SLIDE 10: MDD — Management Overview
{
  const sl = pres.addSlide();
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: "100%", fill: { color: C.navy } });
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: 0.1, fill: { color: C.mddAccent } });
  sl.addText("MDD — Management Overview", {
    x: 0.4, y: 0.15, w: 9.2, h: 0.7, fontSize: 24, bold: true, color: C.white, fontFace: "Calibri", margin: 0
  });
  sl.addShape(pres.ShapeType.line, { x: 0.4, y: 0.88, w: 9.2, h: 0, line: { color: C.mddAccent, width: 1.5 } });

  const boxes = [
    { label: "Acute Phase", detail: "Treat to remission\n(0–12 weeks)", col: C.plum },
    { label: "Continuation Phase", detail: "Prevent relapse\n(4–9 months)", col: C.mddAccent },
    { label: "Maintenance Phase", detail: "Prevent recurrence\n(1+ year or lifelong)", col: C.teal },
  ];
  boxes.forEach((b, i) => {
    const x = 0.5 + i * 3.1;
    sl.addShape(pres.ShapeType.rect, { x, y: 1.1, w: 2.9, h: 1.5, fill: { color: b.col } });
    sl.addText(b.label, { x, y: 1.1, w: 2.9, h: 0.55, fontSize: 14, bold: true, color: C.white, fontFace: "Calibri", align: "center", valign: "middle" });
    sl.addText(b.detail, { x, y: 1.65, w: 2.9, h: 0.95, fontSize: 12, color: C.offWhite, fontFace: "Calibri", align: "center", valign: "middle" });
  });

  const goals = [
    "Achieve full remission (not just response) — partial remission leads to higher relapse risk",
    "Use both pharmacological AND psychotherapeutic approaches for optimal outcomes",
    "Patient education: medication adherence, recognition of early relapse warning signs",
    "Monitor for treatment-emergent suicidality (especially first 2 weeks of antidepressant therapy)",
    "Collaborative care model recommended for complex or treatment-resistant cases"
  ];
  sl.addText(goals.map((g, i) => ({
    text: g,
    options: { bullet: true, breakLine: i < goals.length - 1, fontSize: 13.5, color: C.offWhite, fontFace: "Calibri", paraSpaceBefore: 4 }
  })), { x: 0.4, y: 2.85, w: 9.2, h: 2.6, valign: "top" });
}

// SLIDE 11: MDD — Pharmacological (Antidepressants Overview)
twoColSlide(pres, {
  title: "MDD — Pharmacological Management: First-Line",
  accent: C.mddAccent,
  left: {
    header: "SSRIs (First-Line)",
    items: [
      "Fluoxetine (20–60 mg/day)",
      "Sertraline (50–200 mg/day)",
      "Escitalopram (10–20 mg/day)",
      "Paroxetine (20–60 mg/day)",
      "Citalopram (20–40 mg/day)",
      "MOA: Block serotonin (5-HT) reuptake",
      "Side effects: GI upset, sexual dysfunction, insomnia, weight gain (variable)"
    ]
  },
  right: {
    header: "SNRIs (First-Line Alternative)",
    items: [
      "Venlafaxine (75–375 mg/day)",
      "Duloxetine (60–120 mg/day)",
      "Desvenlafaxine (50 mg/day)",
      "MOA: Block 5-HT and NE reuptake",
      "Preferred when comorbid pain or anxiety",
      "SE: dose-dependent HTN (venlafaxine), nausea",
      "Therapeutic effect: 2–6 weeks onset"
    ]
  }
});

// SLIDE 12: MDD — Pharmacological (Other Agents)
twoColSlide(pres, {
  title: "MDD — Pharmacological Management: Other Agents",
  accent: C.mddAccent,
  left: {
    header: "TCAs & MAOIs",
    items: [
      "TCAs: amitriptyline, imipramine, nortriptyline",
      "Effective but high SE burden: anticholinergic, cardiotoxic",
      "Lethal in overdose — use caution",
      "MAOIs: phenelzine, tranylcypromine",
      "Most effective for atypical depression",
      "Tyramine-free diet required (hypertensive crisis risk)",
      "Reserved for treatment-resistant cases"
    ]
  },
  right: {
    header: "Novel & Augmentation",
    items: [
      "Bupropion (NE/DA reuptake inhibitor) — no sexual SE, weight neutral",
      "Mirtazapine — sedating, weight gain; good for insomnia/anorexia",
      "Ketamine/Esketamine (Spravato) — rapid-acting NMDA antagonist; for TRD",
      "Lithium or atypical antipsychotics (aripiprazole, quetiapine) for augmentation",
      "Vortioxetine — multimodal; cognitive benefits",
      "Adequate trial: therapeutic dose × 4–6 weeks"
    ]
  }
});

// SLIDE 13: MDD — Non-pharmacological (Psychotherapy)
cardSlide(pres, {
  title: "MDD — Non-pharmacological: Psychotherapy",
  accent: C.mddAccent,
  bullets: [
    "Cognitive Behavioral Therapy (CBT): Gold standard — targets negative automatic thoughts and maladaptive behaviors; comparable to antidepressants for mild-moderate MDD",
    "Interpersonal Therapy (IPT): Focuses on grief, role disputes, transitions; particularly effective for postpartum depression",
    "Behavioral Activation (BA): Addresses avoidance behaviors; effective for all severities",
    "Psychodynamic Therapy: Addresses underlying conflicts; longer-term approach",
    "Mindfulness-Based Cognitive Therapy (MBCT): Reduces relapse risk in recurrent MDD (3+ episodes); combines CBT with mindfulness",
    "Combined therapy + medication superior to either alone for moderate-severe MDD",
    "Psychoeducation and supportive therapy for patients and families"
  ]
});

// SLIDE 14: MDD — Somatic Treatments
cardSlide(pres, {
  title: "MDD — Non-pharmacological: Somatic Treatments",
  accent: C.mddAccent,
  bullets: [
    "Electroconvulsive Therapy (ECT): Most effective treatment for severe, psychotic, or TRD; first-line in high suicidality or refusal to eat; brief seizure induced under anesthesia; bilateral > unilateral for efficacy",
    "Transcranial Magnetic Stimulation (TMS/rTMS): Non-invasive; FDA-approved after 1+ failed antidepressant; 40-min sessions × 4–6 weeks; no anesthesia; avoids cognitive SE of ECT",
    "Vagal Nerve Stimulation (VNS): Implanted device; approved for chronic, recurrent TRD; mechanism unclear",
    "Phototherapy (Light Therapy): 1,500–10,000 lux box; 1–2 hours before dawn daily; effective for Seasonal Affective Disorder (SAD); rare risk of triggering mania",
    "Ketamine infusions: Rapid (hours) — important for acute suicidal crisis"
  ]
});

// SLIDE 15: MDD — Prognosis
cardSlide(pres, {
  title: "MDD — Prognosis",
  accent: C.mddAccent,
  bullets: [
    "~50% of patients recover within the first year after first hospitalization",
    "25% recur within 6 months of leaving hospital; 30–50% within 2 years",
    "50–75% of all patients will have a recurrence within 5 years",
    "Untreated episode: 6–13 months; treated episode: ~3 months",
    "Over 20 years, mean number of episodes: 5–6",
    "With each additional episode, inter-episode intervals shorten and severity increases ('kindling effect')",
    "Good prognosis: mild severity, absence of psychotic features, good social support, no prior episodes",
    "Poor prognosis: early age of onset, psychotic features, severe episodes, comorbid anxiety/substance use, personality disorder",
    "Prophylactic maintenance therapy significantly reduces relapse rates"
  ]
});

// ═══════════════════════════════════════════════════════════════════
//  PART II — BIPOLAR DISORDER
// ═══════════════════════════════════════════════════════════════════

// SLIDE 16: Bipolar Section Header
sectionDivider(pres,
  "PART II",
  C.bpAccent,
  "Bipolar Disorder (BD)"
);

// SLIDE 17: Bipolar — Introduction
cardSlide(pres, {
  title: "Bipolar Disorder — Introduction",
  accent: C.bpAccent,
  bullets: [
    "Bipolar disorder is a cyclic mood disorder characterized by episodes of mania/hypomania and depression",
    "Formerly known as 'manic-depressive illness' — one of psychiatry's oldest recognized diagnoses",
    "DSM-5-TR distinguishes: Bipolar I (full mania), Bipolar II (hypomania + depression), Cyclothymia",
    "Represents a spectrum: from depressive predominance to manic predominance",
    "Significant impact: disability, interpersonal dysfunction, high suicide risk (~15–20% in untreated BD)",
    "Highly heritable: strongest genetic component of any psychiatric disorder",
    "Kaplan: BD is associated with 'the highest risk of suicide among all psychiatric disorders in some series'"
  ]
});

// SLIDE 18: Bipolar — Epidemiology
twoColSlide(pres, {
  title: "Bipolar Disorder — Epidemiology",
  accent: C.bpAccent,
  left: {
    header: "Prevalence & Demographics",
    items: [
      "Bipolar I: lifetime prevalence ~1% (equal sex distribution)",
      "Bipolar II: ~1.1%; more common in women",
      "Bipolar spectrum (BD-I + BD-II + cyclothymia): ~3–5%",
      "Onset: typically late teens to mid-20s (mean ~25 years)",
      "Mean age onset BD-I: 18 years; BD-II: slightly later",
      "Pediatric BD increasingly recognized; often presents as irritability/mixed features"
    ]
  },
  right: {
    header: "Risk Factors & Genetics",
    items: [
      "First-degree relative with BD: 5–10× increased risk",
      "Monozygotic twin concordance: ~60–80%",
      "Strong genetic loading — polygenic architecture",
      "Risk precipitants: sleep deprivation, substance use (especially stimulants, cannabis)",
      "Life events and stressors may trigger first episode",
      "High comorbidity: anxiety disorders, ADHD, substance use disorders"
    ]
  }
});

// SLIDE 19: Bipolar — Types (DSM-5-TR Classification)
cardSlide(pres, {
  title: "Bipolar Disorder — DSM-5-TR Classification",
  accent: C.bpAccent,
  cols: true,
  colData: [
    {
      header: "Bipolar I Disorder",
      items: [
        "≥1 manic episode (may include depressive episodes)",
        "Mania must last ≥7 days (or any duration if hospitalization needed)",
        "Most severe form",
        "Psychotic features common",
        "Equal sex ratio"
      ]
    },
    {
      header: "Bipolar II Disorder",
      items: [
        "Hypomanic episode + major depressive episode",
        "NO full manic episode ever",
        "Hypomania: ≥4 days, no hospitalization",
        "More common in women",
        "Depressive burden more prominent"
      ]
    }
  ]
});

// SLIDE 20: Bipolar — Mania Clinical Features
cardSlide(pres, {
  title: "Bipolar Disorder — Clinical Features of Mania (DIG FAST)",
  accent: C.bpAccent,
  bullets: [
    "D — Distractibility: easily pulled off task by irrelevant stimuli",
    "I — Impulsivity / Indiscretion: poor judgment, risky behaviors (hypersexuality, gambling, overspending)",
    "G — Grandiosity: inflated self-esteem, delusions of special powers or identity",
    "F — Flight of Ideas / Pressured Speech: thoughts race, speech rapid, difficult to interrupt",
    "A — Activity increase: goal-directed or psychomotor agitation",
    "S — Sleep decreased: markedly decreased need for sleep without fatigue (hallmark symptom)",
    "T — Talkativeness: more talkative than usual, difficult to interrupt",
    "Severe mania: psychotic features (mood-congruent grandiose or persecutory delusions, hallucinations)"
  ]
});

// SLIDE 21: Bipolar — Hypomania vs Mania
twoColSlide(pres, {
  title: "Bipolar Disorder — Hypomania vs. Mania",
  accent: C.bpAccent,
  left: {
    header: "Hypomania",
    items: [
      "Duration: ≥4 consecutive days",
      "Noticeable change in mood/behavior observable by others",
      "NOT severe enough to impair social/occupational functioning",
      "Does NOT require hospitalization",
      "No psychotic features",
      "Ego-syntonic — may feel productive, energized",
      "Bipolar II pattern"
    ]
  },
  right: {
    header: "Full Mania",
    items: [
      "Duration: ≥7 days (or any duration if hospitalized)",
      "Severe impairment in social/occupational function",
      "May require hospitalization",
      "Psychotic features possible (30–50%)",
      "Ego-dystonic at severe end",
      "Rapid cycling: ≥4 episodes/year (poor prognosis)",
      "Mixed features: mania + depression simultaneously"
    ]
  }
});

// SLIDE 22: Bipolar — Depressive Episodes
cardSlide(pres, {
  title: "Bipolar Disorder — Depressive Episodes",
  accent: C.bpAccent,
  bullets: [
    "Depressive episodes are MORE frequent and longer than manic episodes in BD",
    "Often indistinguishable from unipolar MDD based on symptoms alone",
    "Clues pointing to bipolar depression: hypersomnia (vs. insomnia), hyperphagia, psychomotor retardation, early age of onset, postpartum onset, psychotic features, family history of BD",
    "Atypical features common: leaden paralysis, mood reactivity, hyperphagia",
    "Suicide risk: highest during depressive or mixed episodes — BD carries 15–20× higher suicide risk vs. general population",
    "Misdiagnosis as MDD is common (may persist for years before correct diagnosis)",
    "CRITICAL: Using antidepressants alone in BD can precipitate mania or rapid cycling — must combine with mood stabilizer"
  ]
});

// SLIDE 23: Bipolar I — DSM-5-TR Criteria (Manic Episode)
criteriaSlide(pres, {
  title: "Bipolar I — DSM-5-TR: Manic Episode (Criterion A–E)",
  intro: "Criterion A: Distinct period of abnormally & persistently elevated/expansive/irritable mood AND increased goal-directed activity; ≥7 days (or any duration if hospitalized):",
  accent: C.bpAccent,
  criteria: [
    "1. Grandiosity or inflated self-esteem",
    "2. Decreased need for sleep (feels rested after only 3 hours)",
    "3. More talkative than usual or pressure to keep talking",
    "4. Flight of ideas or subjective experience that thoughts are racing",
    "5. Distractibility (attention easily drawn to unimportant stimuli)",
    "6. Increased goal-directed activity (social/occupational/sexual) or psychomotor agitation",
    "7. Excessive involvement in activities with high potential for painful consequences",
    "Criterion B: ≥3 symptoms (≥4 if mood is only irritable) — marked impairment"
  ],
  note: "Criteria C–E: Severe enough to impair function or require hospitalization or has psychotic features; not due to substances/medical condition"
});

// SLIDE 24: Bipolar II — DSM-5-TR Criteria
criteriaSlide(pres, {
  title: "Bipolar II — DSM-5-TR Criteria",
  intro: "Requires BOTH: at least one hypomanic episode AND at least one major depressive episode",
  accent: C.bpAccent,
  criteria: [
    "Hypomanic Episode: ≥4 consecutive days of elevated/expansive/irritable mood + ≥3 DIGFAST symptoms",
    "NOT severe enough to cause marked impairment or require hospitalization",
    "NO psychotic features during hypomanic episode",
    "Major Depressive Episode: meets full MDD criteria (≥5 symptoms, ≥2 weeks)",
    "EXCLUSION: No current or past manic episode (would change diagnosis to BD-I)",
    "Significant distress or impairment in social, occupational, or other important areas of functioning",
    "Depressive episodes are typically dominant, longer, and more disabling than hypomanic episodes",
    "High misdiagnosis rate as MDD — careful longitudinal history essential"
  ],
  note: "Note: One antidepressant-induced hypomanic episode does NOT count toward BD-II diagnosis (DSM-5-TR)"
});

// SLIDE 25: Bipolar — Management Overview
{
  const sl = pres.addSlide();
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: "100%", fill: { color: C.navy } });
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: 0.1, fill: { color: C.bpAccent } });
  sl.addText("Bipolar Disorder — Management Overview", {
    x: 0.4, y: 0.15, w: 9.2, h: 0.7, fontSize: 24, bold: true, color: C.white, fontFace: "Calibri", margin: 0
  });
  sl.addShape(pres.ShapeType.line, { x: 0.4, y: 0.88, w: 9.2, h: 0, line: { color: C.bpAccent, width: 1.5 } });

  const phases = [
    { label: "Acute Mania", col: C.warn },
    { label: "Acute Bipolar Depression", col: C.mddAccent },
    { label: "Maintenance / Prophylaxis", col: C.teal },
  ];
  phases.forEach((p, i) => {
    sl.addShape(pres.ShapeType.roundRect, { x: 0.4 + i * 3.2, y: 1.05, w: 3.0, h: 0.6, fill: { color: p.col }, rectRadius: 0.05 });
    sl.addText(p.label, { x: 0.4 + i * 3.2, y: 1.05, w: 3.0, h: 0.6, fontSize: 13, bold: true, color: C.white, fontFace: "Calibri", align: "center", valign: "middle" });
  });

  const principles = [
    "Mood stabilizers are the backbone of BD treatment (lithium, valproate, lamotrigine, carbamazepine)",
    "Antidepressants should NOT be used as monotherapy — risk of triggering mania or rapid cycling",
    "Psychoeducation is as important as pharmacotherapy for long-term outcomes",
    "Lifestyle regulation: regular sleep schedule, avoiding stimulants/alcohol",
    "Treat to full remission; partial response predicts higher relapse rates",
    "Shared decision-making critical — BD is lifelong; adherence is the biggest challenge"
  ];
  sl.addText(principles.map((g, i) => ({
    text: g,
    options: { bullet: true, breakLine: i < principles.length - 1, fontSize: 13.5, color: C.offWhite, fontFace: "Calibri", paraSpaceBefore: 4 }
  })), { x: 0.4, y: 1.78, w: 9.2, h: 3.5, valign: "top" });
}

// SLIDE 26: Bipolar — Lithium (Mood Stabilizer)
cardSlide(pres, {
  title: "Bipolar Disorder — Lithium: First-Line Mood Stabilizer",
  accent: C.bpAccent,
  bullets: [
    "Mechanism: Multiple — inhibits inositol monophosphatase, modulates GSK-3β, neuroprotective effects",
    "Indications: Acute mania, maintenance/prophylaxis of BD-I and BD-II, augmentation in MDD",
    "Therapeutic serum level: 0.6–1.2 mEq/L (acute mania: 0.8–1.2; maintenance: 0.6–0.8)",
    "Response rate for acute mania: 60–80%",
    "Gold standard for suicide prevention in mood disorders (strongest evidence)",
    "Side effects: Tremor (fine postural), polyuria/polydipsia (nephrogenic DI), weight gain, hypothyroidism, acne",
    "Toxicity (>1.5 mEq/L): Coarse tremor, ataxia, confusion, seizures, cardiac arrhythmias",
    "Monitoring: Renal function, TFTs, serum levels every 3–6 months",
    "Teratogenicity: Ebstein anomaly (tricuspid valve) — avoid in 1st trimester"
  ]
});

// SLIDE 27: Bipolar — Anticonvulsants
twoColSlide(pres, {
  title: "Bipolar Disorder — Anticonvulsant Mood Stabilizers",
  accent: C.bpAccent,
  left: {
    header: "Valproate (Depakote)",
    items: [
      "Effective for acute mania (esp. mixed/rapid cycling)",
      "Therapeutic level: 50–125 μg/mL",
      "Side effects: Weight gain, sedation, hair loss, thrombocytopenia, hepatotoxicity",
      "CONTRAINDICATED in pregnancy (neural tube defects, PCOS-like effects)",
      "First-line for rapid cycling and dysphoric mania",
      "Superior to lithium for mixed features"
    ]
  },
  right: {
    header: "Lamotrigine & Carbamazepine",
    items: [
      "Lamotrigine: Best for BIPOLAR DEPRESSION prevention; not effective for acute mania",
      "Start low, titrate slowly — risk of Stevens-Johnson syndrome",
      "Carbamazepine: Esp. useful for dysphoric mania, rapid cycling, lithium non-responders",
      "Carbamazepine SE: Aplastic anemia, agranulocytosis, Stevens-Johnson, SIADH",
      "Blood monitoring required at 3, 6, 9, 12 months",
      "Carbamazepine is a potent CYP450 inducer — many drug interactions"
    ]
  }
});

// SLIDE 28: Bipolar — Antipsychotics in BD
cardSlide(pres, {
  title: "Bipolar Disorder — Antipsychotics",
  accent: C.bpAccent,
  bullets: [
    "Second-generation antipsychotics (SGAs) are highly effective for acute mania and increasingly used as maintenance",
    "Quetiapine: FDA-approved for BD-I mania, BD-II depression, AND maintenance; most versatile SGA in BD",
    "Olanzapine: FDA-approved for acute mania and maintenance; weight gain significant concern",
    "Aripiprazole: Mania and maintenance; metabolically neutral; available as monthly IM (Abilify Maintena)",
    "Risperidone, ziprasidone, cariprazine, asenapine: FDA-approved for BD mania",
    "Lurasidone, cariprazine: FDA-approved for bipolar depression",
    "First-generation antipsychotics (haloperidol): Effective for acute mania but higher EPS risk",
    "Combination of mood stabilizer + SGA often needed for severe or mixed mania"
  ]
});

// SLIDE 29: Bipolar — Treatment of Acute Phases
twoColSlide(pres, {
  title: "Bipolar Disorder — Pharmacotherapy by Phase",
  accent: C.bpAccent,
  left: {
    header: "Acute Mania",
    items: [
      "First-line: lithium OR valproate + SGA",
      "Lorazepam/clonazepam for agitation (adjunct)",
      "Remove precipitants (stop antidepressants, stimulants)",
      "Haloperidol IM for emergency control of severe agitation",
      "Carbamazepine: lithium non-responders or mixed mania",
      "ECT: refractory mania or when rapid response needed"
    ]
  },
  right: {
    header: "Bipolar Depression",
    items: [
      "Quetiapine monotherapy (FDA-approved, Level A evidence)",
      "Lurasidone + lithium/valproate (FDA-approved)",
      "Cariprazine (FDA-approved for BD depression)",
      "Lamotrigine for maintenance/prevention",
      "Avoid antidepressant monotherapy (risk of switching to mania)",
      "If antidepressant used: always combine with mood stabilizer"
    ]
  }
});

// SLIDE 30: Bipolar — Non-pharmacological Management
cardSlide(pres, {
  title: "Bipolar Disorder — Non-pharmacological Management",
  accent: C.bpAccent,
  bullets: [
    "Psychoeducation (Individual or Group): Cornerstone — recognition of early warning signs, treatment adherence, trigger identification",
    "Cognitive Behavioral Therapy (CBT): Addresses maladaptive cognitions; particularly effective for depressive phases and adherence",
    "Interpersonal & Social Rhythm Therapy (IPSRT): Stabilizes daily social rhythms and sleep-wake cycles; reduces episode frequency",
    "Family-Focused Therapy (FFT): Reduces expressed emotion; improves family communication and crisis management",
    "Lifestyle measures: Regular sleep schedule, avoiding alcohol/stimulants, exercise, stress reduction",
    "ECT: Effective for severe BD depression and acute mania; first-line in pregnancy and medical emergencies",
    "TMS: Emerging evidence for bipolar depression"
  ]
});

// SLIDE 31: Bipolar — Prognosis
cardSlide(pres, {
  title: "Bipolar Disorder — Prognosis",
  accent: C.bpAccent,
  bullets: [
    "BD is a lifelong, recurrent disorder — most patients experience multiple episodes",
    "Without treatment: 90% of patients have recurrence; many cycle continuously",
    "With optimal treatment: 50–60% achieve good functional outcomes",
    "Rapid cycling (≥4 episodes/year): poorer prognosis; associated with hypothyroidism, antidepressant use",
    "Mixed features associated with higher suicide risk and poorer treatment response",
    "Suicide: 15–20× higher risk than general population; 10–15% of BD patients die by suicide",
    "Predictors of poor prognosis: early onset, psychotic features, substance use, medication non-adherence, poor social support",
    "Predictors of good prognosis: good inter-episode functioning, social support, medication compliance, absence of psychosis"
  ]
});

// ═══════════════════════════════════════════════════════════════════
//  PART III — COMPARISON
// ═══════════════════════════════════════════════════════════════════

// SLIDE 32: Section Header — Comparison
sectionDivider(pres, "MDD vs. BIPOLAR DISORDER", C.amber, "Key Comparative Summary");

// SLIDE 33: MDD vs BD — Comparison Table
{
  const sl = pres.addSlide();
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: "100%", fill: { color: C.navy } });
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: 0.1, fill: { color: C.amber } });
  sl.addText("MDD vs. Bipolar Disorder — Comparison", {
    x: 0.4, y: 0.15, w: 9.2, h: 0.7, fontSize: 24, bold: true, color: C.white, fontFace: "Calibri", margin: 0
  });
  sl.addShape(pres.ShapeType.line, { x: 0.4, y: 0.88, w: 9.2, h: 0, line: { color: C.amber, width: 1.5 } });

  const rows = [
    ["Feature", "MDD", "Bipolar Disorder"],
    ["Core Mood", "Depressed / Anhedonic only", "Mania + Depression (cyclical)"],
    ["Prevalence", "~17% lifetime", "~1–3% (BD spectrum)"],
    ["Sex Ratio", "Female >> Male (2:1)", "BD-I: equal; BD-II: female > male"],
    ["Age of Onset", "~30–40 years (variable)", "~18–25 years (earlier onset)"],
    ["Suicide Risk", "Elevated", "Very high (15–20× general pop.)"],
    ["First-Line Rx", "SSRIs/SNRIs + psychotherapy", "Mood stabilizers + SGAs"],
    ["Psychotherapy", "CBT, IPT, MBCT", "IPSRT, CBT, FFT, psychoeducation"],
    ["Antidepressants", "Safe and effective", "CAUTION — can trigger mania"],
    ["Prognosis", "50–75% recur within 5 yrs", "Lifelong; 90% recur untreated"],
  ];

  rows.forEach((row, rIdx) => {
    const y = 1.0 + rIdx * 0.41;
    const cols = [0.3, 3.5, 6.7];
    const widths = [3.1, 3.1, 3.1];
    const isHeader = rIdx === 0;
    row.forEach((cell, cIdx) => {
      sl.addShape(pres.ShapeType.rect, {
        x: cols[cIdx], y, w: widths[cIdx], h: 0.4,
        fill: { color: isHeader ? C.amber : (rIdx % 2 === 0 ? C.card : C.cardAlt) },
        line: { color: C.slate, width: 0.5 }
      });
      sl.addText(cell, {
        x: cols[cIdx] + 0.05, y, w: widths[cIdx] - 0.1, h: 0.4,
        fontSize: 11.5, bold: isHeader, color: isHeader ? C.navy : C.offWhite,
        fontFace: "Calibri", valign: "middle"
      });
    });
  });
}

// SLIDE 34: Differential Diagnosis & Red Flags
twoColSlide(pres, {
  title: "Differential Diagnosis & Key Red Flags",
  accent: C.amber,
  left: {
    header: "Differential Diagnosis",
    items: [
      "Persistent depressive disorder (dysthymia)",
      "Cyclothymic disorder",
      "Schizoaffective disorder",
      "Adjustment disorder with depressed mood",
      "Grief reaction (normal bereavement)",
      "Hypothyroidism, Cushing's, anemia",
      "Substance-induced mood disorder",
      "ADHD (overlaps with hypomania in children)"
    ]
  },
  right: {
    header: "Clinical Red Flags",
    items: [
      "Suicidal ideation — always assess plan, intent, means",
      "Psychotic features — increase risk and alter treatment",
      "Antidepressant-triggered elation → reconsider BD",
      "Rapid switching → workup for BD, substance use",
      "Family history of BD in a 'depressed' patient",
      "Postpartum psychosis (emergency — risk of infanticide)",
      "Mixed states — highest suicide risk"
    ]
  }
});

// SLIDE 35: Summary — Take-Home Messages
{
  const sl = pres.addSlide();
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: "100%", fill: { color: C.navy } });
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: 0.1, fill: { color: C.amber } });
  sl.addText("Take-Home Messages", {
    x: 0.4, y: 0.15, w: 9.2, h: 0.7, fontSize: 24, bold: true, color: C.amber, fontFace: "Calibri", margin: 0
  });
  sl.addShape(pres.ShapeType.line, { x: 0.4, y: 0.88, w: 9.2, h: 0, line: { color: C.amber, width: 1.5 } });

  const msgs = [
    { num: "01", text: "MDD: SSRIs are first-line; combine with CBT/IPT for best outcomes. ECT for severe/refractory cases.", col: C.mddAccent },
    { num: "02", text: "Bipolar: NEVER use antidepressant monotherapy — always add a mood stabilizer to prevent switching.", col: C.bpAccent },
    { num: "03", text: "Lithium remains the gold standard for BD maintenance AND is the only agent proven to reduce suicide.", col: C.teal },
    { num: "04", text: "Psychotherapy is essential for both: CBT/MBCT for MDD; IPSRT + FFT for Bipolar disorder.", col: C.amber },
    { num: "05", text: "Both are chronic, recurrent disorders — maintenance treatment and psychoeducation reduce relapse rates.", col: C.warn },
  ];

  msgs.forEach((m, i) => {
    const y = 1.05 + i * 0.84;
    sl.addShape(pres.ShapeType.rect, { x: 0.3, y, w: 9.4, h: 0.75, fill: { color: C.card }, line: { color: m.col, width: 1.5 } });
    sl.addShape(pres.ShapeType.rect, { x: 0.3, y, w: 0.55, h: 0.75, fill: { color: m.col } });
    sl.addText(m.num, { x: 0.3, y, w: 0.55, h: 0.75, fontSize: 16, bold: true, color: C.white, fontFace: "Calibri", align: "center", valign: "middle" });
    sl.addText(m.text, { x: 0.93, y: y + 0.05, w: 8.6, h: 0.65, fontSize: 13.5, color: C.offWhite, fontFace: "Calibri", valign: "middle" });
  });
}

// SLIDE 36: References
cardSlide(pres, {
  title: "References",
  accent: C.slate,
  bullets: [
    "Sadock BJ, Sadock VA, Ruiz P. Kaplan & Sadock's Synopsis of Psychiatry: Behavioral Sciences/Clinical Psychiatry. 12th ed. Wolters Kluwer; 2021.",
    "Kaplan & Sadock's Comprehensive Textbook of Psychiatry. 10th ed. Wolters Kluwer; 2017.",
    "American Psychiatric Association. Diagnostic and Statistical Manual of Mental Disorders, 5th Edition, Text Revision (DSM-5-TR). APA; 2022.",
    "Goodwin FK, Jamison KR. Manic-Depressive Illness: Bipolar Disorders and Recurrent Depression. 2nd ed. Oxford University Press; 2007.",
    "National Institute for Health and Care Excellence (NICE). Depression in adults: treatment and management. NICE guideline [NG222]; 2022.",
    "National Institute for Health and Care Excellence (NICE). Bipolar disorder: assessment and management. NICE guideline [CG185]; 2020.",
    "Cipriani A, et al. Comparative efficacy and acceptability of 21 antidepressant drugs. Lancet 2018; 391(10128):1357–1366."
  ]
});

// ─── WRITE FILE ──────────────────────────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/mood-disorders-pptx/MoodDisorders_MDD_Bipolar.pptx" })
  .then(() => console.log("SUCCESS: MoodDisorders_MDD_Bipolar.pptx created"))
  .catch(err => console.error("ERROR:", err));
Running Command

cd /home/daytona/workspace/mood-disorders-pptx && node build.js 2>&1

Running Command

ls -lh /home/daytona/workspace/mood-disorders-pptx/MoodDisorders_MDD_Bipolar.ppt…

Your presentation is ready. Here is the download link:

MoodDisorders MDD Bipolar

Presentation · PPTX


What's Inside — 36 Slides

Design: Dark navy background, clean card/panel layout, bold accent bars, color-coded sections (purple for MDD, teal for Bipolar, amber for highlights). All content sourced from Kaplan & Sadock's Synopsis 12e and DSM-5-TR.

Slide Breakdown

SlidesSection
1Title slide with dual-disorder pill badges
2Presentation outline (5 numbered sections)
PART I — MDD
3MDD section divider
4Introduction
5Epidemiology (prevalence, sex ratio, age of onset, comorbidities)
6Clinical Features — SIG E CAPS mnemonic
7Subtypes (specifiers) + Associated Features (two-column)
8Psychotic Features in MDD
9DSM-5-TR Diagnostic Criteria (criteria box layout)
10Management overview (3-phase model)
11Pharmacological — SSRIs & SNRIs
12Pharmacological — TCAs, MAOIs, novel agents, augmentation
13Non-pharmacological — Psychotherapy (CBT, IPT, MBCT, etc.)
14Non-pharmacological — Somatic treatments (ECT, TMS, VNS, phototherapy, ketamine)
15Prognosis
PART II — Bipolar
16Bipolar section divider
17Introduction
18Epidemiology (two-column: prevalence + genetics/risk factors)
19DSM-5-TR classification (BD-I vs. BD-II card layout)
20Clinical Features of Mania — DIG FAST mnemonic
21Hypomania vs. Mania (two-column comparison)
22Depressive episodes in BD + misdiagnosis warning
23DSM-5-TR Bipolar I — Manic Episode criteria
24DSM-5-TR Bipolar II criteria
25Management overview (3-phase model)
26Lithium — mechanism, dosing, monitoring, toxicity
27Anticonvulsants — valproate, lamotrigine, carbamazepine
28Antipsychotics in BD (quetiapine, lurasidone, cariprazine, etc.)
29Pharmacotherapy by phase (mania vs. bipolar depression)
30Non-pharmacological (IPSRT, CBT, FFT, ECT, lifestyle)
31Prognosis
COMPARISON
32Comparison section divider
33MDD vs. BD 10-row comparison table
34Differential diagnosis + red flags (two-column)
355 key take-home messages
36References (Kaplan 12e, DSM-5-TR, NICE, Lancet 2018)
This is a shared conversation. Sign in to Orris to start your own chat.