:root {
  color-scheme: light;
  --bg: #f6f5f3;
  --ink: #1b1b1b;
  --muted: #5c5c5c;
  --card: #ffffff;
  --line: #e4e2dd;
  --accent: #1f4f46;
  --ok: #1f6b3a;
  --err: #9b2c2c;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.45;
}
header, footer, main { width: min(1100px, calc(100% - 32px)); margin: 0 auto; }
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
nav { display: flex; gap: 16px; align-items: center; }
.brand { font-weight: 650; letter-spacing: 0.01em; color: inherit; text-decoration: none; }
a { color: var(--accent); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0 28px;
}
.narrow { max-width: 420px; margin-left: auto; margin-right: auto; }
.narrow h1 { margin-bottom: 8px; }
.narrow .muted { margin-top: 0; }
.grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
h1, h2, h3 { font-weight: 650; letter-spacing: -0.02em; }
label { display: block; margin: 12px 0; }
input {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
button, .button {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
pre, code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-word;
}
pre { background: #f3f2ef; padding: 12px; border-radius: 8px; overflow: auto; }
.error { color: var(--err); }
.ok { color: var(--ok); }
.ok-text { color: var(--ok); font-weight: 650; }
.status { font-weight: 650; margin: 0 0 12px; }
.muted { color: var(--muted); }
.meta { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; margin: 0 0 16px; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--line); }
footer { color: var(--muted); font-size: 12px; padding: 24px 0 40px; }
