:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  color: #dfe8f2;
  background: #0a121c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 1500px;
  margin: auto;
  padding: 32px 26px 60px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 26px;
}
h1 {
  font-size: 32px;
  margin: 12px 0 8px;
  letter-spacing: -1px;
}
p {
  font-size: 14px;
  line-height: 1.6;
  color: #a9bacb;
  margin: 8px 0;
}
a {
  color: #d5edab;
  text-decoration: none;
}
.back {
  font-size: 13px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 14px;
  text-align: left;
  border: 1px solid #ffffff18;
  border-radius: 12px;
  background: #12202f;
  color: #dfe8f2;
  cursor: pointer;
}
.metric strong {
  font-size: 25px;
  font-variant-numeric: tabular-nums;
}
.metric span {
  font-size: 11px;
  color: #adc0d3;
}
.scope {
  max-width: 1150px;
  padding: 14px 0 20px;
}
.filters {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 18px;
  background: #12202f;
  border-radius: 12px;
}
.filters label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  color: #afc0d2;
}
.filters .search {
  flex: 1;
  min-width: 180px;
}
select,
input,
.button {
  padding: 10px 12px;
  border: 1px solid #ffffff20;
  border-radius: 8px;
  background: #0d1723;
  color: #dfe8f2;
  font: inherit;
  font-size: 12px;
  min-height: 39px;
}
select {
  max-width: 250px;
}
input {
  width: 100%;
}
.button {
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.button:disabled {
  opacity: 0.4;
  cursor: default;
}
button:hover:not(:disabled),
a.button:hover {
  border-color: #d5edab80;
}
.table-wrap {
  overflow: auto;
  border: 1px solid #ffffff14;
  border-radius: 10px;
  margin: 14px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  text-align: left;
  font-weight: 500;
  color: #9fb2c7;
  background: #12202f;
  padding: 13px 14px;
  white-space: nowrap;
}
td {
  padding: 12px 14px;
  border-top: 1px solid #ffffff10;
  vertical-align: top;
}
td small {
  display: block;
  color: #859bb3;
  margin-top: 5px;
  font-size: 11px;
}
td.name {
  min-width: 180px;
}
td.reason {
  min-width: 230px;
  max-width: 500px;
  color: #adc0d3;
  line-height: 1.5;
}
.country-link {
  color: #dfe8f2;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
  padding: 0;
}
.country-link:hover {
  color: #d5edab;
}
.badge {
  display: inline-block;
  font-size: 10px;
  line-height: 1.3;
  padding: 5px 7px;
  border-radius: 6px;
  white-space: nowrap;
  background: #243349;
  color: #b4c4d7;
}
.verified {
  background: #1e3c2d;
  color: #b6e5ad;
}
.missing {
  background: #4d3720;
  color: #edc797;
}
.mismatch,
.invalid {
  background: #482c37;
  color: #f0b0bd;
}
.lookup_failed {
  background: #403327;
  color: #edd1aa;
}
.num {
  font-variant-numeric: tabular-nums;
}
.pager {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
  font-size: 12px;
  color: #adc0d3;
}
details {
  border-top: 1px solid #ffffff16;
  margin-top: 24px;
  padding-top: 18px;
}
summary {
  font-size: 13px;
  cursor: pointer;
}
details p {
  max-width: 1000px;
}
.source-item {
  font-size: 12px;
  padding: 10px 0;
  border-top: 1px solid #ffffff0a;
}
.source-item:first-child {
  margin-top: 12px;
}
:focus-visible {
  outline: 2px solid #d5edab;
  outline-offset: 3px;
}
@media (max-width: 800px) {
  main {
    padding: 22px 14px;
  }
  header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .metric {
    padding: 13px 10px;
  }
  .metric strong {
    font-size: 21px;
  }
  .filters {
    gap: 12px;
    padding: 14px;
  }
  .filters label {
    flex: 1;
    min-width: 140px;
  }
  select {
    max-width: 100%;
  }
  .filters .search {
    flex-basis: 100%;
  }
  th,
  td {
    padding: 11px;
  }
  .scope {
    font-size: 12px;
  }
}
