/* ══════════════════════════════════════════════════════════════
 * BOSS 直聘助手 — Design v2 (Slate + Blue)
 * Design tokens: 360px panel, 16px x-padding, transparent header
 * ══════════════════════════════════════════════════════════════ */

/* ─── Container ──────────────────────────────────────────── */

#boss-cat-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 2147483647;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-family: 'Noto Sans SC', 'Inter', system-ui, -apple-system, sans-serif;
}
#boss-cat-panel,
#boss-cat-panel * {
  box-sizing: border-box;
  font-family: inherit;
}

/* ─── Cat Avatar ─────────────────────────────────────────── */

#boss-cat-body {
  width: 72px;
  height: 72px;
  background: radial-gradient(circle at 40% 35%, #ffe0a0, #f5a623);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(245,166,35,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
#boss-cat-body:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(245,166,35,0.55);
}
#boss-cat-body.boss-cat-active {
  transform: scale(1.12);
  box-shadow: 0 0 0 4px rgba(245,166,35,0.25), 0 6px 24px rgba(245,166,35,0.45);
}

.boss-cat-svg { width: 60px; height: 60px; display: block; }
.boss-cat-bubble { display: none; } /* reserved */
.boss-cat-notice { /* styled via #boss-cat-notice */ }

/* ─── Cat Bubble ─────────────────────────────────────────── */

#boss-cat-notice {
  position: absolute;
  top: -28px;
  right: -6px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 12px;
  color: #475569;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  animation: bubbleFloat 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ─── Mood: idle float ─────────────────────────────────── */

.mood-idle .boss-cat-svg {
  animation: idleFloat 2.5s ease-in-out infinite;
}
@keyframes idleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.5px); }
}

/* ─── Mood Keyframes (preserved from v1) ──────────────── */

.mood-idle .cat-tail { animation: tailWag 2.5s ease-in-out infinite; transform-origin: 72px 68px; }
@keyframes tailWag { 0%,100%{transform:rotate(0deg)} 25%{transform:rotate(8deg)} 75%{transform:rotate(-8deg)} }
.mood-idle .cat-body, .mood-idle .cat-paw-l, .mood-idle .cat-paw-r { animation: breathe 3s ease-in-out infinite; }
@keyframes breathe { 0%,100%{opacity:1} 50%{opacity:0.92} }
.mood-idle .cat-eye-l, .mood-idle .cat-eye-r { animation: blink 4s infinite; }
@keyframes blink { 0%,96%,100%{transform:scaleY(1)} 98%{transform:scaleY(0.1)} }

.mood-scan .boss-cat-svg { animation: scanHead 1.2s ease-in-out infinite; }
@keyframes scanHead { 0%,100%{transform:rotate(0deg)} 20%{transform:rotate(-6deg)} 60%{transform:rotate(6deg)} }
.mood-scan .cat-tail { animation: tailWagFast 0.8s ease-in-out infinite; transform-origin:72px 68px; }
@keyframes tailWagFast { 0%,100%{transform:rotate(0deg)} 50%{transform:rotate(15deg)} }

.mood-found .cat-eye-l, .mood-found .cat-eye-r { animation: eyesBig 0.5s ease-out forwards; }
@keyframes eyesBig { 0%{transform:scale(1)} 100%{transform:scale(1.6)} }
.mood-found .cat-tail { animation: tailWagFast 0.5s ease-in-out 3; transform-origin:72px 68px; }

.mood-greeting .cat-paw-r { animation: pawReach 1s ease-in-out infinite; transform-origin:64px 82px; }
@keyframes pawReach { 0%,100%{transform:translate(0,0)scale(1)} 30%{transform:translate(10px,-8px)scale(1.2)} 60%{transform:translate(8px,-5px)scale(1.1)} }
.mood-greeting .cat-tail { animation: tailWagFast 0.6s ease-in-out infinite; transform-origin:72px 68px; }
.mood-greeting .boss-cat-svg { animation: nudge 0.4s ease-in-out infinite alternate; }
@keyframes nudge { 0%{transform:translateX(0)} 100%{transform:translateX(3px)} }

.mood-done .boss-cat-svg { animation: stretch 0.6s ease-in-out; }
@keyframes stretch { 0%{transform:scaleY(1)} 50%{transform:scaleY(1.15)translateY(-5px)} 100%{transform:scaleY(1)} }
.mood-done .cat-tail { animation: tailWag 1s ease-in-out 3; transform-origin:72px 68px; }

.mood-sleep .cat-eye-l, .mood-sleep .cat-eye-r { animation: sleepEyes 2s ease-in-out infinite alternate; }
@keyframes sleepEyes { 0%{transform:scaleY(0.15)} 100%{transform:scaleY(0.08)} }
.mood-sleep .boss-cat-svg { animation: sleepBob 3s ease-in-out infinite; }
@keyframes sleepBob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(2px)} }

.mood-stretch .boss-cat-svg { animation: catStretch 2s ease-in-out; }
@keyframes catStretch { 0%{transform:scaleY(1)translateY(0)} 20%{transform:scaleY(1.2)translateY(-6px)} 40%{transform:scaleY(0.9)translateY(3px)} 60%{transform:scaleY(1.15)translateY(-4px)} 80%{transform:scaleY(1)translateY(0)} 100%{transform:scaleY(1)translateY(0)} }
.mood-stretch .cat-paw-r { animation: pawStretch 2s ease-in-out; transform-origin:64px 82px; }
@keyframes pawStretch { 0%,100%{transform:translate(0,0)} 25%{transform:translate(12px,-14px)scale(1.3)} 50%{transform:translate(8px,-8px)scale(1.1)} 75%{transform:translate(4px,-4px)scale(1.05)} }
.mood-stretch .cat-eye-l, .mood-stretch .cat-eye-r { animation: squint 2s ease-in-out; }
@keyframes squint { 0%,100%{transform:scaleY(1)} 15%{transform:scaleY(0.2)} 40%{transform:scaleY(0.2)} 60%{transform:scaleY(1)} }

.mood-fidget .cat-tail { animation: tailFlick 0.25s ease-in-out 4; transform-origin:72px 68px; }
@keyframes tailFlick { 0%,100%{transform:rotate(0deg)} 50%{transform:rotate(20deg)} }
.mood-fidget .boss-cat-svg { animation: fidgetShift 5s ease-in-out infinite; }
@keyframes fidgetShift { 0%,100%{transform:translateX(0)} 20%{transform:translateX(2px)} 60%{transform:translateX(-2px)} }

/* ══════════════════════════════════════════════════════════════
   PANEL — 360px · 16px padding · transparent header
   ══════════════════════════════════════════════════════════════ */

#boss-cat-panel {
  display: none;
  flex-direction: column;
  width: 360px;
  max-height: 540px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06), 0 12px 40px rgba(0,0,0,0.08);
  overflow-y: auto;
  animation: panelSlideIn 0.25s ease-out;
}
@keyframes panelSlideIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── Panel Header ───────────────────────────────────────── */

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 10px 16px;
  background: transparent;
  border-bottom: 1px solid #F1F5F9;
  flex-shrink: 0;
}
.header-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.header-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #1E293B;
  letter-spacing: 0.1px;
  margin: 0;
  margin-left: 8px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  transition: all 0.15s ease;
}
.header-btn:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #334155;
}
.header-btn-primary {
  background: #2563EB;
  color: #fff;
  font-weight: 600;
}
.header-btn-primary:hover {
  background: #1D4ED8;
  color: #fff;
}
.header-login-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 20px;
  margin-right: 4px;
  cursor: default;
}
.header-login-badge.logged-in {
  background: #DCFCE7;
  color: #059669;
}
.header-login-badge.logged-out {
  background: #FEF2F2;
  color: #DC2626;
  cursor: pointer;
}

/* ─── Stats Bar (quick-stats) ─────────────────────────────── */

.quick-stats {
  display: flex;
  padding: 12px 16px;
  border-bottom: 1px solid #F0F2F5;
}
.qs-item {
  flex: 1;
  text-align: center;
  padding: 2px 0;
}
.qs-item + .qs-item {
  border-left: 1px solid #F1F5F9;
}
.qs-num {
  display: block;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  color: #0F172A;
}
.qs-num.green { color: #16A34A; }
.qs-num.blue  { color: #2563EB; }
.qs-label {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #94A3B8;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

/* ─── Panel Body ──────────────────────────────────────────── */

.panel-body {
  padding: 16px 0 20px;
}
.plan-body {
  padding: 16px 16px 20px;
}

/* ─── Plan Status Bar (能量线 · 浅色底 + 品牌蓝) ───────────── */

#boss-cat-panel .pstatus {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F8FF 100%);
  border-bottom: 1px solid #E2E8F0;
  color: #0F172A;
  padding: 9px 14px 10px;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 11px;
  overflow: hidden;
}
#boss-cat-panel .pstatus::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 60px;
  background: radial-gradient(ellipse at 15% 0%, rgba(37,99,235,.07) 0%, transparent 65%);
  pointer-events: none;
}
#boss-cat-panel .pstatus.hidden { display: none; }
#boss-cat-panel .pstatus.done {
  background: linear-gradient(180deg, #FFFFFF 0%, #F0FDF4 100%);
  border-bottom-color: #D1FAE5;
}
#boss-cat-panel .pstatus.done::before {
  background: radial-gradient(ellipse at 15% 0%, rgba(16,185,129,.07) 0%, transparent 65%);
}
#boss-cat-panel .pstatus.err {
  background: linear-gradient(180deg, #FFFFFF 0%, #FEF2F2 100%);
  border-bottom-color: #FEE2E2;
}
#boss-cat-panel .pstatus.err::before {
  background: radial-gradient(ellipse at 15% 0%, rgba(239,68,68,.07) 0%, transparent 65%);
}
#boss-cat-panel .pstatus.paused {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%);
  border-bottom-color: #CBD5E1;
}
#boss-cat-panel .pstatus.paused::before {
  background: radial-gradient(ellipse at 15% 0%, rgba(100,116,139,.06) 0%, transparent 65%);
}
/* 能量线：底部 2px 进度线，随 --pct 增长，末端发光 */
#boss-cat-panel .pstatus::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: var(--pct, 0%);
  background: linear-gradient(90deg, #2563EB, #60A5FA);
  box-shadow: 0 0 6px rgba(59,130,246,.4);
  transition: width .6s cubic-bezier(.22,1,.36,1);
}
#boss-cat-panel .pstatus.done::after {
  background: linear-gradient(90deg, #10B981, #34D399);
  box-shadow: 0 0 6px rgba(52,211,153,.4);
}
#boss-cat-panel .pstatus.err::after {
  background: linear-gradient(90deg, #DC2626, #F87171);
  box-shadow: 0 0 6px rgba(248,113,113,.4);
}
#boss-cat-panel .pstatus.paused::after {
  background: linear-gradient(90deg, #94A3B8, #CBD5E1);
  box-shadow: 0 0 6px rgba(148,163,184,.35);
}
/* 单行布局：点 + 计划名 + 岗位进度 + 百分比 */
#boss-cat-panel .ps-row {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}
#boss-cat-panel .ps-check {
  display: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #10B981;
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  animation: psCheckPop .5s cubic-bezier(.22,1.4,.36,1);
}
#boss-cat-panel .pstatus.done .ps-check { display: inline-flex; }
#boss-cat-panel .ps-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #3B82F6;
  animation: psPulse 1.2s ease infinite;
}
#boss-cat-panel .pstatus.done .ps-pulse { background: #10B981; animation: none; }
#boss-cat-panel .pstatus.err .ps-pulse { background: #EF4444; animation: none; }
#boss-cat-panel .pstatus.paused .ps-pulse { background: #94A3B8; animation: none; }
#boss-cat-panel .ps-plan {
  font-weight: 600;
  color: #0F172A;
  white-space: nowrap;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
}
#boss-cat-panel .ps-pos {
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
#boss-cat-panel .pstatus.done .ps-pos { color: #059669; }
#boss-cat-panel .pstatus.err .ps-pos { color: #DC2626; }
#boss-cat-panel .pstatus.paused .ps-pos { color: #64748B; }
#boss-cat-panel .ps-pct {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: #2563EB;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#boss-cat-panel .pstatus.done .ps-pct { color: #10B981; }
#boss-cat-panel .pstatus.err .ps-pct { color: #DC2626; }
#boss-cat-panel .pstatus.paused .ps-pct { color: #64748B; }
@keyframes psPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(59,130,246,.4); }
  50% { opacity: .4; box-shadow: 0 0 0 5px rgba(59,130,246,0); }
}
@keyframes psCheckPop {
  0% { transform: scale(0) rotate(-30deg); }
  60% { transform: scale(1.3) rotate(8deg); }
  100% { transform: scale(1) rotate(0); }
}
/* 点击展开详情 */
#boss-cat-panel .ps-drawer {
  display: none;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  padding: 10px 14px;
  font-size: 11px;
  color: #475569;
  max-height: 150px;
  overflow: hidden;
  flex-shrink: 0;
}
#boss-cat-panel .pstatus.done + .ps-drawer { background: #F0FDF4; }
#boss-cat-panel .pstatus.err + .ps-drawer { background: #FEF2F2; }
#boss-cat-panel .pstatus.paused + .ps-drawer { background: #F1F5F9; }
#boss-cat-panel .ps-drawer.open { display: block; }
#boss-cat-panel .ps-drawer .dr {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
}
#boss-cat-panel .ps-drawer .dr .g { color: #059669; font-weight: 600; }
#boss-cat-panel .ps-drawer .dr .b { color: #2563EB; }

/* ─── Top Position Selector ───────────────────────────────── */

.top-pos {
  margin: 10px 12px 14px;
  border: 1px solid #E8EDF2;
  border-radius: 10px;
  overflow: hidden;
}
.top-pos-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.1s;
}
.top-pos-bar:hover {
  background: #F1F5F9;
}
.top-pos-bar.active {
  background: #EFF6FF;
}
.top-pos-bar.active .tpb-title {
  color: #1E40AF;
}
.top-pos-bar.active .tpb-arrow svg {
  stroke: #2563EB;
}
.tpb-info { flex: 1; min-width: 0; }
.tpb-title {
  font-size: 13px;
  font-weight: 600;
  color: #0F172A;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tpb-count {
  font-size: 10px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  background: #E2E8F0;
  padding: 0 6px;
  border-radius: 4px;
  line-height: 1.8;
  flex-shrink: 0;
}
.tpb-arrow {
  display: flex;
  color: #94A3B8;
  flex-shrink: 0;
}
.top-pos-divider {
  height: 0;
  margin: 0 12px;
  border-top: 1px dashed #D0D5DD;
}
.top-pos-body {
  padding: 0;
}
.top-pos-body .hr-section {
  border: none;
  margin: 0;
}
.top-pos-body .hr-header {
  background: transparent;
  border-bottom: none;
  padding: 10px 14px 0;
  font-weight: 500;
  color: #64748B;
}
.top-pos-body .hr-body {
  padding: 6px 14px 12px;
}
.top-pos-body .hr-full {
  line-height: 1.7;
}

/* ─── HR Card (hidden requirements) ───────────────────────── */

.hr-section {
  margin: 0 16px 8px;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  overflow: hidden;
}
.hr-section.editing {
  border-color: #FDE68A;
  background: #FFFBEB;
}
.hr-section.expanded {
  border-color: #CBD5E1;
}
.hr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 10px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  cursor: pointer;
  transition: background 0.1s;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.2px;
}
.hr-section.editing .hr-header {
  background: transparent;
  border-bottom-color: #FDE68A;
}

