/* Talent Desk — local, responsive product interface. */
:root {
  color-scheme: light;
  --page: #f6f7fb;
  --surface: #ffffff;
  --surface-alt: #f9fafc;
  --surface-hover: #f6f7fc;
  --text: #202637;
  --text-soft: #50596b;
  --muted: #8790a2;
  --border: #e8ebf2;
  --border-strong: #dce1eb;
  --accent: #4f5ee8;
  --accent-hover: #414fce;
  --accent-soft: #eff0ff;
  --accent-text: #4a58d0;
  --green: #218569;
  --green-soft: #eaf7f1;
  --orange: #ad7833;
  --orange-soft: #fff5e7;
  --red: #c05963;
  --red-soft: #fdf0f1;
  --purple: #8060b9;
  --purple-soft: #f3eefb;
  --shadow-sm: 0 2px 4px rgb(30 38 64 / 2%);
  --shadow: 0 12px 36px rgb(25 33 57 / 9%);
  --radius: 12px;
  --sidebar-width: 220px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body[data-theme="dark"] {
  color-scheme: dark;
  --page: #141821;
  --surface: #1c2230;
  --surface-alt: #202735;
  --surface-hover: #262d3f;
  --text: #edf0f8;
  --text-soft: #b4bdd0;
  --muted: #8793aa;
  --border: #2c3446;
  --border-strong: #3b455b;
  --accent: #8b94ff;
  --accent-hover: #a0a7ff;
  --accent-soft: #2b3051;
  --accent-text: #a0a9ff;
  --green: #74cdb1;
  --green-soft: #203b35;
  --orange: #e5bd7c;
  --orange-soft: #3c3426;
  --red: #ed9da5;
  --red-soft: #402c37;
  --purple: #c0a4ef;
  --purple-soft: #342c47;
  --shadow-sm: 0 2px 4px rgb(0 0 0 / 5%);
  --shadow: 0 12px 36px rgb(0 0 0 / 22%);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--text); font-family: var(--font); font-size: 13px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { min-width: 32px; min-height: 32px; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { outline: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
button { touch-action: manipulation; }
svg { width: 18px; height: 18px; flex-shrink: 0; vertical-align: middle; }
button svg { pointer-events: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.3; letter-spacing: -.025em; }
strong { font-weight: 650; }
small { font-size: 11px; }
input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; vertical-align: middle; }
::selection { background: var(--accent-soft); color: var(--accent-text); }
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; }
.hidden { display: none !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link:focus { position: fixed !important; top: 10px; left: 10px; z-index: 300; width: auto !important; height: auto !important; margin: 0 !important; padding: 10px 15px !important; overflow: visible !important; clip: auto !important; border-radius: 7px; background: var(--surface); color: var(--accent-text); box-shadow: var(--shadow); }
.muted { color: var(--muted); }

/* Shell and navigation */
.app-shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; height: 100dvh; padding: 28px 15px 16px; border-right: 1px solid var(--border); background: var(--surface); z-index: 30; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 11px 26px; color: var(--text); }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; background: var(--accent); color: #fff; box-shadow: 0 3px 8px rgb(79 94 232 / 16%); font-size: 27px; font-weight: 750; line-height: 1; letter-spacing: -2px; }
.brand-mark svg { width: 21px; height: 21px; }
.brand-mark > span { margin-left: 1px; color: #c5caff; }
.brand-name { display: block; font-size: 18px; line-height: 1.2; font-weight: 750; letter-spacing: -.6px; }
.brand-sub { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; letter-spacing: .05px; font-weight: 450; white-space: nowrap; }
.workspace-switch { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 45px; padding: 8px 10px; margin-bottom: 26px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); text-align: left; font-size: 12px; font-weight: 600; }
.workspace-icon { display: inline-grid; place-items: center; width: 27px; height: 27px; flex: 0 0 27px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-alt); color: var(--text-soft); font-size: 9px; font-weight: 650; }
.workspace-switch > div { flex: 1; min-width: 0; }
.workspace-switch strong { display: block; font-size: 10px; }
.workspace-switch > div > span { display: block; margin-top: 1px; color: var(--muted); font-size: 9px; font-weight: 400; }
.workspace-chevron { color: var(--muted); font-size: 14px; }
.workspace-switch:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.workspace-switch > svg:last-child { width: 14px; height: 14px; margin-left: auto; color: var(--muted); }
.workspace-switch small { display: block; color: var(--muted); font-weight: 400; }
.nav-section { margin: 0 0 21px; }
.sidebar > .nav-section { padding: 0 12px; margin: 0 0 8px; color: var(--muted); font-size: 8px; font-weight: 650; letter-spacing: 1.1px; }
.sidebar > nav + .nav-section { margin-top: 25px; }
.nav-section > p, .nav-section > h3, .nav-section-title { padding: 0 12px; margin: 0 0 9px; color: var(--muted); font-size: 9px; font-weight: 650; letter-spacing: 1.25px; text-transform: uppercase; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 10px 12px; margin: 3px 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text-soft); text-align: left; font-size: 13px; font-weight: 500; transition: background .15s, color .15s; }
.nav-item:hover { color: var(--text); background: var(--surface-hover); }
.nav-item.active { background: var(--accent-soft); color: var(--accent-text); font-weight: 650; }
.nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; flex: 0 0 18px; color: var(--muted); }
.nav-item.active .nav-icon { color: var(--accent-text); }
.nav-label { flex: 1; }
.nav-count { display: inline-grid; place-items: center; min-width: 23px; padding: 0 6px; height: 20px; border-radius: 5px; background: var(--surface-alt); color: var(--muted); font-size: 10px; font-weight: 650; font-variant-numeric: tabular-nums; }
.nav-item.active .nav-count { color: var(--accent-text); background: var(--surface); }
.sidebar-bottom { margin-top: auto; padding-top: 16px; }
.storage-card { margin: 0 2px 18px; padding: 13px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-alt); color: var(--text-soft); font-size: 11px; }
.storage-card strong { display: block; margin-bottom: 3px; color: var(--text); font-size: 11px; }
.storage-title { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 10px; font-weight: 600; color: var(--text-soft); }
.status-dot { display: inline-block; flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.storage-card p { font-size: 10px; color: var(--muted); }
.storage-card .storage-track, .storage-card progress { display: block; width: 100%; height: 4px; margin-top: 10px; border: 0; border-radius: 5px; overflow: hidden; background: var(--border); }
.storage-card .storage-fill { height: 100%; background: var(--accent); border-radius: inherit; }
.storage-card progress::-webkit-progress-bar { background: var(--border); }
.storage-card progress::-webkit-progress-value { background: var(--accent); }
.user-card { display: flex; align-items: center; gap: 10px; padding: 14px 7px 0; border-top: 1px solid var(--border); font-size: 11px; }
.user-card strong { display: block; font-size: 11px; }
.user-card small { display: block; color: var(--muted); font-size: 10px; }
.user-card > div > span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.user-card .icon-button { margin-left: auto; }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: #eeeafd; color: #8a72b2; font-size: 11px; font-weight: 650; letter-spacing: .1px; }
.avatar.a0 { background: #edeafd; color: #8972b1; }
.avatar.a1 { background: #e4f3ee; color: #559480; }
.avatar.a2 { background: #e8eefb; color: #6c88be; }
.avatar.a3 { background: #fff0e6; color: #bb8a65; }
.avatar.a4 { background: #f9e9f0; color: #b37592; }
.avatar.a5 { background: #edf1e2; color: #899665; }
body[data-theme="dark"] .avatar.a0 { background: #37304a; color: #c7afea; }
body[data-theme="dark"] .avatar.a1 { background: #25433b; color: #9fd1bd; }
body[data-theme="dark"] .avatar.a2 { background: #2b3951; color: #a8bce3; }
body[data-theme="dark"] .avatar.a3 { background: #45352c; color: #e7bf98; }
body[data-theme="dark"] .avatar.a4 { background: #453041; color: #e0aac9; }
body[data-theme="dark"] .avatar.a5 { background: #383e2c; color: #becb9e; }
.workspace { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 32px; background: var(--surface); border-bottom: 1px solid var(--border); }
.breadcrumb { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; }
.breadcrumb strong, .breadcrumb span:last-child { color: var(--text-soft); font-weight: 500; }
.breadcrumb svg { width: 13px; height: 13px; }
.topbar-right { display: flex; align-items: center; gap: 13px; }
.topbar-date { color: var(--muted); font-size: 10px; }
.topbar-right > .avatar { width: 30px; height: 30px; flex-basis: 30px; font-size: 10px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 33px; height: 33px; padding: 0; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); }
.icon-button:hover { border-color: var(--border); background: var(--surface-hover); color: var(--text-soft); }
.icon-button.active { background: var(--accent-soft); color: var(--accent-text); }
.demo-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid var(--border); border-radius: 5px; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .2px; }
.demo-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #80b39c; }
.main-content { width: 100%; max-width: 1700px; padding: 20px 32px 40px; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 16px; }
.eyebrow { margin-bottom: 4px; color: var(--muted); font-size: 9px; line-height: 1.4; font-weight: 650; letter-spacing: 1.3px; text-transform: uppercase; }
.page-heading h1 { font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.85px; }
.page-description { margin-top: 5px; font-size: 13px; color: var(--muted); }
.page-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; padding-bottom: 2px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 37px; padding: 8px 13px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface); color: var(--text-soft); font-size: 12px; line-height: 1.4; font-weight: 600; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s; }
.button:hover { background: var(--surface-hover); border-color: var(--muted); text-decoration: none; }
.button svg { width: 15px; height: 15px; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 2px 3px rgb(79 94 232 / 10%); }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
body[data-theme="dark"] .button.primary { color: #171b34; }
.button.secondary { background: var(--surface); }
.button.ghost { background: transparent; border-color: transparent; color: var(--text-soft); box-shadow: none; }
.button.ghost:hover { background: var(--surface-hover); border-color: var(--border); }
.button.danger { background: var(--red-soft); color: var(--red); border-color: transparent; }
.button.danger:hover { border-color: var(--red); }
.button.small { min-height: 32px; padding: 6px 10px; font-size: 11px; }

/* Dashboard summary */
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 12px; }
.stat-card { position: relative; display: block; min-width: 0; padding: 11px 16px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); text-align: left; transition: border-color .15s, box-shadow .15s; }
button.stat-card:hover { border-color: var(--border-strong); box-shadow: 0 3px 12px rgb(30 38 64 / 4%); }
.stat-card.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-soft); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat-icon { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--accent-soft); color: var(--accent-text); }
.stat-icon svg { width: 16px; height: 16px; }
.stat-card:nth-child(2) .stat-icon { background: var(--orange-soft); color: var(--orange); }
.stat-card:nth-child(3) .stat-icon { background: var(--purple-soft); color: var(--purple); }
.stat-card:nth-child(4) .stat-icon { background: var(--green-soft); color: var(--green); }
.stat-value { margin-top: 5px; color: var(--text); font-size: 26px; line-height: 1.1; font-weight: 650; letter-spacing: -.85px; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--text-soft); font-size: 12px; font-weight: 500; }
.stat-value + .stat-label { margin-top: 5px; }
.stat-bottom { display: flex; align-items: center; gap: 5px; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.stat-bottom svg { width: 12px; height: 12px; }
.stat-bottom strong, .stat-bottom .positive { color: var(--green); font-weight: 500; }
.focus-strip { display: flex; align-items: center; gap: 19px; min-height: 44px; margin-bottom: 12px; padding: 5px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; }
.focus-label { display: flex; align-items: center; gap: 7px; color: var(--text-soft); font-size: 11px; font-weight: 650; white-space: nowrap; }
.focus-label svg { width: 14px; height: 14px; color: var(--orange); }
.focus-items { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.focus-item { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 11px; }
button.focus-item { min-height: 32px; }
button.focus-item:hover { color: var(--accent-text); }
.focus-item strong { color: var(--text-soft); font-weight: 650; }
.focus-item svg { width: 13px; height: 13px; }

/* Candidate list and controls */
.content-card { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; padding: 6px 20px; }
.card-title { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 14px; font-weight: 650; letter-spacing: -.2px; }
.card-title h2 { font-size: inherit; font-weight: inherit; }
.count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; padding: 2px 7px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface-alt); color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: 0; }
.view-toggle { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface-alt); }
.view-toggle button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 32px; min-height: 32px; padding: 4px 8px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--muted); font-size: 10px; }
.view-toggle button svg { width: 14px; height: 14px; }
.view-toggle button.active { border-color: var(--border); background: var(--surface); color: var(--text-soft); box-shadow: var(--shadow-sm); }
.view-toggle button:hover { color: var(--accent-text); }
.toolbar { display: flex; align-items: center; gap: 9px; padding: 0 20px 10px; }
.search-field { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 150px; height: 35px; padding: 0 11px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface); color: var(--muted); }
.search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-field > svg { width: 15px; height: 15px; }
.search-field input { width: 100%; min-width: 0; border: 0; outline: none; box-shadow: none; background: transparent; color: var(--text); font-size: 11px; }
.search-field input:focus-visible { box-shadow: none; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
.search-field kbd { display: inline-block; flex-shrink: 0; min-width: 18px; height: 19px; padding: 0 4px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface-alt); color: var(--muted); font-family: inherit; font-size: 10px; line-height: 17px; text-align: center; }
.filter-select { min-width: 132px; max-width: 195px; height: 35px; padding: 0 27px 0 10px; border: 1px solid var(--border-strong); border-radius: 7px; background-color: var(--surface); color: var(--text-soft); font-size: 10px; cursor: pointer; }
.filter-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 0 20px 10px; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 4px 9px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--muted); font-size: 10px; font-weight: 500; }
.chip:hover { background: var(--surface-hover); color: var(--text-soft); }
.chip.active { border-color: #dce0fc; color: var(--accent-text); background: var(--accent-soft); }
.chip svg { width: 12px; height: 12px; }
.chip span { opacity: .8; font-size: 9px; }
body[data-theme="dark"] .chip.active { border-color: #444c7b; }
.table-wrap { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.candidate-table { width: 100%; min-width: 940px; border-collapse: collapse; text-align: left; }
.candidate-table th { height: 39px; padding: 9px 14px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-alt); color: var(--muted); font-size: 10px; font-weight: 600; white-space: nowrap; }
.candidate-table td { height: 69px; padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--text-soft); font-size: 12px; vertical-align: middle; }
.candidate-table tr:last-child td { border-bottom: 0; }
.candidate-table th:first-child, .candidate-table td:first-child { width: 36px; padding-left: 20px; padding-right: 0; }
.candidate-table th:last-child, .candidate-table td:last-child { padding-right: 18px; }
.candidate-table tbody tr { transition: background .12s; }
.candidate-table tbody tr:hover { background: var(--surface-hover); }
.candidate-table tbody tr.selected, .candidate-table tbody tr:has(input[type="checkbox"]:checked) { background: var(--accent-soft); }
.candidate-table th button { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; color: inherit; font-size: inherit; font-weight: inherit; }
.candidate-table th button svg { width: 12px; height: 12px; }
.candidate-table input[type="checkbox"] { width: 13px; height: 13px; }
.candidate-person { display: flex; align-items: center; gap: 10px; min-width: 168px; text-align: left; }
button.candidate-person { width: 100%; padding: 0; border: 0; background: transparent; }
.candidate-person .avatar { width: 33px; height: 33px; flex-basis: 33px; font-size: 10px; }
.person-info { min-width: 0; }
.person-name { display: block; color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap; }
button.person-name { padding: 0; border: 0; background: transparent; text-align: left; }
button.candidate-person:hover .person-name, button.person-name:hover { color: var(--accent-text); }
.person-sub { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.job-label { display: block; color: var(--text-soft); font-size: 12px; line-height: 1.5; }
.job-label + .muted { display: block; margin-top: 3px; font-size: 10px; }
.skill-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; max-width: 180px; }
.tag { display: inline-flex; align-items: center; padding: 2px 6px; border: 1px solid var(--border); border-radius: 4px; color: var(--muted); background: var(--surface-alt); font-size: 10px; line-height: 1.5; white-space: nowrap; }
.stage-badge { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 3px 7px; border-radius: 5px; background: var(--surface-alt); color: var(--text-soft); font-size: 10px; font-weight: 500; white-space: nowrap; }
.stage-badge::before { content: ""; flex-shrink: 0; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.stage-badge.new { color: var(--accent-text); background: var(--accent-soft); }
.stage-badge.review { color: var(--orange); background: var(--orange-soft); }
.stage-badge.interview { color: var(--purple); background: var(--purple-soft); }
.stage-badge.offer, .stage-badge.hired { color: var(--green); background: var(--green-soft); }
.stage-badge.rejected { color: var(--red); background: var(--red-soft); }
.stage-badge.pool { color: var(--muted); background: var(--surface-alt); border: 1px solid var(--border); }
.date-cell { min-width: 91px; color: var(--text-soft); font-size: 11px; white-space: nowrap; }
.date-cell small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.date-cell.overdue { color: var(--red); }
.date-cell.overdue small { color: var(--red); opacity: .85; }
.cell-actions { display: flex; align-items: center; justify-content: flex-end; gap: 1px; }
.cell-actions .icon-button, .star-button { display: inline-flex; align-items: center; justify-content: center; width: 29px; height: 32px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #bcc2ce; }
.cell-actions .icon-button svg, .star-button svg { width: 15px; height: 15px; }
.cell-actions .icon-button:hover, .star-button:hover { color: var(--text-soft); background: var(--surface-alt); }
.star-button.active { color: #d3a449; }
.star-button.active svg { fill: #f8e7bc; }
body[data-theme="dark"] .star-button.active svg { fill: #5e4c27; }
.selection-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 20px; border-top: 1px solid var(--border); background: var(--accent-soft); color: var(--accent-text); font-size: 11px; }
.selection-bar > strong { margin-right: auto; }
.selection-bar select { max-width: 180px; }
.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 9px; }
.table-footer .pagination { display: flex; align-items: center; gap: 4px; }
.table-footer .icon-button { height: 28px; width: 28px; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 250px; padding: 42px 24px; text-align: center; color: var(--muted); }
.empty-state > svg { width: 33px; height: 33px; margin-bottom: 3px; color: var(--border-strong); }
.empty-state h2, .empty-state h3 { color: var(--text-soft); font-size: 15px; font-weight: 600; }
.empty-state p { max-width: 340px; font-size: 12px; }
.empty-state .button { margin-top: 8px; }

/* Pipeline, roles, tasks, insights and settings */
.board { display: flex; align-items: flex-start; gap: 13px; padding: 0 20px 20px; overflow-x: auto; overscroll-behavior-x: contain; }
.board-column { flex: 0 0 245px; min-width: 0; min-height: 300px; padding: 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-alt); }
.board-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 3px 2px 13px; color: var(--text-soft); font-size: 11px; font-weight: 650; }
.board-heading .count-badge { background: var(--surface); }
.board-card { width: 100%; padding: 13px; margin-bottom: 9px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-sm); text-align: left; cursor: pointer; transition: border-color .15s, transform .15s; }
.board-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.board-card:last-child { margin-bottom: 0; }
.board-card-top { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-bottom: 11px; }
.board-card .candidate-person { min-width: 0; gap: 8px; }
.board-card .person-name { white-space: normal; font-size: 11px; }
.board-card .person-sub { white-space: normal; }
.board-card .avatar { width: 30px; height: 30px; flex-basis: 30px; }
.board-card .job-label { margin-bottom: 8px; }
.board-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); color: var(--muted); font-size: 9px; }
.board-card-bottom svg { width: 12px; height: 12px; margin-right: 4px; }
.board-column .empty-state { min-height: 120px; padding: 20px 8px; font-size: 11px; }
.jobs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.job-card { display: flex; flex-direction: column; min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.job-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.job-card h2, .job-card h3 { font-size: 15px; font-weight: 650; }
.job-card p { color: var(--muted); font-size: 11px; }
.job-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 13px; margin: 9px 0 19px; color: var(--muted); font-size: 10px; }
.job-meta span { display: inline-flex; align-items: center; gap: 5px; }
.job-meta svg { width: 13px; height: 13px; }
.job-count { margin-top: auto; padding: 13px 0 16px; color: var(--text-soft); font-size: 11px; }
.job-count strong { color: var(--text); font-size: 25px; font-weight: 650; margin-right: 5px; }
.job-card-actions { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--border); padding-top: 14px; }
.job-card-actions .button:first-child { flex: 1; }
.tasks-list { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.task-group-title { padding: 13px 20px; border-bottom: 1px solid var(--border); background: var(--surface-alt); color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .3px; }
.task-row { display: flex; align-items: center; gap: 13px; min-height: 77px; padding: 15px 20px; border-bottom: 1px solid var(--border); }
.task-row:last-child { border-bottom: 0; }
.task-row:hover { background: var(--surface-hover); }
.task-check { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; padding: 0; border: 1px solid var(--border-strong); border-radius: 50%; background: var(--surface); color: var(--muted); }
.task-check:hover { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.task-check.done, .task-row.completed .task-check { background: var(--green-soft); border-color: var(--green-soft); color: var(--green); }
.task-info { flex: 1; min-width: 0; }
.task-title { display: block; color: var(--text); font-size: 12px; font-weight: 600; }
button.task-title { padding: 0; border: 0; background: transparent; text-align: left; }
button.task-title:hover { color: var(--accent-text); }
.task-row.completed .task-title { text-decoration: line-through; color: var(--muted); }
.task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; margin-top: 4px; color: var(--muted); font-size: 10px; }
.task-date { display: flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 5px; color: var(--text-soft); font-size: 10px; white-space: nowrap; }
.task-date svg { width: 13px; height: 13px; }
.task-date.overdue { color: var(--red); background: var(--red-soft); }
.insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin-bottom: 22px; }
.insight-card { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.insight-card h2, .insight-card h3 { color: var(--text-soft); font-size: 12px; font-weight: 600; }
.insight-number { margin: 16px 0 7px; color: var(--text); font-size: 33px; line-height: 1.2; font-weight: 650; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.insight-description { color: var(--muted); font-size: 11px; }
.insight-card .progress-track, .bar-track { height: 6px; overflow: hidden; border-radius: 4px; background: var(--border); }
.insight-card .progress-fill, .bar-fill { height: 100%; background: var(--accent); border-radius: inherit; }
.chart-row { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(80px, 3fr) 30px; align-items: center; gap: 13px; margin: 18px 0; color: var(--text-soft); font-size: 11px; }
.chart-row > :last-child { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.settings-card { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.settings-card h2, .settings-card h3 { margin-bottom: 6px; font-size: 15px; font-weight: 650; }
.settings-card > p { margin-bottom: 18px; color: var(--muted); font-size: 11px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.setting-row:last-child { border-bottom: 0; padding-bottom: 0; }
.setting-row strong { display: block; font-size: 11px; }
.setting-row p, .setting-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.setting-row .button, .setting-row input { flex-shrink: 0; }
.setting-row select { max-width: 165px; }

/* Candidate detail drawer */
.overlay { position: fixed; inset: 0; z-index: 70; background: rgb(23 29 48 / 30%); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .22s, visibility .22s; }
.overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; z-index: 80; display: flex; flex-direction: column; width: min(600px, 100vw); height: 100vh; height: 100dvh; border-left: 1px solid var(--border); background: var(--surface); box-shadow: -10px 0 60px rgb(19 29 50 / 12%); visibility: hidden; transform: translateX(102%); transition: transform .25s ease, visibility .25s; }
.drawer.open { visibility: visible; transform: translateX(0); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; min-height: 65px; padding: 15px 24px; border-bottom: 1px solid var(--border); }
.drawer-title { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 500; }
.drawer-title svg { width: 16px; height: 16px; }
.drawer-content { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px; }
.drawer-profile { display: flex; align-items: center; gap: 15px; margin-bottom: 24px; }
.drawer-profile > .avatar { width: 58px; height: 58px; flex-basis: 58px; font-size: 18px; border-radius: 16px; }
.profile-heading { flex: 1; min-width: 0; }
.profile-heading h2 { font-size: 21px; font-weight: 650; overflow-wrap: anywhere; }
.profile-heading p { margin-top: 4px; color: var(--text-soft); font-size: 12px; }
.profile-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; margin-top: 8px; color: var(--muted); font-size: 10px; }
.profile-meta a, .profile-meta span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.profile-meta svg { width: 13px; height: 13px; }
.drawer-tabs { display: flex; gap: 21px; margin: 0 0 23px; border-bottom: 1px solid var(--border); }
.drawer-tabs button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 39px; padding: 7px 0 12px; border: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 500; white-space: nowrap; }
.drawer-tabs button:hover { color: var(--text-soft); }
.drawer-tabs button.active { color: var(--accent-text); font-weight: 600; }
.drawer-tabs button.active::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--accent); border-radius: 2px 2px 0 0; }
.detail-section { margin-bottom: 25px; }
.detail-section:last-child { margin-bottom: 0; }
.detail-section h3 { margin-bottom: 13px; font-size: 12px; font-weight: 650; }
.detail-section > p { color: var(--text-soft); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section-heading h3 { margin: 0; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 20px; padding: 17px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-alt); }
.detail-item { min-width: 0; }
.detail-label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.detail-value { display: block; color: var(--text-soft); font-size: 12px; overflow-wrap: anywhere; }
.detail-value a { overflow-wrap: anywhere; }
.application-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 15px; margin-bottom: 8px; border: 1px solid var(--border); border-radius: 9px; }
.application-row > div { min-width: 0; }
.application-row strong { display: block; font-size: 12px; }
.application-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.application-row select { max-width: 155px; }
.note-card { padding: 14px 15px; margin-bottom: 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-alt); }
.note-card p { color: var(--text-soft); font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.note-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: var(--muted); font-size: 9px; }
.note-meta strong { color: var(--text-soft); font-size: 10px; }
.timeline { margin: 0; padding: 0 0 0 5px; list-style: none; }
.timeline-item { position: relative; padding: 0 0 22px 24px; border-left: 1px solid var(--border); color: var(--text-soft); font-size: 11px; }
.timeline-item:last-child { border-color: transparent; padding-bottom: 0; }
.timeline-dot { position: absolute; top: 2px; left: -4px; width: 7px; height: 7px; border: 2px solid var(--surface); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--border); }
.timeline-item small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.document-row { display: flex; align-items: center; gap: 11px; padding: 12px 13px; margin-bottom: 8px; border: 1px solid var(--border); border-radius: 8px; }
.document-row > svg { width: 27px; height: 27px; color: var(--accent-text); }
.document-row > div { flex: 1; min-width: 0; }
.document-row strong { display: block; font-size: 11px; overflow-wrap: anywhere; }
.document-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.document-row .button { flex-shrink: 0; }
.drawer-footer { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-shrink: 0; padding: 15px 24px; border-top: 1px solid var(--border); background: var(--surface); }
.drawer-footer .danger, .drawer-footer > .button:first-child:not(.primary) { margin-right: auto; }
.drawer-content .form-grid { margin-bottom: 18px; }
.drawer-content .skill-tags { max-width: none; }

