:root {
  color-scheme: light;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #333840;
  background: #f9fafb;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: #1a62c9;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.masthead,
main,
footer {
  width: min(100% - 48px, 980px);
  margin: auto;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 13px;
}
.brand {
  color: #3e83fc;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1.5px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand span {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  border-left: 1px solid #e0e0e0;
  padding-left: 24px;
  color: #666666;
}
.intro {
  margin: 58px 0 30px;
}
.eyebrow {
  color: #1a62c9;
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 700;
}
h1 {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 600;
  letter-spacing: -1.8px;
  margin: 12px 0;
}
.intro > p:last-child,
.muted {
  color: #666666;
  font-size: 14px;
}
.summary {
  display: flex;
  gap: 18px;
  align-items: center;
  border: 1px solid #e0e0e0;
  padding: 23px 26px;
  border-radius: 12px;
  background: #fff;
  margin-bottom: 40px;
}
.summary h2 {
  font-size: 17px;
  margin: 0 0 6px;
  font-weight: 600;
}
.summary p {
  font-size: 12px;
  color: #666666;
  margin: 0;
}
.signal {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #8c8c8c;
  box-shadow: 0 0 0 6px #f5f5f5;
  flex-shrink: 0;
}
.summary.up .signal {
  background: #228967;
  box-shadow: 0 0 0 6px #e9f5ef;
}
.summary.down .signal {
  background: #c54c59;
  box-shadow: 0 0 0 6px #f9e9ed;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 16px;
}
.section-heading h2 {
  font-size: 17px;
  margin: 0;
  font-weight: 600;
}
.section-heading > span {
  font-size: 11px;
  color: #666666;
}
#regions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.region {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px;
}
.region-header,
.component-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.region-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.region-link {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.region h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}
.badge {
  border-radius: 20px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  background: #f5f5f5;
  color: #666666;
}
.badge.up {
  color: #1e7b5c;
  background: #eaf6f0;
}
.badge.down {
  color: #a43e4a;
  background: #fcecef;
}
.component {
  border-top: 1px solid #edf0f3;
  margin-top: 23px;
  padding-top: 20px;
}
.component h4 {
  font-size: 13px;
  font-weight: 500;
  margin: 0;
}
.history {
  display: flex;
  gap: 2px;
  height: 26px;
  margin-top: 17px;
}
.bar {
  flex: 1;
  min-width: 0;
  border-radius: 2px;
}
.up.bar,
.up.swatch {
  background: #50aa89;
}
.down.bar,
.down.swatch {
  background: #d97782;
}
.partial.bar,
.partial.swatch {
  background: #cfb477;
}
.unknown.bar,
.unknown.swatch {
  background: repeating-linear-gradient(135deg, #e0e0e0, #e0e0e0 2px, #f5f5f5 2px, #f5f5f5 4px);
}
.history-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #666666;
  margin-top: 7px;
}
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 19px;
}
.metric strong {
  display: block;
  font-size: 19px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.metric span,
.checked {
  display: block;
  font-size: 10px;
  color: #666666;
  line-height: 1.7;
}
.checked {
  margin: 14px 0 0;
}
.legend {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 10px;
  color: #666666;
}
.legend > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.swatch {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.incident-section {
  margin-top: 42px;
}
.incident,
.notice {
  padding: 18px 22px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  margin: 12px 0;
  background: #fff;
}
.incident h3,
.notice h3 {
  font-size: 13px;
  margin: 0 0 7px;
  font-weight: 600;
}
.incident p,
.notice p {
  font-size: 12px;
  color: #666666;
  margin: 5px 0;
  line-height: 1.6;
  white-space: pre-line;
}
details {
  margin: 38px 0;
  padding: 20px 0;
  border-top: 1px solid #e0e0e0;
  color: #666666;
  font-size: 12px;
  line-height: 1.8;
}
summary {
  cursor: pointer;
  color: #333840;
  font-weight: 600;
}
footer {
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  padding: 24px 0 32px;
  color: #666666;
  font-size: 11px;
}
@media (max-width: 720px) {
  #regions {
    grid-template-columns: 1fr;
  }
  .intro {
    margin-top: 36px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .brand {
    gap: 12px;
  }
  .brand span {
    padding-left: 12px;
  }
  .masthead,
  main,
  footer {
    width: calc(100% - 32px);
  }
  .legend {
    justify-content: flex-start;
  }
}

.brand img {
  display: block;
  width: 142px;
  height: auto;
}
.latency-section {
  margin-top: 42px;
}
.range-control {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #eef4ff;
  border-radius: 8px;
}
.range-control button {
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #333840;
  padding: 7px 16px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.range-control button[aria-pressed='true'] {
  background: #3e83fc;
  color: white;
}
.range-control button:focus-visible {
  outline: 2px solid #1a62c9;
  outline-offset: 3px;
}
#latency-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.latency-card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: white;
  padding: 22px;
  min-width: 0;
}
.latency-card h3 {
  font-size: 15px;
  margin: 0 0 20px;
}
.latency-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}
.latency-stat strong {
  display: block;
  font-size: 21px;
  font-weight: 600;
  color: #333840;
}
.latency-stat span,
.latency-note,
.latency-caption {
  font-size: 11px;
  color: #666666;
  line-height: 1.6;
}
.latency-chart {
  width: 100%;
  height: auto;
  display: block;
}
.chart-grid {
  stroke: #e9edf3;
  stroke-width: 1;
}
.chart-label {
  fill: #666666;
  font-size: 10px;
}
.chart-line {
  fill: none;
  stroke: #3e83fc;
  stroke-width: 2;
  stroke-linejoin: round;
}
.chart-point {
  fill: #3e83fc;
}
.latency-empty {
  min-height: 154px;
  display: grid;
  place-content: center;
  text-align: center;
  background: #f9fafb;
  border-radius: 6px;
  color: #666666;
  font-size: 12px;
}
@media (max-width: 720px) {
  #latency-charts {
    grid-template-columns: 1fr;
  }
  .brand img {
    width: 110px;
  }
}
