:root {
  color-scheme: light;
  --bg: #f6f7f3;
  --card: #ffffff;
  --text: #17211e;
  --muted: #68736f;
  --line: #dce3de;
  --green: #13866f;
  --red: #c6483f;
  --amber: #b77812;
  --shadow: 0 18px 45px rgba(23, 33, 30, 0.08);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(19, 134, 111, 0.12), transparent 32rem),
    var(--bg);
  color: var(--text);
}

button {
  font: inherit;
  cursor: pointer;
}

.page {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.hero p,
.hero h1 {
  margin: 0;
}

.hero p {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 8px;
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.hero span {
  display: block;
  max-width: 520px;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.sites {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.card {
  min-height: 168px;
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(23, 33, 30, 0.05);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #e9f3ef;
  color: #12332e;
  font-weight: 800;
}

.title {
  min-width: 0;
}

.title a {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.title span {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef2ef;
  color: var(--muted);
  font-size: 13px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ca7a3;
}

.status.ok {
  background: #dff3ed;
  color: var(--green);
}

.status.ok .dot {
  background: var(--green);
}

.status.bad {
  background: #fae5e1;
  color: var(--red);
}

.status.bad .dot {
  background: var(--red);
}

.status.testing {
  background: #fff0cd;
  color: var(--amber);
}

.status.testing .dot {
  background: var(--amber);
  animation: pulse 0.85s ease-in-out infinite alternate;
}

@keyframes pulse {
  from {
    opacity: 0.45;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1.1);
  }
}

@media (max-width: 680px) {
  .page {
    padding: 28px 0;
  }

  .hero {
    align-items: stretch;
    flex-direction: column;
  }

}
