:root {
  --ink: #2c211b;
  --muted: #5c524b;
  --line: #d7cfc6;
  --paper: #fbf7f2;
  --card: #ffffff;
  --ok: #1f6b3a;
  --wait: #8a5a12;
  --err: #8a1f1f;
  --accent: #2c211b;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Georgia, "Times New Roman", Times, serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  font-size: 17px;
}
.banner {
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 13px;
  background: var(--ink);
  color: #f6f1ea;
  padding: 10px 18px;
  text-align: center;
}
.top {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.top-inner, .wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 18px;
}
.top-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.nav { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.nav a {
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav a[aria-current="page"] { border-bottom-color: var(--ink); font-weight: 600; }
.who {
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 13px;
  color: var(--muted);
}
.who a { color: var(--ink); }
.wrap { padding-top: 24px; padding-bottom: 64px; }
h1 { font-size: 1.7rem; line-height: 1.25; margin: 0 0 0.4em; }
h2 { font-size: 1.2rem; margin: 1.4em 0 0.5em; }
h3 { font-size: 1.05rem; margin: 1.1em 0 0.4em; }
.lead, .sub { color: var(--muted); margin: 0 0 1.2em; }
p, li { margin: 0 0 0.7em; }
.notice, .notes, .status-bar, .card, .doc, .placeholder {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 16px 18px;
  margin: 0 0 1.2em;
}
.notes { border-left: 3px solid var(--ink); background: #f3ece3; }
.warn { border-left: 3px solid var(--wait); }
.err-box { border-left: 3px solid var(--err); color: var(--err); }
.count { font-family: system-ui, -apple-system, Segoe UI, sans-serif; font-size: 14px; color: var(--muted); }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 1.2em 0 1.6em;
}
.card { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: #ece4da;
  display: grid;
  place-items: center;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card h2 { margin: 0; font-size: 1.05rem; }
.pill {
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 13px;
  font-weight: 600;
}
.pill.signed { color: var(--ok); }
.pill.waiting { color: var(--wait); }
label, legend {
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}
input[type="text"], input[type="email"], select {
  font: inherit;
  font-size: 16px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  width: 100%;
  max-width: 100%;
}
.row { margin: 0 0 1em; }
canvas.pad {
  display: block;
  width: 100%;
  height: 160px;
  touch-action: none;
  background: #fff;
  border: 1px solid var(--ink);
  cursor: crosshair;
}
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
button, .btn {
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 15px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #f6f1ea;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button.secondary, .btn.secondary { background: transparent; color: var(--ink); }
button:disabled { opacity: 0.55; cursor: not-allowed; }
.choice { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; font-family: system-ui, -apple-system, Segoe UI, sans-serif; font-size: 15px; font-weight: 400; }
.choice input { margin-top: 3px; }
.error { color: var(--err); font-family: system-ui, -apple-system, Segoe UI, sans-serif; font-size: 14px; }
.ok { color: var(--ok); }
.hidden { display: none !important; }
.checklist { list-style: none; padding: 0; }
.checklist li {
  display: grid;
  grid-template-columns: 1.4em 1fr;
  gap: 8px;
  margin: 0 0 8px;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 15px;
}
.meta p { margin: 0.2em 0; }
.resolved { font-variant: small-caps; letter-spacing: 0.04em; font-weight: 700; }
.you-badge {
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--ink);
  color: #f6f1ea;
  padding: 2px 6px;
  border-radius: 3px;
  width: fit-content;
}
footer {
  margin-top: 2.5em;
  color: var(--muted);
  font-size: 13px;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  text-align: center;
}
.doc p:first-child { margin-top: 0; }
.slate { font-family: system-ui, -apple-system, Segoe UI, sans-serif; font-size: 15px; }
@media (max-width: 640px) {
  h1 { font-size: 1.4rem; }
  .photo { width: 80px; height: 80px; }
}
