:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #667085;
  --subtle: #8d98aa;
  --line: #e7e9f1;
  --surface: #ffffff;
  --page: #f7f8fc;
  --purple: #6c5ce7;
  --purple-dark: #5142c7;
  --purple-soft: #efedff;
  --cyan: #18cfc3;
  --green: #1eaa75;
  --green-soft: #eaf9f2;
  --orange: #d97706;
  --orange-soft: #fff5e5;
  --red: #d4475d;
  --red-soft: #fff0f2;
  --gray-soft: #f0f2f6;
  --shadow: 0 20px 50px rgba(34, 31, 78, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 3%, rgba(108, 92, 231, 0.09), transparent 24rem),
    radial-gradient(circle at 88% 8%, rgba(24, 207, 195, 0.07), transparent 22rem),
    var(--page);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.shell {
  width: min(1060px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid rgba(225, 227, 237, 0.82);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(16px);
}

.header-content {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.brand-divider {
  width: 1px;
  height: 22px;
  margin-inline: 2px;
  background: var(--line);
}

.brand-section {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.back-link:hover {
  color: var(--purple-dark);
}

.page-content {
  padding-block: 76px 88px;
}

.intro {
  max-width: 700px;
  margin-bottom: 32px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--purple-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 760;
  letter-spacing: -0.052em;
  line-height: 1.02;
}

.intro-copy {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.7;
}

.overall-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 17px;
  align-items: center;
  min-height: 116px;
  margin-bottom: 28px;
  padding: 27px 30px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 22px;
  box-shadow: var(--shadow);
  transition: background 180ms ease, border-color 180ms ease;
}

.overall-card.state-operational {
  border-color: #ccefe1;
  background: linear-gradient(120deg, #f4fcf8, #edfbf7);
}

.overall-card.state-partial,
.overall-card.state-major {
  border-color: #f7d2d8;
  background: linear-gradient(120deg, #fff7f8, #fff0f2);
}

.overall-card.state-unknown,
.overall-card.state-loading {
  border-color: #ded9ff;
  background: linear-gradient(120deg, #faf9ff, #f0eeff);
}

.overall-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  color: white;
  font-size: 1.25rem;
  font-weight: 900;
}

.state-operational .overall-icon {
  background: linear-gradient(145deg, #28c18b, #149768);
  box-shadow: 0 10px 22px rgba(30, 170, 117, 0.23);
}

.state-partial .overall-icon,
.state-major .overall-icon {
  background: linear-gradient(145deg, #e95b70, #c73550);
  box-shadow: 0 10px 22px rgba(212, 71, 93, 0.22);
}

.state-unknown .overall-icon,
.state-loading .overall-icon {
  background: linear-gradient(145deg, #826ff0, #5d4bd4);
  box-shadow: 0 10px 22px rgba(108, 92, 231, 0.22);
}

.overall-title {
  margin-bottom: 5px;
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: -0.018em;
}

.overall-detail,
.last-updated {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.last-updated {
  white-space: nowrap;
}

.panel {
  overflow: hidden;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(34, 31, 78, 0.04);
}

.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 30px 23px;
  border-bottom: 1px solid var(--line);
}

.panel-heading .section-kicker {
  margin-bottom: 6px;
}

.panel-heading h2 {
  margin-bottom: 0;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.history-window,
.history-note {
  margin-bottom: 1px;
  color: var(--subtle);
  font-size: 0.78rem;
  text-align: right;
}

.service-group {
  margin: 0;
  padding: 17px 30px 10px;
  color: var(--subtle);
  background: #fbfbfd;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(210px, 0.95fr) minmax(250px, 1.25fr) 115px;
  gap: 28px;
  align-items: center;
  min-height: 94px;
  padding: 20px 30px;
  border-top: 1px solid var(--line);
}

.service-group + .service-row {
  border-top: 0;
}

.service-name {
  margin-bottom: 5px;
  font-size: 0.97rem;
  font-weight: 720;
  letter-spacing: -0.012em;
}

.service-description,
.uptime-label {
  margin-bottom: 0;
  color: var(--subtle);
  font-size: 0.76rem;
  line-height: 1.4;
}

.uptime-label {
  margin-bottom: 8px;
  text-align: right;
}

.uptime-bar {
  display: flex;
  height: 24px;
  gap: 3px;
  align-items: stretch;
}

.uptime-segment {
  flex: 1;
  min-width: 2px;
  border-radius: 3px;
  background: var(--gray-soft);
}

.uptime-segment.state-operational {
  background: var(--green);
}

.uptime-segment.state-outage {
  background: var(--red);
}

.status-pill {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  justify-self: end;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 760;
  white-space: nowrap;
}

.status-pill.state-operational {
  color: #11704f;
  background: var(--green-soft);
}

.status-pill.state-outage {
  color: #aa2940;
  background: var(--red-soft);
}

.status-pill.state-unknown,
.status-pill.state-initializing {
  color: #6655c7;
  background: var(--purple-soft);
}

.history-list {
  padding: 4px 30px;
}

.history-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 15px;
  padding: 24px 0;
}

.history-item + .history-item {
  border-top: 1px solid var(--line);
}

.history-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: #11704f;
  background: var(--green-soft);
  font-size: 0.88rem;
  font-weight: 850;
}

.history-active .history-icon {
  color: #aa2940;
  background: var(--red-soft);
}

.history-title {
  margin: 1px 0 5px;
  font-size: 0.91rem;
  font-weight: 720;
}

.history-description,
.history-time,
.history-placeholder {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.history-description {
  margin-bottom: 5px;
}

.history-time {
  color: var(--subtle);
}

.history-placeholder {
  margin: 0;
  padding: 28px 0;
}

.empty-state {
  padding: 44px 30px;
  text-align: center;
}

.empty-title {
  margin-bottom: 7px;
  font-weight: 720;
}

.empty-copy {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.loading-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 95px;
  gap: 32px;
  padding: 30px;
  border-top: 1px solid var(--line);
}

.loading-row:first-child {
  border-top: 0;
}

.loading-line {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f0f1f5 20%, #f8f8fb 45%, #f0f1f5 70%);
  background-size: 300% 100%;
  animation: loading 1.4s ease-in-out infinite;
}

.loading-name {
  width: 74%;
}

.loading-bars {
  width: 100%;
}

.loading-pill {
  height: 28px;
}

@keyframes loading {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

.noscript-message {
  padding: 18px;
  border: 1px solid #f0d3a5;
  border-radius: 14px;
  color: #8a570d;
  background: var(--orange-soft);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.footer-content {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--subtle);
  font-size: 0.78rem;
}

.footer-content p {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 28px, 620px);
  }

  .header-content {
    min-height: 64px;
  }

  .brand-section,
  .brand-divider,
  .back-link {
    display: none;
  }

  .page-content {
    padding-block: 52px 64px;
  }

  .overall-card {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 22px;
  }

  .last-updated {
    grid-column: 2;
  }

  .panel-heading {
    display: block;
    padding: 22px;
  }

  .history-window,
  .history-note {
    margin-top: 8px;
    text-align: left;
  }

  .service-group {
    padding-inline: 22px;
  }

  .service-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    padding: 21px 22px 23px;
  }

  .uptime-block {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .status-pill {
    grid-column: 2;
    grid-row: 1;
  }

  .history-list {
    padding-inline: 22px;
  }

  .loading-row {
    grid-template-columns: 1fr 80px;
    padding: 25px 22px;
  }

  .loading-bars {
    grid-column: 1 / -1;
  }
}

@media (max-width: 440px) {
  h1 {
    font-size: 2.4rem;
  }

  .overall-icon {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }

  .overall-card {
    gap: 13px;
  }

  .overall-title {
    font-size: 0.98rem;
  }

  .footer-content {
    display: block;
    padding-block: 22px;
  }

  .footer-content p + p {
    margin-top: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
