/* ═══════════════════════════════════════════════════════════
   PathAscent — Design System v4
   Deep navy × cyan → violet ascent
   Syne (display) · Inter (body)
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ── Design tokens ─────────────────────────────────────── */

:root {
  /* Surfaces — glass-ready rgba so backdrop-filter works */
  --bg:        #03050b;
  --surface:   rgba(6, 8, 20, 0.72);
  --surface-2: rgba(10, 12, 26, 0.68);
  --surface-3: rgba(16, 18, 34, 0.82);
  --surface-4: rgba(22, 24, 42, 0.88);

  /* Text — slightly blue-tinted for cohesion with the aurora */
  --text:   #eef0f8;
  --text-2: #8a96b8;
  --muted:  #48506a;

  /* Borders */
  --line:        rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.11);
  --line-focus:  rgba(255, 255, 255, 0.20);

  /* PathAscent brand — cyan → violet ascent.
     --blue* kept as token names (used 36x) but remapped to the periwinkle bridge
     so the whole app shifts to the new identity automatically. */
  --blue:     #5b8cff;   /* periwinkle bridge — the single solid accent */
  --blue-lt:  #8fb6ff;   /* lighter, for links/text on dark */
  --blue-dim: rgba(91, 140, 255, 0.12);

  /* Gradient endpoints */
  --cyan:     #35d6f0;
  --cyan-lt:  #7fe9fb;
  --violet:   #8b6cff;
  --violet-lt:#b1a2ff;

  /* Brand gradient + soft wash + focus ring */
  --grad:      linear-gradient(120deg, var(--cyan) 0%, #6f8bff 52%, var(--violet) 100%);
  --grad-soft: linear-gradient(120deg, rgba(53,214,240,0.16), rgba(139,108,255,0.16));
  --ring:      rgba(111, 139, 255, 0.55);

  /* Brand glows — used sparingly on logo, primary CTA, focus */
  --glow-cyan:   0 0 28px rgba(53, 214, 240, 0.35);
  --glow-violet: 0 0 32px rgba(139, 108, 255, 0.38);
  --glow-brand:  0 0 30px rgba(111, 139, 255, 0.32);

  /* Functional — kept minimal */
  --green: #22c55e;
  --amber: #f59e0b;
  --rose:  #ef4444;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.5);
  --shadow:    0 4px 20px rgba(0,0,0,0.55);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.65);

  /* Motion — strong ease-out for UI interactions */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* Type */
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

/* ── Page entry animation ──────────────────────────────────
   Runs once when index.html or recruiter.html loads.
   Complements the home page's circle-expand exit.
   ease-out: page materialises fast, settles gently.
   scale 1.02 → 1.0 gives a subtle "zooming out to reveal".
   Respects prefers-reduced-motion at the bottom of this file.
─────────────────────────────────────────────────────────── */

@keyframes page-enter {
  from { opacity: 0; transform: scale(1.015); }
  to   { opacity: 1; transform: scale(1); }
}

body {
  animation: page-enter 360ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

/* ── Reset ─────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Base ──────────────────────────────────────────────── */

body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* ── Fluid aurora background (shared by all app pages) ──────
   Matches the home page's orb system. The .bg-wrap is injected
   into index.html and recruiter.html. backdrop-filter on
   surfaces picks up the aurora for a glass effect.
────────────────────────────────────────────────────────── */

.bg-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  filter: blur(72px) saturate(1.35);
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
}

.orb-1 {
  width: 680px; height: 680px;
  background: radial-gradient(circle at 40% 40%, rgba(34,225,255,0.60) 0%, transparent 55%);
  top: -240px; left: -200px;
  animation: orb-drift-1 28s ease-in-out infinite alternate;
}
.orb-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle at 60% 40%, rgba(150,80,255,0.58) 0%, transparent 55%);
  top: -80px; right: -140px;
  animation: orb-drift-2 34s ease-in-out infinite alternate;
}
.orb-3 {
  width: 520px; height: 520px;
  background: radial-gradient(circle at 50% 50%, rgba(80,215,255,0.16) 0%, transparent 60%);
  top: 45%; left: 40%;
  animation: orb-drift-3 22s ease-in-out infinite alternate;
}
.orb-4 {
  width: 640px; height: 640px;
  background: radial-gradient(circle at 45% 55%, rgba(124,70,245,0.50) 0%, transparent 55%);
  bottom: -200px; left: -120px;
  animation: orb-drift-4 38s ease-in-out infinite alternate;
}
.orb-5 {
  width: 540px; height: 540px;
  background: radial-gradient(circle at 55% 45%, rgba(96,120,255,0.46) 0%, transparent 55%);
  bottom: -70px; right: -70px;
  animation: orb-drift-5 26s ease-in-out infinite alternate;
}

