/* =========================================================================
 * yay 人事工作台 · 样式
 * 移动端优先（企微内置浏览器），桌面端自动收成居中的工作台视图
 * ========================================================================= */

:root {
  --brand: #2e6be6;
  --brand-deep: #1c4fc4;
  --brand-soft: #eaf0fe;
  --bg: #f2f4f8;
  --card: #ffffff;
  --text: #171a1f;
  --text-2: #4a5160;
  --muted: #8a91a0;
  --line: #eef0f4;
  --green: #12b76a;
  --amber: #f79009;
  --red: #f04438;
  --radius: 16px;
  --shadow: 0 2px 10px rgba(23, 26, 31, 0.05);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

#app { min-height: 100vh; background: var(--bg); }

.view {
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: calc(28px + var(--safe-b));
  animation: fade 0.22s ease;
}

@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.ico { width: 20px; height: 20px; display: block; flex: none; }

/* ---------------- 顶部 ---------------- */
.hero {
  position: relative;
  padding: 16px 16px 46px;
  color: #fff;
  background: linear-gradient(140deg, #1c4fc4 0%, #2e6be6 42%, #5b92f7 100%);
  border-radius: 0 0 26px 26px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -90px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.hero::before {
  content: "";
  position: absolute;
  right: 40px;
  top: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.hero-bar { position: relative; display: flex; align-items: center; gap: 10px; z-index: 1; }

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  backdrop-filter: blur(6px);
  flex: none;
}

.brand-text { flex: 1; min-width: 0; }
.brand-text h1 { font-size: 18px; font-weight: 600; letter-spacing: 0.2px; }
.brand-text p { font-size: 11.5px; opacity: 0.8; margin-top: 2px; }

.hero-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  transition: background 0.15s;
}
.hero-btn:active { background: rgba(255, 255, 255, 0.3); }

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 16px;
  padding: 12px 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}
.hero-stats .stat { text-align: center; }
.hero-stats b { display: block; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 10.5px; opacity: 0.78; }

/* ---------------- 公告 ---------------- */
.notice {
  margin: -32px 12px 0;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  position: relative;
  z-index: 2;
}
.notice .ico { width: 16px; height: 16px; color: var(--amber); }
.notice-track { flex: 1; overflow: hidden; height: 20px; }
.notice-track p {
  font-size: 12.5px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: slidein 0.3s ease;
}
@keyframes slidein { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.notice .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); flex: none; }

/* ---------------- 快捷入口 ---------------- */
.quick {
  margin: 12px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 6px 10px;
}
.quick-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.quick .tile { padding: 4px 0 8px; }
.quick .tile-icon { width: 44px; height: 44px; }

/* ---------------- 分组 ---------------- */
.section { margin: 4px 12px 12px; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 4px 10px;
}
.section-head h2 { font-size: 15px; font-weight: 600; letter-spacing: 0.2px; }
.section-head .desc { font-size: 11.5px; color: var(--muted); }
.section-head .count { margin-left: auto; font-size: 11px; color: var(--muted); }

