/* ===========================================================
   行政人事部工作台 · 深色主题样式
   =========================================================== */
:root {
  --bg-app: #0d1117;
  --bg-sidebar: #0a0e14;
  --bg-card: #141b26;
  --bg-card-2: #1a2331;
  --bg-elevate: #1e2836;
  --bg-hover: #212c3d;

  --border: #253044;
  --border-soft: #1c2534;

  --text-1: #e6edf7;
  --text-2: #9aa9bf;
  --text-3: #66758c;

  --brand: #2ee6a8;
  --brand-dim: rgba(46, 230, 168, .12);
  --brand-line: rgba(46, 230, 168, .35);

  --blue: #4c9aff;
  --purple: #a78bfa;
  --amber: #f5b544;
  --red: #f4626c;

  --radius: 10px;
  --sidebar-w: 208px;
  --topbar-h: 52px;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", system-ui, -apple-system, sans-serif;
}

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

html, body { height: 100%; }

body {
  font-family: var(--font);
  background: var(--bg-app);
  color: var(--text-1);
  font-size:19.6px;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a3548; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #364358; }

/* ---------- 布局 ---------- */
.app { display: flex; height: 100vh; }

/* ---------- 侧边栏 ---------- */
.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 14px 16px;
}
/* ---------- LOGO ---------- */
/* 想换 LOGO 主色，只改下面这一行即可（三个色阶：亮 / 中 / 暗） */
.brand-logo {
  --logo-c1: #2ee6a8;
  --logo-c2: #1a7f5f;
  --logo-c3: #0d3b2e;

  width: 30px; height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--logo-c1), var(--logo-c2) 60%, var(--logo-c3));
  display: flex; align-items: center; justify-content: center;
  color: #04201a; font-weight: 800; font-size:19.6px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(46,230,168,.25), 0 4px 12px rgba(46,230,168,.18);
  overflow: hidden;
}

/* 图片型 LOGO：<img class="brand-logo" src="logo.png"> 时自动生效 */
img.brand-logo {
  object-fit: contain;
  background: transparent;
  box-shadow: none;
  border-radius: 6px;
}

.brand-text { line-height: 1.25; }
.brand-text b { display: block; font-size:19.6px; letter-spacing: .5px; color: #dfe9f5; }
.brand-text span { font-size:15.3px; color: var(--text-3); letter-spacing: 1px; }

.nav-group { padding: 0 8px; }
.nav-group + .nav-group { margin-top: 6px; }
.nav-title {
  font-size:16.4px;
  color: var(--text-3);
  padding: 10px 8px 6px;
  letter-spacing: .6px;
}

.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 9px;
  border-radius: 7px;
  color: var(--text-2);
  font-size:18.5px;
  width: 100%;
  text-align: left;
  transition: background .15s, color .15s;
  position: relative;
}
.nav-item:hover { background: var(--bg-hover); color: var(--text-1); }
.nav-item.active {
  background: var(--brand-dim);
  color: var(--brand);
  font-weight: 600;
}
.nav-item.active::before {
  content: "";
  position: absolute; left: -8px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 14px; border-radius: 0 2px 2px 0;
  background: var(--brand);
}
.nav-item svg { width: 15px; height: 15px; flex: 0 0 15px; opacity: .85; }
.nav-item .badge {
  margin-left: auto;
  font-size:16.4px;
  background: var(--brand-dim);
  color: var(--brand);
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 600;
}

.sidebar-foot {
  margin-top: auto;
  padding: 12px 14px;
  border-top: 1px solid var(--border-soft);
  font-size:16.4px;
  color: var(--text-3);
  line-height: 1.6;
}

/* ---------- 主区 ---------- */
.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-app);
}

.topbar {
  height: var(--topbar-h);
  flex: 0 0 var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-app);
}
.topbar h1 { font-size:20.7px; font-weight: 600; letter-spacing: .3px; }
.topbar .spacer { flex: 1; }

.conn-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size:17.4px;
  color: var(--text-2);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px;
}
.conn-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.conn-dot.on { background: var(--brand); box-shadow: 0 0 6px var(--brand); }

