
.doc { font-family: Calibri, 'Segoe UI', Helvetica, Arial, sans-serif; color:#1b1b1b; line-height:1.38; font-size:13px; }
.letterhead { display:flex; align-items:center; gap:16px; border-bottom:3px solid var(--accent,#f5b800); padding-bottom:8px; margin-bottom:10px; }
.logo { height:56px; width:auto; }
.biz-name { font-weight:700; font-size:18px; color:var(--primary,#13355e); }
.biz-info { font-size:12px; color:var(--primary,#13355e); font-weight:600; }
.meta { margin-left:auto; text-align:right; }
.meta-num { font-weight:700; font-size:15px; color:var(--primary,#13355e); }
.meta-date { color:#666; }
.section-h { margin:12px 0 5px; padding-bottom:2px; border-bottom:1px solid var(--primary,#13355e);
  text-transform:uppercase; letter-spacing:.05em; font-size:12px; color:var(--primary,#13355e); font-weight:700; }
.field-grid { display:grid; grid-template-columns:110px 1fr 90px 1fr; gap:3px 10px; align-items:baseline; }
.fl { color:#666; text-transform:uppercase; font-size:10.5px; letter-spacing:.03em; }
.fv { font-weight:600; white-space:pre-wrap; }
.app-info > div { margin:3px 0; }
.chk { margin-right:14px; }
.dim { color:#666; }
.wtc-box { border:1px solid #333; border-radius:3px; padding:1px 10px; }
.wtc-line { display:flex; justify-content:space-between; align-items:flex-end; gap:10px;
  border-bottom:1px solid #999; padding:2px 2px 1px; min-height:14px; }
.wtc-line:last-child { border-bottom:none; }
.wtc-line.filled { white-space:pre-wrap; }
.pay-box { border:1px solid #333; border-radius:3px; margin-top:8px; }
.pay-row { display:grid; grid-template-columns:180px 80px 1fr; gap:10px; align-items:center;
  padding:4px 10px; border-bottom:1px solid #999; }
.pay-row:last-child { border-bottom:none; }
.pay-label { font-weight:600; white-space:nowrap; }
.pay-amt { color:var(--primary,#13355e); font-weight:600; }
.pay-via .chk { margin-right:12px; white-space:nowrap; }
.tca-note { white-space:nowrap; font-size:9px; }
.note { margin:4px 0; }
.consent { margin-top:12px; font-size:12px; color:#444; border-top:1px solid #ddd; padding-top:8px; }
.sig-stack { margin-top:10px; }
.sig-by { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.03em; color:var(--primary,#13355e); margin:8px 0 3px; }
.sig-row2 { display:flex; gap:24px; }
.sig-sigcol { flex:2; }
.sig-datecol { flex:1; }
.sig-line { height:34px; border-bottom:1px solid #333; display:flex; align-items:flex-end; padding-bottom:2px; }
.sig-img { max-height:30px; max-width:100%; }
.sig-blank { width:100%; }
.sig-cap { font-size:11px; color:#333; margin-top:2px; }
.cancel-notice { margin-top:10px; font-size:11px; color:#444; font-weight:600; }
.terms-page { break-before:page; page-break-before:always; }
.terms { font-size:10.5px; line-height:1.2; color:#444; margin-top:4px; }
.terms p { margin:0; }
.audit { margin-top:22px; padding-top:12px; border-top:2px dashed #999; font-size:11px; color:#444; }
.audit-h { font-weight:700; text-transform:uppercase; letter-spacing:.05em; margin-bottom:4px; color:#333; }
.sign-ui { margin-top:24px; padding-top:16px; border-top:2px solid #ddd; }
.sign-ui h3 { margin:0 0 10px; }
.sig-tabs { display:flex; gap:8px; margin-bottom:8px; }
.sig-tabs .tab { padding:6px 14px; border:1px solid #ccc; background:#f4f4f4; border-radius:6px 6px 0 0; cursor:pointer; font:inherit; }
.sig-tabs .tab.active { background:#fff; border-bottom-color:#fff; font-weight:700; }
#pad { border:1px solid #999; border-radius:6px; touch-action:none; width:100%; max-width:600px; height:160px; background:#fff; }
#typed-name { width:100%; max-width:600px; padding:14px; font-size:28px; font-family:'Segoe Script','Brush Script MT',cursive; border:1px solid #999; border-radius:6px; }
.sig-tools { margin:6px 0; }
.agree { display:flex; gap:8px; align-items:flex-start; font-size:13px; margin:12px 0; }
.sign-ui input[type=text] { width:100%; max-width:360px; padding:10px 12px; font:inherit; border:1px solid #ccc; border-radius:6px; }
.sign-actions { display:flex; gap:10px; margin-top:12px; }
.sign-actions button { padding:12px 22px; font:inherit; font-weight:700; border:none; border-radius:6px; cursor:pointer; }
#btn-sign { background:var(--primary,#13355e); color:#fff; }
#btn-sign:disabled { opacity:.45; cursor:not-allowed; }
.sign-actions .ghost { background:none; border:1px solid #b00020; color:#b00020; }
.err { color:#b00020; margin-top:8px; }
@media print { .sign-ui { display:none; } }
