* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: #1f2933;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

button,
h1,
h2,
h3,
p {
  margin: 0;
  font: inherit;
}

.top-banner {
  width: 100%;
  padding: 0;
  background: #061e0e;
}

.banner-card {
  position: relative;
  width: 100%;
  height: 240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #061e0e 0%, #0a2e16 100%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.32);
}

.banner-glow {
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
}

.banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-70px);
}

.banner-logo {
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
  margin-right: 22px;
  transform: translateX(-16px);
}

.banner-divider {
  width: 4px;
  height: 100px;
  margin: 0 28px 0 0;
  background: rgba(255, 255, 255, 0.9);
}

.banner-text {
  color: #fff;
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  font-size: 58px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.banner-text span {
  color: #22c55e;
}

.page {
  width: min(850px, calc(100% - 24px));
  margin: 56px auto;
}

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

.header h1 {
  font-size: 26px;
  font-weight: 400;
}

.last-updated {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
}

.overall,
.component-status {
  color: #009a22;
  font-size: 14px;
}

.overall.degraded,
.component-status.degraded {
  color: #b7791f;
}

.overall.offline,
.component-status.offline {
  color: #c53030;
}

.components {
  border: 1px solid #ddd;
  border-bottom: 0;
}

.component {
  padding: 0 20px 18px;
  border-bottom: 1px solid #ddd;
}

.component-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0 6px;
}

.component-name {
  color: #0f172a;
  font-size: 16px;
}

.help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  color: #0f172a;
  font-size: 12px;
}

.bar-line {
  display: grid;
  grid-template-columns: repeat(30, minmax(2px, 1fr));
  gap: 4px;
  height: 34px;
}

.bar {
  min-width: 2px;
  height: 34px;
  padding: 0;
  border: 0;
  background: #d9d9d9;
  cursor: default;
}

.bar.online {
  background: #2fac66;
}

.bar.degraded {
  background: #d1a128;
}

.bar.offline {
  background: #d94848;
}

.uptime-row {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  color: #64748b;
  font-size: 14px;
}

.uptime-row span:nth-child(2),
.uptime-row span:nth-child(4) {
  height: 1px;
  background: #94a3b8;
}

.uptime-row strong {
  font-weight: 400;
}

.incidents {
  width: min(850px, 100%);
  margin: 72px auto 0;
}

.incidents h2 {
  margin-bottom: 28px;
  color: #111827;
  font-size: 16px;
  text-transform: uppercase;
}

.incident-day {
  margin-bottom: 34px;
}

.incident-day h3 {
  padding-bottom: 4px;
  border-bottom: 1px solid #ddd;
  color: #111827;
  font-size: 22px;
  font-weight: 400;
}

.incident-day > p {
  margin-top: 10px;
  color: #64748b;
}

.incident {
  margin-top: 12px;
}

.incident summary {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #f04f23;
  cursor: pointer;
  font-size: 20px;
  list-style: none;
}

.incident summary::-webkit-details-marker {
  display: none;
}

.plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid #cbd5e1;
  color: #64748b;
  font-size: 14px;
}

.incident-body {
  margin-top: 12px;
}

.incident-body p {
  margin-top: 8px;
}

.incident-body time {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 14px;
}

.tooltip {
  position: fixed;
  z-index: 10;
  transform: translate(-50%, -100%);
  max-width: 320px;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  background: #fff;
  color: #111827;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

@media (max-width: 760px) {
  .page {
    width: 100%;
    margin: 18px auto;
  }

  .header,
  .incidents {
    padding: 0 12px;
  }

  .components {
    border-left: 0;
    border-right: 0;
  }

  .bar-line {
    gap: 2px;
  }

  .banner-card {
    width: 100%;
  }

  .banner-content {
    transform: translateX(-20px) scale(0.72);
  }

  .banner-card {
    height: 180px;
  }

  .uptime-row {
    gap: 8px;
    font-size: 12px;
  }
}
