:root {
  --bg: #f6f4ef;
  --card: #ffffff;
  --ink: #1f1d1a;
  --muted: #6b665e;
  --accent: #2f6f5e;
  --accent-ink: #ffffff;
  --line: #e4dfd5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171614;
    --card: #211f1c;
    --ink: #f1ede6;
    --muted: #a8a196;
    --accent: #5aa38c;
    --accent-ink: #0f1a16;
    --line: #35322d;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.card { max-width: 640px; margin: 0 auto; padding: 32px 16px 48px; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; }
.view { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px 22px; }
.hidden { display: none; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--muted); margin: 0 0 6px; }
h1 { font-size: 28px; margin: 0 0 16px; font-weight: 600; }
.consent { white-space: pre-wrap; color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; margin-bottom: 16px; max-height: 40vh; overflow: auto; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; }
.check input { width: 20px; height: 20px; margin-top: 3px; }
button { font: inherit; border-radius: 12px; padding: 14px 20px; border: 1px solid var(--line); cursor: pointer; width: 100%; }
button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
button.primary:disabled { opacity: .45; cursor: not-allowed; }
button.secondary { background: transparent; color: var(--ink); margin-top: 18px; }
.hint, .status { color: var(--muted); font-size: 15px; margin: 14px 0 0; }
canvas#wave { width: 100%; height: 120px; display: block; border-radius: 12px; background: var(--bg); margin-top: 8px; }
