/* =========================================================
   Fluenzo Pipeline - Figma pixel match
   ========================================================= */

:root {
    --fluenzo-yellow: #FFDF67;
    --fluenzo-blue: #4CABF6;
    --fluenzo-blue-hover: #2B9CF0;
    --text-dark: #24282B;
    --text-muted: #9B9C9E;
    --text-body: #5C6267;
    --bg-page: #FFFFFF;
    --bg-sidebar: #EAF2FC;
    --bg-input: #F5F6F8;
    --border-soft: #E5E7EB;
    --border-input: #D1D5DB;
    --danger: #EF4444;
    --success: #10B981;
}

* { box-sizing: border-box; margin: 0; padding: 0; scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { width: 0; height: 0; display: none; }

html, body {
    height: var(--app-vh, 100vh);
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
    /* Background comes from the canonical dashboard_home.css `body` prism so the
       page matches the main dashboard. (The old .dashboard.pjx wrapper used to
       paint #ECEBF0 over the viewport; that wrapper is gone.) */
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

.hidden { display: none !important; }

/* ---------- Top bar ---------- */
.pl-topbar {
    position: relative;
    background: var(--bg-page);
    padding: 24px 64px 20px;
}
.pl-topbar::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--fluenzo-yellow);
    z-index: 2;
}
.pl-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1600px;
    margin: 0 auto;
}
.pl-brand-wordmark {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #000;
    cursor: pointer;
    line-height: 1;
}
.pl-brand-wordmark .ai { color: var(--fluenzo-blue); }

.pl-user-dropdown { position: relative; }
.pl-user-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 6px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    transition: background 0.15s;
}
.pl-user-trigger:hover { background: rgba(76, 171, 246, 0.08); }
.pl-user-dropdown.open .pl-user-trigger {
    background: #fff;
    border-color: var(--border-soft);
}
.pl-user-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--fluenzo-blue) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M12 12a4 4 0 100-8 4 4 0 000 8zm0 2c-3.3 0-8 1.67-8 5v1h16v-1c0-3.33-4.7-5-8-5z'/></svg>") center/70% no-repeat;
    flex-shrink: 0;
}
.pl-user-dropdown.open .pl-user-trigger svg { transform: rotate(180deg); }
.pl-user-trigger svg { transition: transform 0.2s; color: var(--text-muted); }

.pl-user-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    min-width: 220px;
    padding: 6px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.15s, transform 0.15s;
    z-index: 100;
}
.pl-user-dropdown.open .pl-user-menu {
    opacity: 1; pointer-events: auto; transform: none;
}
.pl-user-email {
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text-dark);
    border-bottom: 1px solid #F3F3F3;
    margin-bottom: 4px;
}
.pl-user-item {
    display: block;
    padding: 9px 12px;
    font-size: 15px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.12s;
}
.pl-user-item:hover { background: #F3F3F3; }

/* ---------- App layout ---------- */
.pl-app {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: calc(var(--app-vh, 100vh) - 80px);
}

/* ---------- Sidebar ---------- */
.pl-sidebar {
    background: var(--bg-sidebar);
    padding: 56px 36px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.pl-sidebar-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.pl-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.pl-nav-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 8px 0;
    cursor: pointer;
    position: relative;
    transition: opacity 0.2s;
}

/* Vertical connector line between steps */
.pl-nav-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 23px;
    top: 58px;
    bottom: -16px;
    width: 1px;
    background: #C8D4E5;
}

.pl-nav-number {
    width: 46px; height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #D8E4F2;
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
    position: relative;
    z-index: 1;
}
.pl-nav-item.active .pl-nav-number {
    background: var(--fluenzo-yellow);
    color: var(--text-dark);
}
.pl-nav-item.completed .pl-nav-number {
    background: var(--fluenzo-blue);
    color: #fff;
}
.pl-nav-item.completed .pl-nav-number span { display: none; }
.pl-nav-check { display: none; }
.pl-nav-item.completed .pl-nav-check { display: block; }

.pl-nav-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 4px;
}
.pl-nav-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}
.pl-nav-desc {
    font-size: 14px;
    color: var(--text-muted);
}
.pl-nav-item:not(.active):not(.completed) .pl-nav-title { color: var(--text-muted); }

/* ---------- Main area ---------- */
.pl-main {
    padding: 36px 72px;
    overflow-y: auto;
}

.pl-step-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--fluenzo-blue);
    background: rgba(76, 171, 246, 0.12);
    border-radius: 20px;
    margin-bottom: 12px;
    display: none; /* Figma hides step badge */
}

.pl-step h1 {
    font-size: 38px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.pl-step-desc {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 560px;
}

/* ---------- Form ---------- */
.pl-form { display: flex; flex-direction: column; gap: 24px; max-width: 900px; }
.pl-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.pl-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}
.pl-field { display: flex; flex-direction: column; gap: 8px; position: relative; }
.pl-field label {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}
.pl-field .req { color: var(--fluenzo-blue); font-weight: 400; }
.pl-field-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.pl-field-hint {
    font-size: 13px;
    color: var(--text-muted);
    text-align: right;
    margin-top: 2px;
}

.pl-field input[type="text"],
.pl-field input[type="number"],
.pl-field input[type="email"],
.pl-field input[type="tel"],
.pl-field input[type="url"],
.pl-field select,
.pl-field textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    color: var(--text-dark);
    outline: 0;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.pl-field input::placeholder,
.pl-field textarea::placeholder {
    color: var(--text-muted);
}
.pl-field input:focus,
.pl-field select:focus,
.pl-field textarea:focus {
    border-color: var(--fluenzo-blue);
    box-shadow: 0 0 0 3px rgba(76, 171, 246, 0.15);
}

/* Read-only field locked to a system value (e.g. Company Name = workspace org).
   Greyed, non-interactive, and no focus ring so it reads as fixed. */
.pl-field input.pl-input-locked {
    background: #F3F5F8;
    color: #5B6168;
    cursor: not-allowed;
}
.pl-field input.pl-input-locked:focus {
    border-color: var(--border-input);
    box-shadow: none;
}
.pl-field textarea { resize: none; min-height: 140px; }
.pl-field select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239B9C9E' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 44px;
}

/* Budget row */
.pl-budget-row {
    display: grid;
    grid-template-columns: 90px 1fr 1fr;
    gap: 12px;
    align-items: center;
}
.pl-cur { max-width: 90px; }
.pl-to { display: none; }
/* Budget validation: flag Min/Max in red while Min exceeds Max. */
.pl-budget-row input.pl-invalid {
    border-color: #E2574C;
    box-shadow: 0 0 0 2px rgba(226, 87, 76, 0.15);
}

/* Deadline chips */
.pl-deadline-options { display: flex; gap: 10px; flex-wrap: wrap; }
.pl-deadline-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.pl-deadline-chip:hover { border-color: var(--fluenzo-blue); color: var(--text-dark); }
.pl-deadline-chip input { display: none; }
.pl-deadline-chip:has(input:checked) {
    border-color: var(--fluenzo-yellow);
    background: #fff;
    color: var(--text-dark);
    box-shadow: 0 0 0 2px var(--fluenzo-yellow);
}

/* Location dropdown */
.pl-location-wrap { position: relative; }
.pl-loc-dropdown {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border: 1px solid var(--border-input);
    border-radius: 8px;
    max-height: 220px;
    overflow-y: auto;
    margin-top: 4px;
    z-index: 50;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.pl-loc-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-dark);
}
.pl-loc-item:hover { background: #F3F6FA; }

/* ---------- Actions ---------- */
.pl-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    gap: 12px;
}

/* Internal Referrals uploader (hiring-manager raise-request page).
   Fonts + card mirror the software's existing referral card (.pl-ref-*), all
   Lexend Deca. The label floats above the card so the card top lines up with the
   form card top (both cards start on the same row); the card keeps its natural
   size (no stretching). */
.pl-preview-col[data-hm-referral] .pl-hmref-label {
    position: absolute;
    bottom: 100%;
    left: 4px;
    margin-bottom: 10px;
}
.pl-hmref-label {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9B9C9E;
}
.pl-hmref-card {
    box-sizing: border-box;
    background: #FFFFFF;
    border: 0.7px dashed rgba(155, 156, 158, 0.6);
    border-radius: 12px;
    box-shadow: 0px 1px 4.2px rgba(0, 0, 0, 0.10);
    padding: 22px 18px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-height: 180px;
    justify-content: center;
}
.pl-hmref-card:hover { border-color: #4CABF6; background: #FBFCFE; }
.pl-hmref-ic {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 10px;
    background: #EEF7FE; margin-bottom: 2px;
}
.pl-hmref-title {
    margin: 0;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 15px;
    letter-spacing: 0.08em;
    color: #24282B;
}
.pl-hmref-desc {
    margin: 0;
    max-width: 260px;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 12px;
    line-height: 14px;
    letter-spacing: 0.06em;
    color: #9B9C9E;
}
.pl-hmref-btn {
    margin-top: 8px;
    background: #EEF7FE;
    color: #4CABF6;
    border: 0;
    border-radius: 6px;
    padding: 8px 22px;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 14px;
    letter-spacing: 0.1em;
    box-shadow: 1px 2px 2.4px rgba(0, 0, 0, 0.10);
    cursor: pointer;
    transition: background 0.15s;
}
.pl-hmref-btn:hover { background: #DDEBF8; }
.pl-hmref-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.pl-hmref-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    background: #FFFFFF; border: 1px solid #E6EAEF; border-radius: 9px;
}
.pl-hmref-doc { flex: none; display: flex; }
.pl-hmref-fname {
    flex: 1; min-width: 0;
    font-family: 'Lexend Deca', sans-serif; font-weight: 300; font-size: 13.5px;
    color: #3F464E;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pl-hmref-rm {
    flex: none; width: 22px; height: 22px; border-radius: 6px;
    border: 0; background: #F4F6F9; color: #98A0AA;
    font-size: 16px; line-height: 1; cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.pl-hmref-rm:hover { background: #FDECEC; color: #D93F3F; }

/* Hiring-manager requisition confirmation (replaces the Step 1 form on submit) */
.pl-req-done {
    max-width: 560px;
    margin: 60px auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.pl-req-done-ic {
    width: 84px; height: 84px; border-radius: 50%;
    background: #EAF7EF; display: flex; align-items: center; justify-content: center;
}
.pl-req-done .pl-title { margin: 0; }
.pl-req-done .pl-title-desc { margin: 0 0 6px; max-width: 460px; }
.pl-req-done .pl-btn { margin-top: 6px; }
.pl-actions.left { justify-content: flex-start; }

.pl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 36px;
    border: 0;
    border-radius: 999px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
}
.pl-btn:active { transform: translateY(1px); }
.pl-btn-primary { background: var(--fluenzo-blue); color: #fff; }
.pl-btn-primary:hover { background: var(--fluenzo-blue-hover); }
.pl-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.pl-btn svg { width: 16px; height: 16px; }

.pl-btn-sm {
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid var(--border-input);
    background: #fff;
    color: var(--text-dark);
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
}
.pl-btn-sm:hover { background: #F3F3F3; }
.pl-btn-ghost { background: transparent; }
.pl-btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.pl-btn-copy { background: var(--fluenzo-blue); color: #fff; border-color: var(--fluenzo-blue); }
.pl-btn-icon {
    width: 32px; height: 32px;
    display: inline-flex;
    align-items: center; justify-content: center;
    background: #F3F3F3;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-dark);
}
.pl-btn-icon:hover { background: #E5E7EB; }

/* ---------- Cards (steps 2/3/4 content) ---------- */
.pl-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}
.pl-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.pl-card-head h3 {
    display: flex; align-items: center; gap: 10px;
    font-size: 16px; font-weight: 700; color: var(--text-dark);
}
.pl-card-actions { display: flex; gap: 8px; }
.pl-card-body { font-size: 15px; line-height: 1.6; color: var(--text-body); }

/* Info bar */
.pl-info-bar {
    background: #F5F6F8;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 18px;
    font-size: 15px;
    color: var(--text-body);
}

/* URL bar */
.pl-url-bar {
    background: #F5F6F8;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 18px;
}
.pl-url-label { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.pl-url-row { display: flex; align-items: center; gap: 10px; }
.pl-url-link {
    flex: 1;
    color: var(--fluenzo-blue);
    font-size: 15px;
    word-break: break-all;
    text-decoration: none;
}
.pl-url-link:hover { text-decoration: underline; }

/* Deadline bar */
.pl-deadline-bar {
    background: rgba(255, 223, 103, 0.18);
    border: 1px solid rgba(255, 223, 103, 0.6);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.pl-deadline-info { display: flex; align-items: center; gap: 12px; flex: 1; }
.pl-deadline-icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--fluenzo-yellow);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-dark);
}
.pl-deadline-text { display: flex; flex-direction: column; gap: 2px; }
.pl-deadline-label { font-size: 12px; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.pl-deadline-value { font-size: 15px; font-weight: 600; color: var(--text-dark); }
.pl-deadline-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: #fff;
    color: var(--text-dark);
}
.pl-deadline-actions { display: flex; gap: 8px; }

/* Loader */
.pl-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    color: var(--text-muted);
    gap: 16px;
}
.pl-spinner {
    width: 40px; height: 40px;
    border: 3px solid #E5E7EB;
    border-top-color: var(--fluenzo-blue);
    border-radius: 50%;
    animation: plSpin 0.8s linear infinite;
}
@keyframes plSpin { to { transform: rotate(360deg); } }

/* While the LinkedIn post is drafting (Step 2), the content card is hidden, so
   the Continue footer would otherwise ride up directly under the spinner. Make
   the loader fill the visible main area so the spinner centers and the Continue
   button stays at its normal bottom-right footer position. */
#step2-loader:not(.hidden) {
    min-height: calc(var(--app-vh, 100vh) - 320px);
    justify-content: center;
}

/* Upload zone */
.pl-upload-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: var(--bg-input);
    border: 1.5px dashed var(--border-input);
    border-radius: 10px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 15px;
    transition: border-color 0.15s, color 0.15s;
}
.pl-upload-zone:hover { border-color: var(--fluenzo-blue); color: var(--text-dark); }
.pl-upload-done {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 8px;
    font-size: 14px;
    color: #166534;
}
.pl-btn-remove {
    background: transparent;
    border: 0;
    color: var(--danger);
    font-size: 14px;
    cursor: pointer;
    margin-left: auto;
}

/* Modal (overlay + dialog) */
.pl-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(36, 40, 43, 0.5);
    z-index: 200;
}
.pl-modal-overlay.hidden { display: none !important; }
.pl-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    width: calc(100% - 40px);
    max-width: 540px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 201;
    animation: plModalIn 0.2s ease;
}
.pl-modal.hidden { display: none !important; }
@keyframes plModalIn {
    from { opacity: 0; transform: translate(-50%, -46%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}
.pl-modal-head {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pl-modal-head h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
}
.pl-modal-close {
    width: 28px; height: 28px;
    display: inline-flex;
    align-items: center; justify-content: center;
    background: #F3F3F3;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-dark);
}
.pl-modal-close:hover { background: #E5E7EB; }
.pl-modal-body {
    padding: 18px 22px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.pl-modal-note {
    font-size: 14px;
    color: var(--text-body);
    margin: 0;
    padding: 10px 12px;
    background: rgba(76, 171, 246, 0.08);
    border-radius: 8px;
}
.pl-modal-foot {
    padding: 16px 22px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}
/* Match the rest of the design system: the referral modal's Cancel / Add
   Referral buttons use the same flat, soft-rectangle style as the wizard's
   Continue button (radius 10, 12x padding) - not the default .pl-btn full pill
   or the tiny .pl-btn-sm. Both buttons share the same height. */
.pl-modal-foot .pl-btn.pl-btn-primary {
    border-radius: 10px;
    padding: 12px 26px;
    font-size: 15px;
    box-shadow: 0 4px 10px rgba(76, 171, 246, 0.30), 0 2px 4px rgba(0, 0, 0, 0.08);
}
.pl-modal-foot .pl-btn.pl-btn-primary svg { width: 15px; height: 15px; }
.pl-modal-foot .pl-btn-sm.pl-btn-ghost {
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    background: #FFFFFF;
    border: 1px solid var(--border-input);
    color: var(--text-dark);
}
.pl-modal-foot .pl-btn-sm.pl-btn-ghost:hover { background: #F3F3F3; }

/* Toast */
.pl-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--text-dark);
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 15px;
    z-index: 300;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    animation: plToastIn 0.25s ease;
}
@keyframes plToastIn { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Old sidebar-only styles kept as no-ops to prevent breakage */
.pl-sidebar-top, .pl-back-btn, .pl-brand, .pl-brand-logo, .pl-brand-text,
.pl-brand-name, .pl-brand-label, .pl-sidebar-bottom, .pl-sidebar-link { display: none; }

/* ---------- Step 2: LinkedIn Post (Figma) ---------- */
.pl-step-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 32px;
}
.pl-step-head-left { flex: 1; }
.pl-step-head-left h1 { margin-bottom: 10px; }
.pl-step-head-left .pl-step-desc { margin-bottom: 0; }
.pl-step-head-right {
    font-size: 15px;
    color: var(--text-muted);
    text-align: right;
    max-width: 320px;
    line-height: 1.5;
    padding-top: 8px;
}

/* Big rounded post card (looks like a textarea) */
.pl-post-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 16px 20px 12px;
    margin-bottom: 18px;
    max-width: 900px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.pl-post-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.pl-post-card-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}
.pl-post-card-actions { display: flex; gap: 6px; }
.pl-post-icon-btn {
    width: 32px; height: 32px;
    display: inline-flex;
    align-items: center; justify-content: center;
    background: var(--fluenzo-blue);
    color: #fff;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}
.pl-post-icon-btn:hover { background: var(--fluenzo-blue-hover); }

.pl-post-body {
    min-height: 280px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-body);
    padding: 4px 0;
}
.pl-post-body #li-display { white-space: pre-wrap; word-wrap: break-word; }
.pl-edit-area {
    width: 100%;
    min-height: 260px;
    padding: 12px;
    border: 1px solid var(--border-input);
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    outline: 0;
    resize: vertical;
}
.pl-edit-actions { display: flex; gap: 8px; margin-top: 10px; }

/* Refine row inside post card */
.pl-refine {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #F3F3F3;
}
.pl-refine input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-input);
    border-radius: 999px;
    background: var(--bg-input);
    font-family: inherit;
    font-size: 14px;
    color: var(--text-dark);
    outline: 0;
}
.pl-refine input:focus {
    border-color: var(--fluenzo-blue);
    background: #fff;
}
.pl-btn-refine {
    width: 36px; height: 36px;
    display: inline-flex;
    align-items: center; justify-content: center;
    background: rgba(76, 171, 246, 0.15);
    color: var(--fluenzo-blue);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}
.pl-btn-refine:hover { background: var(--fluenzo-blue); color: #fff; }

/* LinkedIn actions row */
.pl-li-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 24px;
    max-width: 900px;
}
.pl-btn-li-connect {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: #E5E9EF;
    color: var(--text-dark);
    border: 0;
    border-radius: 999px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}
.pl-btn-li-connect:hover { background: #D6DCE6; }
.pl-li-icon {
    width: 22px; height: 22px;
    display: inline-flex;
    align-items: center; justify-content: center;
    background: #0A66C2;
    border-radius: 4px;
    flex-shrink: 0;
}
.pl-btn-li-manual {
    background: transparent;
    border: 0;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    padding: 8px 0;
}
.pl-btn-li-manual:hover { color: var(--text-dark); }

/* Info cards (Internal Referrals, Application URL) */
.pl-info-card {
    background: #E9F1FB;
    border: 1px solid rgba(76, 171, 246, 0.18);
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 16px;
    max-width: 900px;
}
.pl-info-card-label {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}
.pl-info-card-desc {
    font-size: 14px;
    color: var(--text-body);
    margin-bottom: 12px;
}
.pl-info-card-actions { display: flex; gap: 8px; margin-bottom: 10px; }
.pl-info-card-url-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pl-info-card-url {
    flex: 1;
    color: var(--fluenzo-blue);
    font-size: 15px;
    text-decoration: underline;
    word-break: break-all;
}
.pl-info-card-copy {
    width: 32px; height: 32px;
    display: inline-flex;
    align-items: center; justify-content: center;
    background: transparent;
    color: var(--text-dark);
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}
.pl-info-card-copy:hover { background: rgba(76, 171, 246, 0.15); }

/* Referral section inside info-card */
.pl-btn-referral {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fff;
    color: var(--text-dark);
    border: 1px solid var(--border-input);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.pl-btn-referral:hover { border-color: var(--fluenzo-blue); color: var(--fluenzo-blue); }
.pl-referral-list { display: flex; flex-direction: column; gap: 6px; }
.pl-referral-empty {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
}
.pl-referral-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    font-size: 14px;
}

/* Full JD collapsible */
.pl-jd-details {
    background: #F5F6F8;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 12px 16px;
    max-width: 900px;
    margin-bottom: 16px;
    font-size: 15px;
}
.pl-jd-details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
}
.pl-jd-body {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-soft);
    white-space: pre-wrap;
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.6;
}

