@font-face { font-family: "Dancing Script"; font-weight: 600; font-display: block; src: url(/fonts/dancing-script-600.woff2) format("woff2"); }
@font-face { font-family: "Great Vibes"; font-weight: 400; font-display: block; src: url(/fonts/great-vibes-400.woff2) format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 600; font-display: block; src: url(/fonts/caveat-600.woff2) format("woff2"); }
@font-face { font-family: "Homemade Apple"; font-weight: 400; font-display: block; src: url(/fonts/homemade-apple-400.woff2) format("woff2"); }

.sigpad { margin: 4px 0 18px; }
.kp .sigpad input[type=radio] { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.sig-tabs label, .sig-fonts label { position: relative; }
.kp .sigpad .sig-tabs label, .kp .sigpad .sig-fonts label { margin: 0; }
.sig-h { margin: 0 0 8px; font: 700 15px var(--head); color: var(--ink); }
.sig-h i, .es-head i { color: #c62828; font-style: normal; }
.sig-tabs { display: inline-flex; border: 1px solid #d9e6f2; border-radius: 99px; padding: 3px; background: #f8fbfe; margin-bottom: 12px; }
.sig-tabs label { margin: 0; cursor: pointer; }
.sig-tabs input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sig-tabs span { display: block; padding: 7px 18px; border-radius: 99px; font: 700 13px var(--head); letter-spacing: .5px; color: var(--blue); }
.sig-tabs input:checked + span { background: var(--blue); color: #fff; }
.sig-tabs input:focus-visible + span { outline: 2px solid var(--purple); outline-offset: 2px; }
.sig-fonts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sig-fonts label { margin: 0; cursor: pointer; }
.sig-fonts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sf { display: flex; align-items: center; min-height: 72px; padding: 8px 16px; border: 2px solid #d9e6f2; border-radius: 10px; background: #fff; color: #10204a; font-size: 30px; line-height: 1.2; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sig-fonts input:checked + .sf { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,137,225,.15); }
.sig-fonts input:focus-visible + .sf { outline: 2px solid var(--purple); outline-offset: 2px; }
.sf-dancing { font-family: "Dancing Script"; font-weight: 600; }
.sf-vibes { font-family: "Great Vibes"; font-weight: 400; font-size: 34px; }
.sf-caveat { font-family: "Caveat"; font-weight: 600; }
.sf-apple { font-family: "Homemade Apple"; font-weight: 400; font-size: 22px; }
.sig-help { margin: 8px 0 0; font-size: 14px; color: #666; }
.sig-drawn { position: relative; }
.sig-drawn canvas { display: block; width: 100%; max-width: 600px; aspect-ratio: 600 / 160; border: 2px dashed #b9cfe3; border-radius: 10px; background: #fff; touch-action: none; cursor: crosshair; }
.sig-clear { margin-top: 8px; padding: 6px 16px; border: 1px solid #d9e6f2; border-radius: 99px; background: #fff; color: var(--blue); font: 700 13px var(--head); cursor: pointer; }

.es-lede { color: #555; margin: 0 0 26px; }
.es-gate { border: 1px solid #e3edf5; border-radius: 14px; padding: 26px; background: #f8fbfe; }
.es-gate h2 { margin: 0 0 8px; font: 700 20px var(--head); color: var(--ink); }
.es-find { display: grid; grid-template-columns: 2fr 2fr auto; gap: 12px; align-items: end; margin: 0 0 22px; }
.es-find label { margin: 0; font: 700 13px var(--head); }
.es-count { margin: 0 0 10px; font-size: 14px; color: #666; }
.es-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.es-table th { text-align: left; font: 700 11px var(--head); letter-spacing: 1.5px; text-transform: uppercase; color: #6b6b6b; padding: 10px 8px; border-bottom: 2px solid #e3edf5; }
.es-table td { padding: 10px 8px; border-bottom: 1px solid #edf3f8; vertical-align: top; }
.es-open { padding: 6px 14px; border: 1px solid var(--blue); border-radius: 99px; background: #fff; color: var(--blue); font: 700 13px var(--head); cursor: pointer; white-space: nowrap; }
.es-open:hover { background: var(--blue); color: #fff; }
.es-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: #eef2f7; color: #555; font: 700 11px var(--head); }
.es-doc { margin: 0 0 34px; border: 1px solid #e3edf5; border-radius: 14px; padding: 34px; background: #fff; box-shadow: 0 6px 24px rgba(0,60,110,.06); }
.es-kicker { margin: 0; font: 700 12px var(--head); letter-spacing: 3px; text-transform: uppercase; color: var(--blue); }
.es-doc h2 { margin: 6px 0 4px; font: 400 28px/1.25 var(--serif); color: var(--purple); }
.es-sub { margin: 0 0 22px; color: #555; }
.es-fields, .es-rec { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; }
.es-fields th, .es-rec th { width: 38%; text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid #edf3f8; font-weight: 700; color: #444; }
.es-fields td, .es-rec td { padding: 9px 0; border-bottom: 1px solid #edf3f8; overflow-wrap: anywhere; white-space: pre-wrap; }
.es-sig { margin: 0 0 26px; padding: 16px 0 0; }
.es-sig img { display: block; max-width: 360px; width: 100%; height: auto; border-bottom: 2px solid #333; }
.es-sig p { margin: 6px 0 0; font-size: 14px; color: #444; }
.es-doc h3 { margin: 0 0 10px; font: 700 13px var(--head); letter-spacing: 2px; text-transform: uppercase; color: #6b6b6b; }
.es-ok { color: #2f6b12; font-weight: 700; }
.es-bad { color: #b42318; font-weight: 700; }
.es-actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 700px) {
  .sig-fonts, .es-find { grid-template-columns: 1fr; }
  .es-doc { padding: 18px; }
  .es-fields th, .es-rec th { width: 45%; }
  .es-table thead { display: none; }
  .es-table tr { display: block; padding: 10px 0; border-bottom: 1px solid #e3edf5; }
  .es-table td { display: block; border: 0; padding: 2px 0; }
}

@media print {
  body.es-page header, body.es-page footer, body.es-page nav, .es-noprint, .es-find, #es-list, .es-head, .es-lede { display: none !important; }
  body.es-page .hero, body.es-page .nb { display: none !important; }
  body.es-page .s { padding: 0; }
  .es-doc { border: 0; box-shadow: none; padding: 0; margin: 0; }
  .es-fields tr, .es-rec tr, .es-sig { break-inside: avoid; }
}

.esign .doc .es-title { margin: 0 0 18px; font: 400 28px/1.25 var(--serif); color: var(--purple); }
.esign .doc .es-center, .es-body .es-center { text-align: center; }
.esign .doc .es-indent, .es-body .es-indent { padding-left: 40px; }
.es-loading { color: #666; }
.es-val { display: inline-block; min-width: 120px; padding: 0 6px; border-bottom: 1px solid #555; font-weight: 700; color: #10204a; white-space: pre-wrap; }
.es-blank { font-weight: 400; color: #888; }
.es-body { margin: 0 0 22px; line-height: 1.75; }
.es-body h2 { font: 400 24px/1.3 var(--serif); color: var(--purple); }
.es-receipt .done { margin-bottom: 26px; }
.es-receipt .done .btn { margin-top: 10px; }
.es-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 22px; border-bottom: 2px solid #e3edf5; }
.es-tabs button { padding: 10px 18px; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; background: none; color: var(--blue); font: 700 15px var(--head); cursor: pointer; }
.es-tabs button[aria-selected=true] { border-bottom-color: var(--blue); color: var(--ink); }
.es-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0 0 16px; }
.es-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.es-acts a.es-open { text-decoration: none; display: inline-block; }
.es-editor, .es-sendbox { margin: 0 0 28px; padding: 26px; border: 1px solid #e3edf5; border-radius: 14px; background: #fff; box-shadow: 0 6px 24px rgba(0,60,110,.06); }
.es-editor h2, .es-sendbox h2 { margin: 0 0 16px; font: 400 24px/1.3 var(--serif); color: var(--purple); }
.es-editor label, .es-sendbox label { display: block; margin: 0 0 14px; font: 700 13px var(--head); }
.es-row { display: flex; gap: 20px; flex-wrap: wrap; align-items: end; }
.es-row label.chk { display: inline-flex; font: 400 15px var(--sans); }
.es-tools { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 8px; }
.es-tools button { padding: 6px 12px; border: 1px solid #d9e6f2; border-radius: 99px; background: #f8fbfe; color: var(--blue); font: 700 12px var(--head); cursor: pointer; }
.es-tools button:hover { background: var(--blue); color: #fff; }
.kp .es-text { min-height: 420px; font: 400 14px/1.6 ui-monospace, Menlo, Consolas, monospace; }
.es-help { margin: 0 0 14px; font-size: 14px; color: #444; }
.es-help summary { cursor: pointer; font-weight: 700; color: var(--blue); }
.es-help code, .es-link code { background: #f2f6fa; padding: 1px 5px; border-radius: 4px; font-size: 13px; overflow-wrap: anywhere; }
.es-previewbox { margin-top: 20px; padding: 20px; border: 2px dashed #b9cfe3; border-radius: 12px; }
.es-link { margin: 4px 0 0; font-size: 13px; color: #555; }
.es-resend { display: inline-block; }
.es-resend summary { list-style: none; }
.es-resend summary::-webkit-details-marker { display: none; }
.es-resend[open] { display: block; width: 100%; padding: 10px 0; }
@media (max-width: 700px) {
  .es-acts { justify-content: flex-start; }
  .es-editor, .es-sendbox { padding: 16px; }
}
@media print {
  .es-receipt .done .btn, .es-tabs, #es-docs, #es-editor, #es-send, #es-reqs { display: none !important; }
  body.kp:has(.es-receipt) header, body.kp:has(.es-receipt) footer, body.kp:has(.es-receipt) .hero, body.kp:has(.es-receipt) .nb { display: none !important; }
}
