:root {
  color-scheme: light dark;
  font: 16px/1.45 system-ui,sans-serif;
  --text: light-dark(#172637,#edf3fc);
  --muted: light-dark(#52627a,#b3c2d8);
  --line: light-dark(#ccd9e8,#4b5c75);
  --page: light-dark(#f0f5fa,#151e2d);
  --panel: light-dark(#fff,#212e41);
  --accent: light-dark(#195780,#a5dfff);
  --on-accent: light-dark(#fff,#17344b);
}
body { margin: 0; color: var(--text); background: var(--page); }
main { width:min(calc(100% - 2rem),64rem); margin:2rem auto; }
h1,h2,p { margin:0 0 .75rem; }
form,section { padding:1rem; border:1px solid var(--line); border-radius:.85rem; background:var(--panel); }
.controls { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(10rem,100%),1fr)); gap:.75rem; }
label { font-weight:650; }
input,select,button { font:inherit; }
select,input { width:100%; box-sizing:border-box; display:block; padding:.42rem; margin-block:.25rem; border:1px solid var(--line); border-radius:.35rem; }
.hint { color:var(--muted); font-size:.875rem; }
button { color:var(--on-accent); background:var(--accent); padding:.55rem .9rem; border:0; border-radius:.4rem; font-weight:650; cursor:pointer; }
button:disabled { opacity:.6; cursor:wait; }
a { color:var(--accent); }
[role=status] { min-height:1.5rem; margin:.75rem 0; }
.table-wrap { overflow:auto; margin-bottom:.8rem; }
table { width:100%; border-collapse:collapse; min-width:35rem; }
th,td { text-align:left; padding:.6rem .55rem; border-bottom:1px solid var(--line); vertical-align:top; }
.value { font-variant-numeric:tabular-nums; }
meter { display:block; width:7rem; height:.5rem; margin-top:.25rem; accent-color:var(--accent); }
#download { margin-bottom:.65rem; }
footer { display:flex; flex-wrap:wrap; gap:.75rem; margin:.8rem 0; font-size:.875rem; }
