body {
  background: #f6f7f9;
}

.loading-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6c757d;
}

.loading-inline .spinner-border {
  width: 14px;
  height: 14px;
  border-width: 0.2em;
}

.btn .spinner-border {
  width: 14px;
  height: 14px;
  border-width: 0.2em;
}

.code-block {
  background: #0b1020;
  color: #e6e9f2;
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  overflow: auto;
  max-height: 60vh;
}

.code-block-wrap {
  background: #0b1020;
  color: #e6e9f2;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.kv-link {
  color: inherit;
  text-decoration: underline;
}

.badge-soft {
  font-weight: 600;
}

.table td {
  vertical-align: middle;
}

.kv-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 8px 12px;
}

.kv-grid .k {
  color: #6c757d;
  font-size: 12px;
}

.kv-grid .v {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.section-title {
  font-weight: 700;
  margin-top: 16px;
  margin-bottom: 8px;
}

.wi-lookback-input {
  width: 160px;
}

.engine-group-caret::before {
  content: "▾";
  display: inline-block;
  width: 16px;
  margin-right: 6px;
  color: #6c757d;
  transform: rotate(-90deg);
  transition: transform 120ms ease-in-out;
}

button[aria-expanded="true"] .engine-group-caret::before {
  transform: rotate(0deg);
}

.legend-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.15);
  color: inherit;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  cursor: help;
}

.badge.bg-warning .legend-info,
.badge.bg-warning.text-dark .legend-info {
  border-color: rgba(0, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.08);
}

.nav-link .legend-info {
  vertical-align: text-top;
  margin-left: 8px;
}

.tab-status-icon {
  display: inline-flex;
  margin-left: 6px;
}

.engine-severity {
  cursor: help;
  user-select: none;
}

.code-block-shell {
  position: relative;
}

.code-block-shell .copy-code-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  z-index: 2;
  padding: 4px 6px;
  line-height: 1;
  opacity: 0.9;
}

.code-block-shell .copy-code-btn:hover {
  opacity: 1;
}

.copy-code-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
