:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f6f8;
  color: #14171c;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: #4b5563; text-decoration: none; }
a:hover { text-decoration: underline; }

.shell {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 80px;
}

.header, .service-header, .section-title, .location-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #737b88;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(30px, 5vw, 46px); letter-spacing: -0.04em; }
h2 { margin-bottom: 6px; font-size: 24px; letter-spacing: -0.02em; }
h3 { margin-bottom: 0; font-size: 15px; }

.updated { margin: 14px 0 30px; color: #737b88; font-size: 13px; }

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: #e7e9ed;
  color: #505866;
}

.status-badge.operational, .status-inline.up { background: #e7f7ed; color: #16763a; }
.status-badge.degraded { background: #fff4d6; color: #946600; }
.status-badge.outage, .status-inline.down { background: #fde8e8; color: #b42318; }
.status-badge.unknown, .status-inline.unknown { background: #eceef1; color: #667085; }

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.tab {
  border: 1px solid #d9dde4;
  background: #fff;
  color: #555e6b;
  padding: 9px 14px;
  border-radius: 9px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}
.tab.active { color: #111827; border-color: #8c96a6; box-shadow: 0 1px 2px rgb(16 24 40 / 8%); }

.panel {
  background: #fff;
  border: 1px solid #e2e5ea;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 30px rgb(16 24 40 / 5%);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.metric {
  padding: 16px;
  border-radius: 12px;
  background: #f7f8fa;
}
.metric span { display: block; margin-bottom: 7px; color: #737b88; font-size: 12px; }
.metric strong { font-size: 20px; }

.section { padding-top: 24px; margin-top: 24px; border-top: 1px solid #eceef2; }
.section-title { margin-bottom: 14px; }
.section-title span { color: #838b97; font-size: 12px; }

.locations { display: grid; gap: 8px; }
.location-row { padding: 11px 0; font-size: 13px; }
.status-inline { display: inline-flex; gap: 7px; align-items: center; padding: 5px 9px; border-radius: 999px; font-weight: 650; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.history { display: grid; grid-template-columns: repeat(auto-fit, minmax(4px, 1fr)); gap: 4px; height: 44px; align-items: stretch; }
.history-bar { border-radius: 3px; background: #d8dce2; }
.history-bar.operational { background: #31a05d; }
.history-bar.degraded { background: #d7a41c; }
.history-bar.outage { background: #d34d45; }
.history-bar.unknown { background: #d8dce2; }
.history-scale { display: flex; justify-content: space-between; margin-top: 8px; color: #9097a2; font-size: 11px; }

.empty { padding: 36px 12px; text-align: center; color: #737b88; }

@media (max-width: 640px) {
  .shell { padding-top: 30px; }
  .header, .service-header { align-items: flex-start; }
  .header { flex-direction: column; }
  .panel { padding: 20px; }
  .metrics { grid-template-columns: 1fr; }
  .service-header { flex-direction: column; }
}
