/* =========================================================
   Módulo B — processo seletivo, candidatos, banco de talentos
   ========================================================= */

/* ---------- Ajustes gerais ---------- */
[hidden] { display: none !important; }
.ps-stages { scrollbar-width: none; }
.ps-stages::-webkit-scrollbar { display: none; }
.icon-btn:disabled { opacity: .35; pointer-events: none; }
.tab svg { width: 16px; height: 16px; }
.segmented button { display: inline-flex; align-items: center; gap: 6px; }
.segmented button svg { width: 15px; height: 15px; }
.chk { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; margin: 0; }
.table tbody tr.row-off td { opacity: .62; }
.table tbody tr.row-off td.col-actions, .table tbody tr.row-off td.col-check { opacity: 1; }
.select.pg-per { width: 76px; height: 32px; padding-left: 10px; }
.toolbar .select { width: auto; min-width: 200px; }
code { font-size: 11.5px; padding: 1px 5px; border-radius: 5px; background: var(--surface-3); }
.switch.disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Cabeçalho da vaga ---------- */
.ps-head { padding: 20px 22px; margin-bottom: 16px; position: relative; overflow: hidden; background: radial-gradient(520px 200px at 100% 0%, var(--primary-50), transparent 70%), radial-gradient(360px 160px at 0% 100%, color-mix(in srgb, var(--primary-solid-2) 7%, transparent), transparent 70%), var(--surface); border-color: color-mix(in srgb, var(--primary) 16%, var(--border)); }
.ps-head::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-brand); background-size: 200% 100%; animation: gradient-pan 10s ease infinite; box-shadow: 0 2px 14px var(--primary-ring); }
.ps-head-main { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ps-logo { width: 56px; height: 56px; border-radius: 16px; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #fff; background: var(--grad-brand); box-shadow: 0 10px 24px var(--primary-ring), inset 0 0 0 1px rgba(255,255,255,.14); transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease); }
.ps-head:hover .ps-logo { transform: rotate(-6deg) scale(1.05); box-shadow: 0 14px 30px var(--primary-ring), inset 0 0 0 1px rgba(255,255,255,.2); }
.ps-title { flex: 1; min-width: 220px; }
.ps-title h2 { font-size: 20px; font-weight: 800; }
.ps-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ps-receb { padding: 6px 12px 6px 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); font-weight: 600; font-size: 13px; }
.ps-expand svg { transition: transform .35s var(--ease); }
.ps-expand.open svg { transform: rotate(180deg); }
.ps-head-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease), margin .3s; }
.ps-head-more.open { grid-template-rows: 1fr; margin-top: 18px; }
.ps-more-inner { overflow: hidden; min-height: 0; }
.ps-head-more.open .ps-more-inner { border-top: 1px dashed var(--border); padding-top: 18px; }
.ps-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ps-info { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.ps-info-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); flex: none; }
.ps-info-ic svg { width: 16px; height: 16px; }
.ps-people { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 16px; }
.ps-people .person + .person { margin-left: 14px; }
.ps-link { margin-top: 16px; max-width: 720px; }
.ps-link .input { font-size: 12.5px; }

.ps-kpis { margin-bottom: 16px; }
.stat.stat-danger .stat-icon { background: var(--danger-50); color: var(--danger); }
.stat.stat-danger .stat-value { color: var(--danger); }
.stat .progress { position: relative; z-index: 1; }

