/* ==========================================================
   Sayhire UI — дизайн из Figma («Sayhire — дизайн базы кандидатов»)
   Сетка отступов: 4 / 8 / 12 / 16 / 24 / 32. Радиусы: 8 / 10 / 12 / 16 / pill.
   Шрифт: Lato. Фирменные цвета: розовый #E61779, синий #3287EB, лайм #9BC917.
   ========================================================== */
:root {
  --bg: #F7F8FB;
  --card: #FFFFFF;
  --border: #E4E7EF;
  --text: #0F0F10;
  --muted: #666A78;
  --accent: #E61779;          /* фирменный розовый */
  --accent-dark: #C70F66;
  --accent-soft: #FDE7F1;
  --blue: #2B78D8;
  --blue-soft: #E7F1FD;
  --green: #3F7D2E;
  --green-soft: #E4F1D6;
  --amber: #E07B00;
  --amber-soft: #FDF0DD;
  --red: #C0392B;
  --red-soft: #FCEAE8;
  --surface-2: #FAFBFD;
  --col-bg: #ECEEF4;
  --sidebar-w: 256px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(20, 20, 21, 0.04);
  --shadow-lg: 0 8px 24px rgba(20, 20, 21, 0.10);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px; --s8: 32px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--accent); }
h1 { font-size: 28px; line-height: 1.25; font-weight: 700; margin: 0 0 var(--s1); letter-spacing: -0.01em; }
h2 { font-size: 16px; line-height: 1.35; font-weight: 700; margin: 0 0 var(--s4); }
h3 { font-size: 14px; font-weight: 700; margin: 0; }
p { margin: 0 0 var(--s2); }

/* ---------- Shell layout ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0; background: var(--card); color: var(--text);
  display: flex; flex-direction: column; padding: var(--s6);
  position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--border);
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--text); padding: 0 0 var(--s8); }
.logo-dot { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.logo-dot::after { content: "S"; color: #fff; font-weight: 700; font-size: 20px; line-height: 1; }
.sidebar-nav { display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.sidebar-nav a {
  display: flex; align-items: center; gap: var(--s3); padding: 10px var(--s3); border-radius: var(--radius-sm);
  color: var(--text); font-size: 14px; font-weight: 500; transition: background .15s, color .15s;
}
.sidebar-nav a svg { flex-shrink: 0; color: var(--muted); }
.sidebar-nav a:hover { background: var(--surface-2); color: var(--text); }
.sidebar-nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.sidebar-nav a.active svg { color: var(--accent); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: var(--s4) var(--s2) 0; border-top: 1px solid var(--border); }
.avatar-sm { width: 36px; height: 36px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.uname { font-size: 14px; font-weight: 700; color: var(--text); }
.ulogout { font-size: 12px; color: var(--muted); }
.ulogout:hover { color: var(--accent); }

.content { flex: 1; min-width: 0; padding: var(--s8) 40px; max-width: 1360px; }

/* ---------- Common ---------- */
.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s6); gap: var(--s4); flex-wrap: wrap; }

