:root { --ink:#1d2733; --soft:#556270; --line:#c9d0d8; --paper:#fff; --page:#f3f5f7; --main:#1c4f7c; --bad:#a3261b; }
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; scroll-padding-top:16px; }
body { margin:0; background:var(--page); color:var(--ink); font:18px/1.5 -apple-system,system-ui,"Segoe UI",Roboto,sans-serif; }
main, header, footer { max-width:640px; margin:0 auto; padding:0 16px; }
header { padding-top:24px; }
h1 { font-size:28px; line-height:1.2; margin:0 0 8px; }
h2 { font-size:21px; line-height:1.3; margin:0 0 8px; }
p { margin:0 0 12px; }
a { color:var(--main); }
[hidden] { display:none !important; }
.soft { color:var(--soft); font-size:16px; }
.card { background:var(--paper); border:1px solid var(--line); border-radius:12px; padding:18px 16px; margin:16px 0; }
.testbar { background:#8a1c12; color:#fff; text-align:center; padding:10px 16px; font-weight:600; }
.pick { display:flex; align-items:center; gap:14px; min-height:52px; border-top:1px solid var(--line); cursor:pointer; }
.pick input[type=checkbox] { width:26px; height:26px; margin:0; flex:none; accent-color:var(--main); }
.pick:has(input[type=checkbox]:disabled) { color:#7d8894; }
label.field { display:block; font-weight:600; margin:14px 0 0; }
input[type=text], input[type=email] { display:block; width:100%; font:inherit; font-weight:400; color:inherit; padding:12px; margin-top:4px; border:1px solid #8793a0; border-radius:8px; background:#fff; }
.pick input[type=text] { margin:6px 0; }
.signhead { display:flex; justify-content:space-between; align-items:end; margin-top:16px; font-weight:600; }
canvas.sign { display:block; width:100%; height:170px; margin-top:4px; border:1px solid #8793a0; border-radius:8px; background:#fff; touch-action:none; -webkit-user-select:none; user-select:none; }
button, .button { display:block; width:100%; font:inherit; font-weight:600; text-align:center; text-decoration:none; padding:14px; border-radius:10px; border:1px solid var(--main); background:#fff; color:var(--main); cursor:pointer; margin:10px 0; }
button.main, .button.main { background:var(--main); color:#fff; }
button.link { width:auto; border:0; background:none; padding:6px 0; margin:0; text-decoration:underline; }
:focus-visible { outline:3px solid #e0a100; outline-offset:2px; }
.error { color:var(--bad); font-weight:600; }
.error:empty { display:none; }
summary { font-weight:600; padding:8px 0; cursor:pointer; color:var(--main); }
blockquote { margin:0 0 12px; padding-left:14px; border-left:3px solid var(--line); font-size:16px; }
.sheet { display:block; width:100%; height:auto; border:1px solid var(--line); margin:12px 0; background:#fff; }
.address { font-weight:600; overflow-wrap:anywhere; }
footer { padding-top:8px; padding-bottom:40px; }
table { width:100%; border-collapse:collapse; } th,td { text-align:left; padding:10px 0; border-bottom:1px solid var(--line); } td { font-variant-numeric:tabular-nums; font-size:24px; }
h2:focus { outline:none; }
