/* CDK Diff Explainer: builds on /labs/csp/tool.css and /labs/cors/tool.css. */

.diff-main form + .results {
  margin-top: 24px;
}
.diff-input {
  font-family: "IBM Plex Mono", ui-monospace, monospace !important;
  font-size: 0.8rem !important;
  line-height: 1.5;
  white-space: pre;
  overflow-x: auto;
}
.cron-examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #afbdd0;
  font-size: 0.85rem;
}
.cron-examples .chip {
  font: inherit;
  font-size: 0.8rem;
  color: #c4d2e2;
  background: transparent;
  border: 1px solid #35465d;
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
}
.cron-examples .chip:hover,
.cron-examples .chip:focus-visible {
  border-color: var(--mint);
  color: #fff;
}
.results[data-verdict="critical"] #results-title {
  color: #ff9aa8;
}
.results[data-verdict="high"] #results-title {
  color: #ffcf7a;
}
.results[data-verdict="ok"] #results-title,
.results[data-verdict="none"] #results-title {
  color: var(--mint);
}
.diff-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.diff-counts li {
  font-size: 0.85rem;
  color: #c4d2e2;
  border: 1px solid #35465d;
  border-radius: 999px;
  padding: 4px 12px;
}
.diff-counts li[data-kind="replaced"],
.diff-counts li[data-kind="deleted"] {
  border-color: #ff9aa8;
}
.diff-counts li[data-kind="mayReplace"],
.diff-counts li[data-kind="orphaned"] {
  border-color: #ffcf7a;
}
#findings,
#notes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.diff-fix {
  color: #e7edf5;
}
.diff-stack {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  color: #8fa3bb;
}
.diff-changes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.diff-change {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 12px;
  border-left: 3px solid #35465d;
  overflow-wrap: anywhere;
}
.diff-change code {
  font-size: 0.8rem;
  color: #c4d2e2;
}
.diff-change[data-impact="replace"],
.diff-change[data-impact="destroy"],
.diff-change[data-impact="remove"] {
  border-left-color: #ff9aa8;
}
.diff-change[data-impact="may-replace"],
.diff-change[data-impact="orphan"] {
  border-left-color: #ffcf7a;
}
.diff-change[data-impact="add"],
.diff-change[data-impact="import"] {
  border-left-color: var(--mint);
}
.diff-checklist li + li {
  margin-top: 6px;
}
.diff-change span {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #c4d2e2;
}
