:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #223046;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #3b4c9e;
  --accent: #e0671e;
  --success: #217a4a;
  --error: #b42318;
  --shadow: 0 8px 24px rgba(27, 39, 94, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
}

h1, h2, h3, p { margin-top: 0; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.auth-card {
  max-width: 480px;
  margin: 48px auto;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 14px;
}

input, textarea, button {
  font: inherit;
}

input, textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}

button {
  border: none;
  background: var(--primary);
  color: white;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
}

button.ghost {
  background: white;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.muted { color: var(--muted); }
.error { color: var(--error); min-height: 1.25rem; }
.success { color: var(--success); min-height: 1.25rem; }
.hidden { display: none !important; }

.grid {
  display: grid;
  gap: 16px;
}

.stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.two-col {
  grid-template-columns: 1.3fr 1fr;
  margin-bottom: 16px;
}

.stat-label {
  color: var(--muted);
  margin-bottom: 8px;
}

.stat-card h3 {
  margin-bottom: 0;
  font-size: 1.5rem;
}

.entry-list, .issue-list {
  display: grid;
  gap: 12px;
}

.entry {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.entry-head, .section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
}

.issue {
  border-left: 4px solid var(--accent);
  padding: 12px 14px;
  background: #fff8f3;
  border-radius: 10px;
}

.issue.high {
  border-left-color: var(--error);
  background: #fff3f2;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.small {
  font-size: 0.92rem;
}

@media (max-width: 920px) {
  .stats, .two-col {
    grid-template-columns: 1fr;
  }
}
