/* inter-latin-ext-opsz-normal */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(inter-latin-ext-opsz-normal.woff2) format("woff2-variations");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* inter-latin-opsz-normal */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(inter-latin-opsz-normal.woff2) format("woff2-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Compact public status layout adapted from https://uiarc.dev/demo/status. */
:root {
  color-scheme: light;
  --background: #fff;
  --foreground: #171717;
  --muted: #636363;
  --border: #e9e9e9;
  --surface-muted: #f8f8f8;
  --operational: #60ae78;
  --degraded: #b87910;
  --outage: #dc5757;
  --unknown: #d1d1d1;
  --focus: #555;
  --positive-bg: #edf7f0;
  --positive-fg: #176039;
  --warning-bg: #fff2d8;
  --warning-fg: #80500a;
  --negative-bg: #fde9e9;
  --negative-fg: #a32828;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter Variable", Inter, system-ui, sans-serif;
  font-size: var(--text-sm);
  line-height: 1.45;
  letter-spacing: -0.01em;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  border-radius: 4px;
}
.site-header {
  min-height: 56px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
}
.breadcrumb a {
  color: var(--muted);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.breadcrumb svg {
  width: 14px;
  height: 14px;
  color: var(--unknown);
}
.breadcrumb [aria-current] {
  font-weight: 500;
}
.preview-note {
  font-size: var(--text-xs);
  color: var(--muted);
}
main {
  margin: 24px;
}
.status-panel {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.overview {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.summary-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--muted);
}
.summary-icon svg {
  width: 22px;
  height: 22px;
}
.summary-icon[data-state="operational"] {
  background: var(--positive-bg);
  color: var(--positive-fg);
}
.summary-icon[data-state="degraded"] {
  background: var(--warning-bg);
  color: var(--warning-fg);
}
.summary-icon[data-state="outage"] {
  background: var(--negative-bg);
  color: var(--negative-fg);
}
.summary-text {
  min-width: 0;
}
.overview h2 {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.35;
}
.overview p {
  margin: 2px 0 0;
  color: var(--muted);
}
.refresh {
  margin-left: auto;
  color: var(--muted);
  font-size: var(--text-xs);
  white-space: nowrap;
}
.history {
  padding: 16px 10px 20px;
}
.history-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin: 0 10px 14px;
}
.history-head h2 {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 500;
}
.history-head p {
  color: var(--muted);
  margin: 2px 0 0;
}
.legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: var(--text-xs);
}
.legend li {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}
.legend-bar {
  width: 8px;
  height: 14px;
  border-radius: 1.5px;
  background: var(--operational);
  align-self: center;
}
.legend-bar[data-state="degraded"] {
  height: 9px;
  background: var(--degraded);
}
.legend-bar[data-state="outage"] {
  height: 5px;
  background: var(--outage);
}
.legend-bar[data-state="unknown"] {
  background: var(--unknown);
}
.service-rows {
  display: grid;
  gap: 2px;
}
.service {
  padding: 8px 9px 9px;
  border: 1px solid transparent;
  border-radius: 10px;
}
.service-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 7px;
}
.service-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.service h3 {
  font-size: var(--text-sm);
  font-weight: 500;
  margin: 0;
}
.service small,
.service-state {
  color: var(--muted);
  font-size: var(--text-xs);
}
.percentage {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.percentage span {
  font-size: var(--text-xs);
  font-weight: 400;
  margin-left: 5px;
  color: var(--muted);
}
.bars {
  display: grid;
  grid-template-columns: repeat(90, minmax(0, 1fr));
  gap: 2px;
  height: 34px;
  align-items: end;
}
.bar {
  height: 100%;
  min-width: 0;
  border-radius: 1.5px;
  background: var(--operational);
}
.bar[data-state="degraded"] {
  height: 64%;
  background: var(--degraded);
}
.bar[data-state="outage"] {
  height: 34%;
  background: var(--outage);
}
.bar[data-state="unknown"] {
  background: var(--unknown);
}
@media (hover: hover) and (pointer: fine) {
  .breadcrumb a:hover {
    color: var(--foreground);
  }
  .service:hover {
    border-color: var(--border);
    background: var(--surface-muted);
  }
  .bar:hover {
    filter: brightness(0.9);
  }
}
.dates {
  display: flex;
  justify-content: space-between;
  margin: 10px 10px 0;
  color: var(--muted);
  font-size: var(--text-xs);
}
.measurement-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: var(--text-xs);
}
footer {
  margin: 0 24px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: var(--text-xs);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 760px) {
  .site-header {
    padding-inline: 16px;
  }
  main {
    margin: 20px 16px;
  }
  .overview {
    padding: 16px;
    gap: 12px;
  }
  .overview h2 {
    font-size: var(--text-base);
  }
  .overview p {
    font-size: var(--text-xs);
  }
  .refresh {
    display: none;
  }
  .history {
    padding: 16px 6px;
  }
  .history-head {
    display: block;
    margin-inline: 9px;
  }
  .legend {
    margin-top: 12px;
    gap: 12px;
  }
  .service {
    padding-inline: 8px;
  }
  .service-head {
    align-items: flex-start;
    gap: 8px;
  }
  .service-name {
    display: block;
  }
  .service small,
  .service-state {
    display: block;
  }
  .service-state {
    margin-top: 2px;
  }
  .percentage span {
    display: none;
  }
  .bars {
    gap: 1px;
    height: 30px;
  }
  .bar {
    border-radius: 1px;
  }
  footer {
    margin-inline: 16px;
  }
}

.daily-measurements {
  margin-top: 12px;
  color: var(--muted);
  font-size: var(--text-xs);
}
.daily-measurements summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  touch-action: manipulation;
}
.daily-measurements summary::before {
  content: "+";
}
.daily-measurements[open] summary::before {
  content: "−";
}
.daily-measurements summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
.measurement-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.measurement-scroll:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
.breadcrumb a {
  touch-action: manipulation;
}
.breadcrumb a:active,
.daily-measurements summary:active {
  color: var(--foreground);
}
.daily-measurements table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  color: var(--foreground);
}
.daily-measurements th {
  font-weight: 500;
}
.daily-measurements th,
.daily-measurements td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
