:root {
  --bg: #0b0b0f;
  --card: #16171d;
  --card-2: #1c1d24;
  --border: rgba(255,255,255,0.07);
  --text: #f2f3f5;
  --dim: #9a9ca3;
  --violet: #8a5cf6;
  --violet-2: #7c3aed;
  --green: #23a55a;
  --red: #f23f42;
  --amber: #f0b232;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { overflow-x: clip; scroll-behavior: smooth; }
body { overflow-x: clip; max-width: 100vw; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(11,11,15,0.85);
  backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
}

.logo-wrap { display: flex; align-items: center; gap: 11px; }
.logo-img { width: 38px; height: 38px; border-radius: 10px; }
.logo { font-weight: 800; font-size: 21px; color: var(--text); }

.nav-back {
  font-size: 14.5px;
  color: var(--dim);
  font-weight: 500;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--text); }

.page-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 76px 40px 110px;
}

.page-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--violet);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.page-title {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 40px;
  line-height: 1.12;
}

.status-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 32px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(35,165,90,0.16);
}

.status-dot.down {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(242,63,66,0.16);
}

.status-banner-text {
  font-size: 17px;
  font-weight: 700;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 18px;
}

.service-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.service-name {
  font-size: 16px;
  font-weight: 700;
}

.service-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}

.service-badge.down { color: var(--red); }
.service-badge.unknown { color: var(--dim); }

.status-dot.unknown {
  background: var(--dim);
  box-shadow: 0 0 0 4px rgba(154,156,163,0.16);
}

.service-badge .status-dot { width: 8px; height: 8px; box-shadow: none; }

.service-uptime {
  font-size: 13.5px;
  color: var(--dim);
  margin-bottom: 16px;
}

.uptime-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 34px;
}

.uptime-bar {
  flex: 1;
  height: 100%;
  border-radius: 2px;
  background: var(--green);
  cursor: default;
}

.uptime-bar.partial { background: var(--amber); }
.uptime-bar.down { background: var(--red); }
.uptime-bar.unmonitored { background: var(--border); }

.uptime-bars-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--dim);
}

.incidents-title {
  font-size: 19px;
  font-weight: 700;
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.incident-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.incident-service {
  color: var(--dim);
  font-weight: 600;
  flex-shrink: 0;
}

.incident-range { color: var(--text); }

.incident-reason {
  color: var(--dim);
  font-size: 12.5px;
}

.incident-duration {
  color: var(--dim);
  flex-shrink: 0;
  text-align: right;
}

.incident-duration.ongoing { color: var(--red); }

.empty-note {
  color: var(--dim);
  font-size: 14px;
  padding: 12px 0;
}

.page-footnote {
  color: var(--dim);
  font-size: 13px;
  margin-top: 40px;
}

.footer { border-top: 1px solid var(--border); padding: 44px 0; }

.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links { display: flex; align-items: center; gap: 30px; font-size: 14.5px; color: var(--dim); }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 13px; color: var(--dim); }
