/* =========================================================================
   隆栖管理网页端 · 设计系统 v2.0 —「烟雨江南」
   清爽现代 / 黛蓝主调 / 高效数据后台
   保留所有现有 class 名，仅重写样式。
   web-v0.8.3：去 Google Fonts —— 正文用系统黑体栈（苹方/微软雅黑，秒出、国内永不失败、与思源黑体近乎无差），
   数字/等宽用【自托管】IBM Plex Mono（./fonts/*.woff，国内稳）。
   ========================================================================= */

/* ===== 自托管 IBM Plex Mono（web-v0.8.3：去 Google Fonts；数字等宽自带、国内稳；weight-range 覆盖 400~700）===== */
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400 550;font-display:swap;src:url('./fonts/IBMPlexMono-Regular.woff') format('woff');}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:551 700;font-display:swap;src:url('./fonts/IBMPlexMono-Bold.woff') format('woff');}

/* ========================= CSS Variables (Design Tokens) ========================= */
:root {
  /* 品牌色 */
  --primary: #1F3B63;
  --primary-deep: #16294A;
  --primary-tint: #EFF6FF;
  --primary-on: #FFFFFF;

  /* 中性色阶 */
  --bg: #F8FAFC;
  --bg-alt: #F1F5F9;
  --surface: #FFFFFF;
  --surface-alt: #F8FAFC;
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #64748B;
  --line: #E2E8F0;
  --line-2: #CBD5E1;

  /* 语义色 */
  --success: #16A34A;
  --success-tint: #DCFCE7;
  --warning: #D97706;
  --warning-tint: #FEF3C7;
  --danger: #DC2626;
  --danger-tint: #FEE2E2;
  --off: #94A3B8;
  --off-tint: #F1F5F9;

  /* 侧栏 */
  --side-bg: #102039;
  --side-bg-2: #1E293B;
  --side-ink: #CBD5E1;
  --side-line: #334155;
  --side-active: rgba(37,99,235,0.25);

  /* KPI 多色 */
  --k1: #2563EB; --k1t: #EFF6FF;
  --k2: #0891B2; --k2t: #ECFEFF;
  --k3: #D97706; --k3t: #FEF3C7;
  --k4: #16A34A; --k4t: #DCFCE7;
  --k5: #7C3AED; --k5t: #F3E8FF;
  --k6: #DC2626; --k6t: #FEE2E2;

  /* 全局颜色别名（兼容旧 var 名） */
  --paper: var(--bg);
  --paper-2: var(--bg-alt);
  --panel: var(--surface);
  --panel-2: var(--surface-alt);
  --jade: var(--primary);
  --jade-deep: var(--primary-deep);
  --jade-tint: var(--primary-tint);
  --amber: var(--warning);
  --amber-tint: var(--warning-tint);
  --clay: var(--danger);
  --clay-tint: var(--danger-tint);
  --side: var(--side-bg);
  --side-2: var(--side-bg-2);

  /* 字体 */
  --sans: system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Hiragino Sans GB', sans-serif;
  --mono: 'IBM Plex Mono', 'JetBrains Mono', 'Courier New', monospace;

  /* 圆角 */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* 阴影 */
  --shadow-xs: 0 1px 2px rgba(15,23,42,.04);
  --shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md: 0 4px 6px -1px rgba(15,23,42,.06), 0 2px 4px -2px rgba(15,23,42,.04);
  --shadow-lg: 0 10px 15px -3px rgba(15,23,42,.08), 0 4px 6px -4px rgba(15,23,42,.04);
  --shadow-xl: 0 20px 25px -5px rgba(15,23,42,.10), 0 8px 10px -6px rgba(15,23,42,.04);

  /* 焦点环 */
  --ring: 0 0 0 3px rgba(37,99,235,0.18);

  /* 过渡 */
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ========================= Reset / Base ========================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }

