/* v=1780592136 */
/* ── Variables ── */
:root {
  /* ── Brand palette ── */
  --navy:          #2a3550;
  --navy-mid:      #354265;
  --navy-light:    #3e4e78;
  --amber:         #e8b84b;
  --amber-dark:    #c49a2a;
  --amber-faint:   rgba(232,184,75,.10);

  /* ── Surfaces ── */
  --bg:            #f2f4f8;
  --surface:       #ffffff;
  --border:        #e2e6ee;
  --border-strong: #ccd2de;

  /* ── Accent (amber replaces blue) ── */
  --accent:        #c49a2a;
  --accent-light:  rgba(232,184,75,.12);
  --accent-hover:  #b08820;

  /* ── Semantic ── */
  --green:         #10b981;
  --green-light:   #d1fae5;
  --yellow:        #f59e0b;
  --yellow-light:  #fef3c7;
  --red:           #ef4444;
  --red-light:     #fee2e2;
  --blue:          #2563eb;
  --blue-light:    #dbeafe;
  --purple:        #8b5cf6;
  --purple-light:  #ede9fe;

  /* ── Text ── */
  --text:          #0d1a2e;
  --sub:           #4a5568;
  --muted:         #8a94a8;

  /* ── Misc ── */
  --mono:   'JetBrains Mono', monospace;
  --sans:   'Inter', -apple-system, sans-serif;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  min-height: 100vh;
}






/* ── Profile avatar button ── */
.profile-avatar-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy-light);
  border: 1.5px solid var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--amber);
  font-size: 15px;
  flex-shrink: 0;
  position: relative;
  transition: background .15s;
}
.profile-avatar-btn:hover { background: var(--navy-mid); }
.profile-avatar-btn img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* ── Profile dropdown panel ── */
.profile-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 200;
  overflow: hidden;
}
.profile-dropdown.open { display: block; }
.pd-head {
  padding: 16px;
  background: var(--navy);
  text-align: center;
}
.pd-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy-light);
  border: 2px solid var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  color: var(--amber);
  font-size: 18px;
  overflow: hidden;
}
.pd-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.pd-name { font-size: 14px; font-weight: 600; color: #ffffff; }
.pd-sub  { font-size: 11px; color: #7a90b0; margin-top: 2px; }
.pd-body { padding: 8px; }
.pd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--sub);
  transition: background .12s, color .12s;
}
.pd-item:hover { background: var(--bg); color: var(--text); }
.pd-item i { color: var(--amber); font-size: 16px; }
.pd-divider { border: none; border-top: 1px solid var(--border); margin: 4px 8px; }
.pd-item.signout:hover { background: var(--red-light); color: var(--red); }
.pd-item.signout i { color: var(--red); }

@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .7; }
}

/* ── Layout ── */
main { padding: 24px; max-width: 1400px; margin: 0 auto; }

/* ── Tab content panels ── */
#pane-pipeline,
#pane-scraper,
#pane-ats { display: block; }

/* ── Card ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--sans);
  cursor: pointer;
  transition: all .15s;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary   { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-mid); border-color: var(--navy-mid); }

.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--bg); }

.btn-ghost { background: transparent; color: var(--sub); border-color: transparent; }
.btn-ghost:hover { background: var(--bg); color: var(--text); }

.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Old header tabs — hidden, replaced by sidebar/bottom nav ── */
.tabs { display: none; }
.tab  { display: none; }

/* ── Sub-tabs (pipeline, opportunities) ── */
.sub-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.sub-tab {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sub);
  background: transparent;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.sub-tab:hover { color: var(--text); background: var(--bg); }
.sub-tab.active { color: #fff; background: var(--accent); box-shadow: 0 1px 3px rgba(37,99,235,.2); }
.tab-divider { width: 1px; background: var(--border); margin: 4px 0; }

/* ── KPI Grid ── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.kpi-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  transition: all .15s;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.kpi-card:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}
.kpi-card.active-filter {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 2px var(--accent);
}
.kpi-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.kpi-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kpi-icon svg { width: 20px; height: 20px; }

.kpi-content { width: 100%; }
.kpi-num {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
  font-family: var(--mono);
}
.kpi-label {
  font-size: 12px;
  color: var(--sub);
  font-weight: 500;
  line-height: 1.3;
}

/* ── Search + Controls ── */
.controls {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.search {
  flex: 1;
  min-width: 200px;
  max-width: 320px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-size: 13px;
  font-family: var(--sans);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}
.search:focus { border-color: var(--accent); }

.filter-btn {
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  background: var(--surface);
  color: var(--sub);
  cursor: pointer;
  transition: all .15s;
}
.filter-btn:hover { border-color: var(--border-strong); color: var(--text); background: var(--bg); }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }


/* ── Profile tab bar ─────────────────────────────────────────────────────── */
.prof-tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin: 0 0 16px 0;
  background: var(--surface);
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}
.prof-tab-btn {
  flex: 1;
  padding: 11px 8px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.15s;
  white-space: nowrap;
}
.prof-tab-btn:hover { color: var(--text); }
.prof-tab-active {
  color: var(--accent) !important;
  border-bottom-color: var(--accent) !important;
  font-weight: 600;
}
/* ── Pipeline Table ── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

table { width: 100%; border-collapse: collapse; }

thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--sub);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}
tbody tr:nth-child(4n+1),
tbody tr:nth-child(4n+2) { background: var(--surface); }
tbody tr:nth-child(4n+3),
tbody tr:nth-child(4n+4) { background: var(--bg); }
tbody tr:last-child  { border-bottom: none; }
tbody tr:hover { background: var(--accent-light) !important; }

td { padding: 11px 14px; vertical-align: middle; }

.co-name    { font-weight: 600; font-size: 13px; color: var(--text); }
.co-sub     { font-size: 11px; color: var(--muted); margin-top: 1px; }
.role-cell  { color: var(--sub); font-size: 12px; max-width: 220px; }
.date-cell  { font-size: 12px; color: var(--sub); white-space: nowrap; font-family: var(--mono); }
.salary-cell{ font-size: 12px; font-family: var(--mono); color: var(--sub); }
.num-cell   { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.warm-cell {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-left: 8px;
}
.tier-badge.tier-high    { background: var(--green-light); color: var(--green); }
.tier-badge.tier-med     { background: var(--blue-light); color: var(--blue); }
.tier-badge.tier-low     { background: var(--purple-light); color: var(--purple); }
.tier-badge.tier-unknown { background: var(--bg); color: var(--muted); }

.status-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; margin-left: 8px; }
.status-badge.status-backlog  { background: var(--yellow-light); color: var(--yellow); }
.status-badge.status-dismissed{ background: var(--red-light); color: var(--red); }

/* ── Expandable rows ── */
.app-row.expanded { background: var(--bg); }

.notes-row { background: var(--bg); border-bottom: 1px solid var(--border) !important; }

.notes-content {
  padding: 12px 14px;
  font-size: 12px;
  color: var(--sub);
  line-height: 1.6;
}
.notes-section { margin-bottom: 8px; }
.notes-section:last-child { margin-bottom: 0; }
.notes-section strong { color: var(--text); font-weight: 600; margin-right: 4px; }

