@font-face {
  font-family: "Source Sans Pro";
  src: url("/assets/fonts/sourcesanspro.woff") format("woff");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("/assets/fonts/sourcesanspro-bold.woff") format("woff");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

:root {
  color-scheme: dark;
  --outer: #0b1019;
  --page: #121c2a;
  --card: rgba(29, 44, 64, 0.76);
  --card-strong: #1d2c40;
  --inset: #26374e;
  --border: rgba(122, 154, 190, 0.3);
  --border-soft: rgba(207, 226, 255, 0.13);
  --text: #e9f0fa;
  --secondary: #c5d4e8;
  --muted: #afc1d8;
  --subtle: #7890ad;
  --accent: #9fc7f3;
  --accent-strong: #65a9ef;
  --selected: #304963;
  --normal: #34d399;
  --normal-soft: rgba(52, 211, 153, 0.13);
  --degraded: #fbbf24;
  --degraded-soft: rgba(251, 191, 36, 0.13);
  --down: #f87171;
  --down-soft: rgba(248, 113, 113, 0.13);
  --maintenance: #60a5fa;
  --maintenance-soft: rgba(96, 165, 250, 0.14);
  --unknown: #8ca2bb;
  --unknown-soft: rgba(140, 162, 187, 0.12);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.22), 0 8px 24px rgba(0, 0, 0, 0.14);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --content: 980px;
}

html[data-theme="light"] {
  color-scheme: light;
  --outer: #edf1f6;
  --page: #f6f8fb;
  --card: rgba(255, 255, 255, 0.76);
  --card-strong: #ffffff;
  --inset: #f1f4f8;
  --border: rgba(110, 135, 163, 0.26);
  --border-soft: rgba(53, 75, 99, 0.1);
  --text: #303e4d;
  --secondary: #526171;
  --muted: #5e6d7d;
  --subtle: #5f7082;
  --accent: #326b9f;
  --accent-strong: #245f9e;
  --selected: #dce8f5;
  --normal: #08734b;
  --normal-soft: rgba(21, 156, 104, 0.1);
  --degraded: #875600;
  --degraded-soft: rgba(201, 130, 0, 0.1);
  --down: #b42323;
  --down-soft: rgba(220, 69, 69, 0.1);
  --maintenance: #245f9e;
  --maintenance-soft: rgba(55, 125, 196, 0.1);
  --unknown: #52677d;
  --unknown-soft: rgba(108, 127, 148, 0.09);
  --shadow: 0 24px 70px rgba(45, 65, 86, 0.12), 0 8px 20px rgba(45, 65, 86, 0.07);
}

@media (prefers-color-scheme: light) {
  html[data-theme="auto"] {
    color-scheme: light;
    --outer: #edf1f6;
    --page: #f6f8fb;
    --card: rgba(255, 255, 255, 0.76);
    --card-strong: #ffffff;
    --inset: #f1f4f8;
    --border: rgba(110, 135, 163, 0.26);
    --border-soft: rgba(53, 75, 99, 0.1);
    --text: #303e4d;
    --secondary: #526171;
    --muted: #5e6d7d;
    --subtle: #5f7082;
    --accent: #326b9f;
    --accent-strong: #245f9e;
    --selected: #dce8f5;
    --normal: #08734b;
    --normal-soft: rgba(21, 156, 104, 0.1);
    --degraded: #875600;
    --degraded-soft: rgba(201, 130, 0, 0.1);
    --down: #b42323;
    --down-soft: rgba(220, 69, 69, 0.1);
    --maintenance: #245f9e;
    --maintenance-soft: rgba(55, 125, 196, 0.1);
    --unknown: #52677d;
    --unknown-soft: rgba(108, 127, 148, 0.09);
    --shadow: 0 24px 70px rgba(45, 65, 86, 0.12), 0 8px 20px rgba(45, 65, 86, 0.07);
  }
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html {
  min-width: 320px;
  background: var(--outer);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 45% -10%, rgba(73, 128, 190, 0.17), transparent 38rem),
    linear-gradient(150deg, var(--outer), var(--page) 58%, var(--outer));
  color: var(--text);
  font-family: "Source Sans Pro", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.13;
  pointer-events: none;
}

