*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Courier New", monospace;
  background: #0d1117;
  color: #c9d1d9;
  min-height: 100vh;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: #161b22;
  border-bottom: 1px solid #30363d;
}

header h1 {
  font-size: 1.2rem;
  color: #58a6ff;
}

.gauges {
  display: flex;
  gap: 2rem;
}

.gauge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 140px;
}

.gauge-label {
  font-size: 0.7rem;
  color: #8b949e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gauge-bar {
  width: 100%;
  height: 4px;
  background: #30363d;
  border-radius: 2px;
  margin-top: 4px;
}

.gauge-fill {
  height: 100%;
  width: 0%;
  background: #3fb950;
  border-radius: 2px;
  transition: width 0.5s ease, background 0.5s ease;
}

.gauge-fill.warn  { background: #d29922; }
.gauge-fill.alert { background: #f85149; }

main {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

section h2 {
  font-size: 0.9rem;
  color: #8b949e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

th, td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #21262d;
}

th {
  color: #8b949e;
  font-weight: normal;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.status-idle   { color: #3fb950; }
.status-busy   { color: #d29922; }
.status-failed { color: #f85149; }

#event-log {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  max-height: 300px;
  overflow-y: auto;
  font-size: 0.8rem;
  color: #8b949e;
}

.log-entry {
  padding: 0.25rem 0;
  border-bottom: 1px solid #21262d;
  line-height: 1.4;
}

.log-entry:last-child { border-bottom: none; }
.log-entry .ts { color: #484f58; margin-right: 0.5rem; }
.log-entry .tag-done    { color: #3fb950; }
.log-entry .tag-failed  { color: #f85149; }
.log-entry .tag-webhook { color: #58a6ff; }
