:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --text: #1e293b;
  --text-muted: #526075;
  --border: #dde4ee;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);

  --primary: #2b4c8c;
  --primary-soft: #eef2ff;
  --primary-border: #b4c6ee;
  --primary-text: #ffffff;

  --amber-bg: #fffbeb;
  --amber-border: #d97706;
  --amber-title: #92400e;

  --success: #0d9488;
  --success-soft: #ccfbf1;
  --star: #d97706;
  --radius: 14px;
}

html[data-grade="10"] {
  --primary: #0d6e52;
  --primary-soft: #e9f7f2;
  --primary-border: #9bd6c3;
}

html[data-grade="11"] {
  --primary: #0b5e8a;
  --primary-soft: #e8f4fb;
  --primary-border: #9bcbe6;
}

html[data-grade="12"] {
  --primary: #2b4c8c;
  --primary-soft: #edf1fc;
  --primary-border: #aabce6;
}

html[data-theme="dark"] {
  --bg: #0f172a;
  --surface: #1e293b;
  --surface-alt: #162033;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #334155;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);

  --amber-bg: #292012;
  --amber-border: #f59e0b;
  --amber-title: #fcd34d;
}

html[data-theme="dark"][data-grade="10"] {
  --primary: #10b981;
  --primary-soft: rgba(16, 185, 129, 0.14);
  --primary-border: rgba(52, 211, 153, 0.4);
}
html[data-theme="dark"][data-grade="11"] {
  --primary: #38bdf8;
  --primary-soft: rgba(56, 189, 248, 0.14);
  --primary-border: rgba(56, 189, 248, 0.4);
}
html[data-theme="dark"][data-grade="12"] {
  --primary: #818cf8;
  --primary-soft: rgba(129, 140, 248, 0.16);
  --primary-border: rgba(129, 140, 248, 0.4);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.hidden { display: none !important; }

/* TOPBAR */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-group { display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { border-radius: 8px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-title { font-weight: 800; font-size: 15.5px; color: var(--primary); letter-spacing: -0.2px; }
.brand-sub { font-size: 11.5px; color: var(--text-muted); }

.grade-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-alt);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.grade-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13.5px;
  padding: 6px 12px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.16s ease;
}

.grade-tab .tab-count {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
  background: var(--border);
  color: var(--text);
}

.grade-tab.active {
  background: var(--primary);
  color: #ffffff;
}
html[data-theme="dark"] .grade-tab.active { color: #0f172a; }
.grade-tab.active .tab-count {
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
  min-width: 240px;
}

.search-wrap {
  position: relative;
  flex: 1;
  max-width: 310px;
}
.search-ico {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search-wrap input {
  width: 100%;
  padding: 7px 30px 7px 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s;
}
.search-wrap input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.search-wrap input:focus {
  border-color: var(--primary);
  background: var(--surface);
}
.clear-search {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  padding: 2px 5px;
}

.progress-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 99px;
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.icon-btn {
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.icon-btn:hover { border-color: var(--primary); }
.mobile-only { display: none; }

/* LAYOUT */
.app-shell {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  min-height: calc(100vh - 60px);
}

/* SIDEBAR */
.sidebar {
  border-right: 1px solid var(--border);
  background: var(--surface);
  height: calc(100vh - 60px);
  position: sticky;
  top: 60px;
  display: flex;
  flex-direction: column;
}

.sidebar-head {
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--border);
}

.sidebar-grade-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
}
.sidebar-grade-title { font-weight: 800; font-size: 14.5px; color: var(--primary); }
.sidebar-grade-progress { font-size: 12px; font-weight: 600; color: var(--text-muted); }

.filter-pills { display: flex; gap: 5px; }
.filter-pill {
  flex: 1;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 6px;
  border-radius: 8px;
}
.filter-pill.active {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary-border);
}

.sidebar-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 10px 24px;
}

.chapter-group { margin-bottom: 12px; }
.chapter-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  color: var(--text-muted);
  padding: 6px 8px 4px;
}

.lesson-nav-item {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  padding: 8px 9px;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 3px;
  transition: background 0.14s, border-color 0.14s;
}
.lesson-nav-item:hover { background: var(--surface-alt); }
.lesson-nav-item.active {
  background: var(--primary-soft);
  border-color: var(--primary-border);
}

