:root { color-scheme: light; --fg: #1d2330; --muted: #6b7280; --line: #d9dde3; --accent: #1f5fa8; --err: #b42318; --ok: #15803d; --bg: #fbfbfc; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--fg); background: var(--bg); }
nav { display: flex; gap: 1rem; align-items: center; padding: .6rem 1.2rem; border-bottom: 1px solid var(--line); background: #fff; }
nav .brand img, h1.logo img { display: block; } nav .sep { color: var(--muted); } nav .right { margin-left: auto; display: flex; gap: .6rem; align-items: center; }
main { padding: 1.2rem; max-width: 1200px; } main.narrow { max-width: 640px; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 1.4rem; margin: .2rem 0 1rem; } h1.logo { margin: 1.2rem 0 1.6rem; } h2 { font-size: 1.1rem; margin-top: 1.8rem; }
table { border-collapse: collapse; width: 100%; background: #fff; }
th, td { text-align: left; padding: .4rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; font-size: .85rem; color: var(--muted); }
tr.inactive td { color: var(--muted); text-decoration: line-through; }
dl.grid { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1.2rem; }
dt { color: var(--muted); } dd { margin: 0; } .pre { white-space: pre-line; }
form.stack { display: flex; flex-direction: column; gap: .8rem; }
form.stack label { display: flex; flex-direction: column; gap: .2rem; font-size: .9rem; }
form.stack label.check, fieldset label.check { flex-direction: row; align-items: center; gap: .4rem; }
fieldset { border: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.row { display: flex; gap: 1rem; } .row label { flex: 1; }
input, select, textarea { font: inherit; padding: .35rem .5rem; border: 1px solid var(--line); border-radius: 4px; }
button, a.button { font: inherit; padding: .35rem .8rem; border: 1px solid var(--accent); border-radius: 4px; background: var(--accent); color: #fff; cursor: pointer; display: inline-block; }
form.inline { display: inline; } form.inline button { background: #fff; color: var(--accent); }
.inline-form { display: flex; gap: .5rem; margin-bottom: 1rem; align-items: center; }
.err { color: var(--err); font-size: .85rem; } .ok { color: var(--ok); }
small { color: var(--muted); } code.json { font-size: .75rem; white-space: pre-wrap; word-break: break-all; }
.num { text-align: right; } input.num { text-align: right; } input.wide { width: 100%; }
table.lines input { width: 100%; } .hint { color: var(--muted); font-size: .9rem; }
.badge { font-size: .8rem; padding: .1rem .5rem; border: 1px solid var(--line); border-radius: 999px; vertical-align: middle; color: var(--muted); }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0; }
button.primary { background: var(--ok); border-color: var(--ok); color: #fff; }
a.button.secondary, button.secondary { background: #fff; color: var(--accent); }
.flash { padding: .5rem .8rem; border-radius: 4px; } .flash.ok { background: #ecfdf3; } .flash.err { background: #fef3f2; }
.inline-form.wrap { flex-wrap: wrap; }
tr.summary td { font-weight: 600; } .scroll-x { overflow-x: auto; } input.year { width: 6rem; }
svg.qr { display: block; margin: .5rem 0; border: 1px solid var(--line); }
code.secret, ol.codes { font-family: ui-monospace, "DejaVu Sans Mono", monospace; } ol.codes { columns: 2; }
/* dashboard (25/11/2026): tiles, the month chart (inline SVG: presentation by class, never style=), category meters */
.tiles { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1rem 0; }
.tile { display: flex; flex-direction: column; gap: .2rem; padding: .7rem 1rem; min-width: 11rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--fg); }
a.tile:hover { text-decoration: none; border-color: var(--accent); }
.tile.wide { flex: 1 1 20rem; }
.tile-label { color: var(--muted); font-size: .85rem; } .tile-value { font-size: 1.4rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.tile-value.in { color: var(--ok); } .tile-value.out { color: var(--err); } .tile-note { font-size: .8rem; }
svg.chart { max-width: 100%; height: auto; display: block; margin: .5rem 0 1rem; }
svg.chart rect.in { fill: var(--ok); } svg.chart rect.out { fill: var(--err); } svg.chart .axis { stroke: var(--line); }
svg.chart path.cash { fill: none; stroke: var(--accent); stroke-width: 2; } svg.chart circle.cash { fill: var(--accent); }
svg.chart text.label { font-size: 11px; fill: var(--muted); }
.legend { font-size: .85rem; color: var(--muted); display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.legend .key { display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; margin-left: .6rem; }
.legend .key.in { background: var(--ok); } .legend .key.out { background: var(--err); } .legend .key.cash { background: var(--accent); }
.hbar { display: grid; grid-template-columns: 1fr auto; gap: .1rem .8rem; margin: .4rem 0; font-size: .9rem; }
.hbar meter { grid-column: 1 / -1; width: 100%; height: .6rem; }
