.detail-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.detail-card h3 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 850;
}

.detail-card-head h3 {
  margin-bottom: 4px;
}

.detail-card-title-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}

.detail-card-title-with-icon i {
  margin-top: 1px;
  color: #334155;
  font-size: 18px;
  line-height: 1;
}

.detail-card-head p {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.risk-observation-evidence-card {
  display: grid;
  gap: 14px;
}

.risk-evidence-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #dbe5ef;
  border-radius: 4px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.risk-evidence-refresh:disabled {
  cursor: not-allowed;
  opacity: .72;
}

.risk-evidence-state {
  min-height: 112px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.risk-evidence-state i {
  color: #94a3b8;
  font-size: 24px;
}

.risk-evidence-state.error {
  color: #b91c1c;
}

.risk-evidence-current-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e6edf5;
  border-radius: 4px;
  background: #fff;
}

.risk-evidence-current-head div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.risk-evidence-current-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.risk-evidence-current-head strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.risk-evidence-current-head em {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.risk-evidence-detail-region {
  display: grid;
  gap: 12px;
}

.risk-evidence-summary {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid #edf2f7;
  border-radius: 4px;
  background: #f8fafc;
}

.risk-evidence-score {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  min-height: 82px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #475569;
}

.risk-evidence-score.critical,
.risk-evidence-score.high {
  background: rgba(239, 68, 68, .1);
  color: #b91c1c;
}

.risk-evidence-score.medium {
  background: rgba(245, 158, 11, .12);
  color: #b45309;
}

.risk-evidence-score strong {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.risk-evidence-score span {
  font-size: 12px;
  font-weight: 900;
}

.risk-evidence-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
  align-content: center;
}

.risk-evidence-copy h4 {
  min-width: 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.35;
}

.risk-evidence-copy p {
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.risk-disposition-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(var(--theme-primary-rgb), .18);
  border-radius: 6px;
  background: linear-gradient(135deg, #fff, var(--theme-primary-soft));
}

.risk-disposition-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.risk-disposition-head > div:first-child {
  display: grid;
  gap: 3px;
}

.risk-disposition-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.risk-disposition-head strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}

.risk-disposition-badges,
.risk-disposition-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.risk-disposition-badges em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #475569;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.risk-disposition-badges em.confirmed,
.risk-disposition-badges em.remediation_in_progress,
.risk-disposition-badges em.waiver_requested,
.risk-disposition-badges em.waiver_rejected {
  background: var(--warning-soft);
  color: var(--warning-active);
}

.risk-disposition-badges em.false_positive,
.risk-disposition-badges em.resolved,
.risk-disposition-badges em.waived {
  background: var(--success-soft);
  color: var(--success);
}

.risk-disposition-panel textarea {
  width: 100%;
  min-height: 68px;
  resize: vertical;
  padding: 9px 10px;
  border: 1px solid #dbe5ef;
  border-radius: 4px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 12px;
  line-height: 1.55;
}

.risk-disposition-panel textarea:focus {
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 3px var(--theme-focus-ring);
  outline: 0;
}

.risk-disposition-actions button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #dbe5ef;
  border-radius: 4px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
}

.risk-disposition-actions button.danger {
  border-color: var(--danger-line);
  color: var(--danger);
}

.risk-disposition-actions button.warning {
  border-color: var(--warning-line);
  color: var(--warning-active);
}

.risk-disposition-actions button.safe {
  border-color: rgba(34, 197, 94, .28);
  color: var(--success);
}

.risk-disposition-actions button:disabled {
  cursor: not-allowed;
  opacity: .66;
}

.risk-disposition-resolution,
.risk-disposition-complete {
  margin: 0;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.risk-disposition-error {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid var(--danger-line);
  border-radius: 5px;
  background: rgba(239, 68, 68, .06);
  color: var(--danger);
  font-size: 12px;
  line-height: 1.5;
}

.risk-disposition-error strong {
  font-weight: 900;
}

.risk-disposition-error span {
  font-weight: 700;
}

.risk-disposition-read-only {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.risk-evidence-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.risk-evidence-meta span,
.risk-chip-list span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #dbe5ef;
  border-radius: 4px;
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.risk-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.risk-evidence-section {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #edf2f7;
  border-radius: 4px;
  background: #fff;
}

.risk-evidence-section-title {
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.risk-score-list {
  display: grid;
  gap: 8px;
}

.risk-score-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
}

.risk-score-row span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.risk-score-row i {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.risk-score-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--theme-primary);
}

.risk-score-row strong {
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.risk-evidence-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.risk-evidence-list li {
  display: grid;
  gap: 3px;
}

.risk-evidence-list strong {
  color: #0f172a;
  font-size: 12px;
  font-weight: 850;
}

.risk-evidence-list span,
.risk-evidence-empty,
.risk-chip-list em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.5;
}

.risk-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.risk-observation-list {
  display: grid;
  gap: 8px;
}

.risk-observation-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #edf2f7;
  border-radius: 4px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.risk-observation-row.active,
.risk-observation-row:hover,
.risk-observation-row:focus-visible {
  border-color: rgba(var(--theme-primary-rgb), .24);
  background: #f8fafc;
}

.risk-observation-row:focus-visible {
  outline: 2px solid rgba(var(--theme-primary-rgb), .28);
  outline-offset: 2px;
}

.risk-observation-row span,
.risk-observation-row em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.risk-observation-row strong {
  min-width: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.risk-observation-row em {
  color: #0f172a;
  text-align: right;
}

@media (max-width: 960px) {
  .risk-evidence-summary,
  .risk-evidence-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