@keyframes orb-drift-1 {
  to { transform: translate(130px, 90px) scale(1.12); }
}
@keyframes orb-drift-2 {
  to { transform: translate(-110px, 130px) scale(0.9); }
}
@keyframes orb-drift-3 {
  to { transform: translate(90px, -110px) scale(1.22); }
}
@keyframes orb-drift-4 {
  to { transform: translate(150px, -70px) scale(1.08); }
}
@keyframes orb-drift-5 {
  to { transform: translate(-90px, -110px) scale(1.16); }
}

/* Dot grid sits on top of orbs */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.016) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════════════ */

.page-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 14px;
  padding: 14px;
  min-height: 100vh;
  position: relative;
  z-index: 2;
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════════ */

.sidebar {
  background: rgba(5, 7, 18, 0.75);
  backdrop-filter: blur(28px) saturate(1.3);
  -webkit-backdrop-filter: blur(28px) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: start;
  position: sticky;
  top: 14px;
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  scrollbar-width: none;
}

.sidebar::-webkit-scrollbar { display: none; }

/* ── Home back-link ────────────────────────────────────── */

.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  align-self: flex-start;
  transition: color 150ms var(--ease-out);
}

.home-btn::before {
  content: "←";
  font-size: 0.85em;
}

@media (hover: hover) and (pointer: fine) {
  .home-btn:hover { color: var(--text-2); }
}

/* ── Brand ─────────────────────────────────────────────── */

.brand-block h1 {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.03em;
  line-height: 0.92;
  color: var(--text);
  margin-bottom: 10px;
}

.brand-copy {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-lt);
  font-weight: 600;
  margin-bottom: 8px;
}

/* ── Mode toggle ──────────────────────────────────────── */

.mode-toggle {
  display: flex;
  gap: 3px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 3px;
  margin-top: 12px;
}

.toggle-btn {
  flex: 1;
  text-align: center;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  font-family: var(--font-body);
  transition: background 150ms var(--ease-out),
              color 150ms var(--ease-out);
}

.toggle-btn.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}

@media (hover: hover) and (pointer: fine) {
  .toggle-btn:not(.active):hover {
    color: var(--text-2);
    background: var(--surface-3);
  }
}

/* ── Sidebar panels ──────────────────────────────────── */

.sidebar-panel {
  border-radius: 12px;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.field-label,
.panel-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* ── Inputs ───────────────────────────────────────────── */

.input-shell {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 0.85rem;
  background: var(--surface-3);
  color: var(--text);
  font-family: var(--font-body);
  outline: none;
  transition: border-color 150ms var(--ease-out),
              box-shadow 150ms var(--ease-out);
}

.input-shell::placeholder { color: var(--muted); }

.input-shell:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: var(--surface-3);
}

.textarea-shell {
  min-height: 140px;
  resize: vertical;
  line-height: 1.55;
}

.textarea-tall { min-height: 100px; }

/* ── Buttons ──────────────────────────────────────────── */

.primary-button,
.action-button {
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  /* Specify exact properties — never use `all` */
  transition: transform 160ms var(--ease-out),
              box-shadow 160ms var(--ease-out),
              background-color 160ms var(--ease-out),
              opacity 160ms var(--ease-out);
}

.primary-button:disabled,
.action-button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.primary-button {
  border-radius: 10px;
  padding: 12px 16px;
  background: var(--blue);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  width: 100%;
  letter-spacing: 0.01em;
}

@media (hover: hover) and (pointer: fine) {
  .primary-button:not(:disabled):hover {
    background-color: #1d4ed8;
    box-shadow: 0 4px 24px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
  }
}

