:root {
  --bg: #0f1115;
  --panel: #171a21;
  --border: #2a2e38;
  --text: #e4e6eb;
  --text-dim: #9aa0ac;
  --accent: #4f7cff;
  --critical: #dc2626;
  --high: #ea580c;
  --medium: #ca8a04;
  --low: #2563eb;
  --info: #6b7280;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.brand { color: var(--text); font-weight: 600; text-decoration: none; }

.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a { color: var(--text-dim); text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.nav-user { color: var(--text-dim); font-size: 0.85em; }

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

.link-button {
  background: none; border: none; color: var(--text-dim);
  cursor: pointer; font-size: inherit; padding: 0;
}
.inline-form { display: inline; }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}

.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; color: var(--text-dim); font-size: 0.9em; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="url"] {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 1em;
}

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.checkbox-row input { margin-top: 4px; }

button.primary {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
}
button.primary:hover { opacity: 0.9; }

.error { color: var(--critical); margin-bottom: 12px; font-size: 0.9em; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--text-dim); font-weight: 500; font-size: 0.85em; text-transform: uppercase; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 600;
  color: white;
}
.badge-critical { background: var(--critical); }
.badge-high { background: var(--high); }
.badge-medium { background: var(--medium); }
.badge-low { background: var(--low); }
.badge-info { background: var(--info); }

.badge-status-queued { background: var(--info); }
.badge-status-running { background: var(--accent); }
.badge-status-completed { background: #16a34a; }
.badge-status-failed { background: var(--critical); }

.finding {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}
.finding-title { font-weight: 600; margin-bottom: 8px; }
.finding-section { margin-top: 12px; }
.finding-section-label { color: var(--text-dim); font-size: 0.85em; text-transform: uppercase; margin-bottom: 4px; }
.finding pre {
  background: var(--bg);
  padding: 10px;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.9em;
  white-space: pre-wrap;
  word-break: break-word;
}

a.button-link {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9em;
}

.muted { color: var(--text-dim); font-size: 0.9em; }
.empty-state { text-align: center; padding: 40px; color: var(--text-dim); }
