:root {
  --bg: #f3f5f9;
  --card: #ffffff;
  --ink: #131a26;
  --sub: #64748b;
  --line: #e6eaf1;
  --brand: #e0231e;
  --brand-2: #ff6b57;
  --brand-soft: #ffedec;
  --ok: #0f9d58;
  --ok-soft: #e9f7ef;
  --warn: #d97706;
  --warn-soft: #fff4e5;
  --danger: #dc2626;
  --danger-soft: #feecec;
  --info: #0891b2;
  /* 第一五七轮·V2：补齐语义 token，收敛内联硬编码色 */
  --accent-blue: #378ADD;   /* 链接 / 排名次高位 */
  --blue-600: #2563eb;      /* 临期·续卡蓝 */
  --track: #eef0f4;         /* 中性进度轨道 */
  --line-2: #f1f3f7;        /* 极浅分隔线 */
  --gray-400: #98a2b3;      /* 失联 / 失联灰 */
  --brand-press: #c21613;   /* 品牌按压态 */
  --side: #0c1322;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 32px rgba(16, 24, 40, .06);
  --shadow-lg: 0 4px 14px rgba(16, 24, 40, .08), 0 18px 48px rgba(16, 24, 40, .10);
  --grad-brand: linear-gradient(135deg, #e0231e, #ff6b57);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(106, 139, 255, .10) 0%, transparent 60%),
    radial-gradient(900px 480px at -6% 8%, rgba(56, 201, 168, .08) 0%, transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink); font-size: 14px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); text-decoration: none; }
