:root {
  --bg: #f4f6fa;
  --panel: #ffffff;
  --ink: #1f2733;
  --ink-soft: #5b6676;
  --line: #e3e8f0;
  --brand: #2f6df0;
  --brand-dark: #2356c8;
  --ok: #1f9d6b;
  --warn: #e08a1e;
  --danger: #d8503a;
  --chip: #eef2fb;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(28, 45, 78, 0.08);
  font-family: -apple-system, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
/* hidden 属性必须压过下面给 .login-view/.app-view 等设的 display，否则两个视图会叠在一起 */
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 14px; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; font-size: 14px; }
a { color: var(--brand); }

/* ── 启动占位 ── */
.loading-view { min-height: 100vh; display: grid; place-items: center; background: var(--bg); }
.loading-dot { width: 30px; height: 30px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: ld-spin .7s linear infinite; }
@keyframes ld-spin { to { transform: rotate(360deg); } }

/* ── 登录 ── */
.login-view { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #eef3fc, #e7ecf7); }
.login-card { width: 360px; background: var(--panel); border-radius: 16px; padding: 36px 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.login-card h1 { margin: 0; font-size: 24px; }
.login-sub { margin: 0 0 8px; color: var(--ink-soft); font-size: 13px; }
.login-card label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.login-card input { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.login-error { color: var(--danger); font-size: 13px; min-height: 18px; }
.login-hint { color: #9aa6b6; font-size: 12px; line-height: 1.5; }

.btn-primary { background: var(--brand); color: #fff; border: none; padding: 11px 16px; border-radius: 8px; font-size: 15px; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink-soft); padding: 7px 12px; border-radius: 7px; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 5px 10px; border-radius: 6px; border: 1px solid var(--line); background: #fff; font-size: 13px; }
.btn-sm:hover { border-color: var(--brand); color: var(--brand); }
.btn-ok { background: var(--ok); color: #fff; border: none; padding: 6px 12px; border-radius: 6px; }
.btn-danger { background: #fff; color: var(--danger); border: 1px solid #f0c4bb; padding: 6px 12px; border-radius: 6px; }

/* ── 顶栏 ── */
.topbar { height: 56px; background: var(--panel); border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 18px; gap: 16px; }
.brand { font-weight: 700; font-size: 17px; color: var(--brand); }
.topbar-mid { flex: 1; }
.project-select { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; min-width: 220px; background: #fff; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.user-badge { font-size: 13px; color: var(--ink-soft); }
.role-tag { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 12px; background: var(--chip); color: var(--brand-dark); margin-left: 6px; }

/* ── 布局 ── */
.layout { display: flex; height: calc(100vh - 56px); }
.sidebar { width: 176px; background: var(--panel); border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; }
.nav-item { padding: 10px 14px; border-radius: 8px; color: var(--ink-soft); cursor: pointer; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.nav-item:hover { background: var(--chip); }
.nav-item.active { background: var(--brand); color: #fff; }
.content { flex: 1; overflow: auto; padding: 22px 26px; }

/* ── 通用 ── */
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.page-head h2 { margin: 0; font-size: 20px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar input, .toolbar select { padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.search-input { min-width: 200px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat-card .label { color: var(--ink-soft); font-size: 13px; }
.stat-card .value { font-size: 26px; font-weight: 700; margin-top: 6px; }
.stat-card .value.small { font-size: 20px; }
.stat-card .unit { font-size: 13px; color: var(--ink-soft); font-weight: 400; margin-left: 3px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 13px; white-space: nowrap; }
th { background: #f7f9fc; color: var(--ink-soft); font-weight: 600; position: sticky; top: 0; }
tbody tr:hover { background: #f9fbff; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.row-link { cursor: pointer; }
.empty { padding: 40px; text-align: center; color: #9aa6b6; }

.status-pill { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; }
.s-认购 { background: #eef2fb; color: #4a5a78; }
.s-已签约 { background: #e7f0ff; color: #2356c8; }
.s-首付齐 { background: #fff3e0; color: #b9751a; }
.s-款清 { background: #e4f7ee; color: #1f9d6b; }
.s-已交房 { background: #e3f1fd; color: #1f7fb0; }
.s-退房 { background: #fdecea; color: #c0432c; }
.pay-pending { color: var(--warn); }
.pay-confirmed { color: var(--ok); }
.pay-voided { color: #9aa6b6; text-decoration: line-through; }

/* progress */
.progress { height: 6px; background: #eef2f8; border-radius: 6px; overflow: hidden; min-width: 60px; }
.progress > span { display: block; height: 100%; background: var(--ok); }

/* ── 抽屉/弹窗 ── */
.drawer-overlay, .modal-overlay { position: fixed; inset: 0; background: rgba(20, 30, 50, 0.34); display: flex; z-index: 50; }
.drawer-overlay { justify-content: flex-end; }
.drawer { width: 560px; max-width: 92vw; background: var(--bg); height: 100%; overflow: auto; box-shadow: -6px 0 24px rgba(0,0,0,0.12); animation: slideIn .18s ease; }
@keyframes slideIn { from { transform: translateX(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.modal-overlay { justify-content: center; align-items: center; }
.modal { width: 540px; max-width: 94vw; max-height: 90vh; overflow: auto; background: var(--panel); border-radius: 14px; box-shadow: var(--shadow); }

.drawer-head, .modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 1; }
.drawer-head h3, .modal-head h3 { margin: 0; font-size: 17px; }
.close-x { border: none; background: transparent; font-size: 22px; color: var(--ink-soft); cursor: pointer; line-height: 1; }
.drawer-body, .modal-body { padding: 18px 20px; }

.kv-grid { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin-bottom: 18px; }
.kv-grid .k { color: var(--ink-soft); }
.kv-grid .v { font-weight: 500; }

.section-title { font-weight: 700; margin: 16px 0 10px; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }

/* forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.form-grid label, .form-row label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--ink-soft); }
.form-grid label.full { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea, .form-row input, .form-row select { padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

.voucher-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.voucher-thumb { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }

.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); background: #1f2733; color: #fff; padding: 11px 20px; border-radius: 10px; z-index: 100; box-shadow: var(--shadow); font-size: 14px; }
.toast.err { background: var(--danger); }

.muted { color: var(--ink-soft); }
.right { text-align: right; }
.mini { font-size: 12px; color: var(--ink-soft); }

/* ── Excel 式列头筛选 ── */
th .col-filter { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; margin-left: 5px; vertical-align: middle; border-radius: 5px; cursor: pointer; opacity: .75; font-size: 12px; line-height: 1; color: var(--ink-soft); background: var(--chip); user-select: none; transition: .15s; }
th .col-filter:hover { opacity: 1; color: var(--brand); background: #e0e8fb; }
th .col-filter.on { opacity: 1; color: #fff; background: var(--brand); }
.col-filter-menu { position: fixed; z-index: 1200; width: 224px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.col-filter-menu .cf-search { width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; }
.col-filter-menu .cf-bar { display: flex; gap: 14px; font-size: 12px; padding: 0 2px; }
.col-filter-menu .cf-bar a { cursor: pointer; color: var(--brand); }
.col-filter-menu .cf-list { max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
.col-filter-menu .cf-item { display: flex; align-items: center; gap: 8px; padding: 5px 7px; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--ink); }
.col-filter-menu .cf-item:hover { background: var(--chip); }
.col-filter-menu .cf-item input { width: 15px; height: 15px; flex: none; margin: 0; }
.col-filter-menu .cf-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.col-filter-menu .cf-actions button { padding: 6px 15px; font-size: 13px; border-radius: 7px; }

/* ───── 我的团队 ───── */
.team-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.team-row:last-child { border-bottom: none; }
.team-name { font-weight: 600; min-width: 84px; }
.team-chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.team-chip { padding: 4px 12px; border-radius: 999px; font-size: 13px; cursor: pointer; user-select: none; border: 1px solid var(--line); transition: all .12s; }
.team-chip-plain { cursor: default; background: var(--bg-soft, #f4f5f8); }
.team-chip-on { background: #e8f0ff; border-color: #3b6ef7; color: #2455d6; }
.team-chip-off { background: #fff; color: #8b8f9a; }
.team-chip-off:hover { border-color: #3b6ef7; color: #3b6ef7; }
.team-chip-on:hover { background: #d6e4ff; }
.team-add-row { display: flex; gap: 10px; align-items: center; }
.team-select { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; min-width: 200px; }
.panel h3 { margin: 0 0 12px; font-size: 15px; }

/* 客户成交状态徽标 + 历史编辑记录 */
.cust-stage-badge { display:inline-block; padding:2px 9px; border-radius:999px; font-size:12px; background:#eef3ff; color:#2455d6; }
.history-item { padding:12px 4px; border-bottom:1px solid var(--line); }
.history-item:last-child { border-bottom:none; }
.history-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.history-line { font-size:13px; color:#444; line-height:1.7; }
.history-line.mini { color:#999; }

/* ───── 桌面客户详情滑出面板 ───── */
.cust-panel-mask { position: fixed; inset: 0; background: rgba(0,0,0,.28); z-index: 90; }
.cust-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 460px; max-width: 92vw; background: #fff; z-index: 91;
  box-shadow: -8px 0 28px rgba(0,0,0,.16); display: flex; flex-direction: column; animation: panelIn .18s ease-out; }
@keyframes panelIn { from { transform: translateX(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.cust-panel-head { flex: 0 0 auto; padding: 16px 18px; background: linear-gradient(135deg,#4b74e8,#3b6ef7); color: #fff; position: relative; }
.cust-panel-close { position: absolute; top: 12px; right: 14px; background: transparent; color: #fff; font-size: 18px; cursor: pointer; }
.cust-panel-title { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; }
.cust-panel-title strong { font-size: 21px; }
.cust-panel-stage { padding: 3px 11px; background: rgba(255,255,255,.22); border-radius: 999px; font-size: 13px; cursor: pointer; }
.cust-panel-act { display: flex; gap: 8px; }
.cust-panel-act .btn-sm, .cust-panel-act .btn-danger { background: rgba(255,255,255,.18); color: #fff; border: none; }
.cust-panel-act .btn-danger { background: rgba(255,90,90,.5); }
.cust-panel-body { flex: 1; overflow-y: auto; padding: 14px 16px; background: #f6f7f9; }
.cust-panel-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; margin-bottom: 12px;
  background: #fff6e5; border: 1px solid #f0c879; border-radius: 10px; font-size: 13px; color: #8a5a00; }
.cust-panel-banner button { padding: 7px 14px; background: #f5a623; color: #fff; border: none; border-radius: 999px; font-size: 13px; cursor: pointer; }
.cust-panel-card { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.cust-panel-card h4 { margin: 0 0 10px; font-size: 14px; color: #333; }
.cust-panel-kv { display: flex; gap: 12px; padding: 5px 0; font-size: 13px; }
.cust-panel-kv span { color: #8b8f9a; min-width: 76px; }
.cust-panel-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cust-panel-tag { padding: 5px 12px; background: #eef3ff; color: #2455d6; border-radius: 999px; font-size: 12.5px; }
.cust-panel-tabs { display: flex; gap: 18px; padding: 4px 2px 12px; border-bottom: 1px solid #e7e9ee; margin-bottom: 12px; }
.cust-panel-tabs button { background: transparent; border: none; font-size: 15px; color: #9a9fab; cursor: pointer; padding-bottom: 6px; }
.cust-panel-tabs button.active { color: #2455d6; font-weight: 600; border-bottom: 2px solid #3b6ef7; }
.cust-panel-feed-item { background: #fff; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.cust-panel-feed-item .feed-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.cust-panel-feed-item .feed-body { font-size: 13.5px; line-height: 1.7; color: #444; white-space: pre-wrap; }
.cust-panel-feed-item .feed-foot { display: flex; justify-content: flex-end; margin-top: 8px; }
.cust-panel-foot { flex: 0 0 auto; display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid #e7e9ee; }
.cust-panel-foot button { flex: 1; padding: 11px; font-size: 14px; }
.stage-opts { display: flex; flex-direction: column; gap: 8px; max-height: 56vh; overflow-y: auto; }
.stage-opt { text-align: left; padding: 11px 14px; background: #f6f7f9; border: 1px solid #e7e9ee; border-radius: 9px; font-size: 14px; cursor: pointer; }
.stage-opt:hover { border-color: #3b6ef7; background: #eef3ff; }
@media (max-width: 560px) { .cust-panel { width: 100vw; } }

/* ───── 统一分页条 ───── */
.cust-pager { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 6px 6px; font-size: 13px; color: #555; }
.cust-pager-total { color: #888; }
.cust-pager select { padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; }
.cust-pager-pages { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.cust-page-btn { min-width: 32px; height: 30px; padding: 0 9px; border: 1px solid var(--line); background: #fff; border-radius: 7px; cursor: pointer; font-size: 13px; }
.cust-page-btn:hover:not(:disabled) { border-color: #3b6ef7; color: #3b6ef7; }
.cust-page-btn.active { background: #3b6ef7; color: #fff; border-color: #3b6ef7; }
.cust-page-btn:disabled { opacity: .4; cursor: default; }
.cust-page-gap { color: #bbb; padding: 0 2px; }
.cust-pager-jump { width: 54px; padding: 5px 6px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; }

/* ───── 批量操作 + 自定义列 ───── */
.batch-op-wrap { position: relative; display: inline-block; }
.batch-op-menu { display: none; position: absolute; top: 110%; left: 0; z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 22px rgba(0,0,0,.14); min-width: 160px; padding: 6px; }
.batch-op-menu.show { display: block; }
.batch-op-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; background: transparent; border: none; border-radius: 6px; font-size: 13px; cursor: pointer; }
.batch-op-menu button:hover { background: #eef3ff; }
.batch-op-custom { display: flex; gap: 6px; padding: 6px 4px 2px; border-top: 1px solid var(--line); margin-top: 4px; }
.batch-op-custom input { width: 90px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; }
.cust-batch-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin: 0 0 4px; background: #eef3ff; border: 1px solid #c9dbff; border-radius: 8px; }
.cust-batch-count { font-weight: 600; color: #2455d6; }
.col-config-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-height: 50vh; overflow-y: auto; }
.col-config-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; cursor: pointer; }
.table .ell, td.ell { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 客户查重 */
.dedup-extra { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.dedup-cond { display: flex; gap: 8px; align-items: center; }
.dedup-cond select, .dedup-cond input { padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; }
.dedup-cond input { flex: 1; }
.dedup-add { display: inline-block; margin: 4px 0 8px; color: #3b6ef7; font-size: 13px; }
.dedup-result { max-height: 40vh; overflow-y: auto; }

/* 桌面客户筛选条 */
.cust-filter-bar .cust-filter-sel { padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; background: #fff; }
.cust-filter-bar { align-items: center; }

/* 成交大脑 C1:AI 话术/跟进 */
.btn-ai { background: linear-gradient(90deg,#7c5cff,#3b6ef7); color:#fff; border:none; border-radius:8px; padding:7px 12px; font-size:13px; cursor:pointer; font-weight:600; }
.btn-ai:hover { filter:brightness(1.08); }
.coach-out { white-space:pre-wrap; line-height:1.65; margin-top:10px; min-height:60px; max-height:52vh; overflow-y:auto; background:#f7f8fb; border:1px solid var(--line); border-radius:8px; padding:12px 14px; font-size:13.5px; color:#1d2330; }

/* 🧠 成交大脑 */
.brain-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:12px; }
.brain-card { border:1px solid var(--line); border-radius:10px; padding:12px 14px; background:#fff; display:flex; flex-direction:column; gap:8px; }
.brain-card-top { display:flex; align-items:center; justify-content:space-between; }
.brain-cat { background:#eef3ff; color:#2455d6; font-size:12px; font-weight:600; padding:3px 10px; border-radius:20px; }
.brain-weight { font-size:12px; color:#e8732c; font-weight:700; }
.brain-scenario { font-size:12.5px; color:#666; }
.brain-technique { font-size:13.5px; line-height:1.6; color:#1d2330; white-space:pre-wrap; }
.brain-card-foot { display:flex; align-items:center; gap:8px; margin-top:2px; }
.brain-tag { font-size:11px; color:#888; background:#f1f2f5; padding:2px 8px; border-radius:6px; }

/* 看板·客户转化漏斗 */
.dash-section-title { margin: 26px 0 12px; font-size: 16px; }
.dash-sub { margin: 18px 0 8px; font-size: 13px; color: #555; }
.funnel { display: flex; flex-direction: column; gap: 7px; max-width: 720px; }
.funnel-row { display: flex; align-items: center; gap: 10px; }
.funnel-label { width: 92px; font-size: 13px; color: #333; flex-shrink: 0; text-align: right; }
.funnel-bar-wrap { flex: 1; background: #f1f2f5; border-radius: 6px; overflow: hidden; height: 22px; }
.funnel-bar { height: 100%; border-radius: 6px; min-width: 2px; }
.funnel-val { width: 116px; font-size: 12.5px; color: #666; flex-shrink: 0; }
.dash-table { max-width: 560px; margin-top: 4px; }
.dash-table .num { text-align: right; }
.dash-source { display: flex; gap: 18px; margin: 16px 0; font-size: 13px; color: #555; flex-wrap: wrap; }
.dash-source span { background: #f5f6f8; padding: 6px 14px; border-radius: 8px; }

/* 跨项目客户:项目标签 */
.proj-chip { display:inline-block; background:#eef3ff; color:#2455d6; font-size:12px; padding:2px 9px; border-radius:6px; white-space:nowrap; }

/* 交款单识别确认 */
.pay-match { margin-bottom: 12px; }
.pay-match-ok { background:#eafaf0; color:#1f9254; padding:9px 12px; border-radius:8px; font-size:13px; }
.pay-match-no { background:#fff6e6; color:#b9760a; padding:9px 12px; border-radius:8px; font-size:13px; }
.pay-deal-list { max-height:160px; overflow-y:auto; margin-top:6px; display:flex; flex-direction:column; gap:4px; }
.pay-deal-opt { text-align:left; padding:8px 10px; border:1px solid var(--line); border-radius:7px; background:#fff; font-size:13px; cursor:pointer; }
.pay-deal-opt:hover { background:#eef3ff; }
.pay-ref { margin:10px 0; padding:8px 10px; background:#f7f8fb; border-radius:7px; color:#777; line-height:1.6; }

/* ───── 看板美化 + 经营统计 ───── */
.dash-section-head { display:flex; align-items:center; justify-content:space-between; margin:26px 0 12px; flex-wrap:wrap; gap:10px; }
.dash-section-head .dash-section-title { margin:0; }
.dash-section-title { font-size:16px; font-weight:700; color:#1d2330; display:flex; align-items:center; gap:6px; }
.cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(158px,1fr)); gap:12px; }
.stat-card { background:#fff; border:1px solid #eef0f4; border-radius:12px; padding:15px 18px; transition:box-shadow .2s, transform .2s; position:relative; overflow:hidden; }
.stat-card:hover { box-shadow:0 6px 18px rgba(40,60,120,.08); transform:translateY(-1px); }
.stat-card .label { font-size:13px; color:#8a93a6; margin-bottom:8px; }
.stat-card .value { font-size:25px; font-weight:700; color:#1d2330; line-height:1.1; }
.stat-card .value.small { font-size:21px; }
.stat-card .value .unit { font-size:13px; font-weight:400; color:#8a93a6; margin-left:3px; }
.stat-card::before { content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background:#3b6ef7; }
.stat-card.sc-deal::before { background:#2bb673; }
.stat-card.sc-pay::before { background:#f0972b; }
.period-seg { display:inline-flex; background:#f1f2f5; border-radius:9px; padding:3px; gap:2px; }
.period-btn { border:none; background:transparent; padding:6px 16px; border-radius:7px; font-size:13px; color:#666; cursor:pointer; }
.period-btn.active { background:#fff; color:#2455d6; font-weight:600; box-shadow:0 1px 3px rgba(0,0,0,.08); }
.leaderboard { margin-top:18px; }
.lb-tabs { display:flex; gap:6px; border-bottom:1px solid #eef0f4; margin-bottom:8px; flex-wrap:wrap; }
.lb-tab { border:none; background:transparent; padding:8px 14px; font-size:13px; color:#666; cursor:pointer; border-bottom:2px solid transparent; }
.lb-tab.active { color:#2455d6; font-weight:600; border-bottom-color:#2455d6; }
.lb-body { max-width:560px; }
.lb-row { display:flex; align-items:center; gap:12px; padding:10px 12px; border-radius:8px; }
.lb-row:nth-child(odd) { background:#f9fafc; }
.lb-rank { width:28px; text-align:center; font-size:15px; font-weight:700; color:#b6bdcb; }
.lb-rank.r1, .lb-rank.r2, .lb-rank.r3 { font-size:18px; }
.lb-name { flex:1; font-size:14px; color:#1d2330; }
.lb-val { font-weight:700; color:#2455d6; font-size:15px; }

/* 公海设置 */
.pool-cfg-divider { margin:14px 0 6px; padding-top:12px; border-top:1px solid var(--line); font-weight:600; color:#555; font-size:13px; }

/* AI 多方案可选卡片 */
.coach-opt { border:1px solid #e6e8ee; border-radius:10px; padding:10px 12px; margin-bottom:8px; cursor:pointer; transition:border-color .15s, background .15s; }
.coach-opt:hover { border-color:#a9c4ff; }
.coach-opt.sel { border-color:#3b6ef7; background:#f4f8ff; }
.coach-opt-head { display:flex; align-items:center; gap:8px; margin-bottom:5px; }
.coach-opt-radio { color:#3b6ef7; font-size:15px; }
.coach-opt-body { white-space:pre-wrap; line-height:1.6; font-size:13.5px; color:#333; }
.coach-tip { font-size:12px; color:#888; margin-bottom:8px; }

/* 修复:小号主按钮(白字白底→品牌底白字) */
.btn-sm.btn-primary { background: var(--brand); color: #fff; border: none; padding: 5px 12px; }
.btn-sm.btn-primary:hover { background: var(--brand-dark); color: #fff; border: none; }
/* 修复:弹窗内直接子级 label 的排版(公海设置/批量编辑/话术等) */
.modal-body > label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-soft); margin-bottom: 13px; }
.modal-body > label > select, .modal-body > label > input, .modal-body > label > textarea { padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; box-sizing: border-box; }
.modal-body > label > input[type="number"] { width: 140px; }
.modal-body > label > input[type="checkbox"] { width: 18px; height: 18px; }
