@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/geist-latin.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --page: #fff;
  --surface: #fff;
  --surface-soft: #fafafa;
  --text: #171717;
  --muted: #686868;
  --line: #e6e6e6;
  --line-strong: #c8c8c8;
  --accent: #171717;
  --accent-hover: #333;
  --accent-soft: #f2f2f2;
  --on-accent: #fff;
  --error: #a5362c;
  --code: #1e1e1e;
  --code-text: #d4d4d4;
  --shadow: 0 1px 3px rgb(0 0 0 / 4%);
  font-family: Geist, 'Segoe UI', sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: var(--page); color: var(--text); font-size: 15px; line-height: 1.65; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, .option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(32px, 3.2vw, 44px); line-height: 1.15; font-weight: 600; letter-spacing: -.045em; }
h2 { font-size: 21px; line-height: 1.4; font-weight: 600; letter-spacing: -.025em; }
h3 { font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 24px; top: 12px; padding: 12px 20px; background: var(--surface); z-index: 2; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header, .container, .site-footer { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.site-header { display: flex; justify-content: space-between; align-items: center; min-height: 92px; border-bottom: 1px solid var(--line); gap: 24px; }
.brand { text-decoration: none; font-size: 18px; font-weight: 600; letter-spacing: -.04em; line-height: 1.45; }
.brand span { display: block; color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 0; margin-top: 5px; }
.header-date { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: .03em; white-space: nowrap; }
.header-tools { display: flex; align-items: center; gap: 24px; }
.theme-toggle { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 100px; background: var(--surface-soft); }
.theme-toggle button { padding: 6px 10px; border: 0; border-radius: 100px; color: var(--muted); background: transparent; font-size: 11px; line-height: 1.4; }
.theme-toggle [aria-pressed='true'] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgb(0 0 0 / 8%); }
.container { flex: 1; padding-block: 48px 72px; }
.site-footer { min-height: 68px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); font-size: 11px; }
.overline { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.7; }
.lead { font-size: 16px; line-height: 1.8; color: var(--muted); }
.exam-cover { max-width: 840px; margin-inline: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; padding-top: 20px; }
.intro-copy { display: contents; }
.intro-copy > .overline { grid-column: 1 / -1; justify-self: center; padding: 6px 18px; border: 1px solid var(--line); border-radius: 100px; color: var(--text); font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.intro-copy h1 { grid-column: 1 / -1; font-size: clamp(42px, 4.6vw, 60px); line-height: 1.05; text-align: center; margin-top: 22px; }
.intro-copy .lead { grid-column: 1 / -1; justify-self: center; text-align: center; margin-top: 20px; max-width: 520px; font-size: 18px; line-height: 1.65; }
.exam-meta { grid-column: 1 / -1; display: flex; justify-content: center; align-items: center; gap: 20px; font-size: 12px; margin-top: 22px; }
.exam-meta strong { font-weight: 600; }
.exam-meta span { border-left: 1px solid var(--line-strong); padding-left: 20px; color: var(--muted); }
.instructions { grid-column: 1; grid-row: 6; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.instructions h2, .optional-note h2 { font-size: 13px; font-weight: 700; letter-spacing: 0; }
.instructions ol { padding-left: 18px; margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.instructions li { padding-left: 6px; margin-top: 8px; }
.instructions li::marker { color: var(--text); font-variant-numeric: tabular-nums; }
.optional-note { grid-column: 2; grid-row: 6; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; align-items: flex-start; gap: 14px; }
.optional-mark { flex: 0 0 28px; width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: 4px; text-align: center; line-height: 25px; font-size: 18px; color: var(--accent); }
.optional-note p { color: var(--muted); font-size: 12px; line-height: 1.75; margin-top: 7px; }
.entry-panel { grid-column: 1 / -1; grid-row: 5; justify-self: center; width: min(100%, 440px); margin-top: 38px; padding: 28px 30px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.entry-panel > .overline { display: none; }
.entry-panel h2 { font-size: 20px; margin: 0 0 10px; letter-spacing: -.03em; }
.entry-panel > .muted { max-width: 290px; }
.entry-panel form { margin-top: 22px; }
label { display: block; font-size: 13px; font-weight: 600; }
input:not([type='radio']), .explanation-panel textarea { display: block; width: 100%; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface); color: var(--text); padding: 14px 16px; margin-top: 10px; min-height: 52px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .85; font-weight: 400; }
.entry-panel .button { width: 100%; margin-top: 16px; }
.entry-note { color: var(--muted); font-size: 11px; line-height: 1.8; margin-top: 24px; }
.form-error { color: var(--error); font-size: 13px; line-height: 1.6; }
.form-error:not(:empty) { margin-top: 16px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 28px; border: 1px solid transparent; border-radius: 6px; min-height: 48px; padding: 12px 20px; font-size: 13px; line-height: 1.45; font-weight: 500; text-decoration: none; box-shadow: 0 1px 2px rgb(0 0 0 / 4%); }
.button span[aria-hidden] { margin-left: auto; font-size: 17px; font-weight: 400; }
.primary { color: var(--on-accent); background: var(--accent); }
.primary:hover:not(:disabled) { background: var(--accent-hover); }
.secondary { color: var(--text); background: var(--surface); border-color: var(--line); }
.secondary:hover:not(:disabled) { background: var(--surface-soft); border-color: var(--muted); }
.text-button { background: none; border: 0; color: inherit; font-size: 11px; padding: 9px 0; text-decoration: underline; text-underline-offset: 4px; }
.notice { padding: 17px 20px; border-left: 2px solid var(--accent); background: var(--accent-soft); font-size: 13px; line-height: 1.7; margin-bottom: 24px; }
.session-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.session-heading h1 { margin-top: 10px; }
.version { flex-shrink: 0; border: 1px solid var(--line-strong); border-radius: 4px; padding: 7px 12px; color: var(--muted); font-size: 11px; font-weight: 600; }
.quiz-layout { display: grid; grid-template-columns: 212px minmax(0, 1fr); gap: 44px; align-items: start; }
.question-nav { padding-top: 8px; }
.nav-title { font-size: 12px; font-weight: 600; margin-bottom: 18px; }
#question-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.nav-button { background: transparent; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--muted); height: 38px; padding: 0; font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
.nav-button:hover { border-color: var(--accent); }
.nav-button.answered { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-soft); }
.nav-button.current { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
#answered-count { margin-top: 22px; font-size: 11px; }
progress { display: block; appearance: none; width: 100%; height: 3px; margin-top: 10px; border: 0; border-radius: 1px; overflow: hidden; background: var(--line); }
progress::-webkit-progress-bar { background: var(--line); }
progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }
.save-note { color: var(--muted); font-size: 11px; line-height: 1.8; margin-top: 22px; }
.question-panel { padding: 38px 40px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); box-shadow: var(--shadow); }
.question-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 22px; }
.question-position { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
#question-title { font-size: 23px; font-weight: 500; letter-spacing: -.02em; line-height: 1.55; outline: none; }
#options { border: 0; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; min-width: 0; }
.option { display: flex; align-items: flex-start; gap: 13px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 5px; font-size: 13px; font-weight: 400; line-height: 1.7; cursor: pointer; }
.option:hover { border-color: var(--line-strong); background: var(--surface-soft); }
.option:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); }
.option input { flex-shrink: 0; margin: 5px 0 0; width: 15px; height: 15px; accent-color: var(--accent); }
.option-letter { font-weight: 700; color: var(--muted); margin-right: 9px; }
.option:has(input:checked) .option-letter { color: var(--accent); }
.question-actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.review-panel { background: var(--surface); border: 1px solid var(--line); padding: 38px 40px; border-radius: 7px; }
.review-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; margin-block: 26px 32px; }
.review-item { display: flex; flex-direction: column; align-items: flex-start; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); padding: 20px 0; gap: 7px; }
.review-item strong { font-size: 12px; font-weight: 600; }
.review-item span { color: var(--muted); font-size: 12px; line-height: 1.7; }
.review-item:hover strong { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.review-item.missing span { color: var(--error); }
.review-panel .notice { margin-bottom: 0; }
.challenge-summary { max-width: 880px; margin-bottom: 32px; }
.challenge-summary .muted { margin-top: 12px; }
.challenge-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 40px; align-items: start; }
.editor-panel { min-width: 0; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: var(--surface); }
.editor-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--code); color: var(--code-text); padding: 10px 22px; border-bottom: 1px solid rgb(228 235 226 / 15%); }
.editor-header > span { font-family: Consolas, 'Courier New', monospace; font-size: 12px; }
.code-workspace { display: grid; grid-template-columns: 48px minmax(0, 1fr); height: 600px; background: var(--code); color-scheme: dark; }
.code-workspace:has(#code-editor:focus-visible) { outline: 2px solid #569cd6; outline-offset: -2px; }
.code-surface { position: relative; min-width: 0; overflow: hidden; }
.code-highlight, .code-lines, #code-editor { margin: 0; border: 0; border-radius: 0; font-family: Consolas, 'Courier New', monospace; font-size: 14px; line-height: 24px; tab-size: 2; font-variant-ligatures: none; font-weight: 400; }
.code-highlight, #code-editor { padding: 20px 18px; white-space: pre; }
.code-highlight { height: 100%; padding-right: 42px; padding-bottom: 44px; overflow: hidden; color: var(--code-text); pointer-events: none; }
.code-highlight code { font: inherit; }
.code-lines { height: 100%; padding: 20px 10px 44px; overflow: hidden; text-align: right; color: #9b9b9b; border-right: 1px solid #333; user-select: none; }
#code-editor { position: absolute; inset: 0; display: block; resize: none; width: 100%; height: 100%; background: transparent; color: transparent; caret-color: #fff; -webkit-text-fill-color: transparent; overflow: auto; outline: none; }
#code-editor::selection { background: rgb(66 125 190 / 35%); }
.code-highlight .token.comment, .highlighted-code .token.comment { color: #84a96a; }
.code-highlight .token.keyword, .highlighted-code .token.keyword { color: #569cd6; }
.code-highlight .token.string, .code-highlight .token.template-string, .highlighted-code .token.string, .highlighted-code .token.template-string { color: #ce9178; }
.code-highlight .token.function, .highlighted-code .token.function { color: #dcdcaa; }
.code-highlight .token.number, .code-highlight .token.boolean, .highlighted-code .token.number, .highlighted-code .token.boolean { color: #b5cea8; }
.code-highlight .token.property, .code-highlight .token.parameter, .highlighted-code .token.property, .highlighted-code .token.parameter { color: #9cdcfe; }
.code-highlight .token.operator, .code-highlight .token.punctuation, .highlighted-code .token.operator, .highlighted-code .token.punctuation { color: #d4d4d4; }
.editor-help { margin: 0; padding: 12px 24px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.explanation-panel { padding: 24px 24px 0; }
.explanation-panel textarea { resize: vertical; min-height: 120px; font-size: 12px; line-height: 1.8; }
.editor-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 24px; }
.editor-actions .muted { font-size: 11px; }
.contract-panel h2 { font-size: 16px; letter-spacing: -.02em; }
.hint-panel { padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.hint-panel > p { margin-top: 8px; font-size: 11px; }
.challenge-hint { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.challenge-hint:last-child { border-bottom: 0; }
.challenge-hint summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.challenge-hint summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.challenge-hint p { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.challenge-hint.locked { display: flex; flex-direction: column; gap: 3px; color: var(--muted); }
.challenge-hint.locked strong { font-weight: 500; }
.challenge-hint.locked span { font-size: 10px; }
.contract-panel ul { margin: 20px 0 0; padding-left: 17px; font-size: 12px; line-height: 1.85; color: var(--muted); }
.contract-panel li { margin-bottom: 13px; padding-left: 4px; overflow-wrap: anywhere; }
.bonus-callout { padding-block: 24px; margin-block: 26px 22px; border-block: 1px solid var(--line); }
.bonus-callout strong { font-size: 13px; font-weight: 600; }
.bonus-callout p { font-size: 12px; color: var(--muted); margin-top: 8px; }
.contract-panel > .button { width: 100%; }
.challenge-feedback { padding: 0 24px 24px; }
.challenge-feedback > p, .challenge-feedback > h3 { margin-bottom: 14px; font-size: 13px; }
.check-result { padding: 8px 0; color: var(--error); font-size: 12px; }
.check-result.passed { color: var(--accent); }
.result-panel { max-width: 720px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 48px 56px; box-shadow: var(--shadow); }
.result-panel h1 { margin-top: 12px; }
#result-student { margin-top: 12px; }
.score { display: flex; align-items: baseline; gap: 18px; margin-block: 28px 14px; font-variant-numeric: tabular-nums; }
#result-score { font-size: clamp(80px, 10vw, 112px); line-height: 1.15; font-weight: 500; letter-spacing: -.07em; color: var(--accent); }
.score > span:last-child { font-size: 24px; color: var(--muted); letter-spacing: -.035em; }
#result-breakdown { font-size: 13px; }
.result-detail { margin-top: 22px; padding: 18px 20px; background: var(--accent-soft); color: var(--accent); border-radius: 4px; font-size: 13px; }
.receipt { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.receipt strong { font-family: Consolas, 'Courier New', monospace; font-weight: 400; color: var(--text); font-size: 13px; }
.result-panel > .muted:last-of-type { margin-top: 10px; font-size: 11px; }
.result-panel > .button { margin-top: 26px; }
.teacher-heading { margin-bottom: 30px; }
.teacher-heading h1 { margin-top: 12px; }
.teacher-heading .muted { margin-top: 14px; }
.teacher-login { max-width: 400px; padding: 28px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.teacher-toolbar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.table-scroll { overflow-x: auto; margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
table { border-collapse: collapse; width: 100%; font-size: 12px; white-space: nowrap; }
th { padding: 16px; text-align: left; font-size: 11px; font-weight: 600; color: var(--muted); background: var(--surface-soft); }
td { padding: 16px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
td:first-child { font-weight: 600; }
td .button { padding: 7px 12px; min-height: 36px; font-size: 11px; }
.teacher-details { margin-top: 36px; padding: 28px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.teacher-details p { font-size: 13px; margin-top: 14px; }
.teacher-details pre { padding: 22px; border-radius: 5px; background: var(--code); color: var(--code-text); overflow-x: auto; font-size: 12px; line-height: 1.8; }
.teacher-details pre code { font: inherit; }
.teacher-bank { margin-top: 44px; }
.teacher-bank > .muted { margin-top: 12px; }
.bank-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 24px 16px; }
.bank-tabs [aria-pressed='true'] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.bank-question { padding-block: 28px; border-bottom: 1px solid var(--line); }
.bank-question h3 { font-size: 16px; line-height: 1.7; }
.bank-question ol { padding-left: 22px; font-size: 13px; }
.bank-question li { padding-left: 6px; margin-top: 10px; }
.bank-question .correct { color: var(--accent); font-weight: 600; }
.bank-question > p { font-size: 12px; color: var(--muted); }

:root[data-theme='dark'] {
    color-scheme: dark;
    --page: #0a0a0a;
    --surface: #141414;
    --surface-soft: #1c1c1c;
    --text: #ededed;
    --muted: #a6a6a6;
    --line: #2d2d2d;
    --line-strong: #505050;
    --accent: #ededed;
    --accent-hover: #d4d4d4;
    --accent-soft: #242424;
    --on-accent: #171717;
    --error: #f2a69d;
    --shadow: none;
}

@media (max-width: 1000px) {
  .site-header, .container, .site-footer { width: calc(100% - 48px); }
  .exam-cover { gap: 0 40px; }
  .quiz-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 28px; }
  .question-panel { padding: 28px; }
  .challenge-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 28px; }
}

@media (max-width: 760px) {
  .site-header, .container, .site-footer { width: calc(100% - 36px); }
  .site-header { min-height: 88px; gap: 12px; }
  .brand { font-size: 16px; }
  .brand span { font-size: 10px; max-width: 180px; }
  .header-date { font-size: 10px; }
  .header-tools { flex-direction: column-reverse; align-items: flex-end; gap: 6px; }
  .theme-toggle button { padding: 5px 9px; font-size: 10px; }
  .container { padding-block: 24px 40px; }
  .site-footer { align-items: flex-start; padding-block: 22px; gap: 16px; font-size: 10px; }
  .site-footer span:last-child { max-width: 185px; text-align: right; }
  .exam-cover { display: flex; flex-direction: column; padding: 16px 0 0; gap: 0; }
  .intro-copy { display: contents; }
  .intro-copy > .overline { order: 0; align-self: center; }
  .intro-copy h1 { order: 1; font-size: clamp(38px, 10vw, 48px); margin-top: 20px; }
  .intro-copy .lead { order: 2; font-size: 15px; margin-top: 18px; }
  .exam-meta { order: 3; gap: 12px; font-size: 10px; margin-top: 20px; }
  .exam-meta span { padding-left: 12px; }
  .entry-panel { order: 4; align-self: center; padding: 24px; margin-top: 28px; }
  .entry-panel > .overline { display: none; }
  .entry-panel h2 { font-size: 21px; margin: 0 0 10px; }
  .entry-panel > .muted { font-size: 12px; max-width: none; }
  .entry-panel form { margin-top: 22px; }
  .entry-note { margin-top: 16px; font-size: 10px; }
  .instructions { order: 5; margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }
  .instructions ol { font-size: 12px; }
  .optional-note { order: 6; margin-top: 24px; padding-top: 24px; }
  .optional-note p { font-size: 11px; }
  .session-heading { margin-bottom: 24px; gap: 12px; align-items: center; }
  .session-heading .overline { font-size: 10px; max-width: 230px; }
  .session-heading h1 { font-size: 28px; }
  .version { font-size: 10px; padding: 6px 10px; }
  .quiz-layout, .challenge-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .question-nav { padding-top: 0; }
  .nav-title { font-size: 11px; margin-bottom: 12px; }
  #question-nav { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
  .nav-button { height: 36px; font-size: 10px; }
  #answered-count { margin-top: 14px; }
  .save-note { display: none; }
  .question-panel, .review-panel { padding: 24px 20px; }
  .question-meta { gap: 8px; margin-bottom: 18px; }
  .question-meta .overline { font-size: 10px; }
  .question-position { font-size: 10px; }
  #question-title { font-size: 19px; line-height: 1.6; }
  #options { margin-top: 24px; }
  .option { font-size: 12px; padding: 14px; gap: 10px; }
  .option-letter { margin-right: 6px; }
  .question-actions { gap: 10px; margin-top: 24px; padding-top: 22px; }
  .question-actions .button { padding: 12px 14px; gap: 14px; font-size: 12px; }
  .review-panel .question-actions { flex-direction: column-reverse; }
  .review-list { grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
  .review-panel .lead { font-size: 14px; }
  .challenge-summary .lead { font-size: 14px; }
  .challenge-summary .muted { font-size: 12px; }
  .code-workspace { height: 520px; grid-template-columns: 40px minmax(0, 1fr); }
  .code-highlight, .code-lines, #code-editor { font-size: 13px; line-height: 23px; }
  .code-highlight, #code-editor { padding-inline: 14px; }
  .code-highlight { padding-right: 38px; }
  .editor-help { padding-inline: 18px; }
  .editor-header { padding-inline: 18px; }
  .editor-header .text-button { font-size: 10px; }
  .explanation-panel { padding: 20px 18px 0; }
  .editor-actions { padding: 20px 18px; }
  .editor-actions .button { width: 100%; }
  .challenge-feedback { padding-inline: 18px; }
  .contract-panel { padding-top: 10px; }
  .result-panel { padding: 32px 26px; }
  .result-panel h1 { font-size: 28px; }
  .result-detail { font-size: 12px; padding: 16px; }
  .receipt { flex-wrap: wrap; gap: 7px; }
  .receipt strong { font-size: 12px; }
  .teacher-heading h1 { font-size: 30px; }
  .teacher-toolbar { gap: 8px; }
  .teacher-toolbar .button { font-size: 11px; padding: 10px 14px; }
  .teacher-details { padding: 20px; }
}

@media (max-width: 370px) {
  .entry-panel { padding-inline: 20px; }
  .intro-copy h1 { font-size: 36px; }
  .exam-meta { gap: 9px; }
  .exam-meta span { padding-left: 9px; }
  #question-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
