:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --ink: #15181d;
  --muted: #5a6270;
  --rule: #d3d8df;
  --accent: #2b5a89;
  --danger: #b3261e;
  --on-accent: #ffffff;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216;
    --surface: #171c22;
    --ink: #e5e8ec;
    --muted: #9aa2af;
    --rule: #2a323c;
    --accent: #7fb0e0;
    --danger: #f26b5f;
    --on-accent: #0f1216;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0 16px 48px;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.5 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
header,
main {
  max-width: 560px;
  margin: 0 auto;
}
header {
  padding: 24px 0 8px;
}
h1 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: 0.02em;
}
h2 {
  margin: 0 0 8px;
  font-size: 19px;
}
p {
  margin: 0 0 12px;
  color: var(--muted);
}
section {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
}
form {
  display: grid;
  gap: 8px;
}
label {
  font-weight: 600;
  font-size: 14px;
}
.hint {
  font-weight: 400;
  color: var(--muted);
}
input,
select,
textarea {
  width: 100%;
  font: inherit;
  padding: 10px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
}
textarea[readonly] {
  font:
    13px/1.4 ui-monospace,
    Menlo,
    monospace;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 4px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
legend {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}
.choice {
  font-weight: 400;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 44px;
}
.choice input {
  width: auto;
}
button {
  min-height: 48px;
  margin-top: 8px;
  font:
    600 16px/1 system-ui,
    sans-serif;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
}
button.danger {
  background: var(--danger);
}
button:disabled {
  opacity: 0.6;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
output {
  display: block;
  white-space: pre-wrap;
  font:
    13px/1.4 ui-monospace,
    Menlo,
    monospace;
  overflow-wrap: anywhere;
}
code {
  font-family: ui-monospace, Menlo, monospace;
}
