:root {
  color-scheme: light;
  --bg: #f3efe7;
  --panel: rgba(255, 252, 247, 0.9);
  --panel-strong: #fffdf8;
  --ink: #182126;
  --muted: #5f6b73;
  --line: rgba(24, 33, 38, 0.12);
  --ok: #0d7a5f;
  --warn: #b96d11;
  --bad: #ad2f45;
  --shadow: 0 20px 45px rgba(50, 42, 27, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(18, 122, 95, 0.15), transparent 28rem),
    radial-gradient(circle at top right, rgba(218, 154, 69, 0.18), transparent 24rem),
    linear-gradient(180deg, #f8f4ec 0%, var(--bg) 100%);
}

.shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.hero-copy {
  padding-top: 0.25rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 14ch;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: clamp(1.8rem, 3.2vw, 2.75rem);
  line-height: 1;
}

.hero-subtitle {
  max-width: 38rem;
  margin-top: 0.55rem;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--muted);
}

.hero-meta {
  min-width: 18rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-meta p + p {
  margin-top: 0.4rem;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.summary-card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
}

.summary-card {
  padding: 1rem 1.1rem;
}

.summary-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.summary-value {
  font-size: 1.8rem;
}

.panel {
  overflow: hidden;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.2rem 0;
}

.panel-header p {
  color: var(--muted);
  margin-top: 0.3rem;
}

.refresh-button {
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font: inherit;
  color: #fff;
  background: var(--ink);
  cursor: pointer;
}

.table-wrap {
  overflow-x: auto;
  padding: 1rem 1.2rem 1.2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.9rem 0.65rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

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

th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.service-cell strong,
.endpoint-card strong,
.dns-state strong {
  display: block;
  margin-bottom: 0.2rem;
}

.service-cell span,
.endpoint-card span,
.dns-state span,
.timestamp,
.subtle {
  color: var(--muted);
  font-size: 0.92rem;
}

.timestamp-primary {
  margin-bottom: 0.45rem;
}

.endpoint-card,
.dns-state {
  display: grid;
  gap: 0.3rem;
}

.endpoint-url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge.ok {
  background: rgba(13, 122, 95, 0.12);
  color: var(--ok);
}

.badge.bad {
  background: rgba(173, 47, 69, 0.12);
  color: var(--bad);
}

.badge.warn {
  background: rgba(185, 109, 17, 0.14);
  color: var(--warn);
}

.empty-state {
  padding: 1.5rem 0.65rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero,
  .panel-header {
    flex-direction: column;
  }

  .hero-meta {
    min-width: 0;
    width: 100%;
  }

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