:root {
  color-scheme: light dark;
  --text: #1b1f23;
  --muted: #57606a;
  --background: #ffffff;
  --accent: #0b5cad;
  --error: #b42318;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e6edf3;
    --muted: #9da7b3;
    --background: #0d1117;
    --accent: #58a6ff;
    --error: #ff7b72;
  }
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 16px/1.5 system-ui, sans-serif;
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

section,
details {
  margin-top: 2rem;
}

label,
input,
button {
  display: block;
  margin-top: 0.5rem;
}

button {
  padding: 0.6rem 1.2rem;
  border: 0;
  border-radius: 0.4rem;
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

.hint {
  color: var(--muted);
}

.error {
  color: var(--error);
}

.fingerprint,
pre {
  font-family: ui-monospace, monospace;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
