:root {
  color-scheme: light dark;
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  background-color: #0b1020;
  color: #f5f7ff;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #182244, #0b1020 55%);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: #9da8ff;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 4px 0 8px;
}

.subtitle {
  margin: 0;
  color: #c5c9ff;
}

.summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

.status-pill {
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  text-transform: capitalize;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
}

.timestamp {
  font-size: 0.85rem;
  color: #a5acd7;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.history-section {
  margin-top: 40px;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.section-header h2 {
  margin: 0;
  font-size: 1.4rem;
}

.section-header p {
  margin: 0;
  color: #a5acd7;
  font-size: 0.9rem;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.history-item {
  background: rgba(14, 18, 35, 0.9);
  border: 1px solid rgba(97, 110, 255, 0.18);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-title {
  font-weight: 600;
}

.history-bar {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 2px;
  height: 16px;
}

.history-segment {
  border-radius: 3px;
  opacity: 0.9;
}

.history-meta {
  font-size: 0.85rem;
  color: #a5acd7;
}

.service-card {
  background: rgba(14, 18, 35, 0.9);
  border: 1px solid rgba(97, 110, 255, 0.18);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 24px rgba(4, 6, 16, 0.45);
}

.service-card h2 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.service-meta {
  font-size: 0.85rem;
  color: #a5acd7;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-up {
  background: rgba(57, 214, 137, 0.15);
  color: #8af7bf;
  border: 1px solid rgba(57, 214, 137, 0.4);
}

.status-degraded {
  background: rgba(255, 195, 80, 0.15);
  color: #ffd78a;
  border: 1px solid rgba(255, 195, 80, 0.4);
}

.status-down {
  background: rgba(255, 95, 95, 0.15);
  color: #ff9d9d;
  border: 1px solid rgba(255, 95, 95, 0.4);
}

.status-unknown {
  background: rgba(150, 160, 200, 0.15);
  color: #c6cbe6;
  border: 1px solid rgba(150, 160, 200, 0.4);
}

.page-footer {
  margin-top: 32px;
  font-size: 0.85rem;
  color: #8a92c4;
}

@media (max-width: 640px) {
  .summary {
    text-align: left;
  }
}
