/* Job match score card + alignment badges (employer funnel) */
.yp-match-alignment-badge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  border-radius: 0 26px 0 10px;
}

.candidate-list-item.yp-related-profile-card {
  position: relative;
  overflow: visible;
}

.yp-cd-job-match-wrap {
  margin-bottom: 20px;
}

.yp-job-match-card {
  background: linear-gradient(145deg, #ffffff 0%, #fff9f0 45%, #fff4e0 100%);
  border: 1px solid rgba(250, 188, 87, 0.55);
  border-radius: 16px;
  padding: 20px 22px 18px;
  box-shadow: 0 8px 28px rgba(252, 192, 96, 0.18);
  overflow: hidden;
}

.yp-jm-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.yp-jm-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #1c2136;
  font-family: "Montserrat", system-ui, sans-serif;
}

.yp-jm-score-col {
  text-align: right;
  flex-shrink: 0;
}

.yp-jm-percent {
  display: block;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #e6a020 0%, #fcc060 55%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.yp-jm-percent--high {
  background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.yp-jm-percent--moderate {
  background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.yp-jm-sub {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.yp-jm-summary {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
}

.yp-jm-body {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.yp-jm-visual {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto;
}

.yp-jm-donut-svg,
.yp-jm-pie-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.yp-jm-pie-svg {
  width: 72%;
  height: 72%;
  top: 14%;
  left: 14%;
}

.yp-jm-donut-track {
  fill: none;
  stroke: #fff4e0;
  stroke-width: 11;
}

.yp-jm-donut-progress {
  fill: none;
  stroke-width: 11;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 60px 60px;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.yp-jm-donut-progress--high {
  stroke: url(#ypJmGradGreen);
}

.yp-jm-donut-progress--well {
  stroke: url(#ypJmGradOrange);
}

.yp-jm-donut-progress--moderate {
  stroke: url(#ypJmGradBlue);
}

.yp-jm-details {
  min-width: 0;
}

.yp-jm-tier {
  position: static !important;
  display: inline-block;
  border-radius: 999px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px !important;
}

.yp-jm-matched-title,
.yp-jm-unmatched-title {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.yp-jm-unmatched-title {
  margin-top: 14px;
  color: #94a3b8;
}

.yp-jm-matched-list,
.yp-jm-unmatched-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.yp-jm-matched-list li,
.yp-jm-unmatched-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  line-height: 1.3;
}

.yp-jm-unmatched-list li {
  color: #64748b;
  font-weight: 400;
}

.yp-jm-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.yp-jm-icon--ok {
  background: rgba(46, 125, 50, 0.12);
  color: #2e7d32;
}

.yp-jm-icon--no {
  background: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

.yp-jm-empty {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.45;
}

.yp-jm-loading {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  font-size: 14px;
  color: #64748b;
}

.yp-jm-loading::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 10px;
  border: 3px solid #fff4e0;
  border-top-color: #fcc060;
  border-radius: 50%;
  animation: yp-jm-spin 0.8s linear infinite;
}

@keyframes yp-jm-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 767px) {
  .yp-jm-body {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .yp-jm-visual {
    margin-bottom: 4px;
  }

  .yp-jm-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .yp-jm-score-col {
    text-align: left;
  }
}

.jea-reject-intro {
  color: #111;
  font-size: 0.95rem;
}

.jea-reject-reasons {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.jea-reject-reason-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 8px 4px;
  cursor: pointer;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #111;
}

.jea-reject-reason-option .form-check-input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  cursor: pointer;
}

.jea-reject-reason-option .form-check-input:checked {
  background-color: #f5c518;
  border-color: #f5c518;
}

.jea-reject-reason-option .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(245, 197, 24, 0.25);
}

.jea-reject-other-wrap {
  margin-top: 0.5rem;
  padding-left: 1.75rem;
}

#jeaRejectConfirm:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
