:root {
  --bg: #0a0a0a;
  --surface: #101010;
  --border: #1e1e1e;
  --text: #f5f5f5;
  --text-muted: #8a8a8a;
  --lime: #c7f94b;
  --lime-dim: #8fae3a;
  --yellow: #e39a25;
  --red: #ff3c00;
  --grey: #2c2c2c;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
}

::selection {
  background: var(--lime);
  color: #0a0a0a;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 20px 40px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  vertical-align: middle;
  margin-bottom: -2px;
  margin-right: -2px;
}

.hero {
  text-align: center;
  margin-bottom: 36px;
}

.hero h1 {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.banner {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}

.banner__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.banner--unknown {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}

.banner--green {
  background: var(--lime);
  color: #0a0a0a;
}

.banner--yellow {
  background: var(--yellow);
  color: #0a0a0a;
}

.banner--red {
  background: var(--red);
  color: #0a0a0a;
}

.components {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.component {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
}

.component__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.component__title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.component__index {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--lime);
  flex-shrink: 0;
}

.component__name {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grey);
  flex-shrink: 0;
}

.status-dot--green { background: var(--lime); }
.status-dot--yellow { background: var(--yellow); }
.status-dot--red { background: var(--red); }

.component__status-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}

.component__status-label--green { color: var(--lime); }
.component__status-label--yellow { color: var(--yellow); }
.component__status-label--red { color: var(--red); }
.component__status-label--unknown { color: var(--text-muted); }

.component__message {
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 34px;
  overflow: hidden;
}

.metrics__caption {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 12px;
  margin: 0 0 20px;
}

.metrics dt {
  color: var(--text-muted);
  font-size: 0.68rem;
  margin-bottom: 5px;
}

.metrics dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.95rem;
}

.bar {
  flex: 1 1 0;
  min-width: 2px;
  height: 100%;
  border-radius: 1px;
  background: var(--grey);
  cursor: default;
}

.bar--green { background: var(--lime); }
.bar--yellow { background: var(--yellow); }
.bar--red { background: var(--red); }

.bars__range {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.footer {
  margin-top: 40px;
  text-align: center;
}

.footer__meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.dot-sep {
  margin: 0 6px;
}

@media (max-width: 480px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page {
    padding: 40px 14px 28px;
  }
}