/* ---------- Etapas ---------- */
.ps-stages { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 6px 2px 12px; scrollbar-width: none; }
.ps-stage { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; font: inherit; color: var(--text-2); font-weight: 700; font-size: 13px; white-space: nowrap; transition: all .25s var(--ease); box-shadow: var(--shadow-sm); }
.ps-stage:hover { border-color: var(--primary); color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow), 0 8px 22px -10px var(--primary-ring); }
.ps-stage:hover:not(.active) .num { background: var(--primary-50); color: var(--primary); }
.ps-stage .num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: 12px; transition: all .3s var(--ease-spring); }
.ps-stage .cnt { min-width: 26px; height: 22px; padding: 0 8px; border-radius: 99px; display: grid; place-items: center; background: var(--surface-3); font-size: 11.5px; }
.ps-stage.active { border-color: transparent; color: #fff; background: var(--grad-brand); box-shadow: 0 10px 22px var(--primary-ring), inset 0 0 0 1px rgba(255,255,255,.12); }
/* bolhas escuras translúcidas: branco sobre branco-22% no lado magenta do degradê ficava ~3.8:1 */
.ps-stage.active .num { background: rgba(20,4,48,.32); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); color: #fff; transform: scale(1.08); }
.ps-stage.active .cnt { background: rgba(20,4,48,.32); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); color: #fff; }
.ps-stage.ps-t-contratacao:not(.active) .num { background: var(--success-50); color: var(--success); }
.ps-stage-sep { color: var(--border-strong); display: grid; place-items: center; flex: none; }
.ps-stage-sep svg { width: 16px; height: 16px; }
.ps-alert { margin-bottom: 16px; align-items: center; }
.ps-alert .alert-body { color: var(--text); }

/* ---------- Lista ---------- */
.ps-list .toolbar .input-icon { min-width: 260px; }
.ps-name { display: flex; align-items: center; gap: 8px; position: relative; min-width: 200px; max-width: 300px; }
.ps-name .person { min-width: 0; flex: 1; }
.ps-table td, .bt-table td { padding-top: 10px; padding-bottom: 10px; }
.ps-table th, .ps-table td, .bt-table th, .bt-table td { padding-left: 9px; padding-right: 9px; }
.ps-table th:first-child, .ps-table td:first-child, .bt-table th:first-child, .bt-table td:first-child { padding-left: 16px; }
.ps-table .col-check, .bt-table .col-check { width: 40px; }
.ps-table .badge.outline { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.sp-item { position: relative; }
.new-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--info); flex: none; box-shadow: 0 0 0 0 var(--info); animation: pulse-dot 1.8s infinite; color: var(--info); margin-left: -4px; }
.ps-kw, .bt-orig { flex: none; }
.ps-kw svg { width: 11px; height: 11px; }
.bulkbar .btn { height: 30px; }
#ps-bulk .bulkbar, #bt-bulk .bulkbar { gap: 8px; border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent); box-shadow: 0 8px 22px -16px var(--primary-ring); }
/* Quando as ações não cabem numa linha, o contador fica sozinho na 1ª linha e todas as ações descem juntas
   (antes só "Bloquear" e o X caíam para a 2ª linha, desalinhados). */
#ps-bulk, #bt-bulk { container-type: inline-size; }
@container (max-width: 1120px) {
  #bt-bulk .bulkbar > .spacer { display: none; }
  #bt-bulk .bulkbar > span:not(.spacer) { flex: 1 1 calc(100% - 40px); }
}
@container (max-width: 1010px) {
  #ps-bulk .bulkbar > .spacer { display: none; }
  #ps-bulk .bulkbar > span:not(.spacer) { flex: 1 1 calc(100% - 40px); }
}

/* ---------- Kanban ---------- */
.kb { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(268px, 1fr); gap: 14px; overflow-x: auto; padding: 4px 16px 18px; scroll-snap-type: x proximity; scrollbar-color: color-mix(in srgb, var(--primary) 45%, var(--border-strong)) transparent; }
.kb-col { background: linear-gradient(180deg, var(--primary-50), transparent 140px), var(--surface-2); border: 1.5px dashed transparent; border-radius: 16px; padding: 10px; min-height: 360px; display: flex; flex-direction: column; scroll-snap-align: start; transition: border-color .2s, background .2s, transform .2s; animation: fade-up .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.kb.is-dragging .kb-col { border-color: var(--border-strong); }
.kb-col.over { border-color: var(--primary); background: var(--primary-50); transform: translateY(-2px); box-shadow: var(--glow); }
.kb-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; font-size: 13px; }
.kb-num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); font-weight: 800; font-size: 11.5px; color: var(--primary); box-shadow: var(--shadow-sm), 0 0 0 1px var(--primary-100); flex: none; }
.kb-t-contratacao .kb-num { color: var(--success); }
.kb-count { margin-left: auto; font-size: 11.5px; font-weight: 800; padding: 1px 8px; border-radius: 99px; background: var(--surface); color: var(--text-2); }
.kb-list { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.kb-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px; cursor: grab; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease), opacity .2s, border-color .2s; animation: fade-up .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms + 120ms); position: relative; }
.kb-card:hover { transform: translateY(-2px); box-shadow: var(--shadow), 0 10px 24px -14px var(--primary-ring); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.kb-card:active { cursor: grabbing; }
.kb-card.dragging { opacity: .35; transform: rotate(2deg) scale(.98); }
.kb-card.new::after { content: ""; position: absolute; top: 12px; right: 44px; width: 8px; height: 8px; border-radius: 50%; background: var(--info); color: var(--info); animation: pulse-dot 1.8s infinite; }
.kb-card.off { cursor: default; opacity: .7; }
.kb-card.selected { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100), var(--shadow-sm); }
.kb-card.kb-flash { animation: kb-flash 1.1s var(--ease); }
.kb-card .person .p-name { font-size: 13px; }
.kb-more { width: 28px; height: 28px; flex: none; }
.kb-meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.kb-meta .prof span { width: 20px; height: 20px; font-size: 10px; }
.kb-star { color: var(--star); display: grid; }
.kb-star svg { width: 14px; height: 14px; fill: currentColor; }
.kb-empty { flex: 1; min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; color: var(--muted); font-size: 12px; text-align: center; padding: 16px; }
.kb-empty svg { width: 22px; height: 22px; opacity: .6; }
@keyframes kb-flash { 0% { box-shadow: 0 0 0 0 var(--primary-ring); border-color: var(--primary); transform: scale(1.03); } 60% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: var(--shadow-sm); } }

