
:root { --bg: #F7F4EC; --surface: #FCFAF5; --line: #DAD3C2; --text: #1E2421; --muted: #5A5D58; --leaf: #2F6B47; --mark: #60A37B; --clay: #A34E2B; --c: #A9CDB5; }
@media (prefers-color-scheme: dark) { :root { --bg: #151A18; --surface: #1E2421; --line: #2C3330; --text: #ECE7DA; --muted: #A9AFA7; --leaf: #8ED1A8; --mark: #60A37B; --clay: #E8A07A; --c: #2F6B47; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--leaf); }
main { max-width: 1100px; margin: 0 auto; padding: 16px 20px 48px; }
main.narrow { max-width: 420px; padding-top: 12vh; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; }
.brand svg { width: 34px; fill: var(--mark); }
.brand small { color: var(--muted); font-weight: 400; }
header.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.tabs { display: flex; gap: 14px; } .tabs b { color: var(--text); }
button, .button { font: inherit; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 6px; padding: 6px 12px; cursor: pointer; text-decoration: none; display: inline-block; }
.button { background: var(--leaf); color: var(--bg); border-color: var(--leaf); padding: 10px 16px; }
.muted { color: var(--muted); } .error { color: var(--clay); }
h1 { font-size: 26px; } h2 { font-size: 16px; margin: 0 0 8px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 16px 0; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.tile .v { font-size: 28px; font-weight: 600; color: var(--leaf); } .tile .l { font-weight: 600; } .tile .s { color: var(--muted); font-size: 13px; }
.chart { margin: 18px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.chart figcaption { font-weight: 600; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chart svg { width: 100%; height: auto; } .chart text { fill: var(--muted); font-size: 11px; }
.legend { font-weight: 400; color: var(--muted); font-size: 13px; display: flex; gap: 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 2px; }
rect.a, i.a { fill: var(--c); background: var(--c); } rect.b, i.b { fill: var(--leaf); background: var(--leaf); } rect.c, i.c { fill: var(--clay); background: var(--clay); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin: 16px 0; }
.cols section { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); padding: 4px 6px; }
td { border-bottom: 1px solid var(--line); padding: 4px 6px; word-break: break-word; } td.num { text-align: right; white-space: nowrap; }
tr:last-child td { border-bottom: 0; } .indent { padding-left: 14px; color: var(--muted); }
footer { margin-top: 24px; font-size: 13px; }
