:root {
  color-scheme: light;
  --ink: #17283e;
  --muted: #53667d;
  --line: #dce5ef;
  --paper: #f4f7fb;
  --surface: #fff;
  --navy: #132741;
  --blue: #2563b8;
  --teal: #147968;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-family: system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: var(--blue); text-underline-offset: .2em; }
a:focus-visible, input:focus-visible, select:focus-visible, .table-scroll:focus-visible {
  outline: 2px solid #337ed0;
  outline-offset: 3px;
}
[hidden] { display: none !important; }

.shell { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.skip { position: absolute; z-index: 1; padding: .6rem 1rem; background: var(--surface); }
.skip:not(:focus) { transform: translateY(-150%); }

.banner {
  color: #fff;
  background: radial-gradient(ellipse at 90% 100%, #245181, transparent 57%), var(--navy);
  padding-bottom: 5rem;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.2rem;
  border-bottom: 1px solid #ffffff38;
}
nav > div { display: flex; gap: clamp(.75rem, 3vw, 1.6rem); }
nav a { color: #d5e7fb; text-decoration: none; font-size: .9rem; }
nav a:hover { color: #fff; text-decoration: underline; }
nav .brand { color: #fff; font-weight: 750; }

.headline { padding-top: 2.5rem; }
.headline p { color: #d5e7fb; margin: 0; }
.headline .platform { color: #b9dfff; font-family: var(--mono); font-size: .82rem; }
.platform span { margin-inline: .25rem; }
h1 {
  margin: .55rem 0 .7rem;
  font-size: clamp(2.15rem, 5.3vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -.055em;
}

.overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
  margin-top: -2.6rem;
}
.metric, .queue {
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: var(--surface);
  box-shadow: 0 2px 4px #13274108;
}
.metric { padding: 1.1rem 1.2rem; }
.metric h2 { margin: 0; font-size: .9rem; }
.metric strong { display: block; margin: .25rem 0 .1rem; font-size: 2rem; letter-spacing: -.04em; }
.metric p, .queue-heading p, .method, .empty { color: var(--muted); font-size: .85rem; }
.metric p { margin: .45rem 0 0; }
meter { width: 100%; height: .65rem; appearance: none; border: 0; display: block; }
meter::-webkit-meter-bar { background: #e8eef6; border: 0; border-radius: .3rem; }
meter::-webkit-meter-optimum-value { background: var(--meter-color, var(--blue)); border-radius: .3rem; }
meter::-moz-meter-bar { background: var(--meter-color, var(--blue)); border-radius: .3rem; }
meter { background: #e8eef6; border-radius: .3rem; }
.metric:nth-child(2) { --meter-color: #5872bc; }
.metric:nth-child(3), .match { --meter-color: var(--teal); }

.queue { margin-block: 1.6rem 3rem; scroll-margin: 1rem; }
.queue-heading, .controls { padding-inline: 1.2rem; }
.queue-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: 1.1rem; }
.queue-heading h2 { margin: 0; font-size: 1.45rem; letter-spacing: -.025em; }
.queue-heading p { margin: .35rem 0 0; }
.count { flex-shrink: 0; }

.controls {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto;
  gap: .75rem;
  padding-block: .9rem;
}
.controls label { display: grid; gap: .25rem; font-size: .78rem; font-weight: 650; }
input, select {
  font: inherit;
  font-size: .9rem;
  font-weight: 400;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #bfccdc;
  border-radius: .4rem;
  padding: .55rem .65rem;
  min-width: 0;
}
input::placeholder { color: var(--muted); }

.table-scroll { overflow-x: auto; margin-top: .65rem; }
.controls:not([hidden]) + .table-scroll { margin-top: 0; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .85rem; }
th, td { border-block: 1px solid var(--line); padding: .6rem .8rem; }
th:first-child, td:first-child { padding-left: 1.2rem; }
th:last-child, td:last-child { padding-right: 1.2rem; }
thead { background: #edf3f9; color: #3e546c; font-size: .75rem; }
thead th { white-space: nowrap; }
tbody tr:hover { background: #f5f9fd; }
code, .unit, .rank { font-family: var(--mono); }
tbody th { font-weight: 650; }
tbody th code { overflow-wrap: anywhere; }
.unit { display: block; width: fit-content; margin-top: .2rem; font-size: .75rem; font-weight: 400; }
.rank, .address, .unscored { color: var(--muted); }
.size { text-align: right; }
thead th:nth-child(4) { text-align: right; }
.match { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-weight: 650; }
.match meter { min-width: 2.5rem; max-width: 5.3rem; height: .42rem; }
.score { width: 11rem; white-space: nowrap; }
.method, .empty { margin: 0; padding: .95rem 1.2rem; line-height: 1.5; }
.empty { border-bottom: 1px solid var(--line); }

@media (max-width: 42rem) {
  .shell { width: calc(100% - 1.5rem); }
  .headline { padding-top: 1.65rem; }
  .overview { grid-template-columns: 1fr; gap: .5rem; }
  .metric { padding: .75rem .9rem; }
  .metric strong { font-size: 1.6rem; }
  .queue-heading { flex-wrap: wrap; gap: .3rem; }
  .controls { grid-template-columns: 1fr; }
  tbody th { min-width: 12rem; }
}
