:root {
  --blue: #175df9;
  --ink: #172033;
  --muted: #647084;
  --cream: #f4f2ee;
  --mint: #24c99a;
  --border: #dde3ea;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font:
    16px/1.6 Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
a {
  color: var(--blue);
}
header {
  border-bottom: 1px solid var(--border);
  background: var(--cream);
}
.bar {
  max-width: 1180px;
  margin: auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
}
.brand img {
  width: 38px;
  height: 38px;
}
.shell {
  max-width: 980px;
  margin: 60px auto;
  padding: 0 24px;
}
.narrow {
  max-width: 760px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 800;
  color: #118769;
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(42px, 6vw, 66px);
  margin: 12px 0 24px;
}
h2 {
  font-size: 34px;
  margin: 0 0 18px;
}
h3 {
  margin: 0 0 12px;
}
.lede {
  font-size: 19px;
  color: #485467;
}
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  margin: 24px 0;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.full {
  grid-column: 1/-1;
}
label {
  font-size: 14px;
  font-weight: 750;
}
input,
textarea,
select {
  font: inherit;
  border: 1px solid #ccd5e1;
  border-radius: 12px;
  padding: 12px;
  width: 100%;
  background: #fbfcfd;
  color: var(--ink);
}
textarea {
  min-height: 110px;
}
input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #b5cdfd;
  outline-offset: 3px;
}
.btn,
button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 25px;
  padding: 13px 20px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font:
    750 15px/1.3 Inter,
    -apple-system,
    sans-serif;
  cursor: pointer;
  min-height: 46px;
}
.secondary {
  background: #edf3ff;
  color: var(--ink);
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 20px;
}
.small {
  font-size: 13px;
  color: var(--muted);
}
.notice {
  padding: 16px 20px;
  background: #edf3ff;
  border-radius: 14px;
}
.error {
  color: #a32323;
  background: #fff0f0;
  padding: 14px;
  border-radius: 12px;
}
.success {
  color: #116344;
  background: #eafbf5;
  padding: 14px;
  border-radius: 12px;
}
[hidden] {
  display: none !important;
}
.honeypot {
  position: absolute;
  left: -10000px;
}
.upload-list {
  padding-left: 20px;
}
.upload-list li {
  margin: 10px 0;
}
.admin-shell {
  max-width: 1280px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.stat {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}
.stat b {
  display: block;
  font-size: 30px;
}
.records {
  display: grid;
  gap: 20px;
}
.record {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: white;
}
.record-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}
.badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 14px;
  background: #edf3ff;
  font-size: 12px;
  font-weight: 750;
}
.metadata {
  color: var(--muted);
  font-size: 14px;
}
.record details {
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 14px;
}
summary {
  cursor: pointer;
  font-weight: 750;
}
.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}
.signing-frame {
  width: 100%;
  height: 750px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
footer {
  max-width: 1180px;
  margin: 60px auto 20px;
  padding: 20px;
  color: var(--muted);
  font-size: 12px;
}
.inline-link {
  border: 0;
  background: none;
  color: var(--blue);
  padding: 4px 0;
  min-height: 0;
  font: inherit;
}
.status-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.call-link {
  font-size: 14px;
}
.notice ul {
  margin-bottom: 0;
}
.file-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0;
}
@media (max-width: 650px) {
  .shell {
    margin: 36px auto;
    padding: 0 16px;
  }
  .panel {
    padding: 22px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .record-head {
    flex-direction: column;
  }
  .bar {
    padding: 16px;
  }
  .bar > a:last-child {
    font-size: 13px;
  }
  .signing-frame {
    height: 650px;
  }
  .btn {
    width: 100%;
  }
}

.optional { font-weight:400; color:var(--muted); }
.drop-zone { position:relative; border:2px dashed #ccd5e1; border-radius:16px; padding:26px 18px; text-align:center; background:#fbfcfd; }
.drop-zone.dragging { border-color:var(--blue); background:#edf3ff; }
.drop-zone > p:first-child { margin-top:0; font-size:18px; }
.file-input { position:absolute; width:1px; height:1px; opacity:0; padding:0; }
.drop-zone:focus-within { outline:3px solid #b5cdfd; outline-offset:3px; }
.file-button { cursor:pointer; font-size:14px; }
.selected-files { padding:0; list-style:none; }
.selected-files li { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid var(--border); }
.selected-files .file-name { overflow-wrap:anywhere; min-width:0; }
.selected-files button { flex-shrink:0; font-size:13px; }
.agreement-content { max-height:390px; overflow-y:auto; border:1px solid var(--border); border-radius:12px; padding:24px; background:#fbfcfd; font-size:14px; }
.agreement-content h3 { font-size:20px; }
.agreement-content h4 { margin:20px 0 4px; }
.agreement-content p { margin:0 0 14px; }
.consent { display:flex; align-items:flex-start; gap:12px; font-weight:400; margin:24px 0; }
.consent input { width:20px; height:20px; flex:0 0 20px; margin:3px 0; accent-color:var(--blue); }
.verification { border-top:1px solid var(--border); margin-top:20px; padding-top:12px; }
#email-code { max-width:220px; letter-spacing:.2em; }
#message:empty { display:none; }
