/* Visit Receipt: a spinner, then five fields and one notice line. */
:root {
  --bg: #f7f7f8; --surface: #fff; --line: #e6e6ea; --fg: #17171c; --muted: #74747f; --accent: #2f5bea;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e0e11; --surface: #16161a; --line: #26262d; --fg: #ececf1; --muted: #85858f; --accent: #7c9cff; }
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--fg); font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; overflow-x: hidden;
}
main {
  min-height: 100%; display: flex; align-items: center; justify-content: center;
  padding: 24px max(16px, env(safe-area-inset-right)) 24px max(16px, env(safe-area-inset-left));
}

#spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #spinner { animation-duration: 2.4s; } }

#done { width: 100%; max-width: 480px; }
#notice { margin: 12px 4px 0; color: var(--muted); font-size: 13px; text-align: center; overflow-wrap: anywhere; }

#result {
  width: 100%; margin: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
#result div { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#result div + div { border-top: 1px solid var(--line); }
#result dt { color: var(--muted); font-size: 12px; }
#result dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
#result dd.mono { font-family: var(--mono); font-size: 14px; }
#result dd .also { display: block; font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 2px; }
