:root {
  --status-ink: #17384d;
  --status-soft-ink: #587489;
  --status-accent: #0e9f6e;
  --status-accent-soft: rgba(14, 159, 110, 0.12);
  --status-warn: #f59e0b;
  --status-warn-soft: rgba(245, 158, 11, 0.14);
  --status-alert: #c2342b;
  --status-alert-soft: rgba(194, 52, 43, 0.12);
  --status-line: #d8e4ec;
  --status-panel: #ffffff;
  --status-panel-soft: #f6fafc;
  --status-shell: #edf4f8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(14, 159, 110, 0.12), transparent 28%),
    linear-gradient(180deg, #f7fbfd, #edf4f8);
  color: var(--status-ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.status-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.status-hero,
.status-panel {
  background: var(--status-panel);
  border: 1px solid var(--status-line);
  border-radius: 28px;
  box-shadow: 0 14px 36px rgba(23, 56, 77, 0.06);
}

.status-hero {
  padding: 30px;
  margin-bottom: 24px;
}

.status-brand {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.status-brand-mark {
  width: 92px;
  height: 92px;
  border-radius: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(145deg, rgba(14, 159, 110, 0.14), rgba(20, 59, 82, 0.14)),
    #fff;
  border: 1px solid var(--status-line);
  color: var(--status-ink);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.status-kicker,
.panel-kicker {
  margin: 0 0 8px;
  color: var(--status-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-hero h1,
.panel-head h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.02;
  font-weight: 900;
}

.status-subtitle {
  margin: 14px 0 0;
  max-width: 760px;
  color: var(--status-soft-ink);
  font-size: 18px;
  line-height: 1.7;
}

.status-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.status-summary-card {
  min-height: 110px;
  padding: 18px 20px;
  border: 1px solid var(--status-line);
  border-radius: 22px;
  background: var(--status-panel-soft);
}

.summary-label {
  display: block;
  color: var(--status-soft-ink);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.status-summary-card strong {
  display: block;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 900;
}

.status-main {
  display: grid;
  gap: 24px;
}

.status-panel {
  padding: 28px;
}

.panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--status-line);
  background: rgba(23, 56, 77, 0.08);
  color: var(--status-ink);
  font-weight: 800;
  text-decoration: none;
}

.status-table {
  overflow: hidden;
  border: 1px solid var(--status-line);
  border-radius: 24px;
  background: #fff;
}

.status-table-grid {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(6, minmax(90px, 1fr));
}

.status-table-head,
.status-table-row {
  display: contents;
}

.status-col,
.status-cell {
  border-bottom: 1px solid var(--status-line);
  background: #fff;
}

.status-col {
  padding: 20px 18px;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.status-col.is-first {
  text-align: left;
}

.status-cell {
  min-height: 116px;
  padding: 22px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-cell.is-first {
  display: block;
}

.status-server-title {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 6px;
}

.status-server-subtitle {
  color: var(--status-soft-ink);
  font-size: 14px;
  line-height: 1.6;
}

.status-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.status-indicator-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
}

.status-indicator-text {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
}

.status-indicator.is-up .status-indicator-icon {
  background: var(--status-accent-soft);
  color: var(--status-accent);
}

.status-indicator.is-up .status-indicator-text {
  color: var(--status-accent);
}

.status-indicator.is-warn .status-indicator-icon {
  background: var(--status-warn-soft);
  color: var(--status-warn);
}

.status-indicator.is-warn .status-indicator-text {
  color: var(--status-warn);
}

.status-indicator.is-down .status-indicator-icon {
  background: var(--status-alert-soft);
  color: var(--status-alert);
}

.status-indicator.is-down .status-indicator-text {
  color: var(--status-alert);
}

.status-feed {
  display: grid;
  gap: 14px;
}

.status-event,
.status-table-empty,
.status-feed-empty {
  border: 1px solid var(--status-line);
  border-radius: 22px;
  background: var(--status-panel-soft);
  padding: 18px 20px;
}

.status-event {
  display: grid;
  gap: 10px;
}

.status-event-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.status-event-title {
  font-size: 18px;
  font-weight: 900;
}

.status-event-meta {
  color: var(--status-soft-ink);
  font-size: 13px;
  font-weight: 700;
}

.status-event p,
.status-table-empty,
.status-feed-empty {
  margin: 0;
  color: var(--status-soft-ink);
  font-size: 15px;
  line-height: 1.65;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-pill.is-up {
  background: var(--status-accent-soft);
  color: var(--status-accent);
}

.status-pill.is-warn {
  background: var(--status-warn-soft);
  color: var(--status-warn);
}

.status-pill.is-down {
  background: var(--status-alert-soft);
  color: var(--status-alert);
}

@media (max-width: 980px) {
  .status-brand {
    grid-template-columns: 1fr;
  }

  .status-summary {
    grid-template-columns: 1fr;
  }

  .panel-head {
    flex-direction: column;
    align-items: start;
  }

  .status-table-grid {
    grid-template-columns: 1fr;
  }

  .status-col {
    display: none;
  }

  .status-cell {
    min-height: auto;
    border-bottom: 1px solid var(--status-line);
  }

  .status-cell::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 10px;
    color: var(--status-soft-ink);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .status-cell.is-first::before {
    display: none;
  }
}
