attachment
attachment

Make it easy with flowchart and diagrams

analyse_media
Running Command

ls /home/daytona/workspace/ 2>/dev/null || echo "workspace empty or not found"

Running Command

mkdir -p /home/daytona/workspace/alimentary-diagrams && echo "created"

Writing File

~/alimentary-diagrams/diagrams.html

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Alimentary System – Development Diagrams</title>
<style>
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: 'Segoe UI', Arial, sans-serif; background: #f0f4f8; color: #1a202c; padding: 24px; }
  h1 { text-align: center; color: #7b3f00; font-size: 2em; margin-bottom: 6px; letter-spacing: 1px; }
  .subtitle { text-align: center; color: #666; margin-bottom: 32px; font-size: 0.95em; }

  /* -------- Section titles -------- */
  .section-title {
    background: linear-gradient(90deg, #7b3f00, #c46a00);
    color: white; font-size: 1.15em; font-weight: bold;
    padding: 10px 18px; border-radius: 8px 8px 0 0;
    margin-top: 36px; letter-spacing: 0.5px;
  }
  .card {
    background: white; border-radius: 0 0 12px 12px;
    padding: 28px 24px; box-shadow: 0 3px 16px rgba(0,0,0,0.09);
    margin-bottom: 8px;
  }

  /* -------- Flowchart boxes -------- */
  .flow { display: flex; flex-direction: column; align-items: center; gap: 0; }
  .flow-row { display: flex; align-items: center; gap: 0; flex-wrap: wrap; justify-content: center; }
  .box {
    padding: 10px 18px; border-radius: 8px; font-size: 0.88em; font-weight: 600;
    text-align: center; min-width: 160px; max-width: 220px; line-height: 1.4;
  }
  .box-start  { background: #fde68a; border: 2px solid #d97706; color: #7c2d12; }
  .box-step   { background: #dbeafe; border: 2px solid #3b82f6; color: #1e3a8a; }
  .box-result { background: #d1fae5; border: 2px solid #10b981; color: #064e3b; }
  .box-key    { background: #ede9fe; border: 2px solid #7c3aed; color: #3b0764; }
  .box-warn   { background: #fee2e2; border: 2px solid #ef4444; color: #7f1d1d; }
  .box-orange { background: #ffedd5; border: 2px solid #f97316; color: #7c2d12; }
  .box-teal   { background: #ccfbf1; border: 2px solid #14b8a6; color: #134e4a; }

  .arrow { font-size: 1.6em; color: #94a3b8; margin: 0 6px; line-height: 1; }
  .arrow-down { font-size: 1.6em; color: #94a3b8; margin: 2px 0 2px 0; text-align: center; }

  /* -------- Timeline -------- */
  .timeline { display: flex; flex-direction: column; gap: 0; padding: 0 12px; }
  .tl-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 4px; }
  .tl-dot-col { display: flex; flex-direction: column; align-items: center; min-width: 36px; }
  .tl-dot { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 0.75em; color: white; flex-shrink: 0; }
  .tl-line { width: 3px; background: #e2e8f0; flex: 1; min-height: 18px; }
  .tl-content { background: #f8fafc; border-left: 4px solid #7b3f00; border-radius: 6px; padding: 10px 14px; margin-bottom: 10px; flex: 1; }
  .tl-week { font-weight: 700; color: #7b3f00; font-size: 0.85em; margin-bottom: 3px; }
  .tl-text { font-size: 0.87em; color: #334155; line-height: 1.5; }

  /* -------- Split columns -------- */
  .cols { display: flex; gap: 20px; flex-wrap: wrap; }
  .col { flex: 1; min-width: 240px; }

  /* -------- Table -------- */
  table { width: 100%; border-collapse: collapse; font-size: 0.87em; margin-top: 10px; }
  th { background: #7b3f00; color: white; padding: 9px 12px; text-align: left; }
  td { padding: 8px 12px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
  tr:nth-child(even) td { background: #f8fafc; }

  /* -------- Summary box -------- */
  .summary-box {
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    border: 2px solid #d97706; border-radius: 12px;
    padding: 20px 24px; margin-top: 36px;
  }
  .summary-box h3 { color: #7c2d12; margin-bottom: 12px; font-size: 1.05em; }
  .summary-box ul { padding-left: 20px; font-size: 0.9em; line-height: 1.8; color: #1e293b; }

  /* -------- Arch diagram -------- */
  .arch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 4px; }
  .arch-card { border-radius: 10px; padding: 14px; }
  .arch-num { font-weight: 800; font-size: 1.1em; margin-bottom: 6px; }
  .arch-tag { display: inline-block; font-size: 0.75em; background: rgba(0,0,0,0.08); border-radius: 4px; padding: 2px 6px; margin-bottom: 6px; }
  .arch-list { font-size: 0.83em; line-height: 1.6; }

  /* -------- Innervation table -------- */
  .badge { display: inline-block; border-radius: 12px; padding: 2px 10px; font-size: 0.8em; font-weight: 600; }
</style>
</head>
<body>

<h1>🦷 ALIMENTARY SYSTEM — Development</h1>
<p class="subtitle">Textbook of Human Anatomy, Volume 2 · Chapter 13 · Visual Study Guide</p>


<!-- ===================== SECTION 1: ORAL CAVITY DEVELOPMENT ===================== -->
<div class="section-title">① Oral Cavity Development — Timeline</div>
<div class="card">
  <div class="timeline">

    <div class="tl-item">
      <div class="tl-dot-col">
        <div class="tl-dot" style="background:#7b3f00;">W4</div>
        <div class="tl-line"></div>
      </div>
      <div class="tl-content">
        <div class="tl-week">Week 4 — Stomodeum present</div>
        <div class="tl-text">Vestibular epithelium of upper &amp; lower jaws → inner cheek lining.<br>Dental lamina → epithelial component of teeth.</div>
      </div>
    </div>

    <div class="tl-item">
      <div class="tl-dot-col">
        <div class="tl-dot" style="background:#b45309;">W5</div>
        <div class="tl-line"></div>
      </div>
      <div class="tl-content">
        <div class="tl-week">Week 5 — Oropharyngeal Membrane Breaks Down</div>
        <div class="tl-text">
          Communication established between <b>stomodeum</b> and cranial <b>foregut</b>.<br>
          → Future naso-pharynx &amp; oro-pharynx respectively.
        </div>
      </div>
    </div>

    <div class="tl-item">
      <div class="tl-dot-col">
        <div class="tl-dot" style="background:#0369a1;">W6</div>
        <div class="tl-line"></div>
      </div>
      <div class="tl-content">
        <div class="tl-week">Week 6+ — Palate Formation</div>
        <div class="tl-text">
          Hard &amp; soft palate formation → separates cranial foregut:<br>
          &nbsp;&nbsp;• <b>Above</b>: Nasal cavity + nasopharynx<br>
          &nbsp;&nbsp;• <b>Below</b>: Definitive oral cavity
        </div>
      </div>
    </div>

    <div class="tl-item">
      <div class="tl-dot-col">
        <div class="tl-dot" style="background:#047857;">OC</div>
        <div class="tl-line" style="background:transparent;"></div>
      </div>
      <div class="tl-content">
        <div class="tl-week">Oral Cavity Boundaries (Definitive)</div>
        <div class="tl-text">
          Posterior limit from oropharynx:<br>
          &nbsp;&nbsp;• Free edge of <b>soft palate &amp; uvula</b> (above)<br>
          &nbsp;&nbsp;• <b>Palatoglossal arch</b> laterally → oropharyngeal isthmus
        </div>
      </div>
    </div>

  </div>

  <!-- Flowchart -->
  <div style="margin-top:24px;">
    <div style="font-weight:700; color:#7b3f00; margin-bottom:12px; font-size:0.95em;">Flowchart — Oral Cavity Compartmentalisation</div>
    <div class="flow">
      <div class="box box-start">Cranial Foregut (primitive gut)</div>
      <div class="arrow-down">↓</div>
      <div class="box box-step">Oropharyngeal Membrane breaks (Wk 5)</div>
      <div class="arrow-down">↓</div>
      <div class="box box-step">Stomodeum communicates with foregut</div>
      <div class="arrow-down">↓</div>
      <div class="box box-step">Hard + Soft Palate forms</div>
      <div class="arrow-down">↓</div>
      <div class="flow-row">
        <div class="box box-result">Nasal Cavity +<br>Nasopharynx (above)</div>
        <div class="arrow">↔</div>
        <div class="box box-result">Definitive Oral Cavity<br>(below)</div>
      </div>
    </div>
  </div>
</div>


<!-- ===================== SECTION 2: TONGUE DEVELOPMENT ===================== -->
<div class="section-title">② Tongue Development — Pharyngeal Arch Contributions</div>
<div class="card">

  <div class="arch-grid">
    <div class="arch-card" style="background:#fef9c3; border:2px solid #ca8a04;">
      <div class="arch-num" style="color:#92400e;">Arch 1 — Mandibular</div>
      <div class="arch-tag">Ectodermal coverage</div>
      <div class="arch-list">
        • <b>Tuberculum impar</b> (median tongue bud)<br>
        • Paired <b>mandibular (lingual) swellings</b><br>
        • Swellings fuse with tuberculum impar<br>
        → Forms <b>anterior 2/3 of tongue</b>
      </div>
    </div>

    <div class="arch-card" style="background:#dbeafe; border:2px solid #3b82f6;">
      <div class="arch-num" style="color:#1d4ed8;">Arch 2</div>
      <div class="arch-tag">Excluded</div>
      <div class="arch-list">
        • Second arch is <b>excluded</b> from tongue<br>
        • Overgrown by third arch component<br>
        • No significant tongue contribution
      </div>
    </div>

    <div class="arch-card" style="background:#d1fae5; border:2px solid #10b981;">
      <div class="arch-num" style="color:#065f46;">Arch 3 — Hyoid</div>
      <div class="arch-tag">Posterior tongue</div>
      <div class="arch-list">
        • <b>Cupula &amp; hypobranchial eminence</b><br>
        • Ventral ends of 2nd, 3rd, 4th arch converge<br>
        → Forms <b>posterior 1/3 of tongue</b>
      </div>
    </div>

    <div class="arch-card" style="background:#ede9fe; border:2px solid #8b5cf6;">
      <div class="arch-num" style="color:#4c1d95;">Arches 4 &amp; 6</div>
      <div class="arch-tag">Epiglottis region</div>
      <div class="arch-list">
        • Embryonic pharyngeal floor derivatives<br>
        • 3rd arch component grows over 2nd<br>
        → <b>Epiglottis &amp; adjacent areas</b>
      </div>
    </div>
  </div>

  <!-- Tongue formation flowchart -->
  <div style="margin-top:24px;">
    <div style="font-weight:700; color:#7b3f00; margin-bottom:12px; font-size:0.95em;">Flowchart — Tongue Formation Steps</div>
    <div class="flow">
      <div class="box box-start">Mandibular Arch grows faster (floor is craniocaudally longer)</div>
      <div class="arrow-down">↓</div>
      <div class="box box-step">3 swellings appear on pharyngeal floor surface</div>
      <div class="arrow-down">↓</div>
      <div class="flow-row" style="gap:12px;">
        <div class="box box-orange" style="min-width:140px;">Tuberculum Impar<br><small>(median)</small></div>
        <div class="box box-orange" style="min-width:140px;">2× Mandibular Swellings<br><small>(lingual, paired)</small></div>
      </div>
      <div class="arrow-down">↓ fuse together</div>
      <div class="box box-step">Anterior 2/3 tongue formed<br><small>Sulcus emerges along ventral + lateral margins</small></div>
      <div class="arrow-down">↓</div>
      <div class="box box-step">Sulcus deepens → Linguogingival groove<br><small>Elevation = anterior (presulcal) oral part</small></div>
      <div class="arrow-down">↓</div>
      <div class="flow-row" style="gap:12px;">
        <div class="box box-result">Anterior 2/3 (oral part)<br>from Arch 1</div>
        <div class="box box-result">Posterior 1/3 (pharyngeal part)<br>from Arch 3</div>
      </div>
      <div class="arrow-down">↓</div>
      <div class="box box-key">Sulcus terminalis separates them<br><small>Apex at foramen caecum</small></div>
      <div class="arrow-down">↓</div>
      <div class="box box-warn">Foramen caecum = site of thyroid gland downgrowth<br><small>Failure → Lingual thyroid (ectopic)</small></div>
    </div>
  </div>

  <!-- Vallate papillae note -->
  <div style="margin-top:20px; background:#fef3c7; border-left:4px solid #f59e0b; padding:12px 16px; border-radius:6px; font-size:0.87em;">
    <b>📌 Vallate Papillae:</b> Appear around <b>10 weeks (52 mm)</b>. Increase in number until end of 2nd trimester. Territory of the glossopharyngeal nerve extends considerably beyond them.
  </div>

  <!-- Innervation table -->
  <div style="margin-top:20px;">
    <div style="font-weight:700; color:#7b3f00; margin-bottom:8px; font-size:0.95em;">Tongue Innervation Summary</div>
    <table>
      <tr>
        <th>Region</th>
        <th>Sensory Nerve</th>
        <th>Arch Origin</th>
      </tr>
      <tr>
        <td><b>Anterior 2/3</b> — general sensation</td>
        <td>Lingual branch of <b>mandibular nerve (V3)</b></td>
        <td>Arch 1</td>
      </tr>
      <tr>
        <td><b>Anterior 2/3</b> — taste</td>
        <td><b>Chorda tympani</b> (facial nerve VII)</td>
        <td>Arch 1</td>
      </tr>
      <tr>
        <td><b>Posterior 1/3</b></td>
        <td><b>Glossopharyngeal nerve (IX)</b></td>
        <td>Arch 3</td>
      </tr>
      <tr>
        <td><b>Root of tongue</b> (near epiglottis)</td>
        <td><b>Vagus nerve (X)</b></td>
        <td>Arch 4/6</td>
      </tr>
      <tr>
        <td><b>Motor (muscle)</b></td>
        <td><b>Hypoglossal nerve (XII)</b></td>
        <td>Occipital myotomes*</td>
      </tr>
    </table>
    <div style="font-size:0.78em; color:#64748b; margin-top:6px;">*Mesenchyme of tongue invaded by cells from occipital myotomes that migrate from lateral aspects of myelencephalon. They pass ventrally round the pharynx to the floor via hypoglossal nerves.</div>
  </div>
</div>


<!-- ===================== SECTION 3: SALIVARY GLAND DEVELOPMENT ===================== -->
<div class="section-title">③ Salivary Gland Development</div>
<div class="card">

  <!-- Origin flowchart -->
  <div class="flow" style="margin-bottom:20px;">
    <div class="box box-start">Epithelial–Mesenchymal Interaction</div>
    <div class="arrow-down">↓</div>
    <div class="flow-row" style="gap:12px;">
      <div class="box box-step">Ectodermal epithelium<br>of oral cavity</div>
      <div class="box box-step">Subjacent neural crest-derived<br>mesenchyme</div>
    </div>
    <div class="arrow-down">↓ interaction triggers</div>
    <div class="box box-step">Solid diverticula form<br><small>(arise bilaterally)</small></div>
    <div class="arrow-down">↓</div>
    <div class="box box-step">Branching morphogenesis<br><small>Entire tree-like structure; later acquires a lumen</small></div>
    <div class="arrow-down">↓</div>
    <div class="box box-step">Blind ends → <b>Acini</b></div>
    <div class="arrow-down">↓ cells differentiate</div>
    <div class="flow-row" style="gap:12px;">
      <div class="box box-result">Serous cells<br>(first)</div>
      <div class="box box-result">Mucus-secreting cells<br>(postnatal)</div>
    </div>
    <div class="arrow-down">↓ exception</div>
    <div class="box box-warn">Parotid gland — remains mainly or<br>entirely <b>serous</b></div>
  </div>

  <!-- Parotid specifically -->
  <div style="font-weight:700; color:#7b3f00; margin-bottom:12px; font-size:0.95em;">Parotid Gland — Early Recognition</div>
  <div class="flow">
    <div class="box box-start">Embryo 8 mm stage</div>
    <div class="arrow-down">↓</div>
    <div class="box box-step">Elongated furrow running <b>dorsally</b><br>from angle of mouth</div>
    <div class="arrow-down">↓ between</div>
    <div class="flow-row" style="gap:10px;">
      <div class="box box-orange" style="min-width:130px;">Mandibular<br>prominence</div>
      <div class="box box-orange" style="min-width:130px;">Maxillary<br>prominence</div>
    </div>
    <div class="arrow-down">↓</div>
    <div class="box box-step">Groove converts to a <b>tube</b></div>
    <div class="arrow-down">↓</div>
    <div class="box box-result">Parotid gland &amp; its duct (Stensen's)</div>
  </div>

  <!-- Comparison table -->
  <div style="margin-top:24px;">
    <div style="font-weight:700; color:#7b3f00; margin-bottom:8px; font-size:0.95em;">Salivary Glands — Comparison</div>
    <table>
      <tr>
        <th>Gland</th>
        <th>Type of Secretion</th>
        <th>Special Features</th>
      </tr>
      <tr>
        <td><b>Parotid</b></td>
        <td>Mainly/entirely <b>serous</b></td>
        <td>Recognised at 8 mm embryo; furrow → tube</td>
      </tr>
      <tr>
        <td><b>Submandibular</b></td>
        <td>Mixed (serous + mucus)</td>
        <td>Solid diverticulum → branching → lumen</td>
      </tr>
      <tr>
        <td><b>Sublingual</b></td>
        <td>Mainly <b>mucus</b></td>
        <td>Similar branching morphogenesis</td>
      </tr>
    </table>
  </div>
</div>


<!-- ===================== MASTER SUMMARY ===================== -->
<div class="summary-box">
  <h3>📋 Master Summary — Key Points to Remember</h3>
  <ul>
    <li><b>Wk 5:</b> Oropharyngeal membrane breaks → stomodeum communicates with foregut</li>
    <li><b>Palate:</b> Divides cranial foregut → nasal cavity (above) + oral cavity (below)</li>
    <li><b>Tongue anterior 2/3:</b> Arch 1 (tuberculum impar + lingual swellings) → innervated by V3 + VII</li>
    <li><b>Tongue posterior 1/3:</b> Arch 3 (cupula) → innervated by IX; root by X</li>
    <li><b>Foramen caecum:</b> Apex of sulcus terminalis = downgrowth site of thyroid; failure = lingual thyroid</li>
    <li><b>Tongue muscles:</b> From occipital myotomes; carried by hypoglossal nerve (XII)</li>
    <li><b>Salivary glands:</b> Arise from epithelial–mesenchymal interaction; solid → branch → acini → lumen</li>
    <li><b>Parotid:</b> Recognisable at 8 mm embryo; always serous; furrow → tube</li>
    <li><b>Vallate papillae:</b> Appear at 10 weeks; innervated by glossopharyngeal (IX)</li>
    <li><b>Lingual thyroid:</b> Ectopic thyroid tissue between foramen caecum and epiglottis</li>
  </ul>
</div>

<div style="text-align:center; margin-top:28px; font-size:0.78em; color:#94a3b8;">
  Source: Textbook of Human Anatomy, Volume 2 — Chapter 13: Alimentary System
</div>

</body>
</html>
Generating Image

Medical anatomy flowchart showing tongue development from pharyngeal arches. Clean educational diagram with labeled sections: Arch 1 mandibular swellings forming anterior 2/3 of tongue (innervated by lingual nerve V3 and chorda tympani VII), Arch 3 hyoid forming posterior 1/3 (innervated by glossopharyngeal IX), Arch 4 and 6 forming epiglottis (vagus X). Show sulcus terminalis dividing the tongue with foramen caecum at apex. Include arrow from foramen caecum pointing down labeled "thyroid downgrowth - failure = lingual thyroid". White background, professional medical textbook style.

Generating Image

Medical anatomy flowchart diagram showing salivary gland development. Step by step boxes connected by arrows: Start with "Epithelial-Mesenchymal Interaction" then "Solid diverticula form bilaterally" then "Branching morphogenesis" then "Blind ends form Acini" then split into "Serous cells (first)" and "Mucus-secreting cells (postnatal)". Side box for Parotid gland showing "Embryo 8mm - furrow between mandibular and maxillary prominences converts to tube - mainly serous". Clean white background, professional educational style, color coded boxes.

This is a shared conversation. Sign in to Orris to start your own chat.