:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --border: #e4e7ec;
  --text: #1f2430;
  --text-sub: #6b7280;
  --primary: #e05a2b;
  --primary-dark: #c94a1e;
  --primary-light: #fdeee7;
  --green: #16a34a;
  --green-light: #e8f7ee;
  --red: #dc2626;
  --red-light: #fdeaea;
  --amber: #d97706;
  --amber-light: #fdf3e0;
  --blue: #2563eb;
  --blue-light: #e8effd;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}
.hidden { display: none !important; }

/* ===== 登录 ===== */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fdf0e8 0%, #f5f6f8 60%);
  padding: 20px;
}
.login-card {
  width: 380px;
  max-width: 100%;
  background: var(--panel);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(16, 24, 40, .1);
  padding: 36px 32px;
  text-align: center;
}
.login-logo { font-size: 44px; }
.login-card h1 { font-size: 22px; margin: 8px 0 4px; }
.login-sub { color: var(--text-sub); margin-bottom: 24px; }
.login-tip { color: var(--text-sub); font-size: 12px; margin-top: 14px; }
.login-msg {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--red-light);
  color: var(--red);
  font-size: 13px;
  text-align: left;
}
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }

/* ===== 布局 ===== */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 210px;
  flex-shrink: 0;
  background: var(--panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-brand {
  font-size: 16px;
  font-weight: 700;
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
}
.nav { flex: 1; padding: 10px 8px; overflow-y: auto; }
.nav-group-title {
  font-size: 11px;
  color: var(--text-sub);
  padding: 12px 10px 4px;
  letter-spacing: 1px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  background: none;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.nav-item:hover { background: var(--bg); }
.nav-item.active { background: var(--primary-light); color: var(--primary-dark); font-weight: 600; }
.sidebar-footer { padding: 12px; border-top: 1px solid var(--border); }
.user-chip { font-size: 13px; color: var(--text-sub); margin-bottom: 8px; word-break: break-all; }

.main { flex: 1; padding: 22px 26px; min-width: 0; }
.view h2 { font-size: 19px; margin-bottom: 4px; }
.view-sub { color: var(--text-sub); margin-bottom: 18px; font-size: 13px; }

/* ===== 通用组件 ===== */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 16px;
}
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .sidebar { width: 64px; }
  .sidebar-brand { font-size: 12px; padding: 14px 6px; }
  .nav-item span + * { display: none; }
  .nav-group-title { display: none; }
  .main { padding: 14px; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .main { padding: 10px; }
  .stat-card .stat-value { font-size: 22px; }
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: opacity .15s;
  white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-outline { background: #fff; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--red-light); color: var(--red); }
.btn-ghost { background: none; color: var(--text-sub); }
.btn-ghost:hover { color: var(--text); }
.btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 6px; }
.btn-block { width: 100%; margin-top: 16px; }

input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
textarea { resize: vertical; min-height: 90px; }
.form-field { margin-bottom: 14px; text-align: left; }
.form-field label { display: block; font-size: 13px; color: var(--text-sub); margin-bottom: 5px; }
.field-error { color: var(--red); font-size: 12px; margin-top: 4px; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.form-row .form-field { flex: 1; min-width: 120px; margin-bottom: 10px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); font-size: 13px; }
th { color: var(--text-sub); font-weight: 500; background: #fafbfc; }
tbody tr:hover { background: #fafbfc; }
.table-scroll { overflow-x: auto; }

.tag { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; }
.tag-green { background: #f0faf4; color: #2f9e6e; }
.tag-red { background: #fdeeee; color: #d95f5f; }
.tag-amber { background: #fdf6ec; color: #d98634; }
.tag-blue { background: var(--blue-light); color: var(--blue); }
.tag-gray { background: #f0f1f3; color: var(--text-sub); }

.empty { color: var(--text-sub); text-align: center; padding: 26px 0; font-size: 13px; }
.loading { color: var(--text-sub); text-align: center; padding: 26px 0; }

.stat-card { text-align: left; }
.stat-card .stat-label { color: var(--text-sub); font-size: 12px; margin-bottom: 6px; }
.stat-card .stat-value { font-size: 26px; font-weight: 700; }
.stat-card .stat-extra { font-size: 12px; color: var(--text-sub); margin-top: 4px; }

/* 看板 */
.widget-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.widget-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.widget-head h3 { font-size: 14px; }
.config-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }

/* ===== v20261101r 看板式排版：页面头 + 卡片 + 指标格 + 行式数据 ===== */
.dash-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.dash-head-txt { display: flex; flex-direction: column; gap: 3px; }
.dash-head-txt h2 { margin: 0; font-size: 18px; font-weight: 700; color: #26334d; }
.dash-head-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.dash-head-date { font-size: 11.5px; color: #8a94a6; }
.dash-panel { background: #fff; border: 1px solid #edf1f7; border-radius: 14px; padding: 14px 16px 12px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(38,88,140,.06); }
.dash-panel-head { display: flex; align-items: baseline; gap: 8px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid #f2f5f9; }
.dash-panel-t { font-size: 13.5px; font-weight: 700; color: #26334d; padding-left: 8px; border-left: 3px solid #5b8ff9; line-height: 1.15; }
.dash-panel-s { font-size: 11.5px; color: #98a2b3; }
.dash-panel-r { margin-left: auto; font-size: 11.5px; color: #5b6b84; white-space: nowrap; }
.dash-panel-r-warn { color: #d98634; font-weight: 600; }

/* 重点事项 = 6 格指标（标签 / 大数字+单位 / 状态） */
.dash-alerts { display: grid; grid-template-columns: repeat(auto-fit, minmax(152px, 1fr)); gap: 10px; }
/* 分组小标题：主标题小、说明更小，右侧待处理计数 */
.dm-group { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 8px; }
.dm-group:first-child { margin-top: 2px; }
.dm-group-t { font-size: 12.5px; font-weight: 700; color: #26334d; padding-left: 7px; border-left: 3px solid #dbe6f6; line-height: 1.1; }
.dm-group-s { font-size: 11px; color: #98a2b3; }
.dm-group-r { margin-left: auto; font-size: 11px; color: #8a94a6; white-space: nowrap; }
.dm-group-r-warn { color: #d95f5f; font-weight: 600; }
@media (max-width: 1100px) { .dash-alerts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dash-metric { display: flex; flex-direction: column; gap: 3px; text-align: left; background: #f7fafd; border: 1px solid #eef2f7; border-radius: 10px; padding: 10px 12px 11px; cursor: pointer; font-family: inherit; transition: box-shadow .12s, background .12s; }
.dash-metric:hover { background: #f2f8fd; box-shadow: 0 2px 8px rgba(38,88,140,.08); }
.dm-l { font-size: 11.5px; color: #8a94a6; line-height: 1.3; }
.dm-v { font-size: 22px; font-weight: 800; color: #26334d; line-height: 1.1; }
.dm-v i { font-size: 11.5px; font-weight: 500; font-style: normal; color: #8a94a6; margin-left: 3px; }
.dm-n { font-size: 11px; color: #98a2b3; }
.dm-red { background: #fdf1f1; border-color: #f7dede; }
.dm-red .dm-v { color: #d95f5f; }
.dm-amber { background: #fdf7ef; border-color: #f3e3ca; }
.dm-amber .dm-v { color: #d98634; }
.sev-red { background: #fff; border-color: #f2c7c7; color: #d95f5f; }
.sev-amber { background: #fff; border-color: #f3ddc0; color: #d98634; }
.sev-green { background: #fff; border-color: #cdeeda; color: #2f9e6e; }
.sev-blue { background: var(--blue-light); border-color: var(--blue); color: var(--blue); }

/* 客户口碑英雄卡：指标改行式（标签 + 点线 + 数值） */
.widget-hero { grid-column: 1 / -1; border-left: 4px solid var(--green); box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.cv-metrics { display: flex; flex-direction: column; margin-bottom: 8px; }
.cv-row { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; border-bottom: 1px solid #f2f5f9; }
.cv-row:last-child { border-bottom: none; }
.cv-row .cv-k { font-size: 12.5px; color: #5b6b84; white-space: nowrap; }
.cv-lead { flex: 1; border-bottom: 1px dotted #e3ebf3; transform: translateY(-3px); }
.cv-row .cv-v { font-size: 20px; font-weight: 800; color: #26334d; line-height: 1.1; white-space: nowrap; }
.cv-row .cv-v i { font-size: 11.5px; font-weight: 500; font-style: normal; color: #8a94a6; margin-left: 2px; }
.cv-take { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; border-top: 1px solid #f2f5f9; }
@media (max-width: 700px) { .cv-take { grid-template-columns: 1fr; } }
.cv-item { font-size: 12.5px; padding: 9px 0; border-bottom: 1px solid #f7fafc; line-height: 1.55; color: #3d4a5c; }
.cv-item .cv-k { font-size: 11.5px; font-weight: 400; color: #98a2b3; margin-bottom: 3px; }
.cv-warn { margin-top: 12px; padding: 9px 12px; border-radius: 10px; font-size: 13px; }
.cv-click { margin-top: 12px; font-size: 13px; color: var(--primary); cursor: pointer; font-weight: 600; }
.cv-click:hover { text-decoration: underline; }

.config-item { display: flex; align-items: center; gap: 5px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 5px 9px; font-size: 13px; }
.config-item label { cursor: pointer; display: flex; align-items: center; gap: 5px; }
.config-item input[type=checkbox] { width: auto; }
.mini-list li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 13px; list-style: none; }
.mini-list li:last-child { border-bottom: none; }
.mini-list .muted { color: var(--text-sub); }

/* 会议 */
.meeting-item { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; }
.meeting-item:hover { border-color: var(--primary); }
.meeting-item .m-title { font-weight: 600; margin-bottom: 4px; }
.meeting-item .m-meta { color: var(--text-sub); font-size: 12px; }
.meeting-detail { white-space: pre-wrap; line-height: 1.7; }

.pager-actions { display: flex; gap: 8px; margin-top: 10px; }

#toast-box { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: #1f2430;
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  animation: fadein .2s;
  max-width: 80vw;
}
.toast.err { background: var(--red); }
.toast.ok { background: var(--green); }
@keyframes fadein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; } }

/* 看板跳转高亮 */
@keyframes hlFlash { 0%, 40% { background: #ffe58f; } 100% { background: transparent; } }
.hl-flash { animation: hlFlash 2.6s ease-out; cursor: default; }
li[data-inv-hl], li[data-task-hl] { cursor: pointer; }
li[data-inv-hl]:hover, li[data-task-hl]:hover { background: var(--bg, #f7f8fa); border-radius: 6px; }

/* ===== 每日工作检查 ===== */
.ck-summary { margin: 12px 0; }
.ck-sum-row { display: flex; align-items: center; gap: 16px; }
.ck-sum-big { font-size: 34px; font-weight: 700; color: var(--primary); }
.ck-card { margin-bottom: 12px; }
.ck-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.ck-role { font-weight: 700; font-size: 15px; }
.ck-person { color: var(--text-sub); font-size: 13px; }
.ck-pct { margin-left: auto; font-weight: 600; font-size: 13px; }
.ck-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; line-height: 1.5; }
.ck-ok { background: #e6f7e9; color: #1a7f37; }
.ck-warn { background: #fff7e0; color: #9a6700; }
.ck-bad { background: #fdecec; color: #c0392b; }
.ck-bar { height: 6px; background: #eef0f3; border-radius: 3px; overflow: hidden; margin-bottom: 8px; }
.ck-bar-in { height: 100%; background: linear-gradient(90deg, var(--primary, #2f6fed), #6ea8ff); border-radius: 3px; transition: width .3s; }
.ck-issue, .ck-reason { font-size: 13px; margin: 6px 0; line-height: 1.6; }
.ck-reason { color: var(--text-sub); }
.ck-miss { margin: 6px 0; font-size: 13px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ck-chip { background: #fdecec; color: #c0392b; border-radius: 6px; padding: 1px 8px; font-size: 12px; }
.ck-expand { background: none; border: 1px dashed var(--border, #d9dce1); border-radius: 6px; padding: 5px 10px; font-size: 12px; color: var(--primary); cursor: pointer; margin-top: 6px; }
.ck-items { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.ck-item { border-top: 1px solid var(--border, #eef0f3); padding-top: 8px; }
.ck-thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.ck-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; cursor: zoom-in; border: 1px solid var(--border, #e3e6ea); }
.ck-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.82); z-index: 1000; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.ck-lightbox img { max-width: 94vw; max-height: 92vh; border-radius: 8px; }
.ck-ai-result { margin-top: 10px; background: #f5f8ff; border: 1px solid #dbe6ff; border-radius: 8px; padding: 10px 12px; font-size: 13px; line-height: 1.7; }
.ck-alert { margin: 8px 0; background: #fdecec; border: 1px solid #f5b5b5; color: #b02a2a; border-radius: 8px; padding: 8px 12px; font-size: 13px; line-height: 1.6; }
.ck-alert-amber { background: #fff7e0; border-color: #f0d9a0; color: #8a6100; }
.ck-chip-warn { background: #fff7e0; color: #8a6100; }

/* ===== 经营复盘大屏（overview） ===== */
.ov-wrap { max-width: 1200px; margin: 0 auto; }
.ov-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.ov-title { margin: 0 0 4px; font-size: 22px; }
.ov-sub { color: var(--text-sub); font-size: 13px; }
.ov-date { color: var(--text-sub); font-size: 14px; font-weight: 600; }
.ov-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ov-kpi { background: var(--card, #fff); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; position: relative; overflow: hidden; }
.ov-kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--primary); }
.ov-kpi.ov-teal::before { background: #0e9488; } .ov-kpi.ov-purple::before { background: #7c5cd6; }
.ov-kpi.ov-amber::before { background: #d98b1f; } .ov-kpi.ov-green::before { background: #2e9e5b; }
.ov-kpi-lbl { font-size: 12px; color: var(--text-sub); margin-bottom: 4px; }
.ov-kpi-val { font-size: 24px; font-weight: 800; color: var(--text); line-height: 1.2; }
.ov-kpi-sub { font-size: 12px; color: var(--text-sub); margin-top: 4px; }
.ov-up { color: #d0342c; } .ov-down { color: #1e9e50; }
.ov-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 900px) { .ov-grid2 { grid-template-columns: 1fr; } }
.ov-card { background: var(--card, #fff); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.ov-card-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.ov-trend-sum { font-size: 12px; color: var(--text-sub); margin-bottom: 6px; }
.ov-trend-sum b { color: var(--text); }
.ov-alert { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; font-size: 13px; margin-bottom: 8px; line-height: 1.5; }
.ov-alert:last-of-type { margin-bottom: 0; }
.ov-alert.sev-red { background: #fdecec; color: #b02a2a; }
.ov-alert.sev-amber { background: #fff7e0; color: #8a6100; }
.ov-alert.sev-green { background: #e9f7ee; color: #217a45; }
.ov-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.ov-alert-txt { flex: 1; }
.ov-go { background: none; border: 1px solid currentColor; color: inherit; border-radius: 6px; padding: 2px 8px; font-size: 12px; cursor: pointer; white-space: nowrap; }
.ov-go:hover { opacity: 0.75; }
.ov-fb { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: var(--bg-sub, #fafbfc); }
.ov-fb:last-child { margin-bottom: 0; }
.ov-fb-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.ov-fb-time { font-size: 12px; color: var(--text-sub); }
.ov-fb-user { font-size: 12px; color: var(--text-sub); margin-left: auto; }
.ov-fb-block { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; }
.ov-fb-block.ok { background: #f0faf3; border-radius: 6px; padding: 6px 8px; }
.ov-fb-block.bad { background: #fdecec; border-radius: 6px; padding: 6px 8px; }
.ov-fb-tag { flex: none; font-size: 11px; font-weight: 700; color: var(--text-sub); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; background: #fff; }
.ov-fb-tag.ok { color: #217a45; border-color: #bfe6cc; }
.ov-fb-tag.bad { color: #b02a2a; border-color: #f5b5b5; }
.ov-fb-txt { font-size: 13px; line-height: 1.6; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.ov-idea { border-bottom: 1px dashed var(--border); padding: 8px 0; }
.ov-idea:last-of-type { border-bottom: none; }
.ov-idea.unseen { background: #fff8f2; border-radius: 6px; padding: 8px; }
.ov-idea-head { display: flex; gap: 8px; align-items: center; margin-bottom: 3px; }
.ov-idea-time { font-size: 12px; color: var(--text-sub); }
.ov-new { font-size: 11px; background: #fdecec; color: #b02a2a; border-radius: 4px; padding: 1px 5px; font-weight: 700; }
.ov-idea-txt { font-size: 13px; line-height: 1.6; color: var(--text); }
.ov-more { text-align: center; font-size: 13px; color: var(--primary); cursor: pointer; padding-top: 8px; }
.ov-more:hover { text-decoration: underline; }
.ov-labor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.ov-labor-top { font-size: 13px; line-height: 1.9; color: var(--text); }

/* ===== 重点事项药丸：悬停反馈 + 点击弹明细 ===== */
.ap-click { cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease; position: relative; }
.ap-click:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10); filter: brightness(0.97); }
.ap-click:active { transform: translateY(0); }
.ap-arrow { font-size: 18px; line-height: 1; opacity: 0.45; margin-left: 2px; transition: opacity 0.12s, transform 0.12s; }
.ap-click:hover .ap-arrow { opacity: 1; transform: translateX(2px); }

/* 明细弹层 */
.am-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.am-overlay.hidden { display: none; }
.am-card { background: #fff; border-radius: 14px; width: min(640px, 94vw); max-height: 82vh; display: flex; flex-direction: column; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22); overflow: hidden; }
.am-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 10px; border-bottom: 1px solid var(--border); }
.am-title { font-size: 16px; font-weight: 800; color: var(--text); }
.am-close { background: none; border: none; font-size: 16px; cursor: pointer; color: var(--text-sub); padding: 4px 8px; border-radius: 6px; }
.am-close:hover { background: var(--bg-sub, #f3f4f6); color: var(--text); }
.am-body { padding: 12px 18px; overflow-y: auto; flex: 1; }
.am-foot { padding: 10px 18px 14px; border-top: 1px solid var(--border); text-align: right; }
.am-go { background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 700; cursor: pointer; }
.am-go:hover { background: var(--primary-dark); }
.am-row { border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; margin-bottom: 8px; background: var(--bg-sub, #fafbfc); }
.am-row:last-child { margin-bottom: 0; }
.am-row-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; font-size: 13px; color: var(--text); }
.am-row-txt { font-size: 13px; line-height: 1.6; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.am-row-reply { margin-top: 5px; font-size: 12px; color: var(--text-sub); background: #f0faf3; border-radius: 6px; padding: 5px 8px; line-height: 1.55; }
.am-muted { font-size: 12px; color: var(--text-sub); }
.am-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.am-table th { text-align: left; color: var(--text-sub); font-weight: 600; font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.am-table td { padding: 7px 8px; border-bottom: 1px dashed var(--border); }

/* ===== 数据填报中心（fill） ===== */
.emp-bind-hint { border-left: 4px solid var(--primary); font-size: 13px; line-height: 1.7; color: var(--text-sub); }
.emp-bind-hint b { color: var(--text); }
.fill-identity { display: flex; align-items: center; gap: 12px; background: var(--card, #fff); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.fill-identity.fill-id-warn { border-left: 4px solid #d98b1f; background: #fffaf0; }
.fi-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; flex: none; }
.fi-info { flex: 1; min-width: 0; }
.fi-name { font-size: 16px; font-weight: 800; color: var(--text); }
.fi-sub { font-size: 12.5px; color: var(--text-sub); margin-top: 3px; line-height: 1.5; }
.fill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.fill-card { background: var(--card, #fff); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: transform 0.12s, box-shadow 0.12s; position: relative; }
.fill-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10); }
.fill-card:focus-visible { outline: 2px solid var(--primary); }
.fill-card.is-todo { border-left: 4px solid #d0342c; }
.fill-card.is-done { border-left: 4px solid #2e9e5b; }
.fc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.fc-icon { font-size: 24px; }
.fc-state { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff; }
.fc-state.ok { background: #2e9e5b; }
.fc-state.todo { background: #d0342c; }
.fc-title { font-size: 15px; font-weight: 800; color: var(--text); }
.fc-stat { font-size: 13px; font-weight: 700; margin: 5px 0 3px; color: var(--text); }
.is-todo .fc-stat { color: #b02a2a; }
.is-done .fc-stat { color: #217a45; }
.fc-desc { font-size: 12.5px; color: var(--text-sub); line-height: 1.5; }
.fc-who { font-size: 12px; color: var(--text-sub); margin-top: 6px; opacity: 0.85; }
.fc-go { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--primary); }
.fill-card:hover .fc-go { text-decoration: underline; }

/* ===== 数据源健康状态条 ===== */
.dash-health { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 0; padding: 0; background: transparent; border: none; border-radius: 0; }
.hs-chip { display: flex; align-items: center; gap: 7px; font-size: 11.5px; border-radius: 8px; padding: 8px 10px; border: 1px solid #eef2f7; background: #fafcfe; color: #5b6b84; }
.hs-chip em { font-style: normal; color: #3d4a5c; white-space: nowrap; }
.hs-chip b { font-weight: 600; color: #8a94a6; margin-left: auto; white-space: nowrap; }
.hs-chip i { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #9ca3af; }
.hs-chip.hs-ok i { background: #2f9e6e; }
.hs-chip.hs-amber { border-color: #f3e3ca; background: #fdf7ef; }
.hs-chip.hs-amber i { background: #d98634; }
.hs-chip.hs-amber b { color: #c99a5e; }
.hs-chip.hs-red { border-color: #f7dede; background: #fdf1f1; }
.hs-chip.hs-red i { background: #d95f5f; }
.hs-chip.hs-red b { color: #d95f5f; }
.hs-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.hs-dot-ok { background: #2f9e6e; } .hs-dot-amber { background: #d98634; } .hs-dot-red { background: #e36a6a; }

/* ===== 数据源扫码登录（悬停/点击弹出二维码） ===== */
.hs-chip.hs-login { cursor: pointer; transition: background .12s, border-color .12s; }
.hs-chip.hs-login.hs-amber, .hs-chip.hs-login.hs-red { animation: hs-pulse 2.2s ease-in-out infinite; }
.hs-chip.hs-login:hover { background: #f2f8fd; border-color: #d9e6f5; }
@keyframes hs-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(208, 52, 44, 0); } 50% { box-shadow: 0 0 0 4px rgba(208, 52, 44, 0.12); } }
.hs-qr-hint { font-size: 10.5px; font-weight: 600; background: #fdf1f1; color: #d95f5f; border: 1px solid #f7dede; border-radius: 6px; padding: 1px 6px; margin-left: 6px; }
.am-row-click { cursor: pointer; transition: background 0.12s; }
.am-row-click:hover { background: #fff4f2; }
#qr-img-box img { image-rendering: pixelated; }

/* ===== 任务失败聚合浮层（v20261111c：dashboard「⚠️ 任务失败」chip 悬停） ===== */
#hs-fail-pop { display: none; position: fixed; z-index: 3100; max-width: 440px; background: #fff; border: 1px solid #f7dede; border-radius: 10px; box-shadow: 0 10px 34px rgba(31, 42, 68, .16); font-size: 12px; overflow: hidden; }
#hs-fail-pop .hf-h { font-weight: 700; color: #d95f5f; padding: 9px 12px 7px; border-bottom: 1px solid #f7dede; background: #fdf6f6; }
#hs-fail-pop .hf-list { max-height: 330px; overflow-y: auto; padding: 4px 10px; }
#hs-fail-pop .hf-row { padding: 7px 6px; border-bottom: 1px dashed #f2e3e3; }
#hs-fail-pop .hf-row:last-child { border-bottom: none; }
#hs-fail-pop .hf-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
#hs-fail-pop .hf-top b { font-size: 12.3px; color: #3d4a5c; line-height: 1.4; }
#hs-fail-pop .hf-sub { color: #8a94a6; font-size: 11px; margin-top: 2px; }
#hs-fail-pop .hf-why { color: #c05050; background: #fdf1f1; border-radius: 6px; padding: 3px 7px; margin-top: 4px; font-size: 11.3px; line-height: 1.5; word-break: break-all; }
#hs-fail-pop .hf-f { padding: 7px 12px; color: #8a94a6; border-top: 1px solid #f2e3e3; font-size: 11.3px; }
#hs-fail-pop .hf-f a { color: #2f6fd8; font-weight: 600; }

/* ===== 营业额表格（与企微《每日营业额统计》同款格式） ===== */
.rv-month-nav { display: flex; align-items: center; gap: 8px; }
.rv-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.rv-sheet { border-collapse: collapse; width: 100%; font-size: 12.5px; min-width: 1180px; }
.rv-sheet th, .rv-sheet td { border: 1px solid var(--border); padding: 5px 6px; text-align: center; white-space: nowrap; }
.rv-sheet thead th { background: var(--bg-sub, #f6f7f9); font-weight: 700; font-size: 12px; position: sticky; top: 0; z-index: 2; }
.rv-sheet .rv-date-col { position: sticky; left: 0; z-index: 1; background: var(--bg-sub, #f6f7f9); font-weight: 700; min-width: 84px; }
.rv-sheet thead .rv-date-col { z-index: 3; }
.rv-sheet .rv-main-col { background: #fffbee; min-width: 110px; }
.rv-sheet thead .rv-main-col { background: #fdf3cf; }
.rv-sheet td input { width: 96px; border: 1px solid transparent; background: transparent; text-align: center; padding: 3px 4px; border-radius: 5px; font-size: 12.5px; }
.rv-sheet td input:hover { border-color: var(--border); }
.rv-sheet td input:focus { border-color: var(--primary); background: #fff; outline: none; width: 104px; }
.rv-sheet td input.rv-imported { color: var(--text-sub); font-style: italic; }
.rv-sheet .rv-eff { color: var(--text-sub); font-variant-numeric: tabular-nums; }
.rv-sheet tbody tr.rv-today td { background: #eef6ff; }
.rv-sheet tbody tr.rv-today .rv-main-col { background: #fdf6d8; }
.rv-sheet tfoot td { background: var(--bg-sub, #f6f7f9); font-size: 12.5px; }

/* ===== 企微原文档嵌入视图（doc-embed）===== */
.doc-embed { position: fixed; inset: 0; z-index: 900; background: var(--bg, #f5f6f8); display: flex; flex-direction: column; }
.doc-embed.hidden { display: none; }
.doc-embed .de-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 122px 10px 18px; background: var(--card, #fff); border-bottom: 1px solid var(--border, #e5e7eb); flex: 0 0 auto; }
.doc-embed .de-title { font-weight: 800; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-embed .de-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.doc-embed .de-frame { flex: 1 1 auto; width: 100%; border: 0; background: #fff; }
/* v20261112d：登录提示条（出现扫码页时的自助说明，可永久关闭） */
.doc-embed .de-hint { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; padding: 6px 130px 6px 18px;
  background: #fffbeb; border-bottom: 1px solid #fde68a; font-size: 12px; color: #92700c; }
.doc-embed .de-hint b { color: #a16207; }
.doc-embed .de-hint u { margin-left: auto; cursor: pointer; color: #b45309; text-decoration: none; flex: 0 0 auto; font-weight: 600; }
/* v20261112d：右上角给常驻「🔄 更新」悬浮按钮留位，避免遮住页面顶部右侧按钮 */
.panel-bar { padding-right: 122px; }
.dash-head { padding-right: 122px; }

/* ===== 管理每日流程表（dailyflow）===== */
.df-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 12px; }
.df-card { background: var(--card, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.df-card.df-done { border-color: #22c55e; background: color-mix(in srgb, #22c55e 6%, var(--card, #fff)); }
.df-head { display: flex; align-items: center; gap: 8px; }
.df-ico { font-size: 20px; }
.df-name { font-weight: 800; font-size: 15px; flex: 1; }
.df-doc { font-size: 12px; color: var(--muted, #6b7280); }
.df-desc { font-size: 13px; color: var(--text, #111); line-height: 1.5; }
.df-who { font-size: 12px; color: #16a34a; }
.df-actions { display: flex; gap: 8px; margin-top: 4px; }
.df-donelist { display: flex; flex-direction: column; gap: 6px; }
.df-done-row { display: flex; align-items: center; gap: 10px; background: var(--card, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 10px; padding: 8px 14px; font-size: 13px; }
.df-who-inline { color: #16a34a; font-weight: 600; }
.df-time { margin-left: auto; color: var(--muted, #6b7280); font-size: 12px; }

/* 权限设置面板 */
.df-perm { background: var(--card, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 12px; padding: 16px; }
.df-perm-title { font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.df-perm-sub { font-weight: 400; font-size: 12px; color: var(--muted, #6b7280); margin-left: 6px; }
.df-perm-roles { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 10px; }
.df-perm-role { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.df-perm-actions { display: flex; align-items: center; gap: 12px; }
.df-perm-msg { font-size: 12px; color: #16a34a; }
.df-perm-note { margin-top: 8px; font-size: 12px; color: var(--muted, #6b7280); }
.df-perm-sec { font-weight: 700; font-size: 13px; margin: 12px 0 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.btn-xs { padding: 2px 8px; font-size: 11px; border-radius: 5px; }
.df-perm-presets { display: inline-flex; gap: 6px; font-weight: 400; }
.df-perm-table { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.df-perm-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border: 1px solid var(--border, #e5e7eb); border-radius: 10px; padding: 8px 12px; }
.df-perm-item { font-weight: 700; font-size: 13px; min-width: 110px; }
.df-perm-owner { font-size: 12px; color: var(--muted, #6b7280); display: inline-flex; align-items: center; gap: 6px; }
.df-perm-owner select { font-size: 12px; padding: 3px 6px; border: 1px solid var(--border, #e5e7eb); border-radius: 6px; background: var(--card, #fff); color: var(--text, #111); }
.df-perm-sees { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 220px; }
.df-perm-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--border, #e5e7eb); cursor: pointer; color: var(--muted, #6b7280); user-select: none; white-space: nowrap; }
.df-perm-chip.on { background: #ecfdf5; border-color: #22c55e; color: #15803d; font-weight: 600; }
.df-perm-chip.inherit { border-style: dashed; }

/* 负责岗位角标 */
.df-owner { font-size: 11px; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 999px; padding: 1px 8px; white-space: nowrap; }

/* 今日谁做了什么（自动统计） */
.df-people { background: var(--card, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 12px; padding: 16px; }
.dfp-head { font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.dfp-sub { font-weight: 400; font-size: 12px; color: var(--muted, #6b7280); margin-left: 6px; }
.dfp-group { border: 1px solid var(--border, #e5e7eb); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; }
.dfp-title { font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.dfp-line { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 2px 0; color: var(--text, #111); }
.dfp-ok { flex: 0 0 auto; }
.dfp-no { flex: 0 0 auto; opacity: .75; }
.dfp-detail { color: var(--muted, #6b7280); font-size: 12px; }

/* ===== 话术质检板块 v20261101q：看板式排版（标题条 + 卡片流 + 指标网格 + 行式列表） ===== */
.qc-headbar { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #edf1f7; border-radius: 14px; padding: 12px 16px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(38,88,140,.06); }
.qc-headbar-ic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; background: #eef4ff; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.qc-headbar-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qc-headbar-t { font-size: 16px; font-weight: 700; color: #26334d; line-height: 1.2; }
.qc-headbar-s { font-size: 11.5px; color: #8a94a6; }
.qc-headbar-r { margin-left: auto; font-size: 11.5px; color: #8a94a6; white-space: nowrap; }
.qc-headbar-r b { color: #3d6fb8; font-weight: 600; }
.qc-panel { background: #fff; border: 1px solid #edf1f7; border-radius: 14px; padding: 14px 16px 12px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(38,88,140,.06); }
.qc-panel-head { display: flex; align-items: baseline; gap: 8px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid #f2f5f9; }
.qc-panel-t { font-size: 13.5px; font-weight: 700; color: #26334d; padding-left: 8px; border-left: 3px solid #5b8ff9; line-height: 1.15; }
.qc-panel-s { font-size: 11.5px; color: #98a2b3; }
.qc-panel-r { margin-left: auto; font-size: 11.5px; color: #5b6b84; white-space: nowrap; }
.qc-panel-r-warn { color: #d98634; font-weight: 600; }
.qc-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.qc-metric { background: #f7fafd; border-radius: 10px; padding: 10px 12px 11px; }
.qc-metric-l { font-size: 11.5px; color: #8a94a6; margin-bottom: 5px; line-height: 1.3; }
.qc-metric-n { font-size: 22px; font-weight: 800; color: #26334d; line-height: 1.1; }
.qc-metric-n i { font-size: 11.5px; font-weight: 500; font-style: normal; color: #8a94a6; margin-left: 3px; }
.qc-metric-warn .qc-metric-n { color: #d98634; }
@media (max-width: 760px) { .qc-metrics { grid-template-columns: repeat(2, 1fr); } }
.qc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.qc-card { background: #f9fbfd; border: 1px solid #eef2f7; border-radius: 12px; padding: 12px 14px; }
.qc-card-low { background: #fdf9f3; border-color: #f3e3ca; }
.qc-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.qc-emp { font-weight: 600; font-size: 13.5px; color: #26334d; }
.qc-date { font-size: 11.5px; color: #98a2b3; font-weight: 400; margin-left: 8px; }
.qc-score { font-size: 20px; font-weight: 800; color: #26334d; line-height: 1; white-space: nowrap; }
.qc-score i { font-size: 11px; font-weight: 400; font-style: normal; color: #98a2b3; margin-left: 2px; }
.qc-score-total { font-size: 12px; color: var(--muted, #6b7280); font-weight: 400; }
.qc-score-low { color: #d95f5f; }
.qc-task { font-size: 11.5px; color: #8a94a6; margin: 6px 0 8px; }
.qc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.qc-tag { font-size: 11px; padding: 2px 9px; border-radius: 999px; border: 1px solid #eef2f7; color: #8a94a6; white-space: nowrap; }
.qc-tag-ok { color: #374151; border-color: var(--border, #e5e7eb); background: var(--card, #fff); }
.qc-tag-bad { color: #dc2626; border-color: var(--border, #e5e7eb); background: var(--card, #fff); }
.qc-tag-warn { color: #d95f5f; border-color: #f2e3e3; background: #fdeeee; }
.qc-warn-words { margin-top: 8px; font-size: 11.5px; color: #8a94a6; line-height: 1.6; }
.qc-badlist { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.qc-baditem { font-size: 12px; color: #dc2626; background: var(--card, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 8px; padding: 5px 9px; }
.qc-baditem b { font-weight: 600; }
.qc-ai { margin-top: 8px; font-size: 12px; }
.qc-ai summary { cursor: pointer; color: var(--text, #1f2937); }
.qc-ai-text { margin-top: 6px; color: var(--muted, #6b7280); line-height: 1.6; }
.qc-empty { text-align: center; padding: 60px 20px; color: var(--muted, #6b7280); font-size: 15px; }
.qc-empty-sub { font-size: 12px; }
/* 话术按桌统计 v20261031b */
.qc-daystats { margin: 14px 0 18px; display: flex; flex-direction: column; gap: 12px; }
.qc-daystats-title { font-size: 16px; font-weight: 700; color: var(--text, #1f2937); }
.qc-daystats-sub { font-size: 12px; font-weight: 400; color: var(--muted, #6b7280); margin-left: 8px; }
.qc-dayblock { background: var(--card, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 12px; padding: 12px 14px; }
.qc-dayhead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.qc-dayemp { font-weight: 600; font-size: 15px; }
.qc-daynum { font-size: 14px; color: var(--text, #1f2937); }
.qc-daynum b { font-size: 18px; }
.qc-daygood { color: var(--text, #1f2937); }
.qc-daywarn { color: #dc2626; }
.qc-daymiss { font-size: 12px; color: #dc2626; background: #f9fafb; border-radius: 8px; padding: 4px 10px; }
.qc-chips { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.qc-chip { font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid; white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.qc-chip-ok { color: #374151; border-color: var(--border, #e5e7eb); background: var(--card, #fff); }
.qc-chip-part { color: #374151; border-color: var(--border, #e5e7eb); background: var(--card, #fff); }
.qc-chip-zero { color: #dc2626; border-color: var(--border, #e5e7eb); background: var(--card, #fff); }
/* 话术内容核查 v20261031c */
.qc-rep-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.qc-rep-chip { border: 1px solid var(--border, #e5e7eb); background: var(--card, #fff); border-radius: 999px; padding: 5px 14px; font-size: 13px; cursor: pointer; color: var(--text, #1f2937); }
.qc-rep-chip.active { background: #111827; border-color: #111827; color: #fff; font-weight: 600; }
.qc-check-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 8px 2px 12px; }
.qc-cov { font-size: 11.5px; color: #5b6b84; background: #f4f8fd; border-radius: 10px; padding: 9px 12px; margin: 0; line-height: 1.6; cursor: pointer; user-select: none; }
.qc-cov b { color: #3d6fb8; font-weight: 600; }
.qc-cov-warn { color: #e36a6a; }
.qc-hit-t { display: inline-block; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; color: #374151; background: #f3f4f6; border-radius: 4px; padding: 0 5px; margin-right: 4px; }
/* 子项 = 浅粉卡片（参照周报「推进过程」卡片）：名称+状态胶囊，展开为粉色小标签+正文 */
.qc-ci { background: transparent; border-bottom: 1px solid #f4f8fb; padding: 9px 4px; margin: 0; }
.qc-ci:last-child { border-bottom: none; }
.qc-ci summary { cursor: pointer; display: flex; align-items: center; gap: 8px; list-style: none; }
.qc-ci summary::-webkit-details-marker { display: none; }
.qc-ci-name { font-size: 12.5px; font-weight: 400; color: #3d4a5c; }
.qc-ci summary .qc-chip { margin-left: auto; }
.qc-ci-ok .qc-chip { color: #2f9e6e; border-color: #cdeeda; background: #fff; }
.qc-ci-miss { background: #fdf3f3; box-shadow: inset 3px 0 0 #f3c9c9; }
.qc-ci-miss .qc-chip-red { color: #d24b4b; border-color: #f2c0c0; background: #fdeaea; }
.qc-ci-miss .qc-ci-name { color: #8f4a4a; }
.qc-ci-ai { background: transparent; }
.qc-ci-ai .qc-ci-name { color: #9ca3af; font-size: 12.5px; }
/* 子项展开内容：粉色小标签 + 常规字重正文，直接排在卡片上 */
.qc-ci-hits { margin-top: 8px; padding: 9px 12px 10px; background: #f7fafd; border-radius: 8px; }
.qc-hit-title { font-size: 10.5px; color: #5b8ff9; letter-spacing: 1px; margin-bottom: 5px; }
.qc-hit { font-size: 12px; font-weight: 600; color: #4a5568; line-height: 1.8; }
.qc-hit .qc-hit-t { margin-right: 8px; font-weight: 400; }
/* 违规用词 = 手风琴行：收起一行，展开逐条 */
.qc-bad { border: 1px solid #eef2f7; background: #fbfcfe; border-radius: 10px; padding: 0; margin: 0; overflow: hidden; }
.qc-bad summary { cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 14px; list-style: none; }
.qc-bad summary::-webkit-details-marker { display: none; }
.qc-bad summary:hover { background: #fafafa; }
.qc-fold-ic { font-size: 14px; }
.qc-fold-t { font-size: 12.5px; font-weight: 600; color: #3d4a5c; }
.qc-fold-arrow { margin-left: auto; font-size: 12px; color: #9ca3af; transition: transform .15s; }
.qc-bad[open] summary { border-bottom: 1px solid #f3f4f6; }
.qc-bad[open] .qc-fold-arrow { transform: rotate(180deg); }
.qc-bad-none { font-size: 11.5px; color: #8a94a6; padding: 10px 12px; border: 1px dashed #e7eef6; border-radius: 10px; margin: 0; }
.qc-bad-row { padding: 9px 12px; border-bottom: 1px solid #f2f5f9; }
.qc-bad-row:last-child { border-bottom: none; }
.qc-bad-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 3px; }
.qc-bad-meta .qc-bad-jump { margin-left: auto; }
.qc-bad-word { font-size: 12.5px; font-weight: 600; color: #d95f5f; }
.qc-bad-jump { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; color: #374151; background: #f3f4f6; border: none; border-radius: 4px; padding: 1px 7px; cursor: pointer; }
.qc-bad-jump:hover { background: #e5e7eb; }
.qc-bad-cat { font-size: 11px; color: #98a2b3; }
.qc-bad-said { font-size: 11.5px; color: #6b7686; line-height: 1.65; }
.qc-bad-ctx { margin-top: 6px; padding: 6px 10px; background: #f9fafb; border-radius: 6px; display: flex; flex-direction: column; gap: 3px; }
.qc-bad-ctx-line { font-size: 12px; color: #4b5563; line-height: 1.5; }
.qc-bad-ctx-hit { color: #b91c1c; font-weight: 600; }
.qc-bad-audio { margin-top: 8px; padding: 8px 10px; background: #f9fafb; border: 1px solid var(--border, #e5e7eb); border-radius: 6px; }
.qc-bad-audio-tip { font-size: 11.5px; color: #374151; margin-bottom: 5px; }
.qc-bad-audio audio { width: 100%; height: 34px; }
/* 侧栏版本号条 */
.ver-bar { font-size: 11px; color: var(--muted, #6b7280); margin: 2px 14px 8px; }
.ver-bar summary { cursor: pointer; list-style: none; user-select: none; }
.ver-bar summary::-webkit-details-marker { display: none; }
.ver-bar summary:hover { color: var(--text, #1f2937); }
.ver-list { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 10.5px; line-height: 1.8; background: rgba(0,0,0,.04); border-radius: 6px; padding: 6px 9px; margin-top: 5px; max-height: 200px; overflow: auto; }
.qc-ver-badge { font-size: 11.5px; color: #6b7280; background: #f3f4f6; border: 1px dashed #d1d5db; border-radius: 999px; padding: 3px 12px; margin: 0 0 10px; display: inline-block; }
/* 状态胶囊：默认灰描边，红色=问题，暗灰=AI 判定 */
.qc-chip { display: inline-block; font-size: 11px; line-height: 1; color: #5b6b84; background: #f7fafd; border: 1px solid #eef2f7; border-radius: 6px; padding: 4px 8px; white-space: nowrap; }
.qc-chip-red { color: #d95f5f; border-color: #f2c7c7; background: #fdeeee; font-weight: 600; }
.qc-chip-dim { color: #a8b3c2; border-style: dashed; }
/* 小节标题：主标题大、说明小 */
.qc-sec { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 8px; padding-bottom: 6px; border-bottom: 1px solid #f2f5f9; }
.qc-sec-t { font-size: 13.5px; font-weight: 700; color: #26334d; }
.qc-sec-s { font-size: 11.5px; color: #98a2b3; }
.qc-sec-r { margin-left: auto; font-size: 11.5px; color: #5b6b84; white-space: nowrap; }
.qc-sec-r + .qc-sec-r { margin-left: 10px; }
.qc-sec-r-warn { color: #d95f5f; font-weight: 600; }
.qc-ci-miss .qc-hit { border-left-color: #d1d5db; }
/* 账号密码登录 v20261031b */
.login-tabs { display: flex; gap: 6px; margin-bottom: 16px; background: var(--bg, #f3f4f6); border-radius: 10px; padding: 4px; }
.login-tab { flex: 1; border: 0; background: transparent; padding: 8px 0; border-radius: 8px; font-size: 14px; cursor: pointer; color: var(--muted, #6b7280); }
.login-tab.active { background: var(--card, #fff); color: var(--text, #1f2937); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.login-pane.hidden { display: none; }

/* ===== 话术质检：员工折叠列表（v20261031e） ===== */
.qc-erwrap { background: #fff; border: 1px solid #edf1f7; border-radius: 14px; padding: 14px 16px; margin: 14px 0; box-shadow: 0 2px 10px rgba(38,88,140,.06); }
.qc-erwrap-head { font-size: 15px; font-weight: 600; color: var(--text, #111827); margin-bottom: 10px; }
.qc-erwrap-sub { font-size: 12px; font-weight: 400; color: var(--muted, #6b7280); margin-left: 6px; }
.qc-erlist { display: flex; flex-direction: column; }
.qc-er { border-bottom: 1px solid #f2f5f9; background: #fff; }
.qc-er:last-child { border-bottom: none; }
.qc-er > summary { display: flex; align-items: center; gap: 12px; padding: 11px 6px; cursor: pointer; list-style: none; background: #fff; }
.qc-er > summary::-webkit-details-marker { display: none; }
.qc-er > summary:hover { background: #f8fbfe; }
.qc-er[open] > summary { background: #f8fbfe; border-bottom: 1px dashed #e7eef6; }
.qc-er-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.qc-er-name { font-size: 14px; font-weight: 600; color: #26334d; line-height: 1.2; }
.qc-er-meta { font-size: 11.5px; color: #8a94a6; }
.qc-er-kpis { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.qc-er-kpi { display: inline-flex; align-items: baseline; gap: 4px; font-size: 11.5px; color: #5b6b84; background: #f7fafd; border: 1px solid #eef2f7; border-radius: 8px; padding: 4px 9px; white-space: nowrap; }
.qc-er-kpi i { font-style: normal; font-size: 11px; color: #98a2b3; }
.qc-er-kpi b { font-size: 13px; font-weight: 700; color: #26334d; }
.qc-er-kpi-ok b { color: #2f9e6e; }
.qc-er-kpi-bad { background: #fdeeee; border-color: #f2c7c7; }
.qc-er-kpi-bad i { color: #cf8b8b; }
.qc-er-kpi-bad b { color: #d24b4b; }
.qc-er-arrow { flex: 0 0 auto; width: 16px; text-align: center; font-size: 11px; color: #a8b3c2; }
.qc-er-body { padding: 4px 6px 16px; }
/* 分组 = 大圆角卡片行：编号标题 + 紧跟其后的状态胶囊 + 右侧箭头 */
.qc-grp { border: 1px solid #f2f5f9; border-radius: 10px; margin: 8px 0; background: #fff; overflow: hidden; }
.qc-grp > summary { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; list-style: none; }
.qc-grp > summary::-webkit-details-marker { display: none; }
.qc-grp > summary:hover { background: #f8fbfe; }
.qc-grp-name { font-size: 12.5px; font-weight: 600; color: #3d4a5c; }
.qc-grp-tag { display: flex; align-items: center; gap: 6px; }
.qc-grp-arrow { margin-left: auto; font-size: 11px; color: #a8b3c2; transition: transform .15s; }
.qc-grp[open] .qc-grp-arrow { transform: rotate(180deg); }
.qc-grp[open] > summary { border-bottom: 1px solid #f2f5f9; background: #f8fbfe; }
.qc-grp-body { padding: 0 12px 6px; display: flex; flex-direction: column; }

/* 浅色系看板画布 */
#view-qc { background: linear-gradient(160deg, #eef8f1 0%, #edf3fb 100%); border-radius: 16px; padding: 14px 16px; }

/* ===== 管理看板：浅色系可视化看板 v20261101p ===== */
#view-dashboard { background: linear-gradient(160deg, #eef8f1 0%, #edf3fb 100%); border-radius: 16px; padding: 14px 16px; }
#view-dashboard h2 { color: #26334d; }
#view-dashboard .view-sub { color: #8a94a6; }
#view-dashboard .card { background: #fff; border: 1px solid #edf1f7; border-radius: 14px; box-shadow: 0 2px 10px rgba(38,88,140,.06); }
#view-dashboard .widget-head h3 { color: #26334d; }
#view-dashboard .config-bar .btn-outline { background: #fff; border-color: #e3ebf3; color: #5b6b84; }
.dash-alerts-label { color: #26334d; }

/* ===== 意见箱：月份切换 + 线下客情反馈 ===== */
.fbx-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.fbx-monthnav { display: flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 2px 4px; }
.fbx-monthnav .btn { padding: 2px 8px; min-width: 26px; line-height: 20px; }
.fbx-month { font-size: 13px; font-weight: 600; color: var(--text); min-width: 82px; text-align: center; }

.kq-topics { display: grid; gap: 7px; margin-top: 6px; }
.kq-t { display: grid; grid-template-columns: 84px 1fr 132px; align-items: center; gap: 10px; }
.kq-tn { font-size: 12.5px; color: var(--text); }
.kq-tb { height: 7px; background: #f1f4f9; border-radius: 4px; overflow: hidden; display: block; }
.kq-tb i { display: block; height: 100%; background: linear-gradient(90deg, #9fc3f3, #5b8ff9); border-radius: 4px; }
.kq-tv { font-size: 12px; color: var(--text-sub); text-align: right; }
.kq-samples { margin-top: 12px; border-top: 1px dashed var(--border); padding-top: 10px; display: grid; gap: 6px; }
.kq-s { display: flex; gap: 8px; font-size: 12.5px; line-height: 1.6; }
.kq-sk { flex: 0 0 84px; color: var(--text-sub); }
.kq-sv { flex: 1; color: #26334d; }
.kq-sol { font-size: 12.5px; color: #2f9e6e; background: #f0faf4; border-radius: 6px; padding: 5px 8px; margin-top: 6px; }
@media (max-width: 620px) {
  .kq-t { grid-template-columns: 72px 1fr; }
  .kq-tv { grid-column: 1 / -1; text-align: left; }
}

/* ===== 我的工作台 v20261102d ===== */
.mw-stat-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.mw-stat {
  flex: 1; min-width: 96px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 12px; text-align: center;
}
.mw-stat b { display: block; font-size: 22px; line-height: 1.2; }
.mw-stat span { font-size: 12px; color: var(--text-sub); }
.mw-stat-red { background: var(--red-light); border-color: #f5c2c2; }
.mw-stat-red b { color: var(--red); }
.mw-stat-amber { background: var(--amber-light); border-color: #f3dfae; }
.mw-stat-amber b { color: var(--amber); }
.mw-stat-green { background: var(--green-light); border-color: #bfe6ce; }
.mw-stat-green b { color: var(--green); font-size: 16px; padding: 3px 0; }
.mw-task {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 8px;
  border-bottom: 1px dashed var(--border); border-radius: 8px;
}
.mw-task:hover { background: var(--bg); }
.mw-task-urgent { background: #fff; border-left: 3px solid var(--red); }
/* 长文本折叠：标题/回执/备注最多显示行数，悬停看全文（v20261103a） */
.clamp1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mw-todo-item { display: flex; align-items: center; gap: 8px; padding: 7px 2px; border-bottom: 1px dashed var(--border); }
@media (max-width: 620px) {
  .mw-stat { min-width: 76px; padding: 8px; }
  .mw-stat b { font-size: 18px; }
}

/* ===== 员工端 staff.html v20261102d ===== */
.staff-head {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--border);
}
.staff-head b { font-size: 16px; }
.staff-date { margin-left: 10px; font-size: 12px; color: var(--text-sub); }
.staff-tabs {
  display: flex; gap: 6px; padding: 10px 16px 0; background: var(--panel);
  border-bottom: 1px solid var(--border); overflow-x: auto;
}
.staff-tab {
  border: 0; background: var(--bg); color: var(--text-sub); padding: 9px 14px; border-radius: 10px 10px 0 0;
  font-size: 14px; cursor: pointer; white-space: nowrap;
}
.staff-tab.active { background: var(--primary-light); color: var(--primary-dark); font-weight: 600; }
.staff-main { padding: 14px 16px 40px; max-width: 900px; margin: 0 auto; }
@media (max-width: 620px) {
  .staff-main { padding: 12px 10px 40px; }
  .staff-head { padding: 10px 12px; }
}

/* ===== 管理每日流程 · 今日重点待办 v20261102e ===== */
.df-card-sub { margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ===== 数字化流程看板（浅色系大屏风格，对齐参考图）===== */
.dfdb-screen { background: linear-gradient(135deg, #f3e9fb 0%, #e9f0fb 52%, #e6f7f1 100%); border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.dfdb-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.dfdb-title b { font-size: 18px; font-weight: 700; color: #2b3a55; }
.dfdb-en { margin-left: 8px; font-size: 11px; color: #9aa7bd; font-weight: 500; letter-spacing: .3px; }
.dfdb-clock { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-sub); }
.dfdb-clock #dfdb-time { font-size: 15px; font-weight: 700; color: #2b3a55; font-variant-numeric: tabular-nums; }
.dfdb-rate { font-size: 12px; color: var(--text-sub); }
.dfdb-rate b { font-size: 14px; }
.dfdb-rate.ok b { color: #2fa57d; } .dfdb-rate.mid b { color: #e8912d; } .dfdb-rate.low b { color: #e05a4e; }
.dfdb-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0; }
.dfdb-kpi { background: #fff; border: 1px solid #e6ecf5; border-radius: 14px; padding: 13px 14px; box-shadow: 0 2px 8px rgba(60, 80, 120, .06); position: relative; }
.dfdb-ico { position: absolute; top: 12px; right: 12px; font-size: 16px; opacity: .85; }
.dfdb-kpi b { font-size: 28px; line-height: 1; letter-spacing: -.5px; }
.dfdb-kpi b i { font-style: normal; font-size: 14px; color: var(--text-sub); margin: 0 2px; }
.dfdb-kpi span { display: block; font-size: 12px; color: var(--text-sub); margin-top: 6px; }
.dfdb-kbar { height: 6px; border-radius: 3px; background: #edf1f5; margin-top: 9px; overflow: hidden; }
.dfdb-kbar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #2fa57d, #7fd4b4); }
.dfdb-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.dfdb-card { background: #fff; border: 1px solid #e6ecf5; border-radius: 14px; padding: 13px 15px; box-shadow: 0 2px 8px rgba(60, 80, 120, .06); min-width: 0; }
.dfdb-card h4 { margin: 0 0 10px; font-size: 13px; color: #44506a; font-weight: 700; display: flex; align-items: baseline; gap: 6px; }
.dfdb-card h4 .dfdb-en { font-weight: 500; }
.dfdb-chartcard { display: flex; flex-direction: column; }
.dfdb-svg { width: 100%; height: auto; max-height: 168px; display: block; }
.dfdb-barwrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; height: 96px; padding-top: 6px; }
.dfdb-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.dfdb-bar i { display: block; width: 70%; max-width: 26px; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, #5b8def, #a9c6f7); }
.dfdb-barv { font-size: 11px; font-weight: 600; color: #44506a; }
.dfdb-barl { font-size: 10px; color: var(--text-sub); }
.dfdb-items { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.dfdb-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.dfdb-row:last-child { border-bottom: none; }
.dfdb-dot { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; background: #ccd3de; flex: none; }
.dfdb-dot.ok { background: #2fa57d; }
.dfdb-owner { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 4px 0; }
.dfdb-owner .bar { flex: 1; height: 8px; border-radius: 4px; background: #edf1f5; overflow: hidden; }
.dfdb-owner .bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #f0a35e, #f7cba0); }
@media (max-width: 720px) {
  .dfdb-kpis { grid-template-columns: repeat(2, 1fr); }
  .dfdb-grid2 { grid-template-columns: 1fr; }
  .dfdb-items { grid-template-columns: 1fr; }
}

/* ===== 导航分组二级 Tab ===== */
.grp-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; border-bottom: 1px solid var(--border, #e5e7eb); padding-bottom: 12px; }
.grp-tab { border: 1px solid var(--border, #e5e7eb); background: var(--card, #fff); color: var(--text-sub, #6b7280); padding: 7px 14px; border-radius: 20px; font-size: 14px; cursor: pointer; transition: all .15s; white-space: nowrap; }
.grp-tab:hover { border-color: var(--primary, #b45309); color: var(--primary, #b45309); }
.grp-tab.active { background: var(--primary, #b45309); border-color: var(--primary, #b45309); color: #fff; font-weight: 600; }
@media (max-width: 720px) { .grp-tab { padding: 6px 11px; font-size: 13px; } }

/* ===== 老板娘工作台 ===== */
.bl-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.bl-kpi { background: linear-gradient(135deg, #fff7ed, #fdeee7); border: 1px solid var(--primary-light); border-radius: 12px; padding: 16px; text-align: center; }
.bl-kpi-ico { font-size: 24px; }
.bl-kpi-val { font-size: 26px; font-weight: 700; color: var(--primary-dark); margin: 6px 0 2px; }
.bl-kpi-label { font-size: 13px; color: var(--text); }
.bl-kpi-sub { font-size: 11px; color: var(--text-sub); margin-top: 2px; }
.bl-kb-form { background: #fafafa; border: 1px dashed var(--border); border-radius: 10px; padding: 12px; margin-bottom: 8px; }
.bl-kb-item { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: #fff; }
.bl-kb-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.bl-kb-content { font-size: 13px; color: var(--text); line-height: 1.6; white-space: pre-wrap; }
.bl-kb-link { font-size: 12px; color: var(--primary); display: inline-block; margin-top: 4px; }
.bl-kb-tags { font-size: 11px; color: var(--text-sub); margin-top: 4px; }
.bl-kb-ops { margin-top: 6px; display: flex; gap: 6px; }
.bl-script-item { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; background: #fff; }
.bl-script-meta { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; }
.bl-script-idea { font-size: 13px; color: var(--text-sub); margin-bottom: 4px; }
@media (max-width: 720px) { .bl-kpis { grid-template-columns: repeat(2, 1fr); } }

/* ===== 出纳资金 ===== */
.cf-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.cf-card { background: #fafafa; border: 1px solid var(--border); border-radius: 10px; padding: 12px; text-align: center; }
.cf-num { font-size: 20px; font-weight: 700; }
.cf-lb { font-size: 12px; color: var(--text-sub); margin-top: 2px; }
.cf-form { background: #fafafa; border: 1px dashed var(--border); border-radius: 10px; padding: 12px; }
.cf-row { display: flex; align-items: center; gap: 8px; padding: 8px 4px; border-bottom: 1px solid var(--border); font-size: 13px; flex-wrap: wrap; }
.cf-date { color: var(--text-sub); min-width: 78px; }
.cf-amt { font-weight: 600; min-width: 80px; text-align: right; }
.cf-note { color: var(--text-sub); flex: 1; font-size: 12px; }
.tag-green { background: #dcfce7; color: #16a34a; }
.tag-red { background: #fee2e2; color: #dc2626; }

/* ===== 人设知识库：高级折叠 ===== */
.bl-kb-adv { margin: 8px 0 4px; font-size: 12px; color: var(--text-sub); }
.bl-kb-adv summary { cursor: pointer; padding: 4px 0; user-select: none; }
.bl-kb-adv summary:hover { color: var(--primary); }
.bl-kb-adv[open] { padding-bottom: 6px; }

/* ===== 👑 老板娘工作台 · 独立端 v20261103a ===== */
.bl-app { min-height: 100vh; background: var(--bg); }
.bl-head {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 16px; background: linear-gradient(100deg, #fff 0%, #fdf2f8 60%, #f5f3ff 100%);
  border-bottom: 1px solid var(--border);
}
.bl-head-l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bl-logo { font-size: 22px; line-height: 1; }
.bl-head-tt { display: flex; flex-direction: column; min-width: 0; }
.bl-head-tt b { font-size: 16px; line-height: 1.2; }
.bl-head-tt i { font-style: normal; font-size: 11px; color: var(--text-sub); }
.bl-head-r { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.bl-who { font-size: 12px; color: var(--text-sub); max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-main { padding: 16px; max-width: 920px; margin: 0 auto; }
@media (max-width: 620px) {
  .bl-main { padding: 12px 10px 40px; }
  .bl-head { padding: 9px 12px; }
  .bl-head-tt b { font-size: 15px; }
}

/* ===== 📷 截图自动记账 v20261103f ===== */
.cf-snap { background: linear-gradient(100deg, #f0f9ff 0%, #f5f3ff 100%); border: 1px dashed #c7d2fe; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.cf-snap-tip { font-size: 12px; color: #475569; margin-bottom: 8px; }
.cf-snap-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cf-snap-row input[type="text"], .cf-snap-row input:not([type]) { flex: 1; min-width: 140px; }
.cf-snap-status { margin-top: 8px; font-size: 13px; }
.cf-snap-status.cf-snap-err { color: #dc2626; }
.cf-snap-confirm { margin-top: 8px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.cf-snap-confirm-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cf-snap-confirm-row input[type="number"] { width: 110px; }
.cf-snap-merchant { font-size: 12px; color: var(--text-sub); flex: 1; min-width: 120px; }
.cf-receipt { text-decoration: none; font-size: 14px; }

/* ===== 意见箱口径卡点击筛选 v20261104c ===== */
.fbx-port-link { cursor: pointer; transition: box-shadow .15s, transform .15s; }
.fbx-port-link:hover { transform: translateY(-1px); }
.fbx-port-on { outline: 2px solid var(--red); outline-offset: -2px; }
.fbx-port-on::after { content: '▼ 筛选中'; display: block; font-size: 11px; color: var(--red); margin-top: 2px; }

/* ===== 话术质检日期筛选条 v20261107a ===== */
.qc-daybar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 2px; }
.qc-daybar-l { font-size: 12px; color: #8a8f99; }
.qc-day-chip { border: 1px solid #e5e8ee; background: #fff; border-radius: 999px; padding: 4px 14px; font-size: 13px; cursor: pointer; color: #4b5563; transition: all .15s; }
.qc-day-chip:hover { border-color: #ff6600; color: #ff6600; }
.qc-day-chip.on { background: #ff6600; border-color: #ff6600; color: #fff; font-weight: 600; }

/* ===== 每日检查「只看问题」模式 v20261107c ===== */
.ck-doc-link { margin-left: auto; font-size: 12px; color: #2563eb; white-space: nowrap; opacity: .85; }
.ck-card .ck-head:hover .ck-doc-link { opacity: 1; text-decoration: underline; }
.ck-clean-row { display: flex; align-items: center; gap: 6px; padding: 10px 14px; font-size: 13px; color: #8a8f99; }

/* ===== 🧩 卡片式工作台面板 v20261107a ===== */
.panel-bar { display: flex; align-items: center; gap: 8px; margin: 2px 0 12px; flex-wrap: wrap; }
.panel-bar-t { font-size: 14px; font-weight: 600; }
.panel-ver { font-size: 11px; color: #b0b6c0; font-style: normal; margin-left: 4px; font-weight: 400; }
.panel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.panel-card { background: #fff; border: 1px solid #e9ecf2; border-radius: 12px; padding: 14px 16px; box-shadow: 0 1px 2px rgba(16,24,40,.04); min-width: 0; }
.panel-card.pc-off { opacity: .45; }
.pc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 8px; }
.pc-head b { font-size: 14px; }
.pc-tools { display: inline-flex; gap: 2px; flex-shrink: 0; }
.pc-tools button { border: 0; background: transparent; cursor: pointer; font-size: 14px; padding: 2px 5px; border-radius: 6px; }
.pc-tools button:hover { background: #f3f5f9; }
.pc-body { font-size: 13px; min-height: 20px; }
.pc-sec { font-size: 12px; color: #8a8f99; margin: 8px 0 2px; }
.pc-todo-row { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px dashed #f0f2f6; cursor: pointer; flex-wrap: wrap; }
.pc-todo-t { flex: 1; min-width: 120px; }
.pc-bad-sum { display: flex; gap: 14px; font-size: 13px; margin-bottom: 6px; }
.pc-bad-sum .pc-un b { color: #e34d59; }
.pc-bad-row { display: flex; align-items: center; gap: 6px; padding: 5px 0; border-bottom: 1px dashed #f0f2f6; }
.pc-bad-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #4b5563; }
.pc-qc-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-qc-chip { border: 1px solid #e9ecf2; border-radius: 10px; padding: 6px 10px; display: flex; flex-direction: column; min-width: 78px; gap: 1px; }
.pc-qc-chip b { font-size: 13px; }
.pc-qc-chip span { font-size: 17px; font-weight: 700; }
.pc-qc-chip i { font-style: normal; font-size: 11px; color: #8a8f99; font-weight: 400; }
.pc-qc-chip u { text-decoration: none; font-size: 11px; color: #8a8f99; }
.pc-qc-ok span { color: #0a9c56; }
.pc-qc-bad span { color: #e34d59; }
.pc-doc { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pc-note { line-height: 1.7; color: #4b5563; }
.pc-ai-plan { border: 1px solid #e9ecf2; border-radius: 10px; padding: 10px 12px; margin-top: 4px; background: #fafbfc; }
.pc-ai-reply { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.pc-ai-item { font-size: 13px; padding: 3px 0; }
.pc-t-dailyflow { grid-column: 1 / -1; }
.pc-t-dailyflow .pc-body h2, .pc-t-dailyflow .pc-body .view-sub { display: none; }
#pc-dialog textarea { width: 100%; box-sizing: border-box; }

/* ===== 面板提示行 + 排班/打卡/缺项卡 v20261108a ===== */
.pc-hint { font-size: 12px; color: #8a6d1f; background: #fdf6e3; border: 1px solid #f3e3b3; border-radius: 10px; padding: 7px 12px; margin: 0 0 10px; line-height: 1.6; }
.pc-sch-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px dashed #f0f2f6; flex-wrap: wrap; }
.pc-sch-note { font-size: 12px; color: #8a8f99; }
.pc-clk-row { display: flex; align-items: center; gap: 6px; padding: 5px 0; border-bottom: 1px dashed #f0f2f6; flex-wrap: wrap; }
.pc-clk-row b { min-width: 64px; }
.pc-miss-ok { font-size: 13px; color: #0a9c56; padding: 4px 0; }

/* ===== 💬 提需求 · 连续对话 v20261108b ===== */
#pc-ai-chat { max-height: 320px; min-height: 120px; overflow-y: auto; border: 1px solid #e9ecf2; border-radius: 10px; padding: 10px; background: #fafbfc; display: flex; flex-direction: column; gap: 8px; }
.pc-msg { max-width: 88%; font-size: 13px; line-height: 1.65; word-break: break-word; }
.pc-msg-a { align-self: flex-start; background: #fff; border: 1px solid #e9ecf2; border-radius: 10px 10px 10px 2px; padding: 7px 11px; color: #374151; }
.pc-msg-u { align-self: flex-end; background: #e8f0fe; border-radius: 10px 10px 2px 10px; padding: 7px 11px; color: #1e4fc2; }
.pc-msg .pc-ai-plan { margin: 0; background: #fff; }
.pc-typing { color: #8a8f99; }
#pc-dialog textarea { width: 100%; box-sizing: border-box; }

/* ===== 企微推送深链高亮 v20261107f ===== */
.ck-flash { animation: ckFlashPulse 1.1s ease-in-out 3; }
@keyframes ckFlashPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 102, 0, 0); }
  50% { box-shadow: 0 0 0 5px rgba(255, 102, 0, .38); }
}
.ck-chip-link { cursor: pointer; }
.ck-chip-link:hover { border-color: #ff6600; color: #ff6600; }
.ck-chip-flash { animation: ckFlashPulse 1.1s ease-in-out 3; border-color: #ff6600 !important; }

/* ===== 店面监控 v20261107a ===== */
.cam-card .cam-view { position: relative; background: #0b0f14; border-radius: 10px; overflow: hidden; aspect-ratio: 16/9; cursor: pointer; }
.cam-view img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cam-view .cam-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #9aa4b0; font-size: 13px; }
.cam-err { min-height: 18px; margin-top: 6px; font-size: 12px; }
.cam-err span { color: #d97706; }
.cam-dot { width: 10px; height: 10px; border-radius: 50%; background: #9aa4b0; display: inline-block; flex: none; }
.cam-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.cam-lightbox.hidden { display: none; }
.cam-lightbox img { max-width: 96vw; max-height: 84vh; object-fit: contain; }

/* v20261109e 💬提需求 · Ctrl+V 粘贴截图进对话 */
.pc-imgbar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pc-imgbar.hidden { display: none; }
.pc-imgthumb { position: relative; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; border: 1px solid #e5e7eb; background: #f6f7f9; }
.pc-imgthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-imgthumb button { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; border: none; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; line-height: 18px; text-align: center; cursor: pointer; padding: 0; }
.pc-msg-imgs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pc-msg-imgs img { max-width: 150px; max-height: 110px; border-radius: 8px; border: 1px solid rgba(0,0,0,.08); display: block; }

/* v20261109f 🤖AI助手 · 快捷问题 chips */
.pc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pc-chips:empty { display: none; }
.pc-chip-q { border: 1px solid #e5e7eb; background: #f7f8fa; border-radius: 16px; padding: 5px 12px; font-size: 12px; color: #444; cursor: pointer; transition: all .15s; }
.pc-chip-q:hover { background: #fff3ec; border-color: #f08c00; color: #d9480f; }

/* v20261110a 意见箱 · 两大问卷板块切换卡 */
.fbx-sec { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); background: #fff; border-radius: 10px; padding: 10px 16px; cursor: pointer; transition: all .15s; text-align: left; min-width: 240px; flex: 1; }
.fbx-sec:hover { border-color: #f08c00; }
.fbx-sec.on { border-color: #f08c00; background: #fff7f0; box-shadow: 0 1px 4px rgba(240,140,0,.12); }
.fbx-sec-i { font-size: 24px; }
.fbx-sec-t { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fbx-sec-t b { font-size: 14px; }
.fbx-sec-t i { font-style: normal; font-size: 11.5px; color: var(--text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fbx-sec-n { font-size: 13px; font-weight: 600; color: var(--text-sub); white-space: nowrap; }

/* 意见箱统计卡（v20261110c）：带 👆 的可点击跳明细 */
.fbx-stat-c { transition: box-shadow .15s, transform .15s; }
.fbx-stat-c:hover { box-shadow: 0 2px 14px rgba(0,0,0,.15); transform: translateY(-1px); }
.fbx-stat-on { outline: 2px solid var(--primary); outline-offset: 1px; }

/* ===== v20261110f：企微数据源断开红色跳动 ===== */
@keyframes wecom-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* ===== v20261110a：AI 助手工具执行步骤（agent 循环可视化） ===== */
.pc-ai-steps { display: flex; flex-direction: column; gap: 4px; }
.pc-ai-step { font-size: 12px; color: #6b7280; padding: 3px 8px; background: #f6f7fa; border-radius: 7px; line-height: 1.5; }
.pc-ai-step.err { color: #d0342c; background: #fdf0ef; }

/* ===== v20261111a：每日流程看板 KPI 卡可点击（弹出明细） ===== */
.dfdb-kpi.dfdb-click { cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.dfdb-kpi.dfdb-click:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(60, 80, 120, .13); border-color: #c9d8f2; }
.dfdb-kpi.dfdb-click:active { transform: translateY(0); }
