@font-face {
  font-family: Outfit;
  src: url('fonts/outfit-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url('fonts/manrope-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
:root {
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  color: #193f5b;
  background: #edf9ff;
  --ink: #173f5b;
  --muted: #57758a;
  --blue: #126fa7;
  --blue-dark: #095b90;
  --line: #cee8f5;
  --sky: #e0f4ff;
  --panel: #fff;
}
body { background: #edf9ff; }
button, input, select, textarea { font-family: Manrope, ui-sans-serif, system-ui, sans-serif; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline-color: #167dbc; }
.topbar {
  background: linear-gradient(105deg,#e7f8ff 0%,#d7f1ff 60%,#c5eaff 100%);
  color: var(--ink);
  border-bottom: 1px solid #b9e1f2;
  box-shadow: 0 7px 25px #3e9cc311;
}
.brand { font-family: Outfit, Manrope, sans-serif; font-size: 23px; letter-spacing: -.04em; font-weight: 650; }
.topbar .brand, .footer-brand { text-decoration: none; }
.topbar .brand:hover .brand-mark, .footer-brand:hover .brand-mark { transform: translateY(-2px); box-shadow: 0 7px 17px #288fbc4d; }
.brand-mark { transition: transform .18s ease, box-shadow .18s ease; }
.brand strong { color: #0879b4; font-weight: 780; }
.brand small { color: #5689a5; letter-spacing: .20em; font-family: Manrope,sans-serif; font-size: 9px; }
.brand-mark { background: #fff; color: #0c83b8; border-color: #b3e4f7; border-radius: 13px; box-shadow: 0 4px 14px #54aac433; }
.topnav a { color: #4c7792; }
.topnav a:hover, .topnav a.active { color: #155d86; }
.topnav a.active:after { background: #167fbc; border-radius: 3px 3px 0 0; }
.top-pill { border-color: #a9d9ef; background: #ffffffa8; color: #2b749d; }
.app-grid { background: #edf9ff; }
.sidebar { background: #e6f6ff; border-color: #cbe7f5; }
.eyebrow, .control-label, .card-eyebrow { color: #237faa; }
.sidebar h2, .lesson-head h1, .exercise h2, .section-heading h2, .rubric h3,
.method-grid h3, .progress-top strong { font-family: Outfit, Manrope, sans-serif; }
.sidebar h2 { color: var(--ink); font-size: 28px; font-weight: 680; }
.sidebar-head p, .level-row p, .lesson-head p { color: var(--muted); }
.search { background: #fff; color: var(--ink); border-color: #b8ddeb; border-radius: 12px; }
.search:focus { border-color: #1686bd; }
.search::placeholder { color: #688ca0; }
.topic-list { scrollbar-color: #9ccce3 transparent; }
.topic-group { color: #4884a2; padding-top: 18px; }
.topic-btn { padding: 8px; align-items: center; border-radius: 13px; gap: 10px; color: #345a73; }
.topic-btn:hover { background: #f8fdff; }
.topic-btn.selected { background: #fff; color: #0d628e; box-shadow: 0 3px 15px #5ba8cb24; }
.topic-thumb { width: 48px; height: 48px; flex: none; object-fit: cover; border-radius: 11px; border: 1px solid #c6e3ed; background: #d7eef8; }
.topic-text { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.topic-btn .number { font-size: 10px; color: #4f92b4; font-weight: 800; letter-spacing: .07em; padding: 0; }
.topic-btn.selected .number { color: #177db0; }
.topic-btn .topic-name { display: block; font-size: 13px; line-height: 1.33; font-weight: 650; }
.sidebar-foot { color: #5a87a0; }
.foot-line { background: linear-gradient(90deg,#218cc2 0 34%,#beddeb 34% 100%); }
.main { background: radial-gradient(circle at 95% 4%,#d7f3ff 0,transparent 38%),linear-gradient(#f2fbff,#edf9ff); }
.lesson-head { display: grid; grid-template-columns: minmax(0,1fr) minmax(170px,36%); align-items: center; gap: 23px; margin-bottom: 25px; }
.lesson-head .head-copy { min-width: 0; }
.lesson-head h1 { color: #143c58; font-weight: 650; letter-spacing: -.045em; font-size: clamp(30px,2.65vw,43px); line-height: 1.08; margin: 9px 0 10px; }
.lesson-head p { line-height: 1.65; max-width: 580px; }
.path-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 17px; }
.path-pills span { background: #dff4ff; color: #1c75a1; border: 1px solid #c5e8f6; border-radius: 99px; padding: 5px 10px; font-size: 11px; font-weight: 800; }
.lesson-image { position: relative; margin: 0; height: 183px; min-width: 0; border-radius: 20px; overflow: hidden; box-shadow: 0 14px 33px #4693b729; border: 4px solid #fff; }
.lesson-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lesson-image figcaption { position: absolute; left: 0; bottom: 0; width: 100%; color: #fff; background: linear-gradient(transparent,#153e5dbb); padding: 25px 14px 10px; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.syllabus-strip { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin: -4px 0 22px; padding: 18px 22px; background: linear-gradient(110deg,#f9fdff,#e5f6ff); border: 1px solid #cbe8f7; border-radius: 18px; box-shadow: 0 7px 24px #6fb7d11a; }
.syllabus-strip h2 { font: 650 21px/1.2 Outfit,Manrope,sans-serif; color: #1b536f; margin: 3px 0 5px; }
.syllabus-strip p { margin: 0; font-size: 12px; line-height: 1.55; color: #557a90; max-width: 510px; }
.download-actions { display: flex; gap: 8px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.download-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; border-radius: 10px; background: #147bb4; color: #fff; text-decoration: none; font-weight: 750; font-size: 12px; white-space: nowrap; }
.download-link:hover { background: #0c6499; }
.download-link span { font-size: 18px; line-height: .7; }
.download-link.secondary-download { background: #e8f6fd; color: #146b9a; border: 1px solid #b7deef; }
.download-link.secondary-download:hover { background: #d7effb; }
.selection, .workspace-card, .insight-card { background: var(--panel); border-color: var(--line); box-shadow: 0 8px 26px #559ec41a; }
.selection { border-radius: 20px; }
.level-row { border-color: #e0f0f8; }
.level-switch { background: #e3f4fc; border-radius: 11px; }
.level-switch button { color: #4b7891; }
.level-switch button[aria-pressed=true] { background: #156da5; color: #fff; box-shadow: 0 4px 11px #267fad40; }
.stage-btn { background: #f5fbff; border-color: #d4eaf5; border-radius: 12px; color: #557790; }
.stage-btn:hover { border-color: #80c9ed; }
.stage-btn.active { background: #dff3ff; color: #145f8d; border-color: #70bde1; box-shadow: inset 0 0 0 1px #94d3ef; }
.stage-btn .stage-num { font-family: Outfit, sans-serif; color: #7aa8c1; }
.stage-btn.active .stage-num { color: #1777ad; }
.workspace-card { border-radius: 20px; }
.skills { border-color: #e1f0f8; }
.skill-btn { color: #688a9f; }
.skill-btn:hover, .skill-btn[aria-selected=true] { color: #146fa8; }
.skill-btn[aria-selected=true] { border-color: #248bc3; }
.skill-btn .skill-tick { color: #168c9c; }
.exercise-kicker, .questions-heading { color: #187eaf; }
.exercise h2 { color: #183f5b; font-weight: 650; font-size: 30px; }
.exercise-intro { color: #52738a; line-height: 1.7; margin-bottom: 16px; }
.small-tag { color: #186f9c; background: #e3f4ff; border-radius: 99px; padding: 6px 11px; }
.exercise-visual { display: flex; align-items: stretch; margin: 8px 0 20px; background: #e8f7ff; border: 1px solid #d4eefa; border-radius: 14px; overflow: hidden; min-height: 110px; }
.exercise-visual img { width: 170px; height: 110px; display: block; object-fit: cover; flex: none; }
.exercise-visual figcaption { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 12px 20px; min-width: 0; }
.exercise-visual figcaption span { font-size: 10px; letter-spacing: .16em; font-weight: 850; color: #2b88b3; }
.exercise-visual figcaption strong { font: 600 18px/1.2 Outfit, sans-serif; color: #1c5675; }
.exercise-visual figcaption small { font-size: 11px; color: #5a819a; }
.task-list { display: grid; gap: 14px; margin: 20px 0; }
.oral-task, .response-task { border: 1px solid #cee8f5; background: #fcfeff; border-radius: 13px; padding: 17px 18px; box-shadow: 0 3px 10px #3895bd0b; }
.task-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.task-number { font: 780 11px/1.3 Outfit,Manrope,sans-serif; color: #0f7cae; letter-spacing: .12em; }
.task-status { color: #517d91; font-size: 11px; font-weight: 750; }
.oral-task p { margin: 0 0 13px; line-height: 1.7; color: #31566e; }
.oral-task .secondary-action:disabled { background: #e8f6f6; color: #328493; cursor: default; }
.response-task label { display: block; color: #31566e; font-size: 14px; font-weight: 660; line-height: 1.7; margin-bottom: 10px; }
.response-task .task-text { min-height: 120px; }
.task-feedback:empty { display: none; }
.task-feedback { margin-top: 10px; }
.video-panel { border-radius: 17px; overflow: hidden; border: 1px solid #b9e0f2; background: #e5f5ff; margin: 19px 0; }
.media-subheading { margin: 26px 0 12px; color: #1578a7; font: 780 12px/1.4 Outfit,Manrope,sans-serif; letter-spacing: .12em; }
.video-frame { width: 100%; aspect-ratio: 16/9; background: #163c5b; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 14px 18px; align-items: baseline; }
.video-meta strong { color: #194d6b; font: 620 16px Outfit,Manrope,sans-serif; }
.video-meta span { color: #5d849a; font-size: 12px; }
.video-meta a { display: block; flex-basis: 100%; color: #126a99; font-weight: 720; font-size: 12px; }
.learning-text, .reading-passage { background: #f3faff; border-left-color: #58b5df; color: #2d5369; }
.case-text { background: #e9f7ff; border-color: #cae8f8; color: #265271; }
.vocab-card, .question-block { border-color: #d8eaf3; background: #fcfeff; border-radius: 12px; }
.vocab-card strong, .question { color: #174763; }
.vocab-card p, .checklist ul { color: #54768b; }
.question-number { font-family: Outfit,sans-serif; color: #2081b4; }
.option { border-color: #d2e7f2; border-radius: 10px; }
.option:hover:not(:disabled) { border-color: #79c4e8; background: #f0faff; }
.option .option-letter { background: #e6f4fc; color: #4e85a2; }
.audio-panel, .hint-strip, .rating-fieldset { background: #f1faff; border-color: #d8edf7; }
.play-btn, .primary-action { background: #137bb2; border-radius: 10px; }
.play-btn:hover, .primary-action:hover { background: #0d679a; }
.secondary-action { color: #176b9b; border-color: #bfdff0; border-radius: 10px; }
.secondary-action:hover { background: #eaf7ff; }
.text-area { border-color: #c9e4f1; background: #fcfeff; }
.text-area:focus { outline-color: #64b8df; }
.below-work p { color: #648296; }
.text-action { color: #176fa5; }
.insight { background: #e8f7ff; border-color: #cbe7f4; }
.insight-card { border-radius: 16px; }
.progress-top strong { color: var(--ink); font-size: 33px; }
.progress-track { background: #daecf7; }
.progress-track span { background: #2691c8; }
.term-helper { color: #67899d; font-size: 11px; line-height: 1.55; margin: 8px 0 2px; }
.term-image { display: block; width: 100%; height: 94px; object-fit: cover; border-radius: 11px; margin-top: 12px; }
.term { border-color: #e3f0f7; }
.term strong { color: #1a5474; }
.term span, .mini-step { color: #587c91; }
.mini-step b { font-family: Outfit,sans-serif; color: #237fac; }
.method-section { background: linear-gradient(160deg,#dff4ff,#e9f9ff 60%,#f2fbff); border-color: #c6e8f7; }
.section-heading h2 { color: #173f5b; font-weight: 650; }
.section-heading p { color: #52778d; }
.method-grid article { padding: 0; overflow: hidden; min-height: 0; border: 1px solid #cbe6f3; box-shadow: 0 8px 28px #499bc21c; border-radius: 17px; }
.method-grid article>img { display: block; width: 100%; height: 164px; object-fit: cover; }
.method-body { padding: 21px 23px 23px; display: flex; flex-direction: column; flex: 1; }
.method-num { font-family: Outfit,sans-serif; color: #2288bc; }
.method-grid h3 { color: #204a67; font-weight: 630; margin: 7px 0 9px; }
.method-grid p { color: #57788d; }
.method-outcome { border-color: #e2eef6; color: #1d78a6; padding-top: 15px; margin-top: 22px; }
.rubric { background: linear-gradient(120deg,#d1efff,#bfe6f9); color: #1b4968; border: 1px solid #aeddf1; border-radius: 18px; }
.rubric .eyebrow { color: #227fac; }
.rubric h3 { font-weight: 650; }
.rubric p, .rubric ul { color: #456e87; }
footer { background: #d8f0fc; color: #456e85; border-top: 1px solid #b9e1f3; }
.footer-brand { color: #153f5d; }
footer h3 { color: #1a4e6d; }
footer a { color: #176fa0; }
.toast { background: #155578; }
@media(max-width:1210px) {
  .main { padding: 30px 28px 44px; }
  .lesson-image { height: 172px; }
  .syllabus-strip { align-items: flex-start; flex-direction: column; }
  .download-actions { justify-content: flex-start; }
}
@media(max-width:780px) {
  .brand { font-size: 20px; }
  .main { padding: 24px 19px 40px; }
  .mobile-topic label { color: #167bab; }
  .mobile-topic select { border-color: #bcddec; color: #285a74; border-radius: 11px; }
  .lesson-head { grid-template-columns: minmax(0,1fr) minmax(170px,34%); }
}
@media(max-width:530px) {
  .brand { font-size: 18px; }
  .topnav a:nth-child(3) { display: none; }
  .lesson-head { display: flex; flex-direction: column; align-items: stretch; gap: 17px; }
  .lesson-head h1 { font-size: 31px; }
  .lesson-image { width: 100%; height: 190px; }
  .path-pills { margin-top: 13px; }
  .stage-btn { background: #f5fbff; }
  .exercise h2 { font-size: 25px; }
  .exercise-visual { min-height: 96px; }
  .exercise-visual img { width: 112px; height: auto; }
  .exercise-visual figcaption { padding: 9px 12px; }
  .exercise-visual figcaption strong { font-size: 15px; }
  .method-grid article>img { height: 170px; }
  .syllabus-strip { padding: 15px; }
  .download-actions { width: 100%; }
  .download-link { width: 100%; }
  .oral-task, .response-task { padding: 13px; }
  .video-meta { padding: 12px; }
}
@media(max-width:390px) {
  .topbar { gap: 9px; padding: 0 12px; }
  .brand { font-size: 16px; }
  .topnav a:first-child { display: none; }
}
