#status-page {
  --status-line: rgb(211 186 247 / 14%);
  --status-ink: #f0e8fa;
  --status-muted: #b6a9c7;
  --status-neutral: #8d839c;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding: 88px 28px 100px;
}

#status-page [data-invite-state][data-state="reachable"] {
  --status-invite-color: #7dd5be;
}

#status-page [data-invite-state][data-state="unavailable"] {
  --status-invite-color: #e4b482;
}

#status-page .utility-head {
  margin: 0;
  padding-bottom: 40px;
  text-align: left;
}

#status-page .utility-head h1 {
  display: inline-block;
  margin: 0;
  padding-bottom: .1em;
  color: #ead8ff;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.15;
}

@supports (background-clip: text) {
  #status-page .utility-head h1 {
    background: linear-gradient(135deg, #fff 0%, #caaff0 78%);
    background-clip: text;
    color: transparent;
  }
}

#status-page .utility-head p {
  max-width: 58ch;
  margin: 10px 0 0;
  color: var(--status-muted);
  font-size: .84375rem;
  line-height: 1.55;
}

#status-page .status-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 40px;
}

#status-page .status-metric,
#status-page .status-overview,
#status-page .status-service {
  border: 1px solid var(--status-line);
  background: linear-gradient(155deg, rgb(220 183 253 / 7%), rgb(126 93 184 / 2%) 45%, rgb(181 137 238 / 4%)), rgb(14 11 24 / 72%);
  box-shadow: inset 0 1px rgb(235 216 255 / 7%), 0 12px 31px rgb(0 0 0 / 24%);
}

#status-page .status-metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px;
  border-radius: 18px;
}

#status-page .status-metric dt {
  display: grid;
  justify-items: start;
  gap: 10px;
  color: var(--status-muted);
  font-size: .65625rem;
  font-weight: 650;
  letter-spacing: .08em;
  line-height: 1.5;
  text-transform: uppercase;
}

#status-page .status-metric dd {
  margin: 0;
  color: var(--status-ink);
  font-size: clamp(24px, 2.6vw, 32px);
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  letter-spacing: -.02em;
  line-height: 1.4;
}

#status-page .status-symbol {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  border: 1px solid rgb(206 171 250 / 18%);
  border-radius: 8px;
  background: rgb(198 153 248 / 10%);
}

#status-page .status-symbol img {
  display: block;
  filter: invert(85%) sepia(16%) saturate(1116%) hue-rotate(203deg) brightness(107%);
}

#status-page .status-overview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 16px 20px;
  border-radius: 12px;
}

#status-page [data-platform-overview-label] {
  margin: 0;
  color: var(--status-ink);
  font-size: .90625rem;
  font-weight: 600;
  line-height: 1.5;
}

#status-page .status-overview-meta {
  margin: 3px 0 0;
  color: var(--status-muted);
  font-size: .75rem;
  line-height: 1.4;
}

#status-page .status-dot,
#status-page .status-service-state:is([data-invite-state], [data-platform-component], [data-bot-state])::before {
  display: block;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

#status-page .status-dot {
  position: relative;
  color: var(--platform-dot, var(--status-neutral));
}

#status-page .status-dot::before {
  position: absolute;
  inset: -5px;
  border: 1px solid currentColor;
  border-radius: inherit;
  content: "";
  opacity: 0;
}

#status-page .status-service-state[data-invite-state]::before {
  color: var(--status-invite-color, var(--status-neutral));
  content: "";
}

#status-page .status-service-state:is([data-platform-component], [data-bot-state])::before {
  color: var(--platform-dot, var(--status-neutral));
  content: "";
}

#status-page .status-systems {
  display: grid;
  gap: 8px;
  margin: 0;
  overflow: visible;
  border: 0;
  background: none;
}

#status-page .status-service {
  display: block;
  padding: 20px 22px;
  border-radius: 18px;
}

#status-page .status-service-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

#status-page .status-service-head .status-symbol {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

#status-page .status-service-label {
  min-width: 0;
}

#status-page .status-service-label h2 {
  margin: 0 0 2px;
  color: var(--status-ink);
  font-size: .9375rem;
  font-weight: 650;
  letter-spacing: -.005em;
  line-height: 1.4;
}

#status-page .status-service p {
  margin: 0;
  color: var(--status-muted);
  font-size: .78125rem;
  line-height: 1.5;
}