.nav-code {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  flex-shrink: 0;
  margin-top: 2px;
}
.lesson-nav-item.active .nav-code {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
html[data-theme="dark"] .lesson-nav-item.active .nav-code { color: #0f172a; }

.nav-title { font-size: 13px; font-weight: 500; line-height: 1.38; flex: 1; }
.lesson-nav-item.active .nav-title { font-weight: 700; }

.nav-badges { display: flex; gap: 4px; flex-shrink: 0; margin-top: 2px; font-size: 12px; }
.badge-done { color: var(--success); font-weight: 800; }
.badge-star { color: var(--star); }

/* MAIN CONTENT */
.main-content {
  padding: 24px 28px 56px;
  max-width: 920px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
}

/* HOME / OVERVIEW */
.hero-card {
  background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 18px;
  padding: 24px 26px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
html[data-theme="dark"] .hero-card {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
  border: 1px solid var(--border);
}
.hero-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.6px; opacity: 0.88; text-transform: uppercase; }
.hero-title { margin: 6px 0 8px; font-size: 24px; font-weight: 800; line-height: 1.25; }
.hero-desc { margin: 0 0 16px; font-size: 14.5px; opacity: 0.92; max-width: 680px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-hero {
  border: none;
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 16px;
  border-radius: 10px;
}
.btn-hero-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 600;
  font-size: 13.5px;
  padding: 8px 14px;
  border-radius: 10px;
}

.grade-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}
.grade-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--card-accent, var(--primary));
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  text-align: left;
  transition: transform 0.14s ease;
}
.grade-card:hover { transform: translateY(-2px); }
.grade-card h3 { margin: 0 0 4px; font-size: 16px; font-weight: 800; color: var(--card-accent, var(--primary)); }
.grade-card p { margin: 0 0 10px; font-size: 12.8px; color: var(--text-muted); line-height: 1.45; }
.grade-bar {
  height: 7px;
  background: var(--surface-alt);
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.grade-bar > span { display: block; height: 100%; background: var(--card-accent, var(--primary)); }
.grade-bar-label { margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--text-muted); }

.overview-chapter { margin-bottom: 22px; }
.overview-chapter-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--primary-soft);
}
.lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}
.lesson-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.14s, transform 0.14s;
}
.lesson-card:hover { border-color: var(--primary); transform: translateY(-1px); }
.lesson-card-top { display: flex; justify-content: space-between; align-items: center; }
.lesson-card-code {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 2px 8px;
  border-radius: 6px;
}
.lesson-card-title { font-size: 14px; font-weight: 700; line-height: 1.38; color: var(--text); }
.lesson-card-meta { font-size: 12px; color: var(--text-muted); }

/* LESSON VIEW */
.lesson-banner {
  background: var(--primary);
  color: #ffffff;
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
html[data-theme="dark"] .lesson-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1.5px solid var(--primary);
}
.lesson-breadcrumb {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  opacity: 0.9;
  margin-bottom: 5px;
}
.lesson-title { margin: 0; font-size: 21px; font-weight: 800; line-height: 1.3; }