/* ---------- Painel do candidato ---------- */
.cv-drawer .drawer-head { padding-top: 12px; background: radial-gradient(460px 180px at 100% 0%, color-mix(in srgb, var(--primary-solid-2) 12%, transparent), transparent 70%), linear-gradient(180deg, var(--primary-50), transparent 85%); }
.cv-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cv-id { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; animation: fade-up .35s var(--ease) both; }
.cv-avatar { position: relative; padding: 4px; border-radius: 50%; background: conic-gradient(from 210deg, var(--primary-solid), var(--primary-solid-2) 40%, var(--accent) 50%, var(--primary-solid-2) 60%, var(--primary) 82%, var(--primary-solid)); box-shadow: 0 0 22px -2px var(--primary-ring); animation: spin 14s linear infinite; }
.cv-avatar .avatar { box-shadow: 0 0 0 3px var(--surface); animation: spin 14s linear infinite reverse; }
.cv-id-main { flex: 1; min-width: 220px; }
.cv-name { align-items: flex-start; }
/* white-space: normal — o .nowrap do contêiner herdava nowrap e, no celular, a estrela ficava por cima do sobrenome */
.cv-name h2 { font-size: 21px; font-weight: 800; min-width: 0; overflow-wrap: anywhere; white-space: normal; }
.cv-name .star-btn { flex: none; }
.cv-prova .row { flex-wrap: wrap; gap: 8px; }
.drawer-body { overflow-x: hidden; }
.cv-meta { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.cv-meta .dot { margin: 0 8px; opacity: .45; }
.cv-badges { margin-top: 8px; gap: 6px; }
.cv-scores { display: flex; gap: 10px; }
.cv-ring { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--text-2); font-weight: 700; }
.cv-ring-c { position: relative; width: 56px; height: 56px; }
.cv-ring-c svg { width: 56px; height: 56px; transform: rotate(-90deg); }
.cv-ring-c b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12.5px; color: var(--text); }
.rg-bg { fill: none; stroke: var(--surface-3); stroke-width: 5; }
.rg-fg { fill: none; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: calc(113.1 - 113.1 * var(--p) / 100); animation: ring-in 1.1s var(--ease) both; }
.cv-ring.hi .rg-fg { stroke: var(--success); } .cv-ring.md .rg-fg { stroke: var(--warning); } .cv-ring.lo .rg-fg { stroke: var(--danger); }
@keyframes ring-in { from { stroke-dashoffset: 113.1; } }
.cv-ctx { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding: 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; }
.cv-ctx > svg { width: 16px; height: 16px; color: var(--primary); }
.cv-ctx .sep { opacity: .4; }
.cv-tabs { margin-top: 12px; border-bottom: 0; }
.cv-tab { animation: fade-up .35s var(--ease) both; }
.drawer-body.cv-swap .cv-tab { animation: cv-swap .4s var(--ease) both; }
@keyframes cv-swap { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

.cv-ai { position: relative; padding: 16px 18px; border-radius: 16px; background: linear-gradient(135deg, var(--primary-50), color-mix(in srgb, var(--primary-solid-2) 9%, transparent)); border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent); box-shadow: 0 10px 28px -18px var(--primary-ring); overflow: hidden; }
.cv-ai::after { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: -70px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--primary-solid-2) 26%, transparent), transparent 70%); pointer-events: none; }
.cv-ai-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.cv-ai-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--grad-brand); color: #fff; font-size: 11.5px; font-weight: 800; box-shadow: 0 6px 16px var(--primary-ring); }
.cv-ai-badge svg { width: 14px; height: 14px; animation: float 3s ease-in-out infinite; }
.cv-ai ul { margin: 0; padding-left: 18px; color: var(--text); font-size: 13px; position: relative; z-index: 1; }
.cv-ai li { margin: 3px 0; }
.cv-social { margin: 14px 0 6px; gap: 8px; }
.cv-wa { --b-fg: var(--success); }
.cv-wa:hover { color: var(--success); border-color: var(--success); }
.cv-text { color: var(--text); white-space: normal; }
.cv-vazio { margin: 0; }

