.kx-status-page {
  --sapphire-900: #0E1F3A;
  --sapphire-700: #1B3A6B;
  --mist: #F4F7FB;
  --blue-500: #2563EB;
  --green-500: #10B981;
  --ink-body: #1A2942;
  --slate-body: #5A6478;
  --hairline: #EAEEF3;
  --border-pale: #DDE5F0;
  --shadow-sm: 0 2px 8px rgba(14, 31, 58, 0.04);
  --shadow-md: 0 8px 24px rgba(14, 31, 58, 0.06);
  color: var(--ink-body);
  background: #fff;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.kx-status-page *,
.kx-status-page *::before,
.kx-status-page *::after {
  box-sizing: border-box;
}

.kx-status-page h1,
.kx-status-page h2,
.kx-status-page h3,
.kx-status-page p {
  margin: 0;
  font-family: inherit;
}

.kx-status-page svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.kx-status-container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.kx-status-hero {
  padding: 70px 0 54px;
  background: linear-gradient(180deg, #fff 0%, #F8FAFC 100%);
  border-bottom: 1px solid var(--hairline);
}

.kx-status-hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 36px;
  align-items: center;
}

.kx-status-eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--sapphire-700);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kx-status-eyebrow span {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #059669;
  background: rgba(16, 185, 129, 0.08);
}

.kx-status-eyebrow svg {
  width: 14px;
  height: 14px;
}

.kx-status-hero h1 {
  max-width: 640px;
  color: var(--sapphire-900);
  font-size: 48px;
  line-height: 1.08;
  font-weight: 780;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.kx-status-hero p {
  max-width: 620px;
  color: var(--slate-body);
  font-size: 16px;
  line-height: 1.65;
}

.kx-status-summary {
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 28px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.kx-status-pulse {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.07);
  color: #047857;
  font-size: 12px;
  font-weight: 760;
}

.kx-status-pulse span,
.kx-component-grid i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.12);
}

.kx-status-pulse.is-loading,
.kx-status-pulse.is-unavailable {
  border-color: rgba(107, 114, 128, 0.18);
  background: rgba(107, 114, 128, 0.08);
  color: #4B5563;
}

.kx-status-pulse.is-loading span,
.kx-status-pulse.is-unavailable span,
.kx-component-grid article.is-loading i,
.kx-component-grid article.is-unavailable i {
  background: #9CA3AF;
  box-shadow: 0 0 0 5px rgba(156, 163, 175, 0.14);
}

.kx-status-pulse.is-degraded {
  border-color: rgba(245, 158, 11, 0.22);
  background: rgba(245, 158, 11, 0.1);
  color: #92400E;
}

.kx-status-pulse.is-degraded span,
.kx-component-grid article.is-degraded i {
  background: #F59E0B;
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.14);
}

.kx-status-pulse.is-outage {
  border-color: rgba(239, 68, 68, 0.22);
  background: rgba(239, 68, 68, 0.1);
  color: #991B1B;
}

.kx-status-pulse.is-outage span,
.kx-component-grid article.is-outage i {
  background: #EF4444;
  box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.14);
}

.kx-status-summary strong {
  display: block;
  margin-top: 24px;
  color: var(--sapphire-900);
  font-size: 34px;
  line-height: 1.05;
  font-weight: 780;
  letter-spacing: -0.6px;
}

.kx-status-summary p {
  margin-top: 10px;
  color: var(--slate-body);
  font-size: 14px;
  line-height: 1.65;
}

.kx-status-updated {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: #F8FAFC;
}

.kx-status-updated span,
.kx-status-updated b {
  display: block;
}

.kx-status-updated span {
  color: #6B7280;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kx-status-updated b {
  margin-top: 5px;
  color: var(--sapphire-900);
  font-size: 14px;
}

.kx-status-section {
  padding: 72px 0;
  background: #fff;
}

