.education-course-learning {
  --learning-accent: #2e8b57;
  --learning-border: #d9dee5;
  --learning-soft: #f6f8fa;
  --learning-text: #303236;
  --learning-muted: #697586;
  --learning-divider: #e4e7eb;
  --learning-child-bg: #f7f9fb;
  --learning-selected-border: #9bb9d6;
  --learning-selected-bg: #e7f1fb;
  --learning-row-border: #dce3e9;
  --learning-row-hover: #edf5f0;
  width: 100%;
  margin: 20px auto 48px;
  color: var(--learning-text);
  font-size: 16px;
  line-height: 1.65;
}
.education-course-learning *, .education-course-learning *::before, .education-course-learning *::after { box-sizing: border-box; }
/* Dimensions and menu states follow the DailyBible course reader. */
.ai-profile-page.education-learning-page .profile-content,
.ai-profile-page.education-learning-page .learning-breadcrumb { width: min(1080px, calc(100% - 40px)); }
.ai-profile-page.education-learning-page .learning-breadcrumb.is-independent {
  max-width: 860px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dce3e9;
}
.ai-profile-page .profile-breadcrumb.is-independent { margin-bottom: 0; }
.ai-profile-page.education-learning-page .learning-breadcrumb.is-directory {
  padding-bottom: 14px;
  border-bottom: 1px solid #dce3e9;
}
.ai-profile-page.education-learning-page .learning-breadcrumb.is-info-page {
  padding-bottom: 14px;
  border-bottom: 1px solid #dce3e9;
}
.ai-profile-page.education-learning-page .learning-breadcrumb.is-upper-first-unit-lesson { margin-bottom: 0; }
body.io-black-mode.ai-profile-page.education-learning-page .learning-breadcrumb.is-independent { border-bottom-color: #3d444c; }
body.io-black-mode.ai-profile-page.education-learning-page .learning-breadcrumb.is-directory { border-bottom-color: #3d444c; }
body.io-black-mode.ai-profile-page.education-learning-page .learning-breadcrumb.is-info-page { border-bottom-color: #3d444c; }
.education-course-learning.is-independent { max-width: 860px; }
.education-course-learning.is-upper-first-unit-lesson { margin-top: 0; }
.education-course-learning.is-upper-first-unit-lesson .learning-workspace { padding-top: 20px; }
.education-course-learning.is-upper-first-unit-lesson .learning-content-title { margin: 0 0 12.5px; }
.education-course-learning.is-upper-first-unit-lesson .learning-guided-intro { margin-top: 12.5px; }
.education-course-learning.is-independent,
.hs-learning-app.is-independent { margin-top: 0; }
.education-course-learning.is-independent .learning-workspace,
.hs-learning-app.is-independent .learning-workspace { padding-top: 20px; }
.education-course-learning.is-independent .learning-content-title,
.hs-learning-app.is-independent .learning-content-title {
  margin: 0 0 12.5px !important;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  text-align: center;
}
.education-course-learning.is-independent .learning-guided-intro { margin-top: 12.5px; }
.learning-layout { display: flex; align-items: flex-start; gap: 80px; }
.is-independent .learning-layout { display: block; }
.learning-sidebar { flex: 0 0 280px; width: 280px; min-width: 0; }
.learning-sidebar[hidden], .learning-submenu[hidden] { display: none; }
.learning-sidebar-summary {
  --learning-summary-color: #7e57c2;
  width: 100%;
  margin-bottom: 0;
  border: 1px solid var(--learning-summary-color);
  background: #f7f3fc;
  color: var(--learning-summary-color);
}
.learning-sidebar-summary-title {
  display: flex; align-items: center; justify-content: center; min-height: 48px;
  margin: 0; padding: 10px 8px; font-size: 18px; font-weight: 700; line-height: 1.4;
  text-align: center; overflow-wrap: anywhere;
}
.learning-sidebar-summary-tags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--learning-summary-color); }
.learning-sidebar-summary-tags span { display: grid; place-items: center; min-height: 36px; padding: 6px 8px; font-size: 16px; font-weight: 600; line-height: 1.4; text-align: center; }
.learning-sidebar-summary-tags span + span { border-left: 1px solid var(--learning-summary-color); }
.learning-sidebar-ad {
  width: 280px; max-width: 100%; height: 100px; margin: 10px 0;
  overflow: hidden; border: 1px solid var(--learning-border); border-radius: 6px;
  background: var(--learning-soft);
}
.learning-sidebar-ad[data-learning-sidebar-ad="bottom"] { margin: 10px 0 0; }
.learning-sidebar-ad ins.adsbygoogle { display: block !important; width: 100% !important; max-width: 280px; height: 100px !important; }
.learning-sidebar-ad ins.adsbygoogle iframe { max-width: 100%; }
.learning-menu-section { margin: 0 0 10px; }
.learning-sidebar-page-nav { margin: 0 0 10px; }
.learning-menu-page-link { justify-content: flex-start; }
.learning-feature-button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 48px; padding: 10px 12px;
  border: 1px solid var(--learning-menu-color); border-radius: 6px;
  background: transparent; color: var(--learning-menu-color);
  font: inherit; font-size: 18px; font-weight: 800; line-height: 1.35;
  text-align: left; text-decoration: none; cursor: pointer;
}
.learning-menu-arrow { flex: 0 0 auto; color: var(--learning-menu-color); font-size: 16px; line-height: 1; }
.learning-menu-divider { width: calc(100% - 20px); height: 1px; margin: 8px 10px; background: var(--learning-divider); }
.learning-submenu-links { display: flex; flex-direction: column; gap: 7px; padding-left: 16px; }
.learning-submenu-link {
  display: flex; align-items: center; gap: 9px; width: 100%; min-height: 40px; padding: 7px 10px;
  border: 1px solid transparent; border-radius: 5px; background: var(--learning-child-bg);
  color: var(--learning-menu-color); font: inherit; font-size: 16px; font-weight: 600; line-height: 1.4;
  text-align: left; text-decoration: none;
}
.learning-submenu-link i { flex: 0 0 18px; font-size: 16px; line-height: 1; text-align: center; }
.learning-feature-button:hover,
.learning-feature-button:focus-visible,
.learning-submenu-link:hover,
.learning-submenu-link:focus-visible { color: var(--learning-menu-color); text-decoration: none; }
.learning-feature-button:focus-visible,
.learning-submenu-link:focus-visible { outline: 2px solid var(--learning-menu-color); outline-offset: 1px; }
.learning-feature-button[aria-current="page"],
.learning-submenu-link[aria-current="page"],
.learning-submenu-link:hover,
.learning-submenu-link:focus-visible { border-color: var(--learning-selected-border); background: var(--learning-selected-bg); }
.learning-workspace { flex: 1 1 auto; min-width: 0; min-height: 280px; font-size: 18px; line-height: 2; overflow-wrap: anywhere; }
.learning-info-section { margin: 0 0 28px; }
.learning-info-section h2 { margin: 0 0 8px; color: var(--learning-accent); font-size: 21px; line-height: 1.5; }
.learning-info-section p { margin: 0 0 12px; }
.learning-content-title { margin: 0 0 22px; color: inherit; text-align: center; font-size: 28px; line-height: 1.35; }
.is-course-introduction .learning-content-title { margin-bottom: 15px; }
.learning-info-intro + .learning-info-intro { margin-top: 16px; }
.learning-content-title:has(+ .learning-directory) { margin-bottom: 10px; }
.learning-content-title:focus { outline: none; }
.learning-workspace h2 { margin: 1.2em 0 .5em; font-size: 21px; }
.learning-workspace h3 { margin: 1.2em 0 .5em; font-size: 19px; }
.learning-directory { margin: 0; padding: 0; list-style: none; }
.learning-directory > li { border-top: 1px solid var(--learning-row-border); }
.learning-directory > li:last-child { border-bottom: 1px solid var(--learning-row-border); }
.learning-directory-link {
  display: flex; align-items: baseline; gap: 12px; width: 100%; padding: 8px 16px;
  color: var(--learning-row-color); font-weight: 700; text-decoration: none;
}
.learning-directory-link:hover, .learning-directory-link:focus-visible {
  background: var(--learning-row-hover); color: var(--learning-row-color); text-decoration: none;
}
.learning-directory-link:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.learning-directory-toggle { align-items: center; cursor: pointer; list-style: none; }
.learning-directory-toggle::-webkit-details-marker { display: none; }
.learning-directory-chevron { margin-left: auto; font-size: 15px; transition: transform .18s ease; }
.learning-directory-accordion[open] > .learning-directory-toggle .learning-directory-chevron { transform: rotate(180deg); }
.learning-directory-lessons { margin: 0; padding: 0 16px 10px 52px; list-style: none; }
.learning-directory-lessons > li { border-top: 1px solid var(--learning-divider); }
.learning-directory-lesson-link {
  display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 7px 12px;
  border-radius: 5px; color: var(--learning-row-color); font-size: 17px; font-weight: 650; line-height: 1.45; text-decoration: none;
}
.learning-directory-lesson-link i { flex: 0 0 18px; text-align: center; }
.learning-directory-lesson-link:hover, .learning-directory-lesson-link:focus-visible {
  background: var(--learning-row-hover); color: var(--learning-row-color); text-decoration: none;
}
.learning-directory-lesson-link:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.learning-unit-separator { margin-inline: 3px; font-size: calc(1em + 3px); font-weight: 800; line-height: 0; }
.learning-panel-card { padding: clamp(16px, 3vw, 26px); border: 1px solid var(--learning-border); border-radius: 9px; background: var(--learning-card-bg, #fff); }
.learning-lesson-meta { margin: -5px 0 18px; color: var(--learning-muted); font-size: 14px; }
.learning-lesson-card p { margin: 0 0 18px; }
.learning-guided-lesson {
  --guided-ink: #21556f;
  --guided-blue: #e8f2f8;
  --guided-green: #e9f4ed;
}
.education-course-learning[data-manifest-id="primary-math-grade-1"],
.education-course-learning[data-manifest-id^="primary-science-grade-"],
.education-course-learning.learning-structured-source {
  --learning-accent: #2874a6;
  --learning-selected-bg: #eaf2f8;
  --learning-row-hover: #edf4fa;
}
.education-course-learning[data-manifest-id^="primary-morality-grade-"] {
  --learning-accent: #7e57c2;
  --learning-selected-bg: #f1ecfa;
  --learning-row-hover: #f5f1fb;
}
.education-course-learning[data-manifest-id="primary-english-grade-1"] {
  --learning-accent: #d64545;
  --learning-selected-bg: #fbefee;
  --learning-row-hover: #fcf2f1;
}
.education-course-learning[data-manifest-id="primary-english-grade-1"] .learning-sidebar-summary {
  --learning-summary-color: #d64545;
  background: #fdf4f3;
}
.education-course-learning[data-manifest-id="primary-english-grade-1"] .learning-math-hero-title {
  margin: 0 0 16px !important;
  font-size: clamp(25px, 4vw, 36px);
}
.education-course-learning[data-manifest-id="primary-english-grade-1"] .learning-math-hero-kicker {
  margin: 0 0 12px;
  letter-spacing: .08em;
}
.education-course-learning[data-manifest-id="primary-english-grade-1"] .learning-math-hero-context {
  margin: 20px 0 0;
}
.education-course-learning[data-manifest-id="primary-english-grade-2"] {
  --learning-accent: #2e8b57;
  --learning-selected-bg: #edf5f0;
  --learning-row-hover: #eff7f2;
}
.education-course-learning[data-manifest-id="primary-english-grade-2"] .learning-sidebar-summary {
  --learning-summary-color: #2e8b57;
  background: #f0f7f2;
}
.education-course-learning[data-manifest-id="primary-english-grade-2"] .learning-math-hero-title {
  margin: 0 0 16px !important;
  font-size: clamp(25px, 4vw, 36px);
}
.education-course-learning[data-manifest-id="primary-english-grade-2"] .learning-math-hero-kicker {
  margin: 0 0 12px;
  letter-spacing: .08em;
}
.education-course-learning[data-manifest-id="primary-english-grade-2"] .learning-math-hero-context {
  margin: 20px 0 0;
}
.education-course-learning[data-manifest-id="primary-english-grade-3"] {
  --learning-accent: #2874a6;
  --learning-selected-bg: #eaf2f8;
  --learning-row-hover: #edf4fa;
}
.education-course-learning[data-manifest-id="primary-english-grade-3"] .learning-sidebar-summary {
  --learning-summary-color: #2874a6;
  background: #f0f6fa;
}
.education-course-learning[data-manifest-id="primary-english-grade-3"] .learning-math-hero-title {
  margin: 0 0 16px !important;
  font-size: clamp(25px, 4vw, 36px);
}
.education-course-learning[data-manifest-id="primary-english-grade-3"] .learning-math-hero-kicker {
  margin: 0 0 12px;
  letter-spacing: .08em;
}
.education-course-learning[data-manifest-id="primary-english-grade-3"] .learning-math-hero-context {
  margin: 20px 0 0;
}
.education-course-learning[data-manifest-id="primary-english-grade-4"] {
  --learning-accent: #a57800;
  --learning-selected-bg: #faf4e7;
  --learning-row-hover: #fcf7ed;
}
.education-course-learning[data-manifest-id="primary-english-grade-4"] .learning-sidebar-summary {
  --learning-summary-color: #a57800;
  background: #fbf6ea;
}
.education-course-learning[data-manifest-id="primary-english-grade-4"] .learning-math-hero-title {
  margin: 0 0 16px !important;
  font-size: clamp(25px, 4vw, 36px);
}
.education-course-learning[data-manifest-id="primary-english-grade-4"] .learning-math-hero-kicker {
  margin: 0 0 12px;
  letter-spacing: .08em;
}
.education-course-learning[data-manifest-id="primary-english-grade-4"] .learning-math-hero-context {
  margin: 20px 0 0;
}
.education-course-learning[data-manifest-id="primary-english-grade-5"] {
  --learning-accent: #008795;
  --learning-selected-bg: #e9f5f6;
  --learning-row-hover: #eff8f8;
}
.education-course-learning[data-manifest-id="primary-english-grade-5"] .learning-sidebar-summary {
  --learning-summary-color: #008795;
  background: #edf7f7;
}
.education-course-learning[data-manifest-id="primary-english-grade-5"] .learning-math-hero-title {
  margin: 0 0 16px !important;
  font-size: clamp(25px, 4vw, 36px);
}
.education-course-learning[data-manifest-id="primary-english-grade-5"] .learning-math-hero-kicker {
  margin: 0 0 12px;
  letter-spacing: .08em;
}
.education-course-learning[data-manifest-id="primary-english-grade-5"] .learning-math-hero-context {
  margin: 20px 0 0;
}
.education-course-learning[data-manifest-id="primary-english-grade-6"] {
  --learning-accent: #7e57c2;
  --learning-selected-bg: #f2eef8;
  --learning-row-hover: #f5f1fa;
}
.education-course-learning[data-manifest-id="primary-english-grade-6"] .learning-sidebar-summary {
  --learning-summary-color: #7e57c2;
  background: #f5f1fa;
}
.education-course-learning[data-manifest-id="primary-english-grade-6"] .learning-math-hero-title {
  margin: 0 0 16px !important;
  font-size: clamp(25px, 4vw, 36px);
}
.education-course-learning[data-manifest-id="primary-english-grade-6"] .learning-math-hero-kicker {
  margin: 0 0 12px;
  letter-spacing: .08em;
}
.education-course-learning[data-manifest-id="primary-english-grade-6"] .learning-math-hero-context {
  margin: 20px 0 0;
}
.education-course-learning[data-manifest-id="primary-math-grade-2"] {
  --learning-accent: #2e8b57;
  --learning-selected-bg: #edf5f0;
  --learning-row-hover: #eff7f2;
}
.education-course-learning[data-manifest-id="primary-math-grade-3"] {
  --learning-accent: #7e57c2;
  --learning-selected-bg: #f2eef8;
  --learning-row-hover: #f5f1fa;
}
.education-course-learning[data-manifest-id="primary-math-grade-4"] {
  --learning-accent: #b87519;
  --learning-selected-bg: #fbf3e8;
  --learning-row-hover: #fcf6ed;
}
.education-course-learning[data-manifest-id="primary-math-grade-5"] {
  --learning-accent: #008795;
  --learning-selected-bg: #eaf5f6;
  --learning-row-hover: #eff8f8;
}
.education-course-learning[data-manifest-id="primary-math-grade-1"].is-independent .learning-content-title,
.education-course-learning.learning-structured-source.is-independent .learning-content-title,
.education-course-learning:is([data-manifest-id^="primary-science-grade-"], [data-manifest-id^="primary-morality-grade-"]).is-independent .learning-content-title {
  margin: 5px 0 25px !important;
}
.education-course-learning[data-manifest-id="primary-math-grade-2"].is-independent .learning-content-title {
  margin: 5px 0 25px !important;
}
.education-course-learning[data-manifest-id="primary-math-grade-3"].is-independent .learning-content-title {
  margin: 5px 0 25px !important;
}
.education-course-learning[data-manifest-id="primary-math-grade-4"].is-independent .learning-content-title {
  margin: 5px 0 25px !important;
}
.education-course-learning[data-manifest-id="primary-math-grade-5"].is-independent .learning-content-title {
  margin: 5px 0 25px !important;
}
.education-course-learning[data-manifest-id="primary-math-grade-1"] .learning-sidebar-summary,
.education-course-learning.learning-structured-source .learning-sidebar-summary,
.education-course-learning[data-manifest-id^="primary-science-grade-"] .learning-sidebar-summary {
  --learning-summary-color: #2874a6;
  background: #f2f7fb;
}
.education-course-learning[data-manifest-id="primary-math-grade-2"] .learning-sidebar-summary {
  --learning-summary-color: #2e8b57;
  background: #f2f8f4;
}
.education-course-learning[data-manifest-id="primary-math-grade-3"] .learning-sidebar-summary {
  --learning-summary-color: #7e57c2;
  background: #f5f2fa;
}
.education-course-learning[data-manifest-id="primary-math-grade-4"] .learning-sidebar-summary {
  --learning-summary-color: #a86512;
  background: #fbf4ea;
}
.education-course-learning[data-manifest-id="primary-math-grade-5"] .learning-sidebar-summary {
  --learning-summary-color: #008795;
  background: #edf7f7;
}
.learning-math-hero {
  --math-hero-hue: 210;
  --math-hero-hue-two: 286;
  --math-hero-hue-three: 4;
  --math-hero-accent: hsl(var(--math-hero-hue-two) 42% 39%);
  --math-hero-ring: hsl(var(--math-hero-hue-three) 38% 52% / 28%);
  --math-hero-ring-shadow-one: hsl(var(--math-hero-hue) 44% 55% / 12%);
  --math-hero-ring-shadow-two: hsl(var(--math-hero-hue-two) 48% 58% / 10%);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  margin: 0 0 24px;
  padding: clamp(24px, 5vw, 42px);
  border-radius: 0;
  background:
    radial-gradient(ellipse at 92% 92%, hsl(var(--math-hero-hue-two) 58% 70% / 28%), transparent 34%),
    radial-gradient(ellipse at 72% 4%, hsl(var(--math-hero-hue-three) 55% 73% / 27%), transparent 38%),
    radial-gradient(ellipse at 12% 14%, hsl(var(--math-hero-hue) 52% 73% / 30%), transparent 34%),
    linear-gradient(112deg,
      hsl(var(--math-hero-hue) 50% 91%) 0%,
      hsl(var(--math-hero-hue-two) 48% 92%) 31%,
      hsl(var(--math-hero-hue-three) 42% 93%) 58%,
      hsl(var(--math-hero-hue) 43% 92%) 82%,
      hsl(var(--math-hero-hue-two) 47% 91%) 100%);
  color: #293d49;
}
.learning-math-hero::after {
  position: absolute;
  z-index: -1;
  right: -28px;
  bottom: -94px;
  width: 260px;
  height: 260px;
  border: 1px solid var(--math-hero-ring);
  border-radius: 50%;
  box-shadow: 0 0 0 24px var(--math-hero-ring-shadow-one), 0 0 0 50px var(--math-hero-ring-shadow-two);
  content: "";
  pointer-events: none;
}
.learning-math-hero > * { position: relative; z-index: 1; }
.learning-math-hero-kicker {
  margin: 0 0 12px;
  color: var(--math-hero-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 2;
}
.learning-math-hero-title {
  max-width: 780px;
  margin: 0 0 16px;
  color: #263b48;
  font-size: clamp(25px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.35;
  text-wrap: pretty;
}
.education-course-learning[data-manifest-id="primary-math-grade-1"] .learning-math-hero-title,
.education-course-learning.learning-structured-source .learning-math-hero-title,
.education-course-learning:is([data-manifest-id^="primary-science-grade-"], [data-manifest-id^="primary-morality-grade-"]) .learning-math-hero-title {
  margin: 0 0 16px !important;
  font-size: clamp(25px, 4vw, 36px);
}
.learning-math-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.learning-math-hero-tags li {
  padding: 4px 10px;
  border: 1px solid hsl(var(--math-hero-hue-two) 35% 45% / 25%);
  border-radius: 999px;
  background: rgb(255 255 255 / 38%);
  color: #344c5a;
  font-size: 13px;
  line-height: 1.5;
}
.learning-math-hero-context {
  max-width: 720px;
  margin: 20px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--math-hero-accent);
  color: #354a56;
  font-size: 15px;
  line-height: 1.8;
}
.education-course-learning[data-manifest-id="primary-math-grade-1"] .learning-math-hero .learning-math-hero-kicker,
.education-course-learning.learning-structured-source .learning-math-hero .learning-math-hero-kicker,
.education-course-learning:is([data-manifest-id^="primary-science-grade-"], [data-manifest-id^="primary-morality-grade-"]) .learning-math-hero .learning-math-hero-kicker {
  margin: 0 0 12px;
  letter-spacing: .12em;
}
.education-course-learning[data-manifest-id="primary-math-grade-1"] .learning-math-hero .learning-math-hero-context,
.education-course-learning.learning-structured-source .learning-math-hero .learning-math-hero-context,
.education-course-learning:is([data-manifest-id^="primary-science-grade-"], [data-manifest-id^="primary-morality-grade-"]) .learning-math-hero .learning-math-hero-context {
  margin: 20px 0 0;
}
.learning-math-description .learning-source-lesson-reference {
  color: var(--learning-muted);
  font-size: 14px;
}
.education-course-learning[data-manifest-id="primary-math-grade-2"] .learning-math-hero-title {
  margin: 0 0 16px !important;
  font-size: clamp(25px, 4vw, 36px);
}
.education-course-learning[data-manifest-id="primary-math-grade-2"] .learning-math-hero .learning-math-hero-kicker {
  margin: 0 0 12px;
  letter-spacing: .12em;
}
.education-course-learning[data-manifest-id="primary-math-grade-2"] .learning-math-hero .learning-math-hero-context {
  margin: 20px 0 0;
}
.education-course-learning[data-manifest-id="primary-math-grade-3"] .learning-math-hero-title {
  margin: 0 0 16px !important;
  font-size: clamp(25px, 4vw, 36px);
}
.education-course-learning[data-manifest-id="primary-math-grade-3"] .learning-math-hero .learning-math-hero-kicker {
  margin: 0 0 12px;
  letter-spacing: .12em;
}
.education-course-learning[data-manifest-id="primary-math-grade-3"] .learning-math-hero .learning-math-hero-context {
  margin: 20px 0 0;
}
.education-course-learning[data-manifest-id="primary-math-grade-4"] .learning-math-hero-title {
  margin: 0 0 16px !important;
  font-size: clamp(25px, 4vw, 36px);
}
.education-course-learning[data-manifest-id="primary-math-grade-4"] .learning-math-hero .learning-math-hero-kicker {
  margin: 0 0 12px;
  letter-spacing: .12em;
}
.education-course-learning[data-manifest-id="primary-math-grade-4"] .learning-math-hero .learning-math-hero-context {
  margin: 20px 0 0;
}
.education-course-learning[data-manifest-id="primary-math-grade-5"] .learning-math-hero-title {
  margin: 0 0 16px !important;
  font-size: clamp(25px, 4vw, 36px);
}
.education-course-learning[data-manifest-id="primary-math-grade-5"] .learning-math-hero .learning-math-hero-kicker {
  margin: 0 0 12px;
  letter-spacing: .12em;
}
.education-course-learning[data-manifest-id="primary-math-grade-5"] .learning-math-hero .learning-math-hero-context {
  margin: 20px 0 0;
}
.learning-math-description,
.learning-math-goals { padding: 2px 0; }
.learning-math-description h2,
.learning-math-goals h2 { color: var(--learning-accent); }
.learning-numeric-answer { margin: 14px 0; }
.learning-numeric-answer-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  color: var(--learning-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.learning-numeric-answer-input {
  width: min(100%, 220px);
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--learning-border);
  border-radius: 7px;
  background: var(--learning-card-bg, #fff);
  color: var(--learning-text);
  font: inherit;
  font-size: 20px;
}
.learning-numeric-answer-input:focus-visible {
  border-color: var(--learning-accent);
  outline: 2px solid color-mix(in srgb, var(--learning-accent) 26%, transparent);
  outline-offset: 2px;
}
.education-course-learning[data-manifest-id="primary-chinese-grade-1"] .primary-grade1-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 0 20px;
  padding: clamp(24px, 5vw, 42px);
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(ellipse at 92% 92%, var(--grade1-hero-tone-four), transparent 34%),
    radial-gradient(ellipse at 72% 4%, var(--grade1-hero-tone-three), transparent 38%),
    radial-gradient(ellipse at 12% 14%, var(--grade1-hero-tone-two), transparent 34%),
    linear-gradient(112deg, var(--grade1-hero-tone-one) 0%, var(--grade1-hero-tone-two) 31%, var(--grade1-hero-tone-three) 62%, var(--grade1-hero-tone-four) 100%);
  color: #26384d;
}
.education-course-learning[data-manifest-id="primary-chinese-grade-1"] .primary-grade1-hero::after {
  position: absolute;
  z-index: -1;
  right: -28px;
  bottom: -94px;
  width: 260px;
  height: 260px;
  border: 1px solid var(--grade1-hero-ring);
  border-radius: 50%;
  box-shadow: 0 0 0 24px var(--grade1-hero-ring-shadow-one), 0 0 0 50px var(--grade1-hero-ring-shadow-two);
  content: "";
  pointer-events: none;
}
.education-course-learning[data-manifest-id="primary-chinese-grade-1"] .primary-grade1-hero-kicker {
  position: relative;
  margin: 0 0 12px;
  color: var(--grade1-hero-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.6;
}
.education-course-learning[data-manifest-id="primary-chinese-grade-1"] .primary-grade1-hero-title {
  position: relative;
  max-width: 780px;
  margin: 0 0 16px;
  color: #24364b;
  font-size: clamp(25px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.35;
  text-wrap: pretty;
}
.education-course-learning[data-manifest-id="primary-chinese-grade-1"] .primary-grade1-hero-tags {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.education-course-learning[data-manifest-id="primary-chinese-grade-1"] .primary-grade1-hero-tags li {
  padding: 4px 10px;
  border: 1px solid rgb(38 56 77 / 22%);
  border-radius: 999px;
  background: rgb(255 255 255 / 38%);
  color: #344b63;
  font-size: 13px;
  line-height: 1.5;
}
.education-course-learning[data-manifest-id="primary-chinese-grade-1"] .primary-grade1-hero-context {
  position: relative;
  max-width: 820px;
  margin: 20px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--grade1-hero-accent);
  color: #40546a;
  font-size: 15px;
  line-height: 1.8;
}
.education-course-learning[data-manifest-id="primary-chinese-grade-2"] .primary-grade2-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 0 20px;
  padding: clamp(24px, 5vw, 42px);
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(ellipse at 92% 92%, var(--grade2-hero-tone-four), transparent 34%),
    radial-gradient(ellipse at 72% 4%, var(--grade2-hero-tone-three), transparent 38%),
    radial-gradient(ellipse at 12% 14%, var(--grade2-hero-tone-two), transparent 34%),
    linear-gradient(112deg, var(--grade2-hero-tone-one) 0%, var(--grade2-hero-tone-two) 31%, var(--grade2-hero-tone-three) 62%, var(--grade2-hero-tone-four) 100%);
  color: #26384d;
}
.education-course-learning[data-manifest-id="primary-chinese-grade-2"] .primary-grade2-hero::after {
  position: absolute;
  z-index: -1;
  right: -28px;
  bottom: -94px;
  width: 260px;
  height: 260px;
  border: 1px solid var(--grade2-hero-ring);
  border-radius: 50%;
  box-shadow: 0 0 0 24px var(--grade2-hero-ring-shadow-one), 0 0 0 50px var(--grade2-hero-ring-shadow-two);
  content: "";
  pointer-events: none;
}
.education-course-learning[data-manifest-id="primary-chinese-grade-2"] .primary-grade2-hero-kicker {
  position: relative;
  margin: 0 0 12px;
  color: var(--grade2-hero-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.6;
}
.education-course-learning[data-manifest-id="primary-chinese-grade-2"] .primary-grade2-hero-title {
  position: relative;
  max-width: 780px;
  margin: 0 0 16px;
  color: #24364b;
  font-size: clamp(25px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.35;
  text-wrap: pretty;
}
.education-course-learning[data-manifest-id="primary-chinese-grade-2"] .primary-grade2-hero-tags {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.education-course-learning[data-manifest-id="primary-chinese-grade-2"] .primary-grade2-hero-tags li {
  padding: 4px 10px;
  border: 1px solid rgb(38 56 77 / 22%);
  border-radius: 999px;
  background: rgb(255 255 255 / 38%);
  color: #344b63;
  font-size: 13px;
  line-height: 1.5;
}
.education-course-learning[data-manifest-id="primary-chinese-grade-2"] .primary-grade2-hero-context {
  position: relative;
  max-width: 820px;
  margin: 20px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--grade2-hero-accent);
  color: #40546a;
  font-size: 15px;
  line-height: 1.8;
}
.learning-lesson-card .learning-guided-intro { margin: 18px 0 28px; }
.learning-guided-section { margin: 0 0 30px; }
.learning-prelesson-card {
  position: relative;
  overflow: hidden;
  margin: 22px 0 30px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid #c9dfcf;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 100% 0%, rgb(93 158 112 / 12%), transparent 42%),
    linear-gradient(145deg, #eff8f0, #fff 68%);
  box-shadow: 0 9px 24px rgb(43 91 54 / 7%);
}
.learning-prelesson-heading { display: flex; align-items: center; gap: 11px; }
.learning-prelesson-kicker {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid #c9dfcf;
  border-radius: 999px;
  background: #fff;
  color: #42684b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.learning-prelesson-heading h2 { margin: 0; color: #31583b; font-size: 20px; font-weight: 760; }
.learning-prelesson-question { margin: 17px 0 20px !important; color: #2d4131; font-size: clamp(18px, 2.7vw, 21px); font-weight: 650; line-height: 1.75; }
.learning-prelesson-answer { overflow: hidden; border: 1px solid #c9dfcf; border-radius: 11px; background: rgb(255 255 255 / 84%); }
.learning-prelesson-answer summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 15px;
  color: #3e6947;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.learning-prelesson-answer summary::-webkit-details-marker { display: none; }
.learning-prelesson-answer summary::after { content: '＋'; flex: 0 0 auto; color: #5b8062; font-size: 19px; line-height: 1; }
.learning-prelesson-answer[open] summary::after { content: '−'; }
.learning-prelesson-answer-content { padding: 15px; border-top: 1px solid #d5e4d8; background: #f6faf6; }
.learning-prelesson-answer-label { display: block; margin-bottom: 5px; color: #64806a; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.learning-prelesson-answer-content p { margin: 0 !important; color: #2d4131; font-size: 16px; line-height: 1.75; }
body.io-black-mode .learning-prelesson-card {
  border-color: #3e5b46;
  background:
    radial-gradient(ellipse at 100% 0%, rgb(101 157 112 / 14%), transparent 42%),
    linear-gradient(145deg, #26362a, #191d21 68%);
  box-shadow: 0 9px 24px rgb(0 0 0 / 16%);
}
body.io-black-mode .learning-prelesson-kicker,
body.io-black-mode .learning-prelesson-answer { border-color: #3e5b46; background: #222f25; }
body.io-black-mode .learning-prelesson-heading h2,
body.io-black-mode .learning-prelesson-question,
body.io-black-mode .learning-prelesson-answer-content p { color: #dce9de; }
body.io-black-mode .learning-prelesson-kicker,
body.io-black-mode .learning-prelesson-answer summary { color: #bdd9c2; }
body.io-black-mode .learning-prelesson-answer-content { border-color: #3e5b46; background: #1d2820; }
body.io-black-mode .learning-prelesson-answer-label { color: #a7c4ad; }
.learning-guided-section > h2 {
  margin: 0 0 12px;
  color: var(--guided-ink);
  font-size: 23px;
  font-weight: 750;
  line-height: 1.4;
}
.learning-poem-lines {
  display: grid;
  gap: 7px;
  margin: 14px 0 16px;
  padding: 15px;
  border: 1px solid #d4e3ed;
  border-radius: 10px;
  background: var(--guided-blue);
  text-align: center;
}
.learning-poem-line { margin: 0 !important; color: var(--guided-ink); font-size: clamp(20px, 3vw, 25px); font-weight: 750; letter-spacing: .06em; line-height: 1.6; }
.learning-poem-line.is-second-line { color: #2e8b57; }
body.io-black-mode .learning-poem-lines { border-color: #3e5363; }
body.io-black-mode .learning-poem-line.is-second-line { color: #8fd0a6; }
.learning-concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.learning-concept-card {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--learning-border);
  border-radius: 9px;
  background: var(--guided-blue);
}
.learning-concept-card:nth-child(3n + 2) { background: var(--guided-green); }
.learning-concept-card h3 { margin: 0 0 5px; color: var(--guided-ink); font-size: 18px; }
.learning-concept-card p { margin: 0; font-size: 16px; line-height: 1.7; }
.learning-lesson-steps { margin: 10px 0 0; padding-left: 1.5em; }
.learning-lesson-steps li { margin: 0 0 8px; padding-left: 3px; }
.learning-lesson-targets { padding: 14px 18px; border-radius: 9px; background: var(--learning-soft); }
.learning-lesson-targets h2 { margin-top: 0; }
.learning-lesson-targets .learning-criteria { margin-bottom: 0; }
.learning-character-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.learning-character-card {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 15px 6px 10px;
  border: 1px solid var(--learning-border);
  border-radius: 10px;
  background: var(--guided-blue);
  line-height: 1.5;
}
.learning-character-card:nth-child(n+4) { background: var(--guided-green); }
.learning-character-glyph, .learning-character-pair > span:not(.learning-character-pair-and) {
  font-family: "KaiTi", "Kaiti SC", "STKaiti", serif;
  color: var(--guided-ink);
}
.learning-character-glyph { font-size: clamp(42px, 7vw, 64px); font-weight: 700; }
.learning-character-glyph rt { font-family: system-ui, sans-serif; font-size: 16px; font-weight: 500; }
.learning-character-word { font-size: 18px; }
.learning-character-audio {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--learning-border);
  border-radius: 50%;
  background: var(--learning-card-bg, #fff);
  color: var(--guided-ink);
  cursor: pointer;
}
.learning-character-audio:hover, .learning-character-audio:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.learning-character-comparison {
  display: grid;
  grid-template-columns: minmax(112px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 12px 18px;
  padding: 10px 0;
  border-top: 1px solid var(--learning-border);
}
.learning-character-comparison .learning-character-pair {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 32px;
  line-height: 1.4;
}
.learning-character-pair-and { font-size: 15px; font-weight: 400; }
.learning-character-comparison p { margin: 0; }
.learning-practice-question {
  min-width: 0;
  margin: 0 0 12px;
  padding: 10px 14px 14px;
  border: 1px solid var(--learning-border);
  border-radius: 8px;
  background: var(--learning-card-bg, #fff);
}
.learning-practice-question legend {
  float: none;
  width: auto;
  margin: 0;
  padding: 0 5px;
  color: var(--learning-text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}
.learning-practice-card {
  margin-top: 34px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid #cfe0ee;
  border-radius: 14px;
  background: linear-gradient(145deg, #f4f9fd 0%, #fff 72%);
}
.learning-first-reading-diagnostic-card {
  border-color: #c9dfcf;
  background: linear-gradient(145deg, #eff8f0, #fff 68%);
}
.learning-practice-card > .learning-practice-heading { display: flex; align-items: center; gap: 12px; }
.learning-practice-heading-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #e1effa;
  color: #2874a6;
  font-size: 20px;
}
.learning-practice-heading-copy { min-width: 0; }
.learning-practice-kicker { color: var(--learning-muted); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.learning-practice-heading h2 { margin: 0; color: #21556f; font-size: 23px; line-height: 1.35; }
.learning-practice-count { margin-left: auto; padding: 5px 10px; border-radius: 999px; background: #e8f2f8; color: #21556f; font-size: 14px; font-weight: 750; white-space: nowrap; }
.learning-practice-description { margin: 10px 0 14px !important; color: var(--learning-muted); font-size: 15px; }
.learning-practice-progress { height: 7px; overflow: hidden; border-radius: 999px; background: #e3eaf0; }
.learning-practice-progress-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: #2e8b57; transition: width .2s ease; }
.learning-practice-stage { margin-top: 16px; }
.learning-practice-question { margin: 0; padding: 17px; border-color: #dbe5ed; border-radius: 11px; }
.learning-practice-prompt { display: flex; align-items: flex-start; gap: 10px; width: 100% !important; margin: 0 0 14px !important; padding: 0 !important; font-size: 18px !important; }
.learning-practice-question-number { flex: 0 0 auto; color: #2874a6; font-size: 14px; font-weight: 800; }
.learning-practice-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.learning-practice-choices .learning-answer-choice {
  display: flex;
  align-items: center;
  margin: 0;
  min-height: 52px;
  padding: 8px 11px;
  border-color: #dbe5ed;
  border-radius: 9px;
  background: #fff;
  line-height: 1.55;
}
.learning-practice-choices .learning-answer-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.learning-practice-choices .learning-answer-choice.is-selected { border-color: #2874a6; background: #edf6fc; box-shadow: 0 0 0 2px rgb(40 116 166 / 12%); }
.learning-answer-key { display: grid; flex: 0 0 28px; width: 28px; height: 28px; margin-right: 10px; place-items: center; border-radius: 50%; background: #eef2f5; color: #526170; font-size: 13px; font-weight: 800; }
.is-selected .learning-answer-key { background: #2874a6; color: #fff; }
.learning-answer-text { min-width: 0; }
.learning-practice-choices .learning-answer-choice:has(input:focus-visible) { outline: 2px solid #2874a6; outline-offset: 2px; }
.learning-practice-actions { display: flex; justify-content: flex-end; margin-top: 14px; }
.learning-practice-check { min-width: 118px; }
.learning-practice-feedback { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0 !important; padding: 12px 14px; border-radius: 9px; font-size: 15px; line-height: 1.65; }
.learning-practice-feedback[hidden] { display: none; }
.learning-practice-feedback > i { flex: 0 0 auto; margin-top: 3px; }
.learning-practice-feedback.is-correct { background: #eaf5ed; color: #22623c; }
.learning-practice-feedback.is-incorrect { background: #fff5e8; color: #8b5715; }
.learning-practice-complete { padding: 20px 16px 4px; color: #21556f; text-align: center; }
.learning-practice-complete > i { color: #d99b20; font-size: 30px; }
.learning-practice-complete h3 { margin: 8px 0 4px; font-size: 20px; }
.learning-practice-complete p { margin: 0 0 14px !important; color: var(--learning-muted); font-size: 15px; }
body.io-black-mode .learning-guided-lesson { --guided-ink: #c4e3f6; --guided-blue: #233441; --guided-green: #253a31; }
body.io-black-mode .education-course-learning[data-manifest-id="primary-chinese-grade-1"] .primary-grade1-hero {
  background:
    radial-gradient(ellipse at 92% 92%, rgb(67 77 91 / 38%), transparent 34%),
    radial-gradient(ellipse at 72% 4%, rgb(54 83 79 / 38%), transparent 38%),
    radial-gradient(ellipse at 12% 14%, rgb(76 61 87 / 34%), transparent 34%),
    linear-gradient(112deg, #202a36 0%, #262b39 35%, #1d302e 68%, #302b31 100%);
  color: #e4eaf1;
}
body.io-black-mode .education-course-learning[data-manifest-id="primary-chinese-grade-1"] .primary-grade1-hero-title { color: #e8edf4; }
body.io-black-mode .education-course-learning[data-manifest-id="primary-chinese-grade-1"] .primary-grade1-hero-tags li {
  border-color: rgb(222 232 241 / 26%);
  background: rgb(19 25 32 / 45%);
  color: #dce5ef;
}
body.io-black-mode .education-course-learning[data-manifest-id="primary-chinese-grade-1"] .primary-grade1-hero-context { color: #c9d4e0; }
body.io-black-mode .education-course-learning[data-manifest-id="primary-chinese-grade-2"] .primary-grade2-hero {
  background:
    radial-gradient(ellipse at 92% 92%, rgb(67 77 91 / 38%), transparent 34%),
    radial-gradient(ellipse at 72% 4%, rgb(54 83 79 / 38%), transparent 38%),
    radial-gradient(ellipse at 12% 14%, rgb(76 61 87 / 34%), transparent 34%),
    linear-gradient(112deg, #202a36 0%, #262b39 35%, #1d302e 68%, #302b31 100%);
  color: #e4eaf1;
}
body.io-black-mode .education-course-learning[data-manifest-id="primary-chinese-grade-2"] .primary-grade2-hero-title { color: #e8edf4; }
body.io-black-mode .education-course-learning[data-manifest-id="primary-chinese-grade-2"] .primary-grade2-hero-tags li {
  border-color: rgb(222 232 241 / 26%);
  background: rgb(19 25 32 / 45%);
  color: #dce5ef;
}
body.io-black-mode .education-course-learning[data-manifest-id="primary-chinese-grade-2"] .primary-grade2-hero-context { color: #c9d4e0; }
body.io-black-mode .learning-practice-card { border-color: #3e5363; background: linear-gradient(145deg, #1d2a34 0%, #171a1e 72%); }
body.io-black-mode .learning-first-reading-diagnostic-card { border-color: #3e5b46; background: linear-gradient(145deg, #26362a, #191d21 68%); }
body.io-black-mode .learning-practice-heading-icon,
body.io-black-mode .learning-practice-count { background: #263d4c; color: #c4e3f6; }
body.io-black-mode .learning-practice-heading h2,
body.io-black-mode .learning-practice-question-number,
body.io-black-mode .learning-practice-complete { color: #c4e3f6; }
body.io-black-mode .learning-practice-progress { background: #39444e; }
body.io-black-mode .learning-practice-question,
body.io-black-mode .learning-practice-choices .learning-answer-choice { border-color: #454b54; background: #171a1e; }
body.io-black-mode .learning-practice-choices .learning-answer-choice.is-selected { border-color: #78a9d0; background: #203344; }
body.io-black-mode .learning-answer-key { background: #303840; color: #d8e0e8; }
body.io-black-mode .is-selected .learning-answer-key { background: #2874a6; color: #fff; }
body.io-black-mode .learning-practice-feedback.is-correct { background: #203529; color: #bce3c8; }
body.io-black-mode .learning-practice-feedback.is-incorrect { background: #392f22; color: #f0cd98; }
.learning-criteria { padding-left: 1.35em; }
.learning-question-preview { margin: 18px 0; padding: 14px; border-left: 4px solid var(--learning-accent); background: var(--learning-soft); }
.learning-actions, .learning-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 22px 0; }
.learning-lesson-actions { flex-direction: column; gap: 10px; }
.learning-actions-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.education-learning-page #course-audio-toggle[hidden] { display: none !important; }
.learning-action-button, .learning-primary-button { min-height: 40px; padding: 8px 14px; border: 1px solid var(--learning-border); border-radius: 6px; background: transparent; color: inherit; font: inherit; font-weight: 650; cursor: pointer; }
.learning-primary-button { border-color: var(--learning-accent); background: var(--learning-accent); color: #fff; }
.learning-lesson-practice-entry {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  margin: 5px 0;
  padding: 6px 18px;
  border: 1px solid #c43b3b;
  border-radius: 7px;
  background: #d64545;
  color: #fff;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: 0 2px 5px rgb(160 40 40 / 16%);
}
.learning-lesson-practice-entry:hover,
.learning-lesson-practice-entry:focus-visible { border-color: #a82f2f; background: #bd3838; color: #fff; text-decoration: none; }
.learning-lesson-practice-entry:focus-visible { outline: 3px solid rgb(214 69 69 / 28%); outline-offset: 2px; }
.learning-action-button:disabled, .learning-primary-button:disabled { cursor: default; opacity: .48; }
.learning-page-number { min-width: 84px; text-align: center; color: var(--learning-muted); font-size: 14px; }
.learning-video { display: block; width: 100%; max-height: 420px; margin: 0 0 18px; border-radius: 8px; background: #111; }
.learning-audio { width: 100%; margin: 0 0 16px; }
.learning-empty, .learning-status { padding: 12px 14px; border-radius: 6px; background: var(--learning-soft); color: var(--learning-muted); }
.learning-status { margin: 12px 0; }
.learning-answer-list { display: grid; gap: 8px; margin: 14px 0; }
.learning-answer-choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--learning-border); border-radius: 6px; cursor: pointer; }
.learning-answer-choice:has(input:checked) { border-color: var(--learning-accent); background: #edf6f0; }
.learning-scope-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 12px; }
.learning-select-field { display: grid; gap: 4px; min-width: 0; margin: 0; }
.learning-select-field > span { font-size: 14px; font-weight: 700; }
.learning-select-field select {
  width: 100%; min-height: 44px; padding: 7px 9px; border: 1px solid var(--learning-border);
  border-radius: 6px; color: inherit; background: var(--learning-soft); font: inherit; font-size: 16px;
}
.learning-panel-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 12px; }
.learning-panel-actions a { display: inline-flex; align-items: center; text-decoration: none; }
.learning-panel-actions .learning-action-button:hover { border-color: var(--learning-selected-border); color: inherit; }
.learning-practice-intro { margin: 14px 0; }
.learning-workspace .learning-panel-title { margin: 0 0 12px; }
.learning-quiz-options { min-width: 0; }
.learning-quiz-options legend { width: auto; margin: 0; color: inherit; font-size: 19px; line-height: 1.5; }
.learning-quiz-options:disabled .learning-answer-choice { cursor: default; }
.learning-review-records .learning-panel-actions { margin-bottom: 14px; }
.learning-review-records .learning-select-field { min-width: min(150px, 100%); }
.learning-review-records p { margin: 0 0 8px; }
.learning-review-item { margin: 0 0 12px; }
.learning-term-links { margin-bottom: 12px; }
.learning-term-links a[aria-current="page"] { border-color: var(--learning-selected-border); background: var(--learning-selected-bg); }
.learning-plan-row { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.learning-result-relations { margin-top: 24px; }
.learning-relations { margin: 12px 0; padding: 12px 16px; scroll-margin-top: 88px; }
.learning-lesson-card > .learning-relations { margin-top: 24px; }
.learning-relations summary, .learning-review-item summary, .learning-recent-records summary { cursor: pointer; font-weight: 700; }
.learning-relations-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.learning-relations-column { padding: 8px 12px; border-radius: 6px; background: var(--learning-soft); }
.learning-relations-column ul { margin: 4px 0 0; padding-left: 1.3em; }
.learning-relations-column p { margin: 4px 0 0; }
.learning-source-graph-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.learning-source-graph-section { min-width: 0; padding: 14px; border: 1px solid var(--learning-border); border-radius: 9px; background: var(--learning-soft); }
.learning-source-graph-math { margin-top: 14px; }
.learning-source-graph-section h3 { margin: 0 0 4px; font-size: 18px; }
.learning-source-graph-count { margin: 0 0 12px !important; color: var(--learning-muted); font-size: 13px; }
.learning-source-graph-empty { margin: 0 !important; color: var(--learning-muted); font-size: 14px; }
.learning-source-graph-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.learning-source-graph-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 5px 8px; padding: 10px; border: 1px solid var(--learning-border); border-radius: 7px; background: var(--learning-card-bg, #fff); }
.learning-source-graph-badge { padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.learning-source-graph-badge.is-hard { background: #f8e7e5; color: #a83c35; }
.learning-source-graph-badge.is-soft { background: #e6eff8; color: #28628d; }
.learning-source-graph-link { min-width: 0; color: var(--learning-text); font-size: 14px; font-weight: 700; text-decoration: none; }
.learning-source-graph-link:hover, .learning-source-graph-link:focus-visible { color: var(--learning-accent); text-decoration: underline; }
.learning-source-graph-grade { color: var(--learning-muted); font-size: 11px; white-space: nowrap; }
.learning-source-graph-reason { grid-column: 1 / -1; margin: 2px 0 0 !important; color: var(--learning-muted); font-size: 12px; line-height: 1.5; }
body.io-black-mode .learning-source-graph-badge.is-hard { background: #482e2d; color: #ffc2ba; }
body.io-black-mode .learning-source-graph-badge.is-soft { background: #26394a; color: #b9d9f2; }
.learning-list-button { padding: 0; border: 0; background: transparent; color: var(--learning-accent); font: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
body.io-black-mode .education-course-learning .learning-list-button { color: #a8c9ed; }
.learning-warning { color: #a04d00; }
.learning-load-error { padding: 16px; border: 1px solid #c94b4b; border-radius: 8px; color: #a32222; }
a.learning-primary-button { display: inline-block; text-decoration: none; }
a.learning-primary-button:hover, a.learning-primary-button:focus-visible { color: #fff; text-decoration: underline; }
.learning-article-action {
  display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0;
  background: transparent; color: var(--learning-muted); font: inherit; font-size: 16px; cursor: pointer;
}
.learning-article-action:hover { text-decoration: underline; }
.learning-share-result { max-width: 520px; margin: 0 auto 22px; color: var(--learning-muted); font-size: 14px; }
.learning-share-result input {
  display: block; width: 100%; padding: 6px 10px; border: 1px solid var(--learning-border);
  border-radius: 6px; background: var(--learning-soft); color: var(--learning-text); font: inherit;
}
.learning-page-button {
  display: inline-block; padding: 0 10px; min-height: 38px; line-height: 36px;
  border: 1px solid var(--learning-border); border-radius: 6px;
  background: var(--learning-card-bg, #fff); color: inherit; font-size: 16px;
}
.learning-page-button[aria-disabled="true"] { opacity: .45; }
a.learning-page-button:hover, a.learning-page-button:focus-visible { background: #2f5f8f; border-color: #2f5f8f; color: #fff; }
body.io-black-mode .education-course-learning {
  --learning-border: #454b54;
  --learning-soft: #202428;
  --learning-text: #f1f3f4;
  --learning-muted: #b0bac5;
  --learning-card-bg: #171a1e;
  --learning-divider: #3d444c;
  --learning-child-bg: #202428;
  --learning-selected-border: #5d83ad;
  --learning-selected-bg: #243447;
  --learning-row-border: #3d444c;
  --learning-row-hover: #243447;
}
body.io-black-mode .education-course-learning .learning-feature-button { color: #f1f3f4; }
body.io-black-mode .education-course-learning .learning-answer-choice:has(input:checked) { background: #203529; }
body.io-black-mode .education-course-learning .learning-sidebar-summary { --learning-summary-color: #d0b6f5; background: #292232; }
body.io-black-mode .education-course-learning[data-manifest-id="primary-math-grade-1"] .learning-sidebar-summary,
body.io-black-mode .education-course-learning.learning-structured-source .learning-sidebar-summary,
body.io-black-mode .education-course-learning[data-manifest-id^="primary-science-grade-"] .learning-sidebar-summary { --learning-summary-color: #8fc3e6; background: #202c36; }
body.io-black-mode .education-course-learning[data-manifest-id="primary-english-grade-1"] .learning-sidebar-summary { --learning-summary-color: #f08c87; background: #362626; }
body.io-black-mode .education-course-learning[data-manifest-id="primary-english-grade-2"] .learning-sidebar-summary { --learning-summary-color: #8fc7a2; background: #1f2e24; }
body.io-black-mode .education-course-learning[data-manifest-id="primary-english-grade-3"] .learning-sidebar-summary { --learning-summary-color: #8db9d7; background: #202c35; }
body.io-black-mode .education-course-learning[data-manifest-id="primary-english-grade-4"] .learning-sidebar-summary { --learning-summary-color: #d5b96e; background: #332f24; }
body.io-black-mode .education-course-learning[data-manifest-id="primary-english-grade-5"] .learning-sidebar-summary { --learning-summary-color: #67c3cb; background: #1e3032; }
body.io-black-mode .education-course-learning[data-manifest-id="primary-math-grade-2"] .learning-sidebar-summary { --learning-summary-color: #8fc7a2; background: #1f2e24; }
body.io-black-mode .education-course-learning[data-manifest-id="primary-math-grade-3"] .learning-sidebar-summary { --learning-summary-color: #c7a9f0; background: #2a2334; }
body.io-black-mode .education-course-learning[data-manifest-id="primary-math-grade-4"] .learning-sidebar-summary { --learning-summary-color: #e1b875; background: #30271b; }
body.io-black-mode .education-course-learning[data-manifest-id="primary-english-grade-6"] .learning-sidebar-summary { --learning-summary-color: #c8b3eb; background: #2c2637; }
body.io-black-mode .education-course-learning[data-manifest-id="primary-math-grade-5"] .learning-sidebar-summary { --learning-summary-color: #80ccd1; background: #1d2b2d; }

.education-course-learning[data-manifest-id="primary-math-grade-6"] {
  --learning-accent: #c4458a;
  --learning-selected-bg: #f8edf3;
  --learning-row-hover: #fbf2f7;
}
.education-course-learning[data-manifest-id="primary-math-grade-6"].is-independent .learning-content-title {
  margin: 5px 0 25px !important;
}
.education-course-learning[data-manifest-id="primary-math-grade-6"] .learning-sidebar-summary {
  --learning-summary-color: #a43b72;
  background: #fbf1f6;
}
.education-course-learning[data-manifest-id="primary-math-grade-6"] .learning-math-hero-title {
  margin: 0 0 16px !important;
  font-size: clamp(25px, 4vw, 36px);
}
.education-course-learning[data-manifest-id="primary-math-grade-6"] .learning-math-hero .learning-math-hero-kicker {
  margin: 0 0 12px;
  letter-spacing: .12em;
}
.education-course-learning[data-manifest-id="primary-math-grade-6"] .learning-math-hero .learning-math-hero-context {
  margin: 20px 0 0;
}
body.io-black-mode .education-course-learning[data-manifest-id="primary-math-grade-6"] .learning-sidebar-summary { --learning-summary-color: #e2a4c6; background: #30232b; }

.education-course-learning[data-manifest-id="junior-english-grade-7"] {
  --learning-accent: #2874a6;
  --learning-selected-bg: #eaf2f8;
  --learning-row-hover: #edf4fa;
}
.education-course-learning[data-manifest-id="junior-english-grade-7"] .learning-sidebar-summary {
  --learning-summary-color: #2874a6;
  background: #f0f6fa;
}
.education-course-learning[data-manifest-id="junior-english-grade-7"] .learning-math-hero-title {
  margin: 0 0 16px !important;
  font-size: clamp(25px, 4vw, 36px);
}
.education-course-learning[data-manifest-id="junior-english-grade-7"] .learning-math-hero-kicker {
  margin: 0 0 12px;
  letter-spacing: .08em;
}
.education-course-learning[data-manifest-id="junior-english-grade-7"] .learning-math-hero-context {
  margin: 20px 0 0;
}
.education-course-learning[data-manifest-id="junior-math-grade-7"] {
  --learning-accent: #5967b2;
  --learning-selected-bg: #f0f1f8;
  --learning-row-hover: #f4f4fa;
}
.education-course-learning[data-manifest-id="junior-math-grade-7"].is-independent .learning-content-title {
  margin: 5px 0 25px !important;
}
.education-course-learning[data-manifest-id="junior-math-grade-7"] .learning-sidebar-summary {
  --learning-summary-color: #4d5a9f;
  background: #f2f3fa;
}
.education-course-learning[data-manifest-id="junior-math-grade-7"] .learning-math-hero-title {
  margin: 0 0 16px !important;
  font-size: clamp(25px, 4vw, 36px);
}
.education-course-learning[data-manifest-id="junior-math-grade-7"] .learning-math-hero .learning-math-hero-kicker {
  margin: 0 0 12px;
  letter-spacing: .12em;
}
.education-course-learning[data-manifest-id="junior-math-grade-7"] .learning-math-hero .learning-math-hero-context {
  margin: 20px 0 0;
}
body.io-black-mode .education-course-learning[data-manifest-id="junior-english-grade-7"] .learning-sidebar-summary { --learning-summary-color: #8db9d7; background: #202c35; }
body.io-black-mode .education-course-learning[data-manifest-id="junior-math-grade-7"] .learning-sidebar-summary { --learning-summary-color: #aeb7ed; background: #252837; }

.education-course-learning[data-manifest-id="junior-english-grade-8"] {
  --learning-accent: #2e8b57;
  --learning-selected-bg: #edf5f0;
  --learning-row-hover: #eff7f2;
}
.education-course-learning[data-manifest-id="junior-english-grade-8"] .learning-sidebar-summary {
  --learning-summary-color: #2e8b57;
  background: #f0f7f2;
}
.education-course-learning[data-manifest-id="junior-english-grade-8"] .learning-math-hero-title {
  margin: 0 0 16px !important;
  font-size: clamp(25px, 4vw, 36px);
}
.education-course-learning[data-manifest-id="junior-english-grade-8"] .learning-math-hero-kicker {
  margin: 0 0 12px;
  letter-spacing: .08em;
}
.education-course-learning[data-manifest-id="junior-english-grade-8"] .learning-math-hero-context {
  margin: 20px 0 0;
}
.education-course-learning[data-manifest-id="junior-math-grade-8"] {
  --learning-accent: #b9632b;
  --learning-selected-bg: #fbf0e9;
  --learning-row-hover: #fcf4ee;
}
.education-course-learning[data-manifest-id="junior-math-grade-8"].is-independent .learning-content-title {
  margin: 5px 0 25px !important;
}
.education-course-learning[data-manifest-id="junior-math-grade-8"] .learning-sidebar-summary {
  --learning-summary-color: #a55323;
  background: #fbf2ec;
}
.education-course-learning[data-manifest-id="junior-math-grade-8"] .learning-math-hero-title {
  margin: 0 0 16px !important;
  font-size: clamp(25px, 4vw, 36px);
}
.education-course-learning[data-manifest-id="junior-math-grade-8"] .learning-math-hero .learning-math-hero-kicker {
  margin: 0 0 12px;
  letter-spacing: .12em;
}
.education-course-learning[data-manifest-id="junior-math-grade-8"] .learning-math-hero .learning-math-hero-context {
  margin: 20px 0 0;
}
body.io-black-mode .education-course-learning[data-manifest-id="junior-english-grade-8"] .learning-sidebar-summary { --learning-summary-color: #8fc7a2; background: #1f2e24; }
body.io-black-mode .education-course-learning[data-manifest-id="junior-math-grade-8"] .learning-sidebar-summary { --learning-summary-color: #e6b394; background: #30261f; }

.education-course-learning[data-manifest-id="junior-english-grade-9"] {
  --learning-accent: #a57800;
  --learning-selected-bg: #faf4e7;
  --learning-row-hover: #fcf7ed;
}
.education-course-learning[data-manifest-id="junior-english-grade-9"] .learning-sidebar-summary {
  --learning-summary-color: #a57800;
  background: #fbf6ea;
}
.education-course-learning[data-manifest-id="junior-english-grade-9"] .learning-math-hero-title {
  margin: 0 0 16px !important;
  font-size: clamp(25px, 4vw, 36px);
}
.education-course-learning[data-manifest-id="junior-english-grade-9"] .learning-math-hero-kicker {
  margin: 0 0 12px;
  letter-spacing: .08em;
}
.education-course-learning[data-manifest-id="junior-english-grade-9"] .learning-math-hero-context {
  margin: 20px 0 0;
}
.education-course-learning[data-manifest-id="junior-math-grade-9"] {
  --learning-accent: #6f4c9b;
  --learning-selected-bg: #f3eff8;
  --learning-row-hover: #f6f2fa;
}
.education-course-learning[data-manifest-id="junior-math-grade-9"].is-independent .learning-content-title {
  margin: 5px 0 25px !important;
}
.education-course-learning[data-manifest-id="junior-math-grade-9"] .learning-sidebar-summary {
  --learning-summary-color: #63418e;
  background: #f5f1fa;
}
.education-course-learning[data-manifest-id="junior-math-grade-9"] .learning-math-hero-title {
  margin: 0 0 16px !important;
  font-size: clamp(25px, 4vw, 36px);
}
.education-course-learning[data-manifest-id="junior-math-grade-9"] .learning-math-hero .learning-math-hero-kicker {
  margin: 0 0 12px;
  letter-spacing: .12em;
}
.education-course-learning[data-manifest-id="junior-math-grade-9"] .learning-math-hero .learning-math-hero-context {
  margin: 20px 0 0;
}
body.io-black-mode .education-course-learning[data-manifest-id="junior-english-grade-9"] .learning-sidebar-summary { --learning-summary-color: #d5b96e; background: #332f24; }
body.io-black-mode .education-course-learning[data-manifest-id="junior-math-grade-9"] .learning-sidebar-summary { --learning-summary-color: #c7afe6; background: #292532; }

.education-course-learning[data-manifest-id="highschool-english-grade-10"] {
  --learning-accent: #5967b2;
  --learning-selected-bg: #f0f1fa;
  --learning-row-hover: #f4f5fb;
}
.education-course-learning[data-manifest-id="highschool-english-grade-10"] .learning-sidebar-summary {
  --learning-summary-color: #5967b2;
  background: #f3f4fa;
}
.education-course-learning[data-manifest-id="highschool-english-grade-10"] .learning-math-hero-title {
  margin: 0 0 16px !important;
  font-size: clamp(25px, 4vw, 36px);
}
.education-course-learning[data-manifest-id="highschool-english-grade-10"] .learning-math-hero-kicker {
  margin: 0 0 12px;
  letter-spacing: .08em;
}
.education-course-learning[data-manifest-id="highschool-english-grade-10"] .learning-math-hero-context {
  margin: 20px 0 0;
}
.education-course-learning[data-manifest-id="highschool-math-grade-10"] {
  --learning-accent: #2874a6;
  --learning-selected-bg: #eaf2f8;
  --learning-row-hover: #edf4fa;
}
.education-course-learning[data-manifest-id="highschool-math-grade-10"].is-independent .learning-content-title {
  margin: 5px 0 25px !important;
}
.education-course-learning[data-manifest-id="highschool-math-grade-10"] .learning-sidebar-summary {
  --learning-summary-color: #2874a6;
  background: #f2f7fb;
}
.education-course-learning[data-manifest-id="highschool-math-grade-10"] .learning-math-hero-title {
  margin: 0 0 16px !important;
  font-size: clamp(25px, 4vw, 36px);
}
.education-course-learning[data-manifest-id="highschool-math-grade-10"] .learning-math-hero .learning-math-hero-kicker {
  margin: 0 0 12px;
  letter-spacing: .12em;
}
.education-course-learning[data-manifest-id="highschool-math-grade-10"] .learning-math-hero .learning-math-hero-context {
  margin: 20px 0 0;
}
body.io-black-mode .education-course-learning[data-manifest-id="highschool-english-grade-10"] .learning-sidebar-summary { --learning-summary-color: #aeb7ed; background: #252837; }
.education-course-learning[data-manifest-id="highschool-english-grade-11"] {
  --learning-accent: #008795;
  --learning-selected-bg: #e8f5f6;
  --learning-row-hover: #eff8f8;
}
.education-course-learning[data-manifest-id="highschool-english-grade-11"] .learning-sidebar-summary {
  --learning-summary-color: #008795;
  background: #eef8f8;
}
.education-course-learning[data-manifest-id="highschool-english-grade-11"] .learning-math-hero-title {
  margin: 0 0 16px !important;
  font-size: clamp(25px, 4vw, 36px);
}
.education-course-learning[data-manifest-id="highschool-english-grade-11"] .learning-math-hero-kicker {
  margin: 0 0 12px;
  letter-spacing: .08em;
}
.education-course-learning[data-manifest-id="highschool-english-grade-11"] .learning-math-hero-context {
  margin: 20px 0 0;
}
body.io-black-mode .education-course-learning[data-manifest-id="highschool-english-grade-11"] .learning-sidebar-summary { --learning-summary-color: #79c8cf; background: #203337; }
.education-course-learning[data-manifest-id="highschool-english-grade-12"] {
  --learning-accent: #a57800;
  --learning-selected-bg: #f8f2e5;
  --learning-row-hover: #fbf7ed;
}
.education-course-learning[data-manifest-id="highschool-english-grade-12"] .learning-sidebar-summary {
  --learning-summary-color: #a57800;
  background: #fbf6e9;
}
.education-course-learning[data-manifest-id="highschool-english-grade-12"] .learning-math-hero-title {
  margin: 0 0 16px !important;
  font-size: clamp(25px, 4vw, 36px);
}
.education-course-learning[data-manifest-id="highschool-english-grade-12"] .learning-math-hero-kicker {
  margin: 0 0 12px;
  letter-spacing: .08em;
}
.education-course-learning[data-manifest-id="highschool-english-grade-12"] .learning-math-hero-context {
  margin: 20px 0 0;
}
body.io-black-mode .education-course-learning[data-manifest-id="highschool-english-grade-12"] .learning-sidebar-summary { --learning-summary-color: #d5bd72; background: #342f21; }


body.io-black-mode .education-course-learning[data-manifest-id="highschool-math-grade-10"] .learning-sidebar-summary { --learning-summary-color: #8fc3e6; background: #202c36; }





body.io-black-mode .learning-math-hero {
  --math-hero-accent: hsl(var(--math-hero-hue-two) 58% 78%);
  --math-hero-ring: hsl(var(--math-hero-hue-three) 42% 72% / 24%);
  --math-hero-ring-shadow-one: hsl(var(--math-hero-hue) 44% 55% / 10%);
  --math-hero-ring-shadow-two: hsl(var(--math-hero-hue-two) 48% 58% / 8%);
  background: linear-gradient(120deg,
    hsl(var(--math-hero-hue) 24% 19%),
    hsl(var(--math-hero-hue-two) 26% 22%) 52%,
    hsl(var(--math-hero-hue-three) 21% 18%));
  color: #dce7ee;
}
body.io-black-mode .learning-math-hero-title { color: #e8edf4; }
body.io-black-mode .learning-math-hero-kicker { color: var(--math-hero-accent); }
body.io-black-mode .learning-math-hero-tags li { border-color: rgb(255 255 255 / 22%); background: rgb(255 255 255 / 5%); color: #c9d4e0; }
body.io-black-mode .learning-math-hero-context { color: #c9d4e0; }
body.io-black-mode .learning-numeric-answer-input { border-color: #4b5662; background: #202428; color: #f1f3f4; }
body.io-black-mode .education-course-learning .learning-sidebar-ad { border-color: #454b54; background: #202428; }
@media (max-width: 767.98px), (orientation: portrait) and (min-width: 768px) and (max-width: 1366px) {
  .ai-profile-page.education-learning-page .profile-content,
  .ai-profile-page.education-learning-page .learning-breadcrumb { width: calc(100% - 20px); }
  .learning-layout { flex-direction: column; gap: 24px; }
  .learning-sidebar, .learning-workspace { flex: 0 0 auto; width: 100%; }
  .learning-sidebar-ad { width: 100%; max-width: 100%; }
  .learning-sidebar-ad ins.adsbygoogle { max-width: none; }
  .learning-feature-button { font-size: 17px; }
  .learning-workspace { font-size: 17px; line-height: 1.9; }
}
@media (max-width: 767.98px) {
  .learning-pagination { gap: 5px; }
  .learning-page-button { min-height: 32px; padding: 0 7px; font-size: 14px; line-height: 30px; }
}
@media (max-width: 420px) {
  .learning-character-grid { gap: 8px; }
  .learning-character-comparison { grid-template-columns: 1fr; gap: 4px; }
  .learning-character-comparison .learning-character-pair { justify-content: flex-start; }
  .learning-relations-columns { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .learning-math-hero { margin-bottom: 20px; padding: 22px 19px; }
  .learning-math-hero::after { right: -115px; bottom: -115px; width: 230px; height: 230px; }
  .learning-math-hero-context { padding-left: 11px; font-size: 14px; }
  .learning-practice-choices { grid-template-columns: 1fr; }
  .learning-practice-question { padding: 13px; }
  .learning-practice-card { padding: 15px; }
  .learning-source-graph-columns { grid-template-columns: 1fr; }
  .learning-source-graph-item { grid-template-columns: auto minmax(0, 1fr); }
  .learning-source-graph-grade { grid-column: 2; }
}
@media print {
  .education-learning-page #sidebar, .education-learning-page #header,
  .education-learning-page .main-footer, .education-learning-page #bottom-ad,
  .education-learning-page .learning-breadcrumb, .learning-sidebar, .learning-actions,
  .education-learning-page #course-audio-toggle,
  .learning-pagination, .learning-share-result, .learning-character-audio, .learning-practice-feedback, .learning-lesson-card > button,
  .learning-lesson-card > video, .learning-lesson-card > audio { display: none !important; }
  .education-course-learning { width: 100%; margin: 0; color: #111; }
  .education-course-learning .learning-layout { display: block; }
  .education-course-learning .learning-workspace { min-height: 0; }
  .education-course-learning .learning-panel-card { border: 0; padding: 0; }
  .education-course-learning details:not([open]) > *:not(summary) { display: block !important; }
}
.learning-workspace h1,
.learning-workspace h2,
.learning-workspace h3,
.learning-workspace h4,
.learning-workspace h5,
.learning-workspace h6 { margin-bottom: 15px !important; }
.learning-practice-setup {
  display: grid;
  gap: 22px;
  padding: clamp(20px, 3.2vw, 34px);
  border-color: #d7e4dc;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff 0%, #fbfdfb 100%);
  box-shadow: 0 10px 28px rgb(32 74 50 / 7%);
}
.learning-practice-setup-heading { display: grid; gap: 4px; }
.learning-practice-setup-kicker { color: var(--learning-accent); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.learning-workspace .learning-practice-setup-heading h2 { margin: 0 0 15px; color: #244a37; font-size: 23px; line-height: 1.4; }
.learning-practice-setup .learning-scope-fields { gap: 16px 20px; }
.learning-practice-setup .learning-select-field { gap: 8px; }
.learning-practice-setup .learning-select-field > span { color: #44564b; font-size: 15px; }
.learning-practice-setup .learning-select-field select {
  min-height: 54px;
  padding: 10px 14px;
  border-color: #d4ded7;
  border-radius: 10px;
  background-color: #f8faf8;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.learning-practice-setup .learning-select-field select:focus { border-color: var(--learning-accent); outline: 0; box-shadow: 0 0 0 3px rgb(46 139 87 / 14%); }
.learning-practice-summary {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid #dcebe1;
  border-radius: 12px;
  background: #f1f8f3;
}
.learning-practice-summary.is-empty { border-color: #eadfce; background: #fbf7f0; }
.learning-practice-summary-icon { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; border-radius: 12px; background: #dff0e4; color: #247448; font-size: 19px; }
.learning-practice-summary.is-empty .learning-practice-summary-icon { background: #f2e8d9; color: #9a6a2e; }
.learning-practice-summary-copy { display: grid; min-width: 0; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 12px; }
.learning-practice-summary-label { color: #567160; font-size: 14px; font-weight: 700; }
.learning-practice-summary-count { color: #246d45; font-size: 20px; line-height: 1.4; }
.learning-practice-summary-detail { grid-column: 1 / -1; margin: 0; color: #617469; font-size: 14px; line-height: 1.6; }
.learning-practice-summary.is-empty .learning-practice-summary-count { color: #8a5d26; }
.learning-practice-setup-actions { justify-content: flex-end; margin: 0; }
.learning-practice-setup-actions .learning-primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 180px; min-height: 52px; padding: 11px 22px; border-radius: 10px; font-size: 17px; font-weight: 750; box-shadow: 0 4px 10px rgb(46 139 87 / 18%); }
.learning-practice-submit-icon { font-size: 14px; transition: transform .15s ease; }
.learning-practice-setup-actions .learning-primary-button:hover:not(:disabled) .learning-practice-submit-icon { transform: translateX(3px); }
body.io-black-mode .learning-practice-setup { border-color: #3e5145; background: linear-gradient(145deg, #202722 0%, #171a1e 100%); box-shadow: 0 10px 28px rgb(0 0 0 / 18%); }
body.io-black-mode .learning-workspace .learning-practice-setup-heading h2 { color: #e0eee4; }
body.io-black-mode .learning-practice-setup .learning-select-field > span { color: #b7c9bd; }
body.io-black-mode .learning-practice-setup .learning-select-field select { border-color: #454f48; background-color: #202722; }
body.io-black-mode .learning-practice-summary { border-color: #3b5142; background: #202e25; }
body.io-black-mode .learning-practice-summary-icon { background: #294333; color: #a8d8b6; }
body.io-black-mode .learning-practice-summary-label,
body.io-black-mode .learning-practice-summary-detail { color: #b2c7b8; }
body.io-black-mode .learning-practice-summary-count { color: #b8e2c4; }
body.io-black-mode .learning-practice-summary.is-empty { border-color: #594a36; background: #30291f; }
body.io-black-mode .learning-practice-summary.is-empty .learning-practice-summary-icon { background: #483a27; color: #e6c28e; }
body.io-black-mode .learning-practice-summary.is-empty .learning-practice-summary-count { color: #e6c28e; }
@media (max-width: 560px) {
  .learning-practice-setup { gap: 18px; padding: 18px; }
  .learning-practice-setup .learning-scope-fields { grid-template-columns: 1fr; }
  .learning-practice-summary { align-items: flex-start; gap: 11px; padding: 13px; }
  .learning-practice-summary-icon { flex-basis: 38px; width: 38px; height: 38px; }
  .learning-practice-summary-copy { grid-template-columns: 1fr; gap: 2px; }
  .learning-practice-setup-actions .learning-primary-button { width: 100%; }
}
.learning-review-records {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 30px);
  border-color: #dce5e9;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff 0%, #fbfcfd 100%);
  box-shadow: 0 10px 28px rgb(35 62 79 / 6%);
}
.learning-review-heading { display: grid; gap: 3px; }
.learning-review-eyebrow { color: #2874a6; font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.learning-workspace .learning-review-records .learning-panel-title { margin: 0 0 15px !important; color: #263c4a; font-size: 23px; line-height: 1.4; }
.learning-review-picker { align-items: end; gap: 10px 12px; margin: 0; }
.learning-review-picker .learning-select-field { flex: 1 1 210px; max-width: 320px; gap: 7px; }
.learning-review-picker .learning-select-field > span { color: #50616c; font-size: 14px; }
.learning-review-picker .learning-select-field select { min-height: 48px; border-radius: 9px; background: #f7f9fa; }
.learning-review-picker .learning-action-button { min-height: 48px; border-radius: 9px; background: #fff; }
.learning-review-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.learning-review-metric { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; border: 1px solid #dfe8ee; border-radius: 11px; background: #f5f9fc; }
.learning-review-metric.is-green { border-color: #dcebe1; background: #f3f9f4; }
.learning-review-metric.is-rose { border-color: #f0dfe0; background: #fcf5f5; }
.learning-review-metric-label { color: #64717b; font-size: 14px; font-weight: 650; }
.learning-review-metric-value { color: #28628d; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.learning-review-metric.is-green .learning-review-metric-value { color: #2e8051; }
.learning-review-metric.is-rose .learning-review-metric-value { color: #bd4a4a; }
.learning-review-note, .learning-review-storage { margin: 0 !important; }
.learning-review-note { color: #3e4a51; font-size: 15px; line-height: 1.65; }
.learning-review-storage { font-size: 13px; }
.learning-review-list-heading { display: flex; align-items: center; gap: 12px; margin: 30px 0 15px; }
.learning-workspace .learning-review-list-heading h2 { margin: 0 !important; font-size: 22px; line-height: 1.4; }
.learning-review-count { display: inline-flex; min-height: 28px; align-items: center; padding: 3px 10px; border: 1px solid #f0d9d8; border-radius: 999px; background: #fcf1f0; color: #a7413d; font-size: 13px; font-weight: 750; line-height: 1.4; }
.learning-wrong-card { margin: 0 0 14px; padding: clamp(17px, 2.5vw, 24px); border-color: #e1e5e9; border-radius: 13px; box-shadow: 0 4px 14px rgb(34 52 64 / 4%); }
.learning-wrong-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.learning-workspace .learning-wrong-card-heading h3 { margin: 0 0 15px !important; color: #263d4a; font-size: 19px; line-height: 1.45; }
.learning-wrong-badge { flex: 0 0 auto; padding: 4px 10px; border-radius: 999px; background: #fff1ed; color: #b54d3b; font-size: 12px; font-weight: 750; line-height: 1.5; }
.learning-wrong-prompt { margin: 0 0 10px !important; padding: 14px 16px; border-left: 3px solid #e28b52; border-radius: 0 9px 9px 0; background: #fbf7f2; color: #37434a; font-size: 16px; line-height: 1.7; }
.learning-wrong-date { margin: 0 0 14px !important; color: var(--learning-muted); font-size: 13px; line-height: 1.5; }
.learning-wrong-card .learning-panel-actions { gap: 9px; }
.learning-wrong-card .learning-primary-button, .learning-wrong-card .learning-action-button { min-height: 42px; border-radius: 8px; }
.learning-wrong-empty { display: flex; align-items: center; gap: 16px; margin: 0; padding: 22px 24px; border: 1px solid #dcebe1; border-radius: 13px; background: linear-gradient(110deg, #f2f8f3, #f8fbf8); }
.learning-wrong-empty-mark { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: #deefe2; color: #2e8051; font-size: 23px; font-weight: 800; }
.learning-wrong-empty-copy h3 { margin: 0 0 5px !important; color: #2b4835; font-size: 17px; line-height: 1.45; }
.learning-wrong-empty-copy p { margin: 0 !important; color: #64736a; font-size: 14px; line-height: 1.65; }
body.io-black-mode .learning-review-records { border-color: #3d4851; background: linear-gradient(145deg, #20252a 0%, #191d21 100%); box-shadow: 0 10px 28px rgb(0 0 0 / 18%); }
body.io-black-mode .learning-workspace .learning-review-records .learning-panel-title,
body.io-black-mode .learning-workspace .learning-wrong-card-heading h3 { color: #e2e8ec; }
body.io-black-mode .learning-review-picker .learning-select-field > span,
body.io-black-mode .learning-review-note { color: #c1cbd2; }
body.io-black-mode .learning-review-picker .learning-select-field select,
body.io-black-mode .learning-review-picker .learning-action-button { border-color: #454d56; background: #20252a; }
body.io-black-mode .learning-review-metric { border-color: #3c4c58; background: #202a32; }
body.io-black-mode .learning-review-metric.is-green { border-color: #3c5144; background: #202c25; }
body.io-black-mode .learning-review-metric.is-rose { border-color: #594044; background: #302226; }
body.io-black-mode .learning-review-metric-label,
body.io-black-mode .learning-review-storage { color: #aeb9c1; }
body.io-black-mode .learning-review-metric-value { color: #a9d2ec; }
body.io-black-mode .learning-review-metric.is-green .learning-review-metric-value { color: #a9d6b6; }
body.io-black-mode .learning-review-metric.is-rose .learning-review-metric-value { color: #e4aaaa; }
body.io-black-mode .learning-review-count { border-color: #5b4242; background: #352829; color: #efb6b2; }
body.io-black-mode .learning-wrong-card { border-color: #3e454d; box-shadow: 0 4px 14px rgb(0 0 0 / 12%); }
body.io-black-mode .learning-wrong-badge { background: #3a2926; color: #efaa98; }
body.io-black-mode .learning-wrong-prompt { border-left-color: #b97648; background: #282521; color: #dce1e5; }
body.io-black-mode .learning-wrong-empty { border-color: #3b5142; background: linear-gradient(110deg, #202d24, #1d2520); }
body.io-black-mode .learning-wrong-empty-mark { background: #294333; color: #a8d8b6; }
body.io-black-mode .learning-wrong-empty-copy h3 { color: #d7eadc; }
body.io-black-mode .learning-wrong-empty-copy p { color: #aabbb0; }
.learning-workspace .learning-select-field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23303236' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}
body.io-black-mode .learning-workspace .learning-select-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23dce1e5' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.7'/%3E%3C/svg%3E");
}
/* Chinese independent lesson titles: 25px from the breadcrumb rule and next block. */
html body .education-course-learning[data-manifest-id="primary-chinese-grade-1"].is-independent .learning-content-title,
html body .education-course-learning[data-manifest-id="primary-chinese-grade-2"].is-independent .learning-content-title,
html body .education-course-learning[data-manifest-id="primary-chinese-grade-3"].is-independent .learning-content-title,
html body .education-course-learning[data-manifest-id="primary-chinese-grade-4"].is-independent .learning-content-title,
html body .education-course-learning[data-manifest-id="primary-chinese-grade-6"].is-independent .learning-content-title,
html body .education-course-learning[data-manifest-id="junior-chinese-grade-7"].is-independent .learning-content-title,
html body .education-course-learning[data-manifest-id="junior-chinese-grade-8"].is-independent .learning-content-title,
html body .education-course-learning[data-manifest-id="junior-chinese-grade-9"].is-independent .learning-content-title,
html body .education-course-learning[data-manifest-id="highschool-chinese-grade-1"].is-independent .learning-content-title,
html body .education-course-learning[data-manifest-id="highschool-chinese-grade-11"].is-independent .learning-content-title {
  margin-top: 5px !important;
  margin-bottom: 25px !important;
}
html body .education-course-learning[data-manifest-id="highschool-chinese-grade-12"].is-independent .learning-content-title {
  margin-top: 5px !important;
  margin-bottom: 25px !important;
}
@media (max-width: 560px) {
  .learning-review-records { gap: 14px; padding: 18px; }
  .learning-review-metrics { gap: 7px; }
  .learning-review-metric { min-height: 75px; align-items: flex-start; flex-direction: column; justify-content: center; padding: 10px; }
  .learning-review-metric-label { font-size: 12px; }
  .learning-review-metric-value { font-size: 22px; }
  .learning-review-picker .learning-select-field { flex-basis: 100%; max-width: none; }
  .learning-review-picker .learning-action-button { width: 100%; justify-content: center; }
  .learning-review-list-heading { margin-top: 24px; }
  .learning-wrong-card-heading { flex-wrap: wrap; }
  .learning-wrong-empty { align-items: flex-start; padding: 17px; }
}


.education-course-learning[data-manifest-id="highschool-math-grade-11"] {
  --learning-accent: #008795;
  --learning-selected-bg: #e7f4f4;
  --learning-row-hover: #edf7f7;
}
.education-course-learning[data-manifest-id="highschool-math-grade-11"].is-independent .learning-content-title {
  margin: 5px 0 25px !important;
}
.education-course-learning[data-manifest-id="highschool-math-grade-11"] .learning-sidebar-summary {
  --learning-summary-color: #008795;
  background: #eff8f8;
}
.education-course-learning[data-manifest-id="highschool-math-grade-11"] .learning-math-hero-title {
  margin: 0 0 16px !important;
  font-size: clamp(25px, 4vw, 36px);
}
.education-course-learning[data-manifest-id="highschool-math-grade-11"] .learning-math-hero .learning-math-hero-kicker {
  margin: 0 0 12px;
  letter-spacing: .12em;
}
.education-course-learning[data-manifest-id="highschool-math-grade-11"] .learning-math-hero .learning-math-hero-context {
  margin: 20px 0 0;
}
body.io-black-mode .education-course-learning[data-manifest-id="highschool-math-grade-11"] .learning-sidebar-summary { --learning-summary-color: #75d0d0; background: #202e2e; }


.education-course-learning[data-manifest-id="highschool-math-grade-12"] {
  --learning-accent: #a57800;
  --learning-selected-bg: #faf4e8;
  --learning-row-hover: #fcf7ee;
}
.education-course-learning[data-manifest-id="highschool-math-grade-12"].is-independent .learning-content-title {
  margin: 5px 0 25px !important;
}
.education-course-learning[data-manifest-id="highschool-math-grade-12"] .learning-sidebar-summary {
  --learning-summary-color: #8c6500;
  background: #fbf6e9;
}
.education-course-learning[data-manifest-id="highschool-math-grade-12"] .learning-math-hero-title {
  margin: 0 0 16px !important;
  font-size: clamp(25px, 4vw, 36px);
}
.education-course-learning[data-manifest-id="highschool-math-grade-12"] .learning-math-hero .learning-math-hero-kicker {
  margin: 0 0 12px;
  letter-spacing: .12em;
}
.education-course-learning[data-manifest-id="highschool-math-grade-12"] .learning-math-hero .learning-math-hero-context {
  margin: 20px 0 0;
}
body.io-black-mode .education-course-learning[data-manifest-id="highschool-math-grade-12"] .learning-sidebar-summary { --learning-summary-color: #e4c979; background: #302b20; }

/* Keep the course overview colors consistent across all school levels. */
body .education-course-learning[data-manifest-id] .learning-sidebar-summary {
  --learning-summary-color: #7e57c2;
  border-color: #7e57c2;
  background: #f7f3fc;
  color: #7e57c2;
}
.education-course-learning .learning-sidebar-summary-title { color: #303236; }
.education-course-learning .learning-sidebar-summary-tags span { color: #7e57c2; }
body.io-black-mode .education-course-learning[data-manifest-id] .learning-sidebar-summary {
  --learning-summary-color: #d0b6f5;
  background: #292232;
  color: #d0b6f5;
}
body.io-black-mode .education-course-learning .learning-sidebar-summary-title { color: #e7e1ef; }
body.io-black-mode .education-course-learning .learning-sidebar-summary-tags span { color: #d0b6f5; }
