:root { color-scheme: light dark; --fg: #1b1f24; --bg: #fff; --muted: #59636e; --line: #d0d7de;
  --high: #cf222e; --medium: #bf8700; --low: #0969da; --accent: #0969da; }
@media (prefers-color-scheme: dark) {
  :root { --fg: #e6edf3; --bg: #0d1117; --muted: #8b949e; --line: #30363d;
    --high: #ff7b72; --medium: #e3b341; --low: #79c0ff; --accent: #58a6ff; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, sans-serif; color: var(--fg); background: var(--bg); }
header, main { max-width: 64rem; margin: 0 auto; padding: 1rem; }
header { display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line); }
header form { display: inline; }
h1 { font-size: 1.4rem; } h2 { font-size: 1.15rem; margin-top: 2rem; }
a { color: var(--accent); }
form.stack { display: grid; gap: .75rem; max-width: 26rem; }
form.inline { display: flex; gap: .5rem; flex-wrap: wrap; }
form.inline input[type=text] { flex: 1 1 18rem; }
input[type=text], input[type=email], input[type=password] { padding: .5rem; font: inherit;
  color: inherit; background: transparent; border: 1px solid var(--line); border-radius: 6px; }
button, .button { padding: .5rem 1rem; font: inherit; cursor: pointer; color: #fff;
  background: var(--accent); border: 0; border-radius: 6px; text-decoration: none; }
button.link { background: none; color: var(--accent); padding: 0; text-decoration: underline; }
.error { color: var(--high); font-weight: 600; }
.muted { color: var(--muted); }
table { width: 100%; border-collapse: collapse; margin-top: .5rem; }
th, td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid var(--line);
  vertical-align: top; overflow-wrap: anywhere; }
.badge { font-weight: 700; text-transform: uppercase; font-size: .8rem; }
.badge.high { color: var(--high); } .badge.medium { color: var(--medium); }
.badge.low { color: var(--low); }
.summary { display: flex; gap: 1.5rem; flex-wrap: wrap; margin: 1rem 0; }
.filters a { margin-right: .75rem; }
.filters a.active { font-weight: 700; text-decoration: none; color: var(--fg); }
.nowrap { white-space: nowrap; }
form.inline-form { display: inline; margin-left: .75rem; }

.pager { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin: 1rem 0; }
.pagesize { display: flex; gap: .5rem; align-items: center; }
.pages { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
header nav { display: inline-flex; gap: .9rem; margin-left: 1.5rem; }

.progress { display: flex; gap: .8rem; align-items: flex-start; margin: 1rem 0; padding: .8rem 1rem; border: 1px solid var(--border, #ccc); border-radius: 6px; }
.spinner { flex: none; width: 1.1rem; height: 1.1rem; margin-top: .15rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 1s linear infinite; }
.spinner.stopped { animation: none; opacity: .35; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.ok { font-weight: 600; }