/* ── Edit button ── */
.edit-btn {
  padding: 4px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  font-size: 11px;
  background: var(--surface);
  color: var(--sub);
  cursor: pointer;
  transition: all .15s;
}
.edit-btn:hover { background: var(--bg); color: var(--text); }

/* ── Empty state ── */
.empty { text-align: center; padding: 48px; color: var(--muted); }


/* ══════════════════════════════════════════════════════
   JOB CARD v9 — OdysseyVal spans full card height
   ══════════════════════════════════════════════════════ */

body { font-size: 14px; }

/* ── Card wrapper ── */
.job-card-new {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: visible;
  transition: border-color .15s, box-shadow .15s;
  display: grid;
  grid-template-columns: 1fr 220px;
}
.job-card-new:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.job-card-new.dismissed { opacity: .55; border-color: var(--red); }

/* ── Left: collapsed + expanded content ── */
.jc-card-left {
  min-width: 0;
  border-right: 1px solid var(--border);
  grid-column: 1;
  grid-row: 1;
}

/* ── Collapsed row ── */
.jc-collapsed {
  display: flex; align-items: flex-start;
  gap: 14px; padding: 14px 16px;
  cursor: pointer; user-select: none;
}
.jc-collapsed:hover { background: rgba(0,0,0,0.012); }

.jc-avatar {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; color: #fff;
  flex-shrink: 0; margin-top: 2px;
}
.jc-title-block { flex: 1; min-width: 0; }

.jc-signal-chips { display: flex; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.jc-signal-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.74em; font-weight: 600;
  padding: 2px 8px; border-radius: 20px; border: 1px solid; white-space: nowrap;
}
.jc-signal-net { color: var(--muted); border-color: var(--border); background: var(--bg); font-weight: 400; }

.jc-company { font-weight: 700; font-size: 1.1em; color: var(--text); margin-bottom: 1px; }
.jc-tagline { font-size: 0.82em; color: var(--muted); margin-bottom: 4px; line-height: 1.4; }
.jc-role    { font-size: 0.9em; color: var(--sub); margin-bottom: 8px; }

.jc-meta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; align-items: center; }
.jc-meta-item { display: inline-flex; align-items: center; gap: 5px; font-size: 0.82em; font-weight: 500; }
.jc-meta-icon { display: flex; align-items: center; flex-shrink: 0; opacity: 0.8; }
.jc-meta-text { white-space: nowrap; }

