:root{--color-desk: #e8ebf0;--color-bg: var(--color-desk);--color-surface: #ffffff;--color-sheet: #ffffff;--color-text: #151c2e;--color-muted: #525d72;--color-border: #c6cdda;--color-rule: #dde2ec;--color-ink: #1b2a4a;--color-primary: #24398a;--color-primary-hover: #1b2c70;--color-primary-text: #ffffff;--color-secondary: #f2f4f8;--color-secondary-text: #151c2e;--color-danger: #b42318;--color-danger-bg: #fdecea;--color-success: #0f6b4f;--color-success-bg: #e3f3ec;--color-focus: #24398a;--color-disabled: #8a93a5;--shadow-sheet: 0 1px 2px rgba(21, 28, 46, .08), 0 8px 24px -12px rgba(21, 28, 46, .18);--color-pad-paper: #ffffff;--color-pad-frame: #8b94a3;--color-pad-guide: #aab3c4;--font-sheet: Charter, "Bitstream Charter", "Iowan Old Style", "Sitka Text", Cambria, Georgia, serif;--font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;color-scheme:light}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--color-desk: #0e1218;--color-surface: #161b24;--color-sheet: #1a2029;--color-text: #e9edf4;--color-muted: #a6b0c1;--color-border: #3a4352;--color-rule: #2a3240;--color-ink: #dfe6f5;--color-primary: #9db4ff;--color-primary-hover: #b8c9ff;--color-primary-text: #0a1230;--color-secondary: #232a36;--color-secondary-text: #e9edf4;--color-danger: #ff8a80;--color-danger-bg: #3a1714;--color-success: #5ed39a;--color-success-bg: #12301f;--color-focus: #b8c9ff;--color-disabled: #5b6471;--shadow-sheet: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);color-scheme:dark}}:root[data-theme=dark]{--color-desk: #0e1218;--color-surface: #161b24;--color-sheet: #1a2029;--color-text: #e9edf4;--color-muted: #a6b0c1;--color-border: #3a4352;--color-rule: #2a3240;--color-ink: #dfe6f5;--color-primary: #9db4ff;--color-primary-hover: #b8c9ff;--color-primary-text: #0a1230;--color-secondary: #232a36;--color-secondary-text: #e9edf4;--color-danger: #ff8a80;--color-danger-bg: #3a1714;--color-success: #5ed39a;--color-success-bg: #12301f;--color-focus: #b8c9ff;--color-disabled: #5b6471;--shadow-sheet: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);color-scheme:dark}*,*:before,*:after{box-sizing:border-box}html,body{margin:0;padding:0;background:var(--color-bg);color:var(--color-text);font-family:var(--font-ui);font-size:16px;line-height:1.55;-webkit-text-size-adjust:100%}body{min-height:100vh;overflow-x:hidden}.brand{display:flex;flex-direction:column;gap:10px;width:100%;max-width:640px;margin:0 auto;padding:16px 16px 0}.brand-name{font-family:var(--font-sheet);font-size:1.0625rem;font-weight:700;color:var(--color-ink)}.steps{display:flex;gap:6px;margin:0;padding:0;list-style:none}.steps li{flex:1 1 0;padding-top:8px;border-top:3px solid var(--color-rule);color:var(--color-muted);font-size:.8125rem;line-height:1.3}.steps li[data-state=done]{border-top-color:var(--color-ink)}.steps li[aria-current=step]{border-top-color:var(--color-primary);color:var(--color-text);font-weight:600}.page{width:100%;max-width:640px;margin:0 auto;padding:16px 16px 32px}.step{display:flex;flex-direction:column;gap:16px}.step-card{padding:24px 20px;border-radius:4px;background:var(--color-sheet);box-shadow:var(--shadow-sheet)}.step-card>h1{margin-top:0}h1{font-family:var(--font-sheet);font-size:1.625rem;line-height:1.2;margin:8px 0 0;color:var(--color-ink);overflow-wrap:anywhere;text-wrap:balance}h2.section-title{font-family:var(--font-sheet);font-size:1.0625rem;margin:8px 0 0;color:var(--color-ink)}h1:focus,h2:focus{outline:none}p{margin:0;overflow-wrap:anywhere;max-width:65ch}.lead{font-size:1.0625rem}.muted:empty,.hint:empty{display:none}.muted,.hint{color:var(--color-muted);font-size:.9375rem}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.status{color:var(--color-text)}.status[role=status]:empty{display:none}.alert{padding:12px 14px;border-left:4px solid var(--color-danger);border-radius:4px;background:var(--color-danger-bg);color:var(--color-danger);font-weight:500}.required{color:var(--color-muted);font-size:.875rem}.sheet{display:flex;flex-direction:column;gap:14px;padding:24px 20px;border-radius:4px;background:var(--color-sheet);box-shadow:var(--shadow-sheet);font-family:var(--font-sheet);font-size:1.0625rem;line-height:1.65}.doc-text{white-space:pre-wrap}.check{display:flex;gap:12px;align-items:flex-start;min-height:44px;padding:10px 12px;border:1px solid var(--color-rule);border-radius:4px;cursor:pointer;font-family:var(--font-sheet)}.check:has(input:checked){border-color:var(--color-ink)}.check input{flex:0 0 auto;width:22px;height:22px;margin:2px 0 0;accent-color:var(--color-primary)}.signer-line{display:flex;flex-direction:column;gap:2px;padding-top:14px;border-top:1px solid var(--color-rule);font-family:var(--font-ui)}.signer-name{font-family:var(--font-sheet);font-size:1.125rem;font-weight:700;color:var(--color-ink)}.field{display:flex;flex-direction:column;gap:8px}.field label{font-weight:600}.input{width:100%;min-height:48px;padding:10px 12px;border:1px solid var(--color-border);border-radius:6px;background:var(--color-surface);color:var(--color-text);font:inherit}.input-code{font-family:var(--font-sheet);font-size:1.75rem;letter-spacing:.3em;text-align:center;font-variant-numeric:tabular-nums}.input:focus-visible,.btn:focus-visible,.check input:focus-visible,.pad:focus-visible{outline:3px solid var(--color-focus);outline-offset:2px}.input[aria-invalid=true]{border-color:var(--color-danger)}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;min-width:44px;padding:10px 18px;border:1px solid transparent;border-radius:6px;font:inherit;font-weight:600;cursor:pointer}.btn:disabled{cursor:not-allowed;opacity:.55}.btn-block{width:100%}.btn-primary{background:var(--color-primary);color:var(--color-primary-text)}.btn-primary:hover:not(:disabled){background:var(--color-primary-hover)}.btn-secondary{background:var(--color-secondary);color:var(--color-secondary-text);border-color:var(--color-border)}.form-stack,form{display:flex;flex-direction:column;gap:16px}.resend{display:flex;flex-direction:column;gap:8px;padding-top:16px;border-top:1px solid var(--color-rule)}.pad-frame{position:relative}.pad{display:block;width:100%;height:200px;border:1px solid var(--color-pad-frame);border-radius:4px;background:var(--color-pad-paper);touch-action:none;-webkit-user-select:none;user-select:none;cursor:crosshair}.pad-frame:before{content:"\d7" / "";position:absolute;left:14px;bottom:38px;color:var(--color-pad-guide);font-family:var(--font-sheet);font-size:1.5rem;line-height:1;pointer-events:none}.pad-frame:after{content:"";position:absolute;left:14px;right:14px;bottom:36px;border-bottom:1px solid var(--color-pad-guide);pointer-events:none}.pad[aria-disabled=true]{opacity:.6}.actions{display:flex;justify-content:flex-end;margin-top:8px}.sign-bar{position:sticky;bottom:0;z-index:1;display:flex;flex-direction:column;gap:8px;margin:0 -16px -32px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--color-rule);background:var(--color-bg)}.seal{width:64px;height:64px;color:var(--color-success)}.seal circle,.seal path{fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.seal path{stroke-dasharray:40;stroke-dashoffset:0;animation:seal-draw .6s ease-out both}@keyframes seal-draw{0%{stroke-dashoffset:40}}.pending-dot{width:12px;height:12px;border-radius:50%;background:var(--color-primary);animation:pending-pulse 1.6s ease-in-out infinite}@keyframes pending-pulse{50%{opacity:.3}}@media(prefers-reduced-motion:reduce){.seal path,.pending-dot{animation:none}}@media(min-width:600px){.brand{padding:24px 24px 0}.page{padding:20px 24px 40px}.sheet,.step-card{padding:36px 40px}.sign-bar{position:static;margin:0;padding:0;border-top:0;background:transparent}}
