:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1d1d1f;
  --muted: #6b6b70;
  --line: #d9d9de;
  --accent: #2563eb;
  --accent-fg: #ffffff;
  --error: #c62828;
  --box: #f4f4f6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161618;
    --fg: #ececf0;
    --muted: #a0a0a8;
    --line: #3a3a40;
    --accent: #5b8cff;
    --accent-fg: #0b0b0d;
    --error: #ff6b6b;
    --box: #222226;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    'Apple SD Gothic Neo',
    'Malgun Gothic',
    sans-serif;
  line-height: 1.6;
}

main {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

h1 {
  font-size: 1.4rem;
  margin: 0 0 16px;
}

.lead {
  font-size: 1.05rem;
  font-weight: 600;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

button {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-fg);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.box {
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--box);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
  user-select: all;
  -webkit-user-select: all;
}

.small {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--muted);
}

.small dt {
  font-weight: 700;
}

.small dd {
  margin: 0 0 8px;
  font-family: ui-monospace, Consolas, monospace;
  overflow-wrap: anywhere;
}

.error {
  color: var(--error);
  font-size: 1.15rem;
  font-weight: 700;
}

.error-detail {
  color: var(--error);
  font-family: ui-monospace, Consolas, monospace;
  overflow-wrap: anywhere;
}
