:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17212b;
  background: #f3f6f9;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

button,
a {
  font: inherit;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.topbar,
.topbar-actions,
.section-heading,
.cards,
.columns {
  display: flex;
}

.topbar,
.section-heading {
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar {
  margin-bottom: 32px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 4px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.subtitle,
.muted {
  color: #637181;
}

.subtitle {
  margin-bottom: 0;
}

.eyebrow {
  margin-bottom: 7px;
  color: #536f91;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.11em;
}

.topbar-actions {
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.updated-at {
  color: #637181;
  font-size: 0.84rem;
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 0 14px;
  text-decoration: none;
  cursor: pointer;
}

.button:focus-visible {
  outline: 3px solid #6aa9ee;
  outline-offset: 2px;
}

.button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.button-secondary {
  color: #fff;
  background: #245b8f;
}

.button-quiet {
  border-color: #d7dfe7;
  color: #344557;
  background: #fff;
}

.summary {
  margin-bottom: 24px;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading .muted {
  margin-bottom: 0;
  font-size: 0.85rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.card,
.panel {
  border: 1px solid #e1e7ed;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 12px rgb(22 46 72 / 4%);
}

.card {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
}

.card span {
  color: #637181;
  font-size: 0.9rem;
}

.card strong {
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.panel {
  min-width: 0;
  padding: 22px;
}

.summary + .panel {
  margin-bottom: 18px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th,
td {
  border-bottom: 1px solid #edf0f3;
  padding: 12px 10px;
  white-space: nowrap;
}

th {
  color: #637181;
  font-size: 0.8rem;
  font-weight: 650;
}

td {
  font-variant-numeric: tabular-nums;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.count-badge {
  display: inline-flex;
  min-width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 9px;
  color: #245b8f;
  background: #eaf3fb;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.record-list {
  display: grid;
  gap: 10px;
}

.record {
  min-width: 0;
  border: 1px solid #edf0f3;
  border-radius: 10px;
  padding: 12px 14px;
}

.record strong {
  display: block;
  overflow-wrap: anywhere;
}

.record p {
  margin: 6px 0;
  color: #495969;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.record time {
  color: #778492;
  font-size: 0.78rem;
}

.notice {
  margin: 20px 0;
  border: 1px solid #dce5ed;
  border-radius: 10px;
  padding: 14px 16px;
  color: #405366;
  background: #fff;
}

.notice-error {
  border-color: #f0c7c7;
  color: #8c2525;
  background: #fff6f6;
}

.footnote {
  margin: 14px 0 0;
  font-size: 0.82rem;
}

[hidden] {
  display: none !important;
}

@media (max-width: 850px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .page {
    width: min(100% - 22px, 1180px);
    padding-top: 24px;
  }

  .topbar,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .card {
    min-height: 98px;
    padding: 14px;
  }

  .card strong {
    font-size: 1.65rem;
  }

  .columns {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 17px;
  }
}