.study-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 16px;
}
.toolbar-left, .toolbar-right { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.tool-btn {
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.14s;
}
.tool-btn:hover { border-color: var(--primary); }
.tool-btn.active-done {
  background: var(--success-soft);
  color: #0f766e;
  border-color: #5eead4;
}
html[data-theme="dark"] .tool-btn.active-done {
  background: rgba(13, 148, 136, 0.22);
  color: #5eead4;
}
.tool-btn.active-star {
  background: var(--amber-bg);
  color: var(--amber-title);
  border-color: var(--amber-border);
}
.tool-btn.active-quiz {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
html[data-theme="dark"] .tool-btn.active-quiz { color: #0f172a; }

.quick-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.toc-chip {
  font-size: 12.2px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.toc-chip:hover { border-color: var(--primary); color: var(--primary); }

/* BOXES */
.callout-box {
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  border-left: 5px solid var(--primary);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.callout-box.amber {
  background: var(--amber-bg);
  border-color: var(--amber-border);
  border-left-color: var(--amber-border);
}
.callout-title {
  font-weight: 800;
  font-size: 13.5px;
  color: var(--primary);
  margin: 0 0 8px;
  letter-spacing: 0.2px;
}
.callout-box.amber .callout-title { color: var(--amber-title); }

.callout-list { margin: 0; padding-left: 18px; }
.callout-list li { margin-bottom: 5px; font-size: 14.2px; }
.callout-list li:last-child { margin-bottom: 0; }

/* SECTIONS */
.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}
.section-head {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--primary);
  padding: 14px 18px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 800;
  border-bottom: 1px solid var(--border);
}
.section-card.collapsed .section-head { border-bottom-color: transparent; }
.section-card.collapsed .section-body { display: none; }
.sec-chevron { font-size: 12px; color: var(--text-muted); transition: transform 0.16s; }
.section-card.collapsed .sec-chevron { transform: rotate(-90deg); }

.section-body { padding: 14px 18px 16px; }
.sub-h2 {
  margin: 12px 0 6px;
  font-size: 14.8px;
  font-weight: 700;
  color: var(--primary);
}
.sub-h2:first-child { margin-top: 2px; }
.body-p { margin: 0 0 8px; font-size: 14.6px; }

.bullet-list { margin: 0 0 10px; padding-left: 20px; }
.bullet-list li { margin-bottom: 5px; font-size: 14.6px; }
.bullet-list li.sub-item {
  list-style-type: circle;
  margin-left: 18px;
  font-size: 14.2px;
  color: var(--text);
}

/* TABLES */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 10px 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.bio-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.8px;
  min-width: 480px;
}
.bio-table th {
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  padding: 9px 11px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
html[data-theme="dark"] .bio-table th { color: #0f172a; }
.bio-table td {
  padding: 8px 11px;
  border: 1px solid var(--border);
  vertical-align: top;
}
.bio-table tbody tr:nth-child(even) td { background: var(--surface-alt); }
.bio-table tbody td:first-child { font-weight: 600; }

/* FIGURES */
.figure-card {
  margin: 14px 0 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  text-align: center;
}
.figure-btn {
  display: inline-block;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 8px;
  border-radius: 10px;
  max-width: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.figure-btn:hover {
  transform: scale(1.008);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
}
.figure-btn img {
  display: block;
  max-width: 100%;
  max-height: 460px;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
}
.figure-caption {
  margin: 8px auto 2px;
  max-width: 720px;
  font-size: 13px;
  font-style: italic;
  color: var(--text-muted);
}
.figure-hint {
  font-size: 11.5px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 2px;
}

/* QUIZ HIDE-KEYWORDS MODE */
.kw { font-weight: 700; color: inherit; }
body.quiz-mode .kw {
  background: var(--primary-soft);
  color: transparent;
  border-bottom: 2px dashed var(--primary);
  border-radius: 5px;
  padding: 0 4px;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
}
body.quiz-mode .kw.revealed {
  color: var(--primary);
  background: rgba(16, 185, 129, 0.12);
  border-bottom-style: solid;
}

/* PREV / NEXT NAV */
.lesson-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.pager-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pager-btn:hover:not(:disabled) { border-color: var(--primary); }
.pager-btn.next { text-align: right; }
.pager-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.pager-dir { font-size: 11.5px; font-weight: 700; color: var(--primary); text-transform: uppercase; }
.pager-name { font-size: 13.5px; font-weight: 700; color: var(--text); }

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.92);
  display: flex;
  flex-direction: column;
}
.lightbox-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  color: #f8fafc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  gap: 12px;
}
.lightbox-title { font-weight: 700; font-size: 14px; }
.lightbox-controls { display: flex; align-items: center; gap: 6px; }
.lightbox-controls button {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 8px;
  padding: 4px 10px;
  font-weight: 700;
}
.lightbox-controls .close-lb { background: #dc2626; border-color: #ef4444; }
.lightbox-stage {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox-stage img {
  background: #ffffff;
  padding: 10px;
  border-radius: 10px;
  max-width: 94%;
  max-height: 82vh;
  transform-origin: center center;
  transition: transform 0.15s ease;
}
.lightbox-caption {
  text-align: center;
  color: #cbd5e1;
  font-size: 13.5px;
  font-style: italic;
  padding: 8px 18px 14px;
}

.scroll-top-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 35;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}
html[data-theme="dark"] .scroll-top-btn { color: #0f172a; }

.search-results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.empty-state {
  text-align: center;
  padding: 36px 18px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .mobile-only { display: inline-flex; }
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100vh;
    width: 300px;
    max-width: 85vw;
    z-index: 60;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: 6px 0 24px rgba(0, 0, 0, 0.2);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(15, 23, 42, 0.45);
  }
  .main-content { padding: 16px 14px 48px; }
  .grade-summary-grid { grid-template-columns: 1fr; }
  .lesson-pager { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar-inner { padding: 8px 12px; gap: 8px; }
  .brand-group { flex: 1 1 auto; min-width: 0; }
  .brand-title { font-size: 14.5px; white-space: nowrap; }
  .brand-sub { display: none; }
  .progress-pill { display: none; }
  .topbar-actions { display: contents; }
  #themeToggleBtn { order: 2; flex-shrink: 0; }
  .search-wrap { order: 3; flex: 1 1 100%; max-width: 100%; }
  .grade-tabs { width: 100%; justify-content: space-between; order: 4; }
  .grade-tab { flex: 1; justify-content: center; padding: 6px 6px; font-size: 13px; }
  .lesson-title { font-size: 18px; }
  .section-body { padding: 12px 14px; }
}
