:root { color-scheme: light dark; }
body {
  font-family: system-ui, sans-serif;
  max-width: 32rem;
  margin: 4rem auto;
  padding: 0 1rem;
  line-height: 1.5;
}
button {
  font-size: 1rem;
  padding: 0.6rem 1.2rem;
  border: 0;
  border-radius: 0.5rem;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
}
button:disabled { opacity: 0.6; cursor: progress; }

hr {
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid rgba(127, 127, 127, 0.25);
}

h2 { font-size: 1.15rem; }

form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
}
input[type="text"] {
  font-size: 1rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(127, 127, 127, 0.4);
  border-radius: 0.5rem;
  background: transparent;
  color: inherit;
}
form button { align-self: flex-start; }

.output {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background: rgba(127, 127, 127, 0.12);
  min-height: 1.5rem;
  font-family: ui-monospace, monospace;
}
.err { color: #dc2626; }