/* Buttons must feel responsive — scale on press */
.primary-button:not(:disabled):active {
  transform: scale(0.97);
  box-shadow: none;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.action-button:not(:disabled):active {
  transform: scale(0.96);
}

.secondary-action {
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  color: var(--text-2);
}

@media (hover: hover) and (pointer: fine) {
  .secondary-action:hover {
    background: var(--surface-4);
    color: var(--text);
    border-color: var(--line-focus);
  }
}

.success-action {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: #4ade80;
}

@media (hover: hover) and (pointer: fine) {
  .success-action:hover {
    background: rgba(34, 197, 94, 0.18);
  }
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  background: var(--blue);
  color: #fff;
  transition: transform 160ms var(--ease-out),
              box-shadow 160ms var(--ease-out),
              background-color 160ms var(--ease-out);
  letter-spacing: 0.01em;
}

@media (hover: hover) and (pointer: fine) {
  .button-link:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  }
}

.button-link:active { transform: scale(0.96); }

/* ── Status chips ─────────────────────────────────────── */

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-chip.neutral {
  background: var(--surface-3);
  color: var(--muted);
  border: 1px solid var(--line);
}
.status-chip.loading {
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue-lt);
  border: 1px solid rgba(37, 99, 235, 0.22);
}
.status-chip.success {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.22);
}
.status-chip.error {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.22);
}

/* ── Support copy ─────────────────────────────────────── */

.support-copy {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.78rem;
  min-height: 1.2em;
}

/* ═══════════════════════════════════════════════════════════
   MAIN STAGE
═══════════════════════════════════════════════════════════ */

.main-stage {
  display: grid;
  gap: 14px;
  align-content: start;
}

.results-hidden { display: none; }
#resultsState   { display: grid; gap: 14px; }

/* ═══════════════════════════════════════════════════════════
   HERO CARD
═══════════════════════════════════════════════════════════ */

.hero-card {
  background: rgba(6, 8, 20, 0.70);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 28px 32px;
  display: grid;
  gap: 20px;
}

.hero-card h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.8vw, 2rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text);
}

.hero-copy {
  max-width: 56ch;
  line-height: 1.65;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 6px;
}

/* ── Empty state ──────────────────────────────────────── */

#emptyState {
  min-height: 360px;
  position: relative;
  overflow: hidden;
}

/* Subtle radial blue glow — decoration only, not animated */
#emptyState::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 139, 255, 0.07) 0%, transparent 68%);
  top: -140px;
  right: -140px;
  pointer-events: none;
}

/* ── Step indicators ──────────────────────────────────── */

.hero-steps { grid-template-columns: 1fr !important; gap: 14px !important; }

.hero-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-dim);
  border: 1px solid rgba(37, 99, 235, 0.28);
  color: var(--blue-lt);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Hero meta grid ───────────────────────────────────── */

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* ── Tag row ──────────────────────────────────────────── */

.tag-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tag-card {
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.meta-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 5px;
}

.meta-value {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-2);
  line-height: 1.4;
}

/* ── Insight lists ────────────────────────────────────── */

.insight-list {
  margin-top: 7px;
  padding-left: 16px;
  display: grid;
  gap: 5px;
  line-height: 1.5;
  color: var(--muted);
  font-size: 0.8rem;
}

.insight-list--improvements li { color: var(--amber); }

/* ═══════════════════════════════════════════════════════════
   STATS GRID
═══════════════════════════════════════════════════════════ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@keyframes card-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.stat-card {
  background: rgba(6, 8, 20, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 20px 18px;
  transition: border-color 160ms var(--ease-out), transform 160ms var(--ease-out);
  animation: card-rise 460ms var(--ease-out) both;
}
.stats-grid .stat-card:nth-child(1) { animation-delay: 40ms; }
.stats-grid .stat-card:nth-child(2) { animation-delay: 100ms; }
.stats-grid .stat-card:nth-child(3) { animation-delay: 160ms; }
.stats-grid .stat-card:nth-child(4) { animation-delay: 220ms; }

@media (hover: hover) and (pointer: fine) {
  .stat-card:hover {
    border-color: var(--line-focus);
    transform: translateY(-3px);
  }
}

.stat-accent {
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.accent-blue  { background: var(--blue-lt); }
.accent-green { background: var(--green); }
.accent-amber { background: var(--amber); }
.accent-rose  { background: var(--rose); }

.stat-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  margin-top: 6px;
  font-size: 0.73rem;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════
   BOARD (kanban lanes)
═══════════════════════════════════════════════════════════ */

