:root { color-scheme: light; font-family: system-ui, sans-serif; color: #152943; background: #f3f7fa; }
body { margin: 0; }
main { max-width: 50rem; margin: auto; padding: clamp(1rem, 4vw, 3rem); }
header { border-bottom: 2px solid #137385; margin-bottom: 1.5rem; }
h1 { font-size: clamp(1.55rem, 4vw, 2.5rem); line-height: 1.12; }
section { background: white; border: 1px solid #d3e1eb; border-radius: .6rem; padding: clamp(.8rem, 3vw, 1.7rem); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
#question-prompt { font-weight: 600; padding: 0 0 .65rem; }
label { display: flex; gap: .65rem; align-items: baseline; padding: .65rem; margin-bottom: .4rem; border: 1px solid #d3e1eb; border-radius: .35rem; cursor: pointer; }
label:has(input:checked) { border-color: #137385; background: #eaf7f8; }
.option-body { flex: 1; min-width: 0; }
.option-body img { width: min(100%, 20rem); }
input { accent-color: #137385; }
button { font: inherit; padding: .6rem .95rem; background: #125669; color: white; border: 0; border-radius: .35rem; cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
nav { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
img { max-width: 100%; height: auto; display: block; margin: .65rem auto; }
details { border-top: 1px solid #d3e1eb; padding: .7rem 0; }
summary { cursor: pointer; font-weight: 600; }
.katex-display { overflow-x: auto; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; margin: .4rem 0; }
td, th { border: 1px solid #c8d6df; padding: .3rem .5rem; text-align: center; }
th { text-align: left; }

.test-status { display:flex; justify-content:space-between; gap:.5em; flex-wrap:wrap; }
#timer { font-variant-numeric:tabular-nums; font-weight:700; }
.numeric-answer { display:grid; gap:.45rem; max-width:16rem; margin:1rem 0; }
.numeric-answer input { font:inherit; padding:.55rem; max-width:100%; border:1px solid #6f8998; border-radius:.25rem; }
.table-scroll { overflow:auto; margin:1em 0; }
table { border-collapse:collapse; }
th,td { padding:.3em .55em; border:1px solid #9eafb9; text-align:center; }
