:root {
  color-scheme: light dark;
  --bg: #f7f7f5;
  --fg: #1d1d1b;
  --muted: #5d5d58;
  --card: #ffffff;
  --line: #e2e2dc;
  --accent: #b5471b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151514;
    --fg: #ececea;
    --muted: #a5a59f;
    --card: #1e1e1c;
    --line: #2e2e2b;
    --accent: #e0733f;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0 auto;
  max-width: 960px;
  padding: 3rem 1.5rem 2rem;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
}
header { margin-bottom: 2.5rem; }
.eyebrow {
  margin: 0;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .85rem;
}
h1 { margin: .3rem 0 .6rem; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; }
.lead { margin: 0; color: var(--muted); font-size: 1.1rem; max-width: 42rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
}
article h2 { margin: 0 0 .4rem; font-size: 1.05rem; }
article p { margin: 0; color: var(--muted); }
code {
  font: .9em ui-monospace, "Cascadia Code", Consolas, monospace;
  background: color-mix(in srgb, var(--line) 60%, transparent);
  padding: .05em .3em;
  border-radius: 4px;
}
footer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}
footer p { margin: 0; }
a { color: var(--accent); }

/* Podstrona testu obciążeniowego */
.panel {
  margin-top: 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
}
.panel h2 { margin: 0 0 .7rem; font-size: 1.15rem; }
.controls { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin-bottom: .8rem; align-items: end; }
.controls label { display: flex; flex-direction: column; font-size: .9rem; color: var(--muted); gap: .2rem; }
select, button {
  font: inherit;
  font-size: .95rem;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .4rem .8rem;
}
button { cursor: pointer; }
button:hover:not(:disabled) { border-color: var(--accent); }
button:disabled { opacity: .5; cursor: progress; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
button.link { border: 0; background: none; color: var(--accent); padding: .4rem 0; text-decoration: underline; }
.status { margin: 0; color: var(--muted); font-size: .95rem; }
.muted { color: var(--muted); margin-top: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
th, td { padding: .4rem .55rem; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--muted); font-weight: 600; }
tr.has-errors td { color: #c0392b; }
.notes { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.notes li { margin-bottom: .4rem; }
.cta { margin-top: 1.5rem; }
