/* ============================================================
   Searchkraft ATS — Design tokens + components
   ============================================================ */
:root {
  --navy-900: #0c1a36;
  --navy-800: #1e3a5f;
  --navy-700: #264b80;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-50: #f0f7ff;
  --violet-600: #2563eb;
  --orange-500: #f26b1d;
  --green-500: #16a34a;
  --amber-500: #d97706;
  --red-500: #ef4444;

  --bg: #f4f6fa;
  --surface: #ffffff;
  --border: #e4e8ef;
  --border-strong: #cfd6e2;
  --text: #1b2333;
  --text-2: #4a5568;
  --text-3: #8592a6;

  --radius: 10px;
  --radius-sm: 7px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, .12);
  --sidebar-w: 72px;
  --sidebar-w-open: 232px;
  --topbar-h: 64px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 14px; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 26px; }
h2 { font-size: 17px; }
h3 { font-size: 18px; }
p { margin: 0; }
.muted { color: var(--text-2); margin-top: 4px; }
.ico { flex-shrink: 0; display: block; }
.is-hidden { display: none !important; }

/* ---------- App shell ---------- */
#app { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 30;
  width: var(--sidebar-w); background: var(--navy-900);
  display: flex; flex-direction: column; padding: 14px 12px;
  transition: width .2s ease;
}
.sidebar.is-expanded { width: var(--sidebar-w-open); }
.brand { display: flex; align-items: center; gap: 12px; height: 48px; margin-bottom: 18px; overflow: hidden; }
.brand-mark {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 24px;
}
.brand-name { color: #fff; font-weight: 700; font-size: 17px; white-space: nowrap; opacity: 0; transition: opacity .15s; }
.is-expanded .brand-name { opacity: 1; }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-bottom { margin-top: auto; padding-top: 16px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 14px;
  height: 48px; padding: 0 13px; border-radius: 12px;
  color: #cdbff3; white-space: nowrap; overflow: hidden;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--navy-800); color: #fff; }
.nav-item.is-active { background: var(--navy-700); color: #fff; }
.nav-item.is-active::before { content: ''; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue-500); }
.nav-label { opacity: 0; transition: opacity .15s; font-weight: 500; }
.is-expanded .nav-label { opacity: 1; }
/* New-items badge on sidebar nav links */
.nav-new-badge {
  position: absolute; top: 6px; right: 6px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: #ef4444; color: #fff;
  font-size: 10px; font-weight: 700; line-height: 18px;
  border-radius: 9px; text-align: center;
  pointer-events: none;
}
.is-expanded .nav-new-badge { right: 10px; }
/* tooltip when collapsed */
.sidebar:not(.is-expanded) .nav-item:hover::after {
  content: attr(data-tip); position: fixed; left: calc(var(--sidebar-w) + 6px);
  background: var(--navy-900); color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 6px; pointer-events: none;
  transform: translateY(0); margin-top: 0;
}
.sidebar-toggle {
  margin: 12px auto 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy-700); color: #fff; display: grid; place-items: center;
}
.sidebar-toggle:hover { background: var(--blue-600); }

.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; overflow-x: hidden; display: flex; flex-direction: column; transition: margin-left .2s; }
.sidebar.is-expanded + .main { margin-left: var(--sidebar-w-open); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--topbar-h);
  background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px; padding: 0 24px;
}
.search {
  flex: 0 1 460px; display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 12px; background: #f1f3f7; border-radius: var(--radius-sm); color: var(--text-3);
  border: 1px solid transparent;
}
.search:focus-within { background: #fff; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(124, 58, 237, .15); }
.search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--text); min-width: 0; }
.search kbd { font: 11px var(--font); border: 1px solid var(--border-strong); border-radius: 4px; padding: 1px 6px; color: var(--text-3); background: #fff; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.trial { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 500; margin-right: 6px; white-space: nowrap; }
.trial .ico { color: var(--blue-600); }
.divider { width: 1px; height: 32px; background: var(--border); margin: 0 4px; }
.ai-btn { display: flex; align-items: center; gap: 6px; color: var(--violet-600); font-weight: 600; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.ai-btn:hover { background: #f4efff; }

.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--radius-sm); font-weight: 600; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-outline { border: 1px solid var(--border-strong); background: #fff; }
.btn-outline:hover { border-color: var(--text-3); background: #fafbfc; }

.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); }
.icon-btn:hover { background: #f1f3f7; color: var(--text); }
.icon-btn-solid { background: var(--blue-600); color: #fff; }
.icon-btn-solid:hover { background: #1d4ed8; color: #fff; }
.has-dot::after { content: ''; position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--red-500); border: 2px solid #fff; }
.badge { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red-500); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #dbeafe, #93c5fd); color: var(--navy-800); font-weight: 700; font-size: 14px; }

/* dropdowns */
.dropdown { position: relative; }
.dd-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 6px; z-index: 40;
}
.dd-menu.is-open { display: block; animation: pop .12s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.dd-wide { width: 320px; }
.dd-title { font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px 6px; }
.dd-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; text-align: left; color: var(--text-2); }
.dd-item:hover { background: var(--blue-50); color: var(--blue-600); }
.dd-profile { padding: 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; display: flex; flex-direction: column; gap: 2px; }
.dd-profile span { font-size: 12px; color: var(--text-3); }
.notif { padding: 10px; border-radius: 6px; color: var(--text-2); line-height: 1.45; }
.notif:hover { background: #f7f8fb; }
.notif b { color: var(--text); font-weight: 600; }
.notif span { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ---------- Page ---------- */
.page { padding: 24px; display: flex; flex-direction: column; gap: 20px; max-width: 1600px; width: 100%; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.link { display: inline-flex; align-items: center; gap: 4px; color: var(--blue-600); font-weight: 500; }
.link:hover { text-decoration: underline; }
.link-muted { color: var(--text-3); font-size: 14px; }
.link-muted:hover { color: var(--text); }

/* Getting started */
.checklist { display: grid; grid-template-columns: 1fr 340px; gap: 36px; padding: 28px; }
.checklist-main h2 { font-size: 20px; font-weight: 500; }
.progress-wrap { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.progress-wrap small { color: var(--text-3); white-space: nowrap; }
.progress { flex: 1; height: 6px; background: #edf0f5; border-radius: 3px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--blue-600); border-radius: 3px; transition: width .3s ease; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.step {
  display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius); text-align: left; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.step:hover { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(124, 58, 237, .08); }
.step-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.tone-green { background: #e8f8ec; color: #22a447; }
.tone-teal { background: #e3f7f8; color: #0e9aa7; }
.tone-blue { background: #efe9ff; color: #2563eb; }
.tone-amber { background: #fff4e0; color: #d98a06; }
.tone-indigo { background: #f1ebff; color: #2563eb; }
.tone-slate { background: #eef0f4; color: #334155; }
.step-label { flex: 1; font-size: 15px; font-weight: 500; }
.step-check { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: grid; place-items: center; color: transparent; }
.step.is-done .step-check { background: #a7b1c2; border-color: #a7b1c2; color: #fff; }
.step.is-done .step-label { color: var(--text-2); }
.help-panel { display: flex; flex-direction: column; gap: 12px; }
.help-panel .link-muted { align-self: flex-end; margin-bottom: 30px; }
.help-panel h3 { color: var(--orange-500); font-weight: 500; font-size: 20px; }
.help-panel p { color: var(--text-2); line-height: 1.6; margin-bottom: 6px; }
.show-checklist { align-self: flex-start; margin: -8px 0 -4px; }

/* Greeting */
.greet-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 6px; }
.greet-row h1 { font-weight: 500; }

/* Candidate stats */
.stats { padding: 0; overflow: hidden; }
.stats-head { display: flex; align-items: stretch; border-bottom: 1px solid var(--border); }
.filters { flex: 1; display: flex; gap: 16px; padding: 20px; flex-wrap: wrap; align-items: center; }
.select { position: relative; display: flex; align-items: center; }
.select select {
  appearance: none; height: 46px; padding: 0 44px 0 16px; min-width: 260px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: #fff; font: 500 15px var(--font); color: var(--text); cursor: pointer;
}
.select select:focus { outline: 0; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(124, 58, 237, .15); }
.select .ico { position: absolute; right: 14px; pointer-events: none; color: var(--text-2); }
.summary { display: flex; }
.sum { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 26px; border-left: 1px solid var(--border); min-width: 150px; }
.sum span { color: var(--text-2); font-size: 14px; white-space: nowrap; }
.sum b { font-size: 20px; font-weight: 600; }
.stage-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); overflow-x: auto; scrollbar-width: thin; }
.stage { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 12px; border-right: 1px solid var(--border); transition: background .15s; }
.stage:last-child { border-right: 0; }
.stage:hover { background: var(--blue-50); }
.stage b { font-size: 26px; font-weight: 500; }
.stage span { color: var(--text-2); font-size: 14px; white-space: nowrap; }
.stage.has-val b { color: var(--blue-600); font-weight: 600; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-2-wide { grid-template-columns: 1.6fr 1fr; }

/* Segmented control */
.seg { display: inline-flex; background: #f1f3f7; border-radius: 8px; padding: 3px; }
.seg button { padding: 6px 12px; border-radius: 6px; color: var(--text-2); font-weight: 500; font-size: 13px; }
.seg button.is-on { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }

/* Targets */
.targets { display: flex; flex-direction: column; gap: 18px; }
.target-top { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--text-2); }
.target-top b { color: var(--text); font-weight: 600; }
.target-top small { color: var(--text-3); font-weight: 400; }
.target .progress { height: 8px; }

/* Tasks */
.tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.task { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.task:last-child { border-bottom: 0; }
.task input { width: 18px; height: 18px; accent-color: var(--blue-600); cursor: pointer; }
.task-ico { width: 32px; height: 32px; border-radius: 8px; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; }
.task-body { display: flex; flex-direction: column; gap: 2px; }
.task-body b { font-weight: 500; }
.task-body small { color: var(--text-3); }
.task.is-done b { text-decoration: line-through; color: var(--text-3); }

/* Table */
.table-wrap { overflow-x: auto; margin: 0 -22px -22px; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; padding: 10px 22px; background: #f8f9fb; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.table td { padding: 14px 22px; border-bottom: 1px solid var(--border); color: var(--text-2); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafbfd; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.strong-link { color: var(--text); font-weight: 600; }
.strong-link:hover { color: var(--blue-600); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill-green { background: #e8f8ec; color: #15803d; }
.pill-amber { background: #fff4e0; color: #b45309; }
.pill-slate { background: #eef0f4; color: #475569; }

/* Activity */
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { position: relative; display: grid; grid-template-columns: 14px 1fr; column-gap: 12px; padding-bottom: 18px; }
.activity li::before { content: ''; position: absolute; left: 4px; top: 14px; bottom: 0; width: 2px; background: var(--border); }
.activity li:last-child::before { display: none; }
.activity .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue-500); margin-top: 5px; box-shadow: 0 0 0 3px var(--blue-50); }
.activity p { color: var(--text-2); line-height: 1.45; }
.activity p b { color: var(--text); font-weight: 600; }
.activity small { grid-column: 2; color: var(--text-3); margin-top: 2px; }

/* Floating chat + toast */
.chat-fab { position: fixed; right: 24px; bottom: 24px; width: 58px; height: 58px; border-radius: 50%; background: var(--blue-600); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-md); z-index: 25; }
.chat-fab:hover { background: #1d4ed8; transform: translateY(-1px); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 13px; opacity: 0; pointer-events: none; transition: all .2s; z-index: 50; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .checklist { grid-template-columns: 1fr; }
  .help-panel .link-muted { position: absolute; }
  .checklist { position: relative; }
  .help-panel .link-muted { top: 28px; right: 28px; margin: 0; }
  .stats-head { flex-direction: column; }
  .summary { border-top: 1px solid var(--border); }
  .sum { flex: 1; padding: 16px 20px; }
  .sum:first-child { border-left: 0; }
}
@media (max-width: 1100px) {
  .hide-md { display: none !important; }
  .grid-2, .grid-2-wide { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --sidebar-w: 60px; }
  .sidebar { padding: 12px 8px; }
  .brand-mark { width: 44px; height: 44px; font-size: 22px; }
  .nav-item { padding: 0 11px; height: 44px; }
  .nav-item.is-active::before { left: -8px; }
  .search { flex: 1 1 auto; min-width: 0; }
  .search kbd, .topbar .btn-primary, .topbar [aria-label="Help"], .topbar [aria-label="Compose email"] { display: none; }
  .topbar-right { gap: 4px; }
  .checklist { padding: 20px; gap: 20px; }
  .help-panel .link-muted { position: static; align-self: flex-start; margin: 0; }
  .card-head { flex-wrap: wrap; }
  .steps { grid-template-columns: 1fr; }
  .trial { display: none; }
  .page { padding: 16px; }
  .topbar { padding: 0 12px; gap: 8px; }
  .summary { flex-wrap: wrap; }
  .sum { min-width: 50%; border-left: 0; border-top: 1px solid var(--border); }
  .select select { min-width: 0; width: 100%; }
  .select { flex: 1 1 100%; }
  .card-head .progress-wrap { display: none; }
  .greet-row { flex-direction: column; align-items: flex-start; }
}

/* ================= v2 additions ================= */
.btn-green { background: #22a35a; color: #fff; }
.btn-green:hover { background: #1b8a4b; }
.btn-blue { background: var(--blue-600); color: #fff; }
.btn-blue:hover { background: #1d4ed8; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn-danger-text { color: var(--red-500); font-weight: 600; }
.btn-danger-text:hover { text-decoration: underline; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.sec-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 20px 22px; }
.sec-head h2 { font-size: 18px; font-weight: 600; margin-right: auto; display: flex; align-items: center; gap: 8px; }
.sec-head .help-ico { color: var(--text-3); cursor: help; }
.sec-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card.flush { padding: 0; overflow: visible; }

/* compact select */
.select.sm select { height: 40px; min-width: 0; font-size: 14px; padding: 0 38px 0 14px; }
.select.sm .ico { right: 12px; }
.inp { height: 40px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 0 12px; font: 14px var(--font); color: var(--text); background: #fff; width: 100%; }
.inp:focus, textarea.inp:focus { outline: 0; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
textarea.inp { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
.search-sm { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; background: #f1f3f7; border-radius: var(--radius-sm); color: var(--text-3); min-width: 280px; border: 1px solid transparent; }
.search-sm:focus-within { background: #fff; border-color: var(--blue-500); }
.search-sm input { border: 0; outline: 0; background: transparent; font: 14px var(--font); flex: 1; min-width: 0; color: var(--text); }

/* multi-select */
.ms { position: relative; }
.sel-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: #fff; font-weight: 500; white-space: nowrap; }
.sel-btn:hover { border-color: var(--text-3); }
.sel-btn .cnt { background: var(--blue-50); color: var(--blue-600); font-size: 12px; font-weight: 700; border-radius: 10px; padding: 1px 7px; }
.ms-pop { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 35; width: 300px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 12px; }
.ms.is-open .ms-pop { display: block; animation: pop .12s ease-out; }
.ms-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border: 1.5px solid var(--blue-500); border-radius: var(--radius-sm); color: var(--text-3); }
.ms-search input { border: 0; outline: 0; flex: 1; font: 14px var(--font); min-width: 0; }
.ms-all { display: grid; grid-template-columns: 1fr 1fr; margin: 10px 0 6px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.ms-all button { height: 36px; font-weight: 600; font-size: 13px; }
.ms-all button + button { border-left: 1px solid var(--border-strong); }
.ms-all button:hover { background: #f4f6fa; }
.ms-list { max-height: 300px; overflow-y: auto; margin: 0 -4px; }
.ms-opt { display: flex; align-items: flex-start; gap: 10px; padding: 8px 6px; border-radius: 6px; cursor: pointer; line-height: 1.35; }
.ms-opt:hover { background: #f6f8fb; }
.ms-opt input { width: 18px; height: 18px; accent-color: var(--blue-600); margin: 0; flex-shrink: 0; cursor: pointer; }
.ms-empty { padding: 12px 6px; color: var(--text-3); }

/* summary tiles reused for jobs / deals */
.tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 1fr); overflow-x: auto; border-top: 1px solid var(--border); }
.tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 12px; border-right: 1px solid var(--border); transition: background .15s; }
.tile:last-child { border-right: 0; }
.tile:hover { background: var(--blue-50); }
.tile b { font-size: 26px; font-weight: 600; }
.tile span { color: var(--text-2); }
.sec-head-split { display: flex; align-items: stretch; flex-wrap: wrap; }
.sec-head-split .filters { padding: 20px 22px; }

/* deals */
.deal-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(330px, 1fr); overflow-x: auto; border-top: 1px solid var(--border); }
.deal-col { padding: 20px 22px; border-right: 1px solid var(--border); text-align: left; transition: background .15s; }
.deal-col:last-child { border-right: 0; }
.deal-col:hover { background: #fafbfd; }
.deal-col-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.deal-col-top b { font-size: 18px; }
.deal-col-top .won { color: var(--green-500); }
.deal-col-top .lost { color: var(--red-500); }
.deal-row { display: flex; justify-content: space-between; gap: 12px; color: var(--text-2); padding: 4px 0; font-size: 14px; }
.deal-row span:last-child { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* pipeline tables */
.pl-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.pl-box { overflow-x: auto; }
.pl-table thead th { background: #eef1f6; padding: 12px 10px; text-align: center; font-weight: 500; }
.pl-table thead th:first-child { text-align: left; padding-left: 16px; width: 26%; }
.pl-table thead th:last-child { padding-right: 16px; width: 1%; }
.pl-table thead .select select { min-width: 120px; width: 100%; height: 42px; font-size: 13px; padding: 0 28px 0 8px; }
.pl-table thead .select { width: 100%; min-width: 120px; }
.pl-table thead .select .ico { right: 6px; }
.pl-table td { padding: 16px 10px; border-bottom: 1px solid var(--border); text-align: center; font-size: 18px; font-variant-numeric: tabular-nums; }
.pl-table td:first-child { text-align: left; padding-left: 22px; font-size: 14px; }
.pl-table td:last-child { padding-right: 16px; }
.pl-name { color: #1e3a8a; font-weight: 600; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; }
.pl-name:hover { text-decoration: underline; }
.pl-sub { color: var(--text-2); margin-top: 6px; display: block; }
.id-chip { background: #eef1f6; color: var(--text-2); border-radius: 6px; font-size: 12px; font-weight: 700; padding: 2px 8px; }
.end-note { text-align: center; color: var(--text-2); padding: 22px; font-size: 15px; }
.scroll-x { overflow-x: auto; }

/* charts */
.chart-wrap { position: relative; padding: 4px 22px 22px; }
.chart { width: 100%; min-height: 360px; }
.chart svg { display: block; overflow: visible; }
.chart-menu { position: absolute; right: 22px; top: -4px; }
.chart-menu .icon-btn { width: 34px; height: 34px; border-radius: 6px; border: 1px solid var(--border-strong); }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 10px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.chart-tip { position: fixed; pointer-events: none; z-index: 70; background: var(--navy-900); color: #fff; padding: 8px 10px; border-radius: 6px; font-size: 12px; line-height: 1.4; opacity: 0; transition: opacity .1s; white-space: nowrap; }
.chart-tip.is-on { opacity: 1; }
.chart-table { margin-top: 14px; }
.applied-note { color: var(--text-3); font-size: 12px; padding: 0 22px 6px; }
.pending-dot { display: inline-block; width: 8px; height: 8px; background: var(--orange-500); border-radius: 50%; }

/* empty state */
.empty { margin: 0 22px 22px; border: 1px solid var(--border); border-radius: var(--radius); padding: 50px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.empty p { color: var(--text-2); max-width: 420px; line-height: 1.5; }
.empty h3 { font-size: 17px; }

/* targets list */
.tgt-list { padding: 0 22px 22px; display: flex; flex-direction: column; gap: 4px; }
.tgt { display: grid; grid-template-columns: 1.4fr 1fr 2fr auto; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.tgt-name b { display: block; font-weight: 600; }
.tgt-name small { color: var(--text-3); }
.tgt .progress { height: 8px; }
.tgt-prog { display: flex; align-items: center; gap: 12px; }
.tgt-prog small { color: var(--text-2); white-space: nowrap; min-width: 90px; text-align: right; }
.tgt-prog .progress span.done { background: var(--green-500); }

/* tabs + activities */
.tabs { display: flex; align-items: stretch; margin-right: auto; align-self: stretch; }
.tab { padding: 0 34px; font-size: 16px; font-weight: 500; color: var(--text-2); border-bottom: 3px solid transparent; display: flex; align-items: center; }
.tab.is-on { color: #1e3a8a; border-bottom-color: #1e3a8a; }
.act-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 0 22px 0 10px; min-height: 76px; border-bottom: 1px solid var(--border); }
.act-table { width: 100%; border-collapse: collapse; }
.act-table th { text-align: left; background: #eef1f6; font-size: 13px; letter-spacing: .03em; text-transform: uppercase; font-weight: 600; color: var(--text); padding: 16px; }
.act-table td { padding: 16px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text-2); }
.act-title { display: flex; gap: 14px; align-items: flex-start; }
.act-title .chk { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #a7b1c2; color: #a7b1c2; display: grid; place-items: center; flex-shrink: 0; margin-top: 4px; }
.act-title .chk:hover { border-color: var(--green-500); color: var(--green-500); }
.act-title .chk.on { background: var(--green-500); border-color: var(--green-500); color: #fff; }
.act-title a { color: #1e3a8a; font-weight: 600; font-size: 15px; }
.act-title a:hover { text-decoration: underline; }
.act-title div > span { display: block; margin-top: 4px; line-height: 1.4; }
.act-title .due { color: #1e3a8a; }
.act-title .due.overdue { color: var(--red-500); }
.is-complete .act-title a { text-decoration: line-through; color: var(--text-3); }
.status-pill { display: inline-block; padding: 6px 16px; border-radius: 999px; background: #eceef2; color: var(--text-2); font-size: 13px; }
.status-pill.ok { background: #e8f8ec; color: #15803d; }
.status-pill.up { background: var(--blue-50); color: var(--blue-600); }
.desc { max-width: 340px; line-height: 1.45; }
.rel { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--blue-50); color: var(--blue-600); }
.rel.na { background: #fdecec; color: #ef6b6b; }
.rel.t-candidate { background: #e8f8ec; color: #15803d; }
.rel.t-company { background: #e3f7f8; color: #0e7f8a; }
.rel.t-contact { background: #f1ebff; color: #2563eb; }
.rel.t-deal { background: #fff4e0; color: #b45309; }
.row-actions { display: flex; gap: 8px; }
.round-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; color: var(--text-2); background: #fff; }
.round-btn:hover { border-color: var(--blue-500); color: var(--blue-600); }
.round-btn.del:hover { border-color: var(--red-500); color: var(--red-500); }
.filter-wrap { position: relative; }
.filter-pop { display: none; position: absolute; right: 0; top: calc(100% + 8px); width: 340px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); z-index: 35; }
.filter-wrap.is-open .filter-pop { display: block; animation: pop .12s ease-out; }
.filter-body { padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.filter-body label { font-weight: 500; display: flex; flex-direction: column; gap: 8px; }
.filter-body .select select { min-width: 0; width: 100%; height: 44px; font-size: 14px; }
.filter-foot { display: flex; justify-content: space-between; padding: 14px 22px; border-top: 1px solid var(--border); }

/* modal + forms */
.overlay { position: fixed; inset: 0; background: rgba(15, 27, 61, .45); z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 12px; width: 100%; max-width: 640px; box-shadow: 0 20px 60px rgba(0,0,0,.25); display: flex; flex-direction: column; animation: pop .15s ease-out; }
.modal.wide { max-width: 980px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 18px; font-weight: 600; color: var(--text); }
.modal-body { padding: 22px 24px; }
.modal-foot { display: flex; align-items: center; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--border); }
.modal-foot .spacer { flex: 1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.fld { display: flex; flex-direction: column; gap: 6px; grid-column: span 2; }
.fld.half { grid-column: span 1; }
.fld > label { font-weight: 500; font-size: 13px; color: var(--text); }
.fld > label .req { color: var(--red-500); }
.fld .select select { min-width: 0; width: 100%; height: 40px; font-size: 14px; }
.fld .hint { font-size: 12px; color: var(--text-3); }
.fld .err { font-size: 12px; color: var(--red-500); display: none; }
.fld.has-err .err { display: block; }
.fld.has-err .inp, .fld.has-err select { border-color: var(--red-500); }
.checks { border: 1px solid var(--border-strong); border-radius: var(--radius-sm); max-height: 170px; overflow-y: auto; padding: 6px; display: grid; grid-template-columns: 1fr 1fr; }
.checks label { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 6px; cursor: pointer; }
.checks label:hover { background: #f6f8fb; }
.checks input { accent-color: var(--blue-600); width: 16px; height: 16px; }
.mini-table { width: 100%; border-collapse: collapse; }
.mini-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); padding: 8px 10px; border-bottom: 1px solid var(--border); font-weight: 600; }
.mini-table td { padding: 10px; border-bottom: 1px solid var(--border); color: var(--text-2); vertical-align: middle; }
.mini-table td b { color: var(--text); font-weight: 600; display: block; }
.mini-table td small { color: var(--text-3); }
.mini-table .select select { min-width: 170px; height: 36px; font-size: 13px; }
.mini-empty { text-align: center; color: var(--text-3); padding: 28px; }
.cust-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cust-list label { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.cust-list input { accent-color: var(--blue-600); width: 18px; height: 18px; }

/* global search results */
.search { position: relative; }
.search-results { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 6px; z-index: 40; max-height: 360px; overflow-y: auto; }
.search-results.is-open { display: block; }
.sr-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; text-align: left; color: var(--text); }
.sr-item:hover { background: var(--blue-50); }
.sr-item small { color: var(--text-3); margin-left: auto; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.sr-none { padding: 12px; color: var(--text-3); }

.step-check { cursor: pointer; }
.step-check:hover { border-color: var(--blue-500); }

@media (max-width: 1100px) {
  .tgt { grid-template-columns: 1fr 1fr; }
  .search-sm { min-width: 0; flex: 1; }
}
@media (max-width: 760px) {
  .form-grid { grid-template-columns: 1fr; }
  .fld.half { grid-column: span 2; }
  .checks, .cust-list { grid-template-columns: 1fr; }
  .tab { padding: 0 16px; }
  .sec-head h2 { width: 100%; }
}
button.sum { text-align: left; }
button.sum:hover { background: var(--blue-50); }
.stats .sum { min-width: 128px; padding: 0 18px; }
.stats .filters .select select { min-width: 240px; }

/* ================= v4: auth, shell, candidates ================= */
.na { color: #9aa5b5; }
.small { font-size: 12px; }
.lnk { color: var(--blue-600); }
.lnk:hover { text-decoration: underline; }
.danger { color: var(--red-500) !important; }
.page-full { max-width: none; }
.page-head h1 { font-weight: 600; font-size: 22px; }
.soon { text-align: center; padding: 50px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill-blue { background: #eff6ff; color: #1d4ed8; }
.stat-mini { display:flex;flex-direction:column;align-items:center;background:#faf9ff;border:1px solid #eff6ff;border-radius:10px;padding:12px 20px;min-width:80px; }
.stat-mini .stat-n { font-size:22px;font-weight:700;color:#1e40af; }
.stat-mini .stat-l { font-size:11px;color:#888;margin-top:2px;white-space:nowrap; }

/* auth */
.auth { min-height: 100vh; width: 100%; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 600px at 10% -10%, #eff6ff 0%, transparent 60%), radial-gradient(900px 500px at 110% 110%, #e5ddff 0%, transparent 55%), var(--bg); }
.auth-card { width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-md); padding: 32px; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.auth-brand .brand-mark { width: 44px; height: 44px; font-size: 22px; }
.auth-brand b { display: block; font-size: 16px; }
.auth-brand small { color: var(--text-3); }
.auth-card h1 { font-size: 22px; margin-bottom: 6px; }
.auth-form { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-fld { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 13px; }
.auth-btn { width: 100%; justify-content: center; height: 44px; margin-top: 4px; }
.auth-err { color: var(--red-500); min-height: 18px; margin: 0; font-size: 13px; }
.auth-forgot { align-self: center; font-size: 13px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--blue-600); }

/* top bar */
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid transparent; }
.user-chip:hover { background: #f1f3f7; border-color: var(--border); }
.user-chip .avatar { width: 38px; height: 38px; display: grid; place-items: center; }
.user-meta { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
.user-meta b { font-size: 14px; font-weight: 600; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta small { color: var(--text-3); font-size: 12px; }
.qa-toggle { transition: transform .15s; }
.dropdown:has(#quickAdd.is-open) .qa-toggle { transform: rotate(45deg); background: #1e3a8a; }
.qa-menu { display: none; width: 470px; padding: 18px 20px; grid-template-columns: 1fr 1fr; gap: 10px 30px; }
.qa-menu.is-open { display: grid; }
.qa-title { color: var(--text-3); font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.qa-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 7px 6px; border-radius: 8px; font-size: 15px; font-weight: 500; text-align: left; }
.qa-item:hover { background: #f4f6fb; }
.qa-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.notif-menu { width: 380px; padding: 0; }
.np-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 6px; }
.np-tabs { display: flex; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--border); }
.np-tabs button { padding: 10px 10px; font-weight: 500; color: var(--text-2); border-bottom: 2px solid transparent; display: flex; gap: 6px; align-items: center; }
.np-tabs button.is-on { color: var(--blue-600); border-bottom-color: var(--blue-600); }
.np-list { max-height: 420px; overflow-y: auto; padding: 6px; }
.np-list .notif { display: block; width: 100%; text-align: left; border-radius: 8px; padding: 10px 12px; }
.np-list .notif.unread { background: #f0f7ff; }
.np-list .notif.unread::before { content: ''; float: right; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-600); margin: 5px 0 0 8px; }
.np-list .notif small { display: block; color: var(--text-3); margin-top: 3px; font-size: 12px; }
.np-empty { padding: 26px 18px; color: var(--text-3); text-align: center; line-height: 1.5; }

/* generic popovers */
.pop-wrap { position: relative; }
.pop { display: none; position: absolute; top: calc(100% + 6px); right: 0; z-index: 36; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.pop.is-open { display: block; animation: pop .12s ease-out; }
.menu-pop { min-width: 230px; padding: 6px; }
.menu-pop .dd-item { white-space: nowrap; }
.col-pop { width: 270px; max-height: 420px; overflow-y: auto; padding: 8px; }
.filter-pop2 { width: 560px; max-width: 92vw; }
.filter-body.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.filter-body .inp { height: 40px; }

/* candidates list */
.cl { display: grid; grid-template-columns: 1fr; gap: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); min-height: calc(100vh - 120px); }
.cl.with-panel { grid-template-columns: 240px 1fr; }
.cl-panel { display: none; border-right: 1px solid var(--border); padding: 14px 10px; }
.cl.with-panel .cl-panel { display: block; }
.cl-panel-title { display: flex; justify-content: space-between; color: var(--text-3); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 12px 10px 6px; }
.cl-view { width: 100%; display: flex; justify-content: space-between; padding: 9px 10px; border-radius: 8px; text-align: left; color: var(--text-2); font-weight: 500; }
.cl-view span { color: var(--text-3); font-size: 12px; }
.cl-view:hover { background: #f4f6fb; }
.cl-view.on { background: var(--blue-50); color: var(--blue-600); }
.cl-main { min-width: 0; display: flex; flex-direction: column; }
.cl-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.cl-head h2 { font-size: 18px; font-weight: 600; }
.sq-btn { width: 42px; height: 42px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); display: grid; place-items: center; color: var(--text-2); background: #fff; flex-shrink: 0; }
.sq-btn:hover, .sq-btn.on { border-color: var(--blue-500); color: var(--blue-600); }
.sq-btn.disabled { opacity: .35; pointer-events: none; }
.cl-search { min-width: 330px; }
.cl-search kbd { font: 11px var(--font); border: 1px solid var(--border-strong); border-radius: 4px; padding: 1px 6px; background: #fff; color: var(--text-3); }
.split-btn { display: flex; }
.split-btn > .btn:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.split-caret { border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important; padding: 0 10px; border-left: 1px solid rgba(255,255,255,.3); background: #1d4ed8; }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--border); }
.fchip { display: inline-flex; align-items: center; gap: 6px; background: var(--blue-50); color: var(--blue-600); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 13px; }
.fchip button { width: 20px; height: 20px; border-radius: 50%; font-size: 15px; line-height: 1; }
.fchip button:hover { background: #eff6ff; }
.bulk { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 18px; background: #fffbea; border-bottom: 1px solid #f5e6a8; font-weight: 600; }
.btn.danger { border-color: #fecaca; }
.cl-table-wrap { overflow: auto; flex: 1; }
.cl-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.cl-table thead th { position: sticky; top: 0; z-index: 2; background: #f5f7fa; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); text-align: left; font-weight: 600; white-space: nowrap; padding: 0; }
.cl-table td { border-bottom: 1px solid var(--border); border-right: 1px solid #eef1f5; padding: 10px 16px; white-space: nowrap; vertical-align: middle; max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
.cl-table tbody tr:hover td { background: #fafbfd; }
.cl-table tr.sel td { background: #f3f7ff; }
.th-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 16px; font-weight: 600; text-align: left; }
.th-btn:hover { background: #eef1f6; }
.sort-ind { color: var(--text-3); font-size: 11px; }
.ck { width: 52px; text-align: center; padding: 0 12px !important; }
.ck input { width: 18px; height: 18px; accent-color: var(--blue-600); cursor: pointer; }
.namecol { position: sticky; left: 52px; background: #fff; z-index: 1; min-width: 300px; }
thead .namecol { z-index: 3; background: #f5f7fa; }
.cl-table td.ck { position: sticky; left: 0; background: #fff; z-index: 1; }
.cl-table thead th.ck { position: sticky; left: 0; z-index: 3; }
.nm { display: flex; align-items: center; gap: 12px; }
.nm-link { font-weight: 600; font-size: 15px; color: var(--text); margin-right: auto; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.nm-link:hover { color: var(--blue-600); text-decoration: underline; }
.cav { border-radius: 50%; color: #fff; display: inline-grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.ic-btn { width: 32px; height: 32px; border-radius: 6px; display: grid; place-items: center; color: var(--text-2); }
.ic-btn:hover { background: #eef1f6; color: var(--text); }
.res-btn { color: var(--blue-600); display: inline-grid; place-items: center; }
.res-btn:hover { color: #1d4ed8; }
.res-btn-label { display: inline-flex; align-items: center; gap: 5px; background: var(--blue-50, #eff6ff); border: 1px solid var(--blue-200, #bfdbfe); border-radius: 6px; padding: 3px 8px; font-size: 12px; max-width: 160px; white-space: nowrap; overflow: hidden; }
.res-btn-label .res-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; }
.tag { display: inline-block; background: #eef1f6; color: var(--text-2); border-radius: 6px; padding: 3px 9px; font-size: 12px; font-weight: 500; margin: 2px 4px 2px 0; }
.tag.t2 { background: #eff6ff; color: #1d4ed8; }
.tag.t3 { background: #f3e8ff; color: #1d4ed8; }
.tag.t-red { background: #fef2f2; color: #dc2626; }
.tag.t-amber { background: #fffbeb; color: #d97706; }
.tag.more { background: transparent; color: var(--text-3); }
.tag button { margin-left: 6px; color: inherit; opacity: .6; }
.tag button:hover { opacity: 1; }
.cl-empty { padding: 60px 20px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.cl-empty p { color: var(--text-2); }
.cl-foot { display: flex; align-items: center; gap: 12px; justify-content: flex-end; padding: 10px 18px; border-top: 1px solid var(--border); color: var(--text-2); font-size: 13px; flex-wrap: wrap; }
.cl-foot > span:first-child { margin-right: auto; }
.select.xs select { height: 34px; min-width: 80px; font-size: 13px; padding: 0 30px 0 10px; }
.select.xs .ico { right: 8px; }
.lp .cl-table-wrap { max-height: none; }
.ql-top { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.ql-row { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--border); }
.ql-row span { color: var(--text-3); }
.ql-skills { margin-top: 10px; }
.ql-sum { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); color: var(--text-2); line-height: 1.55; max-height: 200px; overflow: auto; }
.imp-table td { vertical-align: middle; }
.imp-table .select select { min-width: 230px; height: 38px; }

/* candidate form */
.modal-panel { max-width: 1040px; }
.overlay:has(.modal-panel) { padding: 2vh 16px; }
.modal-panel .modal-body { max-height: calc(96vh - 140px); overflow-y: auto; padding: 0; }
.cf-sec { border-bottom: 1px solid var(--border); }
.cf-head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 28px; background: #f4f7fc; font-size: 17px; font-weight: 600; text-align: left; }
.cf-head .cnt { background: #fff; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; padding: 1px 8px; color: var(--text-2); }
.cf-head .caret { margin-left: auto; color: var(--text-3); transition: transform .15s; transform: rotate(-90deg); }
.cf-head .caret.up { transform: none; }
.cf-body { padding: 22px 28px 26px; }
.cf .form-grid { gap: 18px 28px; }
.cf .fld > label { font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.cf .inp { height: 46px; font-size: 15px; }
.cf textarea.inp { height: auto; }
.cf .select select { height: 46px; font-size: 15px; }
.inp-wrap { position: relative; display: flex; align-items: center; }
.inp-wrap.has-ico .ico { position: absolute; left: 14px; color: var(--text-3); pointer-events: none; }
.inp-wrap.has-ico .inp { padding-left: 42px; }
.inp-clear { position: absolute; right: 10px; color: var(--text-3); width: 24px; height: 24px; display: grid; place-items: center; }
.inp:disabled { background: #f4f6fa; color: var(--text-3); }
.hint.dup { color: #1e40af; font-size: 13px; }
.parsed, .inp.parsed, select.parsed { background: #f0fbf4 !important; border-color: #8fd6a8 !important; }
.parsed-box .rte { border-color: #8fd6a8; }
.parsed-row .inp, .parsed-row select { background: #f0fbf4; }
.dropzone { border: 2px dashed #b9c2d0; border-radius: 10px; padding: 34px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; cursor: pointer; color: var(--text-2); margin-bottom: 18px; transition: background .15s, border-color .15s; }
.dropzone b { font-size: 17px; font-weight: 500; color: var(--text); }
.dropzone small { color: var(--text-3); }
.dropzone:hover, .dropzone.drag { border-color: var(--blue-500); background: #f8faff; }
.dropzone.has-file { flex-direction: row; text-align: left; padding: 16px 18px; cursor: default; border-style: solid; border-color: #c9e9d4; background: #f6fcf8; gap: 12px; }
.dropzone.has-file .file-meta { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.dropzone.has-file b { font-size: 15px; }
.file-ico { width: 46px; height: 46px; border-radius: 10px; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; color: var(--blue-600); }
.dropzone.busy { cursor: progress; }
.spinner { width: 34px; height: 34px; border: 3px solid #e9e1fd; border-top-color: var(--blue-600); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.parse-banner { display: flex; align-items: center; gap: 10px; background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; border-radius: 8px; padding: 12px 14px; margin-bottom: 18px; line-height: 1.45; }
.parse-banner.err { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.parse-banner .link { margin-left: auto; white-space: nowrap; }
.cf-foot-note { color: #166534; font-size: 13px; margin-right: 10px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px; border-radius: 20px; width: fit-content; }
.switch input { display: none; }
.switch .slider { width: 50px; height: 28px; background: #d5dbe3; border-radius: 14px; position: relative; transition: background .2s; }
.switch .slider::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + .slider { background: #22a35a; }
.switch input:checked + .slider::after { transform: translateX(22px); }
.switch-txt { color: var(--text-2); font-weight: 500; }
.rep-card { border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; background: #fcfdff; }
.rep-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.add-row { width: 100%; height: 56px; border: 1px solid var(--border-strong); border-radius: 6px; background: #fafbfc; font-size: 16px; font-weight: 500; }
.add-row:hover { border-color: var(--blue-500); color: var(--blue-600); background: #f8faff; }
.lang-head, .lang-row { display: grid; grid-template-columns: 1fr 1fr 44px; gap: 18px; align-items: center; margin-bottom: 10px; }
.lang-head span { font-weight: 500; }
.lang-row .fld { grid-column: auto !important; }
.lang-row .fld > label { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 46px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 6px 8px; background: #fff; }
.chips:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.chips input { border: 0; outline: 0; flex: 1; min-width: 180px; font: 15px var(--font); padding: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #f3efff; color: #1e40af; border-radius: 6px; padding: 4px 6px 4px 10px; font-size: 14px; font-weight: 500; }
.chip button { width: 18px; height: 18px; border-radius: 4px; font-size: 15px; line-height: 1; color: inherit; }
.chip button:hover { background: #dbeafe; }
.chip.ghost { background: #fff; border: 1px dashed var(--border-strong); color: var(--text-2); padding: 4px 10px; }
.chip.ghost:hover { border-color: var(--blue-500); color: var(--blue-600); }
.tag-sugg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.tag-sugg small { color: var(--text-3); margin-right: 4px; }
.cf-empty { text-align: center; padding: 26px 10px 10px; border-top: 1px solid var(--border); margin-top: 20px; }
.cf-empty p { color: #3b4a6b; font-size: 20px; font-weight: 500; margin: 18px 0; }
.cf-types { display: flex; align-items: center; justify-content: center; }
.cf-types i { width: 70px; border-top: 2px dashed #cbd2dc; }
.cf-type { width: 74px; height: 74px; border-radius: 50%; border: 1.5px solid #c5ccd6; display: grid; place-items: center; font-size: 24px; color: #6b7280; position: relative; background: #fff; }
.cf-type.on::after { content: '✓'; position: absolute; top: -4px; right: -4px; width: 26px; height: 26px; border-radius: 50%; background: #22a35a; color: #fff; font-size: 14px; display: grid; place-items: center; }
.fld-tools { margin-left: auto; display: inline-flex; gap: 4px; }
.fld-tools button { color: var(--text-3); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 4px; }
.fld-tools button:hover { background: #eef1f6; color: var(--text); }
.fb-types { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.fb-type { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border: 1.5px solid var(--border-strong); border-radius: 10px; font-weight: 500; font-size: 13px; }
.fb-type span { width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid #c5ccd6; display: grid; place-items: center; font-size: 20px; }
.fb-type.on { border-color: #22a35a; background: #f0fbf4; }
.fb-type.on span { border-color: #22a35a; color: #15803d; }

/* rich text editor */
.rte { border: 1px solid var(--border-strong); border-radius: 6px; position: relative; background: #fff; }
.rte-top { display: flex; gap: 10px; align-items: center; padding: 10px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.rte-top .select select { min-width: 220px; height: 40px; width: auto; }
.rte-top .select { flex-shrink: 0; }
.rte-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px 8px; background: #f6f6f6; border-bottom: 1px solid #e5e5e5; }
.rte-b { min-width: 32px; height: 32px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; color: #333; font-size: 15px; }
.rte-b:hover { background: #e4e4e4; }
.rte-b.on { background: #eff6ff; color: var(--blue-600); }
.rte-ai { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 4px; background: #3b82f6; color: #fff; font-weight: 600; font-size: 13px; }
.rte-ai:hover { background: #2563eb; }
.rte-sep { width: 1px; height: 22px; background: #d4d4d4; margin: 0 4px; }
.rte-bar .select.xs select { height: 30px; background: transparent; border: 0; min-width: 110px !important; font-size: 13px; width: auto; }
.rte-bar .select.xs { flex-shrink: 0; min-width: 110px; }
.rte-bar .select { flex-shrink: 0; }
.rte-mode { margin-left: auto; font-size: 12px; color: #9a3412; }
.rte-area { min-height: 240px; padding: 14px 16px; outline: 0; line-height: 1.6; font-size: 15px; overflow-wrap: anywhere; }
.rte-area:empty::before { content: attr(data-placeholder); color: #a0a8b5; }
.rte-area blockquote { border-left: 3px solid #cbd5e1; margin: 8px 0; padding: 4px 12px; color: var(--text-2); }
.rte-area table td { min-width: 40px; }
.rte-src { width: 100%; min-height: 240px; border: 0; padding: 14px; font: 13px/1.5 ui-monospace, Menlo, monospace; resize: vertical; outline: 0; }
.rte.painting .rte-area { cursor: copy; }
.rte-pop { position: absolute; z-index: 5; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-md); padding: 10px; width: 260px; }
.rte-form { display: flex; flex-direction: column; gap: 8px; }
.rte-grid { display: grid; grid-template-columns: repeat(6, 26px); gap: 3px; }
.rte-grid span { width: 26px; height: 26px; border: 1px solid #d1d5db; border-radius: 3px; cursor: pointer; }
.rte-grid span.hl { background: #eff6ff; border-color: var(--blue-500); }
.rte-colors { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.rte-colors span { height: 26px; border-radius: 4px; border: 1px solid #d1d5db; cursor: pointer; }
.rte-colors .link { grid-column: span 5; justify-self: start; }
.rte-preview { line-height: 1.65; }

/* candidate profile */
.cv { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 0; margin: -24px; min-height: calc(100vh - 64px); }
.cv-main { min-width: 0; background: #f0f2f5; border-right: 1px solid var(--border); }
.cv-toolbar { display: flex; align-items: center; gap: 10px; padding: 12px 20px; background: #fff; border-bottom: 1px solid var(--border); flex-wrap: wrap; position: sticky; top: var(--topbar-h); z-index: 5; }
.green-txt { color: #15803d; }
.btn-group { display: flex; }
.btn-group .sq-btn { border-radius: 0; margin-left: -1px; }
.btn-group .sq-btn:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.btn-group .sq-btn:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.tb-sep { width: 1px; height: 30px; background: var(--border); }
.cv-banner { display: flex; gap: 22px; padding: 26px 26px; background: linear-gradient(100deg, #dcf7ea 0%, #eefaf4 55%, #ffffff 100%); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.cv-id { flex: 1; min-width: 300px; }
.cv-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cv-name h1 { font-size: 28px; font-weight: 600; margin-right: 6px; }
.id-chip { display: inline-flex; align-items: center; gap: 4px; }
.soc { width: 28px; height: 28px; border-radius: 50%; background: #c3cad4; color: #fff; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; }
.soc.on:hover { transform: translateY(-1px); }
.soc.add { background: #fff; color: var(--text-2); border: 1.5px solid #9aa5b5; font-size: 18px; }
.cv-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; margin-top: 16px; font-size: 16px; color: var(--text); }
.cv-meta span { display: flex; align-items: center; gap: 10px; }
.cv-meta .ico { color: var(--text-2); }
.cv-meta .org .ico { color: #2563eb; }
.cv-tags { margin-top: 12px; }
.cv-banner-right { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.linked { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; }
.cv-contact { display: flex; align-items: center; gap: 26px; padding: 16px 26px; background: #fff; border-bottom: 1px solid var(--border); flex-wrap: wrap; font-size: 16px; }
.cv-contact > span { display: inline-flex; align-items: center; gap: 8px; }
.cv-contact .mini { color: var(--text-2); display: inline-grid; place-items: center; }
.cv-contact .mini.wa { color: #16a34a; }
.cv-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; margin: 18px 20px; }
#cvOverview .cv-card { margin: 0; border-radius: 0; border-left: 0; border-right: 0; }
.cv-card-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; flex-wrap: wrap; }
.cv-card-head h3 { font-size: 19px; font-weight: 600; }
.cv-card-head .cnt { background: #eef1f6; border-radius: 6px; padding: 2px 9px; font-size: 13px; color: var(--text-2); }
.cv-coll { width: 34px; height: 34px; border: 1px solid var(--border-strong); border-radius: 6px; display: grid; place-items: center; }
.cv-coll.closed .ico { transform: rotate(-90deg); }
.search-sm.small { min-width: 220px; height: 38px; background: #fff; border: 1px solid var(--border-strong); }
.ov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 20px; padding: 4px 20px 10px; }
.ov-cell { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 6px; min-height: 68px; }
.ov-cell:hover { background: #f5f7fa; }
.ov-l { color: #5f6b7d; font-size: 15px; }
.ov-v { font-size: 16px; font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
.ov-edit { position: absolute; right: 8px; top: 10px; opacity: 0; color: var(--text-2); width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; }
.ov-cell:hover .ov-edit { opacity: 1; }
.ov-edit:hover { background: #e6eaf0; }
.ov-cell.editing { background: #f8faff; }
.ov-cell.editing .inp, .ov-cell.editing select { height: 38px; min-width: 0; width: 100%; }
.ov-acts { display: flex; gap: 6px; margin-top: 4px; }
.ov-more { text-align: center; padding: 6px 0 16px; }
.ov-more .link { font-size: 16px; }
.cv-tabs { display: flex; overflow-x: auto; background: #fff; border-bottom: 1px solid var(--border); padding: 0 12px; position: sticky; top: calc(var(--topbar-h) + 67px); z-index: 4; }
.cv-tabs button { padding: 16px 18px; font-size: 15px; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; display: flex; gap: 8px; align-items: center; color: var(--text); }
.cv-tabs button.on { color: var(--blue-600); border-bottom-color: var(--blue-600); }
.cv-tabs .cnt { background: #eef1f6; border-radius: 6px; padding: 1px 8px; font-size: 12px; color: var(--text-2); }
.cv-tabbody { padding-bottom: 30px; }
.cv-summary { padding: 0 24px 6px; line-height: 1.65; color: var(--text); }
.cv-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 20px 36px; text-align: center; }
.cv-empty h4 { font-size: 20px; font-weight: 500; }
.cv-empty.small { padding: 10px 20px 24px; }
.cv-empty p { color: var(--text-2); }
.hist { padding: 0 20px 10px; }
.hist-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--border); }
.hist-item > div:nth-child(2) { flex: 1; min-width: 0; }
.hist-item small { color: var(--text-3); display: block; margin-top: 3px; }
.hist-item p { margin-top: 6px; color: var(--text-2); line-height: 1.5; }
.hist-ico { width: 40px; height: 40px; border-radius: 10px; background: #f3efff; color: var(--blue-600); display: grid; place-items: center; flex-shrink: 0; font-weight: 700; }
.hist-add { padding: 0 20px 20px; }
.cv-tabbody > .hist-add { margin: -6px 0 0; padding-left: 20px; }
.lang-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 24px 20px; }
.lang-list div { display: flex; flex-direction: column; }
.lang-list small { color: var(--text-3); }
.sys-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 24px; padding: 4px 24px 22px; }
.sys-grid div { display: flex; flex-direction: column; gap: 4px; }
.sys-grid span { color: #5f6b7d; }
.sys-grid b { font-weight: 600; }
.chg { margin: 6px 0 0; padding-left: 18px; color: var(--text-2); font-size: 13px; line-height: 1.5; }
.cv-side { background: #f4f6f9; position: sticky; top: var(--topbar-h); height: calc(100vh - var(--topbar-h)); overflow-y: auto; display: flex; flex-direction: column; }
.side-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px; background: #fff; border-bottom: 1px solid var(--border); }
.side-btns .btn { padding: 0 8px; justify-content: center; font-size: 13px; }
.side-tabs { display: flex; overflow-x: auto; background: #fff; border-bottom: 1px solid var(--border); padding: 0 6px; }
.side-tabs button { padding: 12px 10px; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; display: flex; gap: 6px; align-items: center; font-size: 14px; }
.side-tabs button.on { color: var(--blue-600); border-bottom-color: var(--blue-600); }
.side-tabs .cnt { background: var(--blue-50); color: var(--blue-600); border-radius: 6px; padding: 0 7px; font-size: 12px; }
.side-tools { display: flex; gap: 8px; padding: 12px; align-items: center; }
.side-tools .search-sm { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--border-strong); }
.side-tools .select select { min-width: 0; width: 110px; background: #fff; }
.side-feed { padding: 0 12px 20px; display: flex; flex-direction: column; gap: 10px; }
.side-empty { text-align: center; padding: 40px 16px; }
.side-empty p { font-size: 18px; font-weight: 500; margin-top: 16px; line-height: 1.4; }
.feed-item { display: flex; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px; position: relative; }
.feed-ico { width: 30px; height: 30px; border-radius: 50%; color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.feed-body { flex: 1; min-width: 0; }
.feed-top { display: flex; justify-content: space-between; gap: 8px; }
.feed-kind { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.feed-time { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.feed-title { font-weight: 600; margin-top: 3px; line-height: 1.4; }
.feed-text { color: var(--text-2); margin-top: 4px; line-height: 1.45; font-size: 13px; overflow-wrap: anywhere; }
.feed-by { color: var(--text-3); font-size: 12px; margin-top: 6px; }
.feed-acts { position: absolute; right: 8px; bottom: 8px; display: none; gap: 4px; }
.feed-item:hover .feed-acts { display: flex; }
.feed-acts button { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; color: var(--text-2); background: #f4f6f9; }
.tchk { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.tchk input { width: 16px; height: 16px; accent-color: var(--green-500); }
.struck { text-decoration: line-through; color: var(--text-3); }
.od { color: var(--red-500); font-weight: 600; }

@media (max-width: 1280px) {
  .cv { grid-template-columns: 1fr; }
  .cv-side { position: static; height: auto; border-top: 1px solid var(--border); }
  .ov-grid, .sys-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .cl.with-panel { grid-template-columns: 1fr; }
  .cl-panel { border-right: 0; border-bottom: 1px solid var(--border); }
  .cl-search { min-width: 0; flex: 1 1 100%; order: 5; }
  .user-meta { display: none; }
  .filter-body.two { grid-template-columns: 1fr; }
  .qa-menu { width: 92vw; grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cv { margin: -16px; }
  .cv-meta, .ov-grid, .sys-grid, .lang-list { grid-template-columns: 1fr; }
  .cv-toolbar, .cv-tabs { position: static; }
  .auth-row { grid-template-columns: 1fr; }
  .fb-types { grid-template-columns: repeat(3, 1fr); }
  .lang-head, .lang-row { grid-template-columns: 1fr 1fr 40px; gap: 8px; }
  .namecol { min-width: 220px; }
  .cf-body { padding: 18px 16px; }
  .cf-head { padding: 16px; }
}

/* Advanced Search */
.as-pill { display:inline-flex;align-items:center;gap:4px;padding:8px 18px;border-radius:99px;border:1px solid #d1d5db;background:#fff;font-size:13px;font-weight:500;color:#374151;cursor:pointer;transition:all .15s }
.as-pill:hover { border-color:#60a5fa;color:#1e40af }
.as-pill-on { border-color:#2563eb;color:#1e40af;background:#f0f7ff }
.as-pill-set { border-color:#2563eb;color:#fff;background:linear-gradient(135deg,#2563eb,#1e40af) }

/* Roles & Permissions */
.rp-page { min-height:400px }
.rp-role-row { cursor:pointer }
.rp-role-row:hover { background:#f8f7ff }
.rp-role-row.rp-active { background:#f0f7ff }
.rp-detail { }
.rp-tabs { display:flex;gap:0;border-bottom:2px solid #e5e7eb;margin-top:8px }
.rp-tab { padding:10px 20px;font-size:14px;font-weight:600;color:#6b7280;background:none;border:none;border-bottom:2px solid transparent;margin-bottom:-2px;cursor:pointer;transition:all .15s }
.rp-tab:hover { color:#1e40af }
.rp-tab.active { color:#1e40af;border-bottom-color:#1e40af }
.rp-table th { text-align:center;font-size:12px;font-weight:700;color:#374151;text-transform:uppercase;letter-spacing:.03em }
.rp-table th:first-child { text-align:left }
.rp-table td:not(:first-child) { text-align:center }
.rp-table td:first-child { min-width:200px }
.rp-table td:first-child .muted { font-size:11px;line-height:1.3 }
.select-sm { min-width:110px }
.select-sm select { font-size:12px;padding:4px 28px 4px 8px;height:30px }
.rp-section-header { background:#f1f5f9;padding:10px 16px;font-size:12px;font-weight:700;color:#475569;text-transform:uppercase;letter-spacing:.04em;margin-top:24px;border-radius:6px }
.rp-section-label { font-size:13px;font-weight:700;color:#374151;padding:14px 0 6px;margin-left:4px }
.rp-toggle-row { display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #f3f4f6 }
.rp-toggle-row:last-child { border-bottom:none }
.rp-toggle-info { flex:1 }
.rp-toggle-info b { font-size:14px;color:#1e40af }
.rp-toggle-info .muted { font-size:12px }
.rp-info-banner { background:#fef3c7;border:1px solid #fde68a;border-radius:8px;padding:12px 16px;font-size:13px;color:#92400e }

/* KPI Dashboard */
.kpi-dash { padding: 0 !important; overflow: hidden; }
.kpi-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-bottom: 1px solid var(--border); }
.kpi-tile { display: flex; flex-direction: column; align-items: center; padding: 24px 16px 20px; text-align: center; border-right: 1px solid var(--border); transition: background .15s; cursor: pointer; text-decoration: none; color: inherit; }
.kpi-tile:last-child { border-right: none; }
.kpi-tile:hover { background: var(--kb); }
.kpi-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--kb); color: var(--kc); display: grid; place-items: center; margin-bottom: 10px; border: 1px solid var(--kbd); }
.kpi-val { font-size: 28px; font-weight: 800; color: var(--kc); line-height: 1.1; }
.kpi-label { font-size: 13px; font-weight: 600; color: var(--text-2); margin-top: 4px; }
.kpi-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.kpi-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.kpi-quick { padding: 20px 22px; border-right: 1px solid var(--border); }
.kpi-quick h3, .kpi-activity h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); margin-bottom: 12px; }
.qf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qf { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 8px; font-size: 13px; color: var(--text-2); background: var(--lav); border: 1px solid var(--border); cursor: pointer; transition: all .15s; }
.qf:hover { background: var(--lav-2); border-color: var(--purple-l); }
.qf b { color: var(--purple-d); font-size: 15px; }
.kpi-activity { padding: 20px 22px; }
.act-stream { display: flex; flex-direction: column; gap: 0; }
.act-item { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f3f0fa; font-size: 13px; }
.act-item:last-child { border-bottom: none; }
.act-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--purple-l); margin-top: 5px; flex-shrink: 0; }
.act-item small { display: block; font-size: 11px; color: var(--text-3); margin-top: 2px; }
@media (max-width: 900px) { .kpi-tiles { grid-template-columns: repeat(2, 1fr); } .kpi-bottom { grid-template-columns: 1fr; } .kpi-quick { border-right: none; border-bottom: 1px solid var(--border); } }

/* Crelate-style "This Contact" dropdown */
.crelate-this-btn { display:flex !important;align-items:center;gap:5px;padding:6px 12px !important;border-radius:8px !important;background:#f0f7ff !important;border:1px solid #dbeafe !important;color:#1e40af !important;font-weight:600;font-size:13px;width:auto !important;height:auto !important;min-width:0 !important;white-space:nowrap;transition:all .15s }
.crelate-this-btn:hover { background:#eff6ff !important;border-color:#93c5fd !important }
.this-label { font-size:13px }
.crelate-this-menu { min-width:220px }
.crelate-this-menu .dd-title { font-size:11px;font-weight:700;color:#6b7280;text-transform:uppercase;letter-spacing:.06em;padding:10px 16px 4px }
.dd-hr { border:none;border-top:1px solid #e5e7eb;margin:4px 12px }

/* Crelate-style Contact Summary Tab */
.crelate-summary { display:grid;grid-template-columns:1fr 340px;gap:20px }
.crel-summary-left, .crel-summary-right { display:flex;flex-direction:column;gap:16px }
.crel-stats-mini { display:grid;grid-template-columns:1fr 1fr;gap:0 }
.csm { padding:14px 16px;border-bottom:1px solid #f1f0f9;text-align:center }
.csm:nth-child(odd) { border-right:1px solid #f1f0f9 }
.csm span { display:block;font-size:11px;color:#6b7280;text-transform:uppercase;letter-spacing:.04em;font-weight:600 }
.csm b { display:block;font-size:22px;font-weight:800;color:#1e40af;margin-top:2px }
@media (max-width:900px) { .crelate-summary { grid-template-columns:1fr } }

/* Crelate-style Activity Tab */
.crel-activity-tab .hist-add { display:flex;gap:8px;flex-wrap:wrap }

/* Crelate-style Company Related panels */
.crel-co-layout { display:grid;grid-template-columns:1fr 320px;gap:20px }
.crel-co-main, .crel-co-side { display:flex;flex-direction:column;gap:16px }
@media (max-width:900px) { .crel-co-layout { grid-template-columns:1fr } }
.crel-opp-card { display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid #f3f0fa;cursor:pointer;transition:background .12s }
.crel-opp-card:hover { background:#f0f7ff }
.crel-opp-card:last-child { border-bottom:none }
.crel-opp-card .opp-info { flex:1 }
.crel-opp-card .opp-info b { font-size:14px;display:block }
.crel-opp-card .opp-info small { color:#6b7280 }

/* BD Pipeline */
.bd-pipeline-strip { display:flex;gap:0;overflow-x:auto;border:1px solid #e5e7eb;border-radius:10px;margin:0 22px 16px }
.bd-stage { flex:1;min-width:100px;padding:14px 12px;text-align:center;border-right:1px solid #e5e7eb;cursor:pointer;transition:background .12s }
.bd-stage:last-child { border-right:none }
.bd-stage:hover { background:#f0f7ff }
.bd-stage b { font-size:18px;font-weight:800;color:#1e40af;display:block }
.bd-stage span { font-size:11px;color:#6b7280;text-transform:uppercase;letter-spacing:.04em;font-weight:600 }

/* Record Status "Do Not Use" badge */
.record-status-dnu { display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:6px;font-size:11px;font-weight:700;background:#fef2f2;color:#dc2626;border:1px solid #fca5a5 }

/* Crelate modernized typography */
.cv-name h1 { font-size:24px;font-weight:700;letter-spacing:-.01em }
.cv-meta { gap:16px }
.cv-contact { gap:20px }

/* Dashboard enhancements */
.kpi-head { display:flex;align-items:center;gap:12px;padding:16px 20px 0;flex-wrap:wrap }
.kpi-head h2 { font-size:20px;font-weight:700;margin:0 }
.kpi-range { display:flex;gap:0;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden }
.qf-range { padding:5px 14px;font-size:12px;font-weight:500;border:none;background:#fff;cursor:pointer;transition:all .15s }
.qf-range:hover { background:#eff6ff }
.qf-range.on { background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff }
.kpi-body { display:flex;gap:20px;padding:0 20px 20px }
.kpi-body.with-panel .kpi-main { flex:1;min-width:0 }
.kpi-body .kpi-main { flex:1 }
.kpi-side { width:320px;flex-shrink:0;display:flex;flex-direction:column;gap:12px }
@media(max-width:900px){ .kpi-body { flex-direction:column } .kpi-side { width:100% } }

/* ---- bulk resume upload ---- */
.bulk-up { min-height: 200px; }
.drop-zone { border: 2px dashed #c4b5fd; border-radius: 16px; padding: 44px 24px 36px; text-align: center; transition: all .2s; cursor: pointer; background: #faf8ff; }
.drop-zone:hover { border-color: #7c3aed; background: #f5f0ff; }
.drop-zone.drag-over { border-color: #7c3aed; background: #ede9fe; }
.bulk-upload-icon { display: inline-flex; margin-bottom: 4px; }
.drop-inner h3 { margin: 4px 0 2px; font-size: 16px; }
.bulk-list { max-height: 240px; overflow-y: auto; }
.bulk-file { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid #f1f1f1; }
.bulk-fname { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 13px; }
.bulk-rm { width: 24px; height: 24px; }
.bulk-status { margin-top: 12px; }
.parse-progress { display: flex; flex-direction: column; gap: 6px; }
.prog-bar { height: 6px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.prog-fill { height: 100%; background: linear-gradient(90deg, #2563eb, #60a5fa); border-radius: 4px; transition: width .3s; }
/* Bulk resume preview table */
.bulk-preview-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bulk-preview-table th { background: #f8faff; border-bottom: 2px solid #e5e7eb; padding: 8px 10px; text-align: left; font-weight: 600; color: #374151; white-space: nowrap; }
.bulk-preview-table td { padding: 7px 10px; border-bottom: 1px solid #f1f1f1; vertical-align: middle; }
.bulk-preview-table tbody tr:hover { background: #f8faff; }
.bulk-row-skip td { opacity: .5; }
.bulk-row-err td { color: #9ca3af; font-style: italic; }
.pill-green { background: #dcfce7; color: #166534; }
.pill-orange { background: #fff7ed; color: #9a3412; }

/* ================= Premium blue & white theme ================= */
:root {
  --grad: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e3a8a 100%);
  --grad-hover: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
  --grad-dark: linear-gradient(180deg, #0f1d3d 0%, #0c1a36 55%, #091224 100%);
  --grad-soft: linear-gradient(135deg, #f8faff 0%, #eff6ff 100%);
  --glow: 0 6px 18px rgba(37, 99, 235, .30);
  --glow-sm: 0 3px 10px rgba(37, 99, 235, .22);
  --purple: #2563eb;
  --purple-d: #1d4ed8;
  --purple-l: #60a5fa;
  --lav: #eff6ff;
  --lav-2: #dbeafe;
  --bg: #f8faff;
  --border: #dce6f5;
  --border-strong: #b8cde8;
}
body { background: var(--bg); }

/* buttons */
.btn { border-radius: 10px; transition: background .2s, box-shadow .2s, transform .12s, border-color .2s, color .2s; }
.btn-primary, .btn-blue, .btn-green, .icon-btn-solid, .split-caret, .rte-ai, .chat-fab {
  background: var(--grad) !important; color: #fff !important; border: 0 !important; box-shadow: var(--glow-sm);
}
.btn-primary:hover, .btn-blue:hover, .btn-green:hover, .icon-btn-solid:hover, .split-caret:hover, .rte-ai:hover, .chat-fab:hover {
  background: var(--grad-hover) !important; box-shadow: var(--glow); transform: translateY(-1px);
}
.btn-primary:active, .btn-blue:active, .btn-green:active { transform: translateY(0); box-shadow: var(--glow-sm); }
.btn:disabled, .btn[disabled] { opacity: .45; transform: none !important; box-shadow: none !important; }
.split-caret { border-left: 1px solid rgba(255,255,255,.28) !important; }
.btn-outline { background: #fff; border: 1px solid var(--border-strong); color: #2a1a4a; }
.btn-outline:hover { border-color: var(--purple-l); color: var(--purple-d); background: var(--lav); box-shadow: 0 2px 8px rgba(37,99,235,.1); }
.btn-outline.danger:hover { border-color: #fca5a5; color: #dc2626; background: #fff5f5; }
.btn[style*="ef4444"] { background: linear-gradient(135deg, #f87171, #dc2626) !important; box-shadow: 0 3px 10px rgba(220,38,38,.3); }
.sq-btn, .round-btn, .sel-btn, .cv-coll { border-color: var(--border-strong); transition: all .15s; }
.sq-btn:hover, .sq-btn.on, .round-btn:hover, .sel-btn:hover, .cv-coll:hover { border-color: var(--purple-l); color: var(--purple); background: var(--lav); }
.round-btn.del:hover { background: #fff5f5; }
.link, .lnk { color: var(--purple) !important; }
.green-txt { color: var(--purple) !important; border-color: #bfdbfe !important; background: var(--grad-soft) !important; font-weight: 700; }
.icon-btn:hover { background: var(--lav); color: var(--purple); }
.chat-fab { box-shadow: var(--glow); }
.icon-btn-solid { box-shadow: var(--glow); }

/* sidebar */
.sidebar { background: var(--grad-dark); box-shadow: 4px 0 24px rgba(12, 26, 54, .18); }
.brand-mark { background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 45%, #1d4ed8 100%); box-shadow: 0 6px 18px rgba(37, 99, 235, .45); }
.nav-item { color: #93b4d4; }
.nav-item:hover { background: rgba(96, 165, 250, .14); color: #fff; }
.nav-item.is-active { background: linear-gradient(135deg, rgba(167,139,250,.32), rgba(37,99,235,.22)); color: #fff; box-shadow: inset 0 0 0 1px rgba(196,181,253,.25); }
.nav-item.is-active::before { background: #93c5fd; }
.sidebar-toggle { background: rgba(167,139,250,.2); }
.sidebar-toggle:hover { background: var(--purple); }

/* top bar */
.topbar { border-bottom-color: var(--border); box-shadow: 0 1px 0 rgba(37,99,235,.04); }
.search { background: #f6f3fd; }
.search:focus-within, .search-sm:focus-within, .chips:focus-within { border-color: var(--purple-l); box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.avatar { background: linear-gradient(135deg, #dbeafe, #60a5fa); color: #3b0f8a; }
.user-chip:hover { background: var(--lav); border-color: var(--border); }
.qa-ico { box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.qa-item:hover { background: var(--lav); }
.dropdown:has(#quickAdd.is-open) .qa-toggle { background: linear-gradient(135deg, #1e3a8a, #2e1065) !important; }

/* cards & sections */
.card, .cl, .cv-card { border-color: var(--border); box-shadow: 0 1px 2px rgba(42, 18, 98, .04), 0 8px 24px rgba(42, 18, 98, .04); }
.sec-head h2, .cl-head h2, .cv-card-head h3 { color: #1e0b4a; }
.stats-head, .tiles, .deal-cols, .stage { border-color: var(--border); }
.stage:hover, .tile:hover, button.sum:hover, .deal-col:hover { background: var(--lav); }
.stage.has-val b { color: var(--purple); }
.progress { background: #efe9fb; }
.progress span { background: var(--grad); }
.tgt-prog .progress span.done { background: linear-gradient(135deg, #60a5fa, #1d4ed8); }
.pl-table thead th, .act-table th, .cl-table thead th, thead .namecol, .cl-table thead th.ck, .mini-table th { background: #f6f2ff !important; color: #2a1a4a; }
.th-btn:hover { background: #dbeafe; }
.cl-table tbody tr:hover td, .cl-table tbody tr:hover td.namecol, .cl-table tbody tr:hover td.ck { background: #fbf9ff; }
.cl-table tr.sel td { background: #f4efff !important; }
.pl-name, .act-title a, .strong-link:hover, .nm-link:hover { color: #1e3a8a; }
.tab.is-on, .cv-tabs button.on, .side-tabs button.on, .np-tabs button.is-on { color: var(--purple); border-bottom-color: var(--purple); }
.seg button.is-on { color: var(--purple); }
.cl-view.on { background: var(--lav-2); color: var(--purple-d); }
.fchip { background: var(--lav-2); color: var(--purple-d); }
.bulk { background: linear-gradient(90deg, #f6f1ff, #fff); border-bottom-color: #e4dafb; }
.tag.t2 { background: #dbeafe; color: #1d4ed8; }
.tag.t3 { background: #f3e8ff; color: #1d4ed8; }
.chip { background: #efe8ff; color: #1e40af; }
.id-chip { background: #f1ebff; color: #1e40af; }
.dd-item:hover { background: var(--lav); color: var(--purple-d); }
.ms-search { border-color: var(--purple-l); }
.ms-opt input, .ck input, .check input, .checks input, .cust-list input, .task input, .tchk input { accent-color: var(--purple); }
.np-list .notif.unread { background: var(--lav); }
.np-list .notif.unread::before { background: var(--purple); }
.cnt { background: var(--lav-2) !important; color: var(--purple-d) !important; }
.res-btn { color: var(--purple); }
.toast { background: linear-gradient(135deg, #0f1d3d, #1e3a8a); box-shadow: var(--glow); }
.chart-tip { background: #0f1d3d; }
.inp:focus, textarea.inp:focus, .select select:focus { border-color: var(--purple-l); box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.task-ico, .hist-ico, .file-ico { background: var(--lav); color: var(--purple); }
.activity .dot { background: var(--purple); box-shadow: 0 0 0 3px var(--lav-2); }
.greet-row h1 { color: #1e0b4a; }
#greetLine { background: linear-gradient(90deg, #1e0b4a 0%, #1e40af 70%, #3b82f6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.help-panel h3 { color: var(--purple); }
.switch input:checked + .slider { background: var(--grad); }

/* parsed (from resume) highlight in purple */
.parsed, .inp.parsed, select.parsed { background: #f7f2ff !important; border-color: #93c5fd !important; }
.parsed-box .rte { border-color: #93c5fd; }
.parsed-row .inp, .parsed-row select { background: #f7f2ff; }
.parse-banner { background: var(--grad-soft); color: #1e3a8a; border-color: #ddd0fb; }
.cf-foot-note { color: var(--purple-d); }
.dropzone:hover, .dropzone.drag { border-color: var(--purple-l); background: #f8faff; }
.dropzone.has-file { border-color: #bfdbfe; background: #fbf9ff; }
.spinner { border-color: #ece4fd; border-top-color: var(--purple); }
.cf-head { background: linear-gradient(90deg, #f6f1ff 0%, #fbf9ff 100%); color: #1e0b4a; }
.cf-head .ico { color: var(--purple); }
.add-row:hover { border-color: var(--purple-l); color: var(--purple); background: var(--lav); }
.cf-type.on::after, .fb-type.on span::after { background: var(--purple); }
.fb-type.on { border-color: var(--purple); background: var(--lav); }
.fb-type.on span { border-color: var(--purple); color: var(--purple); }
.chip.ghost:hover { border-color: var(--purple-l); color: var(--purple); }
.rte-b.on { background: var(--lav-2); color: var(--purple); }
.rte-grid span.hl { background: var(--lav-2); border-color: var(--purple-l); }

/* candidate profile */
.cv-banner { background: linear-gradient(105deg, #efe6ff 0%, #f7f2ff 50%, #ffffff 100%); }
.cv-meta .org .ico { color: var(--purple); }
.cv-main { background: #f7f4fd; }
.cv-side { background: #f7f4fd; }
.ov-cell:hover { background: #f8f5ff; }
.ov-cell.editing { background: var(--lav); }
.feed-item { border-color: var(--border); }
.feed-item:hover { box-shadow: 0 4px 14px rgba(42,18,98,.06); }

/* auth */
.auth { background: radial-gradient(1100px 600px at 0% 0%, #0f1d3d 0%, transparent 60%), radial-gradient(900px 600px at 100% 100%, #1e3a8a 0%, transparent 55%), #12082c; }
.auth-card { border: 0; box-shadow: 0 30px 80px rgba(10, 4, 30, .45); border-radius: 18px; }
.auth-card h1 { color: #1e0b4a; }

/* drawers (side panels) */
.overlay.drawer { justify-content: flex-end; align-items: stretch; padding: 0; background: rgba(12, 26, 54, .38); backdrop-filter: blur(2px); }
.modal.drawer-panel { max-width: 560px; width: 100%; height: 100vh; border-radius: 18px 0 0 18px; animation: slideIn .22s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } }
.drawer-panel .modal-head { background: var(--grad-dark); color: #fff; border-radius: 18px 0 0 0; padding: 20px 24px; border-bottom: 0; }
.drawer-panel .modal-head h3 { color: #fff; font-size: 19px; }
.drawer-panel .modal-head .icon-btn { color: #e9e1ff; }
.drawer-panel .modal-head .icon-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.modal-sub { display: block; color: #93b4d4; font-size: 13px; margin-top: 3px; }
.drawer-panel .modal-body { flex: 1; overflow-y: auto; }
.drawer-panel .modal-foot { background: #fff; flex-wrap: wrap; }
.notif-drawer .np-head { padding: 0 0 8px; }
.notif-drawer .np-tabs { padding: 0; margin: 0 -24px; padding: 0 18px; }
.notif-drawer .np-list { max-height: none; padding: 10px 0; margin: 0 -10px; }
.notif-drawer .np-list .notif { padding: 12px 14px; margin-bottom: 4px; border: 1px solid transparent; }
.notif-drawer .np-list .notif:hover { border-color: var(--border); background: #fbf9ff; }
.modal { border-radius: 16px; }
.modal-head h3 { color: #1e0b4a; }

/* customize table */
.ct-panel { max-width: 460px !important; }
.ct-panel .modal-body { padding: 0; }
.ct-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 18px 22px 0; border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; background: #f6f3fd; }
.ct-tabs button { height: 46px; font-weight: 600; font-size: 15px; color: #2a1a4a; }
.ct-tabs button.on { background: #fff; color: var(--purple); box-shadow: inset 0 0 0 1.5px var(--purple); border-radius: 10px; }
.ct-note { color: var(--text-3); font-size: 12px; margin: 10px 22px 0; }
.ct-search { display: flex; align-items: center; gap: 10px; margin: 12px 22px 8px; height: 46px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 10px; color: var(--text-3); }
.ct-search:focus-within { border-color: var(--purple-l); box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.ct-search input { border: 0; outline: 0; flex: 1; font: 15px var(--font); }
.ct-sec { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff; z-index: 1; }
.ct-sec b { font-size: 16px; color: #1e0b4a; }
.ct-sec .cnt { border-radius: 6px; padding: 2px 9px; font-size: 13px; }
.ct-list { padding: 4px 0 8px; }
.ct-item { display: flex; align-items: center; gap: 14px; padding: 9px 22px; cursor: pointer; font-size: 15px; position: relative; }
.ct-item:hover { background: #f8faff; }
.ct-item input { width: 20px; height: 20px; accent-color: var(--purple); cursor: pointer; }
.ct-item.hid { padding-left: 22px; }
.ct-grip { color: #9a8fb5; cursor: grab; letter-spacing: -2px; font-weight: 700; width: 14px; }
.ct-item[draggable="true"]:active .ct-grip { cursor: grabbing; }
.ct-item.dragging { opacity: .4; }
.ct-item.drop-above { box-shadow: inset 0 2px 0 var(--purple); }
.ct-item.drop-below { box-shadow: inset 0 -2px 0 var(--purple); }
.ct-move { margin-left: auto; display: none; gap: 2px; }
.ct-item:hover .ct-move { display: inline-flex; }
.ct-move button { width: 24px; height: 24px; border-radius: 5px; font-size: 10px; color: var(--text-3); }
.ct-move button:hover { background: var(--lav-2); color: var(--purple); }
.ct-empty { padding: 8px 22px; }
.ct-reset { font-weight: 600; margin-right: 8px; font-size: 15px; }

/* ===== Brand: SK badge + SEARCHKRAFT / ATS ===== */
.sidebar { padding: 18px 12px 14px; }
.brand { height: auto; min-height: 36px; margin-bottom: 20px; gap: 11px; overflow: visible; text-decoration: none; outline: none; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 14px; font-size: 18px; font-weight: 800; letter-spacing: .02em; color: #fff;
  background: linear-gradient(140deg, #3b82f6 0%, #2563eb 45%, #1d4ed8 100%);
  box-shadow: 0 8px 22px rgba(37, 99, 235, .50), inset 0 1px 0 rgba(255,255,255,.35);
}
.brand-name, .brand-bar, .brand-text { display: flex; flex-direction: column; justify-content: center; line-height: 1; white-space: nowrap; }
.brand-name small, .brand-bar small, .brand-text small { font-size: 11px; font-weight: 700; letter-spacing: .16em; color: rgba(255,255,255,.8); margin-bottom: 5px; }
.brand-name b, .brand-bar b { font-size: 24px; font-weight: 800; color: #fff; letter-spacing: .01em; }
/* top-left brand block continues the sidebar when it is collapsed */
.brand-bar {
  align-self: stretch; margin-left: -24px; padding: 0 26px 0 6px; min-width: 170px;
  background: linear-gradient(180deg, #0f1d3d 0%, #0c1a36 100%);
  border-bottom-right-radius: 18px; box-shadow: 8px 0 24px rgba(12, 26, 54, .12);
}
.brand-bar:hover b { color: #bfdbfe; }
.topbar { padding-left: 24px; }
.sidebar.is-expanded ~ .main .brand-bar { display: none; }
/* auth card brand */
.auth-brand { gap: 14px; }
.auth-brand .brand-mark { width: 50px; height: 50px; font-size: 18px; }
.brand-text b { font-size: 24px; font-weight: 800; color: #1e0b4a; }
.brand-text small { color: #2563eb; }
.auth-ws { margin-left: auto; font-size: 12px; color: #6b5a92; background: #f3edff; border-radius: 999px; padding: 4px 10px; }
@media (max-width: 760px) {
  .brand-mark { width: 44px; height: 44px; font-size: 16px; }
  .brand-bar { display: none; }
}

/* checklist header: progress + hide link side by side, never overlapping */
.checklist .card-head { align-items: center; flex-wrap: wrap; }
.ck-right { display: flex; align-items: center; gap: 20px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.ck-right .progress-wrap { min-width: 200px; }
.ck-hide { white-space: nowrap; font-size: 14px; position: static !important; margin: 0 !important; }
.ck-hide:hover { color: var(--purple); }
.help-panel { padding-top: 4px; }
@media (max-width: 760px) { .ck-right { width: 100%; justify-content: space-between; } .card-head .ck-right .progress-wrap { display: flex; } }

/* ===== Companies ===== */
.coav { border-radius: 50%; background: linear-gradient(135deg, #3b82f6, #1e40af); color: #fff; display: inline-grid; place-items: center; flex-shrink: 0; box-shadow: 0 4px 12px rgba(37,99,235,.3); }
.coav.big { width: 104px; height: 104px; }
.co-banner { background: linear-gradient(105deg, #dbeafe 0%, #f6f1ff 55%, #fff 100%); }
.btn-outline.on { border-color: var(--purple-l); color: var(--purple); background: var(--lav); }
.field-pop { width: 340px; max-height: 520px; overflow-y: auto; padding-bottom: 6px; }
.fp-group { border-top: 1px solid var(--border); }
.fp-head { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: #f6f3fd; font-weight: 700; color: #1e0b4a; position: sticky; top: 0; }
.fp-head.closed .ico { transform: rotate(-90deg); }
.fp-list { max-height: 260px; overflow-y: auto; padding: 4px 6px; }
.fp-item { display: block; width: 100%; text-align: left; padding: 11px 14px; border-radius: 8px; font-size: 15px; color: #2a1a4a; }
.fp-item:hover { background: var(--lav); color: var(--purple-d); }
.fchip button + button { margin-left: -2px; }
.ct-strip { display: inline-flex; align-items: center; gap: 8px; }
.ct-strip b { font-weight: 600; margin-right: 4px; }
.ct-bubble { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #f0abfc, #c026d3); color: #fff; font-weight: 700; font-size: 13px; display: inline-grid; place-items: center; border: 2px solid #fff; margin-left: -10px; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.ct-bubble:first-of-type { margin-left: 0; }
.ct-bubble.empty { background: #f3e8ff; color: #60a5fa; }
.ov-cell.span3 { grid-column: 1 / -1; }
.dd-sep { height: 1px; background: var(--border); margin: 6px 0; }
.dd-item.link { color: var(--purple) !important; }
.form-sec { grid-column: 1 / -1 !important; margin-top: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.form-sec span { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--purple); }
.inv-row { display: grid; grid-template-columns: 1fr 70px 120px 36px; gap: 8px; margin-bottom: 8px; align-items: center; }
.inv-total { font-size: 22px; font-weight: 800; color: var(--purple-d); padding-top: 6px; }
.inv-doc { line-height: 1.5; }
.inv-top { display: flex; justify-content: space-between; margin-bottom: 18px; }
.inv-top h2 { color: #1e0b4a; }
.tree-row { padding: 10px 0; border-bottom: 1px solid var(--border); }
.tree-row .strong { font-weight: 800; }
@media print { .sidebar, .topbar, .modal-head, .modal-foot, #view { display: none !important; } .overlay { position: static; background: none; padding: 0; } .modal { box-shadow: none; } }
/* ---------- jobs / contacts / list kit ---------- */
.with-add { display: flex; gap: 8px; align-items: center; }
.with-add > :first-child { flex: 1; min-width: 0; }
.add-btn { flex-shrink: 0; background: var(--grad) !important; color: #fff !important; border: 0 !important; }
.radios { display: flex; gap: 18px; flex-wrap: wrap; padding: 6px 0; }
.check.big { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; cursor: pointer; }
.check.big input { width: 18px; height: 18px; accent-color: var(--purple); }
.radios input { accent-color: var(--purple); }
.file-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1.5px dashed #93c5fd; border-radius: 10px; color: var(--purple); font-weight: 600; cursor: pointer; background: #f8faff; }
.file-btn:hover { background: #f1ebff; }
.tab-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 20px; }
.end-list { text-align: center; color: var(--muted); padding: 18px; font-size: 13px; }
.seg-ic { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.seg-ic button { border: 0; background: #fff; padding: 8px 10px; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.seg-ic button.on { background: #f1ebff; color: var(--purple); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; padding: 18px; }
.pcard { border: 1px solid var(--border); border-radius: 14px; padding: 16px; background: #fff; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .15s, transform .15s; }
.pcard:hover { box-shadow: 0 10px 28px rgba(37,99,235,.12); transform: translateY(-1px); }
.pcard-top { display: flex; gap: 12px; align-items: center; }
.pcard-top small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.pcard-row { display: flex; gap: 8px; align-items: center; color: #374151; font-size: 13px; word-break: break-all; }
.pcard-acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: auto; }
.ctav { border-radius: 50%; background: linear-gradient(135deg, #f472b6, #db2777); color: #fff; display: inline-grid; place-items: center; flex-shrink: 0; box-shadow: 0 4px 12px rgba(219,39,119,.28); }
.jobav { border-radius: 12px; background: linear-gradient(135deg, #fb923c, #ea580c); color: #fff; display: inline-grid; place-items: center; flex-shrink: 0; box-shadow: 0 4px 12px rgba(234,88,12,.25); }
.pill-red { background: #fee2e2; color: #b91c1c; }
.pill-slate { background: #f1f5f9; color: #475569; }
.star { color: #d1d5db; font-size: 15px; }
.star.on { color: #f59e0b; }
.stage-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #f9a8d4; background: #fff; color: #be185d; border-radius: 999px; padding: 4px 12px; font-weight: 600; font-size: 12.5px; cursor: pointer; }
.stage-chip:hover { background: #fdf2f8; }
.stage-chip .sc-ico { display: inline-grid; place-items: center; }
.cv-banner.ct-banner { background: linear-gradient(105deg, #fde7f3 0%, #fdf2f8 50%, #ffffff 100%); }
.cv-banner.job-banner { background: linear-gradient(105deg, #ffedd5 0%, #fff7ed 50%, #ffffff 100%); }
.cv-banner .linked { font-size: 13px; color: #374151; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.upd-tip { cursor: default; display: inline-flex; align-items: center; gap: 6px; color: #4b5563; }
.sq-btn.on { color: var(--purple); background: #f1ebff; border-color: #93c5fd; }
.lnk.person { display: inline-flex; align-items: center; gap: 8px; }
.cl-table .namecol.nosel { left: 0; }
.np-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 30px 20px; color: var(--muted); }
.np-empty b { color: #111827; font-size: 15px; }
.np-empty p { margin: 0; font-size: 13px; max-width: 280px; }
.notif .at { color: var(--purple); }
/* kanban */
.kanban { display: flex; gap: 14px; overflow-x: auto; padding: 16px 20px 24px; align-items: flex-start; }
.kb-col { flex: 0 0 250px; background: #f8f6fd; border: 1px solid #ece6fb; border-radius: 14px; display: flex; flex-direction: column; max-height: 70vh; transition: background .15s, border-color .15s; }
.kb-col.over, .kb-col.drag-over { background: #efe7ff; border-color: var(--purple); }
.chev.drag-over { background: #2563eb !important; color: #fff !important; }
.kb-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; font-weight: 700; font-size: 13px; border-bottom: 1px solid #ece6fb; }
.kb-head .cnt { background: #fff; border-radius: 999px; padding: 1px 9px; font-size: 12px; color: var(--purple); }
.kb-list { padding: 10px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; min-height: 70px; }
.kb-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px; cursor: grab; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.kb-card:hover { box-shadow: 0 6px 18px rgba(37,99,235,.14); }
.kb-card.dragging, .kb-card.kb-dragging { opacity: .4; transform: rotate(2deg); }
.kb-top { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 13.5px; }
.kb-meta { color: var(--muted); font-size: 12px; margin-top: 6px; }
.kb-move { margin-top: 8px; }
.kb-move select { width: 100%; font-size: 12px; }
.kb-empty { color: var(--muted); font-size: 12px; text-align: center; padding: 16px 6px; border: 1.5px dashed #dbeafe; border-radius: 10px; }
/* files / folders / messaging */
.files-drop { margin: 16px 20px; }
.files-drop.drag, .dropzone.drag { border-color: var(--purple); background: #f1ebff; }
.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; padding: 0 20px 14px; }
.folder { position: relative; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.folder > button:first-child { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; padding: 14px; display: flex; flex-direction: column; gap: 3px; }
.folder > button:first-child small { color: var(--muted); }
.folder:hover { border-color: #93c5fd; }
.folder .round-btn { position: absolute; top: 8px; right: 8px; }
.msg-compose { display: flex; gap: 10px; align-items: flex-start; padding: 14px 20px; }
.msg-compose textarea { flex: 1; }
.msg-list { display: flex; flex-direction: column; gap: 10px; padding: 0 20px 18px; }
.msg { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; background: #f8faff; }
.msg-top { display: flex; justify-content: space-between; gap: 10px; }
.msg-top small { color: var(--muted); }
.msg p { margin: 6px 0 0; font-size: 13.5px; }
.modal.wide.modal-panel { max-width: 980px; }
/* ---------- login (Manatal-style layout, Searchkraft purple) ---------- */
.auth.mn { background: #fff; display: block; padding: 0; min-height: 100vh; }
.mn-wrap { width: 100%; max-width: 440px; margin: 0 auto; padding: 56px 24px 32px; display: flex; flex-direction: column; align-items: stretch; }
.mn-logo { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 34px; }
.mn-logo .brand-mark { width: 52px; height: 52px; font-size: 19px; border-radius: 14px; }
.mn-logo .brand-text small { display: block; font-size: 11px; letter-spacing: .22em; font-weight: 700; color: #1d4ed8; }
.mn-logo .brand-text b { display: block; font-size: 24px; line-height: 1.05; color: #1e0b4a; letter-spacing: .02em; }
.mn-title { text-align: center; font-size: 30px; font-weight: 700; color: #1e0b4a; margin: 0 0 8px; letter-spacing: -.01em; }
.mn-sub { text-align: center; color: #6b5a92; margin: 0 0 6px; font-size: 14px; line-height: 1.5; }
.mn-form { margin-top: 22px; gap: 16px; }
.mn-fld > span:first-child { font-size: 14px; font-weight: 600; color: #2e1a5c; }
.mn-inp { width: 100%; height: 50px; border: 1.5px solid #dbeafe; border-radius: 12px; padding: 0 16px; font: inherit; font-size: 15px; color: #1e0b4a; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.mn-inp:focus { border-color: #2563eb; box-shadow: 0 0 0 4px rgba(37,99,235,.14); }
.mn-pw { position: relative; display: block; }
.mn-pw .mn-inp { padding-right: 48px; }
.mn-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: #a197c4; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.mn-eye:hover, .mn-eye.on { color: #2563eb; background: #f5f0ff; }
.mn-remember { font-size: 13px; color: #4b3d73; margin-top: -4px; }
.mn-remember input { accent-color: #2563eb; }
.mn-btn { height: 50px; width: 100%; border: 0; border-radius: 999px; background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 55%, #1e3a8a 100%); color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 24px rgba(109,40,217,.32); transition: transform .12s, box-shadow .12s, filter .12s; margin-top: 4px; }
.mn-btn:hover { filter: brightness(1.06); box-shadow: 0 14px 30px rgba(109,40,217,.4); }
.mn-btn:active { transform: translateY(1px); }
.mn-link { border: 0; background: none; color: #1d4ed8; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; align-self: center; padding: 2px 4px; }
.mn-link:hover { text-decoration: underline; }
.mn-link.b { padding: 0; }
.mn-reg { text-align: center; font-size: 14px; color: #4b3d73; margin: 2px 0 0; }
.mn-hint { margin: -6px 0 0; font-size: 12.5px; color: #8a7fb0; }
.mn-or { display: flex; align-items: center; gap: 14px; color: #a197c4; font-size: 13px; font-weight: 600; margin: 22px 0 18px; }
.mn-or::before, .mn-or::after { content: ''; flex: 1; height: 1px; background: #e9e3fb; }
.mn-alt { height: 50px; width: 100%; border: 1.5px solid #dbeafe; border-radius: 999px; background: #fff; color: #2e1a5c; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; transition: background .12s, border-color .12s; }
.mn-alt:hover { background: #f8f5ff; border-color: #60a5fa; }
.mn-alt svg { flex-shrink: 0; }
.mn-alt:last-of-type { color: #1d4ed8; }
.mn .auth-err { text-align: center; min-height: 0; }
.mn .auth-err:empty { display: none; }
.mn .auth-err.ok { color: #047857; }
.mn-foot { text-align: center; color: #b3aacd; font-size: 12px; margin-top: 30px; }
@media (max-width: 480px) { .mn-wrap { padding-top: 36px; } .mn-title { font-size: 25px; } }
/* ---------- Talvoro brand ---------- */
.brand-mark.tv { background: none !important; box-shadow: none !important; width: auto; height: auto; border-radius: 0; display: flex; align-items: center; justify-content: center; }
.brand-mark.tv svg, .tv-mark { display: block; filter: drop-shadow(0 4px 14px rgba(37, 99, 235, .5)); }
.brand { outline: none !important; }
.brand:focus, .brand:focus-visible { outline: none !important; box-shadow: none !important; }
.tv-words { display: flex; flex-direction: column; justify-content: center; line-height: 1.15; white-space: nowrap; }
.brand-name.tv-words b, .brand-bar.tv-words b { font-size: 21px; font-weight: 500; color: #fff; letter-spacing: .08em; margin: 0 0 5px; font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif; text-transform: lowercase; }
.brand-name.tv-words small, .brand-bar.tv-words small { font-size: 8px; font-weight: 600; letter-spacing: .18em; color: rgba(255,255,255,.45); margin: 0; text-transform: uppercase; }
.tv-brand { display: inline-flex; align-items: center; gap: 14px; }
.tv-brand .tv-words b { font-size: 28px; font-weight: 500; color: #0f172a; margin-bottom: 4px; letter-spacing: .07em; text-transform: lowercase; font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif; }
.tv-brand .tv-words small { font-size: 9px; font-weight: 700; color: #2563eb; letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.tv-brand.lg .tv-mark { width: 56px; height: 56px; }
.tv-brand.lg .tv-words b { font-size: 34px; }
.tv-brand.lg .tv-words small { font-size: 10px; letter-spacing: .22em; }
.mn-logo { margin-bottom: 30px; }
/* ---------- job page ---------- */
.btn-group { display: inline-flex; }
.btn-group > .btn { border-radius: 0; margin-left: -1px; }
.btn-group > .btn:first-child { border-radius: 10px 0 0 10px; margin-left: 0; }
.btn-group > .btn:last-child { border-radius: 0 10px 10px 0; }
.btn.ic { padding-left: 11px; padding-right: 11px; }
.status-chip { display: inline-flex; align-items: stretch; border-radius: 8px; overflow: hidden; }
.status-chip .pill { border-radius: 8px 0 0 8px; display: inline-flex; align-items: center; }
.status-chip .sc-btn { border: 0; background: #e9f9ef; color: #15803d; padding: 0 8px; cursor: pointer; border-left: 1px solid rgba(21,128,61,.25); display: grid; place-items: center; }
.status-chip .sc-btn:hover { background: #d4f4df; }
.cv-meta.two { display: grid; grid-template-columns: repeat(2, minmax(200px, 1fr)); gap: 12px 40px; }
.share-on { display: flex; align-items: center; gap: 8px; align-self: flex-start; }
.share-on > span { font-weight: 700; color: #1f1640; margin-right: 4px; }
.ct-row { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #1f1640; }
.ct-row .ctav { text-decoration: none; }
.ov-search { width: 230px; height: 38px; }
.cv-tabs { align-items: center; }
.pl-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 20px 12px; }
.pl-tools .btn .dot-green, .dot-green { width: 9px; height: 9px; border-radius: 50%; background: #16a34a; display: inline-block; }
.pl-box { margin: 0 20px 20px; background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.stage-nav { display: flex; align-items: stretch; border-bottom: 1px solid var(--border); background: #fbfaff; }
.sn-arrow { border: 0; background: #fff; width: 44px; display: grid; place-items: center; cursor: pointer; color: #4b3d73; flex-shrink: 0; }
.sn-arrow:hover { background: #f1ebff; color: var(--purple); }
.stage-track { display: flex; overflow-x: auto; scrollbar-width: none; flex: 1; }
.stage-track::-webkit-scrollbar { display: none; }
.chev { position: relative; border: 0; background: transparent; padding: 18px 30px 18px 34px; white-space: nowrap; font: inherit; font-size: 14.5px; font-weight: 500; color: #1f1640; cursor: pointer; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 16px 50%); margin-right: -10px; background: #fff; border-bottom: 3px solid transparent; }
.chev:first-child { clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%); padding-left: 24px; }
.chev:nth-child(odd) { background: #fdfcff; }
.chev b { margin-left: 6px; font-weight: 600; }
.chev:hover { background: #f5f0ff; }
.chev.on { background: #dbeafe; color: var(--purple); border-bottom-color: var(--purple); font-weight: 600; }
.chev.over { background: #ddd0ff; }
.pl-sub { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--border); background: #fbfaff; }
.pl-sub b { font-size: 15px; color: #1f1640; }
.pl-table .cl-table td { vertical-align: middle; }
.th-btn.static { cursor: default; }
.info-i { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #8b80a8; color: #fff; font-size: 10px; font-weight: 700; font-style: italic; margin-left: 4px; }
.stg-remark { display: inline-flex; align-items: stretch; border: 1px solid #e4dcf7; border-radius: 8px; overflow: hidden; }
.stg-pill { border: 0; background: #f4f1fb; padding: 6px 12px; font: inherit; font-weight: 600; font-size: 13px; color: #2e1a5c; cursor: pointer; white-space: nowrap; border-radius: 8px; }
.stg-remark .stg-pill { border-radius: 0; }
.stg-pill:hover { background: #ebe3ff; color: var(--purple); }
.sq-btn-xs { border:0;background:transparent;padding:4px;cursor:pointer;color:#2563eb;display:inline-flex;align-items:center;border-radius:4px;transition:background .15s; }
.sq-btn-xs:hover { background:#eff6ff; }
.sq-btn-xs.disabled { opacity:.25;pointer-events:none; }
.stg-back { border-right:1px solid #e4dcf7; }
.stg-fwd { border-left:1px solid #e4dcf7; }
.stg-rm { border: 0; border-left: 1px solid #e4dcf7; background: #fff; color: #6b5a92; padding: 0 8px; cursor: pointer; display: grid; place-items: center; }
.stg-rm.round { border: 1px solid #e4dcf7; border-radius: 50%; width: 34px; height: 34px; padding: 0; background: #f6f3fd; }
.stg-rm.has { color: var(--purple); background: #f1ebff; }
.cell-btn { width: 36px; height: 36px; border: 1px solid #dbeafe; border-radius: 9px; background: #fff; color: #4b3d73; display: inline-grid; place-items: center; cursor: pointer; }
.cell-btn:hover { border-color: var(--purple); color: var(--purple); }
.cell-btn.filled { background: #f1ebff; color: var(--purple); border-color: #93c5fd; }
.cell-sub { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.tgl { position: relative; display: inline-block; width: 46px; height: 26px; cursor: pointer; }
.tgl input { opacity: 0; width: 0; height: 0; position: absolute; }
.tgl span { position: absolute; inset: 0; border-radius: 999px; background: #e5e1ee; transition: background .15s; }
.tgl span::before { content: '×'; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 13px; color: #6b6480; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.tgl input:checked + span { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.tgl input:checked + span::before { content: '✓'; transform: translateX(20px); color: var(--purple); }
.tgl input:focus-visible + span { outline: 2px solid var(--purple); outline-offset: 2px; }
.sort-pop { right: 0; left: auto; width: 270px; padding: 6px 0 0; }
.sort-opt { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 11px 18px; font: inherit; font-size: 14.5px; color: #2e1a5c; cursor: pointer; }
.sort-opt:hover { background: #f8f5ff; }
.sort-opt.on { background: #f1ebff; color: var(--purple); font-weight: 600; }
.sort-dir { border-top: 1px solid var(--border); padding: 10px 18px; display: flex; flex-direction: column; gap: 10px; }
.sort-dir label { display: flex; gap: 10px; align-items: center; font-size: 14.5px; cursor: pointer; }
.sort-dir input { accent-color: var(--purple); width: 17px; height: 17px; }
.sort-foot { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--border); padding: 12px 14px; margin-top: 6px; }
.stage-hist { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 14px; }
.stage-hist h4 { margin: 0 0 10px; font-size: 14px; }
.sh-item { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px dashed #ece6fb; font-size: 13.5px; }
.sh-item small { color: var(--muted); }
.stars { display: inline-flex; }
.stars button { border: 0; background: none; color: #d6d0e6; font-size: 18px; cursor: pointer; padding: 0 1px; }
.stars button.on { color: #f59e0b; }
.ct-lock { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; margin: 10px 0 0; background: #f8f6fd; border-radius: 10px; font-size: 13px; line-height: 1.45; color: #2e1a5c; cursor: pointer; }
.ct-lock input { accent-color: var(--purple); width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0; }
.ct-note.warn { color: #b45309; background: #fff7ed; padding: 8px 12px; border-radius: 8px; }
/* assigned candidates page */
.jc-title { font-size: 17px; font-weight: 500; }
.jc-title b { font-weight: 700; }
.jc-table thead th { font-size: 12.5px; letter-spacing: .04em; color: #4b3d73; padding: 14px 16px; }
.jc-foot { gap: 12px; }
.pager { display: flex; gap: 6px; align-items: center; }
.pg { min-width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.pg.on { background: var(--grad); color: #fff; border: 0; }
.goto { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.goto .inp { width: 80px; height: 38px; }
/* jobs list split view */
.lk-split { display: grid; grid-template-columns: 320px 1fr; min-height: 520px; border-top: 1px solid var(--border); }
.lk-split-list { border-right: 1px solid var(--border); overflow-y: auto; max-height: 72vh; }
.lk-split-item { width: 100%; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 0; border-bottom: 1px solid #f1eef8; background: #fff; text-align: left; cursor: pointer; font: inherit; }
.lk-split-item b { display: block; font-size: 14.5px; color: #1f1640; }
.lk-split-item small { color: var(--muted); font-size: 12.5px; }
.lk-split-item:hover { background: #f8faff; }
.lk-split-item.on { background: #f1ebff; box-shadow: inset 3px 0 0 var(--purple); }
.lk-split-detail { overflow-y: auto; max-height: 72vh; }
.split-top { display: flex; gap: 14px; align-items: center; padding: 18px; border-bottom: 1px solid var(--border); }
.split-top h3 { margin: 0; font-size: 19px; display: flex; gap: 10px; align-items: center; }
.split-top p { margin: 4px 0 0; }
.split-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; padding: 16px 18px; }
.split-stats div { background: #f8f6fd; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 3px; }
.split-stats b { font-size: 22px; color: var(--purple); }
.split-stats span { font-size: 12px; color: var(--muted); }
.split-jd { padding: 4px 22px 22px; line-height: 1.6; color: #2e1a5c; }
/* public careers + apply */
.pub { min-height: 100vh; background: #f8faff; display: flex; flex-direction: column; }
.pub-head { display: flex; align-items: center; padding: 16px 32px; background: #fff; border-bottom: 1px solid #ece6fb; }
.pub-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.pub-brand b { display: block; font-size: 19px; color: #1e0b4a; }
.pub-brand small { color: #2563eb; font-weight: 600; }
.pub-main { width: 100%; max-width: 1080px; margin: 0 auto; padding: 32px 24px 40px; flex: 1; }
.pub-hero h1 { font-size: 34px; color: #1e0b4a; margin: 0 0 8px; }
.pub-hero p { color: #6b5a92; margin: 0 0 20px; }
.pub-filters { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 12px; margin-bottom: 26px; }
.pub-filters label { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid #dbeafe; border-radius: 12px; padding: 0 14px; color: #8a7fb0; }
.pub-filters input { border: 0; outline: 0; height: 48px; flex: 1; font: inherit; font-size: 15px; background: none; }
.pub-filters .select select { height: 52px; border-radius: 12px; border: 1.5px solid #dbeafe; }
.pub-list { display: flex; flex-direction: column; gap: 14px; }
.pub-job { display: flex; align-items: center; gap: 20px; background: #fff; border: 1px solid #ece6fb; border-radius: 16px; padding: 20px 24px; transition: box-shadow .15s, transform .15s; }
.pub-job:hover { box-shadow: 0 12px 30px rgba(109,40,217,.12); transform: translateY(-1px); }
.pub-job > div { flex: 1; }
.pub-job h2 { margin: 0 0 8px; font-size: 19px; }
.pub-job h2 a { color: #1e0b4a; text-decoration: none; }
.pub-job h2 a:hover { color: var(--purple); }
.pub-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: #6b5a92; font-size: 14px; }
.pub-meta span { display: inline-flex; align-items: center; gap: 4px; }
.pub-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mn-btn.pub-apply { width: auto; padding: 0 30px; display: inline-grid; place-items: center; text-decoration: none; height: 46px; margin: 0; }
.pub-empty { text-align: center; padding: 60px 20px; color: #6b5a92; background: #fff; border-radius: 16px; border: 1px dashed #dbeafe; }
.pub-apply-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; margin-top: 16px; align-items: start; }
.pub-jd, .pub-form-card { background: #fff; border: 1px solid #ece6fb; border-radius: 18px; padding: 26px 28px; }
.pub-form-card { position: sticky; top: 20px; }
.pub-jd-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.pub-jd-head h1 { margin: 0 0 6px; font-size: 26px; color: #1e0b4a; }
.pub-desc { line-height: 1.7; color: #2e1a5c; margin-top: 14px; }
.pub-form-card h2 { margin: 0 0 6px; color: #1e0b4a; }
.pub-note { background: #f5f0ff; border-radius: 10px; padding: 10px 14px; color: #4b3d73; font-size: 14px; }
.pub-form { margin-top: 12px; }
.mn-inp.file { padding: 12px; height: auto; }
.mn-inp.ta { height: auto; padding: 12px 16px; resize: vertical; }
.pub-thanks { text-align: center; padding: 30px 10px; color: #16a34a; }
.pub-thanks h2 { color: #1e0b4a; }
.pub-thanks p { color: #4b3d73; }
.pub-foot { display: flex; align-items: center; justify-content: center; gap: 8px; color: #8a7fb0; font-size: 13px; padding: 20px; }
@media (max-width: 860px) { .pub-apply-grid, .pub-filters { grid-template-columns: 1fr; } .pub-form-card { position: static; } .lk-split { grid-template-columns: 1fr; } .cv-meta.two { grid-template-columns: 1fr; } .pub-job { flex-direction: column; align-items: stretch; } }

/* Settings page */
.st-page { display: flex; flex-direction: column; gap: 0; }
.st-tabs-bar { display: flex; gap: 0; border-bottom: 2px solid #e9e5f5; overflow-x: auto; padding: 0 4px; background: #fff; position: sticky; top: 0; z-index: 5; }
.st-tab { padding: 12px 18px; font-size: 13.5px; font-weight: 500; color: #6b6190; border: none; background: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; transition: color .15s, border-color .15s; }
.st-tab:hover { color: #1e3a8a; }
.st-tab.active { color: #1d4ed8; border-bottom-color: #2563eb; font-weight: 600; }
.st-body { padding: 28px 32px; }
.st-body h2 { font-size: 20px; font-weight: 700; margin: 0 0 4px; color: #1e0b4a; }
.st-body h3 { font-size: 16px; font-weight: 600; margin: 0 0 10px; color: #1e0b4a; }
.st-body h4 { font-size: 13px; font-weight: 600; margin: 18px 0 6px; color: #4b3d73; text-transform: uppercase; letter-spacing: .04em; }
.st-split { display: grid; grid-template-columns: 1fr 380px; gap: 40px; }
.st-main { min-width: 0; }
.st-side { border-left: 1px solid #e9e5f5; padding-left: 32px; }
.st-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.st-row:has(.st-fld:nth-child(3)) { grid-template-columns: 1fr 1fr 1fr; }
.st-fld { display: flex; flex-direction: column; gap: 6px; }
.st-fld > span { font-size: 13px; font-weight: 500; color: #4b3d73; }
.st-fld > span em { color: #e11d48; font-style: normal; margin-left: 2px; }
.st-inp { height: 40px; border: 1px solid #d4d0e6; border-radius: 8px; padding: 0 12px; font-size: 14px; color: #1e0b4a; background: #fff; outline: none; transition: border-color .15s; }
.st-inp:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.st-inp:disabled { background: #f0f7ff; color: #8a7fb0; }
.st-avatar { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.st-avatar-img { width: 80px; height: 80px; border-radius: 50%; background: #f0ecff; display: flex; align-items: center; justify-content: center; color: #60a5fa; border: 2px dashed #d4d0e6; }
.st-toggle { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid #f0ecff; }
.st-toggle b { font-size: 14px; font-weight: 600; color: #1e0b4a; }
.st-toggle .muted { font-size: 12.5px; margin: 4px 0 0; max-width: 340px; }
.st-sw { position: relative; width: 48px; height: 26px; flex-shrink: 0; cursor: pointer; }
.st-sw input { opacity: 0; width: 0; height: 0; }
.st-sl { position: absolute; inset: 0; border-radius: 26px; background: #d4d0e6; transition: background .2s; }
.st-sl::before { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.st-sw input:checked + .st-sl { background: linear-gradient(135deg, #2563eb, #1e40af); }
.st-sw input:checked + .st-sl::before { transform: translateX(22px); }
.st-int-card { display: flex; align-items: center; gap: 18px; padding: 20px; border: 1px solid #e9e5f5; border-radius: 12px; margin-bottom: 16px; background: #fff; }
.st-int-ico { width: 52px; height: 52px; border-radius: 12px; background: #f0f7ff; display: flex; align-items: center; justify-content: center; color: #2563eb; flex-shrink: 0; }
.st-int-body { flex: 1; min-width: 0; }
.st-int-body b { font-size: 15px; color: #1e0b4a; }
.st-int-body .muted { font-size: 13px; margin: 2px 0 0; }
.st-int-hint { font-size: 12.5px; color: #6b6190; display: flex; align-items: flex-start; gap: 6px; margin-top: 4px; }
.st-int-info { margin: -8px 0 16px 70px; }
.st-benefits { list-style: none; padding: 0; margin: 0; }
.st-benefits li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 13.5px; color: #4b3d73; line-height: 1.5; }
.st-benefits li svg { color: #16a34a; flex-shrink: 0; margin-top: 2px; }
.st-info-banner { background: #f0ecff; border-radius: 10px; padding: 14px 18px; margin-bottom: 20px; display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #4b3d73; line-height: 1.6; }
.st-info-banner svg { color: #2563eb; flex-shrink: 0; margin-top: 2px; }
.st-block-bar { display: flex; align-items: center; gap: 14px; }
.st-connected { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: #f0fdf4; border-radius: 8px; margin-top: 12px; font-size: 14px; }
.st-session { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border: 1px solid #e9e5f5; border-radius: 10px; }
.st-session > div { display: flex; align-items: center; gap: 12px; }
.st-session > div > div b { font-size: 14px; display: block; }
.st-session > div > div .muted { font-size: 12px; margin: 2px 0 0; }
.st-day-chip { cursor: pointer; }
.st-day-chip input { display: none; }
.st-day-chip span { display: inline-block; padding: 6px 14px; border-radius: 8px; border: 1px solid #d4d0e6; font-size: 13px; font-weight: 500; color: #4b3d73; transition: all .15s; }
.st-day-chip input:checked + span { background: linear-gradient(135deg, #2563eb, #1e40af); color: #fff; border-color: #2563eb; }
.st-rte-wrap { border: 1px solid #d4d0e6; border-radius: 10px; overflow: hidden; }
.st-rte-tb { display: flex; align-items: center; gap: 2px; padding: 8px 10px; border-bottom: 1px solid #e9e5f5; background: #f8faff; flex-wrap: wrap; }
.st-rte-tb .sq-btn { width: 32px; height: 32px; }
.st-rte-sep { width: 1px; height: 20px; background: #d4d0e6; margin: 0 6px; }
.st-rte-wrap .rte { min-height: 180px; padding: 16px; outline: none; font-size: 14px; color: #1e0b4a; }
.st-rte-wrap .rte:empty::before { content: attr(data-ph); color: #a0a0a0; }
.st-tip-card { background: #f8faff; border-radius: 10px; padding: 20px; border: 1px solid #e9e5f5; }
@media (max-width: 1100px) { .st-split { grid-template-columns: 1fr; } .st-side { border-left: none; padding-left: 0; border-top: 1px solid #e9e5f5; padding-top: 24px; } }
@media (max-width: 860px) { .st-tabs-bar { gap: 0; } .st-tab { padding: 10px 12px; font-size: 12px; } .st-body { padding: 18px 14px; } .st-row { grid-template-columns: 1fr; } }

/* =====================================================================
   Premium Dashboard (dash-premium)
   ===================================================================== */
.dash-premium { padding: 0 0 32px; }
.dash-hero { display: flex; align-items: center; gap: 16px; padding: 28px 28px 20px; flex-wrap: wrap; }
.dash-hero h1 { font-size: 22px; font-weight: 700; color: var(--txt); margin: 0; }
.dash-date { font-size: 13px; color: var(--muted); margin: 3px 0 0; }
.dash-range-tabs { display: flex; gap: 2px; background: var(--bg2); border: 1px solid var(--bd); border-radius: 8px; padding: 3px; }
.drt { padding: 5px 13px; border-radius: 6px; border: none; background: none; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; transition: all .15s; }
.drt.on { background: var(--primary); color: #fff; }

/* Stat cards row */
.dash-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; padding: 0 28px 24px; }
.ds-card { border-radius: 14px; padding: 18px 18px 16px; border: 1px solid var(--bd); background: var(--bg); text-decoration: none; cursor: default; transition: box-shadow .15s, transform .15s; }
a.ds-card { cursor: pointer; }
a.ds-card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.ds-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ds-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.ds-delta { font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 20px; }
.ds-delta.pos { background: #dcfce7; color: #16a34a; }
.ds-delta.warn { background: #fef3c7; color: #d97706; }
.ds-num { font-size: 26px; font-weight: 800; line-height: 1; color: var(--txt); margin-bottom: 4px; }
.ds-lbl { font-size: 13px; font-weight: 600; color: var(--txt2); }
.ds-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.ds-blue .ds-icon { background: #eff6ff; color: #2563eb; }
.ds-blue .ds-num { color: #1d4ed8; }
.ds-indigo .ds-icon { background: #eef2ff; color: #6366f1; }
.ds-indigo .ds-num { color: #4f46e5; }
.ds-green .ds-icon { background: #f0fdf4; color: #16a34a; }
.ds-green .ds-num { color: #15803d; }
.ds-amber .ds-icon { background: #fffbeb; color: #d97706; }
.ds-amber .ds-num { color: #b45309; }
.ds-teal .ds-icon { background: #f0fdfa; color: #0d9488; }
.ds-teal .ds-num { color: #0f766e; }
.ds-rose .ds-icon { background: #fff1f2; color: #e11d48; }
.ds-rose .ds-num { color: #be123c; }

/* Main 2-col grid */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 28px; }
.dash-panel { background: var(--bg); border: 1px solid var(--bd); border-radius: 14px; padding: 20px; }
.dp-tall { grid-row: span 1; }
.dp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.dp-head h3 { font-size: 14px; font-weight: 700; color: var(--txt); margin: 0; flex: 1; }
.dp-link { font-size: 12px; color: var(--primary); text-decoration: none; font-weight: 500; }
.dp-link:hover { text-decoration: underline; }
.dp-sub { font-size: 12px; color: var(--muted); }
.dp-empty { font-size: 13px; color: var(--muted); padding: 8px 0; }

/* Pipeline bars */
.pipeline-bars { display: flex; flex-direction: column; gap: 8px; }
.pb-row { display: grid; grid-template-columns: 130px 1fr 32px; align-items: center; gap: 10px; background: none; border: none; cursor: pointer; padding: 4px 0; border-radius: 6px; transition: background .1s; }
.pb-row:hover { background: var(--bg2); }
.pb-label { font-size: 12.5px; color: var(--txt2); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-track { height: 6px; background: var(--bg2); border-radius: 3px; overflow: hidden; }
.pb-fill { height: 100%; border-radius: 3px; transition: width .4s ease; }
.pb-count { font-size: 12px; font-weight: 700; color: var(--txt); text-align: right; }

/* Mini bar chart */
.mini-bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 100px; padding-top: 8px; }
.mbc-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; height: 100%; justify-content: flex-end; }
.mbc-bar-wrap { flex: 1; display: flex; align-items: flex-end; width: 100%; }
.mbc-bar { width: 100%; background: var(--primary); border-radius: 4px 4px 0 0; min-height: 4px; transition: height .3s ease; opacity: .85; }
.mbc-label { font-size: 11px; color: var(--muted); }
.mbc-val { font-size: 11px; font-weight: 700; color: var(--txt2); min-height: 14px; }

/* Activity feed */
.act-feed { display: flex; flex-direction: column; gap: 0; max-height: 260px; overflow-y: auto; }
.af-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--bd); }
.af-item:last-child { border-bottom: none; }
.af-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 5px; }
.af-body { flex: 1; min-width: 0; }
.af-text { font-size: 13px; color: var(--txt2); display: block; }
.af-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; display: block; }

/* Upcoming */
.upcoming-list { display: flex; flex-direction: column; gap: 2px; padding-bottom: 12px; }
.up-item { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-radius: 8px; transition: background .1s; }
.up-item:hover { background: var(--bg2); }
.up-ico { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.up-ico-task { background: #eff6ff; color: #2563eb; }
.up-ico-meeting { background: #fdf4ff; color: #9333ea; }
.up-body { flex: 1; min-width: 0; }
.up-body b { font-size: 13px; color: var(--txt); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-body small { font-size: 11.5px; color: var(--muted); }

/* Cross-user notification panel */
.xnotif-drawer .xn-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--bd); }
.xnotif-drawer .xn-item:last-child { border-bottom: none; }
.xnotif-drawer .xn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 4px; }
.xnotif-drawer .xn-body { flex: 1; font-size: 13px; color: var(--txt2); }
.xnotif-drawer .xn-body b { color: var(--txt); }
.xnotif-drawer .xn-body small { font-size: 11.5px; color: var(--muted); display: block; margin-top: 2px; }
.xnotif-drawer .xn-body .ts { color: var(--muted); }
.xnotif-drawer .xn-empty { display: flex; flex-direction: column; align-items: center; padding: 48px 0; gap: 10px; color: var(--muted); font-size: 14px; }
.xnotif-drawer .xn-empty span { font-size: 32px; color: #16a34a; }

/* Responsive */
@media (max-width: 1280px) { .dash-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .dash-stats { grid-template-columns: repeat(2, 1fr); padding: 0 16px 20px; }
  .dash-grid { grid-template-columns: 1fr; padding: 0 16px; }
  .dash-hero { padding: 20px 16px 16px; }
}
@media (max-width: 600px) { .dash-stats { grid-template-columns: 1fr 1fr; } }

/* ═══════════════════════════════════════════════════════════
   KANBAN BOARD v2 — Full-pipeline candidate view
═══════════════════════════════════════════════════════════ */
.kb2-wrap {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 16px 0 20px;
  min-height: 520px;
  align-items: flex-start;
  scroll-snap-type: x proximity;
}
.kb2-wrap::-webkit-scrollbar { height: 6px; }
.kb2-wrap::-webkit-scrollbar-track { background: var(--bg2); border-radius: 3px; }
.kb2-wrap::-webkit-scrollbar-thumb { background: var(--bd); border-radius: 3px; }

.kb2-col {
  flex: 0 0 190px;
  background: var(--bg2);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--bd);
  scroll-snap-align: start;
  transition: background .15s;
}
.kb2-col.drag-over { background: #ede9fe; border-color: #7c3aed; }

.kb2-col-hd {
  padding: 10px 12px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
}
.kb2-col-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--tx);
  letter-spacing: .3px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}
.kb2-cnt {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border-radius: 20px;
  padding: 1px 8px;
  flex-shrink: 0;
}

.kb2-cards {
  padding: 7px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 60px;
}
.kb2-empty {
  text-align: center;
  font-size: 11.5px;
  color: var(--tx3);
  padding: 20px 0;
  font-style: italic;
}
.kb2-more {
  text-align: center;
  font-size: 11px;
  color: var(--tx2);
  padding: 4px 0 2px;
}

.kb2-card {
  background: var(--bg);
  border-radius: 8px;
  padding: 9px 10px;
  cursor: grab;
  border: 1px solid var(--bd);
  transition: box-shadow .15s, transform .1s;
  user-select: none;
}
.kb2-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.1); }
.kb2-card.dragging { opacity: .45; transform: scale(.97); cursor: grabbing; }
.kb2-card-top { display: flex; gap: 8px; align-items: flex-start; }
.kb2-av {
  width: 28px; height: 28px; border-radius: 50%;
  color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.kb2-info { min-width: 0; }
.kb2-name {
  font-size: 12.5px; font-weight: 600; color: var(--tx);
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-decoration: none;
}
.kb2-name:hover { text-decoration: underline; color: var(--primary); }
.kb2-role {
  font-size: 11px; color: var(--tx2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 1px;
}
.kb2-job {
  margin-top: 6px; font-size: 10.5px; color: var(--tx2);
  background: var(--bg2); border-radius: 4px;
  padding: 2px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 3px;
}
.kb2-tags { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 5px; }
.kb2-tag { font-size: 10px; border-radius: 3px; padding: 1px 5px; font-weight: 500; }

/* ═══════════════════════════════════════════════════════════
   CANDIDATE SIDE PANEL — Enhanced with Insights + Details
═══════════════════════════════════════════════════════════ */
.cv-side-top {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--bd);
  background: var(--bg);
}
.side-engage {
  font-size: 12.5px;
  color: var(--tx2);
  margin-bottom: 10px;
}
.side-engage b { color: var(--tx); }
.side-stats-row {
  display: flex;
  gap: 0;
  border: 1px solid var(--bd);
  border-radius: 8px;
  overflow: hidden;
}
.side-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  border-right: 1px solid var(--bd);
  background: var(--bg2);
}
.side-stat:last-child { border-right: none; }
.side-stat b { font-size: 18px; font-weight: 700; color: var(--tx); line-height: 1.1; }
.side-stat span { font-size: 10.5px; color: var(--tx2); margin-top: 2px; }

.cv-side-panel {
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--bd);
}
.cv-side-section {
  padding: 12px 0 0;
  border-bottom: 1px solid var(--bd2, #f0f0f0);
  padding-bottom: 10px;
}
.cv-side-section:last-child { border-bottom: none; }
.cv-side-sec-hd {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--tx2);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cv-side-insight {
  font-size: 12.5px;
  color: var(--tx2);
  line-height: 1.5;
  background: #f0f9ff;
  border-left: 3px solid #0ea5e9;
  padding: 8px 10px;
  border-radius: 0 6px 6px 0;
}
.cv-side-details { display: flex; flex-direction: column; gap: 7px; }
.cv-side-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
}
.cv-side-detail-row.align-top { align-items: flex-start; }
.cv-sd-label {
  font-weight: 600;
  color: var(--tx2);
  flex: 0 0 72px;
  font-size: 12px;
}
.cv-sd-val { color: var(--tx); flex: 1; min-width: 0; }
.stage-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  padding: 2px 10px;
}
.cv-side-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.cv-side-tag {
  font-size: 11px;
  border-radius: 4px;
  padding: 2px 7px;
  font-weight: 500;
}
.cv-side-stage-chg .select { width: 100%; }
.cv-side-stage-chg select { width: 100%; font-size: 13px; }
.w-full { width: 100%; }

/* ═══════════════════════════════════════════════════════════
   GETTING STARTED — Onboarding checklist (reference design)
═══════════════════════════════════════════════════════════ */
.gs-section {
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--bd);
  margin-bottom: 20px;
  overflow: hidden;
}
.gs-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 24px 12px;
}
.gs-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--tx);
  margin: 0 0 2px;
}
.gs-sub {
  font-size: 13px;
  color: var(--tx2);
  margin: 0;
}
.gs-hide {
  font-size: 12.5px;
  color: var(--tx2);
  white-space: nowrap;
  margin-top: 4px;
  flex-shrink: 0;
}
.gs-body {
  display: grid;
  grid-template-columns: 1fr 1fr 280px;
  gap: 0;
  border-top: 1px solid var(--bd);
}
.gs-col {
  border-right: 1px solid var(--bd);
}
.gs-col:last-of-type { border-right: none; }
.gs-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  cursor: pointer;
  border-bottom: 1px solid var(--bd);
  transition: background .12s;
}
.gs-step:last-child { border-bottom: none; }
.gs-step:hover { background: var(--bg2); }
.gs-step.gs-done .gs-label { color: var(--tx2); }
.gs-ico {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.gs-ico-green  { background: #dcfce7; color: #16a34a; }
.gs-ico-teal   { background: #ccfbf1; color: #0d9488; }
.gs-ico-blue   { background: #dbeafe; color: #1d4ed8; }
.gs-ico-amber  { background: #fef9c3; color: #a16207; }
.gs-ico-indigo { background: #e0e7ff; color: #4338ca; }
.gs-ico-slate  { background: #f1f5f9; color: #475569; }
.gs-label {
  flex: 1;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--tx);
}
.gs-check {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--bd);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: transparent;
  transition: all .15s;
}
.gs-check.gs-checked {
  background: #64748b;
  border-color: #64748b;
  color: #fff;
}
.gs-side {
  padding: 20px 20px 16px;
  border-left: 1px solid var(--bd);
  background: var(--bg);
}
.gs-side-title {
  font-size: 15px;
  font-weight: 700;
  color: #f97316;
  margin-bottom: 10px;
}
.gs-side-body {
  font-size: 12.5px;
  color: var(--tx2);
  line-height: 1.6;
  margin: 0 0 14px;
}
.gs-side-link {
  display: block;
  font-size: 13px;
  color: #2563eb;
  text-decoration: none;
  margin-bottom: 6px;
  font-weight: 500;
}
.gs-side-link:hover { text-decoration: underline; }
.gs-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-top: 1px solid var(--bd);
  background: var(--bg2);
}
.gs-footer-msg {
  font-size: 15px;
  font-weight: 600;
  color: var(--tx);
}
.gs-customize {
  font-size: 13px;
}
@media (max-width: 900px) {
  .gs-body { grid-template-columns: 1fr; }
  .gs-col { border-right: none; }
  .gs-side { border-left: none; border-top: 1px solid var(--bd); }
}

/* ── Team Members Page fixes ───────────────────────────────────────── */
/* Avatar circle used in team table */
.av {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.av-sm { width: 32px; height: 32px; font-size: 12px; }
.av-md { width: 40px; height: 40px; font-size: 14px; }
.av-lg { width: 48px; height: 48px; font-size: 16px; }

/* Team table column alignment */
.team-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.team-name-cell > div {
  min-width: 0;
  overflow: hidden;
}
.team-name-cell b {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Row actions inline — no wrapping */
.row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

/* Stat mini cards on team page */
.team-stats-row {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}

/* Ensure table doesn't overflow weirdly on mobile */
@media (max-width: 768px) {
  .cl-table-wrap { overflow-x: auto; }
  .cl-table { min-width: 640px; }
}

/* ── New Dashboard (kpi2) ───────────────────────────────────────────────── */
.kpi-dash2 { padding: 0 !important; overflow: hidden; background: var(--surface); }
.kpi2-head { display: flex; align-items: flex-start; gap: 16px; padding: 24px 24px 16px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.kpi2-greeting { font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.kpi2-subline { font-size: 13px; color: var(--text-3); margin: 0; }
.kpi2-head .sq-btn { font-size: 12px; gap: 6px; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); }

/* KPI tiles */
.kpi2-tiles { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--border); }
.kpi2-tile { display: flex; flex-direction: column; padding: 20px 20px 16px; border-right: 1px solid var(--border); text-decoration: none; color: inherit; transition: background .15s; cursor: pointer; }
.kpi2-tile:last-child { border-right: none; }
.kpi2-tile:hover { background: color-mix(in srgb, var(--kc2, #6366f1) 5%, transparent); }
.kpi2-tile-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.kpi2-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.kpi2-ico-blue   { background: #eff6ff; color: #2563eb; }
.kpi2-ico-sky    { background: #f0f9ff; color: #0ea5e9; }
.kpi2-ico-purple { background: #f5f3ff; color: #7c3aed; }
.kpi2-ico-green  { background: #f0fdf4; color: #16a34a; }
.kpi2-arrow { width: 26px; height: 26px; border-radius: 50%; background: #e0e7ff; color: #3730a3; display: grid; place-items: center; }
.kpi2-arrow-green { background: #dcfce7; color: #15803d; }
.kpi2-tile-label { font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.kpi2-tile-val { font-size: 30px; font-weight: 800; color: var(--kc2, #111); line-height: 1.1; margin-bottom: 2px; }
.kpi2-tile-sub { font-size: 11px; color: var(--text-3); }

/* Body layout */
.kpi2-body { display: grid; grid-template-columns: 1fr 320px; gap: 0; }
.kpi2-left { padding: 20px; border-right: 1px solid var(--border); }
.kpi2-right { padding: 20px; display: flex; flex-direction: column; }

/* Cards */
.kpi2-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.kpi2-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 6px; }
.kpi2-card-head h3 { font-size: 14px; font-weight: 700; margin: 0; }
.kpi2-view-all { font-size: 12px; font-weight: 600; color: #6366f1; text-decoration: none; }
.kpi2-view-all:hover { text-decoration: underline; }
.kpi2-badge { font-size: 11px; font-weight: 600; background: #eff6ff; color: #2563eb; border-radius: 20px; padding: 2px 10px; border: 1px solid #dbeafe; }
.kpi2-badge-grey { background: #f8fafc; color: #64748b; border-color: #e2e8f0; }

/* Job Analysis bar chart */
.kpi2-chart { display: flex; flex-direction: column; gap: 10px; }
.kpi2-bar-row { display: grid; grid-template-columns: 160px 1fr 36px; align-items: center; gap: 10px; }
.kpi2-bar-label { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi2-bar-track { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.kpi2-bar-fill { height: 100%; border-radius: 4px; transition: width .4s ease; }
.kpi2-bar-num { font-size: 12px; font-weight: 700; text-align: right; }
.kpi2-chart-legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.kpi2-chart-legend span { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-3); }
.kpi2-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Pipeline stage grid */
.kpi2-stage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi2-stage-card { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; text-align: left; cursor: pointer; transition: box-shadow .15s, transform .1s; }
.kpi2-stage-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.08); transform: translateY(-1px); }
.kpi2-stage-num { font-size: 20px; font-weight: 800; line-height: 1.1; margin-bottom: 2px; }
.kpi2-stage-name { font-size: 11px; color: var(--text-3); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi2-stage-bar { background: var(--border); border-radius: 2px; height: 3px; overflow: hidden; }

/* Schedule */
.kpi2-sched-list { display: flex; flex-direction: column; gap: 0; }
.kpi2-sched-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.kpi2-sched-item:last-child { border-bottom: none; }
.kpi2-sched-date { width: 44px; height: 44px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.kpi2-sched-today { background: #6366f1; border-color: #6366f1; color: #fff; }
.kpi2-sched-day { font-size: 16px; font-weight: 800; line-height: 1; }
.kpi2-sched-dow { font-size: 9px; font-weight: 700; text-transform: uppercase; opacity: .7; }
.kpi2-sched-title { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.kpi2-sched-meta { font-size: 11px; color: var(--text-3); display: flex; align-items: center; gap: 3px; margin-bottom: 1px; }
.kpi2-sched-time { font-size: 11px; color: var(--text-3); }

/* Recently Added */
.kpi2-recent-list { display: flex; flex-direction: column; gap: 0; }
.kpi2-recent-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; transition: background .1s; }
.kpi2-recent-item:last-child { border-bottom: none; }
.kpi2-recent-item:hover .kpi2-recent-name { color: #6366f1; }
.kpi2-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg,#6366f1,#8b5cf6); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.kpi2-recent-info { flex: 1; min-width: 0; }
.kpi2-recent-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s; }
.kpi2-recent-sub { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi2-recent-time { font-size: 10px; color: var(--text-3); white-space: nowrap; flex-shrink: 0; }

/* Progress Report */
.kpi2-progress-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.kpi2-prog { background: var(--bg); border-radius: 8px; padding: 12px; text-align: center; border: 1px solid var(--border); }
.kpi2-prog-val { font-size: 24px; font-weight: 800; color: var(--text-1); }
.kpi2-prog-label { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* Empty state */
.kpi2-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 28px 16px; color: var(--text-3); }
.kpi2-empty p { margin: 0; font-size: 13px; }

/* Responsive */
@media (max-width: 1100px) { .kpi2-body { grid-template-columns: 1fr; } .kpi2-left { border-right: none; border-bottom: 1px solid var(--border); } }
@media (max-width: 768px) { .kpi2-tiles { grid-template-columns: repeat(2,1fr); } .kpi2-stage-grid { grid-template-columns: repeat(2,1fr); } .kpi2-bar-row { grid-template-columns: 100px 1fr 30px; } }
@media (max-width: 480px) { .kpi2-tiles { grid-template-columns: 1fr 1fr; } .kpi2-tile-val { font-size: 22px; } }

/* ── Dashboard embossed text & refined head ─────────────────────────────── */
.kpi2-head { padding: 10px 20px; min-height: unset; display: flex; align-items: center; flex-wrap: nowrap; gap: 12px; }
.kpi2-head .kpi-range { display: flex; gap: 4px; flex-shrink: 0; }
.kpi2-head .sq-btn { flex-shrink: 0; white-space: nowrap; }
.kpi2-card-head h3 {
  text-shadow: 0 1px 0 rgba(255,255,255,.8), 0 -1px 0 rgba(0,0,0,.06);
  letter-spacing: .01em;
}
.kpi2-tile-label {
  text-shadow: 0 1px 0 rgba(255,255,255,.9), 0 -1px 0 rgba(0,0,0,.04);
  letter-spacing: .05em;
}
.kpi2-tile-val {
  text-shadow: 0 2px 0 rgba(255,255,255,.7), 0 -1px 0 rgba(0,0,0,.08);
}
.kpi2-stage-num {
  text-shadow: 0 1px 0 rgba(255,255,255,.8), 0 -1px 0 rgba(0,0,0,.07);
}
.kpi2-prog-val {
  text-shadow: 0 1px 0 rgba(255,255,255,.8), 0 -1px 0 rgba(0,0,0,.07);
}
/* Tile subtle inset border for depth */
.kpi2-tile { box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.kpi2-card  { box-shadow: 0 1px 3px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,.8); }
.kpi2-stage-card { box-shadow: 0 1px 2px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,.75); }

/* ── Pipeline bar in jobs list ─────────────────────────────────────────── */
.pipeline-bar { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; text-decoration: none; }
.pipeline-bar:hover .pb-total { text-decoration: underline; }
.pb-total { font-size: 12px; font-weight: 600; color: var(--text-1); }
.pb-active, .pb-hired, .pb-dropped { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 500; padding: 2px 6px; border-radius: 999px; }
.pb-active { background: #dbeafe; color: #1d4ed8; }
.pb-hired  { background: #dcfce7; color: #15803d; }
.pb-dropped { background: #fee2e2; color: #b91c1c; }
.pb-active.zero { background: var(--bg-2); color: var(--text-3); }
.pb-hired.zero  { background: var(--bg-2); color: var(--text-3); }
.pb-dropped.zero { background: var(--bg-2); color: var(--text-3); }

/* ── Jobs Pipeline Board View ──────────────────────────────────────────── */
.jb-summary { display: flex; gap: 10px; padding: 14px 20px 0; flex-wrap: wrap; }
.jb-sum-pill { display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 10px; font-size: 13px; border: 1px solid transparent; }
.jb-sum-pill b { font-size: 18px; font-weight: 700; }
.jb-sum-pill span { color: var(--text-2); font-size: 12px; }

.jb-board { display: flex; gap: 12px; overflow-x: auto; padding: 14px 20px 28px; align-items: flex-start; min-height: 320px; }
.jb-board::-webkit-scrollbar { height: 6px; }
.jb-board::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }

.jb-col { flex: 0 0 220px; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; border: 1px solid #e5e7eb; background: #fafbfc; }
.jb-col-head { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.jb-stage-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jb-cnt { background: rgba(255,255,255,.45); border-radius: 999px; padding: 1px 7px; font-size: 11px; font-weight: 700; margin-left: 6px; flex-shrink: 0; }

.jb-cards { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 10px 8px 10px; overflow-y: auto; max-height: 68vh; }
.jb-cards::-webkit-scrollbar { width: 4px; }
.jb-cards::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }

.jb-card { background: #fff; border: 1px solid #e9ecef; border-radius: 8px; padding: 10px 11px; cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.jb-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.09); border-color: #c7d0da; }
.jb-card-title { display: block; font-weight: 600; font-size: 13px; color: var(--text-1); text-decoration: none; line-height: 1.35; margin-bottom: 3px; }
.jb-card-title:hover { color: var(--purple); }
.jb-card-co { font-size: 11px; color: var(--text-3); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jb-card-cands { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.jb-cand-name { font-size: 12px; color: var(--text-2); font-weight: 500; padding: 2px 6px; background: var(--bg-2,#f3f4f6); border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Job-centric board: candidate cards within job columns */
.jb-col { flex: 0 0 230px; }
.jb-job-head { flex-direction: column; align-items: flex-start; padding: 10px 12px 6px; background: #f0f4ff; border-bottom: 1px solid #dde3f8; }
.jb-col-actions { padding: 6px 8px 0; display: flex; flex-direction: column; gap: 2px; }
.jb-cnt { min-width: 22px; height: 22px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; padding: 0 6px; }
.jb-cand-card { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e9ecef; border-radius: 8px; padding: 8px 10px; text-decoration: none; color: inherit; transition: box-shadow .15s, border-color .15s; cursor: pointer; }
.jb-cand-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.09); border-color: #c7d0da; }
.jb-cav { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,#4f8ef7,#2563eb); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.jb-cand-info { flex: 1; min-width: 0; }
.jb-cand-name { font-size: 12px; font-weight: 600; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0; background: none; border-radius: 0; }
.jb-cand-title { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jb-stage-tag { font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px; white-space: nowrap; flex-shrink: 0; }
.jb-card-foot { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.jb-stg-cnt { font-size: 11px; font-weight: 600; color: var(--text-2); }
.jb-total-cnt { font-size: 11px; color: var(--text-3); }
.jb-sep { color: var(--text-3); font-size: 11px; }
.jb-empty-col { display: flex; align-items: center; justify-content: center; padding: 24px 10px; }

/* Stage colour tokens */
.jb-blue   { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.jb-purple { background: #ede9fe; color: #5b21b6; border-color: #ddd6fe; }
.jb-indigo { background: #e0e7ff; color: #3730a3; border-color: #c7d2fe; }
.jb-teal   { background: #ccfbf1; color: #0f766e; border-color: #99f6e4; }
.jb-orange { background: #ffedd5; color: #c2410c; border-color: #fed7aa; }
.jb-amber  { background: #fef9c3; color: #92400e; border-color: #fde68a; }
.jb-green  { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.jb-red    { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.jb-gray   { background: #f3f4f6; color: #374151; border-color: #e5e7eb; }

/* Summary pill colours */
.jb-sum-pill.jb-blue   { background: #dbeafe; border-color: #bfdbfe; color: #1e40af; }
.jb-sum-pill.jb-green  { background: #dcfce7; border-color: #bbf7d0; color: #15803d; }
.jb-sum-pill.jb-red    { background: #fee2e2; border-color: #fecaca; color: #b91c1c; }
.jb-sum-pill.jb-gray   { background: #f3f4f6; border-color: #e5e7eb; color: #374151; }
.jb-sum-pill.jb-amber  { background: #fef9c3; border-color: #fde68a; color: #92400e; }
.jb-nocands { background: #f0f9ff; color: #0369a1; border-color: #bae6fd; }
.jb-sum-pill.jb-nocands-sum { background: #f0f9ff; border-color: #bae6fd; color: #0369a1; }

/* Offers & Placements section in jobs board */
.jb-offers-section { margin: 10px 20px 0; border: 1px solid #fde68a; border-radius: 12px; background: #fffdf0; overflow: hidden; }
.jb-offers-header { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #fef9c3; border-bottom: 1px solid #fde68a; flex-wrap: wrap; }
.jb-offers-title { font-weight: 700; font-size: 13px; color: #92400e; display: flex; align-items: center; gap: 5px; }
.jb-offers-meta { font-size: 12px; color: #b45309; background: #fde68a; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.jb-offers-ctc, .jb-offers-fee { font-size: 12px; color: #374151; }
.jb-offers-ctc b, .jb-offers-fee b { color: #15803d; }
.jb-offers-list { padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.jb-offer-row { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 8px; font-size: 13px; flex-wrap: wrap; }
.jb-offer-row:hover { background: #fef3c7; }
.jb-offer-cand { display: flex; align-items: center; gap: 8px; min-width: 200px; flex: 1; }
.jb-offer-cand > div { display: flex; flex-direction: column; gap: 1px; }
.jb-offer-cand small { font-size: 11px; color: var(--muted); }
.jb-offer-ctc { font-weight: 600; color: #1e40af; font-size: 13px; min-width: 100px; }
.jb-offer-ctc.muted { font-weight: 400; }
.jb-offer-join { font-size: 12px; color: #374151; display: flex; align-items: center; gap: 4px; }
.jb-offer-fee-val { font-size: 12px; color: #15803d; font-weight: 500; }
.jb-offers-empty { padding: 14px 20px; font-size: 13px; color: var(--muted); font-style: italic; }

/* Pipeline offer summary banner */
.pl-offer-banner { display: flex; align-items: center; gap: 14px; padding: 8px 20px; background: #fef9c3; border-top: 1px solid #fde68a; font-size: 13px; color: #92400e; flex-wrap: wrap; }
.pl-offer-banner b { color: #15803d; }
.pl-offer-label { display: flex; align-items: center; gap: 5px; font-weight: 700; }

/* Kanban card offer row */
.kb-offer { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding: 4px 6px; background: #f0fdf4; border-radius: 6px; font-size: 11px; color: #15803d; }
.kb-offer-label { display: flex; align-items: center; gap: 4px; font-weight: 500; }
.kb-offer-fee { color: #0369a1; font-weight: 600; }
.btn-xs { font-size: 11px; padding: 2px 8px; border-radius: 5px; }

/* JD column badge */
.jd-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 20px; font-size: 12px; font-weight: 500; border: 1.5px solid; cursor: pointer; transition: opacity .15s, box-shadow .15s; white-space: nowrap; }
.jd-badge:hover { opacity: .82; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.jd-badge.has-jd { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.jd-badge.no-jd  { background: #f9fafb; color: #9ca3af; border-color: #e5e7eb; }
.jd-badge.no-jd:hover { background: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }

/* Jobs board — Manatal style (columns = stages, cards = jobs) */
.jbj-board { display: flex; gap: 0; overflow-x: auto; border-top: 1px solid #e5e7eb; min-height: 460px; padding-bottom: 8px; }
.jbj-col { flex: 0 0 232px; border-right: 1px dashed #e5e7eb; display: flex; flex-direction: column; }
.jbj-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; font-size: 12.5px; font-weight: 600; color: #374151; border-bottom: 2px solid #e5e7eb; background: #fafbfc; position: sticky; top: 0; }
.jbj-cnt { min-width: 20px; height: 20px; border-radius: 10px; background: #2563eb; color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.jbj-cards { padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.jbj-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: box-shadow .15s, border-color .15s; }
.jbj-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); border-color: #c7d2fe; }
.jbj-top { display: flex; gap: 10px; align-items: flex-start; }
.jbj-av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg,#7c3aed,#4f46e5); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.jbj-main { min-width: 0; flex: 1; }
.jbj-title { display: block; font-size: 13px; font-weight: 600; color: #2563eb; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jbj-title:hover { text-decoration: underline; }
.jbj-co { font-size: 11px; color: #6b7280; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jbj-meta { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.jbj-owner { width: 20px; height: 20px; border-radius: 50%; background: #f59e0b; color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.jbj-eye { color: #6b7280; display: inline-flex; }
.jbj-eye:hover { color: #2563eb; }
.jbj-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: 11px; color: #6b7280; }
.jbj-stats .ok { color: #1d4ed8; } .jbj-stats .pl { color: #15803d; font-weight: 600; } .jbj-stats .dr { color: #b91c1c; }

/* Recruiter Performance — clean layout */
.rp-wrap { max-width: 1180px; }
.rp-top { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.rp-tabs { display: flex; gap: 4px; border-bottom: 1px solid #e5e7eb; margin-bottom: 18px; }
.rp-tab { background: none; border: 0; padding: 9px 14px; font-size: 13.5px; font-weight: 600; color: #6b7280; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.rp-tab.on { color: #1d4ed8; border-bottom-color: #2563eb; }
.rp-weeknav { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 5px 8px; margin-bottom: 16px; font-size: 13px; }
.rp-nav { width: 26px; height: 26px; border-radius: 6px; border: 0; background: #f3f4f6; font-size: 16px; cursor: pointer; line-height: 1; }
.rp-nav:disabled { opacity: .35; cursor: default; }
.rp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.rp-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 18px; box-shadow: 0 1px 3px rgba(16,24,40,.05); }
.rp-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.rp-av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg,#4f8ef7,#2563eb); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rp-name { font-weight: 700; font-size: 15px; }
.rp-icon { width: 32px; height: 32px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; color: #4b5563; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.rp-icon:hover { border-color: #93c5fd; color: #1d4ed8; }
.rp-prog { margin-bottom: 12px; }
.rp-prog-top { display: flex; justify-content: space-between; font-size: 12.5px; color: #374151; margin-bottom: 5px; }
.rp-track { height: 7px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.rp-track > div { height: 100%; border-radius: 4px; transition: width .3s; }
.rp-card-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #f1f5f9; padding-top: 12px; margin-top: 4px; font-size: 12.5px; color: #4b5563; }
.rp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.rp-stat { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px 16px; }
.rp-stat-l { font-size: 11.5px; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: .04em; }
.rp-stat-v { font-size: 24px; font-weight: 800; color: #111827; margin: 4px 0 2px; }
.rp-table td, .rp-table th { padding: 12px 14px; }
.rp-hrow { display: grid; grid-template-columns: 170px repeat(8, 1fr); gap: 8px; align-items: center; padding: 6px 0; }
.rp-hhead { padding-top: 0; }
.rp-hname { font-weight: 600; font-size: 13.5px; }
.rp-hcell-l { font-size: 11.5px; color: #6b7280; text-align: center; }
.rp-hcell { background: none; border: 0; padding: 0; cursor: pointer; }
.rp-hcell span { display: block; border-radius: 8px; padding: 9px 0; font-size: 12px; font-weight: 700; text-align: center; }
.rp-hcell.on span { outline: 2px solid #1d4ed8; outline-offset: 2px; }
@media (max-width: 760px) { .rp-stats { grid-template-columns: repeat(2, 1fr); } .rp-hrow { grid-template-columns: 110px repeat(8, 1fr); gap: 4px; } }
