﻿/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Core palette */
  --forest-deep:  #002621;   /* deep teal-green - header, sidebar */
  --forest:       #065B4E;   /* mid forest - active states, text accents */
  --forest-mid:   #1E3733;   /* medium teal-green */
  --sage:         #52796F;   /* muted sage - secondary text, subtle accents */

  /* Teal accent - used only for interactive elements */
  --teal:         #1F6E6C;
  --teal-light:   #5FCDD9;

  /* Legacy aliases */
  --gold:         var(--sage);
  --gold-light:   #EEF5F0;
  --cyan:         var(--forest);
  --purple:       var(--forest-mid);
  --purple-light: #E8F2EE;

  /* Surface */
  --bg:       #FAF8F4;
  --surface:  #FFFFFF;
  --border:   transparent;

  /* Text */
  --text:       #04BFAD;
  --text-muted: #5F7A78;

  /* Semantic */
  --primary:       var(--teal);
  --primary-light: #E0F7F5;
  --danger:        #B91C1C;
  --danger-light:  #FEF2F2;
  --success:       var(--teal);
  --success-light: var(--teal-light);
  --warning:       var(--sage);
  --warning-light: #EEF5F0;

  --shadow:    0 1px 3px rgba(11,45,40,.07), 0 1px 2px rgba(11,45,40,.05);
  --shadow-md: 0 4px 16px rgba(11,45,40,.12);
  --radius:    10px;
  --radius-sm: 6px;
  --radius-pill: 999px;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
}

/* ── Login screen ── */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg); padding: 24px;
}
.login-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 40px 36px;
  width: 100%; max-width: 400px; box-shadow: var(--shadow-md);
}
.login-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.login-subtitle {
  font-size: 13px; color: var(--text-muted); margin-bottom: 28px;
}
.login-error {
  background: var(--danger-light); color: var(--danger);
  border: 1px solid #fca5a5; border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 13px; margin-bottom: 12px;
}

/* ── Header ── */
.header {
  background: var(--forest-deep);
  border-bottom: 1px solid var(--forest-mid);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: 1600px; margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 22px; }
.logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #ffffff;
  letter-spacing: -.3px;
}
.logo-text .logo-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--teal);
  margin-left: 8px;
  letter-spacing: .3px;
}