.jc-inline-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.jc-act-btn {
  padding: 6px 13px; border-radius: 7px; font-size: 0.8em; font-weight: 600;
  cursor: pointer; border: none; text-decoration: none; transition: all .15s;
  white-space: nowrap; display: inline-flex; align-items: center;
}
.jc-act-apply    { background: var(--amber); color: #1a2540; }
.jc-act-apply:hover { background: var(--amber-dark); }
.jc-act-pipeline { background: rgba(99,102,241,0.1); color: #818cf8; border: 1px solid rgba(99,102,241,0.25); }
.jc-act-pipeline:hover { background: rgba(99,102,241,0.2); }
.jc-act-fit      { background: rgba(232,184,75,0.1); color: var(--amber); border: 1px solid rgba(232,184,75,0.2); }
.jc-act-fit:hover { background: rgba(232,184,75,0.2); }
.jc-act-dismiss  { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.jc-act-dismiss:hover { color: var(--red); border-color: var(--red); background: rgba(239,68,68,0.05); }

/* Right: OdysseyVal — always present, spans full card height */
.jc-odyssey-val {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  grid-column: 2;
  grid-row: 1;
  border-left: 1px solid var(--border);
}

.ov-label {
  font-size: 0.68em; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  display: flex; justify-content: space-between; align-items: center;
}
.ov-source { font-weight: 400; font-size: 0.9em; color: var(--muted); }

.ov-score-wrap {
  border-radius: 12px; border: 1px solid;
  padding: 16px 12px; text-align: center;
  flex-shrink: 0;
}
.ov-score-num { font-size: 3.6em; font-weight: 800; line-height: 1; letter-spacing: -3px; }
.ov-pct { font-size: 0.32em; font-weight: 700; vertical-align: super; letter-spacing: 0; }
.ov-verdict { font-size: 0.7em; font-weight: 800; letter-spacing: 0.1em; margin-top: 5px; text-transform: uppercase; }
.ov-verdict-pill { font-size: 0.65em; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 20px; padding: 3px 10px; display: inline-block; margin-top: 7px; }

.ov-reasons {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
  border-top: 1px solid var(--border); padding-top: 8px;
}
.ov-reasons li { font-size: 0.8em; line-height: 1.35; padding: 2px 0 2px 16px; position: relative; font-weight: 600; }
.ov-good { color: #4ade80; }
.ov-good::before { content: "✓"; position: absolute; left: 1px; font-size: 0.9em; }
.ov-gap  { color: #f87171; }
.ov-gap::before  { content: "⚠"; position: absolute; left: 0; font-size: 0.85em; }

.ov-synopsis {
  font-size: 0.78em; color: var(--muted); line-height: 1.5;
  border-top: 1px solid var(--border); padding-top: 8px;
  font-style: italic;
}
.ov-pending { border-color: var(--border); background: var(--bg); text-align: center; }
.ov-pending-label { font-size: 0.85em; color: var(--muted); font-style: italic; }
.ov-empty { font-size: 0.85em; color: var(--muted); font-style: italic; text-align: center; padding: 12px 0; }

/* ── Expanded sections inside jc-card-left ── */
.jc-exp-section {
  padding: 16px 18px;
  border-top: 1px solid var(--border);
}

/* AI Fit + Intel two-col */
.jc-exp-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
}
.jc-exp-two-col .jc-exp-section {
  border-top: none;
}
.jc-exp-two-col .jc-exp-section:first-child {
  border-right: 1px solid var(--border);
}

/* Section titles */
.jc-section-title {
  font-size: 0.72em; font-weight: 700; letter-spacing: 0.08em;
  color: var(--muted); text-transform: uppercase;
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.jc-section-meta { font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 1em; color: var(--muted); }

.jc-blurb { font-size: 0.92em; color: var(--sub); line-height: 1.65; }
.jc-dismissed-reason { font-size: 0.88em; color: var(--muted); margin-top: 10px; padding: 10px 12px; background: var(--bg); border-radius: 6px; }

/* AI Fit */
.jc-fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.jc-fit-col-label { font-size: 0.75em; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 6px; }
.jc-fit-col-label.gap   { color: #f87171; }
.jc-fit-col-label.match { color: #4ade80; }
.jc-fit-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 3px; }
.jc-fit-list li { font-size: 0.85em; color: var(--sub); padding: 2px 0 2px 13px; position: relative; line-height: 1.35; }
.jc-fit-list li::before { content: "•"; position: absolute; left: 2px; color: #f87171; font-size: 1.1em; line-height: 1.2; }
.jc-fit-list.match li::before { color: #4ade80; }
.jc-fit-synopsis { font-size: 0.88em; color: var(--sub); line-height: 1.6; margin-bottom: 10px; padding: 8px 10px; background: var(--bg); border-radius: 6px; border-left: 2px solid var(--border); }
.jc-unscored { font-size: 0.88em; color: var(--muted); font-style: italic; }

/* Company Intel */
.recon-verdict-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.recon-verdict-label { font-weight: 600; font-size: 0.92em; color: var(--text); }
.recon-link { color: var(--amber); text-decoration: none; font-weight: 600; font-size: 0.85em; }
.recon-link:hover { text-decoration: underline; }
.recon-link-right { margin-left: auto; }
.recon-stats { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.recon-stat { display: flex; flex-direction: column; align-items: center; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; min-width: 76px; }
.recon-stat-val   { font-size: 1.2em; font-weight: 800; color: var(--text); line-height: 1; }
.recon-stat-label { font-size: 0.68em; color: var(--muted); margin-top: 3px; text-align: center; letter-spacing: 0.02em; }
.recon-summary    { font-size: 0.88em; color: var(--sub); line-height: 1.5; margin-bottom: 8px; }
.recon-links      { display: flex; gap: 12px; }
.jc-recon-loading { font-size: 0.88em; color: var(--muted); font-style: italic; }

/* JD */
.jc-jd-section { padding: 12px 18px; border-top: 1px solid var(--border); }
.jc-jd-toggle { display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; }
.jc-jd-toggle:hover .jc-section-title { color: var(--sub); }
.jc-jd-chevron { font-size: 0.8em; color: var(--muted); }
.jc-jd-badge { font-size: 0.9em; color: var(--muted); font-weight: 400; letter-spacing: 0; text-transform: none; }
.jc-jd-badge.jc-jd-full { color: #4ade80; }
.jc-jd-badge.jc-jd-none { color: var(--muted); }
.jc-jd-body { font-size: 0.88em; color: var(--sub); line-height: 1.65; white-space: pre-wrap; max-height: 320px; overflow-y: auto; margin-top: 10px; padding: 12px 14px; background: var(--bg); border-radius: 8px; border: 1px solid var(--border); }
.jc-jd-empty { color: var(--muted); font-style: italic; }

/* legacy hidden */
.jc-panel { display: none; }
.jc-score-col { display: none; }
.jc-right { display: none; }
.jc-score-pill { display: none; }
.jc-ote { display: none; }
.jc-chevron { display: none; }
.jc-exp-outer { display: none; }
.jc-exp-header { display: none; }
.jc-exp-body { display: none; }
.jc-odyssey-eval { display: none; }

/* ── Mobile ── */
@media (max-width: 768px) {
  .job-card-new { grid-template-columns: 1fr; }
  .jc-card-left { grid-column: 1; grid-row: 1; border-right: none; }
  .jc-odyssey-val {
    grid-column: 1; grid-row: 2;
    border-top: 1px solid var(--border); border-left: none;
    padding: 8px 12px;
    flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px;
  }
  .ov-label { font-size: 0.65em; flex-shrink: 0; order: 1; }
  .ov-score-wrap { padding: 5px 10px; display: flex; align-items: center; gap: 6px; border-radius: 8px; flex-shrink: 0; order: 2; }
  .ov-score-num { font-size: 1.4em; letter-spacing: -1px; }
  .ov-verdict { font-size: 0.6em; margin-top: 0; }
  .ov-reasons { display: none; }
  .ov-synopsis { display: none; }
  .jc-exp-two-col { grid-template-columns: 1fr; }
  .jc-exp-two-col .jc-exp-section:first-child { border-right: none; border-bottom: 1px solid var(--border); }
  .jc-fit-grid { grid-template-columns: 1fr; gap: 8px; }
  .jc-inline-actions { gap: 5px; }
  .jc-act-btn { padding: 5px 9px; font-size: 0.76em; }
  .jc-meta-row { gap: 8px; }
  .jc-avatar { width: 36px; height: 36px; font-size: 16px; }
  .jc-exp-section { padding: 12px 14px; }
}

/* ── Action Buttons ── */
.job-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.action-btn {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  display: inline-block;
}
.action-btn:hover { background: var(--bg); border-color: var(--border-strong); }

.action-pipeline { border-color: var(--accent); color: var(--accent); }
.action-pipeline:hover { background: var(--accent); color: #fff; }

.action-backlog { border-color: var(--yellow); color: var(--yellow); }
.action-backlog:hover { background: var(--yellow); color: #fff; }

.action-dismiss { border-color: var(--border-strong); color: var(--muted); }
.action-dismiss:hover { background: var(--red-light); border-color: var(--red); color: var(--red); }

.action-apply { background: var(--accent); color: #fff; border-color: var(--accent); }
.action-apply:hover { background: var(--accent-hover); }

/* ── Recon ── */
.recon-toggle {
  padding: 10px 14px;
  margin: 16px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.recon-toggle:hover { background: var(--accent-light); border-color: var(--accent); }

.recon-section {
  padding: 16px;
  margin: 12px 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
}
.recon-row { margin-bottom: 10px; color: var(--sub); display: flex; align-items: flex-start; gap: 8px; }
.recon-row:last-child { margin-bottom: 0; }
.recon-row strong { color: var(--text); font-weight: 600; min-width: 100px; flex-shrink: 0; }
.recon-loading { color: var(--muted); font-style: italic; padding: 8px 0; }
.recon-error   { color: var(--red); font-size: 11px; padding: 8px 0; }

.recon-btn {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all .2s;
}
.recon-btn:hover  { background: var(--accent-hover); box-shadow: 0 1px 3px rgba(37,99,235,.3); }
.recon-btn:active { transform: scale(.98); }

/* ── Links ── */
.job-link { color: var(--accent); text-decoration: none; font-family: var(--mono); font-size: 11px; }
.job-link:hover { text-decoration: underline; }
.recon-link { color: var(--accent); text-decoration: none; font-weight: 600; margin-left: 4px; }
.recon-link:hover { text-decoration: underline; }

/* ── Scraper controls bar ── */
.scraper-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 20px;
  gap: 8px;
}

/* ── Gmail scan panel ── */
.scan-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.scan-panel-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.scan-panel-sub   { font-size: 12px; color: var(--sub); margin-bottom: 14px; }
.scan-results     { margin-top: 14px; display: none; }

.scan-result-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.scan-result-item:last-child { border-bottom: none; }
.scan-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
.scan-result-company { font-weight: 600; font-size: 13px; }
.scan-result-detail  { font-size: 12px; color: var(--sub); }

/* ── Dismiss modal ── */
.dismiss-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.dismiss-modal {
  background: var(--surface);
  border-radius: 12px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.dismiss-modal h3 { margin: 0 0 16px; font-size: 18px; }

.dismiss-select,
.dismiss-notes {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: var(--sans);
  margin-bottom: 12px;
  background: var(--surface);
  color: var(--text);
}
.dismiss-select:focus,
.dismiss-notes:focus { outline: none; border-color: var(--accent); }
.dismiss-notes { min-height: 80px; resize: vertical; }

.dismiss-actions { display: flex; gap: 8px; justify-content: flex-end; }
.dismiss-cancel, .dismiss-submit { padding: 8px 16px; border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all .15s; }
.dismiss-cancel { background: var(--bg); border: 1px solid var(--border); color: var(--text); }
.dismiss-cancel:hover { background: var(--border); }
.dismiss-submit { background: var(--red); border: none; color: #fff; }
.dismiss-submit:hover { background: #b91c1c; }

/* ── Edit modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.3);
  backdrop-filter: blur(2px);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 440px;
  max-width: 95vw;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
}
.modal-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.modal-footer { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }

.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--sub);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-size: 13px;
  font-family: var(--sans);
  background: var(--surface);
  color: var(--text);
  outline: none;
}
.form-control:focus { border-color: var(--accent); }
textarea.form-control { resize: vertical; min-height: 80px; }

/* ── ATS Engine ── */
.ats-input {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.ats-input input {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 12px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}
.ats-input input:focus { border-color: var(--accent); }
.ats-input input.ats-company { flex: 1; }
.ats-input input.ats-role    { flex: 2; }

.ats-jd {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 12px;
  background: var(--bg);
  color: var(--text);
  resize: vertical;
  line-height: 1.6;
  outline: none;
  transition: border-color .15s;
}
.ats-jd:focus { border-color: var(--accent); }

.ats-score-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  background: var(--bg);
  border-radius: 8px;
  padding: 4px;
  width: fit-content;
}
.ats-score-tab {
  padding: 6px 16px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--sans);
  cursor: pointer;
  background: transparent;
  color: var(--sub);
  transition: all .15s;
}
.ats-score-tab.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.ats-score-tab:hover:not(.active) { color: var(--text); }

.ats-repvue-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  min-width: 120px;
}
.ats-repvue-stat-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ats-repvue-stat-val   { font-size: 13px; font-weight: 600; color: var(--text); margin-top: 2px; }

.ats-verdict-badge {
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  align-self: center;
  letter-spacing: .05em;
}

.ats-gap-col { }
.ats-gap-col-header {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
}
.ats-gap-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
  display: block;
}
.ats-gap-tag.missing-hard { background: var(--red-light); color: var(--red); }
.ats-gap-tag.missing-soft { background: var(--yellow-light); color: #92400e; }
.ats-gap-tag.matched      { background: var(--green-light); color: #065f46; }

.ats-pane-header {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
}
.ats-resume-pane {
  font-size: 11px;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-wrap;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  max-height: 560px;
  overflow-y: auto;
  font-family: var(--mono);
}

/* ── Spinner — compass rose ── */
.spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Inject SVG spinner via JS — .spinner gets replaced with inline SVG */
@keyframes compass-seek {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(22deg); }
  55%  { transform: rotate(-18deg); }
  75%  { transform: rotate(10deg); }
  90%  { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}
.spinner-svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  animation: compass-seek 1.6s cubic-bezier(.45,.05,.55,.95) infinite;
  transform-origin: center center;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--text);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: all .2s;
  z-index: 999;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ── Error box ── */
.error-box {
  padding: 16px 20px;
  background: var(--red-light);
  color: var(--red);
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}


/* leads-toolbar removed */
.sort-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sort-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}
.sort-btn {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--sub);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.sort-btn:hover { border-color: var(--accent); color: var(--text); }
.sort-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Generate Leads button — inline with toolbar */
#scraper-run-btn {
  white-space: nowrap;
  flex-shrink: 0;
}


/* ══════════════════════════════════════════════════════
   LEADS FILTER CHIPS
   ══════════════════════════════════════════════════════ */

.leads-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: nowrap;
  overflow: visible;
}
.generate-leads-btn {
  padding: 5px 12px;
  font-size: 11px;
  flex-shrink: 0;
}
/* Mobile: hide desktop button, show centered one */
.generate-leads-mobile {
  display: none;
}

.leads-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  flex-shrink: 0;
  letter-spacing: .06em;
}

.filter-dirty-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.filter-revert-btn {
  font-size: 12px;
  color: var(--muted);
  border-color: var(--border);
}
.filter-rerun-btn {
  font-size: 12px;
  animation: pulse-amber 1.5s ease infinite;
}
@keyframes pulse-amber {
  0%,100% { box-shadow: 0 0 0 0 rgba(196,154,42,0); }
  50%      { box-shadow: 0 0 0 4px rgba(196,154,42,0.25); }
}

/* ── Chips row ── */
.leads-chips-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 11px;
  font-weight: 600;
  color: var(--sub);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  position: relative;
  user-select: none;
}
.filter-chip:hover:not(.chip-disabled) {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-light);
}
.filter-chip.chip-active {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--text);
}
.filter-chip.chip-dirty {
  border-color: #f59e0b;
  background: rgba(245,158,11,0.1);
  color: var(--text);
}
.filter-chip.chip-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.chip-label { color: var(--muted); font-weight: 500; margin-right: 1px; }
.chip-value { color: var(--text); font-weight: 700; }
.chip-caret { font-size: 9px; color: var(--muted); margin-left: 2px; }
.chip-coming-soon { font-size: 9px; color: var(--muted); font-weight: 400; margin-left: 2px; }

/* ── Chip dropdown ── */
.chip-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 500;
  overflow: hidden;
  display: none;
}
.chip-dropdown.open { display: block; }
.chip-dropdown-header {
  padding: 8px 12px 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.chip-option {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--sub);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .1s;
}
.chip-option:hover { background: var(--bg); color: var(--text); }
.chip-option.selected { color: var(--accent); font-weight: 600; }
.chip-option.selected::after { content: "✓"; margin-left: auto; font-size: 11px; }
.chip-option.multi-option { padding: 6px 12px; }

/* Sort chip — right-aligned */
.leads-chips-row .sort-chip {
  margin-left: auto;
}

/* ── Responsive ── */

/* ════════════════════════════════════════════════════════
   APP LAYOUT — sidebar shell
   ════════════════════════════════════════════════════════ */
#app-body {
  display: flex;
  min-height: 100vh;
  align-items: flex-start;
}


/* ── Sidebar logo ── */
.sidebar-logo {
  padding: 20px 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar-logo-expanded { display: flex; }
.sidebar-logo-collapsed { display: none; }
#sidebar-nav.collapsed .sidebar-logo-expanded { display: none; }
#sidebar-nav.collapsed .sidebar-logo-collapsed { display: flex; align-items: center; justify-content: center; }

/* ── Sidebar profile slot ── */
.sidebar-profile {
  flex-shrink: 0;
  padding: 4px 0;
}
.sidebar-version {
  font-size: 0.65em;
  color: rgba(255,255,255,0.3);
  text-align: center;
  padding: 4px 0 2px;
  letter-spacing: 0.05em;
}
.profile-avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-light);
  flex-shrink: 0;
  overflow: hidden;
}
.profile-avatar-sm img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* ── Desktop Left Sidebar ── */
#sidebar-nav {
  width: 240px;
  flex-shrink: 0;
  background: var(--navy);
  border-right: 1px solid rgba(255,255,255,0.07);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: visible;
  transition: width .2s ease;
}

#sidebar-nav.collapsed {
  width: 60px;
}

/* Toggle button */
.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  margin-bottom: 8px;
  align-self: flex-end;
  transition: all .15s;
  flex-shrink: 0;
}
.sidebar-toggle:hover { background: var(--navy-light); color: var(--text); }
#sidebar-nav.collapsed .sidebar-toggle { align-self: center; }
#sidebar-toggle-icon { transition: transform .2s ease; }
#sidebar-nav.collapsed #sidebar-toggle-icon { transform: rotate(180deg); }

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--sub);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-profile .nav-item {
  gap: 10px;
  padding: 10px 12px;
}
.sidebar-profile .nav-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.nav-item:hover { background: var(--navy-light); color: var(--text); }
.nav-item.active { background: var(--accent); color: #fff; }

/* Sidebar-specific text overrides — light on dark */
#sidebar-nav .nav-item { color: rgba(255,255,255,0.55); }
#sidebar-nav .nav-item:hover { color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.07); }
#sidebar-nav .nav-item.active { background: var(--amber); color: #1a2540; }
.nav-icon { flex-shrink: 0; line-height: 0; }
.nav-label { white-space: nowrap; transition: opacity .15s ease; }
#sidebar-nav.collapsed .nav-label { opacity: 0; width: 0; overflow: hidden; }
#sidebar-nav.collapsed .nav-item { justify-content: center; padding: 11px 20px; }

/* main fills remaining space */
#app-body > main {
  flex: 1;
  min-width: 0;
  margin: 0;
  max-width: none;
}