.card-grid {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 4px 6px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 8px 2px 12px;
  border-radius: 12px;
  transition: background 0.15s, transform 0.12s;
}
.tile:active { background: #f6f8fc; transform: scale(0.96); }

.tile-icon {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
}
.tile-icon .ico { width: 23px; height: 23px; stroke-width: 1.7; }

.tile-label {
  font-size: 11.5px;
  color: var(--text-2);
  line-height: 1.25;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid #fff;
}
.badge-dot.is-beta { background: var(--amber); }

/* ---------------- 通用卡片 / 页头 ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 50px;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .back {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text);
}
.topbar .back:active { background: #f1f3f7; }
.topbar .back .ico { width: 21px; height: 21px; }
.topbar .title { font-size: 15px; font-weight: 600; }

.page-body { padding: 12px; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 12px;
}
.card h2 {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.3px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 模块头 */
.module-hero {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 16px 16px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.module-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--c, var(--brand));
  opacity: 0.06;
}
.module-hero .head { display: flex; align-items: center; gap: 12px; }
.module-hero .big-icon {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  flex: none;
}
.module-hero .big-icon .ico { width: 27px; height: 27px; }
.module-hero h1 { font-size: 18px; font-weight: 600; }
.module-hero .group { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.module-hero .summary {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-2);
  margin-top: 14px;
  position: relative;
  z-index: 1;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 10.5px;
  font-weight: 600;
  vertical-align: middle;
}
.pill.live { color: #067647; background: #e7f8ef; }
.pill.beta { color: #b54708; background: #fff3e0; }
.pill.plan { color: #5b6472; background: #f0f2f6; }
.pill .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* 内容清单 */
.content-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 0;
  font-size: 13px;
  color: var(--text-2);
  border-bottom: 1px solid var(--line);
}
.content-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.content-list li:first-child { padding-top: 0; }
.content-list .ico { width: 16px; height: 16px; margin-top: 2px; color: var(--c, var(--brand)); opacity: 0.9; }

/* 快捷操作 */
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn {
  height: 44px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.12s, opacity 0.15s;
}
.btn:active { transform: scale(0.98); opacity: 0.9; }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(46, 107, 230, 0.24); }
.btn.ghost { background: var(--brand-soft); color: var(--brand); }
.btn .ico { width: 17px; height: 17px; }

/* 元信息 */
.meta { display: grid; gap: 0; }
.meta .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  font-size: 12.5px;
  border-bottom: 1px solid var(--line);
}
.meta .row:last-child { border-bottom: 0; padding-bottom: 0; }
.meta .row:first-child { padding-top: 0; }
.meta .k { color: var(--muted); flex: none; }
.meta .v { color: var(--text-2); text-align: right; }

