:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

* { box-sizing: border-box; }
body { margin: 0; background: #111827; color: #f9fafb; }
a { color: #93c5fd; }
a:hover { color: #bfdbfe; }
.skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 10;
  padding: .65rem 1rem;
  background: #f9fafb;
  color: #111827;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  width: min(70rem, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.header-actions { display: flex; align-items: center; gap: 1rem; }
[hidden] { display: none !important; }
.brand { color: #f9fafb; font-size: 1.2rem; font-weight: 800; text-decoration: none; }
.brand a { color: inherit; text-decoration: none; }
main { width: min(70rem, calc(100% - 2rem)); margin: 3rem auto; }
main.narrow { width: min(32rem, calc(100% - 2rem)); }
.card {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 1rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  box-shadow: 0 1.25rem 3rem rgb(0 0 0 / 25%);
}
.hero { max-width: 46rem; margin-inline: auto; }
h1 { margin: 0 0 .75rem; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; }
.eyebrow { color: #60a5fa; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.muted { color: #cbd5e1; }
form { display: grid; gap: .65rem; margin-top: 1.5rem; }
label { font-weight: 700; }
input, select, button {
  min-height: 2.75rem;
  border: 1px solid #4b5563;
  border-radius: .55rem;
  font: inherit;
}
input, select { width: 100%; padding: .65rem .8rem; background: #111827; color: #f9fafb; }
button {
  padding: .65rem 1rem;
  border-color: #2563eb;
  background: #2563eb;
  color: white;
  cursor: pointer;
  font-weight: 800;
}
button:hover { background: #1d4ed8; }
button:disabled { cursor: wait; opacity: .65; }
button.secondary { min-height: 2.25rem; background: transparent; border-color: #6b7280; }
:focus-visible { outline: 3px solid #60a5fa; outline-offset: 2px; }
.status { min-height: 1.5rem; margin-top: 1.25rem; font-weight: 700; }
.field-help { margin: -.25rem 0 .25rem; color: #cbd5e1; font-size: .9rem; }
.result-item + .result-item { margin-top: .65rem; }
.success { color: #86efac; }
.error { color: #fca5a5; }
.warning { color: #fde68a; }
.filters { grid-template-columns: repeat(4, minmax(8rem, 1fr)); align-items: end; }
.filters label { grid-row: 1; }
.filters input, .filters select, .filters button { grid-row: 2; }
.table-wrap { overflow-x: auto; margin-top: 1rem; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .8rem; border-bottom: 1px solid #374151; text-align: left; white-space: nowrap; }
th { color: #cbd5e1; }
.details-link { margin-left: .65rem; font-size: .8rem; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 48rem) {
  main { margin-top: 1rem; }
  .filters { grid-template-columns: 1fr; }
  .filters label, .filters input, .filters select, .filters button { grid-row: auto; }
}