/* Split actions (Back left, Continue right) */
.pl-actions-split {
    justify-content: space-between;
    max-width: 900px;
}
.pl-btn-back {
    background: #fff;
    color: var(--fluenzo-blue);
    border: 1px solid var(--fluenzo-blue);
    padding: 12px 34px;
}
.pl-btn-back:hover {
    background: rgba(76, 171, 246, 0.08);
}

/* ---------- Step 3: Find Candidates ---------- */
.pl-search-active {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 20px 60px;
    max-width: 560px;
    margin: 0 auto;
}
.pl-search-anim {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(76, 171, 246, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fluenzo-blue);
    margin-bottom: 24px;
}
.pl-search-anim svg { width: 32px; height: 32px; z-index: 2; }
.pl-search-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(76, 171, 246, 0.2);
    animation: plPulse 1.6s ease-out infinite;
}
@keyframes plPulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.6); opacity: 0; }
}
.pl-search-active h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.pl-search-active p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 22px;
}
.pl-search-progress {
    width: 100%;
    max-width: 360px;
    height: 6px;
    background: #E8ECF1;
    border-radius: 999px;
    overflow: hidden;
}
.pl-search-progress-bar {
    height: 100%;
    width: 30%;
    background: var(--fluenzo-blue);
    border-radius: 999px;
    transition: width 0.4s ease;
    animation: plIndeterminate 1.8s ease-in-out infinite;
}
@keyframes plIndeterminate {
    0% { margin-left: -30%; }
    100% { margin-left: 100%; }
}

/* Stats cards */
.pl-search-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
    max-width: 900px;
}
.pl-search-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
}
.pl-search-stat-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pl-search-stat-icon.found { background: #DDE9F7; color: var(--fluenzo-blue); }
.pl-search-stat-icon.screened { background: #FCEFB0; color: #E5B93A; }
.pl-search-stat-icon.shortlisted { background: #DDF0D8; color: #6FB155; }
.pl-search-stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pl-search-stat-num {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}
.pl-search-stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Candidate section */
.pl-cand-section { margin-bottom: 28px; max-width: 900px; }
.pl-cand-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.pl-cand-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}
.pl-count {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 6px;
}
.pl-cand-view-toggle {
    display: flex;
    gap: 2px;
    background: #F3F3F3;
    border-radius: 8px;
    padding: 3px;
}
.pl-view-btn {
    width: 32px; height: 32px;
    display: inline-flex;
    align-items: center; justify-content: center;
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-muted);
    transition: background 0.12s, color 0.12s;
}
.pl-view-btn.active { background: #fff; color: var(--fluenzo-blue); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }

.pl-cand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.pl-cand-grid.list-view { grid-template-columns: 1fr; }
.pl-cand-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    position: relative;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.pl-cand-card:hover {
    border-color: var(--fluenzo-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(76, 171, 246, 0.10);
}
.pl-cand-card.no-contact { opacity: 0.7; }

/* Avatar */
.pl-cand-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}
.av-1 { background: linear-gradient(135deg, #6366f1, #818cf8); }
.av-2 { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }
.av-3 { background: linear-gradient(135deg, #10b981, #34d399); }
.av-4 { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.av-5 { background: linear-gradient(135deg, #ef4444, #f87171); }
.av-6 { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }

/* Info block */
.pl-cand-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pl-cand-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pl-cand-title {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Contact items */
.pl-cand-contact {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 2px;
}
.pl-cand-contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pl-cand-contact-item svg { flex-shrink: 0; color: #94a3b8; }
.pl-cand-contact-item.email svg { color: #0ea5e9; }
.pl-cand-contact-item.phone svg { color: #10b981; }
.pl-cand-no-contact {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #d97706;
    font-style: italic;
}
.pl-cand-no-contact svg { color: #d97706; flex-shrink: 0; }

/* Meta (location + LinkedIn) */
.pl-cand-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}
.pl-cand-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #94a3b8;
}
.pl-cand-meta-item svg { flex-shrink: 0; }
.pl-cand-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #0077b5;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.15s;
}
.pl-cand-linkedin:hover { opacity: 0.75; }
.pl-cand-linkedin svg { flex-shrink: 0; }

/* Source badge */
.pl-cand-source {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #64748b;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.pl-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-style: italic;
}

/* ---------- Responsive (reflow only at <=1024; zoom fits the desktop band) ---------- */
@media (max-width: 1024px) {
    .pl-app { grid-template-columns: 260px 1fr; }
    .pl-sidebar { padding: 40px 24px; }
    .pl-main { padding: 40px; }
}
@media (max-width: 820px) {
    .pl-topbar { padding: 20px 24px 16px; }
    .pl-brand-wordmark { font-size: 26px; }
    .pl-app { grid-template-columns: 1fr; }
    .pl-sidebar { display: none; }
    .pl-main { padding: 32px 24px; }
    .pl-row-2, .pl-form-card .pl-row-2 { grid-template-columns: 1fr; }
    .pl-row-3, .pl-form-card .pl-row-3 { grid-template-columns: 1fr; }
    .pl-budget-row { grid-template-columns: 1fr; }
    .pl-step h1 { font-size: 28px; }
}

/* =================================================================
   HireXA pipeline redesign - page chrome + Step 1 layout
   (loaded AFTER all old rules so these win on specificity ties)
   ================================================================= */

/* Pipeline now also has 3 sidebar icons (Back removed) - uses dashboard.css's
   default padding-top: 126px, no override needed here. */

/* Pipeline & dashboard share the same blob (size + 42% opacity set in dashboard.css) */

/* Main content area - clears the 66px sidebar, sits below 80px header */
.dashboard .pl-main {
    position: relative;
    z-index: 3;
    padding: 24px 55px 30px 146px;
    /* Page chrome (header + sidebar) is locked; the main content area gets
       its own scroll context so steps that overflow (e.g. Step 3 with 33
       agent cards) can scroll vertically without losing the chrome. */
    height: calc(var(--app-vh, 100vh) - 80px);
    overflow-y: auto;
    background: transparent;
}

/* ---------- Horizontal stepper ---------- */
.pl-stepper {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 28px;
    margin-left: 0;
    max-width: 1180px;
}
.pl-stepper .pl-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    background: transparent;
    border: 0;
    padding: 0;
    flex: 0 0 auto;
}
.pl-stepper .pl-nav-item::after {
    display: none !important;
}
.pl-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #CEEAFF;
    border: 0.5px solid rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 19px;
    color: #9B9C9E;
    flex-shrink: 0;
    letter-spacing: 0.1em;
}
.pl-stepper .pl-nav-item.active .pl-step-num {
    background: #FFDF67;
    color: #24282B;
}
.pl-step-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0;
}
.pl-step-text strong {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 121%;
    color: #24282B;
}
.pl-step-text span {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 12px;
    line-height: 13px;
    letter-spacing: 0.1em;
    color: #9B9C9E;
}
.pl-step-line {
    width: auto;
    height: 0;
    border-top: 1px solid rgba(155, 156, 158, 0.35);
    flex: 1 1 50px;
    min-width: 50px;
    max-width: 110px;
    margin: 0 14px;
}

/* ---------- Step 1 title block ---------- */
.pl-step .pl-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 2px;
    margin-left: 50px;
    line-height: 121.02%;
    font-size: 30px;
    font-weight: 500;
    letter-spacing: normal;
}
.pl-title-bold {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 30px;
    line-height: 121.02%;
    color: #24282B;
}
.pl-title-italic {
    font-family: 'Fraunces', 'Georgia', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 30px;
    line-height: 121.02%;
    letter-spacing: -0.07em;
    color: #5B6168;
}
.pl-title-desc {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 18px;
    color: #9B9C9E;
    margin-bottom: 12px;
    margin-left: 50px;
    max-width: 700px;
}

/* ---------- Two-column grid: form (900) + preview (460), scaled ~1.39x ---------- */
.pl-grid {
    display: grid;
    grid-template-columns: 900px 460px;
    gap: 64px;
    align-items: start;
    margin-bottom: 14px;
    margin-left: 50px;
    max-width: 1450px;
}

/* ---------- Form card (left) ---------- */
.pl-form-card {
    background: #FFFFFF;
    /* Very faint outer hairline + soft drop shadow. */
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.035),
                0 2px 10px rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 18px 32px 20px;
}
.pl-form-card .pl-field {
    margin-bottom: 11px;
    gap: 6px;
}
.pl-form-card .pl-field:last-child { margin-bottom: 0; }
.pl-form-card .pl-row-2 {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 11px;
}
.pl-form-card .pl-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 11px;
}
.pl-form-card label {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 121%;
    color: #24282B;
    margin-bottom: 6px;
}
.pl-form-card .req {
    color: #4CABF6;
    font-weight: 400;
}

/* Inputs scaled for the larger card */
.pl-form-card input[type="text"],
.pl-form-card input[type="number"],
.pl-form-card input[type="email"],
.pl-form-card input[type="tel"],
.pl-form-card select,
.pl-form-card textarea {
    width: 100%;
    background: #FFFFFF;
    border: 0.5px solid rgba(158, 158, 158, 0.45);
    border-radius: 8px;
    padding: 11px 14px;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 17px;
    letter-spacing: 0.05em;
    color: #24282B;
    box-shadow: none;
    min-height: 0;
}
.pl-form-card input:focus,
.pl-form-card select:focus,
.pl-form-card textarea:focus {
    border-color: #4CABF6;
    box-shadow: 0 0 0 2px rgba(76, 171, 246, 0.15);
}
.pl-form-card input::placeholder,
.pl-form-card textarea::placeholder {
    color: #9B9C9E;
    letter-spacing: 0.1em;
}
.pl-form-card textarea {
    resize: none;
    min-height: 70px;
    line-height: 17px;
}
.pl-form-card select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2324282B' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 34px;
}

/* JD textarea hint + counter footer */
/* Counter pinned to the bottom-right INSIDE the textarea (Figma); hint sits
   on its own line below. */
.pl-jd-wrap { position: relative; }
.pl-jd-wrap textarea { padding-bottom: 24px; }   /* room for the counter */
.pl-jd-count {
    position: absolute;
    bottom: 8px;
    right: 12px;
    pointer-events: none;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 11px;
    line-height: 12px;
    letter-spacing: 0.1em;
    color: #9B9C9E;
    background: transparent;
}
/* At the cap the counter stops being a neutral hint and becomes the reason the
   next keystroke does nothing, so it turns red to explain itself. */
.pl-jd-count.is-max {
    color: #E2574C;
    font-weight: 400;
}
/* Shown only when input was actually cut off (a paste over the cap) - the
   browser truncates silently otherwise. */
.pl-jd-limit {
    display: block;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 12px;
    line-height: 1.35;
    color: #E2574C;
}
.pl-jd-limit.hidden { display: none; }
.pl-jd-hint {
    display: block;
    /* .pl-field uses flex-column with gap:6px, which is the visible spacing
       between the textarea and the hint. Pull the hint up to close the gap. */
    margin-top: -4px;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 11px;
    line-height: 12px;
    letter-spacing: 0.1em;
    color: #9B9C9E;
}

/* Budget row: INR (76px) | Min | Max */
.pl-form-card .pl-budget-row {
    grid-template-columns: 76px 1fr 1fr;
    gap: 12px;
    align-items: center;
}
.pl-form-card .pl-cur {
    width: 76px;
    max-width: 76px;
    padding-right: 28px;
    background-position: right 8px center;
    background-size: 12px;
}

/* Application Deadline chips */
.pl-deadline-options {
    display: flex;
    gap: 16px;
    margin-bottom: 0;
    flex-wrap: wrap;
}
.pl-chip {
    position: relative;
    width: 76px;
    height: 32px;
    background: #FFFFFF;
    border: 0.5px solid rgba(158, 158, 158, 0.45);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    box-shadow: none;
}
.pl-chip input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}
.pl-chip span {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 13px;
    line-height: 14px;
    letter-spacing: 0.1em;
    color: #24282B;
}
.pl-chip:hover {
    border-color: #4CABF6;
}
.pl-chip:has(input[type="radio"]:checked) {
    background: #CEEAFF;
    border-color: #FFD33C;
    box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.25),
                0px 1px 1.4px rgba(255, 211, 60, 0.38);
}

/* Custom chip - when Custom radio is selected, the chip morphs in place into a
   tiny number input (1-90). No separate field appears below. */
.pl-chip-custom .pl-chip-input {
    display: none;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    text-align: center;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.06em;
    color: #24282B;
    outline: none;
    padding: 0 6px;
    /* Hide native number spinner buttons */
    -moz-appearance: textfield;
}
.pl-chip-custom .pl-chip-input::-webkit-outer-spin-button,
.pl-chip-custom .pl-chip-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.pl-chip-custom .pl-chip-input::placeholder {
    color: #9B9C9E;
    font-weight: 300;
    letter-spacing: 0.1em;
}
.pl-chip-custom:has(input[type="radio"]:checked) .pl-chip-label { display: none; }
.pl-chip-custom:has(input[type="radio"]:checked) .pl-chip-input {
    display: block;
    /* Reserve room on the right for the spinner arrows. */
    padding-right: 16px;
}

/* Up/down spinner arrows - visible only when Custom is checked. Sit on the
   right side of the chip, stacked vertically. Wired to PL.bumpDeadline(±1). */
.pl-chip-spin {
    display: none;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 1px;
    pointer-events: auto;
}
.pl-chip-custom:has(input[type="radio"]:checked) .pl-chip-spin { display: flex; }
.pl-chip-spin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 11px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #5B6168;
    border-radius: 2px;
    transition: background 0.12s ease, color 0.12s ease;
}
.pl-chip-spin-btn:hover { background: rgba(76, 171, 246, 0.10); color: #4CABF6; }
.pl-chip-spin-btn:active { background: rgba(76, 171, 246, 0.18); }
.pl-deadline-hint {
    display: block;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 11px;
    line-height: 12px;
    letter-spacing: 0.1em;
    color: #9B9C9E;
    /* Same trick as .pl-jd-hint - pull up to close the .pl-field 6px flex gap. */
    margin-top: -4px;
}

/* ---------- Live Preview (right column) ---------- */
.pl-preview-col {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative; /* anchor for the absolutely-positioned label below */
}
.pl-preview-label {
    /* Float the label just above the preview card so the card's top edge
       aligns with the form-card's top edge (the title/desc sit above the
       grid on the left side - there's nothing on the right, so this label
       floats into that whitespace instead of pushing the card down). */
    position: absolute;
    bottom: 100%;
    left: 4px;
    margin-bottom: 6px;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 11px;
    line-height: 12px;
    letter-spacing: 0.1em;
    color: #5B6168;
    text-align: left;
}
.pl-preview-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px 26px 26px;
    height: 294px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    /* Very faint outer hairline + soft drop shadow. The 0 0 0 0 blue ring is
       kept so the pl-breath animation can pulse on top of it. */
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.035),
                0 2px 10px rgba(0, 0, 0, 0.06),
                0 0 0 0 rgba(76, 171, 246, 0);
    animation: pl-breath 4.5s ease-in-out infinite;
}
/* Soft breathing glow - feels like the card is "thinking" without being noisy */
@keyframes pl-breath {
    0%, 100% {
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.035),
                    0 2px 10px rgba(0, 0, 0, 0.06),
                    0 0 0 0 rgba(76, 171, 246, 0);
    }
    50% {
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.035),
                    0 2px 10px rgba(0, 0, 0, 0.06),
                    0 0 26px 0 rgba(76, 171, 246, 0.18);
    }
}
/* Faint dot-grid texture in the background - adds techy depth */
.pl-preview-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(76, 171, 246, 0.10) 0.8px, transparent 1.4px);
    background-size: 16px 16px;
    pointer-events: none;
    opacity: 0.45;
    z-index: 0;
    mask-image: linear-gradient(135deg, transparent 40%, #000 100%);
    -webkit-mask-image: linear-gradient(135deg, transparent 40%, #000 100%);
}
.pl-preview-card > * { position: relative; z-index: 1; }
/* AI sparkle particles drifting upward through the card.
   Each sparkle is a 4-point star SVG that fades in, rotates slowly,
   gains slight horizontal drift, and fades out near the top. Staggered
   delays + varied durations so the field never repeats visibly. */
.pl-preview-card .pl-sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}
.pl-preview-card .pl-sparkles i {
    position: absolute;
    bottom: -16px;
    width: 9px;
    height: 9px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234CABF6'><path d='M12 1L13.6 9.4 22 11l-8.4 1.6L12 21l-1.6-8.4L2 11l8.4-1.6z'/></svg>");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0;
    will-change: transform, opacity;
}
.pl-preview-card .pl-sparkles i:nth-child(1)  { left: 8%;  width: 8px;  height: 8px;  animation: pl-sparkle 6.4s linear 0s    infinite; }
.pl-preview-card .pl-sparkles i:nth-child(2)  { left: 18%; width: 6px;  height: 6px;  animation: pl-sparkle 5.2s linear 1.2s  infinite; }
.pl-preview-card .pl-sparkles i:nth-child(3)  { left: 30%; width: 7px;  height: 7px;  animation: pl-sparkle 7.0s linear 3.0s  infinite; }
.pl-preview-card .pl-sparkles i:nth-child(4)  { left: 42%; width: 5px;  height: 5px;  animation: pl-sparkle 5.8s linear 0.7s  infinite; }
.pl-preview-card .pl-sparkles i:nth-child(5)  { left: 54%; width: 8px;  height: 8px;  animation: pl-sparkle 6.6s linear 2.4s  infinite; }
.pl-preview-card .pl-sparkles i:nth-child(6)  { left: 66%; width: 6px;  height: 6px;  animation: pl-sparkle 7.4s linear 4.1s  infinite; }
.pl-preview-card .pl-sparkles i:nth-child(7)  { left: 76%; width: 7px;  height: 7px;  animation: pl-sparkle 5.6s linear 1.8s  infinite; }
.pl-preview-card .pl-sparkles i:nth-child(8)  { left: 86%; width: 5px;  height: 5px;  animation: pl-sparkle 6.2s linear 3.5s  infinite; }
.pl-preview-card .pl-sparkles i:nth-child(9)  { left: 92%; width: 8px;  height: 8px;  animation: pl-sparkle 6.8s linear 0.4s  infinite; }
.pl-preview-card .pl-sparkles i:nth-child(10) { left: 24%; width: 5px;  height: 5px;  animation: pl-sparkle 5.4s linear 4.7s  infinite; }
@keyframes pl-sparkle {
    0%   { transform: translate3d(0, 0, 0)     rotate(0deg)   scale(0.4); opacity: 0; }
    12%  { opacity: 0.8; }
    50%  { transform: translate3d(8px, -160px, 0) rotate(180deg) scale(1);  opacity: 0.7; }
    88%  { opacity: 0.5; }
    100% { transform: translate3d(-4px, -310px, 0) rotate(360deg) scale(0.5); opacity: 0; }
}
.pl-preview-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}
.pl-preview-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #CEEAFF;
    border: 0.2px solid #4CABF6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}
/* Two offset radar ripples around the icon - continuous "live" pulse */
.pl-preview-icon::before,
.pl-preview-icon::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1px solid rgba(76, 171, 246, 0.55);
    animation: pl-ripple 2.4s ease-out infinite;
    pointer-events: none;
}
.pl-preview-icon::after {
    animation-delay: 1.2s;
}
@keyframes pl-ripple {
    0%   { transform: scale(0.85); opacity: 0.85; }
    100% { transform: scale(1.9);  opacity: 0; }
}
/* Slow drift of the icon's blue ring while drafting */
.pl-preview-icon svg {
    animation: pl-iconSpin 6s linear infinite;
}
@keyframes pl-iconSpin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.pl-preview-icon svg {
    width: 21px;
    height: 21px;
}
.pl-preview-status {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 13px;
    line-height: 14px;
    letter-spacing: 0.1em;
    color: #5B6168;
    animation: pl-statusPulse 2s ease-in-out infinite;
}
@keyframes pl-statusPulse {
    0%, 100% { opacity: 0.55; }
    50%      { opacity: 1; }
}

/* Typewriter caret - appears at the end of the actively-typing element */
.pl-preview-card .pl-typing::after {
    content: "▍";
    color: #4CABF6;
    margin-left: 2px;
    animation: pl-caret 0.7s steps(1) infinite;
    font-weight: 400;
}
@keyframes pl-caret {
    0%, 49%   { opacity: 1; }
    50%, 100% { opacity: 0; }
}
.pl-preview-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 17px;
    line-height: 121%;
    color: #24282B;
    margin-bottom: 6px;
}
.pl-preview-meta {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 11px;
    line-height: 12px;
    letter-spacing: 0.1em;
    color: #5B6168;
    margin-bottom: 14px;
}
.pl-preview-body {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 17px;
    color: #5B6168;
    flex: 1 1 auto;
    overflow: hidden;
    margin-bottom: 14px;
}
.pl-preview-tags {
    display: flex;
    gap: 6px;
    margin-top: auto;
}
.pl-tag {
    background: #24282B;
    color: #EAB000;
    border-radius: 10px;
    padding: 4px 12px;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 11px;
    line-height: 12px;
    letter-spacing: 0.1em;
}
.pl-preview-label {
    font-size: 13px;
}

