:root {
  color-scheme: light;
  --ink: #162827; --muted: #526563; --page: #f3f6f3; --paper: #fff;
  --line: #d7e0dc; --brand: #123e35; --light: #e7f1eb; --accent: #c2e388;
  font-family: 'Segoe UI', Arial, sans-serif; color: var(--ink); background: var(--page);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--brand); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
:focus-visible { outline: 3px solid #428c42; outline-offset: 3px; }
.top { min-height: 70px; padding: 12px max(5vw, 18px); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--paper); border-bottom: 1px solid var(--line); }
.top a { text-decoration: none; font-size: .92rem; font-weight: 650; }
.top .home { display: flex; align-items: center; gap: clamp(13px, 2.3vw, 28px); }
.home img { display: block; width: auto; height: clamp(35px, 6vw, 48px); }
main { width: min(1100px, calc(100% - 36px)); margin: 48px auto 80px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; letter-spacing: -.045em; }
h2 { font-size: 1.15rem; }
.sub { color: var(--muted); margin-top: 14px; line-height: 1.5; }
.intro { max-width: 920px; display: grid; grid-template-columns: .9fr 1fr; overflow: hidden; border-radius: 22px; background: white; border: 1px solid var(--line); margin: 65px auto; }
.intro-info { background: var(--brand); color: white; padding: 48px 35px; }
.intro-info p { color: #d6e7dc; margin-top: 18px; line-height: 1.5; }
.metrics { display: flex; flex-wrap: wrap; gap: 20px; border-top: 1px solid #ffffff36; margin-top: 40px; padding-top: 25px; }
.metrics b { display: block; color: var(--accent); font-size: 1.75rem; }
.metrics span { font-size: .86rem; color: #d6e7dc; }
form { padding: 34px; display: grid; align-content: center; gap: 16px; }
label { display: grid; gap: 7px; font-weight: 600; font-size: .92rem; }
input, textarea, select { border: 1px solid #aebfba; border-radius: 9px; padding: 10px 12px; background: white; color: var(--ink); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); width: 17px; height: 17px; flex: none; }
textarea { min-height: 200px; resize: vertical; width: 100%; }
.btn { border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--brand); font-weight: 650; padding: 10px 16px; }
.primary { background: var(--brand); color: white; border-color: var(--brand); }
.exam-head { display: flex; justify-content: space-between; align-items: start; gap: 18px; margin-bottom: 23px; }
.exam-head h1 { font-size: clamp(1.65rem, 3vw, 2.55rem); }
.clock { font-variant-numeric: tabular-nums; font-size: 1.25rem; font-weight: 700; padding: 10px 15px; border-radius: 9px; background: var(--light); }
.exam-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 22px; align-items: start; }
.card, .sidebar { border: 1px solid var(--line); border-radius: 15px; background: white; padding: 24px; }
.sidebar { position: sticky; top: 15px; }
.kicker { color: var(--brand); font-size: .88rem; font-weight: 700; margin-bottom: 13px; }
.prompt { font-size: 1.14rem; line-height: 1.6; white-space: pre-wrap; }
.prompt select { max-width: 100%; font-size: .93rem; margin: 5px; }
.options { margin: 20px 0; display: grid; gap: 10px; }
.choice { display: flex; align-items: start; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; line-height: 1.4; font-weight: 400; }
.choice:has(input:checked) { background: var(--light); border-color: #81ad97; }
.choice select { max-width: 100%; }
.match-row { display: grid; gap: 8px; }
.order-row { justify-content: space-between; align-items: center; }
.arrows { display: flex; gap: 5px; }
.arrows .btn { padding: 5px 9px; }
.moves { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.nav { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin: 13px 0 18px; }
.nav button { padding: 7px 0; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); }
.nav .answered { background: var(--light); }
.nav .current { background: var(--brand); color: white; }
.question-image { display: block; max-width: 100%; height: auto; margin: 15px 0; border-radius: 8px; }
#notice { position: fixed; bottom: 16px; right: 16px; max-width: min(500px, 90vw); color: white; background: var(--brand); padding: 12px 16px; border-radius: 8px; }
#notice:empty { display: none; }
.result { max-width: 670px; margin: 60px auto; text-align: center; padding: 40px; }
.result-review { max-width: 890px; margin: 0 auto; }
.result-review h3, .result-review h4 { margin: 0; font-size: .96rem; }
.score { color: var(--brand); font-size: 4rem; margin: 20px 0 5px; font-weight: 750; }
.teacher-item { margin-top: 14px; }
.teacher-item details { margin-top: 12px; line-height: 1.5; }
.teacher-item details summary { cursor: pointer; color: var(--brand); font-weight: 650; }
.teacher-item input { width: 70px; }
.teacher-item .controls { display: flex; gap: 10px; margin-top: 13px; }
.closed-review, .open-review { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; }
.answer-list { display: grid; gap: 12px; margin-top: 12px; }
.answer-item { border: 1px solid var(--line); border-radius: 9px; padding: 14px; min-width: 0; }
.answer-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.teacher-item h3, .teacher-item h4 { margin: 0; font-size: .96rem; }
.answer-text { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 7px; line-height: 1.5; }
.answer-field { margin-top: 10px; padding: 9px 11px; border-radius: 6px; background: #f1f4f2; }
.answer-status { border-radius: 6px; padding: 4px 8px; font-weight: 700; font-size: .84rem; }
.answer-status.correct, .answer-field.correct { background: #e5f5ea; color: #185d34; }
.answer-status.incorrect, .answer-field.incorrect { background: #fdebec; color: #8d252d; }
.answer-status.unanswered { background: #edf1ef; color: #475956; }
.answer-field.expected { border-left: 3px solid #aebfba; }
@media (max-width: 760px) {
  main { margin-top: 25px; }
  .intro, .exam-layout { grid-template-columns: 1fr; }
  .intro { margin: 25px auto; }
  .intro-info { padding: 30px 24px; }
  .sidebar { position: static; }
  .card, .sidebar, form { padding: 18px; }
  .top { gap: 10px; }
}
@media (max-width: 460px) {
  .top { flex-wrap: wrap; }
}

/* Approved cobalt layout */
:root { --ink:#142945; --muted:#526480; --page:#edf3fb; --line:#d6e1ef; --brand:#004da8; --light:#e6efff; --accent:#2466d4; }
.top { padding:clamp(24px,3vw,34px) clamp(20px,5vw,56px); border-top:3px solid var(--brand); }
.top .home { gap:clamp(20px,3vw,38px); }
.home img { height:clamp(28px,3.5vw,38px); }
.intro { max-width:1100px; grid-template-columns:1.2fr 1fr; padding:24px; gap:20px; border-radius:30px; background:var(--page); }
.intro-info { border:1px solid var(--line); border-radius:24px; overflow:hidden; background:white; color:var(--ink); padding:0; }
.entry-copy { padding:clamp(18px,3vw,36px) clamp(18px,3.3vw,42px) 12px; }
.entry-copy h1 { font-size:clamp(1.95rem,3.8vw,3.55rem); max-width:18ch; }
.entry-subtitle { margin-top:10px; font-size:1.3rem; letter-spacing:.06em; color:var(--muted); }
.entry-mascot { aspect-ratio:1.52; overflow:hidden; margin:0 clamp(6px,1.2vw,16px) 8px; }
.entry-mascot img { display:block; width:100%; height:100%; object-fit:cover; object-position:center 61%; }
.metrics { border:0; padding:0; margin-top:12px; gap:7px; }
.metrics > span { border-radius:999px; border:1px solid var(--line); background:var(--light); color:var(--ink); padding:5px 9px; font-size:.76rem; white-space:nowrap; }
.metrics b { display:inline; color:inherit; font-size:inherit; margin-right:.35em; }
.metrics span span { color:inherit; font-size:inherit; }
.intro form,.card,.sidebar { border-radius:24px; background:#fff; }
.intro form { border:1px solid var(--line); }
.btn { border-radius:999px; }
input,select,textarea,.choice { border-radius:14px; }
.eyebrow { font-size:.73rem; letter-spacing:.095em; text-transform:uppercase; font-weight:700; color:var(--muted); margin-bottom:6px; }
.exam-head { margin-bottom:14px; }
.progress-panel { padding:12px 17px; margin-bottom:14px; border-radius:17px; }
.progress-label { display:flex; justify-content:space-between; gap:12px; font-size:.83rem; margin-bottom:7px; }
.progress-label span { color:var(--muted); }
.progress-parts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
.part-progress { background:#f6f9fd; border-radius:11px; text-align:left; min-width:0; padding:7px 9px 8px; }
.part-progress[aria-current=step] { background:var(--light); border-color:var(--accent); }
.part-progress span { display:flex; flex-wrap:wrap; gap:2px 6px; justify-content:space-between; align-items:baseline; font-size:.74rem; margin-bottom:5px; }
.part-progress small { white-space:nowrap; font-variant-numeric:tabular-nums; }
.part-progress progress { width:100%; height:5px; display:block; accent-color:var(--accent); }
@media (max-width:760px) { .intro { grid-template-columns:1fr; padding:13px; gap:12px; } }
.review-fields { display:flex; flex-wrap:wrap; align-items:end; gap:10px; margin-top:12px; }
