:root{--ink:#1f2933;--muted:#52606d;--line:#d9e2ec;--bg:#f7f9fb;--card:#fff;--accent:#0b6e4f;--accent-2:#e4f4ee;--warn:#8a5a00;--warn-bg:#fff6e0;--bad:#a61b1b;--focus:#1d4ed8}
*{box-sizing:border-box}
html{font-size:16px}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink);background:var(--bg);line-height:1.5}
a{color:#0b5cad}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,label.drop:focus-within{outline:3px solid var(--focus);outline-offset:2px}
.wrap{max-width:1040px;margin:0 auto;padding:0 18px}
header.site{background:#fff;border-bottom:1px solid var(--line)}
header.site .wrap{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;flex-wrap:wrap}
header.site a.brand{font-weight:700;color:var(--ink);text-decoration:none}
header.site nav a{margin-left:16px;color:var(--muted);text-decoration:none}
header.site nav a:hover{text-decoration:underline}
h1{font-size:1.9rem;line-height:1.2;margin:28px 0 8px}
h2{font-size:1.3rem;margin:32px 0 10px}
h3{font-size:1.05rem;margin:18px 0 6px}
p.lede{font-size:1.1rem;color:var(--muted);margin:0 0 18px;max-width:760px}
.card{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:18px;margin:16px 0}
.grid2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}
@media (max-width:760px){.grid2{grid-template-columns:1fr}h1{font-size:1.55rem}}
.tools{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}
.tools .card h2{margin-top:0}
.btn{display:inline-block;background:var(--accent);color:#fff;border:0;border-radius:8px;padding:10px 16px;font-size:1rem;text-decoration:none;cursor:pointer}
.btn.secondary{background:#fff;color:var(--accent);border:1px solid var(--accent)}
.btn:hover{filter:brightness(1.08)}
.field{display:flex;flex-direction:column;margin-bottom:12px}
.field label{font-weight:600;margin-bottom:4px}
.field .hint{font-size:.85rem;color:var(--muted)}
.field input[type=number],.field input[type=text],.field select{font-size:1rem;padding:8px 10px;border:1px solid #bcccdc;border-radius:6px;background:#fff;width:100%}
.row{display:flex;gap:12px}
.row>.field{flex:1}
.check{display:flex;gap:8px;align-items:flex-start;margin:8px 0}
.check input{margin-top:4px}
table{border-collapse:collapse;width:100%}
th,td{text-align:left;padding:7px 8px;border-bottom:1px solid var(--line);vertical-align:top}
td.num,th.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
tr.total td{font-weight:700;border-top:2px solid var(--ink)}
tr.sub td{color:var(--muted)}
.big{font-size:1.6rem;font-weight:700}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:12px 0}
.kpi{background:var(--accent-2);border-radius:8px;padding:12px}
.kpi .label{font-size:.85rem;color:var(--muted)}
.kpi.neg{background:#fde8e8}
.kpi.neg .big{color:var(--bad)}
.note{background:var(--warn-bg);border-left:4px solid #e0a800;padding:10px 12px;border-radius:6px;color:#4a3b00}
.privacy{background:var(--accent-2);border-left:4px solid var(--accent);padding:10px 12px;border-radius:6px}
.product{border:1px dashed #9fb3c8;background:#fbfdff}
.product h2{margin-top:0;font-size:1.1rem}
.muted{color:var(--muted)}
.small{font-size:.875rem}
footer.site{margin:48px 0 0;padding:20px 0 32px;border-top:1px solid var(--line);color:var(--muted);font-size:.9rem;background:#fff}
footer.site a{color:var(--muted)}
details{border:1px solid var(--line);border-radius:8px;padding:10px 14px;background:#fff;margin:8px 0}
details summary{cursor:pointer;font-weight:600}
code{background:#eef2f6;padding:1px 4px;border-radius:4px}
.drop{display:block;border:2px dashed #9fb3c8;border-radius:12px;padding:28px;text-align:center;background:#fff;cursor:pointer}
.drop.over{border-color:var(--accent);background:var(--accent-2)}
.drop input{position:absolute;width:1px;height:1px;opacity:0}
.scroll{overflow-x:auto}
.chart{width:100%;height:auto;display:block}
.chart text{font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-size:12px;fill:#334e68}
.badge{display:inline-block;font-size:.75rem;padding:1px 7px;border-radius:999px;background:#e6eef6;color:#243b53;white-space:nowrap}
.badge.number{background:#e4f4ee;color:#0b6e4f}.badge.date{background:#efe8fb;color:#5b3aa0}.badge.category{background:#fff1e0;color:#8a5a00}
.warnlist li{margin:2px 0}
.hidden{display:none !important}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* guides */
.guide article{max-width:820px}
.guide p.checked{background:#f3f7fb;border-left:4px solid #2f7fc1;padding:.5rem .75rem;border-radius:4px}
.ds{display:inline-block;font-size:.75rem;font-weight:600;padding:.05rem .4rem;border-radius:3px;background:#fff4d6;color:#7a5200;border:1px solid #e8c66a;vertical-align:middle}
.formula{font-size:1.05rem;background:#f6f8fa;padding:.6rem .8rem;border-radius:6px}
.tool-cta{background:#eef8f3;border:1px solid #b9e2cf;padding:.6rem .8rem;border-radius:6px}
pre{background:#f6f8fa;padding:.75rem;border-radius:6px;overflow:auto;font-size:.85rem}
pre code{background:none;padding:0}
ul.sources li{margin:.2rem 0}
.guidelist li{margin:.35rem 0}
footer.site .madeby a{font-weight:600}