.ambient-one {
  top: -20rem;
  left: -12rem;
  background: #4288cf;
}

.ambient-two {
  right: -18rem;
  bottom: -24rem;
  background: #3b82f6;
}

.shell {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--outer);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
}

.skip-link:focus {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  margin-bottom: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.brand-mark img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.button,
.icon-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, color 160ms ease;
}

.button {
  padding: 0 15px;
  font-weight: 600;
}

.button svg {
  width: 18px;
  height: 18px;
}

.button-quiet,
.icon-button {
  background: rgba(255, 255, 255, 0.035);
  color: var(--secondary);
}

.button-primary {
  border-color: rgba(101, 169, 239, 0.42);
  background: linear-gradient(145deg, rgba(67, 128, 194, 0.29), rgba(40, 90, 147, 0.22));
  color: var(--text);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.icon-button {
  width: 42px;
  padding: 0;
  color: var(--muted);
}

.icon-button svg {
  width: 19px;
  height: 19px;
}

.theme-sun {
  display: none;
}

html[data-theme="light"] .theme-sun {
  display: block;
}

html[data-theme="light"] .theme-moon {
  display: none;
}

.button:hover,
.icon-button:hover {
  border-color: var(--border);
  background-color: rgba(124, 169, 216, 0.12);
  color: var(--text);
  transform: translateY(-1px);
}

.button:focus-visible,
.icon-button:focus-visible,
.brand:focus-visible,
.service-card summary:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(101, 169, 239, 0.36);
  outline-offset: 3px;
}

main {
  display: grid;
  gap: 18px;
}

.data-warning {
  padding: 11px 15px;
  border: 1px solid color-mix(in srgb, var(--degraded) 38%, transparent);
  border-radius: 12px;
  background: var(--degraded-soft);
  color: var(--secondary);
  font-size: 13px;
  font-weight: 600;
}

.panel,
.overall-card,
.incident-banner,
.maintenance-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), var(--shadow);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
}

.panel {
  padding: 22px;
}

.overall-card {
  min-height: 230px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 36px 42px 26px;
  background:
    radial-gradient(circle at 30% 10%, rgba(89, 160, 228, 0.16), transparent 42%),
    linear-gradient(140deg, rgba(22, 39, 58, 0.92), rgba(17, 37, 58, 0.7));
}

html[data-theme="light"] .overall-card {
  background:
    radial-gradient(circle at 30% 10%, rgba(89, 160, 228, 0.14), transparent 42%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.92), rgba(237, 245, 253, 0.84));
}

.overall-orbit {
  position: absolute;
  right: -12%;
  bottom: -18rem;
  width: 120%;
  height: 22rem;
  border: 1px solid rgba(113, 176, 236, 0.26);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 0, rgba(81, 150, 219, 0.18), transparent 56%);
  box-shadow: 0 -3px 22px rgba(85, 158, 230, 0.12);
  pointer-events: none;
}

.status-emblem {
  position: relative;
  z-index: 1;
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 50%;
  background: var(--unknown);
  color: white;
  box-shadow: 0 0 0 12px var(--unknown-soft), 0 16px 34px rgba(0, 0, 0, 0.2);
  transition: background 240ms ease, box-shadow 240ms ease;
}

.status-emblem .status-icon {
  display: none;
  width: 45px;
  height: 45px;
  stroke-width: 2.6;
}

.loading-ring {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.34);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.overall-card.status-up .status-emblem {
  background: var(--normal);
  box-shadow: 0 0 0 12px var(--normal-soft), 0 16px 34px rgba(52, 211, 153, 0.18);
}

.overall-card.status-degraded .status-emblem {
  background: var(--degraded);
  box-shadow: 0 0 0 12px var(--degraded-soft), 0 16px 34px rgba(251, 191, 36, 0.15);
}

.overall-card.status-down .status-emblem {
  background: var(--down);
  box-shadow: 0 0 0 12px var(--down-soft), 0 16px 34px rgba(248, 113, 113, 0.16);
}