.tip {
  display: flex;
  gap: 8px;
  padding: 11px 13px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: #fffaf0;
  border: 1px solid #fdeccd;
  color: #8a5a00;
  font-size: 12px;
  line-height: 1.6;
}
.tip .ico { width: 15px; height: 15px; margin-top: 2px; flex: none; }
.tip.blue { background: #f2f7ff; border-color: #dfeaff; color: #2a4c8a; }

.foot {
  text-align: center;
  font-size: 11px;
  color: #a7adba;
  padding: 18px 16px 6px;
  line-height: 1.8;
}
.foot .sep { margin: 0 6px; opacity: 0.5; }

/* ---------------- 搜索 ---------------- */
.search-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #fff;
  display: flex;
  flex-direction: column;
  animation: up 0.2s ease;
}
@keyframes up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.search-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}
.search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: 19px;
  background: #f2f4f8;
}
.search-field .ico { width: 17px; height: 17px; color: var(--muted); }
.search-field input {
  flex: 1;
  border: 0;
  outline: 0;
  background: none;
  font-size: 14px;
  color: var(--text);
}
.search-field input::placeholder { color: #a9afbb; }
.search-cancel { color: var(--brand); font-size: 14px; padding: 6px 2px; }

.search-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 24px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}
.search-hint { padding: 16px; font-size: 12px; color: var(--muted); }
.result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  width: 100%;
  text-align: left;
}
.result:active { background: #f7f9fc; }
.result .tile-icon { width: 36px; height: 36px; border-radius: 11px; }
.result .tile-icon .ico { width: 18px; height: 18px; }
.result .r-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.result .r-title { font-size: 14px; }
.result .r-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.result .pill { flex: none; }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(70px + var(--safe-b));
  transform: translateX(-50%);
  z-index: 90;
  max-width: 78vw;
  padding: 10px 16px;
  border-radius: 20px;
  background: rgba(28, 32, 40, 0.92);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
  animation: toastin 0.2s ease;
  pointer-events: none;
}
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------- 桌面端 ---------------- */
@media (min-width: 700px) {
  body {
    background: radial-gradient(circle at 20% 0%, #dfe8fb 0%, #eef1f7 40%, #e9edf5 100%);
    min-height: 100vh;
    padding: 0;
  }
  #app {
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    box-shadow: 0 0 0 1px rgba(23, 26, 31, 0.04), 0 24px 60px rgba(23, 26, 31, 0.1);
    background: var(--bg);
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* =========================================================================
 * 候选人管理
 * ========================================================================= */
.cand-hero {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 6px;
  margin-bottom: 12px;
  text-align: center;
}
.cand-hero b { display: block; font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cand-hero span { font-size: 10.5px; color: var(--muted); }

.dropzone {
  border: 1.5px dashed #c9d4e8;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fbfdff, #f4f8ff);
  padding: 22px 16px;
  text-align: center;
  margin-bottom: 12px;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
  cursor: pointer;
}
.dropzone.over { border-color: var(--brand); background: #eef4ff; transform: scale(0.995); }
.dz-icon {
  width: 46px; height: 46px; margin: 0 auto 10px;
  border-radius: 15px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
}
.dz-icon .ico { width: 24px; height: 24px; }
.dz-title { font-size: 14px; color: var(--text); }
.dz-title em { font-style: normal; color: var(--brand); font-weight: 600; }
.dz-sub { font-size: 11.5px; color: var(--muted); margin-top: 5px; line-height: 1.5; }

.cand-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; }
.cand-tabs button {
  flex: none; height: 30px; padding: 0 13px; border-radius: 15px;
  background: #eef1f6; color: var(--text-2); font-size: 12.5px;
}
.cand-tabs button.on { background: var(--brand); color: #fff; }

.cand-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 9px;
  text-align: left;
}
.cand-card:active { background: #f8fafd; }
.cand-ava {
  width: 44px; height: 44px; flex: none; border-radius: 14px;
  background: linear-gradient(135deg, #e8f0ff, #dbe7ff);
  color: var(--brand); font-weight: 600; font-size: 17px;
  display: grid; place-items: center;
}
.cand-ava.big { width: 56px; height: 56px; border-radius: 18px; font-size: 22px; }
.cand-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cand-row1 { display: flex; align-items: center; gap: 8px; }
.cand-row1 b { font-size: 15px; font-weight: 600; }
.cand-pos { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cand-meta { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cand-score { flex: none; text-align: right; color: #c2c8d2; font-size: 18px; font-weight: 600; }
.cand-score.on { color: var(--brand); }
.cand-score i { font-style: normal; font-size: 10px; font-weight: 400; margin-left: 1px; color: var(--muted); }

.cand-chip {
  display: inline-flex; align-items: center; height: 19px; padding: 0 7px;
  border-radius: 10px; font-size: 10px; font-weight: 600; flex: none;
}
.cand-chip.new { background: #f0f2f6; color: #5b6472; }
.cand-chip.scheduled { background: var(--brand-soft); color: var(--brand); }
.cand-chip.due { background: #fff1f0; color: #d92d20; }
.cand-chip.rejected { background: #f4f5f7; color: #8b93a1; }
.cand-chip.hold { background: #fff4e5; color: #b54708; }
.cand-chip.recommend { background: #e7f8ef; color: #067647; }
.cand-chip.second { background: #eaf2ff; color: #1c4fc4; }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .ico { width: 40px; height: 40px; margin: 0 auto 10px; opacity: 0.4; }
.empty p { font-size: 14px; color: var(--text-2); margin-bottom: 4px; }
.empty span { font-size: 12px; }

.busy-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(16, 22, 33, 0.35);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(2px);
}
.busy-box {
  background: #fff; border-radius: 16px; padding: 20px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2); min-width: 180px;
}
.busy-box p { font-size: 13px; color: var(--text-2); }
.spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid #e5ecf9; border-top-color: var(--brand);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.parse-banner {
  display: flex; gap: 10px; align-items: center;
  background: #e9f9f1; border: 1px solid #c8f0da; color: #067647;
  border-radius: 12px; padding: 11px 13px; margin-bottom: 12px;
}
.parse-banner .ico { width: 18px; height: 18px; flex: none; }
.parse-banner b { display: block; font-size: 13px; }
.parse-banner span { font-size: 11.5px; opacity: 0.85; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
@media (max-width: 420px) { .form-grid { grid-template-columns: 1fr; } }
.fld { display: flex; flex-direction: column; gap: 5px; }
.fld > span { font-size: 11.5px; color: var(--muted); }
.fld input, .fld select, .fld textarea {
  width: 100%; border: 1px solid #e3e8f0; background: #fbfcfe;
  border-radius: 10px; padding: 9px 11px; font-size: 13px; color: var(--text);
  outline: none; font-family: inherit;
}
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--brand); background: #fff; }
.hint { font-size: 11.5px; color: var(--muted); margin-top: 10px; line-height: 1.6; }

.tag-ai, .tag-rule {
  margin-left: auto; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 8px;
}
.tag-ai { background: #eef4ff; color: var(--brand); }
.tag-rule { background: #f4f5f7; color: #7c8494; }

.ai-top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.ai-ring {
  width: 66px; height: 66px; border-radius: 50%; flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 3px solid #e5ecf9;
}
.ai-ring b { font-size: 20px; line-height: 1; }
.ai-ring span { font-size: 9px; color: var(--muted); margin-top: 2px; }
.ai-ring.good { border-color: #7bd6a8; color: #067647; }
.ai-ring.mid { border-color: #f5c26b; color: #b54708; }
.ai-ring.low { border-color: #f7a5a0; color: #d92d20; }
.ai-summary { font-size: 12.5px; color: var(--text-2); line-height: 1.65; }
.ai-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 420px) { .ai-cols { grid-template-columns: 1fr; } }
.ai-cols h3, .ai-q h3 { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.ai-cols ul, .ai-q ol { margin: 0; padding-left: 16px; }
.ai-cols li, .ai-q li { font-size: 12px; color: var(--text-2); line-height: 1.6; margin-bottom: 3px; }
.ai-cols .risk li { color: #b54708; }
.ai-q { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

.resume-raw { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.resume-raw summary { font-size: 12px; color: var(--brand); cursor: pointer; }
.resume-raw pre {
  margin-top: 8px; max-height: 280px; overflow: auto;
  background: #f7f9fc; border-radius: 10px; padding: 12px;
  font-size: 11.5px; line-height: 1.7; color: var(--text-2);
  white-space: pre-wrap; word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.cand-profile { display: flex; gap: 13px; align-items: center; padding: 4px 2px 14px; }
.cp-main { min-width: 0; }
.cp-main h1 { font-size: 19px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cp-main p { font-size: 12.5px; color: var(--text-2); margin-top: 3px; }
.cp-contact { color: var(--muted) !important; font-size: 11.5px !important; }

.kv-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.kv-row:last-child { border-bottom: 0; padding-bottom: 0; }
.kv-row > span { color: var(--muted); flex: none; }
.kv-row > b { font-weight: 500; text-align: right; color: var(--text-2); }
.link { color: var(--brand); text-decoration: none; }

.step { display: flex; gap: 11px; padding-bottom: 14px; position: relative; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 1px; background: var(--line);
}
.step:last-child::before { display: none; }
.step-dot {
  width: 11px; height: 11px; border-radius: 50%; flex: none; margin-top: 3px;
  background: #dfe4ec; position: relative; z-index: 1;
}
.step-dot.done { background: var(--green); }
.step-dot.alert { background: var(--red); box-shadow: 0 0 0 4px #fde8e6; }
.step-body b { display: block; font-size: 13px; font-weight: 600; }
.step-body span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.5; }

.review-box { margin-top: 6px; padding: 14px; background: #f8fafd; border-radius: 12px; }
.review-box h3 { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.review-box h3 .muted { color: var(--muted); font-weight: 400; font-size: 11px; }
.score-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; }
.score-btn {
  width: 38px; height: 38px; border-radius: 12px; font-size: 15px; font-weight: 600;
  background: #fff; border: 1px solid #e3e8f0; color: var(--text-2);
  transition: all 0.12s;
}
.score-btn.s1, .score-btn.s2 { color: #d92d20; }
.score-btn.s3 { color: #b54708; }
.score-btn.s4, .score-btn.s5 { color: #067647; }
.score-btn.on { color: #fff; border-color: transparent; transform: translateY(-1px); }
.score-btn.s1.on, .score-btn.s2.on { background: #d92d20; }
.score-btn.s3.on { background: #f79009; }
.score-btn.s4.on, .score-btn.s5.on { background: #12b76a; }
.score-legend { font-size: 10.5px; color: var(--muted); margin-left: 2px; }
.review-box textarea {
  width: 100%; border: 1px solid #e3e8f0; border-radius: 10px; padding: 10px 12px;
  font-size: 13px; font-family: inherit; resize: vertical; outline: none; background: #fff;
}
.review-box textarea:focus { border-color: var(--brand); }
.review-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.decision-tip { font-size: 11.5px; color: var(--muted); }
.decision-tip.reject { color: #d92d20; }
.decision-tip.hold { color: #b54708; }
.decision-tip.pass { color: #067647; }
.review-foot .btn { width: auto; padding: 0 18px; height: 40px; flex: none; }

.verdict { display: flex; flex-direction: column; gap: 5px; padding: 14px; border-radius: 12px; }
.verdict b { font-size: 15px; }
.verdict span { font-size: 12px; line-height: 1.6; opacity: 0.85; }
.verdict.reject { background: #fff1f0; color: #b42318; }
.verdict.hold { background: #fff8ea; color: #b54708; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.chip {
  height: 30px; padding: 0 12px; border-radius: 15px; font-size: 12.5px;
  background: #f2f4f8; color: var(--text-2); border: 1px solid transparent;
}
.chip.on { background: var(--brand-soft); color: var(--brand); border-color: #c9dbff; font-weight: 500; }
.chip-add { display: flex; gap: 7px; margin-top: 9px; }
.chip-add input {
  flex: 1; border: 1px solid #e3e8f0; border-radius: 9px; padding: 8px 11px;
  font-size: 12.5px; outline: none; background: #fbfcfe;
}
.chip-add button {
  padding: 0 14px; border-radius: 9px; background: #eef1f6; color: var(--text-2); font-size: 12.5px;
}

.timeline { position: relative; padding-left: 4px; }
.timeline li { display: flex; gap: 10px; padding: 8px 0; }
.timeline i {
  width: 7px; height: 7px; border-radius: 50%; background: #cdd5e1; margin-top: 6px; flex: none;
}
.timeline b { display: block; font-size: 12.5px; font-weight: 500; }
.timeline span { font-size: 11px; color: var(--muted); }

.todo-inline {
  display: flex; gap: 10px; align-items: center;
  background: linear-gradient(135deg, #fff1f0, #fff7f5);
  border: 1px solid #ffd8d2; border-radius: 13px;
  padding: 12px 14px; margin-bottom: 12px; color: #b42318;
}
.todo-inline .ico { width: 18px; height: 18px; flex: none; }
.todo-inline b { display: block; font-size: 13px; }
.todo-inline span { font-size: 11.5px; opacity: 0.85; }

.home-todo {
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin: 12px 12px 0;
  padding: 12px 14px 6px;
  border-left: 3px solid var(--red);
}
.ht-head { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.ht-head .ico { width: 16px; height: 16px; color: var(--red); }
.ht-head b { font-size: 13px; font-weight: 600; }
.ht-count {
  background: var(--red); color: #fff; font-size: 10px; font-weight: 600;
  min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; padding: 0 4px;
}
.ht-item {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-top: 1px solid var(--line); text-align: left;
}
.ht-main { flex: 1; min-width: 0; }
.ht-main b { display: block; font-size: 12.5px; font-weight: 500; }
.ht-main span { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.ht-go { font-size: 11.5px; color: var(--brand); flex: none; }

.modal-mask {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(16, 22, 33, 0.45);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: #fff; border-radius: 16px; padding: 18px;
  width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.modal h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.modal p { font-size: 12.5px; color: var(--text-2); line-height: 1.7; }
.modal code { background: #f2f4f8; padding: 1px 5px; border-radius: 5px; font-size: 11.5px; }
.modal textarea {
  width: 100%; margin: 10px 0; border: 1px solid #e3e8f0; border-radius: 10px;
  padding: 10px; font-size: 12px; font-family: inherit; resize: none; background: #fbfcfe;
}
.modal .actions { grid-template-columns: 1fr 1fr; }

.badge-num {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  border: 2px solid #fff;
  box-sizing: content-box;
}

/* =========================================================================
 * 面试安排
 * ========================================================================= */
.topbar-sub { margin-left: auto; font-size: 12px; color: var(--muted); padding-right: 10px; }
.mini-btn {
  height: 30px; padding: 0 12px; border-radius: 15px;
  background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 500;
}

.calendar {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 10px 8px;
  margin-bottom: 12px;
}
.cal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4px 10px;
}
.cal-head b { font-size: 14px; font-weight: 600; }
.cal-nav {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  color: var(--text-2); background: #f4f6fa;
}
.cal-nav .ico { width: 16px; height: 16px; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-week span {
  text-align: center; font-size: 10.5px; color: var(--muted); padding: 4px 0 6px;
}
.cal-grid { gap: 2px 0; }
.cal-day {
  position: relative;
  height: 38px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
}
.cal-day.other { color: #ccd2dd; }
.cal-day.today { color: var(--brand); font-weight: 600; }
.cal-day.on { background: var(--brand); color: #fff; font-weight: 600; }
.cal-day.on i { background: #fff !important; }
.cal-day i {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--brand);
}
.cal-legend {
  display: flex; align-items: center; gap: 5px; justify-content: center;
  font-size: 10.5px; color: var(--muted); padding: 8px 0 2px;
}
.cal-legend i { width: 4px; height: 4px; border-radius: 50%; background: var(--brand); }

.day-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 4px 10px;
}
.day-head b { font-size: 15px; font-weight: 600; }
.day-head span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.iv-card {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 13px 14px;
  margin-bottom: 9px;
  text-align: left;
}
.iv-card:active { background: #f8fafd; }
.iv-time {
  flex: none; width: 52px; text-align: center;
  font-size: 17px; font-weight: 600; color: var(--brand);
  font-variant-numeric: tabular-nums;
  border-right: 1px solid var(--line);
  padding-right: 10px;
}
.iv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.iv-row1 { display: flex; align-items: center; gap: 6px; }
.iv-row1 b { font-size: 14.5px; font-weight: 600; }
.iv-kind {
  font-style: normal; font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 7px;
  background: #eef4ff; color: var(--brand);
}
.iv-kind.second { background: #f3eeff; color: #6b3fd4; }
.iv-mode {
  font-style: normal; font-size: 10px; padding: 2px 6px; border-radius: 7px;
  background: #f2f4f8; color: #5b6472;
}
.iv-brief { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iv-meta { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iv-go { color: #c8cfda; flex: none; }
.iv-go .ico { width: 16px; height: 16px; }

.iv-head { display: flex; gap: 13px; align-items: center; padding: 6px 2px 14px; }
.iv-avatar {
  width: 56px; height: 56px; border-radius: 18px; flex: none;
  background: linear-gradient(135deg, #e8f0ff, #dbe7ff); color: var(--brand);
  font-size: 22px; font-weight: 600; display: grid; place-items: center;
}
.iv-head-main h1 { font-size: 19px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.iv-head-main p { font-size: 12.5px; color: var(--text-2); margin-top: 3px; }
.iv-contact { color: var(--muted) !important; font-size: 11.5px !important; }

.print-title { display: none; }
.print-resume {
  margin: 0; white-space: pre-wrap; word-break: break-word;
  font-size: 12px; line-height: 1.75; color: var(--text-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media print {
  body { background: #fff !important; }
  #app, .view { max-width: 100% !important; box-shadow: none !important; background: #fff !important; }
  .topbar, .actions, .foot, .print-hide, #toast,
  .cand-tabs, .dropzone, .schedule-print-hide { display: none !important; }
  .page-body { padding: 0 !important; }
  .print-title {
    display: block; font-size: 18px; font-weight: 700; text-align: center;
    padding: 0 0 14px; letter-spacing: 2px;
  }
  .no-print, .day-head { display: none !important; }
  .card, .iv-head, .iv-card { box-shadow: none !important; break-inside: avoid; }
  .iv-card { border: 1px solid #e6e6e6; margin-bottom: 8px; }
  .iv-go { display: none; }
  .card { border: 1px solid #e6e6e6; margin-bottom: 10px; }
  .card h2 { color: #333 !important; }
  .print-resume { font-size: 11px; }
  a { text-decoration: none; color: inherit; }
}

.topbar .mini-btn { margin-left: auto; margin-right: 6px; }
