/* ==========================================================
   云途 · 设计系统 v2
   白底、极简、大留白。蓝色只用在"要你动手"的地方。
   ========================================================== */
:root {
  --brand: #4D6BFE;
  --brand-hover: #3B57E8;
  --brand-2: #7B90FF;
  --brand-soft: #EEF1FF;
  --brand-soft-2: #F7F9FF;

  --bg: #FFFFFF;
  --bg-sub: #FAFBFC;
  --bg-side: #FAFBFD;
  --bg-hover: #F5F7FA;
  --bg-th: #FBFCFE;

  --text: #0F1419;
  --text-2: #4E5766;
  --text-3: #8A94A6;
  --text-4: #B8C0CC;

  --line: #EDF0F5;
  --line-2: #E4E8EF;

  --ok: #0E9F6E;
  --ok-soft: #E8F8F1;
  --warn: #D97706;
  --warn-soft: #FFF7E6;
  --danger: #E5484D;
  --danger-soft: #FDEEEE;
  --purple: #7C5CFC;
  --purple-soft: #F2EEFF;

  /* 工作台 W2 尺寸 token（设计稿 §2.2，一个都不许改） */
  --row-h: 56px;
  --head-h: 58px;
  --foot-h: 46px;

  --r-sm: 8px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 18px;

  --shadow-1: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-2: 0 4px 14px -2px rgba(16, 24, 40, .07), 0 2px 4px rgba(16, 24, 40, .03);
  --shadow-3: 0 16px 48px -8px rgba(16, 24, 40, .16), 0 4px 10px rgba(16, 24, 40, .05);

  --side-w: 216px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body, #app { height: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 13.5px; line-height: 1.6;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; padding: 0; }
input[type="number"]::-webkit-inner-spin-button { opacity: .35; }
::selection { background: #DDE4FF; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #DFE4EC; border-radius: 8px; border: 3px solid #fff; }
::-webkit-scrollbar-thumb:hover { background: #C9D1DE; }
::-webkit-scrollbar-track { background: transparent; }

/* ==================== 登录 ==================== */
.login-wrap {
  min-height: 100%; display: grid; place-items: center;
  background:
    radial-gradient(900px 420px at 50% -8%, #EEF2FF 0%, rgba(255,255,255,0) 62%),
    #fff;
}
.login-card {
  width: 372px; padding: 38px 34px 30px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-2);
}
.login-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.login-logo .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, #4D6BFE 0%, #8A9CFF 100%);
  display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 16px;
  box-shadow: 0 4px 12px rgba(77, 107, 254, .26);
}
.login-logo .t { font-size: 15.5px; font-weight: 600; letter-spacing: .1px; }
.login-logo .s { font-size: 12px; color: var(--text-3); margin-top: -2px; }
.login-title { font-size: 21px; font-weight: 600; letter-spacing: -.3px; margin: 0 0 5px; }
.login-desc { font-size: 13px; color: var(--text-3); margin-bottom: 24px; }

.field { margin-bottom: 13px; }
.field label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.input {
  width: 100%; height: 38px; padding: 0 11px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--text-4); }
.input:hover { border-color: #D3DAE5; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(77, 107, 254, .1); }
textarea.input { height: auto; padding: 9px 11px; line-height: 1.65; resize: vertical; }
select.input {
  appearance: none; padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238A94A6' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 33px; padding: 0 13px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: background .14s, border-color .14s, color .14s, box-shadow .14s, transform .06s;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(.5px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(77,107,254,.28); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-primary:disabled { background: #C2CCF7; cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: #fff; border-color: var(--line-2); color: var(--text-2); }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text); border-color: #D3DAE5; }
.btn-soft { background: var(--brand-soft); color: var(--brand); }
.btn-soft:hover { background: #E3E8FF; }
.btn-danger-soft { background: var(--danger-soft); color: var(--danger); }
.btn-danger-soft:hover { background: #FBDFDF; }
.btn-lg { height: 41px; padding: 0 18px; font-size: 13.5px; border-radius: var(--r); }
.btn-sm { height: 27px; padding: 0 9px; font-size: 12px; border-radius: 7px; }
.btn-xs { height: 23px; padding: 0 7px; font-size: 11.5px; border-radius: 6px; }
.btn-block { width: 100%; }
.btn-icon { width: 30px; padding: 0; }

/* ==================== 布局 ==================== */
.app { display: flex; height: 100%; overflow: hidden; }
.sidebar {
  width: var(--side-w); flex: 0 0 var(--side-w);
  background: var(--bg-side); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 14px 10px 10px;
}
.side-brand { display: flex; align-items: center; gap: 9px; padding: 4px 8px 16px; }
.side-brand .mark {
  width: 27px; height: 27px; border-radius: 8px; flex: 0 0 27px;
  background: linear-gradient(135deg, #4D6BFE 0%, #8A9CFF 100%);
  display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 13px;
  box-shadow: 0 3px 10px rgba(77, 107, 254, .24);
}
.side-brand .n { font-size: 13.5px; font-weight: 600; letter-spacing: .1px; line-height: 1.2; }
.side-brand .v { font-size: 10px; color: var(--text-4); letter-spacing: .6px; margin-top: 1px; }

.nav-group { margin-bottom: 4px; }
.nav-label { font-size: 10.5px; color: var(--text-4); padding: 12px 10px 5px; letter-spacing: .5px; font-weight: 500; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 9px;
  height: 34px; padding: 0 10px; margin-bottom: 1px;
  border-radius: 8px; color: var(--text-2); font-size: 13px;
  transition: background .13s, color .13s; cursor: pointer;
}
.nav-item:hover { background: #F0F3F8; color: var(--text); }
.nav-item.active { background: #fff; color: var(--brand); font-weight: 500; box-shadow: var(--shadow-1); }
.nav-item.active::before {
  content: ''; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 2.5px;
  background: var(--brand); border-radius: 0 3px 3px 0;
}
.nav-item .ic { width: 16px; height: 16px; opacity: .72; flex: 0 0 16px; display: grid; place-items: center; }
.nav-item.active .ic { opacity: 1; }
.nav-item .badge {
  margin-left: auto; font-size: 10.5px; color: var(--text-3); background: #EBEFF5;
  border-radius: 20px; padding: 1px 6px; font-weight: 500; font-variant-numeric: tabular-nums;
}
.nav-item.active .badge { background: var(--brand-soft); color: var(--brand); }
.nav-item .badge.hot { background: var(--danger-soft); color: var(--danger); }

.side-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.side-user { display: flex; align-items: center; gap: 8px; padding: 7px; border-radius: 8px; cursor: pointer; }
.side-user:hover { background: #F0F3F8; }
.avatar {
  width: 25px; height: 25px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-size: 11.5px; font-weight: 600; flex: 0 0 25px;
}
.side-user .nm { font-size: 12.5px; font-weight: 500; line-height: 1.25; }
.side-user .rl { font-size: 10.5px; color: var(--text-3); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); }
.topbar {
  height: 58px; flex: 0 0 58px; display: flex; align-items: center; gap: 12px;
  padding: 0 26px; border-bottom: 1px solid var(--line); background: #fff;
  position: relative; z-index: 20;
}
.topbar h1 { font-size: 16px; font-weight: 600; margin: 0; letter-spacing: -.2px; }
.topbar .sub { font-size: 12.5px; color: var(--text-3); margin-left: 10px; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.content { flex: 1; overflow: auto; }
.page { max-width: 1320px; margin: 0 auto; padding: 26px 26px 72px; }

/* ==================== 卡片 / 数字 ==================== */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.card-pad { padding: 18px 20px; }
.card-h { display: flex; align-items: center; gap: 9px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-h h3 { margin: 0; font-size: 13.5px; font-weight: 600; }
.card-h .more { margin-left: auto; font-size: 12.5px; color: var(--text-3); cursor: pointer; }
.card-h .more:hover { color: var(--brand); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat {
  padding: 16px 18px 14px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); transition: border-color .16s, box-shadow .16s, transform .16s;
  position: relative; overflow: hidden;
}
.stat:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.stat .k {
  font-size: 12px; color: var(--text-3); margin-bottom: 9px;
  display: flex; align-items: center; gap: 5px; font-weight: 500;
}
.stat .v {
  font-size: 26px; font-weight: 600; letter-spacing: -.8px; line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.stat .v small { font-size: 13px; font-weight: 500; color: var(--text-3); margin-left: 3px; letter-spacing: 0; }
.stat .d { font-size: 11.5px; color: var(--text-3); margin-top: 7px; display: flex; align-items: center; gap: 4px; }
.stat .up { color: var(--ok); } .stat .down { color: var(--danger); }
.stat.accent { background: linear-gradient(180deg, #FAFBFF 0%, #fff 55%); border-color: #E2E8FB; }
.stat.accent .v { color: var(--brand); }

.bar { height: 4px; background: #F1F3F8; border-radius: 4px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 4px; transition: width .3s; }

/* ==================== 表格 ==================== */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; table-layout: fixed; }
.tbl th {
  text-align: left; font-weight: 500; color: var(--text-3); font-size: 11.5px;
  padding: 9px 14px; background: var(--bg-th); white-space: nowrap;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2;
  letter-spacing: .2px;
}
.tbl th:first-child { border-top-left-radius: var(--r-lg); }
.tbl th:last-child { border-top-right-radius: var(--r-lg); }
.tbl td { padding: 12px 14px; border-bottom: 1px solid #F4F6FA; vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl tbody tr { transition: background .1s; cursor: pointer; }
.tbl tbody tr:hover { background: #FAFBFD; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .r { text-align: right; }
.tbl .name { font-weight: 500; }
.tbl .muted { color: var(--text-3); font-size: 12.5px; }
.tbl-flat th { background: transparent; }

/* 姓名 + 头像 */
.who { display: flex; align-items: center; gap: 9px; min-width: 0; }
.who .av {
  width: 28px; height: 28px; border-radius: 8px; flex: 0 0 28px;
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
  background: #F1F4F9; color: #5C6779;
}
.who .av.b1 { background: #EEF1FF; color: #4D6BFE; }
.who .av.b2 { background: #E9F7F1; color: #0E9F6E; }
.who .av.b3 { background: #FFF4E6; color: #C77700; }
.who .av.b4 { background: #F4EEFF; color: #7C5CFC; }
.who .tx { min-width: 0; }
.who .tx .n { font-weight: 500; font-size: 13px; line-height: 1.3; }
.who .tx .s { font-size: 11.5px; color: var(--text-3); line-height: 1.3; font-variant-numeric: tabular-nums; }

/* ==================== 标签 ==================== */
.pill {
  display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px;
  border-radius: 6px; font-size: 11.5px; font-weight: 500;
  background: #F2F4F8; color: var(--text-2); white-space: nowrap;
}
.pill-brand { background: var(--brand-soft); color: var(--brand); }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-danger { background: var(--danger-soft); color: var(--danger); }
.pill-purple { background: var(--purple-soft); color: var(--purple); }
.pill-line { background: #fff; border: 1px solid var(--line-2); color: var(--text-2); }
.pill-gray { background: #F2F4F8; color: var(--text-3); }
.dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; display: inline-block; flex: 0 0 5px; }

.level { display: inline-grid; place-items: center; width: 21px; height: 21px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.level-S { background: #FFF3DC; color: #A96A00; }
.level-A { background: #EAF2FF; color: #2C63C9; }
.level-B { background: #F0F2F7; color: #5B6270; }
.level-C { background: #F7F1EC; color: #8A6A4F; }

/* 阶段：色点 + 文字 */
.stage { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.stage i { width: 6px; height: 6px; border-radius: 50%; display: block; }
.stage.s-new i { background: #8A94A6; }
.stage.s-book i { background: var(--brand); }
.stage.s-trial i { background: var(--purple); }
.stage.s-deal i { background: var(--ok); }
.stage.s-lost i { background: #C9D1DE; }
.stage.s-new { color: var(--text-2); }
.stage.s-book { color: var(--brand); }
.stage.s-trial { color: var(--purple); }
.stage.s-deal { color: var(--ok); }
.stage.s-lost { color: var(--text-3); }

/* ==================== 匹配工作台 ==================== */
.match-grid { display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .match-grid { grid-template-columns: 1fr; } }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.panel-h { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.panel-h h3 { margin: 0; font-size: 13px; font-weight: 600; }
.panel-b { padding: 14px 16px; }

.stu-card {
  padding: 12px 13px; border: 1px solid var(--line); border-radius: var(--r);
  cursor: pointer; transition: all .14s; margin-bottom: 7px;
}
.stu-card:hover { border-color: #CBD6FA; background: #FCFDFF; }
.stu-card.active { border-color: var(--brand); background: var(--brand-soft-2); box-shadow: 0 0 0 3px rgba(77,107,254,.07); }
.stu-card .t { display: flex; align-items: center; gap: 7px; }
.stu-card .n { font-weight: 500; font-size: 13.5px; }
.stu-card .m { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }

.cond { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.cond .full { grid-column: 1 / -1; }

.cand {
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px;
  margin-bottom: 11px; background: #fff; transition: border-color .15s, box-shadow .15s;
  position: relative;
}
.cand:hover { border-color: #D5DCF5; box-shadow: var(--shadow-2); }
.cand.top { border-color: #C7D2FA; background: linear-gradient(180deg, #FBFCFF, #fff 38%); }
.cand-h { display: flex; align-items: flex-start; gap: 11px; }
.rank {
  width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  font-size: 12px; font-weight: 600; background: #F2F4F8; color: var(--text-3); flex: 0 0 24px;
}
.cand.top .rank { background: var(--brand); color: #fff; }
.cand .who2 { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.cand .nm { font-size: 15px; font-weight: 600; letter-spacing: -.1px; }
.cand .meta { font-size: 12px; color: var(--text-3); margin-top: 2px; display: flex; gap: 9px; flex-wrap: wrap; }
.cand .fit { margin-left: auto; text-align: right; flex: 0 0 auto; }
.cand .fit .big { font-size: 16px; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; }
.cand .fit .small { font-size: 10.5px; color: var(--text-3); }
.tagrow { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.tag {
  display: inline-flex; align-items: center; gap: 3px; height: 21px; padding: 0 7px;
  border-radius: 6px; font-size: 11.5px; background: #F5F7FA; color: var(--text-2);
}
.tag b { font-weight: 500; color: var(--text-3); font-size: 10.5px; margin-right: 1px; }
.tag.ok { background: var(--ok-soft); color: #0E8A44; }
.tag.no { background: var(--danger-soft); color: #C43A3A; }
.cand .why {
  margin-top: 10px; font-size: 12.5px; color: var(--text-2); line-height: 1.7;
  padding: 10px 12px; background: #FAFBFD; border-radius: 8px; border: 1px solid #F2F4F8;
}
.cand .warn {
  margin-top: 7px; font-size: 12px; color: #A66000; background: var(--warn-soft);
  padding: 7px 11px; border-radius: 7px; display: flex; gap: 6px;
}
.cand-f { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.cand-f .sp { margin-left: auto; display: flex; gap: 7px; }

/* 排课台候选老师卡：可点选，选中态必须一眼看得出来（原来点一个全亮，是 id 取错导致的） */
.cand-pick {
  position: relative; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; padding: 11px 12px; cursor: pointer;
  transition: border-color .12s, box-shadow .12s, background .12s;
}
.cand-pick:hover { border-color: #C3CEEC; background: #FCFDFF; }
.cand-pick.on {
  border-color: var(--brand); background: var(--brand-soft-2);
  box-shadow: 0 0 0 3px rgba(77, 107, 254, .13);
}
.cand-pick.on::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
  background: var(--brand); border-radius: 0 3px 3px 0;
}
.picked-inline {
  display: inline-flex; align-items: center; height: 17px; padding: 0 6px;
  border-radius: 5px; background: var(--brand); color: #fff;
  font-size: 10px; font-weight: 600; letter-spacing: .2px; flex: 0 0 auto;
}

/* ==================== 空态 / 骨架 ==================== */
.empty { text-align: center; padding: 52px 20px; color: var(--text-3); }
.empty .ico {
  width: 42px; height: 42px; border-radius: 12px; background: var(--bg-sub);
  display: grid; place-items: center; margin: 0 auto 13px; color: var(--text-4);
}
.empty h4 { margin: 0 0 5px; font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.empty p { margin: 0; font-size: 12.5px; }

.sk {
  background: linear-gradient(90deg, #F3F5F9 25%, #FAFBFD 50%, #F3F5F9 75%);
  background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: 6px;
}
@keyframes sk { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }

/* ==================== 抽屉 ==================== */
/* 注意：这里以前用了 backdrop-filter: blur()。
   桌面端页面长（线索池 200 行），一开弹窗浏览器要把整页重新模糊一遍，
   输入时每敲一个字都可能触发重绘 —— 这是"卡"的头号原因，已去掉，用纯色遮罩代替。 */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(15,20,25,.30);
  z-index: 40; animation: fade .12s ease;
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 640px; max-width: 94vw;
  background: #fff; z-index: 41; box-shadow: var(--shadow-3);
  display: flex; flex-direction: column;
  animation: slide .2s cubic-bezier(.22,.8,.3,1);
}
@keyframes slide { from { transform: translateX(20px); opacity: .7 } to { transform: none; opacity: 1 } }
.drawer-h {
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 9px; flex: 0 0 auto;
}
.drawer-h h2 { margin: 0; font-size: 16.5px; font-weight: 600; letter-spacing: -.2px; }
.drawer-b { flex: 1; overflow: auto; padding: 18px 20px 28px; }
.drawer-f { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex: 0 0 auto; }

.kv { display: grid; grid-template-columns: 84px 1fr; gap: 8px 12px; font-size: 12.5px; }
.kv .k { color: var(--text-3); }
.kv .v { color: var(--text); }

.sec-t {
  font-size: 11.5px; font-weight: 600; color: var(--text-3); letter-spacing: .3px;
  margin: 22px 0 10px; display: flex; align-items: center; gap: 8px;
}
.sec-t:first-child { margin-top: 0; }
.sec-t::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* 跟进时间轴 */
.tl { position: relative; padding-left: 20px; }
.tl::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1.5px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -18.5px; top: 5px; width: 8px; height: 8px;
  border-radius: 50%; background: #fff; border: 2px solid #D5DCE8;
}
.tl-item.k-phone::before { border-color: var(--brand); }
.tl-item.k-wechat::before { border-color: var(--ok); }
.tl-item.k-visit::before { border-color: var(--purple); }
.tl-item.k-sys::before { border-color: #D5DCE8; background: #F2F4F8; }
.tl-h { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; }
.tl-h .k { font-size: 12px; font-weight: 600; color: var(--text-2); }
.tl-h .t { font-size: 11.5px; color: var(--text-4); font-variant-numeric: tabular-nums; margin-left: auto; }
.tl-c { font-size: 12.5px; color: var(--text-2); line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.tl-r { margin-top: 4px; display: flex; gap: 5px; flex-wrap: wrap; }

/* 流水 */
.flow-row { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid #F4F6FA; font-size: 12.5px; }
.flow-row:last-child { border-bottom: none; }
.flow-row .dt { color: var(--text-3); font-size: 11.5px; width: 88px; flex: 0 0 88px; font-variant-numeric: tabular-nums; }
.flow-row .ct { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.flow-row .mn { font-weight: 600; font-variant-numeric: tabular-nums; }
.flow-row .mn.neg { color: var(--text); }
.flow-row .mn.pos { color: var(--ok); }

/* ==================== 工具条 ==================== */
.toolbar { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .search { position: relative; flex: 0 0 250px; }
.toolbar .search input { height: 33px; padding-left: 31px; font-size: 12.5px; }
.toolbar .search svg { position: absolute; left: 10px; top: 9px; color: var(--text-4); pointer-events: none; }
.toolbar .spacer { flex: 1; }

.seg { display: inline-flex; background: #F3F5F9; border-radius: 9px; padding: 2.5px; gap: 1px; }
.seg button {
  height: 26px; padding: 0 11px; border-radius: 7px; font-size: 12px;
  color: var(--text-2); transition: background .12s, color .12s; white-space: nowrap;
}
.seg button:hover { color: var(--text); }
.seg button.on { background: #fff; color: var(--text); font-weight: 500; box-shadow: var(--shadow-1); }
.seg button .c { font-size: 10.5px; color: var(--text-4); margin-left: 4px; font-variant-numeric: tabular-nums; }
.seg button.on .c { color: var(--brand); }

/* 漏斗条 */
.funnel { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.fstep {
  padding: 14px 16px; cursor: pointer; transition: background .14s; position: relative;
  border-right: 1px solid var(--line);
}
.fstep:last-child { border-right: none; }
.fstep:hover { background: #FBFCFE; }
.fstep.on { background: var(--brand-soft-2); }
.fstep.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brand); }
.fstep .l { font-size: 11.5px; color: var(--text-3); display: flex; align-items: center; gap: 5px; margin-bottom: 6px; }
.fstep .n { font-size: 21px; font-weight: 600; letter-spacing: -.5px; font-variant-numeric: tabular-nums; line-height: 1; }
.fstep .p { font-size: 10.5px; color: var(--text-4); margin-top: 4px; }

/* toast */
.toast-wrap { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 7px; }
.toast {
  padding: 9px 15px; border-radius: 9px; background: #12161C; color: #fff; font-size: 12.5px;
  box-shadow: var(--shadow-3); animation: tin .18s ease; display: flex; gap: 7px; align-items: center;
}
@keyframes tin { from { opacity: 0; transform: translateY(-7px) } to { opacity: 1 } }

/* ==================== 通用 ==================== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 980px) { .grid-2, .grid-3, .stats { grid-template-columns: 1fr 1fr; } }

.hint { font-size: 11.5px; color: var(--text-3); line-height: 1.7; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.mb8 { margin-bottom: 8px } .mb12 { margin-bottom: 12px } .mb16 { margin-bottom: 16px } .mb20 { margin-bottom: 20px }
.mt8 { margin-top: 8px } .mt12 { margin-top: 12px } .mt16 { margin-top: 16px }
.muted { color: var(--text-3); }
.f12 { font-size: 12px } .f13 { font-size: 13px } .f13h { font-size: 13.5px }
.bold { font-weight: 600 }
.row { display: flex; align-items: center; gap: 8px }
.wrap { flex-wrap: wrap }
.spacer { flex: 1 }

/* 表单弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15,20,25,.32);
  z-index: 50; animation: fade .12s ease;
}
.modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 520px; max-width: 94vw; max-height: 88vh; background: #fff;
  border-radius: var(--r-xl); z-index: 51; box-shadow: var(--shadow-3);
  display: flex; flex-direction: column; animation: pop .18s cubic-bezier(.22,.8,.3,1);
}
@keyframes pop { from { opacity: 0; transform: translate(-50%,-48%) scale(.985) } to { opacity: 1; transform: translate(-50%,-50%) scale(1) } }
.modal-h { padding: 17px 20px 13px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.modal-h h3 { margin: 0; font-size: 15.5px; font-weight: 600; }
.modal-b { padding: 18px 20px; overflow: auto; flex: 1; }
.modal-f { padding: 12px 20px 16px; display: flex; gap: 8px; justify-content: flex-end; border-top: 1px solid var(--line); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 12px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; font-size: 11.5px; color: var(--text-3); margin-bottom: 4px; font-weight: 500; }
.form-grid .input { height: 34px; font-size: 13px; }
.form-grid textarea.input { height: auto; }

.chip-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  height: 30px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line-2);
  font-size: 12.5px; color: var(--text-2); background: #fff; display: inline-flex; align-items: center; gap: 5px;
  transition: all .13s;
}
.chip:hover { border-color: #CBD6FA; color: var(--brand); }
.chip.on { background: var(--brand-soft); border-color: #C7D2FA; color: var(--brand); font-weight: 500; }

/* 列表行（线索表升级版） */
.lead-row { display: grid; grid-template-columns: 1fr 120px 110px 130px 100px; gap: 12px; align-items: center; }

/* ---------- 成交建档（试听单里那一步） ---------- */
.deal-box {
  border: 1px solid #E3E8F5; border-radius: var(--r-lg);
  background: linear-gradient(180deg, #FAFBFF, #fff 55%);
  padding: 14px; margin-top: 4px;
}
.quote-line {
  display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px;
  padding: 9px 11px; background: var(--brand-soft-2); border-radius: 9px;
  font-size: 12px; color: var(--text-2);
}
.quote-line b { color: var(--brand); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.reward-hint {
  margin-top: 11px; padding: 9px 11px; border-radius: 9px;
  background: var(--ok-soft); color: #0B7A55; font-size: 11.5px; line-height: 1.7;
}
.deal-ok {
  border: 1px solid #CDEBDD; border-radius: var(--r-lg);
  background: linear-gradient(180deg, #F4FCF8, #fff);
  padding: 14px;
}
.deal-ok b { color: #0B7A55; font-size: 13.5px; }

/* 财务：结算表的小字说明 */
.bonus-tag {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 1px 6px; border-radius: 5px; font-size: 10.5px;
  background: var(--ok-soft); color: #0B7A55;
}

/* 缺单价提示条 */
.no-rate-bar {
  display: flex; align-items: center; gap: 9px; margin-top: 13px;
  padding: 10px 12px; border-radius: 10px;
  background: var(--warn-soft); border: 1px solid #FBE2B7;
}

/* 复选框行 */
.chk { display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; color: var(--text-2); cursor: pointer; line-height: 1.6; }
.chk input { margin: 2px 0 0; accent-color: var(--brand); flex: none; }

/* ---------- 线索快速录入（粘贴即识别） ---------- */
.f11 { font-size: 11px } .f11.muted { color: var(--text-3) }
.paste-box {
  min-height: 86px; line-height: 1.7; font-size: 13px; resize: vertical;
  background: #FBFCFE; border-color: #DFE6F5;
}
.paste-box:focus { background: #fff }
.paste-hint {
  display: flex; align-items: center; gap: 6px; margin-top: 7px;
  font-size: 11.5px; color: var(--text-3);
}
.paste-hint svg { color: var(--brand); flex: none }
.raw-preview {
  margin-top: 12px; padding: 9px 11px; border-radius: 9px;
  background: #F7F9FC; border: 1px solid var(--line);
  max-height: 84px; overflow: auto;
}
.raw-preview .f12 { color: var(--text-2); margin-top: 3px }
.err-line {
  margin-top: 10px; padding: 8px 11px; border-radius: 8px;
  background: var(--danger-soft, #FEF2F2); color: var(--danger);
  font-size: 12px; display: flex; align-items: center; flex-wrap: wrap;
}
/* 新建完成后，列表里那一行闪一下，让人一眼找到 */
.row-flash > td { background: #EEF3FF !important; }
.row-flash > td:first-child { box-shadow: inset 3px 0 0 var(--brand); }

/* 侧边栏版本号：一眼确认自己用的是哪一版，避免"改了没生效"的误会 */
.ver { margin-top: 9px; text-align: center; font-size: 10px; color: #C2CAD8; letter-spacing: .4px; }

/* 抽屉主体独立绘制，输入时不牵连整页 */
.drawer-b { contain: layout paint; }
.drawer { will-change: transform; }

/* ---------- 渠道 ROI ---------- */
.roi-tag {
  display: inline-flex; align-items: center; padding: 1.5px 7px; border-radius: 6px;
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.roi-tag.good { background: var(--ok-soft); color: #0B7A55; }
.roi-tag.mid { background: var(--brand-soft-2); color: var(--brand); }
.roi-tag.bad { background: #FEF2F2; color: var(--danger); }
.row-off > td { opacity: .55; }

/* 标记无效线索的那条工具条 */
.inv-bar {
  margin: 0 18px 12px; padding: 12px 13px;
  border-radius: 10px; background: #FBFCFE; border: 1px solid #E3E8F5;
}

/* ---------- 字母制阶段 ----------
   色值来自服务端 stages.js（C 卷 C1.1）。X/W 都是灰系，只能靠一点明度差区分；
   N 必须一眼看出是删除态，所以只有它加删除线。 */
.stage.s-X i { background: #B8C0CC } .stage.s-X { color: var(--text-3) }
.stage.s-W i { background: #8A94A6 } .stage.s-W { color: var(--text-2) }
.stage.s-N i { background: #B8C0CC } .stage.s-N { color: var(--text-4); text-decoration: line-through }
.stage.s-F i { background: #5B7CFA } .stage.s-F { color: #4A63D8 }
.stage.s-E i { background: #7C5CFC } .stage.s-E { color: #6A4BE0 }
.stage.s-E1 i { background: #9B6BF2 } .stage.s-E1 { color: #8557D8 }
.stage.s-D i { background: #6B4FD8 } .stage.s-D { color: #5A3FC4 }
.stage.s-C i { background: #E0A03A } .stage.s-C { color: #D9902C }
.stage.s-B i { background: #EA8C3C } .stage.s-B { color: #D97C28 }
.stage.s-A i { background: #F2655A } .stage.s-A { color: #E14E42 }
.stage.s-V i { background: #17A673 } .stage.s-V { color: #0B7A55 }
.stage.s-T i { background: #C9D1DE } .stage.s-T { color: var(--text-3) }

/* 状态 pill（详情页/时间轴用），与 .stage 同一套色 */
.pill.s-X { color: #8A94A6; background: #F5F7FA; }
.pill.s-W { color: #6E7A8C; background: #F5F7FA; }
.pill.s-N { color: #B8C0CC; background: transparent; text-decoration: line-through; }

/* 列表头像改成阶段字母 */
.av.st { font-weight: 700; font-size: 12.5px; letter-spacing: .3px; border-radius: 9px; }
.av.st.two { font-size: 9.5px; letter-spacing: 0; }

/* 漏斗 11 格（X/W/F/E/E1/D/C/B/A/V/T；N 不进漏斗） */
.funnel { grid-template-columns: repeat(11, minmax(0, 1fr)) !important; }
.funnel .fstep { padding: 11px 8px; }
.funnel .fstep .l { font-size: 11px; display: flex; align-items: center; gap: 3px; white-space: nowrap; overflow: hidden; }
.funnel .fstep .n { font-size: 18px; }
.funnel .fstep .sk {
  font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums;
  padding: 0 3px; border-radius: 4px; background: #F4F6FA;
}
.funnel .fstep .n { font-size: 19px; margin-top: 4px; }
.funnel .fstep .p { font-size: 10.5px; }

/* ---------- 发问卷 / 二维码 ---------- */
/* 跟进表单里选到 E 时冒出来的快捷条 */
.e-send {
  margin-top: 8px; padding: 9px 11px; border-radius: 9px;
  background: #F2F5FE; border: 1px solid #DDE5FA;
  display: flex; align-items: center; gap: 10px;
}
.e-send > div { flex: 1; min-width: 0; }
.e-send .btn { flex: none; white-space: nowrap; }

.qr-panel {
  display: flex; gap: 16px; margin: 0 18px 12px; padding: 14px;
  border: 1px solid #DDE5FA; border-radius: 12px;
  background: linear-gradient(180deg, #FAFBFF, #fff 60%);
}
.qr-left { flex: none; }
.qr-img {
  width: 132px; height: 132px; border-radius: 10px; background: #fff;
  border: 1px solid var(--line); display: block;
}
.qr-no {
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--text-3); text-align: center; line-height: 1.5;
}
.qr-right { flex: 1; min-width: 0; }
.qr-url {
  margin-top: 9px; padding: 8px 10px; border-radius: 8px;
  background: #F4F6FB; border: 1px dashed #D6DEF2;
  font-size: 11.5px; color: var(--brand); word-break: break-all;
  cursor: pointer; line-height: 1.6;
}
.qr-url:hover { background: #EDF1FC; }
.qr-warn {
  margin-top: 9px; padding: 8px 10px; border-radius: 8px;
  background: var(--warn-soft); color: #A66000; font-size: 11.5px; line-height: 1.7;
}

/* ---------- 风控中心 / AI 工具（全业务统一化 Phase 2/3 新增） ---------- */
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tab {
  padding: 8px 16px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; color: var(--text-2); font-size: 13px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
}
.tab:hover { border-color: #CBD6FA; color: var(--brand); }
.tab.active { background: var(--brand-soft); border-color: #C7D2FA; color: var(--brand); font-weight: 600; }
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--danger-soft); color: var(--danger); font-size: 11px; font-weight: 700;
}
.seg-item {
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--text-2); font-size: 12.5px; cursor: pointer; margin-right: 8px;
}
.seg-item.active { background: var(--brand-soft); border-color: #C7D2FA; color: var(--brand); font-weight: 600; }
.textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 13px; font-family: inherit; line-height: 1.7; resize: vertical;
  color: var(--text); background: #fff;
}
.textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(77,107,254,.1); }
.text-box {
  padding: 14px 16px; border: 1px solid #DDE5FA; border-radius: 10px;
  background: linear-gradient(180deg,#FAFBFF,#fff 60%); line-height: 1.8;
}
.note-warn {
  margin-bottom: 14px; padding: 10px 14px; border-radius: 9px;
  background: var(--warn-soft); border: 1px solid #FBE2B7; color: #A66000; font-size: 12.5px; line-height: 1.7;
}
.anomaly-row {
  display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.anomaly-row:last-child { border-bottom: none; }
.anomaly-body { flex: 1; min-width: 0; }
.sev {
  flex: none; min-width: 36px; padding: 2px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 700; text-align: center; margin-top: 1px;
}
.sev-hi { background: var(--danger-soft); color: var(--danger); }
.sev-mid { background: var(--warn-soft); color: var(--warn); }
.sev-lo { background: #EDF7F2; color: var(--ok); }
.ai-advice {
  margin-top: 8px; padding: 8px 11px; border-radius: 8px;
  background: var(--brand-soft-2); border: 1px solid #E3E9FB; color: var(--text-2); font-size: 12px;
  display: flex; align-items: flex-start; gap: 6px; line-height: 1.6;
}
.ai-advice svg { flex: none; margin-top: 2px; color: var(--brand); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.table th { color: var(--text-3); font-weight: 500; font-size: 12px; background: #F7F9FC; }

/* ---------- AI 成长（持续学习） ---------- */
.growth-reflect {
  padding: 13px 15px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, #FBFCFF 0%, #fff 60%);
  border: 1px solid #E4E9F7;
}
.learn-rank { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.learn-col {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 11px 13px 12px;
}
.learn-col-h {
  font-size: 11.5px; font-weight: 600; letter-spacing: .3px;
  margin-bottom: 8px; text-transform: none;
}
.learn-row {
  display: flex; align-items: baseline; gap: 4px;
  padding: 5px 0; border-top: 1px dashed var(--line);
}
.learn-row:first-of-type { border-top: none; }
.learn-cases { display: flex; flex-direction: column; gap: 2px; }
.learn-case {
  display: flex; align-items: center; padding: 7px 10px; border-radius: 8px;
  background: #fff; border: 1px solid var(--line);
}
/* 候选卡上的学习信号：与硬条件标签区分开，避免被当成扣分警告 */
.learn-line {
  margin-top: 6px; font-size: 11px; line-height: 1.5;
  color: var(--text-2); background: #F5F7FE; border-radius: 6px;
  padding: 4px 7px; display: flex; gap: 5px; align-items: flex-start;
}
.learn-line.neg { background: #FDF3F2; color: #A33; }
.learn-line .adj { font-weight: 700; flex: none; }
@media (max-width: 900px) { .learn-rank { grid-template-columns: 1fr; } }

/* ---------- 漏斗：已删除（N）可折叠 ---------- */
/* 默认 11 格（业务链 + 沉淀）；展开 N 时变 12 格，不能让最后一格掉到第二行 */
.funnel.expanded { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }
.funnel .fstep-n { background: #FCFCFD; }
.funnel .fstep-n .n { color: var(--text-4); }
.funnel-fold {
  display: flex; align-items: center; gap: 8px; margin: -8px 0 16px;
}

/* ---------- 排课台：三条推荐区（同学科全量 / 综合 Top10 / 省份） ---------- */
.rec-tabs {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 4px 0 8px; margin-bottom: 6px; border-bottom: 1px solid var(--line);
}
.rec-tab {
  font-family: inherit; font-size: 12.5px; line-height: 1; padding: 7px 11px; cursor: pointer;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text-2);
  transition: all .12s;
}
.rec-tab:hover { border-color: #C9D3F0; color: var(--text-1); }
.rec-tab.on { background: var(--brand-soft-2); border-color: #C3CFFB; color: var(--brand); font-weight: 600; }
.rec-tab .c {
  font-size: 10.5px; margin-left: 5px; padding: 1px 5px; border-radius: 999px;
  background: #F1F3F8; color: var(--text-3); font-variant-numeric: tabular-nums;
}
.rec-tab.on .c { background: #fff; color: var(--brand); }

/* ---------- 试听单：试课反馈（只读） ---------- */
.fb-box {
  background: #FAFBFD; border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px;
}
.fb-text { font-size: 12.5px; line-height: 1.9; white-space: pre-wrap; color: var(--text-1); }
.fb-meta { font-size: 11px; color: var(--text-3); margin-top: 8px; padding-top: 7px; border-top: 1px dashed var(--line); }
.fb-empty {
  font-size: 12.5px; line-height: 1.8; color: var(--text-3);
  background: #FFFBF3; border: 1px dashed #F0DFC0; border-radius: 9px; padding: 11px 13px;
}

/* ---------- 排课台：距上课倒计时（M-07） ----------
   只有三个档位：ok 常规 / soon 24 小时内标红 / over 已过点转灰。
   文本由 app.js 的 Countdown 心跳直接写进节点，这里只管长相。 */
.cd { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--text-2); }
.cd.cd-soon { color: var(--danger); font-weight: 700; }
.cd.cd-over { color: var(--text-3); font-weight: 400; }

/* ---------- 工作台 W1：按角色重做的首屏 ----------
   只加长相，不算逻辑。数字/文案一律来自 /api/workbench。 */
.wb-hero { border: 1px solid var(--brand-soft); box-shadow: 0 1px 0 rgba(77,107,254,.04), 0 8px 24px -18px rgba(77,107,254,.45); }
.wb-hero .card-h { background: linear-gradient(180deg, var(--brand-soft-2), #fff); }

.wb-item { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.wb-item:last-child { border-bottom: 0; }
.wb-item:hover { background: var(--bg-hover); }
.wb-main { flex: 1; min-width: 0; }
.wb-main .f12 { margin-top: 2px; }

.wb-empty { text-align: center; color: var(--text-3); font-size: 13px; padding: 22px 10px; }
.wb-empty-sm { color: var(--text-4); font-size: 12px; padding: 10px 0; }

.wb-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.wb-kpi .k { font-size: 12px; color: var(--text-3); }
.wb-kpi .v { font-size: 22px; font-weight: 700; letter-spacing: -.4px; margin-top: 2px; }
.wb-kpi .v small { font-size: 12px; font-weight: 500; color: var(--text-3); margin-left: 3px; }
.up { color: var(--ok); } .down { color: var(--danger); }

/* 老师提醒三块 */
.wb-health { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.wb-health-col { background: var(--bg-sub); border: 1px solid var(--line); border-radius: 10px; padding: 12px 12px 6px; }
.wb-health-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.wb-health-h b { margin-left: auto; font-size: 15px; }
.wb-health-row { padding: 7px 0; border-top: 1px dashed var(--line-2); cursor: pointer; }
.wb-health-row:hover .f13 { color: var(--brand); }
.wb-health-row .f12 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 异常区 */
.wb-anom { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.wb-anom:last-child { border-bottom: 0; }
.wb-check { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.wb-check .dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; }
.wb-check .dot.ok { background: var(--ok); }
.wb-check .dot.bad { background: var(--danger); }

/* 四区小入口 */
.wb-entries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.wb-entry { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; cursor: pointer; transition: .15s; }
.wb-entry:hover { border-color: var(--brand-2); box-shadow: 0 6px 18px -14px rgba(77,107,254,.8); }
.wb-entry .f12 { line-height: 1.5; }

/* ==========================================================
   工作台 W2 · 视觉重做（2026-11-26）
   作用域 .wb-scope —— 只影响工作台首屏，其余页面一个类都不碰。
   尺寸 / 配色 / 圆角全部照抄设计稿 token，没有自创值。
   ========================================================== */
.wb-scope {
  /* 设计稿 §2.3 六组主色（成对：主色 + 浅底） */
  --c-brand: #2E5BFF;  --c-brand-bg: #EEF3FF;
  --c-red: #E23B3B;    --c-red-bg: #FCECEC;
  --c-cyan: #0B84D8;   --c-cyan-bg: #E9F5FD;
  --c-amber: #D97706;  --c-amber-bg: #FDF3E3;
  --c-violet: #6D5CE7; --c-violet-bg: #F1EEFD;
  --c-slate: #5C6B7A;  --c-slate-bg: #EEF1F5;
  --ink: #1B2530; --ink-2: #5C6B7A; --ink-3: #93A1B0; --wline: #E8EDF2;
}
.wb-scope .tone-brand  { --tone: var(--c-brand);  --tone-bg: var(--c-brand-bg); }
.wb-scope .tone-red    { --tone: var(--c-red);    --tone-bg: var(--c-red-bg); }
.wb-scope .tone-cyan   { --tone: var(--c-cyan);   --tone-bg: var(--c-cyan-bg); }
.wb-scope .tone-amber  { --tone: var(--c-amber);  --tone-bg: var(--c-amber-bg); }
.wb-scope .tone-violet { --tone: var(--c-violet); --tone-bg: var(--c-violet-bg); }
.wb-scope .tone-slate  { --tone: var(--c-slate);  --tone-bg: var(--c-slate-bg); }
/* W2c 第 6 块「久未联系」：主色 ink-2，浅底用中性 hover 灰，跟 slate 略作区分 */
.wb-scope .tone-ink2   { --tone: var(--ink-2);    --tone-bg: var(--bg-hover); }

/* ---------- 顶部通栏 ---------- */
.wb-scope .perf-bar {
  display: flex; align-items: center; gap: 26px; margin-bottom: 18px;
  background: #fff; border: 1px solid var(--wline); border-radius: var(--r-lg);
  padding: 14px 22px; box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.wb-scope .pf-lead { display: flex; flex-direction: column; gap: 3px; padding-right: 24px; border-right: 1px solid var(--wline); flex: 0 0 auto; }
.wb-scope .pf-t { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -.2px; }
.wb-scope .pf-s { font-size: 12px; color: var(--ink-3); }
.wb-scope .pf-item { flex: 1; min-width: 0; }
.wb-scope .pf-k { font-size: 12px; color: var(--ink-3); margin-bottom: 3px; white-space: nowrap; }
.wb-scope .pf-v {
  font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -.5px;
  font-variant-numeric: tabular-nums; line-height: 1.15; white-space: nowrap;
}
.wb-scope .pf-v small { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-left: 3px; letter-spacing: 0; }
.wb-scope .pf-v.is-danger { color: var(--c-red); }
.wb-scope .pf-v.is-ok { color: var(--ok); }
.wb-scope .pf-sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.wb-scope .pf-sub .up { color: var(--ok); font-weight: 600; }
.wb-scope .pf-sub .down { color: var(--c-red); font-weight: 600; }
.wb-scope .pf-go { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--c-brand); cursor: pointer; white-space: nowrap; flex: 0 0 auto; }
.wb-scope .pf-go:hover { text-decoration: underline; }

/* ---------- 栅格：3 列 × 2 行，六块等大（W2c） ---------- */
.wb-scope .board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.wb-scope .board > .card {
  grid-column: auto;
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--wline); border-radius: var(--r-lg);
  /* 每块都是：卡头 58 + 卡体 4×56 + 卡脚 46 = 328 */
  height: calc(var(--head-h) + var(--row-h) * 4 + var(--foot-h));
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
}

/* ---------- 卡头 ---------- */
.wb-scope .c-head {
  height: var(--head-h); flex: 0 0 auto; display: flex; align-items: center; gap: 9px;
  padding: 0 16px; border-bottom: 1px solid var(--wline);
}
.wb-scope .c-ico {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--tone-bg); color: var(--tone); flex: 0 0 auto;
}
.wb-scope .c-title { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -.2px; white-space: nowrap; flex: 0 0 auto; }
/* 卡头副标题（「已排除 220 条无效」），窄卡放不下就省略 */
.wb-scope .c-sub {
  font-size: 12px; color: var(--ink-3); min-width: 0; flex: 0 1 auto;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wb-scope .c-num {
  font-size: 12px; font-weight: 600; color: var(--tone); background: var(--tone-bg);
  border-radius: 20px; padding: 2px 9px; font-variant-numeric: tabular-nums; white-space: nowrap; flex: 0 0 auto;
}
.wb-scope .c-gap { flex: 1; }
.wb-scope .c-zoom {
  width: 26px; height: 26px; border: 0; border-radius: 7px; background: transparent;
  color: var(--ink-3); cursor: pointer; display: grid; place-items: center; flex: 0 0 auto;
}
.wb-scope .c-zoom:hover { background: var(--bg-hover); color: var(--tone); }

/* ---------- 卡体 ---------- */
.wb-scope .c-body { height: calc(var(--row-h) * 4); flex: 0 0 auto; overflow-y: auto; overflow-x: hidden; }
.wb-scope .c-body.is-empty { display: grid; place-items: center; }
/* 不足 4 行：剩余高度用一条灰字空态条填满，六块视觉才齐（设计稿 §2.2） */
.wb-scope .c-body.is-short { display: flex; flex-direction: column; }
.wb-scope .c-fill { flex: 1 1 auto; display: grid; place-items: center; color: var(--ink-3); font-size: 12px; opacity: .65; }
.wb-scope .c-empty { text-align: center; color: var(--ink-3); font-size: 13px; line-height: 1.75; padding: 0 28px; }
.wb-scope .c-empty b { color: var(--ink-2); font-weight: 600; }

/* ---------- 行 ---------- */
.wb-scope .c-row {
  height: var(--row-h); display: flex; align-items: center; gap: 12px; padding: 0 16px;
  border-bottom: 1px solid var(--wline); cursor: pointer; transition: background .12s;
}
.wb-scope .c-row:last-child { border-bottom: 0; }
.wb-scope .c-row:hover { background: var(--bg-hover); }
.wb-scope .c-main { flex: 1; min-width: 0; }
.wb-scope .c-t1 {
  font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 6px;
}
.wb-scope .c-t2 { font-size: 12px; color: var(--ink-3); line-height: 1.35; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-scope .c-right { font-size: 17px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; flex: 0 0 auto; }
.wb-scope .c-right.is-danger { color: var(--c-red); }
.wb-scope .c-right.is-ok { color: var(--ok); }
.wb-scope .c-right.is-mute { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.wb-scope .c-tag {
  font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px;
  background: var(--tone-bg); color: var(--tone); white-space: nowrap; flex: 0 0 auto;
}
.wb-scope .c-tag.is-danger { background: var(--c-red-bg); color: var(--c-red); }
.wb-scope .c-tag.is-warn { background: var(--c-amber-bg); color: var(--c-amber); }
.wb-scope .c-tag.is-ok { background: var(--ok-soft); color: var(--ok); }
.wb-scope .c-tag.is-mute { background: var(--c-slate-bg); color: var(--c-slate); font-size: 11px; font-weight: 500; }
/* W11 §6：「已排课」紫标（跟试听单的紫色一致，销售一眼分得清这是排课来的提醒） */
.wb-scope .c-tag.is-violet { background: #F1ECFF; color: #6D45D9; }
/* 待安排跟进：≥30 天在红底上再加重字重（W2d §2） */
.wb-scope .c-tag.is-strong { font-weight: 800; }

/* ---------- 卡脚 ---------- */
.wb-scope .c-foot {
  height: var(--foot-h); flex: 0 0 auto; display: grid; place-items: center;
  border-top: 1px solid var(--wline); background: var(--bg-sub);
  font-size: 13px; font-weight: 600; color: var(--c-brand); cursor: pointer;
}
.wb-scope .c-foot:hover { background: var(--c-brand-bg); }

/* ---------- 放大弹窗（max-width 720 / max-height 82vh） ----------
   B-2 真 bug 两处根因，都在这里：
   ① .wm-box 写的是 background:var(--card)，而 --card 从来没定义过 → 整个背景声明失效 → 面板全透明；
   ② .wm-mask 用 opacity 做入场动画，面板是它的子元素，动画 120ms 内面板跟着半透明。
   修法：面板写死 #fff；遮罩只动 background-color，不碰 opacity（面板亮度全程恒定）。 */
.wb-scope .wm-mask {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px;
  background: rgba(16,24,35,.45); animation: maskin .12s ease;
}
@keyframes maskin {
  from { background-color: rgba(16,24,35,0) }
  to   { background-color: rgba(16,24,35,.45) }
}
.wb-scope .wm-box {
  width: 100%; max-width: 720px; max-height: 82vh; display: flex; flex-direction: column;
  background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 64px -12px rgba(16,24,40,.3);
}
.wb-scope .wm-h { height: 58px; flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid var(--wline); }
.wb-scope .wm-b { flex: 1; overflow: auto; }
.wb-scope .wm-b .c-row { height: auto; padding: 14px 22px; }
.wb-scope .wm-b .c-row:hover { background: var(--bg-hover); }
.wb-scope .wm-x { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); cursor: pointer; display: grid; place-items: center; }
.wb-scope .wm-x:hover { background: var(--bg-hover); color: var(--ink); }

/* ---------- 老师小抽屉（排课台三块用） ---------- */
.wb-scope .tw-mask { position: fixed; inset: 0; z-index: 110; background: rgba(16,24,40,.34); }
.wb-scope .tw-box {
  position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 92vw; z-index: 111;
  background: #fff; box-shadow: -18px 0 48px -18px rgba(16,24,40,.22);
  display: flex; flex-direction: column;
}
.wb-scope .tw-h { height: 58px; flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid var(--wline); }
.wb-scope .tw-b { flex: 1; overflow: auto; padding: 16px 18px 28px; }
.wb-scope .tw-kv { display: grid; grid-template-columns: 76px 1fr; gap: 8px 10px; font-size: 13px; }
.wb-scope .tw-kv .k { color: var(--ink-3); }
.wb-scope .tw-kv .v { color: var(--ink); }
.wb-scope .tw-sec { font-size: 12px; font-weight: 700; color: var(--ink-2); margin: 18px 0 8px; letter-spacing: .3px; }

/* ---------- 响应式（设计稿 §2.1，作用域限定） ---------- */
@media (max-width: 1080px) {
  .wb-scope .board { grid-template-columns: repeat(2, 1fr); }
  .wb-scope .perf-bar { gap: 16px; }
  .wb-scope .pf-lead { padding-right: 16px; }
}
@media (max-width: 760px) {
  .wb-scope .board { grid-template-columns: 1fr; }
  .wb-scope .perf-bar { flex-direction: column; align-items: stretch; gap: 12px; }
  .wb-scope .pf-lead { padding-right: 0; border-right: 0; padding-bottom: 10px; border-bottom: 1px solid var(--wline); }
  .wb-scope .pf-go { margin-left: 0; }
}

/* ---------- W14 2-3 / 2-5：复制小图标 + 建议标签 ---------- */
.cp{
  display:inline-flex;align-items:center;justify-content:center;
  width:18px;height:18px;margin-left:4px;padding:0;border:0;border-radius:5px;
  background:transparent;color:var(--text-3);cursor:pointer;vertical-align:-3px;flex:none;
}
.cp:hover{background:#EEF1FF;color:var(--brand)}
.cp:active{transform:scale(.92)}
/* 建议标签：等宽数字，行内不换行，长了下省略 */
.tagl{
  display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:11px;color:var(--text-3);letter-spacing:.2px;
  font-variant-numeric:tabular-nums;
}
.tag-chip{
  display:inline-flex;align-items:center;gap:6px;max-width:100%;
  background:#F5F7FC;border:1px solid #E6EAF2;border-radius:7px;
  padding:3px 8px;font-size:12px;color:var(--text-2);
  font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.tag-chip b{color:var(--text);font-weight:600}
/* 反馈链接（W14 3-2）：生成后贴在抽屉底部，先复制再说话 */
.fb-link-bar{
  display:flex;align-items:center;gap:10px;margin:0 18px 10px;padding:10px 12px;
  background:#EAF7EF;border:1px solid #BFE6CF;border-radius:10px;
}
.fb-gen{
  margin-top:12px;padding:10px 11px;background:#F7F9FF;
  border:1px solid #E2E8FA;border-radius:9px;
}
/* D 状态三个出口（W16 N-11 / N-17）：抽屉底部上面单独一排 */
.d-acts{
  display:flex;gap:7px;flex-wrap:wrap;align-items:center;justify-content:flex-end;
  margin:0 18px 10px;padding-top:10px;border-top:1px dashed var(--line);
}
.d-acts-t{margin-right:auto}
.d-acts .d-act{font-size:12px;height:30px;padding:0 11px}
.d-acts .d-act.on{border-color:#C7D3FF;background:var(--brand-soft);color:var(--brand);font-weight:600}
/* 原因输入条：和 .inv-bar 一个样子，避免抽屉里出现第三种"确认框"长得不一样 */
.d-bar{
  margin:0 18px 10px;padding:12px 13px;
  border-radius:10px;background:#FBFCFE;border:1px solid #E3E8F5;
}
/* 改期撞课：黄底，和「普通确认」一眼区分开 */
.d-clash{background:#FFF9EC;border-color:#F1DEB4}
/* 试听记录里的改时间按钮：跟着文字走，不做成独立按钮（那行本来就窄） */
.tri-edit{
  display:inline-flex;align-items:center;justify-content:center;margin-left:6px;
  width:18px;height:18px;border-radius:5px;border:1px solid var(--line);
  background:#fff;color:var(--text-3);cursor:pointer;vertical-align:-3px;
}
.tri-edit:hover{border-color:#C7D3FF;color:var(--brand);background:var(--brand-soft)}

/* ==================== 线索池 v2（W15 B-1） ====================
   目标：一屏 10~15 行、表头吸顶、40px 行高。
   做法是给表格一个自己的滚动容器 —— 页面滚动时 sticky 表头会被
   .card{overflow:hidden} 吃掉，只有容器内滚动才立得住。 */
.lead-tbl-scroll{
  max-height:calc(100vh - 330px);min-height:440px;overflow:auto;
  overscroll-behavior:contain;
}
.tbl.dense{font-size:12.5px}
.tbl.dense th{
  height:33px;padding:0 10px;font-size:11px;letter-spacing:.3px;
  background:var(--bg-th);border-bottom:1px solid var(--line-2);
}
.tbl.dense td{
  height:39px;padding:0 10px;border-bottom:0;
  box-shadow:inset 0 -1px 0 #F2F4F8;
  vertical-align:middle;line-height:39px;font-size:12.5px;
}
.tbl.dense tbody tr{height:40px}
.tbl.dense tbody tr:hover{background:#F8FAFF}
.tbl.dense tbody tr.row-flash{background:#F0F5FF}
.tbl.dense tbody tr.row-off td{color:#8A94A6}
.tbl.dense .pill{line-height:1.5}

/* 列宽拖拽：贴在表头右边缘的那条细线 */
.th-res{
  position:absolute;right:0;top:0;bottom:0;width:7px;cursor:col-resize;
  border-right:1px solid transparent;
}
.th-res:hover{border-right-color:#B9C6F5;background:linear-gradient(90deg,transparent,#EEF2FF)}
body.col-resizing{cursor:col-resize;user-select:none}
body.col-resizing *{cursor:col-resize!important}

/* 阶段胶囊点一下能改状态 */
.stage-btn{
  border:0;background:transparent;padding:2px 4px;border-radius:6px;
  cursor:pointer;font:inherit;line-height:1.4;
}
.stage-btn:hover{background:#F1F4FB}
.mini-mute{font-size:10.5px;color:#8A94A6;margin-left:4px}
.mini-warn{font-size:10.5px;color:var(--warn);margin-left:4px}
.ellip{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}
.cp-t{cursor:copy}
.cp-t:hover{color:var(--brand)}

/* 改阶段浮层 */
.stage-menu{
  position:fixed;z-index:1200;min-width:186px;background:#fff;
  border:1px solid var(--line);border-radius:10px;padding:5px;
  box-shadow:0 14px 34px rgba(20,30,50,.16);
}
.stage-menu button{
  display:flex;width:100%;align-items:center;gap:8px;border:0;background:transparent;
  padding:7px 9px;border-radius:7px;cursor:pointer;text-align:left;font:inherit;
}
.stage-menu button:hover{background:#F5F7FF}

/* 列设置面板 */
.col-wrap{position:relative}
.col-wrap .btn.on{background:#EEF2FF;border-color:#C7D3FF;color:var(--brand)}
.col-pop{
  /* W16 N-14：列名变长（「科目 + 年级」）且多了「默认隐藏」尾标，214px 会把尾标挤到框外 */
  position:absolute;right:0;top:38px;z-index:60;width:246px;background:#fff;
  border:1px solid var(--line);border-radius:12px;padding:8px;
  box-shadow:0 16px 38px rgba(20,30,50,.16);
}
.col-pop label{
  display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:7px;
  font-size:12.5px;cursor:pointer;color:var(--text-2);
}
.col-pop label > span:first-of-type{flex:1;min-width:0}
.col-pop label > .f11{flex:none;white-space:nowrap}
.col-pop label:hover{background:#F6F8FC}
.col-pop input[type=checkbox]{accent-color:var(--brand);width:13px;height:13px}

/* 入库日期筛选 */
.day-filter{position:relative;display:inline-flex;align-items:center}
.day-btn{
  display:inline-flex;align-items:center;gap:5px;height:33px;padding:0 10px;
  border:1px solid var(--line-2);border-radius:var(--r);background:#fff;
  font-size:12.5px;color:var(--text-3);cursor:pointer;font-family:inherit;
  font-variant-numeric:tabular-nums;white-space:nowrap;
}
.day-btn:hover{border-color:#C7D3FF;color:var(--brand);background:#F9FBFF}
.day-filter.on .day-btn{padding-right:24px;border-color:#C7D3FF;background:#F7F9FF;color:var(--brand);font-weight:500}
.day-x{
  position:absolute;right:5px;width:17px;height:17px;border:0;border-radius:50%;
  background:#E4E9F5;color:#5A6376;display:grid;place-items:center;cursor:pointer;padding:0;
}
.day-x:hover{background:#D6DEF1;color:var(--text)}

/* 抽屉里的反馈单（W15 B-4） */
.fb-acts{display:flex;align-items:center;gap:6px;margin-right:auto}
.drawer-f{flex-wrap:wrap}
.fb-view{
  border-top:1px solid var(--line);background:#FBFCFE;
  display:flex;flex-direction:column;max-height:46vh;flex:0 0 auto;
}
.fb-view-h{display:flex;align-items:center;gap:10px;padding:9px 18px;border-bottom:1px solid var(--line)}
.fb-view-b{
  padding:14px 18px;overflow:auto;white-space:pre-wrap;
  font-size:12.5px;line-height:1.85;color:var(--text-2);
}
.stage-menu button:disabled:hover{background:transparent}

/* ===== W18 老师档案明细（抽屉内表单） ===== */
.tf{display:flex;flex-direction:column;gap:4px;min-width:0}
.tf>span{font-size:11.5px;color:var(--text-3)}
.tf>span i{font-style:normal;color:var(--danger);margin-left:2px}
.tf .input{height:30px;font-size:12.5px;width:100%}
.tf .area{width:100%;min-height:78px;resize:vertical;line-height:1.75;font-size:12.5px;padding:7px 9px}
.tfc{display:flex;flex-wrap:wrap;gap:6px}
.tfc .chip{
  font-size:12px;padding:4px 9px;border:1px solid var(--line-2);border-radius:999px;
  cursor:pointer;background:var(--bg);color:var(--text-2);line-height:1.4;user-select:none;
}
.tfc .chip:hover{border-color:var(--brand-2);color:var(--brand)}
.tfc .chip.on{background:var(--brand-soft);border-color:#C7D5FF;color:#2B4FBF;font-weight:600}
.prof-sec{border-top:1px dashed var(--line);margin-top:12px;padding-top:10px}
.prof-sec:first-of-type{border-top:0;margin-top:0;padding-top:0}
.prof-sec-t{font-size:11.5px;color:var(--text-3);margin-bottom:8px;letter-spacing:.3px}
.case-row{display:grid;grid-template-columns:1.05fr .72fr .72fr .8fr 1.5fr 22px;gap:6px;align-items:center;margin-bottom:6px}
.case-row .input{height:28px;font-size:12px}
.case-del{border:0;background:transparent;color:var(--text-4);cursor:pointer;font-size:14px;line-height:1;padding:0}
.case-del:hover{color:var(--danger)}
.cnt{font-size:11px;color:var(--text-4);text-align:right;margin-top:2px}

/* W21 O-6：老师档案抽屉四组折叠（基础信息 / 教学能力 / 战绩 / 报价与结算）。
   以前一屏 3 屏，找「电话」要滚两屏；现在默认只展开基础信息。 */
.dgrp{border:1px solid var(--line);border-radius:10px;margin-bottom:10px;background:#fff;overflow:hidden}
.dgrp>summary{list-style:none;cursor:pointer;padding:10px 13px;font-size:13px;font-weight:600;color:var(--text);display:flex;align-items:center;gap:7px;background:#FCFDFE}
.dgrp>summary::-webkit-details-marker{display:none}
.dgrp>summary::before{content:'▸';font-size:11px;color:var(--text-4);transition:transform .15s}
.dgrp[open]>summary::before{transform:rotate(90deg)}
.dgrp>summary .n{font-size:11px;font-weight:400;color:var(--text-4);margin-left:auto}
.dgrp-b{padding:12px 13px 14px;border-top:1px solid var(--line)}

/* ---------- W35：账号管理页的弹窗（新增/编辑/转移）----------
   问题：style.css 里只有 .wb-scope .wm-mask（带作用域），而账号管理页渲染在
   .wb-scope 外面 → 弹窗 position 变成 static，整块被挤到页面最底部看不见。
   这里补一组不带作用域的兜底样式，谁用 wm-* 都能正常弹出来。 */
.wm-mask{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:24px;background:rgba(16,24,35,.45)}
.wm-dlg{width:100%;max-width:520px;max-height:84vh;display:flex;flex-direction:column;background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 24px 64px -12px rgba(16,24,35,.4)}
.wm-h{height:56px;flex:0 0 auto;display:flex;align-items:center;gap:10px;padding:0 18px;border-bottom:1px solid var(--line);font-size:14px}
.wm-h b{flex:1;font-size:14px}
.wm-b{flex:1;overflow:auto;padding:16px 18px}
.wm-f{flex:0 0 auto;display:flex;justify-content:flex-end;gap:8px;padding:12px 18px;border-top:1px solid var(--line);background:#fafcfd}
.wm-b .tf{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.wm-b .tf>span{font-size:12px;color:var(--text-3)}
.wm-b .tf select,.wm-b .tf input{height:34px;border:1px solid var(--line);border-radius:8px;padding:0 10px;font-size:13px;background:#fff}