#status-page .status-service-state {
  display: flex;
  flex: none;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: var(--status-muted);
  font-size: .75rem;
  line-height: 1.4;
}

#status-page .status-bot-metrics:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 12px 0 0 50px;
}

#status-page .status-bot-metrics dt {
  color: var(--status-muted);
  font-size: .75rem;
}

#status-page .status-bot-metrics dd {
  margin: 0;
  color: var(--status-ink);
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

#status-page :is([data-platform-overview], [data-platform-component], [data-bot-state], .status-platform-history-slot):is([data-state="operational"], [data-state="connected"]) {
  --platform-dot: #7dd5be;
}

#status-page :is([data-platform-overview], [data-platform-component], [data-bot-state], .status-platform-history-slot):is([data-state="degraded_performance"], [data-state="partial_outage"], [data-state="not_ready"]) {
  --platform-dot: #efa878;
}

#status-page :is([data-platform-overview], [data-platform-component], .status-platform-history-slot)[data-state="major_outage"] {
  --platform-dot: #fb8998;
}

#status-page :is([data-platform-overview], [data-platform-component], .status-platform-history-slot)[data-state="under_maintenance"] {
  --platform-dot: #bca5f6;
}

#status-page .status-platform-history {
  max-width: 100%;
  margin: 0 0 0 auto;
}

#status-page .status-platform-history figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 3px 8px;
  margin-bottom: 7px;
  color: var(--status-ink);
  font-size: .75rem;
  font-weight: 600;
}

#status-page .status-platform-history figcaption span {
  color: var(--status-muted);
  font-size: .6875rem;
  font-weight: 400;
}

#status-page .status-platform-history-strip {
  display: flex;
  justify-content: flex-end;
  gap: 3px;
  height: 18px;
}

#status-page .status-platform-history-slot {
  width: 4px;
  height: 100%;
  flex: none;
  border-radius: 2px;
  background: var(--platform-dot, rgb(255 255 255 / 8%));
}

#status-page .status-platform-history-slot[data-state="unknown"] {
  display: none;
}

#status-page .status-service-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgb(211 186 247 / 9%);
}

#status-page .status-service-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

#status-page .status-row-link {
  color: #dfc5fa;
  font-size: .78125rem;
  font-weight: 600;
  white-space: nowrap;
}

#status-page .copy-command {
  min-height: 32px;
  flex: none;
  padding: 5px 10px;
  border-color: rgb(217 183 254 / 23%);
  border-radius: 7px;
  background: rgb(183 136 237 / 10%);
  color: var(--status-ink);
  font-size: .75rem;
  font-weight: 600;
}

#status-page .copy-command:disabled {
  cursor: default;
  opacity: .55;
}

#status-page .copy-command:hover:not(:disabled) {
  border-color: rgb(217 183 254 / 45%);
  background: rgb(183 136 237 / 17%);
}

#status-page .status-row-link:hover {
  color: #f3e5ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#status-page :is(a, button):focus-visible {
  outline: 2px solid #d9b6fd;
  outline-offset: 3px;
}

@media (max-width: 780px) {
  #status-page {
    padding-top: 96px;
  }
}

@media (max-width: 700px) {
  #status-page .status-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  #status-page .status-service-head {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 8px;
  }

  #status-page .status-service-state {
    grid-column: 2;
    margin: 0;
  }

  #status-page .status-service-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  #status-page .status-platform-history {
    width: 100%;
    margin-inline-start: 0;
  }

  #status-page .status-platform-history :is(figcaption, .status-platform-history-strip) {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  #status-page .status-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  #status-page .status-overview {
    gap: 9px;
    padding-inline: 15px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  #status-page .status-overview {
    animation: status-overview-in .58s .15s cubic-bezier(.16, 1, .3, 1) both;
  }

  #status-page [data-platform-overview][data-state="operational"] .status-dot::before {
    animation: status-platform-pulse 2.5s ease-out infinite;
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  #status-page :is(.status-service, .status-metric) {
    transition: translate .22s ease, border-color .22s ease;
  }

  #status-page :is(.status-service, .status-metric):hover {
    translate: 0 -2px;
    border-color: rgb(211 186 247 / 26%);
  }
}

@keyframes status-overview-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes status-platform-pulse {
  from { opacity: .5; transform: scale(.65); }
  72%, to { opacity: 0; transform: scale(1.3); }
}

@media (forced-colors: active) {
  #status-page .utility-head h1 {
    background: none;
    color: CanvasText;
  }
}