/* ── Mobile Top Bar — hidden on desktop ── */
#mobile-topbar {
  display: none;
}

/* ── Mobile Bottom Nav — hidden on desktop ── */
#bottom-nav { display: none; }

@media (max-width: 768px) {
  /* ── Layout ── */
  main { padding: 12px; padding-bottom: 80px; }

  /* Hide desktop sidebar on mobile */
  #sidebar-nav { display: none; }
  #app-body { display: block; }

  /* ── Mobile Top Bar ── */
  #mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: var(--navy);
    border-bottom: 1px solid var(--navy-mid);
    padding: 0 16px;
    z-index: 200;
  }
  #mobile-topbar-logo svg { display: block; }
  #mobile-topbar-avatar {
    cursor: pointer;
    display: flex;
    align-items: center;
  }

  /* Push main content below topbar */
  main { padding-top: 64px; }

  /* ── Mobile Bottom Nav ── */
  #bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--navy);
    border-top: 1px solid var(--navy-mid);
    z-index: 200;
    align-items: stretch;
  }
  .bnav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: var(--sub);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: color .15s, background .15s;
    padding: 8px 4px;
    border-radius: 0;
  }
  .bnav-item:hover { color: var(--text); background: var(--navy-light); }
  .bnav-item.active { color: var(--amber); }
  .bnav-icon { line-height: 0; }
  .bnav-label { text-transform: uppercase; letter-spacing: .04em; }
  .tabs {
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: stretch;
    border-top: 1px solid var(--navy-mid);
    padding: 6px 0;
    gap: 4px;
  }
  .tab {
    flex: 1;
    justify-content: center;
    padding: 8px 4px;
    font-size: 11px;
    gap: 4px;
    border-radius: 6px;
  }
  /* Hide tab label text on very small screens, show icon only below 400px */
  @media (max-width: 400px) {
    .tab-label { display: none; }
    .tab { padding: 8px; }
  }

  /* ── KPI Grid: 3-col on mobile — matches pipeline ── */
  .kpi-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
  }
  .kpi-card {
    padding: 10px 6px;
    gap: 0;
    border-radius: 12px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .kpi-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    flex-shrink: 0;
    margin-bottom: 5px;
  }
  .kpi-icon svg { width: 16px; height: 16px; }
  .kpi-num { font-size: 20px; font-weight: 800; line-height: 1; }
  .kpi-label { font-size: 9px; color: var(--muted); margin-top: 2px; line-height: 1.2; }

  /* ── Leads page header: stack on mobile ── */
  #pane-scraper > div:first-child {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
  }
  #pane-scraper > div:first-child .btn {
    width: 100%;
    justify-content: center;
  }

  /* ── Filter bar: tighter ── */
  #scraper-filter-bar {
    padding: 8px 10px;
    font-size: 11px;
  }


  /* ── Pipeline table: hide non-essential columns on mobile ── */
  .hide-mobile { display: none !important; }
  .co-sub-mobile { font-size: 11px; color: var(--sub); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
  .notes-mobile-role { font-weight: 600; font-size: 13px; margin-bottom: 8px; color: var(--text); }
  .notes-label { color: var(--sub); font-size: 12px; }
  .job-link-btn {
    display: inline-block;
    padding: 6px 14px;
    background: var(--amber);
    color: #0a0f1e;
    font-weight: 700;
    font-size: 12px;
    border-radius: 6px;
    text-decoration: none;
    margin-bottom: 6px;
  }

  /* ── Sub-tabs: scrollable row ── */
  .sub-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 4px;
    padding: 4px;
    margin-bottom: 16px;
    scrollbar-width: none;
  }
  .sub-tabs::-webkit-scrollbar { display: none; }
  .sub-tab {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 12px;
  }

  /* ── Leads header: stack on mobile ── */
  .leads-header-row {
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
  }
  .leads-title {
    display: none;
  }
  .generate-leads-btn {
    display: none;
  }
  .generate-leads-mobile {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
  }
  .generate-leads-mobile .btn {
    padding: 8px 20px;
    font-size: 12px;
  }

  /* ── Chips: horizontal scroll strip on mobile ── */
  .leads-chips-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    padding-bottom: 2px;
    width: 100%;
    flex: none;
  }
  .leads-chips-row::-webkit-scrollbar { display: none; }
  .leads-chips-row .filter-chip { flex-shrink: 0; }
  .leads-chips-row .sort-chip { margin-left: 0; flex-shrink: 0; }

  /* ── KPI grid: 7th card spans full width ── */
  .kpi-grid .kpi-card:last-child:nth-child(odd) {
    grid-column: span 2;
  }
}


