/* Phase 3A — Risk scan wizard + heatmap */
.ciri-scan-wizard label { display: block; margin-bottom: 0.85rem; font-size: 0.85rem; color: var(--ciri-slate, #64748b); }
.ciri-scan-wizard input, .ciri-scan-wizard select, .ciri-scan-wizard textarea {
  width: 100%; margin-top: 0.25rem; padding: 0.55rem 0.65rem; border: 1px solid #e2e8f0; border-radius: 8px;
}
.ciri-p3-kicker { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; color: #c41e3a; }
.ciri-p3-nav { display: flex; gap: 0.75rem; margin-top: 1.25rem; flex-wrap: wrap; }
.ciri-p3-extras label { font-size: 0.8rem; }
.ciri-p3-matrix { border-collapse: collapse; margin: 0.75rem 0; }
.ciri-p3-matrix td { width: 28px; height: 28px; border: 1px solid #e2e8f0; text-align: center; font-size: 0.75rem; }
.ciri-p3-matrix td.has-risk { background: rgba(196, 30, 58, 0.15); font-weight: 600; }
.ciri-p3-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; margin: 1rem 0; }
.ciri-p3-table th, .ciri-p3-table td { border: 1px solid #e2e8f0; padding: 0.35rem 0.5rem; }
.ciri-admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.ciri-admin-card { border: 1px solid #e2e8f0; border-radius: 8px; padding: 1rem; font-size: 0.85rem; }
@media (max-width: 768px) { .ciri-admin-grid { grid-template-columns: 1fr; } }

/* Enterprise risk scan shell */
.ciri-scan-progress { margin-bottom: 1rem; }
.ciri-scan-progress__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ciri-slate, #64748b);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}
.ciri-scan-progress__track {
  height: 4px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.ciri-scan-progress__fill {
  height: 100%;
  background: var(--ciri-navy-deep, #0a1628);
  border-radius: 999px;
  transition: width 0.35s ease;
}
.ciri-scan-shell { max-width: 42rem; margin: 0 auto; }
.ciri-scan-step-title { margin: 0 0 0.35rem; font-size: 1.2rem; }
.ciri-field-error {
  color: #b91c1c;
  font-size: 0.82rem;
  margin: 0.5rem 0 0.75rem;
}
.ciri-field-error-input {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.35);
}
.ciri-scan-state { padding: 1rem 0; }
.ciri-scan-state--loading { text-align: center; color: var(--ciri-slate, #64748b); }
.ciri-scan-spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto 0.75rem;
  border: 2px solid #e2e8f0;
  border-top-color: var(--ciri-navy-deep, #0a1628);
  border-radius: 50%;
  animation: ciri-spin 0.7s linear infinite;
}
@keyframes ciri-spin { to { transform: rotate(360deg); } }
.ciri-scan-state--success .ciri-score-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  background: #f8fafc;
}
.ciri-scan-submit--loading { opacity: 0.7; pointer-events: none; }
.ciri-error { color: #b91c1c; font-weight: 500; }
