.jw-profile-match-hover-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.jw-profile-match-hover-wrap:hover .jw-cs-pro-card__match-tip,
.jw-profile-match-hover-wrap:focus-within .jw-cs-pro-card__match-tip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.jw-profile-match-hover-wrap:hover .jw-cs-pro-card__match-tip--below,
.jw-profile-match-hover-wrap:focus-within .jw-cs-pro-card__match-tip--below {
    transform: translateX(-50%);
}

.jw-cs-pro-card__match-pill-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.jw-cs-pro-card__match-pill {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    cursor: default;
}

.jw-cs-pro-card__match-pill--strong {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.jw-cs-pro-card__match-pill--good {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.jw-cs-pro-card__match-pill--partial {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.jw-cs-pro-card__match-pill--low {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.jw-cs-pro-card__match-tip {
    position: absolute;
    z-index: 60;
    min-width: 196px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #0f172a;
    color: #f8fafc;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22), 0 2px 8px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

.jw-cs-pro-card__match-tip::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.22);
    transform: rotate(45deg);
}

.jw-cs-pro-card__match-tip--below {
    left: 50%;
    top: calc(100% + 10px);
    transform: translate(-50%, 4px);
}

.jw-cs-pro-card__match-tip--below::before {
    left: 50%;
    top: -6px;
    margin-left: -5px;
    border-right: none;
    border-bottom: none;
}

.jw-cs-pro-card__match-pill-wrap:hover .jw-cs-pro-card__match-tip,
.jw-cs-pro-card__match-pill-wrap:focus-within .jw-cs-pro-card__match-tip,
.jw-profile-match-hover-wrap:hover .jw-cs-pro-card__match-tip,
.jw-profile-match-hover-wrap:focus-within .jw-cs-pro-card__match-tip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.jw-cs-pro-card__match-pill-wrap:hover .jw-cs-pro-card__match-tip--below,
.jw-cs-pro-card__match-pill-wrap:focus-within .jw-cs-pro-card__match-tip--below,
.jw-profile-match-hover-wrap:hover .jw-cs-pro-card__match-tip--below,
.jw-profile-match-hover-wrap:focus-within .jw-cs-pro-card__match-tip--below {
    transform: translate(-50%, 0);
}

.jw-cs-pro-card__match-tip-title {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #cbd5e1;
}

.jw-cs-pro-card__match-tip-rows {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jw-cs-pro-card__match-tip-row {
    display: grid;
    grid-template-columns: minmax(72px, 1fr) 1fr auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}

.jw-cs-pro-card__match-tip-row:last-child {
    margin-bottom: 0;
}

.jw-cs-pro-card__match-tip-label {
    font-size: 11px;
    color: #e2e8f0;
}

.jw-cs-pro-card__match-tip-track {
    height: 5px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.28);
    overflow: hidden;
}

.jw-cs-pro-card__match-tip-bar {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #38bdf8, #6366f1);
}

.jw-cs-pro-card__match-tip-pct {
    font-size: 11px;
    font-weight: 700;
    color: #f8fafc;
    min-width: 30px;
    text-align: right;
}

.jw-profile-match-breakdown {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e8edf3;
}

.jw-profile-match-breakdown__title {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #64748b;
}

.jw-profile-match-breakdown__rows {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jw-profile-match-breakdown__row {
    display: grid;
    grid-template-columns: minmax(84px, 1fr) 1fr auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.jw-profile-match-breakdown__row:last-child {
    margin-bottom: 0;
}

.jw-profile-match-breakdown__label {
    font-size: 12px;
    font-weight: 600;
    color: #475467;
}

.jw-profile-match-breakdown__track {
    height: 6px;
    border-radius: 999px;
    background: #e8eef8;
    overflow: hidden;
}

.jw-profile-match-breakdown__bar {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #175cd3;
}

.jw-profile-match-breakdown__bar--strong {
    background: #12b76a;
}

.jw-profile-match-breakdown__bar--partial {
    background: #f79009;
}

.jw-profile-match-breakdown__bar--low {
    background: #98a2b3;
}

.jw-profile-match-breakdown__pct {
    font-size: 12px;
    font-weight: 700;
    color: #175cd3;
    min-width: 34px;
    text-align: right;
}

.jb-req-skills li span.is-matched,
.jw-job-skill-chip.is-matched {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #93c5fd !important;
    font-weight: 600;
}

.jb-req-skills li span.is-matched::before {
    content: "✓ ";
    font-weight: 800;
}

.jb-req-skills li span.is-not-matched {
    background: #f8fafc !important;
    color: #94a3b8 !important;
    border: 1px solid #e2e8f0 !important;
}

.jb-sidebar-profile-match .jb-sidebar-match-head {
    align-items: flex-start;
}

.jb-sidebar-match-pill-wrap {
    position: relative;
    display: inline-flex;
}

.jb-sidebar-match-pill-wrap .jw-cs-pro-card__match-tip--below {
    left: auto;
    right: 0;
    transform: translateY(4px);
}

.jb-sidebar-match-pill-wrap:hover .jw-cs-pro-card__match-tip--below,
.jb-sidebar-match-pill-wrap:focus-within .jw-cs-pro-card__match-tip--below {
    transform: translateY(0);
}

.jb-sidebar-match-pill-wrap .jw-cs-pro-card__match-tip--below::before {
    left: auto;
    right: 18px;
    margin-left: 0;
}

.jb-sidebar-match-breakdown-mobile {
    display: none;
}

@media (min-width: 768px) {
    .jb-sidebar-match-breakdown-mobile {
        display: none !important;
    }
}

.jw-employer-applicants-table__match,
.jw-employer-applicants-table__col-match {
    overflow: visible;
    position: relative;
}

.jw-employer-applicants-table__match .jw-cs-pro-card__match-tip {
    z-index: 120;
}
