/* Assessment setup uses the same palette in selected, available and unavailable states. */
.rq-shell #newAssessmentModal .pkg-card {
  background: var(--rq-surface); color: var(--rq-text); border-color: var(--rq-border) !important;
  cursor: pointer; transition: background-color .15s, border-color .15s;
  position: relative; box-shadow: none; transform: none; min-width: 0;
}
.rq-shell #newAssessmentModal .pkg-card:hover { background: var(--rq-surface-2); }
.rq-shell #newAssessmentModal .btn-check:checked + .pkg-card {
  background: var(--rq-action-soft); border-color: var(--rq-action) !important;
  box-shadow: inset 0 0 0 1px var(--rq-action);
}
.rq-shell #newAssessmentModal .btn-check:checked + .pkg-card::after {
  content: "Selected"; display: block; color: var(--rq-action); font-size: .75rem;
  font-weight: 700; margin-top: .75rem;
}
.rq-shell #newAssessmentModal .btn-check:focus-visible + .pkg-card { outline: 3px solid var(--rq-focus); outline-offset: 3px; }
.rq-shell #newAssessmentModal .btn-check:disabled + .pkg-card {
  cursor: not-allowed; background: var(--rq-surface-2); opacity: 1;
}
.rq-shell #newAssessmentModal .pkg-card :is(.text-muted,.text-secondary) { color: var(--rq-muted) !important; }
.rq-shell #newAssessmentModal .pkg-card .text-success { color: #17724d !important; }
.dark-style .rq-shell #newAssessmentModal .pkg-card .text-success { color: #8ce1b4 !important; }
.rq-shell #newAssessmentModal .pkg-card .badge { white-space: normal; line-height: 1.4; }
.rq-shell #newAssessmentModal .rq-passive-badge { background: var(--rq-ai-soft); color: var(--rq-ai); }
.rq-shell #newAssessmentModal .border-passive i { color: var(--rq-ai); }
.rq-shell #newAssessmentModal .modal-header { border-bottom: 1px solid var(--rq-border); }
.rq-shell #newAssessmentModal .modal-body { padding: 1.5rem; }
.rq-shell #newAssessmentModal .rq-assessment-footer {
  background: var(--rq-surface); border-top: 1px solid var(--rq-border);
  padding: 1rem 1.5rem; gap: .75rem; flex-wrap: nowrap;
}
.rq-shell #newAssessmentModal .rq-assessment-footer .btn { margin: 0; min-height: 44px; }
@media (max-width: 575.98px) {
  .rq-shell #newAssessmentModal .modal-body { padding: 1rem; }
  .rq-shell #newAssessmentModal .rq-assessment-footer { padding: 1rem; }
  .rq-shell #newAssessmentModal .rq-assessment-footer .btn-primary { flex: 1; }
}
