:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #172e2c;
  background: #f1f6f3;
  accent-color: #0c6656;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { width: min(100% - 2rem, 49rem); margin: 0 auto; padding: 1.4rem 0 2rem; }
h1, h2 { margin: 0 0 .7rem; line-height: 1.15; letter-spacing: -.025em; }
h1 { font-size: 1.65rem; }
h2 { font-size: clamp(1.45rem, 4.5vw, 2.3rem); }
section { margin-top: 1.25rem; }
form { padding: 1.15rem; background: white; border: 1px solid #bbd4cc; border-radius: 1rem; }
form > label, legend { font-weight: 650; }
fieldset { margin: 1rem 0; border: 0; padding: 0; }
fieldset label { display: flex; align-items: center; gap: .5rem; min-height: 2.75rem; }
input[type=radio] { width: 1.1rem; height: 1.1rem; }
select, button { color: inherit; font: inherit; }
select { display: block; width: 100%; margin-top: .4rem; padding: .65rem; border-radius: .55rem; border: 1px solid #849f96; background: white; }
button { min-height: 2.75rem; padding: .5rem .88rem; border-radius: .65rem; border: 1px solid #849f96; background: white; font-weight: 650; cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
button.primary { background: #0c6656; color: white; border-color: #0c6656; }
button[aria-pressed=true] { background: #d4eee5; border-color: #0c6656; }
:focus-visible { outline: 3px solid #a24a1e; outline-offset: 3px; }
.problem { padding-bottom: .35rem; }
.problem p { margin: 0 0 .45rem; color: #365c53; }
.paper { overflow: hidden; background: white; border: 1px solid #bbd4cc; border-radius: 1rem; }
.toolbar, .actions, nav { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.toolbar { justify-content: space-between; padding: .55rem; border-bottom: 1px solid #d2e4dd; }
canvas { display: block; width: 100%; height: clamp(13rem, 43dvh, 29rem); touch-action: none; cursor: crosshair; }
canvas.moving { cursor: grab; }
.pad-help { margin: 0; padding: .55rem .75rem; border-top: 1px solid #d2e4dd; color: #365c53; font-size: .9rem; }
.actions { margin: .65rem 0; }
.actions button { flex: 1; }
.feedback { background: #daeee6; padding: .85rem; border-radius: .65rem; overflow-wrap: anywhere; }
nav { margin-top: .8rem; }
nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .3rem; color: #0a5949; }
#setup-status:empty { display: none; }
