:root {
  --ink: #1d1d1f;
  --ink-soft: #3a3a3c;
  --muted: #86868b;
  --bg: #F8F9FA;
  --card: #ffffff;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #1C70EE;
  --accent-hover: #1558c4;
  --ok: #248a3d;
  --bad: #d70015;
  --radius: 16px;
  --card-shadow: 0 4px 6px rgba(162, 183, 203, 0.10);
  --page-max: 1280px;
  --gutter: 48px;
  --ease: 200ms ease;
  font-family: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont,
    "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.011em;
}
body { display: flex; flex-direction: column; min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.topnav {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 64px;
  background: rgba(248, 249, 250, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.nav-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  height: 64px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 var(--gutter);
}
.brand { display: flex; align-items: center; min-width: 0; }
.brand-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
  background: transparent;
  border: 0;
  box-shadow: none;
  filter: none;
}
.nav-links { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.nav-btn,
.nav-btn:link,
.nav-btn:visited,
.nav-btn:hover,
.nav-btn:active,
.nav-btn:focus {
  text-decoration: none !important;
  text-underline-offset: unset;
  border-bottom: 0;
}
.nav-btn {
  background: transparent;
  border: 0;
  color: var(--ink-soft);
  text-decoration: none !important;
  cursor: pointer;
  text-align: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  transition: color var(--ease), background var(--ease);
}
.nav-btn:hover { color: var(--ink); background: rgba(28, 112, 238, 0.06); }
.nav-btn.active {
  background: rgba(28, 112, 238, 0.12);
  color: var(--accent);
  font-weight: 600;
}
.nav-btn small { display: none; }

.main { padding: 24px var(--gutter) 96px; min-width: 0; max-width: var(--page-max); width: 100%; margin: 0 auto; }
.topbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.topbar h1, .topbar h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.topbar p { margin: 6px 0 0; color: var(--muted); font-size: 14px; font-weight: 400; }

.btn {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  transition: background var(--ease), opacity var(--ease);
}
.btn:hover { background: var(--accent-hover); }
.btn.ghost {
  background: transparent;
  color: var(--accent);
  box-shadow: none;
}
.btn.ghost:hover { background: rgba(28, 112, 238, 0.08); }
.btn.small { padding: 6px 12px; font-size: 13px; border-radius: 10px; }

.grid-jobs { display: flex; flex-direction: column; gap: 12px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 24px;
  box-shadow: var(--card-shadow);
}
.jobs-split {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.job-list-col {
  flex: 0 0 380px;
  width: 380px;
  min-width: 0;
}
.job-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 4px 0 2px;
  margin: 0 0 12px;
  box-sizing: border-box;
}
.job-list-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}
.job-list-head .btn { line-height: 1; }
.job-row {
  cursor: pointer;
  padding: 14px 16px;
  border: 2px solid transparent;
  transition: border-color var(--ease);
}
.job-row:hover { border-color: rgba(28, 112, 238, 0.28); }
.job-row.active {
  border-color: #1C70EE;
  box-shadow: var(--card-shadow);
}
.job-row-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  display: flex;
  align-items: center;
}
.job-row-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.job-detail {
  flex: 1 1 auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  align-self: flex-start;
  padding: 16px;
}
.job-detail h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  display: flex;
  align-items: center;
}
.job-detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.job-detail .meta-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.job-detail .detail-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.job-detail .cand-count { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.job-detail-empty { color: var(--muted); padding: 16px 4px; text-align: left; }
.job-workspace { padding: 16px 18px 20px; }
.job-ws-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.job-ws-head h2 { margin: 0; font-size: 20px; }
.job-ws-head .detail-actions { display: flex; gap: 6px; }
.pipe-strip {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin: 0 0 16px;
  padding: 2px;
}
.pipe-cell {
  flex: 1 1 0;
  min-width: 68px;
  border: 1px solid var(--line);
  background: #f7f8fa;
  border-radius: 12px;
  padding: 8px 6px;
  cursor: pointer;
  text-align: center;
  font: inherit;
  color: inherit;
}
.pipe-cell:hover { background: #eef4ff; }
.pipe-cell.on { border-color: #1C70EE; background: rgba(28,112,238,0.08); }
.pipe-n { display: block; font-size: 18px; font-weight: 600; line-height: 1.1; }
.pipe-l { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.job-ws-sec { margin-top: 8px; }
.job-ws-sec h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.job-ws-sec h3 em { font-style: normal; font-weight: 400; color: var(--muted); }
.job-cand-list { display: flex; flex-direction: column; gap: 6px; }
.job-cand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.job-cand:hover { background: #fafafa; }
.job-cand-name { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; flex: 1 1 auto; }
.job-empty-cands { padding: 12px 0 4px; }
.job-iv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.job-iv {
  display: grid;
  grid-template-columns: 110px 110px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
  cursor: pointer;
}
.job-iv-date { color: var(--ink-soft); }
.job-iv-time { font-weight: 600; }
.job-iv-time .time-legend { font-size: 11px; font-weight: 400; color: var(--muted); margin-right: 2px; }
.job-desc {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  background: #f7f8fa;
  border-radius: 12px;
  padding: 12px 14px;
}
.job-row-title { font-size: 16px; margin-bottom: 6px; }
@media (max-width: 720px) {
  .job-iv { grid-template-columns: 1fr 1fr; }
}
.swatch { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 400;
  background: #EEF1F4;
  color: var(--ink-soft);
}
.badge.open { background: rgba(52, 199, 89, 0.12); color: var(--ok); }
.badge.closed { background: rgba(215, 0, 21, 0.08); color: var(--bad); }

.kanban {
  display: grid;
  grid-template-columns: repeat(7, minmax(180px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
}
.col {
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  min-height: 420px;
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.col h3 { margin: 4px 6px 2px; font-size: 14px; font-weight: 600; color: var(--ink-soft); letter-spacing: -0.01em; }
.col h3 em { font-style: normal; color: var(--muted); margin-left: 6px; font-weight: 400; }
.kcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 0;
  cursor: grab;
  box-shadow: var(--card-shadow);
  transition: transform var(--ease), background var(--ease);
}
.kcard:hover { background: #fafafa; }
.kcard .name { font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.kcard .meta { color: var(--muted); font-size: 13px; margin-top: 4px; }

.form-grid { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--ink-soft); }
input, select, textarea {
  background: #f5f5f7;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
}
input:focus, select:focus, textarea:focus {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(28, 112, 238, 0.18);
}
textarea { min-height: 90px; resize: vertical; }

.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.36);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  z-index: 20;
}
.modal-bg.show { display: flex; }
.modal {
  background: var(--card);
  width: min(880px, 100%);
  max-height: 92vh;
  overflow: auto;
  border-radius: 22px 22px 0 0;
  padding: 28px 28px 36px;
}
.modal h2 { margin: 0 0 8px; letter-spacing: -0.03em; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.preview {
  background: #f5f5f7;
  color: var(--ink);
  border-radius: 14px;
  padding: 14px;
  white-space: pre-wrap;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--line);
}
.stars { letter-spacing: 2px; color: var(--accent); }
.comment { border-top: 1px solid var(--line); padding: 12px 0; }
.comment .who { font-weight: 600; }
.comment .when { color: var(--muted); font-size: 12px; }

.cal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.cal-head strong { letter-spacing: -0.02em; font-size: 17px; }
.cal-grid, .week-grid { display: grid; gap: 0; }
.cal-grid { grid-template-columns: repeat(7, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--card-shadow); }
.dow, .day { background: var(--card); min-height: 110px; padding: 10px; }
.dow {
  min-height: auto;
  background: #fafafa;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.day { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.day:nth-child(7n) { border-right: 0; }
.day.out { opacity: .38; }
.day .n { font-weight: 600; font-size: 13px; letter-spacing: -0.02em; }
.pill {
  display: block;
  margin-top: 6px;
  padding: 4px 7px;
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.week-grid { grid-template-columns: 64px repeat(7, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 24px; box-shadow: var(--card-shadow); }
.hour-lab { color: var(--muted); font-size: 11px; }
.slot { min-height: 42px; border-bottom: 1px solid var(--line); position: relative; }
.conflict {
  background: #fff4e5;
  color: #9a6700;
  padding: 10px 12px;
  border-radius: 12px;
  margin-top: 8px;
  font-size: 13px;
}
.empty { color: var(--muted); padding: 32px; text-align: center; font-size: 14px; }
.upload-zone {
  border: 1px dashed rgba(28, 112, 238, 0.35);
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  text-align: left;
  margin-bottom: 18px;
}
.hidden { display: none !important; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
table th, table td { padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
table a { color: var(--accent); text-decoration: none; }
table a:hover { text-decoration: underline; }

@media (max-width: 980px) {
  .topnav { height: auto; }
  .nav-inner { height: auto; min-height: 64px; flex-wrap: wrap; padding: 10px 20px; gap: 12px; }
  .kanban { grid-template-columns: repeat(7, 220px); }
  .two { grid-template-columns: 1fr; }
  .main { padding: 24px 20px 64px; }
  .jobs-split { flex-direction: column; }
  .job-list-col { flex: 1 1 auto; width: 100%; }
}

.kcard .name { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.score-badge {
  font-size: 11px;
  font-weight: 600;
  min-width: 28px;
  text-align: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(28, 112, 238, 0.12);
  color: var(--accent);
}
.score-badge.优秀 { background: rgba(52, 199, 89, 0.14); color: var(--ok); }
.score-badge.良好 { background: rgba(28, 112, 238, 0.12); color: var(--accent); }
.score-badge.一般 { background: #f5f5f7; color: var(--ink-soft); }
.score-badge.偏弱 { background: rgba(215, 0, 21, 0.08); color: var(--bad); }

.intel {
  margin: 22px 0 8px;
  padding: 18px 18px 8px;
  background: #f5f5f7;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.intel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.intel-head h3 { margin: 0; font-size: 15px; letter-spacing: -0.02em; flex: 1; }
.intel-when { color: var(--muted); font-size: 12px; }
.intel-loading { color: var(--muted); padding: 12px 0 20px; }
.intel-score { display: grid; grid-template-columns: 88px 1fr; gap: 18px; align-items: start; margin: 10px 0 16px; }
.ring {
  width: 88px; height: 88px; border-radius: 50%;
  background: conic-gradient(var(--accent) var(--deg), #e5e5ea 0);
  display: grid; place-items: center;
}
.ring.excellent { background: conic-gradient(#248a3d var(--deg), #e5e5ea 0); }
.ring.good { background: conic-gradient(#1C70EE var(--deg), #e5e5ea 0); }
.ring.ok { background: conic-gradient(#8e8e93 var(--deg), #e5e5ea 0); }
.ring.weak { background: conic-gradient(#d70015 var(--deg), #e5e5ea 0); }
.ring strong {
  width: 68px; height: 68px; border-radius: 50%;
  background: #fff;
  display: grid; place-items: center;
  font-size: 26px; letter-spacing: -0.04em; font-weight: 600;
}
.intel-label { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; margin-bottom: 6px; }
.intel-label.excellent { color: var(--ok); }
.intel-label.good { color: var(--accent); }
.intel-label.ok { color: var(--ink-soft); }
.intel-label.weak { color: var(--bad); }
.intel-summary { margin: 0; color: var(--ink-soft); }
.intel-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.intel h4 { margin: 8px 0 8px; font-size: 13px; color: var(--ink-soft); }
.intel ul, .intel-q { margin: 0 0 14px; padding-left: 18px; }
.intel li { margin: 4px 0; }
@media (max-width: 980px) {
  .intel-cols, .intel-score { grid-template-columns: 1fr; }
}

.btn.danger { background: var(--bad); color: #fff; }
.btn.danger:hover { background: #b80012; }
.table-tools { display:flex; gap:8px; margin-bottom:12px; }
.chip {
  border: 1px solid var(--line);
  background: #f5f5f7;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
}
.chip.on { background: rgba(255, 159, 10, 0.16); color: #c93400; border-color: transparent; }
.act-btns { display:flex; gap:6px; flex-wrap:wrap; }
.icon-btn {
  display:inline-flex; align-items:center; gap:4px;
  border:0; background: rgba(0,0,0,0.04);
  color: var(--ink-soft);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 13px;
}
.icon-btn:hover { background: rgba(0,0,0,0.08); }
.icon-btn.star.on, .icon-btn.star.on .ic { color: #ff9f0a; }
tr.is-starred .icon-btn.star { color: #ff9f0a; }
.icon-btn.danger { color: var(--bad); }
.kstar { color: #ff9f0a; font-size: 13px; margin-left: 4px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(12px);
  background: rgba(29,29,31,0.92); color: #fff;
  padding: 10px 18px; border-radius: 14px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity 180ms ease, transform 180ms ease;
  z-index: 40;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.ios-sheet { text-align: center; padding: 12px 8px 8px; }
.ios-sheet h2 { font-size: 20px; margin: 8px 0 10px; }
.ios-sheet p { color: var(--muted); margin: 0 0 22px; }
.ios-actions { display:flex; gap:10px; justify-content:center; }
.share-body { min-height:100vh; }
.share-page { max-width: 640px; margin: 0 auto; padding: 48px 20px 80px; }
.share-page h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; margin: 8px 0 4px; }
.share-kicker { color: var(--muted); font-size: 13px; margin: 20px 0 0; }
.share-job { color: var(--ink-soft); margin: 0 0 18px; }
.share-page .card { margin-bottom: 14px; }
.share-page .card h3 { margin: 0 0 8px; font-size: 15px; }
.share-page .score { font-size: 22px; font-weight: 600; margin-bottom: 16px; }
.share-page .score span { font-size: 15px; color: var(--muted); font-weight: 400; }
.share-actions { margin-top: 8px; }

.ivs-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.ivs-none, .ivs-scheduled, .ivs-in_progress, .ivs-done {
  background: #EEF1F4;
  color: var(--ink-soft);
  font-weight: 400;
}
.ivs-next {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: -0.01em;
}
.iv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.iv-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f5f5f7;
}
.iv-when { font-weight: 600; letter-spacing: -0.02em; }
.iv-type {
  display: inline-flex;
  margin: 6px 0 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #EEF1F4;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 400;
}
.iv-meta { color: var(--ink-soft); font-size: 13px; margin-top: 2px; }
.iv-meta a { color: var(--accent); text-decoration: none; word-break: break-all; }
.iv-meta a:hover { text-decoration: underline; }

.color-row { display:flex; gap:10px; align-items:center; margin-top:8px; }
.color-dot {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid transparent; padding: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}
.color-dot.on { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--accent); }

.btn.pill {
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 600;
}
.intake-card { padding: 10px 16px 8px; }
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 2px 10px;
}
.list-toolbar .chip { background: transparent; }
.cand-table { width: 100%; border-collapse: collapse; }
.cand-table th {
  text-align: left;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--line);
}
.cand-table td {
  padding: 0 10px;
  height: 54px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: middle;
  white-space: nowrap;
}
.cand-table tbody tr:last-child td { border-bottom: 0; }
.cand-table tbody tr:hover { background: rgba(0, 0, 0, 0.02); }
.cand-table .cell-name a {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.cand-table .cell-name a:hover { text-decoration: none; opacity: 0.8; }
.cand-table .cell-muted {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
.cand-table .cell-acts { width: 1%; }
.stage-pill, .attr-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  background: #EEF1F4;
  font-weight: 400;
}
.intake-card .act-btns { flex-wrap: nowrap; gap: 2px; }
.intake-card .icon-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  justify-content: center;
  background: transparent;
  border-radius: 9px;
  font-size: 16px;
}
.intake-card .icon-btn:hover { background: rgba(0, 0, 0, 0.05); }
.intake-card .icon-btn.star.on,
.intake-card .icon-btn.star.on .ic { color: #ff9f0a; }
.intake-card .icon-btn.danger { color: var(--bad); }
.empty-intake {
  padding: 72px 24px 80px;
  text-align: center;
}
.empty-intake p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
}
.file-field { position: relative; }
.file-field input[type="file"] {
  position: absolute;
  inset: 22px 0 0 0;
  opacity: 0;
  cursor: pointer;
  height: 44px;
}
.file-pick {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: #f5f5f7;
  color: var(--ink-soft);
  font-size: 14px;
}
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-sheet { max-width: 440px; margin: 0 auto; }
.upload-sheet .form-grid { gap: 14px; }
.ivs-pill { display: inline-flex; }

.time-block { display: flex; flex-direction: column; gap: 6px; }
.time-legend { font-size: 13px; font-weight: 600; color: #1d1d1f; }
.time-row { display: flex; align-items: flex-end; gap: 8px; }
.time-row label { min-width: 72px; }
.time-colon { font-size: 22px; font-weight: 600; color: #1d1d1f; padding-bottom: 10px; }

.schedule-card, .cal-wrap { margin-top: 0; }
.cal-head { margin-bottom: 12px; }
.cal-head strong { font-size: 18px; font-weight: 600; }
@media (max-width: 980px) {
  :root { --gutter: 20px; }
}

.jobs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
@media (max-width: 900px) { .jobs-grid { grid-template-columns: 1fr; } }
.card.job h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.card.job .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.card.job .muted { color: #6e6e73; font-size: 13px; margin: 0 0 12px; }
.card.job .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.card.job .job-actions { display: flex; gap: 16px; }
.card.job .link { background: none; border: 0; color: #1C70EE; cursor: pointer; padding: 0; font-size: 14px; }

.plan-toolbar { flex-wrap: wrap; }
.plan-tools-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan-search {
  width: 240px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: #f5f5f7;
}
.plan-tools-left select {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  background: #f5f5f7;
}
.plan-count { color: var(--muted); font-size: 13px; }
.plan-table td { white-space: nowrap; }
.plan-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.st-plan { background: #efe9ff; color: #5b3cc4; }
.st-source { background: #e6f1ff; color: #1558c4; }
.st-screen { background: #e4f8f0; color: #0f7a4a; }
.st-iv { background: #e8eeff; color: #3d4db7; }
.st-offer { background: #e5f8e9; color: #1f7a33; }
.st-insight { background: #fff3e0; color: #b25e09; }
.ps-idle { background: #eef1f4; color: #5c5c60; }
.ps-run { background: #e6f1ff; color: #1558c4; }
.ps-done { background: #e5f8e9; color: #1f7a33; }
.pr-low { background: #eef1f4; color: #5c5c60; }
.pr-mid { background: #e6f1ff; color: #1558c4; }
.pr-high { background: #fff3e0; color: #b25e09; }
.pr-urgent { background: #fdecee; color: #d70015; }

.filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-select { height: 36px; border: 1px solid #e5e5ea; border-radius: 10px; padding: 0 12px; font-size: 14px; background: #fff; color: #1d1d1f; }

.th-sort { background: none; border: 0; padding: 0; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.th-sort:hover { color: var(--accent); }

.comment-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.65;
  margin: 8px 0 0;
  max-width: 100%;
}
.comment textarea, textarea[name="body"] {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.edit-link, button.edit-link {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
  color: #1C70EE;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 0;
}
.edit-link:hover { opacity: 0.72; }
.cand-table .cell-acts { text-align: right; white-space: nowrap; }

.edit-link.danger-link { color: #d70015; margin-left: 14px; }
.cell-acts .edit-link + .edit-link { margin-left: 14px; }

.gear-wrap { position: relative; display: inline-flex; }
.gear-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 4px 6px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  border-radius: 8px;
}
.gear-btn:hover { opacity: 1; background: rgba(0,0,0,0.04); }
.gear-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 96px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 6px;
  z-index: 20;
}
.gear-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: #1d1d1f;
  cursor: pointer;
}
.gear-menu button:hover { background: #f5f5f7; }
.gear-menu button.danger { color: #d70015; }
.iv-detail-acts { display: flex; align-items: center; gap: 16px; }

/* Candidate hiring workspace — scoped so other .modal sheets stay 880px */
.modal-bg:has(> .modal-workspace) {
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
}
.modal.modal-workspace {
  width: min(1180px, 100%);
  height: 94vh;
  max-height: 94vh;
  overflow: hidden;
  border-radius: 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
}
.modal.modal-workspace h2 { margin: 0; }

.profile-workspace {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #fff;
  border-radius: inherit;
}

.profile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px 8px;
  flex-shrink: 0;
}
.profile-head-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.profile-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 2px;
}
.ws-back { flex-shrink: 0; margin-top: 2px; }
.profile-id { min-width: 0; }
.profile-id h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.profile-job {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.profile-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}
.profile-meta .meta-dot { color: var(--muted); }

.pipe-step {
  display: flex;
  align-items: flex-start;
  padding: 6px 16px 14px;
  flex-shrink: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}
.pipe-step-item {
  flex: 1 1 0;
  min-width: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background: none;
  border: 0;
  padding: 0 2px;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.pipe-step-item::before,
.pipe-step-item::after {
  content: "";
  position: absolute;
  top: 7px;
  height: 2px;
  background: #e5e5ea;
  z-index: 0;
}
.pipe-step-item::before { left: 0; right: 50%; }
.pipe-step-item::after { left: 50%; right: 0; }
.pipe-step-item:first-child::before { display: none; }
.pipe-step-item:last-child::after { display: none; }
.pipe-step-item.done::before,
.pipe-step-item.done::after,
.pipe-step-item.current::before {
  background: var(--accent);
}
.pipe-step-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #d2d2d7;
  background: #fff;
  z-index: 1;
  display: grid;
  place-items: center;
  position: relative;
  box-sizing: border-box;
}
.pipe-step-item.done .pipe-step-dot {
  background: var(--accent);
  border-color: var(--accent);
}
.pipe-step-item.done .pipe-step-dot::after {
  content: "";
  width: 7px;
  height: 4px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg) translate(0, -1px);
}
.pipe-step-item.current .pipe-step-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(28, 112, 238, 0.16);
}
.pipe-step-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  text-align: center;
  white-space: nowrap;
  line-height: 1.2;
}
.pipe-step-item.done .pipe-step-label { color: var(--ink-soft); }
.pipe-step-item.current .pipe-step-label {
  background: var(--accent);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.pipe-step-item:hover .pipe-step-label { color: var(--accent); }
.pipe-step-item.current:hover .pipe-step-label { color: #fff; }

.profile-body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}
.profile-main {
  flex: 1 1 62%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #fff;
}
.insight-aside {
  flex: 1 1 38%;
  width: 38%;
  min-width: 280px;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  background: #f7f8fa;
}

.modal.modal-workspace .tab-bar {
  display: flex;
  gap: 4px;
  padding: 10px 14px 0;
  flex-shrink: 0;
}
.modal.modal-workspace .tab-btn {
  background: transparent;
  border: 0;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
}
.modal.modal-workspace .tab-btn:hover { background: rgba(28, 112, 238, 0.06); color: var(--ink); }
.modal.modal-workspace .tab-btn.on {
  background: rgba(28, 112, 238, 0.12);
  color: var(--accent);
  font-weight: 600;
}
.modal.modal-workspace .tab-panes {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.modal.modal-workspace .tab-pane {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 14px 16px 20px;
}
.modal.modal-workspace .tab-pane.on { display: block; }
.modal.modal-workspace .tab-pane.resume-pane.on {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.resume-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
  margin-bottom: 10px;
}
.resume-sub { font-size: 12px; color: var(--muted); }
.resume-acts { display: flex; align-items: center; gap: 8px; }
.resume-preview {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  margin: 0;
}
.resume-frame {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #eef0f3;
}

.ws-form-acts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.ws-file { width: 100%; max-width: 360px; }
.ws-file.compact { width: auto; max-width: 160px; margin: 0; }
.ws-file.compact input[type="file"] {
  inset: 0;
  height: 100%;
}
.ws-file.compact .file-pick {
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
}

.ws-iv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ws-iv {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f5f5f7;
  border: 1px solid var(--line);
}
.ws-iv-when { font-weight: 600; font-size: 14px; letter-spacing: -0.02em; }
.ws-iv-meta { color: var(--ink-soft); font-size: 13px; margin-top: 4px; }

.modal.modal-workspace .intel {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.insight-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  position: sticky;
  top: 0;
  background: #f7f8fa;
  z-index: 1;
  padding: 2px 0 10px;
}
.insight-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--ink-soft);
  cursor: pointer;
}
.insight-chip:hover,
.insight-chip.on {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(28, 112, 238, 0.06);
}
.insight-sec { margin: 0 0 18px; }
.insight-sec h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.insight-sec h4 em { font-style: normal; font-weight: 400; color: var(--muted); }

.insight-score-block {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin: 8px 0 12px;
}
.insight-score-num {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.insight-score-num.excellent { color: var(--ok); }
.insight-score-num.good { color: var(--accent); }
.insight-score-num.ok { color: var(--ink-soft); }
.insight-score-num.weak { color: var(--bad); }
.insight-score-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding-bottom: 4px;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.status-badge.go { background: rgba(52, 199, 89, 0.14); color: var(--ok); }
.status-badge.watch { background: #eef1f4; color: var(--ink-soft); }
.status-badge.caution { background: #fff3e0; color: #b25e09; }

.insight-fb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.thumb-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--ink-soft);
}
.thumb-btn:hover { border-color: var(--accent); color: var(--accent); }
.thumb-btn.on {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(28, 112, 238, 0.08);
}

.highlight-list { display: flex; flex-direction: column; gap: 8px; }
.highlight-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.highlight-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}
.highlight-card p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.risk-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.risk-list li {
  position: relative;
  padding: 8px 10px 8px 22px;
  background: #fff8f0;
  border-radius: 10px;
  font-size: 13px;
  color: #8a5a00;
  line-height: 1.5;
}
.risk-list li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e67e22;
}

.track-years { margin: 0 0 8px; font-size: 13px; color: var(--ink-soft); }
.track-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line);
}
.track-list li {
  position: relative;
  padding: 6px 0 10px 16px;
  font-size: 13px;
  color: var(--ink);
}
.track-list li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.talent-row { display: flex; flex-wrap: wrap; gap: 6px; }
.talent-chip {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(28, 112, 238, 0.10);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
}

.modal.modal-workspace .insight-q { margin: 0; padding-left: 18px; }
.modal.modal-workspace .insight-q li { margin: 6px 0; font-size: 13px; color: var(--ink-soft); }
.empty-soft {
  color: var(--muted);
  font-size: 13px;
  padding: 4px 0 8px;
  margin: 0;
  text-align: left;
}
.ws-comments { margin-top: 8px; }

@media (max-width: 860px) {
  .modal.modal-workspace {
    width: 100%;
    height: 96vh;
    max-height: 96vh;
    border-radius: 16px 16px 0 0;
  }
  .modal-bg:has(> .modal-workspace) {
    align-items: flex-end;
    padding: 0;
  }
  .profile-body {
    flex-direction: column;
    overflow: auto;
  }
  .profile-main,
  .insight-aside {
    width: 100%;
    max-width: none;
    min-width: 0;
    flex: 0 0 auto;
    min-height: 46vh;
  }
  .insight-aside { border-top: 1px solid var(--line); }
  .profile-main { border-right: 0; }
}