.board-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.lane {
  background: rgba(5, 7, 18, 0.68);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 14px 16px;
}

.board-grid .lane:nth-child(1) { border-top: 2px solid rgba(34, 197, 94, 0.6); }
.board-grid .lane:nth-child(2) { border-top: 2px solid rgba(245, 158, 11, 0.6); }
.board-grid .lane:nth-child(3) { border-top: 2px solid rgba(239, 68, 68, 0.6); }

.lane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.lane-header h3 {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.01em;
}

.lane-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-3);
  border: 1px solid var(--line);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-2);
}

.lane-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

/* ═══════════════════════════════════════════════════════════
   JOB CARDS (applicant side)
═══════════════════════════════════════════════════════════ */

.candidate-card {
  border-radius: 12px;
  padding: 14px;
  background: rgba(8, 10, 24, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.07);
  transition: border-color 180ms var(--ease-out),
              transform 180ms var(--ease-out);
  animation: card-rise 440ms var(--ease-out) both;
}
.lane-stack .candidate-card:nth-child(1) { animation-delay: 60ms; }
.lane-stack .candidate-card:nth-child(2) { animation-delay: 120ms; }
.lane-stack .candidate-card:nth-child(3) { animation-delay: 180ms; }
.lane-stack .candidate-card:nth-child(4) { animation-delay: 240ms; }
.lane-stack .candidate-card:nth-child(n+5) { animation-delay: 300ms; }

@media (hover: hover) and (pointer: fine) {
  .candidate-card:hover {
    border-color: var(--line-focus);
    transform: translateY(-2px);
  }
}

/* Thin colored left border per tier */
.candidate-card.qualified  { border-left: 2px solid rgba(34, 197, 94, 0.55); }
.candidate-card.borderline { border-left: 2px solid rgba(245, 158, 11, 0.55); }
.candidate-card.stretch    { border-left: 2px solid rgba(239, 68, 68, 0.55); }

.candidate-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.candidate-top-info {
  min-width: 0;
  flex: 1;
}

.candidate-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.candidate-role {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.salary-line {
  font-weight: 500;
  color: #4ade80 !important;
}

.remote-pill {
  display: inline-block;
  background: var(--blue-dim);
  color: var(--blue-lt);
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  vertical-align: middle;
  margin-left: 4px;
}

/* ── Score ring ───────────────────────────────────────── */

/* Register --pct so the conic-gradient fill can animate (graceful no-op if unsupported) */
@property --pct {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}

.score-ring {
  --pct: 0%;
  --ring-color: var(--blue-lt);
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: conic-gradient(
    var(--ring-color) 0% var(--pct),
    var(--surface-3) var(--pct) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: --pct 900ms var(--ease-out);
}

.score-ring::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--surface-2);
}

