:root {
  color-scheme: light dark;
  --bg: #f7f7f5;
  --fg: #1b1b1a;
  --muted: #5f5f5b;
  --card: #ffffff;
  --border: #e2e2dd;
  --accent: #1b1b1a;
  --accent-fg: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --fg: #ededeb;
    --muted: #a3a39e;
    --card: #1c1c1b;
    --border: #2e2e2c;
    --accent: #ededeb;
    --accent-fg: #121212;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
main {
  width: 100%;
  max-width: 28rem;
  padding: 2.5rem 1.5rem;
}
h1 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
p { margin: 0 0 1.5rem; color: var(--muted); }
.code {
  display: block;
  margin: 0 0 1.75rem;
  padding: 1.25rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  background: var(--card);
  color: var(--fg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: center;
}
.actions { display: flex; flex-direction: column; gap: 0.75rem; }
.button {
  display: block;
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 0.75rem;
  background: var(--accent);
  color: var(--accent-fg);
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button.secondary { background: transparent; color: var(--fg); border-color: var(--border); }
.button:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.status { min-height: 1.5em; margin: 1rem 0 0; font-size: 0.875rem; text-align: center; }
[hidden] { display: none !important; }
