:root { --fg: #1d2330; --muted: #5d6676; --line: #d9dee7; --accent: #1f5fbf; --bad: #b3261e; --ok: #1e7b34; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--fg); background: #f6f7f9; }
header { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; padding: .75rem 1.25rem; background: #fff; border-bottom: 1px solid var(--line); }
nav { display: flex; flex-wrap: wrap; gap: 1rem; flex: 1; }
nav a { color: var(--accent); text-decoration: none; }
main { padding: 1.25rem; max-width: 1200px; }
h1 { font-size: 1.5rem; margin: 0 0 1rem; }
h2 { font-size: 1.15rem; margin: 2rem 0 .75rem; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
th, td { padding: .5rem .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { font-size: .875rem; color: var(--muted); font-weight: 600; }
td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1rem; }
.narrow { max-width: 440px; }
form.card label { display: block; margin-bottom: .75rem; }
form.card input, form.card select { display: block; width: 100%; margin-top: .25rem; }
form.row { display: flex; flex-wrap: wrap; gap: .4rem; }
form.row input[type=number] { width: 7rem; }
form.inline { margin: 0; }
input, select, button { font: inherit; padding: .4rem .55rem; border: 1px solid var(--line); border-radius: 4px; }
button { background: var(--accent); color: #fff; border-color: var(--accent); cursor: pointer; }
button.danger { background: #fff; color: var(--bad); border-color: var(--bad); }
button.link { background: none; border: none; color: var(--accent); padding: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #9cc0f5; outline-offset: 1px; }
.notice { color: var(--ok); font-weight: 600; }
.error { color: var(--bad); font-weight: 600; }
.hint { color: var(--muted); font-size: .9rem; }
.key pre { font-size: 1.05rem; padding: .75rem; background: #f0f3f8; border-radius: 4px; overflow-x: auto; }
.big { font-size: 1.75rem; font-weight: 600; margin: 0 0 .5rem; }
meter { width: 100%; height: 1.25rem; }
.scroll { overflow-x: auto; }
.key { margin-bottom: 1.5rem; }
@media (max-width: 640px) {
  nav { order: 3; flex-basis: 100%; gap: .75rem; }
  main { padding: 1rem; }
}
