:root { --bg:#fafaf9; --card:#fff; --ink:#1c1917; --muted:#57534e; --line:#e7e5e4; --accent:#0f766e; --neg:#b91c1c; color-scheme: light dark; }
@media (prefers-color-scheme: dark) { :root { --bg:#0c0a09; --card:#1c1917; --ink:#f5f5f4; --muted:#a8a29e; --line:#292524; --accent:#2dd4bf; --neg:#f87171; } }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font:16px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; }
main { max-width:960px; margin:0 auto; padding:32px 16px 64px; }
h1 { font-size:30px; letter-spacing:-.02em; margin:0 0 8px; }
h2 { font-size:20px; margin:32px 0 8px; }
.lede { font-size:18px; color:var(--muted); margin:0 0 16px; }
.private { border-left:3px solid var(--accent); padding:8px 12px; background:var(--card); border-radius:8px; }
form { background:var(--card); border:1px solid var(--line); border-radius:16px; padding:24px; margin:24px 0; display:grid; gap:16px; }
label { display:grid; gap:6px; font-size:14px; color:var(--muted); }
input { font:inherit; color:var(--ink); background:var(--bg); border:1px solid var(--line); border-radius:8px; padding:10px 12px; width:100%; }
input:focus-visible, button:focus-visible, summary:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.row { display:grid; gap:12px; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); }
summary { cursor:pointer; font-size:14px; color:var(--accent); }
button { font:inherit; font-weight:600; background:var(--accent); color:#fff; border:0; border-radius:10px; padding:12px 20px; min-height:44px; cursor:pointer; justify-self:start; }
@media (prefers-color-scheme: dark) { button { color:#042f2e; } }
button:disabled { opacity:.6; cursor:progress; }
.hint { font-size:14px; color:var(--muted); margin:4px 0; }
a { color:var(--accent); }
#status.err { color:var(--neg); font-weight:600; }
.tiles { display:grid; gap:12px; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); }
.tile { background:var(--card); border:1px solid var(--line); border-radius:16px; padding:16px; display:grid; gap:4px; }
.tile span { font-size:13px; color:var(--muted); } .tile b { font-size:24px; }
.table { overflow-x:auto; background:var(--card); border:1px solid var(--line); border-radius:12px; }
table { border-collapse:collapse; width:100%; font-size:14px; }
th, td { text-align:left; padding:10px 12px; border-bottom:1px solid var(--line); vertical-align:top; }
th { font-weight:600; color:var(--muted); white-space:nowrap; }
td.n, th.n { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.neg { color:var(--neg); }
.note { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:12px 16px; font-size:14px; }
#results details { margin-top:24px; }
.how ul { padding-left:20px; } .how li { margin:8px 0; }
.disclaimer { font-size:13px; color:var(--muted); border-top:1px solid var(--line); padding-top:16px; }
