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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.5;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

nav {
  background: #1a1a2e;
  color: white;
  padding: 12px 20px;
  display: flex;
  gap: 20px;
  align-items: center;
}

nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
}

nav a:hover, nav a.active {
  color: white;
}

nav .logo {
  font-weight: bold;
  font-size: 16px;
  color: white;
  margin-right: auto;
}

.card {
  background: white;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card h3 { margin-bottom: 8px; }

.score {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 50%;
  font-weight: bold;
  font-size: 14px;
  color: white;
}

.score-1, .score-2 { background: #e74c3c; }
.score-3 { background: #f39c12; }
.score-4 { background: #27ae60; }
.score-5 { background: #2ecc71; }

.flag {
  padding: 8px 12px;
  margin: 6px 0;
  border-left: 3px solid;
  background: #fafafa;
  font-size: 13px;
}

.flag.warning { border-color: #f39c12; }
.flag.critical { border-color: #e74c3c; }
.flag.info { border-color: #3498db; }

.flag .rule { font-weight: bold; text-transform: uppercase; font-size: 11px; }
.flag .evidence { margin: 4px 0; color: #555; }
.flag .suggestion { color: #27ae60; font-style: italic; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: white;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-card .value { font-size: 32px; font-weight: bold; color: #1a1a2e; }
.stat-card .label { font-size: 12px; color: #777; text-transform: uppercase; }

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

th, td { padding: 10px 14px; text-align: left; }
th { background: #1a1a2e; color: white; font-size: 12px; text-transform: uppercase; }
tr:nth-child(even) { background: #f9f9f9; }
tr:hover { background: #f0f0f0; }

a { color: #2980b9; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: bold;
}

.badge.unreviewed { background: #fee; color: #c0392b; }
.badge.reviewed { background: #efd; color: #27ae60; }

.transcript-entry { padding: 10px 0; border-bottom: 1px solid #eee; }
.transcript-entry:last-child { border-bottom: none; }
.transcript-entry .role {
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 4px;
}
.transcript-entry.user .role { color: #2980b9; }
.transcript-entry.assistant .role { color: #8e44ad; }
.transcript-entry.tool .role { color: #7f8c8d; }
.transcript-entry.flagged { background: #fff8e1; border-left: 3px solid #f39c12; padding-left: 10px; }

.btn {
  display: inline-block;
  padding: 8px 16px;
  background: #2980b9;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
}

.btn:hover { background: #2471a3; }
.btn.secondary { background: #95a5a6; }

h1 { margin-bottom: 16px; }
h2 { margin: 20px 0 12px; }
