:root {
  color-scheme: light;
  font: 16px/1.55 system-ui, sans-serif;
  --ink: #172b2b;
  --muted: #466160;
  --primary: #126259;
  --line: #ccdcd7;
  --bg: #f3f7f4;
  --surface: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
.wrap { width: min(100% - 2rem, 65rem); margin-inline: auto; }
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top nav, .heading, .quiz-row, .admin-strip, .actions {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
}
.top nav { min-height: 4.5rem; padding-block: .6rem; }
.brand { font-weight: 780; margin-right: auto; text-decoration: none; color: var(--ink); }
.mark { display: inline-grid; place-items: center; margin-right: .35rem; width: 2rem; height: 2rem; border-radius: .6rem; background: var(--primary); color: white; }
.identity, .muted { color: var(--muted); overflow-wrap: anywhere; }
.language-picker { display: flex; gap: .65rem; font-size: .875rem; }
.language-picker [aria-current] { font-weight: 700; }
main.wrap { padding-block: 2.5rem 4rem; }
.heading, .quiz-row, .admin-strip { justify-content: space-between; }
.heading { margin-bottom: 1.4rem; }
h1, h2, h3 { line-height: 1.17; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.045em; margin: .25rem 0 .7rem; }
h2 { margin: .55rem 0; }
h3 { font-size: 1.25rem; margin: 0 0 1rem; }
p { margin: 0 0 .85rem; }
a { color: var(--primary); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #087e72; outline-offset: 3px; }
button, .button {
  display: inline-block; font: inherit; font-weight: 680; padding: .52rem .92rem;
  border: 1px solid var(--primary); border-radius: .55rem; background: var(--primary);
  color: white; text-decoration: none; cursor: pointer;
}
button:hover, .button:hover { background: #084c45; }
.secondary { color: var(--primary); background: var(--surface); border-color: var(--line); }
.secondary:hover { background: #e8f3ee; }
.panel { min-inline-size: 0; margin: 0 0 1rem; padding: clamp(1rem, 3vw, 1.65rem); background: var(--surface); border: 1px solid var(--line); border-radius: .95rem; }
.compact { max-width: 36rem; margin-inline: auto; }
.eyebrow, .tag { font-size: .78rem; font-weight: 740; color: var(--primary); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; margin: 0; }
.tag { display: inline-block; border-radius: 1rem; padding: .22rem .65rem; background: #e6f2ec; }
.back { display: inline-block; margin-bottom: 1.15rem; }
.notice { padding: .8rem 1rem; border: 1px solid var(--line); border-radius: .55rem; background: white; }
.success { background: #e3f3ea; }
.error { background: #fff0ea; color: #8b311a; }
.stack { display: grid; gap: .55rem; margin-block: 1.3rem; }
.stack button { justify-self: start; margin-top: .5rem; }
.starter-library { border: 1px solid var(--line); border-radius: .55rem; padding: .75rem 1rem; }
.starter-library summary { font-weight: 680; }
.starter-library p { margin-top: .55rem; }
.starter-library h2 { font-size: 1rem; margin-top: .9rem; }
.starter-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: .5rem; margin: .5rem 0; padding: 0; list-style: none; }
.starter-list li { background: var(--bg); padding: .5rem .7rem; border-radius: .45rem; }
.starter-list .actions { font-size: .875rem; margin-top: .2rem; }
label { font-weight: 640; }
input[type=email], input[name=code], input[type=file], textarea, select {
  display: block; font: inherit; max-width: 100%; width: 100%; color: inherit;
  border: 1px solid #a7bcb6; border-radius: .5rem; padding: .62rem .75rem; background: white;
}
textarea { resize: vertical; }
.danger { background: #8b311a; border-color: #8b311a; }
.danger:hover { background: #6f2412; }
textarea.mono, code, pre { font-family: ui-monospace, monospace; }
pre, .prose { overflow-x: auto; }
.prose table { border-collapse: collapse; }
.prose td, .prose th { border: 1px solid var(--line); padding: .3rem .5rem; }
.question { margin-top: 1.15rem; }
.section-title { margin-top: 2rem; }
.options { display: grid; gap: .45rem; }
.option { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem .7rem; padding: .65rem .7rem; border: 1px solid var(--line); border-radius: .5rem; font-weight: 450; overflow-wrap: anywhere; }
.option span:first-of-type { flex: 1 1 10rem; min-width: 0; }
.option input { accent-color: var(--primary); }
.correct, .solution { background: #eaf5ef; }
.answer-tag { font-size: .75rem; font-weight: 740; color: var(--primary); }
.solution { border-left: .25rem solid var(--primary); margin-top: 1rem; padding: .7rem .9rem; }
.solution p:last-child, .panel p:last-child { margin-bottom: 0; }
.student-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.results > li { margin-block: 1rem; }
summary { cursor: pointer; overflow-wrap: anywhere; }