.user-chip {
  display: flex; align-items: center; gap: 7px;
  padding: 4px 10px 4px 4px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size:18.5px;
  color: var(--text-2);
}
.user-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #2ee6a8, #4c9aff);
  color: #05121a; font-size:17.4px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.content { flex: 1; overflow: auto; padding: 14px 16px 20px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 7px;
  font-size:18.5px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-2);
  transition: all .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--bg-hover); color: var(--text-1); border-color: #31405a; }
.btn svg { width: 13px; height: 13px; }

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #04231a;
  font-weight: 700;
}
.btn-primary:hover { background: #4df0b9; border-color: #4df0b9; color: #04231a; }

.btn-ghost { background: transparent; }
.btn-danger { color: var(--red); border-color: rgba(244,98,108,.3); }
.btn-danger:hover { background: rgba(244,98,108,.12); color: var(--red); border-color: var(--red); }

.icon-btn {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px;
  color: var(--text-2);
  border: 1px solid transparent;
}
.icon-btn:hover { background: var(--bg-hover); color: var(--text-1); }
.icon-btn svg { width: 15px; height: 15px; }

/* ---------- 日历 toolbar ---------- */
.cal-toolbar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.cal-title {
  font-size:25.1px; font-weight: 700;
  letter-spacing: .3px;
  min-width: 130px;
}
.cal-nav { display: flex; gap: 4px; }

.seg {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 2px;
  gap: 2px;
}
.seg button {
  padding: 4px 11px;
  border-radius: 5px;
  font-size:18.5px;
  color: var(--text-2);
}
.seg button.active { background: var(--brand); color: #04231a; font-weight: 700; }

.filter-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 5px 9px;
  font-size:18.5px;
  color: var(--text-2);
  outline: none;
}
.filter-select:focus { border-color: var(--brand-line); }

/* ---------- 月视图 ---------- */
.weekbar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--border-soft);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: var(--bg-card);
}
.weekbar div {
  padding: 8px 0;
  text-align: center;
  font-size:17.4px;
  color: var(--text-3);
  letter-spacing: .5px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(96px, 1fr);
  border: 1px solid var(--border-soft);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.day-cell {
  border-right: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 6px 7px 8px;
  position: relative;
  min-height: 96px;
  cursor: pointer;
  transition: background .12s;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
.day-cell:nth-child(7n) { border-right: none; }
.day-cell:hover { background: #172030; }
.day-cell.other { opacity: .38; }
.day-cell.today { background: rgba(46,230,168,.045); }
.day-cell.today::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid var(--brand-line);
  pointer-events: none;
}

.day-head {
  display: flex; align-items: center; gap: 5px;
  font-size:18.5px;
  color: var(--text-2);
  min-height: 18px;
}
.day-num { font-weight: 600; }
.day-cell.today .day-num {
  background: var(--brand); color: #04231a;
  width: 19px; height: 19px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size:17.4px;
}
.day-holiday {
  font-size:16.4px;
  color: var(--red);
  margin-left: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}

.day-events { display: flex; flex-direction: column; gap: 3px; overflow: hidden; }

.ev {
  display: flex; align-items: center; gap: 5px;
  font-size:17.4px;
  padding: 2px 5px;
  border-radius: 4px;
  border-left: 2px solid var(--blue);
  background: rgba(76,154,255,.1);
  color: #b9d4ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: filter .12s;
}
.ev:hover { filter: brightness(1.3); }
.ev-tag {
  font-size:15.3px;
  padding: 0 3px;
  border-radius: 3px;
  background: rgba(0,0,0,.28);
  flex: 0 0 auto;
}
.ev-title { overflow: hidden; text-overflow: ellipsis; }
.ev-asg { color: rgba(255,255,255,.55); flex: 0 0 auto; }

/* 状态色 */
.s-plan   { border-left-color:#4c9aff; background:rgba(76,154,255,.11);  color:#b9d4ff; }
.s-making { border-left-color:#f5b544; background:rgba(245,181,68,.11);  color:#f6d69a; }
.s-done   { border-left-color:#2ee6a8; background:rgba(46,230,168,.11);  color:#a5f0d5; }
.s-pub    { border-left-color:#a78bfa; background:rgba(167,139,250,.12); color:#cfc0ff; }
.s-stop   { border-left-color:#f4626c; background:rgba(244,98,108,.11); color:#f7b0b5; }

.more-events {
  font-size:16.4px;
  color: var(--text-3);
  padding-left: 3px;
}

/* ---------- 周视图 ---------- */
.week-view {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.week-col {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 8px;
  min-height: 380px;
}
.week-col.today { border-color: var(--brand-line); }
.week-col-head {
  font-size:17.4px;
  color: var(--text-3);
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
}
.week-col-head b { color: var(--text-1); font-size:19.6px; }
.week-col .ev {
  display: block;
  white-space: normal;
  margin-bottom: 4px;
  padding: 4px 6px;
}

/* ---------- 列表视图 ---------- */
.table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left;
  font-size:17.4px;
  font-weight: 600;
  color: var(--text-3);
  padding: 9px 12px;
  background: #111826;
  border-bottom: 1px solid var(--border-soft);
  letter-spacing: .4px;
  white-space: nowrap;
}
tbody td {
  padding: 9px 12px;
  font-size:18.5px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
tbody tr:hover td { background: #172030; color: var(--text-1); }
tbody tr:last-child td { border-bottom: none; }
td b { color: var(--text-1); font-weight: 600; }

.pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size:16.4px;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
}
.p-plan   { color:#4c9aff; background:rgba(76,154,255,.12); }
.p-making { color:#f5b544; background:rgba(245,181,68,.12); }
.p-done   { color:#2ee6a8; background:rgba(46,230,168,.12); }
.p-pub    { color:#a78bfa; background:rgba(167,139,250,.13); }
.p-stop   { color:#f4626c; background:rgba(244,98,108,.12); }

/* ---------- 任务中心 ---------- */
.task-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.stat-label { font-size:17.4px; color: var(--text-3); margin-bottom: 6px; }
.stat-value { font-size:30.5px; font-weight: 700; letter-spacing: .5px; }
.stat-value.brand { color: var(--brand); }
.stat-value.blue { color: var(--blue); }
.stat-value.amber { color: var(--amber); }

.kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-items: start;
}
.kanban-col {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 9px;
  min-height: 200px;
}
.kanban-head {
  display: flex; align-items: center; gap: 6px;
  font-size:18.5px;
  font-weight: 600;
  color: var(--text-1);
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
}
.kanban-head .count {
  margin-left: auto;
  font-size:16.4px;
  color: var(--text-3);
  background: var(--bg-elevate);
  padding: 1px 6px;
  border-radius: 8px;
}
.kanban-card {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-left: 2px solid var(--blue);
  border-radius: 7px;
  padding: 8px 9px;
  margin-bottom: 7px;
  cursor: pointer;
  transition: border-color .15s, transform .12s;
}
.kanban-card:hover { border-color: #3a4a66; transform: translateY(-1px); }
.kanban-card h4 { font-size:18.5px; font-weight: 600; color: var(--text-1); margin-bottom: 5px; }
.kanban-meta {
  display: flex; align-items: center; gap: 6px;
  font-size:16.4px;
  color: var(--text-3);
}
.kanban-meta .due.over { color: var(--red); }
.kanban-meta .spacer { flex: 1; }

/* 任务责任人：独立一行，加粗显眼，纯色点不圈字 */
.kanban-owner {
  display: flex; align-items: center; gap: 6px;
  margin-top: 6px; padding-top: 6px;
  border-top: 1px dashed var(--border-soft);
}
.kanban-owner i {
  width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px;
}
.kanban-owner b { font-size:17.4px; color: var(--text-1); font-weight: 600; }
.kanban-card.owner-sep { margin-top: 12px; }
.mini-avatar {
  width: 16px; height: 16px; border-radius: 50%;
  background: linear-gradient(135deg,#4c9aff,#a78bfa);
  font-size:15.3px; color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- 素材库 ---------- */
.lib-toolbar { display: flex; gap: 8px; margin-bottom: 12px; align-items: center; }
.search-box {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 5px 9px;
  min-width: 220px;
}
.search-box svg { width: 13px; height: 13px; color: var(--text-3); }
.search-box input {
  background: none; border: none; outline: none;
  color: var(--text-1);
  width: 100%;
  font-size:18.5px;
}
.search-box input::placeholder { color: var(--text-3); }

.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.lib-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s, transform .12s;
  cursor: pointer;
}
.lib-card:hover { border-color: #33415a; transform: translateY(-2px); }
.lib-thumb {
  height: 88px;
  display: flex; align-items: center; justify-content: center;
  font-size:34.9px;
  background: linear-gradient(135deg, #1b2534, #131a26);
  border-bottom: 1px solid var(--border-soft);
  position: relative;
}
.lib-ext {
  position: absolute; right: 6px; top: 6px;
  font-size:15.3px;
  color: var(--text-2);
  background: rgba(0,0,0,.45);
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: .5px;
}
.lib-info { padding: 8px 9px; }
.lib-info b { display: block; font-size:17.4px; color: var(--text-1); font-weight: 600; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-info span { font-size:16.4px; color: var(--text-3); }

/* ---------- 弹窗 ---------- */
.overlay {
  position: fixed; inset: 0;
  background: rgba(4, 8, 14, .72);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  padding: 20px;
  animation: fade .16s ease;
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

.modal {
  width: 100%;
  max-width: 430px;
  background: var(--bg-elevate);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  animation: pop .18s ease;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98) } to { opacity: 1; transform: none } }

.modal-head {
  display: flex; align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}
.modal-head h3 { font-size:19.6px; font-weight: 600; }
.modal-head .icon-btn { margin-left: auto; }
.modal-body { padding: 14px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 11px; }
.modal-foot {
  display: flex; gap: 8px; justify-content: flex-end;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size:17.4px; color: var(--text-3); }
.field input, .field select, .field textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 10px;
  font-size:18.5px;
  color: var(--text-1);
  outline: none;
  transition: border-color .15s;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-line); }
.field textarea { resize: vertical; min-height: 56px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-size:17.4px;
  padding: 4px 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  color: var(--text-2);
  background: var(--bg-card);
}
.chip.active { border-color: var(--brand); color: var(--brand); background: var(--brand-dim); }

.empty {
  text-align: center;
  color: var(--text-3);
  font-size:18.5px;
  padding: 40px 0;
}

/* ---------- 提示条 ---------- */
.hintbar {
  margin-top: 10px;
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 9px 12px;
  font-size:17.4px;
  color: var(--text-3);
}
.hintbar svg { width: 14px; height: 14px; flex: 0 0 14px; color: var(--brand); }

/* ---------- toast ---------- */
.toast-wrap {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 8px;
  z-index: 200; align-items: center;
}
.toast {
  background: var(--bg-elevate);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  color: var(--text-1);
  font-size:18.5px;
  padding: 8px 15px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
  animation: toastIn .2s ease;
}
.toast.err { border-left-color: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }

/* ---------- 复选行 ---------- */
.check-row { display: flex; flex-direction: column; gap: 6px; }
.check { display: flex; align-items: center; gap: 7px; font-size:18.5px; color: var(--text-2); cursor: pointer; }
.check input { accent-color: var(--brand); width: 14px; height: 14px; }

/* ---------- 人才库 ---------- */
.tal-pos-group { margin-top: 16px; }
.tal-pos-group:first-of-type { margin-top: 12px; }
.tal-pos-title {
  display: flex; align-items: center; gap: 8px;
  font-size:19.6px; font-weight: 700; color: var(--text-1);
  margin-bottom: 2px;
}
.tal-pos-title .tp-dot {
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--brand); flex: 0 0 8px;
}
.tal-pos-title em {
  font-style: normal; font-weight: 400; font-size:16.4px; color: var(--text-3);
}
.talent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.talent-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 13px 14px;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.talent-card:hover { border-color: #3a4a66; transform: translateY(-2px); }
.talent-head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.talent-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #0d1117; font-weight: 700; font-size:19.6px; flex: 0 0 30px;
}
.talent-head b { font-size:19.6px; }
.t-stage {
  margin-left: auto; font-size:16.4px; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-2); white-space: nowrap;
}
.t-stage.s-new, .t-stage.s-follow { color: var(--blue); border-color: rgba(76,154,255,.4); }
.t-stage.s-waiting { color: var(--amber); border-color: rgba(245,181,68,.4); }
.t-stage.s-planned { color: #38bdf8; border-color: rgba(56,189,248,.45); }
.t-stage.s-screen { color: var(--purple); border-color: rgba(167,139,250,.4); }
.t-stage.s-interview { color: #38bdf8; border-color: rgba(56,189,248,.4); }
.t-stage.s-offer, .t-stage.s-onboarded { color: var(--brand); border-color: var(--brand-line); }
.t-stage.s-out { color: var(--red); border-color: rgba(244,98,108,.4); }
.talent-rows { font-size:17.4px; color: var(--text-2); display: flex; flex-direction: column; gap: 4px; }
.talent-skills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.talent-last { color: var(--text-1) !important; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.talent-skills i {
  font-style: normal; font-size:16.4px; padding: 1.5px 7px; border-radius: 5px;
  background: var(--bg-elevate); color: var(--text-2); border: 1px solid var(--border-soft);
}
.talent-foot {
  display: flex; align-items: center; margin-top: 9px; padding-top: 8px;
  border-top: 1px dashed var(--border-soft); font-size:16.4px;
}
.t-src { margin-left: auto; color: var(--text-3); }
.lib-open {
  position: absolute; right: 8px; bottom: 8px;
  font-size:16.4px; padding: 2px 9px; border-radius: 6px;
  background: var(--brand-dim); color: var(--brand); border: 1px solid var(--brand-line);
}
.lib-open:hover { background: var(--brand); color: #0d1117; }
.lib-card { position: relative; }

/* ---------- 组织架构 ---------- */
.org-layout { display: flex; gap: 14px; align-items: flex-start; }
.org-canvas {
  flex: 1; min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.org-scroll { overflow: auto; padding: 22px 16px; max-height: calc(100vh - 260px); }

.org-tree, .org-tree ul { display: flex; justify-content: center; padding: 0; margin: 0; list-style: none; }
/* 安全居中：树宽超出容器时靠左可完整滚动，不裁切左侧节点 */
.org-tree { justify-content: flex-start; }
.org-tree > ul { margin: 0 auto; flex: 0 0 auto; }
.org-tree ul { padding-top: 18px; position: relative; }
.org-tree li { position: relative; padding: 18px 8px 0; display: flex; flex-direction: column; align-items: center; }

/* 父子连线 */
.org-tree li::before, .org-tree li::after {
  content: ''; position: absolute; top: 0; right: 50%; width: 50%; height: 18px;
  border-top: 1px solid var(--border);
}
.org-tree li::after { right: auto; left: 50%; border-left: 1px solid var(--border); }
.org-tree li:only-child::before, .org-tree li:only-child::after { display: none; }
.org-tree li:only-child { padding-top: 0; }
.org-tree li:first-child::before, .org-tree li:last-child::after { border: 0 none; }
.org-tree li:last-child::before { border-right: 1px solid var(--border); border-radius: 0 6px 0 0; }
.org-tree li:first-child::after { border-radius: 6px 0 0 0; }
.org-tree ul ul::before {
  content: ''; position: absolute; top: 0; left: 50%; width: 0; height: 18px;
  border-left: 1px solid var(--border);
}

.org-node {
  position: relative;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 13px;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .12s, transform .12s;
  z-index: 1;
}
.org-node:hover { border-color: #4a5c7d; transform: translateY(-1px); }
.org-node.sel { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-dim); }
.org-node b { display: block; font-size:18.5px; color: var(--text-1); font-weight: 600; }
.org-node.root b { font-size:20.7px; color: var(--brand); }
.org-leader { display: block; font-size:16.4px; color: var(--text-3); margin-top: 2px; }

.org-side {
  width: 262px; flex: 0 0 262px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.org-side h3 { font-size:19.6px; }
.org-side-empty { text-align: center; color: var(--text-3); padding: 26px 0; font-size:18.5px; line-height: 1.8; }
.org-btns { display: flex; flex-wrap: wrap; gap: 7px; }
.org-tip { font-size:17.4px; color: var(--amber); }
.org-stats { border-top: 1px dashed var(--border-soft); padding-top: 10px; font-size:17.4px; display: flex; flex-direction: column; gap: 5px; }
.org-stats b { font-size:18.5px; }
.org-his-row { display: flex; justify-content: space-between; gap: 8px; color: var(--text-2); }
.org-his-row i { font-style: normal; color: var(--text-3); white-space: nowrap; }

.org-his-panel {
  position: fixed; right: 18px; top: 70px; bottom: 18px; width: 340px;
  background: var(--bg-elevate); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0,0,0,.5);
  z-index: 120; display: flex; flex-direction: column;
}
.org-his-head { display: flex; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border-soft); }
.org-his-head .icon-btn { margin-left: auto; }
.org-his-list { overflow-y: auto; padding: 10px 14px; display: flex; flex-direction: column; gap: 9px; }
.org-his-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card); border: 1px solid var(--border-soft);
  border-radius: 8px; padding: 9px 11px; font-size:18.5px;
}
.org-his-item b { color: var(--brand); margin-right: 5px; }
.org-his-item .btn { margin-left: auto; flex: 0 0 auto; }

/* ---------- 登录 ---------- */
.login-mask {
  position: fixed; inset: 0; z-index: 500;
  background: radial-gradient(900px 500px at 50% 20%, #12203a 0%, var(--bg-app) 65%);
  display: flex; align-items: center; justify-content: center;
}
.login-card {
  width: 320px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 26px 26px 20px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.login-logo { width: 52px; height: 52px; object-fit: contain; align-self: center; }
.login-card h2 { font-size:24px; text-align: center; }
.login-sub { font-size:17.4px; color: var(--text-3); text-align: center; margin-top: -8px; }
.login-err { font-size:17.4px; color: var(--red); min-height: 15px; }
.login-btn { justify-content: center; padding: 9px 0; font-size:19.6px; letter-spacing: 4px; }
.login-tip { font-size:16.4px; color: var(--text-3); text-align: center; }

/* ---------- 顶栏用户 ---------- */
.user-chip { cursor: pointer; }
.role-tag {
  font-size:16.4px; padding: 1px 7px; border-radius: 8px;
  background: var(--brand-dim); color: var(--brand); border: 1px solid var(--brand-line);
}

/* ---------- 账号管理 ---------- */
.perm-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 7px; }
.perm-check { white-space: nowrap; }
.perm-cell i {
  font-style: normal; font-size:16.4px; padding: 1.5px 7px; margin: 0 4px 3px 0;
  display: inline-block; border-radius: 5px; border: 1px solid var(--border-soft);
  background: var(--bg-elevate); color: var(--text-2);
}
.me-tag {
  font-size:15.3px; margin-left: 6px; padding: 0 5px; border-radius: 6px;
  background: var(--brand-dim); color: var(--brand);
}
.acc-ops { display: flex; gap: 5px; }
.btn-mini { font-size:17.4px; padding: 3px 9px; border: 1px solid var(--border); border-radius: 6px; }
.btn-mini:hover { border-color: var(--brand-line); color: var(--brand); }
.btn-mini.danger:hover { border-color: var(--red); color: var(--red); }
.btn-mini[disabled] { opacity: .35; cursor: not-allowed; }

/* ---------- 岗位汇总 & 比对分析 ---------- */
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 12px; }
.pos-card {
  background: var(--bg-card); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 13px 14px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .15s;
}
.pos-card:hover { border-color: #33415a; }
.pos-head { display: flex; align-items: center; gap: 8px; }
.pos-head b { font-size:19.6px; }
.pos-count { font-size:17.4px; color: var(--brand); background: var(--brand-dim); padding: 1px 8px; border-radius: 8px; }
.pos-head .btn-mini { margin-left: auto; }
.pos-funnel { display: flex; gap: 5px; flex-wrap: wrap; }
.pos-meta { font-size:17.4px; color: var(--text-2); display: flex; flex-direction: column; gap: 3px; }
.pos-list { display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px dashed var(--border-soft); padding-top: 8px; }
.pos-person {
  font-size:17.4px; padding: 1.5px 9px; border-radius: 999px; cursor: pointer;
  background: var(--bg-elevate); border: 1px solid var(--border-soft); color: var(--text-2);
}
.pos-person:hover { border-color: var(--brand-line); color: var(--brand); }
.talent-skills i em { font-style: normal; color: var(--brand); margin-left: 2px; }

.cmp-panel {
  margin-top: 14px; background: var(--bg-card);
  border: 1px solid var(--brand-line); border-radius: var(--radius); padding: 12px 14px;
}
.cmp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size:19.6px; }
.cmp-head .icon-btn { margin-left: auto; }
.cmp-req { display: flex; flex-direction: column; gap: 9px; background: var(--bg-app); border: 1px solid var(--border-soft); border-radius: 8px; padding: 11px 12px; margin-bottom: 10px; }
.cmp-wrap { overflow-x: auto; }
.cmp-table { min-width: 900px; }
.cmp-table td { white-space: normal; vertical-align: top; }
.cmp-table td i {
  font-style: normal; font-size:16.4px; padding: 1px 6px; margin: 0 3px 3px 0;
  display: inline-block; border-radius: 4px; background: var(--bg-elevate);
  border: 1px solid var(--border-soft); color: var(--text-2);
}
.cmp-sub { font-size:16.4px; color: var(--text-3); }
.cmp-sum { font-size:17.4px; color: var(--text-2); line-height: 1.5; display: block; max-width: 180px; }
.cmp-score b { font-size:24px; }
.cmp-bar { width: 56px; height: 4px; border-radius: 2px; background: var(--bg-elevate); margin-top: 3px; overflow: hidden; }
.cmp-bar i { display: block; height: 100%; }
.cmp-table tr.cmp-best td { background: rgba(46, 230, 168, .05); }
.cmp-table tr.cmp-best td:first-child { border-left: 2px solid var(--brand); }
.cmp-rs { margin-left: 5px; text-decoration: none; }

/* ---------- 当日人员结构分析 ---------- */
.ch-section { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
.ch-section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.ch-section-head b { font-size:19.6px; display: inline-flex; align-items: center; gap: 6px; }
.ch-date { font-size:17.4px; color: var(--text-3); }
.ch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.ch-card { background: var(--bg-app); border: 1px solid var(--border-soft); border-radius: 8px; padding: 11px 13px; }
.ch-title { font-size:17.4px; color: var(--text-3); margin-bottom: 9px; font-weight: 600; }
.ch-body { display: flex; align-items: center; gap: 12px; }
.ch-donut { width: 104px; height: 104px; flex: 0 0 104px; }
.ch-legend { display: flex; flex-direction: column; gap: 4px; font-size:17.4px; color: var(--text-2); }
.ch-lg { display: flex; align-items: center; gap: 6px; }
.ch-lg i { width: 8px; height: 8px; border-radius: 2px; flex: 0 0 8px; }
.ch-lg b { color: var(--text-1); }
.ch-lg span { color: var(--text-3); font-size:16.4px; }
.ch-bars { display: flex; flex-direction: column; gap: 6px; }
.ch-bar-row { display: flex; align-items: center; gap: 8px; font-size:17.4px; }
.ch-bar-label { width: 74px; flex: 0 0 74px; color: var(--text-2); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-bar-track { flex: 1; height: 9px; border-radius: 5px; background: var(--bg-elevate); overflow: hidden; }
.ch-bar-track i { display: block; height: 100%; border-radius: 5px; }
.ch-bar-row b { width: 22px; flex: 0 0 22px; color: var(--text-1); }
.ch-flow-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ch-flow-rows > div { background: var(--bg-card-2); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.ch-flow-rows b { font-size:28.3px; }
.ch-flow-rows span { font-size:16.4px; color: var(--text-3); }
.ch-flow-rows .brand { color: var(--brand); } .ch-flow-rows .red { color: var(--red); }
.ch-flow-rows .blue { color: var(--blue); } .ch-flow-rows .amber { color: var(--amber); }
.ch-flow-tip { margin-top: 9px; font-size:16.4px; color: var(--text-3); line-height: 1.5; }

.ct-badge { font-size:16.4px; padding: 1.5px 7px; border-radius: 5px; white-space: nowrap; }

/* ---------- 入职流转 ---------- */
.ob-checks { display: flex; gap: 8px; margin-bottom: 5px; font-size:16.4px; color: var(--text-3); }.ob-checks .done { color: var(--brand); }
.ob-cancelled { margin-top: 10px; font-size:17.4px; color: var(--text-3); }
.ob-check-row { flex-direction: row; align-items: center; gap: 10px; }
.ob-check-row input[type="text"], .ob-check-row input:not([type]) { flex: 1; background: var(--bg-app); border: 1px solid var(--border-soft); border-radius: 6px; padding: 5px 8px; font-size:17.4px; }

/* ---------- 生日提醒条 ---------- */
.bd-strip {
  background: rgba(245,181,68,.08); border: 1px solid rgba(245,181,68,.35);
  border-radius: 8px; padding: 8px 13px; margin-bottom: 12px;
  font-size:18.5px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
}
.bd-strip b { color: var(--amber); }
.bd-item { white-space: nowrap; }
.bd-item.today { color: var(--red); font-weight: 700; }

/* ---------- 人员编制表 ---------- */
.hc-table td { white-space: normal; }
.hc-table td.num { text-align: center; font-variant-numeric: tabular-nums; }
.hc-table td.hc-dept {
  writing-mode: horizontal-tb; text-align: center; vertical-align: middle;
  background: #111826; font-size:18.5px; border-right: 1px solid var(--border-soft);
}
.hc-table tr.hc-sub td { background: #10192a; font-size:17.4px; color: var(--text-2); border-top: 1px dashed var(--border-soft); }
.hc-table tr.hc-total td { background: #12203a; font-size:18.5px; color: var(--text-1); border-top: 1px solid var(--border); }

/* ---------- 部门职责一览 ---------- */
.org-duty-section { margin-top: 16px; }
.org-duty-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.org-duty-head b { font-size:19.6px; display: inline-flex; align-items: center; gap: 6px; }
.org-duty-sub { font-size:17.4px; color: var(--text-3); }
.org-duty-table td.duty-cell { color: var(--text-2); line-height: 1.65; white-space: normal; }
.org-duty-table tr:hover td { background: var(--bg-hover); }
.org-duty-table tr.duty-group-head td {
  background: #111c2b; color: var(--brand); font-weight: 700; font-size:18.5px;
  letter-spacing: .5px; padding: 7px 12px; border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border-soft);
}
.org-duty-table tr.duty-sub-row td:first-child { padding-left: 26px; color: var(--text-2); }
.org-duty-table tr.duty-sub-row td:first-child b { font-weight: 500; color: var(--text-2); font-size:18.5px; }
.org-duty-table tr.duty-sub-row.deep td:first-child { padding-left: 44px; }
.duty-branch { color: var(--text-3); margin-right: 6px; font-size:17.4px; }

/* ---------- 系统设置 ---------- */.settings-wrap { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.setting-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.setting-card h3 { font-size:19.6px; display: flex; align-items: center; gap: 7px; }
.setting-desc { font-size:17.4px; color: var(--text-3); line-height: 1.6; }
.setting-actions { display: flex; align-items: center; gap: 12px; }
.setting-result { font-size:17.4px; }
.cmd-block {
  background: var(--bg-app);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: Consolas, "Courier New", monospace;
  font-size:17.4px;
  color: var(--text-2);
  white-space: pre-wrap;
  overflow-x: auto;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  :root { --sidebar-w: 64px; }
  .brand-text, .nav-item span, .nav-title, .sidebar-foot { display: none; }
  .nav-item { justify-content: center; }
  .nav-item .badge { display: none; }
  .cal-grid { grid-auto-rows: minmax(80px, 1fr); }
  .task-stats { grid-template-columns: repeat(2, 1fr); }
  .kanban { grid-template-columns: repeat(2, 1fr); }
  .week-view { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .week-view { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: 1fr; }
}
