/* Sân khấu: khung cố định 1920×1080, co giãn cho vừa phần tử chứa. */
.mh-host { position: relative; overflow: hidden; }
.mh-stage {
  position: absolute; left: 50%; top: 50%; transform-origin: 50% 50%;
  overflow: hidden; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); --k: 1;
}
.mh-bg { position: absolute; inset: 0; background: var(--bg-img, none); }
.mh-blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: var(--blob-o, .35); }
.mh-blob-0 { width: 640px; height: 640px; left: -160px; top: -200px; background: var(--accent); }
.mh-blob-1 { width: 560px; height: 560px; right: -180px; bottom: -220px; background: var(--accent2); }
.mh-blob-2 { width: 380px; height: 380px; right: 22%; top: -260px; background: var(--accent3, var(--accent)); opacity: calc(var(--blob-o, .35) * .6); }

.mh-scene {
  position: absolute; inset: 0; padding: 90px 120px 110px; display: flex; flex-direction: column;
  gap: calc(40px * var(--k)); overflow: hidden; will-change: opacity;
}
.mh-head { display: flex; flex-wrap: wrap; align-items: center; column-gap: 28px; row-gap: 8px; }
.mh-icon { font-size: calc(72px * var(--k)); line-height: 1; }
.mh-title {
  margin: 0; font-family: var(--font-head); font-weight: var(--head-w, 800); color: var(--title, var(--ink));
  font-size: calc(76px * var(--k)); line-height: 1.12; letter-spacing: -.01em; flex: 1 1 0; min-width: 60%;
}
.mh-subtitle { margin: 0; width: 100%; font-size: calc(40px * var(--k)); color: var(--muted); line-height: 1.3; }
.mh-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.mh-wi { display: inline-block; will-change: transform; }
.mh-hint { background: var(--hint-bg, #fff3b0); color: #5b4500; border: 3px dashed #d4a20b; border-radius: 10px; padding: 0 .25em; font-style: italic; font-weight: 500; }
.mh-body { flex: 1; min-height: 0; position: relative; }
.mh-stage b { color: var(--accent-ink, var(--accent)); }

/* bìa + kết thúc */
.mh-cover, .mh-end { display: flex; flex-direction: column; align-items: center; justify-content: safe center; text-align: center; gap: calc(30px * var(--k)); }
.mh-cover-icon { font-size: calc(150px * var(--k)); line-height: 1; }
.mh-cover-title { margin: 0; font-family: var(--font-head); font-weight: var(--head-w, 800); font-size: calc(124px * var(--k)); line-height: 1.08; max-width: 92%; color: var(--title, var(--ink)); }
.mh-cover-bar { width: 260px; height: 14px; border-radius: 8px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transform-origin: 50% 50%; }
.mh-cover-sub { margin: 0; font-size: calc(50px * var(--k)); color: var(--muted); max-width: 85%; line-height: 1.3; }
.mh-cover-meta { font-size: calc(36px * var(--k)); color: var(--muted); padding: 12px 34px; border: 2px solid var(--line); border-radius: 999px; }
.mh-src { margin-top: calc(20px * var(--k)); text-align: left; background: var(--card); border: 2px solid var(--line); border-radius: 24px; padding: 26px 40px; max-width: 90%; }
.mh-src-h { font-weight: 700; font-size: calc(34px * var(--k)); margin-bottom: 8px; color: var(--accent-ink, var(--accent)); }
.mh-src-i { font-size: calc(30px * var(--k)); color: var(--muted); line-height: 1.45; }

/* danh sách */
.mh-list { display: flex; flex-direction: column; justify-content: safe center; gap: calc(26px * var(--k)); }
.mh-list.mh-two { display: grid; grid-template-columns: 1fr 1fr; align-content: center; column-gap: 48px; }
.mh-item {
  display: flex; gap: 30px; align-items: flex-start; background: var(--card); border: 2px solid var(--line);
  border-radius: 26px; padding: calc(24px * var(--k)) 34px; box-shadow: var(--shadow);
}
.mh-mark {
  flex: none; width: calc(66px * var(--k)); height: calc(66px * var(--k)); border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent, #fff); font-weight: 800; font-size: calc(36px * var(--k)); font-family: var(--font-head);
}
.mh-t { font-size: calc(48px * var(--k)); font-weight: 600; line-height: 1.25; }
.mh-d { font-size: calc(36px * var(--k)); color: var(--muted); line-height: 1.3; margin-top: 6px; }
.mh-small .mh-t { font-size: calc(40px * var(--k)); }
.mh-dim { opacity: .45 !important; }
.mh-active { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent), var(--shadow); }

/* các bước */
.mh-steps { display: flex; align-items: safe center; justify-content: center; gap: 18px; }
.mh-steps.mh-many { flex-wrap: wrap; align-content: safe center; align-items: stretch; gap: 26px; }
.mh-steps.mh-many .mh-step { flex: 0 0 calc((100% - 52px) / 3); box-sizing: border-box; min-height: 0; justify-content: flex-start; }
.mh-steps.mh-many .mh-arrow { display: none; }
.mh-step {
  flex: 1; min-height: 420px; background: var(--card); border: 2px solid var(--line); border-radius: 30px; padding: calc(40px * var(--k)) 34px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; justify-content: center;
}
.mh-step-n { font-family: var(--font-head); font-weight: 800; font-size: calc(64px * var(--k)); color: var(--accent-ink, var(--accent)); line-height: 1; }
.mh-arrow { align-self: center; font-size: 70px; color: var(--accent2); font-weight: 800; }

/* dòng thời gian */
.mh-tl { --track: 50%; }
.mh-tl-track { position: absolute; left: 0; right: 0; top: 50%; height: 10px; margin-top: -5px; border-radius: 6px; background: var(--line); }
.mh-tl-fill { position: absolute; inset: 0; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transform-origin: 0 50%; }
.mh-tl-node { position: absolute; left: var(--pos); top: 50%; width: 0; height: 0; }
.mh-tl-dot { position: absolute; width: 40px; height: 40px; left: -20px; top: -20px; border-radius: 50%; background: var(--bg); border: 8px solid var(--accent); }
.mh-tl-card {
  position: absolute; left: -190px; width: 380px; text-align: center; background: var(--card); border: 2px solid var(--line);
  border-radius: 22px; padding: 18px 16px; box-shadow: var(--shadow);
}
.mh-above .mh-tl-card { bottom: 50px; }
.mh-below .mh-tl-card { top: 50px; }
.mh-tl-when { font-family: var(--font-head); font-weight: 800; font-size: calc(44px * var(--k)); color: var(--accent-ink, var(--accent)); }
.mh-tl-card .mh-d { font-size: calc(34px * var(--k)); }

/* so sánh */
.mh-cmp { display: grid; grid-template-columns: 1fr auto 1fr; gap: 36px; align-items: center; }
.mh-cmp-col { background: var(--card); border: 2px solid var(--line); border-radius: 30px; padding: 34px 38px; display: flex; flex-direction: column; gap: calc(18px * var(--k)); box-shadow: var(--shadow); }
.mh-cmp-h { font-family: var(--font-head); font-weight: 800; font-size: calc(52px * var(--k)); padding-bottom: 12px; border-bottom: 6px solid var(--c); color: var(--c); }
.mh-a { --c: var(--accent-ink, var(--accent)); }
.mh-b { --c: var(--accent2-ink, var(--accent2)); }
.mh-cmp-i { font-size: calc(46px * var(--k)); line-height: 1.3; padding-left: 40px; position: relative; }
.mh-cmp-i::before { content: "●"; position: absolute; left: 0; color: var(--c); font-size: .7em; top: .2em; }
.mh-vs { align-self: center; justify-self: center; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-weight: 900; font-size: 44px; font-family: var(--font-head); }

/* con số lớn */
.mh-big { display: flex; flex-direction: column; align-items: center; justify-content: safe center; text-align: center; gap: 30px; }
.mh-big-n { font-family: var(--font-head); font-weight: 900; line-height: 1; color: var(--accent-ink, var(--accent)); display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap; justify-content: center; }
.mh-big-v { font-size: calc(260px * var(--k)); font-variant-numeric: tabular-nums; }
.mh-big-u { font-size: calc(90px * var(--k)); color: var(--accent2-ink, var(--accent2)); }
.mh-big-l { font-size: calc(50px * var(--k)); max-width: 80%; line-height: 1.3; }

/* biểu đồ */
.mh-chart { display: flex; flex-direction: column; }
.mh-chart-unit { font-size: calc(34px * var(--k)); color: var(--muted); margin-bottom: 10px; }
.mh-chart-plot { flex: 1; min-height: 0; display: flex; align-items: stretch; justify-content: center; gap: 40px; padding: 0 20px; }
.mh-bar { flex: 1; max-width: 260px; display: flex; flex-direction: column; align-items: center; }
.mh-bar-v { font-family: var(--font-head); font-weight: 800; font-size: calc(48px * var(--k)); height: 1.4em; color: var(--ink); font-variant-numeric: tabular-nums; }
.mh-bar-wrap { flex: 1; width: 100%; position: relative; border-bottom: 5px solid var(--line); }
.mh-bar-fill { position: absolute; inset: 0; border-radius: 18px 18px 0 0; background: linear-gradient(180deg, var(--accent), var(--accent2)); transform-origin: 50% 100%; }
.mh-bar-l { flex: none; min-height: 2.4em; font-size: calc(34px * var(--k)); text-align: center; margin-top: 14px; line-height: 1.15; }
.mh-badge { position: absolute; right: 60px; bottom: 40px; font-size: 30px; padding: 8px 22px; border-radius: 999px; background: var(--card); border: 2px dashed var(--muted); color: var(--muted); }

/* trích dẫn */
.mh-quote { display: flex; flex-direction: column; justify-content: safe center; padding: 0 40px; }
.mh-qmark { font-family: var(--font-quote, Georgia, serif); font-size: 320px; line-height: .6; color: var(--accent); height: 150px; }
.mh-qtext { margin: 0; font-family: var(--font-quote, var(--font-head)); font-size: calc(64px * var(--k)); line-height: 1.32; font-weight: 500; }
.mh-qau { margin-top: 40px; font-size: calc(42px * var(--k)); color: var(--muted); align-self: flex-end; }

/* công thức */
.mh-formula { display: flex; flex-direction: column; justify-content: safe center; align-items: center; gap: 50px; }
.mh-fcard { background: var(--card); border: 2px solid var(--line); border-radius: 34px; padding: 50px 70px; box-shadow: var(--shadow); max-width: 100%; }
.mh-f { font-size: calc(84px * var(--k)); color: var(--ink); white-space: nowrap; }
.mh-f .katex-display { margin: 0; }
.mh-fex { font-size: calc(44px * var(--k)); text-align: center; max-width: 85%; line-height: 1.35; color: var(--muted); }

/* trắc nghiệm */
.mh-quiz { display: flex; flex-direction: column; gap: calc(34px * var(--k)); justify-content: safe center; }
.mh-quiz-q { font-size: calc(52px * var(--k)); font-weight: 700; line-height: 1.25; }
.mh-quiz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.mh-opt { display: flex; align-items: center; gap: 26px; background: var(--card); border: 3px solid var(--line); border-radius: 26px; padding: 22px 30px; box-shadow: var(--shadow); }
.mh-opt-k { flex: none; width: 70px; height: 70px; border-radius: 18px; display: grid; place-items: center; background: var(--accent2); color: var(--on-accent, #fff); font-weight: 800; font-size: 38px; font-family: var(--font-head); }
.mh-opt-t { flex: 1; font-size: calc(42px * var(--k)); line-height: 1.25; }
.mh-opt-ok { font-size: 54px; color: #16a34a; opacity: 0; font-weight: 900; }
.mh-opt.mh-right { border-color: #16a34a; background: color-mix(in srgb, #22c55e 22%, var(--card)); }
.mh-opt.mh-right .mh-opt-ok { opacity: 1; }
.mh-opt.mh-right .mh-opt-k { background: #16a34a; }
.mh-opt.mh-wrong { opacity: .4 !important; }
.mh-quiz-ex { font-size: calc(38px * var(--k)); color: var(--muted); border-left: 8px solid #16a34a; padding-left: 26px; line-height: 1.35; }

/* chu trình */
.mh-cycle { display: grid; place-items: center; }
.mh-cycle-box { position: relative; flex: none; }
.mh-cycle-svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--accent2); overflow: visible; }
.mh-arc { fill: none; stroke: currentColor; stroke-width: 8; stroke-linecap: round; }
.mh-cnode { position: absolute; width: var(--node-w, 360px); text-align: center; background: var(--card); border: 3px solid var(--accent); border-radius: 28px; padding: 18px 20px; box-shadow: var(--shadow); }
.mh-cnode .mh-t { font-size: calc(40px * var(--k)); }
.mh-cnode .mh-d { font-size: calc(30px * var(--k)); }
.mh-cycle-c { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--font-head); font-weight: 800; font-size: calc(54px * var(--k)); color: var(--accent-ink, var(--accent)); text-align: center; width: var(--label-w, 420px); }

/* hình ảnh */
.mh-img { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: center; }
.mh-img.mh-vert { grid-template-columns: 1fr; grid-template-rows: 1.2fr auto; }
.mh-img-frame { position: relative; height: 100%; min-height: 300px; border-radius: 32px; overflow: hidden; background: var(--card); border: 2px solid var(--line); box-shadow: var(--shadow); }
.mh-img-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mh-img-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: var(--muted); font-size: 40px; gap: 10px; }
.mh-img-empty div:first-child { font-size: 140px; }
.mh-img-side { display: flex; flex-direction: column; gap: 22px; }
.mh-img-cap { font-size: calc(44px * var(--k)); line-height: 1.35; }

/* ---------- giao diện ---------- */
.mh-theme-chalk {
  --bg: #1f3b2d; --ink: #f3f6ef; --muted: #c5d3c4; --accent: #ffd166; --accent2: #7bdff2; --accent3: #ff8fab; --on-accent: #1f3b2d;
  --card: rgba(255, 255, 255, .06); --line: rgba(255, 255, 255, .35); --shadow: none; --blob-o: .08; --head-w: 400;
  --bg-img: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.07), transparent 60%), radial-gradient(ellipse at 80% 90%, rgba(0,0,0,.25), transparent 60%);
  --font-head: "Patrick Hand", "Nunito", sans-serif; --font-body: "Nunito", sans-serif; --font-quote: "Patrick Hand", sans-serif; --hint-bg: #fff3b0;
}
.mh-theme-chalk .mh-item, .mh-theme-chalk .mh-step, .mh-theme-chalk .mh-cmp-col, .mh-theme-chalk .mh-opt, .mh-theme-chalk .mh-fcard, .mh-theme-chalk .mh-tl-card, .mh-theme-chalk .mh-cnode { border-style: dashed; }
.mh-theme-chalk .mh-title { font-size: calc(90px * var(--k)); }
.mh-theme-chalk .mh-cover-title { font-size: calc(140px * var(--k)); }
.mh-theme-science {
  --bg: #0b1d3a; --ink: #e6f0ff; --muted: #9fb3d1; --accent: #4cc9f0; --accent2: #f72585; --accent3: #7209b7; --on-accent: #0b1d3a;
  --card: rgba(76, 201, 240, .07); --line: rgba(76, 201, 240, .35); --shadow: none; --blob-o: .22;
  --bg-img: linear-gradient(rgba(76,201,240,.08) 2px, transparent 2px) 0 0 / 60px 60px, linear-gradient(90deg, rgba(76,201,240,.08) 2px, transparent 2px) 0 0 / 60px 60px;
  --font-head: "Be Vietnam Pro", sans-serif; --font-body: "Be Vietnam Pro", sans-serif; --font-quote: "Lora", serif;
}

/* ---------- bản trình chiếu trực tiếp ---------- */
.mh-deck { position: fixed; inset: 0; z-index: 100; background: #05070c; display: flex; flex-direction: column; outline: none; }
.mh-deck-stage { flex: 1; cursor: pointer; }
/* góc dưới bên phải, tránh nút điều khiển mô phỏng ở giữa đáy trang chiếu */
.mh-deck-bar {
  position: absolute; right: 14px; bottom: 14px; display: flex; gap: 6px; align-items: center;
  background: rgba(20, 24, 34, .82); color: #fff; border-radius: 999px; padding: 6px 10px; opacity: .25; transition: opacity .2s;
  font: 600 15px/1 system-ui, sans-serif;
}
.mh-deck-bar:hover { opacity: 1; }
.mh-deck-bar button { all: unset; cursor: pointer; padding: 6px 12px; border-radius: 999px; font-size: 18px; }
.mh-deck-bar button:hover { background: rgba(255, 255, 255, .15); }
.mh-deck-count { min-width: 64px; text-align: center; }
.mh-deck-notes {
  position: absolute; left: 16px; right: 16px; bottom: 66px; max-height: 30vh; overflow: auto; background: rgba(255, 253, 240, .96); color: #222;
  border-radius: 14px; padding: 14px 18px; font: 18px/1.5 system-ui, sans-serif; box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.mh-chart-empty { align-self: center; font-size: 44px; }
.mh-big-v.mh-big-text { font-size: calc(110px * var(--k)); max-width: 1500px; line-height: 1.15; }

/* hoạt hình do AI vẽ: khung sandbox tràn toàn trang */
.mh-custom { position: absolute; inset: 0; }
.mh-custom-frame { position: absolute; left: 0; top: 0; border: 0; background: transparent; pointer-events: none; }
.mh-custom-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 12px; color: var(--muted); font-size: 48px; }
.mh-custom-empty div:first-child { font-size: 160px; }
.mh-custom-empty div:nth-child(2) { font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 72px; }

/* nút điều khiển mô phỏng: vẽ đè lên dải đáy mà mô phỏng chừa trống */
.mh-sim-ctl { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; align-items: center; gap: 28px; max-width: 1760px; padding: 14px 30px; border-radius: 999px;
  background: color-mix(in srgb, var(--card) 90%, transparent); border: 2px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .15); color: var(--ink); font-size: 26px; white-space: nowrap; }
.mh-sim-ctl button { all: unset; cursor: pointer; flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; background: var(--accent); color: var(--on-accent, #fff); }
.mh-sim-ctl button.mh-sim-reset { background: transparent; color: var(--ink); border: 2px solid var(--line); box-sizing: border-box; }
.mh-sim-p { display: flex; flex-direction: column; gap: 4px; min-width: 260px; cursor: pointer; }
.mh-sim-p input { width: 100%; height: 30px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.mh-sim-ctl.mh-static { pointer-events: none; }

/* video */
.mh-video { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.mh-video-frame { position: relative; flex: 1; min-height: 0; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 28px; overflow: hidden; background: #000; box-shadow: var(--shadow); }
.mh-video-frame video, .mh-video-frame iframe, .mh-video-frame img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; }
.mh-video-frame img { object-fit: cover; }
.mh-video-frame .mh-img-empty { background: var(--card); }
.mh-video-play { position: absolute; left: 50%; top: 50%; width: 160px; height: 160px; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; padding-left: 14px; box-sizing: border-box; background: rgba(0, 0, 0, .55); color: #fff; font-size: 72px; }
.mh-video-link { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 28px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 28px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-video-cap { flex: none; max-width: 90%; font-size: calc(36px * var(--k)); line-height: 1.35; color: var(--muted); text-align: center; }

/* vân giấy: hoạ tiết tĩnh để các khung hình luôn tất định */
.mh-bg::after { content: ""; position: absolute; inset: 0; opacity: var(--grain, .06); mix-blend-mode: multiply; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.mh-theme-chalk, .mh-theme-science { --grain: .1; }
.mh-theme-chalk .mh-bg::after, .mh-theme-science .mh-bg::after { mix-blend-mode: overlay; }

/* bảng */
.mh-table { display: flex; align-items: safe center; justify-content: center; }
.mh-tgrid { display: grid; width: 100%; border-radius: 26px; overflow: hidden; background: var(--line); gap: 2px; border: 2px solid var(--line); box-shadow: var(--shadow); }
.mh-th { background: var(--accent); color: var(--on-accent, #fff); font-family: var(--font-head); font-weight: 800; font-size: calc(40px * var(--k)); padding: calc(20px * var(--k)) 26px; }
.mh-td { background: var(--card); font-size: calc(38px * var(--k)); line-height: 1.3; padding: calc(18px * var(--k)) 26px; }
.mh-theme-chalk .mh-td, .mh-theme-science .mh-td { background: var(--bg); }
.mh-td0 { font-weight: 700; }
.mh-td.mh-dim { opacity: .45 !important; }
.mh-td.mh-active { box-shadow: inset 0 0 0 3px var(--accent); }

/* đầu trang chạy + chân trang tiến độ: chỉ hiện ở giao diện yêu cầu */
.mh-kicker, .mh-foot { display: none; }
.mh-foot { position: absolute; left: 120px; right: 120px; bottom: 44px; align-items: center; gap: 28px; font-size: 22px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mh-foot-bar { flex: 1; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.mh-foot-bar i { display: block; height: 100%; background: var(--accent); }
.mh-kicker { flex: 0 0 100%; order: -1; align-items: center; gap: 18px; font-size: calc(24px * var(--k)); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink, var(--accent)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Sổ tay: sáng, kiểu biên tập, dùng đường kẻ mảnh thay cho khung ---------- */
.mh-theme-notebook {
  --bg: #fbfaf7; --ink: #191b24; --muted: #5e6272; --accent: #4338ca; --accent2: #c2410c; --accent3: #fde68a; --on-accent: #fff;
  --card: #ffffff; --line: #e6e3da; --shadow: none; --blob-o: 0; --grain: .03; --head-w: 800;
  --font-head: "Be Vietnam Pro", sans-serif; --font-body: "Be Vietnam Pro", sans-serif; --font-quote: "Lora", serif;
}
.mh-theme-notebook .mh-scene:not(.mh-L-title):not(.mh-L-ending):not(.mh-L-custom):not(.mh-L-sim) .mh-foot { display: flex; }
.mh-theme-notebook .mh-kicker { display: flex; }
.mh-theme-notebook .mh-kicker::before { content: ""; flex: none; width: 42px; height: 4px; border-radius: 2px; background: currentColor; }
.mh-theme-notebook .mh-kicker-n { display: none; }
.mh-theme-notebook .mh-icon, .mh-theme-notebook .mh-cover-icon { display: none; }
.mh-theme-notebook .mh-title { letter-spacing: -.025em; }
.mh-theme-notebook .mh-cover, .mh-theme-notebook .mh-end { align-items: flex-start; text-align: left; padding: 0 20px; }
.mh-theme-notebook .mh-cover-title { font-size: calc(132px * var(--k)); letter-spacing: -.03em; max-width: 100%; }
.mh-theme-notebook .mh-cover-title .mh-w:nth-last-child(-n+2) .mh-wi { background: linear-gradient(transparent 58%, var(--accent3) 58%, var(--accent3) 92%, transparent 92%); }
.mh-theme-notebook .mh-cover-bar { width: 120px; height: 8px; transform-origin: 0 50%; background: var(--accent); }
.mh-theme-notebook .mh-cover-sub { max-width: 75%; }
.mh-theme-notebook .mh-src { max-width: 75%; }
.mh-theme-notebook .mh-list { gap: 0; }
.mh-theme-notebook .mh-list.mh-two { column-gap: 72px; }
.mh-theme-notebook .mh-item { background: none; border: 0; border-top: 2px solid var(--line); border-radius: 0; box-shadow: none; padding: calc(26px * var(--k)) 0; gap: 40px; }
.mh-theme-notebook .mh-list:not(.mh-two) .mh-item:last-child { border-bottom: 2px solid var(--line); }
.mh-theme-notebook .mh-mark { width: auto; height: auto; background: none; font-size: 0; display: block; padding-top: .35em; }
.mh-theme-notebook .mh-mark::before { content: attr(data-n); font-size: calc(34px * var(--k)); color: var(--accent); font-variant-numeric: tabular-nums; }
.mh-theme-notebook .mh-small .mh-mark::before { font-size: calc(28px * var(--k)); }
.mh-theme-notebook .mh-item.mh-active { box-shadow: none; }
.mh-theme-notebook .mh-step, .mh-theme-notebook .mh-cmp-col, .mh-theme-notebook .mh-opt, .mh-theme-notebook .mh-fcard, .mh-theme-notebook .mh-tl-card, .mh-theme-notebook .mh-cnode { border-radius: 24px; }
.mh-theme-notebook .mh-step-n { width: calc(76px * var(--k)); height: calc(76px * var(--k)); border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: calc(36px * var(--k)); }
.mh-theme-notebook .mh-arrow { color: var(--line); }
.mh-theme-notebook .mh-active { box-shadow: 0 0 0 3px var(--accent); }
.mh-theme-notebook .mh-th { background: var(--ink); color: #fff; }
.mh-theme-notebook .mh-vs { background: var(--accent); color: #fff; }

/* ---------- Đêm xanh: tối, lưới chấm, làm nổi rõ mục đang đọc ---------- */
.mh-theme-midnight {
  --bg: #0b1020; --ink: #eef2ff; --muted: #a3aecb; --accent: #5eead4; --accent2: #fbbf24; --accent3: #818cf8; --on-accent: #062a27;
  --card: #121a2e; --line: #24304d; --shadow: none; --blob-o: .1; --grain: .08; --head-w: 800;
  --bg-img: radial-gradient(circle, #26314d 2px, transparent 2.5px) 0 0 / 60px 60px;
  --font-head: "Be Vietnam Pro", sans-serif; --font-body: "Be Vietnam Pro", sans-serif; --font-quote: "Lora", serif;
}
.mh-theme-midnight .mh-bg::after { mix-blend-mode: overlay; }
.mh-theme-midnight .mh-kicker { display: flex; gap: 0; }
.mh-theme-midnight .mh-kicker-n::after { content: "·"; margin: 0 .6em; }
.mh-theme-midnight .mh-icon, .mh-theme-midnight .mh-cover-icon { display: none; }
.mh-theme-midnight .mh-title { letter-spacing: -.025em; }
.mh-theme-midnight .mh-cover-title { letter-spacing: -.03em; }
.mh-theme-midnight .mh-item, .mh-theme-midnight .mh-step, .mh-theme-midnight .mh-cmp-col, .mh-theme-midnight .mh-opt, .mh-theme-midnight .mh-fcard, .mh-theme-midnight .mh-tl-card { border-color: #1e2a44; border-radius: 26px; }
.mh-theme-midnight .mh-mark { border-radius: 18px; background: color-mix(in srgb, var(--accent) 16%, var(--card)); color: var(--accent); }
.mh-theme-midnight .mh-active { background: color-mix(in srgb, var(--accent) 13%, var(--card)); border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: none; }
.mh-theme-midnight .mh-active .mh-mark { background: var(--accent); color: var(--on-accent); }
.mh-theme-midnight .mh-dim { opacity: .38 !important; }
.mh-theme-midnight .mh-td { background: var(--card); }
.mh-theme-midnight .mh-th { background: color-mix(in srgb, var(--accent) 22%, var(--card)); color: var(--accent); }
.mh-theme-midnight .mh-vs { background: var(--accent2); color: #1f1300; }

/* cảnh hình ảnh: kích thước, phía và cách lấp khung chọn theo từng cảnh (scene.look) */
.mh-img-small { grid-template-columns: 1fr 1.3fr; }
.mh-img-large { grid-template-columns: 2.2fr 1fr; }
.mh-img-right { direction: rtl; }
.mh-img-right > * { direction: ltr; }
.mh-img.mh-vert.mh-img-full { grid-template-columns: 1fr; grid-template-rows: 1fr auto; gap: 30px; }
.mh-img-full .mh-img-side { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 18px 30px; }
.mh-img-full .mh-img-cap { flex: 1 1 100%; }
.mh-img-full .mh-img-side .mh-item { flex: 1 1 0; }
.mh-fit-contain img { object-fit: contain; }
