:root {
  --navy-950: #031b3e;
  --navy-900: #052b63;
  --navy-800: #093f86;
  --blue-700: #1159c7;
  --blue-600: #1769e0;
  --blue-100: #dcecff;
  --blue-50: #f2f7fd;
  --slate-700: #41536d;
  --slate-500: #6f7f95;
  --slate-300: #cbd7e5;
  --slate-200: #dee7f1;
  --white: #fff;
  --green: #16825d;
  --amber: #b76b00;
  --shadow-sm: 0 6px 18px rgba(5, 43, 99, 0.08);
  --shadow-md: 0 16px 40px rgba(5, 43, 99, 0.12);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --shell: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--navy-950);
  background: var(--blue-50);
  font-family: "Noto Sans Myanmar", "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }

ruby {
  margin-inline: .025em;
  ruby-align: space-around;
  ruby-position: over;
}

rt {
  color: var(--blue-700);
  font-size: .52em;
  font-weight: 750;
  letter-spacing: .035em;
  line-height: 1;
  text-decoration: none;
}

.page-hero rt, .hero rt, .article-cover rt, .chapter-heading rt { color: #9fcbff; }

.furigana-loader { min-height: calc(100vh - 76px); display: grid; place-content: center; justify-items: center; gap: 13px; color: var(--slate-500); }
.furigana-loader span { width: 38px; height: 38px; border: 4px solid var(--blue-100); border-top-color: var(--blue-700); border-radius: 50%; animation: loader-spin .8s linear infinite; }
.furigana-loader p { margin: 0; font-size: 13px; font-weight: 700; }
@keyframes loader-spin { to { transform: rotate(360deg); } }

.skip-link {
  position: fixed;
  z-index: 999;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--white);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.shell { width: min(calc(100% - 32px), var(--shell)); margin-inline: auto; }

.app-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(9, 63, 134, 0.1);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--navy-900); }
.brand-mark { font-family: Georgia, "Times New Roman", serif; font-size: 31px; font-weight: 800; letter-spacing: -.08em; line-height: 1; }
.brand-name { padding-left: 10px; border-left: 1px solid currentColor; font-family: Georgia, "Times New Roman", serif; font-size: 11px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.header-tools { min-width: 0; display: flex; align-items: center; gap: 12px; }

.desktop-nav { display: flex; align-items: center; gap: 5px; }
.desktop-nav a {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 0 15px;
  border-radius: 10px;
  color: var(--slate-700);
  font-size: 14px;
  font-weight: 700;
  transition: color .2s ease, background .2s ease;
}
.desktop-nav a:hover { color: var(--navy-900); background: var(--blue-50); }
.desktop-nav a.active { color: var(--blue-700); background: var(--blue-100); }

.auth-slot { position: relative; min-width: 122px; min-height: 40px; display: flex; align-items: center; justify-content: flex-end; }
.auth-loading { color: var(--slate-500); font-size: 12px; font-weight: 750; }
.auth-account-button { min-height: 44px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 4px 9px 4px 5px; border: 1px solid var(--slate-200); border-radius: 999px; color: var(--navy-900); background: var(--white); cursor: pointer; box-shadow: var(--shadow-sm); }
.auth-avatar { width: 34px; height: 34px; display: block; border-radius: 50%; object-fit: cover; background: var(--blue-100); }
.auth-account-copy { min-width: 0; display: grid; text-align: left; }
.auth-account-copy small { color: var(--slate-500); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.auth-account-copy b { max-width: 118px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.auth-account-chevron { color: var(--slate-500); font-size: 10px; }
.auth-menu { position: absolute; z-index: 80; top: calc(100% + 9px); right: 0; width: min(290px, calc(100vw - 24px)); padding: 14px; border: 1px solid var(--slate-200); border-radius: 16px; background: var(--white); box-shadow: var(--shadow-md); }
.auth-menu[hidden] { display: none; }
.auth-menu-user { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 11px; padding-bottom: 12px; border-bottom: 1px solid var(--slate-200); }
.auth-menu-user .auth-avatar { width: 42px; height: 42px; }
.auth-menu-user strong, .auth-menu-user span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-menu-user strong { font-size: 14px; }
.auth-menu-user span { margin-top: 2px; color: var(--slate-500); font-size: 11px; }
.auth-logout { width: 100%; min-height: 40px; margin-top: 10px; border: 0; border-radius: 10px; color: #9b2c22; background: #fff1ef; cursor: pointer; font-size: 12px; font-weight: 800; }
.auth-error { max-width: 210px; color: #a6382d; font-size: 11px; font-weight: 700; text-align: right; }

#main-content { min-height: calc(100vh - 76px); padding-bottom: 50px; }

.hero { position: relative; overflow: hidden; padding: 38px 0 46px; background: var(--navy-900); color: var(--white); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 999px; pointer-events: none; }
.hero::before { width: 520px; height: 520px; right: -150px; top: -310px; border: 90px solid rgba(42, 126, 236, .18); }
.hero::after { width: 290px; height: 290px; left: -180px; bottom: -220px; border: 58px solid rgba(255, 255, 255, .07); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; align-items: center; gap: 64px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; color: #a9cfff; font-size: 13px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 10px; background: currentColor; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(34px, 4.3vw, 52px); line-height: 1.38; letter-spacing: -.035em; }
.hero h1 span { display: block; margin-top: 8px; color: #cfe3ff; font-size: clamp(18px, 2.1vw, 23px); font-weight: 600; letter-spacing: -.01em; line-height: 1.45; }
.hero-copy { max-width: 820px; margin: 12px 0 0; color: #c8daf2; font-size: 15px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--blue-600); color: var(--white); box-shadow: 0 10px 24px rgba(1, 24, 57, .25); }
.button-primary:hover { background: #2677e8; }
.button-light { color: var(--navy-900); background: var(--white); }
.button-outline { color: var(--navy-900); background: var(--white); border-color: var(--slate-300); }
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

.progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: var(--slate-200); }
.progress-track.light { background: rgba(255, 255, 255, .17); }
.progress-fill { height: 100%; border-radius: inherit; background: var(--blue-600); transition: width .35s ease; }
.progress-track.light .progress-fill { background: #64a5ff; }

.section { padding-top: 56px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-title { margin: 0; color: var(--navy-950); font-size: clamp(25px, 3vw, 36px); letter-spacing: -.025em; }
.section-subtitle { margin: 8px 0 0; color: var(--slate-500); line-height: 1.65; }
.text-link { flex: none; color: var(--blue-700); font-weight: 800; }

.stage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.stage-card { position: relative; overflow: hidden; min-height: 300px; display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.stage-card:hover { transform: translateY(-4px); border-color: #b7cef0; box-shadow: var(--shadow-md); }
.stage-card::after { content: attr(data-stage); position: absolute; right: -3px; bottom: -28px; color: #edf4fd; font-family: Georgia, serif; font-size: 180px; font-weight: 700; line-height: 1; pointer-events: none; }
.stage-top, .stage-footer { position: relative; z-index: 1; }
.stage-badge { display: inline-flex; width: fit-content; padding: 6px 10px; border-radius: 999px; color: var(--blue-700); background: var(--blue-100); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.stage-card h3 { margin: 20px 0 5px; font-size: 30px; letter-spacing: -.02em; }
.stage-description { margin: 0; color: var(--slate-500); font-weight: 600; }
.progress-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; color: var(--slate-700); font-size: 13px; font-weight: 700; }
.stage-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 34px; }
.stage-footer span { color: var(--slate-500); font-size: 13px; }
.circle-arrow { width: 44px; height: 44px; display: grid; flex: none; place-items: center; border-radius: 50%; color: var(--white); background: var(--navy-900); font-size: 20px; transition: transform .2s ease; }
.stage-card:hover .circle-arrow { transform: translateX(3px); }

.mode-grid, .practice-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mode-card, .practice-category-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; min-height: 150px; padding: 24px; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.mode-section { padding-top: 32px; }
.mode-section .section-head { margin-bottom: 18px; }
.mode-card { position: relative; overflow: hidden; min-height: 184px; gap: 26px; padding: 30px 32px; border-color: #b9cce7; background: linear-gradient(140deg, #fff 0%, #f4f8ff 100%); box-shadow: 0 14px 32px rgba(13, 54, 112, .11); }
.mode-card::after { content: ""; position: absolute; width: 150px; height: 150px; right: -78px; bottom: -92px; border: 28px solid rgba(24, 95, 190, .07); border-radius: 50%; pointer-events: none; }
.mode-card.practice { border-color: #b4cff4; background: linear-gradient(140deg, #fff 0%, #edf5ff 100%); }
.mode-card .mode-mark { width: 78px; height: 78px; border-radius: 22px; font-size: 31px; box-shadow: 0 10px 22px rgba(5, 38, 82, .18); }
.mode-card strong { margin-top: 3px; font-size: 30px; line-height: 1.55; }
.mode-card b { font-size: 14px; line-height: 1.75; }
.mode-card > i { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--navy-900); font-size: 23px; font-weight: 800; }
.mode-card:hover, .practice-category-card:hover { transform: translateY(-3px); border-color: #9ebee9; box-shadow: var(--shadow-md); }
.mode-mark, .category-index { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; color: var(--white); background: var(--navy-900); font-size: 25px; font-weight: 900; }
.mode-card.practice .mode-mark { background: var(--blue-600); }
.mode-card small, .practice-category-card small { display: block; color: var(--blue-700); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.mode-card strong, .practice-category-card strong { display: block; margin-top: 5px; font-size: 24px; line-height: 1.65; }
.mode-card b, .practice-category-card b { display: block; color: var(--slate-500); font-size: 13px; font-weight: 600; line-height: 1.7; }
.mode-card > i, .practice-category-card > i { color: var(--blue-700); font-size: 22px; font-style: normal; }
.practice-hero h1 span { display: block; margin-top: 8px; color: #cfe3ff; font-size: clamp(17px, 2.5vw, 23px); font-weight: 600; letter-spacing: 0; }
.practice-category-card { min-height: 190px; }
.practice-category-card em { display: inline-flex; margin-top: 14px; padding: 6px 10px; border-radius: 999px; color: var(--blue-700); background: var(--blue-100); font-size: 11px; font-style: normal; font-weight: 800; }
.practice-category-card.exam-mode { border-color: #b8cae3; background: linear-gradient(145deg, #fff 0%, #f3f8ff 100%); }
.practice-category-card.exam-mode .category-index { background: linear-gradient(145deg, var(--blue-600), var(--navy-900)); }
.practice-category-card.exam-mode em { color: #fff; background: var(--navy-900); }

/* Real exam simulation */
.exam-hero h1 span { display: block; margin-top: 8px; color: #cfe3ff; font-size: clamp(17px, 2.5vw, 23px); font-weight: 600; letter-spacing: 0; }
.exam-set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.exam-set-card { min-height: 150px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 20px; border: 1px solid var(--slate-200); border-radius: 20px; background: var(--white); box-shadow: var(--shadow-sm); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.exam-set-card:hover { transform: translateY(-3px); border-color: #94b5e5; box-shadow: var(--shadow-md); }
.exam-set-card.in-progress { border-color: #d6a33d; background: #fffbf2; }
.exam-set-card.passed { border-color: #75c6a5; }
.exam-set-card.failed { border-color: #eba197; }
.exam-set-number { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 17px; color: #fff; background: var(--navy-900); font-size: 18px; font-weight: 900; }
.exam-set-card.in-progress .exam-set-number { background: #b07809; }
.exam-set-card.passed .exam-set-number { background: #16825d; }
.exam-set-card.failed .exam-set-number { background: #bd493b; }
.exam-set-copy { min-width: 0; }
.exam-set-copy small { display: block; color: var(--blue-700); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.exam-set-copy strong { display: block; margin-top: 5px; font-size: 18px; line-height: 1.8; }
.exam-set-copy b { display: block; color: var(--slate-500); font-size: 12px; font-weight: 650; }
.exam-set-copy em { display: inline-block; margin-top: 11px; padding: 5px 9px; border-radius: 999px; color: var(--navy-900); background: var(--blue-100); font-size: 10px; font-style: normal; font-weight: 800; }
.exam-set-card > i { color: var(--blue-700); font-size: 20px; font-style: normal; }

.exam-instruction-page, .exam-result-page { min-height: calc(100vh - 76px); padding: 36px 0 60px; background: #f4f7f5; }
.exam-instruction-shell, .exam-result-shell { width: min(calc(100% - 28px), 900px); }
.exam-instruction-card, .exam-result-card { margin-top: 22px; padding: clamp(26px, 5vw, 50px); border: 1px solid var(--slate-200); border-radius: 30px; background: #fff; box-shadow: 0 18px 55px rgba(17,44,35,.09); }
.exam-instruction-card h1 { margin: 10px 0 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.55; }
.exam-instruction-card h1 span { display: block; color: var(--slate-500); font-size: 16px; font-weight: 650; }
.exam-rule-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 28px 0; }
.exam-rule-summary div { padding: 17px 10px; border-radius: 15px; background: var(--blue-50); text-align: center; }
.exam-rule-summary strong { display: block; color: var(--navy-900); font-size: 27px; }
.exam-rule-summary span { display: block; margin-top: 3px; color: var(--slate-500); font-size: 10px; font-weight: 800; }
.exam-rules { display: grid; gap: 0; margin: 0; padding: 0; border: 1px solid var(--slate-200); border-radius: 18px; list-style: none; }
.exam-rules li { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 17px 20px; }
.exam-rules li + li { border-top: 1px solid var(--slate-200); }
.exam-rules strong { color: var(--blue-700); font-size: 13px; }
.exam-rules span { color: #34443e; font-size: 14px; line-height: 1.75; }
.exam-start-notice { margin: 20px 0 0; padding: 12px 15px; border-radius: 12px; color: #765007; background: #fff5d9; font-size: 13px; font-weight: 700; }
.exam-instruction-actions, .exam-result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 23px; }
.exam-start { min-width: 240px; }

.exam-screen, .exam-review-page { min-height: calc(100dvh - 76px); padding: 10px 0 34px; background: #f1f5f3; }
.exam-shell { width: min(calc(100% - 24px), 1120px); margin-inline: auto; }
.exam-topbar { position: sticky; z-index: 40; top: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 0 -8px; padding: 8px; border-radius: 16px; background: rgba(241,245,243,.96); backdrop-filter: blur(12px); }
.exam-exit { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--slate-200); border-radius: 50%; color: var(--navy-900); background: #fff; font-size: 18px; font-weight: 900; }
.exam-title { min-width: 0; }
.exam-title small, .exam-review-topbar small { display: block; color: var(--slate-500); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.exam-title strong, .exam-review-topbar strong { display: block; overflow: hidden; font-size: 14px; line-height: 1.7; text-overflow: ellipsis; white-space: nowrap; }
.exam-live-stats { display: flex; align-items: center; gap: 8px; }
.exam-live-stats span, .exam-live-stats time, .exam-review-topbar > span { padding: 7px 10px; border-radius: 999px; color: var(--blue-700); background: var(--blue-100); font-size: 12px; font-weight: 900; }
.exam-live-stats time { min-width: 76px; color: #fff; background: var(--navy-900); text-align: center; font-variant-numeric: tabular-nums; }
.exam-live-stats time.urgent { background: #bd493b; }
.exam-progress { height: 5px; overflow: hidden; margin: 2px 0 10px; border-radius: 999px; background: #d9e2de; }
.exam-progress i { display: block; height: 100%; border-radius: inherit; background: var(--blue-600); transition: width .25s ease; }
.exam-question-card, .exam-review-card { max-height: calc(100dvh - 250px); overflow-y: auto; overscroll-behavior: contain; padding: clamp(18px, 3vw, 30px); border: 1px solid #dde5e1; border-radius: 22px; background: #fff; box-shadow: 0 10px 32px rgba(17,44,35,.065); }
.exam-question-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.exam-question-card.has-image .exam-question-layout, .exam-review-card .exam-question-layout:has(.exam-image-grid) { grid-template-columns: minmax(0, 1fr) minmax(230px, 320px); align-items: center; }
.exam-question-copy { min-width: 0; }
.exam-question-meta { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 11px; color: var(--slate-500); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.exam-question-meta span:first-child { color: var(--blue-700); }
.exam-japanese { margin: 0; padding-top: .25em; color: #24332e; font-size: clamp(19px, 2.2vw, 25px); font-weight: 540; line-height: 2; }
.exam-myanmar { margin: 0; color: #1e2b27; font-size: clamp(16px, 1.8vw, 20px); font-weight: 620; line-height: 1.75; }
.exam-divider { height: 1px; margin: 14px 0; background: var(--slate-200); }
.exam-image-grid { display: grid; gap: 8px; }
.exam-image-grid.multiple { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.exam-question-image { margin: 0; padding: 7px; border: 1px solid var(--slate-200); border-radius: 14px; background: #fbfcfc; }
.exam-question-image img { display: block; width: 100%; height: 240px; object-fit: contain; border-radius: 9px; }
.exam-answer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.exam-answer-button { min-height: 82px; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; align-items: center; justify-content: center; column-gap: 10px; padding: 10px 15px; border: 2px solid var(--slate-200); border-radius: 17px; color: #65706c; background: #fff; cursor: pointer; transition: transform .15s ease, border-color .15s ease, background .15s ease, color .15s ease; }
.exam-answer-button:hover { transform: translateY(-2px); border-color: #96b4e0; }
.exam-answer-button > span { grid-row: 1 / 3; font-size: 39px; line-height: 1; }
.exam-answer-button strong { align-self: end; font-size: 16px; }
.exam-answer-button small { align-self: start; font-size: 9px; font-weight: 800; }
.exam-answer-button.true.selected { color: #0a7451; border-color: #2fa277; background: #eaf8f2; box-shadow: 0 0 0 3px rgba(47,162,119,.12); }
.exam-answer-button.false.selected { color: #ad3f32; border-color: #d25d4f; background: #fff0ee; box-shadow: 0 0 0 3px rgba(210,93,79,.11); }
.exam-controls { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 10px; margin-top: 10px; }
.exam-control-button, .exam-navigator summary, .exam-submit-wide { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 15px; border: 1px solid var(--slate-200); border-radius: 13px; color: var(--navy-900); background: #fff; cursor: pointer; font-size: 12px; font-weight: 850; }
.exam-control-button.primary, .exam-control-button.submit { color: #fff; border-color: var(--blue-700); background: var(--blue-700); }
.exam-control-button.disabled { opacity: .38; pointer-events: none; }
.exam-navigator { position: relative; min-width: 0; }
.exam-navigator summary { list-style: none; }
.exam-navigator summary::-webkit-details-marker { display: none; }
.exam-navigator summary span { color: var(--blue-700); }
.exam-navigator-panel { position: absolute; z-index: 50; right: 0; bottom: 54px; left: 0; max-height: 330px; overflow-y: auto; padding: 14px; border: 1px solid var(--slate-200); border-radius: 16px; background: #fff; box-shadow: 0 15px 45px rgba(5,43,99,.18); }
.exam-navigator-legend { display: flex; gap: 14px; margin-bottom: 10px; color: var(--slate-500); font-size: 10px; font-weight: 750; }
.exam-navigator-legend span { display: flex; align-items: center; gap: 5px; }
.exam-navigator-legend i { width: 11px; height: 11px; border: 1px solid var(--slate-300); border-radius: 3px; background: #fff; }
.exam-navigator-legend i.answered { border-color: var(--blue-700); background: var(--blue-700); }
.exam-navigator-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.exam-navigator-grid a { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--slate-200); border-radius: 8px; color: var(--slate-500); background: #fff; font-size: 10px; font-weight: 850; }
.exam-navigator-grid a.answered { color: #fff; border-color: var(--blue-700); background: var(--blue-700); }
.exam-navigator-grid a.current { outline: 3px solid #f2bf4b; outline-offset: 1px; }
.exam-submit-wide { width: 100%; margin-top: 10px; color: #fff; border-color: var(--navy-900); background: var(--navy-900); }

.exam-hazard-head { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 22px; }
.exam-hazard-head h2 { margin: 0; padding-top: .2em; font-size: clamp(19px, 2vw, 24px); line-height: 1.9; }
.exam-hazard-head p { margin: 8px 0 0; color: var(--slate-500); line-height: 1.7; }
.exam-hazard-statements { display: grid; gap: 12px; margin-top: 20px; }
.exam-hazard-statement { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 16px; border: 1px solid var(--slate-200); border-radius: 16px; background: #fbfcfc; }
.statement-number { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--navy-900); font-weight: 900; }
.exam-hazard-statement p { margin: 0; }
.exam-hazard-statement p[lang="ja"] { padding-top: .2em; font-size: 16px; line-height: 2; }
.exam-hazard-statement p[lang="my"] { margin-top: 8px; color: #40514b; font-size: 14px; line-height: 1.75; }
.exam-hazard-statement .exam-answer-grid { max-width: 440px; margin-top: 12px; }
.exam-hazard-statement .exam-answer-button { min-height: 60px; }
.exam-hazard-statement .exam-answer-button > span { font-size: 30px; }

.exam-result-card { text-align: center; }
.exam-result-badge { width: fit-content; margin: 18px auto 0; padding: 10px 22px; border-radius: 999px; color: #fff; background: #16825d; font-size: 24px; font-weight: 900; }
.exam-result-card.failed .exam-result-badge { background: #bd493b; }
.exam-result-badge small { display: block; margin-top: 2px; font-size: 10px; }
.exam-score-ring { width: 190px; height: 190px; display: grid; place-items: center; margin: 22px auto; border-radius: 50%; background: conic-gradient(#16825d var(--score), #e5ece8 0); }
.exam-result-card.failed .exam-score-ring { background: conic-gradient(#bd493b var(--score), #e5ece8 0); }
.exam-score-ring::before { width: 150px; height: 150px; grid-area: 1/1; border-radius: 50%; background: #fff; content: ""; }
.exam-score-ring span { z-index: 1; grid-area: 1/1; }
.exam-score-ring strong { display: block; font-size: 48px; }
.exam-score-ring small { color: var(--slate-500); font-weight: 800; }
.exam-result-card h1 { margin: 0; font-size: 30px; }
.exam-result-card > p { color: var(--slate-500); }
.exam-result-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin-top: 24px; }
.exam-result-stats div { padding: 14px 8px; border-radius: 13px; background: var(--blue-50); }
.exam-result-stats strong { display: block; color: var(--navy-900); font-size: 24px; }
.exam-result-stats span { display: block; margin-top: 3px; color: var(--slate-500); font-size: 10px; line-height: 1.5; }
.exam-timeout-note { padding: 11px; border-radius: 11px; color: #9b3328 !important; background: #fff0ee; font-weight: 750; }
.exam-result-actions { justify-content: center; }

.exam-review-page { padding-top: 10px; }
.exam-review-topbar { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-bottom: 9px; }
.exam-review-topbar > div { min-width: 0; }
.exam-review-card { max-height: calc(100dvh - 195px); }
.exam-review-answer { display: grid; grid-template-columns: 44px 1fr 1fr; align-items: center; gap: 12px; margin-top: 20px; padding: 14px; border: 1px solid #d35f51; border-radius: 14px; color: #a63d31; background: #fff0ee; }
.exam-review-answer.correct { color: #0c7150; border-color: #2d9e74; background: #eaf8f2; }
.exam-review-answer > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #bd493b; font-size: 25px; font-weight: 900; }
.exam-review-answer.correct > span { background: #16825d; }
.exam-review-answer small { display: block; color: var(--slate-500); font-size: 9px; }
.exam-review-answer strong { display: block; margin-top: 3px; color: currentColor; font-size: 14px; }
.exam-review-controls { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; }

.practice-set-intro { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.practice-set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.practice-set-card { min-height: 132px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 17px; padding: 18px; border: 1px solid var(--slate-200); border-radius: var(--radius-md); background: var(--white); box-shadow: 0 5px 16px rgba(5,43,99,.045); transition: transform .2s ease, border-color .2s ease; }
.practice-set-card:hover { transform: translateY(-2px); border-color: #9ebee9; }
.practice-set-number { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--blue-700); background: var(--blue-100); font-weight: 900; }
.practice-set-copy { min-width: 0; }
.practice-set-copy small { display: block; color: var(--blue-700); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.practice-set-copy strong { display: block; overflow: hidden; margin-top: 4px; font-size: 15px; line-height: 2.05; text-overflow: ellipsis; white-space: nowrap; }
.practice-set-copy b { display: block; color: var(--slate-500); font-size: 11px; font-weight: 650; }
.practice-set-copy .progress-track { height: 5px; margin-top: 12px; }
.practice-set-card > i { color: var(--blue-700); font-style: normal; }

.practice-screen { min-height: calc(100vh - 76px); padding: 14px 0 56px; background: #f4f7f5; }
.practice-shell { width: min(calc(100% - 28px), 1060px); margin-inline: auto; }
.practice-topbar { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 11px; margin-bottom: 8px; }
.practice-back { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--slate-200); border-radius: 50%; color: var(--navy-900); background: var(--white); font-size: 18px; font-weight: 900; }
.practice-topbar div { min-width: 0; }
.practice-topbar small { display: block; color: var(--slate-500); font-size: 8px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.practice-topbar strong { display: block; overflow: hidden; margin-top: 1px; font-size: 13px; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }
.practice-counter { padding: 6px 10px; border-radius: 999px; color: var(--blue-700); background: var(--blue-100); font-size: 11px; font-weight: 900; }
.practice-progress { margin-bottom: 10px; }
.practice-progress .progress-track { height: 5px; background: #dbe3df; }

.question-card { max-height: min(520px, calc(100dvh - 270px)); overflow-y: auto; overscroll-behavior: contain; padding: 22px 26px; border: 1px solid #e0e5e2; border-radius: 20px; background: var(--white); box-shadow: 0 10px 28px rgba(17,44,35,.065); }
.question-card.has-image { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); align-items: center; gap: 22px; }
.question-copy { min-width: 0; }
.question-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; color: var(--slate-500); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.question-meta span:first-child { color: var(--blue-700); }
.question-japanese { margin: 0; padding-top: .22em; color: #26342f; font-size: clamp(18px, 2vw, 22px); font-weight: 500; line-height: 2; letter-spacing: .005em; }
.question-divider { height: 1px; margin: 12px 0; background: #e3e7e4; }
.question-myanmar { margin: 0; color: #1c2824; font-size: clamp(16px, 1.75vw, 20px); font-weight: 620; line-height: 1.65; }
.question-image-grid { display: grid; gap: 9px; margin-top: 14px; }
.question-card.has-image .question-image-grid { margin-top: 0; }
.question-image-grid.multiple { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.question-image { margin: 0; padding: 7px; border: 1px solid #e1e7e3; border-radius: 13px; background: #fafcfb; }
.question-image img { display: block; width: 100%; height: 210px; object-fit: contain; border-radius: 9px; }
.question-image figcaption { display: none; }

.answer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.answer-button { min-height: 88px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 18px; border: 2px solid transparent; border-radius: 18px; color: #5e6965; background: var(--white); cursor: pointer; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.answer-button:hover:not(:disabled) { transform: translateY(-2px); border-color: #99b7eb; box-shadow: var(--shadow-sm); }
.answer-button svg { width: 42px; height: 42px; flex: none; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; }
.answer-button span { display: grid; justify-items: start; gap: 1px; }
.answer-button strong { font-size: 18px; }
.answer-button small { font-size: 10px; font-weight: 800; }
.answer-button:disabled { cursor: default; opacity: .62; }
.answer-button.chosen { opacity: 1; border-color: var(--blue-600); }
.answer-button.correct-choice { opacity: 1; color: #0e7452; border-color: #38a97e; background: #eaf8f2; }
.answer-button.wrong-choice { opacity: 1; color: #ae3e31; border-color: #dc776b; background: #fff1ef; }
.answer-help { margin: 7px 0 0; color: var(--slate-500); font-size: 10px; text-align: center; }

.practice-feedback { margin-top: 18px; overflow: hidden; border: 2px solid; border-radius: 24px; background: var(--white); }
.practice-feedback.is-correct { border-color: #2d9e74; }
.practice-feedback.is-wrong { border-color: #d55a4b; }
.practice-feedback > header { display: flex; align-items: center; gap: 13px; padding: 18px 21px; }
.practice-feedback.is-correct > header { color: #0c7150; background: #eaf8f2; }
.practice-feedback.is-wrong > header { color: #a63d31; background: #fff0ee; }
.feedback-status-mark { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; color: var(--white); font-size: 25px; font-weight: 900; }
.practice-feedback.is-correct .feedback-status-mark { background: #16825d; }
.practice-feedback.is-wrong .feedback-status-mark { background: #bd493b; }
.practice-feedback header small { display: block; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.practice-feedback header strong { display: block; margin-top: 2px; font-size: 17px; }
.correct-answer { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; padding: 16px 21px; border-top: 1px solid #e6ebe8; }
.correct-answer b { margin-right: auto; color: var(--slate-500); font-size: 12px; }
.correct-symbol { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--blue-600); font-size: 20px; font-weight: 900; }
.feedback-explanation { display: grid; gap: 0; border-top: 1px solid #e6ebe8; }
.feedback-explanation > div { padding: 20px 21px; }
.feedback-explanation > div + div { border-top: 1px solid #dce6e1; background: #f5faf7; }
.feedback-explanation small { color: var(--blue-700); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.feedback-explanation p { margin: 8px 0 0; }
.feedback-explanation p[lang="ja"] { padding-top: .2em; font-size: 15px; font-weight: 520; line-height: 2.25; }
.feedback-explanation p[lang="my"] { color: #31443d; font-size: 15px; line-height: 1.9; }
.practice-next { width: calc(100% - 42px); margin: 0 21px 21px; }

.result-screen { display: grid; align-items: center; }
.result-card { padding: clamp(26px, 6vw, 48px); border-radius: 30px; background: var(--white); box-shadow: 0 18px 55px rgba(17,44,35,.1); text-align: center; }
.result-kicker { color: var(--blue-700); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.result-ring { width: 176px; height: 176px; display: grid; place-items: center; margin: 24px auto; border-radius: 50%; background: conic-gradient(var(--blue-600) var(--score), #e5ece8 0); }
.result-ring::before { content: ""; width: 140px; height: 140px; grid-area: 1/1; border-radius: 50%; background: var(--white); }
.result-ring span { z-index: 1; grid-area: 1/1; }
.result-ring strong { display: block; font-size: 38px; }
.result-ring small { color: var(--slate-500); font-weight: 800; }
.result-card h1 { margin: 0; font-size: 30px; }
.result-card > p { margin: 8px 0 0; color: var(--slate-500); }
.result-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 27px; }
.result-stats div { padding: 16px 10px; border-radius: 14px; background: var(--blue-50); }
.result-stats strong { display: block; font-size: 23px; }
.result-stats span { display: block; margin-top: 3px; color: var(--slate-500); font-size: 10px; }
.result-stats .correct strong { color: #16825d; }
.result-stats .wrong strong { color: #bd493b; }
.result-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 27px; }

.page-hero { padding: 44px 0 38px; color: var(--white); background: var(--navy-900); }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; color: #bcd7f8; font-size: 13px; font-weight: 700; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span[aria-hidden] { opacity: .55; }
.page-hero-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.page-hero h1 { margin: 0; padding-top: .18em; font-size: clamp(32px, 5vw, 48px); line-height: 1.5; letter-spacing: -.03em; }
.page-hero p { max-width: 640px; margin: 10px 0 0; color: #c8daf2; line-height: 1.7; }

.lesson-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.lesson-toolbar p { margin: 0; color: var(--slate-500); font-size: 14px; }

.lesson-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.lesson-card { min-height: 153px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 20px; border: 1px solid var(--slate-200); border-radius: var(--radius-md); background: var(--white); box-shadow: 0 4px 14px rgba(5, 43, 99, .05); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.lesson-card:hover { transform: translateY(-3px); border-color: #a9c5eb; box-shadow: var(--shadow-sm); }
.lesson-number { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; color: var(--blue-700); background: var(--blue-100); font-size: 19px; font-weight: 900; }
.lesson-index { color: var(--blue-700); font-size: 11px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.lesson-card h2 { margin: 7px 0 13px; padding-top: .12em; font-size: 17px; line-height: 1.9; }
.lesson-arrow { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--blue-700); background: var(--blue-50); font-size: 19px; }

.lesson-detail-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 30px; }
.lesson-detail-head h1 { max-width: 820px; line-height: 1.35; }
.lesson-detail-actions { display: flex; gap: 10px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: 26px; }
.content-stack { display: grid; gap: 16px; }
.content-block { min-height: 142px; padding: 24px; border: 1px solid var(--slate-200); border-radius: var(--radius-md); background: var(--white); box-shadow: 0 5px 16px rgba(5, 43, 99, .045); }
.content-block-header { display: flex; align-items: center; gap: 13px; }
.content-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--blue-700); background: var(--blue-100); font-weight: 900; }
.content-block h2 { margin: 0; font-size: 17px; }
.placeholder-line { height: 10px; margin-top: 22px; border-radius: 999px; background: #edf2f8; }
.placeholder-line.short { width: 57%; margin-top: 10px; }
.placeholder-note { margin: 18px 0 0; color: var(--slate-500); font-size: 13px; }
.detail-sidebar { position: sticky; top: 100px; display: grid; gap: 16px; }
.side-card { padding: 21px; border: 1px solid var(--slate-200); border-radius: var(--radius-md); background: var(--white); }
.side-card h2 { margin: 0 0 15px; font-size: 16px; }
.lesson-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.pager { min-height: 78px; display: flex; align-items: center; gap: 13px; padding: 14px 17px; border: 1px solid var(--slate-200); border-radius: 14px; background: var(--white); transition: border-color .2s ease; }
.pager:hover { border-color: var(--blue-600); }
.pager.next { justify-content: flex-end; text-align: right; }
.pager.disabled { pointer-events: none; opacity: .45; }
.pager small { display: block; color: var(--slate-500); }
.pager strong { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; }

/* Structured lesson reading view */
.detail-layout.has-content { grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; }
.detail-layout.markdown-reader-layout { display: block; }
.markdown-reader-layout .reading-column { width: 100%; max-width: 1040px; margin-inline: auto; }
.reading-column,
.lesson-article,
.lesson-chapter,
.learning-content-section,
.learning-heading > div,
.chapter-heading > div,
.bilingual-pair,
.subgroup { min-width: 0; max-width: 100%; }
.lesson-article { display: grid; gap: 22px; }
.article-cover {
  position: relative;
  overflow: hidden;
  padding: 42px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  box-shadow: var(--shadow-md);
}
.article-cover::after { content: var(--lesson-number, "01"); position: absolute; right: -5px; bottom: -50px; color: rgba(255,255,255,.07); font: 800 210px/1 Georgia, serif; }
.article-label, .source-chip { position: relative; z-index: 1; display: inline-flex; width: fit-content; }
.article-label { color: #a9cfff; font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.article-reading { position: relative; z-index: 1; margin: 29px 0 4px; color: #bcd7f8; font-size: 13px; letter-spacing: .14em; }
.article-cover h1 { position: relative; z-index: 1; margin: 0; padding-top: .18em; font-size: clamp(31px, 4.5vw, 46px); line-height: 1.5; letter-spacing: -.035em; overflow-wrap: anywhere; }
.article-my-title { position: relative; z-index: 1; margin: 10px 0 24px; color: #d8e8fb; font-size: 18px; font-weight: 700; }
.source-chip { padding: 7px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #cfe3ff; background: rgba(255,255,255,.08); font-size: 11px; font-weight: 700; }

.lesson-introduction, .chapter-lead { padding: 28px; border: 1px solid var(--slate-200); border-radius: var(--radius-md); background: var(--white); }
.intro-mark { display: inline-flex; margin-bottom: 18px; padding: 6px 10px; border-radius: 999px; color: var(--blue-700); background: var(--blue-100); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.lesson-chapter { display: grid; gap: 18px; margin-top: 14px; scroll-margin-top: 96px; }
.chapter-heading { display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: center; gap: 18px; padding: 25px 28px; border-radius: var(--radius-md); color: var(--white); background: var(--navy-900); }
.chapter-heading > span { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; color: var(--navy-900); background: var(--white); font-size: 30px; font-weight: 900; }
.chapter-heading p, .learning-heading p { margin: 0 0 3px; font-size: 11px; font-weight: 800; letter-spacing: .11em; opacity: .72; }
.chapter-heading h2 { margin: 0; padding-top: .14em; font-size: 25px; line-height: 1.75; }
.chapter-heading strong { display: block; margin-top: 5px; color: #bfd9fa; font-size: 14px; }
.chapter-lead { border-left: 5px solid var(--blue-600); }

.learning-content-section { padding: 30px; border: 1px solid var(--slate-200); border-radius: var(--radius-md); background: var(--white); box-shadow: 0 5px 16px rgba(5,43,99,.045); scroll-margin-top: 96px; }
.learning-heading { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 15px; padding-bottom: 18px; border-bottom: 1px solid var(--slate-200); }
.learning-number { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--white); background: var(--blue-700); font-size: 19px; font-weight: 900; }
.learning-heading p { color: var(--blue-700); }
.learning-heading h3 { margin: 0; padding-top: .12em; font-size: 21px; line-height: 1.8; }
.learning-heading strong { display: block; margin-top: 4px; color: var(--slate-500); font-size: 13px; }

.bilingual-pair { margin-top: 22px; overflow: hidden; border: 1px solid var(--slate-200); border-radius: 15px; }
.japanese-copy, .myanmar-copy { position: relative; padding: 22px 22px 19px; }
.japanese-copy { background: #fff; }
.myanmar-copy { border-top: 1px solid #cbdcf0; background: #f3f8ff; }
.japanese-copy p, .myanmar-copy p { margin: 0; }
.japanese-copy p { padding-top: .25em; color: #132743; font-size: 17px; font-weight: 520; line-height: 2.55; letter-spacing: .015em; }
.myanmar-copy p { color: #344b69; font-size: 15px; line-height: 1.95; }

.article-cover h1,
.chapter-heading h2,
.learning-heading h3,
.japanese-copy p,
.myanmar-copy p,
.points-block li,
.important-callout p,
.learning-note > p,
.subgroup,
.responsibility-card p {
  white-space: normal;
  overflow-wrap: anywhere;
}

.article-cover h1,
.chapter-heading h2,
.learning-heading h3,
.japanese-copy p,
.points-block li div,
.important-callout p[lang="ja"],
.learning-note > p[lang="ja"],
.responsibility-card p[lang="ja"] {
  line-break: strict;
  word-break: normal;
}

.points-block { margin-top: 22px; padding: 22px; border-radius: 15px; background: var(--blue-50); }
.points-block h4 { margin: 0 0 14px; font-size: 17px; }
.points-block h4 span { display: block; margin-top: 4px; color: var(--slate-500); font-size: 12px; }
.points-block ol { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: lesson-points; }
.points-block li { position: relative; padding: 15px 16px 14px 50px; border: 1px solid #d7e5f5; border-radius: 12px; background: var(--white); counter-increment: lesson-points; }
.points-block li::before { content: counter(lesson-points); position: absolute; top: 14px; left: 14px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--blue-700); font-size: 12px; font-weight: 900; }
.points-block li div { padding-top: .15em; font-size: 15px; font-weight: 700; line-height: 2.2; }
.points-block li p { margin: 5px 0 0; color: var(--slate-500); font-size: 13px; line-height: 1.75; }

.important-callout { display: grid; grid-template-columns: 42px 1fr; gap: 15px; margin-top: 22px; padding: 22px; border: 1px solid #f0c896; border-radius: 15px; background: #fff8ec; }
.callout-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--amber); font-size: 20px; font-weight: 900; }
.callout-label { color: #995900; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.important-callout p { margin: 9px 0 0; line-height: 1.85; }
.important-callout p[lang="ja"] { padding-top: .15em; font-size: 15px; font-weight: 700; line-height: 2.25; }
.important-callout p[lang="my"] { color: #674d2f; font-size: 13px; }

.notes-stack { display: grid; gap: 13px; margin-top: 22px; }
.learning-note { padding: 21px; border-left: 4px solid var(--blue-600); border-radius: 0 14px 14px 0; background: #edf5ff; }
.note-title span { display: block; color: var(--blue-700); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.note-title h4 { margin: 5px 0 0; font-size: 16px; }
.note-title strong { display: block; margin-top: 3px; color: var(--slate-500); font-size: 12px; }
.learning-note > p { margin: 13px 0 0; line-height: 1.85; }
.learning-note > p[lang="ja"] { padding-top: .15em; font-size: 14px; font-weight: 650; line-height: 2.2; }
.learning-note > p[lang="my"] { color: var(--slate-700); font-size: 13px; }

.lesson-diagram { margin: 24px 0 0; padding: 16px; border: 1px solid var(--slate-200); border-radius: 16px; background: var(--white); }
.lesson-diagram img { display: block; width: 100%; max-height: 540px; object-fit: contain; border-radius: 12px; background: #f8f2e7; }
.lesson-diagram figcaption { margin-top: 10px; color: var(--slate-500); font-size: 10px; text-align: center; }

.responsibility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-top: 22px; }
.responsibility-card { position: relative; overflow: hidden; padding: 20px; border: 1px solid var(--slate-200); border-radius: 14px; background: var(--blue-50); }
.responsibility-card > span { position: absolute; right: 9px; top: -8px; color: #dbe9f8; font-size: 52px; font-weight: 900; }
.responsibility-card h4 { position: relative; margin: 0; font-size: 15px; }
.responsibility-card strong { position: relative; display: block; margin-top: 4px; color: var(--blue-700); font-size: 11px; }
.responsibility-card p { position: relative; margin: 14px 0 0; line-height: 1.6; }
.responsibility-card p[lang="ja"] { padding-top: .12em; font-size: 13px; font-weight: 700; line-height: 2.1; }
.responsibility-card p[lang="my"] { color: var(--slate-500); font-size: 11px; }

.symptom-flow { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 22px; padding: 16px; border-radius: 15px; background: #fff4f1; }
.symptom-flow > div { padding: 15px; border-radius: 12px; background: var(--white); }
.symptom-flow > div > span { color: #d04d32; font-size: 12px; font-weight: 900; }
.symptom-flow strong { display: block; margin-top: 6px; font-size: 12px; line-height: 1.65; }
.symptom-flow p { margin: 6px 0 0; color: var(--slate-500); font-size: 10px; }
.symptom-flow > b, .symptom-flow .danger-result { display: none; }

.subgroup { margin-top: 22px; padding: 22px; border: 1px solid var(--slate-200); border-radius: 15px; background: #fbfdff; }
.subgroup > header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.subgroup > header h4 { margin: 0; font-size: 18px; }
.subgroup > header strong { color: var(--blue-700); font-size: 12px; }
.gear-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; margin-top: 18px; }
.gear-card { padding: 17px; border: 1px solid var(--slate-200); border-radius: 12px; background: var(--white); }
.gear-card h5 { margin: 0; font-size: 15px; }
.gear-card > strong { display: block; margin-top: 3px; color: var(--blue-700); font-size: 11px; }
.gear-card p { margin: 12px 0 0; line-height: 1.65; }
.gear-card p[lang="ja"] { padding-top: .12em; font-size: 13px; font-weight: 650; line-height: 2.05; }
.gear-card p[lang="my"] { color: var(--slate-500); font-size: 11px; }
.equipment-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
.equipment-list span { padding: 13px; border-radius: 10px; color: var(--blue-700); background: var(--blue-100); font-size: 13px; font-weight: 800; }

.understanding-check { overflow: hidden; border: 1px solid var(--slate-200); border-radius: var(--radius-md); background: var(--white); }
.understanding-check header { display: flex; align-items: center; gap: 14px; padding: 17px 20px; color: var(--white); background: var(--navy-950); }
.understanding-check header span { font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.understanding-check header h3 { margin: 0; color: #bcd7f8; font-size: 13px; }
.understanding-check ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: checks; }
.understanding-check li { display: grid; grid-template-columns: 1fr 42px; align-items: center; gap: 16px; padding: 17px 20px; border-top: 1px solid var(--slate-200); counter-increment: checks; }
.understanding-check li:first-child { border-top: 0; }
.understanding-check li p { margin: 0; line-height: 1.7; }
.understanding-check li p[lang="ja"] { padding-top: .12em; font-size: 13px; font-weight: 700; line-height: 2.1; }
.understanding-check li p[lang="my"] { margin-top: 4px; color: var(--slate-500); font-size: 11px; }
.check-answer { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--blue-700); font-size: 21px; font-weight: 900; }

.lesson-end { display: grid; grid-template-columns: 54px 1fr; gap: 17px; align-items: center; padding: 25px; border-radius: var(--radius-md); color: var(--white); background: linear-gradient(135deg, var(--blue-700), var(--navy-900)); }
.lesson-end > span { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; color: var(--blue-700); background: var(--white); font-size: 24px; font-weight: 900; }
.lesson-end strong { font-size: 17px; }
.lesson-end p { margin: 5px 0 0; color: #cfe3ff; font-size: 12px; line-height: 1.6; }

.lesson-toc h2 { margin-bottom: 12px; }
.lesson-toc ol { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.lesson-toc li button { width: 100%; display: grid; grid-template-columns: 27px 1fr; align-items: start; gap: 8px; padding: 8px; border: 0; border-radius: 8px; color: var(--slate-700); background: transparent; cursor: pointer; text-align: left; font-size: 11px; font-weight: 700; line-height: 1.45; }
.lesson-toc li button:hover { color: var(--blue-700); background: var(--blue-50); }
.lesson-toc li button span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; color: var(--blue-700); background: var(--blue-100); font-size: 10px; }
.lesson-toc li button b { padding-top: .15em; font: inherit; line-height: 1.9; }
.lesson-toc .button { width: 100%; min-height: 42px; margin-top: 15px; font-size: 12px; }
.mobile-lesson-toc { display: none; }
.page-break-avoid { break-inside: avoid; page-break-inside: avoid; }

/* Google Drive sourced lesson reader */
.markdown-lesson-article { gap: 18px; }
.lesson-source-banner { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border: 1px solid #cfe0f4; border-radius: 14px; color: #29496f; background: #f3f8ff; }
.lesson-source-banner span { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--green); font-weight: 900; }
.lesson-source-banner p { margin: 0; font-size: 13px; line-height: 1.75; }
.lesson-markdown-loading { min-height: 340px; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 30px; border: 1px solid var(--slate-200); border-radius: var(--radius-md); background: var(--white); }
.lesson-markdown-loading span { width: 34px; height: 34px; border: 4px solid var(--blue-100); border-top-color: var(--blue-700); border-radius: 50%; animation: spin .8s linear infinite; }
.lesson-markdown-loading p { margin: 0; color: var(--slate-500); font-size: 13px; }
.lesson-markdown-error { padding: 28px; border: 1px solid #f0b7b0; border-radius: 16px; color: #8e3027; background: #fff3f1; }
.lesson-markdown-error p { margin: 6px 0 0; }
.lesson-markdown { display: grid; gap: 14px; min-width: 0; padding: clamp(20px, 4vw, 38px); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 6px 20px rgba(5,43,99,.055); }
.lesson-markdown > * { min-width: 0; max-width: 100%; }
.markdown-heading { scroll-margin-top: 96px; overflow-wrap: anywhere; }
.markdown-heading-1, .markdown-heading-2 { margin: 27px 0 4px; padding: 14px 16px 12px; border-left: 4px solid var(--blue-700); border-radius: 0 11px 11px 0; color: var(--navy-950); background: linear-gradient(90deg, var(--blue-50), #fff); font-size: clamp(17px, 2vw, 22px); line-height: 1.8; }
.markdown-heading-3 { margin: 19px 0 2px; padding: 10px 13px; border-left: 3px solid #a9c5eb; border-radius: 0 9px 9px 0; color: #24466f; background: #f7faff; font-size: clamp(14px, 1.6vw, 17px); line-height: 1.9; }
.markdown-heading-4, .markdown-heading-5, .markdown-heading-6 { margin: 18px 0 0; color: var(--blue-700); font-size: 15px; line-height: 1.9; }
.markdown-heading.is-key-point { border-left-color: var(--amber); color: #704900; background: #fff8e8; }
.markdown-heading:first-child { margin-top: 0; }
.markdown-heading-translation { margin: -3px 4px 8px; padding: 0; color: var(--slate-600); font-size: 14px; font-weight: 650; line-height: 1.8; overflow-wrap: anywhere; }
.markdown-paragraph { margin: 0; padding: 4px 2px; color: var(--slate-700); font-size: 15px; line-height: 2; overflow-wrap: anywhere; }
.markdown-paragraph[lang="ja"] { padding-top: .3em; color: #172b47; line-height: 2.45; }
.markdown-bilingual-pair { overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid #d9e3ef; border-radius: 15px; background: var(--white); }
.markdown-japanese, .markdown-myanmar { padding: 19px 20px; overflow-wrap: anywhere; }
.markdown-japanese { padding-top: 23px; color: #132743; font-size: 16px; font-weight: 590; line-height: 2.45; }
.markdown-myanmar { border-left: 1px solid #cbdcf0; color: #344b69; background: #f3f8ff; font-size: 14px; line-height: 1.95; }
.markdown-bilingual-pair.is-note { border-color: #f0c896; }
.markdown-bilingual-pair.is-note .markdown-japanese { color: #5f430d; background: #fffdf6; }
.markdown-bilingual-pair.is-note .markdown-myanmar { border-left-color: #efd8ad; background: #fff8e8; }
.markdown-single-point { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; padding: 13px 15px; border-radius: 12px; color: var(--slate-700); background: #f8fafc; }
.markdown-single-point > span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--blue-700); font-weight: 900; }
.markdown-single-point p { margin: 0; padding-top: .08em; line-height: 1.9; overflow-wrap: anywhere; }
.markdown-single-point[lang="ja"] p { line-height: 2.25; }
.lesson-markdown hr { width: 100%; height: 1px; margin: 14px 0; border: 0; background: var(--slate-200); }
.generated-lesson-visual { overflow: hidden; margin: 10px 0 16px; border: 1px solid #cad9e9; border-radius: 18px; background: #f8fbff; box-shadow: 0 9px 24px rgba(5,43,99,.08); }
.generated-lesson-visual svg { display: block; width: 100%; height: auto; aspect-ratio: 12 / 5; }
.generated-lesson-visual figcaption { display: grid; gap: 4px; padding: 13px 16px 15px; border-top: 1px solid #dbe5ef; background: var(--white); }
.generated-lesson-visual figcaption span { color: var(--blue-700); font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.generated-lesson-visual figcaption strong { padding-top: .2em; color: var(--slate-700); font-size: 13px; line-height: 1.9; }
.generated-lesson-visual figcaption small { color: var(--slate-600); font-size: 13px; line-height: 1.8; }
.lesson-reference-image { width: min(100%, 720px); overflow: hidden; margin: 20px auto 28px; padding: 10px; border: 1px solid #cad9e9; border-radius: 18px; background: var(--white); box-shadow: 0 9px 24px rgba(5,43,99,.08); }
.lesson-reference-image img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; border-radius: 12px; background: #f8fbff; }
.lesson-reference-image figcaption { display: grid; gap: 4px; padding: 11px 7px 3px; text-align: center; }
.lesson-reference-image figcaption strong { color: var(--navy-900); font-size: 13px; line-height: 1.75; }
.lesson-reference-image figcaption small { color: var(--blue-700); font-size: 12px; font-weight: 750; line-height: 1.75; }
.lesson-reference-grid { width: min(100%, 900px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px auto 28px; align-items: start; }
.lesson-reference-grid .lesson-reference-image { width: 100%; height: 100%; margin: 0; }
.lesson-reference-grid .lesson-reference-image img { height: clamp(220px, 30vw, 340px); }
.lesson-reference-grid .lesson-reference-image:last-child:nth-child(odd) { width: min(100%, 720px); grid-column: 1 / -1; justify-self: center; }
.markdown-table-wrap { overflow-x: auto; margin: 8px 0 14px; border: 1px solid var(--slate-200); border-radius: 14px; }
.markdown-table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; }
.markdown-table-wrap th, .markdown-table-wrap td { padding: 13px 15px; border-right: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); text-align: left; line-height: 1.75; }
.markdown-table-wrap th { color: var(--white); background: var(--navy-900); font-size: 12px; }
.markdown-table-wrap td { font-size: 13px; }
.markdown-table-wrap tr:last-child td { border-bottom: 0; }
.markdown-table-wrap th:last-child, .markdown-table-wrap td:last-child { border-right: 0; }
.markdown-toc { max-height: calc(100vh - 118px); overflow-y: auto; scrollbar-width: thin; }
.markdown-toc li button b { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.toc-loading { margin: 0; color: var(--slate-500); font-size: 12px; line-height: 1.6; }

.empty-state { padding: 30px; border: 1px dashed var(--slate-300); border-radius: var(--radius-md); color: var(--slate-500); text-align: center; }
.lesson-empty-state { min-height: 280px; display: grid; place-content: center; justify-items: center; padding: 44px 24px; background: var(--white); }
.lesson-empty-state > span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; color: var(--blue-700); background: var(--blue-100); font-size: 30px; font-weight: 500; }
.lesson-empty-state h2 { margin: 16px 0 0; color: var(--navy-950); font-size: 23px; }
.lesson-empty-state p { max-width: 520px; margin: 8px 0 0; line-height: 1.8; }

.mobile-nav { display: none; }

@media (max-width: 820px) {
  .desktop-nav { display: none; }
  .header-tools { margin-left: auto; }
  .header-inner { min-height: 66px; }
  .brand-mark { font-size: 27px; }
  .brand-name { font-size: 9px; }
  #main-content { padding-bottom: 98px; }
  .hero { padding: 38px 0 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .stage-grid, .mode-grid, .practice-category-grid { grid-template-columns: 1fr; }
  .page-hero-row, .lesson-detail-head { display: grid; grid-template-columns: 1fr; align-items: start; }
  .lesson-grid { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; grid-row: auto; }
  .detail-layout.has-content { grid-template-columns: 1fr; }
  .lesson-toc { display: none; }
  .mobile-lesson-toc {
    position: sticky;
    z-index: 20;
    top: 76px;
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    padding: 10px 12px 11px;
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    background: rgba(255,255,255,.96);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
  }
  .mobile-lesson-toc > span { display: block; margin-bottom: 7px; color: var(--blue-700); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
  .mobile-lesson-toc > div { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; scroll-snap-type: x proximity; }
  .mobile-lesson-toc button { flex: 0 0 auto; max-width: min(250px, 76vw); display: grid; grid-template-columns: 25px minmax(0, 1fr); align-items: center; gap: 7px; padding: 7px 10px 7px 7px; border: 1px solid #cfe0f4; border-radius: 10px; color: var(--navy-900); background: var(--blue-50); cursor: pointer; scroll-snap-align: start; text-align: left; }
  .mobile-lesson-toc button b { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; color: var(--white); background: var(--blue-700); font-size: 10px; }
  .mobile-lesson-toc button em { min-width: 0; overflow: hidden; font-size: 11px; font-style: normal; font-weight: 750; line-height: 1.65; text-overflow: ellipsis; white-space: nowrap; }
  .markdown-bilingual-pair { grid-template-columns: 1fr; }
  .markdown-myanmar { border-top: 1px solid #cbdcf0; border-left: 0; }
  .markdown-bilingual-pair.is-note .markdown-myanmar { border-top-color: #efd8ad; border-left: 0; }
  .markdown-mobile-toc { margin-block: 2px; }
  .responsibility-grid { grid-template-columns: 1fr; }
  .mobile-nav { position: fixed; z-index: 60; right: 12px; bottom: 10px; left: 12px; min-height: 70px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 7px; border: 1px solid rgba(9, 63, 134, .13); border-radius: 20px; background: rgba(255, 255, 255, .96); box-shadow: 0 12px 35px rgba(3, 27, 62, .2); backdrop-filter: blur(15px); }
  .mobile-nav a { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 14px; color: var(--slate-500); font-size: 10px; font-weight: 800; white-space: nowrap; }
  .mobile-nav a svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-nav a.active { color: var(--blue-700); background: var(--blue-100); }
  body.practice-question-active .header-inner { min-height: 48px; }
  body.practice-question-active .brand-mark { font-size: 23px; }
  body.practice-question-active .brand-name { font-size: 8px; }
  body.practice-question-active #main-content { padding-bottom: 76px; }
  body.exam-active .mobile-nav { display: none; }
  body.exam-active #main-content { padding-bottom: 0; }
  .exam-set-grid { grid-template-columns: 1fr; }
  .exam-result-stats { grid-template-columns: repeat(3, 1fr); }
  .exam-question-card.has-image .exam-question-layout, .exam-review-card .exam-question-layout:has(.exam-image-grid) { grid-template-columns: minmax(0, 1fr) minmax(200px, 270px); }
}

@media (max-width: 560px) {
  .shell { width: min(calc(100% - 24px), var(--shell)); }
  .auth-slot { min-width: 150px; }
  .brand-name { display: none; }
  .auth-account-copy { display: none; }
  .auth-account-button { grid-template-columns: 34px auto; }
  .hero { padding: 28px 0 34px; }
  .hero h1 { font-size: 34px; }
  .hero h1 span { font-size: 19px; }
  .hero-copy { display: none; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .section { padding-top: 39px; }
  .mode-section { padding-top: 28px; }
  .mode-section .section-head { margin-bottom: 14px; }
  .mode-section .section-subtitle { font-size: 13px; line-height: 1.55; }
  .section-head { align-items: start; }
  .section-head .text-link { display: none; }
  .stage-card { min-height: 276px; padding: 23px; }
  .stage-card h3 { font-size: 27px; }
  .page-hero { padding: 30px 0; }
  .lesson-toolbar { align-items: start; flex-direction: column; }
  .lesson-card { min-height: 142px; grid-template-columns: auto 1fr auto; gap: 13px; padding: 16px 14px; }
  .lesson-number { width: 46px; height: 46px; border-radius: 13px; font-size: 16px; }
  .lesson-card h2 { font-size: 15px; }
  .mode-card, .practice-category-card { gap: 14px; min-height: 136px; padding: 18px 16px; }
  .mode-mark, .category-index { width: 52px; height: 52px; border-radius: 15px; font-size: 21px; }
  .mode-card strong, .practice-category-card strong { font-size: 19px; }
  .mode-card { min-height: 148px; }
  .mode-card .mode-mark { width: 58px; height: 58px; border-radius: 17px; font-size: 24px; }
  .mode-card b { font-size: 12px; }
  .mode-card > i { width: 38px; height: 38px; font-size: 19px; }
  .practice-set-intro { align-items: stretch; flex-direction: column; }
  .practice-set-intro .button { width: 100%; }
  .practice-set-grid { grid-template-columns: 1fr; }
  .practice-screen { padding: 8px 0 76px; }
  .practice-shell { width: min(calc(100% - 16px), 1060px); }
  .practice-topbar { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; margin-bottom: 6px; }
  .practice-back { width: 32px; height: 32px; font-size: 15px; }
  .practice-topbar strong { font-size: 11px; }
  .practice-counter { padding: 5px 8px; font-size: 10px; }
  .practice-progress { margin-bottom: 7px; }
  .practice-progress .progress-track { height: 4px; }
  .question-card, .question-card.has-image { display: block; max-height: calc(100dvh - 300px); padding: 14px 15px; border-radius: 16px; }
  .question-meta { margin-bottom: 7px; font-size: 7px; }
  .question-japanese { font-size: 17px; line-height: 1.85; }
  .question-divider { margin: 8px 0; }
  .question-myanmar { font-size: 15px; line-height: 1.55; }
  .question-image-grid, .question-card.has-image .question-image-grid { display: flex; gap: 7px; overflow-x: auto; margin-top: 9px; padding-bottom: 1px; scroll-snap-type: x mandatory; }
  .question-image-grid.multiple { grid-template-columns: none; }
  .question-image { min-width: 100%; padding: 5px; border-radius: 10px; scroll-snap-align: start; }
  .question-image img { height: 112px; border-radius: 7px; }
  .answer-grid { gap: 8px; margin-top: 7px; }
  .answer-button { min-height: 72px; gap: 7px; padding: 7px 9px; border-radius: 14px; }
  .answer-button svg { width: 32px; height: 32px; }
  .answer-button strong { font-size: 15px; }
  .answer-button small { font-size: 8px; }
  .answer-help { display: none; }
  .result-stats { grid-template-columns: 1fr 1fr; }
  .lesson-detail-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .content-block { padding: 20px; }
  .lesson-pagination { grid-template-columns: 1fr; }
  .progress-breakdown { grid-template-columns: 1fr 1fr 1fr; }
  .lesson-article { gap: 16px; }
  .lesson-chapter { gap: 14px; margin-top: 10px; }
  .article-cover { padding: 26px 18px; border-radius: 18px; }
  .article-cover::after { font-size: 145px; bottom: -30px; }
  .article-reading { margin-top: 22px; font-size: 11px; letter-spacing: .09em; }
  .article-cover h1 { font-size: 24px; line-height: 1.65; letter-spacing: -.02em; }
  .article-my-title { font-size: 15px; }
  .lesson-source-banner { align-items: flex-start; padding: 13px 14px; }
  .lesson-source-banner p { font-size: 12px; line-height: 1.7; }
  .lesson-markdown { gap: 11px; padding: 14px 12px; border-radius: 15px; }
  .markdown-heading-1, .markdown-heading-2 { margin: 20px 0 3px; padding: 11px 10px; border-left-width: 3px; border-radius: 0 9px 9px 0; font-size: 16px; line-height: 1.85; }
  .markdown-heading-3 { margin-top: 14px; padding: 8px 10px; font-size: 14px; line-height: 1.85; }
  .markdown-heading-translation { margin: -2px 2px 6px; font-size: 13px; font-weight: 600; line-height: 1.75; }
  .markdown-japanese, .markdown-myanmar { padding: 13px 12px; }
  .markdown-japanese { padding-top: 16px; font-size: 14px; line-height: 2.35; }
  .markdown-myanmar { font-size: 13px; line-height: 1.8; }
  .markdown-single-point { grid-template-columns: 20px minmax(0, 1fr); gap: 8px; padding: 11px; }
  .markdown-single-point > span { width: 20px; height: 20px; font-size: 11px; }
  .markdown-single-point p { font-size: 13px; line-height: 1.8; }
  .generated-lesson-visual { margin: 7px 0 12px; border-radius: 13px; }
  .generated-lesson-visual figcaption { padding: 10px 11px 12px; }
  .generated-lesson-visual figcaption strong { font-size: 11px; line-height: 1.75; }
  .lesson-reference-image { width: 100%; margin: 14px auto 20px; padding: 7px; border-radius: 14px; }
  .lesson-reference-image img { max-height: 390px; border-radius: 9px; }
  .lesson-reference-image figcaption { padding: 9px 4px 2px; }
  .lesson-reference-image figcaption strong { font-size: 11px; }
  .lesson-reference-image figcaption small { font-size: 11px; }
  .lesson-reference-grid { grid-template-columns: 1fr; gap: 12px; margin: 14px auto 20px; }
  .lesson-reference-grid .lesson-reference-image img { height: auto; max-height: 390px; }
  .lesson-reference-grid .lesson-reference-image:last-child:nth-child(odd) { width: 100%; grid-column: auto; }
  .lesson-introduction, .chapter-lead, .learning-content-section { padding: 16px; border-radius: 14px; }
  .chapter-heading { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 16px 14px; border-radius: 14px; }
  .chapter-heading > span { width: 42px; height: 42px; border-radius: 12px; font-size: 21px; }
  .chapter-heading h2 { font-size: 18px; line-height: 2; }
  .chapter-heading strong { font-size: 12px; line-height: 1.7; }
  .learning-heading { grid-template-columns: 1fr; align-items: start; gap: 10px; padding-bottom: 14px; }
  .learning-number { width: fit-content; min-width: 42px; height: 34px; padding-inline: 10px; border-radius: 10px; font-size: 15px; }
  .learning-heading h3 { font-size: 18px; line-height: 2.05; }
  .learning-heading strong { font-size: 12px; line-height: 1.7; }
  .bilingual-pair { margin-top: 16px; border-radius: 12px; }
  .japanese-copy, .myanmar-copy { padding: 14px; }
  .japanese-copy p { font-size: 15px; line-height: 2.4; }
  .myanmar-copy p { font-size: 14px; line-height: 1.85; }
  .points-block, .important-callout { margin-top: 16px; padding: 14px; border-radius: 12px; }
  .points-block li { padding: 13px 12px 12px 44px; }
  .points-block li::before { left: 12px; }
  .important-callout { grid-template-columns: 34px minmax(0, 1fr); gap: 11px; }
  .callout-icon { width: 32px; height: 32px; font-size: 17px; }
  .notes-stack { margin-top: 16px; }
  .learning-note { padding: 15px; }
  .gear-grid, .equipment-list { grid-template-columns: 1fr; }
  .symptom-flow { grid-template-columns: 1fr; }
  .subgroup { margin-top: 16px; padding: 14px; }
  .lesson-diagram { padding: 10px; }
  .practice-category-card.exam-mode em { font-size: 9px; }
  .exam-set-section { padding-top: 30px; }
  .exam-set-card { min-height: 132px; gap: 13px; padding: 16px 14px; border-radius: 16px; }
  .exam-set-number { width: 48px; height: 48px; border-radius: 13px; font-size: 15px; }
  .exam-set-copy strong { font-size: 15px; line-height: 1.8; }
  .exam-set-copy b { font-size: 10px; }
  .exam-set-copy em { margin-top: 8px; font-size: 9px; }
  .exam-instruction-page, .exam-result-page { min-height: 100dvh; padding: 18px 0 34px; }
  .exam-instruction-shell, .exam-result-shell { width: min(calc(100% - 16px), 900px); }
  .exam-instruction-card, .exam-result-card { margin-top: 12px; padding: 20px 15px; border-radius: 20px; }
  .exam-instruction-card h1 { font-size: 25px; }
  .exam-instruction-card h1 span { font-size: 13px; }
  .exam-rule-summary { grid-template-columns: repeat(2, 1fr); gap: 7px; margin: 20px 0; }
  .exam-rule-summary div { padding: 12px 8px; }
  .exam-rule-summary strong { font-size: 23px; }
  .exam-rules li { grid-template-columns: 1fr; gap: 5px; padding: 13px 14px; }
  .exam-rules span { font-size: 12px; line-height: 1.7; }
  .exam-instruction-actions, .exam-result-actions { display: grid; grid-template-columns: 1fr; }
  .exam-instruction-actions .button, .exam-result-actions .button, .exam-start { width: 100%; min-width: 0; }
  body.exam-run-active .app-header { display: none; }
  body.exam-run-active #main-content { padding-bottom: 0; }
  .exam-screen, .exam-review-page { min-height: 100dvh; padding: 5px 0 14px; }
  .exam-shell { width: min(calc(100% - 10px), 1120px); }
  .exam-topbar { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 7px; margin: 0; padding: 5px 2px; border-radius: 10px; }
  .exam-exit { width: 32px; height: 32px; font-size: 15px; }
  .exam-title small { font-size: 6px; }
  .exam-title strong { font-size: 10px; }
  .exam-live-stats { gap: 4px; }
  .exam-live-stats span, .exam-live-stats time { padding: 5px 7px; font-size: 9px; }
  .exam-live-stats time { min-width: 56px; }
  .exam-progress { height: 4px; margin: 1px 0 5px; }
  .exam-question-card, .exam-review-card { max-height: calc(100dvh - 170px); padding: 12px; border-radius: 15px; }
  .exam-question-card.has-image .exam-question-layout, .exam-review-card .exam-question-layout:has(.exam-image-grid) { display: flex; flex-direction: column; align-items: stretch; gap: 9px; }
  .exam-question-copy { display: flex; flex-direction: column; }
  .exam-question-meta { margin-bottom: 4px; font-size: 6px; }
  .exam-japanese { font-size: 16px; line-height: 1.8; }
  .exam-divider { margin: 7px 0; }
  .exam-myanmar { font-size: 14px; line-height: 1.55; }
  .exam-question-card.has-image .exam-image-grid { order: -1; }
  .exam-image-grid { display: flex; gap: 6px; overflow-x: auto; }
  .exam-question-image { min-width: 100%; padding: 4px; border-radius: 9px; }
  .exam-question-image img { height: 115px; border-radius: 6px; }
  .exam-answer-grid { gap: 7px; margin-top: 9px; }
  .exam-answer-button { min-height: 58px; column-gap: 6px; padding: 6px 8px; border-radius: 12px; }
  .exam-answer-button > span { font-size: 29px; }
  .exam-answer-button strong { font-size: 13px; }
  .exam-answer-button small { font-size: 7px; }
  .exam-controls { gap: 6px; margin-top: 6px; }
  .exam-control-button, .exam-navigator summary { min-height: 40px; padding: 7px 10px; border-radius: 11px; font-size: 10px; }
  .exam-control-button span { display: none; }
  .exam-navigator-panel { right: -68px; bottom: 46px; left: -68px; max-height: 300px; padding: 11px; }
  .exam-navigator-grid { grid-template-columns: repeat(8, 1fr); gap: 5px; }
  .exam-submit-wide { min-height: 42px; margin-top: 6px; font-size: 11px; }
  .exam-hazard-head { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 8px; }
  .exam-hazard-head h2 { font-size: 15px; line-height: 1.75; }
  .exam-hazard-head p { font-size: 12px; }
  .exam-hazard-statements { gap: 8px; margin-top: 9px; }
  .exam-hazard-statement { grid-template-columns: 28px minmax(0, 1fr); gap: 8px; padding: 10px 8px; border-radius: 12px; }
  .statement-number { width: 27px; height: 27px; border-radius: 8px; font-size: 11px; }
  .exam-hazard-statement p[lang="ja"] { font-size: 14px; line-height: 1.75; }
  .exam-hazard-statement p[lang="my"] { margin-top: 5px; font-size: 12px; line-height: 1.6; }
  .exam-hazard-statement .exam-answer-grid { margin-top: 7px; }
  .exam-hazard-statement .exam-answer-button { min-height: 48px; }
  .exam-hazard-statement .exam-answer-button > span { font-size: 25px; }
  .exam-score-ring { width: 160px; height: 160px; }
  .exam-score-ring::before { width: 126px; height: 126px; }
  .exam-score-ring strong { font-size: 40px; }
  .exam-result-stats { grid-template-columns: repeat(2, 1fr); }
  .exam-result-stats div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .exam-review-topbar { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 7px; margin-bottom: 5px; }
  .exam-review-topbar strong { font-size: 10px; }
  .exam-review-topbar > span { padding: 5px 7px; font-size: 9px; }
  .exam-review-card { max-height: calc(100dvh - 105px); }
  .exam-review-answer { grid-template-columns: 34px 1fr 1fr; gap: 7px; margin-top: 10px; padding: 9px; }
  .exam-review-answer > span { width: 32px; height: 32px; font-size: 20px; }
  .exam-review-answer small { font-size: 7px; }
  .exam-review-answer strong { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@page { size: A4; margin: 14mm 13mm 16mm; }

@media print {
  :root { --slate-200: #cbd5e1; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  html, body { width: 210mm; margin: 0; color: #111827; background: #fff; }
  body { font-family: "Noto Sans Myanmar", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif; }
  .app-header, .mobile-nav, .page-hero, .detail-sidebar, .lesson-pagination { display: none !important; }
  #main-content { min-height: 0; padding: 0; }
  .section, .lesson-reading-section { width: auto; margin: 0; padding: 0; }
  .detail-layout, .detail-layout.has-content { display: block; }
  .lesson-article { display: block; }
  .article-cover { min-height: 86mm; display: flex; flex-direction: column; justify-content: center; margin: 0 0 10mm; padding: 14mm; border-radius: 0; box-shadow: none; break-after: page; }
  .article-cover h1 { font-size: 36pt; }
  .article-cover::after { font-size: 150pt; }
  .lesson-introduction, .chapter-lead, .learning-content-section, .understanding-check, .lesson-end { margin: 0 0 7mm; box-shadow: none; }
  .lesson-chapter { display: block; margin: 0; }
  .chapter-heading { margin: 0 0 6mm; break-before: page; }
  .chapter-lead, .learning-content-section { margin-bottom: 6mm; }
  .learning-content-section { padding: 7mm; }
  .japanese-copy p { font-size: 10.5pt; line-height: 2.35; }
  .myanmar-copy p { font-size: 9.5pt; line-height: 1.8; }
  .lesson-diagram img { max-height: 120mm; }
  .responsibility-grid { grid-template-columns: repeat(3, 1fr); }
  .gear-grid { grid-template-columns: repeat(2, 1fr); }
  .lesson-end { break-before: page; }
  a { color: inherit; text-decoration: none; }
}