.muted { color: var(--sub); font-size: 12.5px; }
.mono { font-variant-numeric: tabular-nums; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #c9d2e3; border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #a8b5cd; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 登录 ---------- */
.login-wrap {
  min-height: 100%; display: grid; place-items: center; padding: 40px 16px;
  background: radial-gradient(1200px 600px at 15% -10%, #ffd6d4 0%, transparent 60%),
              radial-gradient(900px 500px at 110% 20%, #d9f2ec 0%, transparent 55%), var(--bg);
}
.login-card {
  width: 430px; max-width: 100%; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .7); border-radius: 20px; padding: 32px 30px; box-shadow: var(--shadow-lg);
}
.login-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 24px; }
.login-brand h1 { font-size: 19.5px; letter-spacing: .2px; font-weight: 700; line-height: 1.3; }
.login-brand p { color: var(--sub); font-size: 12.5px; margin-top: 2px; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(145deg, #e0231e, #a51009); color: #fff; font-weight: 800;
  letter-spacing: .5px; font-size: 16px; box-shadow: 0 6px 16px rgba(224, 35, 30, .35);
}
.brand-mark.small { width: 34px; height: 34px; border-radius: 9px; font-size: 12px; box-shadow: none; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12.5px; color: var(--sub); margin-bottom: 6px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); background: #fbfcfe; border-radius: 10px;
  padding: 10px 12px; outline: none; transition: .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(224, 35, 30, .12);
}
.field input[readonly] { background: #f4f6fb; color: #475467; cursor: default; }
.ro-input { background: #f4f6fb !important; color: #33415c !important; font-weight: 600; }
.login-error { color: var(--danger); font-size: 12.5px; margin-bottom: 10px; }
.login-hint { margin-top: 20px; border-top: 1px dashed var(--line); padding-top: 16px; }
.hint-title { font-size: 12px; color: var(--sub); margin-bottom: 10px; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.account-grid button {
  border: 1px solid var(--line); background: #fbfcfe; border-radius: 8px; padding: 7px 10px;
  font-size: 12.5px; cursor: pointer; text-align: left; color: #374151; transition: .15s;
}
.account-grid button:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.login-hint .muted { margin-top: 12px; line-height: 1.6; }

/* ---------- 备案信息（第一六八轮：ICP 备案通过后按工信部要求首页底部展示） ---------- */
/* 登录页：卡片 + 备案行整体居中，避免两行被 grid 拉开 */
.login-box { width: 430px; max-width: 100%; }
.icp-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 3px 10px; margin-top: 16px; font-size: 12px; line-height: 1.6;
  color: #98a2b3; text-align: center;
}
.icp-foot a { color: #98a2b3; text-decoration: none; transition: .15s; }
.icp-foot a:hover { color: var(--brand); text-decoration: underline; }
.icp-foot .icp-brand { color: #98a2b3; }
.icp-foot .police { color: #98a2b3; }
/* 侧栏底部：深色背景用更暗的字，不抢导航 */
.icp-foot.side-icp {
  margin: 0; padding: 0 16px 12px; justify-content: flex-start;
  flex-direction: column; align-items: flex-start; gap: 2px;
  font-size: 11px; color: #5f6b83; border: none;
}
.icp-foot.side-icp a { color: #5f6b83; }
.icp-foot.side-icp a:hover { color: #aebbd2; text-decoration: none; }

/* ---------- 框架 ---------- */
.shell { display: flex; min-height: 100vh; }
.side {
  width: 216px; flex: 0 0 216px; color: #cbd5e1;
  background: linear-gradient(180deg, #14161d 0%, #191c26 55%, #1c2030 100%);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.side-brand { display: flex; gap: 10px; align-items: center; padding: 22px 18px 18px; border-bottom: 1px solid #272b38; }
.side-brand strong { display: block; color: #fff; font-size: 13px; letter-spacing: 0; line-height: 1.35; }
.side-brand span { font-size: 11.5px; color: #8b9ab3; }
.nav { padding: 14px 12px; overflow-y: auto; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: 10px;
  color: #aebbd2; cursor: pointer; font-size: 13.5px; margin-bottom: 3px; border: none;
  background: none; width: 100%; text-align: left; transition: .16s; position: relative;
}
.nav-item:hover { background: #242835; color: #fff; }
.nav-item.active {
  background: linear-gradient(90deg, rgba(224, 35, 30, .85), rgba(106, 139, 255, .35));
  color: #fff; font-weight: 600; box-shadow: 0 4px 14px rgba(224, 35, 30, .30);
}
.nav-item .dot { width: 6px; height: 6px; border-radius: 50%; background: #3d4d68; transition: .16s; }
.nav-item.active .dot { background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, .8); }
.nav-group { font-size: 11px; color: #64748b; padding: 16px 13px 6px; letter-spacing: 1px; }
.side-foot { padding: 14px 16px; border-top: 1px solid #272b38; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.who { display: flex; flex-direction: column; font-size: 13px; color: #e5e9f2; }
.who em { font-style: normal; font-size: 11.5px; color: #8b9ab3; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 70px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; position: sticky; top: 0; z-index: 20;
}
.topbar h2 { font-size: 19px; font-weight: 700; letter-spacing: .2px; }
.topbar p { margin-top: 2px; }
.top-right { display: flex; align-items: center; gap: 12px; }
.today-chip {
  background: linear-gradient(135deg, #ffedec, #f7f9ff); border: 1px solid #ffd6d4;
  border-radius: 10px; padding: 7px 12px; font-size: 12.5px; color: #3b4a6b; font-weight: 500;
}
.icon-btn {
  position: relative; border: 1px solid var(--line); background: #fff; border-radius: 9px;
  padding: 7px 13px; font-size: 12.5px; cursor: pointer; color: #475467; transition: .15s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); box-shadow: 0 2px 10px rgba(224, 35, 30, .15); }
/* 手机端抽屉开关：桌面隐藏，屏幕 ≤860px 才显示（见下方自适应块） */
.nav-toggle { display: none; }
.side-scrim { display: none; }
.badge-dot {
  position: absolute; top: -6px; right: -6px; background: linear-gradient(135deg, #ff5a4e, #e03131); color: #fff;
  border-radius: 9px; font-size: 10.5px; padding: 1px 5px; font-weight: 600;
  box-shadow: 0 2px 6px rgba(224, 49, 49, .4);
}
.view { padding: 24px 28px 48px; max-width: 1560px; width: 100%; margin: 0 auto; }

/* ---------- 第一五二轮：经营驾驶舱 ---------- */
.cockpit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cockpit-grid .span2 { grid-column: span 2; }
.cockpit-grid .span3 { grid-column: 1 / -1; }
/* 第一五六轮·F3：店长/部门负责人「经营推送」板块 */
.report-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.report-scope { font-size: 12.5px; color: var(--sub); margin-bottom: 10px; font-weight: 600; }
.report-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.report-kpis .rk { background: #fafbfe; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.report-kpis .rl { font-size: 11.5px; color: var(--sub); }
.report-kpis .rv { font-size: 19px; font-weight: 800; margin-top: 3px; color: #16233c; font-variant-numeric: tabular-nums; }
.report-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
@media (max-width: 860px) { .report-kpis { grid-template-columns: repeat(2, 1fr); } }
.ck-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
@media (max-width: 860px) { .cockpit-grid { grid-template-columns: 1fr 1fr; } .cockpit-grid .span2, .cockpit-grid .span3 { grid-column: span 2; } }

/* ---------- 通用 ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: box-shadow .2s;
}
.card:hover { box-shadow: var(--shadow-lg); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 14.5px; display: flex; align-items: center; gap: 9px; font-weight: 700; }
.card-head h3::before {
  content: ""; width: 4px; height: 15px; border-radius: 99px; flex: 0 0 4px;
  background: linear-gradient(180deg, #e0231e, #ff6b57);
}
.card-body { padding: 18px; }
.card-body.tight { padding: 0; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-main { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.section-title { font-size: 13px; font-weight: 700; color: #33415c; margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.section-title::before { content: ""; width: 3px; height: 12px; border-radius: 99px; background: linear-gradient(180deg, #e0231e, #ff6b57); }

.btn {
  border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 14px;
  font-size: 13px; cursor: pointer; color: #344054; white-space: nowrap; transition: .15s; font-weight: 500;
}
.btn:hover { border-color: #c3cbd9; background: #fbfcff; box-shadow: 0 2px 8px rgba(16, 24, 40, .07); }
.btn-primary {
  background: var(--grad-brand); border-color: transparent; color: #fff; font-weight: 600;
  box-shadow: 0 4px 12px rgba(224, 35, 30, .32);
}
.btn-primary:hover { background: linear-gradient(135deg, #c21613, #f04438); box-shadow: 0 6px 16px rgba(224, 35, 30, .4); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 8px; }
.btn-danger { color: var(--danger); border-color: #f3c9c9; }
.btn-danger:hover { background: var(--danger-soft); box-shadow: 0 2px 8px rgba(220, 38, 38, .12); }
.btn-ok { color: var(--ok); border-color: #bfe6cf; }
.btn-ok:hover { background: var(--ok-soft); box-shadow: 0 2px 8px rgba(15, 157, 88, .12); }
.btn-success { background: var(--ok); border-color: transparent; color: #fff; font-weight: 600; }
.btn-success:hover { background: #0b894d; }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-block { width: 100%; padding: 12px; font-size: 14px; font-weight: 600; }
.link-btn { border: none; background: none; color: var(--brand); cursor: pointer; font-size: 12.5px; padding: 2px 4px; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--danger); }

.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 2.5px 9px; border-radius: 999px;
  font-size: 11.5px; background: #f2f4f8; color: #475467; white-space: nowrap; font-weight: 500;
  border: 1px solid transparent;
}
.tag.blue { background: #eef4ff; color: #2141c4; border-color: #d6e4ff; }
.tag.green { background: var(--ok-soft); color: #0a7a44; border-color: #cdeeda; }
.tag.amber { background: var(--warn-soft); color: #a35a00; border-color: #ffe4bd; }
.tag.red { background: var(--danger-soft); color: #b91c1c; border-color: #fbd5d5; }
.tag.gray { background: #f2f4f8; color: #667085; border-color: #e6eaf1; }
.tag.purple { background: #f4ecff; color: #6d28d9; border-color: #e6d4ff; }
/* 第一六〇轮：步购社板块补充小样式（KPI 子元素与文字色工具类） */
.kpi-label { font-size: 12px; color: var(--sub); font-weight: 500; }
.kpi-val { font-size: 24px; font-weight: 800; margin-top: 5px; letter-spacing: -.5px; color: #16233c; font-variant-numeric: tabular-nums; }
.kpi-val.green { color: var(--ok); } .kpi-val.red { color: var(--danger); } .kpi-val.blue { color: var(--info); }
.green { color: var(--ok); } .red { color: var(--danger); } .blue { color: var(--info); }

/* ---------- KPI ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 14px; }
.kpi {
  background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 15px 17px;
  position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.kpi::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #e0231e, #ff6b57);
}
.kpi .label { font-size: 12px; color: var(--sub); font-weight: 500; }
.kpi .value { font-size: 24px; font-weight: 800; margin-top: 5px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; color: #16233c; }
.kpi .foot { font-size: 11.5px; color: var(--sub); margin-top: 3px; }
.kpi .value small { font-size: 12px; font-weight: 500; color: var(--sub); margin-left: 3px; }
.kpi.accent { background: linear-gradient(135deg, #f5f8ff, #fff); border-color: #ffd6d4; }
.kpi.accent::before { background: linear-gradient(90deg, #38c9a8, #0f9d58); }
/* 第八十四轮：统计卡片可点击下钻，右上角给一个轻提示 */
.kpi.drillable { cursor: pointer; transition: box-shadow .15s ease, border-color .15s ease; }
.kpi.drillable:hover { border-color: #ffc7c3; box-shadow: 0 8px 22px rgba(224, 35, 30, .12); }
.kpi.drillable::after { content: "明细 ›"; position: absolute; right: 12px; top: 10px;
  font-size: 10.5px; color: #b9c4d6; letter-spacing: .2px; }
.kpi.drillable:hover::after { color: var(--brand); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th {
  text-align: left; font-weight: 600; color: #5a6a86; background: #f7f9fc; padding: 10px 13px;
  border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 12px; letter-spacing: .4px;
}
table.tbl td { padding: 9px 13px; border-bottom: 1px solid #f1f3f7; vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: none; }
table.tbl tbody tr { transition: background .12s; }
table.tbl tbody tr:hover { background: #f6f9ff; }
/* 第一五三轮：大表格斑马纹，提升长表可扫读；:not(:hover) 保证悬停高亮始终优先于斑马纹 */
table.tbl tbody tr:nth-child(even):not(:hover) { background: #fafbfd; }
table.tbl tr.clickable { cursor: pointer; }
table.tbl td.num, table.tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
/* 第五十一轮：表格合计行（老板门店营收等） */
table.tbl tfoot td { padding: 10px 13px; background: #f7f9fc; border-top: 1px solid var(--line); font-weight: 600; }
.empty { padding: 32px 16px; text-align: center; color: var(--sub); font-size: 13px; }
.empty .btn { margin: 10px 4px 0; }

/* ---------- 清单 ---------- */
.checklist-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.date-nav { display: flex; align-items: center; gap: 6px; }
.date-nav input[type="date"] { border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; font-size: 12.5px; background: #fff; }
.progress { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--sub); }
.progress .bar { width: 110px; height: 6px; background: #eef1f6; border-radius: 99px; overflow: hidden; }
.progress .bar i { display: block; height: 100%; background: linear-gradient(90deg, #34c38f, #0f9d58); }
.cl-table input.cell, .cl-table select.cell {
  border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 4px 6px;
  width: 100%; min-width: 60px; font-size: 13px;
}
.cl-table input.cell:hover, .cl-table select.cell:hover { border-color: #e3e8f0; background: #fbfcff; }
.cl-table input.cell:focus, .cl-table select.cell:focus { border-color: var(--brand); background: #fff; outline: none; }
.cl-table tr.done td:not(.keep) { color: #98a2b3; }
.cl-table tr.done .content-cell { text-decoration: line-through; }
.cl-table td { padding: 6px 8px; }
.cl-table .col-check { width: 36px; }
.cl-table .col-act { width: 108px; text-align: right; white-space: nowrap; }
.cl-check { width: 17px; height: 17px; accent-color: var(--ok); cursor: pointer; }
.add-row { display: flex; gap: 8px; align-items: center; padding: 12px 16px; background: #fafbfe; border-top: 1px dashed var(--line); border-radius: 0 0 var(--radius) var(--radius); }
.add-row input[type="text"] {
  flex: 1; border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; background: #fff;
}
.add-row input[type="text"]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(224, 35, 30, .08); }
.add-row select { border: 1px solid var(--line); border-radius: 9px; padding: 8px; background: #fff; font-size: 12.5px; }
.cl-note { border-top: 1px solid var(--line); padding: 10px 16px 14px; }
.cl-note input { width: 100%; border: 1px solid transparent; background: #fafbfe; border-radius: 8px; padding: 7px 10px; font-size: 12.5px; }
.cl-note input:focus { border-color: var(--brand); background: #fff; outline: none; }

/* ---------- 任务 ---------- */
.task-item { padding: 11px 4px; border-bottom: 1px solid #f1f3f7; cursor: pointer; border-radius: 8px; transition: .12s; }
.task-item:last-child { border-bottom: none; }
.task-item:hover { background: #f6f9ff; }
.task-title { font-size: 13.5px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.task-title span.overdue { color: var(--danger); }
.task-meta { font-size: 11.8px; color: var(--sub); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.timeline { border-left: 2px solid #eef1f6; padding-left: 14px; margin-left: 6px; }
.timeline-item { position: relative; padding-bottom: 14px; font-size: 12.5px; }
.timeline-item:before {
  content: ""; position: absolute; left: -20px; top: 5px; width: 8px; height: 8px; border-radius: 50%;
  background: #fff; border: 2px solid #c9d2e3;
}
.timeline-item.done:before { border-color: var(--ok); background: var(--ok); box-shadow: 0 0 0 3px rgba(15, 157, 88, .15); }
.timeline-item b { font-weight: 600; }
.timeline-item .muted { display: block; margin-top: 2px; }
.detail-grid { display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; font-size: 13px; }
.detail-grid dt { color: var(--sub); font-size: 12.5px; }
.detail-grid dd { color: #1f2937; }

/* ---------- 过滤条 / 标签页 ---------- */
.filter-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.filter-bar input[type="text"], .filter-bar input[type="date"], .filter-bar select {
  border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; background: #fff; font-size: 12.5px; transition: .15s;
}
.filter-bar input[type="text"]:focus, .filter-bar select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(224, 35, 30, .1); }
.filter-bar input[type="text"] { min-width: 180px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tab {
  border: none; background: none; padding: 10px 15px; font-size: 13.5px; color: var(--sub);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: .15s; font-weight: 500;
}
.tab:hover { color: var(--ink); }
.tab.active {
  color: var(--brand); border-bottom-color: var(--brand); font-weight: 700;
  text-shadow: 0 0 24px rgba(224, 35, 30, .3);
}

/* ---------- 条形 / 分布 ---------- */
.bars { display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 90px 1fr 54px; align-items: center; gap: 10px; font-size: 12.5px; }
.bar-row .track { height: 8px; background: #f0f3f8; border-radius: 99px; overflow: hidden; }
.bar-row .track i { display: block; height: 100%; background: linear-gradient(90deg, #6f8cff, #e0231e); border-radius: 99px; }
.bar-row.alt .track i { background: linear-gradient(90deg, #38c9a8, #0f9d58); }
.bar-row span.v { text-align: right; color: #475467; font-variant-numeric: tabular-nums; }
.funnel { display: flex; flex-direction: column; gap: 6px; }
.funnel-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.funnel-row .name { width: 108px; color: var(--sub); }
.funnel-row .fill { height: 26px; background: linear-gradient(90deg, #ffd6d4, #e0231e); border-radius: 7px; min-width: 2px; box-shadow: 0 2px 8px rgba(224, 35, 30, .18); }
.funnel-row .n { color: #344054; font-variant-numeric: tabular-nums; }

/* ---------- 汇总卡（团队待办） ---------- */
.summary-list { display: flex; flex-direction: column; gap: 8px; max-height: 330px; overflow-y: auto; }
.summary-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 9px 11px; border: 1px solid #eef1f6; border-radius: 10px; font-size: 12.5px; transition: .15s; }
.summary-row:hover { border-color: #ffd9d6; background: #fafbff; }
.summary-row .name { font-weight: 500; }
.summary-row .meta { color: var(--sub); font-size: 11.5px; }
.summary-row .items { grid-column: 1 / -1; color: #475467; font-size: 12px; }
.summary-row .items div { padding: 1px 0; }
.summary-row .items .ok { color: #98a2b3; text-decoration: line-through; }
.mini-bar { width: 64px; height: 5px; background: #eef1f6; border-radius: 99px; overflow: hidden; margin-top: 4px; }
.mini-bar i { display: block; height: 100%; background: var(--ok); }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(10, 16, 30, .5); backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; z-index: 100; overflow-y: auto;
}
.modal {
  background: #fff; border-radius: 18px; width: 580px; max-width: 100%;
  box-shadow: 0 30px 80px rgba(10, 16, 30, .35); animation: pop .18s cubic-bezier(.2, .9, .3, 1.2);
}
.modal.wide { width: 800px; }
@keyframes pop { from { transform: translateY(-10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 17px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.modal-head h3::before { content: ""; width: 4px; height: 15px; border-radius: 99px; background: linear-gradient(180deg, #e0231e, #ff6b57); }
.modal-body { padding: 20px 22px; max-height: 66vh; overflow-y: auto; }
.modal-foot { padding: 15px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; background: #fafbfe; border-radius: 0 0 18px 18px; }
.close-x { border: none; background: none; font-size: 20px; color: #98a2b3; cursor: pointer; line-height: 1; transition: .15s; }
.close-x:hover { color: var(--danger); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

/* ---------- Toast ---------- */
.toast-root { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: #101828; color: #fff; padding: 10px 18px; border-radius: 11px; font-size: 13px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, .3); animation: pop .16s ease-out;
}
.toast.err { background: linear-gradient(135deg, #b42318, #d92d20); }
.toast.ok { background: linear-gradient(135deg, #067647, #0f9d58); }

/* ---------- 登录页之外的自适应 ---------- */
@media (max-width: 1100px) {
  .grid-main, .grid-2 { grid-template-columns: 1fr; }
  .side { width: 200px; flex-basis: 200px; }
  .view { padding: 16px; }
}
/* 三列卡片：大屏 3 列 → 中屏 2 列 → 手机 1 列，避免中等宽度被挤窄（该大的大、该小的小） */
@media (max-width: 1300px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .grid-3 { grid-template-columns: 1fr; } }

/* ===== 老板精装工作台 ===== */
.hero-boss {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: stretch;
  padding: 30px 32px; border-radius: 18px; color: #fff;
  background: linear-gradient(120deg, #262038 0%, #e0231e 58%, #ff6b57 100%);
  box-shadow: 0 14px 40px rgba(224, 35, 30, .32);
}
.hero-boss::before {
  content: ""; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 65%); pointer-events: none;
}
.hero-boss::after {
  content: ""; position: absolute; right: 140px; bottom: -110px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .10), transparent 60%); pointer-events: none;
}
.hero-title { font-size: 23px; font-weight: 800; display: flex; align-items: center; gap: 10px; letter-spacing: .3px; }
.hero-crown {
  font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px;
  background: linear-gradient(90deg, #ffd76a, #ff9d3c); color: #4a2b00;
  box-shadow: 0 3px 10px rgba(255, 157, 60, .45);
}
.hero-sub { margin-top: 7px; font-size: 13px; opacity: .9; }
.hero-chips { margin-top: 15px; display: flex; gap: 8px; flex-wrap: wrap; }
.hero-chip {
  font-size: 12px; padding: 5px 13px; border-radius: 999px; background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(4px);
}
.hero-chip .hot {
  display: inline-block; margin-left: 6px; min-width: 18px; text-align: center;
  background: linear-gradient(135deg, #ff5a4e, #e03131); border-radius: 999px; padding: 0 5px; font-size: 11px;
  box-shadow: 0 2px 6px rgba(224, 49, 49, .5);
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-btn {
  background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .42); color: #fff;
  backdrop-filter: blur(4px); font-weight: 500;
}
.hero-btn:hover { background: rgba(255, 255, 255, .28); }
/* 第一六一轮：老板驾驶舱 KPI 条 */
.hero-main { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-stats {
  position: relative; z-index: 1; width: 100%; margin-top: 22px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.hero-stat {
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 13px; padding: 13px 15px; backdrop-filter: blur(4px);
}
.hero-stat .hs-label { font-size: 12px; opacity: .85; }
.hero-stat .hs-value { font-size: 25px; font-weight: 800; margin-top: 4px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.hero-stat .hs-value small { font-size: 12px; font-weight: 600; opacity: .85; }
.hero-stat .hs-foot { font-size: 11px; opacity: .7; margin-top: 3px; }
/* 首页门店经营看板：汇总磁贴 */
.rev-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px 18px 4px; }
.rev-tile {
  background: linear-gradient(135deg, #fff7f6, #f7faff); border: 1px solid #ffe2df;
  border-radius: 12px; padding: 12px 14px;
}
.rev-tile .rt-label { font-size: 12px; color: var(--sub); font-weight: 500; }
.rev-tile .rt-value { font-size: 22px; font-weight: 800; margin-top: 3px; letter-spacing: -.5px;
  font-variant-numeric: tabular-nums; color: #16233c; }
.rev-tile .rt-value small { font-size: 12px; font-weight: 500; color: var(--sub); }
/* 首页门店切换条 */
.dash-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.dash-bar-label { font-size: 13px; font-weight: 700; color: #33415c; }
.dash-bar select { min-width: 150px; }

/* ===== 会签板块 ===== */
.cosign-item { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 6px; border-bottom: 1px dashed var(--line, #e8eaf0); border-radius: 8px; transition: .12s; }
.cosign-item:hover { background: #fafbff; }
.cosign-item:last-child { border-bottom: none; }
.cosign-side { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.dots { display: inline-flex; gap: 5px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #e3e6ee; display: inline-block; }
.dot.on { background: linear-gradient(135deg, #e0231e, #ff6b57); box-shadow: 0 0 6px rgba(224, 35, 30, .5); }

/* ===== 附件组件 ===== */
.attach-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.attach-add { font-size: 13px; padding: 5px 12px; border: 1px dashed #f0ab84; border-radius: 8px;
  color: #e0231e; cursor: pointer; background: #fff1f0; transition: .15s; }
.attach-add:hover { background: #ffdedd; border-color: #e0231e; }
.attach-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.attach-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 3px 10px;
  border-radius: 999px; background: #ffedec; color: #2743a6; border: 1px solid #ffd9d6; }
.attach-chip[data-rm], .attach-chip b[data-rm] { cursor: pointer; font-weight: 700; color: #8a94ad; }
.attach-chip b[data-rm]:hover { color: #d33; }
a.attach-chip:hover { background: #ffe3d2; text-decoration: none; }

/* 采购/人事表格内的会签小字 */
.muted[style*="#b42318"] { font-weight: 500; }

/* ===== 客户卡种 / 课时信息栏 ===== */
.info-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.info-item { border: 1px solid #e8eefb; background: linear-gradient(135deg, #f7faff, #fff);
  border-radius: 12px; padding: 11px 13px; }
.info-k { display: block; font-size: 11.5px; color: #64748b; margin-bottom: 7px; letter-spacing: .4px; }

/* ===== 开店检查 ===== */
.open-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 16px; }
.open-card.ok { border-color: #bfe6cf; box-shadow: 0 6px 20px rgba(15, 157, 88, .10); }
.open-std { display: grid; grid-template-columns: 118px 1fr; gap: 10px; align-items: center; }
.open-illu { width: 118px; height: 68px; display: block; border-radius: 10px; border: 1px solid #ffe6d6; }
.open-std-text { font-size: 12px; color: #475467; line-height: 1.5; }
.open-std-text b { display: block; font-size: 11.5px; color: #e0231e; margin-bottom: 2px; }
.open-thumbs { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.open-thumb { position: relative; width: 74px; height: 74px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: #f4f6fb; }
.open-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.open-thumb b { position: absolute; top: 2px; right: 2px; width: 17px; height: 17px; border-radius: 50%;
  background: rgba(15, 23, 42, .68); color: #fff; font-size: 12px; line-height: 17px; text-align: center;
  cursor: pointer; font-weight: 700; }
.open-add { width: 74px; height: 74px; border: 1px dashed #f0ab84; border-radius: 10px; background: #f6f9ff;
  color: #e0231e; font-size: 11.5px; display: grid; place-items: center; text-align: center; cursor: pointer;
  padding: 6px; transition: .15s; }
.open-add:hover { background: #ffe4e2; border-color: #e0231e; }

/* ===== 提示条 / 任务板块 ===== */
.hint-bar { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap;
  background: linear-gradient(135deg, #f2f7ff, #fbfdff); border: 1px solid #ffd6d4;
  border-left: 3px solid var(--brand, #e0231e); border-radius: 12px; padding: 11px 14px;
  font-size: 12.5px; color: #475467; line-height: 1.6; }
.hint-bar b { color: #a13c0a; }
.kpi-grid.kpi-tight .kpi .value { font-size: 24px; }
.tbl.tbl-tight td, .tbl.tbl-tight th { padding: 9px 10px; font-size: 12.5px; }
.task-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 10px 16px;
  background: #f8faff; border: 1px solid #e8eefb; border-radius: 12px; padding: 12px 14px; }
.task-meta > div { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; }
.task-meta span { color: #64748b; font-size: 11.5px; }
.task-meta b { color: #1e293b; font-weight: 600; }
.task-acc { background: #fff; border: 1px dashed #ffd9d6; border-radius: 10px; padding: 10px 12px;
  font-size: 13px; color: #344054; line-height: 1.7; white-space: pre-wrap; }
.notice { background: #fff8e6; border: 1px solid #f7dfa5; color: #8a5b00; border-radius: 12px;
  padding: 11px 14px; font-size: 12.5px; line-height: 1.6; }

/* ===== 客户维护 ===== */
.maintain-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  background: linear-gradient(135deg, #f7faff, #fff); border: 1px solid #e6edfb;
  border-radius: 12px; padding: 10px 13px; font-size: 12.5px; }
.chip-btn { border: 1px solid #d6dff5; background: #fff; color: #475467; border-radius: 999px;
  padding: 5px 13px; font-size: 12px; cursor: pointer; transition: .16s; }
.chip-btn:hover { border-color: #ff9c6e; color: #a13c0a; background: #f4f8ff; }
.chip-btn.on { background: linear-gradient(135deg, #e0231e, #4d7bff); color: #fff; border-color: transparent;
  box-shadow: 0 4px 12px rgba(224, 35, 30, .28); }
.chip-btn.on.bad { background: linear-gradient(135deg, #e5484d, #f2694c); box-shadow: 0 4px 12px rgba(229, 72, 77, .26); }
.chip-btn.on.ok { background: linear-gradient(135deg, #0f9d58, #23b26d); box-shadow: 0 4px 12px rgba(15, 157, 88, .26); }

/* ===== 门店检查 ===== */
.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-item { display: grid; grid-template-columns: 118px 1fr 128px; gap: 12px; align-items: center;
  border: 1px solid #eaeffb; border-radius: 12px; padding: 10px 12px; background: #fdfdff; transition: .16s; }
.check-item.ok { border-color: #bfe6cf; background: linear-gradient(135deg, #f6fdf9, #fff); }
.check-item.bad { border-color: #f6c9c9; background: linear-gradient(135deg, #fff7f7, #fff); }
.check-illu .open-illu { width: 118px; height: 66px; }
.check-title { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #1e293b; }
.check-std { font-size: 12px; color: #5b6b85; line-height: 1.6; margin-top: 3px; }
.check-mark { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.check-item .open-thumbs { margin-top: 8px; }
.check-group .card-head h3 { font-size: 14px; }
@media (max-width: 1180px) {
  .check-item { grid-template-columns: 1fr 116px; }
  .check-item .check-illu { display: none; }
}

/* ===== 岗位职责卡 ===== */
.duty-card { border: 1px solid #dde6fb; background: linear-gradient(135deg, #fbfdff, #f5f8ff 60%, #fff); }
.duty-one { font-size: 14px; font-weight: 600; color: #16233a; margin-bottom: 10px; }
.duty-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 6px 18px;
  list-style: none; margin: 0 0 12px; }
.duty-list li { position: relative; padding-left: 18px; font-size: 12.5px; color: #3f4d66; line-height: 1.7; }
.duty-list li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 6px; height: 6px;
  border-radius: 50%; background: linear-gradient(135deg, #e0231e, #ff6b57); }
.duty-metrics { display: flex; gap: 8px; flex-wrap: wrap; }
.duty-metrics .chip { background: #fff; border: 1px solid #dbe4f8; color: #2f4a86; border-radius: 999px;
  padding: 4px 12px; font-size: 12px; }

/* ===== 板块统计 ===== */
.stat-strip { margin-bottom: 0; }
.stat-panel .card-body { padding-top: 6px; }
.stat-panel .kpi-grid { margin-bottom: 14px; }
.dist-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.dist { border: 1px solid #eef2fb; border-radius: 12px; padding: 12px 14px; background: #fdfdff; }
.dist-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.dist-head b { font-size: 13px; color: #22304a; }
.dist-row { display: grid; grid-template-columns: 108px 1fr 62px; gap: 10px; align-items: center; padding: 3px 0; }
.dist-name { font-size: 12px; color: #48566f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dist-bar { height: 8px; border-radius: 999px; background: #eef1f8; overflow: hidden; }
.dist-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #e0231e, #7ea0ff); }
.dist-val { font-size: 12px; color: #1f2a3d; text-align: right; font-variant-numeric: tabular-nums; }
.dist-val em { display: block; font-style: normal; color: #8a97ad; font-size: 11px; }
@media (max-width: 760px) {
  .dist-row { grid-template-columns: 84px 1fr 52px; }
  .kpi-grid.stat-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 今日工作重点 / 板块速览 ===== */
.focus-list { display: flex; flex-direction: column; gap: 8px; }
.focus-row { display: grid; grid-template-columns: 1fr auto 108px; gap: 12px; align-items: center;
  border: 1px solid #eef2fb; border-radius: 11px; padding: 9px 12px; background: #fdfdff; }
.focus-t { font-size: 13px; color: #1f2a3d; font-weight: 500; }
.focus-v { font-size: 12.5px; color: #5b6b85; }
.glance-head { display: flex; align-items: center; gap: 12px; margin: 2px 0 -2px; }
.glance-head b { font-size: 13px; color: #22304a; }
.glance-head .link-btn { margin-left: auto; }
.glance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 10px; }
.glance { text-align: left; border: 1px solid #e8eefb; background: linear-gradient(135deg, #fff, #f9fbff);
  border-radius: 12px; padding: 11px 13px; cursor: pointer; transition: .16s; }
.glance:hover { border-color: #ffb3ae; box-shadow: 0 6px 18px rgba(224, 35, 30, .10); transform: translateY(-1px); }
.glance-name { font-size: 12px; color: #5b6b85; }
.glance-value { font-size: 20px; font-weight: 700; color: #14203a; line-height: 1.3; font-variant-numeric: tabular-nums; }
.glance-value small { font-size: 11px; font-weight: 500; color: #7b879b; margin-left: 3px; }
.glance-sub { font-size: 11.5px; color: #8a97ad; }
@media (max-width: 760px) {
  .focus-row { grid-template-columns: 1fr; }
}

/* ===== 第十八轮：手机端适配（≤860px 侧栏变顶部横向导航，表格横向滑动不撑破页面） ===== */
@media (max-width: 860px) {
  html, body { overflow-x: hidden; }
  .shell { display: block; }
  /* 手机端：侧栏改为左侧抽屉，顶部只留汉堡 + 标题，不再占两行 sticky 头部 */
  .side {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 70;
    width: 82%; max-width: 300px; height: 100%;
    transform: translateX(-100%); transition: transform .26s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 0 60px rgba(8, 12, 24, .45);
  }
  .side.open { transform: none; }
  .side-scrim { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(8, 12, 24, .45);
    opacity: 0; pointer-events: none; transition: opacity .26s; }
  .side-scrim.show { opacity: 1; pointer-events: auto; }
  .side-brand { padding: 16px 16px 14px; border-bottom: 1px solid #272b38; }
  .nav { padding: 10px 12px; }
  .nav-group { display: block; padding: 16px 13px 6px; }
  .nav-item { font-size: 14px; }
  .nav-item .dot { display: inline-block; }
  .side-foot { padding: 12px 16px; border-top: 1px solid #272b38; }
  .who { flex-direction: row; gap: 8px; align-items: baseline; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .topbar { height: auto; min-height: 56px; padding: 10px 14px; flex-wrap: wrap; gap: 8px; }
  .topbar h2 { font-size: 16px; }
  .view { padding: 14px 12px 40px; }

  .card { overflow-x: auto; }
  table.tbl { white-space: nowrap; font-size: 12.5px; }
  .kpi-grid, .kpi-grid.stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal, .modal.wide { width: calc(100vw - 20px); max-width: 100%; max-height: 88vh; }
  .row { flex-wrap: wrap; }
  .field { min-width: 0; }
  .btn { padding: 8px 12px; }
  .focus-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .kpi-grid, .kpi-grid.stat-strip { grid-template-columns: 1fr 1fr; }
  .view { padding: 10px 10px 36px; }
  /* 小屏顶部空间紧张：日期胶囊收起，避免顶栏换两行 */
  .today-chip { display: none; }
  .topbar { padding: 8px 10px; }
}

/* ================= 第二十轮：退费申请 ================= */
.rf-sel {
  border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; font-size: 13px;
  background: #fff; height: 34px;
}
.rf-list { display: grid; gap: 12px; }
.rf-card {
  border: 1px solid var(--line); border-radius: 13px; padding: 14px 16px; background: #fff;
  box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s;
}
.rf-card:hover { border-color: #cfd9ee; box-shadow: var(--shadow-lg); }
.rf-row1 { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rf-who { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 14px; }
.rf-who b { font-size: 15px; }
.rf-amt { text-align: right; white-space: nowrap; font-size: 20px; font-weight: 800; color: #16233c;
  font-variant-numeric: tabular-nums; letter-spacing: -.4px; }
.rf-amt span { display: block; font-size: 11px; font-weight: 500; color: var(--sub); letter-spacing: 0; }
.rf-row2 { display: flex; gap: 14px; flex-wrap: wrap; color: var(--sub); font-size: 12.5px; margin-top: 6px; }
.rf-chain {
  margin-top: 10px; padding: 9px 12px; background: #f7f9fc; border: 1px dashed #e2e8f4; border-radius: 10px;
  font-size: 12.5px; color: #475467; display: flex; gap: 7px; flex-wrap: wrap; align-items: center;
}
.rf-chain b { color: #16233c; font-variant-numeric: tabular-nums; }
.rf-chain i { color: #98a2b3; font-style: normal; font-weight: 700; }
.rf-acts { display: flex; gap: 8px; margin-top: 11px; flex-wrap: wrap; }

/* 新建流程 */
.rf-step { display: grid; gap: 14px; }
.rf-step-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.rf-step-h b { font-size: 12px; background: var(--brand-soft); color: #b23a0a; border-radius: 7px; padding: 3px 9px; }
.rf-step-h span { color: var(--sub); font-size: 13px; }
.rf-step-h .btn { margin-left: auto; }
.rf-picks { display: grid; gap: 8px; max-height: 320px; overflow-y: auto; }
.rf-pick {
  display: flex; gap: 10px; align-items: baseline; text-align: left; padding: 10px 13px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
}
.rf-pick:hover { border-color: var(--brand); background: #f7f9ff; }
.rf-pick em { margin-left: auto; color: var(--sub); font-style: normal; font-size: 12px; }
.rf-deals { display: grid; gap: 10px; }
.rf-deal {
  text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  background: #fff; cursor: pointer; display: grid; gap: 4px;
}
.rf-deal:hover:not(:disabled) { border-color: var(--brand); background: #f7f9ff; }
.rf-deal.off { opacity: .55; cursor: not-allowed; background: #fafbfd; }
.rf-deal-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.rf-deal-top span { font-weight: 700; font-variant-numeric: tabular-nums; }
.rf-deal-meta { color: var(--sub); font-size: 12.5px; }
.rf-deal-gift { color: #b23a0a; font-size: 12px; }
.rf-deal-lock { color: var(--danger); font-size: 12px; }

.rf-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 14px; }
.rf-form-grid .rf-full { grid-column: 1 / -1; }
.rf-form-grid .field em { display: block; font-style: normal; font-size: 11.5px; margin-top: 4px; }
.rf-gifts, .rf-files { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fbfcfe; }
.rf-gifts-h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
.rf-gift-table { display: grid; gap: 6px; }
.rf-gift-head, .rf-gift-row {
  display: grid; grid-template-columns: minmax(140px, 2fr) 56px 90px minmax(120px, 1.3fr) 84px;
  gap: 8px; align-items: center; font-size: 12.5px;
}
.rf-gift-head { color: var(--sub); font-weight: 600; }
.rf-gift-row input, .rf-gift-row select {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 5px 7px; font-size: 12.5px; background: #fff;
}
.rf-gift-name { font-weight: 500; }
.rf-sum {
  border: 1px solid #ffd6d4; background: linear-gradient(135deg, #f5f8ff, #fff);
  border-radius: 12px; padding: 13px 15px;
}
.rf-sum-line { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 13px; color: #475467; }
.rf-sum-line b { color: #16233c; font-variant-numeric: tabular-nums; font-size: 14px; }
.rf-sum-line i { color: #98a2b3; font-style: normal; font-weight: 700; }
.rf-sum-total { margin-left: auto; }
.rf-sum-total b { font-size: 22px; color: #0f9d58; }
.rf-warn {
  margin-top: 8px; background: var(--warn-soft); border: 1px solid #ffe4bd; color: #a35a00;
  border-radius: 8px; padding: 7px 10px; font-size: 12.5px;
}

/* 详情 */
.rf-detail { display: grid; gap: 16px; }
.rf-detail-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.rf-detail-name { font-size: 17px; font-weight: 700; }
.rf-detail-amt { text-align: right; }
.rf-detail-amt span { display: block; font-size: 11.5px; color: var(--sub); }
.rf-detail-amt b { font-size: 24px; color: #0f9d58; font-variant-numeric: tabular-nums; }
.rf-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rf-block { min-width: 0; }
.rf-detail .section-title { margin-bottom: 8px; }
table.tbl-plain td { padding: 7px 0; border-bottom: 1px dashed #eef1f6; }
table.tbl-plain td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
table.tbl-plain tr:last-child td { border-bottom: none; }
.rf-minus { color: var(--danger); }
.rf-total td { font-weight: 700; border-top: 1px solid var(--line); border-bottom: none !important; }
.rf-total td:last-child { color: #0f9d58; font-size: 17px; }
.rf-reason { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fbfcfe; }
.rf-reason p { margin-top: 6px; font-size: 13px; color: #364152; white-space: pre-wrap; }
.rf-timeline { list-style: none; display: grid; gap: 10px; }
.rf-timeline li { position: relative; padding-left: 20px; font-size: 13px; }
.rf-timeline li::before {
  content: ""; position: absolute; left: 4px; top: 7px; width: 8px; height: 8px; border-radius: 50%;
  background: #cbd5e1;
}
.rf-timeline li.done::before { background: var(--ok); }
.rf-timeline li.wait { color: var(--sub); }
.rf-timeline li em { color: var(--sub); font-style: normal; font-size: 12px; margin-left: 6px; }
.rf-note { color: #475467; font-size: 12.5px; margin-top: 3px; padding-left: 2px; }
.rf-pay-amt {
  background: var(--ok-soft); border: 1px solid #cdeeda; border-radius: 10px; padding: 11px 14px;
  font-size: 13px; color: #0a7a44; margin-bottom: 14px;
}
.rf-pay-amt b { font-size: 19px; font-variant-numeric: tabular-nums; }
#rfSignNote { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; font-size: 13px; }

@media (max-width: 860px) {
  .rf-detail-grid { grid-template-columns: 1fr; }
  .rf-card { padding: 12px 13px; }
  .rf-amt { font-size: 18px; }
  .rf-gift-head { display: none; }
  .rf-gift-row {
    grid-template-columns: 1fr 1fr; gap: 6px 10px;
    padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff;
  }
  .rf-gift-name { grid-column: 1 / -1; }
  .rf-sum-total { margin-left: 0; width: 100%; padding-top: 6px; border-top: 1px dashed #ffdcc6; }
  .rf-acts .btn { flex: 1 1 auto; }
  .rf-detail-amt { text-align: left; }
}

/* ===== 第二十轮：手机端整体体验增强 ===== */
@media (max-width: 860px) {
  /* iOS 上输入框字号 <16px 会在聚焦时自动放大页面，统一提到 16px */
  .field input, .field select, .field textarea,
  .modal input, .modal select, .modal textarea,
  .rf-sel, .rf-gift-row input, .rf-gift-row select, #rfSignNote,
  .date-nav input[type="date"], .cl-table input.cell, .cl-table select.cell { font-size: 16px; }

  .btn { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; }
  .btn-sm { min-height: 34px; }

  .modal { border-radius: 16px; }
  .modal-head { padding: 14px 16px; }
  .modal-body { padding: 16px; max-height: 60vh; }
  .modal-foot {
    padding: 12px 16px; position: sticky; bottom: 0; flex-wrap: wrap; gap: 8px;
    border-radius: 0 0 16px 16px;
  }
  .modal-foot .btn { flex: 1 1 auto; }

  .card-head { padding: 12px 14px; flex-wrap: wrap; gap: 8px; }
  .card-head h3 { font-size: 14.5px; }
  .card-body { padding: 12px 14px; }
  .hint-bar { padding: 10px 12px; font-size: 12.5px; }
  .kpi .value { font-size: 20px; }
  .kpi { padding: 12px 14px; }
  .row { row-gap: 6px; }
  td, .rf-reason p, .hint-bar { overflow-wrap: anywhere; }
  .nav-item { min-height: 36px; }
  .side-foot .btn { min-height: 34px; }
}

@media (max-width: 480px) {
  .rf-form-grid { grid-template-columns: 1fr; }
  .rf-chain { font-size: 12px; }
  .rf-sum-total b { font-size: 19px; }
  .topbar { padding: 8px 10px; }
  .view { padding: 10px 8px 40px; }
  .rf-acts .btn { flex: 1 1 100%; }
  .rf-step-h { gap: 6px; }
  .rf-step-h .btn { margin-left: 0; }
  .today-chip { font-size: 11.5px; }
  .modal-body { max-height: 58vh; }
}

@supports (padding: max(0px)) {
  .view { padding-bottom: max(40px, env(safe-area-inset-bottom)); }
  .modal-foot { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}

/* ================= 打印样式（老板打印日 / 周报） ================= */
@media print {
  .side, .side-scrim, .nav-toggle, .topbar, .toast-wrap, .fab, .fab-bar { display: none !important; }
  html, body { overflow: visible !important; background: #fff !important; }
  .shell { display: block !important; }
  .view { padding: 0 !important; }
  .card, .ck-card { box-shadow: none !important; border: 1px solid #d6dae2 !important; break-inside: avoid; }
  .table-wrap { overflow: visible !important; }
  table.tbl th { background: #eef1f6 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  table.tbl tbody tr:nth-child(even):not(:hover) { background: #f5f7fa !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .btn, .nav, [data-act], [data-export], [data-ch-export], [data-rc-export], [data-lg-export] { display: none !important; }
  a[href]::after { content: ""; }
  h2, h3 { break-after: avoid; }
}

/* ================= 新单 / 续费拆分模块（财务中心 · 线上业绩） ================= */
.split-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); gap: 14px; }
.split-mod {
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 12px;
  background: linear-gradient(160deg, #ffffff, #f8faff);
}
.split-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.split-head b { font-size: 14.5px; letter-spacing: .2px; }
.split-head span { font-size: 11.5px; color: var(--sub); line-height: 1.45; }
.split-total {
  display: flex; align-items: baseline; gap: 8px; margin: 8px 0 10px;
  font-size: 25px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.4px;
}
.split-total em { font-size: 12px; font-weight: 500; font-style: normal; color: var(--sub); }
.split-bar { display: flex; height: 9px; border-radius: 99px; overflow: hidden; background: #edf1f8; }
.split-bar i { display: block; height: 100%; transition: width .35s ease; }
.split-bar .s-new { background: linear-gradient(90deg, #e0231e, #ff6b57); }
.split-bar .s-renew { background: linear-gradient(90deg, #0f9d58, #45c78c); }
.split-legend {
  display: flex; flex-direction: column; gap: 4px; margin-top: 10px;
  font-size: 12.5px; color: #475467;
}
.split-legend span { display: flex; align-items: center; gap: 6px; }
.split-legend b { color: var(--ink); font-variant-numeric: tabular-nums; }
.dot-new, .dot-renew { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.dot-new { background: #e0231e; }
.dot-renew { background: #0f9d58; }

/* ================= 体验课预约核销看板 ================= */
.tk-list { display: flex; flex-direction: column; gap: 8px; }
.tk-row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff;
  transition: .15s;
}
.tk-row:hover { border-color: #cbd8f5; background: #fbfcff; }
.tk-time {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  border-right: 1px dashed var(--line); padding-right: 8px;
}
.tk-time b { font-size: 15px; font-variant-numeric: tabular-nums; letter-spacing: -.2px; }
.tk-time em { font-size: 11px; font-style: normal; color: var(--sub); }
.tk-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tk-main .tag { margin-left: 5px; }
.tk-main .muted { overflow-wrap: anywhere; }
.tk-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ================= 休假页两个子板块切换 ================= */
.lv-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.lv-tab {
  flex: 1 1 240px; display: flex; flex-direction: column; gap: 2px; text-align: left;
  border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 15px;
  cursor: pointer; transition: .15s;
}
.lv-tab b { font-size: 14px; }
.lv-tab span { font-size: 11.5px; color: var(--sub); line-height: 1.45; }
.lv-tab:hover { border-color: #ffc9a8; background: #fbfcff; }
.lv-tab.on {
  border-color: #e0231e; background: linear-gradient(135deg, #eff4ff, #ffffff);
  box-shadow: 0 4px 14px rgba(224, 35, 30, .10);
}
.lv-tab.on b { color: #a13c0a; }

/* ================= 门店检查：现场说明 + 必拍标记 ================= */
.check-main { min-width: 0; }
.check-title { flex-wrap: wrap; }
.check-title .link-btn { margin-left: auto; }
.check-note {
  width: 100%; margin-top: 8px; min-height: 34px; resize: vertical;
  border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe;
  padding: 7px 10px; font-size: 12.5px; line-height: 1.5; color: #475467;
}
.check-note::placeholder { color: #9aa8bf; }
.check-note:focus {
  outline: none; border-color: #e0231e; background: #fff;
  box-shadow: 0 0 0 3px rgba(224, 35, 30, .10);
}
.open-add em {
  display: inline-block; margin-top: 2px; padding: 0 5px; border-radius: 6px;
  font-style: normal; font-size: 10px; font-weight: 700; color: #b45309; background: #fff4e5;
}

@media (max-width: 860px) {
  .split-wrap { gap: 10px; }
  .split-mod { padding: 12px 13px 11px; }
  .split-total { font-size: 22px; margin: 6px 0 9px; }
  .tk-row { grid-template-columns: 56px minmax(0, 1fr); row-gap: 8px; }
  .tk-acts { grid-column: 1 / -1; justify-content: flex-start; }
  .tk-acts .btn { flex: 1 1 auto; }
  .lv-tab { flex: 1 1 100%; padding: 11px 13px; }
}

@media (max-width: 480px) {
  .split-head { flex-direction: column; gap: 2px; }
  .tk-time { padding-right: 6px; }
  .tk-time b { font-size: 14px; }
  .tk-row { padding: 9px 10px; }
  .check-note { font-size: 12px; }
}

/* ================= 体验课板块：区间概览 + 三类对比 ================= */
.tk-kinds { margin-top: 12px; }
.tk-kinds-head { display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.tk-kinds-head b { font-size: 13px; }
.tk-kinds-head span { font-size: 11.5px; color: var(--sub); }
.tk-kind-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 10px; }
.tk-kind {
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  background: linear-gradient(160deg, #ffffff, #f9fbff);
}
.tk-kind-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tk-kind-top em { font-style: normal; font-size: 12px; color: var(--sub); }
.tk-kind-bar { height: 6px; border-radius: 99px; background: #edf1f8; overflow: hidden; margin: 8px 0; }
.tk-kind-bar i { display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #e0231e, #ff6b57); }
.tk-kind.green .tk-kind-bar i { background: linear-gradient(90deg, #0f9d58, #45c78c); }
.tk-kind.amber .tk-kind-bar i { background: linear-gradient(90deg, #d97706, #f0a44a); }
.tk-kind.purple .tk-kind-bar i { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.tk-kind-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; font-size: 11.5px; color: var(--sub); }
.tk-kind-nums span { display: flex; flex-direction: column; gap: 1px; }
.tk-kind-nums b { font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.tk-kind-foot { margin-top: 6px; font-size: 11.5px; color: var(--sub); }
.tk-kind-foot b { color: var(--ink); }

/* 明细表紧凑化：客户/教练合并两行、操作列右对齐 */
.tk-tbl td { vertical-align: top; }
.tk-tbl td:last-child { text-align: right; white-space: nowrap; }

/* 折叠统计区 */
.fold-card { padding: 0; overflow: hidden; }
.fold-card > summary {
  list-style: none; cursor: pointer; padding: 12px 16px; display: flex; align-items: baseline;
  gap: 10px; flex-wrap: wrap; background: #fbfcff; border-bottom: 1px solid transparent;
}
.fold-card > summary::-webkit-details-marker { display: none; }
.fold-card > summary::before { content: "▸"; color: var(--brand); font-size: 12px; }
.fold-card[open] > summary::before { content: "▾"; }
.fold-card[open] > summary { border-bottom-color: var(--line); }
.fold-card > summary span { font-size: 11.5px; color: var(--sub); }

@media (max-width: 860px) {
  .tk-kind-grid { grid-template-columns: 1fr; }
  .tk-kind-nums b { font-size: 13px; }
  .kpi-grid.kpi-tight { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ================= 第二十四轮：运动风视觉 ================= */
body {
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(255, 107, 87, .12) 0%, transparent 60%),
    radial-gradient(900px 480px at -6% 8%, rgba(56, 201, 168, .08) 0%, transparent 55%),
    var(--bg);
}
.topbar h2 { font-weight: 800; letter-spacing: .3px; }
.card-head h3 { font-weight: 800; letter-spacing: .2px; }
.kpi .value { letter-spacing: -.8px; }
.hero-boss {
  background: linear-gradient(120deg, #262038 0%, #c21613 62%, #ff8577 100%);
  box-shadow: 0 14px 40px rgba(194, 22, 19, .30);
}
.hero-boss::before {
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 14px, transparent 14px 34px),
    radial-gradient(circle, rgba(255, 255, 255, .16), transparent 65%);
}
.btn-primary { letter-spacing: .3px; }
.nav-item.active { font-weight: 700; }
.today-chip {
  background: linear-gradient(135deg, #fff1f0, #fffdfb); border-color: #ffd6d4; color: #8a4a1f;
}
.login-wrap {
  background: radial-gradient(1200px 600px at 15% -10%, #ffd9d6 0%, transparent 60%),
              radial-gradient(900px 500px at 110% 20%, #d9f2ec 0%, transparent 55%), var(--bg);
}

/* ================= 第二十五轮：红色主题 + 开店检查部位卡 + 指标行 ================= */
/* 开店检查：横向部位卡网格，点进部位看详情 */
.zone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 14px;
}
.zone-card {
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 16px 16px 13px; cursor: pointer; text-align: left; font: inherit; color: var(--ink);
  box-shadow: var(--shadow); transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.zone-card:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow-lg); }
.zone-card.all-ok { border-color: #cdeeda; }
.zone-card.has-bad { border-color: #fbd5d5; background: linear-gradient(180deg, #fffafa, #fff); }
.zone-illu { width: 52px; height: 52px; border-radius: 12px; background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center; overflow: hidden; }
.zone-illu svg { width: 40px; height: 40px; }
.zone-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.zone-card .progress { width: 100%; }
.zone-more { font-size: 12.5px; color: var(--brand); font-weight: 600; }
/* 课程业绩 / 报表指标行 */
.tgt-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tgt-name { display: flex; flex-direction: column; gap: 2px; min-width: 170px; }
.tgt-name .muted { font-size: 12.5px; }
/* 红色主题微调：老板欢迎横幅与登录页光斑 */
.hero-boss { background: linear-gradient(120deg, #2a1420 0%, #c21613 62%, #ff8577 100%); }
.login-wrap {
  background: radial-gradient(1200px 600px at 15% -10%, #ffd9d6 0%, transparent 60%),
              radial-gradient(900px 500px at 110% 20%, #d9f2ec 0%, transparent 55%), var(--bg);
}

/* ================= 第二十六轮：门店检查体系（整改闭环 / 走势 / 月度矩阵） ================= */
.c-ok { color: #12805c; font-weight: 600; }
.c-bad { color: #c21613; font-weight: 600; }
/* 不合格项整改块（检查项详情内嵌） */
.rectify-box {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px;
  padding: 7px 10px; border-radius: 9px; font-size: 12.5px;
  background: #fff5f4; border: 1px dashed #ffc9c5;
}
.rectify-box.done { background: #f1faf5; border-color: #cdeeda; }
/* 近 14 天得分走势 */
.spark { display: flex; align-items: flex-end; gap: 4px; height: 74px; }
.spark-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
  align-items: center; gap: 3px; height: 100%; }
.spark-col i { width: 100%; display: block; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #ff8577, #e0231e); }
.spark-col i.warn { background: #f0b400; }
.spark-col i.none { background: #e3e5ea; }
.spark-col span { font-size: 10px; color: var(--muted); }
/* 门店 × 日期矩阵 */
.ov-matrix { border-collapse: separate; border-spacing: 3px; font-size: 12px; width: 100%; }
.ov-matrix th { font-weight: 600; color: var(--muted); padding: 2px 4px; font-size: 11.5px; text-align: center; }
.ov-matrix td { text-align: center; padding: 5px 0; min-width: 26px; border-radius: 5px; }
.ov-matrix td.ov-store, .ov-matrix th.ov-store {
  text-align: left; white-space: nowrap; position: sticky; left: 0; z-index: 1;
  background: var(--card); padding-right: 10px; font-weight: 600;
}
.ov-cell { cursor: pointer; transition: transform .1s ease; }
.ov-cell:hover { transform: scale(1.12); }
.ov-matrix th.ov-today { color: var(--ink); background: #eef3ff; border-radius: 5px; }
.ol-miss { background: #f4f5f7; color: #b8bcc6; }
.ol-ok { background: #e6f6ee; color: #17805a; }
.ol-closed { background: #cdeeda; color: #0f6b49; font-weight: 700; }
.ol-part { background: #fff3e0; color: #a86300; font-weight: 600; }
.ol-bad { background: #fde8e8; color: #c21613; font-weight: 700; }

/* ================= 第二十七轮：本店业绩（渠道 / 品类组成）+ 指标达成 + 成本细项 ================= */
/* 渠道组成条：线上（红） / 线下（炭灰） */
.ch-bar { display: flex; height: 14px; border-radius: 8px; overflow: hidden; background: var(--line); }
.ch-bar i { display: block; height: 100%; }
.ch-bar .ch-on { background: linear-gradient(90deg, #e0231e, #ff8577); }
.ch-bar .ch-off { background: linear-gradient(90deg, #4b5563, #9aa2af); }
.ch-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.ch-legend b { color: var(--ink); }
.ch-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: 1px; }
.dot-on { background: #e0231e; }
.dot-off { background: #6b7280; }
/* 卡课品类组成格 */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.cat-cell { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.cat-cell b { font-size: 15px; }
.cat-cell.zero { opacity: .55; }
.cat-cell.total { background: var(--brand-soft); border-color: #ffd6d4; }
.cat-name { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.cat-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.cat-dot.online { background: #e0231e; }
.cat-dot.offline { background: #6b7280; }
/* 业绩指标达成三格 */
.tgt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.tgt-item { display: flex; flex-direction: column; gap: 6px; }
.tgt-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13.5px; }

/* ================= 第二十八轮：图片 / 视频附件（电脑 + 手机双端可看） ================= */
.attach-media { gap: 8px; }
.attach-thumb { position: relative; width: 92px; height: 92px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: #0f1115; display: block; flex: 0 0 auto; }
.attach-thumb img, .attach-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.attach-thumb.video { background: #14161c; }
.attach-thumb .play-dot { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; padding-left: 2px; }
.attach-thumb .attach-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 5px;
  font-size: 10.5px; color: #fff; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.72));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.attach-thumb:hover { border-color: var(--brand); transform: translateY(-1px); }
.media-viewer-img { max-width: 100%; max-height: 72vh; display: block; margin: 0 auto; border-radius: 10px; }
.media-viewer-video { width: 100%; max-height: 72vh; display: block; margin: 0 auto; border-radius: 10px;
  background: #000; }
.attach-add { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 9px;
  border: 1px dashed var(--brand); color: var(--brand); font-size: 13px; cursor: pointer; }
.attach-add:hover { background: var(--brand-soft); }
@media (max-width: 760px) {
  .attach-thumb { width: 76px; height: 76px; }
  .media-viewer-img, .media-viewer-video { max-height: 62vh; }
}

/* ================= 第二十八轮：月度值班排班 ================= */
.duty-open { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.duty-open input[type=time], .duty-open input[type=number] { width: 76px; padding: 5px 7px; font-size: 12.5px; }
.duty-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; padding: 0 4px 4px; }
.duty-wd { text-align: center; font-size: 12px; color: var(--muted); padding: 4px 0; font-weight: 600; }
.duty-cell { text-align: left; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  padding: 8px 9px; min-height: 82px; display: flex; flex-direction: column; gap: 4px; cursor: pointer;
  transition: .15s; font: inherit; color: inherit; }
.duty-cell:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(224,35,30,.10); }
.duty-cell.blank { background: transparent; border: none; cursor: default; box-shadow: none; }
.duty-cell.empty { border-style: dashed; }
.duty-cell.today { border-color: var(--brand); background: var(--brand-soft); }
.duty-cell.skip { opacity: .6; }
.dc-top { display: flex; align-items: baseline; justify-content: space-between; }
.dc-top b { font-size: 15px; }
.dc-top .muted { font-size: 11px; }
.dc-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-name i { font-style: normal; color: var(--muted); font-weight: 400; font-size: 12px; }
.dc-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 4px; }
.dc-foot .tag { font-size: 10.5px; padding: 1px 6px; }
tr.row-today td { background: var(--brand-soft); }
@media (max-width: 860px) {
  .duty-cal { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .duty-cell { min-height: 64px; padding: 5px 6px; border-radius: 9px; }
  .dc-top b { font-size: 13px; }
  .dc-name { font-size: 11.5px; }
  .dc-foot .tag { font-size: 9.5px; padding: 0 4px; }
}

/* ================= 第二十八轮：开店打卡时效卡 ================= */
.sla-card { border-left: 4px solid var(--brand); }
.sla-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.sla-row > div { display: flex; flex-direction: column; gap: 3px; }
.sla-row span { font-size: 12px; color: var(--muted); }
.sla-row b { font-size: 15px; }
.sla-app { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--brand-soft);
  display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.notice.danger { border-color: #f3b4b1; background: #fde8e8; color: #a81410; }
.duty-todo { border-left: 4px solid #2f6fed; }
.duty-todo-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.duty-todo-item { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 9px;
  border: 1px solid var(--line); font-size: 12.5px; }
.duty-todo-item.on { border-color: #2f6fed; background: #eef3ff; }

/* ================= 第二十八轮：客户全链路 ================= */
.journey { display: flex; align-items: flex-start; gap: 0; padding: 10px 2px 4px; overflow-x: auto; }
.journey-step { flex: 1 0 92px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.js-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: var(--card);
  color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.journey-step.done .js-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.js-name { font-size: 12.5px; font-weight: 600; }
.js-date { font-size: 11px; color: var(--muted); }
.js-note { font-size: 10.5px; color: var(--muted); max-width: 110px; }
.journey-line { flex: 1 1 20px; height: 2px; background: var(--line); margin-top: 13px; min-width: 12px; }
.journey-step.done + .journey-line { background: var(--brand); }

/* ================= 第二十八轮：个人待办聚合（老板 / 店长 / 员工） ================= */
.my-todos { border-left: 4px solid #f0a03c; }
/* auto-fit：分区少时占满整行（auto-fill 会留空列，老板只有一个待办分区时呈窄条） */
.todo-secs { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 12px; }
.todo-sec { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--card); }
.ts-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px;
  font-size: 13px; }
.ts-item { display: flex; align-items: baseline; gap: 7px; padding: 5px 0; border-top: 1px dashed var(--line);
  font-size: 12.5px; cursor: pointer; }
.ts-item:first-of-type { border-top: none; }
.ts-item:hover .ts-label { color: var(--brand); }
.ts-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: 0 0 auto; }
.ts-dot.amber { background: #f0a03c; } .ts-dot.red, .ts-dot.danger { background: #d93a33; }
.ts-dot.blue { background: #2f6fed; } .ts-dot.green { background: #2e9d63; }
.ts-label { font-weight: 600; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-sub { color: var(--muted); flex: 0 0 auto; font-size: 11.5px; }
@media (max-width: 720px) {
  .todo-secs { grid-template-columns: 1fr; }
  .ts-item { flex-wrap: wrap; }
  .ts-sub { flex: 1 1 100%; padding-left: 14px; }
}

/* ================= 第三十轮：开店检查拍照上传美化 ================= */
.open-thumbs { gap: 10px; }
/* 第五十三轮：门店每日打卡台账里的现场照片缩略图 */
.rc-thumb { width: 54px; height: 40px; border-radius: 8px; object-fit: cover; display: block;
  border: 1px solid var(--line); cursor: zoom-in; background: #f4f6fb; }
.open-thumb { width: 86px; height: 86px; border-radius: 14px; border: 1px solid #e6ecf7;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .07); transition: .18s; cursor: zoom-in; }
.open-thumb img, .open-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.open-thumb:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15, 23, 42, .14); }
.open-thumb::after { content: "点击预览"; position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(15, 23, 42, .44); color: #fff; font-size: 11.5px; opacity: 0; transition: .18s;
  border-radius: inherit; pointer-events: none; }
.open-thumb:hover::after { opacity: 1; }
.open-thumb b { width: 20px; height: 20px; line-height: 20px; font-size: 13px; top: 4px; right: 4px;
  background: #e5484d; box-shadow: 0 2px 6px rgba(0, 0, 0, .28); z-index: 2; }
.open-thumb.video { background: #0f172a; }
.ot-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .55); pointer-events: none; z-index: 1; }
.ot-tag { position: absolute; left: 5px; bottom: 5px; z-index: 1; background: rgba(15, 23, 42, .74);
  color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 6px; pointer-events: none; }
.ot-count { font-size: 11.5px; color: #475467; background: #f4f6fb; border: 1px solid #e6ecf7;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.open-add { width: 158px; height: 86px; border: 1.5px dashed #f3b1a6; border-radius: 14px;
  background: linear-gradient(135deg, #fff7f6, #f5f8ff); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px; color: #e0231e; cursor: pointer;
  padding: 8px; transition: .18s; position: relative; text-align: center; }
.open-add svg { width: 22px; height: 22px; margin-bottom: 2px; }
.oa-main { font-size: 12.5px; font-weight: 700; color: #1e293b; line-height: 1.3; }
.oa-sub { font-size: 10.5px; color: #94a3b8; line-height: 1.3; }
.open-add:hover { border-color: #e0231e; background: linear-gradient(135deg, #fff1ef, #eef4ff);
  transform: translateY(-2px); box-shadow: 0 6px 14px rgba(224, 35, 30, .12); }
.open-add.uploading { pointer-events: none; opacity: .72; }
.open-add.uploading .oa-main::after { content: "…"; }
.open-add em { position: absolute; top: 5px; right: 6px; margin: 0; }
@media (max-width: 720px) {
  .open-thumb, .open-add { width: 104px; height: 78px; }
}

/* ================= 第三十一轮：检查项点评块（与整改块同款，位于其下方） ================= */
.rectify-box.comment-box { background: #f5f8ff; border-color: #cfdffb; }
.rectify-box.comment-box > span { min-width: 0; }
.rectify-box.comment-box > span[style] { white-space: normal; line-height: 1.55; }

/* ================= 第三十五轮：大标题可点击 / 图片显示优化 / 任务转办 / 卡课设置 ================= */
/* 大标题可点击跳回板块首页 */
#pageTitle { cursor: pointer; transition: color .15s; }
#pageTitle:hover { color: #e0231e; }
#pageTitle::after { content: " ↺"; font-size: 14px; color: #b6bcc8; font-weight: normal; }
#pageTitle:hover::after { color: #e0231e; }

/* 附件缩略图：破图占位 */
.attach-thumb.thumb-broken { display: flex; align-items: center; justify-content: center;
  background: #f3f4f7; border: 1px dashed #d4d8e0; }
.attach-thumb .thumb-broken-tip { position: absolute; inset: 0; display: none; align-items: center;
  justify-content: center; padding: 6px; font-size: 11px; color: #6b7280; text-align: center;
  line-height: 1.35; word-break: break-all; }
.attach-thumb.thumb-broken .thumb-broken-tip { display: flex; }

/* 全屏预览：多图左右切换 */
.mv-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; }
.mv-nav[data-mv="-1"] { left: 12px; }
.mv-nav[data-mv="1"] { right: 12px; }
#mvWrap .modal-body { position: relative; display: flex; align-items: center; justify-content: center; }
#mvCount { font-variant-numeric: tabular-nums; }

/* 任务待受理超时 / 转办记录 */
.tag.timeup { background: #fdecec; color: #b42318; border: 1px solid #f5c2c2; }

/* 客户档案页顶部页签（客户列表 / 续卡·卡务） */
.cust-tabs { display: flex; gap: 6px; flex-wrap: wrap; }

/* ================= 第三十六轮：待预约体验课 / 卡种含指导课 / 任务图片 / 门店检查合并 ================= */
/* 待预约体验课：统计数字即入口 */
.tp-card .card-body { padding-bottom: 4px; }
.tp-nums { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.tp-num { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; text-align: left;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tp-num:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(224, 35, 30, .10); transform: translateY(-1px); }
.tp-num.main { background: linear-gradient(135deg, #fff5f4, #fff); border-color: #f7c9c5; }
.tp-num > span { font-size: 12px; color: var(--sub); }
.tp-num > b { font-size: 22px; line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums; }
.tp-num > b em { font-size: 12px; font-style: normal; color: var(--sub); margin-left: 3px; font-weight: 500; }
.tp-num > i { font-size: 11.5px; font-style: normal; color: #94a3b8; line-height: 1.35; }
.tp-stores { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip-mini { font-size: 12px; color: var(--sub); background: #f5f7fb; border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 10px; }
.chip-mini b { color: var(--ink); }
.link-name { cursor: pointer; color: var(--ink); }
.link-name:hover { color: var(--brand); text-decoration: underline; }
.tp-list { display: flex; flex-direction: column; gap: 6px; max-height: 62vh; overflow: auto; }
.tp-row { display: grid; grid-template-columns: 1.1fr auto 1.6fr auto; align-items: center; gap: 10px;
  text-align: left; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.tp-row:hover { border-color: var(--brand); background: #fffafa; }
.tp-row-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tp-row-detail { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 勾选行（随卡私教指导课） */
.check-line { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink);
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fafbfe; }
.check-line input[type="checkbox"] { width: auto; }

/* 任务列表缩略图（电脑 + 手机都能直接看到图片） */
.task-thumbs { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.task-thumbs .attach-thumb { width: 46px; height: 46px; border-radius: 8px; }
.task-thumbs .attach-thumb .attach-cap { display: none; }
.task-thumbs .tag { font-size: 11px; }
@media (max-width: 860px) {
  .tp-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-row { grid-template-columns: 1fr auto; }
  .tp-row-detail { display: none; }
  .task-thumbs .attach-thumb { width: 56px; height: 56px; }
}

/* 第三十九轮：停卡 / 停课 / 加时长 — 客户搜索联想下拉 */
.op-sugg { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% - 4px);
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px rgba(15,23,42,.12);
  max-height: 320px; overflow: auto; }
.op-sugg-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 9px 12px;
  border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13px; }
.op-sugg-row:last-child { border-bottom: none; }
.op-sugg-row:hover { background: #fff7f0; }
.op-sugg-empty { padding: 12px; color: var(--sub); font-size: 13px; }
.op-sugg-row .tag { font-size: 11px; }

/* 第五十九轮：薪酬结构编辑器（按岗位增删构成项） */
.st-box { border: 1px solid #e3e8fb; border-radius: 14px; background: #fbfcff; padding: 12px; }
.st-roles { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.st-role { border: 1px solid #d9e2f8; background: #fff; color: #33415c; border-radius: 99px;
  padding: 5px 11px; font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.st-role:hover { border-color: #e0231e; color: #e0231e; }
.st-role.active { background: #e0231e; border-color: #e0231e; color: #fff; }
.st-role .st-cnt { background: rgba(0,0,0,.06); border-radius: 99px; padding: 0 6px; font-size: 11px; }
.st-role.active .st-cnt { background: rgba(255,255,255,.28); }
.st-panel { background: #fff; border: 1px solid #eef1fa; border-radius: 12px; padding: 8px; }
.st-row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 9px; }
.st-row + .st-row { border-top: 1px dashed #eef1fa; }
.st-row:hover { background: #fbfcff; }
.st-drag { color: #c3cbdd; font-size: 13px; user-select: none; }
.st-main { flex: 1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.st-name { width: 150px; border: 1px solid transparent; background: transparent; border-radius: 7px;
  padding: 3px 6px; font-size: 13px; color: #1c2536; }
.st-name:hover, .st-name:focus { border-color: #d9e2f8; background: #fff; outline: none; }
.st-tag { font-size: 10px; border-radius: 99px; padding: 1px 7px; white-space: nowrap; }
.st-tag.sys { background: #eef3ff; color: #3b5bdb; }
.st-tag.cus { background: #fff3e6; color: #b35c00; }
.st-hint { font-size: 11px; color: #8a93a6; }
.st-amt { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #5a6478; }
.st-amt input { width: 82px; }
.st-ops { display: flex; align-items: center; gap: 4px; }
.st-on { font-size: 12px; color: #5a6478; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.st-btn { width: 24px; height: 24px; border: 1px solid #e3e8fb; background: #fff; border-radius: 7px;
  cursor: pointer; color: #5a6478; line-height: 1; }
.st-btn:hover { border-color: #e0231e; color: #e0231e; }
.st-btn:disabled { opacity: .35; cursor: default; border-color: #e3e8fb; color: #5a6478; }
.st-btn.del { color: #c0392b; }
.st-add { margin-top: 8px; border-top: 1px dashed #eef1fa; padding-top: 8px; display: grid; gap: 7px; }
.st-add-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; }
.st-chip { border: 1px dashed #c9d6f5; background: #f7f9ff; color: #3b5bdb; border-radius: 99px;
  padding: 3px 10px; font-size: 12px; cursor: pointer; }
.st-chip:hover { background: #eef3ff; border-style: solid; }
.st-copy { display: flex; gap: 6px; align-items: center; margin-top: 8px; font-size: 12px; flex-wrap: wrap;
  border-top: 1px dashed #eef1fa; padding-top: 8px; }

/* 第六十轮：页面右下角前端发版标识（便于确认浏览器拿到的是否新版） */
.build-tag { position: fixed; right: 10px; bottom: 8px; z-index: 50; font-size: 10px;
  color: #b7c0d4; opacity: .7; pointer-events: none; user-select: none; }

/* R64：新版提示条 */
.ver-bar {
  position: fixed; left: 50%; transform: translateX(-50%); top: 10px; z-index: 300;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  background: #101828; color: #fff; border-radius: 12px; padding: 10px 14px;
  box-shadow: 0 12px 34px rgba(16, 24, 40, .34); font-size: 13px; max-width: calc(100vw - 24px);
  animation: pop .18s ease-out;
}
.ver-bar .vb-txt { line-height: 1.5; }
.ver-bar .btn { background: rgba(255, 255, 255, .14); color: #fff; border: 0; }
.ver-bar .btn-primary { background: #2563eb; }

/* 第六十轮：每日巡检问题单 */
.issue-row { border: 1px solid #eef1fa; border-radius: 10px; padding: 8px 10px; background: #fff; display: grid; gap: 4px; }
.issue-row.done { background: #f8fbf9; border-color: #e3f0e8; opacity: .85; }
.issue-desc { font-size: 13px; color: #33415c; line-height: 1.6; }

/* ===== 第六十二轮：任务链路 / 同批次 / 客户自动匹配 ===== */
.task-chain { display:flex; align-items:stretch; gap:6px; overflow-x:auto; padding:10px 2px 4px; }
.chain-node { min-width:118px; padding:8px 10px; border:1px solid var(--line); border-radius:10px;
  background:#fbfcff; display:flex; flex-direction:column; gap:2px; }
.chain-node b { font-size:13.5px; }
.chain-node span { font-size:11.5px; color:var(--muted); line-height:1.4; }
.chain-node.blue { border-color:#c7d7ff; background:#f2f6ff; }
.chain-node.purple { border-color:#ded0ff; background:#f7f2ff; }
.chain-node.green { border-color:#bfe6cd; background:#f1fbf4; }
.chain-node.me { box-shadow:0 0 0 2px rgba(43,89,255,.14); }
.chain-arrow { align-self:center; color:var(--muted); font-style:normal; font-size:13px; }
.batch-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:8px; margin-top:6px; }
.batch-item { border:1px solid var(--line); border-radius:10px; padding:8px 10px; display:flex;
  align-items:center; gap:8px; flex-wrap:wrap; background:#fbfcff; }
.batch-item.cur { border-color:#bfd0ff; background:#f4f7ff; }
.batch-item b { font-size:13px; }
.cust-match { position:relative; margin-top:6px; border:1px solid var(--line); border-radius:10px;
  max-height:240px; overflow:auto; background:#fff; box-shadow:0 8px 20px rgba(20,40,90,.08); }
.cust-match-item { padding:8px 10px; cursor:pointer; border-bottom:1px dashed var(--line); display:flex;
  gap:8px; align-items:baseline; }
.cust-match-item:last-child { border-bottom:0; }
.cust-match-item:hover { background:#f4f7ff; }
.cust-match-item span { font-size:12px; }

/* 第六十二轮：退费两种模式选择 */
.rf-modes { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:6px 0 12px; }
.rf-mode { text-align:left; border:1px solid var(--line); background:#fbfcff; border-radius:12px;
  padding:10px 12px; display:flex; flex-direction:column; gap:4px; cursor:pointer; }
.rf-mode b { font-size:13.5px; }
.rf-mode span { font-size:12px; color:var(--muted); line-height:1.5; }
.rf-mode.on { border-color:#2b59ff; background:#f2f6ff; box-shadow:0 0 0 2px rgba(43,89,255,.12); }
@media (max-width:720px) { .rf-modes { grid-template-columns:1fr; } }

/* 第六十三轮：每日巡检三段打卡（开店 / 下午巡场 / 下班） */
.pt-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
/* 第六十八轮：值班人 / 执行人 / 责任人一行说清，避免「谁该做」看不明白 */
.pt-legend { display:flex; gap:16px; flex-wrap:wrap; font-size:12.5px; color:var(--muted);
  background:#f6f8fd; border:1px solid var(--line); border-radius:10px; padding:8px 12px;
  margin-bottom:10px; }
.pt-legend b { color:var(--ink); font-weight:600; }
.pt-slot { border:1px solid var(--line); border-radius:14px; padding:12px; background:#fbfcff;
  display:flex; flex-direction:column; gap:6px; }
.pt-slot.done { border-color:#bfe6cd; background:#f4fcf7; }
.pt-slot.issue { border-color:#f5d9a8; background:#fffaf0; }
.pt-slot.late { border-color:#f0b9b9; background:#fff6f6; }
.pt-top { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.pt-time { font-size:12px; color:var(--muted); }
.pt-who { font-size:12.5px; }
.pt-photos { display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
.pt-photos img { width:54px; height:54px; object-fit:cover; border-radius:8px; border:1px solid var(--line); }
.pt-empty { font-size:12px; color:var(--muted); border:1px dashed var(--line); border-radius:8px;
  padding:12px; text-align:center; }
.pt-note { font-size:12px; color:var(--muted); background:#fff; border-radius:8px; padding:6px 8px; }
.pt-acts { display:flex; gap:6px; flex-wrap:wrap; margin-top:auto; }
.pt-chain { margin-top:12px; }
.pt-chain summary { cursor:pointer; font-size:12.5px; color:var(--muted); }
.pt-prob { display:grid; grid-template-columns:1fr 88px 118px auto; gap:6px; align-items:center; }
.pt-prob input, .pt-prob select { height:34px; }
@media (max-width:960px) { .pt-grid { grid-template-columns:1fr; } .pt-prob { grid-template-columns:1fr; } }
.pt-detail { margin-top:4px; }
.pt-detail > summary { cursor:pointer; font-size:13px; color:var(--muted); padding:8px 2px; }
.pt-detail[open] > summary { color:var(--ink); }

/* ---------- 第六十五轮：按部位拍照 + 店长判定 ---------- */
.pt-progress { display:grid; gap:5px; }
.ptp-line { display:flex; align-items:center; gap:6px; flex-wrap:wrap; font-size:12px; color:var(--muted); }
.pt-bar { height:5px; border-radius:99px; background:#eef1f7; overflow:hidden; }
.pt-bar i { display:block; height:100%; border-radius:99px;
  background:linear-gradient(90deg,#38a169,#4c9aff); transition:width .25s ease; }

.pt-ptlist { display:grid; gap:8px; }
.pt-point { border:1px solid var(--line); border-radius:12px; padding:10px 12px; background:#fff; display:grid; gap:6px; }
.pt-point.pass { border-color:#bfe6cd; background:#f6fdf9; }
.pt-point.fail { border-color:#f3c2c2; background:#fff7f7; }
.pt-point.shot { border-color:#c9dcff; background:#f7faff; }
.ptp-head { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.ptp-head b { font-size:13.5px; }
.ptp-hint { font-size:12px; color:var(--muted); line-height:1.5; }
.ptp-imgs { display:flex; gap:6px; flex-wrap:wrap; }
.ptp-imgs img { width:64px; height:64px; object-fit:cover; border-radius:8px; border:1px solid var(--line); }
.ptp-imgs.big img { width:120px; height:120px; }
/* 判定 / 拍照部位图片：可点开大图 */
.ptp-imgs .ptp-thumb { cursor:zoom-in; transition:transform .12s ease, box-shadow .12s ease; }
.ptp-imgs .ptp-thumb:hover { transform:scale(1.04); box-shadow:0 4px 14px rgba(15,23,42,.18); }
.ptp-note { font-size:12px; color:#33415c; background:#f7f9ff; border-radius:8px; padding:6px 8px; }
.ptp-judge { font-size:12px; color:#b42318; background:#fff1f1; border-radius:8px; padding:6px 8px; }
.ptp-acts { display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
.ptp-acts .btn { position:relative; }
.ptp-edit { display:grid; grid-template-columns:200px 1fr 74px auto; gap:8px; align-items:center;
  border:1px solid var(--line); border-radius:10px; padding:8px 10px; background:#fff; }
.ptp-edit input[type=text], .ptp-edit input:not([type]) { height:34px; }
.ptp-req { display:flex; align-items:center; gap:5px; font-size:12.5px; color:var(--muted); white-space:nowrap; }

/* 第一五八轮：按部位拍照支持多张（最多 6 张）+ 单张删除 */
.ptp-tw { position:relative; display:inline-block; }
.ptp-tw .ptp-del { position:absolute; top:-7px; right:-7px; width:21px; height:21px; line-height:19px;
  text-align:center; border-radius:50%; background:#ef4444; color:#fff; border:none; cursor:pointer;
  font-size:14px; padding:0; box-shadow:0 1px 4px rgba(0,0,0,.28); z-index:2; }
.ptp-count { font-size:12px; color:var(--muted); margin-top:6px; }

/* 第一五八轮：有序人员选择器（轮值顺序一目了然） */
.opk { display:grid; grid-template-columns:1fr 1.25fr; gap:12px; }
.opk-col { border:1px solid var(--line); border-radius:12px; padding:10px 12px; background:#fbfcff; }
.opk-h { font-size:12.5px; color:var(--muted); margin-bottom:8px; font-weight:600; }
.opk-avail { display:flex; flex-wrap:wrap; gap:6px; }
.opk-chip { font-size:12.5px; padding:5px 11px; border-radius:99px; border:1px solid var(--line);
  background:#fff; cursor:pointer; color:var(--ink); }
.opk-chip:hover { border-color:var(--brand); color:var(--brand); }
.opk-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.opk-list li { display:flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--line);
  border-radius:10px; padding:6px 8px; }
.opk-num { width:24px; height:24px; line-height:24px; text-align:center; border-radius:50%;
  background:var(--brand); color:#fff; font-size:12px; font-weight:700; flex:0 0 auto; }
.opk-name { flex:1; font-size:13px; }
.opk-name em { font-style:normal; font-size:11.5px; color:var(--muted); }
.opk-act { display:flex; gap:4px; }
.opk-act button { width:28px; height:28px; border-radius:8px; border:1px solid var(--line);
  background:#fff; cursor:pointer; font-size:14px; line-height:1; }
.opk-act button:disabled { opacity:.35; cursor:not-allowed; }
.opk-act .opk-rm { color:#ef4444; border-color:#f3c7c7; }

@media (max-width: 760px) {
  .ptp-edit { grid-template-columns:1fr; }
  .ptp-imgs img { width:56px; height:56px; }
  .opk { grid-template-columns:1fr; }
}

/* ---------- 第六十九轮：值班表（本周）+ 每日巡检（店长每天一遍） ---------- */
.duty-week { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:8px; }
.dw-cell { text-align:left; border:1px solid var(--line); background:#fbfcff; border-radius:12px;
  padding:8px 10px; display:flex; flex-direction:column; gap:4px; cursor:pointer; transition:.15s; }
.dw-cell:hover { border-color:#9db8f0; transform:translateY(-1px); }
.dw-cell.today { border-color:#4c9aff; box-shadow:0 0 0 2px rgba(76,154,255,.15); background:#f5f9ff; }
.dw-top { display:flex; align-items:center; gap:5px; font-size:12px; color:var(--muted); }
.dw-top b { font-size:15px; color:var(--ink); }
.dw-top em { font-style:normal; font-size:10.5px; color:#fff; background:#4c9aff; border-radius:99px;
  padding:1px 6px; margin-left:auto; }
.dw-who { font-size:13px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dw-who i { font-weight:400; color:var(--muted); }
.dw-tags { display:flex; gap:4px; flex-wrap:wrap; }
.dw-tags .tag { font-size:10.5px; padding:1px 5px; }
.duty-facts { display:flex; gap:14px; flex-wrap:wrap; align-items:center; font-size:12.5px;
  margin-top:10px; padding-top:10px; border-top:1px dashed var(--line); color:var(--muted); }
.duty-facts b { color:var(--ink); }
@media (max-width:900px) { .duty-week { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media (max-width:560px) { .duty-week { grid-template-columns:repeat(2,minmax(0,1fr)); } }

.ins-card .pt-legend { margin-bottom:12px; }
.ins-groups { display:grid; gap:10px; }
.ins-group { border:1px solid var(--line); border-radius:12px; overflow:hidden; background:#fff; }
.ins-group h4 { margin:0; padding:8px 12px; font-size:13px; background:#f7f9ff; border-bottom:1px solid var(--line); }
.ins-row { display:grid; grid-template-columns:1fr auto; gap:8px 12px; padding:9px 12px; align-items:center;
  border-top:1px solid #f1f3f8; }
.ins-group h4 + .ins-row { border-top:0; }
.ins-row.bad { background:#fffafa; }
.ins-main { display:flex; flex-direction:column; gap:2px; min-width:0; }
.ins-main b { font-size:13px; }
.ins-main span { font-size:11.5px; line-height:1.45; }
.ins-acts { display:flex; gap:6px; }
.ins-acts .btn { min-width:60px; }
.ins-note, .ins-note-ro { grid-column:1 / -1; width:100%; height:34px; border-radius:8px;
  border:1px solid #f0c9c9; padding:0 10px; background:#fff; font-size:12.5px; }
.ins-note-ro { display:flex; align-items:center; color:#a33; background:#fff7f7; }
.ins-issue { grid-column:1 / -1; display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.ins-foot { display:flex; gap:10px; align-items:flex-end; margin-top:12px; flex-wrap:wrap; }
.ov-ins { display:block; font-style:normal; font-size:9.5px; color:#b8bcc6; line-height:1.3; }
.ov-ins.on { color:#17805a; font-weight:600; }

/* ---------- 第九十八轮追加：巡检工作台（三板块进度条 + 分组折叠） ---------- */
.ins-ov { position:sticky; top:0; z-index:3; display:grid; grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px; margin-bottom:10px; padding:8px; border-radius:14px; background:#fff;
  border:1px solid var(--line); box-shadow:0 6px 18px rgba(20,40,90,.06); }
.ins-pill { display:flex; flex-direction:column; gap:4px; padding:8px 10px; border-radius:10px;
  border:1px solid var(--line); background:#fbfcff; text-align:left; cursor:pointer; font:inherit; }
.ins-pill.doing { border-color:#f0c68a; background:#fffaf2; }
.ins-pill.done { border-color:#b7e2c6; background:#f3fbf6; }
.ins-pill-t { font-size:12.5px; font-weight:600; }
.ins-pill-b { height:4px; border-radius:999px; background:#e8edf8; overflow:hidden; }
.ins-pill-b i { display:block; height:100%; background:#4f7cf7; transition:width .2s; }
.ins-pill.done .ins-pill-b i { background:#35a86b; }
.ins-pill-n { font-size:11.5px; color:var(--muted); }
.ins-group-head { display:flex; align-items:center; gap:8px; padding:9px 12px; cursor:pointer;
  background:#f7f9ff; border-bottom:1px solid var(--line); }
.ins-group-head b { font-size:13px; }
.ins-group-head .grow { flex:1; }
.ins-caret { font-style:normal; color:var(--muted); transition:transform .15s; font-size:12px; }
.ins-caret.on { transform:rotate(180deg); }
.ins-group-body[hidden] { display:none; }
.ins-row.is-ok { background:#fcfdff; }
.ins-row.is-ok .ins-main b { color:#5a6a86; font-weight:500; }
.ins-bad-dot { font-style:normal; color:#c0392b; font-weight:600; }
.wk-head { background:#fff; border-bottom:0; padding:12px; }
.wk-head h3 { margin:0; font-size:14px; }
.wk-head .card-head { padding:0; border:0; }
@media (max-width:620px) { .ins-row { grid-template-columns:1fr; } .ins-acts { justify-content:flex-end; }
  .ins-ov { grid-template-columns:1fr; position:static; } }

/* ---------- 第七十轮：门店检查顶栏状态条 / 页签内分段按钮 ---------- */
.today-strip { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:12.5px; color:var(--ink); }
.today-strip b { font-weight:700; }
.today-strip .sep { font-style:normal; color:#c8ccd6; }
.today-strip .tag { font-size:10.5px; padding:1px 6px; }
@media (max-width:720px) { .today-strip { font-size:12px; gap:6px; } }

.seg { display:inline-flex; border:1px solid var(--line); border-radius:10px; overflow:hidden; background:#fff; }
.seg-btn { border:0; background:transparent; padding:6px 14px; font-size:12.5px; color:var(--muted); cursor:pointer; }
.seg-btn + .seg-btn { border-left:1px solid var(--line); }
.seg-btn.on { background:#eef4ff; color:#1c5fd0; font-weight:600; }

/* ---------- 第七十二轮：门店业绩重梳 ---------- */
.tag.teal { background: #e6f7f4; color: #0b7a6c; border-color: #c9ece7; }
.tag.orange { background: #fff3e6; color: #b25e00; border-color: #ffe0bd; }
table.tbl tr.row-on td { background: #fff6ec; }
.ins-issue { gap: 8px; }

/* ---------- 第七十三轮：业绩构成合成一张卡（新续 + 线上线下） ---------- */
.mix-row + .mix-row { margin-top: 14px; padding-top: 13px; border-top: 1px dashed var(--line); }
.mix-title { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.mix-title .muted { font-weight: 400; }
.mix-row .ch-bar { height: 9px; border-radius: 99px; }
.mix-tags { margin-top: 13px; padding-top: 12px; border-top: 1px dashed var(--line); flex-wrap: wrap; }

/* 第七十八轮：工作台首页低频模块折叠，减少信息噪音 */
.home-fold { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 2px 16px 14px; }
.home-fold > summary { cursor: pointer; list-style: none; padding: 11px 0; font-weight: 600; font-size: 14px;
  display: flex; align-items: center; gap: 8px; }
.home-fold > summary::-webkit-details-marker { display: none; }
.home-fold > summary::after { content: "展开 ▾"; margin-left: auto; font-size: 12px; font-weight: 400;
  color: #7c8698; }
.home-fold[open] > summary::after { content: "收起 ▴"; }
.home-fold > summary .fold-tag { font-size: 12px; font-weight: 400; }

/* 第八十四轮：表格行可点开统计明细 */
table.tbl tbody tr.row-click { cursor: pointer; }
table.tbl tbody tr.row-click:hover td { background: #fbfcff; }
table.tbl tbody tr.row-click:hover td:first-child b { color: var(--brand); }

/* ---------- 第八十八轮：体验课课后小结 / 成交链路 ---------- */
.tc-flow { display:flex; align-items:center; gap:4px; flex-wrap:wrap; padding:10px 12px;
  background:#f7f9ff; border:1px solid #e4ebfa; border-radius:12px; }
.tc-step { font-size:12px; padding:3px 9px; border-radius:99px; background:#fff;
  border:1px solid #e2e8f5; color:#9aa3b5; white-space:nowrap; }
.tc-step.on { background:#eaf3ff; border-color:#c7ddfb; color:#1c5fd0; font-weight:600; }
.tc-arrow { color:#c8d0e0; font-style:normal; font-size:11px; }
.tc-block { border:1px solid var(--line); border-radius:12px; padding:12px 14px; background:#fff; }
.tc-block + .tc-block { margin-top:0; }
.tc-block-head { display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.tc-block-head b { font-size:13.5px; }
.tc-summary { white-space:pre-wrap; line-height:1.65; font-size:13px; color:#2b3446;
  background:#fbfcff; border:1px dashed #e3e9f7; border-radius:10px; padding:10px 12px; }
.tc-timeline { max-height:320px; overflow:auto; padding-right:4px; }
.tc-ev { display:flex; gap:9px; padding:6px 0; position:relative; }
.tc-ev + .tc-ev { border-top:1px dashed #eef1f8; }
.tc-dot { width:8px; height:8px; border-radius:50%; background:#c9cfdb; margin-top:6px; flex:none; }
.tc-dot.blue{background:#3b82f6}.tc-dot.green{background:#16a34a}.tc-dot.amber{background:#f59e0b}
.tc-dot.red{background:#dc2626}.tc-dot.teal{background:#0d9488}.tc-dot.purple{background:#7c3aed}
.tc-ev-body { flex:1; min-width:0; }
.tc-ev-head { display:flex; align-items:baseline; gap:6px; flex-wrap:wrap; font-size:12.5px; }
.tc-ev-desc { font-size:12.5px; color:#4b5563; line-height:1.55; margin-top:2px; white-space:pre-wrap; }
.tc-follows { max-height:220px; overflow:auto; }
.tc-follow { padding:6px 0; border-bottom:1px dashed #eef1f8; }
.tc-follow:last-child { border-bottom:0; }
.tc-follow-form { margin-top:10px; padding-top:10px; border-top:1px dashed #e3e9f7; }
.tk-board { display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:10px; }
.tk-funnel { display:flex; align-items:stretch; gap:6px; flex-wrap:wrap; }
.tk-fstep { flex:1; min-width:104px; border:1px solid var(--line); border-radius:10px; padding:8px 10px; background:#fff; }
.tk-fstep .n { font-size:19px; font-weight:700; }
.tk-fstep .l { font-size:12px; color:var(--muted); }
.tk-fstep.won .n { color:#16a34a; } .tk-fstep.lost .n { color:#dc2626; }
.tk-fstep.pending .n { color:#d97706; }
.tk-attn { display:flex; align-items:center; gap:8px; padding:6px 0; border-bottom:1px dashed #eef1f8; font-size:12.5px; }
.tk-attn:last-child { border-bottom:0; }
.tk-attn .grow { flex:1; min-width:0; }

/* ===== 第一百零二轮：教练版「写小结」——手机一屏填完 ===== */
.qr-wrap { display:flex; flex-direction:column; gap:10px; max-width:600px; }
.qr-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.qr-head b { font-size:15px; }
.qr-step { border:1px solid var(--line); border-radius:12px; padding:12px 14px; background:#fff; }
.qr-step-head { display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.qr-step-head .n { width:20px; height:20px; border-radius:50%; background:#eef3ff; color:#3b6ef5;
  font-size:12px; font-weight:700; display:flex; align-items:center; justify-content:center; flex:none; }
.qr-step-head b { font-size:13.5px; }
.qr-tags { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:8px; }
.qr-tags .chip-btn { font-size:12.5px; padding:6px 12px; }
.qr-res { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.qr-res button { border:1px solid #d6dff5; background:#fff; border-radius:12px; padding:12px 6px; cursor:pointer;
  font-size:13px; font-weight:600; color:#475467; transition:.16s; line-height:1.35; }
.qr-res button small { display:block; font-weight:400; font-size:11.5px; color:#94a3b8; margin-top:3px; }
.qr-res button.on { color:#fff; border-color:transparent; box-shadow:0 6px 16px rgba(0,0,0,.12); }
.qr-res button.on small { color:rgba(255,255,255,.82); }
.qr-res button.on.won { background:linear-gradient(135deg,#0f9d58,#23b26d); }
.qr-res button.on.pending { background:linear-gradient(135deg,#f59e0b,#fbbf24); }
.qr-res button.on.lost { background:linear-gradient(135deg,#dc2626,#f2694c); }
.qr-submit { width:100%; height:46px; font-size:15px; font-weight:600; }
.qr-more { text-align:center; margin-top:2px; }
.qr-hint { font-size:12px; color:#64748b; line-height:1.5; }
@media (max-width:620px) { .qr-res { grid-template-columns:1fr; } .qr-res button { padding:11px 10px; text-align:left; } }

/* ---------- 第 105 轮：消息中心（铃铛抽屉） ---------- */
.msg-wrap { display:flex; flex-direction:column; gap:16px; max-height:64vh; overflow-y:auto; padding-right:2px; }
.msg-sec-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding-bottom:6px; border-bottom:1px solid var(--line); margin-bottom:4px; }
.msg-sec-head b { font-size:13.5px; }
.msg-sec-head .muted { font-size:12px; flex:1; min-width:120px; }
.msg-row { display:flex; gap:9px; align-items:flex-start; padding:9px 8px; border-radius:9px; cursor:pointer; }
.msg-row:hover { background:#f7f9fc; }
.msg-row.unread { background:#f8fbff; }
.msg-row.unread .msg-title { font-weight:600; }
.msg-row.read { opacity:.82; }
.msg-dot { width:7px; height:7px; border-radius:50%; margin-top:6px; flex:0 0 7px; background:var(--info); }
.msg-dot.red { background:var(--danger); }
.msg-dot.amber { background:var(--warn); }
.msg-dot.blue { background:var(--info); }
.msg-main { flex:1; min-width:0; }
.msg-title { font-size:13.5px; font-weight:500; color:var(--ink); line-height:1.45; }
.msg-body { font-size:12.5px; color:var(--sub); line-height:1.55; margin-top:2px; word-break:break-word; }
.msg-meta { font-size:11.5px; color:#94a3b8; margin-top:3px; }
.chk { display:inline-flex; align-items:center; gap:7px; font-size:13px; cursor:pointer; }
.chk input { width:auto; }
@media (max-width:620px) {
  .msg-wrap { max-height:none; }
  .msg-sec-head .muted { display:none; }
}

/* 第一二四轮：成交明细按「会卡 / 私教课」分开显示 */
.deal-split-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 16px 4px;
  padding-top:12px;border-top:1px solid var(--line,#e9edf4)}
.deal-split-head:first-of-type{border-top:0;padding-top:0;margin-top:6px}
.deal-split-head b{font-size:15px}
.deal-split-dot{width:26px;height:26px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;
  font-size:12px;font-weight:700;color:#fff}
.deal-split-dot.blue{background:#2f6fed}
.deal-split-dot.purple{background:#7b5cf0}
.deal-split-tip{margin:0 16px 6px;font-size:12px;color:#8a8f98}

/* 第一二五轮：骨架屏 —— 数据没回来先占版面，避免白屏与「加载中」抖动 */
.skel-stack{display:flex;flex-direction:column;gap:10px;padding:4px 0}
.skel{display:block;height:13px;border-radius:7px;margin:6px 0;
  background:linear-gradient(90deg,#eceff5 25%,#f6f8fc 37%,#eceff5 63%);
  background-size:400% 100%;animation:skelMove 1.3s ease-in-out infinite}
.skel-h18{height:18px}.skel-h22{height:22px}
.skel-w30{width:30%}.skel-w40{width:40%}.skel-w50{width:50%}.skel-w55{width:55%}
.skel-w60{width:60%}.skel-w70{width:70%}.skel-w80{width:80%}.skel-w85{width:85%}.skel-w90{width:90%}
.kpi .skel{margin:0 0 8px}
@keyframes skelMove{0%{background-position:100% 0}100%{background-position:0 0}}
@media (prefers-reduced-motion:reduce){.skel{animation:none}}

/* 第一三五轮：工作台精简——顶部问候条更像一张「今日概览」卡，模块之间留白更统一 */
.home-hero{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.home-hello{font-size:16px;font-weight:700;letter-spacing:.01em;margin-bottom:4px}
#homeRev .card,#homeRewards .card,#homeTodos .card{margin:0}
@media(max-width:640px){
  .home-hero{gap:10px}
  .home-hello{font-size:15px}
}

/* ================= R153：手机端竖屏 / 横屏紧凑化 =================
   手机上表头 / 单元格沿用桌面内边距（10-13px），一屏只能看几行；
   横屏时上下空间更小，顶栏 + 导航 + 标题吃掉大半屏。这里统一压扁。 */
@media (max-width: 860px) {
  table.tbl { font-size: 12px; }
  table.tbl th { padding: 7px 9px; font-size: 11px; letter-spacing: .2px; }
  table.tbl td { padding: 7px 9px; font-size: 12px; line-height: 1.45; }
  table.tbl tfoot td { padding: 7px 9px; font-size: 12px; }
  table.tbl-plain td { padding: 6px 0; }
  .card { border-radius: 12px; }
  .card-head { padding: 10px 12px; }
  .card-head h3 { font-size: 13.5px; }
  .card-body { padding: 10px 12px; }
  .kpi { padding: 10px 12px; }
  .kpi .label { font-size: 11px; }
  .kpi .value { font-size: 18px; }
  .stack { gap: 12px; }
  .grid { gap: 12px; }
  /* 按钮收窄：38px 高在手机上太占地，34px 仍可点 */
  .btn { min-height: 34px; padding: 6px 11px; }
  .btn-sm { min-height: 29px; padding: 4px 9px; }
  /* 手机上页面标题栏不吸顶（吸了也会被导航盖住），让内容多吃一屏 */
  .topbar { position: static; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rev-summary { grid-template-columns: repeat(2, 1fr); }
  .hero-stat .hs-value { font-size: 21px; }
}
@media (max-width: 480px) {
  table.tbl { font-size: 11.5px; }
  table.tbl th { padding: 6px 7px; font-size: 10.5px; }
  table.tbl td { padding: 6px 7px; font-size: 11.5px; line-height: 1.4; }
  table.tbl tfoot td { padding: 6px 7px; }
  .card-head { padding: 9px 10px; }
  .card-head h3 { font-size: 13px; }
  .card-body { padding: 9px 10px; }
  .view { padding: 8px 7px 36px; }
  .topbar { padding: 7px 9px; min-height: 48px; }
  .stack { gap: 10px; }
  .grid { gap: 10px; }
}

/* 横屏（手机旋转，高度极小）：压缩顶栏 / 导航 / 卡片，把空间留给内容 */
@media (orientation: landscape) and (max-height: 500px) {
  .side-brand { padding: 4px 10px; }
  .side-brand .brand-mark { width: 28px; height: 28px; font-size: 11px; border-radius: 8px; }
  .side-brand strong { font-size: 12px; }
  .side-brand span { display: none; }
  .side-foot { padding: 3px 10px; }
  .side-foot .who { font-size: 11px; }
  .side-foot .btn { min-height: 24px; padding: 2px 8px; }
  .nav { padding: 3px 8px 5px; gap: 5px; }
  .nav-item { padding: 4px 10px; font-size: 12px; min-height: 27px; }
  .topbar { min-height: 36px; padding: 4px 12px; }
  .topbar h2 { font-size: 13.5px; }
  .topbar p { display: none; }
  .view { padding: 7px 12px 20px; }
  .card-head { padding: 7px 11px; }
  .card-head h3 { font-size: 12.5px; }
  .card-body { padding: 8px 11px; }
  .kpi { padding: 8px 11px; }
  .kpi .value { font-size: 16px; }
  .glance-value { font-size: 16px; }
  table.tbl { font-size: 11.5px; }
  table.tbl th { padding: 4px 7px; font-size: 10.5px; }
  table.tbl td { padding: 4px 7px; font-size: 11.5px; line-height: 1.35; }
  table.tbl tfoot td { padding: 4px 7px; }
  .btn { min-height: 27px; padding: 4px 9px; }
  .btn-sm { min-height: 24px; padding: 2px 8px; }
  .modal { max-height: 94vh; }
  .modal-head { padding: 10px 12px; }
  .modal-body { max-height: 70vh; padding: 10px 12px; }
  .hint-bar { padding: 6px 10px; font-size: 12px; }
}
