:root{--bg:#fafaf7;--fg:#1f2a1f;--muted:#5d6b5d;--line:#d9ddd3;--surplus:#3f7d3a;--tight:#c98a1b;--shortfall:#b3402f;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#161a16;--fg:#e8ece6;--muted:#9aa89a;--line:#2e362e;--surplus:#6fb568;--tight:#e0a63c;--shortfall:#e07563}}*{box-sizing:border-box}body{background:var(--bg);color:var(--fg);margin:0;font:16px/1.5 system-ui,-apple-system,Segoe UI,sans-serif}main{max-width:760px;margin:0 auto;padding:24px 16px 48px}h1{margin:0 0 4px;font-size:1.6rem}.lede,.hint,.foot,.legend{color:var(--muted)}.hint,.foot,.legend{font-size:.85rem}.grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:20px 0 12px;display:grid}label{flex-direction:column;gap:2px;font-size:.9rem;font-weight:600;display:flex}.unit{color:var(--muted);font-size:.78rem;font-weight:400}input[type=number],input[type=text]{font:inherit;border:1px solid var(--line);color:inherit;background:0 0;border-radius:6px;width:100%;padding:6px 8px}details{margin:8px 0 16px}summary{cursor:pointer}#error{color:var(--shortfall);font-weight:600}#summary{font-weight:600}svg{width:100%;height:auto;display:block}.bar.surplus{fill:var(--surplus)}.bar.tight{fill:var(--tight)}.bar.shortfall{fill:var(--shortfall)}.zero{stroke:var(--muted);stroke-width:1px}.tick{fill:var(--muted);font-size:11px}.key{border-radius:2px;width:10px;height:10px;margin:0 4px 0 10px;display:inline-block}.key:first-child{margin-left:0}.key.surplus{background:var(--surplus)}.key.tight{background:var(--tight)}.key.shortfall{background:var(--shortfall)}table{border-collapse:collapse;width:100%;margin-top:16px;font-size:.9rem}th,td{text-align:right;border-bottom:1px solid var(--line);padding:6px 8px}th:first-child,td:first-child{text-align:left}.pill{border:1px solid;border-radius:999px;padding:1px 8px;font-size:.8rem}.pill.surplus{color:var(--surplus)}.pill.tight{color:var(--tight)}.pill.shortfall{color:var(--shortfall)}