body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: rgba(37,99,235,.18); color: var(--ink); }
input, select, textarea, button { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ========================= 登录页 ========================= */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.login-aurora {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(700px 420px at 30% 30%, rgba(37,99,235,.15), transparent 60%),
    radial-gradient(600px 400px at 72% 68%, rgba(8,145,178,.10), transparent 60%),
    linear-gradient(160deg, #0F172A, #1E293B 60%, #0F172A);
}
.login-card {
  position: relative; z-index: 1; width: 380px; max-width: 92vw;
  padding: 44px 40px 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}
.brand { text-align: center; margin-bottom: 28px; }
.brand-mark {
  font-family: var(--sans); font-weight: 800; font-size: 42px;
  letter-spacing: 8px; color: var(--primary); line-height: 1;
}
.brand-sub {
  margin-top: 10px; color: var(--muted); font-size: 13px; letter-spacing: 1px;
}
.ver { display: inline-block; margin-left: 6px; font-family: var(--mono); font-size: 11px;
  color: var(--primary); border: 1px solid var(--primary); border-radius: var(--radius-sm);
  padding: 1px 7px; }

.login-form label {
  display: block; font-size: 13px; font-weight: 600; color: var(--ink-2);
  margin: 16px 0 6px; letter-spacing: .5px;
}
.login-form input {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface); font-size: 15px; color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.login-form input::placeholder { color: var(--muted); }
.login-form input:focus {
  outline: none; border-color: var(--primary); box-shadow: var(--ring);
}

/* 登录按钮 */
.btn-primary {
  width: 100%; margin-top: 22px; padding: 12px 24px;
  border: none; border-radius: var(--radius);
  color: var(--primary-on); font-size: 15px; font-weight: 700;
  letter-spacing: 4px;
  background: var(--primary);
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
  transition: background .15s var(--ease), transform .12s var(--ease), box-shadow .15s var(--ease);
}
.btn-primary:hover { background: var(--primary-deep); transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,.45); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.login-msg { min-height: 20px; margin-top: 12px; color: var(--danger); font-size: 13px; text-align: center; }
.login-foot { margin-top: 20px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.6; }

/* ========================= 应用骨架 ========================= */
.app-wrap { display: flex; min-height: 100vh; }

/* 侧栏 */
.side {
  width: 226px; flex: 0 0 226px;
  background: linear-gradient(180deg, var(--side-bg), var(--side-bg-2));
  color: var(--side-ink);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  border-right: 1px solid rgba(0,0,0,.25);
  z-index: 30;
}
.side-brand {
  padding: 22px 20px 16px;
  border-bottom: 1px solid var(--side-line);
  display: flex; align-items: baseline; gap: 8px;
}
.sb-mark {
  font-family: var(--sans); font-weight: 800; font-size: 24px;
  letter-spacing: 4px; color: #F1F5F9;
}
.sb-sub { font-size: 12px; letter-spacing: 2px; color: var(--muted); }

/* 导航 */
.nav {
  padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1;
}
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--side-ink);
  text-decoration: none; font-size: 14px; font-weight: 500;
  letter-spacing: .3px;
  cursor: pointer;
  transition: background .14s var(--ease), color .14s var(--ease);
}
.nav a i {
  font-style: normal; width: 28px; height: 28px; flex: 0 0 28px;
  display: grid; place-items: center; border-radius: var(--radius-sm);
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,.06); color: var(--muted);
  transition: background .14s var(--ease), color .14s var(--ease);
}
.nav a:hover { background: rgba(255,255,255,.06); color: #F1F5F9; }
.nav a:hover i { color: #F1F5F9; }
.nav a.active {
  background: var(--side-active); color: #F1F5F9;
  box-shadow: inset 3px 0 0 var(--primary);
}
.nav a.active i { background: var(--primary); color: var(--primary-on); }

/* v2.5：「线索管理」父分组标题 + 子项缩进 */
.nav-group-label {
  margin: 8px 12px 2px; padding: 6px 0 2px;
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  color: var(--muted); text-transform: none;
  border-top: 1px solid var(--side-line);
}
.nav a.nav-sub { padding-left: 22px; }
.nav a.nav-sub i { width: 24px; height: 24px; flex-basis: 24px; font-size: 12px; }

.side-foot {
  padding: 12px 20px; font-family: var(--mono); font-size: 10.5px;
  color: var(--muted); border-top: 1px solid var(--side-line);
}

/* 主内容区 */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* 顶栏 */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px;
  padding: 0 24px; height: 56px;
  background: rgba(248,250,252,.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.crumb {
  font-family: var(--sans); font-weight: 700; font-size: 18px;
  letter-spacing: .5px; color: var(--ink); white-space: nowrap;
}

/* 搜索 */
.search { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search input {
  width: 240px; padding: 8px 12px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface); font-size: 13px; color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), width .2s var(--ease);
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); width: 280px; }

/* 账户区 */
.acct { display: flex; align-items: center; gap: 10px; }
.acct-name { font-size: 13px; font-weight: 500; color: var(--ink-2); }

/* ========================= 按钮系统 ========================= */
.btn-ghost {
  padding: 7px 14px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface); font-size: 13px; font-weight: 500;
  color: var(--ink-2);
  transition: border-color .14s var(--ease), color .14s var(--ease),
              background .14s var(--ease), box-shadow .14s var(--ease);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost:focus-visible { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.btn-ghost:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost.sm { padding: 6px 11px; font-size: 12px; }
.btn-ghost.warn {
  border-color: rgba(220,38,38,.45); color: var(--danger);
}
.btn-ghost.warn:hover { background: var(--danger); border-color: var(--danger); color: #FFF; }

.btn-amber {
  padding: 8px 16px; border: none; border-radius: var(--radius);
  color: #FFF; font-size: 13px; font-weight: 600; letter-spacing: .3px;
  background: var(--warning);
  box-shadow: 0 4px 12px rgba(217,119,6,.30);
  transition: background .14s var(--ease), transform .12s var(--ease), box-shadow .14s var(--ease);
}
.btn-amber:hover { background: #B45309; transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(217,119,6,.35); }
.btn-amber:active { transform: translateY(0); }
.btn-amber:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-jade {
  padding: 8px 16px; border: none; border-radius: var(--radius);
  color: #FFF; font-size: 13px; font-weight: 600; letter-spacing: .3px;
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(37,99,235,.30);
  transition: background .14s var(--ease), transform .12s var(--ease), box-shadow .14s var(--ease);
}
.btn-jade:hover { background: var(--primary-deep); transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37,99,235,.40); }
.btn-jade:active { transform: translateY(0); }
.btn-jade:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* 认领按钮 */
.claim-btn { font-weight: 600; border-color: var(--primary); color: var(--primary); }
.claim-btn:hover { background: var(--primary); color: #FFF; border-color: var(--primary); }
.claim-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ========================= 内容区 ========================= */
.content { padding: 24px 28px 60px; }

/* ========================= 状态反馈 ========================= */
.loading, .empty, .err {
  padding: 48px 16px; text-align: center; font-size: 15px; line-height: 1.6;
}
.loading { color: var(--muted); }
.empty { color: var(--muted); }
.err { color: var(--danger); }

/* ========================= 区块标题 ========================= */
.section-title {
  font-family: var(--sans); font-weight: 700; font-size: 16px; letter-spacing: .3px;
  color: var(--ink); margin: 28px 0 10px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.section-title:first-child { margin-top: 0; }
.section-title .tag {
  font-family: var(--sans); font-weight: 500; font-size: 12px; color: var(--muted);
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-full);
  padding: 2px 10px; letter-spacing: .2px;
}
.section-title .btn-amber.sm { margin-left: auto; }

/* ========================= Note / 提示条 ========================= */
.note {
  margin-top: 14px; padding: 12px 16px;
  background: var(--surface-alt); border: 1px solid var(--line);
  border-left: 3px solid var(--warning);
  border-radius: var(--radius);
  color: var(--ink-2); font-size: 13px; line-height: 1.7;
}
.note b { color: var(--ink); font-weight: 600; }

.muted { color: var(--muted); }
.link {
  color: var(--primary); cursor: pointer;
  border-bottom: 1px dashed rgba(37,99,235,.4);
  transition: border-color .14s var(--ease);
}
.link:hover { border-bottom-style: solid; }

/* ========================= KPI 卡片 ========================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}
.kpi {
  position: relative; overflow: hidden;
  padding: 16px 16px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  animation: kpiRise .4s var(--ease) both;
}
.kpi::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--kc, var(--primary));
  border-radius: 0 2px 2px 0;
}
.kpi::after {
  content: ''; position: absolute; right: -16px; top: -16px;
  width: 56px; height: 56px; border-radius: 50%;
  background: radial-gradient(circle,
    color-mix(in srgb, var(--kc, var(--primary)) 18%, transparent),
    transparent 70%);
  opacity: .7;
}
.kpi .label { font-size: 13px; color: var(--muted); letter-spacing: .5px; font-weight: 500; }
.kpi .num {
  font-family: var(--mono); font-weight: 600; font-size: 32px;
  letter-spacing: -.5px; color: var(--ink); margin-top: 6px; line-height: 1;
}
.kpi.accent { border-color: color-mix(in srgb, var(--kc, var(--primary)) 28%, var(--line)); }
.kpi.accent .num { color: var(--kc, var(--primary)); }
.kpi.accent::after {
  background: radial-gradient(circle,
    color-mix(in srgb, var(--kc, var(--primary)) 22%, transparent),
    transparent 70%);
}
.kpi.clickable {
  cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), border-color .15s var(--ease);
}
.kpi.clickable:hover {
  transform: translateY(-2px);
  border-color: var(--kc, var(--primary));
  box-shadow: 0 12px 28px -12px color-mix(in srgb, var(--kc, var(--primary)) 40%, transparent);
}
.kpi.clickable .label::after {
  content: ' →'; color: var(--kc, var(--primary)); font-weight: 600;
}

/* KPI 按位置着色 */
.cards .kpi:nth-child(1) { --kc: var(--k1); }
.cards .kpi:nth-child(2) { --kc: var(--k4); }
.cards .kpi:nth-child(3) { --kc: var(--k3); }
.cards .kpi:nth-child(4) { --kc: var(--k5); }
.cards .kpi:nth-child(5) { --kc: var(--k2); }
.cards .kpi:nth-child(6) { --kc: var(--k6); }
.cards .kpi:nth-child(7) { --kc: var(--k1); }
.cards .kpi:nth-child(8) { --kc: var(--k3); }
.cards .kpi:nth-child(n+9) { --kc: var(--k2); }

@keyframes kpiRise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.cards .kpi:nth-child(1) { animation-delay: .02s; }
.cards .kpi:nth-child(2) { animation-delay: .05s; }
.cards .kpi:nth-child(3) { animation-delay: .08s; }
.cards .kpi:nth-child(4) { animation-delay: .11s; }
.cards .kpi:nth-child(5) { animation-delay: .14s; }
.cards .kpi:nth-child(6) { animation-delay: .17s; }
.cards .kpi:nth-child(7) { animation-delay: .20s; }
.cards .kpi:nth-child(8) { animation-delay: .23s; }

/* ========================= 表格 ========================= */
table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
}
thead th {
  background: var(--bg-alt); color: var(--ink-2);
  font-weight: 600; font-size: 12.5px; letter-spacing: .3px;
  text-align: left; padding: 11px 14px;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
  text-transform: none;
}
tbody td {
  padding: 11px 14px; border-bottom: 1px solid var(--line);
  font-size: 14px; color: var(--ink); vertical-align: middle;
  line-height: 1.4;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .12s var(--ease); }
tbody tr:nth-child(even) { background: var(--surface-alt); }
tbody tr:hover { background: var(--primary-tint); }

th.num, td.num {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
th.sortable { cursor: pointer; user-select: none; transition: color .14s var(--ease); }
th.sortable:hover { color: var(--primary); }
.sort-arrow { display: inline-block; margin-left: 4px; font-size: 10px; color: var(--line-2);
  transition: color .14s var(--ease); }
th.sortable:hover .sort-arrow { color: var(--ink-2); }
.sort-arrow.on { color: var(--primary); }

td .cust {
  color: var(--primary); cursor: pointer; font-weight: 500;
  border-bottom: 1px dashed rgba(37,99,235,.35);
  transition: border-color .14s var(--ease);
}
td .cust:hover { border-bottom-style: solid; }

/* ========================= 工具条 / 筛选条 ========================= */
.toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
  font-size: 13px;
}
.toolbar .muted { font-size: 13px; letter-spacing: .3px; }
.toolbar input[type=date] {
  padding: 7px 10px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface); font-family: var(--mono); font-size: 13px; color: var(--ink);
  transition: border-color .15s var(--ease);
}
.toolbar input[type=date]:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.toolbar .sep { color: var(--muted); }
.toolbar input[type=file] {
  font-size: 13px; font-family: var(--sans); color: var(--ink-2);
  padding: 6px 4px; max-width: 100%;
}

.filter-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
  font-size: 13px; color: var(--ink-2); letter-spacing: .3px;
}
.filter-bar select {
  padding: 7px 12px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface); font-size: 13px; color: var(--ink);
  cursor: pointer;
  transition: border-color .15s var(--ease);
}
.filter-bar select:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }

