:root{--medai-primary:#1769e0;--medai-accent:#0f766e;--medai-danger:#b42318;--medai-ink:#172033;--medai-muted:#687386;--medai-line:#dfe5ed;--medai-paper:#fff}
.medai-topic{position:relative;max-width:900px;margin:0 auto;color:var(--medai-ink);font-family:Arial,sans-serif}
.medai-mode-doctor{--medai-primary:#0f766e;--medai-accent:#0f766e}.medai-mode-user{--medai-primary:#7c3aed;--medai-accent:#7c3aed}
.medai-breadcrumb{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin:0 0 18px;color:var(--medai-muted);font-size:13px}.medai-breadcrumb i{font-style:normal;color:#9aa4b2}
.medai-topic-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}.medai-topic-header h1{font-size:clamp(28px,5vw,42px);line-height:1.12;margin:6px 0 0}.medai-topic-kicker{font-size:11px;font-weight:800;letter-spacing:.12em;color:var(--medai-primary)}
.medai-icd{min-width:78px;padding:10px;border-radius:14px;background:#172033;color:#fff;text-align:center}.medai-icd b,.medai-icd span{display:block}.medai-icd span{font-size:10px;color:#bac4d2;margin-top:3px}
.medai-template-chips{display:flex;gap:7px;overflow:auto;padding:0 0 14px}.medai-template-chips span{white-space:nowrap;border:1px solid var(--medai-line);background:#fff;border-radius:999px;padding:6px 10px;font-size:11px;color:#526077}
.medai-topic-content{display:grid;gap:14px}.medai-section-heading{margin:18px 0 0;padding:0 0 10px;border-bottom:2px solid color-mix(in srgb,var(--medai-primary) 35%,white);font-size:21px}
.medai-template{border:1px solid var(--medai-line);border-left:4px solid var(--medai-primary);border-radius:12px;background:var(--medai-paper);overflow:hidden;box-shadow:0 3px 14px rgba(25,43,72,.04)}
.medai-template-label,.medai-template summary{padding:12px 18px 0;color:var(--medai-primary);font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.medai-template summary{padding-bottom:12px;cursor:pointer;background:#f8fafc}.medai-template-body{padding:10px 18px 16px}.medai-template-body p{white-space:normal;margin:0;line-height:1.78;font-size:15px;color:#334155}
.medai-definition{background:#eef6ff}.medai-etiology{border-left-color:#7c3aed}.medai-process{border-left-color:#d97706}.medai-clinical{border-left-color:#2563eb}.medai-classification{border-left-color:#0891b2}.medai-diagnosis,.medai-differential{border-left-color:#4f46e5}.medai-treatment,.medai-dose{border-left-color:#16a34a;background:#f5fff7}.medai-contra,.medai-redflag{border-color:#fecaca;border-left-color:var(--medai-danger);background:#fff5f5}.medai-complication{border-left-color:#dc2626}.medai-history{border-color:#dfd1aa;border-left-color:#9a762f;background:#fbf5e7}.medai-terms{border-left-color:#9333ea}
.medai-checklist{display:grid;gap:8px;margin:0;padding:0;list-style:none}.medai-checklist li{position:relative;padding-left:24px;line-height:1.65}.medai-checklist li:before{content:'✓';position:absolute;left:0;color:var(--medai-primary);font-weight:800}
.medai-source{display:flex;gap:12px;align-items:flex-start;margin-top:18px;padding:13px 16px;border-top:1px solid var(--medai-line);color:var(--medai-muted);font-size:12px}.medai-source b{color:var(--medai-ink)}
.medai-coverage{margin:10px 0;text-align:right;font-size:11px}.medai-coverage.ok{color:#15803d}.medai-coverage.error{color:#b42318;font-weight:800}
.medai-reading-progress{position:fixed;z-index:9;right:10px;top:92px;width:4px;height:calc(100vh - 115px);border-radius:4px;background:#dfe5ed;overflow:hidden}.medai-reading-progress span{display:block;width:100%;height:0;background:var(--medai-primary);transition:height .1s linear}
@media(max-width:650px){.medai-topic-header{display:block}.medai-icd{margin-top:12px}.medai-template-body{padding:8px 14px 14px}.medai-template-label{padding-left:14px}.medai-template-body p{font-size:14.5px}.medai-reading-progress{right:3px;top:75px}.medai-source{display:block}.medai-source b{display:block;margin-bottom:5px}}
@media(prefers-reduced-motion:reduce){.medai-reading-progress span{transition:none}}
/* Adaptive source-driven palettes. Presentation follows the source; source text is never rewritten. */
.medai-palette-clinical{--medai-primary:#123a63;--medai-accent:#147d64}
.medai-palette-action{--medai-primary:#176247;--medai-accent:#2d8a68}
.medai-palette-urgent{--medai-primary:#8b2c2c;--medai-accent:#b4533c}
.medai-palette-heritage{--medai-primary:#765b2b;--medai-accent:#9a762f}
.medai-palette-anatomy{--medai-primary:#315b86;--medai-accent:#567ba3}
.medai-palette-clinical .medai-topic-header,.medai-palette-action .medai-topic-header,.medai-palette-urgent .medai-topic-header,.medai-palette-heritage .medai-topic-header,.medai-palette-anatomy .medai-topic-header{padding:24px 26px;border:1px solid color-mix(in srgb,var(--medai-primary) 18%,white);border-radius:22px;background:linear-gradient(135deg,color-mix(in srgb,var(--medai-primary) 8%,white),#fff);box-shadow:0 12px 34px rgba(25,43,72,.06)}
.medai-palette-action .medai-procedure,.medai-palette-action .medai-treatment{background:linear-gradient(135deg,#f2fbf6,#fff)}
.medai-palette-urgent .medai-complication,.medai-palette-urgent .medai-redflag{background:linear-gradient(135deg,#fff1f1,#fff)}
.medai-palette-heritage .medai-history{background:linear-gradient(135deg,#fbf5e7,#fff)}
.medai-anatomy{border-left-color:#315b86;background:#f5f9fd}.medai-prevention{border-left-color:#0f766e;background:#f3faf8}.medai-procedure{border-left-color:#176247;background:#f4fbf7}
.medai-template-body{font-size:16px}.medai-template-body p{font-size:16px;line-height:1.9}
@media(max-width:650px){.medai-palette-clinical .medai-topic-header,.medai-palette-action .medai-topic-header,.medai-palette-urgent .medai-topic-header,.medai-palette-heritage .medai-topic-header,.medai-palette-anatomy .medai-topic-header{padding:20px 17px;border-radius:17px}.medai-template-body p{font-size:15.5px;line-height:1.84}}
/* v2 source-structure renderer: keep title, chips and content from overlapping on narrow screens. */
.medai-topic-header{position:relative;z-index:2;overflow:visible}.medai-topic-header h1{line-height:1.12;overflow-wrap:anywhere;margin-bottom:0}.medai-template-chips{position:relative;z-index:1;display:flex;flex-wrap:wrap;gap:7px;margin:14px 0 18px}.medai-template-chips span{white-space:normal}.medai-section-heading{scroll-margin-top:18px}.medai-topic-content{clear:both}
@media(max-width:650px){.medai-topic-header{display:block!important;min-height:0!important;height:auto!important;padding-bottom:20px!important}.medai-topic-header>div{min-width:0;width:100%}.medai-topic-header h1{font-size:clamp(25px,8vw,34px)!important;line-height:1.08!important;max-width:100%;margin:7px 0 0!important}.medai-template-chips{margin-top:12px!important;padding:0 2px;overflow:visible!important}.medai-template-chips span{font-size:10px}.medai-topic-content{margin-top:0!important}.medai-template{margin-top:12px}}

/* Source-first mobile layout: no synthetic label for ordinary book prose. */
.medai-source-prose{padding:20px 22px;border:1px solid #e4eaf0;border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(25,43,72,.045)}
.medai-source-prose .medai-template-body p{margin:0;white-space:normal}
@media(max-width:650px){.medai-topic-header{display:block!important}.medai-topic-header h1{font-size:clamp(27px,8vw,38px)!important;line-height:1.08!important;overflow-wrap:anywhere;margin-bottom:4px}.medai-template-chips{position:static!important;display:flex!important;overflow-x:auto!important;flex-wrap:nowrap!important;margin:10px 0 4px;padding:2px 1px 8px;scrollbar-width:none}.medai-template-chips::-webkit-scrollbar{display:none}.medai-source-prose{padding:17px 16px;border-radius:16px}.medai-source-prose .medai-template-body p{font-size:15.5px;line-height:1.86}}

/* v3: phone-first clinical reading layout. Images are intentionally paused. */
.medai-topic-header h1{overflow-wrap:break-word;word-break:normal}
.medai-topic-content{gap:18px}
.medai-source-prose{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.medai-source-prose .medai-template-body{padding:0}
.medai-source-prose .medai-template-body p{white-space:pre-line;line-height:1.9}
@media(max-width:760px){
 body.medai-clinical-layout #dash,body.medai-clinical-layout #dashboard{padding-left:0!important;padding-top:45px!important}
 .medai-clinical-side{width:min(300px,88vw)!important;transform:translateX(-105%)!important}
 .medai-clinical-side.open{transform:translateX(0)!important}
 .medai-clinical-menu{display:flex!important}
 .medai-topic{width:100%;max-width:none;margin:0}
 .medai-breadcrumb{margin:0 0 12px;font-size:11px}
 .medai-topic-header{display:block!important;width:auto!important;min-height:0!important;height:auto!important;margin:0 0 18px!important;padding:18px 15px!important;border-radius:16px!important;overflow:hidden!important}
 .medai-topic-header h1{font-size:clamp(24px,7.4vw,32px)!important;line-height:1.12!important;letter-spacing:-.025em;margin:7px 0 0!important;overflow-wrap:break-word!important;word-break:normal!important}
 .medai-topic-kicker{font-size:9px}
 .medai-topic-content{display:block}
 .medai-topic-content>*+*{margin-top:18px}
 .medai-source-prose{padding:0!important;border:0!important;box-shadow:none!important}
 .medai-source-prose .medai-template-body{padding:0!important}
 .medai-source-prose .medai-template-body p,.medai-template-body p{font-size:15.5px!important;line-height:1.84!important}
 .medai-section-heading{font-size:19px;line-height:1.25;margin-top:24px}
 .medai-template{border-radius:14px}
 .medai-source{padding:12px 0}
 .medai-reading-progress{display:none}
}

/* Oripov hierarchy v4: one centered topic title; source subheadings centered */
.medai-topic-header{text-align:center!important}.medai-topic-header>div{width:100%!important}.medai-topic-header h1{text-align:center!important}.medai-section-heading{text-align:center!important}
/* Uniform source enumeration: never promote 1/2/3... into headings. */
.medai-numbered-list{margin:14px 0 18px;padding-left:30px}
.medai-numbered-list li{font-size:inherit!important;font-weight:400!important;line-height:1.75!important;margin:6px 0!important;text-align:left!important}
.medai-topic-content .medai-section-heading{font-size:1.12rem!important;line-height:1.4!important;font-weight:700!important;margin:24px 0 12px!important;text-align:center!important}
/* Source podtema: standalone, centered, uniform Arial Black heading. */
.medai-topic-content .medai-section-heading{font-family:"Arial Black",Arial,sans-serif!important;font-size:1.12rem!important;font-weight:900!important;line-height:1.35!important;text-align:center!important;margin:26px 0 14px!important;padding:0 0 8px!important}

/* v5 modern clinical reading system: source text remains immutable. */
.medai-topic{--medai-reading-serif:Georgia,"Noto Serif","DejaVu Serif",serif;--medai-note-font:"Segoe Print","Bradley Hand","Comic Sans MS",cursive}
.medai-template-body p,.medai-source-prose .medai-template-body p{font-family:var(--medai-reading-serif);font-size:16.5px;line-height:1.92;letter-spacing:.002em;color:#263548}
.medai-template{border-radius:18px;box-shadow:0 10px 30px rgba(24,39,63,.055)}
.medai-definition{background:linear-gradient(135deg,#eef6ff,#fff)}
.medai-etiology{background:linear-gradient(135deg,#f7f2ff,#fff)}
.medai-process{background:linear-gradient(135deg,#fff9eb,#fff)}
.medai-clinical{background:linear-gradient(135deg,#f2f7ff,#fff)}
.medai-classification{background:linear-gradient(135deg,#effbfc,#fff)}
.medai-diagnosis,.medai-differential{background:linear-gradient(135deg,#f4f4ff,#fff)}
.medai-treatment,.medai-dose{background:linear-gradient(135deg,#f0fbf4,#fff)}
.medai-prevention{background:linear-gradient(135deg,#effaf7,#fff)}
.medai-anatomy{background:linear-gradient(135deg,#f1f7fc,#fff)}
.medai-procedure{background:linear-gradient(135deg,#f0faf5,#fff)}
.medai-history{font-family:Georgia,serif;background:linear-gradient(135deg,#f8f0dd,#fff)}
.medai-redflag,.medai-contra,.medai-complication{background:linear-gradient(135deg,#fff0f0,#fff)}
.medai-template-label{font-size:11px;letter-spacing:.085em}
.medai-section-heading{border-bottom:0!important;position:relative}
.medai-section-heading:after{content:"";display:block;width:52px;height:3px;border-radius:9px;background:color-mix(in srgb,var(--medai-primary) 55%,white);margin:10px auto 0}
/* Doctor-note accent: handwriting is an accent only, never the long source prose. */
.medai-doctor-note{font-family:var(--medai-note-font);font-size:16px;line-height:1.65;transform:rotate(-.15deg);padding:14px 17px;border:1px solid #d9d0ad;border-radius:14px;background:#fffbea;box-shadow:0 7px 18px rgba(65,54,25,.06)}
@media(max-width:760px){.medai-template-body p,.medai-source-prose .medai-template-body p{font-family:var(--medai-reading-serif)!important;font-size:16px!important;line-height:1.88!important}.medai-template{border-radius:16px}}

/* v6 content-aware visual variants. Source text/order remain immutable. */
.medai-template.timeline{border-left-width:5px;background:linear-gradient(135deg,#fff8e7,#fff)}
.medai-template.timeline .medai-template-body{position:relative;padding-left:30px}
.medai-template.timeline .medai-template-body:before{content:"";position:absolute;left:17px;top:17px;bottom:18px;width:2px;background:#e7c66f;border-radius:3px}
.medai-template.matrix{border-left-width:5px;background:linear-gradient(135deg,#edfafa,#fff)}
.medai-template.pathway{border-left-width:5px;background:linear-gradient(135deg,#f0f4ff,#fff)}
.medai-template.treatment-card{border-left-width:5px;background:linear-gradient(135deg,#edfaf2,#fff)}
.medai-template.dose-card{border:1px solid #bbdfc8;border-left:5px solid #159447;background:linear-gradient(135deg,#eaf8ef,#fff)}
.medai-template.alert-rail{border-left-width:7px;box-shadow:0 10px 28px rgba(150,35,35,.07)}
.medai-template.stepper{border-left-width:5px;background:linear-gradient(135deg,#eef9f4,#fff)}
.medai-template.heritage-card{border-left-width:5px;background:linear-gradient(135deg,#f7efdc,#fff)}
.medai-prognosis{border-left-color:#2563eb;background:linear-gradient(135deg,#eef6ff,#fff)}
.medai-followup{border-left-color:#0f766e;background:linear-gradient(135deg,#eef9f6,#fff)}
.medai-rehab{border-left-color:#0891b2;background:linear-gradient(135deg,#eefafd,#fff)}

/* v7 additional source-aware clinical components */
.medai-emergency.emergency-card{border-left:7px solid #b42318;background:linear-gradient(135deg,#fff0f0,#fff)}
.medai-monitoring.monitoring-strip{border-left:5px solid #0f766e;background:linear-gradient(135deg,#effaf7,#fff)}
.medai-laboratory.lab-panel{border-left:5px solid #4f46e5;background:linear-gradient(135deg,#f2f2ff,#fff)}
.medai-imaging.imaging-panel{border-left:5px solid #315b86;background:linear-gradient(135deg,#eff6fc,#fff)}
.medai-indication.indication-card{border-left:5px solid #0891b2;background:linear-gradient(135deg,#effbfc,#fff)}
.medai-preop.preop-card{border-left:5px solid #7c3aed;background:linear-gradient(135deg,#f7f2ff,#fff)}
.medai-postop.postop-card{border-left:5px solid #176247;background:linear-gradient(135deg,#eff9f3,#fff)}

/* v8 semantic clinical components */
.medai-epidemiology.epidemiology-card{border-left:5px solid #2563eb;background:linear-gradient(135deg,#eff6ff,#fff)}
.medai-risk.risk-card{border-left:5px solid #c2410c;background:linear-gradient(135deg,#fff6ed,#fff)}
.medai-screening.screening-card{border-left:5px solid #0f766e;background:linear-gradient(135deg,#effaf7,#fff)}
.medai-criteria.criteria-card{border-left:5px solid #4f46e5;background:linear-gradient(135deg,#f3f2ff,#fff)}
.medai-staging.staging-card{border-left:5px solid #7c3aed;background:linear-gradient(135deg,#f7f2ff,#fff)}
.medai-microbiology.microbiology-card{border-left:5px solid #0891b2;background:linear-gradient(135deg,#eefafd,#fff)}

/* v9 specialty and bedside components */
.medai-symptoms.symptom-card{border-left:5px solid #2563eb;background:linear-gradient(135deg,#f1f6ff,#fff)}
.medai-physical.exam-card{border-left:5px solid #315b86;background:linear-gradient(135deg,#f1f7fc,#fff)}
.medai-management.management-card{border-left:5px solid #176247;background:linear-gradient(135deg,#eff9f3,#fff)}
.medai-nutrition.nutrition-card{border-left:5px solid #65a30d;background:linear-gradient(135deg,#f7fbea,#fff)}
.medai-pediatrics.pediatric-card{border-left:5px solid #0284c7;background:linear-gradient(135deg,#eff9ff,#fff)}
.medai-pregnancy.pregnancy-card{border-left:5px solid #a855f7;background:linear-gradient(135deg,#faf3ff,#fff)}

/* v10 pathology and therapy components */
.medai-pathology.pathology-card{border-left:5px solid #7c2d12;background:linear-gradient(135deg,#fff6f0,#fff)}
.medai-immunology.immunology-card{border-left:5px solid #0e7490;background:linear-gradient(135deg,#eefbff,#fff)}
.medai-genetics.genetics-card{border-left:5px solid #6d28d9;background:linear-gradient(135deg,#f7f3ff,#fff)}
.medai-pharmacology.pharmacology-card{border-left:5px solid #047857;background:linear-gradient(135deg,#effaf5,#fff)}
.medai-anesthesia.anesthesia-card{border-left:5px solid #475569;background:linear-gradient(135deg,#f4f6f8,#fff)}
.medai-transfusion.transfusion-card{border-left:5px solid #be123c;background:linear-gradient(135deg,#fff1f4,#fff)}

/* v11 laboratory and disease-domain components */
.medai-biochemistry.biochemistry-card{border-left:5px solid #0f766e;background:linear-gradient(135deg,#effaf7,#fff)}
.medai-acidbase.acidbase-card{border-left:5px solid #2563eb;background:linear-gradient(135deg,#eff6ff,#fff)}
.medai-electrolyte.electrolyte-card{border-left:5px solid #0284c7;background:linear-gradient(135deg,#eff9ff,#fff)}
.medai-hemostasis.hemostasis-card{border-left:5px solid #b91c1c;background:linear-gradient(135deg,#fff2f2,#fff)}
.medai-infection.infection-card{border-left:5px solid #b45309;background:linear-gradient(135deg,#fff8ed,#fff)}
.medai-oncology.oncology-card{border-left:5px solid #7e22ce;background:linear-gradient(135deg,#faf3ff,#fff)}

/* v12 acute-care and surgery components */
.medai-trauma.trauma-card{border-left:5px solid #c2410c;background:linear-gradient(135deg,#fff5ed,#fff)}
.medai-fracture.fracture-card{border-left:5px solid #475569;background:linear-gradient(135deg,#f4f6f8,#fff)}
.medai-burn.burn-card{border-left:5px solid #dc2626;background:linear-gradient(135deg,#fff1f1,#fff)}
.medai-wound.wound-card{border-left:5px solid #b45309;background:linear-gradient(135deg,#fff8ed,#fff)}
.medai-shock.shock-card{border-left:7px solid #991b1b;background:linear-gradient(135deg,#ffeded,#fff);box-shadow:0 10px 28px rgba(153,27,27,.08)}
.medai-rehydration.rehydration-card{border-left:5px solid #0284c7;background:linear-gradient(135deg,#eef9ff,#fff)}

/* v13 organ-system components */
.medai-renal.renal-card{border-left:5px solid #0e7490;background:linear-gradient(135deg,#eefbff,#fff)}
.medai-cardiac.cardiac-card{border-left:5px solid #be123c;background:linear-gradient(135deg,#fff1f4,#fff)}
.medai-respiratory.respiratory-card{border-left:5px solid #0284c7;background:linear-gradient(135deg,#eff9ff,#fff)}
.medai-neurology.neurology-card{border-left:5px solid #6d28d9;background:linear-gradient(135deg,#f7f3ff,#fff)}
.medai-endocrine.endocrine-card{border-left:5px solid #7c3aed;background:linear-gradient(135deg,#f8f3ff,#fff)}
.medai-gastro.gastro-card{border-left:5px solid #b45309;background:linear-gradient(135deg,#fff8ed,#fff)}

/* v14 final integrity and readability pass */
.medai-numbered-list{margin:12px 0 12px 1.35rem;padding:0;font-family:var(--medai-reading-serif);font-size:16.5px;line-height:1.85;color:#263548}
.medai-numbered-list li,.medai-checklist li{padding:4px 0;font-weight:400}
.medai-template-body{overflow-wrap:anywhere}
.medai-template summary{cursor:pointer;user-select:none}
@media(max-width:520px){.medai-topic-content .medai-section-heading{font-size:1.06rem!important;margin-top:22px!important}.medai-numbered-list{font-size:16px;line-height:1.8;margin-left:1.15rem}}
@media print{.medai-template,.medai-source-prose{break-inside:avoid;box-shadow:none!important}.medai-topic-content .medai-section-heading{break-after:avoid}}
@media(prefers-reduced-motion:reduce){.medai-topic *{transition:none!important;animation:none!important}}

/* v15 visual QA correction: compact title, guaranteed separation, richer template surface */
.medai-topic-header{display:block!important;position:relative!important;height:auto!important;min-height:0!important;overflow:visible!important;margin:0 0 28px!important;padding:18px 22px 20px!important;isolation:isolate}
.medai-topic-header>div{display:block!important;position:static!important;width:100%!important;height:auto!important;min-height:0!important}
.medai-topic-header h1{display:block!important;position:static!important;float:none!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;margin:7px auto 0!important;padding:0!important;font-size:clamp(22px,3.2vw,28px)!important;line-height:1.22!important;letter-spacing:-.015em!important;text-align:center!important;overflow-wrap:anywhere!important;word-break:normal!important}
.medai-topic-kicker{position:static!important;display:block!important;text-align:center!important}
.medai-topic-content{position:relative!important;z-index:1!important;clear:both!important;margin-top:0!important}
.medai-topic-header+.medai-topic-content{padding-top:2px!important}
.medai-template{border-width:1px;border-left-width:5px;box-shadow:0 10px 28px rgba(24,39,63,.07)}
.medai-template-label,.medai-template summary{font-weight:900;letter-spacing:.08em}
.medai-template-body{padding:12px 18px 18px}
.medai-section-heading{margin-top:30px!important}
@media(max-width:760px){.medai-topic-header{margin-bottom:26px!important;padding:15px 14px 17px!important;border-radius:15px!important}.medai-topic-header h1{font-size:22px!important;line-height:1.24!important;letter-spacing:-.01em!important}.medai-topic-kicker{font-size:8.5px!important}.medai-topic-header+.medai-topic-content{padding-top:4px!important}.medai-template{border-radius:16px!important}.medai-template-body{padding:11px 15px 17px!important}}

/* v16 adaptive visual pack */
.medai-definition{border-left-width:6px}.medai-etiology{border-left-width:6px}.medai-clinical{border-left-width:6px}.medai-diagnosis{border-left-width:6px}.medai-differential{border-left-width:6px}.medai-treatment{border-left-width:6px}.medai-dose{border-left-width:7px}.medai-redflag,.medai-emergency,.medai-contra{border-left-width:7px}.medai-complication{border-left-width:6px}.medai-classification,.medai-staging{border-left-width:6px}.medai-procedure{border-left-width:6px}.medai-monitoring,.medai-followup{border-left-width:6px}.medai-prevention,.medai-prognosis,.medai-rehab{border-left-width:6px}.medai-history{border-left-width:6px}.medai-laboratory,.medai-imaging{border-left-width:6px}.medai-screening,.medai-criteria,.medai-risk,.medai-epidemiology{border-left-width:6px}.medai-preop,.medai-postop,.medai-indication{border-left-width:6px}.medai-template.timeline .medai-template-body{border-left:2px dotted rgba(80,80,120,.25);margin-left:14px}.medai-template.matrix .medai-numbered-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px;list-style-position:inside;margin-left:0}.medai-template.dose-card .medai-template-body{font-family:Arial,"Noto Sans",sans-serif;font-weight:600;font-variant-numeric:tabular-nums}.medai-template.alert-rail{box-shadow:0 12px 30px rgba(90,20,20,.09)}.medai-topic-content>p:first-child{font-size:17px;line-height:1.9}@media(max-width:620px){.medai-template.matrix .medai-numbered-list{grid-template-columns:1fr}.medai-template{margin:16px 0 22px!important}.medai-topic-content>p:first-child{font-size:16.5px}}

/* v17 source-faithful adaptive general prose system */
.medai-source-prose{position:relative;margin:15px 0 24px;border:1px solid rgba(148,163,184,.15);border-radius:17px;background:rgba(255,255,255,.72)}
.medai-source-prose.source-reading{border-color:transparent;background:transparent;border-radius:0}
.medai-source-prose.source-reading>.medai-template-body{padding:4px 0 8px}
.medai-source-prose.source-brief{border-left:4px solid #64748b;background:linear-gradient(135deg,#f8fafc,#fff)}
.medai-source-prose.source-deep{border-left:4px solid #334155;background:linear-gradient(135deg,#fbfcfd,#fff)}
.medai-source-prose.source-numbered{border-left:5px solid #0891b2;background:linear-gradient(135deg,#effbfc,#fff)}
.medai-source-prose.source-checklist{border-left:5px solid #059669;background:linear-gradient(135deg,#effaf5,#fff)}
.medai-source-prose.source-data{border-left:5px solid #2563eb;background:linear-gradient(135deg,#f0f6ff,#fff)}
.medai-source-prose.source-data>.medai-template-body{font-variant-numeric:tabular-nums}
.medai-source-prose.source-formula{border-left:5px solid #7c3aed;background:linear-gradient(135deg,#f7f3ff,#fff)}
.medai-source-prose.source-formula>.medai-template-body{font-variant-numeric:tabular-nums}
.medai-source-prose.source-sequence{border-left:5px solid #d97706;background:linear-gradient(135deg,#fff8ed,#fff)}
.medai-source-prose.source-sequence>.medai-template-body{position:relative}
.medai-source-prose p{margin:0;font-family:var(--medai-reading-serif);font-size:16.5px;line-height:1.9;color:#2b394a}
@media(max-width:620px){.medai-source-prose{margin:13px 0 20px;border-radius:15px}.medai-source-prose p{font-size:16px;line-height:1.84}.medai-source-prose.source-reading>.medai-template-body{padding-inline:0!important}}

/* v18 real content-driven navigation, quick reference, and structurally
   distinct components (lifecycle timeline, severity traffic-light,
   comparison grid, lab strip, doctor-note wiring). No source text is
   altered by any rule below; these only change layout/typography. */
.medai-toc{margin:16px 0 20px}
.medai-toc-desktop{display:none}
.medai-toc-mobile summary{cursor:pointer;font-weight:800;font-size:13px;letter-spacing:.04em;color:var(--medai-primary);padding:10px 14px;border:1px solid var(--medai-line);border-radius:12px;background:#f8fafc}
.medai-toc-mobile ol,.medai-toc-desktop ol{margin:10px 0 0;padding-left:0;list-style:none;display:grid;gap:6px}
.medai-toc-mobile li,.medai-toc-desktop li{font-size:13px}
.medai-toc a{color:#526077;text-decoration:none;display:inline-block;padding:3px 0;border-bottom:1px solid transparent}
.medai-toc a:hover{color:var(--medai-primary)}
.medai-toc a.active{color:var(--medai-primary);font-weight:800;border-bottom-color:var(--medai-primary)}
@media(min-width:901px){
  .medai-toc-mobile{display:none}
  .medai-toc-desktop{display:block;position:sticky;top:14px;float:right;width:210px;margin:0 0 16px 20px;padding:14px 16px;border:1px solid var(--medai-line);border-radius:14px;background:rgba(248,250,252,.9);max-height:70vh;overflow:auto}
  .medai-toc-desktop .medai-toc-title{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--medai-muted);margin-bottom:8px}
}
.medai-quick-reference{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 6px}
.medai-qr-chip{display:inline-flex;align-items:center;gap:4px;padding:6px 11px;border-radius:999px;font-size:11.5px;font-weight:700;border:1px solid var(--medai-line);background:#fff;color:#455065;text-decoration:none}
.medai-qr-chip.medai-qr-icd{background:#172033;color:#fff;border-color:#172033}
.medai-qr-chip.medai-qr-source{color:var(--medai-muted);font-weight:600}
.medai-qr-chip:hover{border-color:var(--medai-primary);color:var(--medai-primary)}
.medai-back-to-top{display:inline-block;margin-top:22px;font-size:12.5px;font-weight:700;color:var(--medai-primary);text-decoration:none}
.medai-back-to-top:hover{text-decoration:underline}

/* Lifecycle Timeline: distinct from generic process timeline — numbered
   stage markers on a dashed track, used for parasite/disease lifecycle
   narratives (e.g. Askaridoz). */
.medai-lifecycle.lifecycle-timeline{border-left-width:5px;background:linear-gradient(135deg,#fff8ec,#fff)}
.medai-lifecycle.lifecycle-timeline .medai-template-body{position:relative;padding-left:34px}
.medai-lifecycle.lifecycle-timeline .medai-template-body:before{content:"";position:absolute;left:11px;top:6px;bottom:10px;width:0;border-left:2px dashed #d99a3f}
.medai-lifecycle.lifecycle-timeline .medai-template-body p{position:relative;margin:0 0 10px}
.medai-lifecycle.lifecycle-timeline .medai-template-body p:before{content:"";position:absolute;left:-27px;top:6px;width:9px;height:9px;border-radius:50%;background:#d99a3f;box-shadow:0 0 0 3px #fff}

/* Severity traffic-light badges: only rendered when the source text itself
   names a severity grade; colors mirror the words already in the text. */
.medai-severity-traffic-row{display:flex;gap:8px;padding:10px 18px 0;flex-wrap:wrap}
.medai-severity-dot{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:800;padding:4px 10px;border-radius:999px}
.medai-severity-dot:before{content:"";width:8px;height:8px;border-radius:50%}
.medai-severity-dot.red{background:#fff1f1;color:#9f1c1c}.medai-severity-dot.red:before{background:#dc2626}
.medai-severity-dot.amber{background:#fff7e8;color:#92660a}.medai-severity-dot.amber:before{background:#d97706}
.medai-severity-dot.green{background:#f0fbf3;color:#15803d}.medai-severity-dot.green:before{background:#16a34a}

/* Comparison grid: differential-diagnosis lists shown as a scanning grid
   instead of a single paragraph card. */
.medai-differential.comparison-grid .medai-checklist,.medai-differential.comparison-grid .medai-numbered-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;list-style-position:inside;margin-left:0}
.medai-differential.comparison-grid .medai-checklist li,.medai-differential.comparison-grid .medai-numbered-list li{border:1px solid var(--medai-line);border-radius:10px;padding:8px 12px;background:#fff}
@media(max-width:650px){.medai-differential.comparison-grid .medai-checklist,.medai-differential.comparison-grid .medai-numbered-list{grid-template-columns:1fr}}

/* Lab interpretation strip: numeric-heavy laboratory paragraphs get
   tabular figures and a scannable striped rhythm instead of dense prose. */
.medai-laboratory.lab-panel.lab-strip .medai-template-body p{font-variant-numeric:tabular-nums;line-height:2;background:repeating-linear-gradient(180deg,rgba(79,70,229,.035) 0 1.6em,transparent 1.6em 3.2em)}

/* Doctor Note accent now actually wired: only a short, explicitly dated /
   attributed aside inside a history paragraph gets the handwritten look —
   never the long source prose itself. */
.medai-history.doctor-note{font-family:var(--medai-note-font);font-size:16px;line-height:1.65;transform:rotate(-.15deg);padding:14px 17px;border:1px solid #d9d0ad;border-radius:14px;background:#fffbea;box-shadow:0 7px 18px rgba(65,54,25,.06);border-left-width:5px}
.medai-history.doctor-note .medai-template-body p{font-family:inherit}

@media(max-width:650px){
  .medai-toc-desktop{display:none}
  .medai-lifecycle.lifecycle-timeline .medai-template-body{padding-left:28px}
}
@media print{.medai-toc,.medai-back-to-top,.medai-reading-progress{display:none!important}}

/* Severity traffic-light container: distinct border weight from the plain
   classification card, in addition to the colored badge row already added
   above (badges are the real structural differentiator; this closes the
   container-level style gap). */
.medai-classification.severity-traffic{border-left-width:6px;background:linear-gradient(135deg,#fbfdff,#fff)}


/* v19 visual-grouping redesign: universal-category cards only (no organ or
   ad-hoc procedural labels), plus the missing structural variants that the
   16-kind whitelist now actually renders (etiology, clinical, complication,
   prognosis, followup, definition, pathway, treatment, generic lab/imaging
   panels, heritage-card, and the new Rx/prescription-pad look for genuine
   dose-bearing treatment content). No source text is altered by any rule
   below; these only change layout/typography. */
.medai-etiology-card,.medai-clinical-card,.medai-complication-card,.medai-prognosis-card,.medai-followup-card,.medai-definition-card,.medai-heritage-card{border-radius:16px}

.medai-etiology.etiology-card{border-left:5px solid #2563eb;background:linear-gradient(135deg,#f0f6ff,#fff)}
.medai-clinical.clinical-card{border-left:5px solid #0f766e;background:linear-gradient(135deg,#effefb,#fff)}
.medai-complication.complication-card{border-left:6px solid #dc2626;background:linear-gradient(135deg,#fff3f2,#fff)}
.medai-prognosis.prognosis-card{border-left:5px solid #7c3aed;background:linear-gradient(135deg,#f8f5ff,#fff)}
.medai-followup.followup-card{border-left:5px solid #0891b2;background:linear-gradient(135deg,#eefcfd,#fff)}
.medai-definition.definition-card{border-left:5px solid #1e3a8a;background:linear-gradient(135deg,#eef3ff,#fff)}
.medai-history.heritage-card{font-family:var(--medai-reading-serif);border-left:6px solid #92643a;background:linear-gradient(135deg,#fbf6ec,#fff)}
.medai-history.heritage-card .medai-template-body p{margin:0 0 12px}
.medai-history.heritage-card .medai-template-body p:last-child{margin-bottom:0}

/* Diagnostic pathway: a step-like reading rhythm for algorithmic
   diagnosis text, distinct from the plain diagnosis card. */
.medai-diagnosis.pathway{border-left:5px solid #0369a1;background:linear-gradient(135deg,#eff8ff,#fff)}
.medai-diagnosis.pathway .medai-numbered-list li{border-bottom:1px dashed var(--medai-line);padding:8px 0}
.medai-diagnosis.pathway .medai-numbered-list li:last-child{border-bottom:none}

/* Plain treatment card (no dose numbers present) vs. the Rx/prescription
   pad look (used only when the source text itself already states a real
   dose/medication — never invented). */
.medai-treatment.treatment-card{border-left:5px solid #15803d;background:linear-gradient(135deg,#effaf3,#fff)}
.medai-treatment.rx-card,.medai-dose.rx-card{position:relative;border:1px solid #cbd5c9;border-left:6px solid #15803d;border-radius:10px;background:#fdfdf9;box-shadow:0 8px 22px rgba(21,90,50,.08);padding-top:6px}
.medai-treatment.rx-card:before,.medai-dose.rx-card:before{content:"℞";position:absolute;top:10px;right:16px;font-size:26px;font-weight:800;color:#15803d;opacity:.5;font-family:Georgia,serif}
.medai-treatment.rx-card .medai-template-label,.medai-dose.rx-card .medai-template-label{color:#15803d}
.medai-treatment.rx-card .medai-template-body,.medai-dose.rx-card .medai-template-body{border-top:1px dashed #cbd5c9;margin-top:8px;font-variant-numeric:tabular-nums}
.medai-dose.dose-card{border-left:6px solid #b45309;background:linear-gradient(135deg,#fff8ec,#fff);font-variant-numeric:tabular-nums}

/* Generic laboratory/imaging panels for topics without dense numeric runs
   (lab-strip above already covers the numeric-heavy variant). */
.medai-laboratory.lab-panel{border-left:5px solid #4f46e5;background:linear-gradient(135deg,#f2f1ff,#fff)}
.medai-imaging.imaging-panel{border-left:5px solid #0e7490;background:linear-gradient(135deg,#eafbff,#fff)}

@media(max-width:650px){
  .medai-treatment.rx-card:before,.medai-dose.rx-card:before{font-size:21px;top:8px;right:12px}
}


/* ==========================================================================
   v20 REFERENCE-MATCHED DESIGN OVERRIDE
   Replaces the accumulated thin-border/pale-gradient look from v1-v19 with
   the bold flat-color-block system from the approved reference design
   (klinik-qollanma-tolik-matn.html): solid pastel background per category,
   small bold uppercase micro-label with letter-spacing, generous padding,
   8-10px rounded corners. Appended last so it wins the cascade. No source
   text is touched by anything below — presentation only. */

.medai-breadcrumb{background:none!important;border:none!important;padding:0!important}
.medai-breadcrumb span:nth-child(2){padding:3px 10px!important;border-radius:999px!important;background:#F3E8FF!important;color:#7C3AED!important;border-left:3px solid #7C3AED!important;font-weight:600!important;font-size:12px!important}
.medai-breadcrumb span:last-child{color:#1E293B!important;font-weight:600!important}
.medai-breadcrumb i{color:#94A3B8!important}

.medai-icd{background:#0F172A!important;border-radius:12px!important;display:flex!important;align-items:center!important;gap:8px!important;padding:8px 14px!important;min-width:0!important}
.medai-icd b{width:34px;height:34px;border-radius:50%;background:#DC2626;display:flex;align-items:center;justify-content:center;font-size:11px!important;flex-shrink:0}
.medai-icd span{color:#94A3B8!important;font-size:10px!important;margin-top:0!important}

.medai-template,.medai-source-prose{border-radius:10px!important;box-shadow:none!important;border-left-width:4px!important}
.medai-template-label,.medai-template summary{font-size:11.5px!important;font-weight:700!important;letter-spacing:.04em!important;text-transform:uppercase!important;padding:16px 20px 8px!important;background:transparent!important}
.medai-template-body{padding:0 20px 16px!important}
.medai-template-body p,.medai-template-body li{font-family:'Segoe UI',system-ui,sans-serif!important;font-size:14.5px!important;line-height:1.75!important}

/* Blue: definition / etiology — "core fact" blocks, matches QO'ZG'ATUVCHI VA YUQISH YO'LI */
.medai-definition,.medai-etiology{background:#EAF4FF!important;border:none!important;border-left:4px solid #2563EB!important}
.medai-definition .medai-template-label,.medai-etiology .medai-template-label{color:#1D4ED8!important}
.medai-definition .medai-template-body p,.medai-etiology .medai-template-body p{color:#1E3A5F!important}

/* Green: treatment / dose — matches DAVOLASH YONDASHUVI */
.medai-treatment,.medai-dose{background:#F0FDF4!important;border:none!important;border-left:4px solid #16A34A!important}
.medai-treatment .medai-template-label,.medai-dose .medai-template-label{color:#15803D!important}
.medai-treatment .medai-template-body p,.medai-dose .medai-template-body p{color:#14532D!important}
.medai-treatment.rx-card,.medai-dose.rx-card{background:#F0FDF4!important;border:1px solid #BBF7D0!important;border-left:4px solid #16A34A!important}

/* Cyan: followup / prevention — distinct from treatment green */
.medai-followup{background:#ECFEFF!important;border:none!important;border-left:4px solid #0891B2!important}
.medai-followup .medai-template-label{color:#0E7490!important}
.medai-followup .medai-template-body p{color:#164E63!important}

/* Red: complication / redflag — matches TOKSIK TA'SIR VA XIRURGIK ASORATLAR */
.medai-complication,.medai-redflag{background:#FFF1F0!important;border:1px solid #FECACA!important;border-left:4px solid #B91C1C!important}
.medai-complication .medai-template-label,.medai-redflag .medai-template-label{color:#B91C1C!important}
.medai-complication .medai-template-label:before,.medai-redflag .medai-template-label:before{content:"⚠ ";}
.medai-complication .medai-template-body p,.medai-redflag .medai-template-body p{color:#7F1D1D!important}

/* Amber/caution: classification (risk/severity grading), diagnosis */
.medai-classification{background:#FFFBEB!important;border:none!important;border-left:4px solid #D97706!important}
.medai-classification .medai-template-label{color:#B45309!important}
.medai-classification .medai-template-body p{color:#78350F!important}
.medai-diagnosis,.medai-differential,.medai-laboratory,.medai-imaging{background:#EEF2FF!important;border:none!important;border-left:4px solid #4F46E5!important}
.medai-diagnosis .medai-template-label,.medai-differential .medai-template-label,.medai-laboratory .medai-template-label,.medai-imaging .medai-template-label{color:#4338CA!important}
.medai-diagnosis .medai-template-body p,.medai-differential .medai-template-body p,.medai-laboratory .medai-template-body p,.medai-imaging .medai-template-body p{color:#312E81!important}

/* Violet: clinical signs / prognosis */
.medai-clinical,.medai-prognosis{background:#F3E8FF!important;border:none!important;border-left:4px solid #7C3AED!important}
.medai-clinical .medai-template-label,.medai-prognosis .medai-template-label{color:#6D28D9!important}
.medai-clinical .medai-template-body p,.medai-prognosis .medai-template-body p{color:#4C1D95!important}

/* Sepia serif: history — matches TARIXIY MA'LUMOT (all paragraphs stay inside ONE box) */
.medai-history{background:#F6EFDD!important;border:1px solid #E4D6B0!important;border-left:1px solid #E4D6B0!important;font-family:Georgia,serif!important}
.medai-history .medai-template-label{color:#8A6D3B!important;font-family:'Segoe UI',system-ui,sans-serif!important}
.medai-history .medai-template-body p{color:#5C4A2A!important;font-family:Georgia,serif!important;font-size:13.5px!important}

/* Lifecycle timeline: header bar + colored dot/pill pairs, matches
   "Rivojlanish va yashash davri" */
.medai-lifecycle{background:#fff!important;border:1px solid #E2E8F0!important;border-left:1px solid #E2E8F0!important;border-radius:10px!important;overflow:hidden}
.medai-lifecycle .medai-template-label{background:#F8FAFC!important;color:#0F172A!important;margin:0!important;padding:12px 16px!important;font-size:13.5px!important;letter-spacing:0!important;text-transform:none!important}
.medai-lifecycle.lifecycle-timeline .medai-template-body{padding:16px 20px!important}
.medai-lifecycle.lifecycle-timeline .medai-template-body:before{display:none!important}
.medai-lifecycle.lifecycle-timeline .medai-template-body p{position:relative!important;padding-left:20px!important;color:#334155!important}
.medai-lifecycle.lifecycle-timeline .medai-template-body p:before{content:"";position:absolute;left:0;top:6px;width:10px;height:10px;border-radius:50%;background:#EAB308;border:2px solid #FEF9C3;box-shadow:none!important}

/* Quick reference: dark header bar + colored fact tiles, matches "Tezkor ma'lumot" */
.medai-quick-reference{background:#fff!important;border:1px solid #E2E8F0!important;border-radius:10px!important;overflow:hidden!important;display:block!important;padding:0!important;margin:16px 0!important}
.medai-quick-reference:before{content:"Tezkor ma'lumot";display:block;padding:10px 16px;background:#0F172A;color:#fff;font-size:12.5px;font-weight:700}
.medai-quick-reference{display:flex!important;flex-wrap:wrap!important}
.medai-qr-chip{border:none!important;border-radius:0!important;flex:1 1 140px!important;padding:10px 14px!important;background:#F8FAFC!important;color:#1E293B!important;font-weight:600!important;font-size:12.5px!important}
.medai-qr-chip.medai-qr-icd{background:#EFF6FF!important;color:#0F172A!important}
.medai-qr-chip.medai-qr-source{background:#FEF2F2!important;color:#0F172A!important;font-weight:600!important}

@media(max-width:650px){
  .medai-template-label,.medai-template summary{padding:14px 16px 8px!important}
  .medai-template-body{padding:0 16px 14px!important}
  .medai-quick-reference{flex-direction:column!important}
  .medai-qr-chip{flex:1 1 auto!important}
}

.medai-pathogenesis{border-left-color:#7c3aed}

/* ==== V21 STYLE CATALOG START (generated by scripts/build-v21-css.js; edit v21-style-catalog.css.src) ==== */
@font-face{font-family:"MEDAI Sans";src:url(/fonts/Inter-Variable.woff2) format("woff2");font-weight:400 700;font-style:normal;font-display:swap}
@font-face{font-family:"MEDAI Display";src:url(/fonts/Manrope-Variable.woff2) format("woff2");font-weight:500 800;font-style:normal;font-display:swap}
@font-face{font-family:"MEDAI Serif";src:url(/fonts/SourceSerif4-Variable.woff2) format("woff2");font-weight:400 700;font-style:normal;font-display:swap}
@font-face{font-family:"MEDAI Mono";src:url(/fonts/JetBrainsMono-Variable.woff2) format("woff2");font-weight:400 600;font-style:normal;font-display:swap}
@font-face{font-family:"MEDAI Hand";src:url(/fonts/PatrickHand-Regular.woff2) format("woff2");font-display:swap}
@font-face{font-family:"MEDAI Pen";src:url(/fonts/Kalam-Regular.woff2) format("woff2");font-display:swap}
@font-face{font-family:"MEDAI Marker";src:url(/fonts/IndieFlower-Regular.woff2) format("woff2");font-display:swap}
@font-face{font-family:"MEDAI Sticky";src:url(/fonts/GochiHand-Regular.woff2) format("woff2");font-display:swap}

.medai-topic .tpl{--a:#475569 !important;--b:#f3f6fa !important;--t:#1e293b !important;--f:"MEDAI Sans","Segoe UI",system-ui,sans-serif !important;position:relative !important;display:block !important;margin:20px 0 !important;padding:14px 16px !important;background:var(--b) !important;color:var(--t) !important;border:0 !important;border-radius:14px !important;box-shadow:none !important;overflow:hidden !important;font-family:var(--f) !important;font-size:calc(15px * var(--fs,1) * var(--mfs,1)) !important;line-height:1.75 !important;transform:none !important}
.medai-topic .tpl .medai-template-label,.medai-topic .tpl summary{display:block !important;margin:0 0 8px !important;padding:0 !important;background:none !important;border:0 !important;border-radius:0 !important;font:700 11px/1.3 "MEDAI Sans","Segoe UI",system-ui,sans-serif !important;letter-spacing:.09em !important;text-transform:uppercase !important;color:var(--a) !important;list-style:none !important;cursor:default !important}
.medai-topic .tpl summary::-webkit-details-marker{display:none !important}
.medai-topic .tpl .medai-template-body{display:block !important;margin:0 !important;padding:0 !important;background:none !important;border:0 !important;font-family:var(--f) !important;color:inherit !important}
.medai-topic .tpl .medai-template-body:before,.medai-topic .tpl .medai-template-body:after{display:none !important}
.medai-topic .tpl p{margin:0 0 .75em !important;font-family:var(--f) !important;font-size:inherit !important;line-height:inherit !important;color:inherit !important}
.medai-topic .tpl p:last-child{margin-bottom:0 !important}
.medai-topic .tpl ol,.medai-topic .tpl ul{margin:0 0 .5em !important;padding-left:1.3em !important}
.medai-topic .tpl li{margin:0 0 .45em !important;color:inherit !important}
.medai-topic .tpl .lead-in{font-weight:800 !important;color:var(--a) !important;border-bottom:2px solid rgba(15,23,42,.1) !important}
.medai-topic .tpl p.np:before{content:attr(data-n) "." !important;font-weight:800 !important;color:var(--a) !important;margin-right:.4em !important}
.medai-topic .tpl p.hand-note{font-family:"MEDAI Hand","Segoe Print","Bradley Hand",cursive !important;font-size:calc(18px * var(--fs,1) * var(--mfs,1)) !important;line-height:1.5 !important;background:#fffbe0 !important;border-left:3px solid #facc15 !important;border-radius:4px !important;padding:6px 10px !important;color:#4a3f00 !important}

.medai-topic .tpl.pal-blue{--a:#2563eb !important;--b:#eef5ff !important;--t:#1e3a5f !important}
.medai-topic .tpl.pal-indigo{--a:#4f46e5 !important;--b:#eef0ff !important;--t:#312e81 !important}
.medai-topic .tpl.pal-violet{--a:#7c3aed !important;--b:#f5f0ff !important;--t:#4c1d95 !important}
.medai-topic .tpl.pal-teal{--a:#0d9488 !important;--b:#eafaf7 !important;--t:#134e4a !important}
.medai-topic .tpl.pal-cyan{--a:#0891b2 !important;--b:#e9f8fc !important;--t:#155e75 !important}
.medai-topic .tpl.pal-green{--a:#16a34a !important;--b:#effaf1 !important;--t:#14532d !important}
.medai-topic .tpl.pal-lime{--a:#65a30d !important;--b:#f4fae8 !important;--t:#365314 !important}
.medai-topic .tpl.pal-amber{--a:#d97706 !important;--b:#fff7e6 !important;--t:#78350f !important}
.medai-topic .tpl.pal-gold{--a:#ca8a04 !important;--b:#fffbe6 !important;--t:#713f12 !important}
.medai-topic .tpl.pal-orange{--a:#ea580c !important;--b:#fff1e8 !important;--t:#7c2d12 !important}
.medai-topic .tpl.pal-red{--a:#dc2626 !important;--b:#fff1f0 !important;--t:#7f1d1d !important}
.medai-topic .tpl.pal-rose{--a:#e11d48 !important;--b:#fff0f3 !important;--t:#881337 !important}
.medai-topic .tpl.pal-pink{--a:#db2777 !important;--b:#fff0f7 !important;--t:#831843 !important}
.medai-topic .tpl.pal-slate{--a:#475569 !important;--b:#f3f6fa !important;--t:#1e293b !important}
.medai-topic .tpl.pal-sepia{--a:#9a762f !important;--b:#f6efdd !important;--t:#5c4a2a !important}
.medai-topic .tpl.pal-ink{--a:#0f172a !important;--b:#f4f6fa !important;--t:#0f172a !important}
.medai-topic .tpl.pal-dark{--a:#38bdf8 !important;--b:#0f172a !important;--t:#e2e8f0 !important}
.medai-topic .tpl.pal-none{--a:#475569 !important;--b:transparent !important;--t:inherit !important}

.medai-topic .tpl.fnt-sans{--f:"MEDAI Sans","Segoe UI",system-ui,sans-serif !important}
.medai-topic .tpl.fnt-serif{--f:"MEDAI Serif",Georgia,"Noto Serif","Times New Roman",serif !important;font-size:calc(15.5px * var(--fs,1) * var(--mfs,1)) !important}
.medai-topic .tpl.fnt-mono{--f:"MEDAI Mono",ui-monospace,"SFMono-Regular",Consolas,"Liberation Mono",monospace !important;font-size:calc(14px * var(--fs,1) * var(--mfs,1)) !important}
.medai-topic .tpl.fnt-hand{--f:"MEDAI Hand","Segoe Print","Bradley Hand",cursive !important;font-size:calc(18.5px * var(--fs,1) * var(--mfs,1)) !important;line-height:1.55 !important}
.medai-topic .tpl.fnt-pen{--f:"MEDAI Pen","Segoe Print","Bradley Hand",cursive !important;font-size:calc(16.5px * var(--fs,1) * var(--mfs,1)) !important;line-height:1.8 !important}
.medai-topic .tpl.fnt-marker{--f:"MEDAI Marker","Segoe Print","Bradley Hand",cursive !important;font-size:calc(17.5px * var(--fs,1) * var(--mfs,1)) !important;line-height:1.6 !important}
.medai-topic .tpl.fnt-sticky{--f:"MEDAI Sticky","Segoe Print","Bradley Hand",cursive !important;font-size:calc(19.5px * var(--fs,1) * var(--mfs,1)) !important;line-height:1.5 !important}

.medai-topic .tpl.lay-plain{background:transparent !important;padding:2px 0 !important;border-radius:0 !important;margin:14px 0 !important}
.medai-topic .tpl.lay-rail{border-left:5px solid var(--a) !important;border-radius:6px 14px 14px 6px !important}
.medai-topic .tpl.lay-thinrail{background:transparent !important;border-left:3px solid var(--a) !important;border-radius:0 !important;padding:4px 0 4px 14px !important}
.medai-topic .tpl.lay-box{background:var(--s,#fff) !important;border:1.5px solid var(--a) !important}
.medai-topic .tpl.lay-card{background:var(--s,#fff) !important;border:1px solid rgba(15,23,42,.08) !important;box-shadow:0 6px 22px rgba(15,23,42,.08) !important;border-radius:16px !important}
.medai-topic .tpl.lay-dashed{background:transparent !important;border:2px dashed var(--a) !important}
.medai-topic .tpl.lay-banner{background:var(--s,#fff) !important;border:1px solid var(--a) !important;padding:0 0 14px !important}
.medai-topic .tpl.lay-banner .medai-template-label,.medai-topic .tpl.lay-banner summary{background:var(--a) !important;color:#fff !important;padding:9px 16px !important;margin:0 0 12px !important}
.medai-topic .tpl.lay-banner .medai-template-body{padding:0 16px !important}
.medai-topic .tpl.lay-tab{margin-top:32px !important;overflow:visible !important;background:var(--s,#fff) !important;border:1.5px solid var(--a) !important;border-radius:0 14px 14px 14px !important}
.medai-topic .tpl.lay-tab .medai-template-label,.medai-topic .tpl.lay-tab summary{position:absolute !important;left:-1.5px !important;top:0 !important;transform:translateY(-100%) !important;margin:0 !important;padding:6px 14px !important;background:var(--a) !important;color:#fff !important;border-radius:10px 10px 0 0 !important}
.medai-topic .tpl.lay-pill .medai-template-label,.medai-topic .tpl.lay-pill summary{display:inline-block !important;background:var(--a) !important;color:#fff !important;border-radius:999px !important;padding:4px 12px !important;letter-spacing:.06em !important}
.medai-topic .tpl.lay-marker{border-radius:6px 18px 6px 18px !important}
.medai-topic .tpl.lay-marker .medai-template-label,.medai-topic .tpl.lay-marker summary{display:inline-block !important;color:#111 !important;background:linear-gradient(transparent 55%,#fde047 55%) !important;padding:0 4px !important;text-transform:none !important;letter-spacing:.02em !important;font-size:13px !important}
.medai-topic .tpl.lay-stripe{background:var(--s,#fff) !important;border:2px solid var(--a) !important;border-radius:12px !important;padding-top:26px !important}
.medai-topic .tpl.lay-stripe:before{content:"" !important;position:absolute !important;left:0 !important;right:0 !important;top:0 !important;height:10px !important;background:repeating-linear-gradient(-45deg,var(--a) 0 10px,#111827 10px 20px) !important}
.medai-topic .tpl.lay-topbar{background:var(--s,#fff) !important;border:1px solid rgba(15,23,42,.1) !important;padding-top:22px !important}
.medai-topic .tpl.lay-topbar:before{content:"" !important;position:absolute !important;left:0 !important;right:0 !important;top:0 !important;height:6px !important;background:linear-gradient(90deg,var(--a),transparent) !important}
.medai-topic .tpl.lay-cross{background:var(--s,#fff) !important;border:1.5px solid var(--a) !important}
.medai-topic .tpl.lay-cross:before{content:"✚" !important;position:absolute !important;right:14px !important;top:8px !important;font:700 26px/1 system-ui,sans-serif !important;color:var(--a) !important;opacity:.28 !important}
.medai-topic .tpl.lay-ticket{background:var(--s,#fff) !important;border:1.5px solid var(--a) !important;border-radius:12px !important}
.medai-topic .tpl.lay-ticket:before{content:"℞" !important;position:absolute !important;right:14px !important;top:8px !important;font:700 32px/1 Georgia,serif !important;color:var(--a) !important;opacity:.28 !important}
.medai-topic .tpl.lay-ticket .medai-template-label,.medai-topic .tpl.lay-ticket summary{border-bottom:1px dashed var(--a) !important;padding-bottom:8px !important;margin-bottom:10px !important}
.medai-topic .tpl.lay-panel{border:1px solid rgba(255,255,255,.08) !important;box-shadow:inset 0 0 0 1px rgba(56,189,248,.18),0 8px 24px rgba(2,6,23,.25) !important}
.medai-topic .tpl.lay-film{background:#0b1220 !important;color:#cbd5e1 !important;border:7px solid #1e293b !important;border-radius:10px !important;padding-top:20px !important}
.medai-topic .tpl.lay-film:before{content:"" !important;position:absolute !important;left:0 !important;right:0 !important;top:0 !important;height:6px !important;background:repeating-linear-gradient(90deg,#1e293b 0 10px,transparent 10px 18px) !important}
.medai-topic .tpl.lay-paper{background:#fffef7 repeating-linear-gradient(to bottom,transparent 0,transparent 27px,rgba(59,130,246,.16) 27px,rgba(59,130,246,.16) 28px) !important;border:1px solid #e6e0c8 !important;border-left:3px double #e9a0a0 !important;border-radius:6px !important;padding:14px 16px 14px 20px !important;line-height:28px !important}
.medai-topic .tpl.lay-paper p{margin:0 0 28px !important;line-height:28px !important}
.medai-topic .tpl.lay-paper p:last-child{margin-bottom:0 !important}
.medai-topic .tpl.lay-postit{overflow:visible !important;background:#fff59d !important;color:#3a3200 !important;border-radius:2px !important;box-shadow:2px 8px 16px rgba(0,0,0,.18) !important;transform:rotate(-.7deg) !important;padding:18px 18px 16px !important}
.medai-topic .tpl.lay-postit:after{content:"" !important;position:absolute !important;top:-8px !important;left:50% !important;width:70px !important;height:16px !important;transform:translateX(-50%) rotate(2deg) !important;background:rgba(255,255,255,.55) !important;box-shadow:0 1px 2px rgba(0,0,0,.15) !important}
.medai-topic .tpl.lay-postit .medai-template-label,.medai-topic .tpl.lay-postit summary{color:#7a6a00 !important}
.medai-topic .tpl.lay-letter{background:#f7ecd0 !important;color:#4a3a1a !important;border:1px solid #d9c79a !important;border-radius:4px !important;box-shadow:inset 0 0 40px rgba(154,118,47,.2) !important;padding:16px 18px !important}
.medai-topic .tpl.lay-quote{padding-left:46px !important}
.medai-topic .tpl.lay-quote:before{content:"“" !important;position:absolute !important;left:12px !important;top:0 !important;font:700 68px/1 Georgia,serif !important;color:var(--a) !important;opacity:.28 !important}
.medai-topic .tpl.lay-dropcap .medai-template-body>p:first-child:first-letter{float:left !important;font:700 3.1em/.85 Georgia,serif !important;margin:4px 10px 0 0 !important;color:var(--a) !important}
.medai-topic .tpl.lay-lead .medai-template-body>p:first-child{font-size:calc(17px * var(--fs,1) * var(--mfs,1)) !important;line-height:1.85 !important;font-weight:500 !important}
.medai-topic .tpl.lay-compact{font-size:calc(14px * var(--fs,1) * var(--mfs,1)) !important;line-height:1.7 !important}
.medai-topic .tpl.lay-runin .medai-template-body>p{margin-bottom:.9em !important}
.medai-topic .tpl.lay-formula .medai-template-body{font-family:ui-monospace,"SFMono-Regular",Consolas,monospace !important;background:rgba(15,23,42,.04) !important;border-left:3px dashed var(--a) !important;padding:8px 12px !important;border-radius:6px !important}
.medai-topic .tpl.lay-grid .medai-template-body{display:grid !important;grid-template-columns:1fr !important;gap:10px !important}
.medai-topic .tpl.lay-grid .medai-template-body>p,.medai-topic .tpl.lay-grid li{background:var(--s,#fff) !important;border:1px solid rgba(15,23,42,.08) !important;border-radius:10px !important;padding:10px 12px !important;margin:0 !important}
.medai-topic .tpl.lay-grid ol,.medai-topic .tpl.lay-grid ul{list-style:none !important;margin:0 !important;padding:0 !important;display:grid !important;gap:10px !important;grid-column:1/-1 !important}
.medai-topic .tpl.lay-tiles .medai-template-body>p,.medai-topic .tpl.lay-tiles li{background:var(--s,#fff) !important;border-left:4px solid var(--a) !important;border-radius:8px !important;padding:10px 12px !important;margin:0 0 10px !important;list-style:none !important}
.medai-topic .tpl.lay-tiles ol,.medai-topic .tpl.lay-tiles ul{list-style:none !important;margin:0 !important;padding:0 !important}
.medai-topic .tpl.lay-steps .medai-template-body>p.np,.medai-topic .tpl.lay-steps li[value]{position:relative !important;padding-left:42px !important;margin:0 0 12px !important;min-height:30px !important;list-style:none !important}
.medai-topic .tpl.lay-steps .medai-template-body>p.np-cont{padding-left:42px !important}
.medai-topic .tpl.lay-steps .medai-template-body>p.np:before{content:attr(data-n) !important;position:absolute !important;left:0 !important;top:1px !important;width:28px !important;height:28px !important;border-radius:50% !important;background:var(--a) !important;color:#fff !important;font:700 13px/28px system-ui,sans-serif !important;text-align:center !important;margin:0 !important}
.medai-topic .tpl.lay-steps li[value]:before{content:attr(value) !important;position:absolute !important;left:0 !important;top:1px !important;width:28px !important;height:28px !important;border-radius:50% !important;background:var(--a) !important;color:#fff !important;font:700 13px/28px system-ui,sans-serif !important;text-align:center !important;margin:0 !important}
.medai-topic .tpl.lay-steps ol{list-style:none !important;margin:0 !important;padding:0 !important}
.medai-topic .tpl.lay-chain .medai-template-body>p,.medai-topic .tpl.lay-chain li{position:relative !important;background:var(--s,#fff) !important;border:1px solid var(--a) !important;border-radius:10px !important;padding:10px 12px !important;margin:0 0 26px !important;list-style:none !important}
.medai-topic .tpl.lay-chain .medai-template-body>p:not(:last-child):after,.medai-topic .tpl.lay-chain li:not(:last-child):after{content:"↓" !important;position:absolute !important;left:50% !important;bottom:-24px !important;transform:translateX(-50%) !important;font:700 16px/1 system-ui,sans-serif !important;color:var(--a) !important}
.medai-topic .tpl.lay-chain ol,.medai-topic .tpl.lay-chain ul{list-style:none !important;margin:0 !important;padding:0 !important}
.medai-topic .tpl.lay-timeline .medai-template-body{border-left:2px solid var(--a) !important;margin-left:6px !important;padding-left:18px !important}
.medai-topic .tpl.lay-timeline .medai-template-body>p,.medai-topic .tpl.lay-timeline li{position:relative !important;list-style:none !important}
.medai-topic .tpl.lay-timeline .medai-template-body>p:before,.medai-topic .tpl.lay-timeline li:before{content:"" !important;position:absolute !important;left:-26px !important;top:.6em !important;width:10px !important;height:10px !important;border-radius:50% !important;background:var(--a) !important;border:2px solid #fff !important;box-shadow:0 0 0 1px var(--a) !important}
.medai-topic .tpl.lay-timeline ol,.medai-topic .tpl.lay-timeline ul{list-style:none !important;margin:0 !important;padding:0 !important}
.medai-topic .tpl.lay-check .medai-template-body>p,.medai-topic .tpl.lay-check li{position:relative !important;padding-left:28px !important;margin:0 0 .6em !important;list-style:none !important}
.medai-topic .tpl.lay-check .medai-template-body>p:before,.medai-topic .tpl.lay-check li:before{content:"✓" !important;position:absolute !important;left:2px !important;top:0 !important;color:var(--a) !important;font-weight:800 !important}
.medai-topic .tpl.lay-check ol,.medai-topic .tpl.lay-check ul{list-style:none !important;margin:0 !important;padding:0 !important}
.medai-topic .tpl.lay-rows .medai-template-body>p,.medai-topic .tpl.lay-rows li{margin:0 !important;padding:9px 0 !important;border-bottom:1px solid rgba(15,23,42,.12) !important;list-style:none !important}
.medai-topic .tpl.lay-rows .medai-template-body>p:last-child,.medai-topic .tpl.lay-rows li:last-child{border-bottom:0 !important}
.medai-topic .tpl.lay-rows ol,.medai-topic .tpl.lay-rows ul{list-style:none !important;margin:0 !important;padding:0 !important}
.medai-topic .tpl.lay-levels .medai-template-body>p,.medai-topic .tpl.lay-levels li{background:var(--s,#fff) !important;border-left:5px solid var(--a) !important;border-radius:6px !important;padding:8px 10px !important;margin:0 0 8px !important;list-style:none !important}
.medai-topic .tpl.lay-levels .medai-template-body>p:nth-child(2),.medai-topic .tpl.lay-levels li:nth-child(2){margin-left:10px !important;border-left-color:#eab308 !important}
.medai-topic .tpl.lay-levels .medai-template-body>p:nth-child(3),.medai-topic .tpl.lay-levels li:nth-child(3){margin-left:20px !important;border-left-color:#f97316 !important}
.medai-topic .tpl.lay-levels .medai-template-body>p:nth-child(n+4),.medai-topic .tpl.lay-levels li:nth-child(n+4){margin-left:28px !important;border-left-color:#ef4444 !important}
.medai-topic .tpl.lay-levels .medai-template-body>p:nth-child(1),.medai-topic .tpl.lay-levels li:nth-child(1){border-left-color:#22c55e !important}
.medai-topic .tpl.lay-levels ol,.medai-topic .tpl.lay-levels ul{list-style:none !important;margin:0 !important;padding:0 !important}
.medai-topic .tpl.lay-vs .medai-template-body>p:nth-child(odd){background:var(--s,#fff) !important;border-left:4px solid var(--a) !important;border-radius:6px !important;padding:8px 10px !important}
.medai-topic .tpl.lay-vs .medai-template-body>p:nth-child(even){background:var(--s,#fff) !important;border-right:4px solid #94a3b8 !important;border-radius:6px !important;padding:8px 10px !important}
@media(min-width:560px){.medai-topic .tpl.lay-grid .medai-template-body,.medai-topic .tpl.lay-grid ol,.medai-topic .tpl.lay-grid ul{grid-template-columns:1fr 1fr !important}}
@media(max-width:480px){.medai-topic .tpl{padding:13px 14px !important;margin:18px 0 !important}.medai-topic .tpl.lay-plain{padding:2px 0 !important}.medai-topic .tpl.lay-quote{padding-left:40px !important}}

.medai-topic .tpl[data-kind] .medai-template-label:before,.medai-topic .tpl[data-kind] summary:before{content:"" !important;display:inline-block !important;width:14px !important;height:14px !important;margin-right:6px !important;vertical-align:-2px !important;background:currentColor !important;-webkit-mask:var(--ico) center/contain no-repeat !important;mask:var(--ico) center/contain no-repeat !important}
.medai-topic .tpl[data-kind="definition"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h13v15H7a2 2 0 0 0-2 2V4z'/%3E%3Cpath d='M9 8h6'/%3E%3C/svg%3E") !important}
.medai-topic .tpl[data-kind="etiology"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='m20 20-4.2-4.2'/%3E%3C/svg%3E") !important}
.medai-topic .tpl[data-kind="pathogenesis"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='6' r='2'/%3E%3Ccircle cx='18' cy='12' r='2'/%3E%3Ccircle cx='6' cy='18' r='2'/%3E%3Cpath d='M8 6h4a4 4 0 0 1 4 4M8 18h4a4 4 0 0 0 4-4'/%3E%3C/svg%3E") !important}
.medai-topic .tpl[data-kind="clinical"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h4l2-6 4 12 2-6h6'/%3E%3C/svg%3E") !important}
.medai-topic .tpl[data-kind="diagnosis"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='4' width='12' height='17' rx='2'/%3E%3Cpath d='M9 4h6v3H9zM9 14l2 2 4-4'/%3E%3C/svg%3E") !important}
.medai-topic .tpl[data-kind="laboratory"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6M10 3v6l-5 9a2 2 0 0 0 2 3h10a2 2 0 0 0 2-3l-5-9V3'/%3E%3Cpath d='M8 15h8'/%3E%3C/svg%3E") !important}
.medai-topic .tpl[data-kind="imaging"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8V5a1 1 0 0 1 1-1h3M16 4h3a1 1 0 0 1 1 1v3M20 16v3a1 1 0 0 1-1 1h-3M8 20H5a1 1 0 0 1-1-1v-3'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") !important}
.medai-topic .tpl[data-kind="differential"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4 3 8l4 4M3 8h14M17 20l4-4-4-4M21 16H7'/%3E%3C/svg%3E") !important}
.medai-topic .tpl[data-kind="classification"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='6' height='6' rx='1'/%3E%3Crect x='14' y='4' width='6' height='6' rx='1'/%3E%3Crect x='4' y='14' width='6' height='6' rx='1'/%3E%3Crect x='14' y='14' width='6' height='6' rx='1'/%3E%3C/svg%3E") !important}
.medai-topic .tpl[data-kind="treatment"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='8.5' width='19' height='7' rx='3.5' transform='rotate(-45 12 12)'/%3E%3Cpath d='M8.5 8.5l7 7'/%3E%3C/svg%3E") !important}
.medai-topic .tpl[data-kind="complication"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4 3 20h18L12 4z'/%3E%3Cpath d='M12 10v4M12 17h.01'/%3E%3C/svg%3E") !important}
.medai-topic .tpl[data-kind="prognosis"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17l6-6 4 4 8-8M15 7h6v6'/%3E%3C/svg%3E") !important}
.medai-topic .tpl[data-kind="followup"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") !important}
.medai-topic .tpl[data-kind="lifecycle"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 0 1-14 5.3M4 12a8 8 0 0 1 14-5.3'/%3E%3Cpath d='M18 3v4h-4M6 21v-4h4'/%3E%3C/svg%3E") !important}
.medai-topic .tpl[data-kind="history"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 8v4l3 2'/%3E%3C/svg%3E") !important}
.medai-topic .tpl[data-kind="dose"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='8.5' width='19' height='7' rx='3.5' transform='rotate(-45 12 12)'/%3E%3Cpath d='M8.5 8.5l7 7'/%3E%3C/svg%3E") !important}
.medai-topic .tpl[data-kind="redflag"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4 3 20h18L12 4z'/%3E%3Cpath d='M12 10v4M12 17h.01'/%3E%3C/svg%3E") !important}

.medai-topic{font-family:"MEDAI Sans","Segoe UI",system-ui,sans-serif !important}
.medai-topic .medai-section-heading{font-family:"MEDAI Display","MEDAI Sans","Segoe UI",system-ui,sans-serif !important;letter-spacing:-.01em !important}
.medai-topic .chip{display:inline-block !important;padding:0 .38em !important;border-radius:7px !important;font-weight:650 !important;font-size:.94em !important;line-height:1.5 !important;white-space:nowrap !important;font-variant-numeric:tabular-nums !important}
.medai-topic .chip-dose{background:rgba(22,163,74,.13) !important;color:#166534 !important}
.medai-topic .chip-time{background:rgba(37,99,235,.12) !important;color:#1d4ed8 !important}
.medai-topic .chip-temp{background:rgba(234,88,12,.13) !important;color:#c2410c !important}
.medai-topic .chip-pct{background:rgba(124,58,237,.12) !important;color:#6d28d9 !important}
.medai-topic .tpl.pal-dark .chip{background:rgba(255,255,255,.14) !important;color:#e0f2fe !important}
.medai-topic .tpl.lay-film .chip{background:rgba(255,255,255,.14) !important;color:#e0f2fe !important}
.medai-topic .tpl p.rx{background:rgba(22,163,74,.08) !important;border:1px dashed rgba(22,163,74,.5) !important;border-radius:10px !important;padding:8px 12px !important}
.medai-topic .tpl .rx-tag{display:inline-block !important;margin-right:8px !important;font:700 20px/1 Georgia,serif !important;color:#15803d !important;vertical-align:-2px !important}
.medai-topic .medai-topic-header.medai-hero{position:relative !important;display:flex !important;align-items:center !important;gap:14px !important;padding:22px 18px !important;margin:0 0 18px !important;border:0 !important;border-radius:24px !important;background:linear-gradient(135deg,#0b2233 0%,#0f3d3e 52%,#0d9488 135%) !important;color:#fff !important;box-shadow:0 18px 40px rgba(13,148,136,.22) !important;overflow:hidden !important;text-align:left !important}
.medai-topic .medai-hero:before{content:"" !important;position:absolute !important;right:-50px !important;top:-70px !important;width:200px !important;height:200px !important;border-radius:50% !important;background:radial-gradient(circle,rgba(94,234,212,.35),transparent 68%) !important}
.medai-topic .medai-hero:after{content:"" !important;position:absolute !important;left:-40px !important;bottom:-80px !important;width:180px !important;height:180px !important;border-radius:50% !important;background:radial-gradient(circle,rgba(99,102,241,.28),transparent 70%) !important}
.medai-topic .medai-hero .medai-hero-main{position:relative !important;z-index:1 !important;flex:1 !important;min-width:0 !important}
.medai-topic .medai-hero .medai-topic-kicker{margin:0 0 8px !important;font:800 10.5px/1.2 "MEDAI Sans","Segoe UI",system-ui,sans-serif !important;letter-spacing:.16em !important;color:rgba(255,255,255,.7) !important}
.medai-topic .medai-hero h1{margin:0 !important;color:#fff !important;font-family:"MEDAI Display","MEDAI Sans","Segoe UI",system-ui,sans-serif !important;font-size:clamp(22px,5.8vw,32px) !important;line-height:1.16 !important;letter-spacing:-.015em !important;font-weight:800 !important;text-wrap:balance !important;text-align:left !important}
.medai-topic .medai-hero .medai-hero-meta{margin-top:12px !important}
.medai-topic .medai-hero .hm{display:inline-block !important;padding:4px 11px !important;border-radius:999px !important;background:rgba(255,255,255,.14) !important;color:#dffcf6 !important;font:600 12px/1.4 "MEDAI Sans","Segoe UI",system-ui,sans-serif !important}
.medai-topic .medai-hero .medai-icd{position:relative !important;z-index:1 !important;flex:none !important;display:flex !important;flex-direction:column !important;align-items:center !important;padding:8px 12px !important;border-radius:14px !important;background:rgba(255,255,255,.14) !important;border:1px solid rgba(255,255,255,.25) !important;color:#fff !important}
.medai-topic .medai-hero .medai-icd b{color:#fff !important;background:none !important;border:0 !important;font:800 14px/1.2 "MEDAI Sans",system-ui,sans-serif !important}
.medai-topic .medai-hero .medai-icd span{color:rgba(255,255,255,.7) !important;font-size:10px !important;letter-spacing:.08em !important}
.medai-topic .medai-ring{position:relative !important;z-index:1 !important;flex:none !important;width:52px !important;height:52px !important}
.medai-topic .medai-ring svg{width:52px !important;height:52px !important;transform:rotate(-90deg) !important}
.medai-topic .medai-ring .rb{fill:none !important;stroke:rgba(255,255,255,.2) !important;stroke-width:3 !important}
.medai-topic .medai-ring .rf{fill:none !important;stroke:#5eead4 !important;stroke-width:3 !important;stroke-linecap:round !important;stroke-dasharray:97.4 !important;stroke-dashoffset:97.4 !important;transition:stroke-dashoffset .25s ease !important}
.medai-topic .medai-ring b{position:absolute !important;left:0 !important;top:0 !important;right:0 !important;bottom:0 !important;display:flex !important;align-items:center !important;justify-content:center !important;font:700 11px/1 "MEDAI Sans","Segoe UI",system-ui,sans-serif !important;color:#fff !important}
.medai-topic.rv-on .tpl:not(.rv-in),.medai-topic.rv-on .medai-section-heading:not(.rv-in){opacity:0 !important;translate:0 16px !important}
.medai-topic.rv-on .tpl.rv-in,.medai-topic.rv-on .medai-section-heading.rv-in{opacity:1 !important;translate:0 0 !important;transition:opacity .5s ease,translate .5s ease !important}
@media(prefers-reduced-motion:reduce){.medai-topic.rv-on .tpl,.medai-topic.rv-on .medai-section-heading{opacity:1 !important;translate:none !important;transition:none !important}}
@media(max-width:480px){.medai-topic .medai-topic-header.medai-hero{padding:18px 14px !important;border-radius:20px !important;gap:10px !important}.medai-topic .medai-ring,.medai-topic .medai-ring svg{width:44px !important;height:44px !important}}
.medai-topic[data-theme="dark"] .tpl.pal-blue{--a:#60a5fa !important;--b:rgba(96,165,250,.12) !important;--t:#dbeafe !important}
.medai-topic[data-theme="dark"] .tpl.pal-indigo{--a:#818cf8 !important;--b:rgba(129,140,248,.12) !important;--t:#e0e7ff !important}
.medai-topic[data-theme="dark"] .tpl.pal-violet{--a:#a78bfa !important;--b:rgba(167,139,250,.12) !important;--t:#ede9fe !important}
.medai-topic[data-theme="dark"] .tpl.pal-teal{--a:#2dd4bf !important;--b:rgba(45,212,191,.12) !important;--t:#ccfbf1 !important}
.medai-topic[data-theme="dark"] .tpl.pal-cyan{--a:#22d3ee !important;--b:rgba(34,211,238,.12) !important;--t:#cffafe !important}
.medai-topic[data-theme="dark"] .tpl.pal-green{--a:#4ade80 !important;--b:rgba(74,222,128,.12) !important;--t:#dcfce7 !important}
.medai-topic[data-theme="dark"] .tpl.pal-lime{--a:#a3e635 !important;--b:rgba(163,230,53,.12) !important;--t:#ecfccb !important}
.medai-topic[data-theme="dark"] .tpl.pal-amber{--a:#fbbf24 !important;--b:rgba(251,191,36,.12) !important;--t:#fef3c7 !important}
.medai-topic[data-theme="dark"] .tpl.pal-gold{--a:#facc15 !important;--b:rgba(250,204,21,.12) !important;--t:#fef9c3 !important}
.medai-topic[data-theme="dark"] .tpl.pal-orange{--a:#fb923c !important;--b:rgba(251,146,60,.12) !important;--t:#ffedd5 !important}
.medai-topic[data-theme="dark"] .tpl.pal-red{--a:#f87171 !important;--b:rgba(248,113,113,.12) !important;--t:#fee2e2 !important}
.medai-topic[data-theme="dark"] .tpl.pal-rose{--a:#fb7185 !important;--b:rgba(251,113,133,.12) !important;--t:#ffe4e6 !important}
.medai-topic[data-theme="dark"] .tpl.pal-pink{--a:#f472b6 !important;--b:rgba(244,114,182,.12) !important;--t:#fce7f3 !important}
.medai-topic[data-theme="dark"] .tpl.pal-slate{--a:#94a3b8 !important;--b:rgba(148,163,184,.12) !important;--t:#e2e8f0 !important}
.medai-topic[data-theme="dark"] .tpl.pal-sepia{--a:#d4a75a !important;--b:rgba(212,167,90,.12) !important;--t:#f3e6c8 !important}
.medai-topic[data-theme="dark"] .tpl.pal-ink{--a:#e2e8f0 !important;--b:rgba(226,232,240,.12) !important;--t:#f1f5f9 !important}

.medai-topic.medai-mode-doctor{--mfs:.94 !important}
.medai-topic.medai-mode-doctor .tpl{margin-top:14px !important;margin-bottom:14px !important;line-height:1.6 !important}
.medai-topic.medai-mode-user{--mfs:1.1 !important}
.medai-topic.medai-mode-user .tpl{margin-top:24px !important;margin-bottom:24px !important;line-height:1.95 !important}
.medai-topic[data-theme="sepia"]{background:#f3ead7 !important;border-radius:22px !important;padding:12px !important;--s:#fbf5e8 !important}
.medai-topic[data-theme="dark"]{background:#0a101c !important;color:#e2e8f0 !important;border-radius:22px !important;padding:12px !important;--s:#0f1a2b !important}
.medai-topic[data-theme="dark"] .medai-section-heading{color:#e2e8f0 !important}
.medai-topic[data-theme="dark"] .medai-breadcrumb,.medai-topic[data-theme="dark"] .medai-breadcrumb span{color:#94a3b8 !important}
.medai-topic[data-theme="dark"] .medai-source,.medai-topic[data-theme="dark"] .medai-source span{color:#94a3b8 !important}
.medai-topic[data-theme="dark"] .tpl.pal-none{--t:#e2e8f0 !important}
.medai-topic[data-theme="dark"] .tpl{border-color:rgba(148,163,184,.25) !important}
.medai-topic[data-theme="dark"] .tpl.lay-paper{background:#141c2c repeating-linear-gradient(to bottom,transparent 0,transparent 27px,rgba(148,163,184,.14) 27px,rgba(148,163,184,.14) 28px) !important;border-color:#26324a !important;color:#e2e8f0 !important}
.medai-topic[data-theme="dark"] .tpl.lay-grid .medai-template-body>p,.medai-topic[data-theme="dark"] .tpl.lay-grid li,.medai-topic[data-theme="dark"] .tpl.lay-tiles .medai-template-body>p,.medai-topic[data-theme="dark"] .tpl.lay-tiles li{border-color:rgba(148,163,184,.2) !important}
.medai-topic[data-theme="dark"] .chip-dose{background:rgba(74,222,128,.16) !important;color:#86efac !important}
.medai-topic[data-theme="dark"] .chip-time{background:rgba(96,165,250,.16) !important;color:#93c5fd !important}
.medai-topic[data-theme="dark"] .chip-temp{background:rgba(251,146,60,.16) !important;color:#fdba74 !important}
.medai-topic[data-theme="dark"] .chip-pct{background:rgba(167,139,250,.16) !important;color:#c4b5fd !important}
.medai-topic[data-theme="dark"] .tpl p.rx{background:rgba(74,222,128,.08) !important;border-color:rgba(74,222,128,.4) !important}
.medai-topic[data-theme="dark"] .tpl .rx-tag{color:#86efac !important}
.medai-topic mark.key{background:linear-gradient(transparent 58%,rgba(250,204,21,.5) 58%) !important;color:inherit !important;padding:0 2px !important;border-radius:2px !important}
.medai-topic[data-theme="dark"] mark.key{background:linear-gradient(transparent 58%,rgba(250,204,21,.32) 58%) !important}
.medai-topic mark.usr-hl{background:#fde047 !important;color:#111827 !important;border-radius:3px !important}
::highlight(medai-usr){background-color:#fde047 !important;color:#111827 !important}
.medai-topic .tpl.is-clamped .medai-template-body{max-height:320px !important;overflow:hidden !important;-webkit-mask-image:linear-gradient(#000 62%,transparent) !important;mask-image:linear-gradient(#000 62%,transparent) !important}
.medai-topic .medai-more{display:block !important;margin:8px auto 0 !important;padding:7px 18px !important;border:0 !important;border-radius:999px !important;background:var(--a) !important;color:#fff !important;font:700 12.5px/1 "MEDAI Sans","Segoe UI",system-ui,sans-serif !important;cursor:pointer !important}
.medai-topic .tpl.lay-plain .medai-more{background:#0f172a !important}
.medai-topic .tpl.tts-now,.medai-topic p.tts-now,.medai-topic li.tts-now{outline:2px solid #14b8a6 !important;outline-offset:3px !important;border-radius:6px !important}
@keyframes medai-pulse{0%,100%{box-shadow:0 0 0 0 rgba(220,38,38,0)}50%{box-shadow:0 0 0 7px rgba(220,38,38,.24)}}
.medai-topic .tpl.pulse{animation:medai-pulse 1.4s ease-in-out 2 !important}
.medai-topic .medai-hero .hm-read{background:rgba(94,234,212,.3) !important}
.medai-topic .medai-hero .hm-dyn{margin-left:6px !important}
@keyframes medai-sk{0%{background-position:100% 50%}100%{background-position:0 50%}}
#taxTopic>.notice:only-child{position:relative !important;min-height:280px !important;color:transparent !important;border:0 !important;border-radius:22px !important;background:linear-gradient(90deg,#e3eaf3 25%,#f3f7fb 37%,#e3eaf3 63%) !important;background-size:400% 100% !important;animation:medai-sk 1.3s ease infinite !important}
.medai-fab{position:fixed !important;right:16px !important;bottom:78px !important;z-index:60 !important;width:46px !important;height:46px !important;border:0 !important;border-radius:50% !important;background:#0f172a !important;color:#fff !important;font:800 15px/1 "MEDAI Sans",system-ui,sans-serif !important;box-shadow:0 8px 22px rgba(2,6,23,.35) !important;cursor:pointer !important}
.medai-toast{position:fixed !important;left:50% !important;bottom:140px !important;transform:translateX(-50%) translateY(12px) !important;z-index:95 !important;max-width:86vw !important;padding:10px 16px !important;border-radius:14px !important;background:#0f172a !important;color:#fff !important;font:600 13.5px/1.4 "MEDAI Sans",system-ui,sans-serif !important;opacity:0 !important;pointer-events:none !important;transition:opacity .25s,transform .25s !important}
.medai-toast.on{opacity:1 !important;transform:translateX(-50%) translateY(0) !important}
.medai-selbar{position:fixed !important;left:50% !important;bottom:24px !important;transform:translateX(-50%) translateY(20px) !important;z-index:90 !important;display:none !important;flex-wrap:wrap !important;justify-content:center !important;gap:6px !important;max-width:94vw !important;padding:8px !important;border-radius:18px !important;background:#0f172a !important;box-shadow:0 14px 36px rgba(2,6,23,.4) !important}
.medai-selbar.on{display:flex !important;transform:translateX(-50%) !important}
.medai-selbar button{border:0 !important;border-radius:12px !important;padding:8px 11px !important;background:rgba(255,255,255,.1) !important;color:#fff !important;font:700 12.5px/1 "MEDAI Sans",system-ui,sans-serif !important;cursor:pointer !important}
.medai-selbar .sb-sep{flex-basis:100% !important;height:0 !important}
.medai-sheet-wrap{position:fixed !important;left:0 !important;top:0 !important;right:0 !important;bottom:0 !important;z-index:100 !important}
.medai-sheet-bg{position:absolute !important;left:0 !important;top:0 !important;right:0 !important;bottom:0 !important;background:rgba(2,6,23,.5) !important}
.medai-sheet{position:absolute !important;left:0 !important;right:0 !important;bottom:0 !important;max-height:84vh !important;overflow:auto !important;background:#fff !important;color:#0f172a !important;border-radius:22px 22px 0 0 !important;padding:10px 16px 24px !important;box-shadow:0 -12px 40px rgba(2,6,23,.3) !important;font-family:"MEDAI Sans",system-ui,sans-serif !important}
.medai-sheet .ms-grip{width:42px !important;height:4px !important;border-radius:2px !important;background:#cbd5e1 !important;margin:2px auto 12px !important}
.medai-sheet .ms-title{display:block !important;margin:0 0 12px !important;font:800 17px/1.2 "MEDAI Display","MEDAI Sans",system-ui,sans-serif !important}
.medai-sheet .ms-row{display:flex !important;align-items:center !important;justify-content:space-between !important;gap:10px !important;margin:0 0 12px !important;font-size:14px !important;font-weight:600 !important}
.medai-sheet .ms-seg{display:flex !important;align-items:center !important;gap:4px !important;padding:3px !important;border-radius:12px !important;background:#eef2f7 !important}
.medai-sheet .ms-seg button,.medai-sheet .ms-tools button,.medai-sheet .ms-actions button,.medai-sheet .ms-clear,.medai-sheet .mn-b button{border:0 !important;border-radius:10px !important;padding:8px 12px !important;background:transparent !important;color:#0f172a !important;font:700 13px/1 "MEDAI Sans",system-ui,sans-serif !important;cursor:pointer !important}
.medai-sheet .ms-seg button.on{background:#0f172a !important;color:#fff !important}
.medai-sheet .ms-val{min-width:44px !important;text-align:center !important;font-weight:700 !important}
.medai-sheet .ms-check{display:flex !important;align-items:center !important;gap:8px !important;margin:4px 0 14px !important;font-size:14px !important}
.medai-sheet .ms-tools{display:flex !important;flex-wrap:wrap !important;gap:8px !important;margin:0 0 12px !important}
.medai-sheet .ms-tools button,.medai-sheet .mn-b button{background:#eef2f7 !important}
.medai-sheet .ms-foot{margin:6px 0 10px !important;font-size:13px !important;color:#475569 !important}
.medai-sheet .ms-clear{display:block !important;width:100% !important;margin-top:6px !important;background:#fff1f0 !important;color:#b91c1c !important}
.medai-sheet .ms-ta{width:100% !important;box-sizing:border-box !important;padding:10px 12px !important;border:1.5px solid #cbd5e1 !important;border-radius:12px !important;font:15px/1.5 "MEDAI Sans",system-ui,sans-serif !important}
.medai-sheet .ms-actions{display:flex !important;justify-content:flex-end !important;gap:8px !important;margin-top:12px !important}
.medai-sheet .ms-actions button{background:#eef2f7 !important}
.medai-sheet .ms-actions .ms-primary{background:#0d9488 !important;color:#fff !important}
.medai-sheet .ms-ai{font-size:14.5px !important;line-height:1.6 !important}
.medai-sheet .ms-ai-text{font-size:15px !important;line-height:1.7 !important}
.medai-sheet .ms-ai-note{margin-top:10px !important;font-size:12px !important;color:#64748b !important}
.medai-sheet .mn-item{padding:10px 0 !important;border-bottom:1px solid #e2e8f0 !important}
.medai-sheet .mn-t{font-size:14px !important;line-height:1.5 !important;background:#fef9c3 !important;border-radius:8px !important;padding:6px 8px !important}
.medai-sheet .mn-n{margin-top:6px !important;font-size:14px !important;font-weight:600 !important}
.medai-sheet .mn-b{display:flex !important;gap:6px !important;margin-top:8px !important}
.medai-sheet .mc-top{display:flex !important;justify-content:space-between !important;align-items:center !important;margin-bottom:10px !important;font-size:15px !important}
.medai-sheet .mc-card{position:relative !important;min-height:190px !important;padding:18px !important;border-radius:18px !important;background:linear-gradient(135deg,#0f3d3e,#0d9488) !important;color:#fff !important;font-size:17px !important;line-height:1.55 !important;cursor:pointer !important;overflow:auto !important;max-height:52vh !important}
.medai-sheet .mc-side{display:block !important}
.medai-sheet .mc-b{display:none !important;font-size:15px !important}
.medai-sheet .mc-card.flip .mc-f{display:none !important}
.medai-sheet .mc-card.flip .mc-b{display:block !important}
.medai-sheet .mc-hint{margin:8px 0 0 !important;font-size:12px !important;color:#64748b !important;text-align:center !important}
/* ==== V21 STYLE CATALOG END ==== */

/* v19 unified topic architecture: one title, inline centered subtopics, continuous reading */
.medai-topic{max-width:940px}
.medai-topic-header{margin-bottom:26px!important;padding:24px 24px 26px!important;border-radius:22px!important;background:radial-gradient(circle at 88% 18%,rgba(20,184,166,.10),transparent 27%),linear-gradient(145deg,#f7fcfd,#ffffff)!important;border:1px solid rgba(55,135,153,.16)!important;box-shadow:0 18px 44px rgba(21,73,88,.08)!important}
.medai-topic-header h1{font-family:"Arial Black",Arial,sans-serif!important;font-size:clamp(24px,4.2vw,34px)!important;line-height:1.18!important;letter-spacing:-.02em!important;color:#12384a!important}
.medai-topic-kicker{color:#0f8f86!important}.medai-topic-content{display:block!important}
.medai-topic-content .medai-section-heading{max-width:760px;margin:34px auto 18px!important;padding:0 14px 12px!important;text-align:center!important;font-family:"Arial Black",Arial,sans-serif!important;font-size:1.18rem!important;line-height:1.35!important;color:#0f6f70!important;border:0!important}
.medai-topic-content .medai-section-heading:after{width:64px!important;height:3px!important;background:linear-gradient(90deg,#0f9f8f,#1769e0)!important}
.medai-topic-content .medai-source-prose{margin:0 0 18px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.medai-topic-content .medai-source-prose>.medai-template-body{padding:0!important}
.medai-topic-content .medai-source-prose p{margin:0 0 1.15em!important;font-family:Georgia,"Noto Serif","DejaVu Serif",serif!important;font-size:16.5px!important;line-height:1.92!important;color:#263548!important}
.medai-source{margin-top:30px!important;padding:15px 0!important;border-top:1px solid #dce7eb!important}.medai-duplicate-topic-title{display:none!important}
@media(max-width:760px){.medai-topic-header{padding:20px 16px 22px!important;border-radius:18px!important}.medai-topic-header h1{font-size:23px!important;line-height:1.22!important}.medai-topic-content .medai-section-heading{font-size:1.08rem!important;margin:30px auto 15px!important}.medai-topic-content .medai-source-prose p{font-size:16px!important;line-height:1.88!important}}
html[data-medai-theme="dark"] .medai-topic-header{background:radial-gradient(circle at 86% 18%,rgba(20,184,166,.12),transparent 27%),linear-gradient(145deg,#0b2b3c,#081f2e)!important;border-color:rgba(88,206,197,.16)!important}
html[data-medai-theme="dark"] .medai-topic-header h1{color:#effbff!important}html[data-medai-theme="dark"] .medai-topic-content .medai-section-heading{color:#70e0d5!important}html[data-medai-theme="dark"] .medai-topic-content .medai-source-prose p{color:#dbe9ef!important}
