:root {
  --bg: #0d1117;
  --surface: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --text-muted: #7d8590;
  --accent: #2f81f7;
  --green: #3fb950;
  --yellow: #d29922;
  --red: #f85149;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  padding: 32px 16px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

header {
  margin-bottom: 32px;
}

header h1 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

header p {
  color: var(--text-muted);
  font-size: 13px;
}

header a {
  color: var(--accent);
  text-decoration: none;
}

/* Metric cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
}

.card-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.card-value {
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}

.card-value.green { color: var(--green); }
.card-value.yellow { color: var(--yellow); }
.card-value.red { color: var(--red); }

/* Sections */
.section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 16px;
}

.section h2 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* Label bars */
.bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 32px;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.bar-row:last-child {
  margin-bottom: 0;
}

.bar-name {
  font-size: 13px;
  color: var(--text-muted);
  text-align: right;
}

.bar-track {
  background: var(--border);
  border-radius: 3px;
  height: 8px;
  overflow: hidden;
}

.bar-fill {
  background: var(--accent);
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.bar-count {
  font-size: 13px;
  color: var(--text-muted);
  text-align: right;
}

/* SLA table */
.sla-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.sla-table th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 500;
  padding: 0 0 8px 0;
  border-bottom: 1px solid var(--border);
}

.sla-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.sla-table tr:last-child td {
  border-bottom: none;
}

.sla-table .issue-number {
  color: var(--text-muted);
  width: 48px;
}

.sla-table .hours {
  color: var(--red);
  width: 80px;
  text-align: right;
}

.empty-state {
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  padding: 16px 0;
}

/* No-JS fallback */
noscript .noscript-notice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  color: var(--text-muted);
}

noscript a {
  color: var(--accent);
}

footer {
  margin-top: 32px;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}

footer a {
  color: var(--text-muted);
}
