:root { --ink:#1a1a1a; --soft:#4a4a4a; --muted:#6a6a6a; --line:#dedede; --orange:#f26a1f; --bg:#f4f4f4;
  --pass:#1e7a3a; --pass-bg:#e5f4ea; --fail:#b42318; --fail-bg:#fdeaea; --todo:#8a8a8a; }
* { box-sizing:border-box; }
html, body { margin:0; background:var(--bg); color:var(--ink); font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:17px; line-height:1.4; -webkit-text-size-adjust:100%; }
[hidden] { display:none !important; }
header.top { position:sticky; top:0; z-index:5; display:flex; align-items:center; gap:12px; background:#fff;
  border-bottom:3px solid var(--orange); padding:10px 16px; }
header.top img { height:30px; }
header.top div { display:flex; flex-direction:column; line-height:1.15; }
header.top b { font-size:18px; }
header.top span { font-size:12px; color:var(--muted); letter-spacing:.5px; }
main { max-width:640px; margin:0 auto; padding:12px 12px 120px; }
.loading { color:var(--muted); }
section.card { background:#fff; border-radius:10px; padding:14px; margin:0 0 12px; box-shadow:0 1px 2px rgba(0,0,0,.06); }
h2 { font-size:19px; margin:0 0 10px; display:flex; align-items:center; gap:8px; }
h2 .n { background:var(--orange); color:#fff; border-radius:50%; width:26px; height:26px; font-size:15px; display:inline-flex;
  align-items:center; justify-content:center; flex:none; }
h3 { font-size:15px; text-transform:uppercase; letter-spacing:.6px; color:var(--orange); margin:16px 0 6px; }
label.f { display:block; margin:0 0 10px; }
label.f > span, .lbl { display:block; font-size:14px; font-weight:600; color:var(--soft); margin:0 0 4px; }
input[type=text], input[type=tel], textarea { width:100%; font:inherit; font-size:18px; padding:11px 12px; border:1.5px solid #c9c9c9;
  border-radius:8px; background:#fff; color:var(--ink); }
input:focus, textarea:focus { outline:none; border-color:var(--orange); box-shadow:0 0 0 3px rgba(242,106,31,.18); }
textarea { min-height:70px; resize:vertical; }
.row { display:flex; gap:10px; }
.row > * { flex:1; min-width:0; }
.seg { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 10px; }
.seg button { flex:1 1 auto; min-width:52px; font:inherit; font-size:16px; font-weight:600; padding:10px 8px; border-radius:8px;
  border:1.5px solid #c9c9c9; background:#fff; color:var(--ink); cursor:pointer; }
.seg button.on { background:var(--ink); border-color:var(--ink); color:#fff; }
.tick { display:flex; gap:12px; align-items:flex-start; padding:11px 12px; border:1.5px solid #c9c9c9; border-radius:8px;
  margin:0 0 8px; cursor:pointer; background:#fff; user-select:none; }
.tick .box { flex:none; width:26px; height:26px; border:2px solid #9a9a9a; border-radius:6px; display:flex; align-items:center;
  justify-content:center; font-weight:800; color:#fff; margin-top:1px; }
.tick.on { border-color:var(--pass); background:var(--pass-bg); }
.tick.on .box { background:var(--pass); border-color:var(--pass); }
.tick.on .box::after { content:"\2713"; }
.test { border-top:1px solid #ececec; padding:10px 0 4px; }
.test .t { font-weight:700; font-size:16px; }
.test .how { font-size:13.5px; color:var(--muted); margin:2px 0 6px; }
.reading { display:flex; gap:8px; align-items:center; }
.reading input { flex:1; }
.reading .u { font-weight:700; color:var(--soft); min-width:34px; }
.reading button.gt { font:inherit; font-weight:800; width:46px; padding:10px 0; border-radius:8px; border:1.5px solid #c9c9c9; background:#fff; }
.reading button.gt.on { background:var(--ink); color:#fff; border-color:var(--ink); }
.st { font-size:14px; margin:4px 0 2px; min-height:18px; }
.st.pass { color:var(--pass); } .st.fail { color:var(--fail); font-weight:700; } .st.todo { color:var(--todo); } .st.na { color:var(--todo); }
.st.pass::before { content:"\2713  "; } .st.fail::before { content:"\2717  "; }
.circ { border:1.5px solid var(--line); border-radius:10px; margin:0 0 10px; background:#fff; overflow:hidden; }
.circ > .head { display:flex; align-items:center; gap:10px; padding:12px; cursor:pointer; background:#fafafa; }
.circ > .head .cb { font-weight:800; font-size:18px; min-width:38px; }
.circ > .head .d { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.circ > .body { padding:4px 12px 12px; }
.chip { font-size:13px; font-weight:800; padding:4px 9px; border-radius:20px; text-transform:uppercase; letter-spacing:.4px; flex:none; }
.chip.pass { background:var(--pass-bg); color:var(--pass); } .chip.fail { background:var(--fail-bg); color:var(--fail); }
.chip.todo { background:#eee; color:var(--todo); }
.circ.fail { border-color:var(--fail); }
.btn { display:block; width:100%; font:inherit; font-size:18px; font-weight:700; padding:14px; border-radius:10px; border:1.5px solid var(--orange);
  background:var(--orange); color:#fff; text-align:center; cursor:pointer; text-decoration:none; margin:8px 0 0; }
.btn.ghost { background:#fff; color:var(--orange); }
.btn.quiet { background:#fff; color:var(--soft); border-color:#c9c9c9; font-size:16px; padding:10px; }
.btn:disabled { opacity:.45; cursor:not-allowed; }
.problems { background:var(--fail-bg); border:1.5px solid var(--fail); border-radius:8px; padding:10px 12px 10px 30px; color:var(--fail);
  font-size:15px; margin:0 0 12px; }
.problems li { margin:2px 0; }
.ok { background:var(--pass-bg); border:1.5px solid var(--pass); border-radius:8px; padding:10px 12px; color:var(--pass); font-weight:700; margin:0 0 12px; }
.sigbox { position:relative; border:1.5px dashed #9a9a9a; border-radius:8px; background:#fff; height:170px; touch-action:none; }
.sigbox canvas { width:100%; height:100%; display:block; border-radius:8px; }
.sigbox .ph { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#b0b0b0; pointer-events:none; }
.small { font-size:13.5px; color:var(--muted); }
.prefill { background:#fff4ec; border:1.5px solid var(--orange); border-radius:10px; padding:12px 14px; margin:0 0 12px; font-size:15.5px; }
.err { color:var(--fail); font-weight:700; }
.savebar { position:fixed; left:0; right:0; bottom:0; background:#fff; border-top:1px solid var(--line); padding:10px 12px calc(10px + env(safe-area-inset-bottom));
  z-index:6; }
.savebar .in { max-width:640px; margin:0 auto; display:flex; gap:10px; align-items:center; }
.savebar .sum { flex:1; font-size:14.5px; font-weight:700; }
.savebar .btn { width:auto; margin:0; padding:11px 16px; font-size:16px; }
