/* Code Lab engine styles. Colours are variables: override them in theme.css, not here. */
:root {
  --brown: #3B261A;
  --copper: #96603A;
  --tan: #DEB887;
  --cream: #FAF5EE;
  --sand: #F0E6DC;
  --line: #E1D2BE;
  --teal: #00796B;
  --teal-dark: #005A50;
  --teal-soft: #EAF3F0;
  --ink: #2B2B2B;
  --muted: #6B5A4E;
  --red: #C0392B;
  --red-soft: #FDEEEC;
  --green-soft: #E3F4EA;
  --amber: #C98A1B;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(59, 38, 26, .08), 0 4px 14px rgba(59, 38, 26, .06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88em; background: #F4F1EC; color: var(--copper); padding: 1px 5px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: "Trebuchet MS", system-ui, sans-serif; color: var(--brown); line-height: 1.2; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 10; background: white; padding: 8px 12px; }
:focus-visible { outline: 3px solid rgba(0, 121, 107, .45); outline-offset: 2px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 16px;
  padding: 8px 20px;
  background: var(--brown);
  color: var(--cream);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--tan); text-decoration: none; font-weight: 700; white-space: nowrap; }
.brand img { height: 30px; width: auto; }
.brand span { font-family: "Trebuchet MS", sans-serif; letter-spacing: .5px; border-left: 1px solid rgba(222,184,135,.4); padding-left: 10px; }
.brand.no-logo span { border-left: 0; padding-left: 0; font-size: 1.1rem; }
.stepper { display: flex; gap: 6px; flex: 1; justify-content: center; flex-wrap: wrap; }
.step {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .82rem; font-weight: 700; text-decoration: none;
  color: var(--cream); background: rgba(255,255,255,.08); border: 2px solid rgba(222,184,135,.45);
}
.step.locked { opacity: .45; }
.step.current { border-color: white; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.step.done.great { background: var(--teal); border-color: var(--teal); }
.step.done.good { background: #3E8E6E; border-color: #3E8E6E; }
.step.done.ok { background: var(--amber); border-color: var(--amber); }
.step.done.low { background: var(--red); border-color: var(--red); }
.top-link { color: var(--tan); font-weight: 700; text-decoration: none; white-space: nowrap; }

main { max-width: 1400px; margin: 0 auto; padding: 24px 20px 40px; outline: none; }
.foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 18px; border-top: 1px solid var(--line); }

/* ---------- buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: 10px 18px; border-radius: 8px; border: 2px solid transparent;
}
.btn.primary { background: var(--teal); color: white; }
.btn.primary:hover { background: var(--teal-dark); }
.btn.ghost { background: white; color: var(--brown); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--copper); }
.btn.big { padding: 12px 24px; font-size: 1.05rem; }
.btn.small { padding: 4px 10px; font-size: .85rem; }
.btn:disabled { opacity: .6; cursor: wait; }
.chip { display: inline-block; background: var(--brown); color: var(--tan); font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.chip.outline { background: transparent; color: var(--copper); border: 1px solid var(--copper); }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 6px; }
.tag { display: inline-block; background: var(--sand); color: var(--brown); font-size: .8rem; padding: 2px 9px; border-radius: 6px; margin: 0 4px 4px 0; }
.pill { font-weight: 700; padding: 2px 8px; border-radius: 6px; color: white; }
.kicker { text-transform: uppercase; letter-spacing: 1.2px; font-size: .78rem; font-weight: 700; color: var(--copper); margin: 0 0 4px; }
.great { --c: var(--teal); } .good { --c: #3E8E6E; } .ok { --c: var(--amber); } .low { --c: var(--red); }
.pill.great, .pill.good, .pill.ok, .pill.low { background: var(--c); }

/* ---------- home ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center;
  background: white; border-radius: 16px; padding: 32px; box-shadow: var(--shadow);
}
.hero h1 { font-size: 2.6rem; margin: 0 0 10px; }
.lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 18px; }
.hero-art { border-radius: 12px; width: 100%; aspect-ratio: 1200 / 460; object-fit: cover; }
.name-field { display: block; font-weight: 700; color: var(--brown); margin-bottom: 16px; }
.name-field input { display: block; margin-top: 6px; width: min(340px, 100%); font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; }
.byline { margin: -4px 0 10px; color: var(--muted); font-size: .95rem; }
.byline a, .foot a { color: var(--copper); font-weight: 600; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.how { margin-top: 32px; }
.how-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: how; }
.how-list li { background: white; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; counter-increment: how; }
.how-list img { height: 90px; width: 100%; object-fit: cover; border-radius: 6px; margin-bottom: 6px; }
.how-list strong::before { content: counter(how) ". "; color: var(--copper); }
.how-list span { color: var(--muted); font-size: .92rem; }
.cards-grid { margin-top: 32px; }
.act-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.act-card {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center;
  background: white; border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink); border: 2px solid transparent;
}
a.act-card:hover { border-color: var(--teal); }
.act-card img { width: 76px; height: 60px; object-fit: cover; border-radius: 6px; }
.act-card.locked { opacity: .55; }
.act-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.act-body .chip { align-self: flex-start; }
.act-status { font-weight: 800; color: var(--c, var(--muted)); padding-right: 6px; }
.history { margin-top: 32px; }
.history table { border-collapse: collapse; background: white; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.history th, .history td { padding: 8px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.history th { background: var(--brown); color: var(--cream); }

/* ---------- activity workspace ---------- */
.workspace { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 22px; align-items: start; }
.brief {
  position: sticky; top: 66px; max-height: calc(100vh - 86px); overflow: auto;
  background: white; border-radius: 14px; padding: 18px; box-shadow: var(--shadow);
}
.brief-art { width: 100%; height: 130px; object-fit: cover; border-radius: 10px; }
.brief h1 { font-size: 1.45rem; margin: 6px 0 10px; }
.brief h1 .num { display: block; font-size: .8rem; color: var(--copper); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.brief h2 { font-size: 1.05rem; margin: 18px 0 6px; }
.you-edit { padding: 8px 12px; border-radius: 8px; font-size: .92rem; background: var(--teal-soft); border-left: 4px solid var(--teal); }
.steps { padding-left: 22px; margin: 0; }
.steps li { margin-bottom: 8px; }
.checklist { margin-top: 14px; background: var(--cream); border-radius: 8px; padding: 8px 12px; font-size: .9rem; }
.checklist summary { cursor: pointer; font-weight: 700; color: var(--brown); }
.checklist ul { padding-left: 18px; margin: 8px 0 0; }
.pts { font-size: .75rem; font-weight: 700; color: var(--muted); background: var(--sand); padding: 1px 6px; border-radius: 5px; white-space: nowrap; }
.practise { margin-top: 14px; }

.work { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.panel { background: white; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.tabs, .preview-bar { display: flex; align-items: center; gap: 4px; padding: 8px 10px; background: var(--sand); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tab { font: inherit; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88rem; border: 0; background: transparent; padding: 7px 12px; border-radius: 8px 8px 0 0; cursor: pointer; color: var(--muted); }
.tab[aria-selected="true"] { background: white; color: var(--brown); font-weight: 700; box-shadow: 0 -2px 0 var(--teal) inset; }
.tab em { font-style: normal; font-family: system-ui, sans-serif; font-size: .7rem; font-weight: 800; text-transform: uppercase; background: var(--teal); color: white; padding: 1px 6px; border-radius: 4px; margin-left: 4px; }
.tab em.lock { background: #A89A8D; }
.spacer { flex: 1; }
.cm-host .CodeMirror { height: 380px; font-size: 14px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.cm-host .CodeMirror-readonly .CodeMirror-lines { background: #FBF9F6; }
.readonly-note { margin: 0; padding: 6px 12px; font-size: .85rem; background: #FFF7E6; color: #7A5A12; border-top: 1px solid #F1DFB5; }
.seg { display: inline-flex; background: white; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { font: inherit; font-size: .85rem; border: 0; background: transparent; padding: 5px 12px; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--brown); color: var(--cream); font-weight: 700; }
.live { font-size: .8rem; color: var(--muted); }
.frame-wrap { background: #EDE6DC; padding: 0; transition: padding .2s; }
.frame-wrap iframe { display: block; width: 100%; height: 440px; border: 0; background: white; margin: 0 auto; transition: width .2s; }
.frame-wrap.phone { padding: 16px 0; }
.frame-wrap.express iframe { height: 480px; }
.frame-wrap.phone iframe { width: var(--phone, 400px); max-width: 100%; height: 640px; border-radius: 18px; box-shadow: 0 0 0 8px var(--brown); }
.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: white; border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); }
.submit-row p { margin: 0; }
.locked-view { max-width: 640px; margin: 20px auto; text-align: center; background: white; padding: 28px; border-radius: 16px; box-shadow: var(--shadow); }
.locked-view img { border-radius: 10px; margin-bottom: 12px; }

/* ---------- report ---------- */
.report { background: white; border-radius: 14px; padding: 22px; box-shadow: var(--shadow); outline: none; border-top: 6px solid var(--teal); }
.report-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.report-head h2 { margin: 0 0 4px; font-size: 1.6rem; }
.ring .ring-bg { fill: none; stroke: var(--sand); stroke-width: 12; }
.ring .ring-fg { fill: none; stroke: var(--c); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset .8s; }
.ring text { font: 800 1.5rem "Trebuchet MS", sans-serif; fill: var(--brown); }
.bad-h { color: var(--red); margin-top: 22px; }
.results { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.results li.fail { border: 1px solid #F3C9C3; background: var(--red-soft); border-radius: 10px; padding: 12px 14px; }
.r-title { margin: 0 0 6px; font-weight: 700; color: var(--red); }
.r-title .pts { margin-left: 6px; }
.found, .why { margin: 4px 0; font-size: .93rem; }
.fix-label { margin: 8px 0 4px; font-size: .85rem; font-weight: 700; color: var(--teal-dark); }
pre.fix { margin: 0; background: var(--green-soft); border-left: 4px solid var(--teal); padding: 10px 12px; border-radius: 6px; font-size: .86rem; overflow-x: auto; white-space: pre-wrap; }
.all-good { background: var(--green-soft); color: var(--teal-dark); font-weight: 700; padding: 12px 14px; border-radius: 10px; margin-top: 18px; }
.lint { margin-top: 14px; background: #FFF7E6; border: 1px solid #F1DFB5; border-radius: 10px; padding: 10px 14px; font-size: .92rem; }
.lint ul { margin: 6px 0 0; padding-left: 18px; }
.passed { margin-top: 14px; background: var(--green-soft); border-radius: 10px; padding: 10px 14px; }
.passed summary { cursor: pointer; font-weight: 700; color: var(--teal-dark); }
.passed li { margin: 6px 0; font-size: .92rem; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compare h4 { margin: 0 0 6px; font-size: .9rem; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
pre.diff { margin: 0; max-height: 420px; overflow: auto; background: #FBF9F6; border: 1px solid var(--line); border-radius: 8px; font-size: .8rem; padding: 6px 0; }
.ln { display: block; padding: 0 10px 0 0; white-space: pre-wrap; word-break: break-word; }
.ln i { display: inline-block; width: 34px; text-align: right; margin-right: 10px; color: #B5A797; font-style: normal; user-select: none; }
.ln.del { background: #FBE2DE; }
.ln.add { background: #D9F0E1; }
.legend .ln { display: inline; padding: 0 6px; border-radius: 4px; }
.mini-frame { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; height: 300px; }
.mini-frame iframe { width: 200%; height: 600px; border: 0; transform: scale(.5); transform-origin: 0 0; background: white; }
.report-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; margin-top: 22px; }

/* ---------- summary ---------- */
.summary { background: white; border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.summary-head { display: grid; grid-template-columns: 260px 1fr; gap: 26px; align-items: center; }
.summary-head img { border-radius: 12px; }
.summary-head h1 { margin: 0 0 12px; }
.summary-score { display: flex; gap: 18px; align-items: center; }
.summary-score h2 { margin: 0 0 4px; }
.bars { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.bars a { display: grid; grid-template-columns: minmax(200px, 340px) 1fr 56px; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); }
.b-label em { font-style: normal; color: var(--muted); font-size: .8rem; margin-left: 4px; }
.b-track { height: 14px; background: var(--sand); border-radius: 999px; overflow: hidden; }
.b-fill { display: block; height: 100%; background: var(--c); border-radius: 999px; }
.b-val { font-weight: 800; text-align: right; }
.advice { margin-top: 22px; background: var(--teal-soft); border-radius: 10px; padding: 10px 16px; }
.print-note { display: none; }

/* ---------- small screens ---------- */
@media (max-width: 1000px) {
  .workspace { grid-template-columns: 1fr; }
  .brief { position: static; max-height: none; }
  .hero { grid-template-columns: 1fr; }
  .how-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  main { padding: 16px 12px 32px; }
  .topbar { flex-wrap: wrap; padding: 8px 12px; gap: 8px; }
  .top-link { margin-left: auto; font-size: .9rem; }
  .brand img { height: 22px; }
  .brand span { padding-left: 8px; font-size: .95rem; }
  .stepper { order: 3; flex: 1 1 100%; justify-content: space-between; gap: 2px; flex-wrap: nowrap; }
  .step { width: 30px; height: 30px; }
  .hero { padding: 20px; }
  .hero h1 { font-size: 2rem; }
  .how-list, .compare { grid-template-columns: 1fr; }
  .summary-head { grid-template-columns: 1fr; }
  .bars a { grid-template-columns: 1fr 48px; }
  .b-track { grid-column: 1 / -1; grid-row: 2; }
  .cm-host .CodeMirror { height: 320px; }
}

/* ---------- print (results page) ---------- */
@media print {
  .topbar, .foot, .report-actions { display: none; }
  body { background: white; }
  .summary { box-shadow: none; padding: 0; }
  .print-note { display: block; }
}

/* ---------- coloured banners for activities and pages without a picture ---------- */
.art-fallback {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brown), var(--copper) 60%, var(--teal));
  color: var(--cream); font: 800 1.1rem "Trebuchet MS", sans-serif; text-align: center;
  border-radius: 10px; padding: 8px;
}
.art-fallback span { opacity: .9; }
.hero-art.art-fallback { aspect-ratio: 1200 / 460; font-size: 2rem; }
.how-list .how-art { height: 90px; width: 100%; object-fit: cover; border-radius: 6px; margin-bottom: 6px; }
.how-list .art-fallback { font-size: 2rem; }
.act-card .act-art { width: 76px; height: 60px; object-fit: cover; border-radius: 6px; }
.act-card .art-fallback { font-size: 1.4rem; padding: 0; }
.brief .brief-art { width: 100%; height: 130px; object-fit: cover; border-radius: 10px; }
.summary-head .summary-art { border-radius: 12px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; font-size: 3rem; }
.locked-view .locked-art { border-radius: 10px; margin: 0 auto 12px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; font-size: 2.4rem; }

/* ---------- console panel under the preview (JS activities) ---------- */
.console { border-top: 1px solid var(--line); background: #1F1B18; color: #E9E2D8; display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; }
.console-label { font: 700 .72rem system-ui, sans-serif; text-transform: uppercase; letter-spacing: 1px; color: var(--tan); padding-top: 2px; }
.console pre { margin: 0; flex: 1; max-height: 120px; overflow: auto; font: .82rem ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; }
.console pre.has-error { color: #FFB4A8; }
.console pre.has-warning:not(.has-error) { color: #F6D58E; }

/* a step can show the exact lines to type: steps: [{ text: '…', code: '…' }] */
.steps pre.step-code { margin: 6px 0 4px; padding: 8px 10px; background: #F4F1EC; border-left: 4px solid var(--copper); border-radius: 6px;
  font: .78rem/1.45 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-all; user-select: all; }

/* ---------- Python labs: output panel instead of a page preview ---------- */
.py-panel #runBtn { margin-left: 6px; }
.live.busy::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; border: 2px solid var(--teal); border-right-color: transparent; animation: spin .8s linear infinite; vertical-align: -1px; }
@keyframes spin { to { transform: rotate(360deg); } }
.py-out { background: #1F1B18; color: #E9E2D8; min-height: 260px; max-height: 520px; overflow: auto; padding: 12px 14px; transition: opacity .2s; }
.py-out.small { min-height: 120px; max-height: 360px; border-radius: 8px; }
.py-out.stale { opacity: .55; }
.py-out pre { margin: 0 0 8px; font: .84rem/1.45 ui-monospace, Menlo, Consolas, monospace; white-space: pre; overflow-x: auto; }
.py-out .py-error, .py-out .py-warn { white-space: pre-wrap; overflow-wrap: anywhere; }
.py-out .py-warn { color: #F6D58E; }
.py-out .py-error { color: #FFB4A8; }
.py-out .py-empty { margin: 0; color: #B8AEA2; font-size: .9rem; }
.py-out .py-empty code { color: #E9E2D8; }
.py-out .py-fig { display: block; max-width: 100%; background: white; border-radius: 6px; margin: 4px 0 10px; }

/* ---------- exam mode (LAB.exam) ---------- */
.exam-timer { margin-left: auto; margin-right: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: white; font: 700 .95rem/1.2 ui-monospace, Menlo, Consolas, monospace; white-space: nowrap; }
.exam-timer.warn { background: var(--amber); }
.exam-timer.urgent { background: var(--red); animation: exam-pulse 1s infinite; }
@keyframes exam-pulse { 50% { opacity: .65; } }
.exam-hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
.exam-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 18px; padding: 0; }
.exam-facts span { padding: 6px 14px; border-radius: 999px; background: var(--sand); color: var(--brown); }
.exam-facts strong { font-size: 1.1rem; }
.exam-start { display: grid; gap: 12px; max-width: 420px; }
.exam-start label { display: grid; gap: 6px; font-weight: 700; color: var(--brown); }
.exam-start input { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.exam-start input:focus { outline: 3px solid var(--teal-soft); border-color: var(--teal); }
.exam-start .btn { justify-self: start; }
.exam-err { min-height: 1.2em; margin: 0; color: var(--red); font-weight: 700; }
.exam-rules { background: white; border: 1px solid var(--line); border-left: 5px solid var(--copper); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); }
.exam-rules h2 { margin: 0 0 8px; font-size: 1.15rem; }
.exam-rules ul { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 6px; }
.exam-who { color: var(--muted); margin: 0 0 10px; }
.exam-left { font-size: 1.15rem; margin: 0 0 16px; }
.exam-left strong { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.5rem; color: var(--brown); }
.step.begun { border-color: var(--copper); color: var(--copper); }
.exam-row { flex-wrap: wrap; gap: 10px; }
.exam-row p { flex: 1 1 260px; }
.exam-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(20, 14, 10, .55); }
.exam-overlay > div { background: white; padding: 28px 36px; border-radius: 16px; box-shadow: var(--shadow); text-align: center; min-width: min(360px, 90vw); }
.exam-overlay h2 { margin: 0 0 8px; }
.exam-download { display: grid; gap: 6px; margin: 20px 0 26px; padding: 18px 22px; background: var(--teal-soft); border: 1px solid var(--teal); border-radius: var(--radius); }
.exam-download h2 { margin: 0; font-size: 1.2rem; }
.exam-download p { margin: 0; }
.exam-download .report-actions { justify-content: flex-start; margin: 8px 0 0; }
.exam-detail { background: white; border: 1px solid var(--line); border-radius: var(--radius); margin: 10px 0; padding: 10px 16px; }
.exam-detail summary { cursor: pointer; display: flex; gap: 10px; align-items: center; }
.exam-detail summary .pts { margin-left: auto; }
.exam-checks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.exam-checks li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: start; padding: 8px 10px; border-radius: 8px; background: var(--green-soft); }
.exam-checks li.fail { background: var(--red-soft); }
.exam-checks .mark { font-weight: 800; color: var(--teal-dark); }
.exam-checks li.fail .mark { color: var(--red); }
.exam-checks .found { color: var(--muted); font-size: .92em; }
@media (max-width: 820px) { .exam-hero { grid-template-columns: 1fr; } .exam-timer { margin-right: 8px; font-size: .85rem; } }
@media print { .exam-download, .exam-overlay { display: none; } .exam-detail { break-inside: avoid; } .exam-detail:not([open]) > *:not(summary) { display: block; } }