.overall-card.status-maintenance .status-emblem {
  background: var(--maintenance);
  box-shadow: 0 0 0 12px var(--maintenance-soft), 0 16px 34px rgba(96, 165, 250, 0.16);
}

.overall-card:not(.status-unknown) .loading-ring {
  display: none;
}

.overall-card.status-up .icon-check,
.overall-card.status-degraded .icon-alert,
.overall-card.status-down .icon-alert,
.overall-card.status-maintenance .icon-alert {
  display: block;
}

.overall-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.overall-copy h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.overall-copy > p:last-child {
  margin: 10px 0 0;
  color: var(--secondary);
  font-size: 16px;
}

.overall-meta {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.live-dot,
.probe-orb {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--unknown);
  box-shadow: 0 0 0 4px var(--unknown-soft);
}

.status-up .live-dot,
.probe-orb {
  background: var(--normal);
  box-shadow: 0 0 0 4px var(--normal-soft);
}

.status-degraded .live-dot {
  background: var(--degraded);
  box-shadow: 0 0 0 4px var(--degraded-soft);
}

.status-down .live-dot {
  background: var(--down);
  box-shadow: 0 0 0 4px var(--down-soft);
}

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

.section-heading h2,
.maintenance-card h2,
.incident-banner h2 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: -0.018em;
}

.section-heading-inline {
  align-items: center;
}

.freshness-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--unknown-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.freshness-badge.is-live {
  border-color: rgba(52, 211, 153, 0.25);
  background: var(--normal-soft);
  color: var(--normal);
}

.service-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
}

.service-card summary {
  display: grid;
  min-height: 92px;
  grid-template-columns: auto minmax(170px, 1fr) auto auto auto auto;
  align-items: center;
  gap: 18px;
  padding: 15px 18px;
  border-radius: inherit;
  cursor: pointer;
  list-style: none;
}

.service-card summary::-webkit-details-marker {
  display: none;
}

.service-card[open] summary {
  border-bottom: 1px solid var(--border-soft);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.service-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(105, 169, 236, 0.28);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(56, 124, 203, 0.62), rgba(37, 83, 143, 0.56));
  color: #bfe0ff;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.14);
}

.service-icon svg {
  width: 30px;
  height: 30px;
}

.service-name strong,
.service-name small,
.service-metric strong,
.service-metric small {
  display: block;
}

.service-name strong {
  font-size: 18px;
}

.service-name small {
  margin-top: 3px;
  color: var(--accent);
  font-size: 14px;
}