.acc { border: 1px solid var(--border); border-radius: 14px; margin-top: 12px; background: var(--surface); transition: box-shadow .2s, border-color .2s; }
.acc:hover { border-color: var(--border-strong); }
.acc[open] { box-shadow: var(--shadow-sm); }
.acc summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 13px 16px; cursor: pointer; font-weight: 800; font-size: 14px; user-select: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary > svg:first-child { width: 18px; height: 18px; color: var(--primary); }
.acc-count { font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 99px; background: var(--surface-3); color: var(--text-2); }
.acc-caret { margin-left: auto; width: 18px; height: 18px; color: var(--muted); transition: transform .3s var(--ease); }
.acc[open] .acc-caret { transform: rotate(180deg); }
.acc-body { padding: 0 16px 16px; animation: fade-up .3s var(--ease); }

.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 0; }
.info-grid dt { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.info-grid dd { margin: 2px 0 0; font-size: 13px; color: var(--text); word-break: break-word; }

.tl { list-style: none; margin: 0; padding: 0 0 0 6px; position: relative; }
.tl::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--primary-100), var(--border)); border-radius: 2px; }
.tl li { position: relative; padding: 0 0 16px 28px; animation: fade-up .35s var(--ease) both; }
.tl li:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: 0; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary); box-shadow: 0 0 0 4px var(--surface); }
.tl-dot.alt { border-color: var(--accent); }
.tl-dot.mail { border-color: var(--info); }
.tl-title { font-weight: 700; }
.tl-sub { font-size: 12px; color: var(--muted); }
.tl-desc { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.tl-compact li { padding-bottom: 12px; }

.cv-line { display: flex; gap: 10px; align-items: flex-start; }
.cv-line svg { width: 18px; height: 18px; color: var(--primary); flex: none; margin-top: 2px; }
.skill-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.skill { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.skill-n { flex: 1; font-size: 13px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lvl { display: inline-flex; gap: 3px; }
.lvl i { width: 14px; height: 6px; border-radius: 3px; background: var(--border-strong); }
.lvl i.on { background: var(--primary); }
.cv-qa { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.cv-q { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.cv-a { margin-top: 4px; font-size: 13px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cv-prova { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.cv-nota { font-size: 20px; font-weight: 800; }
.cv-nota.hi { color: var(--success); } .cv-nota.md { color: var(--warning); } .cv-nota.lo { color: var(--danger); }

.prof-hero { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 16px; background: var(--surface-2); }
.pbar { animation: fade-up .4s var(--ease) both; animation-delay: calc(var(--i) * 80ms); }
.pbar-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.pbar-track { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-bottom: 4px; }
.pbar-track span { display: block; height: 100%; border-radius: 99px; transform-origin: left; animation: grow-x 1s var(--ease) both; animation-delay: calc(var(--i) * 80ms + 120ms); }
.p-E { background: var(--p-E); } .p-C { background: var(--p-C); } .p-P { background: var(--p-P); } .p-A { background: var(--p-A); }
.prof-comp { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border); flex-wrap: wrap; }
.prof-locked { position: relative; }
.prof-blur { filter: blur(7px); opacity: .55; pointer-events: none; user-select: none; }
.prof-lock-card { position: absolute; inset: 40px 10% auto; text-align: center; padding: 26px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; align-items: center; gap: 8px; animation: modal-in .4s var(--ease-spring); }
.prof-lock-card > svg { width: 34px; height: 34px; color: var(--primary); }

.cv-obs-new .textarea { min-height: 86px; }
.cv-obs { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.cv-cdt { padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); transition: box-shadow .2s, transform .2s; }
.cv-cdt:hover { box-shadow: var(--shadow), 0 10px 24px -14px var(--primary-ring); transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }

/* ---------- Formulário de currículo ---------- */
.cf-head h2 { margin-bottom: 2px; }
.cf-section { padding: 18px; border: 1px solid var(--border); border-radius: 16px; margin-bottom: 14px; background: var(--surface); animation: fade-up .4s var(--ease) both; }
.cf-section { transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.cf-section:focus-within { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); box-shadow: 0 12px 30px -20px var(--primary-ring); }
.cf-section .section-title { display: flex; align-items: center; gap: 8px; }
.cf-section .section-title svg { width: 18px; height: 18px; color: var(--primary); }
.cf-photo { display: flex; align-items: center; gap: 18px; }
.cf-photo-prev .avatar { box-shadow: 0 0 0 4px var(--primary-100); }
.rep-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.rep-row { position: relative; padding: 14px 46px 14px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.rep-row.rep-new { animation: drop .3s var(--ease); }
.rep-row.rep-out { animation: fade .2s reverse forwards; }
.rep-del { position: absolute; top: 10px; right: 8px; }
.rep-del:hover { color: var(--danger); background: var(--danger-50); }
.rep-check { margin-top: 26px; }

/* ---------- Painel de filtros ---------- */
.fp-ic { width: 20px; height: 20px; vertical-align: -3px; margin-right: 6px; color: var(--primary); }
.fp-flags .chip svg { width: 14px; height: 14px; }
.fp-range { display: flex; align-items: center; gap: 8px; }
.fp-range .input { min-width: 0; }
.fp-slider { display: flex; align-items: center; gap: 10px; height: 40px; }
.fp-slider input { flex: 1; accent-color: var(--primary); }
.fp-slider output { min-width: 42px; text-align: right; font-weight: 800; font-size: 13px; color: var(--primary); }
.chip .prof span { width: 18px; height: 18px; font-size: 9.5px; box-shadow: none; }
/* chips ativos da área B (filtros, Profiler do currículo, Banco Unificado): roxo sólido + texto branco.
   O .chip.on do núcleo usa --primary, que no tema escuro é lilás claro (branco sobre ele ≈ 3:1). */
.fp .chip.on, #cf-perfis .chip.on, #un-perfis .chip.on { background: var(--primary-solid); border-color: var(--primary-solid); color: var(--on-primary); box-shadow: 0 4px 14px -6px var(--primary-ring); }
.fp .chip.on .prof span, #cf-perfis .chip.on .prof span, #un-perfis .chip.on .prof span { box-shadow: 0 0 0 1.5px rgba(255,255,255,.55); }

/* ---------- Seleção de vaga / etapa (modais) ---------- */
.vp-list { display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow-y: auto; padding: 2px; }
.vp-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--border); cursor: pointer; transition: all .2s var(--ease); }
.vp-item:hover { border-color: var(--primary); transform: translateX(3px); }
.vp-item:has(input:checked) { border-color: var(--primary); background: var(--primary-50); box-shadow: 0 0 0 4px var(--primary-ring); }
.vp-item.off { opacity: .55; cursor: not-allowed; }
.vp-item input { accent-color: var(--primary); width: 17px; height: 17px; }
.vp-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); flex: none; }
.vp-ic svg { width: 18px; height: 18px; }
.vp-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.stage-pick { display: flex; flex-direction: column; gap: 8px; }
.sp-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--border); cursor: pointer; transition: all .2s var(--ease); }
.sp-item:hover { border-color: var(--primary); }
.sp-item:has(input:checked) { border-color: var(--primary); background: var(--primary-50); }
.sp-item input { position: absolute; opacity: 0; }
.sp-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-weight: 800; font-size: 12px; flex: none; transition: all .25s var(--ease-spring); }
.sp-item:has(input:checked) .sp-num { background: var(--grad-brand); color: #fff; transform: scale(1.1); box-shadow: 0 4px 12px var(--primary-ring); }
.sp-main { flex: 1; display: flex; flex-direction: column; }
/* texto auxiliar sobre o lilás de item selecionado (no claro, --muted sobre --primary-50 ficava ~3.5:1) */
.vp-item:has(input:checked) .muted, .sp-item:has(input:checked) .muted { color: var(--text-2); }
.sp-item.back { border-style: dashed; }

/* o confete nasce no cabeçalho do modal: o corpo não pode recortá-lo */
.modal-body:has(> .vp-confetti) { overflow: visible; }
.vp-confetti { position: relative; height: 0; pointer-events: none; z-index: 2; }
/* nome próprio (vp-confetti): mod-c.css define outro @keyframes confetti que exige --r e, por vir depois, sobrescrevia este */
.vp-confetti i { position: absolute; top: -70px; left: calc(var(--i) * 5.5%); width: 8px; height: 12px; border-radius: 2px; background: var(--primary-solid); animation: vp-confetti 1.6s var(--ease) both; animation-delay: calc(var(--i) * 40ms); opacity: 0; }
/* confete nas cores da logo: roxo, magenta, lilás e o laranja/amarelo da seta */
.vp-confetti i:nth-child(5n+2) { background: var(--accent); }
.vp-confetti i:nth-child(5n+3) { background: var(--primary-solid-2); }
.vp-confetti i:nth-child(5n+4) { background: var(--primary); border-radius: 50%; width: 9px; height: 9px; }
.vp-confetti i:nth-child(5n) { background: var(--star); }
@keyframes vp-confetti { 0% { opacity: 1; transform: translateY(-20px) rotate(0); } 100% { opacity: 0; transform: translateY(140px) rotate(540deg); } }

/* ---------- Picker do banco ---------- */
.pk-list { display: flex; flex-direction: column; gap: 6px; }
.pk-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); cursor: pointer; transition: all .18s var(--ease); }
.pk-row:hover { border-color: var(--primary); background: var(--surface-2); }
.pk-row.on { border-color: var(--primary); background: var(--primary-50); }
.pk-row.on .p-sub, .pk-row.on .muted { color: var(--text-2); }
.pk-row input { accent-color: var(--primary); width: 17px; height: 17px; }
.pk-row .person { min-width: 0; }