/* ---------- Bottom action buttons ---------- */
.pl-actions.pl-actions-split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1424px;
    margin-top: 14px;
    margin-left: 50px;
    padding: 0;
}
/* When only Continue is present (Step 2), push it to the right edge */
.pl-actions.pl-actions-end {
    justify-content: flex-end;
}
.pl-btn.pl-btn-back-soft {
    background: #EEF7FE;
    color: #4CABF6;
    box-shadow: 1px 2px 2.4px rgba(0, 0, 0, 0.19);
    border-radius: 10px;
    padding: 10px 38px 11px;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.1em;
    border: 0;
    cursor: pointer;
    height: 42px;
    min-width: 0;
}
.pl-btn.pl-btn-back-soft:hover {
    background: #DDEBF8;
}
.pl-step .pl-actions-split .pl-btn-primary {
    background: #4CABF6;
    color: #fff;
    box-shadow: 1px 2px 2.4px rgba(0, 0, 0, 0.19);
    border-radius: 10px;
    padding: 10px 38px 11px;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.1em;
    border: 0;
    cursor: pointer;
    height: 42px;
    min-width: 0;
}
.pl-step .pl-actions-split .pl-btn-primary:hover {
    background: #2B9CF0;
}

/* Reset .pl-step h1 baseline for the new title (was 38/700) */
.pl-step h1.pl-title {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 2px;
    letter-spacing: normal;
}

/* Action rows (Continue / Hire Now) - locked to ONE position across all four
   steps so the button never shifts as you move through the wizard. Geometry
   matches Step 4's "Hire now": container right edge at max-width 1500px, no
   left inset. Vertical bottom-anchoring is handled by the flex-column rules
   further down (every step pins its footer to the viewport bottom). */
#step-1 .pl-actions,
#step-2 .pl-actions,
#step-3 .pl-actions,
#step-4 .pl-actions {
    max-width: 1500px;
    margin-left: 0;
    margin-right: 0;
    margin-top: 6px;
}
/* Steps 3 & 4: the grid fills the full height, so float the action button over
   the bottom of the content instead of reserving a flow row (that row WAS the
   white band). Geometry is pinned to the exact locked position steps 1-2 use:
   a max-width:1500px box anchored at the content-left with the button pushed to
   its right edge (justify-content:flex-end from .pl-actions) and bottom = the
   content-box bottom - so the button does NOT shift between steps. The row is
   click-through (pointer-events:none) except the button, so the empty part
   doesn't block the cards beneath it. Scroll areas get bottom padding (below)
   so the last cards clear the floating button. */
#step-3 .pl-actions,
#step-4 .pl-actions {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 1500px;
    margin: 0;
    z-index: 6;
    pointer-events: none;
}
#step-3 .pl-actions > *,
#step-4 .pl-actions > * {
    pointer-events: auto;
}
@media (max-width: 1024px) {
    #step-1 .pl-actions,
    #step-2 .pl-actions,
    #step-3 .pl-actions,
    #step-4 .pl-actions { max-width: 920px; }
}
@media (max-width: 820px) {
    #step-1 .pl-actions,
    #step-2 .pl-actions,
    #step-3 .pl-actions,
    #step-4 .pl-actions { max-width: 480px; }
}
/* Continue / Hire Now button - Figma shows a soft rectangle (not a full pill)
   with a subtle drop shadow. Override the default .pl-btn pill shape here. */
#step-1 .pl-actions .pl-btn-primary,
#step-2 .pl-actions .pl-btn-primary,
#step-3 .pl-actions .pl-btn-primary,
#step-4 .pl-actions .pl-btn-primary {
    border-radius: 10px;
    padding: 12px 28px;
    box-shadow: 0 4px 10px rgba(76, 171, 246, 0.35), 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Hide leftover step badge (now using stepper) */
.pl-step .pl-step-badge { display: none !important; }

/* Steps 2-4 keep their existing layout - just clear the old desc baseline */
.pl-step:not(#step-1) h1 {
    font-size: 30px;
}

/* =================================================================
   STEP 2 - LinkedIn Post page
   ================================================================= */

/* Title variant: "Your <italic>LinkedIn post</italic>, drafted." */
.pl-step #step-2 h1.pl-title,
.pl-step h1.pl-title-2 {
    font-size: 30px;
    font-weight: 500;
    line-height: 121.02%;
    margin-bottom: 2px;
    margin-left: 50px;
    letter-spacing: normal;
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.pl-title-2 .pl-title-tail {
    display: inline;
}
.pl-title-2 .pl-title-italic {
    font-family: 'Fraunces', 'Georgia', serif;
    font-style: italic;
    font-weight: 300;
    color: #5B6168;
    letter-spacing: -0.07em;
    font-size: 30px;
    line-height: 121.02%;
}
.pl-title-2 .pl-title-bold {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #24282B;
    font-size: 30px;
    line-height: 121.02%;
}

/* Two-column grid: post card (647) + side stack (335) */
.pl-grid-step2 {
    display: grid;
    grid-template-columns: 820px 460px;
    gap: 64px;
    align-items: start;
    margin-bottom: 30px;
    margin-left: 50px;
    max-width: 1380px;
}

/* ---------- LEFT: LinkedIn Post card ---------- */
.pl-li-card {
    background: #FFFFFF;
    /* Very faint outer hairline + soft drop shadow (matches form/preview cards). */
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.035),
                0 2px 10px rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.pl-li-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    /* Fainter divider - matches Figma's barely-there hairline. */
    border-bottom: 0.4px solid rgba(96, 96, 96, 0.18);
}
.pl-li-mini-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pl-li-card-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: #24282B;
}
.pl-li-pill {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 10px;
    background: #CEEAFF;
    border-radius: 10px;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 11px;
    line-height: 12px;
    letter-spacing: 0.1em;
    color: #4CABF6;
}
.pl-li-card-actions {
    margin-left: auto;
    display: inline-flex;
    gap: 6px;
}
.pl-li-icon-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: transparent;
    border: 0;
    color: #5B6168;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.pl-li-icon-btn:hover {
    background: #E2F2FF;
    color: #4CABF6;
}

.pl-li-card-body {
    flex: 0 0 auto;
    padding: 18px 26px;
    height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}
/* When refine is in flight, dim + blur the underlying post text */
.pl-li-card-body.refining #li-display,
.pl-li-card-body.refining #jd-display,
.pl-li-card-body.refining .pl-edit-area {
    filter: blur(2px);
    opacity: 0.45;
    transition: filter 0.25s ease, opacity 0.25s ease;
    pointer-events: none;
    user-select: none;
}

/* ---------- AI refine loader overlay ---------- */
.pl-li-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 24px;
    background: rgba(248, 249, 251, 0.72);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.pl-li-loader.active {
    opacity: 1;
    pointer-events: auto;
}

/* Orb: stacked concentric rotating rings + pulsing core */
.pl-li-loader-orb {
    position: relative;
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pl-li-loader-ring {
    position: absolute;
    border-radius: 50%;
    border-style: solid;
    border-color: transparent;
}
/* Outer ring - blue, slow */
.pl-li-loader-ring-1 {
    inset: 0;
    border-width: 2px;
    border-top-color: #4CABF6;
    border-right-color: rgba(76, 171, 246, 0.35);
    animation: pl-orb-spin 1.6s linear infinite;
}
/* Middle ring - yellow, opposite direction, faster */
.pl-li-loader-ring-2 {
    inset: 11px;
    border-width: 2px;
    border-bottom-color: #FFDF67;
    border-left-color: rgba(255, 223, 103, 0.45);
    animation: pl-orb-spin 1.1s linear infinite reverse;
}
/* Inner ring - soft blue dashed-feel, slowest */
.pl-li-loader-ring-3 {
    inset: 22px;
    border-width: 1.5px;
    border-top-color: rgba(76, 171, 246, 0.6);
    border-left-color: rgba(76, 171, 246, 0.2);
    border-right-color: rgba(76, 171, 246, 0.6);
    animation: pl-orb-spin 2.4s linear infinite;
}
@keyframes pl-orb-spin {
    to { transform: rotate(360deg); }
}
/* Core: pulsing dot in the center */
.pl-li-loader-core {
    width: 10px;
    height: 10px;
    background: #4CABF6;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(76, 171, 246, 0.55);
    animation: pl-orb-pulse 1.2s ease-in-out infinite;
}
@keyframes pl-orb-pulse {
    0%, 100% { transform: scale(0.7); opacity: 0.55; }
    50%      { transform: scale(1.3); opacity: 1; }
}

/* Status text + animated dots */
.pl-li-loader-text {
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    letter-spacing: 0.1em;
    color: #5B6168;
}
.pl-li-loader-dots {
    display: inline-flex;
    margin-left: 1px;
}
.pl-li-loader-dots span {
    opacity: 0;
    animation: pl-loader-dot 1.2s ease-in-out infinite;
}
.pl-li-loader-dots span:nth-child(1) { animation-delay: 0s; }
.pl-li-loader-dots span:nth-child(2) { animation-delay: 0.18s; }
.pl-li-loader-dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes pl-loader-dot {
    0%, 70%, 100% { opacity: 0; }
    35%           { opacity: 1; }
}

/* Shimmering progress bar below the text */
.pl-li-loader-bar {
    width: 220px;
    height: 2px;
    background: rgba(76, 171, 246, 0.12);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}
.pl-li-loader-bar span {
    position: absolute;
    top: 0;
    left: -45%;
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(76, 171, 246, 0.0) 10%,
        rgba(76, 171, 246, 0.95) 50%,
        rgba(76, 171, 246, 0.0) 90%,
        transparent 100%);
    animation: pl-loader-bar 1.6s ease-in-out infinite;
}
@keyframes pl-loader-bar {
    0%   { left: -45%; }
    100% { left: 100%; }
}
.pl-li-card-body #li-display,
.pl-li-card-body #jd-display {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 19px;
    color: #5B6168;
    white-space: pre-wrap;
    word-break: break-word;
}
.pl-li-card-body .pl-edit-area {
    width: 100%;
    background: transparent;
    border: 0.5px solid rgba(158, 158, 158, 0.45);
    border-radius: 8px;
    padding: 12px 14px;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 19px;
    color: #24282B;
    resize: vertical;
    min-height: 320px;
    outline: none;
}
.pl-li-card-body .pl-edit-area:focus {
    border-color: #4CABF6;
    box-shadow: 0 0 0 2px rgba(76, 171, 246, 0.15);
}
.pl-li-card-body .pl-edit-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

