:root {
    color-scheme: light dark;
    --line: color-mix(in srgb, currentcolor 15%, transparent);
    --muted: color-mix(in srgb, currentcolor 60%, transparent);
    --accent: #0969da;
}

@media (prefers-color-scheme: dark) {
    :root {
        --accent: #58a6ff;
    }
}

body {
    margin: 0 auto;
    max-width: 80rem;
    padding: 1rem;
    font-family: system-ui, sans-serif;
    line-height: 1.4;
}

h1 {
    font-size: 1.6rem;
}

h1 select {
    font: inherit;
}

#summary,
.sub {
    color: var(--muted);
}

#filter {
    width: 100%;
    max-width: 30rem;
    padding: 0.4rem;
    font: inherit;
}

a {
    color: var(--accent);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

th,
td {
    padding: 0.3rem 0.5rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

thead th {
    white-space: nowrap;
    position: sticky;
    top: 0;
    background: Canvas;
}

th button {
    all: unset;
    cursor: pointer;
    font-weight: 600;
}

th button[aria-sort="descending"]::after {
    content: " ▼";
}

th button[aria-sort="ascending"]::after {
    content: " ▲";
}

.num {
    text-align: right;
}

.user {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.user img {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
}

.sub {
    display: block;
    font-size: 0.85em;
}