/* 区间快捷选择 */
.range-chips { display: flex; gap: 4px; }
.range-chips button {
  padding: 6px 12px;
  border: 1px solid var(--line-2); border-radius: var(--radius-full);
  background: var(--surface); font-size: 12px; font-weight: 500; color: var(--ink-2);
  transition: all .14s var(--ease);
}
.range-chips button:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-tint); }

/* ========================= Pill / Tag ========================= */
.pill {
  display: inline-block; padding: 2px 10px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600; letter-spacing: .2px; line-height: 1.6;
}
.pill.green { background: var(--success-tint); color: var(--success); }
.pill.red { background: var(--danger-tint); color: var(--danger); }
.pill.amber { background: var(--warning-tint); color: var(--warning); }
.pill.off { background: var(--off-tint); color: var(--off); }
/* 本轮：有录音=醒目(实心金)、有报告=次一级(实心青) */
.pill.rec { background: var(--warning); color: #fff; }
.pill.rep { background: var(--success); color: #fff; }
/* 本轮：「带看过」标签（实心紫，区别于金/青；与有录音/有报告独立可共存） */
.pill.shown { background: #7C3AED; color: #fff; }
/* 本轮：「带看过」筛选开关激活态（复用 .btn-ghost.sm，激活后实心紫） */
.btn-ghost.active { background: #7C3AED; border-color: #7C3AED; color: #fff; }
.btn-ghost.active:hover { background: #6D28D9; border-color: #6D28D9; color: #fff; }
/* 本轮：进入逾期弹层（mgr/super/hr 按人列「谁逾期了几个」）*/
.od-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1200; display: flex; align-items: center; justify-content: center; }
.od-panel { background: var(--card, #fff); border-radius: 14px; padding: 18px 20px; width: min(420px, 92vw); max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.od-h { font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.od-x { cursor: pointer; color: var(--muted, #888); font-weight: 400; }
.od-list { overflow-y: auto; }
.od-prow { display: flex; justify-content: space-between; align-items: center; padding: 9px 2px; border-bottom: 1px solid var(--line, #eee); }

/* ========================= 标签页 ========================= */
.tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.tabs button {
  padding: 8px 16px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface); font-size: 13px; font-weight: 500; color: var(--ink-2);
  transition: all .14s var(--ease);
}
.tabs button:hover { border-color: var(--primary); color: var(--primary); }
.tabs button.active {
  background: var(--primary); color: var(--primary-on); border-color: var(--primary);
}

/* ========================= 每日趋势柱状图 ========================= */
.bars {
  display: flex; align-items: flex-end; gap: 6px; height: 160px;
  padding: 14px 16px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}
.bar {
  flex: 1 0 28px; min-width: 28px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  height: 100%; justify-content: flex-end;
}
.bar .v { font-family: var(--mono); font-size: 11px; color: var(--ink-2); font-weight: 500; }
.bar .col {
  width: 60%; min-height: 3px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--primary), var(--primary-deep));
  transition: height .35s var(--ease);
}
.bar .d { font-family: var(--mono); font-size: 10px; color: var(--muted); }

/* ========================= v2.5 数据统计图表区（内联 SVG·零外部依赖）========================= */
.stat-charts { margin-top: 22px; }
.chart-pair {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start;
}
.chart-card {
  flex: 1 1 320px; min-width: 280px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 12px 14px 10px;
}
.ch-svg { display: block; width: 100%; height: auto; }
.ch-title { fill: var(--ink); font-size: 13px; font-weight: 600; }
.ch-axis { fill: var(--muted); font-size: 10px; font-family: var(--mono); }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-line { stroke: var(--primary); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-dot { fill: #fff; stroke: var(--primary); stroke-width: 1.5; }
.ch-rname { fill: var(--ink-2); font-size: 11px; font-weight: 500; }
.ch-rval { fill: var(--ink-2); font-size: 11px; font-family: var(--mono); font-weight: 600; }
.chart-switch { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.chart-switch .muted { font-size: 13px; letter-spacing: .3px; }
.chart-tab {
  padding: 6px 16px;
  border: 1px solid var(--line-2); border-radius: var(--radius-full);
  background: var(--surface); font-size: 13px; font-weight: 500; color: var(--ink-2);
  cursor: pointer; transition: all .14s var(--ease);
}
.chart-tab:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-tint); }
.chart-tab.on { border-color: var(--primary); background: var(--primary); color: var(--primary-on); }

/* ========================= 缩略图 / 灯箱 ========================= */
.thumbs { display: flex; gap: 4px; flex-wrap: wrap; }
.thumbs img {
  width: 42px; height: 42px; object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  cursor: pointer;
  transition: transform .12s var(--ease), border-color .12s var(--ease);
}
.thumbs img:hover { transform: scale(1.08); border-color: var(--primary); }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  background: rgba(15,23,42,.78); backdrop-filter: blur(4px);
  cursor: zoom-out;
}
.lightbox.show { display: flex; }
.lightbox img {
  max-width: 88vw; max-height: 88vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

/* ========================= 分页 ========================= */
.pager {
  display: flex; align-items: center; gap: 12px; justify-content: center;
  margin-top: 16px;
}
.pager button {
  padding: 7px 14px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface); font-size: 13px; color: var(--ink-2);
  font-weight: 500;
  transition: border-color .14s var(--ease), color .14s var(--ease);
}
.pager button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pager button:disabled { opacity: .4; cursor: not-allowed; }
.pager .pinfo { font-family: var(--mono); font-size: 13px; color: var(--muted); }

.backlink {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 4px; color: var(--primary); cursor: pointer;
  font-size: 13px; font-weight: 500;
  transition: color .14s var(--ease);
}
.backlink:hover { color: var(--primary-deep); }

/* ========================= 客户详情抽屉 ========================= */
.drawer { position: fixed; inset: 0; z-index: 120; display: none; }
.drawer.show { display: block; }
.drawer-mask {
  position: absolute; inset: 0;
  background: rgba(15,23,42,.4); backdrop-filter: blur(2px);
  animation: drawerFade .2s var(--ease) both;
}
.drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(540px, 92vw);
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  animation: drawerSlide .26s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes drawerSlide { to { transform: none; } }
@keyframes drawerFade { from { opacity: 0; } to { opacity: 1; } }

.drawer-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.drawer-title { font-family: var(--sans); font-weight: 700; font-size: 18px; color: var(--ink); }
.drawer-body { padding: 22px 24px 40px; overflow-y: auto; flex: 1; }

/* 详情 Hero */
.d-hero { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 2px; }
.d-name {
  font-family: var(--sans); font-weight: 700; font-size: 24px;
  letter-spacing: .5px; color: var(--ink);
}
.d-code { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.d-phone {
  font-family: var(--mono); font-size: 17px; color: var(--primary);
  margin: 6px 0 2px; letter-spacing: .5px; font-weight: 500;
}
.d-phone .reveal-btn { margin-left: 10px; vertical-align: middle; }
.d-phone .reveal-btn:disabled { opacity: .5; cursor: not-allowed; }
.d-extra { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.d-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 2px; }

/* 详情区块 */
.d-sec { margin-top: 22px; }
.d-sec-h {
  font-family: var(--sans); font-weight: 700; font-size: 15px;
  color: var(--primary); letter-spacing: .3px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line-2);
  margin-bottom: 12px;
}
.d-sec-h .tag { font-family: var(--sans); font-weight: 400; font-size: 12px; color: var(--muted); }

.d-grid {
  display: grid; grid-template-columns: auto 1fr; gap: 8px 16px;
}
.d-grid dt { color: var(--muted); font-size: 13px; white-space: nowrap; font-weight: 500; }
.d-grid dd { margin: 0; font-size: 14px; color: var(--ink); word-break: break-all; }
.d-grid dd.mono { font-family: var(--mono); }

/* 合作人 */
.coop-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px;
}
.coop-row:last-child { border-bottom: none; }
.coop-row .since { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.coop-del {
  margin-left: 8px; font-size: 12px; color: var(--danger); cursor: pointer;
  border-bottom: 1px dashed rgba(220,38,38,.4);
}
.coop-del:hover { color: #B91C1C; border-bottom-style: solid; }

/* ========================= 跟进时间线 ========================= */
.timeline { position: relative; padding-left: 18px; }
.timeline::before {
  content: ''; position: absolute; left: 5px; top: 4px; bottom: 4px;
  width: 2px; background: var(--line-2);
}
.tl-item { position: relative; padding: 0 0 16px 6px; }
.tl-item::before {
  content: ''; position: absolute; left: -16px; top: 4px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}
.tl-item.tl-tag::before { background: var(--warning); box-shadow: 0 0 0 3px var(--warning-tint); }
.tl-item.tl-note::before { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-tint); }
.tl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 3px; }
.tl-date { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.tl-author { font-size: 12.5px; color: var(--muted); }
.tl-body { font-size: 14px; color: var(--ink); line-height: 1.65; }
.tl-appt {
  display: inline-block; margin-top: 4px;
  font-family: var(--mono); font-size: 12px; color: var(--warning); font-weight: 500;
}

/* ========================= 管理跟进 ========================= */
.note-del {
  margin-left: auto; font-size: 12px; color: var(--danger); cursor: pointer;
  border-bottom: 1px dashed rgba(220,38,38,.4);
}
.note-del:hover { color: #B91C1C; border-bottom-style: solid; }
.note-add { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; }
.note-add textarea {
  flex: 1; resize: vertical; min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--sans); font-size: 14px; line-height: 1.55; color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.note-add textarea::placeholder { color: var(--muted); }
.note-add textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.note-msg { min-height: 16px; margin-top: 6px; font-size: 13px; color: var(--danger); }

/* ========================= 编辑客户区 ========================= */
.ed-row {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px;
}
.ed-row:last-of-type { border-bottom: none; }
.ed-row.ed-col { flex-direction: column; align-items: stretch; }
.ed-row.ed-col .ed-lab { align-self: flex-start; }
.ed-lab { min-width: 72px; font-size: 13px; color: var(--muted); white-space: nowrap; font-weight: 500; }
.ed-hint { font-size: 12px; color: var(--muted); }
.ed-row input, .ed-row textarea, .ed-row select {
  flex: 1; min-width: 120px;
  padding: 8px 11px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface); font-family: var(--sans); font-size: 14px; color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.ed-row textarea { resize: vertical; line-height: 1.55; }
.ed-row input:focus, .ed-row textarea:focus, .ed-row select:focus {
  outline: none; border-color: var(--primary); box-shadow: var(--ring);
}
.ed-row .btn-ghost.sm { flex: none; }
.ed-row.ed-col .btn-ghost.sm { align-self: flex-end; }
.ed-inline { display: flex; gap: 8px; align-items: center; }
.ed-inline input { flex: 1; }
.ed-phones { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.ed-phone {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface); font-family: var(--mono); font-size: 13px;
}
.ph-del { color: var(--danger); cursor: pointer; font-weight: 700; padding: 0 2px; }
.ph-del:hover { color: #B91C1C; }

/* 级别按钮 */
.gd-btn {
  width: 36px; height: 32px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink-2);
  cursor: pointer;
  transition: border-color .14s var(--ease), color .14s var(--ease), background .14s var(--ease);
}
.gd-btn:hover { border-color: var(--primary); color: var(--primary); }
.gd-btn.on { background: var(--primary); border-color: var(--primary); color: var(--primary-on); }

/* 跟进行 */
.fu-row {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  margin-top: 10px; font-size: 13px; color: var(--ink-2);
}
.fu-row label { display: flex; gap: 8px; align-items: center; }
.fu-row input[type="date"] {
  padding: 7px 10px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface); font-family: var(--sans); font-size: 13px; color: var(--ink);
  transition: border-color .15s var(--ease);
}
.fu-row input[type="date"]:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }

/* ========================= 录音报告 ========================= */
.rep-row { border-top: 1px solid var(--line); padding: 8px 0; }
.rep-row:first-child { border-top: 0; }
.rep-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.rep-who { font-weight: 700; }
.rep-meta { color: var(--muted); font-size: 12.5px; flex: 1; }
.rep-pdf { display: inline-block; margin: 6px 0; color: var(--primary); text-decoration: underline;
  font-size: 13px; }
.rep-text {
  white-space: pre-wrap; word-break: break-word;
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 10px; margin-top: 6px; font-size: 13px; line-height: 1.6;
  max-height: 360px; overflow: auto;
}
/* web-v0.8.4：报告正文内联渲染容器（HTML 消毒后 / Markdown 渲染后都套这套排版，配蓝灰皮） */
.rep-html {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-top: 6px; font-size: 13.5px; line-height: 1.7;
  color: var(--ink-2); word-break: break-word; max-height: 460px; overflow: auto;
}
.rep-html h1, .rep-html h2, .rep-html h3, .rep-html h4, .rep-html h5, .rep-html h6 {
  color: var(--ink); font-weight: 700; line-height: 1.35; margin: 14px 0 6px;
}
.rep-html h1 { font-size: 17px; } .rep-html h2 { font-size: 15.5px; } .rep-html h3 { font-size: 14.5px; }
.rep-html h4, .rep-html h5, .rep-html h6 { font-size: 13.5px; color: var(--ink-2); }
.rep-html > :first-child { margin-top: 0; }
.rep-html p { margin: 6px 0; }
.rep-html ul, .rep-html ol { margin: 6px 0; padding-left: 22px; }
.rep-html li { margin: 3px 0; }
.rep-html strong, .rep-html b { color: var(--ink); font-weight: 700; }
.rep-html hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.rep-html blockquote {
  margin: 8px 0; padding: 6px 12px; color: var(--muted);
  border-left: 3px solid var(--primary); background: var(--primary-tint); border-radius: 0 6px 6px 0;
}
.rep-html code {
  font-family: var(--mono, ui-monospace, monospace); font-size: 12.5px;
  background: var(--bg-alt); padding: 1px 5px; border-radius: 4px;
}
.rep-html pre { background: var(--bg-alt); border-radius: 6px; padding: 10px; overflow: auto; }
.rep-html pre code { background: none; padding: 0; }
.rep-html table { border-collapse: collapse; width: 100%; margin: 8px 0; font-size: 13px; }
.rep-html th, .rep-html td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.rep-html th { background: var(--bg-alt); color: var(--ink); font-weight: 600; }
.rep-html a { color: var(--primary); text-decoration: underline; }
.rep-html + .rep-pdf { margin-top: 8px; font-size: 12.5px; color: var(--muted); text-decoration: underline; }

/* ===== web-v0.8.5：思为/Aidee 报告「彩色卡片」（识别分块后套我们自管的安全样式；复用本皮的设计变量，仍是蓝灰皮）===== */
.rep-cards { margin-top: 6px; max-height: 540px; overflow: auto; }
.rep-cards + .rep-pdf { margin-top: 8px; font-size: 12.5px; color: var(--muted); text-decoration: underline; }
.rc-hero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; }
.rc-eyebrow { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); font-weight: 700; margin-bottom: 6px; }
.rc-title { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.rc-hero .rc-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.rc-sum { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rc-sum-item { flex: 1 1 120px; min-width: 108px; background: var(--primary-tint); border: 1px solid #BFDBFE; border-radius: 10px; padding: 8px 12px; }
.rc-sum-l { font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--primary); font-weight: 600; margin-bottom: 3px; }
.rc-sum-v { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.rc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rc-chip { font-size: 11px; padding: 3px 9px; border-radius: 20px; background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink-2); }
.rc-card { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--line-2); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.rc-card .rc-label { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.rc-card .rc-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--off); display: inline-block; flex-shrink: 0; }
.rc-card .rc-ctitle { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.45; margin-bottom: 5px; }
.rc-card .rc-text { font-size: 13.5px; line-height: 1.7; color: var(--ink-2); white-space: pre-line; margin: 4px 0; }
.rc-card .rc-text.rc-muted { font-size: 12.5px; color: var(--muted); }
.rc-card .rc-quote { border-left: 3px solid var(--line-2); background: var(--bg-alt); border-radius: 0 6px 6px 0; padding: 7px 10px; margin: 7px 0; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.rc-card .rc-quote-src { font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.rc-hero .rc-quote { border-left: 3px solid var(--primary); background: var(--primary-tint); border-radius: 0 6px 6px 0; padding: 7px 10px; margin: 12px 0 0; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.rc-card ul.rc-bul { margin: 6px 0; padding-left: 18px; }
.rc-card ul.rc-bul li { margin: 3px 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.rc-card table.rc-tbl { border-collapse: collapse; width: 100%; margin: 6px 0; font-size: 12.5px; }
.rc-card table.rc-tbl th, .rc-card table.rc-tbl td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; line-height: 1.5; }
.rc-card table.rc-tbl th { background: var(--bg-alt); color: var(--ink); font-weight: 600; font-size: 11px; }
/* 四色变体（蓝=整体判断 / 绿=确认·行动 / 黄=洞察·话术 / 红=风险·断点；权威取自思为自标 block-*） */
.rc-card.blue { background: var(--primary-tint); border-color: #BFDBFE; border-left-color: var(--primary); }
.rc-card.blue .rc-label { color: var(--primary-deep); } .rc-card.blue .rc-label::before { background: var(--primary); } .rc-card.blue .rc-ctitle { color: var(--primary-deep); }
.rc-card.green { background: var(--success-tint); border-color: #BBF7D0; border-left-color: var(--success); }
.rc-card.green .rc-label { color: #15803D; } .rc-card.green .rc-label::before { background: var(--success); }
.rc-card.amber { background: var(--warning-tint); border-color: #FCD34D; border-left-color: var(--warning); }
.rc-card.amber .rc-label { color: #B45309; } .rc-card.amber .rc-label::before { background: var(--warning); }
.rc-card.red { background: var(--danger-tint); border-color: #FCA5A5; border-left-color: var(--danger); }
.rc-card.red .rc-label { color: #B91C1C; } .rc-card.red .rc-label::before { background: var(--danger); }

/* ========================= 概览看板 ========================= */
/* web-v0.9：首页数据看板三栏网格（.span2=左侧大块占两列）。.board 仅首页 viewOverview 用，改它不影响其它视图。 */
.board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; align-items: start;
  margin-top: 18px;
}
.board .span2 { grid-column: span 2; }
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.panel-head h3 {
  font-family: var(--sans); font-weight: 700; font-size: 15px;
  letter-spacing: .3px; color: var(--ink); margin: 0;
}
.panel-head .tag {
  font-size: 12px; color: var(--muted);
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius-full); padding: 2px 10px;
}

/* 客户池分布条 */
.dist { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.dist-row { display: flex; align-items: center; gap: 12px; }
.dist-row .nm { flex: 0 0 56px; width: 56px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.dist-row .track {
  flex: 1; height: 10px; border-radius: 5px;
  background: var(--bg-alt); overflow: hidden;
}
.dist-row .fill { height: 100%; border-radius: 5px; transition: width .4s var(--ease); }
.dist-row .v {
  flex: 0 0 96px; width: 96px; text-align: right;
  font-family: var(--mono); font-size: 13px; color: var(--ink-2);
}
.dist-row .v small { color: var(--muted); font-size: 11px; margin-left: 4px; }
.fill.f1 { background: var(--k1); }
.fill.f2 { background: var(--k3); }
.fill.f3 { background: var(--k2); }
.fill.f4 { background: var(--k4); }

/* 概览右侧 */
.ov-side { display: flex; flex-direction: column; padding: 6px 18px 4px; }
.ov-line {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px dashed var(--line);
}
.ov-line:last-child { border-bottom: none; }
.ov-line .k { font-size: 13px; color: var(--ink-2); }
.ov-line .val { font-family: var(--mono); font-size: 18px; font-weight: 600; color: var(--primary); }
.ov-note {
  padding: 13px 18px; border-top: 1px solid var(--line);
  font-size: 13px; line-height: 1.7; color: var(--ink-2);
}
.ov-note b { color: var(--ink); }

/* ========================= 积分排名 ========================= */
.sc-toolbar { display: flex; align-items: center; gap: 10px; margin: 10px 0; flex-wrap: wrap; }
.sc-week { font-weight: 700; font-family: var(--mono); font-size: 14px; color: var(--ink); }
.sc-note { color: var(--muted); font-size: 12.5px; margin: 4px 0 12px; line-height: 1.6; }
.sc-list { display: flex; flex-direction: column; gap: 10px; }

/* v2.4 汗水币·自助兑换：我的钱包卡 */
.coin-mine { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 10px 0 16px;
  background: linear-gradient(135deg, var(--card), #f3faf6); }
.coin-mine-top { display: flex; align-items: center; justify-content: space-between; }
.coin-mine-label { font-weight: 700; color: var(--ink); }
.coin-mine-bal { font-family: var(--mono); font-weight: 700; font-size: 22px; color: var(--primary-deep); }
.coin-mine-act { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0 4px; }
/* v2.4.1：规则句 / 今日剩余 / 条数输入框 / 预校验提示 / 个人-部门切换 */
.coin-rule { font-size: 12px; margin-bottom: 8px; }
.coin-mine-sub { font-size: 12px; margin: 4px 0 2px; }
.coin-qty { width: 64px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font-family: var(--mono); text-align: center; }
.coin-hint { font-size: 12px; color: #c0392b; }
.coin-scope { display: flex; gap: 8px; margin: 12px 0 4px; }
.coin-scope-btn { padding: 5px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--muted); cursor: pointer; font-size: 13px; }
.coin-scope-btn.on { background: var(--primary-deep); border-color: var(--primary-deep); color: #fff; }
.coin-led { display: flex; flex-direction: column; margin-top: 8px; border-top: 1px solid var(--line); }
.coin-led-empty { margin-top: 10px; }
.coin-led-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.coin-led-l { display: flex; flex-direction: row; align-items: baseline; gap: 10px; }
.coin-led-rsn { font-size: 13px; color: var(--ink); }
.coin-led-when { font-size: 11.5px; color: var(--muted); font-family: var(--mono); }
.coin-led-delta { font-family: var(--mono); font-weight: 700; font-size: 14px; }
.coin-led-delta.neg { color: #c0392b; }
.coin-led-delta.pos { color: #1a7a4a; }

.sc-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: border-color .14s var(--ease), box-shadow .14s var(--ease);
}
.sc-row:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }

.sc-rank { width: 36px; text-align: center; font-size: 20px; flex: none; }
.sc-num { font-family: var(--mono); font-weight: 700; color: var(--ink-2); font-size: 15px; }
.sc-main { flex: 1; min-width: 0; }
.sc-line { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sc-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.sc-total { font-family: var(--mono); font-weight: 700; color: var(--primary); font-size: 16px; }
.sc-track {
  height: 6px; background: var(--primary-tint);
  border-radius: 3px; margin: 6px 0; overflow: hidden;
}
.sc-fill { height: 100%; background: var(--primary); border-radius: 3px; }
.sc-detail { color: var(--muted); font-size: 12px; line-height: 1.5; }

/* ========================= 批量导入 ========================= */
.imp-help {
  margin: 2px 0 14px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  font-size: 13px; line-height: 1.7; color: var(--ink-2);
}
.imp-help > div { margin: 2px 0; }
.imp-help b { color: var(--ink); font-weight: 600; }

.imp-summary {
  margin: 14px 0 4px; padding: 14px 16px;
  background: var(--surface-alt);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  line-height: 1.8;
}
.imp-summary.ok { background: var(--success-tint); border-color: #BBF7D0; }
.imp-summary b { color: var(--primary); font-family: var(--mono); }
.imp-summary .muted { font-size: 12.5px; color: var(--muted); }
.imp-big { font-family: var(--sans); font-weight: 700; font-size: 17px; color: var(--ink); margin-top: 4px; }
.imp-big b { font-size: 20px; color: var(--primary); }

.imp-pend-owner {
  margin: 12px 0 4px; padding: 13px 15px;
  background: var(--warning-tint);
  border: 1px solid var(--warning);
  border-left: 3px solid var(--warning);
  border-radius: var(--radius);
  line-height: 1.7;
}
.imp-pend-owner .ipo-h { font-size: 13px; color: var(--ink-2); margin-bottom: 9px; }
.imp-pend-owner .ipo-h b { font-family: var(--mono); color: var(--danger); }
.imp-pend-owner .ipo-table { overflow: auto; }
.imp-pend-owner table {
  width: 100%; border-collapse: collapse; font-size: 13px;
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
}
.imp-pend-owner th {
  text-align: left; font-weight: 600; color: var(--muted);
  background: var(--bg-alt); padding: 7px 10px;
  border-bottom: 1px solid var(--line); font-size: 12px;
}
.imp-pend-owner td {
  padding: 7px 10px; border-bottom: 1px solid var(--line); color: var(--ink);
}
.imp-pend-owner td.num { font-family: var(--mono); }
.imp-pend-owner .ipo-ta {
  width: 100%; box-sizing: border-box; resize: vertical;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.7;
  padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface); color: var(--ink-2);
}

/* ========================= 改密弹窗 ========================= */
.modal-mask {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15,23,42,.46); backdrop-filter: blur(2px);
}
.modal-card {
  width: 380px; max-width: 92vw;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 24px 26px 22px;
  box-shadow: var(--shadow-xl);
}
.modal-title { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.modal-hint { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 8px; }
.modal-card label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--ink-2); margin: 14px 0 6px; letter-spacing: .5px;
}
.modal-card input {
  width: 100%; padding: 11px 13px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface); font-size: 14px; color: var(--ink);
  box-sizing: border-box;
  transition: border-color .15s var(--ease);
}
.modal-card input:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.modal-actions {
  display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px;
}
.modal-actions .btn-primary { width: auto; margin-top: 0; padding: 10px 22px; letter-spacing: 0; }
.modal-actions .btn-ghost { padding: 10px 18px; }

/* ========================= 动效偏好 ========================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ========================= 响应式 ========================= */
/* web-v0.9 首页看板三栏：大屏 3 列；中屏(≤1200)2 列、左大块仍占满整行；小屏(≤860)单列。 */
@media (max-width: 1400px) {
  .board { gap: 14px; }
}
@media (max-width: 1200px) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board .span2 { grid-column: span 2; }
}
@media (max-width: 860px) {
  .board { grid-template-columns: 1fr; }
  .board .span2 { grid-column: span 1; }
}

@media (max-width: 860px) {
  .side { width: 64px; flex-basis: 64px; }
  .sb-sub, .side-foot { display: none; }
  .nav a { justify-content: center; font-size: 0; gap: 0; overflow: hidden; }
  .nav a i { font-size: 14px; }
  .search input { width: 130px; }
  .search input:focus { width: 160px; }
  .content { padding: 16px 16px 40px; }
  .drawer-panel { width: 92vw; }
}

/* ===== web-v0.8.3 补全：app.js 用到、v2 未显式给规则的 3 个 class ===== */
/* 报告展开容器（reportGet 的 PDF 链 + 正文塞这里；.rep-pdf/.rep-text 已在上面有样式）*/
.rep-detail { margin-top: 6px; }
.rep-detail:empty { margin-top: 0; }
/* 「查看报告」按钮已套 .btn-ghost.sm，这里只把它在 .rep-head 里推到右侧 */
.rep-view { margin-left: auto; }
/* 导入·已是他人客户表里的「复制」小按钮 */
.ipo-copy { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; font-size: 12px; font-weight: 500;
  color: var(--ink-2); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; }
.ipo-copy:hover { border-color: var(--primary); color: var(--primary); }

/* ===== web-v0.9：录音报告大窗（抽屉内联→屏幕居中大窗；z-index 140 盖在抽屉 120 之上）===== */
.rep-modal { position: fixed; inset: 0; z-index: 140; display: none; }
.rep-modal.show { display: block; }
.rep-modal-mask { position: absolute; inset: 0; background: rgba(15,23,42,.5); backdrop-filter: blur(2px); }
.rep-modal-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 860px; max-width: 94vw; max-height: 90vh;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); overflow: hidden;
}
.rep-modal-top {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px; border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.rep-modal-title { font-size: 16px; font-weight: 700; color: var(--ink); flex: 1; min-width: 0; }
.rep-modal-top .btn-ghost { margin-left: auto; }
.rep-modal-body { padding: 16px 20px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
/* 报告卡片在弹窗里由弹窗 body 统一滚动，去掉 .rep-cards 自带的 540 内滚（不改 buildReportBody，仅 CSS 覆盖）*/
.rep-modal-body .rep-cards { max-height: none; overflow: visible; }
.rep-modal-foot {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 20px 14px; border-top: 1px solid var(--line); flex: 0 0 auto;
}
.rep-modal-foot .rep-modal-disc { font-size: 11px; color: var(--muted); flex: 1; min-width: 120px; line-height: 1.5; }
.rep-modal-foot .rep-pdf { margin: 0; }

/* ========================= 首页排名卡片（三栏布局核心） ========================= */

/* 排名 tab 条 */
.rank-tabs {
  display: flex; gap: 4px; padding: 10px 14px 0; border-bottom: 1px solid var(--line);
}
.rank-tabs button {
  padding: 6px 14px; border: 1px solid transparent; border-radius: var(--radius) var(--radius) 0 0;
  background: transparent; font-size: 12px; font-weight: 500; color: var(--muted);
  transition: all .14s var(--ease);
}
.rank-tabs button:hover { color: var(--primary); background: var(--bg-alt); }
.rank-tabs button.active {
  color: var(--primary); background: var(--surface);
  border-color: var(--line) var(--line) var(--surface) var(--line);
  margin-bottom: -1px;
}

/* 排名滚动列表 */
.rank-list { padding: 6px 10px 10px; max-height: 440px; overflow-y: auto; }
.rank-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius);
  transition: background .12s var(--ease); margin-bottom: 4px;
}
.rank-item:hover { background: var(--bg-alt); }
.rank-item:last-child { margin-bottom: 0; }

/* 排名数字（含金银铜） */
.rank-num {
  width: 28px; height: 28px; flex: 0 0 28px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--muted);
}
.rank-num.gold {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #fff; border-radius: 50%; box-shadow: 0 2px 4px rgba(255,165,0,0.3);
}
.rank-num.silver {
  background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
  color: #fff; border-radius: 50%; box-shadow: 0 2px 4px rgba(160,160,160,0.3);
}
.rank-num.bronze {
  background: linear-gradient(135deg, #CD7F32, #B87333);
  color: #fff; border-radius: 50%; box-shadow: 0 2px 4px rgba(184,115,51,0.3);
}

/* 头像 */
.rank-avatar {
  width: 36px; height: 36px; flex: 0 0 36px;
  border-radius: var(--radius); object-fit: cover;
  border: 1px solid var(--line);
}

/* 信息区 */
.rank-info { flex: 1; min-width: 0; }
.rank-name-row {
  display: flex; align-items: center; gap: 6px; margin-bottom: 1px;
}
.rank-name { font-weight: 600; font-size: 13px; color: var(--ink); }
.rank-badge {
  font-size: 10px; color: var(--primary); background: var(--primary-tint);
  border: 1px solid #BFDBFE; border-radius: var(--radius-full); padding: 1px 6px;
}
.rank-detail { font-size: 11px; color: var(--muted); line-height: 1.4; }

/* 排名尾部 */
.rank-tail { flex: 0 0 54px; text-align: right; }
.rank-value {
  font-family: var(--mono); font-size: 16px; font-weight: 700; color: var(--primary);
}
.rank-value.gold { color: #D97706; }
.rank-value.silver { color: var(--ink-2); }
.rank-value.bronze { color: #B87333; }

/* 日统计芯片 */
.date-chips {
  display: flex; gap: 6px; margin-bottom: 10px; overflow-x: auto; padding-bottom: 4px;
}
.date-chip {
  flex: 0 0 60px; padding: 8px 4px; text-align: center;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; transition: all .14s var(--ease);
}
.date-chip .d { font-size: 11px; color: var(--muted); }
.date-chip .n { font-family: var(--mono); font-size: 16px; font-weight: 700; }
.date-chip .date { font-size: 10px; color: var(--muted); margin-top: 2px; }
.date-chip.active {
  background: var(--primary); border-color: var(--primary); color: var(--primary-on);
}
.date-chip.active .d,
.date-chip.active .date { color: rgba(255,255,255,0.7); }

/* 小统计行 */
.mini-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px;
}
.mini-stat {
  text-align: center; padding: 10px 6px;
  background: var(--bg-alt); border-radius: var(--radius);
}
.mini-stat .n { font-family: var(--mono); font-size: 18px; font-weight: 700; color: var(--primary); }
.mini-stat .l { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* 紧凑客户池分布（底部） */
.pool-mini { padding: 10px 16px 14px; border-top: 1px solid var(--line); }
.pool-title { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.pool-bars { display: flex; flex-direction: column; gap: 6px; }
.pool-row { display: flex; align-items: center; gap: 8px; }
.pool-label { width: 44px; font-size: 11px; color: var(--muted); }
.pool-track { flex: 1; height: 8px; background: var(--bg-alt); border-radius: 4px; overflow: hidden; }
.pool-fill { height: 100%; border-radius: 4px; }
.pool-fill.f1 { background: var(--k1); }
.pool-fill.f2 { background: var(--k3); }
.pool-fill.f3 { background: var(--k2); }
.pool-fill.f4 { background: var(--k4); }
.pool-val { width: 48px; text-align: right; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.pool-val small { color: var(--muted); font-size: 10px; }

/* ========================= 快捷操作 ========================= */
.quick-actions { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); }
.qa-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 14px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-2);
  transition: all .14s var(--ease); cursor: pointer;
}
.qa-btn:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow-sm); }
.qa-btn.primary-btn { background: var(--primary); color: var(--primary-on); border-color: var(--primary); }
.qa-btn.primary-btn:hover { background: var(--primary-deep); }
.qa-btn .qa-icon { font-size: 16px; }

/* 待跟进列表 */
.follow-list { display: flex; flex-direction: column; }
.follow-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid var(--bg-alt);
  transition: background .12s var(--ease);
}
.follow-item:hover { background: var(--bg-alt); }
.follow-item .fi-dot {
  width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%;
}
.follow-item .fi-dot.urgent { background: var(--danger); }
.follow-item .fi-dot.normal { background: var(--warning); }
.follow-item .fi-dot.info { background: var(--primary); }
.follow-item .fi-main { flex: 1; min-width: 0; }
.follow-item .fi-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.follow-item .fi-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
.follow-item .fi-tag {
  font-size: 11px; padding: 2px 8px; border-radius: var(--radius-full);
  font-weight: 500; white-space: nowrap;
}
.fi-tag.red { background: var(--danger-tint); color: #B91C1C; }
.fi-tag.amber { background: var(--warning-tint); color: #B45309; }
.fi-tag.blue { background: var(--primary-tint); color: var(--primary); }
/* web-v0.9：待跟进可点条目（feed 跳对应页）；占位行不可点 */
.follow-item.clickable { cursor: pointer; }
.follow-item.placeholder { cursor: default; }
.follow-item.placeholder:hover { background: transparent; }

/* 速递卡片 */
.express-list { display: flex; flex-direction: column; }
.express-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 16px; border-bottom: 1px solid var(--bg-alt);
  transition: background .12s var(--ease);
}
.express-item:hover { background: var(--bg-alt); }
.express-item .ex-icon {
  width: 28px; height: 28px; flex: 0 0 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); font-size: 13px;
}
.ex-icon.policy { background: var(--primary-tint); color: var(--primary); }
.ex-icon.hot { background: var(--danger-tint); color: #B91C1C; }
.ex-icon.new { background: var(--success-tint); color: var(--success); }
.ex-icon.cut { background: var(--warning-tint); color: #B45309; }
.express-item .ex-main { flex: 1; min-width: 0; }
.express-item .ex-title { font-size: 12px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.express-item .ex-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
/* 姓名首字头像（替代外部头像图，避免外网依赖） */
.rank-avatar.ava{display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:14px;}
/* 本轮·纯前端：概览右栏「特价房源清单」绝对填充，撑满到与左侧待跟进看板等高、且不反向撑高该行。
   仅 .board(概览 viewOverview) 语境生效；独立页 viewSpecials 不在 .board 内，sp-scroll 保持原 max-height:340px。
   stack-col 只当定位容器(align-self:stretch 拉到行高=较高的待跟进)；stack-inner 绝对铺满后 flex 列布局，
   规则速递按自然高、特价房 flex:1 吃掉剩余；sp-scroll min-height:0 避免内容很短时顶破行高。
   三排名区也是 .board，但没有 stack-col/stack-inner/sp-list-panel 这些类，选择器天然不旅行。 */
.board .stack-col { position: relative; align-self: stretch; min-height: 0; }
.board .stack-inner { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 16px; }
.board .stack-inner > #rulesPanel { flex: 0 0 auto; }
.board .sp-list-panel { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.board .sp-list-panel .panel-head,
.board .sp-list-panel .sp-search-wrap { flex: 0 0 auto; }
.board .sp-list-panel #spView { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.board .sp-scroll { max-height: none; flex: 1 1 auto; min-height: 0; }
/* 排名卡空态 */
.rank-empty { padding: 22px 14px; text-align: center; color: var(--muted); font-size: 13px; }

/* ====== web-v0.9.3：首页「待跟进」看板 ====== */
.due-n { font-family: var(--mono); font-weight: 700; color: var(--primary); margin-left: 2px; }
/* 面板头右侧工具区（scope 切换 + 收起按钮）推到最右 */
.due-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
/* scope 切换：私客 / 部门池 */
.due-scope { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius-full); overflow: hidden; }
.due-scope button {
  border: none; background: var(--surface); color: var(--ink-2);
  font-family: var(--sans); font-size: 12px; font-weight: 600; padding: 4px 12px; cursor: pointer;
  transition: all .14s var(--ease);
}
.due-scope button + button { border-left: 1px solid var(--line); }
.due-scope button.active { background: var(--primary); color: var(--primary-on); }
/* 收起 / 展开（▼，收起态旋转 -90°） */
.due-collapse {
  border: 1px solid var(--line-2); background: var(--surface); color: var(--muted);
  width: 26px; height: 24px; border-radius: var(--radius-sm); cursor: pointer; line-height: 1;
  font-size: 12px; transition: transform .16s var(--ease);
}
.due-collapse:hover { color: var(--ink); }
.due-collapsed .due-collapse { transform: rotate(-90deg); }
.due-collapsed .due-body { display: none; }
.due-collapsed .express-list { display: none; } /* 规则速递复用 due-collapsed 折叠 */
/* 看板主体 */
.due-body { padding: 14px 16px; }
.due-chips { margin-bottom: 12px; }
.due-cards { display: flex; flex-direction: column; gap: 8px; }
.due-empty { color: var(--muted); font-size: 13px; font-style: italic; padding: 18px 4px; text-align: center; }
/* 单张待跟进卡片 */
.due-card {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px; background: var(--surface-alt);
  border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; transition: all .14s var(--ease);
}
.due-card:hover { border-color: var(--line-2); background: var(--surface); box-shadow: 0 1px 4px rgba(15,23,42,.05); }
.due-ava { flex: 0 0 auto; }
.due-ava .rank-avatar { width: 34px; height: 34px; font-size: 14px; }
.due-main { flex: 1 1 auto; min-width: 0; }
.due-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.due-badge {
  flex: 0 0 auto; color: #fff; font-size: 11px; font-weight: 700;
  padding: 1px 8px; border-radius: var(--radius-full); letter-spacing: .3px;
}
.due-need { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.due-meta { font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.due-orphan { font-size: 12px; color: #c08a2e; margin-top: 3px; }
.due-next { font-size: 12px; color: var(--ink); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 看板下方「管理待办」小段（成交/报备/废客/待分配，复用 follow-item 行样式） */
.due-todo { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.due-todo-h { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .5px; margin-bottom: 6px; }
.due-pager { margin-top: 10px; }

/* web-v0.9.9：特价房源清单 卡片 + 自动上下循环滚动（鼠标移上去暂停；变量取不到给兜底色） */
.sp-scroll{ max-height:340px; overflow-y:auto; overflow-x:hidden; position:relative;
            scrollbar-width:thin; scrollbar-color:var(--line,#cbd5e1) transparent; }
.sp-scroll::-webkit-scrollbar{ width:8px; }
.sp-scroll::-webkit-scrollbar-thumb{ background:var(--line,#cbd5e1); border-radius:4px; }
.sp-scroll::-webkit-scrollbar-track{ background:transparent; }
.sp-seg{ display:flex; flex-direction:column; gap:8px; }
.sp-track{ display:flex; flex-direction:column; gap:8px; }
/* web-v1.0.3：清单搜索框 */
.sp-search-wrap{ margin:0 0 8px; }
.sp-search{ width:100%; box-sizing:border-box; padding:6px 10px; border:1px solid var(--line,#cbd5e1); border-radius:8px; font-size:13px; background:var(--card,#fff); color:inherit; }
.sp-search:focus{ outline:none; border-color:var(--brand,#3884ff); }
.sp-card{ border:1px solid var(--line,#e5e7eb); border-radius:10px; padding:10px 12px; background:var(--card,#fff); }
.sp-card .t{ font-weight:700; margin-bottom:2px; }
.sp-card .b{ color:var(--muted,#64748b); font-size:13px; line-height:1.5; }
/* web-v0.9.10：客户需求已载入文件绿色标签 */
.sp-file-tag{ display:inline-block; background:rgba(34,197,94,0.12); color:#15803d; border:1px solid rgba(34,197,94,0.35); border-radius:8px; padding:4px 10px; font-size:13px; }
.sp-file-tag a{ color:#b91c1c; margin-left:8px; }
/* web-v1.0：特价房清单 Markdown 表格/标题/引用/分割线 */
.sp-table{ width:100%; border-collapse:collapse; font-size:12px; margin:4px 0 10px; }
.sp-table th,.sp-table td{ border:1px solid var(--line,#e5e7eb); padding:4px 6px; text-align:left; vertical-align:top; word-break:break-word; }
.sp-table th{ background:var(--soft,#f1f5f9); font-weight:700; white-space:nowrap; }
.sp-h{ font-weight:700; margin:8px 0 4px; }
.sp-q{ color:var(--muted,#64748b); font-size:12px; margin:2px 0; }
.sp-line{ font-size:13px; margin:2px 0; }
.sp-hr{ height:1px; background:var(--line,#e5e7eb); margin:8px 0; }

/* ========================= web-v1.1 新增（T1 录带看 / T3 进入加粗 / T5 字号 / T6 记住账号）========================= */
/* T3：首页「部门客/公海」卡的「进入 →」加深加粗（仅这两处用 .enter-link，不动全站 .num/.muted） */
.enter-link { color: var(--ink); font-weight: 700; }

/* T5：顶栏字号切换控件（老花放大） */
.fs-ctrl { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.fs-btn { border: none; background: var(--surface); color: var(--ink-2); font-size: 12px; padding: 5px 9px; cursor: pointer; border-left: 1px solid var(--line); }
.fs-btn:first-child { border-left: none; }
.fs-btn.on { background: var(--primary); color: var(--primary-on); }

/* T6：登录页「记住账号」勾选行 */
.li-remember { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); margin: 10px 0 4px; cursor: pointer; }
.li-remember input { width: auto; margin: 0; }

/* T1：录带看弹层 */
.show-card { width: 440px; }
.show-card input[type="checkbox"] { width: auto; margin: 0; }
.show-card input[type="file"] { width: 100%; padding: 9px; font-size: 13px; box-sizing: border-box; }
.show-card select { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); font-size: 14px; color: var(--ink); box-sizing: border-box; }
.show-biz { display: flex; gap: 8px; }
.biz-btn { flex: 1; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: 14px; padding: 9px 0; border-radius: var(--radius); cursor: pointer; }
.biz-btn.on { background: var(--primary); color: var(--primary-on); border-color: var(--primary); }
.show-comp-row { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.show-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; min-height: 20px; }
.sv-thumb { font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--bg-alt); color: var(--ink-2); }
.sv-thumb.done { background: var(--success-tint); color: var(--success); }
.sv-thumb.fail { background: var(--danger-tint); color: var(--danger); }
.sv-thumb.up { background: var(--warning-tint); color: var(--warning); }

/* v1.5：成交监测（概览右栏精简卡 + 完整页看板/列表/趋势柱/联想下拉） */
.mon-card { cursor: pointer; }
.mon-card:hover { border-color: var(--primary); }
.mon-card-nums { display: flex; gap: 12px; margin: 10px 0 8px; }
.mon-num-box { flex: 1; text-align: center; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 6px; }
.mon-num { font-family: var(--mono, monospace); font-size: 26px; font-weight: 700; color: var(--primary); line-height: 1.1; }
.mon-num-lbl { font-size: 12px; color: var(--muted); margin-top: 3px; }
.mon-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mon-chip { font-size: 12px; color: var(--ink-2); background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-full, 999px); padding: 2px 9px; }
.mon-chip b { color: var(--primary); font-weight: 700; }
.mon-board { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 920px) { .mon-board { grid-template-columns: 1fr; } }
.mon-sec { margin-bottom: 16px; }
.mon-big { margin: 8px 0; color: var(--muted); font-size: 14px; }
.mon-big-num { font-family: var(--mono, monospace); font-size: 30px; font-weight: 700; color: var(--primary); margin-right: 4px; }
.mon-price { font-size: 12px; margin-top: 6px; }
.mon-trend-h { font-size: 12px; color: var(--muted); margin: 12px 0 6px; }
.mon-bars { display: flex; align-items: flex-end; gap: 6px; height: 110px; }
.mon-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.mon-bar-val { font-size: 11px; color: var(--ink-2); margin-bottom: 2px; }
.mon-bar-track { width: 60%; max-width: 28px; flex: 1; display: flex; align-items: flex-end; background: var(--bg-alt); border-radius: 4px 4px 0 0; }
.mon-bar-fill { width: 100%; min-height: 2px; background: var(--primary); border-radius: 4px 4px 0 0; }
.mon-bar-x { font-size: 10px; color: var(--muted); margin-top: 4px; }
.mon-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; font-size: 13px; color: var(--muted); }
.mon-input { padding: 7px 10px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); font-size: 13px; color: var(--ink); }
.mon-ac-wrap { position: relative; display: inline-block; }
.mon-ac { position: absolute; top: 100%; left: 0; right: 0; z-index: 30; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 0 6px 20px rgba(0,0,0,.12); max-height: 240px; overflow-y: auto; }
.mon-ac-item { padding: 7px 11px; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.mon-ac-item:hover { background: var(--primary-tint); color: var(--primary-deep); }
.mon-table th, .mon-table td { font-size: 13px; }
.mon-sub { font-size: 12px; margin: 2px 0 6px; }
/* v1.7：看板区间控件 + 二手今日/昨日双栏 */
.mon-range-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; font-size: 13px; }
.mon-range-tag { font-size: 12px; margin: 4px 0; }
.mon-cols { display: flex; flex-wrap: wrap; gap: 16px; }
.mon-col { flex: 1; min-width: 180px; }
.mon-col-h { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }

/* ===== web-v1.8 文件分发：左栏可领取清单 + 右栏下载日志（沿用现有设计令牌）===== */
.fb-wrap { display: flex; gap: 16px; align-items: flex-start; }
.fb-left { flex: 1 1 60%; min-width: 0; }
.fb-right { flex: 0 0 34%; min-width: 240px; }
.fb-uploadbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.fb-prog { color: var(--muted); font-size: 13px; }
.fb-list { display: flex; flex-direction: column; gap: 8px; }
.fb-row { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.fb-name { font-weight: 600; word-break: break-all; color: var(--ink); }
.fb-meta { color: var(--muted); font-size: 12px; }
.fb-ops { display: flex; gap: 8px; margin-top: 4px; }
.fb-ops button { cursor: pointer; padding: 4px 12px; font-size: 13px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); }
.fb-ops .fb-dl { border-color: var(--primary); color: var(--primary); font-weight: 600; }
.fb-ops .fb-del { border-color: var(--danger); color: var(--danger); }
.fb-empty { color: var(--muted); padding: 16px 0; }
.fb-log-title { font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.fb-log { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow: auto; }
.fb-log-item { font-size: 13px; line-height: 1.5; padding: 6px 10px; border-radius: 6px; background: var(--surface-alt); color: var(--ink-2); }
.fb-log-who { font-weight: 600; color: var(--ink); }
.fb-log-file { color: var(--primary); word-break: break-all; }
