:root {
  --bg: #FFFFFF;
  --panel: #F6F8FA;
  --border: #D0D7DE;
  --text: #24292F;
  --muted: #57606A;
  --ok: #1A7F37;
  --down: #CF222E;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 40px 20px;
  background: var(--bg);
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
  line-height: 1.6;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
}

.prompt {
  color: var(--muted);
  margin-bottom: 4px;
}

.prompt .cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--text);
  margin-left: 2px;
  vertical-align: -2px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

h1 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 28px;
  color: var(--text);
}

section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 18px 20px;
  margin-bottom: 16px;
}

section h2 {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 14px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.row:last-child { border-bottom: none; }
.row .label { color: var(--muted); }
.row .value { color: var(--text); }

.bar-track {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--text);
  border-radius: 2px;
}

.metric {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.metric:last-child { border-bottom: none; }

.metric-top {
  display: flex;
  justify-content: space-between;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.status-row:last-child { border-bottom: none; }

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

.dot.ok {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(26, 127, 55, 0.15);
  animation: pulse 2s ease-in-out infinite;
}

.dot.down { background: var(--down); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(26, 127, 55, 0.15); }
  50% { box-shadow: 0 0 0 5px rgba(26, 127, 55, 0.08); }
}

.status-text { color: var(--muted); margin-left: auto; }
.status-text.ok { color: var(--ok); }
.status-text.down { color: var(--down); }