.status-pill {
  display: inline-flex;
  min-width: 86px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.status-pill.status-up {
  border-color: rgba(52, 211, 153, 0.22);
  background: var(--normal-soft);
  color: var(--normal);
}

.status-pill.status-degraded {
  border-color: rgba(251, 191, 36, 0.23);
  background: var(--degraded-soft);
  color: var(--degraded);
}

.status-pill.status-down {
  border-color: rgba(248, 113, 113, 0.24);
  background: var(--down-soft);
  color: var(--down);
}

.status-pill.status-maintenance {
  border-color: rgba(96, 165, 250, 0.24);
  background: var(--maintenance-soft);
  color: var(--maintenance);
}

.status-pill.status-unknown {
  border-color: var(--border-soft);
  background: var(--unknown-soft);
  color: var(--unknown);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.service-metric {
  min-width: 92px;
  padding-left: 18px;
  border-left: 1px solid var(--border-soft);
  text-align: right;
}

.service-metric small {
  color: var(--subtle);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.service-metric strong {
  margin-top: 3px;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.chevron {
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform 160ms ease;
}

.service-card[open] .chevron {
  transform: rotate(180deg);
}

.service-detail {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 17px 20px 19px 96px;
  color: var(--muted);
}

.service-detail span,
.service-detail strong {
  display: block;
}

.service-detail span {
  color: var(--subtle);
  font-size: 11px;
}

.service-detail strong {
  margin-top: 2px;
  color: var(--secondary);
  font-size: 13px;
}

.service-detail a {
  color: var(--accent);
  font-size: 13px;
  text-decoration: none;
}

.probe-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  padding: 13px 4px 0;
  color: var(--muted);
  font-size: 13px;
}

.probe-summary,
.probe-list,
.probe-item {
  display: flex;
  align-items: center;
}

.probe-summary {
  gap: 9px;
  font-weight: 600;
}

.probe-list {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.probe-item {
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--subtle);
  font-size: 11px;
}

.probe-item::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--unknown);
  content: "";
}

.probe-item.is-healthy::before {
  background: var(--normal);
}

.probe-item.is-slow::before {
  background: var(--degraded);
}

.probe-item.is-down::before {
  background: var(--down);
}

.availability-value,
.current-response {
  text-align: right;
}

.availability-value strong,
.availability-value small,
.current-response strong,
.current-response small {
  display: block;
}

.availability-value strong,
.current-response strong {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.availability-value small,
.current-response small {
  color: var(--subtle);
  font-size: 11px;
}

.uptime-bars {
  display: grid;
  height: 38px;
  grid-template-columns: repeat(90, minmax(2px, 1fr));
  align-items: end;
  gap: 3px;
  margin: 8px 0 13px;
}

.uptime-day {
  height: 27px;
  border-radius: 4px;
  background: var(--unknown-soft);
  outline: 1px solid rgba(140, 162, 187, 0.08);
  transition: height 150ms ease, filter 150ms ease, transform 150ms ease;
}

.uptime-day:hover,
.uptime-day:focus-visible {
  height: 36px;
  filter: brightness(1.14);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  transform: translateY(-1px);
}

.uptime-day[data-status="up"] {
  background: var(--normal);
}

.uptime-day[data-status="degraded"] {
  background: var(--degraded);
}

.uptime-day[data-status="down"] {
  background: var(--down);
}

.uptime-day[data-status="maintenance"] {
  background: var(--maintenance);
}

.uptime-legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.legend-scale {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.legend-scale span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.scale-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-up {
  background: var(--normal);
  box-shadow: 0 0 6px var(--normal-soft);
}

.dot-degraded {
  background: var(--degraded);
  box-shadow: 0 0 6px var(--degraded-soft);
}

.dot-down {
  background: var(--down);
  box-shadow: 0 0 6px var(--down-soft);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 12px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-up { background: var(--normal); }
.legend-degraded { background: var(--degraded); }
.legend-down { background: var(--down); }
.legend-maintenance { background: var(--maintenance); }
.legend-none { background: var(--unknown); }

.chart-wrap {
  position: relative;
  min-height: 232px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px),
    rgba(255, 255, 255, 0.018);
  background-size: 100% 55px, 18% 100%, auto;
}

.chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2px;
  color: var(--muted);
  text-align: center;
}

.chart-empty strong {
  font-size: 15px;
}

.chart-empty small {
  color: var(--subtle);
  font-size: 12px;
}

.dotted-line {
  width: min(430px, 70vw);
  height: 1px;
  margin-bottom: 14px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 3px, transparent 3px 13px);
  opacity: 0.42;
}

.chart-svg {
  width: 100%;
  height: 220px;
  padding: 12px 12px 0;
  overflow: visible;
}

.chart-grid path {
  stroke: var(--border-soft);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.chart-area {
  fill: url("#chart-fill");
  stroke: none;
}

.chart-line {
  fill: none;
  stroke: var(--accent-strong);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

.incident-banner,
.maintenance-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
}

.incident-banner {
  border-color: rgba(248, 113, 113, 0.26);
  background: linear-gradient(145deg, var(--down-soft), var(--card));
}

.incident-banner[data-impact="degraded"] {
  border-color: rgba(251, 191, 36, 0.25);
  background: linear-gradient(145deg, var(--degraded-soft), var(--card));
}

.incident-icon,
.maintenance-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  font-size: 22px;
  font-weight: 700;
}

.incident-icon {
  background: var(--down-soft);
  color: var(--down);
}

.incident-banner[data-impact="degraded"] .incident-icon {
  background: var(--degraded-soft);
  color: var(--degraded);
}

.incident-banner p,
.maintenance-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.incident-banner > a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.maintenance-card {
  border-color: rgba(96, 165, 250, 0.25);
  background: linear-gradient(145deg, var(--maintenance-soft), var(--card));
}

.maintenance-icon {
  background: var(--maintenance-soft);
  color: var(--maintenance);
}

.maintenance-icon svg {
  width: 24px;
  height: 24px;
}

.maintenance-card time {
  display: block;
  margin-top: 7px;
  color: var(--accent);
  font-size: 12px;
}

.recent-panel .button {
  min-height: 36px;
  font-size: 13px;
}

.incident-list {
  display: grid;
}

.empty-state {
  display: flex;
  min-height: 94px;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--border-soft);
  color: var(--secondary);
}

