.compiler{padding:32px 0 48px;max-width:1200px}.compiler h1{margin-bottom:14px}.compiler h2{font-size:23px;margin-bottom:16px}.compiler .lead{max-width:800px;color:var(--muted)}.local-note{font-size:13px;padding:15px;background:#eef6fb;border-left:3px solid var(--blue)}
.compiler-steps{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0}.compiler-steps span{padding:10px 15px;background:var(--wash);border-radius:6px;font-size:14px}.compiler-steps [aria-current]{background:var(--navy);color:white}
.compiler-card{border:1px solid var(--line);border-radius:9px;padding:24px;background:#fff;margin-bottom:20px;min-width:0}.compiler label:not(.compiler-check){display:block;font-size:14px;font-weight:650;margin:15px 0 7px}.compiler input:not([type=checkbox]):not([type=radio]),.compiler select{max-width:100%;width:100%;padding:11px;border:1px solid #b8c8d7;border-radius:5px;font:inherit;color:var(--navy);background:#fff;min-width:0}.compiler input[type=file]{font-size:13px}.compiler .btn{white-space:normal;text-align:left;max-width:100%}.compiler button:disabled{opacity:.5;cursor:not-allowed}.compiler .help{font-size:12px;line-height:1.7;color:var(--muted)}.compiler .help a,.compiler-disclaimer a{color:var(--blue);text-decoration:underline}.compiler .caution{font-size:13px;border-left:3px solid #d4ac19;background:#fff8db;padding:13px;line-height:1.7}.compiler [hidden]{display:none!important}
#compilerStatus{margin-bottom:16px;font-size:14px}#compilerStatus:not(:empty){padding:13px;border-radius:5px;background:#eef6fb}#compilerStatus[data-error=true]{background:#fff0f0;color:#8b2020}.compiler-editor{display:grid;grid-template-columns:310px minmax(0,1fr);gap:20px}.tools>button{margin-top:15px}.tools details{margin-top:20px}.coordinate-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.compiler-actions{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.tools .compiler-actions{display:grid}.page-tools{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:14px}.page-tools .btn{font-size:12px;padding:8px}.page-tools span{font-size:13px}
.pdf-surface{position:relative;max-width:100%;width:100%;border:1px solid var(--line);background:#fff;overflow:hidden}.pdf-surface canvas{display:block;width:100%;height:auto}#fieldOverlay{position:absolute;inset:0;pointer-events:none}.placed-field{position:absolute;display:block;white-space:pre;font-family:Arial,Helvetica,sans-serif;color:#000;line-height:1.25;border:1px dashed #2879ad;padding:1px;pointer-events:none}.placed-field.selected{outline:2px solid #ca9d00}.placed-field img{display:block;width:100%;height:100%;object-fit:contain}.pdf-surface.armed{cursor:crosshair}#fieldList{max-height:280px;overflow:auto;margin-top:20px}#fieldList button{display:block;width:100%;text-align:left;padding:9px;margin-bottom:5px;border:1px solid var(--line);background:var(--wash);border-radius:4px;font-size:12px;overflow-wrap:anywhere}#fieldList button[aria-pressed=true]{border-color:var(--blue);background:#e6f3fb}.compiler-check{display:flex;align-items:start;gap:12px;margin:14px 0;font-size:13px;line-height:1.7}.compiler-check input{flex-shrink:0;margin-top:5px}#signaturePad{display:block;max-width:100%;width:600px;aspect-ratio:600/160;border:1px solid #a8bfce;background:white;touch-action:none;margin:15px 0}.compiler-disclaimer{font-size:12px;color:var(--muted);line-height:1.8;margin-top:28px}
@media(max-width:850px){.compiler-editor{grid-template-columns:1fr}.tools{order:0}.document-column{order:1}.compiler-card{padding:18px}.compiler{padding:24px 0}.compiler h1{font-size:30px}.compiler h2{font-size:21px}.compiler .lead{font-size:14px}.compiler-steps{gap:7px}.compiler-steps span{font-size:12px;padding:8px}.header-inner{gap:12px}.header-inner .btn{font-size:12px;padding:9px}.page-tools{flex-wrap:wrap}}
