/* Hiring and talent extras (hire-plus.js) */
.hp-ov { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(3, 2, 3, 0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: hpFade .16s ease; }
@keyframes hpFade { from { opacity: 0; } to { opacity: 1; } }
.hp-sheet { width: min(520px, 100%); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; border-radius: 20px; background: var(--card, #1d1b1f); border: 1px solid var(--border, rgba(255,255,255,.1)); box-shadow: 0 30px 80px rgba(0,0,0,.5); overflow: hidden; color: var(--text-1, #fff); }
.hp-sheet.wide { width: min(760px, 100%); }
.hp-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 20px; border-bottom: 1px solid var(--border, rgba(255,255,255,.1)); }
.hp-head h3 { flex: 1; min-width: 0; margin: 0; font-size: 18px; font-weight: 800; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-icon { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border, rgba(255,255,255,.14)); background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; }
.hp-icon.sm { width: 32px; height: 32px; }
.hp-icon:hover:not(:disabled), .hp-icon:focus-visible { border-color: var(--red, #c8102e); }
.hp-icon:disabled { opacity: .35; cursor: default; }
.hp-body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 20px 22px; display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: max-content; gap: 12px; }
.hp-body > * { min-width: 0; }
.hp-h4 { margin: 6px 0 0; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted, #9a9a9a); }
.hp-lead { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-2, #ccc); }
.hp-empty { margin: 0; padding: 18px; border-radius: 14px; border: 1px dashed var(--border, rgba(255,255,255,.16)); text-align: center; font-size: 14px; line-height: 1.5; color: var(--muted, #9a9a9a); }
.hp-muted { color: var(--muted, #9a9a9a); }
.hp-count { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted, #9a9a9a); }
.hp-loading { display: flex; justify-content: center; gap: 6px; padding: 24px; }
.hp-loading span { width: 8px; height: 8px; border-radius: 50%; background: var(--red, #c8102e); animation: hpDot 1s infinite ease-in-out; }
.hp-loading span:nth-child(2) { animation-delay: .15s; } .hp-loading span:nth-child(3) { animation-delay: .3s; }
@keyframes hpDot { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: none; } }

/* buttons and chips */
.hp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--red, #c8102e); background: var(--red, #c8102e); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; }
.hp-btn.sm { min-height: 34px; padding: 0 13px; font-size: 13px; }
.hp-btn.ghost { background: transparent; color: var(--text-1, #fff); border-color: var(--border, rgba(255,255,255,.2)); }
.hp-btn.ghost:hover { border-color: var(--red, #c8102e); }
.hp-btn:disabled { opacity: .5; cursor: default; }
.hp-link { border: 0; background: none; padding: 4px 2px; color: var(--red-bright, #ff5470); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.hp-chip { flex: none; display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap; background: rgba(255,255,255,.07); color: var(--text-2, #ccc); }
.hp-chip.st-shortlisted, .hp-stage.st-shortlisted { background: rgba(59,130,246,.16); color: #93c5fd; }
.hp-chip.st-interview, .hp-stage.st-interview { background: rgba(168,85,247,.16); color: #d8b4fe; }
.hp-chip.st-offer, .hp-stage.st-offer { background: rgba(245,158,11,.16); color: #fcd34d; }
.hp-chip.st-hired, .hp-stage.st-hired, .hp-chip.is-open { background: rgba(34,197,94,.16); color: #86efac; }
.hp-chip.st-declined, .hp-stage.st-declined, .hp-chip.is-closed { background: rgba(248,113,113,.12); color: #fca5a5; }

/* rows and lists */
.hp-list { display: grid; gap: 10px; }
.hp-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hp-row-main { flex: 1; min-width: 0; display: block; }
.hp-row-main b { display: block; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.hp-row-main small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--muted, #9a9a9a); overflow-wrap: anywhere; }
.hp-av { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; }
.hp-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(200,16,46,.14); color: var(--red-bright, #ff5470); }
.hp-row.is-invite { padding: 12px; border-radius: 14px; border: 1px solid rgba(200,16,46,.35); background: rgba(200,16,46,.07); }
.hp-app, .hp-job, .hp-cand { padding: 14px; border-radius: 16px; border: 1px solid var(--border, rgba(255,255,255,.1)); background: rgba(255,255,255,.025); display: grid; gap: 10px; }
.hp-app-foot, .hp-cand-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hp-app-foot small, .hp-cand-acts small { flex: 1; min-width: 120px; font-size: 12.5px; color: var(--muted, #9a9a9a); }
.hp-cand-acts small { text-align: right; }
/* where an application stands */
.hp-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.hp-steps.is-out { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hp-steps span { position: relative; padding-top: 10px; font-size: 11.5px; font-weight: 600; line-height: 1.3; color: var(--muted, #8a8a8a); text-align: center; overflow-wrap: anywhere; }
.hp-steps span::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); }
.hp-steps span.on { color: var(--text-1, #fff); }
.hp-steps span.on::before { background: var(--red, #c8102e); }
.hp-steps span.now { font-weight: 800; }
.hp-steps span.bad::before { background: #f87171; }
/* my jobs */
.hp-job-top { display: flex; align-items: flex-start; gap: 10px; }
.hp-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted, #9a9a9a); }
.hp-stats span { display: inline-flex; align-items: center; gap: 5px; }
.hp-stats b { color: var(--text-1, #fff); }
.hp-stats .is-new { color: #86efac; }
.hp-stats .is-new b { color: #86efac; }
.hp-pipe { display: flex; flex-wrap: wrap; gap: 6px; }
.hp-job-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hp-close-on { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted, #9a9a9a); }
.hp-close-on input { min-height: 34px; padding: 4px 8px; border-radius: 10px; border: 1px solid var(--border, rgba(255,255,255,.16)); background: rgba(0,0,0,.2); color: var(--text-1, #fff); font: inherit; font-size: 13px; color-scheme: dark; }
/* the applicant pipeline */
.hp-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; min-height: 40px; }
.hp-tabs::-webkit-scrollbar { display: none; }
.hp-tabs button { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--border, rgba(255,255,255,.14)); background: transparent; color: var(--text-2, #ccc); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.hp-tabs button i { font-style: normal; font-size: 11.5px; padding: 0 6px; border-radius: 999px; background: rgba(255,255,255,.08); }
.hp-tabs button[aria-selected="true"] { border-color: var(--red, #c8102e); background: rgba(200,16,46,.12); color: var(--text-1, #fff); }
.hp-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.hp-who:hover b { text-decoration: underline; }
.hp-stage { flex: none; min-height: 36px; max-width: 150px; padding: 0 30px 0 12px; border-radius: 999px; border: 1px solid transparent; background-color: rgba(255,255,255,.07); color: var(--text-1, #fff); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23bbb' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.hp-stage option { background: #1d1b1f; color: #fff; }
.hp-msg { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-2, #ccc); white-space: pre-wrap; overflow-wrap: anywhere; }
.hp-note { display: grid; gap: 5px; }
.hp-note span { font-size: 12px; font-weight: 700; color: var(--muted, #9a9a9a); }
.hp-note textarea { width: 100%; min-height: 54px; resize: vertical; padding: 9px 12px; border-radius: 10px; border: 1px dashed rgba(245,158,11,.4); background: rgba(245,158,11,.05); color: var(--text-1, #fff); font: inherit; font-size: 14px; box-sizing: border-box; }
.hp-note textarea:focus { outline: none; border-style: solid; border-color: rgba(245,158,11,.7); }

/* forms */
.hp-form { display: grid; gap: 12px; }
.hp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hp-grid .wide { grid-column: 1 / -1; }
.hp-grid label, .hp-terms-form label { display: grid; gap: 5px; min-width: 0; }
.hp-grid label span, .hp-terms-form label span { font-size: 13px; font-weight: 700; color: var(--text-2, #ccc); }
.hp-grid input, .hp-grid select, .hp-terms-form select { width: 100%; min-width: 0; min-height: 42px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border, rgba(255,255,255,.16)); background: rgba(0,0,0,.2); color: var(--text-1, #fff); font: inherit; font-size: 14px; box-sizing: border-box; color-scheme: dark; }
.hp-grid input:focus, .hp-grid select:focus, .hp-terms-form select:focus { outline: none; border-color: var(--red, #c8102e); }
.hp-form-acts, .hp-foot-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hp-foot-actions { justify-content: flex-end; }
.hp-pick { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border, rgba(255,255,255,.12)); cursor: pointer; }
.hp-pick:has(input:checked) { border-color: var(--red, #c8102e); background: rgba(200,16,46,.08); }
.hp-pick input { width: 18px; height: 18px; accent-color: var(--red, #c8102e); flex: none; }
.hp-pick span { min-width: 0; } .hp-pick b { display: block; font-size: 15px; } .hp-pick small { display: block; font-size: 13px; color: var(--muted, #9a9a9a); }
/* saved searches and results */
.hp-saved { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted, #9a9a9a); }
.hp-sv { display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--border, rgba(255,255,255,.16)); overflow: hidden; }
.hp-sv button { border: 0; background: none; color: var(--text-1, #fff); font: inherit; font-size: 13px; font-weight: 700; padding: 6px 4px 6px 12px; cursor: pointer; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-sv button.x { padding: 6px 10px 6px 6px; color: var(--muted, #9a9a9a); display: grid; place-items: center; }
.hp-sv:hover { border-color: var(--red, #c8102e); }
.hp-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 8px; }
.hp-tcard { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--border, rgba(255,255,255,.12)); background: rgba(255,255,255,.025); color: inherit; font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.hp-tcard:hover { border-color: var(--red, #c8102e); }
.hp-ver { font-style: normal; color: #60a5fa; font-size: 13px; }
.hp-rate { color: #fcd34d !important; font-weight: 700; }

/* CV with an application */
.hp-cv { margin-top: 4px; }
.hp-cv-btn, .hp-cv-on { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--border, rgba(255,255,255,.22)); background: transparent; color: var(--text-1, #fff); font: inherit; text-align: left; cursor: pointer; box-sizing: border-box; }
.hp-cv-btn:hover { border-color: var(--red, #c8102e); }
.hp-cv-on { border-style: solid; border-color: rgba(34,197,94,.45); background: rgba(34,197,94,.06); cursor: default; }
.hp-cv-on.is-busy { border-color: var(--border, rgba(255,255,255,.2)); background: transparent; }
.hp-cv-btn span, .hp-cv-on span { flex: 1; min-width: 0; }
.hp-cv-btn b, .hp-cv-on b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-cv-btn small, .hp-cv-on small { display: block; font-size: 12.5px; color: var(--muted, #9a9a9a); }

/* the Jobs board */
.hp-jobbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 12px; }
.hp-jobbar button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border, rgba(255,255,255,.16)); background: transparent; color: var(--text-1, #fff); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.hp-jobbar button:hover { border-color: var(--red, #c8102e); background: rgba(200,16,46,.08); }
.hp-closes { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--text-2, #ccc); }
.hp-closes.is-soon { color: #fcd34d; }
.hp-closes.is-over { color: #fca5a5; }
.cpx-opp.hp-flash { box-shadow: 0 0 0 2px var(--red, #c8102e), 0 0 30px rgba(200,16,46,.35); transition: box-shadow .3s; }
.cpx-hint { display: block; margin-top: 4px; font-size: 12px; color: var(--muted, #9a9a9a); }
.rc-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 4px 0 10px; }
.rc-quick .tp-btn { white-space: normal; text-align: center; }
.rc-invite { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; margin: 6px 0 10px; border-radius: 14px; border: 1px solid rgba(200,16,46,.35); background: rgba(200,16,46,.07); }
.rc-invite span { flex: 1; min-width: 180px; font-size: 13.5px; color: var(--text-2, #ccc); }

/* talent profile: calendar, terms, press kit */
.hp-talent { display: grid; gap: 14px; margin: 14px 0; padding: 16px; border-radius: 18px; border: 1px solid var(--border, rgba(255,255,255,.1)); background: rgba(255,255,255,.02); }
.hp-talent:empty { display: none; }
.hp-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hp-cal-head h4, .hp-terms h4 { margin: 0; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #9a9a9a); }
.hp-cal-nav { display: inline-flex; align-items: center; gap: 8px; }
.hp-cal-nav b { min-width: 130px; text-align: center; font-size: 14px; }
.hp-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.hp-wd { text-align: center; font-size: 11px; font-weight: 800; color: var(--muted, #8a8a8a); padding-bottom: 2px; }
.hp-day { aspect-ratio: 1; min-height: 32px; display: grid; place-items: center; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--text-2, #ccc); font: inherit; font-size: 13px; font-weight: 600; }
button.hp-day { cursor: pointer; }
.hp-day.is-pad { visibility: hidden; }
.hp-day.is-past { color: var(--muted, #666); opacity: .5; }
.hp-day.is-free { background: rgba(34,197,94,.08); color: var(--text-1, #fff); }
.hp-day.is-busy { background: rgba(200,16,46,.22); color: #fff; border-color: rgba(200,16,46,.55); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.5); }
.hp-day.is-off { background: rgba(255,255,255,.03); color: var(--muted, #777); }
.hp-day.is-today { box-shadow: inset 0 0 0 2px var(--text-1, #fff); }
button.hp-day:hover { border-color: var(--red, #c8102e); }
.hp-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 12.5px; color: var(--muted, #9a9a9a); }
.hp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hp-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.hp-legend i.free { background: rgba(34,197,94,.35); } .hp-legend i.busy { background: rgba(200,16,46,.6); }
.hp-legend em { font-style: normal; flex-basis: 100%; }
.hp-terms { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border, rgba(255,255,255,.08)); }
.hp-terms p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2, #ccc); }
.hp-terms-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hp-kit { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--border, rgba(255,255,255,.08)); }
.hp-kit small { flex: 1; min-width: 160px; font-size: 12.5px; color: var(--muted, #9a9a9a); }

/* phones */
@media (max-width: 600px) {
  .hp-ov { align-items: flex-end; padding: 0; }
  .hp-sheet, .hp-sheet.wide { width: 100%; max-height: 94dvh; border-radius: 20px 20px 0 0; }
  .hp-body { padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); }
  .hp-grid, .hp-terms-form { grid-template-columns: minmax(0, 1fr); }
  .hp-cand-acts small { text-align: left; }
  .hp-stage { max-width: 130px; }
  .hp-steps span { font-size: 10.5px; }
  .rc-quick { grid-template-columns: minmax(0, 1fr); }
  .hp-foot-actions .hp-btn { flex: 1 1 auto; }
}

/* light theme */
[data-theme="light"] .hp-sheet { background: #fff; color: #18090C; }
[data-theme="light"] .hp-grid input, [data-theme="light"] .hp-grid select, [data-theme="light"] .hp-terms-form select, [data-theme="light"] .hp-close-on input { background: rgba(0,0,0,.03); color: #18090C; color-scheme: light; }
[data-theme="light"] .hp-btn.ghost, [data-theme="light"] .hp-jobbar button, [data-theme="light"] .hp-sv button, [data-theme="light"] .hp-stage { color: #18090C; }
[data-theme="light"] .hp-stage { background-color: rgba(0,0,0,.05); }
[data-theme="light"] .hp-stage option { background: #fff; color: #18090C; }
[data-theme="light"] .hp-app, [data-theme="light"] .hp-job, [data-theme="light"] .hp-cand, [data-theme="light"] .hp-talent, [data-theme="light"] .hp-tcard { background: rgba(0,0,0,.015); }
[data-theme="light"] .hp-day.is-free { color: #18090C; }
[data-theme="light"] .hp-steps span.on, [data-theme="light"] .hp-stats b { color: #18090C; }
[data-theme="light"] .hp-note textarea { color: #18090C; }
[data-theme="light"] .hp-chip.st-shortlisted, [data-theme="light"] .hp-stage.st-shortlisted { color: #1d4ed8; }
[data-theme="light"] .hp-chip.st-interview, [data-theme="light"] .hp-stage.st-interview { color: #7e22ce; }
[data-theme="light"] .hp-chip.st-offer, [data-theme="light"] .hp-stage.st-offer { color: #b45309; }
[data-theme="light"] .hp-chip.st-hired, [data-theme="light"] .hp-stage.st-hired, [data-theme="light"] .hp-chip.is-open { color: #15803d; }
[data-theme="light"] .hp-chip.st-declined, [data-theme="light"] .hp-stage.st-declined, [data-theme="light"] .hp-chip.is-closed { color: #b91c1c; }

/* matching talent */
.hp-note-line { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--muted, #9a9a9a); }
.hp-note-line b { color: var(--text-1, #fff); font-size: 16px; }