.empty-check {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 50%;
  background: var(--normal-soft);
  color: var(--normal);
}

.empty-check svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.4;
}

.empty-state strong,
.empty-state small {
  display: block;
}

.empty-state small {
  margin-top: 3px;
  color: var(--subtle);
  font-size: 12px;
}

.incident-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 13px;
  padding: 17px 0;
  border-top: 1px solid var(--border-soft);
}

.incident-row-marker {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--normal);
  box-shadow: 0 0 0 4px var(--normal-soft);
}

.incident-row.is-active .incident-row-marker {
  background: var(--degraded);
  box-shadow: 0 0 0 4px var(--degraded-soft);
}

.incident-row strong,
.incident-row small {
  display: block;
}

.incident-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.incident-row time {
  color: var(--subtle);
  font-size: 12px;
  white-space: nowrap;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 18px;
  margin-top: 22px;
  padding: 18px 4px 0;
  color: var(--subtle);
  font-size: 12px;
}

.site-footer > div,
.site-footer nav {
  display: flex;
  align-items: center;
}

.site-footer > div {
  gap: 7px;
  color: var(--muted);
}

.site-footer img {
  object-fit: contain;
}

.site-footer p {
  grid-column: 1;
  margin: 0;
}

.site-footer nav {
  grid-column: 2;
  grid-row: 1 / span 2;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

.is-hidden {
  display: none !important;
}

.noscript {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 20;
  padding: 14px;
  border: 1px solid var(--degraded);
  border-radius: 12px;
  background: var(--card-strong);
  color: var(--text);
  text-align: center;
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.error-card {
  width: min(100%, 440px);
  padding: 38px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
}

.error-card img {
  object-fit: contain;
}

.error-card h1 {
  margin: 0;
  font-size: 30px;
}

.error-card p:not(.eyebrow) {
  margin: 10px 0 24px;
  color: var(--muted);
}

.history-shell {
  --content: 860px;
}

.history-hero {
  padding: 34px 4px 22px;
}

.history-hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.history-hero > p:last-child {
  max-width: 580px;
  margin: 13px 0 0;
  color: var(--muted);
}

.history-list {
  display: grid;
  gap: 16px;
}

.history-more {
  width: 100%;
  margin-top: 16px;
}

.history-loading,
.history-empty {
  display: grid;
  min-height: 220px;
  place-content: center;
  justify-items: center;
  color: var(--muted);
  text-align: center;
}

.history-loading span,
.history-empty p {
  margin: 5px 0 0;
  color: var(--subtle);
  font-size: 13px;
}

.history-empty .empty-check {
  margin-bottom: 14px;
}

.history-error strong {
  color: var(--down);
}

.history-incident {
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.024);
}

.history-incident:focus {
  outline: 3px solid rgba(101, 169, 239, 0.34);
  outline-offset: 3px;
}

.history-incident > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-soft);
}

.history-incident h3 {
  margin: 6px 0 0;
  font-size: 19px;
  line-height: 1.3;
}

.history-incident > header time,
.incident-timeline time {
  color: var(--subtle);
  font-size: 12px;
  white-space: nowrap;
}

.history-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.history-meta span {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--unknown-soft);
}

.history-impact {
  color: var(--degraded);
  background: var(--degraded-soft) !important;
}

.impact-down .history-impact {
  color: var(--down);
  background: var(--down-soft) !important;
}

.incident-timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0 20px;
  list-style: none;
}

.incident-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 17px 0 17px 25px;
  border-bottom: 1px solid var(--border-soft);
}

.incident-timeline li:last-child {
  border-bottom: 0;
}

