@font-face {
  font-family: "Source Sans 3";
  src: url(./fonts/SourceSans3-variable.woff2) format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url(./fonts/IBMPlexMono-Regular.ttf) format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --header-h:68px;
  --reading-width:42rem;
  --lesson-width:48rem;
  color-scheme: light;
  --bg:#f5f7fa;
  --paper:#fff;
  --ink:#182b3a;
  --muted:#566675;
  --line:#d8e0e7;
  --accent:#145a86;
  --accent-soft:#eef5fa;
  --green:#145a86;
  --good:#206443;
  --bad:#a72e35;
  --warn:#8a570f;
  --font-sans:"Source Sans 3","Segoe UI",sans-serif;
  --font-mono:"IBM Plex Mono",Consolas,monospace;
  font: 17px/1.7 var(--font-sans);
  font-synthesis: none;
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 120px;
}
body {
  margin: 0;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
h5,
p,
figure {
  margin-top: 0;
}
h1 {
  font-size: clamp(1.65rem, 2.1vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -.025em;
  font-weight: 650;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.4rem;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -.015em;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.13rem;
  line-height: 1.4;
  font-weight: 650;
  margin-bottom: 12px;
}
h4,
h5 {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 10px;
}
p {
  margin-bottom: 20px;
}
a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  outline-offset: 4px;
}
:focus-visible {
  outline: 3px solid var(--accent);
}
button,
.button-link {
  cursor: pointer;
  color: var(--accent);
  background: #fff;
  border: 1px solid #98b2c4;
  border-radius: 5px;
  padding: 9px 16px;
  line-height: 1.45;
  font-size: .94rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
}
button:hover:not(:disabled),
.button-link:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  text-decoration: none;
}
button:disabled {
  opacity: .6;
  cursor: default;
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.primary:hover:not(:disabled) {
  background: #104768;
  color: #fff;
}
.small {
  font-size: .85rem;
  padding: 7px 12px;
  min-height: 36px;
}
input:not([type=checkbox], [type=radio], [type=range]),
select,
textarea {
  background: #fff;
  color: var(--ink);
  border: 1px solid #a8b9c6;
  border-radius: 4px;
  min-height: 44px;
  padding: 9px 12px;
  max-width: 100%;
}
input[type=range],
input[type=checkbox],
input[type=radio] {
  accent-color: var(--accent);
}
label {
  line-height: 1.55;
}
summary {
  cursor: pointer;
}
ul,
ol {
  padding-left: 24px;
}
li {
  margin: 5px 0;
}
svg {
  max-width: 100%;
}
.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  top: -90px;
  left: 16px;
  z-index: 300;
  background: #fff;
  padding: 12px 18px;
}
.skip:focus {
  top: 12px;
}
.loading {
  max-width: 70ch;
  padding: 64px 24px;
  margin: auto;
}
.empty {
  padding: 36px 0;
  max-width: 70ch;
}
.empty a {
  margin-left: 16px;
}
.scope-note,
.source-date,
.section-caption,
.question-type,
.verification-note {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.65;
}
.back-link,
.source-link {
  font-size: .92rem;
}
.back-link {
  display: inline-block;
  margin-bottom: 16px;
}
.source-link {
  white-space: normal;
}
.app-header {
  height: 68px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 650;
  white-space: nowrap;
}
.brand img {
  width: 28px;
  height: 28px;
}
.app-header nav {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 28px;
}
.app-header nav a {
  display: flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  font-size: .94rem;
  padding-top: 3px;
}
.app-header nav a[aria-current] {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.course-menu {
  display: none;
  margin-left: auto;
}
.language-toggle {
  margin-left: auto;
  white-space: nowrap;
  font-size: .88rem;
  min-height: 36px;
  padding: 6px 12px;
}
.app-frame {
  max-width: 1660px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.app-frame.with-course {
  grid-template-columns: 236px minmax(0, 1fr);
}
.workspace {
  min-width: 0;
  background: var(--paper);
  min-height: calc(100vh - 68px);
}
.lesson-workspace {
  --lesson-gutter:36px;
}
.lesson-workspace .content,
.lesson-workspace .breadcrumb {
  max-width: calc(var(--lesson-width) + 2 * var(--lesson-gutter));
  padding-inline: var(--lesson-gutter);
}
.course-nav {
  padding: 28px 16px 40px;
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow: auto;
  overscroll-behavior: contain;
  font-size: .88rem;
}
.course-nav-head {
  padding: 0 8px 20px;
  color: var(--muted);
}
.course-nav-head button {
  display: none;
}
.course-nav details {
  margin-bottom: 12px;
}
.course-nav summary {
  padding: 8px;
  line-height: 1.45;
  font-weight: 600;
}
.course-nav summary span {
  display: block;
  margin: 4px 0 0 16px;
  font-size: .8rem;
  font-weight: 400;
  color: var(--muted);
}
.course-nav ol {
  list-style: none;
  padding: 4px 0;
  margin: 0;
}
.course-nav li {
  margin: 0;
}
.course-nav a {
  display: flex;
  min-width: 0;
  overflow-wrap: anywhere;
  gap: 9px;
  text-decoration: none;
  color: #405361;
  border-left: 2px solid transparent;
  line-height: 1.5;
  padding: 9px 8px;
  border-radius: 0 4px 4px 0;
}
.course-nav a > span {
  color: #74818b;
  font-size: .8rem;
  padding-top: 2px;
  flex-shrink: 0;
}
.course-nav a:hover {
  background: #eaf0f5;
}
.course-nav a[aria-current] {
  color: var(--accent);
  background: #e6eff6;
  border-left-color: var(--accent);
  font-weight: 600;
}
.nav-scrim {
  display: none;
}
.breadcrumb {
  max-width: 1232px;
  margin: 0 auto;
  padding: 22px 36px 0;
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: .82rem;
}
.breadcrumb a {
  text-decoration: none;
}
.breadcrumb {
  align-items: baseline;
}
.breadcrumb > :last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.page-heading > div,
.search-label,
.result-prompt {
  min-width: 0;
}
.content {
  max-width: 1232px;
  margin: 0 auto;
  padding: 28px 36px 80px;
  min-width: 0;
  outline: none;
}
.assessment-frame {
  max-width: 1232px;
}
.page-heading {
  margin: 0 0 36px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 32px;
}
.page-heading p {
  color: var(--muted);
  max-width: 65ch;
  margin-bottom: 0;
}
.page-heading > .source-link {
  max-width: 180px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-head h2,
.section-head p {
  margin-bottom: 0;
}
.section-head p {
  font-size: .9rem;
  color: var(--muted);
}
.filter-row {
  display: flex;
  align-items: end;
  gap: 20px;
  margin: 0 0 36px;
}
.filter-row > label {
  display: grid;
  gap: 6px;
  font-size: .88rem;
  font-weight: 600;
}
.search-label {
  flex: 1;
}
.search {
  width: 100%;
}
.filter-row select {
  max-width: 280px;
  width: 100%;
}
.chapter-card {
  padding: 24px 0 12px;
  border-top: 2px solid #c4d3df;
  margin-bottom: 32px;
}
.chapter-card-head {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.chapter-card-head h2 {
  margin: 0;
}
.chapter-card-head p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: .85rem;
}
.chapter-weight {
  margin-left: 20px;
  font-size: .82rem;
}
.lesson-index {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lesson-index li {
  margin: 0;
}
.lesson-row {
  display: flex;
  gap: 18px;
  align-items: start;
  padding: 20px 8px;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.lesson-row:hover {
  background: #f8fafc;
  text-decoration: none;
}
.lesson-number {
  padding-top: 3px;
  font-size: .85rem;
  color: var(--muted);
  width: 24px;
  flex-shrink: 0;
}
.lesson-info {
  min-width: 0;
  flex: 1;
}
.lesson-info h3 {
  font-size: 1.09rem;
  margin: 0 0 5px;
  color: var(--accent);
}
.lesson-info p {
  margin: 0 0 5px;
  font-size: .97rem;
}
.lesson-info small {
  font-size: .82rem;
  color: var(--muted);
}
.lesson-row > .icon {
  color: var(--muted);
  margin-top: 7px;
}
.bank-section {
  margin: 40px 0 52px;
}
.bank-select {
  padding: 24px;
  background: #f3f7fa;
  border-left: 3px solid #a9c2d4;
}
.bank-select > label {
  font-size: .9rem;
  display: block;
  margin-bottom: 8px;
}
.bank-select-controls {
  display: flex;
  gap: 16px;
}
.bank-select-controls select {
  flex: 1;
  min-width: 0;
}
.chapter-assessments {
  border-top: 1px solid var(--line);
}
.bank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.bank-row h3 {
  margin: 0 0 4px;
}
.bank-row p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}
.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.mock-card {
  padding: 24px 0;
  border-top: 2px solid #a9c2d4;
}
.mock-card p {
  font-size: .94rem;
}
.resume-exam {
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  background: var(--accent-soft);
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.resume-exam p {
  margin: 0;
}
.question {
  container-name: question;
  container-type: inline-size;
  margin: 40px 0;
  padding: 28px 0;
  border-top: 2px solid #9ab5c8;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}
.question.inline {
  padding: 26px;
  background: #f3f7fa;
  border: 1px solid #ccdae4;
  border-left: 3px solid #729ab5;
  border-radius: 5px;
}
.q-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.badge {
  font-weight: 650;
  color: var(--accent);
}
.q-prompt {
  overflow-wrap: anywhere;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.65;
  margin-bottom: 20px;
  white-space: pre-line;
  max-width: 74ch;
}
.answer-options {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px;
  margin: 10px 0;
  border: 1px solid #bfccd6;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.6;
}
.option input {
  margin: 6px 0 0;
  flex-shrink: 0;
  width: 17px;
  height: 17px;
}
.option > :last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.option-letter {
  font-size: .85rem;
  font-weight: 600;
  padding-top: 2px;
  color: var(--muted);
}
.option.selected {
  background: #edf4f9;
  border-color: #5e8caa;
}
.option.correct {
  background: #eef7f1;
  border-color: #6b9d7f;
}
.option.incorrect {
  background: #fff3f3;
  border-color: #c8777d;
}
.option:has(input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.q-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 20px;
}
.feedback {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #bdcdd9;
}
.feedback.good h4 {
  color: var(--good);
}
.feedback.bad h4 {
  color: var(--bad);
}
.feedback > p {
  max-width: 72ch;
}
.answer-line {
  padding: 14px 16px;
  background: #e9eff4;
  white-space: pre-line;
  margin-bottom: 20px;
  font-size: .97rem;
}
.answer-line strong {
  font-size: .82rem;
  color: var(--muted);
}
.match-bank {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.match-chip {
  cursor: grab;
  padding: 6px 10px;
  border: 1px solid #bfd0dd;
  background: white;
  border-radius: 4px;
  font-size: .9rem;
}
.match-row,
.blank-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 18px;
  padding: 12px 0;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.match-row select,
.blank-row select {
  width: 100%;
  min-width: 0;
}
.match-target {
  border: 1px dashed #a3bacb;
  padding: 6px;
}
.drop-list {
  border-left: 2px solid #b4c9d8;
  padding-left: 12px;
}
.order-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  padding: 12px;
  margin: 8px 0;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.order-item > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.order-item button {
  min-height: 36px;
  padding: 4px 10px;
}
.case-context {
  padding: 20px;
  border-left: 3px solid #b2c9da;
  background: #edf3f7;
  margin-bottom: 24px;
}
.case-context p {
  white-space: pre-line;
}
.hot-screen {
  border: 1px solid #adc1d0;
  margin: 20px 0;
}
.hot-title {
  font-weight: 600;
  background: #e7eef4;
  padding: 12px 16px;
}
.hot-subbar {
  padding: 10px 16px;
  font-size: .9rem;
  border-bottom: 1px solid var(--line);
}
.hot-fields {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.hot-option {
  justify-content: start;
  text-align: left;
  font-weight: 400;
}
.hot-option.selected {
  border-color: var(--accent);
  background: #edf4f9;
}
.hot-option.correct {
  border-color: #6b9d7f;
  background: #eef7f1;
}
.hot-option.incorrect {
  border-color: #c8777d;
  background: #fff3f3;
}
.hot-icon {
  display: none;
}
.exam-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.exam-heading p {
  margin: 0;
  color: var(--muted);
}
.exam-clock {
  text-align: right;
  flex-shrink: 0;
}
.exam-clock span {
  display: block;
  font-size: .85rem;
  color: var(--muted);
}
.exam-clock strong {
  font: 400 1.4rem/1.5 var(--font-mono);
}
.exam-clock .urgent {
  color: var(--bad);
}
.exam-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 40px;
}
.exam-layout .question {
  margin-top: 20px;
}
.exam-tools,
.exam-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.exam-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  border-top: 2px solid #9ab5c8;
  padding-top: 16px;
}
.exam-sidebar h2 {
  font-size: 1rem;
  margin-bottom: 6px;
}
.exam-sidebar p {
  font-size: .82rem;
}
.q-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.q-grid button {
  padding: 5px 0;
  min-height: 35px;
  font-size: .82rem;
  border-color: var(--line);
  color: var(--ink);
}
.q-grid .answered {
  background: #e2edf5;
  border-color: #99b5c8;
}
.q-grid .current {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.q-grid .flagged {
  border-bottom: 3px solid #98631c;
}
.submit-button {
  margin-top: 20px;
  width: 100%;
}
.result-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 40px;
  border-block: 1px solid var(--line);
  padding: 24px 0;
  margin-bottom: 28px;
}
.result-summary h2 {
  margin-bottom: 4px;
}
.result-summary p {
  margin: 0;
  color: var(--muted);
}
.result-chapters > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: .94rem;
}
.result-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.result-controls label {
  display: grid;
  gap: 6px;
  font-size: .9rem;
}
.result-detail {
  border-top: 1px solid var(--line);
}
.result-row {
  display: flex;
  align-items: start;
  gap: 16px;
  padding: 20px 0;
  line-height: 1.6;
}
.result-prompt {
  flex: 1;
}
.result-status {
  font-size: .82rem;
  color: var(--bad);
  min-width: 92px;
  padding-top: 2px;
}
.result-status.correct {
  color: var(--good);
}
.review-response {
  border-left: 3px solid #b6c9d8;
  padding: 16px 20px;
  background: #f3f7fa;
}
.review-response p {
  margin-bottom: 12px;
}
.review-response a {
  font-size: .92rem;
}
.result-detail .question {
  border-top: 0;
  margin: 0 0 32px;
}
.result-detail .feedback {
  margin-top: 24px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #182b3a77;
}
.modal {
  width: min(100%, 480px);
  padding: 28px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 18px 60px #182b3a33;
}
.modal-actions {
  display: flex;
  justify-content: end;
  gap: 12px;
  margin-top: 24px;
}
#toast {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(90vw, 640px);
  padding: 14px 20px;
  background: var(--ink);
  color: white;
  border-radius: 6px;
  z-index: 200;
  font-size: .94rem;
}
.bank-select > input {
  width: 100%;
  margin-bottom: 8px;
}
.bank-select > #bank-search-count {
  margin: 0 0 20px;
}
@media (min-width: 1600px) {
  .lesson-workspace { --lesson-gutter:48px; }
  .content {
    padding-inline: 48px;
  }
  .breadcrumb {
    padding-inline: 48px;
  }
}
@media (max-width: 1050px) {
  .lesson-workspace { --lesson-gutter:24px; }
  .app-frame.with-course {
    grid-template-columns: 208px minmax(0, 1fr);
  }
  .content {
    padding: 24px 24px 64px;
  }
  .breadcrumb {
    padding: 20px 24px 0;
  }
  .app-header {
    padding-inline: 24px;
    gap: 28px;
  }
  .exam-layout {
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 180px;
  }
  .mock-grid {
    gap: 20px;
  }
}
@media (max-width: 820px) {
  .app-frame.with-course {
    display: block;
  }
  :root {
    --header-h:100px;
  }
  .app-header {
    height: 100px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: 32px 36px;
    gap: 8px 16px;
    padding: 12px 20px;
  }
  .app-header nav {
    grid-column: 1/-1;
    grid-row: 2;
    gap: 20px;
    height: 36px;
  }
  .app-header nav a {
    font-size: .9rem;
  }
  .course-menu {
    display: inline-flex;
    grid-column: 3;
    grid-row: 1;
    font-size: .82rem;
    min-height: 32px;
    padding: 4px 8px;
  }
  .language-toggle {
    grid-column: 2;
    grid-row: 1;
    margin-left: 0;
    min-height: 32px;
    font-size: .82rem;
    padding: 4px 8px;
  }
  .course-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    width: min(340px, 88vw);
    height: 100dvh;
    background: var(--bg);
    transform: translateX(-100%);
    padding-top: 20px;
  }
  .nav-open {
    overflow: hidden;
  }
  .nav-open .course-nav {
    transform: translateX(0);
  }
  .course-nav-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .course-nav-head button {
    display: inline-flex;
    padding: 4px 10px;
  }
  .nav-open .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: #182b3a77;
    border: 0;
    border-radius: 0;
  }
  .page-heading {
    display: block;
  }
  .page-heading .source-link {
    display: inline-block;
    margin-top: 20px;
    max-width: none;
  }
  .exam-layout {
    grid-template-columns: 1fr;
  }
  .exam-sidebar {
    position: static;
    order: -1;
  }
  .exam-sidebar .q-grid {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }
  .exam-sidebar .submit-button {
    width: auto;
  }
  .mock-grid {
    grid-template-columns: 1fr;
  }
  .mock-card {
    padding: 20px 0;
  }
  .result-summary {
    gap: 24px;
  }
  .chapter-card-head {
    align-items: start;
  }
  .chapter-card-head button {
    font-size: .85rem;
  }
}
@media (max-width: 560px) {
  .lesson-workspace { --lesson-gutter:20px; }
  :root {
    font-size: 17px;
  }
  .app-header {
    padding: 12px 16px;
    gap: 8px;
  }
  .brand {
    font-size: 1rem;
  }
  .app-header nav {
    order: 2;
    width: 100%;
    height: 36px;
  }
  .course-menu {
    margin-left: auto;
    padding: 4px 8px;
  }
  .course-menu > span {
    display: none;
  }
  .breadcrumb {
    padding: 16px 20px 0;
    font-size: .76rem;
  }
  .content {
    padding: 24px 20px 56px;
  }
  .filter-row {
    display: grid;
    gap: 16px;
  }
  .filter-row select {
    max-width: none;
  }
  .chapter-card-head {
    display: block;
  }
  .chapter-card-head button {
    margin-top: 12px;
  }
  .chapter-weight {
    margin-left: 12px;
  }
  .lesson-row {
    gap: 10px;
    padding: 18px 0;
  }
  .lesson-row > .icon {
    display: none;
  }
  .lesson-info h3 {
    font-size: 1.03rem;
  }
  .lesson-info small {
    font-size: .8rem;
  }
  .bank-select {
    padding: 20px;
  }
  .bank-select-controls {
    display: grid;
  }
  .bank-row {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .resume-exam {
    align-items: start;
    flex-direction: column;
  }
  .question.inline {
    padding: 20px 16px;
  }
  .q-prompt {
    font-size: 1.03rem;
  }
  .option {
    gap: 9px;
    padding: 12px 10px;
  }
  .match-row,
  .blank-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .hot-fields {
    grid-template-columns: 1fr;
  }
  .order-item {
    padding: 10px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .order-item > span:nth-child(2) {
    flex-basis: calc(100% - 36px);
  }
  .order-item button:first-of-type {
    margin-left: auto;
  }
  .exam-heading h1 {
    font-size: 1.4rem;
  }
  .exam-clock strong {
    font-size: 1.1rem;
  }
  .exam-sidebar .q-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .result-summary {
    grid-template-columns: 1fr;
  }
  .result-row {
    display: block;
  }
  .result-status {
    display: block;
    margin-bottom: 8px;
  }
  .result-controls {
    align-items: start;
    gap: 12px;
  }
  .result-controls button {
    font-size: .85rem;
  }
  .modal-actions {
    flex-wrap: wrap;
  }
  .section-head {
    display: block;
  }
  .section-head p {
    margin-top: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  .lesson-workspace .content { padding: 0; max-width: none; }
  .app-header,
  .course-nav,
  .breadcrumb,
  .lesson-outline,
  .lesson-end,
  .q-actions,
  .nav-scrim,
  button {
    display: none !important;
  }
  .app-frame.with-course,
  .app-frame,
  .exam-layout {
    display: block;
  }
  .content {
    padding: 0;
    max-width: none;
  }
  .workspace,
  body {
    background: white;
  }
  .question,
  .table-scroll,
  figure {
    break-inside: avoid;
  }
  .table-scroll,
  pre {
    overflow: visible !important;
  }
  a {
    color: inherit;
  }
  .result-detail > *,
  details > * {
    display: block;
  }
  input,
  select {
    border: 0;
  }
}
