/* webby: one small style sheet. */
:root { --fg: #1d1d1f; --bg: #fff; --muted: #666; --line: #ddd; --ok: #1a7f37; --bad: #b42318; --link: #0b57d0; }
@media (prefers-color-scheme: dark) {
  :root { --fg: #e6e6e6; --bg: #151515; --muted: #999; --line: #333; --ok: #4ac26b; --bad: #ff7b72; --link: #8ab4f8; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, sans-serif; color: var(--fg); background: var(--bg); }
header { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; padding: .6rem 1rem; border-bottom: 1px solid var(--line); }
header nav { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-left: auto; }
.brand { font-weight: 700; text-decoration: none; color: var(--fg); }
.user { color: var(--muted); }
main { padding: 1rem; max-width: 100%; }
h1 { font-size: 1.3rem; margin: .2rem 0 1rem; }
h2 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
a { color: var(--link); }
code, pre, table.stats { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
pre { padding: .6rem; border: 1px solid var(--line); overflow-x: auto; }
table { border-collapse: collapse; }
th, td { padding: .25rem .6rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; vertical-align: top; }
th { font-weight: 600; }
td.n, th.n { text-align: right; }
tfoot td { font-weight: 700; border-top: 2px solid var(--fg); }
th a { color: var(--fg); }
th a.active { text-decoration: underline; color: var(--link); }
th a.alt { font-weight: 400; font-size: .85em; }
table.kv th { padding-right: 1.5rem; }
.scroll { overflow-x: auto; }
.ok { color: var(--ok); }
.bad, .error { color: var(--bad); }
.meta, .note { color: var(--muted); }
form.stack { display: grid; gap: .6rem; max-width: 32rem; }
form.stack label { display: grid; gap: .2rem; }
form.inline { display: inline; margin: 0; }
input { font: inherit; padding: .35rem .5rem; }
button { font: inherit; padding: .3rem .8rem; cursor: pointer; }