.score-ring-value {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.score-ring.qualified   { --ring-color: var(--green); }
.score-ring.borderline  { --ring-color: var(--amber); }
.score-ring.stretch     { --ring-color: var(--rose); }

.score-ring-value.qualified  { color: #4ade80; }
.score-ring-value.borderline { color: #fbbf24; }
.score-ring-value.stretch    { color: #f87171; }

/* ── Candidate reason ─────────────────────────────────── */

.candidate-reason {
  line-height: 1.55;
  margin: 0 0 10px;
  font-size: 0.79rem;
  color: var(--muted);
  padding: 8px 10px;
  background: var(--surface-3);
  border-radius: 8px;
  border-left: 2px solid rgba(37, 99, 235, 0.3);
}

/* ── Skills block ─────────────────────────────────────── */

.candidate-skills-block {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.skills-group-header {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.skills-group-label {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  margin-top: 2px;
  flex-shrink: 0;
}

.skills-group-label.matched {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
}
.skills-group-label.missing {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.skill-chip {
  display: inline-block;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.4;
}

.chip--matched {
  background: rgba(34, 197, 94, 0.08);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.18);
}
.chip--missing {
  background: rgba(239, 68, 68, 0.08);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.18);
}
.chip--ok {
  background: rgba(34, 197, 94, 0.06);
  color: #4ade80;
  font-style: italic;
  border: 1px solid rgba(34, 197, 94, 0.12);
}
.chip--none {
  background: var(--surface-3);
  color: var(--muted);
  font-style: italic;
  border: 1px solid var(--line);
}

/* ── Gap plan detail box ─────────────────────────────── */

.candidate-grid {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.candidate-detail {
  border-radius: 8px;
  padding: 9px 11px;
  background: var(--surface-3);
  border: 1px solid var(--line);
}

.detail-title {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
  margin-bottom: 4px;
}

.detail-copy {
  line-height: 1.55;
  font-size: 0.79rem;
  color: var(--muted);
}

/* ── Action row ───────────────────────────────────────── */

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

/* ── Empty card ───────────────────────────────────────── */

.empty-card {
  border-radius: 10px;
  padding: 14px;
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════
   RECRUITER — RANKED LIST
═══════════════════════════════════════════════════════════ */

.ranked-list { display: grid; gap: 9px; }

.ranked-card {
  border-radius: 14px;
  background: rgba(6, 8, 20, 0.70);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  transition: border-color 180ms var(--ease-out),
              transform 180ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .ranked-card:hover {
    border-color: var(--line-focus);
    transform: translateY(-1px);
  }
}

.ranked-card--qualified  { border-left: 3px solid rgba(34, 197, 94, 0.65); }
.ranked-card--borderline { border-left: 3px solid rgba(245, 158, 11, 0.65); }
.ranked-card--stretch    { border-left: 3px solid rgba(239, 68, 68, 0.65); }

.ranked-card-inner {
  display: grid;
  grid-template-columns: 78px 1fr;
}

.rank-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 16px 8px;
  background: var(--surface-2);
  border-right: 1px solid var(--line);
}

.rank-num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: -0.04em;
}

.rank-score {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.rank-score.qualified  { color: #4ade80; }
.rank-score.borderline { color: #fbbf24; }
.rank-score.stretch    { color: #f87171; }

.tier-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
}

.tier-badge--green {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}
.tier-badge--amber {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.tier-badge--rose {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.cand-col {
  padding: 14px 18px;
  display: grid;
  gap: 8px;
}

.cand-header { display: grid; gap: 5px; }

.cand-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.cand-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.71rem;
  font-weight: 500;
  color: var(--text-2);
}

.meta-pill--contact {
  background: var(--blue-dim);
  border-color: rgba(37, 99, 235, 0.24);
  color: var(--blue-lt);
}

.cand-reason {
  font-size: 0.79rem;
  color: var(--muted);
  line-height: 1.55;
  font-style: italic;
}

.skills-row { display: grid; gap: 4px; }

.skills-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.skills-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.skills-group--matched .skills-label { color: #4ade80; }
.skills-group--missing .skills-label { color: #f87171; }

.skill-tag {
  display: inline-block;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: 500;
}

.skill-tag--matched {
  background: rgba(34, 197, 94, 0.08);
  color: #4ade80;
}
.skill-tag--missing {
  background: rgba(239, 68, 68, 0.08);
  color: #f87171;
}

.certs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.cert-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 600;
}

.cert-pill--ok      { background: rgba(34, 197, 94, 0.08); color: #4ade80; }
.cert-pill--missing { background: rgba(239, 68, 68, 0.08); color: #f87171; }

/* ═══════════════════════════════════════════════════════════
   NOTIFY BAR
═══════════════════════════════════════════════════════════ */

.notify-bar {
  background: rgba(6, 8, 20, 0.70);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 18px 20px;
  display: grid;
  gap: 12px;
}

.notify-bar-text { display: grid; gap: 3px; }

.notify-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.notify-subtitle {
  color: var(--muted);
  font-size: 0.79rem;
}

.notify-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.notify-email-input {
  flex: 1;
  min-width: 190px;
  padding: 9px 12px;
  border-radius: 8px;
}

.notify-feedback { min-height: 1.1em; }

/* ═══════════════════════════════════════════════════════════
   EMAIL PREVIEW MODAL
═══════════════════════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--ease-out);
}

.modal-overlay.modal-open {
  opacity: 1;
  pointer-events: all;
}

/* Modal scales from center (not a popover, so transform-origin stays center) */
.modal-box {
  background: rgba(6, 8, 20, 0.88);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  width: min(860px, 92vw);
  max-height: 88vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transition: opacity 220ms var(--ease-out),
              transform 220ms var(--ease-out);
  /* Entry: starts slightly scaled down — nothing appears from nothing */
  opacity: 0;
  transform: scale(0.96);
}

.modal-overlay.modal-open .modal-box {
  opacity: 1;
  transform: scale(1);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.modal-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.modal-close-btn {
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 30px;
  height: 30px;
  font-size: 0.78rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: background 140ms var(--ease-out),
              color 140ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .modal-close-btn:hover {
    background: var(--surface-4);
    color: var(--text);
  }
}

.modal-close-btn:active { transform: scale(0.94); }

.email-preview-frame {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
}

.modal-footer {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
}

.success-text { color: #4ade80; }
.error-text   { color: #f87171; }

/* ═══════════════════════════════════════════════════════════
   TAILOR RESUME BUTTON + PANEL
═══════════════════════════════════════════════════════════ */

.tailor-action {
  background: var(--blue-dim);
  color: var(--blue-lt);
  border: 1px solid rgba(37, 99, 235, 0.24);
  font-weight: 600;
  transition: background-color 150ms var(--ease-out),
              transform 160ms var(--ease-out),
              opacity 160ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .tailor-action:hover {
    background-color: rgba(37, 99, 235, 0.2);
  }
}

.tailor-action:active      { transform: scale(0.96); }
.tailor-action--active     { background: rgba(37, 99, 235, 0.18); color: var(--blue-lt); }

/* Entry animation — translateY, not scale(0) */
.tailor-panel {
  margin-top: 12px;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface-3);
  animation: panel-enter 200ms var(--ease-out) both;
}

@keyframes panel-enter {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tailor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--line);
}

.tailor-header-left { display: grid; gap: 2px; }

.tailor-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-lt);
}

.tailor-note {
  font-size: 0.74rem;
  color: var(--muted);
}

.tailor-copy-btn {
  flex-shrink: 0;
  font-size: 0.74rem;
  padding: 6px 12px;
}

.tailor-block { padding: 12px 14px; }

.tailor-block + .tailor-block {
  border-top: 1px solid var(--line);
}

.tailor-block-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 7px;
}

.tailor-summary {
  line-height: 1.65;
  font-size: 0.83rem;
  color: var(--text-2);
}

.tailor-bullets {
  list-style: none;
  display: grid;
  gap: 7px;
}

.tailor-bullets li {
  padding-left: 16px;
  position: relative;
  font-size: 0.83rem;
  line-height: 1.58;
  color: var(--text-2);
}

.tailor-bullets li::before {
  content: "•";
  position: absolute;
  left: 3px;
  color: var(--blue-lt);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   PAST APPLICANTS SECTION
═══════════════════════════════════════════════════════════ */

.past-section { display: grid; gap: 10px; }

.past-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-top: 2px solid var(--blue);
  border-radius: 14px;
  padding: 16px 18px;
}

.past-header-text { display: grid; gap: 3px; }

.past-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.past-subtitle {
  font-size: 0.77rem;
  color: var(--muted);
}

.past-badge {
  display: inline-block;
  background: var(--blue-dim);
  border: 1px solid rgba(37, 99, 235, 0.24);
  color: var(--blue-lt);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.past-card {
  border-style: dashed;
  opacity: 0.88;
}

/* ═══════════════════════════════════════════════════════════
   INTEGRATIONS PANEL
═══════════════════════════════════════════════════════════ */

.integrations-panel {
  background: rgba(6, 8, 20, 0.70);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
}

.integrations-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  gap: 10px;
  text-align: left;
}

@media (hover: hover) and (pointer: fine) {
  .integrations-toggle:hover { background: rgba(255, 255, 255, 0.03); }
}

.integrations-toggle-label { display: grid; gap: 2px; }

.integrations-toggle-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.integrations-toggle-sub {
  font-size: 0.79rem;
  color: var(--muted);
}

.integrations-chevron {
  font-size: 0.7rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 200ms var(--ease-out);
}

.integrations-chevron--open { transform: rotate(90deg); }

.integrations-body {
  padding: 4px 20px 20px;
  display: grid;
  gap: 0;
}

.integrations-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 14px 0;
}

.integration-section { display: grid; gap: 7px; }

.integration-title {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.integration-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.integration-input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════════
   SHORTLIST & FILTER CHIPS
═══════════════════════════════════════════════════════════ */

.cand-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.shortlist-btn {
  flex-shrink: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  white-space: nowrap;
  transition: background 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

.shortlist-btn--active {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

@media (hover: hover) and (pointer: fine) {
  .shortlist-btn:not(.shortlist-btn--active):hover {
    background: var(--surface-4);
    color: var(--text);
    border-color: var(--line-focus);
  }
}

.shortlist-section { display: grid; gap: 10px; }

/* ── Candidate status select ─────────────────────────────────────────── */
.status-select {
  appearance: none;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-2);
  cursor: pointer;
  font-size: 0.72rem;
  font-family: inherit;
  padding: 4px 10px;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.status-select:focus { outline: none; border-color: var(--blue); }
.status-select--interview { border-color: rgba(245,158,11,.4); color: #fbbf24; background: rgba(245,158,11,.06); }
.status-select--hired     { border-color: rgba(34,197,94,.4);  color: #4ade80; background: rgba(34,197,94,.06);  }
.status-select--rejected  { border-color: rgba(239,68,68,.4);  color: #f87171; background: rgba(239,68,68,.06);  }

/* ── Score history panel ─────────────────────────────────────────────── */
.score-history-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.score-history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
}
.score-history-date  { color: var(--muted); min-width: 44px; flex-shrink: 0; }
.score-history-query { color: var(--text-2); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Score Trend (per-role sparkline) ── */
.score-trend {
  background: rgba(8, 10, 24, 0.55);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 12px 12px 10px;
  margin-bottom: 12px;
}
.score-trend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.score-trend-role {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trend-delta {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  flex-shrink: 0;
}
.trend-delta--up   { color: #4ade80; background: rgba(34, 197, 94, 0.14); }
.trend-delta--down { color: #f87171; background: rgba(239, 68, 68, 0.14); }
.trend-delta--flat { color: var(--text-2); background: var(--surface-3); }

.sparkline {
  display: block;
  width: 100%;
  height: 46px;
  overflow: visible;
}
.spark-line {
  fill: none;
  stroke: var(--ring-color, var(--blue-lt));
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: spark-draw 900ms var(--ease-out) both;
}
@keyframes spark-draw {
  from { stroke-dasharray: 1; stroke-dashoffset: 1; }
  to   { stroke-dasharray: 1; stroke-dashoffset: 0; }
}
.spark-area { fill: var(--ring-color, var(--blue-lt)); opacity: 0.10; }
.spark-dot  { fill: var(--ring-color, var(--blue-lt)); }
.sparkline.qualified  { --ring-color: var(--green); }
.sparkline.borderline { --ring-color: var(--amber); }
.sparkline.stretch    { --ring-color: var(--rose); }

.score-trend-caption {
  margin-top: 6px;
  font-size: 0.7rem;
  color: var(--muted);
}
.score-trend-caption strong { color: var(--text-2); }
.score-trend-synced { color: var(--blue-lt); font-weight: 600; }
.score-trend-hint {
  font-size: 0.74rem;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 10px;
}
.score-trend-hint strong { color: var(--text); }
.score-history-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shortlist-header {
  display: flex;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-top: 2px solid rgba(245, 158, 11, 0.55);
  border-radius: 14px;
  padding: 16px 18px;
}

.shortlist-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.shortlist-subtitle {
  font-size: 0.77rem;
  color: var(--muted);
  margin-top: 3px;
}

.filter-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-chip {
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  transition: background 140ms var(--ease-out), color 140ms var(--ease-out), border-color 140ms var(--ease-out);
}

.filter-chip--active {
  background: var(--blue-dim);
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--blue-lt);
}

@media (hover: hover) and (pointer: fine) {
  .filter-chip:not(.filter-chip--active):hover {
    background: var(--surface-4);
    color: var(--text);
    border-color: var(--line-focus);
  }
}

/* ═══════════════════════════════════════════════════════════
   VIEW TABS (Rank New Batch / Talent Pool)
═══════════════════════════════════════════════════════════ */

.view-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px;
}

.view-tab {
  flex: 1;
  padding: 10px 16px;
  border-radius: 11px;
  border: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--text-2);
  transition: background 150ms var(--ease-out), color 150ms var(--ease-out);
}

.view-tab--active {
  background: var(--surface-4);
  color: var(--text);
}

@media (hover: hover) and (pointer: fine) {
  .view-tab:not(.view-tab--active):hover {
    background: var(--surface-2);
    color: var(--text);
  }
}

/* ═══════════════════════════════════════════════════════════
   TALENT POOL — FILTER BAR
═══════════════════════════════════════════════════════════ */

.pool-filter-bar {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.pool-filter-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.pool-filter-group--score {
  flex: 0 0 200px;
}

.pool-score-slider {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--surface-3);
  outline: none;
  cursor: pointer;
  margin: 9px 0 4px;
  border: none;
}

.pool-score-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.pool-score-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
  border: 2px solid var(--bg);
}

/* ═══════════════════════════════════════════════════════════
   TALENT POOL — STATUS BAR
═══════════════════════════════════════════════════════════ */

.pool-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 4px;
}

.pool-status-text {
  font-size: 0.8rem;
  color: var(--text-2);
}

/* ═══════════════════════════════════════════════════════════
   TALENT POOL — CARD GRID
═══════════════════════════════════════════════════════════ */

.pool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.pool-empty-card {
  grid-column: 1 / -1;
  padding: 36px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.6;
}

.pool-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: border-color 140ms var(--ease-out), box-shadow 140ms var(--ease-out), transform 120ms var(--ease-out);
  user-select: none;
}

@media (hover: hover) and (pointer: fine) {
  .pool-card:hover {
    border-color: var(--line-focus);
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
  }
}

.pool-card--selected {
  border-color: rgba(37, 99, 235, 0.5);
  background: rgba(37, 99, 235, 0.06);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.pool-card-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  z-index: 1;
}

.pool-card-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: var(--surface-3);
  cursor: pointer;
  accent-color: var(--blue);
}

.pool-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-right: 26px;
}

.pool-card-score {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 800;
  flex-shrink: 0;
}

.pool-card-score.qualified  { background: rgba(34,197,94,.15);  color: #4ade80; }
.pool-card-score.borderline { background: rgba(245,158,11,.15); color: #fbbf24; }
.pool-card-score.stretch    { background: rgba(239,68,68,.15);  color: #f87171; }

.pool-card-info {
  min-width: 0;
  flex: 1;
}

.pool-card-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pool-card-title {
  font-size: 0.78rem;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.pool-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--muted);
}

.pool-card-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.pool-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

/* ═══════════════════════════════════════════════════════════
   TALENT POOL — SELECT BAR (sticky)
═══════════════════════════════════════════════════════════ */

.pool-select-bar {
  position: sticky;
  bottom: 20px;
  background: var(--surface-4);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  z-index: 10;
}

.pool-select-info {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
}

/* ═══════════════════════════════════════════════════════════
   APPLICANT OPT-IN CHECKBOX
═══════════════════════════════════════════════════════════ */

.opt-in-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 4px;
}

.opt-in-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--blue);
  cursor: pointer;
}

.opt-in-label {
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.5;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .orb { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
  .page-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    max-height: none;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .board-grid {
    grid-template-columns: 1fr;
  }
  .lane-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tag-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 10px;
    gap: 10px;
  }
  .hero-card {
    padding: 20px;
    border-radius: 16px;
  }
  .stats-grid,
  .board-grid,
  .hero-meta {
    grid-template-columns: 1fr;
  }
  .lane-stack {
    grid-template-columns: 1fr;
  }
  .ranked-card-inner {
    grid-template-columns: 64px 1fr;
  }
}

/* ── Brand mark (PathAscent logo) ─────────────────────────── */
.brand-mark {
  flex: none;
  height: 44px;
  width: auto;
  display: block;
}
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; }
