* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace; background: #0d1117; color: #c9d1d9; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
header { border-bottom: 1px solid #30363d; padding-bottom: 16px; margin-bottom: 24px; }
h1 { color: #58a6ff; font-size: 1.5em; margin-bottom: 8px; }
h2 { color: #8b949e; font-size: 1.1em; margin-bottom: 12px; border-bottom: 1px solid #21262d; padding-bottom: 8px; }
section { margin-bottom: 32px; }
#status-bar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 0.85em; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 0.8em; font-weight: 600; }
.badge-green { background: #238636; color: #fff; }
.badge-yellow { background: #9e6a03; color: #fff; }
.badge-red { background: #da3633; color: #fff; }

/* Summary cards */
#summary-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.summary-card { background: #161b22; border: 1px solid #30363d; border-radius: 8px; padding: 16px; text-align: center; }
.summary-card.card-live { border-color: #238636; background: #0d2818; }
.card-value { font-size: 2em; font-weight: 700; color: #58a6ff; }
.card-live .card-value { color: #3fb950; }
.card-label { font-size: 0.75em; color: #8b949e; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; }

/* Active checkers */
.active-svc { padding: 6px 10px; margin-bottom: 4px; background: #0d2818; border-left: 3px solid #238636; border-radius: 0 4px 4px 0; font-size: 0.85em; display: flex; gap: 10px; align-items: center; }

table { width: 100%; border-collapse: collapse; font-size: 0.85em; }
th, td { text-align: left; padding: 6px 10px; border-bottom: 1px solid #21262d; }
th { color: #8b949e; font-weight: 600; position: sticky; top: 0; background: #0d1117; }
tr:hover { background: #161b22; }
.row-live { background: #0d2818; }
.row-live:hover { background: #133a23; }
code { background: #161b22; padding: 2px 6px; border-radius: 4px; color: #f0883e; font-size: 0.9em; }
.alert { padding: 6px 10px; margin-bottom: 3px; border-left: 3px solid #30363d; font-size: 0.82em; display: flex; gap: 10px; align-items: baseline; }
.alert-time { color: #484f58; min-width: 55px; flex-shrink: 0; }
.alert-type { color: #58a6ff; min-width: 120px; flex-shrink: 0; font-weight: 600; }
.alert-live_challenge { border-left-color: #da3633; background: #1a0d0d; }
.alert-new_port { border-left-color: #f0883e; }
.alert-port_closed { border-left-color: #484f58; }
.alert-endpoints_change { border-left-color: #3fb950; }
.alert-new_service { border-left-color: #a371f7; background: #170d2e; }
.alert-platform_change { border-left-color: #d29922; background: #1a1700; }
.flag { display: inline-block; padding: 2px 8px; margin: 2px; border-radius: 4px; font-size: 0.82em; }
.flag-on { background: #238636; color: #fff; }
.flag-off { background: #21262d; color: #8b949e; }
.snapshot { padding: 10px; margin-bottom: 8px; background: #161b22; border-radius: 6px; border: 1px solid #30363d; }
.snapshot a { color: #58a6ff; }
.muted { color: #484f58; font-style: italic; }
.text-green { color: #3fb950; }
.text-red { color: #da3633; }
#alert-filters { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.filter-btn { background: #21262d; border: 1px solid #30363d; color: #8b949e; padding: 3px 10px; border-radius: 12px; cursor: pointer; font-size: 0.8em; font-family: inherit; }
.filter-btn.active { background: #388bfd26; border-color: #58a6ff; color: #58a6ff; }
.filter-btn:hover { border-color: #58a6ff; }
#lifecycle-tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tab-btn { background: #21262d; border: 1px solid #30363d; color: #8b949e; padding: 4px 12px; border-radius: 6px; cursor: pointer; font-size: 0.85em; font-family: inherit; }
.tab-btn.active { background: #161b22; border-color: #58a6ff; color: #c9d1d9; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.transition { padding: 4px 10px; margin-bottom: 2px; font-size: 0.82em; display: flex; gap: 10px; align-items: baseline; border-left: 3px solid #30363d; }
.trans-up { border-left-color: #3fb950; }
.trans-down { border-left-color: #da3633; }
.trans-arrow { font-weight: 700; }
#alerts-list { max-height: 400px; overflow-y: auto; }
#transitions-list { max-height: 400px; overflow-y: auto; }

/* Uptime chart */
.uptime-grid { display: flex; flex-direction: column; gap: 6px; }
.uptime-row { display: flex; align-items: center; gap: 10px; font-size: 0.82em; }
.uptime-name { min-width: 180px; flex-shrink: 0; }
.uptime-bar-bg { flex: 1; height: 16px; background: #21262d; border-radius: 3px; overflow: hidden; min-width: 100px; }
.uptime-bar-fill { height: 100%; background: linear-gradient(90deg, #238636, #3fb950); border-radius: 3px; transition: width 0.3s ease; }
.uptime-stats { min-width: 160px; flex-shrink: 0; font-size: 0.9em; }

@media (max-width: 768px) {
  #summary-cards { grid-template-columns: repeat(2, 1fr); }
  .uptime-name { min-width: 100px; }
  .uptime-stats { min-width: 100px; }
}
