/* 圣运 CRM — 视觉规范 */
:root {
  --navy: #16324f;
  --navy-2: #1f4468;
  --navy-3: #2f5b96;
  --gold: #b98a2f;
  --gold-light: #f4ecd9;
  --bg: #f4f5f7;
  --card: #ffffff;
  --border: #e4e7ec;
  --text: #1f2937;
  --muted: #6b7280;
  --red: #c0392b;
  --red-bg: #fbeae8;
  --orange: #c26a1a;
  --orange-bg: #fdf1e3;
  --green: #1e7f4f;
  --green-bg: #e6f4ec;
  --blue-bg: #e8f0fb;
  --purple: #6b4c9a;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
  --radius: 10px;
  --ff-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --ff-serif: "Songti SC", "Noto Serif SC", "SimSun", serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: var(--ff-sans); background: var(--bg); color: var(--text); font-size: 14px; }
a { color: var(--navy-3); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* ============ 登录 ============ */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #12283f 0%, #1f4468 55%, #2f5b96 100%); }
.login-card { width: 400px; background: #fff; border-radius: 14px; padding: 44px 40px 36px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.login-brand { text-align: center; margin-bottom: 30px; }
.login-brand .seal { width: 58px; height: 58px; margin: 0 auto 12px; background: var(--red); color: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--ff-serif); font-size: 30px; font-weight: 700; box-shadow: 0 4px 14px rgba(192,57,43,.35); }
.login-brand h1 { font-family: var(--ff-serif); font-size: 24px; color: var(--navy); letter-spacing: 2px; }
.login-brand p { color: var(--muted); font-size: 12px; margin-top: 6px; letter-spacing: 1px; }
.login-card .field { margin-bottom: 16px; }
.login-card label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.login-card input { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; outline: none; }
.login-card input:focus { border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(47,91,150,.12); }
.login-btn { width: 100%; padding: 11px; background: var(--navy); color: #fff; border: none; border-radius: 8px; font-size: 15px; letter-spacing: 4px; margin-top: 6px; }
.login-btn:hover { background: var(--navy-2); }
.login-tip { margin-top: 18px; padding: 10px 12px; background: #f8f9fb; border: 1px dashed var(--border); border-radius: 8px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.login-err { color: var(--red); font-size: 13px; margin-top: 10px; min-height: 18px; }

/* ============ 应用骨架 ============ */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 216px; background: var(--navy); color: #cdd8e4; display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 20; }
.sidebar .brand { padding: 18px 16px 14px; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; gap: 10px; align-items: center; }
.sidebar .brand .seal { width: 34px; height: 34px; background: var(--red); color: #fff; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-family: var(--ff-serif); font-size: 20px; font-weight: 700; }
.sidebar .brand .t1 { font-family: var(--ff-serif); font-size: 16px; color: #fff; letter-spacing: 1px; line-height: 1.2; }
.sidebar .brand .t2 { font-size: 10px; color: #8fa3ba; letter-spacing: 2px; }
.nav { flex: 1; overflow-y: auto; padding: 10px 8px; }
.nav-group { font-size: 11px; color: #6f8199; padding: 12px 10px 6px; letter-spacing: 1px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: #cdd8e4; font-size: 13.5px; margin-bottom: 2px; }
.nav a svg { width: 16px; height: 16px; flex: none; opacity: .85; }
.nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav a.active { background: var(--navy-3); color: #fff; }
.nav a .dot { margin-left: auto; background: var(--gold); color: #fff; font-size: 10px; border-radius: 9px; padding: 1px 6px; }
.side-user { border-top: 1px solid rgba(255,255,255,.08); padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.side-user .avatar { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 600; }
.side-user .n { color: #fff; font-size: 13px; }
.side-user .r { color: #8fa3ba; font-size: 11px; }
.side-user button { margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.2); color: #cdd8e4; border-radius: 6px; font-size: 11px; padding: 3px 8px; }

.main { flex: 1; margin-left: 216px; display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 52px; background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 22px; gap: 14px; position: sticky; top: 0; z-index: 10; }
.topbar .page-title { font-size: 15px; font-weight: 600; color: var(--navy); }
.topbar .page-sub { font-size: 12px; color: var(--muted); margin-left: 2px; }
.topbar .spacer { flex: 1; }
.topbar .bell { position: relative; background: none; border: none; font-size: 17px; }
.topbar .bell .badge { position: absolute; top: -4px; right: -6px; background: var(--red); color: #fff; font-size: 9px; border-radius: 8px; padding: 0 4px; line-height: 14px; }
.content { padding: 20px 22px 40px; flex: 1; }

/* ============ 通用组件 ============ */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { padding: 13px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.card-h .t { font-weight: 600; font-size: 14px; color: var(--navy); }
.card-h .extra { margin-left: auto; font-size: 12px; color: var(--muted); }
.card-b { padding: 16px; }

.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.grid { display: grid; gap: 14px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g21 { grid-template-columns: 2fr 1fr; }
.g12 { grid-template-columns: 1fr 2fr; }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2,1fr); } .g21, .g12, .g3, .g2 { grid-template-columns: 1fr; } }

.stat { padding: 16px 18px; }
.stat .l { font-size: 12px; color: var(--muted); }
.stat .v { font-size: 26px; font-weight: 700; color: var(--navy); margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .d { font-size: 11px; color: var(--muted); margin-top: 4px; }
.stat .v small { font-size: 12px; font-weight: 400; color: var(--muted); }

.badge { display: inline-block; padding: 1px 8px; border-radius: 9px; font-size: 11.5px; line-height: 18px; white-space: nowrap; }
.b-red { background: var(--red-bg); color: var(--red); }
.b-orange { background: var(--orange-bg); color: var(--orange); }
.b-green { background: var(--green-bg); color: var(--green); }
.b-blue { background: var(--blue-bg); color: var(--navy-3); }
.b-gray { background: #eef0f3; color: var(--muted); }
.b-gold { background: var(--gold-light); color: #8a6414; }
.b-purple { background: #f0eaf8; color: var(--purple); }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--text); font-size: 13px; }
.btn:hover { border-color: #c8cfd8; background: #fafbfc; }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 6px; }
.btn-danger { color: var(--red); border-color: #ecc9c4; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar input[type=text], .toolbar input[type=search], .toolbar select, .field input, .field select, .field textarea {
  padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; outline: none; }
.toolbar input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-3); }
.toolbar .search { width: 220px; }

table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--border); background: #fafbfc; white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid #f0f2f5; font-size: 13px; vertical-align: middle; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover { background: #f8fafd; }
.tbl .num { font-variant-numeric: tabular-nums; }
.tbl .empty { text-align: center; color: var(--muted); padding: 30px; cursor: default; }

.drawer-mask, .modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 520px; max-width: 92vw; background: #fff; z-index: 41; box-shadow: -8px 0 30px rgba(0,0,0,.15); display: flex; flex-direction: column; animation: slidein .18s ease; }
@keyframes slidein { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.drawer-h { padding: 15px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.drawer-h .t { font-size: 15px; font-weight: 600; color: var(--navy); }
.drawer-h .x { margin-left: auto; background: none; border: none; font-size: 18px; color: var(--muted); }
.drawer-b { padding: 18px; overflow-y: auto; flex: 1; }

.modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 560px; max-width: 94vw; max-height: 88vh; background: #fff; border-radius: 12px; z-index: 41; display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.modal-h { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; }
.modal-h .t { font-weight: 600; color: var(--navy); }
.modal-h .x { margin-left: auto; background: none; border: none; font-size: 18px; color: var(--muted); }
.modal-b { padding: 18px; overflow-y: auto; }
.modal-f { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

.field { margin-bottom: 13px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }
.field input, .field select, .field textarea { width: 100%; }
.field textarea { min-height: 90px; resize: vertical; line-height: 1.6; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.kv { display: grid; grid-template-columns: 92px 1fr; gap: 7px 12px; font-size: 13px; }
.kv .k { color: var(--muted); }
.kv .v { color: var(--text); word-break: break-all; }

.toast { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); background: #1f2937; color: #fff; padding: 9px 18px; border-radius: 8px; font-size: 13px; z-index: 100; box-shadow: 0 8px 24px rgba(0,0,0,.25); animation: drop .2s ease; }
@keyframes drop { from { transform: translate(-50%,-12px); opacity: 0; } to { transform: translate(-50%,0); opacity: 1; } }

.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding: 0 0 16px 12px; }
.tl-item::before { content: ''; position: absolute; left: -17px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--navy-3); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); }
.tl-item.done::before { background: var(--green); }
.tl-item .d { font-size: 12px; color: var(--muted); }
.tl-item .t { font-size: 13.5px; margin-top: 2px; }

.countdown { font-variant-numeric: tabular-nums; font-weight: 600; }
.cd-over { color: var(--red); }
.cd-soon { color: var(--orange); }
.cd-ok { color: var(--green); }

.empty-box { text-align: center; color: var(--muted); padding: 40px 20px; font-size: 13px; }
.empty-box .icon { font-size: 30px; margin-bottom: 8px; }

/* 日历 */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-head { text-align: center; font-size: 12px; color: var(--muted); padding: 6px 0; }
.cal-day { min-height: 86px; border: 1px solid var(--border); border-radius: 8px; padding: 6px; background: #fff; font-size: 12px; }
.cal-day.out { background: #fafbfc; color: #b6bec9; }
.cal-day.today { border-color: var(--gold); background: #fffdf6; }
.cal-day .dnum { font-weight: 600; font-size: 13px; }
.cal-ev { margin-top: 4px; padding: 2px 6px; border-radius: 5px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev.hearing { background: var(--red-bg); color: var(--red); }
.cal-ev.deadline { background: var(--orange-bg); color: var(--orange); }
.cal-ev.normal { background: var(--blue-bg); color: var(--navy-3); }

/* 客服对话 */
.chat-box { display: flex; flex-direction: column; height: 460px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; background: #f8f9fb; }
.msg { display: flex; margin-bottom: 12px; }
.msg .bubble { max-width: 78%; padding: 9px 13px; border-radius: 12px; font-size: 13.5px; line-height: 1.65; }
.msg.visitor { justify-content: flex-end; }
.msg.visitor .bubble { background: var(--navy-3); color: #fff; border-bottom-right-radius: 3px; }
.msg.bot .bubble, .msg.agent .bubble { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 3px; }
.msg .meta { font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.chat-input { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--border); }
.chat-input input { flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; outline: none; }

/* 图表 */
.chart-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; font-size: 12.5px; }
.chart-bar-row .n { width: 88px; text-align: right; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-bar-row .track { flex: 1; height: 16px; background: #f0f2f5; border-radius: 4px; overflow: hidden; }
.chart-bar-row .fill { height: 100%; border-radius: 4px; }
.chart-bar-row .v { width: 44px; color: var(--muted); font-variant-numeric: tabular-nums; }

.donut-wrap { display: flex; align-items: center; gap: 18px; }
.legend { font-size: 12.5px; }
.legend .li { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; }

.progress-list .pl { margin-bottom: 12px; }
.progress-list .pl .top { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 5px; }
.progress-list .pl .bar { height: 10px; background: #f0f2f5; border-radius: 5px; overflow: hidden; }
.progress-list .pl .bar i { display: block; height: 100%; border-radius: 5px; }

.upload-zone { border: 2px dashed var(--border); border-radius: 10px; padding: 22px; text-align: center; color: var(--muted); font-size: 13px; cursor: pointer; }
.upload-zone:hover, .upload-zone.drag { border-color: var(--navy-3); background: #f8fafd; color: var(--navy-3); }
.audio-player { width: 100%; margin-top: 8px; }

.analysis-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 0; }
.analysis-grid .ai { background: #f8f9fb; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.analysis-grid .ai .k { font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.analysis-grid .ai .v { font-size: 13px; line-height: 1.5; }

.section-title { font-size: 13px; font-weight: 600; color: var(--navy); margin: 18px 0 10px; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ''; width: 3px; height: 13px; background: var(--gold); border-radius: 2px; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tabs a { padding: 8px 16px; font-size: 13.5px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--navy); border-color: var(--gold); font-weight: 600; }

.notice-list { max-height: 340px; overflow-y: auto; }
.notice-item { padding: 11px 16px; border-bottom: 1px solid #f0f2f5; font-size: 13px; }
.notice-item .t { font-weight: 600; color: var(--navy); }
.notice-item .c { color: var(--muted); font-size: 12px; margin-top: 3px; line-height: 1.5; }
.notice-item .time { color: #9aa3af; font-size: 11px; margin-top: 3px; }

.steps { counter-reset: step; }
.steps .st { position: relative; padding: 0 0 14px 34px; }
.steps .st::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.steps .st .t { font-weight: 600; font-size: 13.5px; }
.steps .st .d { color: var(--muted); font-size: 12.5px; margin-top: 3px; line-height: 1.6; }

.link-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.link-card { border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.link-card .t { font-weight: 600; font-size: 13.5px; color: var(--navy); }
.link-card .d { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.6; }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.tag { display: inline-block; background: #eef2f7; color: #47586e; border-radius: 5px; padding: 1px 7px; font-size: 11.5px; margin: 0 4px 4px 0; }

/* ===== 聊天洞察 ===== */
.summary-text { font-size: 13.5px; line-height: 1.8; color: var(--text); white-space: pre-wrap; }
.sub-h { font-size: 12.5px; font-weight: 700; color: var(--navy); margin: 14px 0 7px; }
.risk-list { display: flex; flex-direction: column; gap: 6px; }
.risk-item { font-size: 12.5px; line-height: 1.6; padding: 7px 10px; border-radius: 7px; background: var(--orange-bg); color: #7a3e08; }
.risk-item.high { background: var(--red-bg); color: var(--red); font-weight: 600; }
.extracted-todos { display: flex; flex-direction: column; gap: 5px; }
.et-item { font-size: 12.5px; line-height: 1.6; padding: 6px 10px; background: var(--green-bg); border-radius: 7px; color: #155f3b; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--blue-bg); color: var(--navy-3); border-radius: 6px; padding: 2px 9px; font-size: 12px; font-weight: 600; }
.chip-hot { background: #fdecec; color: #c0392b; border: 1px solid #f3c4c4; }
.chat-msgs { max-height: 460px; overflow-y: auto; }
.chat-msg { padding: 9px 16px; border-bottom: 1px solid #f1f3f6; }
.chat-msg .cm-h { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.chat-msg .cm-h b { color: var(--navy); font-size: 12.5px; }
.chat-msg .cm-h .time { margin-left: 6px; color: #aab2bd; }
.chat-msg .cm-b { font-size: 13px; line-height: 1.6; color: var(--text); white-space: pre-wrap; }
.src-item { padding: 11px 16px; border-bottom: 1px solid #f1f3f6; }
.src-item .si-h { font-size: 13.5px; }
.src-item .si-s { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.row-actions { float: right; display: inline-flex; gap: 10px; font-size: 12px; }
.row-actions a { color: var(--navy-3); }
.hint { font-size: 12px; color: var(--muted); }
.toolbar .hint { margin-right: 6px; }
.d-flex { display: flex; }

/* ============ 横向条形 / 迷你条（洞察、漏斗、增长） ============ */
.h-bar { display: flex; align-items: center; gap: 10px; margin: 7px 0; }
.hb-name { width: 96px; flex: 0 0 96px; font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-track { flex: 1; height: 16px; background: var(--bg); border-radius: 8px; overflow: hidden; }
.hb-fill { height: 100%; border-radius: 8px; transition: width .4s; min-width: 2px; }
.hb-val { width: 50px; flex: 0 0 50px; text-align: right; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mini-bar { height: 8px; background: var(--bg); border-radius: 5px; overflow: hidden; margin: 5px 0 2px; }
.mini-bar > div { height: 100%; border-radius: 5px; }

/* ============ 会话合规风控 ============ */
.cmp-block { margin-bottom: 16px; }
.cmp-block:last-of-type { margin-bottom: 8px; }
.cmp-h { font-size: 12.5px; font-weight: 600; color: var(--navy); margin: 2px 0 9px; }
.alert-item { padding: 8px 12px; border-left: 3px solid var(--orange); background: var(--orange-bg); border-radius: 6px; margin-bottom: 7px; }
.alert-item.high { border-left-color: var(--red); background: var(--red-bg); }
.alert-item .ai-h { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.alert-item .ai-b { font-size: 12.5px; color: var(--text); line-height: 1.55; }
.intent-item { padding: 7px 12px; background: var(--blue-bg); border-radius: 6px; margin-bottom: 7px; }
.intent-item .ai-h { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.intent-item .ai-b { font-size: 12.5px; color: var(--text); line-height: 1.55; }
.kw { font-weight: 600; color: var(--red); }
.intent-item .kw { color: var(--navy-3); }
.qa-item { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid #f1f3f6; }
.qa-item:last-child { border-bottom: 0; }
.qa-score { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; width: 40px; text-align: right; }
.qa-meta { font-size: 11.5px; color: var(--muted); }

/* ---- 微盛会话存档卡片 ---- */
.ws-stat-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-stat {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--bg); border-radius: 8px; padding: 5px 10px;
  font-size: 12px; color: var(--muted);
}
.mini-stat b { color: var(--text); font-variant-numeric: tabular-nums; }

/* ---- AI 员工（克隆自微盛 AI 版） ---- */
.ai-banner { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; font-size: 13px; line-height: 1.6; }
.ai-banner.on { background: linear-gradient(90deg, #eef6ff, #f4f9ff); border-color: #cfe1f7; }
.ai-banner.off { background: #fbfbfd; }
.emp-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.emp-chip { background: #fff; border: 1px solid var(--border); border-radius: 9px; padding: 7px 11px; display: flex; flex-direction: column; }
.emp-chip b { font-size: 13px; color: var(--navy); }
.emp-chip span { font-size: 11.5px; color: var(--muted); max-width: 220px; }
.ai-out { margin-top: 12px; }
.ai-reply { background: var(--bg); border: 1px solid var(--border); border-radius: 9px; padding: 12px 14px; font-size: 13.5px; line-height: 1.75; white-space: pre-wrap; }
.ai-src { font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.ai-tips { font-size: 12px; color: #b45309; margin-top: 8px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 7px; padding: 7px 10px; }
.ai-meta { font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.ai-banner .hint { margin-top: 4px; }