.hr-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.hr-hint {
  font-weight: 400;
  color: #94A3B8;
  font-size: 10px;
}
.hr-body {
  padding: 6px 10px 8px;
  font-size: 12px;
  color: #64748B;
  line-height: 1.6;
}
.hr-section.editing .hr-body {
  padding: 8px 10px;
}
.hr-textarea {
  width: 100%;
  min-height: 56px;
  padding: 7px 9px;
  border: 1.5px solid #FDE68A;
  border-radius: 6px;
  font-size: 12px;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  color: #0F172A;
  background: #fff;
}
.hr-textarea:focus {
  outline: none;
  border-color: #FDE68A;
  box-shadow: 0 0 0 4px rgba(234,179,8,0.12);
}
.hr-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 6px;
}
.hr-btn {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #E2E8F0;
  background: #fff;
  color: #475569;
  transition: all 0.12s ease;
}
.hr-btn:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}
.hr-btn.save:hover {
  background: #1D4ED8;
  border-color: #1D4ED8;
}
.hr-btn.edit { color: #475569; }
.hr-expand-icon {
  font-size: 10px;
  color: #94A3B8;
  cursor: pointer;
}
.hr-full {
  font-size: 12px;
  color: #0F172A;
  line-height: 1.6;
}
.hr-preview {
  font-size: 12px;
  color: #0F172A;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hr-more {
  color: #2563EB;
  font-weight: 500;
  cursor: pointer;
}
.hr-more:hover {
  text-decoration: underline;
}

/* ─── Action Buttons (detail view) ────────────────────────── */

.action-row {
  display: flex;
  gap: 10px;
  padding: 0 16px 18px;
}
.action-row .btn-primary {
  flex: 1;
  width: auto;
}
.btn-primary {
  width: 100%;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #fff;
  box-shadow: 0 1px 3px rgba(37,99,235,0.3);
  transition: all 0.15s ease;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1D4ED8, #1E40AF);
  box-shadow: 0 2px 6px rgba(37,99,235,0.4);
}
.btn-primary:active {
  transform: scale(0.98);
}
.btn-danger {
  flex: 1;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  background: #DC2626;
  color: #fff;
  transition: all 0.15s ease;
}
.btn-danger:hover {
  background: #B91C1C;
}
.btn-primary:disabled,
.btn-danger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ─── Results Section ─────────────────────────────────────── */

/* ─── Screening Dashboard (replaces old results + log) ──── */

.results-section { padding: 0 16px 16px; }
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.results-title {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.2px;
}
.results-link {
  font-size: 11px;
  font-weight: 500;
  color: #2563EB;
  text-decoration: none;
}
.results-link:hover {
  text-decoration: underline;
}

/* Screening row */
.sr-container {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #E8EDF2;
  border-radius: 8px;
  scroll-behavior: smooth;
}
.sr-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid #F1F5F9;
  font-size: 12.5px;
  line-height: 1.5;
  transition: background 0.15s;
}
.sr-row:last-child { border-bottom: none; }
.sr-row.current {
  background: rgba(37,99,235,0.06);
  box-shadow: inset 2px 0 0 #2563EB;
}
.sr-row.done-greeted { opacity: 1; }
.sr-row.done-skipped { opacity: 0.75; }
.sr-row.done-rejected { opacity: 0.7; }

.sr-badge {
  flex-shrink: 0;
  width: 48px;
  padding: 2px 0;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  margin-top: 1px;
}
.sr-top .sr-badge {
  width: auto;
  padding: 2px 8px;
  font-size: 11px;
  margin-top: 0;
  display: inline-block;
}
.sr-badge.evaluating {
  background: #DBEAFE;
  color: #1D4ED8;
}
.sr-badge.greeted {
  background: #DCFCE7;
  color: #16A34A;
}
.sr-badge.skipped,
.sr-badge.rejected {
  background: #FEE2E2;
  color: #DC2626;
}
.sr-badge.greet-failed {
  background: #FEF3C7;
  color: #D97706;
}

.sr-body {
  flex: 1;
  min-width: 0;
}
.sr-top {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.sr-name {
  font-weight: 600;
  color: #0F172A;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sr-score {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.sr-score.high { color: #16A34A; }
.sr-score.mid  { color: #D97706; }
.sr-score.low  { color: #94A3B8; }

.sr-reason {
  font-size: 11px;
  color: #64748B;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  margin-top: 2px;
}

/* ─── Screening Detail View ──────────────────────────────── */

.sr-detail-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 6px 0 10px;
}
.sr-nav-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  transition: all 0.12s ease;
}
.sr-nav-btn:hover:not([disabled]) {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #0F172A;
}
.sr-nav-btn[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
}
.sr-nav-counter {
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
  font-variant-numeric: tabular-nums;
  min-width: 40px;
  text-align: center;
}

.sr-nav-back {
  position: absolute;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: none;
  background: transparent;
  font-size: 11px;
  color: #64748B;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}
.sr-nav-back:hover {
  background: #E2E8F0;
  color: #0F172A;
}

/* ─── Structured Detail View (detailJson 存在时) ─────────────── */

.srd-hero {
  background: linear-gradient(135deg, #2A6FF5 0%, #1D4ED8 60%, #1E40AF 100%);
  padding: 18px 16px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.srd-hero::before {
  content: '';
  position: absolute;
  right: -34px;
  bottom: -58px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.10);
}
.srd-hero::after {
  content: '';
  position: absolute;
  right: -12px;
  bottom: -36px;
  width: 106px;
  height: 106px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.07);
}
.srd-hero-main, .srd-hero-side { position: relative; z-index: 1; }
.srd-hero-main { min-width: 0; }
.srd-hero-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2px;
}
.srd-hero-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  margin-top: 4px;
  line-height: 1.5;
}
.srd-hero-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.62);
  margin-top: 8px;
  line-height: 1.5;
}
.srd-hero-meta b { color: #fff; font-weight: 600; }
.srd-hero-side { text-align: right; flex-shrink: 0; }
.srd-score {
  font-size: 30px;
  font-weight: 800;
  color: #FBBF24;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-shadow: 0 2px 18px rgba(251,191,36,0.35);
}
.srd-score-label {
  font-size: 10px;
  color: rgba(255,255,255,0.65);
  margin-top: 6px;
}

.srd-verdict {
  margin: 12px 14px 0;
  border-radius: 10px;
  padding: 12px 13px;
  border: 1px solid;
}
.srd-verdict.srd-match   { background: #F0FDF4; border-color: #BBF7D0; }
.srd-verdict.srd-partial { background: #FFFBEB; border-color: #FDE68A; }
.srd-verdict.srd-reject  { background: #FEF2F2; border-color: #FECACA; }
.srd-v-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.srd-v-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  color: #fff;
}
.srd-verdict.srd-match   .srd-v-badge { background: #16A34A; }
.srd-verdict.srd-partial .srd-v-badge { background: #D97706; }
.srd-verdict.srd-reject  .srd-v-badge { background: #DC2626; }
.srd-v-score {
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
}
.srd-v-text {
  font-size: 12px;
  line-height: 1.8;
  color: #334155;
}
.srd-v-text .srd-v-p { margin-bottom: 6px; }
.srd-v-text .srd-v-p:last-child { margin-bottom: 0; }

.srd-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 14px 14px 4px;
}
.srd-hl {
  padding: 4px 10px;
  border-radius: 6px;
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
  font-size: 11px;
  font-weight: 500;
}

.srd-block { margin: 16px 14px 0; }
.srd-b-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.srd-b-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #F1F5F9;
}

.srd-tl-item {
  position: relative;
  padding: 0 0 16px 20px;
  border-left: 1px solid #E2E8F0;
  margin-left: 4px;
}
.srd-tl-item:last-child { padding-bottom: 2px; }
.srd-tl-dot {
  position: absolute;
  left: -4.5px;
  top: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #CBD5E1;
}
.srd-tl-item:first-child .srd-tl-dot {
  background: #2563EB;
  box-shadow: 0 0 0 3px #DBEAFE;
}
.srd-tl-co {
  font-size: 13px;
  font-weight: 600;
  color: #0F172A;
}
.srd-tl-sub {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}
.srd-tl-pos { font-size: 11px; color: #64748B; }
.srd-tl-period { font-size: 11px; color: #94A3B8; white-space: nowrap; }
.srd-tl-desc {
  font-size: 11.5px;
  color: #475569;
  line-height: 1.7;
  margin-top: 8px;
}
.srd-tl-line {
  position: relative;
  padding-left: 10px;
  margin-bottom: 5px;
}
.srd-tl-line:last-child { margin-bottom: 0; }
.srd-tl-line::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #CBD5E1;
}

.srd-edu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}
.srd-edu + .srd-edu { border-top: 1px dashed #E2E8F0; }
.srd-edu-school {
  font-size: 12.5px;
  font-weight: 600;
  color: #0F172A;
}
.srd-edu-detail {
  font-size: 11px;
  color: #64748B;
  margin-top: 1px;
}
.srd-edu-period {
  font-size: 11px;
  color: #94A3B8;
  white-space: nowrap;
}

.srd-about {
  font-size: 11.5px;
  color: #475569;
  line-height: 1.8;
  padding-bottom: 2px;
}
.srd-about .srd-about-p { margin-bottom: 5px; }
.srd-about .srd-about-p:last-child { margin-bottom: 0; }

.srd-footer { height: 16px; }

/* ─── Structured Detail: loading skeleton & empty state ─────── */

.srd-skeleton {
  padding: 12px 14px 4px;
}
.srd-sk-hero {
  height: 86px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(42,111,245,0.16) 0%, rgba(29,78,216,0.16) 60%, rgba(30,58,175,0.16) 100%);
  margin-bottom: 14px;
}
.srd-sk-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #E2E8F0 25%, #F1F5F9 50%, #E2E8F0 75%);
  background-size: 200% 100%;
  animation: srd-shimmer 1.4s infinite;
  margin-bottom: 10px;
}
.srd-sk-line.w90 { width: 90%; }
.srd-sk-line.w85 { width: 85%; }
.srd-sk-line.w80 { width: 80%; }
.srd-sk-line.w70 { width: 70%; }
@keyframes srd-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.srd-empty {
  padding: 48px 14px 40px;
  text-align: center;
}
.srd-empty-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  border-radius: 10px;
  background: #F1F5F9;
  position: relative;
}
.srd-empty-icon::before,
.srd-empty-icon::after {
  content: '';
  position: absolute;
  background: #CBD5E1;
  border-radius: 2px;
}
.srd-empty-icon::before {
  left: 10px; top: 11px;
  width: 20px; height: 5px;
  box-shadow: 0 7px 0 #CBD5E1, 0 14px 0 #CBD5E1;
}
.srd-empty-icon::after {
  left: 10px; top: 7px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #CBD5E1;
}
.srd-empty-title {
  font-size: 13px;
  font-weight: 600;
  color: #64748B;
  margin-bottom: 4px;
}
.srd-empty-sub {
  font-size: 11px;
  color: #94A3B8;
}

/* Make screening rows look clickable */
.sr-row {
  cursor: pointer;
}
.sr-row:hover {
  border-color: #CBD5E1;
  background: #F8FAFC;
}

/* ─── Legacy Stats (cp-stats, shown when running) ─────────── */

#cp-stats {
  padding: 0 16px 8px;
}
.cp-stats {
  display: flex;
  gap: 10px;
}
.cp-s-item {
  flex: 1;
  text-align: center;
  background: #F8FAFC;
  border-radius: 10px;
  padding: 10px 6px;
}
.cp-s-val {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #0F172A;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
.cp-s-val.cp-clr-green { color: #16A34A; }
.cp-s-val.cp-clr-orange { color: #D97706; }
.cp-s-lbl {
  display: block;
  font-size: 11px;
  color: #94A3B8;
  letter-spacing: 0.3px;
  margin-top: 4px;
}

/* ─── Progress Bar ─────────────────────────────────────────── */

.cp-bar {
  height: 3px;
  background: #F0F2F5;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}
.cp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563EB, #1D4ED8);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0;
}

/* ─── Legacy Buttons (cp-btn) ──────────────────────────────── */

.cp-btn {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  background: #fff;
  color: #475569;
  text-align: center;
  transition: all 0.12s ease;
}
.cp-btn-primary {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 1px 2px rgba(37,99,235,0.25);
}
.cp-btn-primary:hover {
  background: linear-gradient(135deg, #1D4ED8, #1E40AF);
}

/* ─── Status Text ─────────────────────────────────────────── */

.cp-status {
  font-size: 12px;
  color: #64748B;
  text-align: center;
  padding: 6px 0;
}

/* ─── Log ─────────────────────────────────────────────────── */

.cp-log {
  padding: 0 16px 8px;
}
.cp-log-toggle {
  font-size: 11px;
  font-weight: 500;
  color: #64748B;
  cursor: pointer;
  padding: 4px 0;
  display: inline-block;
}
.cp-log-toggle:hover { color: #2563EB; }
.cp-log-list {
  display: none;
  max-height: 120px;
  overflow-y: auto;
  margin-top: 4px;
  border: 1px solid #F1F5F9;
  border-radius: 6px;
  padding: 4px;
}
.cp-log-item {
  padding: 4px 6px;
  border-bottom: 1px solid #F1F5F9;
}
.cp-log-item:last-child { border-bottom: none; }
.cp-li-name {
  font-size: 12px;
  font-weight: 500;
  color: #0F172A;
}
.cp-li-info {
  font-size: 10px;
  color: #94A3B8;
}

/* ─── Debug ───────────────────────────────────────────────── */

.cp-debug {
  display: none;
  margin: 0 16px 8px;
  padding: 6px 10px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 6px;
  font-size: 11px;
  color: #92400E;
  line-height: 1.5;
  font-family: 'SF Mono', 'Menlo', monospace;
  word-break: break-all;
  max-height: 140px;
  overflow-y: auto;
  user-select: text;
  -webkit-user-select: text;
  white-space: pre-wrap;
}

/* ─── Dev Actions ─────────────────────────────────────────── */

.dev-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 16px 8px;
}
.dev-btn {
  flex: 0 1 auto;
  height: 28px;
  padding: 4px 10px;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  background: #fff;
  font-size: 11px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: all 0.12s ease;
}
.dev-btn:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

/* ─── Textarea (generic) ──────────────────────────────────── */

#boss-cat-panel textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  resize: vertical;
  font-family: inherit;
  color: #0F172A;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
#boss-cat-panel textarea:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.15);
}

/* ─── Form View ──────────────────────────────────────────── */

.panel-view { padding: 0; }
.form-body {
  padding: 12px 16px 16px;
}
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.2px;
  margin-bottom: 5px;
}
.form-hint {
  font-weight: 400;
  color: #94A3B8;
}
.form-input {
  width: 100%;
  padding: 9px 11px;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  font-size: 12px;
  font-family: inherit;
  color: #0F172A;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.15);
}
.form-input.textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}
/* 隐式要求文本框 — 暖色区分 */
.form-input.textarea.hidden-rules {
  min-height: 120px;
  background: #FFFBEB;
  border-color: #FDE68A;
}
.form-input.textarea.hidden-rules:focus {
  border-color: #F59E0B;
  box-shadow: 0 0 0 4px rgba(245,158,11,0.12);
}
.tag-group {
  display: flex;
  gap: 6px;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1.5px solid #E2E8F0;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  color: #64748B;
  background: #fff;
  cursor: pointer;
  transition: all 0.12s ease;
}
.tag:hover {
  border-color: #CBD5E1;
  background: #F8FAFC;
}
.tag.active {
  border-color: #BFDBFE;
  background: #EFF6FF;
  color: #2563EB;
  font-weight: 600;
}
/* 可折叠卡片（表单里的隐式要求） */
.collapsible-card {
  border: 1.5px solid #FDE68A;
  border-radius: 8px;
  overflow: hidden;
  background: #FFFBEB;
}
.collapsible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: #92400E;
  user-select: none;
  transition: background 0.12s;
}
.collapsible-title-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.collapsible-title {
  font-size: 11px;
  font-weight: 600;
  color: #92400E;
  line-height: 1.3;
}
.collapsible-subtitle {
  font-size: 10px;
  font-weight: 400;
  color: #A0AEC0;
  line-height: 1.3;
}
.collapsible-header:hover {
  background: #FEF3C7;
}
.collapsible-actions {
  display: flex;
  align-items: center;
}
.collapse-icon {
  font-size: 10px;
  color: #D97706;
  transition: transform 0.15s;
  line-height: 1;
}
.collapse-icon.collapsed {
  transform: rotate(-90deg);
}
.collapsible-body {
  padding: 0 10px 8px;
}
.collapsible-body.collapsed {
  display: none;
}

.form-btn-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.form-btn {
  flex: 1;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}
.form-btn.primary {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #fff;
  box-shadow: 0 1px 3px rgba(37,99,235,0.3);
}
.form-btn.primary:hover {
  background: linear-gradient(135deg, #1D4ED8, #1E40AF);
}
.form-btn.primary:active {
  transform: scale(0.98);
}
.form-btn.secondary {
  background: #fff;
  color: #475569;
  border: 1px solid #E2E8F0;
}
.form-btn.secondary:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

/* ─── 隐式要求区域（表单页）────────────────────────────────── */

.form-hidden-section {
  border: 1.5px solid #FDE68A;
  border-radius: 8px;
  padding: 10px;
  background: #FFFBEB;
}
.form-hidden-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.form-hidden-title {
  font-size: 11px;
  font-weight: 600;
  color: #92400E;
  line-height: 1.3;
}
.form-hidden-subtitle {
  font-size: 10px;
  font-weight: 400;
  color: #A0AEC0;
  line-height: 1.3;
  margin: 1px 0 6px;
}

/* ─── AI Extract Button ──────────────────────────────────── */

.cp-ai-extract-btn {
  background: none;
  border: none;
  padding: 0 2px;
  font-size: 11px;
  font-weight: 500;
  color: #6B21A8;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}
.cp-ai-extract-btn:hover {
  color: #9333EA;
  text-decoration: underline;
}
.cp-ai-extract-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ─── List View ──────────────────────────────────────────── */

.pos-search {
  padding: 8px 16px 4px;
}
.pos-search-input {
  width: 100%;
  padding: 7px 10px;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  font-size: 12px;
  font-family: inherit;
  color: #0F172A;
  background: #F8FAFC;
  transition: all 0.15s ease;
}
.pos-search-input:focus {
  outline: none;
  border-color: #2563EB;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.15);
}
.pos-search-input::placeholder {
  color: #94A3B8;
  font-size: 12px;
}
.pos-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 12px;
  color: #94A3B8;
}
.pos-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.1s;
  border-left: 3px solid transparent;
  border-bottom: 1px solid #F1F5F9;
}
.pos-list-item:last-child {
  border-bottom: none;
}
.pos-list-item:hover {
  background: #F8FAFC;
}
.pos-list-item.active {
  background: #EFF6FF;
  border-left-color: #2563EB;
}
.pli-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pos-list-item.active .pli-icon {
  background: #DBEAFE;
}
.pli-info {
  flex: 1;
  min-width: 0;
}
.pli-title {
  font-size: 12px;
  font-weight: 600;
  color: #0F172A;
  line-height: 1.4;
}
.pli-meta {
  font-size: 10px;
  color: #94A3B8;
  margin-top: 2px;
}
.pli-rules {
  font-size: 10px;
  color: #D97706;
  margin-top: 2px;
}
.pli-stat {
  font-size: 10px;
  color: #64748B;
  text-align: right;
  white-space: nowrap;
}
.pli-stat .num {
  font-weight: 700;
  color: #0F172A;
  font-variant-numeric: tabular-nums;
  display: block;
  font-size: 14px;
  line-height: 1.3;
}
.pos-footer {
  display: flex;
  gap: 8px;
  padding: 8px 16px;
  border-top: 1px solid #F1F5F9;
}
.pos-footer-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pos-footer-btn:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

/* ─── Empty View ─────────────────────────────────────────── */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 28px 32px;
  text-align: center;
}
.empty-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: #EFF6FF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.empty-title {
  font-size: 15px;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 5px;
}
.empty-desc {
  font-size: 12px;
  color: #64748B;
  line-height: 1.6;
  margin-bottom: 22px;
  max-width: 220px;
}
.empty-or {
  font-size: 11px;
  color: #CBD5E1;
  margin: 6px 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}