.incident-timeline li::before {
  position: absolute;
  top: 23px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(101, 169, 239, 0.1);
  content: "";
}

.incident-timeline li:not(:last-child)::after {
  position: absolute;
  top: 35px;
  bottom: -5px;
  left: 6.5px;
  width: 1px;
  background: var(--border);
  content: "";
}

.incident-timeline strong {
  font-size: 14px;
}

.incident-timeline p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 780px) {
  .shell {
    width: min(calc(100% - 28px), var(--content));
    padding-top: 17px;
  }

  .site-header {
    min-height: 58px;
    margin-bottom: 18px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .brand-mark img {
    width: 39px;
    height: 39px;
  }

  .brand strong {
    font-size: 20px;
  }

  .brand small {
    margin-top: 3px;
    font-size: 11px;
  }

  .header-actions .button {
    width: 42px;
    padding: 0;
  }

  .header-actions .button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  main {
    gap: 14px;
  }

  .panel {
    padding: 18px;
  }

  .overall-card {
    min-height: 280px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    justify-items: center;
    gap: 14px;
    padding: 28px 20px 22px;
    text-align: center;
  }

  .status-emblem {
    width: 74px;
    height: 74px;
  }

  .status-emblem .status-icon {
    width: 37px;
    height: 37px;
  }

  .overall-copy h1 {
    font-size: 30px;
  }

  .overall-copy > p:last-child {
    font-size: 14px;
  }

  .overall-meta {
    grid-column: auto;
  }

  .section-heading h2 {
    font-size: 20px;
  }

  .service-card summary {
    min-height: 0;
    grid-template-columns: auto 1fr auto;
    gap: 13px;
    padding: 14px;
  }

  .service-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }

  .service-icon svg {
    width: 25px;
    height: 25px;
  }

  .service-name strong {
    font-size: 16px;
  }

  .service-name small {
    font-size: 12px;
  }

  .status-pill {
    min-width: 72px;
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }

  .service-metric {
    min-width: 0;
    padding: 11px 8px 0;
    border-top: 1px solid var(--border-soft);
    border-left: 0;
    text-align: left;
  }

  .service-metric:not(.service-http) {
    grid-column: 1 / 3;
  }

  .service-http {
    grid-column: 3;
    text-align: right;
  }

  .chevron {
    display: none;
  }

  .service-detail {
    grid-template-columns: 1fr 1fr;
    padding: 15px;
  }

  .probe-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .probe-list {
    justify-content: flex-start;
  }

  .uptime-bars {
    grid-template-columns: repeat(90, 4px);
    gap: 3px;
    overflow-x: auto;
    padding: 3px 0 7px;
    scrollbar-width: thin;
  }

  .chart-wrap {
    min-height: 190px;
  }

  .chart-svg {
    height: 180px;
  }

  .incident-banner,
  .maintenance-card {
    grid-template-columns: auto 1fr;
    align-items: start;
  }

  .incident-banner > a {
    grid-column: 2;
  }

  .incident-row {
    grid-template-columns: auto 1fr;
  }

  .incident-row time {
    grid-column: 2;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
    padding-top: 20px;
    text-align: center;
  }

  .site-footer p,
  .site-footer nav {
    grid-column: 1;
    grid-row: auto;
  }

  .site-footer nav {
    justify-content: center;
  }

  .history-hero {
    padding: 24px 2px 14px;
  }

  .history-incident > header,
  .incident-timeline li {
    grid-template-columns: 1fr;
  }

  .history-incident > header {
    display: grid;
  }

  .incident-timeline li {
    gap: 7px;
  }
}

@media (max-width: 430px) {
  .shell {
    width: min(calc(100% - 20px), var(--content));
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions .button-quiet {
    display: none;
  }

  .overall-copy h1 {
    font-size: 27px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-heading-inline {
    gap: 10px;
  }

  .section-heading .eyebrow {
    display: none;
  }

  .availability-value strong,
  .current-response strong {
    font-size: 15px;
  }

  .legend {
    gap: 7px 12px;
  }

  .recent-panel .section-heading .button {
    min-height: 32px;
    padding: 0 10px;
  }
}

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