/* Stonks: one small stylesheet, served by the binary; no CDN, no web fonts. */
:root { --ink: #1d2433; --muted: #667085; --line: #e4e7ec; --accent: #15624a; --warn: #9a3412; --bg: #fbfbf9; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, sans-serif; color: var(--ink); background: var(--bg); }
header { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); background: #fff; }
.brand { font-weight: 700; color: var(--accent); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; }
nav a, button.link { color: var(--ink); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
nav form { display: inline; }
main { max-width: 60rem; margin: 0 auto; padding: 1rem; }
h1 { font-size: 1.5rem; margin: .5rem 0 1rem; }
h2 { font-size: 1.15rem; margin: 2rem 0 .5rem; }
table { width: 100%; border-collapse: collapse; margin: .5rem 0; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.n { text-align: right; white-space: nowrap; }
table.summary { max-width: 28rem; }
tfoot th, tfoot td { border-bottom: 0; font-weight: 600; }
.muted, tr.muted td { color: var(--muted); font-size: .9rem; }
.notice { padding: .5rem .75rem; background: #e7f4ee; border-left: 3px solid var(--accent); }
.warning { padding: .5rem .75rem; background: #fdf0e8; border-left: 3px solid var(--warn); }
a { color: var(--accent); }
.button, button { display: inline-block; padding: .45rem .9rem; border: 1px solid var(--accent); border-radius: .3rem; background: var(--accent); color: #fff; font: inherit; text-decoration: none; cursor: pointer; }
textarea { width: 100%; font: .85rem/1.4 ui-monospace, monospace; padding: .5rem; }
form.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .75rem; align-items: end; max-width: 48rem; }
form.grid label { display: flex; flex-direction: column; gap: .2rem; font-size: .9rem; }
input, select { font: inherit; padding: .35rem .4rem; border: 1px solid var(--line); border-radius: .25rem; }
form.inline { display: flex; gap: .25rem; flex-wrap: wrap; }
@media (max-width: 40rem) { th, td { padding: .35rem .3rem; font-size: .9rem; } }
