/* Task Helper — the shared SIGNATURE PAD (job-intake.md §41 L9; SF-3, lane TASK HELPER SAFETY; QUALITY reuses it).
 * Copyright Rapid Surveys Pty Ltd. App tokens only (--bg --card --ink --muted --line --accent --accent-ink --err). Namespaced .sp-.
 * The pad itself stays WHITE with dark ink in both themes, so a signature looks the same on screen, in print and as the stored PNG. */
.sp-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: max(16px, env(safe-area-inset-top)) 12px 16px;
  background: rgba(0, 0, 0, .55); overflow-y: auto; }
.sp-dialog { width: 100%; max-width: 560px; margin: 0; padding: 16px; border-radius: 12px; background: var(--bg); color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.sp-title { margin: 0 0 8px; font-size: 18px; text-transform: none; letter-spacing: 0; }
.sp-statement { margin: 0 0 10px; padding: 10px 12px; border-left: 3px solid #9E8C5B; background: var(--card); font-size: 15px; overflow-wrap: anywhere; }
.sp-who { margin: 0 0 8px; font-size: 14px; }
.sp-padbox { position: relative; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.sp-pad { display: block; width: 100%; height: 200px; touch-action: none; cursor: crosshair; }
.sp-line { position: absolute; left: 16px; right: 16px; bottom: 36px; border-top: 1px dashed #9ca3af; padding-top: 2px; font-size: 11px; color: #6b7280; pointer-events: none; }
.sp-consent { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; min-height: 44px; font-size: 14px; cursor: pointer; }
.sp-given { color: var(--muted); font-size: 13px; min-height: 0; }
.sp-consent input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; }
.sp-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.sp-primary, .sp-ghost { width: auto; margin: 0; min-height: 44px; padding: 0 18px; border-radius: 10px; font-weight: 600; font-size: 15px; }
.sp-primary { border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); }
.sp-primary:disabled { opacity: .45; }
.sp-ghost { border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.sp-msg { margin: 8px 0 0; min-height: 1em; font-size: 13px; color: var(--muted); }
.sp-view { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.sp-view.sp-void .sp-v-line, .sp-view.sp-void .sp-v-statement { text-decoration: line-through; color: var(--muted); }
.sp-v-statement, .sp-v-meta { margin-top: 2px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.sp-v-img { display: block; max-width: 240px; max-height: 90px; margin-top: 6px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
