:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  background: #10141c;
  color: #f5f7fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: radial-gradient(circle at top right, #263651, #10141c 48%);
}

.dashboard {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 28px;
}

.header,
.section-heading,
.stats {
  display: flex;
  gap: 24px;
}

.header,
.section-heading {
  align-items: flex-start;
  justify-content: space-between;
}

.header {
  margin-bottom: 36px;
}

.eyebrow,
.label,
.support {
  margin: 0;
  color: #9daac1;
}

.eyebrow,
.label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 6px 0 0;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1;
}

h2 {
  font-size: 1.8rem;
}

.connection {
  margin: 8px 0 0;
  color: #f0bd72;
  font-weight: 700;
}

.connection.online {
  color: #6de0a2;
}

.connection.offline {
  color: #ff8f8f;
}

.stats {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  margin-bottom: 24px;
}

.card {
  padding: 24px;
  border: 1px solid #31405a;
  border-radius: 18px;
  background: rgba(25, 34, 49, 0.9);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.highlight {
  background: linear-gradient(135deg, #324c7c, #233657);
}

.metric {
  margin: 10px 0 4px;
  font-size: clamp(2.6rem, 6vw, 4.7rem);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.support {
  font-size: 0.9rem;
}

.rounds-card {
  padding: 28px;
}

.sightings-card {
  margin-top: 24px;
  padding: 28px;
}

.sightings {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.sighting {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid #31405a;
}

.sighting:last-child {
  border-bottom: none;
}

.sighting-label {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sighting-time {
  margin-left: auto;
  color: #6de0a2;
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
}

.sighting-meta {
  color: #9daac1;
  font-size: 0.9rem;
}

.section-heading {
  margin-bottom: 20px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th,
td {
  padding: 15px 12px;
  border-bottom: 1px solid #31405a;
}

th {
  color: #9daac1;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.empty {
  color: #9daac1;
  text-align: center;
}

.status {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.status.success {
  color: #9ff2c1;
  background: rgba(72, 190, 125, 0.18);
}

.status.failure {
  color: #ffb2b2;
  background: rgba(220, 78, 78, 0.18);
}

footer {
  margin-top: 18px;
  color: #9daac1;
  font-size: 0.82rem;
  text-align: center;
}

@media (max-width: 720px) {
  .dashboard {
    width: min(100% - 28px, 560px);
    padding-top: 28px;
  }

  .header,
  .section-heading {
    display: block;
  }

  .connection {
    margin-top: 18px;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}
