:root {
  --bg: #0f1117; --surface: #161b22; --border: #30363d;
  --text: #e6edf3; --muted: #8b949e; --accent: #58a6ff;
  --green: #3fb950; --red: #f85149; --yellow: #d29922; --orange: #db6d28;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.5; padding: 24px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
h2 { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.header-left h1 { color: var(--accent); }
.header-left p { color: var(--muted); font-size: 13px; }
.nav { display: flex; gap: 16px; align-items: center; }
.nav a { color: var(--muted); font-size: 13px; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { color: var(--accent); border-bottom-color: var(--accent); text-decoration: none; }
.refresh { background: var(--surface); border: 1px solid var(--border); color: var(--muted); padding: 6px 12px;
  border-radius: 6px; cursor: pointer; font-size: 13px; }
.refresh:hover { border-color: var(--accent); color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 16px; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.stat-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0;
  border-bottom: 1px solid var(--border); font-size: 14px; }
.stat-row:last-child { border-bottom: none; }
.stat-label { color: var(--muted); }
.stat-value { font-weight: 600; font-variant-numeric: tabular-nums; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.badge-green { background: rgba(63,185,80,0.15); color: var(--green); }
.badge-red { background: rgba(248,81,73,0.15); color: var(--red); }
.badge-yellow { background: rgba(210,153,34,0.15); color: var(--yellow); }
.badge-orange { background: rgba(219,109,40,0.15); color: var(--orange); }
.badge-blue { background: rgba(88,166,255,0.15); color: var(--accent); }
.badge-muted { background: rgba(139,148,158,0.15); color: var(--muted); }
.big-number { font-size: 32px; font-weight: 700; line-height: 1; }
.big-label { font-size: 12px; color: var(--muted); margin-top: 4px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 12px; }
.kpi { text-align: center; padding: 12px 8px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; color: var(--muted); font-weight: 500; padding: 8px 12px; border-bottom: 1px solid var(--border); }
td { padding: 8px 12px; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(88,166,255,0.04); }
.severity-critical { color: var(--red); font-weight: 600; }
.severity-high { color: var(--orange); font-weight: 600; }
.severity-medium { color: var(--yellow); }
.severity-low { color: var(--muted); }
.time-ago { color: var(--muted); font-size: 12px; }
.section { margin-bottom: 24px; }
.empty { color: var(--muted); font-size: 14px; padding: 24px; text-align: center; }
.mono { font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 12px; }
.loading { color: var(--muted); text-align: center; padding: 40px; }
.error-banner { background: rgba(248,81,73,0.1); border: 1px solid var(--red); color: var(--red);
  padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; display: none; }
.breadcrumb { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 6px; }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tab { padding: 8px 16px; font-size: 13px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-count { margin-left: 4px; font-size: 11px; background: var(--border); border-radius: 8px; padding: 1px 6px; }
.detail-grid { display: grid; grid-template-columns: 140px 1fr; gap: 4px 16px; font-size: 14px; }
.detail-label { color: var(--muted); }
.detail-value { word-break: break-all; }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 16px; }
.timeline-item::before { content: ''; position: absolute; left: -17px; top: 6px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.timeline-item.passed::before { background: var(--green); }
.timeline-item.failed::before { background: var(--red); }
.timeline-item.open::before { background: var(--red); }
.timeline-item.resolved::before { background: var(--green); }
.filter-bar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-btn { background: var(--surface); border: 1px solid var(--border); color: var(--muted); padding: 4px 12px;
  border-radius: 16px; cursor: pointer; font-size: 12px; }
.filter-btn:hover, .filter-btn.active { border-color: var(--accent); color: var(--accent); }
