:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #667085;
  --line: #d8dde7;
  --paper: #f4f7fb;
  --card: #ffffff;
  --accent: #1d4ed8;
  --accent-soft: #e8efff;
  --safe: #14532d;
  --warn: #9a3412;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--paper); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.shell { width: min(100%, 520px); margin: 0 auto; min-height: 100vh; background: var(--card); padding: max(18px, env(safe-area-inset-top)) 18px 32px; box-shadow: 0 0 40px rgba(15, 23, 42, .08); }
.topbar, .handoff-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 4px; font-size: 29px; letter-spacing: -.04em; }
h2 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 8px; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .13em; margin-bottom: 4px; }
.local-pill, .count { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; font-size: 12px; white-space: nowrap; }
.notice { margin: 18px 0; padding: 13px 14px; border-radius: 12px; color: var(--warn); background: #fff7ed; font-size: 13px; line-height: 1.45; }
.privacy-note { margin: -8px 0 18px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #f8fafc; font-size: 13px; line-height: 1.45; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 12px; background: #edf0f5; margin-bottom: 24px; }
.step { border: 0; border-radius: 9px; background: transparent; padding: 9px 6px; font-size: 12px; color: var(--muted); }
.step.active { background: white; color: var(--ink); box-shadow: 0 1px 4px rgba(15, 23, 42, .12); font-weight: 700; }
.screen { display: none; }
.screen.active { display: block; }
.muted, .tiny { color: var(--muted); }
.muted { line-height: 1.5; }
.tiny { font-size: 12px; line-height: 1.5; }
label { display: grid; gap: 7px; margin: 17px 0; font-size: 13px; font-weight: 700; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 12px; color: var(--ink); background: #fff; font-weight: 400; }
textarea { resize: vertical; }
input:focus, textarea:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
fieldset { border: 0; padding: 0; margin: 19px 0; }
legend { font-size: 13px; font-weight: 700; margin-bottom: 9px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 9px 12px; background: white; color: var(--muted); font-size: 13px; }
.chip.selected { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.primary, .secondary, .text-button { border-radius: 11px; min-height: 46px; padding: 11px 14px; font-weight: 750; }
.primary { width: 100%; border: 1px solid var(--accent); background: var(--accent); color: white; }
.secondary { border: 1px solid var(--line); background: white; color: var(--ink); }
.primary:disabled, .secondary:disabled { opacity: .45; cursor: not-allowed; }
.text-button { width: 100%; border: 0; background: transparent; color: var(--accent); }
.full { width: 100%; margin-top: 16px; }
.safety-card { border: 1px solid #bbf7d0; background: #f0fdf4; border-radius: 13px; padding: 14px; margin: 18px 0; }
.safety-card p { margin-bottom: 10px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segmented button { min-height: 42px; border: 1px solid #86efac; border-radius: 9px; background: white; color: var(--safe); }
.segmented button.selected { background: var(--safe); color: white; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.recorder { display: flex; align-items: center; gap: 10px; margin: 15px 0; }
.recorder span { color: var(--muted); font-size: 11px; }
.event-list { display: grid; gap: 9px; margin-top: 18px; }
.event { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fafbfc; }
.event strong { display: block; margin-bottom: 5px; }
.event p { font-size: 13px; margin-bottom: 3px; color: var(--muted); }
.report { margin: 18px 0; }
.report section { border-top: 1px solid var(--line); padding: 15px 0; }
.report h3 { margin: 0 0 8px; font-size: 14px; }
.report p, .report li { font-size: 13px; line-height: 1.55; }
.report ol { padding-left: 20px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.share-boundary { margin-top: 14px; padding: 13px 14px; border: 1px solid #bfdbfe; border-radius: 12px; background: #eff6ff; font-size: 12px; line-height: 1.5; }
.share-boundary p { margin: 6px 0 0; }
footer { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 16px; color: var(--muted); text-align: center; font-size: 11px; }

@media (max-width: 360px) {
  .grid-2, .actions { grid-template-columns: 1fr; }
  .recorder { align-items: flex-start; flex-direction: column; }
}

@media print {
  body { background: white; }
  .shell { width: 100%; box-shadow: none; padding: 0; }
  .topbar, .notice, .steps, #describe, #capture, .actions, footer { display: none !important; }
  #handoff { display: block !important; }
}
