:root {
  color-scheme: light dark;
  --bg: #fff;
  --surface: #f2f2f2;
  --border: #dcdcdc;
  --text: #111;
  --muted: #6b6b6b;
  --on-accent: #fff;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-xxl: 32px;
  --space-xxxl: 48px;
  --radius: 8px;
  font: 15px/20px system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --surface: #161616;
    --border: #2c2c2c;
    --text: #f5f5f5;
    --muted: #9a9a9a;
    --on-accent: #000;
  }
}
* { box-sizing: border-box; }
body { margin: 0; }
main { margin: 0 auto; padding: var(--space-xxxl) var(--space-xl); }
.compact { max-inline-size: 400px; padding-block-start: clamp(48px, 16vh, 144px); }
.wide { max-inline-size: 928px; }
h1 { font-size: 28px; line-height: 34px; margin: 0; }
p { margin: var(--space-sm) 0 0; color: var(--muted); }
form { margin: 0; }
.signin, .filters { margin-block-start: var(--space-xxl); display: grid; gap: var(--space-lg); }
.filters { grid-template-columns: repeat(2, minmax(140px, 180px)) auto; justify-content: start; align-items: end; }
label { display: grid; gap: var(--space-xs); font-weight: 600; }
input, button { font: inherit; color: inherit; }
input {
  min-inline-size: 0;
  inline-size: 100%;
  min-block-size: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: var(--space-sm) var(--space-md);
  font-size: 16px;
  font-weight: 400;
}
button, a.action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-block-size: 44px;
  border: 0;
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-lg);
  font-weight: 600;
  cursor: pointer;
}
.primary { background: var(--text); color: var(--on-accent); }
.primary:hover { opacity: .88; }
.primary:active { opacity: .72; }
.quiet, a.action { background: transparent; color: inherit; }
.quiet:hover, a.action:hover { background: var(--surface); }
.quiet:active, a.action:active { background: var(--border); }
a.action { text-decoration: none; }
.compact > a.action { margin-block-start: var(--space-lg); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.alert { margin: 0; color: var(--text); font-weight: 600; }
.filters + .alert { margin-block-start: var(--space-xl); }
nav { display: flex; justify-content: space-between; margin: 0 calc(-1 * var(--space-lg)) var(--space-xl); }
.table-scroll { overflow: auto; margin-block-start: var(--space-xl); }
table { border-collapse: collapse; width: 100%; min-width: 490px; font-variant-numeric: tabular-nums; }
th, td { padding: var(--space-md); border-bottom: 1px solid var(--border); text-align: end; }
th:first-child, td.empty { text-align: start; }
tbody th { font-weight: 600; overflow-wrap: anywhere; min-inline-size: 130px; }
thead th, small { color: var(--muted); font-size: 13px; }
small { display: block; font-weight: 400; }
tfoot { font-weight: 700; }
.note { margin-block-start: var(--space-md); font-size: 13px; }
@media (max-width: 540px) {
  main { padding-inline: var(--space-lg); }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; }
  .filters button { justify-self: start; grid-column: 1 / -1; }
  table { min-width: 0; }
  th, td { padding-inline: var(--space-xs); }
  tbody th { min-inline-size: 0; }
}
