* { box-sizing: border-box; }
body { margin: 0; font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1d232b; background: #f6f5f2; }
.bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #1d3b53; color: #fff; }
.brand { font-weight: 600; }
.progress { font-size: 14px; }
main { max-width: 680px; margin: 0 auto; padding: 16px; }
.turnstile { margin: 12px 0; }
.turnstile[hidden] { display: none; }
h1:focus { outline: none; }
h1:focus-visible { outline: 2px solid #1d4f8a; outline-offset: 2px; }
/* S12: 320 px phones get more room (compact Turnstile is set in app.js). */
@media (max-width: 359px) {
  main { padding: 8px; }
  section { padding: 8px; }
}
h1 { font-size: 22px; margin: 8px 0 12px; }
section { background: #fff; border-radius: 10px; padding: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.consent p { margin: 0 0 12px; }
.consent .head { font-weight: 600; }
label { display: block; margin: 12px 0 4px; }
label.check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; }
label.check input { width: 22px; height: 22px; flex: none; margin-top: 2px; }
input, textarea { width: 100%; font: inherit; padding: 10px; border: 1px solid #9aa4ad; border-radius: 6px; }
button { font: inherit; }
button.primary { display: block; width: 100%; margin-top: 16px; padding: 14px; border: 0; border-radius: 8px; background: #1d6b4a; color: #fff; font-weight: 600; }
button.primary:disabled { background: #9aa4ad; }
button.link { background: none; border: 0; color: #1d4f8a; text-decoration: underline; padding: 8px 0; }
.small { font-size: 14px; color: #4a545e; }
.notice { background: #fff6d6; border: 1px solid #e0c768; padding: 10px; border-radius: 6px; }
.pages canvas { display: block; width: 100%; height: auto; margin: 0 0 12px; border: 1px solid #d5d9dd; }
#pad { width: 100%; height: auto; border: 1px dashed #6b7680; border-radius: 6px; touch-action: none; background: #fff; }
#spot-ink { display: block; max-width: 100%; height: 70px; margin: 12px 0; }
.foot { text-align: center; }
code { word-break: break-all; }
