:root {
  --ink: #1a2744;
  --navy: #1a3a8a;
  --paper: #f4f7fb;
  --card: #fff;
  --line: #d5deea;
  --muted: #52627a;
  --warn: #8a4b08;
  --ok: #1d6b45;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.45 system-ui, sans-serif;
}
a { color: var(--navy); }
.top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #fff;
  border-bottom: 4px solid var(--navy);
}
.brand { color: var(--ink); text-decoration: none; font-weight: 700; }
.brand span { color: var(--navy); font-weight: 600; }
nav { display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; }
nav a, button.link {
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  font: inherit;
  padding: 0;
  cursor: pointer;
}
main { max-width: 44rem; margin: 0 auto; padding: 1rem; }
h1 { font-size: 1.7rem; margin: 0 0 0.6rem; }
h2 { font-size: 1.15rem; }
.card, .flashes {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  margin: 0.8rem 0;
}
label { display: block; margin: 0.7rem 0; font-weight: 600; }
input, select, textarea {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font: inherit;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
textarea { min-height: 5rem; }
button, .button {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
button.secondary { background: #e7eef8; color: var(--ink); }
.row, .actions, .pair { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.pair label { flex: 1 1 9rem; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { border-bottom: 1px solid var(--line); }
.list a { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: baseline; padding: 0.75rem 0; text-decoration: none; color: inherit; }
.list .group { padding: 0.8rem 0 0.2rem; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); border: 0; }
.muted { color: var(--muted); font-weight: 400; }
.hello { margin-top: 0; }
.banner, .warn-inline {
  background: #fff6e8;
  color: var(--warn);
  padding: 0.6rem 1rem;
}
.banner a, .warn-inline a { color: var(--warn); }
.flashes { background: #e8f6ee; }
.pill { display: inline-block; border-radius: 999px; padding: 0.1rem 0.55rem; font-size: 0.85rem; background: #e7eef8; }
.pill.ok { background: #e5f6ec; color: var(--ok); }
.pill.warn { background: #fff6e8; color: var(--warn); }
.steps, .faq ul { padding-left: 1.2rem; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.15rem; }
.faq summary:focus { outline: 2px solid var(--navy); outline-offset: 3px; }
.faq h2 { margin-bottom: 0.3rem; }
.say {
  background: #f7f9fc;
  border-radius: 8px;
  padding: 0.8rem;
  margin: 0.4rem 0 0.2rem;
}
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.8rem; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.shots figcaption { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: baseline; margin: 0.35rem 0; }
.shots form { margin: 0; }
.face {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: #e7eef8;
}
.face-lg { width: 4.5rem; height: 4.5rem; font-size: 1.4rem; }
.face-empty {
  display: inline-grid;
  place-items: center;
  color: var(--navy);
  font-weight: 700;
}
.person { align-items: center; }
.visit { display: flex; gap: 0.6rem; align-items: center; justify-content: space-between; }
.visit form { margin: 0.4rem 0; }
.button.secondary, a.button.secondary { background: #e7eef8; color: var(--ink); }
.steps li { margin: 0.45rem 0; display: grid; }
.search { display: flex; gap: 0.5rem; }
.search input { flex: 1; }
.legal { white-space: pre-wrap; font: inherit; background: #f7f9fc; padding: 0.8rem; border-radius: 8px; }
canvas#pad { width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; touch-action: none; }
.signature { max-width: 16rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.inline { font-weight: 500; }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 0.7rem 0; }
.step-row { border-top: 1px solid var(--line); padding-top: 0.6rem; margin-top: 0.6rem; }
.clock { font-size: 4.5rem; line-height: 1; margin: 0.2rem 0; font-variant-numeric: tabular-nums; letter-spacing: -0.04em; }
.freq { font-size: 2rem; margin: 0.2rem 0; font-weight: 700; }
.meta { margin: 0.2rem 0; font-size: 1.15rem; }
.elapsed { color: var(--muted); }
.actions button { min-height: 3rem; }
.split { display: grid; gap: 1rem; }
@media (min-width: 800px) {
  .split { grid-template-columns: 1.4fr 0.8fr; }
}
