:root {
  --bg: #ffffff;
  --bg-card: #fafafa;
  --border: #ececec;
  --text-primary: #202125;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --operational: #10b981;
  --degraded: #f59e0b;
  --outage: #ef4444;
  --no-data: #e5e7eb;
}

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

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  font-size: 15px;
  min-height: 100vh;
}

.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 24px 0;
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo svg { display: block; height: 32px; width: auto; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

.nav-link .arrow { width: 16px; height: 16px; }

.nav-link .text {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.nav-link .text::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--text-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.nav-link:hover .text::after { transform: scaleX(1); }

.status-banner {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--operational);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 40px;
  transition: border-left-color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.status-banner.is-degraded {
  border-left-color: var(--degraded);
  background: #fefce8;
  border-color: #fde68a;
}

.status-banner.is-outage {
  border-left-color: var(--outage);
  background: #fef2f2;
  border-color: #fecaca;
}

.status-banner.is-error {
  border-left-color: var(--text-muted);
  background: #f9fafb;
  border-color: #e5e7eb;
}

.status-banner-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-banner-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--operational);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.status-banner-dot.is-degraded { background: var(--degraded); box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15); }
.status-banner-dot.is-outage { background: var(--outage); box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15); }
.status-banner-dot.is-error { background: var(--text-muted); box-shadow: 0 0 0 4px rgba(156, 163, 175, 0.15); }

.status-banner-text { font-size: 20px; font-weight: 600; }

.status-banner-meta {
  position: absolute;
  top: 50%;
  right: 28px;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--text-muted);
}

.status-banner-sub {
  margin-top: 8px;
  margin-left: 30px;
  font-size: 14px;
  color: var(--text-secondary);
}

.status-banner-sub:empty { display: none; }

.section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 16px;
  margin-top: 32px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 12px;
}

.service-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.service-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--operational);
  margin-right: 12px;
}

.service-dot.is-degraded { background: var(--degraded); }
.service-dot.is-outage { background: var(--outage); }
.service-dot.is-unknown { background: var(--text-muted); }

.service-name {
  font-weight: 600;
  font-size: 15px;
  flex: 1;
  min-width: 0;
  word-break: break-all;
  line-height: 1.4;
}

.pct { color: var(--operational); font-weight: 500; }
.pct.is-degraded { color: var(--degraded); }
.pct.is-outage { color: var(--outage); }

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

.uptime-bar {
  flex: 1;
  background: var(--operational);
  border-radius: 2px;
  height: 100%;
  opacity: 0.85;
  transition: opacity 0.15s;
}

.uptime-bar:hover { opacity: 1; }
.uptime-bar.degraded { background: var(--degraded); }
.uptime-bar.outage { background: var(--outage); }
.uptime-bar.no-data { background: var(--no-data); }

.uptime-scale {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}

.uptime-scale-edge { flex-shrink: 0; }

.uptime-scale-mid { flex-shrink: 0; white-space: nowrap; }

.uptime-scale-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  min-width: 12px;
}

.service-placeholder {
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  padding: 32px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 12px;
}

.incidents { margin-top: 16px; }

.incident-month { margin-bottom: 36px; }

.incident-month-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.incident-day { margin-bottom: 22px; }
.incident-day:last-child { margin-bottom: 0; }

.incident-day-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.incident-item {
  padding: 4px 0 4px 16px;
  border-left: 2px solid var(--degraded);
  margin-bottom: 14px;
}

.incident-item:last-child { margin-bottom: 0; }

.incident-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--degraded);
  margin-bottom: 5px;
}

.incident-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

.incident-empty {
  color: var(--text-muted);
  font-size: 13px;
  padding: 8px 0 0;
}

.footer {
  max-width: 880px;
  margin: 56px auto 0;
  padding: 0 24px 32px;
  color: var(--text-secondary);
}

.footer-inner {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    gap: 24px;
  }
}

.footer-inner a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-inner a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .container { padding: 24px 16px 0; }
  .header { margin-bottom: 24px; }
  .status-banner { padding: 20px; }
  .status-banner-text { font-size: 18px; }
  .status-banner-meta {
    position: static;
    transform: none;
    display: block;
    margin: 10px 0 0 30px;
    font-size: 11px;
  }
  .status-banner-sub { font-size: 13px; }
  .service-card { padding: 16px 18px; }
  .service-name { font-size: 13px; }
  .logo svg { height: 26px; }
  .uptime-scale { font-size: 10px; gap: 8px; }
  .nav-link { font-size: 13px; }
  body { font-size: 14px; }
}
