:root {
  color-scheme: light;
  --ink: #162d29;
  --muted: #4d6862;
  --accent: #087566;
  --accent-deep: #075447;
  --line: #dce7e3;
  --surface: #fff;
  --background: #f4f7f5;
  --soft: #eaf5f0;
  --sans: Inter, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --shadow: 0 2px 4px #16352a08, 0 14px 28px -24px #19443644;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body { margin: 0; background: var(--background); color: var(--ink); font: 16px/1.55 var(--sans); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: var(--accent-deep); }
:focus-visible { outline: 3px solid #128775; outline-offset: 3px; }
h1:focus, h2:focus, main:focus { outline: 0; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, strong { line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.053em; font-weight: 750; overflow-wrap: anywhere; }
h2 { font-size: 1.3rem; letter-spacing: -.035em; }
h3 { font-size: 1.06rem; letter-spacing: -.015em; }
.icon { display: inline-block; flex: none; width: 21px; height: 21px; vertical-align: middle; }
.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; background: white; border-radius: 8px; padding: 10px; z-index: 10; }
.rail { display: none; }
.mobile-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 17px; border-bottom: 1px solid var(--line); background: #fffffffa; z-index: 4; }
.brand { display: inline-flex; align-items: center; gap: 9px; padding: 0; border: 0; background: none; text-align: left; color: var(--ink); font-size: 1.11rem; font-weight: 800; line-height: 1; letter-spacing: -.037em; }
.brand b { font-weight: 650; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: .62rem; font-weight: 760; letter-spacing: .09em; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; color: #f1fffb; background: #106958; box-shadow: inset 0 0 0 1px #ffffff21; }
.brand-mark .icon { width: 20px; height: 20px; }
.head-editor { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; color: var(--accent-deep); background: #f9fcfa; }
.bottom-nav { position: fixed; z-index: 5; inset: auto 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 5px 8px max(5px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -5px 18px #223d2d09; }
.bottom-nav button, .rail nav button { border: 0; background: transparent; color: var(--muted); font-weight: 660; }
.bottom-nav button { min-height: 54px; display: grid; justify-items: center; align-content: center; gap: 3px; border-radius: 10px; font-size: .8rem; }
.bottom-nav button[aria-current] { background: var(--soft); color: var(--accent-deep); }
.main { max-width: 1080px; margin: 0 auto; padding: 24px 16px 90px; }
.main-question { max-width: 780px; }
.page-title { margin: 0 0 21px; }
.page-title > p { color: var(--muted); margin-top: 5px; }
.privacy-page { width: min(100%, 48rem); margin-inline: auto; padding: clamp(1rem, 4vw, 2rem) clamp(1rem, 4vw, 2rem) 3rem; }
.privacy-back { margin-bottom: 1.25rem; }
.privacy-content { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1rem, 4vw, 2rem); overflow-wrap: anywhere; }
.privacy-content section { border-top: 1px solid var(--line); margin-top: 1.25rem; padding-top: 1.25rem; }
.privacy-content h2 { margin-bottom: .6rem; }
.privacy-content ul { margin: 0 0 .7rem; padding-left: 1.25rem; }
.privacy-content li + li, .privacy-content p + p { margin-top: .55rem; }
.privacy-content a, .rail-privacy, .student-privacy a { text-underline-offset: .18em; }
.rail-privacy { display: flex; align-items: center; min-height: 44px; padding-inline: 12px; font-size: .875rem; }
.student-privacy a { display: inline-flex; align-items: center; min-height: 44px; }
.continue-card { position: relative; isolation: isolate; overflow: hidden; border-radius: 21px; padding: 22px 18px 20px; min-height: 248px; background: radial-gradient(ellipse at 100% 12%, #1b6055 0%, #10423c 41%, #143830 100%); color: #fff; box-shadow: 0 13px 28px -22px #133e34a1; }
.continue-copy { position: relative; z-index: 1; }
.continue-kicker { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; color: #c1e8db; font-size: .84rem; font-weight: 700; }
.continue-kicker .icon { width: 17px; height: 17px; }
.continue-card h2 { max-width: 390px; font-size: clamp(1.58rem, 5.5vw, 2.38rem); letter-spacing: -.05em; text-wrap: balance; }
.continue-subject { max-width: 90%; margin-top: 5px; color: #d3ece5; font-size: .89rem; }
.continue-progress { width: min(60%, 200px); min-width: 130px; margin: 11px 0 14px; }
.continue-progress span { color: #d3ece5; display: block; margin-bottom: 5px; font-size: .79rem; font-weight: 600; }
.progress { display: block; width: 100%; height: 6px; overflow: hidden; border: 0; border-radius: 10px; background: #e4eeea; color: var(--accent); }
.progress::-webkit-progress-bar { border-radius: 10px; background: #e4eeea; }
.progress::-webkit-progress-value { background: #168270; border-radius: 10px; }
.progress::-moz-progress-bar { background: #168270; border-radius: 10px; }
.continue-progress .progress, .continue-progress .progress::-webkit-progress-bar { background: #ffffff2d; }
.continue-progress .progress::-webkit-progress-value { background: #9ce4c8; }
.continue-progress .progress::-moz-progress-bar { background: #9ce4c8; }
.hero-chart { position: absolute; inset: auto -6px 7px auto; width: 50%; height: 108px; opacity: .73; z-index: -1; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 9px 14px; text-align: center; text-decoration: none; font-size: .92rem; font-weight: 690; line-height: 1.25; }
.primary { color: #fff; background: var(--accent); }
.primary:hover:not(:disabled) { background: var(--accent-deep); }
.secondary { color: var(--accent-deep); border-color: var(--line); background: #fff; }
.secondary:hover:not(:disabled) { background: var(--soft); border-color: #bbd9cf; }
.button:disabled { color: #4e7067; background: #e3eeea; opacity: .86; }
.hero-button { color: #153b31; background: #daf4dc; }
.hero-button:hover { background: #eefff0; }
.hero-button:focus-visible { outline-color: #effff3; }
.text-button, .back-button { color: var(--accent-deep); background: transparent; }
.text-button { padding-inline: 4px; white-space: nowrap; }
.back-button { justify-content: flex-start; text-align: left; margin: -6px 0 12px; padding-left: 0; }
.full { width: 100%; }
.home-tiles { display: grid; gap: 9px; margin: 13px 0 22px; }
.tile, .subject-row { display: flex; align-items: center; gap: 11px; width: 100%; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-align: left; box-shadow: var(--shadow); }
.tile { min-height: 71px; padding: 10px 12px; }
.tile:hover, .subject-row:hover { border-color: #a3c8bc; background: #fbfdfc; }
.tile:disabled { opacity: .68; }
.marker { flex: none; display: grid; place-items: center; width: 39px; height: 39px; border-radius: 10px; background: var(--soft); color: var(--accent-deep); }
.marker.mint, .marker.subject-pk { background: #e2f3ec; color: #0a6959; }
.marker.sand { background: #fbefe0; color: #804d24; }
.marker.blue, .marker.subject-bio { background: #e8effa; color: #335b91; }
.marker.subject-chem { background: #efebfb; color: #615191; }
.marker.subject-pharm { background: #faf0e4; color: #925823; }
.marker.subject-therapy { background: #f8eaf0; color: #964762; }
.tile-copy, .subject-copy { flex: 1; min-width: 0; }
.tile-copy strong, .subject-copy strong { display: block; font-size: .96rem; overflow-wrap: anywhere; }
.tile-copy > span, .subject-copy > span { display: block; margin-top: 3px; color: var(--muted); font-size: .83rem; line-height: 1.35; }
.tile-end, .row-end { width: 17px; height: 17px; margin-left: auto; color: #6b8b81; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.subject-list { display: grid; gap: 8px; }
.subject-row { min-height: 64px; padding: 10px 11px; }
.subject-meter { display: none; width: 15%; }
.source-link { font-size: .88rem; font-weight: 670; overflow-wrap: anywhere; text-underline-offset: 3px; }
.fine-print { color: var(--muted); font-size: .82rem; margin: 15px 0 5px; }
.bank-section, .exam-chapters { margin-top: 22px; }
.study-summary, .chapter-overview { display: grid; align-items: center; gap: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin: 0 0 19px; }
.study-summary > strong, .chapter-overview strong { color: var(--accent-deep); font-size: .88rem; }
.chapter-overview .progress { margin-top: 8px; }
.extra-chapters { margin-top: 12px; color: var(--muted); }
.extra-chapters summary { padding-block: 10px; cursor: pointer; font-weight: 650; }
.extra-chapters ul { margin: 0; padding-left: 20px; }
.extra-chapters li { margin-bottom: 5px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters label { min-width: 0; }
.filters select { min-height: 44px; max-width: 100%; border: 1px solid var(--line); background-color: #fff; color: var(--ink); border-radius: 9px; padding: 8px 10px; }
.filters select { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%234d6862' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
.result-count { color: var(--muted); margin: 13px 0 7px; font-size: .87rem; }
.question-list { display: grid; gap: 8px; }
.question-row { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 88px; background: #fff; border: 1px solid var(--line); padding: 11px; border-radius: 13px; }
.question-row-copy { min-width: 0; }
.question-row h3 { margin-top: 6px; overflow-wrap: anywhere; }
.question-row p { margin-top: 3px; font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
.question-row .button { flex: none; }
.tags { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.tag { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 7px; border-radius: 6px; font-size: .74rem; line-height: 1.2; font-weight: 720; }
.tag.priority { color: #295c4e; background: #e6f2eb; }
.tag.priority.P1 { color: #7c4820; background: #fbecd9; }
.tag.priority.P3 { color: #48617e; background: #e9f0f9; }
.tag.sample { color: #635668; background: #f2eef4; }
.tag.visual-tag { color: #0c6256; background: #e4f2ed; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; color: var(--muted); font-size: .86rem; }
.practice-card, .explanation { padding: 17px 14px; background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow); }
.practice-card h1 { margin: 13px 0; font-size: clamp(1.35rem, 4.8vw, 1.9rem); letter-spacing: -.033em; line-height: 1.27; }
.practice-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
.practice-top p { color: var(--muted); font-size: .89rem; font-weight: 700; }
.bookmark-button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--accent-deep); }
.bookmark-button[aria-pressed="true"] { border-color: #add1c5; background: var(--soft); }
.bookmark-button[aria-pressed="true"] svg { fill: #b9e5d4; }
.question-path { color: var(--muted); font-size: .84rem; margin: 11px 0 8px; }
.predict-start { display: flex; align-items: center; gap: 11px; margin: 0 0 12px; padding: 8px 11px; border-radius: 10px; background: #ebf6f1; color: var(--accent-deep); }
.predict-start strong { font-size: 1.28rem; min-width: 67px; }
.predict-start span { font-size: .79rem; line-height: 1.35; }
.options { display: grid; gap: 7px; min-width: 0; border: 0; margin: 0 0 13px; padding: 0; }
.option { position: relative; display: flex; gap: 10px; align-items: center; min-height: 47px; border: 1px solid #d9e7e2; border-radius: 10px; padding: 6px 9px; cursor: pointer; overflow-wrap: anywhere; }
.option:hover { border-color: #83b7a7; }
.option:has(input:focus-visible) { outline: 3px solid #128775; outline-offset: 2px; }
.option:has(input:checked) { border-color: #168270; background: #eaf6f1; }
.option:has(input:disabled) { cursor: default; }
.option input { position: absolute; opacity: 0; inset-inline-start: 11px; width: 20px; height: 20px; margin: 0; pointer-events: none; }
.option-letter { display: grid; flex: none; place-items: center; width: 27px; height: 28px; border-radius: 6px; background: #edf4f1; color: #355a50; font-size: .82rem; font-weight: 720; }
.option-text { flex: 1; line-height: 1.35; }
.option:has(input:checked) .option-letter { background: #117968; color: white; }
.option.correct { background: #e8f5ee; border-color: #77bca8; }
.option.incorrect:has(input:checked) { background: #fff2ec; border-color: #e5b2a2; }
.option.incorrect:has(input:checked) .option-letter { background: #913d2d; color: white; }
.option-state { flex: none; color: var(--accent-deep); }
.option.incorrect .option-state { color: #913d2d; }
.explanation { margin-top: 13px; scroll-margin-top: 6px; }
.result-banner { display: flex; align-items: center; gap: 10px; padding: 11px; border-radius: 11px; margin-bottom: 13px; background: var(--soft); color: var(--accent-deep); }
.result-banner.try-again { background: #fbefe5; color: #7c4820; }
.result-banner > span { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid currentColor; border-radius: 50%; }
.result-banner p { font-weight: 720; font-size: .86rem; }
.result-banner h2 { font-size: 1.25rem; }
.half-life { padding: 12px; background: #f1f8f5; border: 1px solid #d6eae2; border-radius: 12px; margin: 0 0 14px; }
.figure-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.figure-heading p { font-size: .82rem; color: var(--muted); margin-top: 3px; }
.figure-heading > span { padding: 5px 8px; border-radius: 8px; background: #d8efe6; color: #075e50; font-weight: 760; white-space: nowrap; }
.plot { margin-top: 5px; }
.plot canvas { display: block; width: 100%; height: 182px; }
.half-life figcaption { color: var(--muted); font-size: .82rem; margin: 2px 0 8px; }
.graph-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.graph-steps button { min-height: 44px; background: #fff; color: var(--accent-deep); border: 1px solid #c6e0d7; border-radius: 8px; font-weight: 730; }
.graph-steps button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.lesson-body h3 { margin: 13px 0 4px; }
.lesson-body > p { color: #35564d; }
.distractors { display: grid; gap: 8px; margin: 8px 0 11px; list-style: none; padding: 0; }
.distractors li { display: flex; gap: 8px; align-items: flex-start; color: #35564d; }
.distractors li > span { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; font-size: .78rem; background: #edf3f0; font-weight: 730; }
.distractors strong { color: var(--ink); }
.distractors p { font-size: .91rem; }
.source-line { margin: 11px 0; font-size: .88rem; }
.source-line strong { margin-right: 7px; }
.learn-more, .finish-mock { border: 1px solid var(--line); border-radius: 10px; margin: 13px 0; }
.learn-more summary, .finish-mock summary { min-height: 44px; cursor: pointer; padding: 9px 11px; color: var(--accent-deep); font-weight: 710; }
.learn-more > div, .finish-mock > p { padding: 0 11px 11px; }
.finish-mock .button { display: flex; width: calc(100% - 22px); margin: 0 11px 11px; }
.memory { margin-top: 10px; }
.memory strong { margin-right: 5px; }
.visual { padding: 12px; margin-top: 10px; background: #eff7f2; border-radius: 10px; }
.visual svg, .visual img { display: block; width: 100%; max-height: 290px; object-fit: contain; }
.visual input[type="range"] { display: block; width: 100%; min-height: 44px; accent-color: var(--accent); }
.tutor-wrap { background: #f3faf6; border: 1px solid #d7eae1; border-radius: 11px; margin-bottom: 13px; }
.tutor-trigger { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px; border: 0; border-radius: inherit; background: transparent; color: var(--ink); text-align: left; }
.tutor-trigger > span:nth-child(2) { flex: 1; }
.tutor-trigger strong, .tutor-trigger small { display: block; }
.tutor-trigger small { margin-top: 1px; font-size: .78rem; color: var(--muted); }
#tutor-panel { padding: 0 11px 11px; }
.tutor-context { font-size: .86rem; color: var(--muted); margin: 3px 0 9px; }
.tutor-prompts { display: flex; flex-wrap: wrap; gap: 6px; }
.prompt { border-color: #c8e1d6; color: var(--accent-deep); background: #fff; padding-inline: 9px; font-size: .83rem; }
.prompt[aria-pressed="true"] { background: #d9eee4; }
.tutor-response:not(:empty) { margin-top: 8px; padding: 9px; border-radius: 7px; background: #e4f2e9; font-size: .91rem; }
.lesson-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: #e9f0ec; }
.segment { color: var(--muted); }
.segment[aria-pressed="true"] { background: white; color: var(--accent-deep); box-shadow: var(--shadow); }
.empty { padding: 16px; color: var(--muted); }
.empty-state { padding: 23px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.empty-state h2 { margin-top: 9px; }
.empty-state p { color: var(--muted); margin: 4px 0 12px; }
.result-state h2 { font-size: 1.6rem; }
.exam-choices { display: grid; gap: 10px; }
.exam-card { display: flex; align-items: flex-start; gap: 11px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); }
.exam-card p { margin: 4px 0 9px; color: var(--muted); }
.exam-card .fine-print { margin-bottom: 0; }
.mock-time { display: flex; gap: 6px; align-items: center; padding: 4px 8px; border-radius: 8px; background: var(--soft); color: var(--accent-deep); font-weight: 750; font-variant-numeric: tabular-nums; }
.mock-tags { margin-top: 11px; }
.mock-stem { margin: 13px 0; overflow-wrap: anywhere; }
.toast { position: fixed; z-index: 10; bottom: calc(71px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 40px); padding: 9px 14px; border-radius: 10px; background: #183c32; color: white; box-shadow: 0 3px 13px #11312736; font-size: .9rem; }
.loading { padding: 20px; color: var(--muted); }

@media (min-width: 490px) {
  .main { padding-inline: 24px; }
  .continue-card { padding-inline: 25px; }
  .continue-card h2 { max-width: 63%; text-wrap: wrap; }
  .hero-chart { right: 15px; bottom: 24px; width: 42%; height: 145px; }
  .home-tiles { grid-template-columns: 1fr 1fr; }
  .chapter-overview { grid-template-columns: 1fr auto; }
  .practice-card, .explanation { padding: 20px; }
}
@media (min-width: 780px) {
  html { scroll-padding-top: 24px; }
  .shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
  .rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 17px 18px; background: var(--surface); border-right: 1px solid var(--line); }
  .rail > .brand { margin: 0 0 37px 4px; }
  .rail nav { display: grid; gap: 5px; }
  .rail nav button, .editor-link { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 9px 11px; border-radius: 9px; text-align: left; }
  .rail nav button[aria-current], .editor-link.active { color: var(--accent-deep); background: var(--soft); }
  .rail nav button:hover, .editor-link:hover { background: #f0f6f3; }
  .rail-end { margin-top: auto; }
  .editor-link { text-decoration: none; font-size: .9rem; font-weight: 680; }
  .rail-end p { margin: 9px 0 0 11px; color: var(--muted); font-size: .75rem; }
  .mobile-head, .bottom-nav { display: none; }
  .main { padding: 34px 30px 46px; }
  .continue-card { min-height: 247px; padding: 24px 26px 23px; }
  .hero-chart { width: 40%; height: 175px; inset: auto 24px 21px auto; }
  .home-tiles { margin: 15px 0 26px; gap: 12px; }
  .tile, .subject-row { padding-inline: 15px; }
  .subject-meter { display: block; }
  .exam-choices { grid-template-columns: 1fr 1fr; }
  .toast { bottom: 24px; }
  .plot canvas { height: 211px; }
}
@media (min-width: 1140px) {
  .shell { grid-template-columns: 245px minmax(0, 1fr); }
  .rail { padding-inline: 20px; }
  .main { padding-inline: 39px; }
}
@media (max-width: 350px) {
  .main { padding-inline: 11px; }
  .chapter-row .tag { max-width: 70px; }
  .question-row .button { padding-inline: 8px; }
}

.head-actions { display: flex; gap: 6px; align-items: center; }
.rail-course { display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; }
.rail-course .button { justify-content: flex-start; padding-left: 11px; }
.study-shortcuts, .course-actions { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 18px; }
.study-shortcuts .button { flex: 1 1 auto; }
.study-shortcuts .icon, .course-actions .icon { width: 17px; height: 17px; }
.course-section { margin: 20px 0; }
.course-section > p, .report-panel p, .lesson-exercises > p { color: var(--muted); margin-top: 5px; }
.concept-list { display: grid; gap: 7px; }
.concept-row {
  width: 100%; display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 9px 11px;
  text-align: left; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
}
.concept-row:hover { border-color: #a3c8bc; }
.concept-row h3 a, .focus-list a, .report-subject li a { color: var(--accent-deep); text-underline-offset: 3px; }
.concept-row p, .concept-row small { color: var(--muted); display: block; font-size: .82rem; margin-top: 3px; line-height: 1.3; }
.concept-copy { flex: 1; font-weight: 680; line-height: 1.35; overflow-wrap: anywhere; }
.lesson-reading { max-width: 750px; }
.lesson-links, .lesson-note, .lesson-exercises, .report-panel {
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  border-radius: 14px; padding: 14px; margin: 0 0 12px;
}
.lesson-reading h2 { font-size: 1.24rem; }
.lesson-links > p, .lesson-note > p { margin-top: 7px; color: var(--muted); }
.lesson-links ul { display: flex; gap: 7px; flex-wrap: wrap; list-style: none; padding: 0; margin: 9px 0 0; }
.lesson-chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 7px 10px; border: 1px solid #c4ded4;
  border-radius: 9px; background: var(--soft); color: var(--accent-deep); font-size: .91rem; font-weight: 660;
  text-decoration: none; line-height: 1.25;
}
.lesson-chip:hover { border-color: #8bbbae; }
.concept-terms { margin: 12px 0 0; border-top: 1px solid var(--line); }
.concept-terms > div { display: grid; gap: 3px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.concept-terms dt { font-weight: 720; line-height: 1.35; }
.concept-terms dd { margin: 0; color: var(--muted); }
.memory-tip { display: flex; gap: 9px; align-items: flex-start; padding: 10px; margin-top: 13px; border-radius: 9px; background: #f8f1e3; color: #5a421f; }
.memory-tip h3 { font-size: .95rem; }
.memory-tip p { margin-top: 3px; }
.question-concept-list { margin-top: 10px; }
.question-concept-list .concept-row { background: #fafcfb; }
.reading-list { display: grid; gap: 7px; list-style: disc; padding-left: 20px; }
.reading-list a { text-underline-offset: 3px; overflow-wrap: anywhere; }
.walkthrough { padding: 9px 0 10px; }
.walkthrough h3 { margin-top: 0; }
.walkthrough-steps { display: flex; gap: 5px; flex-wrap: wrap; margin: 9px 0 7px; }
.walkthrough-steps button, .mock-grid button {
  min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px;
  background: #fff; color: var(--accent-deep); font-size: .83rem; line-height: 1.2; font-weight: 670;
}
.walkthrough-steps button[aria-pressed="true"], .mock-controls button[aria-pressed="true"] { background: #ddf1e8; border-color: #89bbb0; }
.walkthrough-steps button span { font-weight: 810; }
.walkthrough-answer { padding: 10px; border-radius: 8px; background: var(--soft); margin-bottom: 7px; }
.walkthrough-answer p { margin-top: 5px; }
.card-choices { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.card-choices label { display: grid; gap: 4px; color: var(--muted); font-size: .9rem; max-width: 100%; }
.card-choices select { min-height: 44px; max-width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 8px; background: white; color: var(--ink); }
.flip-top { display: flex; justify-content: space-between; gap: 6px; font-weight: 680; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.flip-card { display: grid; align-content: center; justify-items: start; gap: 12px; margin-top: 14px; padding: 19px 16px; min-height: 218px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.flip-card.flipped { background: #eef8f3; border-color: #cce6dc; }
.flip-lesson { color: var(--accent-deep); font-weight: 700; font-size: .86rem; text-underline-offset: 3px; }
.flip-card h2 { max-width: 26ch; font-size: clamp(1.35rem, 4.6vw, 2.2rem); }
.flip-answer { color: var(--ink); }
.card-ratings { margin-bottom: 0; }
.report-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.report-metrics > div { display: grid; gap: 4px; min-height: 82px; align-content: start; padding: 8px; border: 1px solid var(--line); background: #fff; border-radius: 9px; }
.report-metrics strong { font-size: 1.35rem; color: var(--accent-deep); }
.report-metrics span { color: var(--muted); font-size: .77rem; line-height: 1.3; }
.report-panel .button { margin-top: 9px; }
.focus-list, .report-subject ul { list-style: none; margin: 7px 0 0; padding: 0; }
.focus-list li, .report-subject li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.focus-list span, .report-subject li > span { flex: none; max-width: 40%; color: var(--muted); text-align: right; font-size: .82rem; }
.report-subject { margin-top: 7px; border-top: 1px solid var(--line); }
.report-subject summary { cursor: pointer; min-height: 48px; padding-block: 8px; }
.report-subject summary span { color: var(--muted); display: block; padding-left: 15px; font-size: .83rem; }
.report-subject li small { display: block; color: var(--muted); }
.full-mock-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 11px; }
.full-mock-card { min-width: 0; display: grid; grid-template-columns: 1fr; gap: 8px; padding: 10px; }
.full-mock-card p { font-size: .84rem; }
.mock-resume-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.mock-resume-banner > div { flex: 1 1 128px; }
.mock-resume-banner p { color: var(--muted); font-size: .85rem; }
.exam-instructions ul { padding-left: 20px; margin-top: 8px; }
.exam-instructions li { margin-bottom: 5px; }
.mock-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); gap: 5px; margin: 0 10px 10px; }
.mock-grid button { position: relative; }
.mock-grid button.is-answered { background: #e5f3ed; border-color: #9dcab9; }
.mock-grid button.is-flagged::after { position: absolute; top: 5px; right: 5px; content: ""; width: 6px; height: 6px; border-radius: 50%; background: #a35828; }
.mock-grid button[aria-current="step"] { border: 2px solid var(--accent); }
.mock-review-switch { margin: 9px 0; }
@media (min-width: 520px) {
  .full-mock-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .full-mock-card { display: flex; }
  .lesson-links, .lesson-note, .lesson-exercises, .report-panel { padding: 18px; }
  .concept-terms > div { grid-template-columns: 1fr 2fr; gap: 12px; }
}
@media (min-width: 950px) {
  .full-mock-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .full-mock-card { display: grid; }
}

.student-view {
  display: grid;
  gap: 12px;
  max-width: 710px;
}
.student-view .page-title { margin-bottom: 0; }
.student-view :where(h2, h3, p) { margin: 0; }
.student-view :where(button, input, select) { font: inherit; }
.student-view :where(input, select, button):focus-visible { outline: 2px solid var(--accent, #087566); outline-offset: 3px; }
.student-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line, #dce7e3);
  border-radius: 14px;
  background: var(--surface, #fff);
  box-shadow: var(--shadow, 0 2px 4px #16352a08);
}
.student-card h2 { font-size: 1.25rem; }
.student-card p { color: var(--muted, #4d6862); font-size: .93rem; }
.student-auth { max-width: 480px; }
.student-form { display: grid; gap: 12px; }
.student-form label {
  display: grid;
  min-width: 0;
  gap: 4px;
  color: var(--ink, #162d29);
  font-size: .9rem;
  font-weight: 650;
}
.student-form :where(input:not([type=checkbox]), select) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 7px 9px;
  border: 1px solid var(--line, #dce7e3);
  border-radius: 9px;
  color: var(--ink, #162d29);
  background: var(--surface, #fff);
  font-size: 1rem;
  font-weight: 400;
}
.student-form input[type=checkbox] { width: 20px; height: 20px; margin: 0; accent-color: var(--accent, #087566); }
.student-form .student-check { grid-template-columns: auto 1fr; align-items: center; min-height: 44px; gap: 8px; line-height: 1.3; }
.student-form small { margin-top: -7px; color: var(--muted, #4d6862); font-size: .8rem; }
.student-error:empty { display: none; }
.student-error { border-radius: 8px; padding: 8px; color: #772919; background: #fff1ec; font-size: .9rem; }
.student-button, .student-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 7px 11px;
  border: 1px solid var(--line, #dce7e3);
  border-radius: 8px;
  background: var(--surface, #fff);
  color: var(--accent-deep, #075447);
  text-align: center;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 690;
  line-height: 1.25;
}
.student-link { padding-inline: 6px; border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.student-link:hover, .student-button:hover { border-color: #a9d3c5; background: var(--soft, #eaf5f0); }
.student-primary { border-color: var(--accent, #087566); background: var(--accent, #087566); color: #fff; }
.student-primary:hover { border-color: var(--accent-deep, #075447); background: var(--accent-deep, #075447); }
.student-button:disabled, .student-link:disabled { opacity: .55; cursor: wait; }
.student-actions, .student-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.student-summary { justify-content: space-between; }
.student-summary h2 { overflow-wrap: anywhere; }
.student-summary p { margin-top: 4px; }
@media (min-width: 490px) {
  .student-card { padding: 20px; }
}

.answer-figure {
  overflow: hidden;
  margin: 12px 0 14px;
  padding: 10px;
  border: 1px solid #d3e7de;
  border-radius: 12px;
  background: #f1f8f4;
}
.lesson-body .answer-figure h3 { margin: 0 0 6px; }
.answer-figure .figure-heading h3 { margin-bottom: 2px; }
.answer-figure figcaption { color: #385d52; font-size: .88rem; line-height: 1.45; margin: 7px 0 0; }
.answer-canvas { display: block; width: 100%; height: clamp(140px, 32vw, 179px); border-radius: 8px; }
.answer-photo img { display: block; width: 100%; height: auto; max-height: 260px; border-radius: 8px; object-fit: contain; background: #e4efe8; }
.answer-photo:not(.question-image) img { aspect-ratio: 3 / 2; }
.question-image img { max-height: 290px; }
.answer-motion-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 5px 0 7px; }
.answer-motion-controls .motion-control { min-height: 44px; padding-inline: 9px; font-size: .86rem; }
.answer-motion-controls .text-button:disabled { background: transparent; color: #5b736c; opacity: .68; }
.answer-summary, .answer-example { margin-bottom: 12px; }
.practice-hint { border-top: 1px solid var(--line); margin-top: 9px; }
.practice-hint summary { min-height: 44px; padding: 10px 0 5px; cursor: pointer; color: var(--accent-deep); font-weight: 680; }
.practice-hint p { color: var(--muted); padding: 0 0 5px; }
.practice-actionbar {
  display: grid;
  grid-template-columns: minmax(90px, auto) minmax(110px, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 -4px 18px #253e310f;
  margin-top: 11px;
}
.practice-actionbar p { color: var(--muted); font-size: .83rem; font-weight: 670; line-height: 1.25; }
.practice-actionbar .button { font-size: .91rem; }
.is-practice .lesson-body .visual { margin-bottom: 14px; }
@media (max-width: 779px) {
  .is-practice .bottom-nav { display: none; }
  .is-practice .main-question { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .is-practice .mobile-head { height: 52px; }
  .is-practice .head-actions { display: none; }
  .is-practice .main { padding-top: 12px; }
  .is-practice .back-button { margin-bottom: 4px; }
  .is-practice .practice-card, .is-practice .explanation { padding: 12px; }
  .is-practice .practice-card h1 { margin-block: 10px; }
  .is-practice .option { min-height: 44px; }
  .is-practice .practice-actionbar {
    position: fixed; z-index: 5; inset: auto 0 0;
    border: 0; border-top: 1px solid var(--line); border-radius: 0;
    padding: 7px 12px max(8px, env(safe-area-inset-bottom));
    margin: 0;
  }
  .is-practice .explanation { scroll-margin-top: -17px; }
}
@media (min-width: 780px) {
  .practice-actionbar { position: sticky; z-index: 3; bottom: 9px; grid-template-columns: 1fr minmax(180px, 260px); }
}

.focus-builder {
  max-width: 760px;
  padding: clamp(16px, 4vw, 27px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.focus-builder-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
}
.focus-builder-heading h2 { margin: 0; }
.focus-builder-fields {
  display: grid;
  gap: 12px;
}
.focus-builder-fields label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--ink);
  font-weight: 680;
}
.focus-builder-fields select {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 450;
}
.focus-builder-actions {
  display: grid;
  gap: 13px;
  margin-top: 17px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.focus-builder-actions p { margin: 0; }
.focus-builder-actions strong,
.focus-builder-actions span { display: block; }
.focus-builder-actions p span { margin-top: 3px; color: var(--muted); }
.focus-builder-actions .button { min-height: 44px; }
@media (min-width: 570px) {
  .focus-builder-fields { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, .8fr); }
  .focus-builder-actions { grid-template-columns: 1fr auto; align-items: center; }
}

.exam-study-tools { margin: 16px 0 21px; }
.question-stimulus {
  margin: 10px 0 14px; padding: 11px; border: 1px solid #d2e6de;
  border-radius: 11px; background: #f3f9f6;
}
.question-stimulus figcaption { margin-bottom: 7px; color: var(--accent-deep); font-size: .92rem; font-weight: 730; }
.stimulus-scroll { overflow-x: auto; }
.question-stimulus table { width: 100%; border-collapse: collapse; color: var(--ink); font-size: .86rem; line-height: 1.35; }
.question-stimulus th, .question-stimulus td { padding: 6px 7px; text-align: left; border-bottom: 1px solid #d7e9e1; }
.question-stimulus thead th { background: #e4f2eb; color: #275447; }
.question-stimulus tbody th { font-weight: 650; }
.question-stimulus tbody tr:last-child > * { border-bottom: 0; }
.stimulus-chart { padding: 7px; margin-bottom: 8px; border-radius: 7px; background: #fff; }
.stimulus-chart-unit { display: block; color: var(--muted); font-size: .77rem; font-weight: 720; margin-bottom: 2px; }
.stimulus-bar-row { display: grid; grid-template-columns: 35px minmax(40px, 1fr) 24px; gap: 5px; align-items: center; min-height: 19px; font-size: .78rem; font-variant-numeric: tabular-nums; }
.stimulus-bar-track { height: 8px; border-radius: 4px; background: #e8f2ee; }
.stimulus-bar-track i { display: block; height: 100%; width: var(--bar); border-radius: inherit; background: #328a76; }
.mock-tools-body { padding: 0 11px 10px; }
.mock-tools-body label { display: block; color: var(--accent-deep); font-size: .87rem; font-weight: 700; }
.mock-tools-body textarea { display: block; width: 100%; margin-top: 5px; min-height: 78px; resize: vertical; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.mock-tools-body .fine-print { margin: 7px 0; }
.mock-eliminations { display: flex; gap: 6px; flex-wrap: wrap; }
.mock-eliminations .button { min-width: 44px; }
.mock-eliminations .button[aria-pressed="true"] { border-color: #9dcabb; background: #e7f4ee; text-decoration: line-through; }
.option-crossed .option-text { text-decoration: line-through 2px; color: #536963; }
.diagnostic-scores { list-style: none; padding: 0; margin: 9px 0 12px; }
.diagnostic-scores li { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding: 7px 0; font-size: .9rem; }
.diagnostic-scores li > span { flex: none; color: var(--accent-deep); font-weight: 650; }
