:root {
  --bg: #171717;
  --card: #212121;
  --fg: #f2f2f2;
  --muted: #a3a3a3;
  --border: rgb(255 255 255 / 9%);
  --operational: #5fc58e;
  --degraded: #e3b448;
  --down: #e06a5a;
  --none: #3a3a3a;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.5 "Inter Variable", Inter, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--fg); }

.page { max-width: 760px; margin: 0 auto; padding: 32px 16px 40px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { display: block; height: 20px; width: auto; }

.banner {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: 10px;
  font-weight: 500;
}
.banner .dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.banner-operational { background: rgb(95 197 142 / 12%); color: #7fdcaa; }
.banner-degraded { background: rgb(227 180 72 / 14%); color: #ecc56e; }
.banner-down { background: rgb(224 106 90 / 14%); color: #f09a8c; }
.banner-none { background: rgb(255 255 255 / 6%); color: var(--muted); }

.comp { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.comp-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.comp-name { margin: 0; font-size: 16px; font-weight: 500; }

.pill { font-size: 12px; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.pill-operational { background: rgb(95 197 142 / 14%); color: #7fdcaa; }
.pill-degraded { background: rgb(227 180 72 / 16%); color: #ecc56e; }
.pill-down { background: rgb(224 106 90 / 16%); color: #f09a8c; }

.bars { display: flex; gap: 2px; height: 32px; margin: 12px 0 6px; }
.bars span { flex: 1; min-width: 0; border-radius: 2px; }
.s-operational { background: var(--operational); }
.s-degraded { background: var(--degraded); }
.s-down { background: var(--down); }
.s-none { background: var(--none); }

.comp-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.range-short { display: none; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; padding: 0; margin: 16px 0 0; }
.legend li { display: flex; align-items: center; gap: 6px; }
.swatch { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }

.foot { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; }
.foot-links { display: flex; gap: 16px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--fg); }

/* Phones: 45 days of bars stay readable; the % keeps covering 90 days. */
@media (max-width: 639px) {
  .page { padding-top: 20px; }
  .top { flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 16px; }
  .bars span:nth-child(-n + 45) { display: none; }
  .range-long { display: none; }
  .range-short { display: inline; }
}
