:root {
  --bg: #0f172a;
  --card: #1e293b;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --danger: #f87171;
  --high: #fb923c;
  --medium: #fbbf24;
  --low: #a3e635;
  --info: #60a5fa;
  --critical: #ef4444;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
.hidden { display: none !important; }
.muted { color: var(--muted); }
.error { color: var(--danger); min-height: 1.2em; }

.screen { min-height: 100vh; }
.login-card {
  max-width: 320px;
  margin: 15vh auto;
  text-align: center;
}
.card {
  background: var(--card);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 16px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
}
input, select, button {
  display: block;
  width: 100%;
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #0f172a;
  color: var(--text);
  font-size: 14px;
}
button {
  background: var(--accent);
  color: #0f172a;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
button:hover { opacity: 0.9; }
.checkboxes { display: flex; flex-direction: column; gap: 10px; margin: 8px 0; }
.checkboxes label, .confirm { display: flex; align-items: center; gap: 6px; width: auto; font-size: 14px; }

.hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
  text-transform: none;
}
.field-explainer {
  font-size: 12px;
  color: var(--muted);
  background: #0f172a;
  border-left: 3px solid var(--accent);
  padding: 8px 12px;
  margin: 4px 0 12px;
  border-radius: 4px;
}
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  margin-right: 6px;
}
.intro-card {
  border: 1px solid #334155;
}
.flow-steps {
  margin: 10px 0 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.6;
}
.small { font-size: 13px; }
.severity-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0;
}
.legend-title { font-weight: 600; margin-right: 4px; }
.warning {
  background: #422006;
  border: 1px solid var(--high);
  padding: 12px;
  border-radius: 8px;
  margin: 12px 0;
  font-size: 13px;
}
.scan-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #334155;
  cursor: pointer;
}
.scan-row:hover { background: #26354a; }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.badge.critical { background: var(--critical); color: white; }
.badge.high { background: var(--high); color: #1a1a1a; }
.badge.medium { background: var(--medium); color: #1a1a1a; }
.badge.low { background: var(--low); color: #1a1a1a; }
.badge.info { background: var(--info); color: #1a1a1a; }

table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid #334155; vertical-align: top; }
.detail-header { display: flex; justify-content: space-between; align-items: center; }
.progress-log {
  font-family: monospace;
  font-size: 12px;
  color: var(--muted);
  max-height: 140px;
  overflow-y: auto;
  background: #0f172a;
  border-radius: 8px;
  padding: 10px;
  margin: 10px 0;
}