/* ---------- Banco de talentos ---------- */
.bt-promo { margin: 16px 0; }
.bt-promo-in { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; color: #fff; background: var(--grad-brand); background-size: 200% 100%; animation: gradient-pan 12s ease infinite; box-shadow: var(--glow); flex-wrap: wrap; }
.bt-promo-in::after { content: ""; position: absolute; width: 220px; height: 220px; right: 8%; top: -150px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%); pointer-events: none; }
.bt-promo-in > * { position: relative; z-index: 1; }
.bt-promo-in .small { color: rgba(255,255,255,.9); }
.bt-promo-ic { width: 34px; height: 34px; padding: 7px; border-radius: 11px; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); flex: none; animation: float 4s ease-in-out infinite; }
.bt-promo-in .btn { --b-bg: #fff; --b-fg: #4c1d95; --b-bd: transparent; box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.bt-promo-in .btn:hover { color: #4c1d95; border-color: transparent; box-shadow: 0 10px 26px rgba(0,0,0,.3), 0 0 0 3px rgba(255,255,255,.22); }
.bt-chips { padding: 0 16px 12px; align-items: center; }
.vaga-tags { display: flex; gap: 6px; flex-wrap: wrap; max-width: 340px; }
.vtag { display: inline-block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 10px; border-radius: 99px; background: var(--primary-50); color: var(--primary-700); border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent); font-size: 11.5px; font-weight: 700; text-decoration: none !important; transition: transform .15s, background .15s, box-shadow .15s; }
.vtag:hover { transform: translateY(-1px); background: var(--primary-100); box-shadow: 0 4px 12px -4px var(--primary-ring); }
.vtag.more { background: var(--surface-3); color: var(--text-2); }
.bt-choice { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- Banco Unificado ---------- */
.un-hero { padding: 36px 34px 30px; margin-bottom: 18px; }
.un-hero-in { position: relative; z-index: 1; max-width: 820px; }
.un-hero h1 { font-size: 30px; margin: 6px 0 8px; }
.crumbs-hero { font-size: 12.5px; color: rgba(255,255,255,.86); }
.crumbs-hero a { color: #fff; }
.un-search { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 6px 6px 6px 16px; border-radius: 16px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border)); box-shadow: 0 14px 34px rgba(0,0,0,.28); transition: box-shadow .25s, transform .25s, border-color .25s; }
.un-search:focus-within { transform: translateY(-2px); border-color: var(--primary); box-shadow: 0 18px 40px rgba(0,0,0,.32), 0 0 0 4px rgba(255,255,255,.16); }
.un-search-ic svg { width: 20px; height: 20px; color: var(--primary); display: block; }
.un-search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--text); height: 42px; min-width: 0; }
.un-search input::placeholder { color: var(--muted); }
.un-hero-stats { display: flex; gap: 28px; margin-top: 22px; flex-wrap: wrap; }
.un-hero-stats div { display: flex; flex-direction: column; }
.un-hero-stats b { font-size: 26px; font-weight: 800; line-height: 1.1; }
.un-hero-stats span { font-size: 12.5px; color: rgba(255,255,255,.88); }
.un-filters { padding: 16px 18px; margin-bottom: 14px; }
.un-f-grid { display: grid; grid-template-columns: 2fr repeat(4, minmax(0, 1fr)); gap: 12px; }
.un-lic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; color: var(--primary); }
.un-count { margin: 4px 2px 12px; }
.un-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.un-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; animation: fade-up .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); overflow: hidden; }
.un-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.un-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg), 0 16px 36px -18px var(--primary-ring); border-color: color-mix(in srgb, var(--primary) 38%, var(--border)); }
.un-card:hover::before { transform: scaleX(1); }
.un-card.imported { background: linear-gradient(180deg, var(--success-50), var(--surface) 45%); }
.un-card.un-pop { animation: un-pop .4s var(--ease-spring); }
@keyframes un-pop { 50% { transform: scale(1.03); box-shadow: 0 0 0 6px var(--primary-ring); } }
.un-top { display: flex; align-items: center; gap: 12px; }
.un-av { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--grad-brand); flex: none; box-shadow: 0 8px 18px var(--primary-ring); }
.un-who { flex: 1; min-width: 0; }
.un-name { font-weight: 800; display: flex; align-items: center; gap: 6px; }
.un-lock { display: inline-grid; color: var(--muted); }
.un-lock svg { width: 13px; height: 13px; }
.un-ad { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.un-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--text-2); }
.un-meta span { display: inline-flex; align-items: center; gap: 5px; }
.un-meta svg { width: 14px; height: 14px; color: var(--muted); }
.un-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.un-skill { padding: 3px 10px; border-radius: 99px; background: var(--surface-3); font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.un-skill.lang { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 45%, transparent); }
.un-skill.more { background: var(--primary-50); color: var(--primary); }
.un-foot { margin-top: auto; }
.un-foot .row { gap: 10px; }
.un-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--border); }
.un-actions .btn { flex: 1; }
.un-actions .badge + .spacer + .btn { flex: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .un-f-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .un-f-grid .field:first-child { grid-column: 1 / -1; }
  .ps-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ps-head-actions { width: 100%; }
  .ps-info-grid, .info-grid, .skill-list, .bt-choice { grid-template-columns: minmax(0, 1fr); }
  .cv-scores { width: 100%; justify-content: space-around; }
  .cv-id { gap: 12px; }
  .cv-avatar .avatar.xl { width: 64px; height: 64px; font-size: 22px; }
  .un-f-grid { grid-template-columns: minmax(0, 1fr); }
  .un-hero { padding: 26px 20px; }
  .un-hero h1 { font-size: 24px; }
  .un-search .btn { padding: 0 12px; }
  .toolbar .select { min-width: 0; width: 100%; }
  .ps-list .toolbar .input-icon { min-width: 0; width: 100%; flex-basis: 100%; }
  .table-foot { justify-content: center; }
  .drawer-foot .btn { flex: 1 1 auto; }
  .drawer-foot .spacer { display: none; }
  .prof-lock-card { inset: 20px 4% auto; }
  .kb { grid-auto-columns: minmax(250px, 86vw); padding: 4px 12px 16px; }
  .grid.ps-kpis, .grid#bt-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ps-kpis .stat, #bt-kpis .stat { padding: 14px; }
  .ps-kpis .stat-icon, #bt-kpis .stat-icon { width: 32px; height: 32px; margin-bottom: 8px; }
  .ps-kpis .stat-value, #bt-kpis .stat-value { font-size: 22px; }
  .ps-kpis .stat-foot, #bt-kpis .stat-foot { font-size: 11px; }
  .ps-logo { width: 46px; height: 46px; font-size: 15px; border-radius: 13px; }
  .ps-title h2 { font-size: 17px; }
  .un-actions .btn { flex: 1 1 100%; }
}
