:root{font-family:Inter,system-ui,sans-serif;color:#17302f;background:#f3f6f7;font-size:16px;--green:#11665c}*{box-sizing:border-box}body{margin:0}header{height:80px;background:#fff;border-bottom:1px solid #dce5e5;display:flex;justify-content:space-between;align-items:center;padding:0 max(24px,calc((100vw - 1320px)/2))}.brand{font-size:21px;font-weight:850;color:#17302f;text-decoration:none;letter-spacing:.05em}.brand span{font-size:15px;font-weight:500;margin-left:18px;letter-spacing:0}main{max-width:1368px;margin:auto;padding:32px 24px}h1{font-size:clamp(28px,4vw,42px);letter-spacing:-.04em;margin:8px 0 16px}h2{font-size:21px;margin:0 0 16px}p{line-height:1.6;color:#536866}button,a.button{font:inherit;font-weight:650;border:0;background:var(--green);color:white;padding:12px 18px;border-radius:9px;cursor:pointer;text-decoration:none;display:inline-block}button:hover{filter:brightness(.93)}button:disabled{opacity:.5;cursor:wait}.secondary{background:#e9f0f0;color:#17302f}label{display:block;margin:12px 0;font-size:15px;font-weight:600}input,select{display:block;width:100%;padding:11px;border:1px solid #b4c9c8;border-radius:7px;font:inherit;background:white;color:#17302f;margin-top:6px}input:focus,select:focus{outline:2px solid #258c7d;outline-offset:2px}.card{background:white;border:1px solid #dce5e5;border-radius:14px;padding:24px;margin-bottom:24px}.narrow{max-width:470px;margin:8vh auto}.eyebrow{font-size:13px;letter-spacing:.12em;font-weight:750;color:var(--green)}.intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:12px 0 28px}.columns{display:grid;grid-template-columns:1fr 1.4fr;gap:24px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:0 24px}.row{border-bottom:1px solid #e4ebeb;padding:16px 0;display:flex;align-items:center;justify-content:space-between;gap:15px}.row p{margin:4px 0;font-size:14px}.check{display:flex;gap:10px;align-items:flex-start;line-height:1.5}.check input{width:18px;height:18px;flex-shrink:0;margin:2px 0}.editor-layout{display:grid;grid-template-columns:260px 1fr;gap:24px;align-items:start}.editor-layout aside{position:sticky;top:16px}.editor-layout button{width:100%;margin-bottom:9px}#doc-tabs button{background:#e9f0f0;color:#17302f;text-align:left}#doc-tabs button.active{background:#17302f;color:white}#pdf-editor{overflow:auto}.pdf-page{position:relative;min-width:650px;width:100%;margin-bottom:24px;box-shadow:0 3px 20px #17302f15;background:white}.pdf-page img{display:block;width:100%}.pdf-field{position:absolute;border:1px solid #168dba88;background:#e5f7ff9e;margin:0;padding:0 2px;border-radius:0;min-width:0;line-height:1;font-size:clamp(8px,1vw,13px);color:#091d33}.pdf-field[type=checkbox]{appearance:auto;padding:0}.signer{background:#f6f9f9;padding:20px;margin:20px 0;border:1px solid #dce5e5;border-radius:12px}.signature{display:block;width:100%;max-width:600px;height:180px;touch-action:none;background:white;border:1px dashed #658d88;border-radius:8px}.error{background:#fff0ec;color:#9d3324;padding:15px;border-radius:8px;margin-bottom:20px}.success{background:#e1f4ed;color:#174f41;padding:15px;border-radius:8px;margin-bottom:20px}#message:empty{display:none}dialog{width:min(1100px,95vw);height:90vh;border:0;border-radius:12px;padding:20px}dialog::backdrop{background:#122d38aa}.dialog-head{display:flex;align-items:center;justify-content:space-between}iframe{width:100%;height:calc(100% - 70px);border:1px solid #dce5e5;margin-top:16px}footer{text-align:center;padding:36px;font-size:14px;color:#637975}[hidden]{display:none!important}@media(max-width:850px){.columns,.editor-layout{grid-template-columns:1fr}.editor-layout aside{position:static}.intro{align-items:flex-start;flex-direction:column}.brand span{display:none}main{padding:22px 14px}.card{padding:18px}}

#preview-pages{height:calc(100% - 70px);overflow:auto;margin-top:16px;background:#e9eeee}#preview-pages canvas{width:100%;height:auto;display:block;margin-bottom:14px}