/* Native dialogs, editing and import */
.modal { width: min(620px, calc(100vw - 32px)); max-height: min(90vh, 850px); max-height: min(90dvh, 850px); margin: auto; padding: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); box-shadow: 0 24px 100px rgb(18 26 48 / 24%); overflow: hidden; }
.modal[open] { display: flex; flex-direction: column; }
.modal::backdrop { background: rgb(23 29 48 / 35%); backdrop-filter: blur(3px); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; flex-shrink: 0; padding: 21px 24px 17px; border-bottom: 1px solid var(--border); }
.modal-header h2 { margin-top: 3px; font-size: 18px; font-weight: 650; }
.modal-header p { margin-top: 6px; color: var(--muted); font-size: 11px; }
.modal-content { min-height: 0; padding: 22px 24px; overflow-y: auto; overscroll-behavior: contain; }
.modal > form { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-shrink: 0; padding: 16px 24px; border-top: 1px solid var(--border); background: var(--surface-alt); }
.modal-footer > p, .modal-footer > small { margin-right: auto; color: var(--muted); font-size: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-field.full { grid-column: 1 / -1; }
.form-field > label { color: var(--text-soft); font-size: 11px; font-weight: 600; }
.form-field label small { margin-left: 4px; color: var(--muted); font-size: 9px; font-weight: 400; }
.form-field input:not([type="checkbox"]):not([type="radio"]), .form-field select, .form-field textarea { width: 100%; min-width: 0; min-height: 39px; padding: 9px 11px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface); color: var(--text); font-size: 12px; }
.form-field input[type="file"] { padding: 7px !important; font-size: 10px !important; }
.form-field input[type="file"]::file-selector-button { margin-right: 10px; padding: 5px 8px; border: 0; border-radius: 4px; background: var(--accent-soft); color: var(--accent-text); font: inherit; cursor: pointer; }
.form-field textarea { resize: vertical; min-height: 92px; line-height: 1.6; }
.form-field select { cursor: pointer; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-field input[aria-invalid="true"], .form-field select[aria-invalid="true"] { border-color: var(--red); }
.form-field input:disabled, .form-field select:disabled { background: var(--surface-alt); color: var(--muted); }
.field-help { color: var(--muted); font-size: 10px; line-height: 1.5; }
.form-error { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--red); border-radius: 7px; background: var(--red-soft); color: var(--red); font-size: 11px; }
.form-error:empty { display: none; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; min-height: 158px; padding: 25px; border: 1px dashed var(--border-strong); border-radius: 9px; background: var(--surface-alt); text-align: center; cursor: pointer; }
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone > svg { width: 27px; height: 27px; color: var(--accent-text); margin-bottom: 4px; }
.dropzone strong { color: var(--text-soft); font-size: 12px; }
.dropzone p { color: var(--muted); font-size: 10px; }
.dropzone input { max-width: 100%; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.compare-table th, .compare-table td { padding: 14px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.compare-table th { background: var(--surface-alt); color: var(--text-soft); font-size: 11px; font-weight: 650; }
.compare-table th:first-child, .compare-table td:first-child { width: 100px; color: var(--muted); font-size: 10px; }
.compare-table td { color: var(--text-soft); }
.compare-table .avatar { margin-bottom: 8px; }
.compare-table .skill-tags { max-width: none; }
.compare-table tr:last-child td { border-bottom: 0; }
.modal:has(.compare-table) { width: min(960px, calc(100vw - 32px)); }
.modal:has(.compare-table) .modal-content { overflow-x: auto; }
.info-banner { display: flex; align-items: flex-start; gap: 9px; padding: 12px 13px; margin-bottom: 18px; border: 1px solid var(--border); border-radius: 8px; background: var(--accent-soft); color: var(--accent-text); font-size: 11px; line-height: 1.65; }
.info-banner > svg { width: 16px; height: 16px; margin-top: 1px; }
.info-banner p { margin: 0; }
.confirm-text { color: var(--text-soft); font-size: 12px; line-height: 1.75; }
.confirm-text strong { color: var(--text); }
.confirm-text + .form-field { margin-top: 18px; }

/* Transient feedback */
.toast-stack { position: fixed; right: 24px; bottom: 24px; z-index: 200; display: flex; flex-direction: column; align-items: flex-end; gap: 9px; width: min(390px, calc(100vw - 32px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; min-height: 49px; padding: 12px 15px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text-soft); box-shadow: var(--shadow); font-size: 11px; pointer-events: auto; animation: toast-in .2s ease-out; }
.toast > svg { width: 17px; height: 17px; color: var(--green); }
.toast.error > svg { color: var(--red); }
.toast > span, .toast > p { min-width: 0; overflow-wrap: anywhere; }
.toast-action { min-height: 32px; padding: 4px 6px; margin-left: 6px; border: 0; border-radius: 5px; background: transparent; color: var(--accent-text); font-size: 10px; font-weight: 650; white-space: nowrap; }
.toast-action:hover { background: var(--accent-soft); }
.toast .icon-button { width: 26px; height: 28px; flex-shrink: 0; }
.loading { opacity: .65; pointer-events: none; }
.loading::after { content: ""; display: inline-block; width: 13px; height: 13px; margin-left: 7px; vertical-align: middle; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

/* Details used by the application views. */
.brand:hover { text-decoration: none; }
.stat-card .stat-icon.blue, .stat-icon.blue { color: var(--accent-text); background: var(--accent-soft); }
.stat-card .stat-icon.purple, .stat-icon.purple { color: var(--purple); background: var(--purple-soft); }
.stat-card .stat-icon.green, .stat-icon.green { color: var(--green); background: var(--green-soft); }
.stat-card .stat-icon.amber, .stat-icon.amber { color: var(--orange); background: var(--orange-soft); }
.stat-bottom > svg { margin-left: auto; color: var(--muted); }
.sort-select { height: 32px; max-width: 160px; margin-left: auto; padding: 5px 22px 5px 9px; border: 1px solid transparent; border-radius: 6px; background: var(--surface); color: var(--muted); font-size: 10px; cursor: pointer; }
.sort-select:hover { border-color: var(--border); color: var(--text-soft); }
.clear-filters { border-color: transparent; color: var(--muted); }
.clear-filters:hover { border-color: var(--border); }
.candidate-table { table-layout: fixed; min-width: 900px; }
.candidate-table th:nth-child(2) { width: 26%; }
.candidate-table th:nth-child(3) { width: 21%; }
.candidate-table th:nth-child(4) { width: 18%; }
.candidate-table th:nth-child(5) { width: 20%; }
.candidate-table th:last-child { width: 96px; }
.candidate-table tbody tr { cursor: pointer; }
.candidate-table .candidate-person { min-width: 0; }
.candidate-table .person-info { flex: 1; }
.candidate-table .person-name { width: 100%; min-height: 20px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; }
.candidate-table .person-sub { overflow: hidden; text-overflow: ellipsis; }
.candidate-table .location-sub { margin-top: 2px; font-size: 9px; }
.location-sub > span { margin: 0 3px; color: var(--border-strong); }
.candidate-table .job-label { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 11px; line-height: 1.45; }
.candidate-table .job-label + .stage-badge { margin-top: 5px; }
.candidate-table .skill-tags { max-width: none; }
.tag.more { color: var(--accent-text); background: var(--accent-soft); border-color: transparent; }
.stage-badge > span:empty { display: none; }
button.date-cell { display: block; width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; text-align: left; }
button.date-cell > span { display: flex; align-items: center; gap: 5px; line-height: 1.5; }
button.date-cell svg { width: 12px; height: 12px; }
button.date-cell small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 9px; }
button.date-cell em { display: block; margin-top: 2px; font-size: 8px; font-style: normal; }
button.date-cell:hover > span { text-decoration: underline; text-underline-offset: 3px; }
.no-action { color: var(--muted); font-size: 10px; }
.pagination { display: flex; align-items: center; gap: 7px; }
.pagination > span { min-width: 33px; text-align: center; font-variant-numeric: tabular-nums; }
.pagination .icon-button { font-size: 19px; font-weight: 400; line-height: 1; }
.table-footer { flex-wrap: wrap; }
.table-hint { color: var(--muted); font-size: 9px; }
.select-cell { cursor: default; }
.location-filter { min-width: 145px; }
.selection-bar { position: sticky; bottom: 18px; z-index: 35; justify-content: space-between; margin: 16px 0 0; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.selection-bar > span { display: inline-flex; align-items: center; gap: 6px; color: var(--text-soft); }
.selection-bar > span > svg { margin-right: 3px; color: var(--accent-text); }
.selection-bar > div { display: flex; flex-wrap: wrap; gap: 6px; max-width: 100%; }
.board-hint { padding: 1px 20px 15px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.board-empty { display: grid; place-items: center; min-height: 106px; padding: 15px; border: 1px dashed var(--border-strong); border-radius: 7px; color: var(--muted); font-size: 10px; text-align: center; }
.board-card[draggable="true"] { cursor: grab; }
.board-card[draggable="true"]:active { cursor: grabbing; }
.board-card > .person-name { max-width: 100%; min-height: 25px; overflow: hidden; text-overflow: ellipsis; }
.board-card > .person-sub { margin-top: 1px; }
.board-card > .skill-tags { margin-top: 12px; max-width: none; }
.board-card-top .avatar { width: 33px; height: 33px; }
.job-symbol { display: inline-grid; place-items: center; width: 39px; height: 39px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); }
.job-symbol svg { width: 19px; height: 19px; }
.job-status { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 4px 7px; border-radius: 5px; font-size: 9px; white-space: nowrap; }
.job-status::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.job-status.open { color: var(--green); background: var(--green-soft); }
.job-status.paused { color: var(--orange); background: var(--orange-soft); }
.job-card-top { align-items: center; gap: 8px; margin-bottom: 18px; }
.job-card .job-meta { gap: 5px 7px; margin: 8px 0 14px; line-height: 1.6; }
.job-card .job-description { min-height: 56px; margin-bottom: 18px; color: var(--text-soft); font-size: 12px; line-height: 1.65; }
.job-card > .detail-label { margin-bottom: 8px; font-size: 8px; letter-spacing: .75px; }
.job-card > .skill-tags { max-width: none; min-height: 43px; align-content: flex-start; }
.job-pipeline { display: flex; gap: 3px; height: 5px; margin: 20px 0 17px; overflow: hidden; border-radius: 4px; background: var(--surface-alt); }
.pipeline-segment { min-width: 4px; height: 100%; border-radius: 2px; }
.pipeline-segment.new, .distribution-fill.new { background: #8895ef; }
.pipeline-segment.review, .distribution-fill.review { background: #dfb96a; }
.pipeline-segment.interview, .distribution-fill.interview { background: #ab8cda; }
.pipeline-segment.offer, .distribution-fill.offer { background: #7dbaa7; }
.pipeline-segment.hired, .distribution-fill.hired { background: #4f9a82; }
.pipeline-segment.rejected, .distribution-fill.rejected { background: #dca0a8; }
.job-card-actions { margin-top: auto; }
.job-card-actions .job-count { flex: 1; margin: 0; padding: 0; font-size: 10px; }
.job-card-actions .job-count strong { display: block; margin-bottom: 1px; font-size: 22px; line-height: 1.2; }
.job-card-actions .button { flex-shrink: 0; }
.tasks-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.content-card > .tasks-list { border: 0; border-top: 1px solid var(--border); border-radius: 0; }
.task-check.checked { background: var(--green-soft); border-color: transparent; color: var(--green); }
.task-meta > button { padding: 0; border: 0; background: transparent; color: var(--accent-text); text-align: left; font-size: inherit; }
.task-meta > button:hover { text-decoration: underline; text-underline-offset: 3px; }
.task-date { flex-direction: column; align-items: flex-end; gap: 2px; }
.task-date small { font-size: 9px; }
.insight-card { display: flex; flex-direction: column; align-items: flex-start; }
.insight-card > .insight-description { margin: 9px 0 16px; line-height: 1.7; }
.insight-card > .button { margin-top: auto; margin-left: -8px; padding-left: 8px; }
.distribution { padding: 0 20px 20px; }
.distribution-row { display: grid; grid-template-columns: 105px minmax(0, 1fr) 22px; align-items: center; gap: 13px; width: 100%; min-height: 40px; padding: 9px 0; border: 0; background: transparent; color: var(--text-soft); text-align: left; font-size: 11px; }
.distribution-row:hover { color: var(--accent-text); }
.distribution-row > strong { text-align: right; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.distribution-track { display: block; height: 6px; border-radius: 4px; overflow: hidden; background: var(--surface-alt); }
.distribution-fill { display: block; height: 100%; border-radius: inherit; }
.clarifications { padding: 0 20px 15px; }
.clarification-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--border); background: transparent; text-align: left; }
.clarification-row:last-child { border: 0; }
.clarification-row > span:not(.avatar) { flex: 1; min-width: 0; }
.clarification-row strong { display: block; color: var(--text); font-size: 11px; font-weight: 600; }
.clarification-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.clarification-row > svg { width: 14px; color: var(--muted); }
.clarification-row:hover strong, .clarification-row:hover > svg { color: var(--accent-text); }
.settings-card h2 > svg { width: 17px; height: 17px; margin: 0 5px 2px 0; color: var(--accent-text); }
.settings-card .info-banner { margin: 17px 0 0; }
.settings-card .page-actions { flex-wrap: wrap; max-width: none; justify-content: flex-start; }
.drawer > .drawer-profile { flex-shrink: 0; padding: 24px 24px 0; margin-bottom: 17px; }
.drawer-quick-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 0 24px 16px; }
.drawer > .drawer-tabs { flex-shrink: 0; margin: 0 24px; }
.drawer > .drawer-content { padding-top: 23px; }
.drawer-footer > span { flex: 1; min-width: 0; margin-right: auto; color: var(--muted); font-size: 10px; line-height: 1.6; }
.profile-summary { margin-bottom: 14px; line-height: 1.8; }
.application-row > select { min-width: 130px; min-height: 34px; padding: 7px 22px 7px 9px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface); color: var(--text-soft); font-size: 11px; }
.drawer-content .task-row { padding: 12px 0; gap: 10px; }
.drawer-content .task-date { font-size: 9px; }
.drawer-content .task-date small { font-size: 8px; }
.drawer-content .task-title { font-size: 11px; }
.drawer-content .task-meta { font-size: 9px; gap: 3px 6px; }
.detail-section > .muted { margin-bottom: 12px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.section-heading > svg { width: 15px; height: 15px; color: var(--purple); }
.question-card { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; padding: 13px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-alt); }
.question-card > span { display: inline-grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; border-radius: 6px; background: var(--purple-soft); color: var(--purple); }
.question-card svg { width: 13px; height: 13px; }
.question-card strong { display: block; margin: 2px 0 4px; font-size: 11px; }
.question-card p { color: var(--text-soft); font-size: 11px; line-height: 1.7; }
.question-card small { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; }
.note-submit { display: flex; justify-content: flex-end; margin-top: 10px; }
.cv-text { padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-alt); color: var(--text-soft); font-size: 12px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.dropzone > span { max-width: 290px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.modal.wide-modal { width: min(960px, calc(100vw - 32px)); }
.wide-modal .modal-content > p { margin-bottom: 20px; font-size: 12px; line-height: 1.7; }
.compare-table { table-layout: fixed; min-width: 610px; }
.compare-table th:first-child, .compare-table td:first-child { width: 140px; }
.compare-table thead th > strong { display: block; color: var(--text); font-size: 13px; }
.compare-table thead th > small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; font-weight: 400; }
.compare-table tbody th { font-size: 11px; font-weight: 500; }
.compare-table td { line-height: 1.7; }
.evidence-yes { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-size: 10px; }
.evidence-yes svg { width: 13px; height: 13px; }
.help-intro { margin-bottom: 17px; color: var(--text-soft); font-size: 13px; line-height: 1.7; }
.help-list { margin: 0 0 20px; padding: 0 0 0 20px; }
.help-list li { padding-left: 5px; margin-bottom: 12px; color: var(--text-soft); font-size: 12px; line-height: 1.8; }
.help-list li::marker { color: var(--accent-text); font-weight: 650; }
.help-list + .info-banner { margin-bottom: 0; }
.modal-content form > .form-field + .form-field { margin-top: 16px; }
.modal-content form > .field-help { margin-top: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Adapt to tablets without sacrificing the working canvas. */
@media (min-width: 1600px) {
  .main-content { padding-top: 34px; }
  .candidate-table td { height: 74px; }
  .candidate-table th, .candidate-table td { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 1200px) {
  .main-content { padding: 25px 24px 35px; }
  .topbar { padding: 0 24px; }
  .page-heading h1 { font-size: 24px; }
  .page-actions { gap: 7px; }
  .button { padding: 8px 11px; }
  .stats-grid { gap: 11px; }
  .stat-card { padding: 15px; }
  .jobs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar { flex-wrap: wrap; }
  .search-field { flex: 1 1 220px; }
  .filter-select { flex: 1 1 125px; max-width: 190px; }
  .focus-strip { gap: 13px; }
  .focus-items { gap: 7px 12px; }
}
@media (max-width: 1050px) {
  :root { --sidebar-width: 76px; }
  .sidebar { padding: 24px 11px 15px; align-items: center; overflow-x: hidden; }
  .brand { justify-content: center; padding: 0 0 24px; width: 100%; }
  .brand-name, .brand-sub, .brand > div:not(.brand-mark), .brand > span:not(.brand-mark) { display: none; }
  .workspace-switch { justify-content: center; width: 39px; min-height: 39px; padding: 7px; margin-bottom: 24px; }
  .workspace-switch > span:not(.avatar):not(.workspace-icon), .workspace-switch > div:not(.avatar), .workspace-switch > svg:last-child:not(:first-child) { display: none; }
  .workspace-switch .avatar { width: 25px; height: 25px; flex-basis: 25px; font-size: 9px; }
  .sidebar nav, .sidebar .nav-section { width: 100%; }
  .nav-section { margin-bottom: 22px; }
  .sidebar > .nav-section { display: none; }
  .sidebar > #quick-nav { margin-top: 18px; }
  .nav-section > p, .nav-section > h3, .nav-section-title, .nav-label, .nav-count { display: none; }
  .nav-item { position: relative; justify-content: center; width: 44px; min-height: 44px; padding: 11px; margin: 4px auto; }
  .nav-icon, .nav-icon svg { width: 19px; height: 19px; }
  .sidebar-bottom { width: 100%; }
  .storage-card { display: none; }
  .user-card { justify-content: center; padding: 16px 0 0; }
  .user-card > div:not(.avatar), .user-card > span:not(.avatar), .user-card .icon-button { display: none; }
  .user-card > .avatar { width: 32px; height: 32px; flex-basis: 32px; }
  .insight-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .insight-card { padding: 18px; }
}
@media (max-width: 800px) {
  .main-content { padding: 23px 20px 30px; }
  .topbar { padding: 0 20px; height: 61px; }
  .page-heading { align-items: flex-start; gap: 15px; margin-bottom: 21px; }
  .page-heading h1 { font-size: 23px; }
  .page-description { max-width: 320px; line-height: 1.6; }
  .page-actions { flex-wrap: wrap; justify-content: flex-end; max-width: 210px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card { padding: 15px 17px; }
  .focus-strip { align-items: flex-start; gap: 10px; }
  .focus-label { padding-top: 2px; }
  .focus-items { gap: 5px 13px; }
  .focus-item { font-size: 9px; }
  .settings-grid { grid-template-columns: 1fr; }
  .insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .insight-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tasks-stats > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .card-header { padding-left: 16px; padding-right: 16px; }
  .toolbar { padding-left: 16px; padding-right: 16px; }
  .filter-chips { padding-left: 16px; padding-right: 16px; }
  .filter-select { max-width: none; }
  .candidate-table { min-width: 850px; }
}
@media (max-width: 700px) {
  :root { --sidebar-width: 63px; }
  .sidebar { padding: 20px 7px 12px; }
  .brand { padding-bottom: 24px; }
  .brand-mark { width: 33px; height: 33px; flex-basis: 33px; border-radius: 9px; }
  .workspace-switch { display: none; }
  .nav-item { width: 43px; min-height: 43px; }
  .nav-section { margin-bottom: 18px; }
  .main-content { padding: 22px 15px 30px; }
  .topbar { padding: 0 15px; height: 58px; }
  .topbar-right { gap: 7px; }
  .topbar-date { display: none; }
  .breadcrumb { font-size: 10px; gap: 5px; }
  .breadcrumb svg { width: 11px; }
  .demo-pill { font-size: 8px; padding: 3px 6px; }
  .page-heading { flex-direction: column; align-items: stretch; gap: 15px; }
  .page-description { max-width: none; font-size: 11px; }
  .page-actions { justify-content: flex-start; flex-wrap: wrap; max-width: none; padding: 0; }
  .page-actions .button { flex: 0 1 auto; }
  .stats-grid { gap: 10px; margin-bottom: 14px; }
  .stat-card { padding: 13px; }
  .stat-label { font-size: 10px; }
  .stat-icon { width: 27px; height: 27px; border-radius: 7px; }
  .stat-icon svg { width: 14px; height: 14px; }
  .stat-value { font-size: 26px; }
  .stat-bottom { font-size: 8px; gap: 3px; line-height: 1.6; }
  .focus-strip { flex-direction: column; gap: 8px; margin-bottom: 20px; padding: 11px 13px; }
  .focus-items { gap: 7px 13px; }
  .card-header { min-height: 62px; padding: 14px 13px; }
  .card-title { gap: 6px; font-size: 13px; }
  .view-toggle button { min-height: 32px; padding: 4px 6px; }
  .view-toggle button span { display: none; }
  .toolbar { gap: 7px; padding: 0 13px 12px; }
  .search-field { flex-basis: 100%; min-width: 0; }
  .filter-select { flex-basis: calc(50% - 7px); width: calc(50% - 7px); min-width: 0; max-width: none; }
  .toolbar > .button { min-height: 37px; }
  .filter-chips { gap: 5px; padding: 0 13px 13px; }
  .chip { padding: 4px 7px; min-height: 32px; font-size: 9px; }
  .table-footer { padding: 12px 13px; font-size: 8px; }
  .table-hint { flex-basis: 100%; font-size: 8px; }
  .selection-bar { padding: 10px 13px; gap: 7px; }
  .selection-bar > strong { width: 100%; }
  .board { padding: 0 13px 14px; gap: 10px; }
  .board-column { flex-basis: 235px; }
  .jobs-grid { grid-template-columns: 1fr; gap: 13px; }
  .job-card { padding: 18px; }
  .task-row { flex-wrap: wrap; gap: 10px; padding: 14px; }
  .task-group-title { padding: 11px 14px; }
  .task-check { width: 30px; height: 30px; }
  .task-info { flex-basis: calc(100% - 45px); }
  .task-date { margin-left: 40px; padding-left: 0; }
  .task-date.overdue { padding-left: 7px; }
  .task-row > .icon-button { margin-left: auto; }
  .settings-card { padding: 18px; }
  .setting-row { gap: 10px; }
  .setting-row .button { font-size: 10px; padding: 7px 9px; }
  .insight-card { padding: 15px; }
  .insight-card h3 { font-size: 11px; }
  .insight-number { font-size: 29px; }
  .insight-description { font-size: 10px; }
  .drawer-header { padding: 13px 19px; min-height: 60px; }
  .drawer > .drawer-profile { padding: 20px 20px 0; }
  .drawer-quick-actions { padding: 0 20px 16px; }
  .drawer > .drawer-tabs { margin: 0 20px; }
  .drawer-content { padding: 20px; }
  .drawer-footer { padding: 14px 20px; }
  .drawer-tabs { gap: 18px; }
  .modal { width: calc(100vw - 24px); max-height: 92dvh; border-radius: 12px; }
  .modal-header { padding: 18px 19px 15px; }
  .modal-content { padding: 19px; }
  .modal-footer { padding: 14px 19px; }
  .modal:has(.compare-table) { width: calc(100vw - 24px); }
  .compare-table { min-width: 570px; }
  .toast-stack { right: 16px; bottom: 16px; }
  .board-hint { padding-left: 13px; padding-right: 13px; font-size: 10px; }
}
@media (max-width: 500px) {
  .card-header { flex-wrap: wrap; gap: 9px; }
  .card-header > .view-toggle { margin-left: auto; }
  .card-title { max-width: 100%; }
  .sort-select { max-width: none; margin-left: 0; }
  .distribution-row { grid-template-columns: 92px minmax(0, 1fr) 20px; gap: 8px; font-size: 10px; }
  .distribution, .clarifications { padding-left: 15px; padding-right: 15px; }
}
@media (max-width: 420px) {
  :root { --sidebar-width: 56px; }
  .sidebar { padding-left: 5px; padding-right: 5px; }
  .nav-item { width: 39px; min-height: 41px; }
  .nav-icon svg { width: 17px; height: 17px; }
  .brand-mark { width: 31px; height: 31px; flex-basis: 31px; }
  .main-content { padding-left: 12px; padding-right: 12px; }
  .topbar { padding: 0 12px; }
  .topbar-right { gap: 3px; }
  .topbar-right .demo-pill { display: none; }
  .topbar-right > .avatar { width: 27px; height: 27px; flex-basis: 27px; font-size: 9px; }
  .page-heading h1 { font-size: 22px; }
  .page-actions { gap: 6px; }
  .page-actions .button { padding: 8px 9px; font-size: 10px; }
  .stats-grid { gap: 8px; }
  .stat-card { padding: 11px; }
  .stat-icon { width: 25px; height: 25px; }
  .stat-value { font-size: 24px; }
  .stat-bottom { flex-wrap: wrap; margin-top: 8px; }
  .stat-top { gap: 4px; }
  .stat-label { font-size: 9px; }
  .view-toggle button { padding: 4px; min-width: 32px; }
  .card-title { font-size: 12px; }
  .count-badge { min-width: 21px; padding: 2px 5px; font-size: 8px; }
  .form-grid { grid-template-columns: 1fr; gap: 15px; }
  .form-field.full { grid-column: auto; }
  .detail-grid { gap: 14px; padding: 14px; }
  .drawer-content { padding: 17px; }
  .drawer > .drawer-profile { padding: 17px 17px 0; }
  .drawer-quick-actions { padding-left: 17px; padding-right: 17px; }
  .drawer > .drawer-tabs { margin-left: 17px; margin-right: 17px; }
  .drawer-profile { gap: 12px; }
  .drawer-profile > .avatar { width: 49px; height: 49px; flex-basis: 49px; font-size: 16px; }
  .profile-heading h2 { font-size: 18px; }
  .drawer-tabs { gap: 15px; }
  .drawer-tabs button { font-size: 10px; }
  .drawer-footer { flex-wrap: wrap; gap: 6px; padding: 12px 17px; }
  .drawer-footer .button { padding: 8px 10px; font-size: 10px; }
  .document-row { gap: 8px; }
  .document-row .button { padding: 6px; font-size: 9px; }
  .application-row { padding: 12px; }
  .setting-row { align-items: flex-start; flex-wrap: wrap; }
  .setting-row > :first-child { flex: 1 1 100%; }
  .modal-header h2 { font-size: 16px; }
  .modal-footer { flex-wrap: wrap; }
  .modal-footer > p, .modal-footer > small { flex-basis: 100%; margin-bottom: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .sidebar, .topbar, .page-actions, .toolbar, .filter-chips, .view-toggle, .cell-actions, .toast-stack, .drawer, .overlay { display: none !important; }
  .app-shell { display: block; }
  .main-content { padding: 0; max-width: none; }
  .content-card, .stat-card, .job-card { box-shadow: none; }
  .table-wrap { overflow: visible; }
  .candidate-table { min-width: 0; }
  body { background: #fff; color: #202637; }
}
