/* selective tests panel */
#custom-run {
  background: linear-gradient(180deg, #fbfbff 0%, #f3f4fb 100%);
  padding: 4px 0 0;
}
#custom-run .custom-run-intro {
  text-align: center;
  padding: 18px 24px 8px;
  color: #4a5072;
  font-size: 14px;
}
#custom-run .custom-run-intro strong {
  color: #2a2f55;
}
#custom-run .custom-run-suite {
  padding: 4px 18px 10px;
}
#custom-run .suite-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 18px 0 12px;
  color: #2a2f55;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 13px;
}
#custom-run .suite-header::before,
#custom-run .suite-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d6d9ee, transparent);
  max-width: 180px;
}
#custom-run .suite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
#custom-run .custom-run-test {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  margin: 0;
  font-weight: 500;
  font-size: 14px;
  color: #3b4070;
  background: #ffffff;
  border: 1.5px solid #e6e8f4;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  gap: 12px;
}
#custom-run .custom-run-test:hover {
  border-color: #b9c0e8;
  box-shadow: 0 4px 12px rgba(80, 90, 180, 0.08);
  transform: translateY(-1px);
}
#custom-run .custom-run-test > span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#custom-run .custom-run-test input.custom-test {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  position: relative;
  flex: 0 0 auto;
  width: 64px;
  height: 32px;
  margin: 0;
  border-radius: 999px;
  background: #cfe0ff;
  cursor: pointer;
  transition: background 0.2s ease;
  outline: none;
}
#custom-run .custom-run-test input.custom-test::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2f3a6b;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
#custom-run .custom-run-test input.custom-test::after {
  content: "✕";
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  transition: left 0.2s ease;
  pointer-events: none;
  line-height: 1;
}
#custom-run .custom-run-test input.custom-test:checked {
  background: #cfe0ff;
}
#custom-run .custom-run-test input.custom-test:checked::before {
  transform: translateX(32px);
  background: #2f3a6b;
}
#custom-run .custom-run-test input.custom-test:checked::after {
  content: "✓";
  left: 48px;
  font-size: 15px;
}
#custom-run .custom-run-test input.custom-test:focus-visible {
  box-shadow: 0 0 0 3px rgba(244, 127, 31, 0.35);
}
#custom-run .custom-run-test.is-checked {
  background: linear-gradient(135deg, #fff4ea 0%, #ffe7d2 100%);
  border-color: #f47f1f;
  color: #8a3d00;
}
#custom-run .custom-run-actions {
  text-align: center;
  padding: 22px 12px 24px;
  margin-top: 8px;
  border-top: 1px solid #e6e8f4;
  background: #fafbff;
}
#custom-run .custom-run-actions .btn-ghost {
  background: #fff;
  color: #4a5072;
  border: 1.5px solid #d6d9ee;
  border-radius: 999px;
  padding: 8px 18px;
  margin: 0 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
#custom-run .custom-run-actions .btn-ghost:hover {
  border-color: #8b94c8;
  color: #2a2f55;
}
#custom-run-button {
  background: linear-gradient(135deg, #f47f1f 0%, #f05a1a 100%);
  color: #fff;
  border: none;
  padding: 12px 28px;
  margin-left: 12px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(240, 90, 26, 0.28);
  cursor: pointer;
  transition: all 0.15s ease;
}
#custom-run-button:not(.disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(240, 90, 26, 0.38);
}
#custom-run-button.disabled {
  background: #d6d9ee;
  color: #fff;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}
#custom-run-count {
  font-variant-numeric: tabular-nums;
}