/* ── Onboarding Overlay ──────────────────────────────────────────────────────*/
#onboarding-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 1000;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

#onboarding-content {
  width: 100%;
  max-width: 560px;
  margin: auto 0;
  padding-bottom: 24px;
}

.ob-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* Progress bar */
.ob-progress-bar {
  height: 3px;
  background: var(--border);
}
.ob-progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.4s ease;
}
.ob-step-label {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
  padding: 12px 24px 0;
}

/* Header */
.ob-header { padding: 24px 24px 0; }
.ob-icon { font-size: 32px; margin-bottom: 10px; }
.ob-title { font-size: 20px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.ob-sub { font-size: 13px; color: var(--sub); line-height: 1.6; }

/* Body */
.ob-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }

/* Fields */
.ob-field { display: flex; flex-direction: column; gap: 5px; }
.ob-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ob-label { font-size: 12px; font-weight: 500; color: var(--text); }
.ob-optional { font-weight: 400; color: var(--muted); }
.ob-hint { font-size: 11px; color: var(--muted); }

.ob-input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 12px;
  font-size: 13px;
  font-family: var(--sans);
  color: var(--text);
  width: 100%;
  transition: border-color 0.15s;
}
.ob-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }

.ob-input-prefix-wrap { position: relative; }
.ob-prefix {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--muted);
  pointer-events: none;
}
.ob-input-prefix { padding-left: 22px; }