/* Refine row at bottom of card */
.pl-li-refine {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    /* Same faded hairline as the header divider. */
    border-top: 0.4px solid rgba(96, 96, 96, 0.18);
}
.pl-li-refine-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #CEEAFF;
    border: 0.2px solid #4CABF6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pl-li-refine-icon svg {
    width: 14px;
    height: 14px;
}
.pl-li-refine input {
    flex: 1;
    border: 0;
    background: transparent;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 13px;
    line-height: 14px;
    letter-spacing: 0.05em;
    color: #24282B;
    outline: 0;
    min-width: 0;
}
.pl-li-refine input::placeholder {
    color: #9B9C9E;
    letter-spacing: 0.1em;
}
.pl-btn-apply {
    background: #4CABF6;
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 6px 18px;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 14px;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.15s;
}
.pl-btn-apply:hover { background: #2B9CF0; }

/* ---------- RIGHT: side stack ---------- */
.pl-side-stack {
    display: flex;
    flex-direction: column;
    gap: 26px;
}
.pl-side-section {
    display: flex;
    flex-direction: column;
    position: relative; /* anchor for the absolutely-positioned label below */
}
.pl-side-label {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 12px;
    line-height: 13px;
    letter-spacing: 0.1em;
    color: #5B6168;
    margin-bottom: 12px;
    text-align: left;
    padding-left: 4px;
}

/* First section's label floats just above its card so the card itself starts
   at the same Y as the LinkedIn Post card on the left. */
.pl-side-stack > .pl-side-section:first-child > .pl-side-label {
    position: absolute;
    bottom: 100%;
    left: 4px;
    margin-bottom: 6px;
}


/* URL card */
.pl-url-card {
    background: #FFFFFF;
    /* Soft elevated look - faint hairline + diffused drop shadow. */
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.035),
                0 2px 8px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pl-url-input {
    flex: 1;
    background: #FFFFFF;
    border: 0.5px solid rgba(76, 171, 246, 0.55);
    border-radius: 4px;
    padding: 8px 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pl-url-text {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 13px;
    line-height: 15px;
    letter-spacing: 0.05em;
    color: #4CABF6;
    text-decoration: underline;
    word-break: break-all;
}
.pl-url-copy {
    width: 32px;
    height: 32px;
    background: #E2F2FF;
    border: 0.5px solid rgba(76, 171, 246, 0.55);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}
.pl-url-copy:hover { background: #CEEAFF; }
.pl-side-hint {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 13px;
    line-height: 16px;
    letter-spacing: 0.05em;
    color: #9B9C9E;
    margin-top: 3px;
    padding: 0 4px;
}

/* Referral upload zone */
.pl-referral-zone {
    background: #FFFFFF;
    border: 0.7px dashed rgba(155, 156, 158, 0.6);
    border-radius: 12px;
    box-shadow: 0px 1px 4.2px rgba(0, 0, 0, 0.10);
    padding: 18px 16px 18px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-height: 180px;
    justify-content: center;
}
.pl-referral-zone:hover {
    border-color: #4CABF6;
    background: #FBFCFE;
}
.pl-ref-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}
.pl-ref-title {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 15px;
    letter-spacing: 0.08em;
    color: #24282B;
    margin: 0;
}
.pl-ref-desc {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 12px;
    line-height: 14px;
    letter-spacing: 0.06em;
    color: #9B9C9E;
    margin: 0;
    max-width: 260px;
}
.pl-ref-btn {
    margin-top: 8px;
    background: #EEF7FE;
    color: #4CABF6;
    border: 0;
    border-radius: 6px;
    padding: 8px 22px;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 14px;
    letter-spacing: 0.1em;
    box-shadow: 1px 2px 2.4px rgba(0, 0, 0, 0.10);
    cursor: pointer;
    transition: background 0.15s;
}
.pl-ref-btn:hover { background: #DDEBF8; }

/* Step 2: ask a hiring manager to post on LinkedIn */
.pl-hmpost-check {
    display: flex; align-items: flex-start; gap: 9px;
    cursor: pointer;
    font-family: 'Lexend Deca', sans-serif; font-weight: 300; font-size: 13.5px;
    line-height: 1.4; letter-spacing: 0.02em; color: #3F464E;
}
.pl-hmpost-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.pl-hmpost-check-box {
    flex: none; margin-top: 1px;
    width: 17px; height: 17px; border-radius: 5px;
    border: 1.5px solid #C9D2DC; background: #FFFFFF;
    position: relative; transition: background 0.15s, border-color 0.15s;
}
.pl-hmpost-check input:checked + .pl-hmpost-check-box {
    background: #4CABF6; border-color: #4CABF6;
}
.pl-hmpost-check input:checked + .pl-hmpost-check-box::after {
    content: ''; position: absolute; left: 5px; top: 2px;
    width: 4px; height: 8px; border: solid #FFFFFF; border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.pl-hmpost-body { margin-top: 12px; }
.pl-hmpost-email {
    width: 100%; box-sizing: border-box; height: 40px; padding: 0 13px;
    background: #FFFFFF; border: 1px solid #DEE1E5; border-radius: 8px;
    font-family: 'Lexend Deca', sans-serif; font-weight: 300; font-size: 14px;
    color: #24282B; outline: none; transition: border-color 0.15s;
}
.pl-hmpost-email:focus { border-color: #4CABF6; }
.pl-hmpost-status {
    margin-top: 7px; min-height: 15px;
    font-family: 'Lexend Deca', sans-serif; font-weight: 300; font-size: 12.5px;
    letter-spacing: 0.02em; color: #9B9C9E;
}
.pl-hmpost-status.ok { color: #1B7A3E; }
.pl-hmpost-status.error { color: #E2574C; }

/* Multi-manager add row + chips */
.pl-hmpost-addrow { display: flex; gap: 8px; align-items: center; }
.pl-hmpost-addrow .pl-hmpost-email { flex: 1 1 auto; }
.pl-hmpost-add-btn {
    flex: none; height: 40px; padding: 0 18px; border-radius: 8px;
    border: 1px solid #4CABF6; background: #EAF5FE; color: #2A7FC4;
    font-family: 'Lexend Deca', sans-serif; font-weight: 500; font-size: 14px;
    cursor: pointer; transition: background 0.15s, color 0.15s;
}
.pl-hmpost-add-btn:hover { background: #4CABF6; color: #FFFFFF; }
.pl-hmpost-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pl-hmpost-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 6px 5px 12px; border-radius: 16px;
    background: #EDF6FF; border: 1px solid #CBE5FB;
    font-family: 'Lexend Deca', sans-serif; font-weight: 400; font-size: 13px;
    letter-spacing: 0.02em; color: #24282B;
}
.pl-hmpost-chip-x {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 50%; border: none;
    background: #CBE5FB; color: #2A7FC4; cursor: pointer;
    font-size: 16px; line-height: 1; transition: background 0.15s, color 0.15s;
}
.pl-hmpost-chip-x:hover { background: #4CABF6; color: #FFFFFF; }

/* ---------- Bottom row: LinkedIn buttons ---------- */
.pl-li-row {
    display: flex;
    align-items: center;
    /* Spread the two buttons across the LinkedIn Post card's width - Connect
       on the left, Open LinkedIn Manually flush with the card's right edge. */
    justify-content: space-between;
    gap: 36px;
    margin-left: 50px;
    /* .pl-grid-step2 first column is 820px → cap the row width to the post
       card so the right button aligns with the card's right edge. */
    max-width: 820px;
    margin-top: 14px;
    margin-bottom: 4px;
}
.pl-btn-li-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #EEF7FE;
    color: #4CABF6;
    border: 0;
    border-radius: 6px;
    padding: 9px 24px;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    letter-spacing: 0.1em;
    box-shadow: 1px 2px 2.4px rgba(0, 0, 0, 0.10);
    cursor: pointer;
    height: 38px;
    min-width: 220px;
    transition: background 0.15s;
}
.pl-btn-li-soft:hover { background: #DDEBF8; }
.pl-btn-li-soft svg { fill: currentColor; }
.pl-btn-li-soft:disabled { cursor: default; opacity: 0.9; }
/* Stage 2 - LinkedIn connected, ready to publish (green accent). */
.pl-btn-li-soft.pl-li-ready { background: #E7F6EE; color: #059669; }
.pl-btn-li-soft.pl-li-ready:hover { background: #D6EFE0; }
/* Published - solid confirmation. */
.pl-btn-li-soft.pl-li-done { background: #059669; color: #FFFFFF; }
.pl-btn-li-soft.pl-li-done:hover { background: #059669; }
.pl-btn-li-soft.pl-li-done svg { fill: none; stroke: #FFFFFF; }

/* ---- Step 2: "Post to LinkedIn" deferred-choice dropdown ---- */
.pl-li-dropdown { position: relative; display: inline-block; }
.pl-li-dd-toggle .pl-li-dd-caret { fill: none; stroke: currentColor; transition: transform .15s ease; }
.pl-li-dropdown.open .pl-li-dd-caret { transform: rotate(180deg); }
/* Active accent when at least one target is ticked. */
.pl-btn-li-soft.pl-li-dd-toggle.has-selection { background: #E7F6EE; color: #059669; }
.pl-li-dd-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    min-width: 300px;
    background: #FFFFFF;
    border: 1px solid #E3EAF2;
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
    padding: 6px;
    font-family: 'Lexend Deca', sans-serif;
}
.pl-li-dd-panel.hidden { display: none; }
.pl-li-dd-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #24282B;
}
.pl-li-dd-opt:hover { background: #F4F8FC; }
.pl-li-dd-opt input[type="checkbox"] { width: 15px; height: 15px; accent-color: #4CABF6; cursor: pointer; }
.pl-li-dd-opt input[type="checkbox"]:disabled { cursor: not-allowed; }
.pl-li-dd-name { flex: 1; }
.pl-li-dd-status {
    font-size: 12px;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #94A3B8;
}
.pl-li-dd-status::before {
    content: "";
    width: 7px; height: 7px; border-radius: 50%;
    background: #CBD5E1;
    display: inline-block;
}
.pl-li-dd-status.connected { color: #059669; }
.pl-li-dd-status.connected::before { background: #10B981; }
.pl-li-dd-status.soon { color: #C2872B; }
.pl-li-dd-status.soon::before { background: #E0A33E; }
/* "Connect" affordance for a not-connected target - a plain blue link, no dot. */
.pl-li-dd-status.is-connect { color: #4CABF6; cursor: pointer; text-decoration: underline; font-weight: 500; }
.pl-li-dd-status.is-connect::before { display: none; }
.pl-li-dd-status.is-connect:hover { color: #2D8BD8; }
/* "Disconnect" link shown beside a Connected target (personal / company). */
.pl-li-dd-disconnect {
    border: 0;
    background: transparent;
    color: #DC2626;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    font-family: inherit;
    letter-spacing: 0.02em;
}
.pl-li-dd-disconnect:hover { color: #B91C1C; }
.pl-li-dd-opt.disabled { opacity: 0.7; }

/* Step 2 specific overrides for the JD details collapsible - keep tucked away */
/* Collapsible wrapper is now just a transparent shell - the editable JD card
   inside carries its own background, hairline and shadow (same component as the
   LinkedIn Post card), so the details element must not double-wrap it. */
#step-2 .pl-jd-details {
    margin-top: 16px;
    margin-left: 50px;
    /* Match the Step 2 grid footprint (820 + 64 gap + 460 = 1344) so the
       expanded JD card's right edge lines up with the referrals column above
       it instead of overhanging by ~80px. */
    max-width: 1344px;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}
#step-2 .pl-jd-details summary {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 12px;
    color: #9B9C9E;
    letter-spacing: 0.1em;
    cursor: pointer;
    padding: 6px 0;
}
/* Space between the summary toggle and the card once expanded. */
#step-2 .pl-jd-details[open] summary {
    margin-bottom: 12px;
}

/* =================================================================
   STEP 3 - Pick Interviewers
   ================================================================= */

/* Step 3 title/desc/actions sit flush with the grid's left edge (no +50 shift) */
#step-3 .pl-title-2,
#step-3 .pl-title-desc {
    margin-left: 0;
}
#step-3 .pl-actions.pl-actions-split {
    margin-left: 0;
    max-width: 895px;
}

.pl-pi-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    margin-left: 0;
    max-width: 895px;
}
.pl-pi-summary {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 14px;
    letter-spacing: 0.1em;
    color: #5B6168;
    white-space: nowrap;
    padding-right: 4px;
}

/* Summary row - sits just above the grid, right-aligned to the rightmost
   card column (matches Figma). Same max-width as .pl-pi-grid so the text
   lines up with the grid's right edge, not the page edge. */
.pl-pi-summary-row {
    display: flex;
    justify-content: flex-end;
    margin: 8px 0 6px 0;
    max-width: 1340px;
}
@media (max-width: 1024px) {
    .pl-pi-summary-row { max-width: 820px; }
}
@media (max-width: 820px) {
    .pl-pi-summary-row { max-width: 420px; }
}
.pl-pi-summary-sep {
    color: #9B9C9E;
    margin: 0 6px;
    font-weight: 300;
}
.pl-pi-summary #pi-count,
.pl-pi-summary #pi-time {
    color: #24282B;
    font-weight: 600;
}

.pl-pi-grid {
    display: grid;
    /* 3 cards per row on desktop per Figma - bigger cards, less wasted space.
       Falls back to 2/1 on narrower viewports via the media queries below. */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 14px;
    margin-left: 0;
    max-width: 1340px;
    transition: opacity 0.18s ease;
}
@media (max-width: 1024px) {
    .pl-pi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
}
@media (max-width: 820px) {
    .pl-pi-grid { grid-template-columns: 1fr; max-width: 420px; }
}

/* Steps 1 & 2 use the SAME inner-scroll pattern as Steps 3 & 4: the stepper and
   title stay put, the content area scrolls in place, and the Continue button is
   pinned to the viewport bottom - locked to the exact spot Step 4's "Hire now"
   sits. This keeps the footer button in one fixed position across the wizard. */
.dashboard .pl-main:has(> #step-1:not(.hidden)),
.dashboard .pl-main:has(> #step-2:not(.hidden)) {
    display: flex;
    flex-direction: column;
}
.dashboard .pl-main:has(> #step-1:not(.hidden)) > #step-1,
.dashboard .pl-main:has(> #step-2:not(.hidden)) > #step-2 {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}
/* The scrollable content region for each step (everything between the title and
   the footer). Step 1 = the form/preview grid; Step 2 = the drafted-post card. */
#step-1 .pl-grid,
#step-2 #step2-content:not(.hidden) {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px; /* keep the scrollbar off the cards */
}
/* While Step 2 is still drafting, let the loader fill the space so the spinner
   centers and the Continue footer stays pinned to the bottom (overrides the
   fixed-height fallback above). */
#step-2 #step2-loader:not(.hidden) {
    flex: 1 1 auto;
    min-height: 0;
}

/* When step 3 is the visible step, turn .pl-main itself into a flex column
   so the stepper sits at its natural height, #step-3 expands to fill the rest,
   and the grid inside #step-3 scrolls in place - keeping the Continue/Back
   buttons anchored to the viewport bottom (per Figma).
   .hidden { display: none !important; } still wins when the step is inactive. */
.dashboard .pl-main:has(> #step-3:not(.hidden)) {
    display: flex;
    flex-direction: column;
}
.dashboard .pl-main:has(> #step-3:not(.hidden)) > #step-3 {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    position: relative;   /* anchor the floating Continue button */
}
#step-3 .pl-pi-grid {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    /* Top padding gives the first row room for the hover lift + selected-card
       shadow; without it the overflow scrollport clips the top edge. */
    padding: 8px 8px 60px 0; /* right keeps the scrollbar off the cards; bottom clears the floating Continue button */
    /* Rows stretch to fill the available height so there's no white band below
       the cards before the pinned Continue button. With many agents the grid
       scrolls; with few, the rows grow to fill the space. */
    align-content: stretch;
    grid-auto-rows: 1fr;
}
/* Slim scrollbar so it reads as a UI accent, not a page chrome element. */
#step-3 .pl-pi-grid::-webkit-scrollbar { width: 6px; }
#step-3 .pl-pi-grid::-webkit-scrollbar-thumb {
    background: rgba(76, 171, 246, 0.35);
    border-radius: 3px;
}
#step-3 .pl-pi-grid::-webkit-scrollbar-track { background: transparent; }

/* Same inner-scroll pattern for Step 4 - title, desc, and pills stay anchored
   at the top while only the candidate grid scrolls, keeping Hire Now visible
   at the bottom of the viewport (per Figma). */
.dashboard .pl-main:has(> #step-4:not(.hidden)) {
    display: flex;
    flex-direction: column;
}
.dashboard .pl-main:has(> #step-4:not(.hidden)) > #step-4 {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    position: relative;   /* anchor the floating Hire now button */
}
#step-4 .pl-fc-grid {
    flex: 1 1 auto;
    min-height: 0;
    /* Columns stretch to fill the available height and each column body scrolls
       internally, so there's no leftover white band below the grid. (The fixed
       560px column cap previously left a white strip on tall screens.) The grid
       itself doesn't scroll - the column bodies do. */
    overflow: hidden;
    padding: 8px 8px 0 0;
    align-items: stretch;
    grid-auto-rows: 1fr;
}
#step-4 .pl-fc-grid::-webkit-scrollbar { width: 6px; }
#step-4 .pl-fc-grid::-webkit-scrollbar-thumb {
    background: rgba(76, 171, 246, 0.35);
    border-radius: 3px;
}
#step-4 .pl-fc-grid::-webkit-scrollbar-track { background: transparent; }

/* Loader overlay - replaces the grid while /suggest-interviewers is in flight. */
.pl-pi-loader {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    margin: 0 0 18px 0;
    max-width: 895px;
    background: #FFFFFF;
    border: 1px solid rgba(76, 171, 246, 0.35);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(76, 171, 246, 0.08);
}
.pl-pi-loader.hidden { display: none; }
.pl-pi-loader-spinner {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2.5px solid rgba(76, 171, 246, 0.18);
    border-top-color: #4CABF6;
    animation: pl-pi-spin 0.9s linear infinite;
    flex-shrink: 0;
}
.pl-pi-loader-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    color: #24282B;
}
@keyframes pl-pi-spin {
    to { transform: rotate(360deg); }
}

.pl-pi-card {
    width: 100%;
    /* Min-height keeps cards visually consistent; longer descriptions push it
       taller within the same row (grid auto-rows handle this). */
    min-height: 156px;
    border-radius: 12px;
    border: 0.8px solid rgba(76, 171, 246, 0.35);
    background: #FFFFFF;
    padding: 22px 24px 50px;
    position: relative;
    cursor: pointer;
    transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
    text-align: left;
    overflow: hidden;
    font-family: inherit;
}
.pl-pi-card:hover {
    border-color: #4CABF6;
    transform: translateY(-1px);
}
.pl-pi-card.selected {
    border: 1px solid #4CABF6;
    box-shadow: 1px 1px 4px rgba(76, 171, 246, 0.55);
}

/* Card header - avatar + (name + tag) block, flex-aligned so they share the
   same baseline / centre line regardless of card width. */
.pl-pi-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.pl-pi-name-block { min-width: 0; flex: 1; }

/* Avatar (gradient square with letter) - now in flex flow alongside the name
   block, no more absolute positioning. */
.pl-pi-avatar {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0.1em;
    flex-shrink: 0;
}

/* Gradient classes per agent type */
.pl-grad-coral  { background: linear-gradient(141.93deg, #DE9CA7 58.77%, #FFD7DD 98.19%); color: #FFE6E6; }
.pl-grad-yellow { background: linear-gradient(141.93deg, #EAB000 58.77%, #FFF3CE 98.19%); color: #FFEEAD; }
.pl-grad-purple { background: linear-gradient(141.93deg, #9886E9 58.77%, #CEC3FF 98.19%); color: #F4F2FF; }
.pl-grad-blue   { background: linear-gradient(141.93deg, #7DB5E2 58.77%, #D8EEFF 98.19%); color: #CEEAFF; }
.pl-grad-green  { background: linear-gradient(141.93deg, #8EC49E 58.77%, #D7FFE3 98.19%); color: #E2FFD7; }
.pl-grad-dark   { background: linear-gradient(141.93deg, #292C2C 10.63%, #2C2E2D 47.67%, #3E3D2F 72.09%, #675D33 98.19%); color: #EAB000; }

/* Name + tag block (inside .pl-pi-name-block, sibling of avatar in flex). */
.pl-pi-name {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 15px;
    letter-spacing: 0.1em;
    color: #24282B;
}
.pl-pi-tag {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 9px;
    line-height: 11px;
    letter-spacing: 0.05em;
    color: #9B9C9E;
    margin-top: 2px;
}

/* Faint divider between header and body */
.pl-pi-divider-line {
    height: 0;
    border-top: 0.4px solid rgba(96, 96, 96, 0.45);
    margin: 12px 0 8px;
}

/* Description */
.pl-pi-desc {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 13px;
    line-height: 16px;
    color: #5B6168;
    margin: 0;
    padding-right: 22px; /* reserve space for tick circle */
}

/* Footer row: minutes + tick circle */
.pl-pi-foot {
    position: absolute;
    bottom: 16px;
    left: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
}
.pl-pi-mins {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 9px;
    line-height: 11px;
    color: #9B9C9E;
}
.pl-pi-tick {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 0.7px solid #9B9C9E;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.pl-pi-card.selected .pl-pi-tick {
    background: #4CABF6;
    border-color: #4CABF6;
}
.pl-pi-tick svg {
    opacity: 0;
    transition: opacity 0.15s ease;
}
.pl-pi-card.selected .pl-pi-tick svg {
    opacity: 1;
}

/* Mandatory (locked) interviewer, e.g. the Leadership Competency evaluator:
   always selected, cannot be toggled off. A "Required" pill sits at the left of
   the foot, the tick stays at the right. */
.pl-pi-required {
    margin-right: auto;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: #7C3AED;
    background: rgba(124, 58, 237, 0.10);
    padding: 3px 9px;
    border-radius: 10px;
}
.pl-pi-card--locked { cursor: default; }
.pl-pi-card--locked:hover { transform: none; border-color: rgba(76, 171, 246, 0.35); }

/* Step 2 deadline status bar (kept for runtime, restyled lightly when shown) */
#step-2 .pl-deadline-bar {
    margin-left: 50px;
    margin-bottom: 18px;
    max-width: 1424px;
    background: #F8F9FB;
    border-radius: 10px;
    box-shadow: 0px 1px 4.2px rgba(0, 0, 0, 0.10);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
#step-2 .pl-deadline-bar.hidden { display: none; }
#step-2 .pl-deadline-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
#step-2 .pl-deadline-icon {
    color: #4CABF6;
    display: inline-flex;
}
#step-2 .pl-deadline-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
#step-2 .pl-deadline-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: #24282B;
}
#step-2 .pl-deadline-value {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 12px;
    color: #5B6168;
    letter-spacing: 0.05em;
}
#step-2 .pl-deadline-actions {
    display: inline-flex;
    gap: 6px;
}

/* ==========================================================================
   STEP 4 - FIND CANDIDATES (HireXA Figma redesign)
   "N candidates matched." → filter pills → 3-col grid of 267×117 cards.
   .pl-fc-* namespace is fresh (old .pl-cand-* / .pl-search-* selectors are
   left in place for any legacy refs but the new markup doesn't use them).
   ========================================================================== */

/* Page title - overrides .pl-title-2 alignment to match Figma's left edge.
   #step-4 scope wins over `.pl-step h1.pl-title-2` (which sets margin-left: 50px). */
#step-4 .pl-fc-title,
#step-4 .pl-title-desc {
    margin-left: 0;
}
.pl-fc-title {
    font-size: 30px;
    line-height: 36px;
    font-family: 'Poppins', 'Lexend Deca', sans-serif;
    font-weight: 500;
    color: #24282B;
}
.pl-fc-title .pl-title-bold {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #24282B;
}
.pl-fc-title .pl-title-italic {
    font-family: 'Fraunces', 'Lexend Deca', serif;
    font-style: italic;
    font-weight: 300;
    color: #5B6168;
    letter-spacing: -0.07em;
    margin-left: 8px;
}
.pl-fc-desc {
    margin: 2px 0 18px 0;
    max-width: 720px;
    color: #9B9C9E;
    /* Same scale as Step 1's .pl-title-desc - readable, not tiny. */
    font-size: 15px;
    line-height: 18px;
}

/* Filter pill row */
.pl-fc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
    max-width: 1340px;
}
.pl-fc-pill {
    height: 28px;
    padding: 0 16px;
    border-radius: 14px;
    border: 0.5px solid transparent;
    background: #EEF7FE;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #4CABF6;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.11);
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
    white-space: nowrap;
}
.pl-fc-pill:hover { transform: translateY(-1px); }
.pl-fc-pill.active {
    background: #FFD33C;
    border-color: #EAB000;
    color: #24282B;
    box-shadow: none;
}

/* Loader strip (reuses spinner from Step 3) */
.pl-fc-loader {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    margin: 0 0 18px 0;
    max-width: 1200px;
    background: #FFFFFF;
    border: 1px solid rgba(76, 171, 246, 0.35);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(76, 171, 246, 0.08);
}
.pl-fc-loader.hidden { display: none; }

/* Empty state */
.pl-fc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 48px 24px;
    max-width: 1200px;
    color: #5B6168;
}
.pl-fc-empty.hidden { display: none; }
.pl-fc-empty svg { color: #9B9C9E; }
.pl-fc-empty h4 { margin: 0; font-size: 16px; color: #24282B; }
.pl-fc-empty p { margin: 0 0 6px 0; font-size: 14px; }

.pl-fc-no-match {
    grid-column: 1 / -1;
    padding: 28px;
    text-align: center;
    color: #9B9C9E;
    font-size: 14px;
}

/* Source-segregated columns: LinkedIn | Uploaded | Resume Bank.
   Three equal columns, each a self-contained scroll stack of its source's
   cards under a labelled header. Collapses to 1 column (sources stack) on
   narrow widths. */
.pl-fc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
    margin-bottom: 14px;
    max-width: 1340px;
}
@media (max-width: 980px) {
    .pl-fc-grid { grid-template-columns: 1fr; max-width: 460px; }
    /* Stacked to one column on mobile: let the whole grid flow/scroll as a unit
       instead of splitting the height into equal per-source rows. */
    #step-4 .pl-fc-grid { grid-auto-rows: auto; overflow-y: auto; }
    .pl-fc-col { min-height: auto; }
    .pl-fc-col-body { flex: 0 1 auto; min-height: 0; overflow: visible; }
}

/* One source column */
.pl-fc-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.pl-fc-col-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 4px 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid #EAEEF2;
}
.pl-fc-col-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    border-radius: 6px;
    flex-shrink: 0;
}
.pl-fc-col-label {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: #24282B;
}
.pl-fc-col-count {
    margin-left: auto;
    min-width: 22px;
    height: 20px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #EEF7FE;
    color: #4CABF6;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 500;
    font-size: 12px;
}
/* Per-source accent on the column header icon + count */
.pl-fc-col-li   .pl-fc-col-ic { background: #E8F1FB; color: #0A66C2; }
.pl-fc-col-li   .pl-fc-col-count { background: #E8F1FB; color: #0A66C2; }
.pl-fc-col-pool .pl-fc-col-ic { background: #E6F6F1; color: #1F9D78; }
.pl-fc-col-pool .pl-fc-col-count { background: #E6F6F1; color: #1F9D78; }
.pl-fc-col-bank .pl-fc-col-ic { background: #F1EEFC; color: #7A5AF0; }
.pl-fc-col-bank .pl-fc-col-count { background: #F1EEFC; color: #7A5AF0; }

.pl-fc-col-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    /* Bottom padding = clearance for the floating Hire now button so the last
       card isn't hidden behind it when scrolled to the end. */
    padding: 12px 4px 60px;
}
.pl-fc-col-body::-webkit-scrollbar { width: 7px; }
.pl-fc-col-body::-webkit-scrollbar-thumb { background: #CFE7FB; border-radius: 7px; }
.pl-fc-col-empty {
    padding: 26px 12px;
    text-align: center;
    color: #B6BABE;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 13px;
    font-weight: 300;
}
/* Per-column loading spinner - shown in each source column while the search is
   still running (replaced by cards, or the empty state once done). */
.pl-fc-col-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    padding: 40px 0;
}
.pl-fc-col-spinner {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 3px solid rgba(76, 171, 246, 0.18);
    border-top-color: #4CABF6;
    animation: pl-pi-spin 0.9s linear infinite;
}

/* === Candidate card - fills its grid column (no fixed width) === */
.pl-fc-card {
    position: relative;
    width: 100%;
    min-height: 168px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    background: #FFFFFF;
    border: 0.8px solid rgba(76, 171, 246, 0.45);
    border-radius: 12px;
    transition: box-shadow 0.18s ease, transform 0.15s ease;
}
.pl-fc-card:hover {
    box-shadow: 1px 1px 6px rgba(76, 171, 246, 0.45);
    transform: translateY(-1px);
}

/* Serper-sourced cards are the action target: tap to message on LinkedIn. */
.pl-fc-clickable { cursor: pointer; }
.pl-fc-clickable:hover {
    box-shadow: 1px 2px 10px rgba(10, 102, 194, 0.22);
    border-color: rgba(10, 102, 194, 0.55);
}
.pl-fc-otw {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 6px;
    background: #E7F4EC;
    color: #2E7D46;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.pl-fc-otw::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #34A853;
}

/* Footer: divider + location, pinned to the card bottom */
.pl-fc-foot {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.pl-fc-divider {
    height: 1px;
    background: #EAEEF2;
    margin: 0;
}
.pl-fc-cloc {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 12px;
    line-height: 14px;
    color: #9B9C9E;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pl-fc-cloc svg { flex-shrink: 0; }
.pl-fc-cloc span { overflow: hidden; text-overflow: ellipsis; }

/* Card header - avatar + (name + role) block in a flex row so they share
   the same baseline regardless of card width. Same pattern as Step 3. */
.pl-fc-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.pl-fc-name-block { min-width: 0; flex: 1; }

/* Avatar - gradient square with 2-letter initial (reuses .pl-grad-* from Step 3) */
.pl-fc-avatar {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0.1em;
    flex-shrink: 0;
}

/* Name + role */
.pl-fc-name {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    letter-spacing: 0.08em;
    color: #24282B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pl-fc-role {
    margin-top: 2px;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 9px;
    line-height: 12px;
    color: #9B9C9E;
    max-height: 24px;
    overflow: hidden;
}

/* Score row (track + percent) - sits below the avatar block */
.pl-fc-score {
    position: absolute;
    left: 22px;
    right: 22px;
    top: 78px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pl-fc-score-track {
    flex: 1;
    height: 4px;
    background: #D9D9D9;
    border-radius: 2px;
    overflow: hidden;
}
.pl-fc-score-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.4s ease;
}
.pl-fc-score-pct {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 600;
    font-size: 9px;
    min-width: 28px;
    text-align: right;
}

/* Email + location rows (icon + text) */
.pl-fc-row {
    position: absolute;
    left: 22px;
    right: 64px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 11px;
    line-height: 13px;
    color: #24282B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pl-fc-row svg { flex-shrink: 0; }
.pl-fc-email   { top: 102px; }
.pl-fc-loc     { top: 122px; color: #9B9C9E; }
.pl-fc-email-text { overflow: hidden; text-overflow: ellipsis; }

/* LinkedIn pill at bottom-right */
.pl-fc-li {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 9px;
    font-weight: 500;
    color: #0A66C2;
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 3px;
    transition: background 0.15s ease;
}
.pl-fc-li:hover { background: rgba(10, 102, 194, 0.08); }

/* === Card source badge (top-right) - sleek pill keyed to the source === */
.pl-fc-srcbadge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px 3px 7px;
    border-radius: 20px;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 500;
    font-size: 9.5px;
    letter-spacing: 0.02em;
    line-height: 1;
}
.pl-fc-srcbadge svg { width: 11px; height: 11px; flex-shrink: 0; }
.pl-fc-srcbadge-li   { background: #E8F1FB; color: #0A66C2; }
.pl-fc-srcbadge-pool { background: #E6F6F1; color: #1F9D78; }
.pl-fc-srcbadge-bank { background: #F1EEFC; color: #7A5AF0; }

/* Left accent stripe so the card's source reads at a glance */
.pl-fc-card-pool { border-left: 2.5px solid rgba(31, 157, 120, 0.55); }
.pl-fc-card-bank { border-left: 2.5px solid rgba(122, 90, 240, 0.55); }
.pl-fc-card-pool:hover { box-shadow: 1px 2px 10px rgba(31, 157, 120, 0.20); border-color: rgba(31, 157, 120, 0.55); }
.pl-fc-card-bank:hover { box-shadow: 1px 2px 10px rgba(122, 90, 240, 0.20); border-color: rgba(122, 90, 240, 0.55); }

/* Give the avatar row clearance from the badge */
.pl-fc-card .pl-fc-srcbadge + .pl-fc-card-head { padding-right: 86px; }

/* JD-match description preview on uploaded / resume-bank cards */
.pl-fc-desc-prev {
    margin: 0;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 12px;
    line-height: 16px;
    color: #5B6168;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pl-fc-desc-prev.muted { color: #9B9C9E; font-style: italic; }

/* Contact details on uploaded / resume-bank cards (replaces the description
   preview) - same row treatment as the LinkedIn location line for a consistent
   card across all three sources. */
.pl-fc-contact {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.pl-fc-crow {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 12px;
    line-height: 14px;
    color: #5B6168;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pl-fc-crow svg { flex-shrink: 0; color: #4CABF6; }
.pl-fc-card-bank .pl-fc-crow svg { color: #7A5AF0; }
.pl-fc-card-pool .pl-fc-crow svg { color: #1F9D78; }
.pl-fc-crow span { overflow: hidden; text-overflow: ellipsis; }
.pl-fc-crow.muted { color: #9B9C9E; font-style: italic; }

/* "View overview" affordance in the card footer */
.pl-fc-ovlink {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #4CABF6;
}
.pl-fc-card-bank .pl-fc-ovlink { color: #7A5AF0; }
.pl-fc-card-pool .pl-fc-ovlink { color: #1F9D78; }

/* === Profile-overview modal === */
.pl-fc-ovmodal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(36, 40, 43, 0.34);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.pl-fc-ovmodal[hidden] { display: none; }
.pl-fc-ovcard {
    position: relative;
    width: 560px;
    max-width: 100%;
    background: #FFFFFF;
    border: 0.5px solid #4CABF6;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
    padding: 28px 30px 30px;
}
.pl-fc-ovclose {
    position: absolute;
    top: 16px; right: 16px;
    background: none; border: 0; padding: 4px;
    color: #9B9C9E; cursor: pointer; display: flex;
}
.pl-fc-ovclose:hover { color: #24282B; }
.pl-fc-ovhead { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.pl-fc-ovavatar {
    width: 46px; height: 46px; border-radius: 50%;
    background: linear-gradient(135deg, #4CABF6, #9886E9);
    color: #FFFFFF;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 18px;
}
.pl-fc-ovname {
    margin: 0;
    font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 19px;
    color: #24282B;
}
.pl-fc-ovmeta {
    margin: 2px 0 0;
    font-family: 'Lexend Deca', sans-serif; font-weight: 300; font-size: 12.5px;
    letter-spacing: 0.03em; color: #9B9C9E;
}
.pl-fc-ovlabel {
    font-family: 'Lexend Deca', sans-serif; font-weight: 400; font-size: 11px;
    letter-spacing: 0.16em; text-transform: uppercase; color: #4CABF6;
    margin-bottom: 8px;
}
.pl-fc-ovdesc {
    margin: 0;
    font-family: 'Lexend Deca', sans-serif; font-weight: 300; font-size: 14.5px;
    line-height: 1.7; letter-spacing: 0.01em; color: #3A3F45;
}

/* (.pl-fc-actions removed from markup - Step 4 now uses the shared
   #step-4 .pl-actions rule above, identical to Steps 1/2/3.) */

/* ==========================================================================
   PIPELINE LAUNCH PAGE - /pipeline-launch
   "Finding your top candidates." status page shown immediately after the
   recruiter clicks Hire now on Step 4. Reuses dashboard.css for chrome and
   .pl-stepper / .pl-nav-item from this file for the top stepper.
   ========================================================================== */

/* Center the launch page's content on the frosted panel. The shared .pl-main
   uses a wide 146px left gutter to clear the 66px-wide fixed sidebar but only
   55px on the right, so anything centered in the content box (status pill, hero,
   activity card) lands right of the panel's true midpoint. The panel spans from
   left:66px to the viewport's right edge, so its center sits 66px right of the
   viewport-left. Setting padding-right = padding-left − 66 makes the content box
   center exactly on the panel midpoint. Scoped to the launch page via :has(). */
.dashboard .pl-main:has(.lp-activity-card) {
    padding-right: 80px;
}

/* "AI is sourcing now" status pill - sits centered above the hero title */
.lp-status-row {
    display: flex;
    justify-content: center;
    margin: 6px 0 2px 0;
}
.lp-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 22px;
    padding: 0 14px;
    background: #EEF7FE;
    border-radius: 12px;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: #4CABF6;
}
.lp-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #CEEAFF;
    position: relative;
    display: inline-block;
}
.lp-status-dot::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #4CABF6;
    animation: lp-pulse 1.6s ease-in-out infinite;
}
@keyframes lp-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(0.7); opacity: 0.55; }
}

/* Hero title - Poppins for "Finding your", Fraunces italic for "top candidates." */
.lp-hero-title {
    margin: 8px 0 4px 0;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 30px;
    line-height: 36px;
    color: #24282B;
}
.lp-hero-bold { font-family: 'Poppins', sans-serif; font-weight: 500; color: #24282B; }
.lp-hero-italic {
    font-family: 'Fraunces', 'Lexend Deca', serif;
    font-style: italic;
    font-weight: 300;
    color: #5B6168;
    letter-spacing: -0.07em;
}
.lp-hero-sub {
    text-align: center;
    margin: 4px 0 20px 0;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 13px;
    line-height: 15px;
    color: #9B9C9E;
}

/* Live activity card - main panel that lists the timeline of pipeline events.
   Centered, row dividers handled by .lp-act-row. */
.lp-activity-card {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    background: #F8F9FB;
    border-radius: 14px;
    box-shadow: 0 1px 4.2px rgba(0, 0, 0, 0.17);
    padding: 22px 30px 20px;
}
.lp-activity-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.lp-role-tag {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 15px;
    text-transform: uppercase;
    color: #EAB000;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}
.lp-role-rule {
    flex: 0 0 99px;
    height: 1px;
    background: rgba(234, 176, 0, 0.56);
}
.lp-activity-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
}
.lp-activity-title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: #24282B;
}
.lp-activity-updated {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 13px;
    color: #9B9C9E;
}

/* Timeline rows */
.lp-activity-list {
    display: flex;
    flex-direction: column;
}
.lp-act-row {
    display: grid;
    grid-template-columns: 1fr 24px 64px;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 0.4px solid rgba(96, 96, 96, 0.20);
}
/* border-bottom on every row means: divider after every step, including a
   trailing one after the last row (per Figma). No border-top needed. */
.lp-act-text { min-width: 0; }
.lp-act-title {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    color: #5B6168;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lp-act-sub {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 13px;
    line-height: 15px;
    color: #9B9C9E;
    margin-top: 4px;
}
.lp-act-icon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
}
.lp-act-icon.now {
    background: #CEEAFF;
    position: relative;
}
.lp-act-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4CABF6;
    animation: lp-pulse 1.6s ease-in-out infinite;
}
.lp-act-icon.done { background: transparent; }
.lp-act-icon.done svg { display: block; }
.lp-act-icon.pending {
    background: transparent;
    border: 1px solid #D9D9D9;
    width: 12px;
    height: 12px;
}
.lp-act-time {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 13px;
    line-height: 15px;
    color: #9B9C9E;
    text-align: right;
}
.lp-act-row.pending .lp-act-title { color: #9B9C9E; }

/* Bottom action row */
/* Launch page bottom action - pinned to viewport bottom-right via fixed
   positioning so it stays at the same Y as the wizard's Continue button
   without altering .pl-main's flow layout.
   right math: .pl-main padding-left = 146px, padding-right = 55px, card
   max-width = 1400px centered → card right edge sits at viewport-right -
   ((100vw - 146px - 55px - 1400px) / 2 + 55px) = (100vw - 1491px)/2 from
   viewport right edge. Falls back to 55px on narrow screens. */
.lp-bottom-actions {
    position: fixed;
    bottom: 30px;
    /* Right edge tracks the activity card's right edge so the button lines up
       under the container. Card right inset from the viewport edge =
       (100vw - padLeft + padRight - cardWidth)/2 = (100vw - 146 + 80 - 1400)/2
       = (100vw - 1466)/2. Floor at 80px = the right gutter, which is exactly
       where the card edge sits once it fills the content box (<=1626px wide).
       Same 100vw reference as the card, so it stays aligned under html{zoom}. */
    right: max(80px, calc((100vw - 1466px) / 2));
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 50;
}
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(76, 171, 246, 0.35), 0 2px 4px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    letter-spacing: 0.1em;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.lp-btn:hover { transform: translateY(-1px); box-shadow: 1px 3px 4px rgba(0, 0, 0, 0.18); }
.lp-btn-soft {
    background: #EEF7FE;
    color: #4CABF6;
    /* Override the primary's blue glow with a subtle neutral shadow. */
    box-shadow: 1px 2px 2.4px rgba(0, 0, 0, 0.10);
}
.lp-btn-soft.opted-in {
    background: #CEEAFF;
    color: #2D6AA1;
}
.lp-btn-primary {
    background: #4CABF6;
    color: #FFFFFF;
}

/* Make the launch-page stepper feel locked (it links back to wizard but doesn't
   pretend to be navigable inside this page). */
.pl-stepper a.pl-nav-item {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}


/* =============================================================
   PIPELINE - Figma redesign v2 (light glassmorphism + Inter + blue)
   Step 1 "Add Job Details" + shared shell (sidebar / topnav / stepper).
   Scoped under `.dashboard.pjx` and `.pjd` so the (not-yet-redesigned)
   Steps 2-4 keep their existing look until their turn.
   ============================================================= */

/* ---------- Shell ----------
   The page now uses the canonical `.dsb-*` glass rail (see dashboard_home.css):
   `.dsb-shell` (flex, gap 24, padding 24, min-height 100vh) holds the 88px
   sticky `.dsb-sidebar` and the flex-column `.dsb-body`. The old custom
   `.dashboard.pjx` grid + `.pjx-sidebar` rail were removed. Only page-owned
   chrome (`.pjx-topnav`, `.pl-main`, `.pjd-*`) is styled here. Do NOT restyle
   any `.dsb-*` class - those are shared. */
.pjx-topnav, .pjx-topnav *,
.pl-main, .pl-main * { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }

/* Main content column fills the body column; the whole page scrolls and no
   inner element clips (so the glass dropdowns open straight down). */
.dsb-body .pl-main {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
    background: transparent;
    overflow: visible;
}
/* The visible wizard step fills the column; a min-height floor keeps the
   pinned footer near the viewport bottom on short content (the sidebar/topnav
   are ~200px of fixed chrome above, as in the old grid model). */
.dsb-body .pl-main > .pl-step.pjd:not(.hidden) {
    flex: 1 1 auto;
    min-height: calc(var(--app-vh, 100vh) - 200px);
}

/* ---------- Top nav (title + close + stepper) ---------- */
.pjx-topnav {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 22.6px #FFFFFF;
    border-radius: 16px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.pjx-topnav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.pjx-title {
    margin: 0;
    font-weight: 600;
    font-size: 30px;
    line-height: 38px;
    color: #0F172A;
    letter-spacing: -0.01em;
}
.pjx-close {
    box-sizing: border-box;
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 0 12px #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    color: #334155;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}
.pjx-close svg { width: 20px; height: 20px; }
.pjx-close:hover { background: rgba(255, 255, 255, 0.6); }
.pjx-close:active { transform: scale(0.96); }

/* ---------- Stepper (restyle the shared markup) ---------- */
.pjx-topnav .pl-stepper {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    max-width: none;
}
.pjx-topnav .pl-stepper .pl-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    cursor: pointer;
    background: transparent;
    border: 0;
    padding: 0;
}
.pjx-topnav .pl-step-num {
    width: 24px; height: 24px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #D6DAE0;
    border: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 20px;
    letter-spacing: normal;
    color: #334155;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}
.pjx-topnav .pl-nav-item.active .pl-step-num { background: #007EE8; color: #FFFFFF; }
.pjx-topnav .pl-nav-item.completed .pl-step-num { background: #007EE8; color: #FFFFFF; }
.pjx-topnav .pl-step-label {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 22px;
    color: #334155;
    white-space: nowrap;
    transition: color 0.2s;
}
.pjx-topnav .pl-nav-item.active .pl-step-label { color: #007EE8; }
.pjx-topnav .pl-nav-item:not(.active):not(.completed) .pl-step-label { color: #334155; }
.pjx-topnav .pl-step-line {
    flex: 1 1 auto;
    height: 1px;
    min-width: 24px;
    max-width: 260px;     /* stretch, but not edge-to-edge */
    border: 0;
    background: #CBD5E1;
    margin: 0;
}

/* ---------- Main scroll area ----------
   `.pl-main` layout is handled above under `.dsb-body .pl-main`. */

/* Step-1 fills the main column; the cards scroll, the footer pins. */
#step-1.pjd {
    display: flex;
    flex-direction: column;
    min-height: 0;
    gap: 20px;
}
.pjd-scroll { flex: 1 1 auto; min-height: 0; }

/* ---------- Step scroll model ----------
   The WHOLE page (body) scrolls and NO inner element clips - so the glass
   dropdowns always open straight DOWN and are never cut off. The canonical
   `.dsb-sidebar` is sticky chrome (pins in place); the topnav scrolls away with
   the page. The per-step min-height floor lives in `.dsb-body .pl-main` above. */
body:has(.pl-step.pjd:not(.hidden)) { overflow-y: auto; overflow-x: hidden; }

.pjd-grid {
    display: grid;
    grid-template-columns: minmax(0, 800fr) minmax(0, 500fr);
    gap: 44px;
    align-items: start;
    max-width: 1600px;
}
.pjd-col-form { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.pjd-col-preview { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

/* ---------- Form card ---------- */
.pjd-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 22.6px #FFFFFF;
    border-radius: 24px;
}
.pjd-card-head { display: flex; align-items: center; gap: 8px; }
.pjd-card-ic {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    flex: none;
}
.pjd-card-ic svg { width: 16px; height: 16px; }
.pjd-ic-blue   { background: #B0DBFF; color: #2563EB; border-radius: 10px; }
.pjd-ic-green  { background: #CAEBE1; color: #3C8770; }
.pjd-ic-amber  { background: #FEF3C7; color: #D97706; }
.pjd-ic-purple { background: #DAD3FF; color: #6D28D9; }
.pjd-card-title {
    margin: 0;
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    color: #0F172A;
}

/* ---------- Fields ---------- */
.pjd-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pjd-field > label {
    font-weight: 600;
    font-size: 13px;
    line-height: 20px;
    color: #64748B;
}
.pjd-field .req { color: #EF4444; font-weight: 600; }

/* "Show Salary" band in the Compensation card: a label, the hint (one span
   per sentence, so the "On" and "Off" rules sit on their own lines) and the
   .pjd2-switch toggle (defined with the Step 2 cards). Also used by the
   Naukri portal's Step 1, which loads this sheet. */
.pjd-salary-vis {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 12px 14px; border-radius: 12px;
    background: rgba(255, 255, 255, 0.45); border: 1px solid rgba(203, 213, 225, 0.6);
}
.pjd-salary-vis-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pjd-salary-vis-title { font-weight: 600; font-size: 13px; line-height: 20px; color: #0F172A; cursor: pointer; }
.pjd-salary-vis-hint { font-weight: 500; font-size: 12px; line-height: 18px; color: #94A3B8; }

.pjd-row { display: grid; gap: 16px; }
.pjd-row-2 { grid-template-columns: 1fr 1fr; }
.pjd-row-3 { grid-template-columns: 1fr 1fr 1fr; }

.pjd-input,
.pjd-select,
.pjd-textarea {
    box-sizing: border-box;
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #334155;
    background: linear-gradient(180deg, #FFFFFF 0%, #EEF2F7 100%);
    border: 1px solid rgba(203, 213, 225, 0.75);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 0 22.6px #FFFFFF,
        0 1px 2px rgba(15, 23, 42, 0.05);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.pjd-input, .pjd-select { height: 40px; padding: 8px 16px; }
/* Fixed box: no drag-to-grow grabber. `height` (not `min-height`) so nothing -
   a stray drag, a flex parent - can stretch it; long text scrolls instead. */
.pjd-textarea { height: 180px; padding: 16px; resize: none; overflow-y: auto; border-radius: 16px; }
.pjd-input::placeholder,
.pjd-textarea::placeholder { color: #94A3B8; font-weight: 500; }
.pjd-input:focus,
.pjd-select:focus,
.pjd-textarea:focus { border-color: #7DB8F5; box-shadow: inset 0 0 22.6px #FFFFFF, 0 0 0 3px rgba(11, 144, 243, 0.12); }
.pjd-input-locked { background: #F1F3F6; color: #64748B; cursor: not-allowed; }
.pjd .pl-invalid,
.pjd-input.pl-invalid { border-color: #EF4444 !important; box-shadow: inset 0 0 22.6px #FFFFFF, 0 0 0 3px rgba(239, 68, 68, 0.12); }

/* Native select → custom chevron (fallback before JS enhances it) */
.pjd-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

/* ---------- Glass custom-select (replaces native select popups) ---------- */
.pjd-cselect { position: relative; width: 100%; min-width: 0; }
/* Native <select> kept in DOM for JS value reads, but visually removed. */
.pjd-cselect .pjd-cselect-native {
    position: absolute !important;
    width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important;
    border: 0 !important; opacity: 0 !important;
    overflow: hidden !important; pointer-events: none !important;
    clip: rect(0 0 0 0); clip-path: inset(50%);
}
.pjd-cselect-trigger {
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    padding: 8px 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 500; font-size: 14px; line-height: 20px;
    color: #334155;
    background: linear-gradient(180deg, #FFFFFF 0%, #EEF2F7 100%);
    border: 1px solid rgba(203, 213, 225, 0.75);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 0 22.6px #FFFFFF,
        0 1px 2px rgba(15, 23, 42, 0.05);
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.pjd-cselect-value { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pjd-cselect-trigger.is-placeholder .pjd-cselect-value { color: #94A3B8; }
.pjd-cselect-caret { width: 16px; height: 16px; flex: none; color: #334155; transition: transform 0.2s ease; }
.pjd-cselect.is-open .pjd-cselect-caret { transform: rotate(180deg); color: #007EE8; }
.pjd-cselect-trigger:focus-visible {
    border-color: #7DB8F5;
    box-shadow: inset 0 0 22.6px #FFFFFF, 0 0 0 3px rgba(11, 144, 243, 0.12);
    outline: none;
}
/* Open (downward): the trigger's bottom flattens so it merges with the panel
   into one continuous curved card - no gap, no double border. */
.pjd-cselect.is-open .pjd-cselect-trigger {
    border-color: #B9D9F7;
    border-bottom-color: transparent;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: inset 0 0 22.6px #FFFFFF;
}
/* Open (upward): flatten the TOP instead. */
.pjd-cselect.opens-up.is-open .pjd-cselect-trigger {
    border-bottom-color: #B9D9F7;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border-top-color: transparent;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Attached glossy glass panel (continues straight out of the trigger) */
.pjd-cselect-panel {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    z-index: 60;
    box-sizing: border-box;
    padding: 6px;
    display: flex; flex-direction: column; gap: 2px;
    max-height: 244px;
    overflow-y: auto;
    border: 1px solid #B9D9F7;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.20) 100%),
        rgba(247, 250, 253, 0.80);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 0 22.6px rgba(255, 255, 255, 0.85),
        0 24px 46px -16px rgba(15, 23, 42, 0.32);
    -webkit-backdrop-filter: blur(24px) saturate(155%);
    backdrop-filter: blur(24px) saturate(155%);
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.pjd-cselect.is-open .pjd-cselect-panel { opacity: 1; transform: translateY(0); pointer-events: auto; }
.pjd-cselect.opens-up .pjd-cselect-panel {
    top: auto; bottom: 100%;
    border-top: 1px solid #B9D9F7;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    transform: translateY(4px);
}
.pjd-cselect.opens-up.is-open .pjd-cselect-panel { transform: translateY(0); }
.pjd-cselect-panel::-webkit-scrollbar { width: 6px; }
.pjd-cselect-panel::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.5); border-radius: 10px; }
.pjd-cselect-panel::-webkit-scrollbar-track { background: transparent; }

.pjd-cselect-opt {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border: 0; background: transparent;
    border-radius: 9px;
    text-align: left;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500; font-size: 14px; line-height: 20px;
    color: #334155;
    transition: background 0.12s, color 0.12s;
}
.pjd-cselect-opt:hover { background: rgba(176, 219, 255, 0.5); color: #0F172A; }
.pjd-cselect-opt.is-selected { background: rgba(176, 219, 255, 0.55); color: #007EE8; font-weight: 600; }
.pjd-cselect-opt.is-selected:hover { background: rgba(125, 184, 245, 0.55); }
.pjd-cselect-opt-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pjd-cselect-check { width: 16px; height: 16px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: #007EE8; opacity: 0; }
.pjd-cselect-check svg { width: 14px; height: 14px; }
.pjd-cselect-opt.is-selected .pjd-cselect-check { opacity: 1; }

/* Job Location autocomplete → attached glossy panel, same as the custom selects */
.pjd .pl-loc-dropdown {
    top: 100%;
    left: 0; right: 0;
    padding: 6px;
    border: 1px solid #B9D9F7;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.20) 100%),
        rgba(247, 250, 253, 0.80);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 0 22.6px rgba(255, 255, 255, 0.85),
        0 24px 46px -16px rgba(15, 23, 42, 0.32);
    -webkit-backdrop-filter: blur(24px) saturate(155%);
    backdrop-filter: blur(24px) saturate(155%);
    max-height: 244px;
}
/* Flatten the location input's bottom while its dropdown is open (one card). */
.pjd-location-wrap:has(#loc-dropdown:not(.hidden)) .pjd-input {
    border-color: #B9D9F7;
    border-bottom-color: transparent;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.pjd .pl-loc-item {
    padding: 9px 12px;
    border-radius: 9px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #334155;
}
.pjd .pl-loc-item:hover { background: rgba(255, 255, 255, 0.9); }

/* JD helper row */
.pjd-field-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pjd-hint { font-weight: 500; font-size: 13px; line-height: 18px; color: #94A3B8; }
.pjd-count { font-weight: 600; font-size: 13px; line-height: 18px; color: #94A3B8; white-space: nowrap; }
.pjd-count.is-max, .pjd-field-foot .is-max { color: #EF4444; }
.pjd-limit { font-weight: 600; font-size: 13px; color: #EF4444; }

/* ---- Step 1: upload a JD file instead of typing it ----
   The textarea keeps its own fixed height; the wrapper only exists so the drag
   veil and the busy overlay can sit on top of it without disturbing layout. */
.pjd-jd-drop { position: relative; }
.pjd-drop-veil {
    position: absolute; inset: 0; z-index: 3;
    display: none; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    border-radius: 16px;
    border: 1.5px dashed #7DB8F5;
    background: rgba(238, 246, 255, 0.94);
    color: #1D6FD0;
    font-family: 'Inter', sans-serif; font-weight: 600; font-size: 13.5px;
    pointer-events: none;
}
.pjd-drop-veil svg { width: 26px; height: 26px; }
.pjd-jd-drop.is-dragging .pjd-drop-veil { display: flex; }
.pjd-jd-busy {
    position: absolute; inset: 0; z-index: 4;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    color: #475569;
    font-family: 'Inter', sans-serif; font-weight: 600; font-size: 13.5px;
}
.pjd-jd-busy.hidden { display: none; }
.pjd-jd-spin {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid rgba(11, 144, 243, 0.25); border-top-color: #0B90F3;
    animation: pjd-jd-spin 0.7s linear infinite;
}
@keyframes pjd-jd-spin { to { transform: rotate(360deg); } }

.pjd-upload-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: -2px; }
.pjd-upload-btn {
    display: inline-flex; align-items: center; gap: 7px;
    height: 32px; padding: 0 12px;
    font-family: 'Inter', sans-serif; font-weight: 600; font-size: 12.5px;
    color: #1D6FD0;
    background: linear-gradient(180deg, #FFFFFF 0%, #EEF4FB 100%);
    border: 1px solid rgba(125, 184, 245, 0.7);
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 1px 2px rgba(15, 23, 42, 0.05);
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.pjd-upload-btn:hover { border-color: #7DB8F5; box-shadow: 0 0 0 3px rgba(11, 144, 243, 0.1); }
.pjd-upload-btn[disabled] { opacity: 0.55; cursor: default; box-shadow: none; }
.pjd-upload-note { font-weight: 500; font-size: 12.5px; line-height: 17px; color: #94A3B8; min-width: 0; }
.pjd-upload-note.is-ok { color: #1B7A3E; font-weight: 600; }
.pjd-upload-note.is-warn { color: #A9791B; font-weight: 600; }
.pjd-upload-note.is-error { color: #EF4444; font-weight: 600; }
.pjd-upload-clear {
    font-family: 'Inter', sans-serif; font-weight: 600; font-size: 12.5px;
    color: #94A3B8; background: none; border: none; padding: 0;
    text-decoration: underline; cursor: pointer;
}
.pjd-upload-clear:hover { color: #EF4444; }
.pjd-upload-clear.hidden { display: none; }

/* ---- Contact withheld until the candidate is hired ----
   Blur over a decoy string; the real address never reaches the browser. */
.pl-locked { display: inline-flex; align-items: center; gap: 5px; cursor: default; }
.pl-locked-blur {
    filter: blur(4px);
    -webkit-user-select: none; user-select: none; pointer-events: none;
    color: #64748B;
}
.pl-sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.pjd-hidden { display: none !important; }

/* ---------- Application deadline chips ---------- */
.pjd-deadline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pjd-chip {
    box-sizing: border-box;
    position: relative;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
/* Hide ONLY the radio, never the Custom-days number input (recruiter types in it). */
.pjd-chip input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.pjd-chip > span,
.pjd-chip-label {
    font-weight: 600; font-size: 13px; line-height: 20px; color: #334155;
}
.pjd-chip:hover { background: #EFF4FA; }
.pjd-chip:has(input:checked) { background: rgba(176, 219, 255, 0.55); border-color: #7DB8F5; }
.pjd-chip:has(input:checked) > span,
.pjd-chip:has(input:checked) .pjd-chip-label { color: #007EE8; }
/* Custom days stepper - a clear "[−] [ 20 ] days [+]" pill that appears only
   when the Custom chip is selected. */
.pjd-days {
    display: none;
    align-items: center;
    gap: 4px;
    height: 34px;
    padding: 3px 5px;
    background: #FFFFFF;
    border: 1px solid #B9D9F7;
    box-shadow: inset 0 0 22.6px #FFFFFF, 0 2px 8px -4px rgba(0, 126, 232, 0.4);
    border-radius: 999px;
}
.pjd-deadline:has(input[value="custom"]:checked) .pjd-days { display: inline-flex; }
.pjd-days-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px;
    flex: none;
    border: 0;
    border-radius: 50%;
    background: #EEF4FB;
    color: #334155;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}
.pjd-days-btn svg { width: 15px; height: 15px; }
.pjd-days-btn:hover { background: #DCEBFB; color: #007EE8; }
.pjd-days-input {
    width: 34px;
    border: 0;
    background: transparent;
    outline: none;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 700; font-size: 15px; color: #0F172A;
    appearance: textfield;
    -moz-appearance: textfield;
}
.pjd-days-input::-webkit-outer-spin-button,
.pjd-days-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pjd-days-suffix { font-weight: 500; font-size: 13px; color: #64748B; padding-right: 4px; }

/* ---------- Footer action bar ---------- */
.pjd-footer {
    flex: none;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 22.6px #FFFFFF;
    border-radius: 16px;
}
.pjd-btn-back,
.pjd-btn-next {
    display: inline-flex; align-items: center; gap: 8px;
    height: 44px;
    padding: 0 22px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.pjd-btn-back svg, .pjd-btn-next svg { width: 18px; height: 18px; }
.pjd-btn-back {
    color: #334155;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 0 12px #FFFFFF;
    border: 1px solid rgba(203, 213, 225, 0.9);
}
.pjd-btn-back:hover { background: rgba(255, 255, 255, 0.8); }
/* The house primary: the sidebar's profile button and the landing's primary
   buttons are drawn this way, and this follows them - the same blue gradient
   it already had, but on the pale rim and the inner white glow rather than a
   dark outline and a heavy blue drop shadow. The shadow that remains is the
   soft neutral one those carry, so the button sits on the bar instead of
   glowing off it. */
.pjd-btn-next {
    color: #FFFFFF;
    background: linear-gradient(180deg, #0B90F3 0%, #007EE8 100%);
    border: 1px solid #8AC9FF;
    box-shadow:
        0 4px 10px -6px rgba(0, 0, 0, 0.1),
        inset 0 0 7.7px rgba(255, 255, 255, 0.65),
        inset 0 0 6.2px rgba(255, 255, 255, 0.65);
}
/* Brightened rather than re-gradiented, so the two stops keep their relation. */
.pjd-btn-next:hover { filter: brightness(1.05); transform: translateY(-1px); }
.pjd-btn-next:active { transform: translateY(1px); filter: none; }
.pjd-btn-next:disabled { opacity: 0.7; cursor: default; }
.pjd-btn-next .pl-btn-spinner {
    width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.5);
    border-top-color: #fff; border-radius: 50%; display: inline-block;
    animation: pjdSpin 0.7s linear infinite;
}
@keyframes pjdSpin { to { transform: rotate(360deg); } }

/* ---------- AI drafting-preview cards ---------- */
.pjd-ai-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    background:
        linear-gradient(189.61deg, rgba(109, 40, 217, 0.08) -5.49%, rgba(109, 40, 217, 0) 60.64%),
        rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 22.6px #FFFFFF;
    border-radius: 24px;
}
.pjd-ai-head { display: flex; align-items: center; gap: 12px; }
.pjd-ai-spark { display: inline-flex; color: #6D28D9; }
.pjd-ai-spark svg { width: 20px; height: 20px; }
.pjd-ai-eyebrow { font-weight: 600; font-size: 15px; line-height: 22px; color: #6D28D9; }
.pjd-ai-title {
    margin: 0;
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    color: #0F172A;
    min-height: 28px;
}
.pjd-ai-title.pl-typing::after {
    content: '';
    display: inline-block;
    width: 2px; height: 0.95em;
    background: #6D28D9;
    margin-left: 3px;
    vertical-align: -2px;
    animation: pjdCaret 1s steps(1) infinite;
}
@keyframes pjdCaret { 50% { opacity: 0; } }

/* Role description under the heading + smooth crossfade for the dynamic bits */
.pjd-ai-desc {
    margin: 0;
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    color: #475569;
}
.pjd-ai-pills,
.pjd-ai-desc,
.pjd-ai-tags,
.pjd-req-list {
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.pjd-fade-out { opacity: 0; transform: translateY(6px); }
.pjd-ai-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pjd-pill {
    display: inline-flex; align-items: center;
    padding: 2px 10px;
    font-weight: 600; font-size: 13px; line-height: 20px;
    border-radius: 16px;
}
.pjd-pill-green { background: #CAEBE1; color: #3C8770; }
.pjd-ai-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pjd-skill {
    display: inline-flex; align-items: center;
    padding: 4px 12px;
    font-weight: 600; font-size: 13px; line-height: 18px;
    color: #007EE8;
    background: rgba(11, 144, 243, 0.10);
    border-radius: 16px;
}
.pjd-ai-req { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.pjd-req-label { font-weight: 600; font-size: 14px; line-height: 20px; color: #0F172A; }
.pjd-req-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pjd-req-list li { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; line-height: 20px; color: #334155; }
.pjd-req-list li svg { width: 15px; height: 15px; color: #3C8770; flex: none; }

/* ---------- Responsive: stack the two columns on narrow viewports ---------- */
@media (max-width: 1180px) {
    .pjd-grid { grid-template-columns: minmax(0, 1fr); }
    .pjd-col-preview { position: static; }
}


/* =============================================================
   STEP 2 - Platform Post (Figma redesign)
   ============================================================= */
#step-2.pjd { display: flex; flex-direction: column; gap: 20px; }
/* Loader fills the content area and centers the spinner; the header stays
   compact because the sidebar is now out of the grid flow (fixed), so it can
   no longer stretch the topnav row while the draft is loading. */
.pjd2-loader { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 320px; }
.pjd2-content { flex: 1 1 auto; }

/* ---------- Tabs ---------- */
.pjd2-tabs {
    display: flex;
    align-items: center;
    gap: 40px;
    border-bottom: 1px solid #D6DAE0;
}
.pjd2-tab {
    position: relative;
    padding: 12px 2px;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 22px;
    color: #64748B;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}
.pjd2-tab:hover { color: #334155; }
.pjd2-tab.is-active { color: #007EE8; border-bottom-color: #007EE8; }

/* ---------- Document card (LinkedIn Post / JD) ---------- */
.pjd2-doc-card { position: relative; gap: 0; }
.pjd2-doc-actions {
    position: absolute;
    top: 18px; right: 20px;
    display: flex; align-items: center; gap: 8px;
    z-index: 2;
}
.pjd2-icon-btn {
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 0 12px #FFFFFF, 0 1px 2px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(203, 213, 225, 0.7);
    border-radius: 10px;
    color: #334155;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.pjd2-icon-btn svg { width: 15px; height: 15px; }
.pjd2-icon-btn:hover { background: #FFFFFF; color: #007EE8; }

.pjd2-pane { display: flex; flex-direction: column; }
.pjd2-doc {
    max-height: 440px;
    overflow-y: auto;
    /* Clear of the track rather than touching it - 6px left the longest line
       four pixels from the bar, which reads as a collision even though it is
       not one. */
    padding-right: 12px;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    color: #334155;
}
.pjd2-doc a { color: #007EE8; text-decoration: none; }
.pjd2-doc a:hover { text-decoration: underline; }

/* The post and the JD are the two things on this step a recruiter actually
   reads, and both are taller than the card: a thousand-odd pixels of copy in a
   440px window. They had nothing to say so.

   The reset at the top of this file hides every scrollbar in the wizard, in
   both of the ways a browser offers - `scrollbar-width: none` and
   `display: none` on the WebKit pseudo-element. Giving that pseudo-element a
   width does not bring the bar back, because `display: none` is a different
   property and goes on applying; that is why the width set here before drew
   nothing. Both halves are answered, and only for these two elements, so the
   rest of the wizard keeps its clean edges.

   `scrollbar-gutter: stable` reserves the track whether or not it is in use.
   That is what keeps the bar off the words: the text column is measured to the
   inside of the track, so no line can ever run under it - and it also stops
   the copy reflowing when the AI rewrite returns a shorter post, or when the
   tab switches between a long JD and a short one. Reserving it is also what
   lets the thumb fade in and out below without the copy moving a pixel.

   The thumb is there only while the pointer is in the block. Reading the post
   is the main thing this step is for, and a bar parked down the side of it the
   rest of the time is one more line of UI next to the words. It is light grey
   rather than the wizard's blue: it is chrome for the reader, not an accent to
   be drawn to.

   `:focus-within` / `:focus` keeps it up while the recruiter is typing in the
   edit textarea, when the pointer may well be nowhere near. */
.pjd2-doc,
.pjd2-edit {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    scrollbar-gutter: stable;
    transition: scrollbar-color 0.18s ease;
}
.pjd2-doc:hover,
.pjd2-doc:focus-within,
.pjd2-edit:hover,
.pjd2-edit:focus {
    scrollbar-color: rgba(148, 163, 184, 0.55) transparent;
}
.pjd2-doc::-webkit-scrollbar,
.pjd2-edit::-webkit-scrollbar { display: block; width: 7px; height: 7px; }
.pjd2-doc::-webkit-scrollbar-thumb,
.pjd2-edit::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 7px;
    transition: background 0.18s ease;
}
.pjd2-doc:hover::-webkit-scrollbar-thumb,
.pjd2-doc:focus-within::-webkit-scrollbar-thumb,
.pjd2-edit:hover::-webkit-scrollbar-thumb,
.pjd2-edit:focus::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.55); }
.pjd2-doc:hover::-webkit-scrollbar-thumb:hover,
.pjd2-edit:hover::-webkit-scrollbar-thumb:hover { background: rgba(100, 116, 139, 0.7); }
.pjd2-doc::-webkit-scrollbar-track,
.pjd2-edit::-webkit-scrollbar-track { background: transparent; }
.pjd2-edit {
    width: 100%;
    box-sizing: border-box;
    min-height: 320px;
    padding: 14px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: #334155;
    background: linear-gradient(180deg, #FFFFFF 0%, #F4F7FA 100%);
    border: 1px solid rgba(203, 213, 225, 0.75);
    box-shadow: inset 0 0 22.6px #FFFFFF;
    border-radius: 14px;
    outline: none;
    resize: vertical;
}
.pjd2-edit-bar { display: flex; gap: 10px; margin-top: 12px; align-items: center; }
.pjd2-save, .pjd2-cancel { height: 38px; padding: 0 18px; font-size: 15px; }

/* Characters left in the LinkedIn post. LinkedIn publishes nothing over 3,000,
   so the recruiter needs to see the ceiling they are typing towards rather than
   discover it when the textarea stops accepting keys. */
.pjd2-count { margin-left: auto; font-size: 13px; color: #64748B; }
.pjd2-count.is-near { color: #B45309; font-weight: 600; }

/* ---------- Quick AI filters card ---------- */
.pjd2-filters-card { gap: 16px; }
.pjd2-filters-label {
    font-weight: 600; font-size: 13px; line-height: 20px; color: #334155;
}
.pjd2-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pjd2-chip {
    padding: 6px 16px;
    background: linear-gradient(180deg, #FFFFFF 0%, #EEF2F7 100%);
    border: 1px solid rgba(203, 213, 225, 0.75);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(15, 23, 42, 0.04);
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-weight: 600; font-size: 13px; line-height: 20px;
    color: #334155;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pjd2-chip:hover { background: rgba(176, 219, 255, 0.4); border-color: #7DB8F5; color: #007EE8; }

.pjd2-ai-bar {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px 10px 16px;
    background: #FAFAFA;
    box-shadow: inset 0 0 22.6px #FFFFFF, inset 0 0 0 1px rgba(203, 213, 225, 0.55);
    border-radius: 12px;
}
.pjd2-ai-spark { display: inline-flex; flex: none; }
.pjd2-ai-spark svg { width: 20px; height: 20px; }
.pjd2-ai-input {
    flex: 1 1 auto; min-width: 0;
    border: 0; background: transparent; outline: none;
    font-family: 'Inter', sans-serif;
    font-weight: 400; font-size: 14px; color: #334155;
}
.pjd2-ai-input::placeholder { color: #64748B; }
/* The house primary (.pjd-btn-next, the footer's Continue) at the bar's
   scale: the same gradient on the pale rim and inner white glow, the same
   lift on hover. It had a dark outline and a heavy blue drop shadow of its
   own, which made it the one button on the page drawn differently. */
.pjd2-ai-apply {
    flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    height: 36px;
    padding: 0 18px;
    background: linear-gradient(180deg, #0B90F3 0%, #007EE8 100%);
    border: 1px solid #8AC9FF;
    box-shadow:
        0 4px 10px -6px rgba(0, 0, 0, 0.1),
        inset 0 0 7.7px rgba(255, 255, 255, 0.65),
        inset 0 0 6.2px rgba(255, 255, 255, 0.65);
    border-radius: 10px;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 600; font-size: 14px;
    cursor: pointer;
    transition: filter 0.15s, transform 0.1s;
}
.pjd2-ai-apply:hover { filter: brightness(1.05); transform: translateY(-1px); }
.pjd2-ai-apply:active { transform: translateY(1px); filter: none; }
.pjd2-ai-apply:disabled { opacity: 0.7; cursor: default; transform: none; filter: none; }

/* ---------- Sharing & Referrals card ---------- */
.pjd2-share-card { gap: 20px; }
.pjd2-share-head { display: flex; flex-direction: column; gap: 6px; }
.pjd2-share-title { margin: 0; font-weight: 600; font-size: 20px; line-height: 28px; color: #0F172A; }
.pjd2-share-sub { margin: 0; font-weight: 400; font-size: 13px; line-height: 20px; color: #334155; }
.pjd2-field { display: flex; flex-direction: column; gap: 12px; }
.pjd2-field-label { font-weight: 600; font-size: 15px; line-height: 22px; color: #0F172A; }
.pjd2-field-hint { margin: 0; font-weight: 400; font-size: 13px; line-height: 20px; color: #64748B; }

/* Referral link */
.pjd2-link {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px;
    background: #FAFAFA;
    box-shadow: inset 0 0 22.6px #FFFFFF, inset 0 0 0 1px rgba(203, 213, 225, 0.5);
    border-radius: 10px;
}
.pjd2-link-text {
    flex: 1 1 auto; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-weight: 400; font-size: 13px; line-height: 20px;
    color: #007EE8; text-decoration: none;
}
.pjd2-link-text:hover { text-decoration: underline; }
.pjd2-link-copy {
    flex: none; width: 24px; height: 24px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; background: transparent; color: #007EE8; cursor: pointer;
    border-radius: 6px;
}
.pjd2-link-copy svg { width: 15px; height: 15px; }
.pjd2-link-copy:hover { background: rgba(0, 126, 232, 0.08); }

/* Upload zone */
.pjd2-upload {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 24px;
    background: #FAFAFA;
    border: 1px dashed #8B95A5;
    box-shadow: inset 0 0 22.6px #FFFFFF;
    border-radius: 16px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.pjd2-upload:hover { border-color: #007EE8; background: #F4F9FF; }
.pjd2-upload-ic {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #E6F3FF; border-radius: 12px;
}
.pjd2-upload-ic svg { width: 20px; height: 20px; }
.pjd2-upload-title { font-weight: 600; font-size: 15px; line-height: 22px; color: #334155; text-align: center; }
.pjd2-upload-sub { font-weight: 400; font-size: 13px; line-height: 20px; color: #64748B; text-align: center; }

/* Hiring-manager toggle + add */
.pjd2-hm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pjd2-switch { position: relative; display: inline-flex; flex: none; cursor: pointer; }
.pjd2-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.pjd2-switch-track {
    width: 40px; height: 20px;
    background: #CBD5E1;
    border-radius: 10px;
    position: relative;
    transition: background 0.18s;
}
.pjd2-switch-track::after {
    content: ""; position: absolute;
    top: 2px; left: 2px;
    width: 16px; height: 16px;
    background: #FFFFFF; border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: transform 0.18s;
}
.pjd2-switch input:checked + .pjd2-switch-track { background: #007EE8; }
.pjd2-switch input:checked + .pjd2-switch-track::after { transform: translateX(20px); }
.pjd2-hm-add { display: flex; align-items: center; gap: 8px; }
.pjd2-hm-email {
    flex: 1 1 auto; min-width: 0;
    box-sizing: border-box;
    height: 36px; padding: 8px 14px;
    background: #FAFAFA;
    box-shadow: inset 0 0 22.6px #FFFFFF, inset 0 0 0 1px rgba(203, 213, 225, 0.5);
    border: 0; border-radius: 10px;
    font-family: 'Inter', sans-serif; font-weight: 400; font-size: 13px; color: #334155;
    outline: none;
}
.pjd2-hm-email::placeholder { color: #64748B; }
.pjd2-hm-addbtn {
    flex: none; height: 36px; padding: 0 18px;
    background: linear-gradient(180deg, #FFFFFF 0%, #EEF2F7 100%);
    border: 1px solid rgba(203, 213, 225, 0.75);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px; color: #334155;
    cursor: pointer;
}
.pjd2-hm-addbtn:hover { background: rgba(176, 219, 255, 0.4); color: #007EE8; border-color: #7DB8F5; }
.pjd2-hm-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Post-to rows */
.pjd2-posts { display: flex; flex-direction: column; gap: 10px; }
.pjd2-post-row {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    background: #FAFAFA;
    box-shadow: inset 0 0 22.6px #FFFFFF, inset 0 0 0 1px rgba(203, 213, 225, 0.5);
    border-radius: 12px;
    cursor: pointer;
}
.pjd2-post-row input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.pjd2-post-check {
    flex: none; width: 18px; height: 18px;
    border: 1.5px solid #CBD5E1;
    border-radius: 5px;
    background: #FFFFFF;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background 0.12s, border-color 0.12s;
}
.pjd2-post-check::after {
    content: ""; width: 10px; height: 6px;
    border-left: 2px solid #FFFFFF; border-bottom: 2px solid #FFFFFF;
    transform: rotate(-45deg) translateY(-1px);
    opacity: 0;
}
.pjd2-post-row:has(input:checked) .pjd2-post-check { background: #007EE8; border-color: #007EE8; }
.pjd2-post-row:has(input:checked) .pjd2-post-check::after { opacity: 1; }
.pjd2-post-row.disabled { opacity: 0.85; cursor: default; }
.pjd2-post-row.disabled .pjd2-post-check { background: #EEF2F7; }
.pjd2-post-name { flex: 1 1 auto; font-weight: 500; font-size: 14px; line-height: 20px; color: #334155; }

/* Status pills (JS toggles .is-connect / .connected / .soon) */
.pjd2-share-card .pl-li-dd-status {
    flex: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600; font-size: 13px; line-height: 18px;
    color: #64748B;
    cursor: default;
}
.pjd2-share-card .pl-li-dd-status.is-connect {
    padding: 5px 14px;
    color: #007EE8;
    background: #FFFFFF;
    border: 1px solid #B9D9F7;
    border-radius: 8px;
    cursor: pointer;
}
.pjd2-share-card .pl-li-dd-status.is-connect:hover { background: #EAF4FF; }
.pjd2-share-card .pl-li-dd-status.connected { color: #3C8770; display: inline-flex; align-items: center; gap: 8px; }
.pjd2-share-card .pl-li-dd-status.soon {
    padding: 4px 12px;
    color: #B7791F;
    background: #FEF3C7;
    border-radius: 999px;
}
.pjd2-share-card .pl-li-dd-disconnect {
    border: 0; background: transparent; color: #EF4444; font-size: 12px; font-weight: 600; cursor: pointer; padding: 0;
}

/* =============================================================
   Internal-referral modal, in the step-2 dress
   -------------------------------------------------------------
   It is opened from the Sharing & Referrals card above, and until now it
   arrived wearing the wizard's previous skin - a square white box with hard
   rules above and below, 8px fields with grey outlines, and a pill button -
   while everything it opened over had moved on to the glass cards, the soft
   12px fields and the blue gradient primary.

   Dressed here rather than in the markup. Every class the dialog uses is a
   `pl-*` one shared with older screens, and the ids are what pipeline.js and
   the validation and phone widgets reach for, so re-tagging the HTML would
   have been a much larger and riskier change for the same picture. The
   selectors below are all scoped to #referral-modal; nothing else that uses
   these classes moves.

   The field shape - 12px radius, #FAFAFA, a #CBD5E1 hairline, the inset white
   glow, #8AC9FF on focus - is the one the phone widget already draws itself
   in (see injectCSS in phone_input.js), so the country chip and the number
   box read as one control instead of two.
   ============================================================= */
#referral-overlay {
    background: rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
#referral-modal {
    max-width: 560px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F6FAFE 100%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    box-shadow:
        inset 0 0 22.6px #FFFFFF,
        0 28px 70px -20px rgba(15, 23, 42, 0.35);
}

/* Head and foot carry their separation by spacing, as the cards do, rather
   than by a rule across the dialog. */
#referral-modal .pl-modal-head {
    padding: 24px 28px 6px;
    border-bottom: 0;
    align-items: flex-start;
}
#referral-modal .pl-modal-head h3 {
    gap: 10px;
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    color: #0F172A;
}
#referral-modal .pl-modal-head h3 svg { width: 20px; height: 20px; color: #007EE8; }
#referral-modal .pl-btn-icon {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(203, 213, 225, 0.75);
    border-radius: 10px;
    color: #64748B;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
#referral-modal .pl-btn-icon:hover {
    background: #FFFFFF;
    border-color: #7DB8F5;
    color: #007EE8;
}

#referral-modal .pl-modal-body { padding: 14px 28px 10px; gap: 18px; }
#referral-modal .pl-modal-note {
    padding: 12px 14px;
    background: #F4F9FF;
    box-shadow: inset 0 0 22.6px #FFFFFF, inset 0 0 0 1px rgba(185, 217, 247, 0.7);
    border-radius: 12px;
    font-weight: 400;
    font-size: 13px;
    line-height: 20px;
    color: #334155;
}

#referral-modal .pl-field { gap: 10px; }
#referral-modal .pl-field label {
    font-weight: 600;
    font-size: 15px;
    line-height: 22px;
    color: #0F172A;
}
#referral-modal .pl-field .req { color: #007EE8; }
#referral-modal .pl-row-2 { gap: 16px; }
#referral-modal .pl-field input[type="text"],
#referral-modal .pl-field input[type="email"],
#referral-modal .pl-field input[type="tel"] {
    box-sizing: border-box;
    height: 44px;
    padding: 0 16px;
    background: #FAFAFA;
    border: 1px solid #CBD5E1;
    border-radius: 12px;
    box-shadow: inset 0 0 22.6px #FFFFFF;
    font-size: 14px;
    line-height: 22px;
    color: #334155;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#referral-modal .pl-field input::placeholder { color: #94A3B8; }
#referral-modal .pl-field input:focus {
    border-color: #8AC9FF;
    box-shadow: inset 0 0 22.6px #FFFFFF, 0 0 0 3px rgba(138, 201, 255, 0.35);
}

/* The drop zone matches the one in the rail behind it: a column, the glyph in
   a pale blue tile, a dashed 16px frame. The tile is drawn on the svg itself
   because the markup has no wrapper to hang it on. */
#referral-modal .pl-upload-zone {
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    background: #FAFAFA;
    border: 1px dashed #8B95A5;
    box-shadow: inset 0 0 22.6px #FFFFFF;
    border-radius: 16px;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #64748B;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
#referral-modal .pl-upload-zone svg {
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    padding: 10px;
    background: #E6F3FF;
    border-radius: 12px;
    color: #007EE8;
}
#referral-modal .pl-upload-zone:hover {
    border-color: #007EE8;
    background: #F4F9FF;
    color: #334155;
}
#referral-modal .pl-upload-done {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 20px;
}
#referral-modal .pl-btn-remove { font-weight: 600; font-size: 13px; }

/* Cancel and Add Referral are the wizard's own Back and Continue, so the
   dialog ends the way every step of the flow ends. */
#referral-modal .pl-modal-foot {
    padding: 10px 28px 24px;
    border-top: 0;
    gap: 12px;
}
#referral-modal .pl-modal-foot .pl-btn-sm.pl-btn-ghost,
#referral-modal .pl-modal-foot .pl-btn.pl-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s, filter 0.15s;
}
#referral-modal .pl-modal-foot .pl-btn-sm.pl-btn-ghost {
    color: #334155;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(203, 213, 225, 0.9);
    box-shadow: inset 0 0 12px #FFFFFF;
}
#referral-modal .pl-modal-foot .pl-btn-sm.pl-btn-ghost:hover { background: rgba(255, 255, 255, 0.8); }
#referral-modal .pl-modal-foot .pl-btn.pl-btn-primary {
    color: #FFFFFF;
    background: linear-gradient(180deg, #0B90F3 0%, #007EE8 100%);
    border: 1px solid #8AC9FF;
    box-shadow:
        0 4px 10px -6px rgba(0, 0, 0, 0.1),
        inset 0 0 7.7px rgba(255, 255, 255, 0.65),
        inset 0 0 6.2px rgba(255, 255, 255, 0.65);
}
#referral-modal .pl-modal-foot .pl-btn.pl-btn-primary svg { width: 18px; height: 18px; }
#referral-modal .pl-modal-foot .pl-btn.pl-btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
#referral-modal .pl-modal-foot .pl-btn.pl-btn-primary:active { transform: translateY(1px); filter: none; }

/* On a short window the body scrolls, and the reset at the top of this file
   would leave it scrolling with nothing to show for it - same treatment as
   the post and JD panes. */
#referral-modal .pl-modal-body {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    scrollbar-gutter: stable;
    transition: scrollbar-color 0.18s ease;
}
#referral-modal .pl-modal-body:hover,
#referral-modal .pl-modal-body:focus-within {
    scrollbar-color: rgba(148, 163, 184, 0.55) transparent;
}
#referral-modal .pl-modal-body::-webkit-scrollbar { display: block; width: 7px; }
#referral-modal .pl-modal-body::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 7px;
    transition: background 0.18s ease;
}
#referral-modal .pl-modal-body:hover::-webkit-scrollbar-thumb,
#referral-modal .pl-modal-body:focus-within::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.55);
}
#referral-modal .pl-modal-body::-webkit-scrollbar-track { background: transparent; }


/* =============================================================
   STEP 3 - Pick Interviewer (Figma redesign)
   ============================================================= */
#step-3.pjd { display: flex; flex-direction: column; gap: 20px; }
.pjd3 .pjd-scroll { display: flex; flex-direction: column; gap: 24px; }

.pjd3-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.pjd3-head-text { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-width: 0; }
.pjd3-title { margin: 0; font-weight: 600; font-size: 22px; line-height: 30px; color: #0F172A; }
.pjd3-sub { margin: 0; font-weight: 400; font-size: 14px; line-height: 20px; color: #64748B; }
.pjd3-count {
    flex: none;
    padding: 6px 16px;
    background: rgba(176, 219, 255, 0.5);
    color: #007EE8;
    font-weight: 600; font-size: 14px; line-height: 20px;
    border-radius: 999px;
    white-space: nowrap;
}

.pjd3-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.pjd3-card {
    box-sizing: border-box;
    display: flex; flex-direction: column; gap: 18px;
    min-height: 250px;
    padding: 26px 24px;
    text-align: left;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #CBD5E1;
    box-shadow: inset 0 0 22.6px #FFFFFF;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}
.pjd3-card:hover {
    border-color: #9CC7F2;
    transform: translateY(-2px);
    box-shadow: inset 0 0 22.6px #FFFFFF, 0 12px 26px -16px rgba(15, 23, 42, 0.28);
}
.pjd3-card.selected {
    border-color: #54B1FF;
    background:
        linear-gradient(238.22deg, rgba(37, 99, 235, 0.08) 4.3%, rgba(37, 99, 235, 0) 62.47%),
        rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 22.6px #FFFFFF, 0 14px 28px -16px rgba(0, 126, 232, 0.32);
}
.pjd3-card--locked { cursor: default; }

.pjd3-card-top { display: flex; align-items: flex-start; gap: 12px; }
.pjd3-avatar {
    flex: none;
    position: relative;
    width: 42px; height: 42px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 600; font-size: 16px;
    color: #FFFFFF !important;
    /* 3D texture: top highlight + bottom inner shadow + soft drop */
    box-shadow:
        0 9px 18px -7px rgba(15, 23, 42, 0.5),
        inset 0 1.6px 1px rgba(255, 255, 255, 0.55),
        inset 0 -4px 7px rgba(0, 0, 0, 0.32);
}
.pjd3-avatar::after {
    /* glossy top sheen */
    content: "";
    position: absolute;
    left: 14%; right: 14%; top: 8%;
    height: 38%;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
    pointer-events: none;
}
/* Darker, higher-contrast avatar gradients (Figma: light top-left -> dark bottom-right) */
.pjd3-avatar.pl-grad-purple { background: linear-gradient(140.25deg, #AEAAF3 3.82%, #2B277E 96.18%); }
.pjd3-avatar.pl-grad-coral  { background: linear-gradient(140.25deg, #FBA5FF 0%, #38003B 100%); }
.pjd3-avatar.pl-grad-yellow { background: linear-gradient(140.25deg, #F7DC8D 3.82%, #7C5D02 96.18%); }
.pjd3-avatar.pl-grad-blue   { background: linear-gradient(140.25deg, #8DBEF7 3.82%, #06326E 96.18%); }
.pjd3-avatar.pl-grad-green  { background: linear-gradient(140.25deg, #8DE9C4 3.82%, #04503A 96.18%); }
.pjd3-avatar.pl-grad-dark   { background: linear-gradient(140.25deg, #4A4A4A 3.82%, #101010 96.18%); color: #EAB000 !important; }
.pjd3-name-block { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-top: 1px; }
.pjd3-name { font-weight: 600; font-size: 16px; line-height: 24px; color: #0F172A; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pjd3-role { font-weight: 600; font-size: 13px; line-height: 20px; color: #64748B; }
.pjd3-check {
    flex: none;
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 1.2px solid #64748B;
    background: transparent;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background 0.15s, border-color 0.15s;
}
.pjd3-check svg { width: 12px; height: 12px; opacity: 0; }
.pjd3-card.selected .pjd3-check { background: #007EE8; border-color: #007EE8; }
.pjd3-card.selected .pjd3-check svg { opacity: 1; }

.pjd3-focus { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid #E2E8F0; }
.pjd3-focus-label { font-weight: 600; font-size: 13px; line-height: 20px; color: #0F172A; }
.pjd3-desc { margin: 0; font-weight: 400; font-size: 13px; line-height: 20px; color: #334155; }

.pjd3-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.pjd3-tag {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #CBD5E1;
    box-shadow: inset 0 0 22.6px #FFFFFF;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-weight: 600; font-size: 13px; line-height: 20px;
    color: #334155;
}

@media (max-width: 1200px) { .pjd3-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .pjd3-grid { grid-template-columns: 1fr; } }

/* =============================================================
   STEP 4 - Find Candidates (Figma redesign)
   ============================================================= */
#step-4.pjd { display: flex; flex-direction: column; gap: 20px; }
.pjd4 .pjd-scroll { display: flex; flex-direction: column; gap: 28px; }

/* --- Filter tabs (underline style) --- */
.pjd4-tabs {
    display: flex; align-items: stretch;
    gap: 40px;
    border-bottom: 1px solid #CBD5E1;
    overflow-x: auto;
}
.pjd4-tab {
    position: relative;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 12px 4px;
    margin-bottom: -1px;
    background: none; border: none;
    border-bottom: 2px solid transparent;
    font-family: 'Inter', sans-serif;
    font-weight: 600; font-size: 15px; line-height: 22px;
    color: #64748B;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}
.pjd4-tab:hover { color: #0F172A; }
.pjd4-tab.active { color: #007EE8; border-bottom-color: #007EE8; }
.pjd4-tab-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; padding: 0 6px;
    background: rgba(176, 219, 255, 0.4);
    border-radius: 12px;
    font-weight: 400; font-size: 13px; line-height: 20px;
    color: #007EE8;
}

/* --- AI match signal banner --- */
.pjd4-signal {
    display: flex; align-items: center; gap: 12px;
    padding: 16px;
    background: rgba(254, 243, 199, 0.6);
    border-left: 2px solid #D97706;
    border-radius: 12px;
}
.pjd4-signal-ic { flex: none; display: inline-flex; color: #D97706; }
.pjd4-signal-text {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 600; font-size: 15px; line-height: 22px;
    color: #D97706;
}
.pjd4-signal-text strong { font-weight: 700; }

/* --- Sections --- */
.pjd4-sections { display: flex; flex-direction: column; gap: 24px; }
.pjd4-sec {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #CBD5E1;
    box-shadow: inset 0 0 22.6px #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
}

/* Section header */
.pjd4-sec-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
    padding: 16px;
    background: #F3F4F6;
    border-bottom: 1px solid #CBD5E1;
}
.pjd4-sec.collapsed .pjd4-sec-head { border-bottom-color: transparent; }
.pjd4-sec-head-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pjd4-chev {
    flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px;
    background: none; border: none; padding: 0;
    color: #334155;
    cursor: pointer;
    transition: transform 0.18s;
}
.pjd4-sec.collapsed .pjd4-chev { transform: rotate(-90deg); }
.pjd4-sec-name { font-weight: 600; font-size: 15px; line-height: 22px; color: #0F172A; white-space: nowrap; }
.pjd4-sec-div { width: 1px; height: 20px; background: #CBD5E1; }
.pjd4-sec-count { font-weight: 600; font-size: 13px; line-height: 20px; color: #64748B; white-space: nowrap; }
.pjd4-sort {
    flex: none;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid #CBD5E1;
    box-shadow: inset 0 0 22.6px #FFFFFF;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600; font-size: 15px; line-height: 22px;
    color: #334155;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.pjd4-sort:hover { border-color: #9CC7F2; }
.pjd4-sort--on { border-color: #54B1FF; color: #007EE8; }

.pjd4-sec.collapsed .pjd4-sec-body,
.pjd4-sec.collapsed .pjd4-sec-foot { display: none; }

/* Candidate row */
.pjd4-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
    padding: 20px 16px;
    background: #FAFAFA;
    border-bottom: 1px solid #CBD5E1;
    cursor: pointer;
    transition: background 0.14s;
}
.pjd4-row:last-child { border-bottom: none; }
.pjd4-row:hover { background: #F1F5F9; }

.pjd4-row-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pjd4-row-name {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    font-weight: 500; font-size: 16px; line-height: 24px; color: #0F172A;
}
.pjd4-otw {
    padding: 2px 10px;
    background: rgba(176, 219, 255, 0.3);
    border-radius: 16px;
    font-weight: 600; font-size: 13px; line-height: 20px;
    color: #007EE8;
}
.pjd4-row-sub { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pjd4-row-title, .pjd4-row-loc {
    display: inline-flex; align-items: center; gap: 6px;
    font-weight: 400; font-size: 13px; line-height: 20px;
    color: #334155;
}
.pjd4-row-title svg, .pjd4-row-loc svg { flex: none; color: #64748B; }
.pjd4-row-loc { color: #64748B; font-weight: 600; }

.pjd4-skills { display: flex; flex-wrap: wrap; gap: 8px; }
.pjd4-skill {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #CBD5E1;
    box-shadow: inset 0 0 22.6px #FFFFFF;
    border-radius: 999px;
    font-weight: 600; font-size: 13px; line-height: 20px;
    color: #334155;
}

/* Row right side */
.pjd4-row-side {
    flex: none;
    display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.pjd4-row-loc.side { color: #64748B; }
.pjd4-viewbtn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 9px 15px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 10px -6px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    font-weight: 500; font-size: 15px; line-height: 22px;
    color: #334155;
    white-space: nowrap;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.pjd4-row:hover .pjd4-viewbtn { border-color: #9CC7F2; box-shadow: 0 6px 14px -8px rgba(0, 126, 232, 0.35); }
.pjd4-match {
    padding: 3px 12px;
    background: rgba(16, 185, 129, 0.14);
    border-radius: 999px;
    font-weight: 600; font-size: 13px; line-height: 20px;
    color: #059669;
}
.pjd4-contacts { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pjd4-crow {
    display: inline-flex; align-items: center; gap: 6px;
    font-weight: 400; font-size: 13px; line-height: 20px;
    color: #334155;
}
.pjd4-crow svg { flex: none; color: #64748B; }

/* Section footer / pagination */
.pjd4-sec-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
    padding: 16px;
    background: #FAFAFA;
}
.pjd4-showing { font-weight: 400; font-size: 13px; line-height: 20px; color: #64748B; }
.pjd4-pager { display: flex; align-items: center; gap: 8px; }
.pjd4-page {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px; padding: 0 9px;
    /* glossy white pill */
    background: linear-gradient(180deg, #FFFFFF 0%, #F1F5FA 100%);
    border: 1px solid #E2E8F0;
    border-radius: 11px;
    box-shadow: 0 4px 10px -6px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    font-family: 'Inter', sans-serif;
    font-weight: 600; font-size: 14px; line-height: 20px;
    color: #334155;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s, color 0.15s;
}
.pjd4-page:hover:not(:disabled):not(.active) {
    border-color: #9CC7F2;
    box-shadow: 0 6px 14px -8px rgba(0, 126, 232, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}
.pjd4-page.active {
    /* glossy glowing blue (Figma primary button formula) */
    background:
        linear-gradient(0deg, #0B90F3, #0B90F3),
        linear-gradient(180deg, rgba(0, 126, 232, 0) 8.33%, rgba(0, 126, 232, 0.7) 152.38%),
        rgba(255, 255, 255, 0.62);
    border: 1px solid #8AC9FF;
    color: #FFFFFF;
    box-shadow:
        0 4px 10px -6px rgba(0, 126, 232, 0.4),
        0 0 6px rgba(11, 144, 243, 0.28),
        inset 0 0 6.2px #FFFFFF;
}
.pjd4-page:disabled { opacity: 0.45; cursor: default; box-shadow: none; }
.pjd4-page-arrow { font-size: 16px; line-height: 1; }
.pjd4-ellipsis { padding: 0 2px; color: #94A3B8; font-size: 14px; }

/* Section loading / empty */
.pjd4-sec-loading { display: flex; align-items: center; justify-content: center; padding: 48px 16px; }
.pjd4-sec-empty {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 56px 16px;
    text-align: center;
    color: #94A3B8;
}
.pjd4-sec-empty svg { color: #B0DBFF; margin-bottom: 6px; }
.pjd4-sec-empty h4 { margin: 0; font-weight: 600; font-size: 16px; line-height: 22px; color: #0F172A; }
.pjd4-sec-empty p { margin: 0; font-weight: 400; font-size: 13px; line-height: 20px; color: #94A3B8; }

@media (max-width: 900px) {
    .pjd4-row { flex-direction: column; align-items: flex-start; }
    .pjd4-row-side { align-items: flex-start; }
    .pjd4-contacts { align-items: flex-start; }
}

/* =============================================================
   Pipeline Launch page (/e6vn) - "Candidate search has started"
   Rebuilt to the supplied spec. The board's `background: url(AI Loading
   Animation.png)` is painted in CSS instead of shipped as a raster: it is a
   soft gradient, it stays crisp at any size, and it costs no asset request.
   Static by request - nothing animates here except the loading ring.
   ============================================================= */
.lp2-wrap {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    /* pipeline.css pins html/body to --app-vh with overflow:hidden, so a short
       window would clip the 542px card with no way to reach it. */
    overflow: auto;
    background:
        radial-gradient(1180px 900px at -6% -12%, rgba(85, 190, 158, 0.40), transparent 56%),
        radial-gradient(1000px 820px at 104% 46%, rgba(0, 138, 255, 0.26), transparent 58%),
        radial-gradient(880px 760px at 66% 118%, rgba(120, 190, 255, 0.22), transparent 60%),
        #F5F8F9;
}

.lp2-modal {
    box-sizing: border-box;
    width: 530px; max-width: 100%;
    background: #F3F4F6;
    border: 1px solid #E2E8F0;
    box-shadow: inset 0 0 22.6px #FFFFFF;
    border-radius: 24px;
}
.lp2-inner {
    display: flex; flex-direction: column; align-items: center;
    padding: 40px; gap: 40px;
}
.lp2-top { display: flex; flex-direction: column; align-items: center; gap: 40px; width: 100%; }

/* Dashed ring + the candidate-search glyph. The ring is the page's only motion:
   it is the loading affordance, and the "keep it static" note is about the
   background board, which is now a flat gradient. */
.lp2-spinner {
    position: relative;
    width: 64px; height: 64px;
    display: inline-flex; align-items: center; justify-content: center;
    box-sizing: border-box;
}
.lp2-ring {
    position: absolute; inset: 0;
    border: 2px dashed #007EE8;
    border-radius: 32px;
    animation: lp2-spin 7s linear infinite;
}
.lp2-spinner svg { width: 32px; height: 32px; position: relative; }
@keyframes lp2-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lp2-ring { animation: none; } }

.lp2-heading { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.lp2-title {
    margin: 0; text-align: center;
    font-family: 'Inter', sans-serif; font-weight: 600; font-size: 20px; line-height: 28px;
    color: #0F172A;
}
.lp2-sub {
    margin: 0; text-align: center;
    font-family: 'Inter', sans-serif; font-weight: 400; font-size: 12px; line-height: 20px;
    color: #64748B;
}

/* Two "already done" chips, equal width */
.lp2-chips { display: flex; flex-direction: row; align-items: flex-start; gap: 24px; width: 100%; }
.lp2-chip {
    box-sizing: border-box;
    flex: 1 1 0; min-width: 0;
    display: flex; flex-direction: row; align-items: center; gap: 12px;
    height: 44px; padding: 12px 16px;
    background: #FAFAFA;
    border: 1px solid #CBD5E1;
    box-shadow: inset 0 0 22.6px #FFFFFF;
    border-radius: 16px;
}
.lp2-check {
    flex: none;
    width: 16px; height: 16px; border-radius: 50%;
    background: #4DAD90;
    display: inline-flex; align-items: center; justify-content: center;
}
.lp2-check svg { width: 9px; height: 9px; color: #FFFFFF; }
.lp2-chip-label {
    flex: 1 1 auto; min-width: 0;
    font-family: 'Inter', sans-serif; font-weight: 600; font-size: 12px; line-height: 20px;
    color: #0F172A;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Amber "all set" signal */
.lp2-signal {
    box-sizing: border-box;
    width: 100%;
    display: flex; flex-direction: row; align-items: center; gap: 12px;
    padding: 16px;
    background: linear-gradient(90.61deg, rgba(217, 119, 6, 0.12) 0.9%, rgba(217, 119, 6, 0) 41.88%), rgba(255, 255, 255, 0.4);
    border: 1px solid #D97706;
    box-shadow: inset 0 0 22.6px #FFFFFF;
    border-radius: 12px;
}
.lp2-signal-ic {
    flex: none;
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #F3F4F6;
    border-radius: 10px;
}
.lp2-signal-ic svg { width: 20px; height: 20px; }
.lp2-signal-text {
    flex: 1 1 auto; min-width: 0;
    font-family: 'Inter', sans-serif; font-weight: 400; font-size: 14px; line-height: 22px;
    color: #D97706;
}
.lp2-signal-text strong { display: block; font-weight: 600; }

/* Primary button */
.lp2-btn {
    box-sizing: border-box;
    width: 100%; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 0 16px;
    background:
        linear-gradient(0deg, #0B90F3, #0B90F3),
        linear-gradient(180deg, rgba(0, 126, 232, 0) 8.33%, rgba(0, 126, 232, 0.7) 152.38%),
        rgba(255, 255, 255, 0.62);
    border: 1px solid #8AC9FF;
    box-shadow: 0 4px 10px -6px rgba(0, 0, 0, 0.1), inset 0 0 7.7px #FFFFFF, inset 0 0 6.2px #FFFFFF;
    border-radius: 15px;
    font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px; line-height: 17px;
    color: #FFFFFF;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.15s;
}
.lp2-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px -8px rgba(0, 126, 232, 0.4), inset 0 0 7.7px #FFFFFF, inset 0 0 6.2px #FFFFFF;
}
.lp2-btn:active { transform: none; }

@media (max-width: 560px) {
    .lp2-inner { padding: 24px; gap: 28px; }
    .lp2-chips { flex-direction: column; gap: 12px; }
    .lp2-chip { width: 100%; }
}

/* ==========================================================================
   Hiring-manager interview plan (steps 2 and 3 of a hiring request)
   Step 2 picks the topics the AI interview should cover; step 3 reviews the
   question bank written from them. Same glass language as the recruiter's
   Pick-Interviewer step (.pjd3-*), so the three steps read as one wizard.
   ========================================================================== */

.pl-step.hmq {
    display: flex;
    flex-direction: column;
    min-height: 0;
    gap: 20px;
}
.pl-step.hmq.hidden { display: none; }
.pl-step.hmq .pjd-scroll { display: flex; flex-direction: column; gap: 22px; }

.hmq-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.hmq-head-text { display: flex; flex-direction: column; gap: 6px; }
.hmq-title {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 600; font-size: 22px; line-height: 30px;
    color: #0F172A;
}
.hmq-sub {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 400; font-size: 14px; line-height: 20px;
    color: #64748B;
    max-width: 820px;
}
.hmq-count {
    flex: none;
    padding: 6px 16px;
    background: rgba(176, 219, 255, 0.5);
    color: #007EE8;
    font-family: 'Inter', sans-serif;
    font-weight: 600; font-size: 14px; line-height: 20px;
    border-radius: 999px;
    white-space: nowrap;
}

/* ---------- Loading ---------- */
.hmq-loader {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 22px;
    max-width: 620px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(84, 177, 255, 0.45);
    box-shadow: inset 0 0 22.6px #FFFFFF;
    border-radius: 12px;
}
.hmq-loader.hidden { display: none; }
.hmq-spin {
    flex: none;
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 2.5px solid rgba(0, 126, 232, 0.18);
    border-top-color: #007EE8;
    animation: pl-pi-spin 0.9s linear infinite;
}
.hmq-loader-label {
    font-family: 'Inter', sans-serif;
    font-weight: 500; font-size: 14px; line-height: 20px;
    color: #0F172A;
}

/* ---------- Step 2: topic chips ---------- */
.hmq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.hmq-topic {
    position: relative;
    box-sizing: border-box;
    display: flex; flex-direction: column; gap: 6px;
    padding: 18px 44px 18px 20px;
    text-align: left;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #CBD5E1;
    box-shadow: inset 0 0 22.6px #FFFFFF;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}
.hmq-topic:hover {
    border-color: #9CC7F2;
    transform: translateY(-2px);
    box-shadow: inset 0 0 22.6px #FFFFFF, 0 12px 26px -16px rgba(15, 23, 42, 0.28);
}
.hmq-topic.is-on {
    border-color: #54B1FF;
    background:
        linear-gradient(238.22deg, rgba(37, 99, 235, 0.08) 4.3%, rgba(37, 99, 235, 0) 62.47%),
        rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 22.6px #FFFFFF, 0 14px 28px -16px rgba(0, 126, 232, 0.32);
}
.hmq-topic-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600; font-size: 15px; line-height: 22px;
    color: #0F172A;
}
.hmq-topic-focus {
    font-family: 'Inter', sans-serif;
    font-weight: 400; font-size: 13px; line-height: 19px;
    color: #64748B;
}
/* A topic the manager just typed, while its description is being written. */
.hmq-topic-focus.is-pending { color: #94A3B8; font-style: italic; }
.hmq-topic-tag {
    align-self: flex-start;
    margin-top: 2px;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(176, 219, 255, 0.5);
    color: #007EE8;
    font-family: 'Inter', sans-serif;
    font-weight: 600; font-size: 11px; line-height: 18px;
}
.hmq-topic-tick {
    position: absolute;
    top: 16px; right: 16px;
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 1.2px solid #64748B;
    color: #FFFFFF;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background 0.15s, border-color 0.15s;
}
.hmq-topic-tick svg { opacity: 0; }
.hmq-topic.is-on .hmq-topic-tick { background: #007EE8; border-color: #007EE8; }
.hmq-topic.is-on .hmq-topic-tick svg { opacity: 1; }

/* Add-your-own row */
.hmq-add { display: flex; align-items: center; gap: 12px; max-width: 620px; }
.hmq-input {
    flex: 1 1 auto; min-width: 0;
    box-sizing: border-box;
    height: 46px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 400; font-size: 14px;
    color: #0F172A;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.hmq-input::placeholder { color: #94A3B8; }
.hmq-input:focus { border-color: #54B1FF; box-shadow: 0 0 0 3px rgba(84, 177, 255, 0.18); }
.hmq-add-btn {
    flex: none;
    height: 46px;
    padding: 0 20px;
    border: 1px solid #CBD5E1;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 22.6px #FFFFFF;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600; font-size: 14px;
    color: #0F172A;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.hmq-add-btn:hover { border-color: #54B1FF; color: #007EE8; }

/* ---------- Step 3: the question bank ---------- */
.hmq-qlist { display: flex; flex-direction: column; gap: 12px; max-width: 1000px; }
.hmq-q {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #CBD5E1;
    box-shadow: inset 0 0 22.6px #FFFFFF;
    border-radius: 12px;
    transition: border-color 0.15s;
}
.hmq-q:focus-within { border-color: #54B1FF; }
.hmq-q-num {
    flex: none;
    width: 28px; height: 28px;
    margin-top: 2px;
    border-radius: 50%;
    background: rgba(176, 219, 255, 0.5);
    color: #007EE8;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 600; font-size: 13px;
}
.hmq-q-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.hmq-q-text {
    width: 100%;
    box-sizing: border-box;
    border: 0;
    background: transparent;
    resize: none;
    overflow: hidden;
    padding: 4px 0;
    font-family: 'Inter', sans-serif;
    font-weight: 400; font-size: 14.5px; line-height: 22px;
    color: #0F172A;
    outline: none;
}
.hmq-q-text::placeholder { color: #94A3B8; }
.hmq-q-topic {
    align-self: flex-start;
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid #E2E8F0;
    background: rgba(255, 255, 255, 0.45);
    font-family: 'Inter', sans-serif;
    font-weight: 600; font-size: 11.5px; line-height: 18px;
    color: #64748B;
}
.hmq-q-rm {
    flex: none;
    width: 28px; height: 28px;
    margin-top: 2px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    color: #94A3B8;
    font-size: 18px; line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.hmq-q-rm:hover { background: #FDECEC; color: #D93F3F; }

.hmq-addq {
    align-self: flex-start;
    padding: 10px 18px;
    border: 1px dashed #9CC7F2;
    border-radius: 10px;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-weight: 600; font-size: 14px;
    color: #007EE8;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.hmq-addq:hover { background: rgba(176, 219, 255, 0.25); border-color: #54B1FF; }

.hmq-foot-right { display: flex; align-items: center; gap: 12px; }
.hmq-regen {
    height: 44px;
    padding: 0 18px;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 22.6px #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 600; font-size: 15px;
    color: #334155;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.hmq-regen:hover { border-color: #54B1FF; color: #007EE8; }

@media (max-width: 900px) {
    .hmq-head { flex-direction: column; gap: 12px; }
    .hmq-grid { grid-template-columns: 1fr; }
    .hmq-add { flex-direction: column; align-items: stretch; }
}

/* === HackerRank column on the candidate table (HackerRank jobs only) === */
.pl-hr-syncall { margin-left: 8px; padding: 6px 12px; font-size: 13px; }
.pl-hr-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.pl-hr-badge.gray  { background: #F1F1F1; color: #555; }
.pl-hr-badge.blue  { background: #E8F1FB; color: #0A66C2; }
.pl-hr-badge.amber { background: #FFF4E0; color: #A15C00; }
.pl-hr-badge.green { background: #E6F6EC; color: #1E7B3C; }
.pl-hr-badge.red   { background: #FDECEC; color: #B42318; }
.pl-hr-err { font-size: 12px; color: #B42318; cursor: help; text-decoration: underline dotted; }
.pl-hr-score { margin-left: 6px; font-weight: 600; font-size: 13px; }
.pl-hr-report { font-size: 12px; margin-left: 4px; }
.pl-hr-actions { display: flex; gap: 6px; margin-top: 6px; }
.pl-hr-btn {
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid var(--border-input);
    background: #fff;
    color: var(--text-dark);
    cursor: pointer;
    font-family: inherit;
}
.pl-hr-btn:hover { background: #F3F3F3; }
.pl-hr-btn:disabled { opacity: 0.6; cursor: wait; }
.pl-hr-testinfo { margin-left: 8px; font-size: 12px; color: #555; align-self: center; }

/* ---------- Step 1: key skills (chips, the same look as the Naukri portal) ---------- */
.pjd-skills-row { display: flex; gap: 10px; align-items: stretch; }
.pjd-skills-row .pjd-input { flex: 1 1 auto; min-width: 0; }
.pjd-skills-suggest {
    flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 0 14px;
    border-radius: 12px; border: 1px solid #8AC9FF; background: #EAF5FF; color: #007EE8;
    font: 600 13px/18px 'Inter', sans-serif; cursor: pointer; white-space: nowrap;
}
.pjd-skills-suggest:hover { background: #DCEFFF; }
.pjd-skills-suggest:disabled { opacity: 0.6; cursor: wait; }
.pjd-skills-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 8px; }
.pjd-skill-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 11px;
    border-radius: 999px; background: #E0F2FE; color: #0369A1;
    font: 500 12px/16px 'Inter', sans-serif;
}
.pjd-skill-chip button { all: unset; cursor: pointer; display: inline-flex; color: #0369A1; opacity: 0.7; }
.pjd-skill-chip button:hover { opacity: 1; }
.pjd-skill-chip svg { width: 12px; height: 12px; }

/* Key skills: typeahead dropdown under the box */
.pjd-skills-row { position: relative; }
.pjd-skills-dd {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40;
    background: #FFFFFF; border: 1px solid rgba(148,163,184,0.45); border-radius: 14px;
    box-shadow: 0 14px 40px rgba(15,23,42,0.16); padding: 6px; max-height: 260px; overflow-y: auto;
}
.pjd-skills-dd.hidden { display: none; }
.pjd-skills-opt {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 9px 12px; border-radius: 10px; cursor: pointer;
    font: 500 13px/18px 'Inter', sans-serif; color: #0F172A;
}
.pjd-skills-opt:hover, .pjd-skills-opt.is-active { background: #EAF5FF; color: #007EE8; }
.pjd-skills-opt small { font: 400 11px/16px 'Inter', sans-serif; color: #94A3B8; white-space: nowrap; }
.pjd-skills-opt.is-new small { color: #007EE8; }
.pjd-skills-opt mark { background: transparent; color: inherit; font-weight: 700; }
.pjd-hint.is-busy { color: #007EE8; }
.pjd-hint.is-busy::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; border: 2px solid rgba(0,126,232,0.3); border-top-color: #007EE8; vertical-align: -1px; animation: pjdspin .8s linear infinite; }
@keyframes pjdspin { to { transform: rotate(360deg); } }
/* ---------- Quick AI Filters: selected state ----------
   The whole of it stays within the chip's own outline: the fill, the border
   and the text colour. There is no ring drawn around the chip - a 2px spread
   shadow sat outside the border and read as a halo bleeding into the gap
   between chips - and no tick in front of the label, so a selected chip is
   the same words as an unselected one, just in blue. */
.pjd2-chips .pjd2-chip.is-selected {
    background: rgba(0, 126, 232, 0.12);
    border-color: #007EE8;
    color: #0B5FB8;
    font-weight: 600;
}
.pjd2-chips .pjd2-chip.is-selected:hover {
    background: rgba(0, 126, 232, 0.18);
}
.pjd2-chips .pjd2-chip:focus-visible {
    outline: 2px solid #007EE8;
    outline-offset: 2px;
}