.kx-status-soft {
  background: var(--mist);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.kx-status-section-head {
  max-width: 720px;
  margin: 0 0 30px;
}

.kx-status-section-head span,
.kx-status-board-copy span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  color: var(--blue-500);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kx-status-section-head h2,
.kx-status-board-copy h2 {
  color: var(--sapphire-900);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 760;
  letter-spacing: -0.5px;
}

.kx-status-section-head p,
.kx-status-board-copy p {
  margin-top: 10px;
  color: var(--slate-body);
  font-size: 15px;
  line-height: 1.65;
}

.kx-component-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.kx-component-grid article {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: #fff;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.kx-component-grid h3 {
  color: var(--sapphire-900);
  font-size: 15px;
  line-height: 1.25;
  margin-bottom: 4px;
}

.kx-component-grid p {
  color: var(--slate-body);
  font-size: 13px;
  line-height: 1.5;
}

.kx-component-grid strong {
  min-width: 104px;
  padding: 6px 9px;
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.07);
  color: #047857;
  font-size: 11px;
  font-weight: 820;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.kx-component-grid article.is-loading strong,
.kx-component-grid article.is-unavailable strong {
  border-color: rgba(107, 114, 128, 0.18);
  background: rgba(107, 114, 128, 0.08);
  color: #4B5563;
}

.kx-component-grid article.is-degraded strong {
  border-color: rgba(245, 158, 11, 0.22);
  background: rgba(245, 158, 11, 0.1);
  color: #92400E;
}

.kx-component-grid article.is-outage strong {
  border-color: rgba(239, 68, 68, 0.22);
  background: rgba(239, 68, 68, 0.1);
  color: #991B1B;
}

.kx-status-board {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 28px;
  align-items: center;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 28px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.kx-uptime-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.kx-uptime-grid div {
  padding: 14px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: #F8FAFC;
}

.kx-uptime-grid strong,
.kx-uptime-grid span {
  display: block;
}

.kx-uptime-grid strong {
  color: var(--sapphire-900);
  font-size: 19px;
  line-height: 1.1;
  font-weight: 780;
}

.kx-uptime-grid span {
  margin-top: 5px;
  color: var(--slate-body);
  font-size: 12px;
  font-weight: 700;
}

.kx-incident-empty {
  max-width: 720px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 34px;
  background: #fff;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.kx-incident-empty > svg {
  width: 46px;
  height: 46px;
  padding: 12px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  margin-bottom: 16px;
}

.kx-incident-empty strong {
  display: block;
  color: var(--sapphire-900);
  font-size: 20px;
}

.kx-incident-empty p {
  max-width: 480px;
  margin: 10px auto 22px;
  color: var(--slate-body);
  font-size: 14px;
  line-height: 1.65;
}

.kx-incident-empty .btn {
  min-height: 48px;
  border-radius: 8px;
}

.kx-incident-empty.has-items {
  display: grid;
  gap: 12px;
  text-align: left;
}

.kx-incident-empty.has-items article {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 16px;
  background: #F8FAFC;
}

.kx-incident-meta {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  color: #8A6A1D;
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kx-incident-empty.has-items strong,
.kx-incident-empty.has-items p {
  max-width: none;
  margin: 0;
}

.kx-incident-empty.has-items p {
  margin-top: 6px;
}

.kx-incident-window {
  color: #4B5563 !important;
  font-size: 12px !important;
  font-weight: 700;
}

.kx-incident-timeline {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}

.kx-incident-timeline div {
  border-left: 3px solid #D6A63A;
  padding-left: 10px;
}

.kx-incident-timeline span {
  display: block;
  color: #8A6A1D;
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kx-incident-timeline p {
  margin-top: 3px !important;
  font-size: 12px !important;
}

@media (max-width: 920px) {
  .kx-status-hero-grid,
  .kx-component-grid,
  .kx-status-board,
  .kx-uptime-grid {
    grid-template-columns: 1fr;
  }

  .kx-status-hero h1 {
    font-size: 40px;
  }
}

@media (max-width: 640px) {
  .kx-status-container {
    width: calc(100% - 28px);
  }

  .kx-status-hero {
    padding: 52px 0 42px;
  }

  .kx-status-hero h1 {
    font-size: 32px;
    line-height: 1.1;
  }

  .kx-status-summary,
  .kx-status-board,
  .kx-incident-empty {
    padding: 22px;
  }

  .kx-component-grid article {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .kx-component-grid strong {
    grid-column: 2;
    width: fit-content;
  }

  .kx-status-section {
    padding: 58px 0;
  }
}
