:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --panel: #ffffff;
  --ink: #131820;
  --muted: #627083;
  --line: #dce4ee;
  --blue: #0a52ef;
  --green: #12a86b;
  --soft-blue: #eaf1ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 28px;
}

.hero,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(17, 32, 61, 0.06);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.7fr);
  gap: 28px;
  padding: 32px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: 44px;
  line-height: 1.05;
  margin-bottom: 14px;
}

h2 {
  font-size: 24px;
  margin-bottom: 0;
}

.lede {
  max-width: 780px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(180deg, #fff, #f9fbff);
}

.stat strong {
  display: block;
  font-size: 34px;
  color: var(--blue);
}

.stat span,
td span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.panel {
  padding: 24px;
  margin-bottom: 22px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 12px;
  overflow-x: auto;
}

.service {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  min-height: 250px;
}

.service-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.rank {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}

.service h3 {
  font-size: 17px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.service p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  min-height: 54px;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.service code {
  display: block;
  padding: 10px;
  border-radius: 6px;
  background: #f3f6fa;
  color: #273142;
  overflow-wrap: anywhere;
}

.matches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.matches span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f5f7fa;
  color: #48566a;
  font-size: 11px;
  font-weight: 700;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

input,
select {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 0 11px;
  font: inherit;
  font-size: 13px;
}

input {
  width: min(360px, 42vw);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  position: sticky;
  top: 0;
  background: #f9fbff;
  color: #3b4657;
  font-size: 12px;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

td:first-child {
  width: 28%;
}

td code {
  color: #4d5b70;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .shell {
    padding: 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  h1 {
    font-size: 34px;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  input {
    width: 100%;
  }
}