.btn {
  background: var(--accent); color: #fff; padding: 10px var(--s4); border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; font-size: 14px; font-weight: 700; line-height: 1.4;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(230, 23, 121, 0.25); }
.btn-outline { background: var(--card); color: var(--text); border-color: var(--border); }
.btn-outline:hover { background: var(--surface-2); color: var(--text); border-color: #D6D8E0; }
.btn-danger { background: var(--card); color: var(--red); border-color: #F2CFCB; }
.btn-danger:hover { background: var(--red-soft); color: var(--red); }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s6); margin-bottom: var(--s6); box-shadow: var(--shadow); }
.table-card { padding: 0; overflow: hidden; }

.filters { display: flex; gap: var(--s3); margin-bottom: var(--s6); flex-wrap: wrap; align-items: center; }
.search-wrap { flex: 1; min-width: 260px; position: relative; display: flex; align-items: center; }
.search-wrap svg { position: absolute; left: 14px; color: var(--muted); }
.search-wrap input { width: 100%; padding-left: 42px; }

input, select, textarea, button {
  padding: 10px var(--s3); border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 14px;
  font-family: inherit; background: var(--card); color: var(--text);
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(230, 23, 121, 0.15); }
textarea { line-height: 1.5; }
button { cursor: pointer; }

table.list { width: 100%; border-collapse: collapse; }
table.list th { padding: var(--s3) var(--s6); text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; background: var(--surface-2); border-bottom: 1px solid var(--border); }
table.list td { padding: var(--s4) var(--s6); border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
table.list tbody tr:last-child td { border-bottom: none; }
table.list tbody tr { transition: background .12s; }
table.list tbody tr:hover { background: var(--surface-2); cursor: pointer; }
table.list.small th, table.list.small td { padding: var(--s2) var(--s3); font-size: 13px; }
.card table.list th:first-child, .card table.list td:first-child { padding-left: var(--s6); }

.cand-row { display: flex; align-items: center; gap: var(--s3); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.avatar-lg { width: 56px; height: 56px; font-size: 20px; }
.cand-name { font-weight: 700; font-size: 14px; color: var(--text); }
.cand-sub { font-size: 12px; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.3; background: var(--blue-soft); color: var(--blue); }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-gray { background: #EFF0F4; color: var(--muted); }
.count-pill { background: var(--card); color: var(--muted); border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 700; margin-left: var(--s2); }

.kv { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s2) 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.kv:last-of-type { border-bottom: none; }
.kv span { color: var(--muted); }

.muted { color: var(--muted); }
.small { font-size: 12px; }

.flash { background: var(--amber-soft); border: 1px solid #F3DDB5; color: #8A5200; padding: var(--s3) var(--s4); border-radius: var(--radius-sm); margin-bottom: var(--s6); font-size: 14px; }
.flash-bare { max-width: 340px; margin: var(--s6) auto 0; }

.back-link { display: inline-flex; align-items: center; gap: var(--s1); margin-bottom: var(--s4); font-size: 14px; font-weight: 500; color: var(--muted); }
.back-link:hover { color: var(--accent); }

/* ---------- Login ---------- */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: var(--s4); }
.login-box { width: 100%; max-width: 380px; background: var(--card); padding: var(--s8); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.login-box form { display: flex; flex-direction: column; gap: var(--s4); margin-top: var(--s6); }
.login-box label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: var(--s4); max-width: 480px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.inline-form { display: flex; gap: var(--s2); margin-bottom: var(--s4); flex-wrap: wrap; }
.inline-form select, .inline-form textarea { flex: 1; min-width: 160px; }

.notes { list-style: none; padding: 0; margin: var(--s4) 0 0; display: flex; flex-direction: column; gap: var(--s2); }
.notes li { padding: var(--s3) var(--s4); background: var(--bg); border-radius: var(--radius-sm); font-size: 14px; line-height: 1.5; }

.pill-list { display: flex; flex-direction: column; gap: var(--s2); }
.pill-row { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: var(--s2) 10px; background: var(--bg); border-radius: var(--radius-sm); }

.vacancy-link-list { display: flex; flex-direction: column; gap: var(--s3); margin-bottom: var(--s3); }
.vacancy-link-block { background: var(--bg); border-radius: 12px; padding: var(--s4); }
.vacancy-link-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); font-size: 14px; font-weight: 700; margin-bottom: var(--s2); }
.vacancy-link-block .inline-form { margin-bottom: 0; }
.vacancy-link-block .inline-form select { min-width: 140px; }
.vacancy-link-add-title { font-size: 13px; font-weight: 700; color: var(--muted); margin: var(--s1) 0 var(--s2); }

.stats { display: flex; gap: var(--s4); margin-bottom: var(--s6); flex-wrap: wrap; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s6) var(--s8); text-align: center; box-shadow: var(--shadow); }
.stat .num { font-size: 36px; font-weight: 700; color: var(--accent); line-height: 1.2; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: start; }
@media (max-width: 900px) {
  .grid2 { grid-template-columns: 1fr; }
  .shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; align-items: center; padding: var(--s3) var(--s4); border-right: none; border-bottom: 1px solid var(--border); gap: var(--s3); }
  .sidebar-brand { padding: 0; }
  .sidebar-nav { flex-direction: row; flex: 1; overflow-x: auto; }
  .sidebar-user { border-top: none; padding: 0; }
  .content { padding: var(--s4); }
}

/* ---------- Воронка (kanban) ---------- */
.kanban { display: flex; gap: var(--s4); overflow-x: auto; padding-bottom: var(--s4); align-items: flex-start; }
.kanban-col { flex: 1 0 232px; min-width: 232px; background: var(--col-bg); border: 1px solid transparent; border-radius: 14px; padding: var(--s3); transition: background .15s, border-color .15s, box-shadow .15s; }
.kanban-col h3 { font-size: 13px; font-weight: 700; margin: 0 0 var(--s3); padding: 0 var(--s1); display: flex; align-items: center; }
.kanban-card { display: block; background: var(--card); border-radius: var(--radius-sm); padding: var(--s3) 14px; margin: 0 0 var(--s3); border: 1px solid var(--border); box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s, transform .15s; }
.kanban-card:hover { border-color: var(--accent); box-shadow: 0 4px 12px rgba(230, 23, 121, 0.12); }
.kanban-name { font-weight: 700; font-size: 14px; color: var(--text); }
.kanban-card[draggable="true"] { cursor: grab; }
.kanban-card.dragging { opacity: 0.45; cursor: grabbing; }
.kanban-col.drag-over { background: var(--accent-soft); border-color: var(--accent); box-shadow: 0 0 0 3px rgba(230, 23, 121, 0.15); }
.kanban-toast { position: fixed; bottom: var(--s6); left: 50%; transform: translateX(-50%); background: var(--text); color: #fff; padding: var(--s3) var(--s6); border-radius: var(--radius-sm); font-size: 14px; z-index: 50; box-shadow: var(--shadow-lg); }
.kanban-toast-error { background: var(--red); }

/* ---------- Resume-style candidate card ---------- */
.resume-header { display: flex; gap: var(--s6); align-items: flex-start; }
.resume-photo-wrap { display: flex; flex-direction: column; align-items: center; gap: var(--s3); flex-shrink: 0; }
.resume-photo { width: 120px; height: 120px; border-radius: var(--radius); object-fit: cover; border: 1px solid var(--border); }
.avatar-xl { width: 120px; height: 120px; border-radius: var(--radius); font-size: 40px; }
.resume-head-info { flex: 1; min-width: 0; }
.photo-form { margin: 0; }

.small-btn { padding: 6px var(--s3); font-size: 12px; }
.link-btn { background: none; border: none; color: var(--muted); font-size: 12px; padding: 0; cursor: pointer; }
.link-btn:hover { color: var(--red); text-decoration: underline; }

.exp-row { display: flex; gap: var(--s6); padding: var(--s4) 0; border-bottom: 1px solid var(--border); }
.exp-row:first-of-type { padding-top: 0; }
.exp-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.exp-dates { width: 160px; flex-shrink: 0; font-size: 13px; }
.exp-body { flex: 1; min-width: 0; font-size: 14px; }

.add-details { margin-top: var(--s4); }
.add-details summary { cursor: pointer; color: var(--accent); font-size: 13px; font-weight: 700; list-style: none; }
.add-details summary::-webkit-details-marker { display: none; }
.add-details[open] summary { margin-bottom: var(--s2); }

.status-history-list { list-style: none; padding: 0; margin: var(--s1) 0 0; display: flex; flex-direction: column; gap: var(--s1); }

.form-row { display: flex; gap: var(--s3); flex-wrap: wrap; }
.form-row label { flex: 1; min-width: 140px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.checkbox-label { flex-direction: row !important; align-items: center; gap: var(--s2) !important; font-size: 13px; }
.checkbox-label input { width: auto; accent-color: var(--accent); }

.chip-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { display: inline-flex; align-items: center; background: var(--blue-soft); color: var(--blue); border-radius: 999px; padding: 6px var(--s3); font-size: 13px; font-weight: 700; }
.chip-btn { border: none; cursor: pointer; }
.chip-btn:hover { background: #D4E5FB; }

/* ---------- Приоритет вакансий и внутренние данные ---------- */
.prio-1 { background: var(--accent-soft); color: var(--accent); }
.prio-2 { background: var(--amber-soft); color: var(--amber); }
.prio-3 { background: var(--green-soft); color: var(--green); }
.prio-0 { color: var(--muted); }
select.prio-select { padding: 4px var(--s2); font-size: 13px; border-radius: 8px; font-weight: 700; }
.badge.prio-1, .badge.prio-2, .badge.prio-3 { font-weight: 700; }
.internal-card { border: 1px solid #F3E3B8; background: #FFFBEF; }

/* ---------- Защита от «вылезающего» текста ---------- */
.content, .card, .kanban-card, .notes li, .exp-body, .kv, .vacancy-link-head, .pill-row, table.list td { overflow-wrap: break-word; }
.kv span:first-child { flex-shrink: 0; }
img { max-width: 100%; }
table.list th { white-space: nowrap; }
table.list td a[href^="tel:"] { white-space: nowrap; }
.cand-row > div:last-child { min-width: 0; }
.cand-sub a, .cand-sub { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filters select { max-width: 200px; min-width: 0; text-overflow: ellipsis; }
.filters .search-wrap { min-width: 240px; }
.notes li b { margin-right: 8px; }
.chip { max-width: 100%; text-align: left; overflow-wrap: anywhere; }
.chip-btn { font-family: inherit; }
.kanban-card { min-width: 0; }
.kanban-name, .kanban-card .muted { overflow-wrap: anywhere; }
.page-head h1 { overflow-wrap: anywhere; }
/* Список кандидатов: фиксированная сетка колонок — ничего не «уезжает» за край */
table.cand-table { table-layout: fixed; }
table.cand-table th, table.cand-table td { padding-left: 16px; padding-right: 16px; }
table.cand-table th:first-child, table.cand-table td:first-child { padding-left: 24px; width: 30%; }
table.cand-table th:nth-child(2) { width: auto; }
table.cand-table th:nth-child(3) { width: 14%; }
table.cand-table th:nth-child(4) { width: 176px; }
table.cand-table th:nth-child(5) { width: 200px; padding-right: 24px; text-align: right; }
table.cand-table td:nth-child(5) { white-space: nowrap; }
table.cand-table td:nth-child(4) a { white-space: nowrap; }
table.cand-table td:nth-child(5) { text-align: right; padding-right: 24px; overflow: hidden; text-overflow: ellipsis; }
table.cand-table td:nth-child(3) { overflow: hidden; text-overflow: ellipsis; }
/* Воронка: все колонки помещаются в экран, без обрезания справа */
.kanban-col { flex: 1 1 0; min-width: 168px; }
.add-details form { min-width: 0; }

/* ---------- Доводка по живому сайту ---------- */
.kanban-col { flex: 1 0 204px; min-width: 204px; }
.add-details summary { white-space: nowrap; font-size: 13px; }
.card h2 + p, .card p + h2 { margin-top: 0; }
.card p + h2, .card div + h2 { margin-top: 24px; }
table.list td:last-child .link-btn, table.list td .link-btn { white-space: nowrap; }
table.list td:last-child { white-space: nowrap; }
.kanban { scrollbar-width: thin; }


/* ==========================================================
   Тема v8 «Sayhire Dark» — как главный экран sayhire.ru:
   чёрный #0F0F10, карточки #1D1D22, розовый #E61779, лайм #A0DB01.
   Шрифты: Manrope (текст/заголовки) + Source Serif 4 курсив (подписи).
   ========================================================== */
:root {
  --bg: #0F0F10; --card: #1D1D22; --border: #2C2C33; --text: #F4F4F6; --muted: #A3A3AF;
  --surface-2: #17171B; --col-bg: #17171B; --dash: #34343C; --ink: #F4F4F6;
  --accent-soft: #3A1328; --blue: #7FB5FF; --blue-soft: #14304F;
  --green: #A0DB01; --green-soft: #26330A; --amber: #FFB04D; --amber-soft: #3A2A0B; --amber-ink: #FFC46B;
  --red: #FF7B6F; --red-soft: #3D1613; --lime: #A0DB01; --pink-text: #FF4FA3;
  --shadow: none; --shadow-lg: 0 10px 30px rgba(0,0,0,.5);
}
html { color-scheme: dark; }
body { font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 15px; font-weight: 500; line-height: 1.55; background: var(--bg); color: var(--text); }
h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: #fff; }
h2, h3 { color: #fff; font-weight: 800; }
a { color: var(--blue); }
a:hover { color: var(--pink-text); }
.page-head > div > p.muted, .page-head p.muted:first-of-type { font-family: 'Source Serif 4', Georgia, serif; font-style: italic; font-weight: 400; font-size: 18px; color: var(--muted); margin-top: 4px; }
.content { max-width: 1240px; margin: 0 auto; padding: 40px 48px 64px; width: 100%; }

/* меню */
.sidebar { background: var(--bg); color: #fff; border-right: 1px solid var(--border); padding: 28px 20px; }
.sidebar-brand { color: #fff; font-weight: 800; font-size: 22px; letter-spacing: -0.01em; }
.logo-dot { background: var(--accent); }
.logo-dot::after { color: #fff; }
.sidebar-nav a { color: #D9D9E0; border-radius: 999px; font-weight: 700; font-size: 15px; border: none; padding: 11px 16px; }
.sidebar-nav a svg { color: #8C8C99; width: 18px; height: 18px; }
.sidebar-nav a:hover { background: #1D1D22; color: #fff; }
.sidebar-nav a.active { background: var(--accent); color: #fff; font-weight: 800; }
.sidebar-nav a.active svg { color: #fff; }
.sidebar-user { border-top: 1px solid var(--border); }
.uname { color: #fff; font-weight: 800; }
.ulogout { color: var(--muted); }
.ulogout:hover { color: var(--pink-text); }
.avatar-sm { background: var(--accent); color: #fff; font-weight: 800; }

/* карточки */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 28px 32px; box-shadow: none; }
.card.table-card { padding: 0; overflow: hidden; }
.card > h2, .card > div > h2:first-child { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pink-text); margin: 0 0 18px; }
.card > h2 { margin-top: 28px !important; }
.card > h2:first-child { margin-top: 0 !important; }
.internal-card { background: #2A1121; border: 1px solid #5C1B40; }
.internal-card > h2 { color: var(--pink-text); }

/* кнопки: розовая основная, контурные для остальных */
.btn { background: var(--accent); color: #fff; border-radius: 999px; padding: 12px 22px; font-weight: 800; font-size: 14px; box-shadow: none; border: 1.5px solid var(--accent); }
.btn:hover { background: #FF2D8F; border-color: #FF2D8F; color: #fff; }
.btn:focus-visible { box-shadow: 0 0 0 3px rgba(230,23,121,.35); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid #3C3C45; }
.btn-outline:hover { background: #26262C; color: #fff; border-color: #fff; }
.btn-danger { background: transparent; color: var(--red); border: 1.5px solid #5A2A26; }
.btn-danger:hover { background: var(--red-soft); color: var(--red); border-color: #7A3630; }
.small-btn { padding: 8px 16px; font-size: 13px; }
.link-btn { color: var(--muted); }
.link-btn:hover { color: var(--red); }

/* поля */
input, select, textarea { background: #141417; color: var(--text); border-radius: 14px; padding: 12px 16px; border: 1.5px solid #34343C; font-size: 15px; font-weight: 500; }
input::placeholder, textarea::placeholder { color: #7B7B88; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(230,23,121,.18); }
select option { background: #1D1D22; color: #fff; }
.filters.card { padding: 18px 22px; }

/* таблицы */
table.list th { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: var(--muted); background: transparent; padding-top: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
table.list td { font-size: 15px; padding-top: 18px; padding-bottom: 18px; font-weight: 500; border-bottom: 1px solid var(--border); }
table.list tbody tr:hover { background: #24242A; }
.cand-name { font-size: 16px; font-weight: 800; color: #fff; }
.cand-sub { font-size: 13px; }
.avatar { font-weight: 800; }
table.cand-table td:nth-child(5) { font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; }

/* метки */
.badge { font-size: 13px; font-weight: 800; padding: 5px 12px; background: var(--blue-soft); color: var(--blue); }
.badge-green { background: var(--green-soft); color: var(--lime); }
.badge-gray { background: #2A2A31; color: var(--muted); }
.chip { font-weight: 800; background: var(--blue-soft); color: var(--blue); }
.chip-btn:hover { background: #1B4170; }
.count-pill { background: #2A2A31; font-weight: 800; color: #fff; }
.prio-1 { background: var(--accent-soft); color: var(--pink-text); }
.prio-2 { background: var(--amber-soft); color: var(--amber); }
.prio-3 { background: var(--green-soft); color: var(--lime); }
select.prio-select { border: none; }

.kv { font-size: 15px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.kv span { font-weight: 600; }
.kv b { font-weight: 800; color: #fff; }
.back-link { font-weight: 700; color: var(--muted); }
.back-link:hover { color: var(--pink-text); }
.exp-dates { font-weight: 700; }
.exp-row { border-bottom-color: var(--border); }
.muted { font-weight: 500; }
.notes li { border-radius: 14px; background: #26262C; }
.vacancy-link-block { background: #26262C; border-radius: 16px; }
.pill-row { background: #26262C; }
.add-details summary { font-weight: 800; color: var(--pink-text); }
.flash { background: var(--amber-soft); border: 1px solid #5A4416; color: var(--amber-ink); border-radius: 16px; }

/* воронка */
.kanban-col { background: #17171B; border: 1px solid var(--border); border-radius: 22px; padding: 16px; }
.kanban-col h3 { font-size: 14px; font-weight: 800; }
.kanban-card { background: #1D1D22; border-radius: 16px; border: 1px solid var(--border); box-shadow: none; padding: 14px 16px; }
.kanban-card:hover { border-color: var(--accent); background: #24242A; box-shadow: none; }
.kanban-name { font-size: 15px; font-weight: 800; color: #fff; }
.kanban-card .muted { font-size: 13px; }
.kanban-col.drag-over { background: #2A1020; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(230,23,121,.25); }
.kanban-toast { background: #fff; color: #0F0F10; }

/* вход, аналитика */
.login-page { background: var(--bg); }
.login-box { background: var(--card); border-radius: 26px; border: 1px solid var(--border); box-shadow: none; }
.login-box .btn { width: 100%; }
.login-box label { color: var(--muted); }
.stat { background: var(--card); border-radius: 22px; border: 1px solid var(--border); box-shadow: none; }
.stat .num { font-weight: 800; color: var(--lime); }
.form label, .form-row label { color: var(--muted); }


/* ---------- Список кандидатов: строки-карточки ---------- */
.cl { --cols: minmax(240px, 1.8fr) minmax(150px, 1fr) minmax(230px, 2fr) minmax(250px, 1.5fr); display: flex; flex-direction: column; gap: 10px; }
.cl-row { display: grid; grid-template-columns: var(--cols); column-gap: 24px; align-items: center; }
.cl-head { padding: 0 24px 4px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cl-item { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 16px 24px; cursor: pointer; transition: border-color .15s, background .15s; }
.cl-item:hover { border-color: var(--accent); background: #24242A; }
.cl-who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cl-who .avatar { width: 44px; height: 44px; font-size: 16px; }
.cl-who-text { min-width: 0; }
.cl-who .cand-name { font-size: 16px; font-weight: 800; color: #fff; overflow-wrap: anywhere; }
.cl-who .cand-sub { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.cl-cell { font-size: 15px; font-weight: 500; color: var(--text); min-width: 0; overflow-wrap: anywhere; line-height: 1.4; text-align: left; }
.cl-cell a { white-space: nowrap; }
.cl-money { font-size: 16px; font-weight: 800; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cl-empty { color: #5D5D69; font-weight: 500; }
.cl-stack { display: flex; flex-direction: column; gap: 6px; }
.cl-line { height: 44px; line-height: 44px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-line .badge { vertical-align: middle; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.3; }
/* список v10: колонки Вакансия / Статус */
.cl-line.cl-vac { display: flex; flex-direction: column; justify-content: center; line-height: 1.3; }
.cl-vac-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; color: var(--text); }
.cl-vac-co { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; font-family: 'Source Serif 4', Georgia, serif; font-style: italic; font-size: 14px; font-weight: 500; color: var(--pink-text); }
.cl-none { text-align: center; padding: 48px 0; }
@media (max-width: 900px) {
  .cl-head { display: none; }
  .cl-row { grid-template-columns: 1fr; row-gap: 6px; }
  .cl-cell::before { content: attr(data-label) ": "; color: var(--muted); font-size: 12px; font-weight: 700; }
}

/* ---------- Выпадающие списки без стрелки: нажимаемая «плитка» ---------- */
select { -webkit-appearance: none; appearance: none; background-image: none; cursor: pointer; field-sizing: content; text-overflow: ellipsis; }
select:hover { border-color: #5A5A66; }
select::-ms-expand { display: none; }
select.prio-select { padding: 6px 14px; text-align: left; }
