/* The signing pages at sign.studioc6.com (STU-500). */
:root {
  --ink: #1d1f24; --muted: #5d6270; --line: #d9dce3; --bg: #f6f7f9; --card: #ffffff;
  --accent: #1f5fbf; --accent-ink: #ffffff; --mine: rgba(31, 95, 191, 0.14); --mine-line: #1f5fbf;
  --ok: #1d7a43; --warn: #a14d00;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eaef; --muted: #a3a9b6; --line: #343944; --bg: #15171c; --card: #1d2027;
    --accent: #6ea2ff; --accent-ink: #0d1424; --mine: rgba(110, 162, 255, 0.18); --mine-line: #6ea2ff;
    --ok: #57c48a; --warn: #f0a35b;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
main { max-width: 860px; margin: 0 auto; padding: 24px 16px 64px; }
h1 { font-size: 1.5rem; line-height: 1.3; margin: 0 0 4px; }
h2 { font-size: 1.1rem; margin: 28px 0 8px; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; overflow-wrap: anywhere; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin: 16px 0; }
.status { display: inline-block; font-size: 0.8rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); }
.status.signed { color: var(--ok); border-color: var(--ok); }
.status.declined, .status.cancelled, .status.expired { color: var(--warn); border-color: var(--warn); }
ul.people { list-style: none; padding: 0; margin: 8px 0 0; }
ul.people li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-top: 1px solid var(--line); }
.pages { display: grid; gap: 16px; margin-top: 12px; }
.page { position: relative; width: 100%; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.page img { display: block; width: 100%; height: 100%; }
.page .box { position: absolute; background: var(--mine); border: 2px solid var(--mine-line); border-radius: 3px; }
.page .box span { position: absolute; top: -1.4em; left: 0; font-size: 0.7rem; color: var(--mine-line); white-space: nowrap; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.tabs button { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.tabs button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
button { font: inherit; padding: 8px 16px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent);
  color: var(--accent-ink); cursor: pointer; }
button.quiet { background: transparent; color: var(--accent); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.pad { width: 100%; height: 180px; border: 1px dashed var(--muted); border-radius: 8px; background: #fff; touch-action: none; display: block; }
.saved { max-width: 100%; max-height: 160px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
input[type="text"], input[type="email"], textarea { width: 100%; font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); }
label.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; }
label.check input { margin-top: 5px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.note { font-size: 0.9rem; color: var(--muted); }
.error { color: var(--warn); }
.done { color: var(--ok); font-weight: 600; }
