:root { color-scheme: light; font: 100%/1.55 system-ui, sans-serif; color: #1a283e; background: #eff4fb; }
* { box-sizing: border-box; }
body { margin: 0; }
header { display: flex; justify-content: space-between; align-items: center; background: #112742; padding: 1rem max(1rem, calc((100vw - 62rem) / 2)); }
header a { color: white; font-weight: 700; text-decoration: none; }
main { max-width: 62rem; margin: auto; padding: 1rem; }
nav, .actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: .75rem; }
section { padding: clamp(1rem, 4vw, 2rem); background: white; border: 1px solid #ccd9ec; border-radius: 1rem; }
h1 { margin: 0 0 1rem; }
button, .primary, input, textarea { font: inherit; color: inherit; border: 1px solid #a6b8d2; border-radius: .5rem; }
button, .primary { display: inline-block; padding: .55rem .85rem; background: #fff; cursor: pointer; text-decoration: none; }
.primary, [aria-current="page"] { background: #174791; color: white; border-color: #174791; }
button:disabled { opacity: .55; cursor: default; }
textarea, input { display: block; width: 100%; padding: .5rem; margin: .25rem 0 .8rem; }
canvas { display: block; width: 100%; max-height: 50vh; border: 1px solid #a6b8d2; border-radius: .5rem; touch-action: none; background: repeating-linear-gradient(white 0 29px, #e1e9f4 29px 30px); }
#stem { white-space: pre-wrap; font-size: 1.2rem; }
#problems button, #units button { margin: .2rem; }