/* Role search */
.ob-search-wrap { position: relative; }
.ob-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 200;
  max-height: 200px;
  overflow-y: auto;
}
.ob-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  cursor: pointer;
  transition: background 0.1s;
}
.ob-suggestion:hover { background: var(--accent-light); }
.ob-sug-title { font-size: 13px; color: var(--text); }
.ob-sug-cat { font-size: 11px; color: var(--muted); font-family: var(--mono); }

/* Chips */
.ob-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 28px; }
.ob-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--blue-light);
  border-radius: 20px;
  padding: 3px 10px 3px 12px;
  font-size: 12px;
  font-weight: 500;
}
.ob-chip-remove {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  opacity: 0.6;
}
.ob-chip-remove:hover { opacity: 1; }

/* Toggle group */
.ob-toggle-group { display: flex; gap: 8px; flex-wrap: wrap; }
.ob-toggle {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 500;
  color: var(--sub);
  cursor: pointer;
  transition: all 0.15s;
}
.ob-toggle:not(.ob-toggle-active):hover { border-color: var(--accent); color: var(--accent); }
.ob-toggle-active {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #1a1200 !important;
  font-weight: 600;
}

/* Resume tabs */
.ob-resume-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.ob-res-tab {
  padding: 8px 16px;
  border: none;
  background: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--sub);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
}
.ob-res-tab:hover { color: var(--text); }
.ob-res-tab-active { color: var(--accent); border-bottom-color: var(--accent); }

.ob-textarea {
  width: 100%;
  min-height: 160px;
  resize: vertical;
  padding: 10px 12px;
  font-size: 12px;
  font-family: var(--mono);
  line-height: 1.6;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}
.ob-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }

/* Drop zone */
.ob-drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}
.ob-drop-zone:hover, .ob-drop-over { border-color: var(--accent); background: var(--accent-light); }
.ob-drop-icon { font-size: 28px; margin-bottom: 8px; }
.ob-drop-label { font-size: 13px; color: var(--sub); margin-bottom: 4px; }
.ob-drop-sub { font-size: 11px; color: var(--muted); }
.ob-file-link { color: var(--accent); cursor: pointer; text-decoration: underline; }
.ob-upload-msg, .ob-upload-success, .ob-upload-error {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 12px;
}
.ob-upload-msg { background: var(--yellow-light); color: #92400e; }
.ob-upload-success { background: var(--green-light); color: #065f46; }
.ob-upload-error { background: var(--red-light); color: #991b1b; }

/* Review grid */
.ob-review-grid { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ob-review-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.ob-review-row:last-child { border-bottom: none; }
.ob-review-label { font-size: 12px; color: var(--muted); font-weight: 500; }
.ob-review-value { font-size: 12px; color: var(--text); font-weight: 500; }

/* Actions row */
.ob-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  bottom: 0;
  z-index: 2;
}

/* ── Onboarding: Intent Cards ─────────────────────────────────────────────── */
.ob-intent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 6px;
}
.ob-intent-card {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 14px 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  text-align: center;
}
.ob-intent-card:hover {
  border-color: var(--accent);
  background: var(--bg);
}
.ob-intent-active {
  border-color: var(--accent) !important;
  background: color-mix(in srgb, var(--accent) 8%, transparent) !important;
}
.ob-intent-emoji { font-size: 22px; margin-bottom: 6px; }
.ob-intent-label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.ob-intent-sub   { font-size: 11px; color: var(--muted); line-height: 1.4; }

/* ── Onboarding: Inferred Summary ────────────────────────────────────────── */
.ob-inferred-summary {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 16px;
}

/* ── Onboarding: Skill Chips ─────────────────────────────────────────────── */
.ob-skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.ob-skill-chip {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 20px;
  font-weight: 500;
}
.ob-chip-hard {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.ob-chip-soft {
  background: color-mix(in srgb, var(--green) 12%, transparent);
  color: var(--green);
  border: 1px solid color-mix(in srgb, var(--green) 25%, transparent);
}

/* ── Auth Screen ─────────────────────────────────────────────────────────── */
#auth-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 32px;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.auth-tagline {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.5;
}
.auth-tabs {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 4px;
}
.auth-tab {
  flex: 1;
  padding: 8px;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--muted);
  transition: background .15s, color .15s;
}
.auth-tab.active {
  background: var(--accent);
  color: #fff;
}
.auth-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  box-sizing: border-box;
  outline: none;
  transition: border-color .15s;
}
.auth-input:focus {
  border-color: var(--accent);
}
.auth-btn {
  width: 100%;
  padding: 11px;
  font-size: 14px;
  margin-top: 4px;
}
.auth-error {
  background: color-mix(in srgb, #ef4444 10%, transparent);
  border: 1px solid color-mix(in srgb, #ef4444 30%, transparent);
  color: #ef4444;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
}
.auth-link {
  font-size: 12px;
  color: var(--accent);
  cursor: pointer;
  text-align: center;
  margin-top: 4px;
}
.auth-link:hover { text-decoration: underline; }

/* ── Onboarding: Upload check rows ───────────────────────────────────────── */
.ob-upload-checks { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.ob-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
}
.ob-check-ok {
  background: color-mix(in srgb, var(--green) 8%, transparent);
  color: var(--green);
  border: 1px solid color-mix(in srgb, var(--green) 20%, transparent);
}
.ob-check-warn {
  background: color-mix(in srgb, #f59e0b 8%, transparent);
  color: #b45309;
  border: 1px solid color-mix(in srgb, #f59e0b 25%, transparent);
}

/* ── Onboarding: Intent icon ─────────────────────────────────────────────── */
.ob-intent-icon { font-size: 24px; color: var(--accent); margin-bottom: 6px; }

/* ── Onboarding: upload message ──────────────────────────────────────────── */
.ob-upload-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding: 10px 0;
}

/* ── Profile Pane ────────────────────────────────────────────────────────── */
.prof-wrap {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.prof-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.prof-header-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--navy);
  border-color: var(--navy-mid);
}
.prof-photo-wrap {
  position: relative;
  flex-shrink: 0;
}
.prof-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--navy-light);
  border: 2px solid var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.prof-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.prof-photo-edit {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background: var(--amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--navy);
}
.prof-header-info { flex: 1; }
.prof-name {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  outline: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color .15s;
}
.prof-name:focus { border-color: var(--amber); }
.prof-meta { font-size: 12px; color: #7a90b0; margin-top: 4px; }
.prof-section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.prof-section-title i { color: var(--amber); font-size: 14px; }
.prof-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.prof-field-stack { display: flex; flex-direction: column; gap: 12px; }
.prof-field { display: flex; flex-direction: column; gap: 4px; }
.prof-label { font-size: 11px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.prof-input {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  outline: none;
  transition: border-color .15s;
}
.prof-input:focus { border-color: var(--amber); }
.prof-textarea { resize: vertical; min-height: 72px; line-height: 1.5; }
.prof-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.prof-chip {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 20px;
  font-weight: 500;
}
.prof-chip-hard {
  background: color-mix(in srgb, var(--amber) 12%, transparent);
  color: var(--amber-dark);
  border: 1px solid color-mix(in srgb, var(--amber) 25%, transparent);
}
.prof-chip-soft {
  background: var(--green-light);
  color: #065f46;
  border: 1px solid color-mix(in srgb, var(--green) 25%, transparent);
}
.prof-chip-kw {
  background: var(--bg);
  color: var(--sub);
  border: 1px solid var(--border);
}
.prof-chip-label { font-size: 11px; color: var(--muted); margin-bottom: 4px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.prof-save-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* ── Tab icon sizing fix ─────────────────────────────────────────────────── */
.tab-icon { display: flex; align-items: center; }
.tab-icon svg { flex-shrink: 0; }

/* ── Profile badge ───────────────────────────────────────────────────────── */
.prof-badge-ok {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--green);
  background: var(--green-light);
  padding: 3px 9px;
  border-radius: 12px;
}


.src-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.src-scraper  { background: rgba(139,92,246,0.15); color: #a78bfa; }
.src-manual   { background: rgba(245,158,11,0.15); color: #e8b84b; }
.src-referral { background: rgba(34,197,94,0.15);  color: #4ade80; }
.src-linkedin { background: rgba(59,130,246,0.15); color: #93c5fd; }

/* ── Modal two-column rows ── */
.modal-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .modal-row-2 { grid-template-columns: 1fr; gap: 0; }
}

/* ── Expanded row meta strip ── */
.exp-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: var(--sub);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}



/* ── Welcome screen ──────────────────────────────────────────────────────── */
@keyframes welcomeFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}
.welcome-compass {
  margin-bottom: 32px;
  animation: spin 3s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.welcome-greeting {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
  font-family: var(--mono);
  letter-spacing: 0.5px;
}
.welcome-quote {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  max-width: 320px;
  margin-bottom: 12px;
}
.welcome-attr {
  font-size: 12px;
  color: var(--accent);
  font-family: var(--mono);
  margin-bottom: 40px;
}
.welcome-hint {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ── Apply celebration ────────────────────────────────────────────────────── */
@keyframes celebFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.celeb-burst {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.celeb-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: burst 0.6s ease-out forwards;
}
@keyframes burst {
  from { transform: translate(0,0) scale(1); opacity: 1; }
  to   { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}
.celeb-icon {
  font-size: 64px;
  margin-bottom: 16px;
  animation: popIn 0.3s cubic-bezier(0.34,1.56,0.64,1) 0.1s both;
}
@keyframes popIn {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}
.celeb-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  animation: popIn 0.3s cubic-bezier(0.34,1.56,0.64,1) 0.2s both;
}
.celeb-company {
  font-size: 16px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
  animation: popIn 0.3s ease 0.3s both;
}
.celeb-sub {
  font-size: 13px;
  color: #94a3b8;
  animation: popIn 0.3s ease 0.4s both;
}











/* ── Mobile Drawer ─────────────────────────────────────────────────────────── */
.job-drawer-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0);
  z-index: 999;
  transition: background 0.28s ease;
}
.job-drawer-overlay.open {
  display: block;
  background: rgba(0,0,0,0.5);
}

.job-drawer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-height: 92dvh;
  background: var(--surface);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.25);
  z-index: 1000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  /* drag handle visual */
  padding-top: 0;
}
.job-drawer::before {
  content: '';
  display: block;
  width: 36px; height: 4px;
  background: var(--border-strong);
  border-radius: 2px;
  margin: 10px auto 0;
}
.job-drawer.open {
  transform: translateY(0);
}

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.drawer-header-left { flex: 1; min-width: 0; }
.drawer-company { font-weight: 700; font-size: 1.1em; color: var(--text); }
.drawer-role    { font-size: 0.88em; color: var(--sub); margin-top: 2px; }
.drawer-close {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 50%;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.85em;
  flex-shrink: 0;
  padding: 0;
}

.drawer-actions {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.drawer-section {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.drawer-section:last-child { border-bottom: none; padding-bottom: 32px; }

.drawer-section-title {
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.drawer-section-meta { font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 1em; }

.drawer-blurb {
  font-size: 0.9em;
  color: var(--sub);
  line-height: 1.6;
}

.drawer-synopsis {
  font-size: 0.88em; color: var(--sub); line-height: 1.6;
  padding: 8px 10px; background: var(--bg);
  border-radius: 6px; border-left: 2px solid var(--border);
  margin-bottom: 10px;
}

/* OdysseyVal inside drawer */
.drawer-odyssey {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}
.drawer-odyssey-score {
  font-size: 2.6em;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  flex-shrink: 0;
  cursor: pointer;
}
.drawer-odyssey-verdict {
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 3px 12px;
  border-radius: 20px;
}
.drawer-odyssey-bullets {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}
.drawer-bullet {
  font-size: 0.84em;
  padding: 3px 0;
  color: var(--sub);
}
.drawer-bullet-good { color: #4ade80; }
.drawer-bullet-gap  { color: #f87171; }

.drawer-jd-toggle { cursor: pointer; display: flex; align-items: center; gap: 6px; }
.drawer-jd-chevron { font-size: 0.8em; color: var(--muted); }

/* On mobile, suppress inline expand — drawer handles it */
@media (max-width: 768px) {
  .job-card-new .jc-exp-section,
  .job-card-new .jc-exp-two-col,
  .job-card-new .jc-jd-section {
    display: none !important;
  }
  /* Compact mobile card — single column, no OdysseyVal right panel */
  .job-card-new {
    grid-template-columns: 1fr;
  }
  .jc-odyssey-val {
    display: none !important;
  }
  /* Tighten collapsed card on mobile */
  .jc-collapsed {
    padding: 12px 14px;
  }
  /* Show score inline on mobile card as a small chip */
  .jc-mobile-score-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78em;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 6px;
  }
}
@media (min-width: 769px) {
  .jc-mobile-score-chip { display: none; }

  /* Drawer on desktop — centered bottom sheet, wider and intentional */
  .job-drawer {
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(100%);
    width: min(760px, 92vw);
    max-height: 85dvh;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 48px rgba(0,0,0,0.18);
  }
  .job-drawer.open {
    transform: translateX(-50%) translateY(0);
  }

  /* Desktop drawer: bigger header text */
  .drawer-company { font-size: 1.25em; }
  .drawer-role    { font-size: 0.95em; }
  .drawer-header  { padding: 18px 24px 14px; }
  .drawer-actions { padding: 12px 24px; }
  .drawer-section { padding: 16px 24px; }

  /* Desktop OdysseyVal: score+verdict top, 4-col sub-scores below */
  .drawer-odyssey { flex-direction: column; align-items: flex-start; gap: 10px; }
  .drawer-odyssey-score { font-size: 3.5em; }
  .drawer-subscores {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
  }
  .drawer-subscore-tile {
    padding: 10px 6px;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    text-align: center;
    cursor: pointer;
  }
  .drawer-subscore-val   { font-size: 1.05em; font-weight: 800; }
  .drawer-subscore-label { font-size: 0.68em; color: var(--muted); margin-top: 3px; letter-spacing: .04em; text-transform: uppercase; }
}

/* ── OdysseyVal Sub-Score Tiles ─────────────────────────────────────────────── */
.ov-subscores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
  width: 100%;
}
.ov-subscore {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 8px;
  text-align: center;
}
.ov-subscore-val {
  font-size: 1.15em;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.ov-subscore-label {
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

/* Score row wraps big score + subscores side by side */
.drawer-score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.drawer-score-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex-shrink: 0;
}
/* Drawer sub-score tiles */
.drawer-subscores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  flex: 1;
}
.drawer-subscore-tile {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
}
.drawer-subscore-val {
  font-size: 1.1em;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.drawer-subscore-label {
  font-size: 0.6em;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}


/* ── Redesigned Action Buttons ───────────────────────────────────────────────── */
.jc-inline-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.jc-act-btn {
  padding: 5px 12px;
  font-size: 0.78em;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
/* Apply — amber fill, primary CTA */
.jc-act-apply {
  background: var(--amber);
  color: #1a2540;
  border-color: var(--amber);
  font-weight: 700;
}
.jc-act-apply:hover { background: var(--amber-dark); border-color: var(--amber-dark); }

/* Fit check — subtle */
.jc-act-fit {
  background: rgba(232,184,75,0.08);
  color: var(--amber);
  border-color: rgba(232,184,75,0.25);
}
.jc-act-fit:hover { background: rgba(232,184,75,0.18); }

/* Icon-only buttons */
.jc-act-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all .15s;
  flex-shrink: 0;
}

/* Favorite */
.jc-act-fav:hover { border-color: var(--amber); color: var(--amber); }
.jc-act-fav.active { border-color: var(--amber); color: var(--amber); }

/* Pipeline — indigo */
.jc-act-pipeline { color: #818cf8; }
.jc-act-pipeline:hover { border-color: #818cf8; background: rgba(99,102,241,0.1); }

/* Dismiss — red on hover */
.jc-act-dismiss:hover { border-color: #ef4444; color: #ef4444; background: rgba(239,68,68,0.05); }

/* ── OdysseyVal brand label ───────────────────────────────────────────────────── */
.ov-brand-label {
  font-size: 0.68em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── OdysseyVal pending / tap to score ───────────────────────────────────────── */
.ov-pending-tap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 14px 10px;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  transition: all .2s;
}
.ov-pending-tap:hover { border-color: var(--amber); background: rgba(232,184,75,0.06); }
.ov-pending-label {
  font-size: 0.8em;
  font-weight: 700;
  color: var(--amber);
}
.ov-pending-sub {
  font-size: 0.68em;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Sub-score tooltip ────────────────────────────────────────────────────────── */
.subscore-tip {
  position: absolute;
  width: 220px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  z-index: 2000;
  animation: tipFadeIn 0.15s ease;
}
@keyframes tipFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.subscore-tip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.subscore-tip-label {
  font-size: 0.78em;
  font-weight: 700;
  color: var(--text);
}
.subscore-tip-weight {
  font-size: 0.7em;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1px 6px;
}
.subscore-tip-score {
  font-size: 1.8em;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 6px;
}
.subscore-tip-desc {
  font-size: 0.8em;
  color: var(--sub);
  line-height: 1.5;
}
.subscore-tip-close {
  position: absolute;
  top: 8px; right: 10px;
  font-size: 0.75em;
  color: var(--muted);
  cursor: pointer;
}

/* ── Leads Result Dopamine Screen ────────────────────────────────────────────── */
.leads-result-screen {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 15, 30, 0);
  backdrop-filter: blur(0px);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
  pointer-events: none;
}
.leads-result-screen.open {
  background: rgba(10, 15, 30, 0.75);
  backdrop-filter: blur(6px);
  pointer-events: all;
}
.lrs-inner {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 40px 36px 36px;
  max-width: 340px;
  width: calc(100% - 48px);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease;
  position: relative;
}
.leads-result-screen.open .lrs-inner {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.lrs-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none; border: none;
  color: var(--muted); font-size: 0.85em;
  cursor: pointer; padding: 4px;
}
.lrs-compass {
  font-size: 2.8em;
  color: var(--amber);
  margin-bottom: 10px;
  line-height: 1;
}
.lrs-verdict {
  font-size: 1.5em;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 28px;
}
.lrs-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 8px;
  margin-bottom: 24px;
}
.lrs-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.lrs-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}
.lrs-stat-num {
  font-size: 2.2em;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text);
  line-height: 1;
}
.lrs-stat-num.lrs-strong { color: #22c55e; }
.lrs-stat-num.lrs-fair   { color: #f59e0b; }
.lrs-stat-label {
  font-size: 0.68em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.lrs-cta {
  width: 100%;
  padding: 12px;
  background: var(--amber);
  color: #1a2540;
  border: none;
  border-radius: 10px;
  font-size: 0.92em;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.lrs-cta:hover { background: var(--amber-dark); }

/* ── OdysseyVal inline loading state ─────────────────────────────────────── */
.ov-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  width: 100%;
}
.ov-loading-ring {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: ovSpin 0.9s linear infinite;
  flex-shrink: 0;
}
.ov-loading-msg {
  font-size: 0.75em;
  color: var(--muted);
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: opacity 0.3s;
  line-height: 1.4;
}
@keyframes ovSpin { to { transform: rotate(360deg); } }

/* ── Auth screen — two-panel redesign ───────────────────────────────────────── */
.auth-layout {
  display: flex;
  width: 100%;
  max-width: 860px;
  min-height: 520px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
}

/* Left — dark navy */
.auth-left {
  background: #0d1829;
  flex: 1;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-left-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 32px;
}
.auth-left-tagline {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 32px;
}
.auth-left-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.auth-feat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
}
.auth-feat-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.auth-left-quote {
  font-size: 12px;
  color: #475569;
  font-style: italic;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #1e293b;
}

/* Right — white/surface */
.auth-right {
  background: var(--surface);
  width: 340px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 36px;
}
.auth-right-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-right-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2px;
}
.auth-right-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.auth-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
  display: block;
}
.auth-btn-primary {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  background: #0d1829;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 4px;
  transition: background .15s;
}
.auth-btn-primary:hover { background: #1e293b; }

/* Mobile: stack panels */
@media (max-width: 640px) {
  .auth-layout { flex-direction: column; max-width: 100%; border-radius: 0; min-height: 100dvh; }
  .auth-left { padding: 32px 24px; min-height: auto; }
  .auth-left-tagline { font-size: 24px; }
  .auth-left-features { display: none; }
  .auth-right { width: 100%; padding: 32px 24px; }
}
