:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  background: #0b1017;
  color: #e9eef5;
  line-height: 1.55;
  --muted: #a5b1c1;
  --border: #293442;
  --accent: #a8e4c3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
a:hover {
  color: #fff;
}
button,
select {
  font: inherit;
}
button,
select,
a {
  touch-action: manipulation;
}
:focus-visible {
  outline: 3px solid #b7e9cd;
  outline-offset: 5px;
}
header {
  max-width: 1180px;
  margin: auto;
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
header img {
  display: block;
  max-width: 100%;
  height: auto;
}
nav {
  display: flex;
  gap: 28px;
  font-size: 0.85rem;
}
main {
  max-width: 1180px;
  padding: 64px 40px 32px;
  margin: auto;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
}
h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
  margin: 20px 0;
}
h1 span {
  color: var(--accent);
}
.intro {
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 40px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 32px 0 24px;
}
.segmented {
  display: flex;
  gap: 4px;
  background: #151d28;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
}
button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 19px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}
button[aria-pressed="true"] {
  background: #c4efd6;
  color: #11261c;
}
label {
  color: var(--muted);
  font-size: 0.8rem;
  display: flex;
  gap: 12px;
  align-items: center;
}
select {
  background: #151d28;
  border: 1px solid var(--border);
  color: #e9eef5;
  border-radius: 8px;
  padding: 10px;
}
#notice {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 17px 21px;
  background: #151d28;
  margin: 20px 0 44px;
  font-size: 0.95rem;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.section-heading a,
.section-heading span {
  font-size: 0.75rem;
}
h2 {
  font-size: 1.16rem;
  letter-spacing: -0.02em;
  margin: 0;
}
h3 {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 10px;
}
.muted,
.caption {
  color: var(--muted);
}
.caption {
  font-size: 0.76rem;
  margin: 12px 0 0;
}
.components {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.component {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: center;
  gap: 20px;
  padding: 20px 23px;
  background: #111923;
}
.component + .component {
  border-top: 1px solid var(--border);
}
.component strong {
  font-size: 0.9rem;
  font-weight: 500;
}
.component time {
  font-size: 0.75rem;
  text-align: right;
  color: var(--muted);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8c9aab;
  flex: none;
}
.operational .dot {
  background: #93dbb5;
}
.degraded .dot,
.maintenance .dot {
  background: #edc376;
}
.outage .dot {
  background: #ff9494;
}
.operational {
  color: #a8e4c3;
}
.degraded,
.maintenance {
  color: #edc376;
}
.outage {
  color: #ffaaaa;
}
section {
  margin-top: 42px;
}
.panel {
  padding: 23px;
  background: #111923;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.metric {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  letter-spacing: -0.04em;
  margin: 0;
}
.chart-panel {
  margin-top: 16px;
}
.chart {
  display: block;
  width: 100%;
  height: 150px;
}
.chart path {
  fill: none;
  stroke: #a8e4c3;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}
.chart line {
  stroke: #293442;
}
.history-row {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1fr;
  gap: 20px;
  align-items: center;
  font-size: 0.8rem;
}
.history-row + .history-row {
  margin-top: 20px;
}
.bars {
  display: flex;
  gap: 2px;
  height: 24px;
}
.bar {
  flex: 1;
  min-width: 1px;
  background: #293442;
  border-radius: 2px;
}
.bar.pass {
  background: #72ae8f;
}
.bar.fail {
  background: #cb7777;
}
.bar.mixed {
  background: #c4a96e;
}
.numbers {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.monitoring-start {
  display: block;
  margin-top: 4px;
  font-size: 0.7rem;
  color: var(--muted);
}
.incident {
  padding: 23px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #111923;
  margin-bottom: 12px;
}
.incident h3 {
  color: #e9eef5;
  font-weight: 600;
}
.incident p {
  margin: 8px 0;
  font-size: 0.85rem;
  white-space: pre-wrap;
}
.incident time {
  font-size: 0.75rem;
  color: var(--muted);
}
.empty {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 22px 0;
}
details {
  margin-top: 16px;
  font-size: 0.8rem;
}
summary {
  cursor: pointer;
  color: var(--accent);
}
.table-scroll {
  max-height: 300px;
  overflow: auto;
  margin-top: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.75rem;
}
th,
td {
  padding: 8px;
  border-bottom: 1px solid var(--border);
}
footer {
  color: var(--muted);
  font-size: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 64px;
}
footer p {
  margin: 6px 0;
}
.skip {
  position: absolute;
  left: 20px;
  top: -100px;
  padding: 12px;
  background: #11261c;
}
.skip:focus {
  top: 10px;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
@media (max-width: 650px) {
  header {
    padding: 24px;
  }
  header img {
    width: 150px;
  }
  nav a:first-child {
    display: none;
  }
  main {
    padding: 40px 20px;
  }
  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metrics article:last-child {
    grid-column: 1/-1;
  }
  .component {
    grid-template-columns: 1.2fr 1fr;
    padding: 18px 16px;
    gap: 8px;
  }
  .component time {
    grid-column: 1/-1;
    text-align: left;
  }
  .history-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .bars {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .numbers {
    font-size: 0.7rem;
  }
  .section-heading {
    flex-wrap: wrap;
    gap: 4px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      color 0.15s,
      background 0.15s;
  }
}
@media (prefers-contrast: more) {
  :root {
    --muted: #cbd5e1;
    --border: #8190a3;
  }
  .bar {
    outline: 1px solid #8190a3;
  }
}

details:not([open]) .table-scroll {
  display: none;
}
.table-scroll {
  width: 100%;
  min-width: 0;
}
details {
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 400px) {
  .metrics {
    grid-template-columns: 1fr;
  }
  .metrics article:last-child {
    grid-column: auto;
  }
}

.bar.partial {
  background: repeating-linear-gradient(135deg, #72ae8f 0 3px, #293442 3px 6px);
}
