:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --card: #14171f;
  --border: #262a35;
  --text: #e6e8ec;
  --muted: #8b93a3;
  --up: #34d399;
  --down: #f87171;
  --unknown: #8b93a3;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

h1 {
  font-size: 1.5rem;
  margin: 0 0 24px;
  font-weight: 600;
}

.banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-radius: 10px;
  font-weight: 600;
  margin-bottom: 32px;
}

.banner.operational { background: rgba(52, 211, 153, 0.12); color: var(--up); }
.banner.down { background: rgba(248, 113, 113, 0.12); color: var(--down); }
.banner.unknown { background: rgba(139, 147, 163, 0.12); color: var(--unknown); }

.monitor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
}

.monitor-name { font-weight: 500; }

.monitor-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.85rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot.up { background: var(--up); box-shadow: 0 0 8px rgba(52, 211, 153, 0.6); }
.dot.down { background: var(--down); box-shadow: 0 0 8px rgba(248, 113, 113, 0.6); }
.dot.unknown { background: var(--unknown); }

.history {
  display: flex;
  gap: 2px;
  align-items: center;
}

.meta-uptime {
  display: inline-block;
  width: 42px;
  text-align: right;
}

.meta-time {
  display: inline-block;
  width: 40px;
  text-align: right;
}
.bar {
  width: 4px;
  height: 18px;
  border-radius: 1px;
  background: var(--border);
}
.bar.up { background: var(--up); }
.bar.down { background: var(--down); }

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 40px;
}
