.status-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  animation: status-breathe 2s ease-in-out infinite;
}

@keyframes status-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(61, 220, 132, 0); }
}

.uptime {
  display: flex;
  gap: 3px;
  height: 24px;
}

.uptime i {
  flex: 1;
  min-width: 2px;
  border-radius: 3px;
  background: var(--success);
  opacity: 0.8;
  transform-origin: bottom;
  transition: transform var(--dur-fast) ease, opacity var(--dur-fast) ease;
}

.uptime i:hover {
  opacity: 1;
  transform: scaleY(1.25);
}

.uptime i.is-warn {
  background: var(--warning);
}

.uptime i.is-down {
  background: var(--danger);
}

.uptime i.is-maintenance {
  background: var(--tide);
}

.uptime-tip {
  position: fixed;
  z-index: 50;
  display: grid;
  gap: 2px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-pop);
  font: 500 13px/18px var(--font-sans);
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 10px));
}

.uptime-tip span {
  font-weight: 400;
  color: var(--ink-2);
}

.page {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-block: 72px 120px;
}

.page-hero {
  display: grid;
  gap: 20px;
  max-width: 760px;
}

.site-nav a[aria-current="page"] {
  background: var(--surface-2);
  color: var(--ink);
}

.status-banner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 24px;
  padding: 28px 32px;
  border: 1px solid rgba(61, 220, 132, 0.35);
  border-radius: 28px;
  background: linear-gradient(100deg, rgba(61, 220, 132, 0.14), transparent 60%), var(--surface);
  overflow: hidden;
}

.status-orb {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0 8px;
  border-radius: 50%;
  background: var(--success);
}

.status-orb::before,
.status-orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--success);
  animation: orb-wave 2.4s var(--ease-out) infinite;
}

.status-orb::after {
  animation-delay: 1.2s;
}

@keyframes orb-wave {
  from {
    transform: scale(1);
    opacity: 0.5;
  }
  to {
    transform: scale(3.2);
    opacity: 0;
  }
}

.status-banner__text {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 220px;
}

.status-banner__text h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.02em;
}

.status-banner__text p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.notice {
  display: flex;
  gap: 14px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.notice svg {
  flex: none;
  margin-top: 2px;
  color: var(--tide-ink);
}

.notice b {
  display: block;
  margin-bottom: 4px;
}

.notice p {
  margin: 0;
  color: var(--ink-2);
}

.status-card {
  display: grid;
  gap: 4px;
  padding: 28px 32px 20px;
  border-radius: 28px;
  background: var(--surface);
}

.status-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 8px;
}

.status-card__head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 26px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
  color: var(--ink-3);
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--success);
}

.legend .is-warn { background: var(--warning); }
.legend .is-down { background: var(--danger); }
.legend .is-maintenance { background: var(--tide); }

.service {
  display: grid;
  gap: 10px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}

.service:first-of-type {
  border-top: 0;
}

.service__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.service__name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.service__name img {
  width: 22px;
  height: 22px;
}

.service__state {
  font-size: 14px;
  font-weight: 500;
  color: var(--success);
}

.uptime--tall {
  height: 34px;
  gap: 2px;
}

.service__foot {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.service__foot [data-uptime-value] {
  color: var(--ink-2);
  font-weight: 500;
}

.only-mobile {
  display: none;
}

.history {
  display: grid;
  gap: 28px;
  margin-top: 48px;
}

.history__list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.incident {
  position: relative;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 36px;
}

.incident::before {
  content: "";
  position: absolute;
  left: 159px;
  top: 10px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.incident:last-child::before {
  display: none;
}

.incident__date {
  padding-top: 2px;
  font-weight: 600;
  color: var(--ink-2);
}

.incident__body {
  position: relative;
  display: grid;
  gap: 10px;
  padding-left: 28px;
}

.incident__body::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 0 4px var(--abyss);
}

.incident--down .incident__body::before { background: var(--danger); }
.incident--maintenance .incident__body::before { background: var(--tide); }

.incident__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
  font-size: 18px;
  line-height: 24px;
}

.incident__body > p {
  margin: 0;
  max-width: 64ch;
  color: var(--ink-2);
}

.resolved {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  background: rgba(61, 220, 132, 0.14);
  color: var(--success);
  font: 600 12px/1 var(--font-sans);
}

.incident__updates {
  display: grid;
  gap: 6px;
  margin: 4px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  list-style: none;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-2);
}

.incident__updates b {
  margin-right: 8px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 0;
}

.facts div {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.facts dt {
  font-size: 13px;
  color: var(--ink-3);
}

.facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.dc-explorer {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 24px;
}


.dc-explorer .map-wrap {
  margin: 0;
}

.dc-detail {
  display: grid;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-pop);
}

.dc-detail__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dc-detail__head img {
  width: 44px;
  height: 44px;
}

.dc-detail__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  line-height: 30px;
  letter-spacing: -0.02em;
}

.dc-detail__head span {
  font-size: 14px;
  color: var(--ink-3);
}

.dc-detail__specs {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  font-size: 14px;
  line-height: 20px;
}

.dc-detail__specs div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.dc-detail__specs dt {
  color: var(--ink-2);
}

.dc-detail__specs dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dc-detail.is-changing {
  animation: detail-swap 420ms var(--ease-out);
}

@keyframes detail-swap {
  from {
    opacity: 0.4;
    transform: translateY(6px);
  }
}

.dc-list {
  display: grid;
  gap: 28px;
  margin-top: 72px;
}

.dc-list__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
}

.dc-list__head p {
  margin: 8px 0 0;
  color: var(--ink-2);
}

.dc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dc-card {
  display: grid;
  gap: 16px;
  width: 100%;
  padding: 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--dur) ease, transform var(--dur) var(--ease-out), background-color var(--dur) ease;
}

.dc-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.dc-card[aria-pressed="true"] {
  border-color: var(--tide);
  background: var(--tide-soft);
}

.dc-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dc-card__head img {
  width: 32px;
  height: 32px;
}

.dc-card__name {
  display: grid;
}

.dc-card__name b {
  font-size: 16px;
}

.dc-card__name span {
  font-size: 13px;
  color: var(--ink-3);
}

.dc-card__ping {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ping-meter {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--surface-3);
  overflow: hidden;
}

.ping-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--success);
  transition: width 600ms var(--ease-out), background-color var(--dur) ease;
}

.ping-meter i.is-ok { background: var(--warning); }
.ping-meter i.is-far { background: var(--danger); }

.dc-card.is-measuring .ping-meter i {
  width: 30% !important;
  background: var(--tide);
  animation: measuring 900ms var(--ease-in-out) infinite alternate;
}

@keyframes measuring {
  to { transform: translateX(240%); }
}

.dc-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
}

@media (max-width: 1020px) {
  .dc-explorer {
    grid-template-columns: 1fr;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page {
    padding-block: 40px 80px;
  }

  .dc-explorer .map-wrap {
    margin-inline: -16px;
  }

  .status-banner,
  .status-card {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .status-banner .btn {
    width: 100%;
  }

  .uptime--tall i:nth-child(-n + 60) {
    display: none;
  }

  .only-mobile {
    display: inline;
  }

  .only-desktop {
    display: none;
  }

  .incident {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .incident::before {
    left: 5px;
    top: 36px;
  }

  .incident__body {
    padding-left: 24px;
  }

  .incident__body::before {
    left: 0;
  }
}
