:root {
  color-scheme: light;
  --bg: #e8f5e9;
  --bg-2: #f6fbf4;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: #ffffff;
  --line: rgba(64, 129, 79, 0.16);
  --line-strong: rgba(64, 129, 79, 0.26);
  --text: #15301c;
  --muted: #5f7d66;
  --accent: #f39200;
  --primary: #40814f;
  --primary-deep: #2f6d3d;
  --ok: #2d8a44;
  --redirect: #c88700;
  --protected: #7b5fd6;
  --down: #c93d3d;
  --shadow: 0 18px 48px rgba(33, 88, 43, 0.12);
  --shadow-soft: 0 10px 28px rgba(33, 88, 43, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(64, 129, 79, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(243, 146, 0, 0.12), transparent 24%),
    linear-gradient(180deg, #f5fbf2 0%, var(--bg) 100%);
  color: var(--text);
}

.page {
  width: min(1460px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
}

.hero,
.summary-grid,
.toolbar,
.legend,
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero {
  padding: 1.45rem 1.55rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: start;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(64, 129, 79, 0.07), transparent 45%),
    linear-gradient(315deg, rgba(243, 146, 0, 0.08), transparent 40%);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

h1 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(2.1rem, 3.8vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.lede {
  margin: 0.85rem 0 0;
  max-width: 72ch;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.02rem;
}

.run-box {
  min-width: 280px;
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 244, 0.98));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.run-label {
  font-size: 0.76rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.run-value {
  margin-top: 0.55rem;
  font-family: "Sora", sans-serif;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--text);
}

.sync-state {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.summary-grid {
  margin-top: 1rem;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.summary-card {
  border-radius: 20px;
  padding: 1rem 1.05rem;
  background: linear-gradient(180deg, var(--panel-strong), #f7fbf5);
  border: 1px solid rgba(64, 129, 79, 0.12);
  box-shadow: 0 8px 18px rgba(33, 88, 43, 0.05);
}

.summary-card span {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
}

.summary-card strong {
  display: block;
  margin-top: 0.35rem;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1;
}

.toolbar {
  margin-top: 1rem;
  padding: 1rem;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.9fr;
  gap: 0.8rem;
}

.toolbar label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.toolbar input,
.toolbar select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(64, 129, 79, 0.2);
  padding: 0.85rem 0.95rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.toolbar input:focus,
.toolbar select:focus {
  border-color: rgba(243, 146, 0, 0.55);
  box-shadow: 0 0 0 4px rgba(243, 146, 0, 0.14);
}

.legend {
  margin-top: 1rem;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.legend p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.78rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pill.ok {
  color: var(--ok);
  background: rgba(45, 138, 68, 0.1);
}

.pill.redirect {
  color: var(--redirect);
  background: rgba(200, 135, 0, 0.1);
}

.pill.protected {
  color: var(--protected);
  background: rgba(123, 95, 214, 0.12);
}

.pill.down {
  color: var(--down);
  background: rgba(201, 61, 61, 0.1);
}

.table-wrap {
  margin-top: 1rem;
  overflow: hidden;
}

.status-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.7);
}

.status-table th,
.status-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(64, 129, 79, 0.1);
}

.status-table thead th {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(232, 245, 233, 0.9), rgba(247, 251, 245, 0.95));
}

.service-name {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.service-type {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.status-table tbody tr {
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.status-table tbody tr:hover {
  background: rgba(64, 129, 79, 0.04);
}

@media (max-width: 1024px) {
  .hero,
  .summary-grid,
  .toolbar {
    grid-template-columns: 1fr;
  }

  .run-box {
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 1rem, 100%);
    padding-top: 0.75rem;
  }

  .hero,
  .summary-grid,
  .toolbar,
  .legend {
    border-radius: 20px;
  }

  .status-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .status-table th,
  .status-table td {
    padding: 0.82rem 0.72rem;
  }
}
