:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f3f6fb;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.site-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 5vw; background: #fff; border-bottom: 1px solid #dfe5ef; }
.brand { color: #173d8f; font-weight: 800; text-decoration: none; }
.page-shell { width: min(900px, 92vw); margin: 3rem auto; }
.card { padding: clamp(1.5rem, 4vw, 3rem); background: #fff; border: 1px solid #dfe5ef; border-radius: 18px; box-shadow: 0 16px 40px rgba(30, 55, 95, .08); }
.narrow { width: min(560px, 100%); margin-inline: auto; }
.eyebrow { color: #315fbd; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin-top: .3rem; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; }
h2 { margin-top: 2rem; }
label { display: block; margin: 1.2rem 0 .45rem; font-weight: 700; }
input, textarea, select, output { width: 100%; padding: .8rem .9rem; border: 1px solid #b9c4d6; border-radius: 9px; font: inherit; background: #fff; }
textarea { resize: vertical; }
output { display: block; background: #f7f9fc; }
.field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.primary-button { display: inline-block; margin-top: 1.5rem; padding: .85rem 1.2rem; border: 0; border-radius: 9px; background: #1747a6; color: #fff; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
.primary-button:disabled { opacity: .55; cursor: wait; }
.link-button { border: 0; background: transparent; color: #315fbd; cursor: pointer; }
.field-error { color: #a52020; }
.notice { padding: .9rem 1rem; margin-bottom: 1rem; border-radius: 9px; background: #fff4cf; }
.status-pill { display: inline-block; padding: .4rem .7rem; border-radius: 999px; background: #e8efff; font-weight: 800; text-transform: capitalize; }
.score { font-size: 3rem; font-weight: 800; }
.metadata { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1rem; margin-top: 2rem; }
.metadata dt { font-weight: 800; }
.metadata dd { margin: 0; }
.back-link { color: #315fbd; font-weight: 700; }
.task-text { max-width: 72ch; font-size: 1.05rem; line-height: 1.65; white-space: pre-wrap; }
.task-image { display: block; width: min(100%, 760px); max-height: 620px; margin: 1.5rem auto; object-fit: contain; border: 1px solid #dfe5ef; border-radius: 12px; }
.question-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-top: 2rem; }
.question-card { display: grid; gap: .35rem; padding: 1rem; color: #172033; text-decoration: none; text-transform: capitalize; border: 1px solid #dfe5ef; border-radius: 12px; background: #f8faff; }
.question-card:hover, .question-card:focus-visible { border-color: #315fbd; box-shadow: 0 8px 20px rgba(30, 55, 95, .08); }

@media (max-width: 700px) {
  .field-grid { grid-template-columns: 1fr; }
  .page-shell { margin-block: 1.5rem; }
}