/* ── Tabs ── */
.tab-bar {
  background: var(--forest-deep);
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  padding: 0 24px;
  max-width: 1600px; margin: 0 auto;
  gap: 2px;
}
.tab {
  background: none; border: none; cursor: pointer;
  padding: 14px 20px 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,.5);
  border-bottom: 2px solid transparent;
  transition: all .15s;
  display: flex; align-items: center; gap: 8px;
  text-transform: lowercase;
  letter-spacing: .2px;
}
.tab:hover { color: rgba(255,255,255,.85); }
.tab.active { color: #04BFAD; border-bottom-color: #04BFAD; }
.tab-later { margin-left: auto; }
.tab-gdpr { }
.badge {
  background: rgba(4,191,173,.18);
  color: #04BFAD;
  font-size: 11px; font-weight: 700;
  padding: 1px 7px; border-radius: var(--radius-pill);
}
.badge-gdpr     { background: rgba(185,28,28,.18); color: #fca5a5; }
.badge-rejected { background: rgba(185,28,28,.18); color: #fca5a5; }
.badge-hired    { background: rgba(34,197,94,.18);  color: #86efac; }
.badge-activity { background: rgba(59,130,246,.18); color: #93c5fd; }

/* ── New deployment banner ── */
.update-banner {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: #1e40af; color: #fff;
  padding: 10px 20px; font-size: 13px; font-weight: 500;
}
.update-banner-btn {
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.4);
  color: #fff; padding: 4px 14px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600; cursor: pointer;
}
.update-banner-btn:hover { background: rgba(255,255,255,.32); }

/* ── Reminder banner ── */
.reminder-banner {
  max-width: 1600px; margin: 0 auto;
  padding: 14px 24px 0;
}
.reminder-inner {
  background: var(--gold-light);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,38,33,.08);
  padding: 12px 16px;
  display: flex; align-items: flex-start; gap: 12px;
}
.reminder-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.reminder-content { flex: 1; }
.reminder-title {
  font-size: 12px; font-weight: 700;
  color: var(--text-muted);
  text-transform: lowercase;
  letter-spacing: .3px;
  margin-bottom: 8px;
}
.reminder-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.reminder-chip {
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
  cursor: pointer; transition: all .15s;
  display: flex; align-items: center; gap: 6px;
  text-transform: lowercase;
}
.reminder-chip:hover { background: #F0E4C8; border-color: var(--gold); }
/* overdue follow-up - amber */
.reminder-chip.overdue { background: #fff7ed; color: #9a3412; }
.reminder-chip.overdue:hover { background: #fed7aa; }
/* reach out today */
.reminder-chip.info { background: var(--primary-light); color: var(--forest); }
.reminder-chip.info:hover { background: #d8ece5; }
/* GDPR removal - red */
.reminder-chip.remove { background: var(--danger-light); color: var(--danger); }
.reminder-chip.remove:hover { background: #fecaca; }
.reminder-dismiss {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 16px; padding: 0 4px;
  flex-shrink: 0; opacity: .5;
}
.reminder-dismiss:hover { opacity: 1; }

/* ── Inline tab follow-up banner ── */
.tab-followup-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px 20px;
  background: #fffbeb;
  border: 2px solid #f59e0b;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(245,158,11,.18);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tab-followup-banner {
    background: #2d2200;
    border-color: #d97706;
  }
}
:root[data-theme="dark"] .tab-followup-banner {
  background: #2d2200;
  border-color: #d97706;
}
.tab-followup-banner:empty { display: none; }
.fu-banner-icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.fu-banner-body { flex: 1; }
.fu-banner-title {
  font-size: 13px; font-weight: 700;
  color: #92400e;
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fu-banner-title { color: #fcd34d; }
}
:root[data-theme="dark"] .fu-banner-title { color: #fcd34d; }
.fu-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fu-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: filter .15s;
  border: none;
}
.fu-chip:hover { filter: brightness(.92); }
.fu-chip.overdue  { background: #fee2e2; color: #991b1b; }
.fu-chip.info     { background: #d1fae5; color: #065f46; }
.fu-chip.upcoming { background: #e0f2fe; color: #0c4a6e; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fu-chip.overdue  { background: #450a0a; color: #fca5a5; }
  :root:not([data-theme="light"]) .fu-chip.info     { background: #022c22; color: #6ee7b7; }
  :root:not([data-theme="light"]) .fu-chip.upcoming { background: #0c1a2e; color: #7dd3fc; }
}
:root[data-theme="dark"] .fu-chip.overdue  { background: #450a0a; color: #fca5a5; }
:root[data-theme="dark"] .fu-chip.info     { background: #022c22; color: #6ee7b7; }
:root[data-theme="dark"] .fu-chip.upcoming { background: #0c1a2e; color: #7dd3fc; }

/* ── Inline GDPR breach banner ── */
.tab-gdpr-banner {
  display: flex; align-items: flex-start; gap: 14px;
  margin-top: 12px; margin-bottom: 18px; padding: 16px 20px;
  background: #fef2f2; border: 2px solid #ef4444;
  border-radius: var(--radius); box-shadow: 0 2px 8px rgba(239,68,68,.18);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tab-gdpr-banner { background: #2d0707; border-color: #dc2626; }
}
:root[data-theme="dark"] .tab-gdpr-banner { background: #2d0707; border-color: #dc2626; }
.fu-chip.gdpr-chip { background: #fee2e2; color: #991b1b; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fu-chip.gdpr-chip { background: #450a0a; color: #fca5a5; }
}
:root[data-theme="dark"] .fu-chip.gdpr-chip { background: #450a0a; color: #fca5a5; }

/* ── Pipeline summary ── */
.pipeline-summary {
  max-width: 1600px; margin: 0 auto;
  padding: 14px 24px 0;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.summary-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  cursor: pointer; transition: all .15s;
  text-transform: lowercase;
  color: var(--text-muted);
}
.summary-pill:hover { border-color: var(--teal); color: var(--forest); }
.summary-pill strong { color: var(--text); }
.summary-pill .dot { width: 8px; height: 8px; border-radius: 50%; }

/* ── Board ── */
.board-wrap {
  max-width: 1600px; margin: 0 auto;
  padding: 10px 24px 40px;
}
.board {
  display: flex; gap: 14px; overflow-x: auto;
  align-items: flex-start;
}
.board::-webkit-scrollbar { height: 6px; }
.board::-webkit-scrollbar-track { background: transparent; }
.board::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.section-title {
  font-size: 13px; font-weight: 700; color: var(--forest-deep);
  padding-bottom: 10px; letter-spacing: .02em;
}
.later-grid > .section-title { grid-column: 1 / -1; padding-bottom: 4px; }

/* ── Column ── */
.column {
  flex: 0 0 272px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,38,33,.10), 0 1px 2px rgba(0,38,33,.06);
}
.column-header {
  padding: 13px 15px;
  border-bottom: 1px solid rgba(0,38,33,.09);
  display: flex; align-items: center; justify-content: space-between;
}
.column-title {
  font-size: 12px; font-weight: 700;
  text-transform: lowercase;
  letter-spacing: .3px;
  display: flex; align-items: center; gap: 8px;
  color: var(--text);
}
.column-count {
  background: var(--bg); border: 1px solid rgba(0,38,33,.09);
  border-radius: 12px; padding: 1px 8px;
  font-size: 11px; font-weight: 700; color: var(--text-muted);
}
.column-body {
  padding: 12px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 80px;
}
.column-empty {
  text-align: center; color: var(--text-muted);
  font-size: 12px; padding: 20px 0;
}

/* ── Stage colours - top border accent ── */
.stage-sourced   .column-header { border-top: 3px solid #94a3b8; }
.stage-outreach  .column-header { border-top: 3px solid #78909C; }
.stage-screening .column-header { border-top: 3px solid #52796F; }
.stage-techintro .column-header { border-top: 3px solid #3d7a6f; }
.stage-interview .column-header { border-top: 3px solid #2D6A4F; }
.stage-offer     .column-header { border-top: 3px solid #1B4332; }
.stage-contract  .column-header { border-top: 3px solid #065f46; }
.stage-hired     .column-header { border-top: 3px solid #059669; }

/* ── Card ── */
.card {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px;
  cursor: pointer;
  transition: all .15s;
  position: relative; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,38,33,.08);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
/* Colored left strip by follow-up urgency */
.card[data-fu]::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.card[data-fu="overdue"]::before  { background: var(--danger); }
.card[data-fu="today"]::before    { background: #f59e0b; }
.card[data-fu="upcoming"]::before { background: var(--sage); }
.card-name { font-weight: 700; font-size: 14px; margin-bottom: 2px; color: var(--forest-deep); }
.card-role { color: var(--text-muted); font-size: 12px; margin-bottom: 10px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.tag {
  font-size: 11px; font-weight: 600; padding: 2px 9px;
  border-radius: var(--radius-pill);
  white-space: nowrap; text-transform: lowercase; letter-spacing: .2px;
}
.tag-visa    { background: var(--gold-light);   color: var(--text-muted); }
.tag-lang    { background: var(--teal-light);   color: var(--forest); }
.tag-salary  { background: var(--primary-light); color: var(--forest); }
.tag-reason  { background: #fef3c7; color: #92400e; font-style: italic; }
.card-notes {
  font-size: 12px; color: var(--text-muted);
  line-height: 1.5;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.card-footer {
  margin-top: 10px; padding-top: 8px;
  border-top: 1px solid rgba(0,38,33,.08);
  display: flex; flex-direction: column; gap: 4px;
}
.card-date-label { font-size: 11px; color: var(--text-muted); }
.card-date-label strong { font-weight: 700; color: var(--text); }

/* Follow-up status pill */
.card-followup {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: var(--radius-pill);
  width: fit-content;
}
.card-followup-overdue  { background: var(--danger-light); color: var(--danger); }
.card-followup-today    { background: #fff7ed; color: #9a3412; }
.card-followup-upcoming { background: var(--primary-light); color: var(--forest); }
.card-followup-none     { background: transparent; color: var(--text-muted); font-weight: 500; font-style: italic; }

/* Overview column sub-labels */
.column-sublabels {
  display: flex; flex-direction: column; gap: 2px;
  padding: 3px 10px 7px; margin-top: -4px;
}
.column-sublabel { font-size: 10px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sublabel-comm { color: var(--forest); }
.sublabel-tech  { color: #065B4E; opacity: .75; }

/* ── Form divider ── */
.form-divider {
  font-size: 11px; font-weight: 700;
  text-transform: lowercase; letter-spacing: .5px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 16px; margin-bottom: 16px;
}

/* ── Card name row (name + actions) ── */
.card-name-row {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.card-name-actions {
  display: flex; align-items: center; gap: 4px; flex-shrink: 0;
}
.card-linkedin {
  color: var(--forest);
  opacity: .4;
  transition: opacity .15s;
  display: flex; align-items: center;
  padding: 2px;
}
.card-linkedin:hover { opacity: 1; }
.card-later-btn {
  background: none; border: none; cursor: pointer;
  font-size: 14px; color: var(--gold);
  opacity: .4; padding: 2px 4px;
  transition: opacity .15s, transform .15s;
  line-height: 1;
}
.card-later-btn:hover { opacity: 1; transform: scale(1.2); }

/* ── Assignee on card ── */
.card-assignee {
  display: flex; align-items: center; gap: 6px;
  margin-top: 8px; padding: 5px 8px;
  border-radius: var(--radius-sm);
  border-left-width: 3px; border-left-style: solid;
}
.assignee-avatar {
  width: 20px; height: 20px; border-radius: 50%;
  color: #fff; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.assignee-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.assignee-text { font-size: 11px; font-weight: 600; }
.assignee-meta { font-size: 10px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.assignee-status--scheduled { color: #059669; font-weight: 600; }
.card-assignee--unassigned {
  border-left-color: #d1d5db;
  background: #f9fafb;
}
.card-assignee--unassigned .assignee-text {
  color: var(--text-muted); font-style: italic;
}

/* ── Activity view ── */
.activity-view {
  max-width: 660px;
  margin: 0 auto;
  padding: 28px 16px;
}
.activity-header {
  margin-bottom: 24px;
}
.activity-title {
  font-size: 18px; font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}
.activity-subtitle {
  font-size: 13px; color: var(--text-muted); margin: 0;
}
.activity-day { margin-bottom: 24px; }
.activity-day-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.activity-entry {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.activity-entry:last-child { border-bottom: none; }
.activity-entry--compact { padding: 8px 16px; }
.activity-entry--compact:first-child { padding-top: 16px; }
.activity-entry--compact:last-child  { padding-bottom: 16px; }
.activity-icon-wrap {
  width: 28px; height: 28px;
  border-radius: 50%; border: 1px solid;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.activity-icon-char { font-size: 12px; font-weight: 700; }
.activity-body { flex: 1; min-width: 0; }
.activity-desc { font-size: 13px; color: var(--text); line-height: 1.45; }
.activity-desc strong { font-weight: 600; }
.activity-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ── Activity popup ── */
.activity-popup-modal { max-width: 500px; }
.activity-popup-body  { max-height: 400px; overflow-y: auto; }
.popup-section-header {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 12px 16px 6px;
  border-bottom: 1px solid var(--border);
}
.activity-empty-note {
  font-size: 13px; color: var(--text-muted);
  padding: 12px 0 4px; font-style: italic;
}
.changelog-section { margin-bottom: 32px; }
.changelog-dropdown { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.changelog-dropdown-toggle {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; cursor: pointer;
  font-size: 12px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--text-muted);
  user-select: none; list-style: none;
}
.changelog-dropdown-toggle::-webkit-details-marker { display: none; }
.changelog-dropdown-toggle::after { content: '▾'; margin-left: auto; font-size: 14px; }
details.changelog-dropdown[open] .changelog-dropdown-toggle::after { content: '▴'; }
.changelog-count {
  background: #8b5cf620; color: #8b5cf6;
  font-size: 11px; padding: 1px 7px; border-radius: var(--radius-pill);
}
.changelog-dropdown-body { border-top: 1px solid var(--border); padding: 4px 0; }
.candidate-dropdown-body .activity-day { margin-bottom: 0; }
.candidate-dropdown-body .activity-day-label { padding-left: 14px; }
.changelog-post-form {
  display: flex; gap: 8px; margin-bottom: 8px;
}
.changelog-post-input {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
}
.changelog-post-input:focus { outline: none; border-color: var(--forest); }
.changelog-post-btn { flex-shrink: 0; }

/* ── Assignee filter strip ── */
.assignee-filter-row {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 0 6px;
  flex-wrap: wrap;
}
.af-label {
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  margin-right: 2px; white-space: nowrap; letter-spacing: .03em;
  text-transform: uppercase;
}
.af-btn {
  font-size: 11px; font-weight: 600;
  padding: 3px 11px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text); cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
  font-family: inherit; white-space: nowrap;
}
.af-btn:hover { filter: brightness(.93); }
.af-btn.af-active { background: var(--forest); color: #fff; border-color: var(--forest); }

/* ── Dept tags on overview cards ── */
.tag-dept-commercial { background: #E6EFED; color: var(--forest); }
.tag-dept-technical  { background: var(--teal-light); color: #065B4E; }

.card-priority-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  font-size: 11px; font-weight: 800; line-height: 1; flex-shrink: 0;
}
.card-priority-badge.priority-high { background: #dcfce7; color: #15803d; }
.card-priority-badge.priority-mid  { background: var(--gold-light); color: var(--text-muted); }
.card-priority-badge.priority-low  { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }

.card-process { display: flex; gap: 3px; flex-wrap: wrap; margin-top: 5px; margin-bottom: 4px; }
.card-process-step {
  font-size: 10px; font-weight: 600; padding: 1px 6px;
  border-radius: 3px; letter-spacing: .1px;
  background: var(--bg); color: var(--text-muted);
  border: 1px solid var(--border);
}
.card-process-step.yes { background: #dcfce7; color: #15803d; border-color: #86efac; }

/* ── Overview layout ── */
.overview-wrap {
  max-width: 1600px; margin: 0 auto;
  padding: 16px 24px 40px;
}
/* ── Overview filter pills ── */
.overview-filters {
  display: flex; gap: 8px; padding: 0 0 14px;
}
.filter-pill {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px; font-weight: 600; cursor: pointer;
  color: var(--text-muted); transition: all .15s;
  text-transform: lowercase;
}
.filter-pill:hover { border-color: var(--teal); color: var(--forest); }
.filter-pill.active { background: var(--forest); color: #fff; border-color: var(--forest); }

/* ── Overview stats cards ── */
.overview-stats {
  display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.stat-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 14px 20px;
  min-width: 110px; text-align: center;
}
.stat-number {
  font-size: 26px; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 4px;
}
.stat-label {
  font-size: 11px; color: var(--text-muted); font-weight: 600;
}
.stat-card-comm { border-color: var(--forest); }
.stat-card-comm .stat-number { color: var(--forest); }
.stat-card-tech { border-color: var(--teal); }
.stat-card-tech .stat-number { color: var(--teal); }
.stat-card-danger { border-color: var(--danger); }
.stat-card-danger .stat-number { color: var(--danger); }
.stat-card-today   { border-color: #f59e0b; }
.stat-card-today .stat-number   { color: #f59e0b; }
.stat-card-hired  { border-color: #22c55e; }
.stat-card-hired .stat-number  { color: #15803d; }
.stat-clickable { cursor: pointer; transition: box-shadow .15s, transform .1s; }
.stat-clickable:hover { box-shadow: 0 2px 8px rgba(0,0,0,.12); transform: translateY(-1px); }
.stat-active { box-shadow: 0 0 0 2.5px var(--forest) !important; }

/* ── Overview funnel ── */
.overview-funnel {
  display: flex; margin-bottom: 20px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.funnel-stage {
  flex: 1; padding: 14px 10px 12px;
  border-right: 1px solid var(--border);
  text-align: center; transition: background .15s;
}
.funnel-stage:last-child { border-right: none; }
.funnel-clickable { cursor: pointer; }
.funnel-clickable:hover { background: var(--bg); }
.funnel-stage-active { background: var(--bg); box-shadow: inset 0 -3px 0 var(--forest); }
.funnel-empty { opacity: .4; }
.funnel-count {
  font-size: 22px; font-weight: 800; line-height: 1; margin-bottom: 4px;
}
.funnel-label {
  font-size: 11px; font-weight: 700; color: var(--text); text-transform: lowercase;
}
.funnel-sub {
  font-size: 9px; color: var(--text-muted); margin-top: 5px; line-height: 1.5;
}

/* ── Overview table ── */
.overview-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(0,38,33,.10), 0 1px 2px rgba(0,38,33,.06);
}
.overview-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.overview-table thead th {
  background: var(--bg); border-bottom: 1.5px solid rgba(0,38,33,.09);
  padding: 9px 14px; text-align: left;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted); white-space: nowrap;
}
.th-priority { width: 36px; text-align: center !important; }
.overview-table td {
  padding: 10px 14px; border-bottom: 1px solid rgba(0,38,33,.07);
  vertical-align: middle;
}
.overview-table tbody tr:last-child td { border-bottom: none; }
.overview-row { cursor: pointer; transition: background .1s; }
.overview-row:hover { background: var(--bg); }
.cell-priority { text-align: center; }
.cell-name { font-weight: 600; color: var(--text); white-space: nowrap; }
.cell-role { color: var(--text-muted); }
.cell-dash { color: var(--text-muted); font-size: 12px; }
.stage-pill {
  display: inline-block; padding: 2px 8px;
  border-radius: var(--radius-pill); font-size: 11px; font-weight: 600;
  white-space: nowrap;
}
.cell-fu { white-space: nowrap; }
.cell-assignee { white-space: nowrap; }
.assignee-pill {
  display: inline-block; padding: 2px 8px;
  border-radius: var(--radius-pill); font-size: 11px; font-weight: 600;
  white-space: nowrap;
}
.overview-empty-cell {
  text-align: center; padding: 32px; color: var(--text-muted); font-size: 13px;
}

/* ── Hired cards ── */
.hired-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer; transition: all .15s;
  box-shadow: 0 1px 4px rgba(0,38,33,.08);
  border-left: 3px solid #22c55e;
}
.hired-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.hired-card .card-name { color: #15803d; }
.hired-label {
  font-size: 11px; font-weight: 700;
  text-transform: lowercase; letter-spacing: .4px;
  color: #15803d; margin-bottom: 12px;
}
.hired-notice {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: #f0fdf4; border-left: 3px solid #22c55e;
  color: #15803d; font-size: 13px; line-height: 1.5;
  margin-bottom: 20px; grid-column: 1 / -1;
}

/* ── Rejected cards ── */
.rejected-card {
  background: var(--surface);
  border-radius: var(--radius);
  border-left: 3px solid #FCA5A5;
  padding: 16px;
  cursor: pointer; transition: all .15s;
  box-shadow: 0 1px 4px rgba(0,38,33,.08);
}
.rejected-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.rejected-card .card-name { color: var(--danger); }
.rejected-label {
  font-size: 11px; font-weight: 700;
  text-transform: lowercase; letter-spacing: .4px;
  color: var(--danger); margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}

/* ── Team (candidate) panel (collapsible) ── */
.team-panel {
  max-width: 1600px; margin: 0 auto;
  padding: 14px 24px 14px;
}
.team-panel-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,38,33,.10), 0 1px 2px rgba(0,38,33,.06);
  overflow: hidden;
}
.team-panel-toggle {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; padding: 13px 18px; user-select: none;
  background: var(--surface);
}
.team-panel-toggle:hover { background: rgba(0,38,33,.03); }
.team-panel-title {
  font-size: 12px; font-weight: 700;
  text-transform: lowercase; letter-spacing: .4px;
  color: var(--forest-deep);
}
.team-panel-chevron {
  width: 9px; height: 9px;
  border-right: 2px solid #1F6E6C;
  border-bottom: 2px solid #1F6E6C;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s;
  flex-shrink: 0;
}
.team-panel-open .team-panel-chevron {
  transform: rotate(-135deg) translateY(-2px);
}
.team-panel-body {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(0,38,33,.07);
  background: var(--surface);
}

/* Person cards - same-colour throughout */
.team-person {
  background: var(--bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
  min-width: 220px; flex: 1;
}
.team-person-header {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 14px;
  background: var(--bg);
  border-bottom: 1px solid rgba(0,38,33,.07);
}
.team-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #1F6E6C;
  color: #fff;
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: 'Poppins', sans-serif;
}
.team-person-name {
  font-size: 13px; font-weight: 700;
  color: var(--forest-deep);
  flex: 1;
}
.team-person-count {
  background: rgba(0,38,33,.08);
  color: var(--text-muted);
  font-size: 11px; font-weight: 700;
  padding: 1px 8px; border-radius: var(--radius-pill);
}
.team-tasks { padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.team-task {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer; transition: background .12s;
  font-size: 12px;
}
.team-task:hover { background: rgba(0,38,33,.06); }
.task-stage-label {
  font-size: 10px; font-weight: 700; padding: 1px 7px;
  border-radius: var(--radius-pill); text-transform: lowercase;
  white-space: nowrap; flex-shrink: 0; letter-spacing: .1px;
}
.person-stage-summary {
  display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px;
}
.person-stage-pip {
  font-size: 10px; font-weight: 700; padding: 1px 7px;
  border-radius: var(--radius-pill); text-transform: lowercase;
  white-space: nowrap;
}
.team-person-meta { flex: 1; display: flex; flex-direction: column; gap: 1px; }
/* keep the old dot rule for any remaining uses */
.task-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0; margin-top: 4px;
}
.task-main { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.task-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.task-bottom { display: flex; align-items: center; gap: 6px; }
.task-name { font-weight: 700; color: var(--text); }
.task-action { color: var(--text-muted); text-transform: lowercase; }
.task-date {
  font-size: 11px; font-weight: 600;
}
.task-date-upcoming { color: var(--text-muted); }
.task-date-today    { color: var(--text-muted); }
.task-date-overdue  { color: var(--danger); }
.task-urgent {
  font-size: 10px; font-weight: 700;
  background: var(--danger-light); color: var(--danger);
  padding: 1px 7px; border-radius: var(--radius-pill);
  text-transform: lowercase;
}
.task-today {
  font-size: 10px; font-weight: 700;
  background: var(--gold-light); color: var(--text-muted);
  padding: 1px 7px; border-radius: var(--radius-pill);
  text-transform: lowercase;
}

/* ── Header search ── */
.header-search {
  flex: 1; max-width: 360px; margin: 0 16px;
  display: flex; align-items: stretch;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.10);
  overflow: hidden;
  transition: border-color .15s, background .15s;
}
.header-search:focus-within {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.4);
}
.search-field-select {
  background: rgba(255,255,255,.12);
  border: none;
  border-right: 1px solid rgba(255,255,255,.2);
  border-radius: 0;
  color: rgba(255,255,255,.85);
  font-size: 11px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  padding: 0 10px;
  cursor: pointer;
  width: auto !important;
  outline: none;
  text-transform: uppercase;
  letter-spacing: .3px;
  flex-shrink: 0;
}
.search-field-select:focus { outline: none; box-shadow: none; }
.search-field-select option { background: #002621; color: #fff; font-weight: 500; text-transform: none; letter-spacing: 0; }
.header-search input {
  flex: 1; min-width: 0;
  padding: 7px 12px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #fff; font-size: 13px;
  width: 100%;
}
.header-search input::placeholder { color: rgba(255,255,255,.5); }
.header-search input:focus { outline: none; box-shadow: none; }
.header-search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.salary-range-select {
  flex: 1; min-width: 0;
  padding: 7px 12px;
  border: none; border-radius: 0;
  background: transparent;
  color: #fff; font-size: 13px;
  cursor: pointer; outline: none;
  width: auto !important;
}
.salary-range-select option { background: #002621; color: #fff; }
.search-clear-btn {
  padding: 0 10px;
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
  transition: color .15s;
}
.search-clear-btn:hover { color: #6b7280; }

/* ── Stage-age warning on cards ── */
.card-stage-age {
  font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: var(--radius-pill);
  margin-top: 6px; display: inline-block;
}
.card-stage-age--warn  { background: #f59e0b18; color: #d97706; border: 1px solid #f59e0b44; }
.card-stage-age--alert { background: #ef444418; color: #dc2626; border: 1px solid #ef444444; }


/* ── Alpha divider ── */
.alpha-divider {
  grid-column: 1 / -1;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--forest); border-bottom: 1px solid #d1fae5;
  padding-bottom: 4px; margin-top: 8px;
}

/* ── Reason filter strip ── */
.reason-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 0 4px; }
.reason-filter-label { font-size: 12px; color: var(--text-muted); margin-right: 2px; }
.reason-chip {
  padding: 3px 10px; border-radius: 99px; border: 1px solid #d1d5db;
  background: #fff; color: var(--text-muted); font-size: 12px; cursor: pointer; transition: all .15s;
}
.reason-chip:hover { border-color: var(--forest); color: var(--forest); }
.reason-chip.active { background: var(--forest); color: #fff; border-color: var(--forest); }

/* ── Selection bar ── */
.selection-bar {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #1e293b; color: #fff; padding: 10px 20px; border-radius: 99px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.35); z-index: 500;
}
#selectionCount { font-size: 14px; font-weight: 600; }
.selection-clear-btn {
  background: transparent; border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.7);
  border-radius: 99px; padding: 4px 12px; font-size: 12px; cursor: pointer; transition: all .15s;
}
.selection-clear-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.th-check, .cell-check { width: 36px; text-align: center; }
.th-check input, .cell-check input { cursor: pointer; }

/* ── Import tabs ── */
.import-tabs { display: flex; gap: 6px; margin-top: 12px; }
.import-tab-btn {
  padding: 5px 14px; border-radius: 99px; border: 1px solid #d1d5db;
  background: #fff; color: var(--text-muted); font-size: 12px; cursor: pointer; transition: all .15s;
}
.import-tab-btn:hover { border-color: var(--forest); color: var(--forest); }
.import-tab-btn.active { background: var(--forest); color: #fff; border-color: var(--forest); }

/* ── Import modal ── */
.import-hint { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.import-hint p { margin: 0 0 4px; }
.import-hint ul { margin: 0 0 12px 18px; padding: 0; }
.import-hint ul:last-child { margin-bottom: 0; }
.import-hint li { margin-bottom: 2px; }
.import-count { font-size: 13px; margin-bottom: 10px; }
.import-more  { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.import-dupe-warning {
  font-size: 12px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 10px;
  color: #7a5800;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .import-dupe-warning {
    background: #3a2d00;
    border-color: #a07800;
    color: #ffd966;
  }
}
.import-preview-table {
  width: 100%; border-collapse: collapse; font-size: 12px;
  margin-top: 4px;
}
.import-preview-table th {
  text-align: left; padding: 5px 8px;
  border-bottom: 2px solid var(--border);
  color: var(--text-muted); font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: .04em;
}
.import-preview-table td {
  padding: 5px 8px; border-bottom: 1px solid var(--border);
  color: var(--text);
}

/* ── Header buttons - white ghost on dark header ── */
.header-actions .btn {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.22);
  color: #fff;
  font-size: 13px;
}
.header-actions .btn:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.35);
}

/* ── Team management modal ── */
.team-section-label {
  font-size: 11px; font-weight: 700;
  text-transform: lowercase; letter-spacing: .4px;
  color: var(--text-muted); margin-bottom: 10px;
}
.team-member-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.team-member-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.team-member-chip-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--forest); color: #fff;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: 'Poppins', sans-serif;
}
.team-member-chip-name { flex: 1; font-size: 13px; font-weight: 600; }
.team-member-remove {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 13px; padding: 2px 6px;
  border-radius: 4px; transition: all .12s;
}
.team-member-remove:hover { background: var(--danger-light); color: var(--danger); }
.team-add-row { display: flex; gap: 8px; }
.team-add-row input { flex: 1; }
.btn-sm { padding: 6px 14px; font-size: 12px; }

/* ── Task complete button ── */
.task-complete-btn {
  background: rgba(0,38,33,.06);
  border: none;
  border-radius: 50%; width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 12px; color: var(--text-muted);
  flex-shrink: 0; transition: all .15s;
  align-self: center;
}
.task-complete-btn:hover {
  background: var(--success-light);
  color: var(--forest);
}
.task-done { opacity: .55; }
.task-done .task-name { text-decoration: line-through; }

/* ── Complete options modal ── */
.complete-options { display: flex; flex-direction: column; gap: 8px; }
.complete-btn {
  justify-content: flex-start;
  text-align: left; width: 100%;
  padding: 10px 16px;
}
.complete-btn-icon { font-size: 15px; width: 20px; text-align: center; }

/* ── Drag & drop ── */
.card[draggable="true"] { cursor: grab; }
.card[draggable="true"]:active { cursor: grabbing; }
.card.dragging {
  opacity: .45;
  transform: scale(.97);
  box-shadow: none;
}
.column-body.drag-over {
  background: var(--teal-light);
  border-radius: var(--radius-sm);
  outline: 2px dashed var(--teal);
  outline-offset: -2px;
}

/* ── Save for Later grid ── */
.later-grid {
  max-width: 1600px; margin: 0 auto;
  padding: 20px 24px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 16px;
}
.later-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer; transition: all .15s;
  box-shadow: 0 1px 4px rgba(0,38,33,.08);
}
.later-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.later-card .card-name { color: var(--forest); }
.later-label {
  font-size: 11px; font-weight: 700;
  text-transform: lowercase; letter-spacing: .4px;
  color: var(--teal); margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}

/* ── Buttons - pill on web, lowercase always ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .15s;
  white-space: nowrap;
  text-transform: lowercase;
  letter-spacing: .2px;
}
.btn-primary {
  background: var(--teal); color: var(--forest-deep);
  border-color: var(--teal);
}
.btn-primary:hover { background: #03A89A; border-color: #03A89A; }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg); }
.btn-danger {
  background: var(--danger); color: #fff;
  border-color: var(--danger);
}
.btn-danger:hover { background: #A93226; }
.btn-reject {
  background: #fff7ed; color: #9a3412;
  border-color: #fdba74;
}
.btn-reject:hover { background: #fed7aa; border-color: #fb923c; }
.btn-later {
  background: var(--bg); color: var(--text-muted);
  border-color: var(--border);
}
.btn-later:hover { background: var(--primary-light); border-color: var(--sage); }

/* ── CV upload ── */
.cv-upload-area {
  display: flex; flex-direction: column; gap: 8px;
}
.cv-current-wrap {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  background: var(--primary-light); border: 1px solid var(--teal);
}
.cv-view-link {
  flex: 1; font-size: 13px; font-weight: 600; color: var(--forest);
  text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cv-view-link:hover { text-decoration: underline; }
.cv-dl-btn {
  font-size: 13px; color: var(--forest); text-decoration: none; flex-shrink: 0;
  padding: 0 4px;
}
.cv-dl-btn:hover { color: var(--teal); }
.cv-remove-btn {
  background: none; border: none; cursor: pointer;
  font-size: 12px; color: var(--danger); font-weight: 600; padding: 0 4px; flex-shrink: 0;
}
.cv-remove-btn:hover { text-decoration: underline; }
.cv-upload-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  border: 1.5px dashed var(--sage); background: var(--bg);
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.cv-upload-label:hover { border-color: var(--teal); background: var(--primary-light); color: var(--forest); }
.cv-upload-label input[type="file"] { display: none; }

/* ── Modal ── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,38,33,.5);
  z-index: 500; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface);
  border-radius: 12px;
  width: 100%; max-width: 680px;
  max-height: 90vh; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,38,33,.25);
}
.modal-sm { max-width: 440px; }
.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
  background: var(--forest-deep);
}
.modal-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px; font-weight: 700;
  color: #fff;
  text-transform: lowercase;
}
.modal-close {
  background: none; border: none; cursor: pointer;
  font-size: 18px; color: rgba(255,255,255,.5); padding: 4px 8px;
  border-radius: 4px;
}
.modal-close:hover { color: #fff; background: rgba(255,255,255,.1); }
.modal-body {
  padding: 20px 24px;
  overflow-y: auto; flex: 1;
}
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 10px; flex-shrink: 0;
}
.modal-footer-actions { display: flex; align-items: center; gap: 8px; }
.modal-footer-main { display: flex; align-items: center; gap: 10px; }

.move-destination-banner {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  margin-bottom: 14px; font-size: 13px; line-height: 1.5;
}
.move-destination-banner.banner-reject { background: #fff7ed; border-left: 3px solid #fdba74; color: #9a3412; }
.move-destination-banner.banner-later  { background: var(--gold-light); border-left: 3px solid var(--gold); color: var(--text-muted); }
.move-destination-banner.banner-move   { background: var(--teal-light); border-left: 3px solid var(--teal); color: var(--forest); }

/* ── Additional details toggle ── */
.form-additional { border: none; }
.form-additional-toggle {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
  color: var(--text-muted); text-transform: lowercase; letter-spacing: .3px;
  cursor: pointer; padding: 10px 0; list-style: none;
  border-top: 1.5px solid var(--border); margin-top: 4px;
  user-select: none;
}
.form-additional-toggle::-webkit-details-marker { display: none; }
.form-additional-toggle::before {
  content: '▸'; font-size: 10px; transition: transform .15s;
}
details[open] .form-additional-toggle::before { transform: rotate(90deg); }

/* ── Form ── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row.three-col { grid-template-columns: 1fr 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row .form-group { margin-bottom: 0; }
label {
  font-size: 12px; font-weight: 700;
  color: var(--text-muted);
  text-transform: lowercase; letter-spacing: .3px;
}
input, select, textarea {
  padding: 9px 12px;
  border: 1.5px solid rgba(0,38,33,.18);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: var(--text); background: var(--surface);
  transition: border-color .15s;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(4,191,173,.12);
}
input:invalid:not(:placeholder-shown) { border-color: var(--danger); }
textarea { resize: vertical; }

/* Salary number input with suffix */
.input-suffix-wrap { display: flex; align-items: stretch; }
.input-suffix-wrap input {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border-right: none; flex: 1;
}
.input-suffix-wrap input:focus { position: relative; z-index: 1; }
.input-suffix {
  padding: 9px 12px;
  border: 1.5px solid rgba(0,38,33,.18);
  border-left: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg); color: var(--text-muted);
  font-size: 13px; font-weight: 600;
  white-space: nowrap; display: flex; align-items: center;
}
.text-muted { color: var(--text-muted); }

/* ── GDPR view ── */
.gdpr-wrap {
  max-width: 900px; margin: 0 auto;
  padding: 20px 24px 40px;
}
.gdpr-header {
  background: var(--danger-light);
  border-left: 4px solid var(--danger);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex; align-items: flex-start; gap: 12px;
}
.gdpr-header-icon { font-size: 20px; flex-shrink: 0; }
.gdpr-header-text h3 { font-size: 14px; font-weight: 700; color: var(--danger); margin-bottom: 3px; }
.gdpr-header-text p  { font-size: 13px; color: #7F1D1D; line-height: 1.5; }
.gdpr-list { display: flex; flex-direction: column; gap: 10px; }
.gdpr-section { margin-bottom: 32px; }
.gdpr-section-header {
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
  border-radius: var(--radius); padding: 14px 18px;
  margin-bottom: 14px; display: flex; align-items: flex-start; gap: 12px;
  font-size: 20px;
}
.gdpr-section-header div h4 { font-size: 14px; font-weight: 700; color: #15803d; margin-bottom: 3px; }
.gdpr-section-header div p  { font-size: 13px; color: #166534; line-height: 1.5; }
.gdpr-card {
  background: var(--surface);
  border-radius: var(--radius);
  border-left: 3px solid #FCA5A5;
  padding: 16px;
  display: flex; align-items: flex-start; gap: 16px;
  box-shadow: 0 1px 4px rgba(0,38,33,.08);
}
.gdpr-card-hired { border-left-color: #86efac; }
.gdpr-card-info { flex: 1; }
.gdpr-card-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.gdpr-card-name { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.gdpr-card-role { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.gdpr-card-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.gdpr-card-meta strong { color: var(--text); }
.gdpr-rule-badge { font-size: 11px; font-weight: 700; margin-bottom: 5px; }
.gdpr-rule-note { font-size: 12px; color: var(--text-muted); line-height: 1.5; font-style: italic; }
.gdpr-age {
  font-size: 12px; font-weight: 700;
  background: var(--danger-light); color: var(--danger);
  padding: 3px 10px; border-radius: var(--radius-pill);
  white-space: nowrap;
}
.gdpr-empty {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.gdpr-empty h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; }

/* ── Empty state ── */
.empty-state {
  text-align: center; padding: 60px 20px;
  color: var(--text-muted);
  grid-column: 1 / -1;
}
.empty-state h3 { font-size: 16px; margin-bottom: 8px; color: var(--text); font-weight: 700; }
.empty-state p { font-size: 14px; }

/* ── Overview summary panel (combined KPI + pipeline) ── */
.overview-summary-panel {
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,38,33,.10), 0 1px 2px rgba(0,38,33,.06);
}

/* KPI row */
.summary-kpi-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--radius);
}
.skpi {
  display: flex; flex-direction: row; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--radius-sm);
  background: var(--surface);
  border: none;
  cursor: pointer; transition: box-shadow .12s, background .12s;
  box-shadow: 0 1px 3px rgba(0,38,33,.08);
}
.skpi:hover { box-shadow: 0 2px 8px rgba(0,38,33,.13); }
.skpi-active { background: var(--forest-deep) !important; box-shadow: 0 2px 8px rgba(0,38,33,.25) !important; }
.skpi-active .skpi-num,
.skpi-active .skpi-label { color: #fff !important; }
.skpi-num {
  font-size: 14px; font-weight: 800; line-height: 1; color: var(--forest-deep);
}
.skpi-label {
  font-size: 11px; font-weight: 600; text-transform: lowercase;
  color: var(--text-muted); white-space: nowrap;
}
.skpi-danger .skpi-num  { color: var(--danger); }
.skpi-danger .skpi-label { color: var(--danger); opacity: .8; }
.skpi-warn .skpi-num    { color: #b45309; }
.skpi-warn .skpi-label  { color: #b45309; opacity: .8; }
.skpi-sep { width: 1px; height: 22px; background: rgba(0,38,33,.12); margin: 0 2px; }

/* Pipeline row */
.summary-pipeline-row {
  display: flex;
  border-top: 1px solid rgba(0,38,33,.08);
}
.sp-stage {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 12px 8px 10px;
  border-right: 1px solid rgba(0,38,33,.08);
  cursor: pointer; transition: background .12s;
  background: none; gap: 3px;
}
.sp-stage:last-child { border-right: none; }
.sp-stage:hover { background: var(--bg); }
.sp-active { background: var(--bg) !important; box-shadow: inset 0 -3px 0 var(--teal); }
.sp-empty { opacity: .38; }
.sp-hired { border-left: 1px solid rgba(0,38,33,.08); }
.sp-num {
  font-size: 20px; font-weight: 800; line-height: 1;
}
.sp-label {
  font-size: 10px; font-weight: 700; color: var(--text); text-transform: lowercase;
}
.sp-sub {
  font-size: 9px; color: var(--text-muted); line-height: 1.5; text-align: center;
}

/* ── Responsive - tablet (≤900px) ── */
@media (max-width: 900px) {
  .header { flex-wrap: wrap; gap: 8px; padding: 10px 14px; }
  .header-actions { gap: 6px; }
  .header-actions .btn { font-size: 12px; padding: 6px 12px; }
  .logo-text { font-size: 14px; }

  .tab-bar { gap: 0; }
  .tab { font-size: 11px; padding: 10px 10px; }

  .board-wrap { padding: 12px 14px; }

  /* Kanban: horizontal scroll */
  .kanban-board { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .kanban-column { min-width: 220px; }

  /* Overview table: hide less important columns */
  .cell-dept, .th-dept,
  .cell-assignee, .th-assignee { display: none; }

  /* Pipeline stage cells compress */
  .sp-stage { padding: 10px 4px 8px; }
  .sp-num { font-size: 16px; }
  .sp-label { font-size: 9px; }
  .sp-sub { display: none; }

  /* KPI row wraps */
  .summary-kpi-row { padding: 8px 10px; }
  .skpi { min-width: 50px; padding: 5px 10px; }
  .skpi-num { font-size: 15px; }

  /* Team panel */
  .team-panel { grid-template-columns: 1fr; }
}

/* ── Responsive - mobile (≤600px) ── */
@media (max-width: 600px) {
  .header { padding: 8px 12px; }
  .header-actions .btn span,
  .header-actions .btn-label { display: none; }
  .logo-text .logo-sub { display: none; }

  /* Collapse header buttons to icon-only */
  #manageTeamBtn::after    { content: '⚙'; }
  #addCandidateBtn::after  { content: '+'; }
  #signOutBtn::after       { content: '↩'; }
  #manageTeamBtn, #addCandidateBtn, #signOutBtn {
    font-size: 0; padding: 7px 10px;
  }
  #manageTeamBtn::after, #addCandidateBtn::after, #signOutBtn::after {
    font-size: 15px;
  }

  .tab { font-size: 10px; padding: 9px 8px; gap: 3px; }
  .tab .tab-count { display: none; }

  .board-wrap { padding: 10px 10px; }

  /* Overview: one-column KPI strip wraps freely */
  .summary-kpi-row { gap: 4px; padding: 8px 8px; }
  .skpi { min-width: 44px; padding: 4px 8px; }
  .skpi-sep { display: none; }

  /* Pipeline row: scroll horizontally on tiny screens */
  .summary-pipeline-row { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .sp-stage { min-width: 70px; flex: 0 0 auto; }

  /* Overview table scrolls */
  .overview-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .overview-table { min-width: 460px; }
  .cell-role, .th-role { display: none; }

  /* Kanban: show one column at a time, scroll */
  .kanban-board { overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
  .kanban-column { min-width: 88vw; scroll-snap-align: start; }

  /* Modal full-screen */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal { border-radius: var(--radius) var(--radius) 0 0; max-height: 92vh; overflow-y: auto; }

  /* Team panel stacks */
  .team-panel { grid-template-columns: 1fr; }
  .team-person { padding: 10px 12px; }

  /* Later/GDPR/Hired card grids: single column */
  .later-grid { grid-template-columns: 1fr !important; }
}
