:root {
  --bg: #e4eef4;
  --bg-deep: #d5e4ed;
  --ink: #142433;
  --muted: #5c7083;
  --line: rgba(20, 56, 78, 0.12);
  --accent: #0c7a92;
  --accent-dark: #075a6c;
  --surface: rgba(255, 255, 255, 0.92);
  --radius: 14px;
  --font-display: "Sora", "Be Vietnam Pro", sans-serif;
  --font-body: "Be Vietnam Pro", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 8% -8%, rgba(120, 190, 210, 0.45) 0%, transparent 55%),
    linear-gradient(165deg, #eaf3f7 0%, var(--bg) 42%, var(--bg-deep) 100%);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

.page {
  width: min(1080px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
}

.hero {
  margin-bottom: 1.1rem;
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4.5vw, 2rem);
  letter-spacing: -0.03em;
}

.lede {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(20, 52, 74, 0.06);
  padding: 0.95rem 1rem 1.05rem;
  backdrop-filter: blur(10px);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.55rem;
}

.toolbar select,
.toolbar input[type="search"] {
  font: inherit;
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: #fff;
  color: var(--ink);
  min-width: 0;
  width: 100%;
}

.toolbar select {
  flex: 1 1 100%;
}

.toolbar input[type="search"] {
  flex: 1 1 100%;
}

.count {
  margin: 0;
  width: 100%;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.meta {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.table-wrap {
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  padding: 0.7rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  word-break: break-word;
}

.data-table th {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(12, 122, 146, 0.04);
  position: sticky;
  top: 0;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.ip {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
}

.ip:hover {
  text-decoration: underline;
}

.muted {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Mobile: stacked cards instead of cramped columns */
@media (max-width: 720px) {
  .page {
    width: calc(100% - 1rem);
    padding: 1rem 0 2rem;
  }

  .panel {
    padding: 0.75rem;
    border-radius: 12px;
  }

  .table-wrap {
    border: 0;
    background: transparent;
    border-radius: 0;
  }

  .data-table thead {
    display: none;
  }

  .data-table,
  .data-table tbody {
    display: block;
  }

  .data-table tbody tr {
    display: block;
    margin-bottom: 0.65rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(20, 52, 74, 0.04);
  }

  .data-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .data-table td {
    display: grid;
    grid-template-columns: 5.25rem minmax(0, 1fr);
    gap: 0.35rem 0.65rem;
    padding: 0.35rem 0;
    border-bottom: 0;
    align-items: baseline;
  }

  .data-table td::before {
    content: attr(data-label);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .data-table td[data-label="Name"] {
    font-weight: 600;
    font-size: 1.02rem;
  }

  .data-table td.muted {
    display: block;
    text-align: center;
    padding: 1rem 0.5rem;
  }

  .data-table td.muted::before {
    content: none;
  }
}

@media (min-width: 721px) {
  .toolbar select {
    flex: 0 1 220px;
    width: auto;
    max-width: 260px;
  }

  .toolbar input[type="search"] {
    flex: 1 1 220px;
    width: auto;
  }

  .count {
    width: auto;
    margin-left: auto;
  }

  .table-wrap {
    overflow: auto;
  }

  .data-table tbody tr:hover td {
    background: rgba(12, 122, 146, 0.04);
  }
}
