:root {
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.95);
  --text: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --green: #087a55;
  --green-bg: #e8f8f0;
  --yellow: #9a6700;
  --yellow-bg: #fff6d8;
  --orange: #b54708;
  --orange-bg: #fff0e6;
  --red: #b42318;
  --red-bg: #feeceb;
  --blue: #175cd3;
  --blue-bg: #eaf2ff;
  --gray: #475467;
  --gray-bg: #f2f4f7;
  --purple: #6941c6;
  --purple-bg: #f1ebff;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% -8%, rgba(23, 92, 211, 0.11), transparent 34rem),
    radial-gradient(circle at 92% 8%, rgba(8, 122, 85, 0.09), transparent 30rem),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.topbar,
.topbar-actions,
.brand,
.hero-content,
.hero-meta,
.panel-header,
.service-row,
.service-main,
.journey-head,
.payment-main,
.stage {
  display: flex;
}

.topbar {
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.brand {
  min-width: 0;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(145deg, #0f172a, #344054);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.18);
}

.brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topbar-actions {
  align-items: center;
  gap: 8px;
}

.environment,
.mirror-link,
.source-badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.environment,
.mirror-link {
  padding: 7px 11px;
}

.mirror-link {
  color: #175cd3;
  text-decoration: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(228, 231, 236, 0.9);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.hero::after {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--hero-glow, rgba(8, 122, 85, 0.08));
  content: "";
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(27px, 5vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.hero-description {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.hero-status {
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}

.dot,
.status-icon {
  border-radius: 50%;
  background: currentColor;
}

.dot {
  width: 9px;
  height: 9px;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 14%, transparent);
}

.hero-meta {
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  gap: 9px 20px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.hero-meta strong {
  color: var(--text);
  font-weight: 650;
}

.error-banner {
  display: none;
  margin-top: 14px;
  padding: 11px 14px;
  border: 1px solid #fecdca;
  border-radius: 12px;
  color: var(--red);
  background: var(--red-bg);
  font-size: 11px;
}

.summary-grid,
.content-grid,
.stack {
  display: grid;
}

.summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.summary-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.045);
}

.summary-card {
  padding: 20px;
}

.summary-card span,
.summary-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.summary-card strong {
  display: block;
  margin-top: 10px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.summary-card small {
  margin-top: 5px;
  font-size: 11px;
}

.content-grid {
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.8fr);
  align-items: start;
  gap: 16px;
  margin-top: 18px;
}

.stack {
  gap: 16px;
}

.panel {
  min-width: 0;
  padding: 22px;
}

.panel-header {
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 17px;
}

.panel-header h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.015em;
}

.panel-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.source-badge {
  flex: 0 0 auto;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 700;
}

.service-group + .service-group {
  margin-top: 22px;
}

.group-title {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 62px;
  padding: 13px 0;
  border-bottom: 1px solid #eef0f3;
}

.service-row:last-child,
.journey:last-child,
.stage:last-child {
  border-bottom: 0;
}

.service-main {
  min-width: 0;
  align-items: flex-start;
  gap: 11px;
}

.status-icon {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  margin-top: 5px;
}

.service-name,
.journey-name {
  font-size: 13px;
  font-weight: 680;
}

.service-message,
.monitor-note p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.service-message {
  margin-top: 4px;
}

.service-meta,
.payment-metric {
  text-align: right;
}

.status-text {
  font-size: 11px;
  font-weight: 720;
  white-space: nowrap;
}

.duration {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.journey {
  padding: 15px 0;
  border-bottom: 1px solid #eef0f3;
}

.journey-head,
.payment-main,
.stage {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.step {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fbfcfd;
  font-size: 10px;
}

.payment-main {
  padding: 16px;
  border-radius: 14px;
  background: #f8fafc;
}

.payment-main strong {
  display: block;
  font-size: 14px;
}

.payment-main p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.payment-metric strong {
  font-size: 22px;
}

.stage-list {
  margin-top: 12px;
}

.stage {
  padding: 11px 2px;
  border-bottom: 1px solid #eef0f3;
}

.stage-name {
  font-size: 12px;
}

.stage-plan {
  color: var(--muted);
  font-size: 10px;
}

.change {
  position: relative;
  padding: 0 0 18px 22px;
}

.change::before {
  position: absolute;
  top: 6px;
  bottom: -3px;
  left: 5px;
  width: 1px;
  background: var(--line);
  content: "";
}

.change:last-child::before {
  display: none;
}

.change::after {
  position: absolute;
  top: 4px;
  left: 1px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 1px var(--line);
  content: "";
}

.change-title {
  font-size: 12px;
  font-weight: 680;
}

.change-message {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.change-time {
  margin-top: 5px;
  color: #98a2b3;
  font-size: 9px;
}

.monitor-note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.85;
}

.monitor-note p + p {
  margin-top: 12px;
}

.empty {
  padding: 24px 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

footer {
  margin-top: 28px;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
  line-height: 1.8;
}

.operational {
  color: var(--green);
}
.operational-bg {
  color: var(--green);
  background: var(--green-bg);
}
.degraded {
  color: var(--yellow);
}
.degraded-bg {
  color: var(--yellow);
  background: var(--yellow-bg);
}
.partial_outage {
  color: var(--orange);
}
.partial_outage-bg {
  color: var(--orange);
  background: var(--orange-bg);
}
.major_outage {
  color: var(--red);
}
.major_outage-bg {
  color: var(--red);
  background: var(--red-bg);
}
.maintenance {
  color: var(--blue);
}
.maintenance-bg {
  color: var(--blue);
  background: var(--blue-bg);
}
.unknown {
  color: var(--gray);
}
.unknown-bg {
  color: var(--gray);
  background: var(--gray-bg);
}
.planned {
  color: var(--purple);
}
.planned-bg {
  color: var(--purple);
  background: var(--purple-bg);
}

@media (max-width: 860px) {
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .hero-content {
    display: block;
  }
  .hero-status {
    display: inline-flex;
    margin-top: 20px;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 20px;
  }
  .topbar {
    align-items: flex-start;
  }
  .environment {
    display: none;
  }
  .hero {
    padding: 24px 20px;
    border-radius: 20px;
  }
  .summary-grid {
    gap: 10px;
  }
  .summary-card {
    padding: 16px;
  }
  .summary-card strong {
    font-size: 24px;
  }
  .panel {
    padding: 18px;
    border-radius: 16px;
  }
  .service-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .service-meta {
    padding-left: 21px;
    text-align: left;
  }
  .payment-main {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
