:root {
  color-scheme: light dark;
  --fg: #0a0a0a;
  --muted: #6b7280;
  --surface: #f7f7f8;
  --border: #e5e7eb;
  --accent: #111827;
  --accent-fg: #ffffff;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fg: #f5f5f5;
    --muted: #9ca3af;
    --surface: #18181b;
    --border: #27272a;
    --accent: #f5f5f5;
    --accent-fg: #0a0a0a;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--fg);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.shell {
  width: 100%;
  max-width: 28rem;
  text-align: center;
}

.state.hidden { display: none; }

.icon {
  font-size: 1.75rem;
  line-height: 1;
  margin: 0 0 1.5rem;
}

h1 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
}

.subtitle {
  color: var(--muted);
  margin: 0 0 2rem;
  font-size: 0.9375rem;
}
.subtitle code {
  background: var(--surface);
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
  font-size: 0.85em;
}

.secret-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.125rem 1rem;
  margin: 0 0 1.5rem;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9375rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 16rem;
  overflow: auto;
}
.secret-box.masked {
  text-align: center;
  color: var(--muted);
  letter-spacing: 0.35em;
  user-select: none;
}

button.primary {
  font: inherit;
  font-weight: 500;
  background: var(--accent);
  color: var(--accent-fg);
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.5rem;
  min-width: 14rem;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
button.primary:hover { opacity: 0.88; }
button.primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
button.primary:disabled { opacity: 0.55; cursor: default; }

button.secondary {
  display: inline-block;
  margin: 1rem 0 0;
  background: none;
  border: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}
button.secondary:hover { color: var(--fg); }

.footer {
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
}

@media (max-width: 480px) {
  body { padding: 2rem 1rem; }
  button.primary { width: 100%; min-width: 0; }
}