.empty-or span {
  color: #94A3B8;
}
.empty-or::before,
.empty-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E2E8F0;
}
.btn-secondary {
  width: 100%;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-secondary:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

/* ─── Login View ──────────────────────────────────────────── */

.login-body {
  padding: 32px 24px 20px;
}
.login-header {
  text-align: center;
  margin-bottom: 20px;
}
.login-header svg {
  margin-bottom: 10px;
}
.login-title {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 4px;
}
.login-desc {
  font-size: 12px;
  color: #64748B;
  line-height: 1.5;
  margin: 0;
}
.login-form {
  margin-bottom: 16px;
}
.login-form .form-group {
  margin-bottom: 12px;
}
.login-msg {
  font-size: 13px;
  line-height: 1.5;
  padding: 6px 10px;
  border-radius: 8px;
  display: none;
  margin-bottom: 8px;
}
.login-msg.error {
  display: block;
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}
.login-msg.success {
  display: block;
  background: #F0FDF4;
  color: #059669;
  border: 1px solid #BBF7D0;
}
.login-btn {
  width: 100%;
}
.login-server {
  background: #F8FAFC;
  border-radius: 10px;
  padding: 12px 14px;
}
.login-server-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.login-server-header .form-label {
  margin-bottom: 0;
}
.login-server-status {
  font-size: 11px;
  font-weight: 500;
  color: #94A3B8;
}
.login-server-row {
  margin-bottom: 6px;
}
.login-server-links {
  display: flex;
  gap: 12px;
}
.login-server-link {
  font-size: 12px;
  color: #94A3B8;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}
.login-server-link:hover {
  color: #2563EB;
}

/* ─── Hidden Rules Legacy Wrappers ────────────────────────── */

#cp-rules-wrap { padding: 0 16px 8px; }
#cp-rules-input { margin-bottom: 6px; }
#cp-rules-result { display: none; padding: 8px; background: #F8FAFC; border-radius: 6px; font-size: 12px; line-height: 1.5; }

/* ─── Plan System ──────────────────────────────────────────── */

.boss-plan-overlay {
  position: fixed; bottom: 110px; right: 30px;
  width: 380px; max-height: 560px;
  background: #fff; border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  z-index: 2147483646; overflow-y: auto;
}

.sun-btn { position: relative; }
.sun-btn.sun-pulse svg { animation: sun-pulse 2s ease-in-out infinite; }
@keyframes sun-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.pc { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 8px; margin-bottom: 8px; transition: border-color .2s; }
.pc:hover { border-color: #93C5FD; }
.pc .pc-l { flex: 1; }
.pc .pc-title { font-size: 14px; font-weight: 600; color: #1E293B; margin-bottom: 3px; }
.pc .pc-meta { font-size: 12px; color: #64748B; margin-bottom: 2px; }
.pc .pc-time { font-size: 11px; color: #94A3B8; }
.pc .pc-r { flex-shrink: 0; display: flex; align-items: center; }
.pc .pc-arrow { color: #94A3B8; display: flex; }
.pc-add { justify-content: center; gap: 6px; border-style: dashed; background: #fff; font-size: 13px; color: #2563EB; font-weight: 500; }

.pos-select { position: relative; }
.pos-trigger { display: flex; align-items: center; padding: 9px 10px; border: 1px solid #E2E8F0; border-radius: 6px; background: #F8FAFC; cursor: pointer; }
.pos-trigger:hover { border-color: #93C5FD; }
.pos-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; font-size: 11px; background: #EFF6FF; color: #1D4ED8; border-radius: 6px; }
.tag-x { cursor: pointer; color: #93C5FD; font-size: 13px; line-height: 1; }
.tag-x:hover { color: #2563EB; }
.pos-dropdown { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; margin-top: 4px; background: #fff; border: 1px solid #E2E8F0; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.10); }
.pos-search { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid #E2E8F0; }
.pos-input { flex: 1; border: none; outline: none; font-size: 13px; color: #1E293B; background: transparent; }
.pos-list { max-height: 200px; overflow-y: auto; padding: 4px 0; }
.pos-opt { display: flex; align-items: center; gap: 8px; padding: 7px 10px; font-size: 13px; color: #1E293B; cursor: pointer; transition: background .1s; }
.pos-opt:hover { background: #F8FAFC; }
.pos-opt .chk { width: 16px; height: 16px; border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pos-opt .sub { font-size: 11px; color: #94A3B8; margin-left: auto; }
.pos-select-all { padding: 8px 10px; font-size: 12px; color: #64748B; border-bottom: 1px solid #F1F5F9; cursor: pointer; transition: background .1s; }
.pos-select-all:hover { color: #2563EB; background: #F8FAFC; }
.pos-select-all.on { color: #2563EB; font-weight: 500; }

.fg { margin-bottom: 14px; }
.fl { display: block; font-size: 12px; font-weight: 500; color: #475569; margin-bottom: 6px; }
.ft { display: flex; gap: 4px; }
.ft div { flex: 1; padding: 7px 0; text-align: center; font-size: 12px; border: 1px solid #E2E8F0; border-radius: 6px; background: #F8FAFC; color: #64748B; cursor: pointer; }
.ft .on { border-color: #2563EB; background: #EFF6FF; color: #1D4ED8; font-weight: 500; }
.fi { width: 100%; padding: 8px 10px; border: 1px solid #E2E8F0; border-radius: 6px; font-size: 13px; background: #F8FAFC; }
.fr { display: flex; gap: 10px; }
.fr .fg { flex: 1; }
.fa { display: flex; gap: 8px; margin-top: 20px; padding-top: 14px; border-top: 1px solid #E2E8F0; }

.btn2 { flex: 1; padding: 10px; background: #F1F5F9; color: #475569; border: 1px solid #E2E8F0; border-radius: 8px; font-size: 13px; font-weight: 500; text-align: center; cursor: pointer; }
.btn1 { flex: 1; padding: 10px; background: #2563EB; color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 500; text-align: center; cursor: pointer; }

.card { border: 1px solid #E2E8F0; border-radius: 10px; overflow: hidden; }
.card .ch { background: #F8FAFC; padding: 12px 14px; border-bottom: 1px solid #E2E8F0; display: flex; align-items: center; gap: 8px; }
.b { font-size: 10px; font-weight: 600; padding: 3px 10px; border-radius: 10px; }
.by { background: #FEF9C3; color: #A16207; }
.bg { background: #DCFCE7; color: #15803D; }
.br { background: #FEE2E2; color: #B91C1C; }
.card .cb { padding: 14px; }
.ir { display: flex; justify-content: space-between; padding: 6px 0; font-size: 12px; border-bottom: 1px solid #F1F5F9; }
.ir:last-child { border-bottom: none; }
.il { color: #94A3B8; }
.iv { color: #1E293B; font-weight: 500; }
.ca { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid #E2E8F0; }

.ei { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 8px; margin-bottom: 6px; }
.edot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ei .n { flex: 1; }
.ei .nm { font-size: 13px; font-weight: 500; color: #1E293B; }
.ei .ds { font-size: 10px; color: #94A3B8; margin-top: 1px; }
.ei .num { font-size: 12px; color: #475569; font-weight: 500; }

.pbar { height: 8px; background: #E2E8F0; border-radius: 4px; overflow: hidden; margin: 12px 0 6px; }
.pfill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #2563EB, #3B82F6); }
.plbl { font-size: 11px; color: #94A3B8; text-align: right; }

.alert { background: #FEF2F2; border: 1px solid #FECACA; border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.alert .t { font-size: 13px; font-weight: 600; color: #B91C1C; margin-bottom: 4px; }
.alert .m { font-size: 12px; color: #7F1D1D; }

.empty-state h3 { font-size: 15px; color: #64748B; }

.sl { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 8px; padding: 10px 12px; font-size: 12px; color: #64748B; display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.sl .blink { width: 6px; height: 6px; background: #22C55E; border-radius: 50%; }

.bp { flex: 1; padding: 10px; background: #F59E0B; color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 500; text-align: center; cursor: pointer; }
.bs { flex: 1; padding: 10px; background: #EF4444; color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 500; text-align: center; cursor: pointer; }

/* ─── Scrollbar ──────────────────────────────────────────── */

#boss-cat-panel::-webkit-scrollbar,
.cp-log-list::-webkit-scrollbar { width: 4px; }
#boss-cat-panel::-webkit-scrollbar-thumb,
.cp-log-list::-webkit-scrollbar-thumb { background: #E2E8F0; border-radius: 2px; }
#boss-cat-panel::-webkit-scrollbar-thumb:hover,
.cp-log-list::-webkit-scrollbar-thumb:hover { background: #CBD5E1; }

/* ─── Nav ─────────────────────────────────────────────────── */

.main-nav {
  display: flex;
  padding: 0 18px;
  gap: 20px;
  border-bottom: 1px solid #F0F2F5;
  flex-shrink: 0;
  background: #fff;
}
.main-nav-item {
  height: 42px;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: #B0B8C4;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  background: none;
  border: none;
  padding: 0 2px;
  transition: all 0.15s;
  font-family: inherit;
}
.main-nav-item:hover {
  color: #5A6270;
}
.main-nav-item.active {
  color: #2A6FF5;
  border-bottom-color: #2A6FF5;
}

/* ─── Dashboard ───────────────────────────────────────────── */

#cp-view-dashboard,
#cp-view-settings {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: #fff;
}

.db-today-bar {
  padding: 12px 18px;
  background: #FFF9ED;
  border-bottom: 1px solid #FFEECC;
  font-size: 12px;
  color: #9C7A2E;
  text-align: center;
  font-weight: 450;
  flex-shrink: 0;
}

.db-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  border-bottom: 1px solid #F0F2F5;
  flex-shrink: 0;
}
.db-stat {
  padding: 16px 4px 14px;
  text-align: center;
  border-right: 1px solid #F5F6F8;
}
.db-stat:last-child { border-right: none; }
.db-stat-num {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}
.db-stat-num.bl { color: #2A6FF5; }
.db-stat-num.gr { color: #19A66B; }
.db-stat-num.pu { color: #7C5CFC; }
.db-stat-num.am { color: #D68A1C; }
.db-stat-lbl {
  font-size: 11px;
  color: #94A3B8;
  margin-top: 4px;
  font-weight: 500;
}

.db-pills {
  display: flex;
  gap: 6px;
  padding: 10px 18px;
  border-bottom: 1px solid #F0F2F5;
  overflow-x: auto;
  flex-shrink: 0;
}
.db-pills .pill {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  background: #F0F2F5;
  color: #5A6270;
  transition: all 0.12s;
  font-family: inherit;
}
.db-pills .pill:hover { background: #E5E8ED; }
.db-pills .pill.active { background: #EFF4FF; color: #2A6FF5; font-weight: 600; }

.db-head {
  display: flex;
  padding: 7px 18px;
  font-size: 11px;
  font-weight: 600;
  color: #B0B8C4;
  background: #F8F9FB;
  border-bottom: 1px solid #F0F2F5;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.db-hd-nm { flex: 1.5; }
.db-hd-ps { flex: 1; }
.db-hd-act { flex: 1; text-align: center; }
.db-hd-tm { width: 56px; text-align: right; }

.db-list {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}
.db-list::-webkit-scrollbar { width: 4px; }
.db-list::-webkit-scrollbar-thumb { background: #E5E8ED; border-radius: 4px; }
.db-list::-webkit-scrollbar-track { background: transparent; }

.db-empty {
  padding: 40px 20px;
  text-align: center;
  font-size: 13px;
  color: #B0B8C4;
}

.db-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 9px 18px;
  border-bottom: 1px solid #F5F6F8;
  font-size: 13px;
  transition: 0.1s;
  cursor: pointer;
}
.db-row:hover { background: #F8F9FB; }
.db-row-name {
  flex: 1.5;
  font-weight: 500;
  color: #0B0D11;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.db-row-pos {
  flex: 1;
  color: #8B93A0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}
.db-row-act { flex: 1; text-align: center; }
.db-row-tm {
  width: 56px;
  font-size: 11px;
  color: #B0B8C4;
  text-align: right;
}

/* Status tags */
.tag { display: inline-block; padding: 2px 10px; border-radius: 6px; font-size: 11px; font-weight: 500; letter-spacing: 0.2px; }
.tag.gr { background: #ECFDF5; color: #0A8254; }
.tag.pu { background: #F3EFFF; color: #6D3FE0; }
.tag.rd { background: #FEF2F2; color: #B91C1C; }

/* ─── Settings ────────────────────────────────────────────── */

.settings-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px 18px 30px;
  min-height: 0;
}
.settings-scroll::-webkit-scrollbar { width: 4px; }
.settings-scroll::-webkit-scrollbar-thumb { background: #E5E8ED; border-radius: 4px; }
.settings-scroll::-webkit-scrollbar-track { background: transparent; }

.sg { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid #F0F2F5; }
.sg:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.sg-title {
  font-size: 14px;
  font-weight: 600;
  color: #0B0D11;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.sg-count {
  font-size: 11px;
  font-weight: 500;
  color: #94A3B8;
  background: #F1F4F9;
  padding: 1px 8px;
  border-radius: 8px;
}
.sg-hint {
  font-size: 12px;
  color: #94A3B8;
  line-height: 1.5;
  margin-bottom: 14px;
}

/* Template list */
.tpl-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tpl-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #E8ECF0;
  border-radius: 8px;
  transition: all 0.12s;
  cursor: pointer;
}
.tpl-item:hover {
  border-color: #D0D4DB;
  background: #F8F9FB;
}

.tpl-text {
  flex: 1;
  font-size: 12.5px;
  color: #1E293B;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.tpl-text .tpl-var {
  color: #2A6FF5;
  font-weight: 500;
}

.tpl-btn-edit,
.tpl-btn-del {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: pointer;
  transition: all 0.12s;
  flex-shrink: 0;
}
.tpl-item .tpl-btn-edit,
.tpl-item .tpl-btn-del {
  opacity: 0.3;
}
.tpl-item:hover .tpl-btn-edit,
.tpl-item:hover .tpl-btn-del {
  opacity: 1;
}
.tpl-btn-edit { color: #64748B; }
.tpl-btn-edit:hover { background: #EDEEF0; color: #2A6FF5; opacity: 1; }
.tpl-btn-del { color: #94A3B8; }
.tpl-btn-del:hover { background: #FEF2F2; color: #B91C1C; opacity: 1; }

/* Editing state */
.tpl-item.editing {
  flex-direction: column;
  align-items: stretch;
  padding: 14px;
  border-color: #2A6FF5;
  background: #F8FAFE;
  cursor: default;
}

.tpl-textarea {
  width: 100%;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid #D0D4DB;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  line-height: 1.7;
  color: #1E293B;
  resize: vertical;
  background: #fff;
  transition: border-color 0.12s;
}
.tpl-textarea:focus {
  outline: none;
  border-color: #2A6FF5;
  box-shadow: 0 0 0 3px rgba(42,111,245,0.12);
}

.tpl-vars {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.tpl-var-chip {
  padding: 3px 10px;
  background: #EFF2F6;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  font-size: 11px;
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
  color: #475569;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.1s;
  user-select: none;
}
.tpl-var-chip:hover {
  background: #DBE4FF;
  border-color: #2A6FF5;
  color: #2A6FF5;
}

.tpl-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.tpl-btn-cancel,
.tpl-btn-save {
  padding: 6px 16px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s;
  font-family: inherit;
}
.tpl-btn-save { background: #2A6FF5; color: #fff; }
.tpl-btn-save:hover { background: #1A5FE5; }
.tpl-btn-cancel { background: #F0F2F5; color: #475569; }
.tpl-btn-cancel:hover { background: #E5E8ED; }

.tpl-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px 16px;
  margin-top: 12px;
  border: 1px dashed #D0D4DB;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #2563EB;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.2s;
  font-family: inherit;
}
.tpl-add-btn:hover {
  border-color: #93C5FD;
  background: #F8FAFE;
}

/* ══════════════════════════════════════════════════════════════
 * Console Override — 后台独立页面布局
 * 脱离插件 360px 面板限制，改为全屏后台
 * ══════════════════════════════════════════════════════════════ */
html, body { background: #F8FAFC; }
body { font-family: 'Noto Sans SC', 'Inter', system-ui, -apple-system, sans-serif; margin: 0; }

/* 容器：禁用插件的 fixed 定位 */
#boss-cat-container { position: static; display: block; align-items: unset; gap: 0; }

/* ── 框架：侧边栏 + 玻璃顶栏 + 内容区 ── */
.console-shell { display: flex; min-height: 100vh; align-items: stretch; }

/* 侧边栏 */
.console-sidebar {
  width: 240px; flex-shrink: 0;
  background: #fff; border-right: 1px solid #E2E8F0;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.console-brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px 12px; }
.console-brand .logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(37, 99, 235, .35); flex-shrink: 0;
}
.console-brand .brand-text { font-weight: 650; font-size: 14px; color: #0F172A; line-height: 1.25; min-width: 0; }
.console-brand .brand-text small { display: block; font-size: 10.5px; color: #94A3B8; font-weight: 450; letter-spacing: .4px; margin-top: 1px; white-space: nowrap; }

/* 分组导航 */
.console-nav { flex: 1; padding: 4px 12px; overflow-y: auto; }
.console-nav .nav-label { font-size: 11px; font-weight: 600; color: #94A3B8; letter-spacing: .8px; padding: 14px 10px 6px; }
.console-tab {
  display: flex; align-items: center; gap: 10px; width: 100%;
  border: none; background: transparent; text-align: left;
  color: #334155; font-size: 13.5px; font-weight: 480;
  padding: 9px 10px; border-radius: 8px; cursor: pointer; position: relative;
  transition: background .15s ease, color .15s ease;
  font-family: inherit;
}
.console-tab svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; opacity: .85; }
.console-tab .tab-text { white-space: nowrap; }
.console-tab:hover { background: #F1F5F9; color: #0F172A; }
.console-tab.active { background: #EFF4FF; color: #1D4ED8; font-weight: 560; }
.console-tab.active::before {
  content: ""; position: absolute; left: -12px; top: 7px; bottom: 7px;
  width: 3px; border-radius: 0 3px 3px 0; background: #2563EB;
}

/* 侧边栏底部：用户卡 + 退出 */
.console-side-foot { border-top: 1px solid #EEF2F7; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.side-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.side-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #93C5FD, #2563EB); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; flex-shrink: 0;
}
.side-user-meta { min-width: 0; }
.side-user-meta b { display: block; font-size: 12.5px; font-weight: 560; color: #0F172A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user-meta span { font-size: 11px; color: #94A3B8; }
.console-logout {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid #E2E8F0; background: #fff; color: #64748B;
  font-size: 12.5px; padding: 7px 14px; border-radius: 8px; cursor: pointer;
  font-family: inherit; transition: color .15s, border-color .15s;
}
.console-logout svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.console-logout:hover { color: #DC2626; border-color: #DC2626; }

/* 右侧主体 */
.console-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.console-topbar {
  position: sticky; top: 0; z-index: 100;
  height: 56px; display: flex; align-items: center; gap: 14px;
  padding: 0 28px;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid #E2E8F0;
}
.console-crumb { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #94A3B8; }
.console-crumb b { color: #0F172A; font-weight: 560; }
.console-search {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  background: #F1F5F9; border: 1px solid transparent; border-radius: 8px;
  padding: 6px 10px; width: 240px; color: #94A3B8; font-size: 13px;
  transition: border-color .15s, background .15s;
}
.console-search:focus-within { border-color: #E2E8F0; background: #fff; }
.console-search input { border: none; background: transparent; outline: none; flex: 1; min-width: 0; font-size: 13px; color: #0F172A; font-family: inherit; }
.console-search input::placeholder { color: #94A3B8; }
.console-search kbd { font-family: inherit; font-size: 11px; background: #fff; border: 1px solid #E2E8F0; border-radius: 5px; padding: 1px 5px; color: #64748B; }

/* 顶栏全局搜索下拉面板 */
.console-search { position: relative; }
.cs-panel {
  display: none; position: absolute; top: 100%; left: 0; width: 340px; margin-top: 8px;
  background: #fff; border: 1px solid #E2E8F0; border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
  padding: 6px; max-height: 420px; overflow-y: auto; z-index: 120;
}
.cs-panel.open { display: block; }
.cs-group-title { font-size: 11px; font-weight: 600; color: #94A3B8; padding: 8px 10px 4px; }
.cs-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  border: none; background: transparent; text-align: left; font-family: inherit;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
  font-size: 13px; color: #0F172A; transition: background .12s;
}
.cs-item:hover { background: #F1F5F9; }
.cs-item .cs-main { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.cs-item .cs-sub { font-size: 12px; color: #94A3B8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 1; min-width: 0; }
.cs-item .cs-score { font-size: 11px; font-weight: 600; color: #2563EB; background: #EFF4FF; border-radius: 5px; padding: 1px 6px; flex-shrink: 0; }
.cs-item .cs-tag { font-size: 11px; border-radius: 5px; padding: 1px 6px; flex-shrink: 0; }
.cs-item .cs-tag.gr { color: #16A34A; background: #F0FDF4; }
.cs-item .cs-tag.gy { color: #64748B; background: #F1F5F9; }
.cs-empty { font-size: 12.5px; color: #94A3B8; text-align: center; padding: 18px 0 14px; }

.topbar-icon-btn {
  width: 34px; height: 34px; border-radius: 8px; border: none; background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: #64748B; cursor: pointer; transition: background .15s, color .15s;
}
.topbar-icon-btn:hover { background: #F1F5F9; color: #0F172A; }
.topbar-icon-btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.topbar-icon-btn { position: relative; }
.topbar-icon-btn .ping { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: #F59E0B; border: 2px solid #fff; }

/* 顶栏头像 + 通知浮层 */
.topbar-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #93C5FD, #2563EB); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; flex-shrink: 0; cursor: pointer;
  transition: box-shadow .15s;
}
.topbar-avatar:hover { box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.bell-pop-empty { font-size: 12.5px; color: #94A3B8; text-align: center; padding: 18px 0 14px; }

/* 侧边栏：徽标 / 状态点 / 用量卡 */
.tab-badge {
  margin-left: auto; font-size: 11px; font-weight: 600;
  background: #DBEAFE; color: #1D4ED8;
  padding: 1px 7px; border-radius: 10px;
  font-variant-numeric: tabular-nums;
}
.nav-dot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: #F59E0B; flex-shrink: 0; }
.side-usage { display: none; margin: 12px; padding: 14px; border-radius: 10px; background: linear-gradient(180deg, #FBFCFE, #F4F7FB); border: 1px solid #EEF2F7; }
.side-usage.show { display: block; }
.side-usage .t { display: flex; justify-content: space-between; font-size: 12px; color: #64748B; font-weight: 500; margin-bottom: 8px; }
.side-usage .t b { color: #0F172A; font-variant-numeric: tabular-nums; font-weight: 600; }
.side-usage-bar { height: 5px; border-radius: 3px; background: #E2E8F0; overflow: hidden; }
.side-usage-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, #3B82F6, #2563EB); transition: width .4s ease; }
.side-usage-link { margin-top: 9px; font-size: 12px; color: #2563EB; font-weight: 550; cursor: pointer; }
.side-usage-link:hover { color: #1D4ED8; }

/* 内容区 */
.console-main { flex: 1; width: 100%; max-width: 1160px; margin: 0 auto; padding: 28px 28px 60px; box-sizing: border-box; }

/* ── 账户页（对齐 mockup：纵向卡片堆叠，与其他页面同宽）── */
.acc-card {
  background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(15,23,42,.04); margin-bottom: 16px;
}
.acc-card-body { padding: 22px; }

/* 档案卡 */
.acc-profile { display: flex; align-items: center; gap: 18px; }
.acc-avatar-lg {
  width: 64px; height: 64px; border-radius: 50%;
  background: #DBEAFE; color: #1D4ED8;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 600; flex-shrink: 0;
}
.acc-pf-name { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; word-break: break-all; }
.acc-pf-mail { font-size: 13px; color: #64748B; margin-top: 3px; }
.acc-pf-meta { display: flex; gap: 18px; margin-top: 10px; font-size: 12px; color: #94A3B8; flex-wrap: wrap; }
.acc-pf-meta b { color: #475569; font-weight: 600; font-variant-numeric: tabular-nums; }
.acc-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500; padding: 3px 10px;
  border-radius: 999px; white-space: nowrap;
  background: #F1F5F9; color: #64748B;
}
.acc-chip.blue { background: #EFF4FF; color: #2563EB; }

/* 本月用量：三环 */
.acc-sec-title { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.acc-quota-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.acc-quota { border: 1px solid #F1F5F9; border-radius: 10px; padding: 16px; }
.acc-quota-label { font-size: 12px; color: #94A3B8; margin-bottom: 10px; display: flex; justify-content: space-between; gap: 6px; }
.acc-quota-label b { color: #0F172A; font-variant-numeric: tabular-nums; font-weight: 700; }
.acc-ring { width: 74px; height: 74px; margin: 0 auto 10px; position: relative; }
.acc-ring svg { transform: rotate(-90deg); display: block; }
.acc-ring-val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.acc-ring-val b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.3px; color: #0F172A; line-height: 1.2; }
.acc-ring-val span { font-size: 10px; color: #94A3B8; }
.acc-quota-foot { text-align: center; font-size: 11px; color: #94A3B8; }
.acc-quota-foot b { color: #475569; font-variant-numeric: tabular-nums; }

/* 订阅卡 */
.acc-sub { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.acc-sub-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, #2563EB, #1D4ED8); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.acc-sub-name { font-size: 16px; font-weight: 700; }
.acc-sub-desc { font-size: 12px; color: #94A3B8; margin-top: 3px; }
.acc-sub-feats { display: flex; gap: 14px; margin-left: auto; flex-wrap: wrap; }
.acc-sub-feat { font-size: 12px; color: #64748B; display: flex; align-items: center; gap: 5px; }
.acc-sub-feat::before { content: '✓'; color: #16A34A; font-weight: 700; }

/* 通用按钮 */
.acc-btn {
  font-family: inherit; font-size: 13px; font-weight: 500; border-radius: 8px; cursor: pointer;
  padding: 8px 16px; border: 1px solid #E2E8F0; background: #fff; color: #475569;
  transition: all .15s; flex-shrink: 0;
}
.acc-btn:hover { border-color: #CBD5E1; color: #0F172A; }
.acc-btn.primary { background: #2563EB; border-color: #2563EB; color: #fff; }
.acc-btn.primary:hover { background: #1D4ED8; border-color: #1D4ED8; }
.acc-btn.danger { color: #DC2626; border-color: #FECACA; }
.acc-btn.danger:hover { background: #FEF2F2; border-color: #FCA5A5; color: #B91C1C; }

/* 安全与设置列表 */
.acc-set-row { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid #F1F5F9; }
.acc-set-row:last-child { border-bottom: none; padding-bottom: 0; }
.acc-set-row:first-child { padding-top: 0; }
.acc-set-icon {
  width: 34px; height: 34px; border-radius: 9px; background: #F1F5F9; color: #64748B;
  display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0;
}
.acc-set-txt { flex: 1; min-width: 0; }
.acc-set-name { font-size: 13px; font-weight: 600; }
.acc-set-desc { font-size: 12px; color: #94A3B8; margin-top: 1px; word-break: break-all; }
.acc-set-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

@media (max-width: 720px) {
  .acc-quota-grid { grid-template-columns: 1fr; }
  .acc-sub-feats { margin-left: 0; }
  .acc-set-acts { width: 100%; }
}

/* 窄屏：侧边栏收缩为图标模式 */
@media (max-width: 920px) {
  .console-sidebar { width: 60px; }
  .console-brand { justify-content: center; padding: 16px 8px 10px; }
  .console-brand .brand-text, .console-nav .nav-label, .console-tab .tab-text { display: none; }
  .console-tab { justify-content: center; padding: 10px 0; }
  .console-tab.active::before { left: -8px; }
  .console-nav { padding: 4px 8px; }
  .side-user-meta { display: none; }
  .side-usage.show { display: none; }
  .side-user { justify-content: center; }
  .console-logout { padding: 7px 0; }
  .console-search { width: 160px; }
  .console-search kbd { display: none; }
  /* 总览页窄屏：4 KPI → 2 列，两栏堆叠，按钮紧凑 */
  .ov-kpis { grid-template-columns: repeat(2, 1fr); }
  .ov-grid2 { grid-template-columns: 1fr; }
  .ov-head { flex-direction: column; align-items: flex-start; }
  .ov-head-actions { width: 100%; }
  .ov-head-actions .ov-btn { flex: 1; justify-content: center; }
  .dt-table { font-size: 12.5px; }
  .dt-table thead th, .dt-table tbody td { padding-left: 12px; padding-right: 12px; }
}
.console-page { display: none; }
.console-page.active { display: block; }
.console-page-head { margin-bottom: 20px; }
.console-page-head h2 { font-size: 20px; font-weight: 600; color: #0F172A; margin: 0 0 4px; }
.console-page-head p { font-size: 13px; color: #94A3B8; margin: 0; }

/* 登录页（居中卡片） */
.console-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.console-login-card {
  width: 380px; background: #fff; border: 1px solid #E2E8F0;
  border-radius: 16px; padding: 36px 32px;
  box-shadow: 0 8px 30px rgba(15,23,42,.06);
}
.console-login-card .login-title { margin-top: 12px; }
.console-login-card .login-msg { min-height: 20px; font-size: 13px; color: #DC2626; }
.console-login-card .login-server { margin-top: 20px; }

/* 面板视图宽屏化 */
#boss-cat-panel { width: 100%; max-width: none; height: auto; }
.panel-view { padding: 0; }
.console-page .settings-scroll { max-height: none; }
.db-list, .pos-list { max-height: none; }

/* 表格化候选人与岗位列表在宽屏下的卡片 */
.console-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }

/* 管理 tab */
.console-mini-btn {
  border: 1px solid #E2E8F0; background: #fff; color: #475569;
  font-size: 12px; padding: 4px 10px; border-radius: 6px; cursor: pointer;
  white-space: nowrap;
}
.console-mini-btn:hover { border-color: #2563EB; color: #2563EB; }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.form-label-hint { font-size: 12px; color: #94A3B8; font-weight: 400; }

/* ══════════════════════════════════════════════════════════════
   总览页 v3 — Arco Design 规范 + 品牌色 #2563EB
   ── 色板由品牌色按 Arco 10 档结构推导；表头中性灰、hover 用 primary-1、
      圆角 4px、正文 14px/1.5715、无斑马纹、只用横线分隔
   ══════════════════════════════════════════════════════════════ */

/* Arco token（提升为全站令牌：候选人 / 详情等页面同样引用，原先局部作用域会导致变量解析失败）*/
:root,
#page-overview {
  --primary-1: #EFF4FF;  --primary-2: #DBEAFE;  --primary-3: #BFD4FA;
  --primary-4: #89AAF4;  --primary-5: #5988EF;  --primary-6: #2563EB;
  --primary-7: #1D4ED8;
  --gray-1: #F8FAFC;  --gray-2: #F1F5F9;  --gray-3: #E2E8F0;  --gray-4: #CBD5E1;
  --gray-5: #94A3B8;  --gray-6: #94A3B8;  --gray-8: #475569;  --gray-10: #0F172A;
  --success-6: #16A34A; --warning-6: #D97706; --danger-6: #DC2626;
  --arco-text-1: var(--gray-10);
  --arco-text-2: var(--gray-8);
  --arco-text-3: var(--gray-6);
  --arco-border: var(--gray-3);
  --arco-radius: 4px;
  --arco-shadow: 0 1px 2px rgba(0,0,0,.04);
}

/* ══════════════════════════════════════════════════════════════
   总览 — 方案 B 高级版（浅色 + hairline + 分层阴影 + tabular 数字）
   ══════════════════════════════════════════════════════════════ */

/* 共享令牌（提升为全站令牌，理由同上） */
:root,
#page-overview {
  --ov-line: #E2E8F0;
  --ov-line-soft: #EEF2F7;
  --ov-ink: #0F172A;
  --ov-ink-2: #334155;
  --ov-ink-3: #64748B;
  --ov-ink-4: #94A3B8;
  --ov-brand: #2563EB;
  --ov-brand-600: #1D4ED8;
  --ov-brand-50: #EFF4FF;
  --ov-green: #059669;
  --ov-green-bg: #ECFDF5;
  --ov-amber: #D97706;
  --ov-amber-bg: #FFFBEB;
  --ov-red: #DC2626;
  --ov-radius: 12px;
  --ov-shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.06);
  --ov-shadow-md: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -8px rgba(15,23,42,.10);
}

/* ── 页头 ── */
.ov-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 22px;
}
.ov-head h2 { font-size: 22px; font-weight: 680; letter-spacing: -.2px; color: var(--ov-ink); }
.ov-head p { color: var(--ov-ink-3); font-size: 13.5px; margin-top: 4px; }
.ov-head-actions { display: flex; gap: 10px; align-items: center; }
.ov-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 9px;
  font-size: 13.5px; font-weight: 550; cursor: pointer;
  border: 1px solid var(--ov-line); background: #fff; color: var(--ov-ink-2);
  box-shadow: var(--ov-shadow-sm); font-family: inherit;
  transition: box-shadow .15s, transform .1s, border-color .15s;
}
.ov-btn:hover { box-shadow: var(--ov-shadow-md); }
.ov-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ov-btn.primary {
  background: var(--ov-brand); border-color: var(--ov-brand-600); color: #fff;
  box-shadow: 0 1px 2px rgba(29,78,216,.35), 0 4px 12px -4px rgba(37,99,235,.45);
}
.ov-btn.primary:hover { background: var(--ov-brand-600); }

/* ── KPI 卡 ── */
.ov-kpis {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 16px;
}
.ov-kpi {
  background: #fff; border: 1px solid var(--ov-line); border-radius: var(--ov-radius);
  padding: 18px 20px; position: relative; overflow: hidden;
  box-shadow: var(--ov-shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.ov-kpi:hover { box-shadow: var(--ov-shadow-md); transform: translateY(-1px); }
.ov-kpi-label {
  font-size: 12.5px; color: var(--ov-ink-3); font-weight: 500;
  display: flex; align-items: center; gap: 5px;
}
.ov-kpi-help {
  width: 13px; height: 13px; border-radius: 50%;
  border: 1px solid var(--ov-line); color: var(--ov-ink-4);
  font-size: 10px; line-height: 1; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: help; user-select: none;
  transition: border-color .15s, color .15s, background .15s;
}
.ov-kpi-help:hover {
  border-color: var(--ov-brand); color: var(--ov-brand); background: var(--ov-brand-50);
}
.ov-kpi-val {
  font-size: 27px; font-weight: 680; letter-spacing: -.5px; line-height: 1.15;
  color: var(--ov-ink); margin: 7px 0 6px; font-variant-numeric: tabular-nums;
}
.ov-kpi-unit { font-size: 13px; font-weight: 480; color: var(--ov-ink-3); margin-left: 3px; }
.ov-kpi-foot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ov-ink-4); flex-wrap: wrap; }
.ov-kpi-sub { color: var(--ov-ink-4); font-weight: 450; }
.ov-spark {
  position: absolute; right: 14px; top: 18px; opacity: .85; pointer-events: none;
}

/* chip */
.ov-chip {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px;
  background: #F1F5F9; color: var(--ov-ink-3);
}
.ov-chip svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ov-chip.up { background: var(--ov-green-bg); color: var(--ov-green); }
.ov-chip.down { background: #FEF2F2; color: var(--ov-red); }

/* ── Card 通用 ── */
.ov-card {
  background: #fff; border: 1px solid var(--ov-line); border-radius: var(--ov-radius);
  box-shadow: var(--ov-shadow-sm);
}
.ov-card-h {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px; gap: 16px;
}
.ov-card-t { font-size: 14.5px; font-weight: 620; color: var(--ov-ink); }
.ov-card-s { font-size: 12px; color: var(--ov-ink-4); margin-top: 2px; font-weight: 450; }

/* segmented */
.ov-seg {
  display: flex; background: #F1F5F9; border-radius: 8px; padding: 2px; font-size: 12px;
}
.ov-seg button {
  border: none; background: transparent; font-family: inherit;
  padding: 4px 10px; border-radius: 6px; color: var(--ov-ink-3); cursor: pointer; font-weight: 520;
}
.ov-seg button:hover { color: var(--ov-ink); }
.ov-seg button.on {
  background: #fff; color: var(--ov-ink); font-weight: 580;
  box-shadow: var(--ov-shadow-sm);
}

/* 图例 + 图表 */
.ov-legend { display: flex; gap: 16px; padding: 0 20px 8px; font-size: 12px; color: var(--ov-ink-3); }
.ov-legend i {
  width: 9px; height: 9px; border-radius: 3px; display: inline-block;
  margin-right: 5px; vertical-align: -1px;
}
.ov-chart { padding: 0 8px 16px; }
.ov-chart svg { width: 100%; height: 220px; display: block; }
.ov-trend-svg { display: block; }
.ov-trend-empty {
  padding: 56px 16px; text-align: center; color: var(--ov-ink-3); font-size: 14px;
}

/* ── 两栏布局 ── */
.ov-grid2 {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-bottom: 16px;
}

/* ── 最近动态（feed） ── */
.ov-feed { padding: 2px 20px 14px; }
.ov-feed-item {
  display: flex; gap: 12px; position: relative; padding: 10px 0;
}
.ov-feed-item:not(:last-child)::after {
  content: ""; position: absolute; left: 15px; top: 38px; bottom: -4px;
  width: 1px; background: var(--ov-line-soft);
}
.ov-feed-ico {
  width: 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 13px; font-weight: 600;
}
.ov-feed-ico.b { background: var(--ov-brand-50); color: var(--ov-brand); }
.ov-feed-ico.g { background: var(--ov-green-bg); color: var(--ov-green); }
.ov-feed-ico.a { background: var(--ov-amber-bg); color: var(--ov-amber); }
.ov-feed-txt { font-size: 13px; color: var(--ov-ink-2); line-height: 1.55; }
.ov-feed-txt b { font-weight: 580; color: var(--ov-ink); }
.ov-feed-time { font-size: 11.5px; color: var(--ov-ink-4); margin-top: 2px; }

/* ══════════════════════════════════════════════════════════════
   数据表格组件 dt-table（全站复用：总览排行 / 候选人 / 后续列表）
   宽度始终 100% 与容器对齐；单元格左右 20px 与卡片标题对齐
   ══════════════════════════════════════════════════════════════ */
.dt-wrap { width: 100%; }
.dt-table { width: 100%; border-collapse: collapse; table-layout: auto; }
.dt-table thead th {
  background: #F8FAFC; color: var(--ov-ink-3); text-align: left;
  font-size: 12.5px; font-weight: 560; letter-spacing: .2px;
  padding: 11px 20px; border-bottom: 1px solid var(--ov-line); white-space: nowrap;
}
.dt-table tbody td {
  padding: 14px 20px; font-size: 13.5px; color: var(--ov-ink);
  border-bottom: 1px solid var(--ov-line-soft); vertical-align: middle;
}
.dt-table tbody tr:last-child td { border-bottom: none; }
.dt-table tbody tr { transition: background .12s; }
.dt-table tbody tr[data-clickable] { cursor: pointer; }
.dt-table tbody tr[data-clickable]:hover td { background: #F8FAFF; }
.dt-table tbody tr[data-clickable]:hover .dt-main { color: var(--ov-brand); }
.dt-table th.num, .dt-table td.num { text-align: right; }
.dt-table td.num { font-variant-numeric: tabular-nums; font-weight: 500; }
.dt-table td.num .dt-na { color: var(--ov-ink-4); }
.dt-pct { font-size: 12px; color: var(--ov-ink-4); margin-left: 1px; font-weight: 450; }
.dt-main { font-weight: 540; color: var(--ov-ink); transition: color .12s; }
.dt-sub { font-size: 12px; color: var(--ov-ink-4); margin-top: 3px; font-weight: 450; }
.dt-na { color: var(--ov-ink-4); }
.ov-pos-cell { display: flex; align-items: center; gap: 8px; min-width: 0; }

/* 空态（组件内置：图标 + 标题 + 说明 + 行动按钮） */
.dt-empty { padding: 56px 20px; text-align: center; }
.dt-empty-ico { display: flex; justify-content: center; margin-bottom: 12px; }
.dt-empty-t { font-size: 14px; font-weight: 560; color: var(--ov-ink-2); }
.dt-empty-d { font-size: 12.5px; color: var(--ov-ink-4); margin-top: 4px; }
.dt-empty-btn {
  margin-top: 14px; height: 32px; padding: 0 14px;
  border: 1px solid var(--ov-line); border-radius: 6px; background: #fff;
  font-size: 12.5px; font-weight: 540; color: var(--ov-brand);
  cursor: pointer; font-family: inherit;
  transition: border-color .15s, background .15s;
}
.dt-empty-btn:hover { border-color: var(--ov-brand); background: var(--ov-brand-50); }

/* 场景适配 ── 卡片内（总览排行）：贴边无框，与卡片圆角融合 */
.ov-card .dt-table { font-size: 13px; }

/* 场景适配 ── 页面级（候选人列表）：独立成卡 */
#page-candidates .dt-wrap {
  background: #fff; border: 1px solid var(--ov-line);
  border-radius: var(--ov-radius); box-shadow: var(--ov-shadow-sm); overflow: hidden;
}

/* ── 分页器（在 .ov-card 内嵌时去掉外框，避免双层） ── */
.ov-card .ov-pager { border: none; border-top: 1px solid var(--ov-line-soft); border-radius: 0; padding: 12px 16px; }

/* ══════════════════════════════════════════════════════════════
   分页器（Arco Pagination 风格）
   ══════════════════════════════════════════════════════════════ */
.ov-pager {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: #fff;
  border: 1px solid var(--arco-border, #E2E8F0); border-top: none;
  border-radius: 0 0 4px 4px;
}
.ov-pager-inner { border-top: 1px solid #F1F5F9; border-radius: 0; }
.ov-pager-total { font-size: 13px; color: #94A3B8; margin-right: auto; }
.ov-pager-btns { display: flex; align-items: center; gap: 4px; }
.ov-pg {
  min-width: 28px; height: 28px; padding: 0 6px;
  border: 1px solid #E2E8F0; background: #fff; border-radius: 4px;
  font-size: 13px; color: #475569; cursor: pointer; font-family: inherit;
  font-variant-numeric: tabular-nums; transition: all .12s ease;
}
.ov-pg:hover:not(.dis):not(.on) { border-color: #2563EB; color: #2563EB; }
.ov-pg.on { background: #2563EB; border-color: #2563EB; color: #fff; font-weight: 500; }
.ov-pg.dis { color: #CBD5E1; cursor: not-allowed; background: #F8FAFC; }
.ov-pg-dots { padding: 0 4px; color: #94A3B8; font-size: 13px; }
.ov-pager-size {
  height: 28px; padding: 0 6px; border: 1px solid #E2E8F0; border-radius: 4px;
  font-size: 13px; color: #475569; background: #fff; font-family: inherit; cursor: pointer;
}

/* ── 候选人页：页头 + 筛选栏 ── */
.cand-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 18px;
}
/* 筛选栏：始终单行（窄屏时搜索框收缩、分段控件内部横向滚动，不折行） */
.cand-filter {
  display: flex; gap: 10px; align-items: center; margin-bottom: 14px;
  flex-wrap: nowrap; min-width: 0;
}

/* 搜索框（带图标） */
.cand-search {
  position: relative; display: flex; align-items: center;
  flex: 0 1 220px; min-width: 128px;
}
.cand-search > svg {
  position: absolute; left: 11px; width: 14px; height: 14px;
  stroke: var(--ov-ink-4); fill: none; stroke-width: 2;
  stroke-linecap: round; pointer-events: none;
}
.cand-search input {
  width: 100%; height: 34px; padding: 0 12px 0 32px;
  border: 1px solid var(--ov-line); border-radius: 8px; font-size: 13px;
  font-family: inherit; color: var(--ov-ink); background: #fff; outline: none;
  transition: border-color .15s;
}
.cand-search input::placeholder { color: var(--ov-ink-4); }
.cand-search input:focus { border-color: var(--ov-brand); }
.cand-search input:focus + svg { stroke: var(--ov-brand); }

/* 状态分段控件（可收缩：空间不足时自身横向滚动，而不是把整栏挤成两行） */
.cand-seg {
  display: flex; background: #F1F5F9; border-radius: 8px; padding: 3px; gap: 2px;
  flex: 0 1 auto; min-width: 0; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.cand-seg::-webkit-scrollbar { display: none; }
.cand-seg button {
  border: none; background: transparent; font-family: inherit;
  font-size: 12.5px; font-weight: 500; color: var(--ov-ink-3);
  padding: 6px 10px; border-radius: 6px; cursor: pointer; white-space: nowrap;
  flex: 0 0 auto;
  transition: color .12s, background .12s;
}
.cand-seg button:hover { color: var(--ov-ink); }
.cand-seg button.on {
  background: #fff; color: var(--ov-brand); font-weight: 560; box-shadow: var(--ov-shadow-sm);
}
.cand-seg button .n { font-size: 11px; color: var(--ov-ink-4); margin-left: 4px; font-variant-numeric: tabular-nums; }
.cand-seg button.on .n { color: var(--ov-brand); }

.cand-sel {
  height: 34px; padding: 0 10px; border: 1px solid var(--ov-line); border-radius: 8px;
  font-size: 13px; font-family: inherit; color: var(--ov-ink-2); background: #fff; cursor: pointer;
  flex: 0 0 auto; max-width: 180px;
}
.cand-sel:focus { border-color: var(--ov-brand); outline: none; }
.cand-clear {
  height: 34px; padding: 0 12px; border: 1px solid var(--ov-line); border-radius: 8px;
  background: #fff; font-size: 12.5px; color: var(--ov-ink-3); cursor: pointer; font-family: inherit;
  transition: border-color .15s, color .15s; flex: 0 0 auto; white-space: nowrap;
}
.cand-clear:hover { border-color: var(--ov-brand); color: var(--ov-brand); }

/* 窄屏（平板/手机）才允许折行，避免元素被压得过窄 */
@media (max-width: 820px) {
  .cand-filter { flex-wrap: wrap; }
  .cand-search { flex: 1 1 100%; }
  .cand-seg { flex: 1 1 100%; }
  .cand-sel { flex: 0 1 auto; }
}

/* ── 候选人单元格：头像 / 匹配度环 / 要点 chip / 状态点 / 操作 ── */
.cand-cell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.cand-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 620;
}
.cand-avatar.hi  { background: #DCFCE7; color: #15803D; }
.cand-avatar.mid { background: #DBEAFE; color: #1D4ED8; }
.cand-avatar.lo  { background: #F1F5F9; color: #64748B; }
.cand-name { font-size: 13.5px; font-weight: 560; color: var(--ov-ink); line-height: 1.3; }
.cand-meta { font-size: 11.5px; color: var(--ov-ink-4); margin-top: 2px; }

.cand-score { display: inline-flex; align-items: center; gap: 9px; }
.cand-ring {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.cand-ring.hi  { background: #DCFCE7; color: #15803D; }
.cand-ring.mid { background: #DBEAFE; color: #1D4ED8; }
.cand-ring.lo  { background: #FEF3C7; color: #B45309; }
.cand-ring.na  { background: #F1F5F9; color: var(--ov-ink-4); }
.cand-score-label { font-size: 11.5px; font-weight: 520; white-space: nowrap; }
.cand-score-label.hi  { color: #15803D; }
.cand-score-label.mid { color: #1D4ED8; }
.cand-score-label.lo  { color: #B45309; }
.cand-score-label.na  { color: var(--ov-ink-4); }

.cand-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.cand-tag {
  font-size: 11px; font-weight: 520; padding: 3px 8px; border-radius: 6px;
  background: #F1F5F9; color: var(--ov-ink-3); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cand-tag i { font-style: normal; font-size: 9px; opacity: .72; margin-left: 3px; }
.cand-tag.hi  { background: #ECFDF5; color: #059669; }
.cand-tag.mid { background: var(--ov-brand-50); color: var(--ov-brand); }
.cand-tag.lo  { background: #F8FAFC; color: var(--ov-ink-4); }

/* 匹配度还原分角标（门槛否决但能力分保留时） */
.cand-restore { display: block; font-size: 10px; color: var(--ov-ink-4); margin-top: 1px; white-space: nowrap; }

/* 门槛评估列（列表） */
.cand-gate {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 560; padding: 3px 10px;
  border-radius: 999px; white-space: nowrap;
}
.cand-gate.pass { background: #ECFDF5; color: #059669; }
.cand-gate.fail { background: #FEF2F2; color: #B91C1C; }
.cand-gate.warn { background: #FFFBEB; color: #B45309; }
.cand-gate.na   { background: #F1F5F9; color: var(--ov-ink-4); font-weight: 500; }
.cand-gate-sub {
  display: block; font-size: 10.5px; color: var(--ov-ink-4); margin-top: 4px;
  max-width: 128px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.cand-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 520; padding: 3px 10px;
  border-radius: 999px; white-space: nowrap;
}
.cand-status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: 0 0 5px; }
.cand-status.bl { background: var(--ov-brand-50); color: var(--ov-brand); }
.cand-status.gr { background: #DCFCE7; color: #15803D; }
.cand-status.by { background: #FEF3C7; color: #B45309; }
.cand-status.or { background: #FFEDD5; color: #C2410C; }
.cand-status.rd { background: #FEE2E2; color: #B91C1C; }
.cand-status.pu { background: #EDE9FE; color: #6D28D9; }
.cand-status.gy { background: #F1F5F9; color: var(--ov-ink-3); }

.cand-act {
  color: var(--ov-brand); font-size: 12.5px; font-weight: 540;
  cursor: pointer; white-space: nowrap; background: none; border: none;
  font-family: inherit; padding: 0;
}
.cand-act:hover { text-decoration: underline; }

/* 候选人/岗位表格的次级文字 */
.cand-pos { color: var(--ov-ink-2); font-size: 13px; }
.cand-time { color: var(--ov-ink-4); font-size: 12.5px; white-space: nowrap; }

/* 评分分档（Arco 语义色）*/
.ov-score { font-weight: 500; font-variant-numeric: tabular-nums; }
.ov-score-hi { color: #16A34A; }
.ov-score-mid { color: #D97706; }
.ov-score-lo { color: #94A3B8; }

/* Arco Tag 变体 */
.ov-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 520; padding: 2px 9px;
  border-radius: 999px; white-space: nowrap;
  background: #F1F5F9; color: #475569;
}
.ov-tag-bl { background: #EFF4FF; color: #2563EB; }
.ov-tag-gr { background: #DCFCE7; color: #16A34A; }
.ov-tag-pu { background: #EFF4FF; color: #2563EB; }
.ov-tag-by { background: #FEF3C7; color: #D97706; }
.ov-tag-rd { background: #FEE2E2; color: #DC2626; }
.ov-tag-gy { background: #F8FAFC; color: #475569; }

/* ══════════════════════════════════════════════════════════════
   候选人详情页
   ══════════════════════════════════════════════════════════════ */
.cd-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 16px;
}
.cd-back {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px 0 10px;
  border: 1px solid var(--ov-line); border-radius: 8px; background: #fff;
  font-family: inherit; font-size: 12.5px; font-weight: 520; color: var(--ov-ink-2);
  cursor: pointer; transition: border-color .15s, color .15s;
}
.cd-back:hover { border-color: var(--ov-brand); color: var(--ov-brand); }
.cd-back svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.cd-nav { display: flex; align-items: center; gap: 8px; }
.cd-nav-btn {
  width: 30px; height: 30px; border: 1px solid var(--ov-line); border-radius: 8px;
  background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--ov-ink-3); transition: border-color .12s, color .12s, background .12s;
}
.cd-nav-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cd-nav-btn:hover:not([disabled]) { border-color: var(--ov-brand); color: var(--ov-brand); }
.cd-nav-btn[disabled] { opacity: .35; cursor: not-allowed; }
.cd-nav-count { font-size: 12.5px; color: var(--ov-ink-3); font-variant-numeric: tabular-nums; min-width: 46px; text-align: center; }

.cd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 368px; gap: 16px; align-items: start; }
@media (max-width: 1080px) { .cd-grid { grid-template-columns: minmax(0, 1fr); } }
.cd-col { min-width: 0; }
.cd-col > * + * { margin-top: 16px; }

.cd-card {
  background: #fff; border: 1px solid var(--ov-line);
  border-radius: var(--ov-radius); box-shadow: var(--ov-shadow-sm); overflow: hidden;
}
.cd-card-h {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--ov-line-soft);
}
.cd-card-t { font-size: 13.5px; font-weight: 620; color: var(--ov-ink); }
.cd-card-s { font-size: 11.5px; color: var(--ov-ink-4); margin-top: 2px; }
.cd-body { padding: 18px 20px; }
.cd-body + .cd-body { border-top: 1px solid var(--ov-line-soft); }

/* ── Hero（白卡 + 分数环，与全站浅色语言统一） ── */
.cd-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px 24px;
  background: #fff;
  border-bottom: 1px solid var(--ov-line-soft);
}
.cd-hero-main { min-width: 0; }
.cd-hero-name {
  font-size: 21px; font-weight: 680; color: var(--ov-ink); letter-spacing: .2px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.cd-hero-name .cand-status { font-size: 12px; margin-top: 2px; }
.cd-hero-sub { font-size: 13.5px; color: var(--ov-ink-2); margin-top: 6px; font-weight: 500; }
.cd-hero-meta {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  margin-top: 12px; font-size: 12px; color: var(--ov-ink-3);
}
.cd-hero-meta b { color: var(--ov-ink); font-weight: 560; }
.cd-hero-side { text-align: center; flex: 0 0 auto; }
.cd-ring {
  width: 68px; height: 68px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}
.cd-ring-inner {
  width: 54px; height: 54px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.cd-ring-num {
  font-size: 19px; font-weight: 680; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cd-hero-score-label { font-size: 11.5px; color: var(--ov-ink-4); margin-top: 7px; }
.cd-hero-verdict {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 8px;
  padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 560;
}
.cd-vd-gr { background: #DCFCE7; color: #15803D; }
.cd-vd-by { background: #FEF3C7; color: #B45309; }
.cd-vd-rd { background: #FEE2E2; color: #B91C1C; }
.cd-vd-gy { background: #F1F5F9; color: var(--ov-ink-3); }

/* ── 评估结论 ── */
.cd-verdict { border-radius: 10px; border: 1px solid; padding: 14px 16px; }
.cd-verdict.match   { background: #F0FDF4; border-color: #BBF7D0; }
.cd-verdict.partial { background: #FFFBEB; border-color: #FDE68A; }
.cd-verdict.reject  { background: #FEF2F2; border-color: #FECACA; }
.cd-v-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cd-v-badge { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; color: #fff; }
.cd-verdict.match   .cd-v-badge { background: #16A34A; }
.cd-verdict.partial .cd-v-badge { background: #D97706; }
.cd-verdict.reject  .cd-v-badge { background: #DC2626; }
.cd-v-score { font-size: 11.5px; font-weight: 580; color: var(--ov-ink-3); font-variant-numeric: tabular-nums; }
.cd-v-text { font-size: 13px; line-height: 1.85; color: var(--ov-ink-2); }
.cd-v-p { margin-bottom: 8px; }
.cd-v-p:last-child { margin-bottom: 0; }

/* ── 命中要点 ── */
.cd-hls { display: flex; flex-wrap: wrap; gap: 8px; }
.cd-hl {
  padding: 5px 11px; border-radius: 7px; background: var(--ov-brand-50);
  color: var(--ov-brand-600); border: 1px solid #BFDBFE;
  font-size: 11.5px; font-weight: 500;
}

/* ── 能力匹配条 ── */
.cd-bar-row { display: flex; align-items: center; gap: 12px; }
.cd-bar-row + .cd-bar-row { margin-top: 14px; }
.cd-bar-k { flex: 0 0 56px; font-size: 12px; color: var(--ov-ink-3); }
.cd-bar-k em { display: block; font-style: normal; font-size: 10px; color: var(--ov-ink-4); margin-top: 1px; }
.cd-bar-track { flex: 1; height: 6px; border-radius: 999px; background: #F1F5F9; overflow: hidden; }
.cd-bar-fill { display: block; height: 100%; border-radius: 999px; transition: width .3s ease; }
.cd-bar-v { flex: 0 0 32px; text-align: right; font-size: 12.5px; font-weight: 580; font-variant-numeric: tabular-nums; }

/* ── 硬性门槛评估卡（结论与能力分分离表达） ── */
.cd-gate-item { display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #FEF2F2; border: 1px solid #FECACA; }
.cd-gate-item + .cd-gate-item { margin-top: 8px; }
.cd-gate-ico {
  flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; background: #FEE2E2;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.cd-gate-ico svg { width: 11px; height: 11px; stroke: #DC2626; stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cd-gate-rule { font-size: 12.5px; font-weight: 600; color: #B91C1C; line-height: 1.55; }
.cd-gate-tag { font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.cd-gate-tag.rd   { background: #FEE2E2; color: #B91C1C; }
.cd-gate-tag.gr   { background: #DCFCE7; color: #15803D; }
.cd-gate-tag.warn { background: #FEF3C7; color: #B45309; }
.cd-gate-strategy {
  margin-top: 12px; padding: 9px 12px; border-radius: 9px;
  background: #F8FAFC; border: 1px solid var(--ov-line-soft);
  font-size: 11.5px; color: var(--ov-ink-2); line-height: 1.7;
}
.cd-gate-recover { margin-top: 10px; font-size: 11px; color: var(--ov-ink-4); line-height: 1.6; }
.cd-gate-recover span { display: block; }
.cd-gate-recover button {
  margin-top: 8px; font-family: inherit; font-size: 11.5px;
  color: var(--ov-ink-2); background: #fff; border: 1px solid var(--ov-line);
  border-radius: 7px; padding: 5px 12px; cursor: pointer;
}
.cd-gate-recover button:hover { border-color: var(--ov-brand); color: var(--ov-brand); }
.cd-gate-quiet { display: flex; align-items: center; gap: 9px; }
.cd-gate-ok {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: #DCFCE7;
  display: flex; align-items: center; justify-content: center;
}
.cd-gate-ok svg { width: 12px; height: 12px; stroke: #059669; stroke-width: 2.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cd-gate-quiet-t { font-size: 12.5px; color: #15803D; font-weight: 600; }
.cd-gate-hint { font-size: 12px; color: var(--ov-ink-4); line-height: 1.7; }

/* 逐条判定：证据原文 + 通过项折叠（gate_checks，后端补齐后生效；缺省回退规则原文） */
.cd-gate-ev {
  margin-top: 5px; padding: 7px 10px; border-radius: 8px;
  background: #FFFFFF; border: 1px solid #FECACA;
  font-size: 11.5px; color: var(--ov-ink-3); line-height: 1.65;
}
.cd-gate-ev::before { content: '简历证据'; display: block; font-size: 10px; font-weight: 600; color: var(--ov-ink-4); margin-bottom: 3px; }
.cd-gate-fold { margin-top: 10px; }
.cd-gate-fold summary {
  font-size: 11.5px; color: var(--ov-ink-3); cursor: pointer; user-select: none;
  text-align: center; padding: 4px 0; border-radius: 999px; background: #F8FAFC;
  border: 1px solid var(--ov-line); list-style: none; width: 60%; margin: 0 auto;
}
.cd-gate-fold summary::-webkit-details-marker { display: none; }
.cd-gate-fold[open] summary { color: var(--ov-ink-2); }
.cd-gate-fold .cd-gate-pass-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 12px; border-radius: 10px;
  background: #F8FAFC; border: 1px solid var(--ov-line-soft);
}
.cd-gate-fold .cd-gate-pass-item + .cd-gate-pass-item { margin-top: 6px; }
.cd-gate-fold .cd-gate-pass-item .cd-gate-rule { color: var(--ov-ink-2); font-weight: 520; }
.cd-gate-fold .cd-gate-ico {
  flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; background: #DCFCE7;
  display: flex; align-items: center; justify-content: center;
}
.cd-gate-fold .cd-gate-ico svg { width: 10px; height: 10px; stroke: #059669; stroke-width: 2.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ── 加权公式（能力卡底部，公开口径） ── */
.cd-formula {
  margin-top: 12px; padding: 9px 12px; border-radius: 9px;
  background: #F8FAFC; border: 1px dashed var(--ov-line);
  font-size: 10.5px; color: var(--ov-ink-3); line-height: 1.7;
}
.cd-formula b { color: var(--ov-ink-2); font-variant-numeric: tabular-nums; }

/* ── 筛选流程 ── */
.cd-flow { position: relative; }
.cd-flow-item { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; }
.cd-flow-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #CBD5E1;
  flex: 0 0 8px; margin-top: 5px;
}
.cd-flow-item.on .cd-flow-dot { background: var(--ov-brand); box-shadow: 0 0 0 3px #DBEAFE; }
.cd-flow-k { flex: 0 0 74px; font-size: 12.5px; color: var(--ov-ink-3); }
.cd-flow-v { font-size: 12.5px; color: var(--ov-ink); font-weight: 520; }

/* ── 工作经历时间线 ── */
.cd-tl-item {
  position: relative; padding: 0 0 18px 22px;
  border-left: 1px solid var(--ov-line); margin-left: 5px;
}
.cd-tl-item:last-child { padding-bottom: 2px; }
.cd-tl-dot {
  position: absolute; left: -5px; top: 4px;
  width: 9px; height: 9px; border-radius: 50%; background: #CBD5E1;
}
.cd-tl-item:first-child .cd-tl-dot { background: var(--ov-brand); box-shadow: 0 0 0 3px #DBEAFE; }
.cd-tl-co { font-size: 14px; font-weight: 600; color: var(--ov-ink); }
.cd-tl-sub { display: flex; justify-content: space-between; gap: 10px; margin-top: 3px; }
.cd-tl-pos { font-size: 12px; color: var(--ov-ink-3); }
.cd-tl-period { font-size: 12px; color: var(--ov-ink-4); white-space: nowrap; }
.cd-tl-desc { font-size: 12.5px; color: var(--ov-ink-2); line-height: 1.75; margin-top: 10px; }
.cd-tl-line { position: relative; padding-left: 12px; margin-bottom: 6px; }
.cd-tl-line:last-child { margin-bottom: 0; }
.cd-tl-line::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 4px; height: 4px; border-radius: 50%; background: #CBD5E1;
}

/* ── 教育 ── */
.cd-edu { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; }
.cd-edu + .cd-edu { border-top: 1px dashed var(--ov-line); }
.cd-edu-school { font-size: 13.5px; font-weight: 560; color: var(--ov-ink); }
.cd-edu-sub { font-size: 12px; color: var(--ov-ink-3); margin-top: 2px; }
.cd-edu-period { font-size: 12px; color: var(--ov-ink-4); white-space: nowrap; }

/* ── 自我描述 ── */
.cd-about { font-size: 13px; line-height: 1.85; color: var(--ov-ink-2); }
.cd-about-p { margin-bottom: 7px; }
.cd-about-p:last-child { margin-bottom: 0; }

/* ── 骨架屏 ── */
.cd-sk-hero { height: 132px; background: linear-gradient(135deg, rgba(42,111,245,.16) 0%, rgba(29,78,216,.16) 60%, rgba(30,58,175,.16) 100%); }
.cd-sk-line {
  height: 12px; border-radius: 6px; margin-bottom: 12px;
  background: linear-gradient(90deg, #E2E8F0 25%, #F1F5F9 50%, #E2E8F0 75%);
  background-size: 200% 100%; animation: cd-shimmer 1.4s infinite;
}
.cd-sk-line:last-child { margin-bottom: 0; }
.cd-sk-line.w90 { width: 90%; } .cd-sk-line.w80 { width: 80%; }
.cd-sk-line.w70 { width: 70%; } .cd-sk-line.w50 { width: 50%; }
@keyframes cd-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── 详情页空态/提示 ── */
.cd-hint {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 9px;
  background: #FFFBEB; border: 1px solid #FDE68A;
  font-size: 12.5px; line-height: 1.7; color: #92400E;
}
.cd-hint svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 1px; stroke: #D97706; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cd-empty { padding: 56px 20px; text-align: center; }
.cd-empty-t { font-size: 14px; font-weight: 560; color: var(--ov-ink-2); }
.cd-empty-d { font-size: 12.5px; color: var(--ov-ink-4); margin-top: 6px; }

/* ══════════════════════════════════════════════════════════════
   岗位列表 — 卡片式
   ══════════════════════════════════════════════════════════════ */
.pos-head { display: flex; align-items: center; justify-content: space-between; }
.pos-cards { display: flex; flex-direction: column; gap: 12px; }

.pcard {
  display: flex; align-items: center; gap: 20px;
  background: #fff; border: 1px solid #E2E8F0; border-radius: 4px;
  padding: 16px 20px; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pcard:hover { border-color: #BFD4FA; box-shadow: 0 2px 8px rgba(37,99,235,.08); }
.pcard.closed { background: #F8FAFC; border-color: #E2E8F0; }
.pcard.closed .pc-title { color: #475569; }

.pc-main { flex: 1; min-width: 0; }
.pc-row1 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pc-title {
  font-size: 15px; font-weight: 500; color: #0F172A;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pc-row2 { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #94A3B8; flex-wrap: wrap; }
.pc-meta { display: flex; align-items: center; gap: 5px; }
.pc-meta svg { flex-shrink: 0; }

/* 硬性门槛 chip（橙色，可点击）*/
.rule-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px;
  border-radius: 4px; background: #FEF3C7; color: #D97706;
  font-size: 12px; font-weight: 500; cursor: pointer;
  border: 1px solid transparent; transition: border-color .12s ease, background .12s ease;
}
.rule-chip:hover { border-color: #D97706; background: #FDE9BE; }
.rule-chip svg { flex-shrink: 0; }
.rule-chip.none { background: #F1F5F9; color: #94A3B8; font-weight: 400; }
.rule-chip.none:hover { border-color: #CBD5E1; background: #E2E8F0; color: #475569; }

/* 右侧统计 */
.pc-stats { display: flex; flex-shrink: 0; }
.pc-stat { padding: 0 18px; text-align: right; border-left: 1px solid #F1F5F9; }
.pc-stat:first-child { border-left: none; padding-left: 0; }
.pc-stat-v {
  font-size: 19px; font-weight: 600; color: #0F172A;
  font-variant-numeric: tabular-nums; line-height: 1.2;
}
.pc-stat-v.muted { color: #CBD5E1; }
.pc-stat-k { font-size: 11px; color: #94A3B8; margin-top: 3px; }
.pc-arrow { color: #CBD5E1; flex-shrink: 0; margin-left: 4px; }

/* ══════════════════════════════════════════════════════════════
   隐式要求 编辑弹窗（新增 / 编辑共用）
   ══════════════════════════════════════════════════════════════ */
.cp-modal-mask {
  position: fixed; inset: 0; background: rgba(15,23,42,.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px;
}
.cp-modal {
  width: 720px; max-width: 100%; max-height: 90vh;
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 8px 32px rgba(15,23,42,.16);
  display: flex; flex-direction: column;
}
.cp-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid #E2E8F0; flex-shrink: 0;
}
.cp-modal-head h3 { font-size: 16px; font-weight: 600; color: #0F172A; margin-bottom: 3px; }
.cp-modal-head .sub { font-size: 12px; color: #94A3B8; }
.cp-x {
  width: 28px; height: 28px; border: none; background: transparent; border-radius: 6px;
  color: #94A3B8; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.cp-x:hover { background: #F1F5F9; color: #0F172A; }

.cp-modal-body { padding: 20px 24px; overflow-y: auto; flex: 1; }
.cp-modal-foot {
  display: flex; align-items: center; gap: 10px; padding: 16px 24px;
  border-top: 1px solid #E2E8F0; background: #F8FAFC; flex-shrink: 0;
}
.cp-modal-foot .left { font-size: 12px; color: #94A3B8; margin-right: auto; }

.cp-field-label {
  font-size: 13px; font-weight: 600; color: #0F172A; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.cp-field-label .hint { font-size: 11px; font-weight: 400; color: #94A3B8; }

#rulesText {
  width: 100%; min-height: 88px; padding: 10px 12px;
  border: 1px solid #E2E8F0; border-radius: 6px;
  font-size: 13px; font-family: inherit; color: #0F172A;
  line-height: 1.7; resize: vertical; outline: none; background: #fff;
}
#rulesText:focus { border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,.10); }
#rulesText::placeholder { color: #CBD5E1; }

.cp-input-acts { display: flex; align-items: center; gap: 8px; margin-top: 10px; }

.cp-btn {
  height: 32px; padding: 0 16px; border-radius: 6px; border: 1px solid #E2E8F0;
  background: #fff; font-size: 13px; color: #475569; cursor: pointer;
  font-family: inherit; display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; line-height: 1;
}
.cp-btn:hover { border-color: #2563EB; color: #2563EB; }
.cp-btn.pri { background: #2563EB; border-color: #2563EB; color: #fff; font-weight: 500; }
.cp-btn.pri:hover { background: #1D4ED8; border-color: #1D4ED8; color: #fff; }
.cp-btn:disabled { opacity: .5; cursor: not-allowed; }
.cp-btn:disabled:hover { border-color: #E2E8F0; color: #475569; }
.cp-btn.pri:disabled:hover { background: #2563EB; color: #fff; }
.cp-btn.danger { background: #DC2626; border-color: #DC2626; color: #fff; font-weight: 500; }
.cp-btn.danger:hover { background: #B91C1C; border-color: #B91C1C; color: #fff; }

/* 统一确认弹窗（confirmDialog / promptDialog 共用）：紧凑头部（无分隔线），按钮统一右下 */
.cf-modal { width: 400px; }
.cf-modal .cp-modal-head { padding: 20px 24px 0; border-bottom: none; }
.cf-modal .cp-modal-body { padding: 8px 24px 20px; }
.cf-modal .cp-modal-foot { border-top: none; background: transparent; padding: 0 24px 20px;
  gap: 8px; justify-content: flex-end; }
.cf-modal .cp-modal-foot .cp-btn { margin: 0; min-width: 88px; }
.cf-msg { font-size: 13px; color: #475569; line-height: 1.7; margin: 0; }

/* 轻量提示 toast：顶部居中，不阻断操作 */
#toastHost { position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 2000; display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none; }
.toast { max-width: 480px; padding: 9px 16px; border-radius: 8px; font-size: 13px;
  line-height: 1.5; box-shadow: 0 8px 24px rgba(15,23,42,.12);
  opacity: 0; transform: translateY(-8px); transition: opacity .22s ease, transform .22s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.info { background: #0F172A; color: #F8FAFC; }
.toast.success { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }
.toast.error { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }

.cp-result { margin-top: 18px; padding-top: 18px; border-top: 1px solid #E2E8F0; display: none; }
.cp-result.show { display: block; }
.cp-grp { margin-bottom: 14px; }
.cp-grp:last-child { margin-bottom: 0; }
.cp-grp-title { font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.cp-grp-title.hf { color: #DC2626; }
.cp-grp-title.sp { color: #D97706; }
.cp-grp-title.ec { color: #2563EB; }
.cp-grp-list { list-style: none; padding-left: 2px; margin: 0; }
.cp-grp-list li {
  font-size: 13px; color: #475569; line-height: 1.9;
  padding-left: 14px; position: relative; word-break: break-word;
}
.cp-grp-list li::before { content: '·'; position: absolute; left: 4px; color: #94A3B8; font-weight: 700; }
.cp-grp-list.ec li { padding-left: 2px; }
.cp-grp-list.ec li::before { content: ''; }

.cp-loading {
  display: none; align-items: center; gap: 8px;
  font-size: 13px; color: #94A3B8; padding: 14px 0;
}
.cp-loading.show { display: flex; }
.cp-loading .spinner {
  width: 14px; height: 14px; border: 2px solid #E2E8F0; border-top-color: #2563EB;
  border-radius: 50%; animation: cpSpin .7s linear infinite;
}
@keyframes cpSpin { to { transform: rotate(360deg); } }

.cp-noresult {
  display: none; margin-top: 14px; padding: 14px;
  background: #FEF3C7; border-radius: 6px;
  font-size: 12px; color: #92400E; line-height: 1.7;
}
.cp-noresult.show { display: block; }

/* ══════════════════════════════════════════════════════════════
   计划页 v4 — 主从布局（左列表 · 右详情）
   设计稿：mockups/plans-v4.html，对齐 DESIGN.md / LIST-DESIGN.md
   ══════════════════════════════════════════════════════════════ */

/* 加载骨架 */
.pl-loading { display: flex; flex-direction: column; gap: 12px; }
.pl-loading i { display: block; height: 92px; border-radius: var(--ov-radius);
  background: linear-gradient(90deg, #F1F5F9 25%, #F8FAFC 45%, #F1F5F9 65%);
  background-size: 200% 100%; animation: plShimmer 1.3s infinite; }
@keyframes plShimmer { to { background-position: -200% 0; } }

/* 页头 + 新建按钮 */
.pl-head { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 20px; }
.pl-head .console-page-head { margin-bottom: 0; }

/* 计划新建/编辑弹窗 */
.pm-modal { width: 560px; }
.pm-note { display: flex; gap: 8px; align-items: flex-start; background: #EFF6FF;
  border: 1px solid #BFDBFE; color: #1D4ED8; border-radius: 6px;
  padding: 10px 12px; font-size: 12px; line-height: 1.7; margin-bottom: 16px; }
.pm-note svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 2px; }
.pm-input { width: 100%; height: 34px; padding: 0 10px; box-sizing: border-box;
  border: 1px solid #E2E8F0; border-radius: 6px; background: #fff;
  font-size: 13px; font-family: inherit; color: #0F172A; outline: none;
  transition: border-color .15s, box-shadow .15s; }
.pm-input:focus { border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,.10); }
.pm-input::placeholder { color: #CBD5E1; }
.pm-checks { border: 1px solid #E2E8F0; border-radius: 6px; max-height: 150px;
  overflow-y: auto; padding: 4px 0; }
.pm-pos-q { margin-bottom: 8px; }
.pm-check { display: flex; align-items: center; gap: 8px; padding: 7px 12px;
  font-size: 13px; color: #0F172A; cursor: pointer; }
.pm-check:hover { background: #F8FAFC; }
.pm-check input { margin: 0; accent-color: #2563EB; }
.pm-none { padding: 12px; font-size: 12px; color: #94A3B8; text-align: center; }
.pm-auto { padding: 12px 0 0; }
.pm-err { display: none; margin-top: 12px; font-size: 12px; color: #B91C1C;
  background: #FEE2E2; border-radius: 6px; padding: 8px 12px; }
.pm-err.show { display: block; }

/* ── 账单与发票（账户页）── */
.bill-note { display: flex; align-items: center; gap: 4px; background: #EFF6FF;
  border: 1px solid #BFDBFE; color: #1D4ED8; border-radius: 6px;
  padding: 9px 12px; font-size: 12px; line-height: 1.6; margin-bottom: 14px; }
.bill-link { border: none; background: none; padding: 0; font: inherit;
  color: #2563EB; font-weight: 500; cursor: pointer; text-decoration: underline;
  text-underline-offset: 2px; }
.bill-link:hover { color: #1D4ED8; }
.bill-head { display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; }
.bill-head-tip { font-size: 12px; color: #94A3B8; }
.iv-modal { width: 560px; }
.iv-orders { max-height: 190px; overflow-y: auto; border: 1px solid var(--ov-line);
  border-radius: 8px; background: #fff; margin: 8px 0 16px; }
.iv-orow { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; }
.iv-orow:hover { background: #F8FAFC; }
.iv-orow + .iv-orow { border-top: 1px solid var(--ov-line-soft); }
.iv-orow input[type="checkbox"] { width: 15px; height: 15px; flex: 0 0 auto; accent-color: #2563EB; cursor: pointer; }
.iv-all { margin-left: auto; display: flex; align-items: center; gap: 5px; font-size: 12px;
  font-weight: 400; color: var(--ov-ink-2); cursor: pointer; }
.iv-all input[type="checkbox"] { width: 14px; height: 14px; accent-color: #2563EB; cursor: pointer; }
.iv-omain { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.iv-odesc { font-size: 13px; font-weight: 500; color: var(--ov-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iv-ometa { font-size: 11.5px; color: var(--ov-ink-4); font-variant-numeric: tabular-nums; }
.iv-oamt { flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--ov-ink);
  font-variant-numeric: tabular-nums; }
.iv-empty, .iv-loading { padding: 26px 0; text-align: center; font-size: 12.5px; color: #94A3B8; }
.cp-modal-foot .left b { color: var(--ov-ink); font-size: 13px; margin-left: 2px; }
.iv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.iv-sel { width: 100%; height: 34px; padding: 0 10px; box-sizing: border-box;
  border: 1px solid #E2E8F0; border-radius: 6px; background: #fff;
  font-size: 13px; font-family: inherit; color: #0F172A; outline: none;
  transition: border-color .15s, box-shadow .15s; }
.iv-sel:focus { border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,.10); }

/* 本月额度横幅（账号级，全页仅此一处） */
.pl-mq { display: flex; align-items: center; gap: 16px; background: #fff;
  border: 1px solid var(--ov-line); border-radius: var(--ov-radius);
  box-shadow: var(--ov-shadow-sm); padding: 12px 20px; margin-bottom: 16px; }
.pl-mq-t { flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--ov-ink); }
.pl-mq-bar { flex: 1 1 auto; height: 6px; min-width: 120px; border-radius: 999px;
  background: #F1F5F9; overflow: hidden; }
.pl-mq-bar i { display: block; height: 100%; border-radius: 999px; background: var(--ov-brand);
  transition: width .3s ease; }
.pl-mq-num { flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--ov-ink);
  font-variant-numeric: tabular-nums; }
.pl-mq-num em { font-style: normal; font-weight: 400; color: var(--ov-ink-4); }
.pl-mq-fig { flex: 0 0 auto; font-size: 12px; color: var(--ov-ink-4);
  font-variant-numeric: tabular-nums; }

/* 主从栅格 */
.pl-io { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 960px) { .pl-io { grid-template-columns: 1fr; } }

/* 左：计划列表（LIST-DESIGN §2 卡片行，间距 12px） */
.pl-list { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 76px; }
@media (max-width: 960px) { .pl-list { position: static; } }
.pl-item { position: relative; display: block; width: 100%; text-align: left;
  background: #fff; border: 1px solid var(--ov-line); border-radius: var(--ov-radius);
  box-shadow: var(--ov-shadow-sm); padding: 14px 16px; cursor: pointer;
  font-family: inherit; overflow: hidden;
  transition: border-color .15s, box-shadow .15s; }
.pl-item:hover { border-color: var(--ov-line-strong, #CBD5E1); box-shadow: var(--ov-shadow-md); }
.pl-item:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.pl-item.sel { border-color: var(--ov-brand); }

.pl-i-r1 { display: flex; align-items: center; gap: 8px; }
.pl-i-name { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 600; color: var(--ov-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-i-r2 { font-size: 12px; color: var(--ov-ink-4); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-i-r3 { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.pl-i-bar { flex: 1 1 auto; height: 4px; border-radius: 999px; background: #F1F5F9; overflow: hidden; }
.pl-i-bar i { display: block; height: 100%; border-radius: 999px; background: var(--ov-brand); }
.pl-i-bar.full i { background: var(--ov-amber); }
.pl-i-greet { flex: 0 0 auto; font-size: 12px; font-weight: 600; color: var(--ov-ink-2);
  font-variant-numeric: tabular-nums; }
.pl-i-greet em { font-style: normal; font-weight: 400; color: var(--ov-ink-4); }
.pl-i-when { font-size: 12px; color: var(--ov-ink-4); margin-top: 8px;
  font-variant-numeric: tabular-nums; }

/* 列表 chip 复用候选人页的 .stat-chip（bl/pu/gr 已有定义） */

/* 右：详情面板（单张卡，分节 1px 分隔线，不套卡片） */
.pl-detail { background: #fff; border: 1px solid var(--ov-line);
  border-radius: var(--ov-radius); box-shadow: var(--ov-shadow-sm); overflow: hidden; min-height: 420px; }
.pl-dt-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px;
  border-bottom: 1px solid var(--ov-line); }
.pl-dt-hmain { flex: 1 1 auto; min-width: 0; }
.pl-dt-name { font-size: 20px; font-weight: 700; letter-spacing: -.2px; color: var(--ov-ink); line-height: 1.3; }
.pl-dt-sub { font-size: 12px; color: var(--ov-ink-4); margin-top: 4px; font-variant-numeric: tabular-nums; }
/* 头部配置要点行：岗位一行，关键参数用浅灰小徽章 */
.pl-cfg-meta { margin-top: 8px; font-size: 12px; line-height: 1.8; min-width: 0; }
.pl-cfg-meta .pos { display: block; color: var(--ov-ink-2); font-weight: 500; }
.pl-cfg-meta .cfg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pl-cfg-meta .mi { display: inline-flex; align-items: center; gap: 3px;
  background: #F8FAFC; border: 1px solid #F1F5F9; border-radius: 6px;
  padding: 3px 10px; color: var(--ov-ink-4); }
.pl-cfg-meta .mi b { font-weight: 600; color: var(--ov-ink); font-variant-numeric: tabular-nums; }
.pl-dt-ops { flex: 0 0 auto; display: flex; gap: 16px; padding-top: 4px; }
.pl-op { background: none; border: none; padding: 0; cursor: pointer; font-family: inherit;
  font-size: 13px; font-weight: 500; color: var(--ov-brand); }
.pl-op:hover { text-decoration: underline; }
.pl-op:disabled { opacity: .5; cursor: not-allowed; text-decoration: none; }
.pl-op.danger { color: var(--ov-red); }

.pl-sec { padding: 20px; border-bottom: 1px solid var(--ov-line); }
.pl-sec:last-child { border-bottom: none; }
.pl-sec-t { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pl-sec-t b { font-size: 13px; font-weight: 600; color: var(--ov-ink); }
.pl-sec-t span { font-size: 12px; color: var(--ov-ink-4); font-variant-numeric: tabular-nums; }
.pl-sec-loading { text-align: center; color: var(--ov-ink-4); font-size: 13px; padding: 48px 20px; }

/* 提醒行（浅底横条） */
.pl-note { display: flex; align-items: center; gap: 8px; border-radius: 6px;
  padding: 8px 12px; font-size: 12px; font-weight: 500; }
.pl-note.warn { background: #FEF3C7; color: #B45309; }
.pl-note.danger { background: #FEE2E2; color: #B91C1C; }

/* 今日额度行 */
.pl-qrow { display: flex; align-items: center; gap: 12px; }
.pl-qrow .lab { flex: 0 0 auto; font-size: 12px; color: var(--ov-ink-4); }
.pl-qrow .bar { flex: 1 1 auto; height: 6px; border-radius: 999px; background: #F1F5F9; overflow: hidden; }
.pl-qrow .bar i { display: block; height: 100%; border-radius: 999px; background: var(--ov-brand); }
.pl-qrow .bar.full i { background: var(--ov-amber); }
.pl-qrow .v { flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--ov-ink);
  font-variant-numeric: tabular-nums; }
.pl-qrow .v em { font-style: normal; font-weight: 400; color: var(--ov-ink-4); }

/* 批次 chips：单行横向滚动，轮次多时不折行堆高 */
.pl-batch { display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto;
  padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: thin; }
.pl-batch::-webkit-scrollbar { height: 4px; }
.pl-batch::-webkit-scrollbar-thumb { background: #E2E8F0; border-radius: 999px; }
.pl-batch::-webkit-scrollbar-track { background: transparent; }
.pl-bchip { flex: 0 0 auto; height: 28px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--ov-line);
  background: #fff; color: var(--ov-ink-2); font-size: 12px; font-family: inherit; cursor: pointer;
  font-variant-numeric: tabular-nums; }
.pl-bchip:hover { border-color: #CBD5E1; }
.pl-bchip:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.pl-bchip[aria-pressed="true"] { background: var(--ov-brand-50); border-color: var(--ov-brand);
  color: var(--ov-brand); font-weight: 600; }

/* 处置分布：横向条形列表（单一柔和色，数值靠右侧文字表达） */
.pl-dist-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.pl-dist-row:last-child { margin-bottom: 0; }
.pl-dist-lab { flex: 0 0 72px; font-size: 12px; color: var(--ov-ink-2); }
.pl-dist-track { flex: 1 1 auto; height: 8px; border-radius: 999px; background: #F1F5F9; overflow: hidden; }
.pl-dist-track i { display: block; height: 100%; border-radius: 999px; min-width: 6px;
  background: #93C5FD; }
.pl-dist-val { flex: 0 0 56px; text-align: right; font-size: 12px; font-weight: 600;
  color: var(--ov-ink); font-variant-numeric: tabular-nums; }
.pl-dist-val span { font-weight: 400; color: var(--ov-ink-4); }

/* 最近处置（真实筛选记录；带 data-sr-id 的行可点击进入候选人详情） */
.pl-rc-row { display: flex; align-items: center; gap: 10px; padding: 9px 0;
  border-bottom: 1px solid var(--ov-line-soft); font-size: 13px; }
.pl-rc-row:last-child { border-bottom: none; padding-bottom: 0; }
.pl-rc-row[data-sr-id] { cursor: pointer; }
.pl-rc-row[data-sr-id]:hover .pl-rc-name { color: var(--ov-brand); }
.pl-rc-name { flex: 0 0 auto; font-weight: 500; color: var(--ov-ink); }
.pl-rc-pos { flex: 1 1 auto; min-width: 0; font-size: 12px; color: var(--ov-ink-4);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-rc-score { flex: 0 0 auto; font-weight: 600; color: var(--ov-ink-2); font-variant-numeric: tabular-nums; }
.pl-rc-time { margin-left: auto; flex: 0 0 auto; font-size: 12px; color: var(--ov-ink-4);
  font-variant-numeric: tabular-nums; }

/* 分节内空态 */
.pl-sec-empty { padding: 24px 16px; text-align: center; color: var(--ov-ink-4); font-size: 13px; }
.pl-sec-empty b { display: block; font-size: 15px; font-weight: 600; color: var(--ov-ink-2);
  margin-bottom: 4px; }

/* 页级空态（LIST-DESIGN §5） */
.pl-empty { background: #fff; border: 1px dashed #CBD5E1; border-radius: var(--ov-radius);
  padding: 64px 24px; text-align: center; }
.pl-empty svg { width: 48px; height: 48px; stroke: #CBD5E1; fill: none; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round; }
.pl-empty h3 { font-size: 15px; font-weight: 600; color: #334155; margin-top: 12px; }
.pl-empty p { font-size: 13px; color: var(--ov-ink-4); max-width: 380px; margin: 8px auto 0; line-height: 1.6; }

/* ── 通知页（feed 流式列表）────────────────────── */
.ntf-feed { border: 1px solid var(--ov-line); border-radius: 12px; background: #fff;
  overflow: hidden; }
.ntf-row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 14px 18px; border: none; background: none; cursor: pointer; font: inherit; }
.ntf-row + .ntf-row { border-top: 1px solid var(--ov-line-soft); }
.ntf-row:hover { background: #F8FAFC; }
.ntf-row.unread { background: #F0F6FF; }
.ntf-row.unread:hover { background: #E8F1FE; }
.ntf-ico { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; }
.ntf-ico svg { width: 17px; height: 17px; }
.ntf-ico.inv { background: #EFF6FF; color: var(--ov-brand); }
.ntf-ico.sys { background: #F1F5F9; color: #64748B; }
.ntf-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ntf-row-title { font-size: 13.5px; font-weight: 500; color: var(--ov-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ntf-row.unread .ntf-row-title { font-weight: 600; }
.ntf-row-sub { font-size: 12.5px; color: var(--ov-ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ntf-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.ntf-row-time { font-size: 11.5px; color: var(--ov-ink-4); font-variant-numeric: tabular-nums; }
.ntf-row.unread .ntf-row-time::before { content: ''; display: inline-block; width: 6px; height: 6px;
  border-radius: 999px; background: var(--ov-brand); margin-right: 6px; vertical-align: 1px; }
.ntf-dl { font-size: 11.5px; font-weight: 500; color: var(--ov-brand); cursor: pointer; }
.ntf-dl:hover { color: #1D4ED8; text-decoration: underline; }

/* ── 通知详情弹窗 ─────────────────────────────── */
.nf-modal { width: 440px; }
.nf-body { font-size: 13px; color: #475569; line-height: 1.7; margin: 0 0 14px; }
.nf-fields { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px 14px;
  background: #F8FAFC; border-radius: 8px; padding: 14px 16px; }
.nf-k { font-size: 12px; color: var(--ov-ink-4); padding-top: 1px; }
.nf-v { font-size: 13px; color: var(--ov-ink); min-width: 0; word-break: break-all; }
.nf-v b { font-weight: 600; }
.nf-note { font-size: 12px; color: var(--ov-ink-4); margin: 10px 0 0; }
.bell-seg { display: flex; gap: 4px; margin-bottom: 6px; }
.bell-seg button { border: none; background: none; padding: 3px 8px; border-radius: 999px;
  font-size: 12px; color: var(--ov-ink-4); cursor: pointer; font-family: inherit; }
.bell-seg button:hover { color: var(--ov-ink); background: #F1F5F9; }
.bell-seg button.on { color: var(--ov-brand); background: #EFF6FF; font-weight: 500; }
.bell-seg button .n { font-size: 11px; margin-left: 3px; font-variant-numeric: tabular-nums;
  color: var(--ov-ink-4); }
.bell-seg button.on .n { color: var(--ov-brand); }

/* ── 岗位详情页 ─────────────────────────────────── */
.pd-head { background: #fff; border: 1px solid var(--ov-line); border-radius: var(--ov-radius);
  box-shadow: var(--ov-shadow-sm); padding: 18px 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.pd-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pd-title { font-size: 19px; font-weight: 680; letter-spacing: -.2px; }
.pd-meta { display: flex; align-items: center; gap: 14px; margin-top: 7px; font-size: 13px;
  color: var(--ov-ink-3); flex-wrap: wrap; }
.pd-meta .m { display: inline-flex; align-items: center; gap: 5px; }
.pd-meta svg { color: var(--ov-ink-4); }
.pd-actions { display: flex; gap: 8px; flex-shrink: 0; }
.icon-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--ov-line); background: #fff;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ov-ink-3);
  flex: 0 0 auto; }
.icon-btn:hover { color: var(--ov-brand); border-color: var(--ov-brand); }

.pd-tabs { display: flex; gap: 4px; margin: 0 auto 14px; background: #fff; border: 1px solid var(--ov-line);
  border-radius: 10px; box-shadow: var(--ov-shadow-sm); padding: 4px; width: fit-content; }
.pd-tab { border: none; background: none; font: inherit; font-size: 13px; font-weight: 500; color: var(--ov-ink-3);
  cursor: pointer; height: 32px; padding: 0 16px; border-radius: 7px; display: inline-flex; align-items: center; gap: 6px; }
.pd-tab:hover { color: var(--ov-ink); }
.pd-tab.on { background: var(--ov-brand-50); color: var(--ov-brand); font-weight: 600; }
.pd-tab .n { font-size: 11px; background: #EEF2F7; color: var(--ov-ink-4); border-radius: 999px;
  height: 17px; min-width: 17px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-variant-numeric: tabular-nums; }
.pd-tab.on .n { background: #DBEAFE; color: var(--ov-brand); }

.pd-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.pd-kpi-ico { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center;
  justify-content: center; }

.pd-card { background: #fff; border: 1px solid var(--ov-line); border-radius: var(--ov-radius);
  box-shadow: var(--ov-shadow-sm); }
.pd-card-head { display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px; border-bottom: 1px solid var(--ov-line-soft); }
.pd-card-head h3 { font-size: 13.5px; font-weight: 620; color: var(--ov-ink); display: flex; align-items: center; gap: 7px; }
.pd-card-head h3 svg { color: var(--ov-brand); }

/* 设置：左右分栏 */
.setup-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; align-items: start; }
.rgroup { margin-bottom: 16px; }
.rgroup:last-child { margin-bottom: 0; }
.rgroup-title { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 620;
  color: var(--ov-ink-2); margin-bottom: 8px; }
.rgroup-title .dot { width: 7px; height: 7px; border-radius: 999px; flex: 0 0 auto; }
.rgroup-title .hint { font-weight: 400; color: var(--ov-ink-4); font-size: 11px; }

/* JD 卡 */
.jd-body { padding: 16px 18px 18px; }
.jd-text { font-size: 13px; line-height: 1.8; color: var(--ov-ink-2); white-space: pre-line; }
.jd-text.clamped { max-height: 300px; overflow: hidden; position: relative; }
.jd-text.clamped::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 44px;
  background: linear-gradient(transparent, #fff); }
.jd-toggle { border: none; background: none; font: inherit; font-size: 12.5px; color: var(--ov-brand);
  cursor: pointer; margin-top: 10px; padding: 0; font-weight: 500; }
.jd-toggle:hover { color: var(--ov-brand-600); }
.jd-edit-area textarea { width: 100%; min-height: 300px; border: 1px solid var(--ov-line); border-radius: 9px;
  padding: 12px; font: inherit; font-size: 12.5px; line-height: 1.7; color: var(--ov-ink-2); resize: vertical; }
.jd-edit-area textarea:focus { outline: none; border-color: var(--ov-brand); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.edit-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.edit-actions .ov-btn { height: 30px; padding: 0 12px; font-size: 12.5px; }
.jd-foot { padding: 9px 18px 11px; border-top: 1px solid var(--ov-line-soft); font-size: 11.5px; color: var(--ov-ink-4); }

/* 筛选条件卡 */
.rules-body { padding: 14px 18px 18px; }
.rule-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--ov-line-soft); border-radius: 9px; background: #FAFBFD; font-size: 12.5px;
  color: var(--ov-ink-2); line-height: 1.55; }
.rule-row + .rule-row { margin-top: 6px; }
.rule-row .rk { flex: 0 0 auto; font-size: 10.5px; font-weight: 600; color: var(--ov-brand);
  background: var(--ov-brand-50); border-radius: 5px; padding: 2px 7px; margin-top: 1px; letter-spacing: .3px; }
.rule-row .rk.sp { color: #B45309; background: #FEF3C7; }
.rule-row > svg { flex: 0 0 auto; margin-top: 2px; color: var(--ov-green); }
.rule-row.soft > svg { color: var(--ov-amber); }
.ec-text { font-size: 12.5px; color: var(--ov-ink-2); line-height: 1.6; padding: 10px 12px;
  background: #F8FAFC; border: 1px solid var(--ov-line-soft); border-radius: 9px; }
.rules-foot { padding: 9px 18px 11px; border-top: 1px solid var(--ov-line-soft);
  display: flex; justify-content: space-between; align-items: center; }
.rules-foot .tip { font-size: 11.5px; color: var(--ov-ink-4); }

.mini-empty { display: flex; align-items: center; gap: 12px; border: 1px dashed #CBD5E1;
  border-radius: 10px; padding: 13px 16px; background: #FAFBFD; }
.mini-empty .ico { color: #CBD5E1; flex: 0 0 auto; display: flex; }
.mini-empty .tx { font-size: 12.5px; color: var(--ov-ink-3); line-height: 1.5; }
.mini-empty .tx b { color: var(--ov-ink-2); font-weight: 600; display: block; font-size: 12.5px; }

@media (max-width: 900px) {
  .pd-kpis { grid-template-columns: repeat(2, 1fr); }
  .setup-cols { grid-template-columns: 1fr; }
}

/* 岗位列表状态页签 */
.pos-seg { margin-bottom: 12px; width: fit-content; flex: 0 0 auto; }
