:root {
  --fg: #111;
  --bg: #fff;
  --muted: #666;
  --hair: #eee;
  --border: #ccc;
  --fill: #f5f5f5;
  --fill-2: #f7f7f7;
  --danger: #b00;
  --danger-bg: #fee;
  --ok: #060;
  --ok-bg: #efe;
  --radius: 4px;
  font: 15px/1.5 ui-sans-serif, system-ui, sans-serif;
  color: var(--fg);
  color-scheme: light;
}
body { max-width: 760px; margin: 2rem auto; padding: 0 1rem; background: var(--bg); }
h1, h2, h3 { line-height: 1.2; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 .5rem; }
h2 { margin-top: 2rem; }
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; border-bottom: 1px solid var(--hair); padding-bottom: .5rem; }
header a { color: inherit; text-decoration: none; font-weight: 600; }
header .logo img { height: 22px; display: block; }
header .logo { display: flex; align-items: center; gap: .5rem; }
table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
th, td { padding: .5rem .6rem; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; }
th { background: var(--fill-2); font-weight: 600; }
label { display: block; margin: .5rem 0 .25rem; font-weight: 600; }
label.inline { display: flex; align-items: center; gap: .5rem; }
input[type=text], input[type=email], input[type=number], select, textarea { width: 100%; padding: .5rem; border: 1px solid var(--border); border-radius: var(--radius); font: inherit; box-sizing: border-box; }
input[type=number] { width: 8rem; }
textarea { font-family: ui-monospace, monospace; min-height: 6rem; }
button, .btn { display: inline-block; padding: .5rem .9rem; border-radius: var(--radius); border: 1px solid var(--fg); background: var(--fg); color: #fff; cursor: pointer; font: inherit; text-decoration: none; }
button.secondary, .btn.secondary { background: #fff; color: var(--fg); }
button.danger { background: #fff; color: var(--danger); border-color: var(--danger); }
pre.snippet, code { font: 13px/1.45 ui-monospace, monospace; }
pre.snippet { background: var(--fill); padding: .8rem; border-radius: var(--radius); overflow-x: auto; }
.snippet-wrap { position: relative; }
.snippet-wrap pre.snippet { padding-right: 4.5rem; }
.snippet-wrap .copy { position: absolute; top: .45rem; right: .45rem; padding: .15rem .5rem; font-size: 12px; background: #fff; color: var(--fg); border-color: var(--border); }
.snippet-wrap .copy:hover { border-color: var(--fg); }
code { background: var(--fill); padding: .1rem .3rem; border-radius: var(--radius); }
.flash { padding: .5rem .8rem; border-radius: var(--radius); background: var(--danger-bg); color: #900; margin-bottom: 1rem; }
.notice { padding: .5rem .8rem; border-radius: var(--radius); background: var(--ok-bg); color: var(--ok); margin-bottom: 1rem; }
.muted { color: var(--muted); font-size: .9em; }
form.inline { display: inline; }
.hero { margin: 0 0 2rem; padding-top: 2rem; text-align: center; }
.hero img { width: min(320px, 80%); height: auto; display: block; margin: 0 auto 2rem; }
.hero h1 { font-size: 1.8rem; margin: 0 0 .5rem; }
.hero p { margin: .25rem 0; }
body > main { min-height: calc(100vh - 8rem - 36px); min-height: calc(100dvh - 8rem - 36px); }
.site-footer { text-align: center; margin: 4rem 0 0; }
.site-footer img { height: 36px; display: block; margin: 0 auto; }
.steps { margin: 1.75rem auto 2.5rem; max-width: 26rem; text-align: left; }
.steps-label { font-size: .8em; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
.steps ol { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps li { counter-increment: step; display: flex; align-items: center; gap: .75rem; padding: .4rem 0; }
.steps li::before { content: counter(step); flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 1px solid var(--fg); display: grid; place-items: center; font-size: .85em; font-weight: 600; }
.steps-done { display: flex; align-items: center; gap: 1rem; margin-top: .75rem; font-style: italic; font-size: .8em; color: var(--muted); }
.steps-done::before, .steps-done::after { content: ""; flex: 1; border-top: 1px solid var(--muted); }
