/* MIRAD V2 Rich Lesson — additive theme, scoped to the lesson only. */
.mirad-rich-lecture,
.mirad-rich-lecture *{box-sizing:border-box}
.mirad-rich-lecture {
 --ml-bg:#0d0f17;--ml-panel:#141824;--ml-border:#2b3345;--ml-red:#fb7185;
 --ml-muted:#aeb9ce;--ml-bright:#f8fafc;--ml-purple:#a78bfa;
 overflow:hidden;position:relative;border:1px solid #303446;border-radius:20px;
 background:linear-gradient(166deg,#101521 0%,#0d0f17 19%,#10131c 100%);
 color:var(--ml-bright);font:400 14px/1.75 Inter,Manrope,system-ui,sans-serif;
 box-shadow:0 15px 44px rgba(0,0,0,.28);
}
.mirad-rich-lecture .mlrv-intro {
 padding:29px 31px 26px;background:
 radial-gradient(ellipse at 88% 7%,rgba(240,67,105,.17),transparent 43%),
 linear-gradient(125deg,#191b2c,#10131f 72%);
 border-bottom:1px solid #293246;
}
.mirad-rich-lecture .mlrv-kicker {
 display:block;color:#fb8295;text-transform:uppercase;
 letter-spacing:.15em;font:700 10px/1.55 ui-monospace,SFMono-Regular,monospace;
}
.mirad-rich-lecture .mlrv-title {
 margin:8px 0 11px;font:800 clamp(19px,3vw,27px)/1.18 Inter,Manrope,system-ui,sans-serif;
 letter-spacing:-.022em;text-transform:uppercase;color:#fff;
}
.mirad-rich-lecture .mlrv-subtitle {color:#b7c2d7;font-size:13px;line-height:1.8;max-width:60ch;margin:0 0 17px}
.mirad-rich-lecture .mlrv-facts {display:flex;gap:8px;flex-wrap:wrap}
.mirad-rich-lecture .mlrv-fact {
 padding:6px 11px;border-radius:8px;border:1px solid #4c3345;
 background:rgba(146,36,63,.12);color:#fda4af;
 font:600 11px/1.4 Inter,Manrope,system-ui,sans-serif;
}
.mirad-rich-lecture .mlrv-toc {
 display:flex;gap:9px;padding:13px 27px;overflow-x:auto;
 overscroll-behavior-inline:contain;scrollbar-width:thin;
 background:#10131c;border-bottom:1px solid #252c3d;
}
.mirad-rich-lecture .mlrv-toc-item {
 text-decoration:none;white-space:nowrap;flex-shrink:0;
 border:1px solid #293347;background:#161b2a;border-radius:9px;
 padding:8px 10px;color:#cbd5e1;
 font-size:11px;font-weight:650;max-width:235px;text-overflow:ellipsis;overflow:hidden;
}
.mirad-rich-lecture .mlrv-toc-item:hover,
.mirad-rich-lecture .mlrv-toc-item:focus-visible {color:#fff;border-color:#d14c70;outline:none}
.mirad-rich-lecture .mlrv-meter {
 padding:12px 28px;border-bottom:1px solid #252c3d;color:#8bffcd;
 font:600 11px/1.4 Inter,Manrope,system-ui,sans-serif;
}
.mirad-rich-lecture .mlrv-lecture-body {padding:8px 30px 30px}
.mirad-rich-lecture .mlrv-section-header {
 display:flex;align-items:flex-start;gap:14px;
 padding:31px 0 12px;scroll-margin-top:95px;
 border-top:1px solid #252a39;margin-top:12px;
}
.mirad-rich-lecture .mlrv-section-header:first-child {border-top:0;margin-top:0}
.mirad-rich-lecture .mlrv-section-number {
 display:grid;place-items:center;width:35px;height:35px;flex-shrink:0;
 border:1px solid #7e2c50;background:linear-gradient(135deg,#4a203a,#271528);
 color:#fda4af;border-radius:10px;
 font:800 11px/1 ui-monospace,SFMono-Regular,monospace;
}
.mirad-rich-lecture .mlrv-section-title {
 margin:1px 0 0;color:#f8fafc;
 font:750 clamp(17px,2.3vw,21px)/1.35 Inter,Manrope,system-ui,sans-serif;
 letter-spacing:-.018em;
}
.mirad-rich-lecture .mlrv-prose {padding:0 0 3px;margin:0}
.mirad-rich-lecture .mlrv-prose p {
 color:#ccd5e2;font-size:13.5px;line-height:1.88;white-space:pre-wrap;
 margin:8px 0 15px;max-width:80ch;overflow-wrap:anywhere;
}
.mirad-rich-lecture .mlrv-prose p:last-child {margin-bottom:13px}
.mirad-rich-lecture .mlrv-callout {
 position:relative;padding:17px 19px 16px;margin:20px 0 25px;
 border:1px solid #5d3154;border-left:3px solid #ec6787;
 border-radius:12px;background:linear-gradient(120deg,#291b2a 0%,#1a1b2c 100%);
}
.mirad-rich-lecture .mlrv-callout.mlrv-tone-review {
 background:linear-gradient(120deg,#242217 0%,#1b1c24 100%);
 border-color:#6f5b28;border-left-color:#fbbf24;
}
.mirad-rich-lecture .mlrv-callout.mlrv-tone-review .mlrv-kicker {color:#fcd34d}
.mirad-rich-lecture .mlrv-callout.mlrv-tone-success {
 background:linear-gradient(120deg,#122924 0%,#132022 100%);
 border-color:#24664e;border-left-color:#34d399;
}
.mirad-rich-lecture .mlrv-callout.mlrv-tone-success .mlrv-kicker{color:#6ee7b7}
.mirad-rich-lecture .mlrv-h4 {color:#fff;margin:6px 0 8px;font:750 15px/1.45 Inter,Manrope,system-ui,sans-serif}
.mirad-rich-lecture .mlrv-callout-copy {color:#cbd5e1;font-size:12.5px;line-height:1.8;margin:0;white-space:pre-wrap}
.mirad-rich-lecture .mlrv-figure {
 margin:22px 0 28px;padding:21px;
 background:radial-gradient(circle at 100% 0%,rgba(135,54,86,.12),transparent 55%),#141824;
 border:1px solid #30394d;border-radius:16px;overflow:hidden;scroll-margin-top:100px;
}
.mirad-rich-lecture .mlrv-fig-head {
 display:flex;gap:10px;justify-content:space-between;align-items:start;margin-bottom:16px;
}
.mirad-rich-lecture .mlrv-fig-heading {min-width:0;flex:1}
.mirad-rich-lecture .mlrv-fig-heading .mlrv-h4 {font-size:16px;margin:5px 0 0}
.mirad-rich-lecture .mlrv-visual-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.mirad-rich-lecture .mlrv-vcard {
 min-width:0;position:relative;display:flex;flex-direction:column;gap:7px;
 background:#111622;border:1px solid #344058;border-radius:12px;padding:15px;
 transition:transform .15s,border-color .15s;
}
.mirad-rich-lecture .mlrv-vcard:hover {border-color:#83425d;transform:translateY(-1px)}
.mirad-rich-lecture .mlrv-vlabel {
 display:inline-flex;align-self:flex-start;min-width:34px;min-height:29px;align-items:center;
 padding:5px 8px;border-radius:7px;
 background:#321e32;color:#fba7ba;
 font:750 11px/1.25 ui-monospace,SFMono-Regular,monospace;
}
.mirad-rich-lecture .mlrv-vtitle {color:#fff;font-size:13px;font-weight:750;line-height:1.4}
.mirad-rich-lecture .mlrv-vvalue {color:#fb7185;font:800 19px/1.2 Inter,Manrope,system-ui,sans-serif;overflow-wrap:anywhere}
.mirad-rich-lecture .mlrv-vsubtitle {color:#fba4ba;font-size:11px}
.mirad-rich-lecture .mlrv-vdetail {color:#adbad1;font-size:11.5px;line-height:1.65;margin:0;overflow-wrap:anywhere}
.mirad-rich-lecture .mlrv-caption {color:#96a3ba;font-size:11px;line-height:1.6;margin-top:14px}
.mirad-rich-lecture .mlrv-layout-timeline .mlrv-visual-grid {
 grid-template-columns:repeat(2,minmax(0,1fr));position:relative;
}
.mirad-rich-lecture .mlrv-layout-timeline .mlrv-vcard {border-top:2px solid #d75c86}
.mirad-rich-lecture .mlrv-layout-timeline .mlrv-vlabel {
 color:#fff;font-size:16px;min-height:39px;background:linear-gradient(135deg,#7c2448,#482044)
}
.mirad-rich-lecture .mlrv-layout-comparison .mlrv-visual-grid {
 grid-template-columns:repeat(2,minmax(0,1fr))
}
.mirad-rich-lecture .mlrv-layout-comparison .mlrv-vcard {border-left:3px solid #c6547e}
.mirad-rich-lecture .mlrv-layout-risk .mlrv-visual-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
.mirad-rich-lecture .mlrv-layout-risk .mlrv-vcard {border-left:3px solid #a78bfa}
.mirad-rich-lecture .mlrv-layout-flow .mlrv-visual-grid {grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.mirad-rich-lecture .mlrv-layout-flow .mlrv-vcard {padding:11px}
.mirad-rich-lecture .mlrv-layout-flow .mlrv-vtitle {font-size:11.5px}
.mirad-rich-lecture .mlrv-layout-flow .mlrv-vdetail {font-size:10px}
.mirad-rich-lecture .mlrv-layout-map .mlrv-visual-grid {grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.mirad-rich-lecture .mlrv-layout-map .mlrv-vcard {padding:11px 8px;min-height:85px;justify-content:center}
.mirad-rich-lecture .mlrv-layout-map .mlrv-vlabel {display:none}
.mirad-rich-lecture .mlrv-layout-map .mlrv-vtitle {text-align:center;font-size:11px;overflow-wrap:anywhere}
.mirad-rich-lecture .mlrv-btn {
 display:inline-flex;align-items:center;justify-content:center;gap:8px;
 min-height:44px;padding:9px 13px;border-radius:10px;
 font:700 11.5px/1.35 Inter,Manrope,system-ui,sans-serif;
 color:#fff;border:1px solid #7b435e;background:#321e33;
 cursor:pointer;text-decoration:none;text-align:center;
}
.mirad-rich-lecture .mlrv-btn:focus-visible {outline:3px solid #fda4af;outline-offset:2px}
.mirad-rich-lecture .mlrv-btn:disabled {opacity:.58;cursor:progress}
.mirad-rich-lecture .mlrv-btn.mlrv-secondary {color:#fca5b7;border-color:#6b4459;background:#241927}
.mirad-rich-lecture .mlrv-btn.mlrv-secondary:hover {border-color:#fb7185;background:#392137}
.mirad-rich-lecture .mlrv-btn.mlrv-secondary.mlrv-saved {color:#6ee7b7;border-color:#27674e;background:#133129}
.mirad-rich-lecture .mlrv-btn.mlrv-primary {background:#a21d43;border-color:#cc3157}
.mirad-rich-lecture .mlrv-mini-quiz {
 margin:22px 0 29px;padding:20px;border:1px solid #4e3c5f;
 border-radius:15px;background:linear-gradient(145deg,#191a2b,#171625);
}
.mirad-rich-lecture .mlrv-question {color:#e8edf7;font-size:13.5px;line-height:1.7;margin:8px 0 15px}
.mirad-rich-lecture .mlrv-options {display:grid;gap:9px}
.mirad-rich-lecture .mlrv-option {
 width:100%;justify-content:flex-start;text-align:left;white-space:normal;
 min-height:48px;padding:11px 15px;color:#d9e0ee;border-color:#343c50;background:#141924;
 font-weight:550;font-size:12.5px;line-height:1.5;
}
.mirad-rich-lecture .mlrv-option:hover {border-color:#a65376;background:#211a2c}
.mirad-rich-lecture .mlrv-option.mlrv-correct {color:#bbf7d0;border-color:#34d399;background:#15372f}
.mirad-rich-lecture .mlrv-option.mlrv-wrong {color:#fecaca;border-color:#fb7185;background:#3b1c2b}
.mirad-rich-lecture .mlrv-feedback {
 color:#b8c4d7;font-size:12px;line-height:1.7;min-height:0;
 margin-top:0;white-space:pre-wrap;
}
.mirad-rich-lecture .mlrv-feedback:not(:empty) {
 margin-top:15px;padding:12px 14px;border:1px solid #414661;border-radius:9px;background:#181d2b;
}
.mirad-rich-lecture .mlrv-feedback.mlrv-ok {color:#c3ffe2;border-color:#2c6a52}
.mirad-rich-lecture .mlrv-feedback.mlrv-try {color:#ffd9d9;border-color:#774258}
.mirad-rich-lecture .mlrv-diary {
 margin:28px 0 24px;padding:22px;border:1px solid #774563;
 border-radius:15px;background:linear-gradient(125deg,#261b32,#141825);
}
.mirad-rich-lecture .mlrv-prompt-list {
 list-style:disc;margin:12px 0 16px;padding-left:20px;color:#c3ccda;font-size:12px;line-height:1.8;
}
.mirad-rich-lecture .mlrv-input-label {display:block;margin-bottom:8px;color:#f3d4df;font-size:11px;font-weight:700}
.mirad-rich-lecture .mlrv-diary-area {
 width:100%;resize:vertical;min-height:112px;padding:14px;
 border:1px solid #4a4f64;border-radius:10px;background:#0e1420;
 color:#fff;font:400 12.5px/1.7 Inter,Manrope,system-ui,sans-serif;
}
.mirad-rich-lecture .mlrv-diary-area:focus {outline:2px solid #fb7185;outline-offset:1px}
.mirad-rich-lecture .mlrv-action-row {display:flex;flex-wrap:wrap;gap:10px;margin-top:13px}
.mirad-rich-lecture .mlrv-diary-status {font-size:12px;color:#86efac;min-height:12px;margin:8px 0 0}
.mirad-rich-lecture .mlrv-footer {
 color:#95a5bc;font-size:11px;line-height:1.6;padding:14px 30px 22px;
 border-top:1px solid #2b3345;
}
@media (max-width:800px){
 .mirad-rich-lecture .mlrv-layout-flow .mlrv-visual-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
 .mirad-rich-lecture .mlrv-layout-map .mlrv-visual-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:580px){
 .mirad-rich-lecture {border-radius:13px}
 .mirad-rich-lecture .mlrv-intro {padding:22px 17px}
 .mirad-rich-lecture .mlrv-toc {padding:12px 15px}
 .mirad-rich-lecture .mlrv-meter {padding:11px 17px}
 .mirad-rich-lecture .mlrv-lecture-body {padding:5px 16px 22px}
 .mirad-rich-lecture .mlrv-section-header {gap:10px;padding-top:24px}
 .mirad-rich-lecture .mlrv-section-number {width:30px;height:30px;font-size:10px}
 .mirad-rich-lecture .mlrv-prose p {font-size:13px}
 .mirad-rich-lecture .mlrv-figure {padding:15px 13px}
 .mirad-rich-lecture .mlrv-fig-head {flex-wrap:wrap}
 .mirad-rich-lecture .mlrv-visual-grid,
 .mirad-rich-lecture .mlrv-layout-comparison .mlrv-visual-grid,
 .mirad-rich-lecture .mlrv-layout-risk .mlrv-visual-grid {grid-template-columns:repeat(1,minmax(0,1fr))}
 .mirad-rich-lecture .mlrv-layout-timeline .mlrv-visual-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
 .mirad-rich-lecture .mlrv-layout-flow .mlrv-visual-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
 .mirad-rich-lecture .mlrv-layout-map .mlrv-visual-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
 .mirad-rich-lecture .mlrv-mini-quiz {padding:17px 13px}
 .mirad-rich-lecture .mlrv-diary {padding:18px 14px}
 .mirad-rich-lecture .mlrv-footer {padding:14px 16px 19px}
}
@media (prefers-reduced-motion:reduce){
 .mirad-rich-lecture .mlrv-vcard {transition:none}
 .mirad-rich-lecture .mlrv-vcard:hover {transform:none}
}
