/* UI2 第 1 层换皮（2026-11-14）：只改样式，不改结构和文字。
   正本：定稿 ~/Desktop/锐兴UI风格定稿-20261113/3-最终换皮样稿/skin.css；映射清单 scratchpad/ui2/map-skin.md；顾问拍板见 ~/交接/2026-11-13-锐兴-UI2-顾问审核.md 停点 1 第 10 条。
   注释格式：skin:行号＝定稿 skin.css 的行；D 编号＝决定记录。
   范围：只在电脑端（≥761px）生效；登录页、手机端、iframe 内嵌页不动；线索表格（.lead-sheet-table）不吃表格和标签规则。
   优先级：现网压制层是 html body #pageRoot X{…!important}（unified-ui.css），这里统一用 html body.crm-ui 前缀，多一个类，稳压它。
   侧栏图标（D5）：SVG 以 data: URI 内置，里面的 http://www.w3.org/2000/svg 只是 SVG 命名空间，不会发请求。 */

/* D5 侧栏图标 SVG（16px 细线，自绘；scratchpad/ui2map/gen_icons.py 生成，改图标改脚本再生成） */
:root{
  --ui2-i-home:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5V20a1 1 0 0 1-1 1h-5v-6h-6v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E");
  --ui2-i-dash:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='9' rx='1'/%3E%3Crect x='14' y='3' width='7' height='5' rx='1'/%3E%3Crect x='14' y='12' width='7' height='9' rx='1'/%3E%3Crect x='3' y='16' width='7' height='5' rx='1'/%3E%3C/svg%3E");
  --ui2-i-yen:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3l6 8 6-8M12 11v10M7 13h10M7 17h10'/%3E%3C/svg%3E");
  --ui2-i-wallet:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='14' rx='2'/%3E%3Cpath d='M3 10h18M15 15h3M6 6V5a1 1 0 0 1 1-1h11'/%3E%3C/svg%3E");
  --ui2-i-user:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 3.6-7 8-7s8 3 8 7'/%3E%3C/svg%3E");
  --ui2-i-users:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c0-3.5 2.9-6 6.5-6s6.5 2.5 6.5 6M16 4.5a3.5 3.5 0 0 1 0 7M18 14.3c2 .7 3.5 2.6 3.5 5.7'/%3E%3C/svg%3E");
  --ui2-i-book:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 5h6a4 4 0 0 1 4 4v12a3 3 0 0 0-3-3H2zM22 5h-6a4 4 0 0 0-4 4v12a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E");
  --ui2-i-cycle:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.34-5.66M20 4v5h-5'/%3E%3C/svg%3E");
  --ui2-i-card:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='11' r='2'/%3E%3Cpath d='M6 16c.6-1.4 1.8-2 3-2s2.4.6 3 2M14 10h4M14 14h3'/%3E%3C/svg%3E");
  --ui2-i-cap:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9l10-5 10 5-10 5zM6 11v5c0 1.5 2.7 3 6 3s6-1.5 6-3v-5M22 9v6'/%3E%3C/svg%3E");
  --ui2-i-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --ui2-i-history:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7M3 4v5h5M12 7v5l3 2'/%3E%3C/svg%3E");
  --ui2-i-pie:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 9 9h-9zM15 3.5A9 9 0 0 1 20.5 9H15z'/%3E%3C/svg%3E");
  --ui2-i-up:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17l6-6 4 4 8-8M15 7h6v6'/%3E%3C/svg%3E");
  --ui2-i-down:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7l6 6 4-4 8 8M15 17h6v-6'/%3E%3C/svg%3E");
  --ui2-i-building:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V5a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v16M15 9h4a1 1 0 0 1 1 1v11M2 21h20M8 8h3M8 12h3M8 16h3'/%3E%3C/svg%3E");
  --ui2-i-clipcheck:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Cpath d='M9 3h6v3H9zM9 13l2 2 4-4'/%3E%3C/svg%3E");
  --ui2-i-bars:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V10M10 20V4M16 20v-7M3 20h18'/%3E%3C/svg%3E");
  --ui2-i-checks:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l1.5 1.5L7 5M3 13l1.5 1.5L7 12M10 6h11M10 13h11M10 19h11M3 19h4'/%3E%3C/svg%3E");
  --ui2-i-target:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1.5'/%3E%3C/svg%3E");
  --ui2-i-share:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='2.5'/%3E%3Ccircle cx='6' cy='12' r='2.5'/%3E%3Ccircle cx='18' cy='19' r='2.5'/%3E%3Cpath d='M8.2 10.8l7.6-4.4M8.2 13.2l7.6 4.4'/%3E%3C/svg%3E");
  --ui2-i-map:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l6-3 6 3 6-3v15l-6 3-6-3-6 3zM9 3v15M15 6v15'/%3E%3C/svg%3E");
  --ui2-i-pin:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E");
  --ui2-i-pinline:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 18s-5.5-4.8-5.5-9a5.5 5.5 0 0 1 11 0c0 4.2-5.5 9-5.5 9z'/%3E%3Ccircle cx='12' cy='9' r='2'/%3E%3Cpath d='M4 21h16'/%3E%3C/svg%3E");
  --ui2-i-board:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h18M4 4v11h16V4M12 15v4M8 21l4-2 4 2M8 11l3-3 2 2 3-3'/%3E%3C/svg%3E");
  --ui2-i-library:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4v16M8 4v16M12.5 4.5l4.5 15.5M3 20h18'/%3E%3C/svg%3E");
  --ui2-i-doc:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V8zM14 3v5h5M8 13h8M8 17h6'/%3E%3C/svg%3E");
  --ui2-i-gear:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9 7 7M17 17l2.1 2.1M4.9 19.1 7 17M17 7l2.1-2.1'/%3E%3C/svg%3E");
  --ui2-i-usercog:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='8' r='4'/%3E%3Cpath d='M3 21c0-4 3.1-7 7-7 1.2 0 2.3.3 3.2.8'/%3E%3Ccircle cx='18' cy='17' r='2'/%3E%3Cpath d='M18 13.5v1.5M18 19v1.5M14.5 17H16M20 17h1.5'/%3E%3C/svg%3E");
  --ui2-i-pen:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16zM13.5 6.5l4 4'/%3E%3C/svg%3E");
  --ui2-i-plus:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  --ui2-i-dot:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}


@media (min-width:761px){

/* skin:2-14 :root 变量 → unified-ui.css:4 的 --g-*（--g-blue 换紫；--blue/--primary 不动，顾问 10 条） */
:root{
  --g-blue:#7C5CFC;--g-blue-weak:#F7F5FF;
  --g-ink:#18181B;--g-ink-2:#3F3F46;--g-ink-3:#A1A1AA;--g-line:#E4E4E7;--g-bg:#FAFAFA;--g-card:#fff;
  --g-red:#E5484D;--g-amber:#C98A12;--g-green:#22A55A;
  --g-f-page:20px;--g-f-kpi:28px;--g-f-hero:28px;
  --g-r:10px;--g-sh:none;
  --dot-gray:#A1A1AA;--dot-ok:#22A55A;--dot-red:#E5484D;--dot-amber:#F5A524;--dot-info:#7C5CFC;
}
/* skin:5,8,9 中性色、状态色 → crm-ui.css:2/167 body.crm-ui 变量（--blue/--primary 及各 -bg 不动） */
html body.crm-ui{--text:#18181B;--muted:#71717A;--line:#E4E4E7;--red:#E5484D;--green:#22A55A;--amber:#C98A12}
/* 弹窗不在定稿范围：--g-bg 在弹窗里还原，保住只读框灰底（unified-ui.css:132「只读框也用灰底」）和弹窗表头底色 */
html body .modal-mask{--g-bg:#f5f7fb}

/* skin:15 body / skin:2 字体：只作用在系统外壳和弹窗，登录页不动 */
html body.crm-ui #systemShell,html body.crm-ui .modal-mask{font-family:"PingFang SC","Noto Sans CJK SC",-apple-system,BlinkMacSystemFont,"Microsoft YaHei",sans-serif;color:#18181B}
html body.crm-ui #systemShell{font-size:13px}

/* skin:18 .app 页面底色 → unified-ui.css:15 把 body 和 .content 都刷成 --g-bg；外壳单独给 #EDEDF0 */
html body.crm-ui .shell{background:#EDEDF0}

/* skin:19 .top → index.html:11 .topbar、crm-ui.css:26；顶栏 68→52（顾问 10 条） */
html body.crm-ui .topbar{height:52px;background:#F7F7F8;border-bottom:0;padding:0 16px 0 20px;backdrop-filter:none;-webkit-backdrop-filter:none}
/* skin:44 .crumb → index.html:11、crm-ui.css:27 */
html body.crm-ui .crumb{color:#A1A1AA}
html body.crm-ui .crumb b{color:#18181B}
/* skin:30 .city → #scopePill.role-pill（index.html:11、crm-ui.css:27） */
html body.crm-ui .role-pill{border-color:#E4E4E7;border-radius:6px;background:#fff;color:#3F3F46}
/* skin:28 顶栏按钮：保留按钮外观，只统一颜色（顾问 10 条：按钮不改成链接） */
html body.crm-ui .topbar .btn:not(.primary):not(.danger){border-color:#E4E4E7;background:#fff;color:#3F3F46;border-radius:8px}
html body.crm-ui .topbar .btn:not(.primary):not(.danger):hover{border-color:#D4D4D8;background:#FAFAFA;color:#18181B}
html body.crm-ui .topbar .btn.primary{background:#7C5CFC;border-color:#7C5CFC;color:#fff;border-radius:8px}

/* skin:31 .side → index.html:11 .sidebar、crm-ui.css:11 */
html body.crm-ui .sidebar{background:#F7F7F8;border-right:0;padding:0 10px 10px}
/* skin:20 .brand → index.html:11、crm-ui.css:12/168；高度跟顶栏 52 对齐 */
html body.crm-ui .brand{height:52px;border-bottom:0;gap:8px}
html body.crm-ui .brand b{font-size:16px;font-weight:700;letter-spacing:.3px;color:#18181B}
/* skin:21 .brand i → .brand-logo（index.html:11、crm-ui.css:14）；里面的「锐」字保留 */
html body.crm-ui .brand-logo{width:22px;height:22px;border-radius:6px;background:#18181B;box-shadow:none;font-size:12px;color:#fff}
/* skin:32 .nav-t → .nav-title（index.html:11）；分组标题（crm-ui.css:18/169、index.html:34、city-supervisor.css:13、customer-service.css:99） */
html body.crm-ui .sidebar>.nav-title{font-size:11px;color:#A1A1AA;padding:10px 12px 4px;letter-spacing:.04em}
html body.crm-ui #mainNav :is(.boss-nav-group-title,.city-nav-group-title,.customer-service-nav-group-title){margin:6px 0 0;padding:10px 12px 4px;border:0;border-radius:0;background:transparent;color:#A1A1AA;font-size:11px;font-weight:400;line-height:1.4;letter-spacing:.04em;text-shadow:none}
html body.crm-ui #mainNav :is(.boss-nav-group-title,.city-nav-group-title,.customer-service-nav-group-title):first-child{margin-top:0}
/* skin:33 .nav-i → #mainNav button（index.html:11、crm-ui.css:21/171、city-supervisor.css:31）；用 min-height 不用固定高，长菜单名可换行不截断 */
html body.crm-ui .nav{gap:2px}
html body.crm-ui #mainNav button{min-height:32px;padding:6px 12px;border:0;border-radius:8px;color:#3F3F46;font-size:13px;font-weight:400;line-height:20px;gap:10px;box-shadow:none}
/* skin:34 .nav-i:hover → crm-ui.css:22 */
html body.crm-ui #mainNav button:hover{background:#EDEDF0;color:#3F3F46}
/* skin:35 .nav-i.on → crm-ui.css:23/25/172、index.html:11 */
html body.crm-ui #mainNav button.active,html body.crm-ui #mainNav button.active:hover{background:#18181B;color:#fff;font-weight:500;box-shadow:none;border:0}
/* skin:36 .u → .sidebar-foot（index.html:11、crm-ui.css:16） */
html body.crm-ui .sidebar-foot{border-top:1px solid #E4E4E7;background:transparent;padding:12px 6px 2px}
/* skin:37 .u .av → .avatar（index.html:11、crm-ui.css:17） */
html body.crm-ui .avatar{background:#E4E4E7;color:#3F3F46}

/* skin:38 .main → .content#pageRoot（index.html:11、unified-ui.css:15/16、customer-service.css:97）：白色大圆角面板 */
html body.crm-ui #pageRoot.content{background:#fff!important;border:1px solid #E4E4E7;border-radius:14px;margin:0 12px 12px 0;max-width:none;padding:22px 24px!important}

/* skin:41 .ph → unified-ui.css:21 */
html body.crm-ui #pageRoot .page-head{margin:0 0 18px!important}
/* skin:42 .ph h1 → unified-ui.css:20（字号走变量 --g-f-page） */
html body.crm-ui #pageRoot h1{font-weight:600!important;letter-spacing:0!important}
/* skin:43 .ph .sub → unified-ui.css:22 */
html body.crm-ui #pageRoot .page-head p,html body.crm-ui #pageRoot .page-head>div>small{font-size:12.5px!important;color:#71717A!important;margin:4px 0 0!important}

/* skin:47 .btn → unified-ui.css:52/54：尺寸沿用 unified-ui（32/28 高），这里只改字重和颜色，避免把客户详情等处压紧过的按钮撑宽 */
html body.crm-ui #pageRoot .btn:not(td .btn){font-weight:500!important}
html body.crm-ui #pageRoot .btn:not(.primary):not(.danger):not(td .btn){border-color:#E4E4E7!important;background:#fff!important;color:#18181B!important}
/* skin:48 .btn:hover（现网 #pageRoot 里没有统一悬停） */
html body.crm-ui #pageRoot .btn:not(.primary):not(.danger):not(td .btn):not(:disabled):hover{border-color:#D4D4D8!important;background:#FAFAFA!important}
/* skin:49 .btn.pri → unified-ui.css:55 走 --g-blue＝紫，这里只补悬停；skin:50 .btn.pri:hover → index.html:10、crm-ui.css:39。
   用 :where 压低优先级，让后面的「选中态」「查询」规则在悬停时仍然赢 */
html body.crm-ui #pageRoot .btn.primary:hover:where(:not(td .btn):not(:disabled)){background:#6D4AFF!important;border-color:#6D4AFF!important}
/* skin:47/49 表格行内按钮：保留按钮外观，只统一颜色（顾问 10 条）。td .btn 不归 unified-ui 管，走 crm-ui.css:36/38、crm-components.css:32 */
html body.crm-ui #pageRoot td .btn:not(.primary):not(.danger):not(.warn):not(.is-zero){border-color:#E4E4E7;color:#18181B}
html body.crm-ui #pageRoot td .btn.primary{background:#7C5CFC;border-color:#7C5CFC;color:#fff}

/* skin:83/87 选中态（顾问 10 条：.btn.primary 拆开，只有主按钮换紫）：现网用 .btn.primary 表示「当前选中」的切换按钮，改成浅紫选中态，不再是实心紫 */
html body.crm-ui #pageRoot .btn.primary:is([aria-pressed],[aria-selected],[data-today-mode],[data-unified-performance-range],[data-unified-performance-role],[data-unified-performance-filter],[data-visit-range],[data-visit-task-filter],[data-my-report-view],[data-traffic-analysis-mode],[data-lead-tab],[data-geocode-view],[data-customer-location-choice],[data-days],[data-followup-filter],[data-customer-grade-filter],[data-school-filled-filter],[data-transfer-order-state],[data-orgtrial-visit],[data-orgtrial-customers]){background:#F7F5FF!important;border:1px solid #DCD3FE!important;color:#7C5CFC!important;font-weight:600!important;box-shadow:none!important}
/* skin:53 .seg → .reporting-period-presets（crm-current.css:12；app.js:29 reportingPeriodToolbar） */
html body.crm-ui #pageRoot .reporting-period-presets{background:#F1F1F3;border-radius:8px;padding:3px;gap:0}
/* skin:54 .seg button */
html body.crm-ui #pageRoot .reporting-period-presets>.btn.small:not(td .btn){min-height:26px!important;line-height:24px!important;border:1px solid transparent!important;border-radius:6px!important;background:transparent!important;color:#71717A!important;box-shadow:none!important}
/* skin:55 .seg button.on */
html body.crm-ui #pageRoot .reporting-period-presets>.btn.small.primary:not(td .btn){background:#fff!important;border-color:transparent!important;color:#18181B!important;font-weight:500!important;box-shadow:0 0 0 1px #E4E4E7!important}
/* skin:51 .btn.pri-s「查询」→ [data-reporting-query]（app.js:29）、[data-customer-query-submit]（customer-service.css:67、crm-components.css:60） */
html body.crm-ui #pageRoot .btn.primary:is([data-reporting-query],[data-customer-query-submit]){background:#F7F5FF!important;border:1px solid #DCD3FE!important;color:#7C5CFC!important;box-shadow:none!important}
html body.crm-ui #pageRoot .btn.primary:is([data-reporting-query],[data-customer-query-submit]):not(:disabled):hover{background:#EFEAFF!important;border-color:#C9BBFD!important}

/* skin:56-58 .date/.search/.sel → unified-ui.css:59（边框色走变量） */
html body.crm-ui #pageRoot input[type=date]{font-variant-numeric:tabular-nums}
html body.crm-ui #pageRoot input::placeholder{color:#A1A1AA}
html body.crm-ui #pageRoot select{border-radius:6px!important}

/* skin:60 .card → unified-ui.css:26/36：边框、圆角、阴影全部由 --g-line/--g-r/--g-sh 变量实现，这里不另写 */
/* skin:61 .ch b,.dh b → unified-ui.css:29 */
html body.crm-ui #pageRoot h2,html body.crm-ui #pageRoot .panel-head h2,html body.crm-ui #pageRoot .panel-head strong:first-child{font-size:14px!important;font-weight:600!important}
/* skin:62 .cnote → unified-ui.css:31 */
html body.crm-ui #pageRoot .panel-head>span,html body.crm-ui #pageRoot .panel-head>small,html body.crm-ui #pageRoot .panel-head .muted{color:#71717A!important}
/* skin:66 .fold-i → .g-fold-btn（unified-ui.css:170） */
html body.crm-ui #pageRoot .boss-dashboard-heading .g-fold-btn{color:#71717A;border-color:#E4E4E7}
/* skin:67 .dno → .boss-dashboard-heading>span（index.html:34、crm-ui.css:73/214、crm-components.css:73） */
html body.crm-ui #pageRoot .boss-dashboard-heading>span{width:auto;height:20px;flex:0 0 auto;padding:0 6px;border:1px solid #E4E4E7;border-radius:4px;background:transparent;color:#52525B;font-size:12px;font-weight:500;box-shadow:none;font-variant-numeric:tabular-nums}

/* skin:81 .ftab → .lead-sheet-tab（lead-sheet.css:182/207） */
html body.crm-ui #pageRoot .lead-sheet-tab{border-radius:8px;color:#3F3F46}
/* skin:82 .ftab:hover → lead-sheet.css:183 */
html body.crm-ui #pageRoot .lead-sheet-tab:hover{background:#FAFAFA}
/* skin:83 .ftab.on → lead-sheet.css:184 */
html body.crm-ui #pageRoot .lead-sheet-tab.active{background:#F7F5FF;border-color:#DCD3FE;color:#7C5CFC;font-weight:600}
/* skin:84 .ftab.on b → lead-sheet.css:185/186 */
html body.crm-ui #pageRoot .lead-sheet-tab-n{background:#F1F1F3;color:#71717A}
html body.crm-ui #pageRoot .lead-sheet-tab.active .lead-sheet-tab-n{background:#fff;color:#7C5CFC;border:1px solid #DCD3FE;border-radius:4px;line-height:16px}

/* skin:90 .tb th → unified-ui.css:64（排除线索表格，顾问 10 条）；左右 padding 不动，保留 g-loose 收窄 */
html body.crm-ui #pageRoot table:not(.lead-sheet-table) th{color:#71717A!important;font-weight:500!important;border-top:1px solid #E4E4E7!important;border-bottom:1px solid #E4E4E7!important;height:34px}
/* skin:91 .tb td → unified-ui.css:65：只改分隔线色和最小行高；上下 padding 保留（多行单元格），字色不改（避免盖掉单元格里的语义色） */
html body.crm-ui #pageRoot table:not(.lead-sheet-table) td{border-bottom-color:#F1F1F3!important;height:38px}
/* skin:93-94 行悬停；右侧粘住的操作列（unified-ui.css:98 #fff!important）一起变 */
html body.crm-ui #pageRoot table:not(.lead-sheet-table) tbody tr:hover>td{background-color:#FAFAFA}
html body.crm-ui #pageRoot table:not(.lead-sheet-table) tbody tr:hover>td.g-stick{background:#FAFAFA!important}
/* 线索表格：逾期行去掉整行底色（D6，顾问 10 条）；新录入行黄底（lead-sheet.css:229 !important）保留 */
html body.crm-ui #pageRoot .lead-sheet-table tr:is(.overdue-2,.overdue-3)>td{background:#fff}

/* skin:98 .chip → .tag（unified-ui.css:71、index.html:14、crm-ui.css:56、crm-components.css:76-79、unified-ui.css:107、workbench-compact.css:63-64）
   排除：线索表格里的、学生定位标题里的（列宽固定，多出的圆点会挤出省略号）、带数字 <b> 的计数签（走 skin:130）、等待生效提示 */
html body.crm-ui #pageRoot .tag:not(.lead-sheet-table .tag):not(.lead-sheet-address .tag):not(.student-location-heading .tag):not(:has(>b)):not([data-reporting-pending]):not([data-unified-performance-range]~.tag){background:transparent!important;color:#3F3F46!important;border:0!important;padding:0!important;border-radius:0!important;font-size:12.5px!important;font-weight:400;display:inline-flex;align-items:center;gap:6px;line-height:20px;vertical-align:middle}
/* skin:99 灰点（颜色走 --tag-dot，下面按类名改，避免长 :not 链的优先级压住颜色规则） */
html body.crm-ui #pageRoot .tag:not(.lead-sheet-table .tag):not(.lead-sheet-address .tag):not(.student-location-heading .tag):not(:has(>b)):not([data-reporting-pending]):not([data-unified-performance-range]~.tag)::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--tag-dot,var(--dot-gray));flex:none}
/* skin:100 红点 → .tag.red */
html body.crm-ui #pageRoot .tag.red{--tag-dot:var(--dot-red)}
/* skin:101 橙点 → .tag.amber/.warn */
html body.crm-ui #pageRoot .tag:is(.amber,.warn){--tag-dot:var(--dot-amber)}
/* skin:102 绿点 → .tag.green/.status-yes */
html body.crm-ui #pageRoot .tag:is(.green,.status-yes){--tag-dot:var(--dot-ok)}
/* skin:103 紫点 → .tag.blue/.purple */
html body.crm-ui #pageRoot .tag:is(.blue,.purple){--tag-dot:var(--dot-info)}
/* skin:45 .date-pill → 业绩范围条里的日期签（app.js:4193 及工作台业绩摘要：[data-unified-performance-range] 后面的 .tag.blue）：描边小方签，不要圆点（已从上面的圆点规则里排除） */
html body.crm-ui #pageRoot [data-unified-performance-range]~.tag.blue:not(:has(>b)){background:transparent!important;color:#3F3F46!important;border:1px solid #E4E4E7!important;border-radius:4px!important;padding:0 6px!important;font-weight:500;line-height:18px}
/* skin:130 数量摘要小签 → 带 <b> 的 .tag（工作台「所选期间新增 N / 已跟进 N…」） */
html body.crm-ui #pageRoot .tag:has(>b):not(.lead-sheet-table .tag){background:#fff!important;border:1px solid #E4E4E7!important;border-radius:4px!important;color:#71717A!important;padding:0 6px!important;line-height:18px}
/* skin:131 小签里的数字 */
html body.crm-ui #pageRoot .tag:not(.lead-sheet-table .tag)>b{color:#18181B;font-weight:600}
/* skin:130 站内提醒的数量胶囊 → .reminder-compact span（customer-service.css:371 橙色胶囊） */
html body.crm-ui #pageRoot .reminder-compact>span{background:#fff;border:1px solid #E4E4E7;border-radius:4px;color:#71717A}

/* skin:105-107 + D6：今日待办数字按钮（app.js:1756 todayTaskSingleRow、app.js:1761 todayTasksPanel，客服和城市工作台共用）
   已逾期：保持红字，红色随 --red 变为 #E5484D（index.html:10 .btn.danger、crm-ui.css:40）；今日到期：改黑字 */
html body.crm-ui #pageRoot .btn.warn[data-today-urgency=due_today]{color:#18181B}
/* D6：城市工作台「每日情况」未完成数、已完成数改黑字（crm-components.css:80/81；app.js:666） */
html body.crm-ui #pageRoot .city-task-card:is(.pending,.done) strong{color:#18181B}
/* skin:111 「未完成数」说明前的红点 */
html body.crm-ui #pageRoot .city-task-card.pending>span::before{content:"";display:inline-block;width:6px;height:6px;margin-right:6px;border-radius:50%;background:var(--dot-red);vertical-align:middle}
/* skin:110 .cell span → .city-task-card span（unified-ui.css:45） */
html body.crm-ui #pageRoot .city-task-card span{color:#71717A!important}
/* skin:108 span.t-over → .days.red（index.html:14）、.stat-delta.bad（index.html:56）走 --red；skin:124 .over-t/.due-t → .visit-tone-*（city-supervisor.css:302） */
html body.crm-ui #pageRoot .visit-tone-overdue{color:#E5484D!important}
html body.crm-ui #pageRoot .visit-tone-today{color:#C98A12!important}

/* skin:139 .kpi b → unified-ui.css:44/46 */
html body.crm-ui #pageRoot .stats>.stat strong,html body.crm-ui #pageRoot .city-task-card strong{font-weight:600!important;letter-spacing:-.01em}
/* skin:13/139 主卡 g-hero 不再蓝底（unified-ui.css:47-49、:42） */
html body.crm-ui #pageRoot .stats>.stat.g-hero{background:#fff!important;border-color:#E4E4E7!important}
html body.crm-ui #pageRoot .stats>.stat.g-hero small{color:#71717A!important}
html body.crm-ui #pageRoot .stats>.stat.g-hero strong{color:#18181B!important}
html body.crm-ui #pageRoot .stats>.stat.g-hero .stat-icon{color:#A1A1AA!important}
/* skin:140 .kpi small → unified-ui.css:43；crm-components.css:85（下钻卡、回访卡标题蓝字） */
html body.crm-ui #pageRoot .stats>.stat small,html body.crm-ui #pageRoot .city-task-card small{color:#71717A!important}
html body.crm-ui #pageRoot :is(.service-drilldown-card,.service-kpi,.hrbp-metric-card)>small{color:#71717A}
/* skin:142 .mk b → .service-drilldown-card strong（customer-service.css:166 蓝）、.service-kpi b（customer-service.css:17-19） */
html body.crm-ui #pageRoot .service-drilldown-card strong{color:#18181B;font-weight:600}
html body.crm-ui #pageRoot .service-kpi>b{color:#18181B;font-weight:600}
/* skin:143-144 .mk.over → 派单看板数字卡 .dispatch-board-card.is-*（customer-service.css:517-522）：去渐变，数字黑字，说明前加圆点 */
html body.crm-ui #pageRoot:has(>#page-dispatch) .dispatch-board-card:is(.is-blue,.is-amber,.is-red){background:#fff}
html body.crm-ui #pageRoot:has(>#page-dispatch) .dispatch-board-card:is(.is-blue,.is-amber,.is-red)>strong{color:#18181B}
html body.crm-ui #pageRoot:has(>#page-dispatch) .dispatch-board-card:is(.is-amber,.is-red)>span::before{content:"";display:inline-block;width:6px;height:6px;margin-right:6px;border-radius:50%;background:var(--dot-red);vertical-align:middle}
html body.crm-ui #pageRoot:has(>#page-dispatch) .dispatch-board-card.is-amber>span::before{background:var(--dot-amber)}

/* skin:147 .bar,.track → .bar-track（index.html:14）、.refund-rank-track（index.html:22） */
html body.crm-ui #pageRoot :is(.bar-track,.refund-rank-track){background:#F1F1F3}
/* skin:148 .bar i → 现网 .bar 是填充（index.html:14）；.bar.red（老师侧、负值）保留红色 */
html body.crm-ui #pageRoot .bar-track>.bar:not(.red),html body.crm-ui #pageRoot .refund-rank-track>i{background:#18181B}

/* skin:150 提醒条去彩色底 → unified-ui.css:72-74、crm-ui.css:224；补彩色圆点代替图标（顾问 10 条）。#systemRefreshNotice 有自己的转圈 ::before，排除 */
html body.crm-ui #pageRoot .notice:not(#systemRefreshNotice){border:1px solid #E4E4E7!important;border-radius:10px!important}
html body.crm-ui #pageRoot .notice:is(.danger,.warn):not(#systemRefreshNotice){background:#FAFAFA!important;color:#3F3F46!important}
/* skin:151-153 .r-ico → 圆点：一般紫、警告橙、报错红 */
html body.crm-ui #pageRoot .notice:not(#systemRefreshNotice)::before{content:"";display:inline-block;width:6px;height:6px;margin-right:8px;border-radius:50%;background:var(--dot-info);vertical-align:middle}
html body.crm-ui #pageRoot .notice.warn:not(#systemRefreshNotice)::before{background:var(--dot-amber)}
html body.crm-ui #pageRoot .notice.danger:not(#systemRefreshNotice)::before{background:var(--dot-red)}

/* skin:135 .toc → .g-boss-nav button（unified-ui.css:162）；顶栏 52 后吸顶位置同步（unified-ui.css:161 的 top:68px，顾问 10 条） */
html body.crm-ui .g-boss-nav{top:52px;border-color:#E4E4E7;box-shadow:none}
html body.crm-ui .g-boss-nav button{height:26px;padding:0 9px;border-color:#E4E4E7;border-radius:6px;color:#3F3F46;font-weight:500}
/* skin:137 .toc b → unified-ui.css:163 */
html body.crm-ui .g-boss-nav button b{color:#18181B;font-weight:600}
/* skin:136 .toc:hover → unified-ui.css:164 */
html body.crm-ui .g-boss-nav button:hover{color:#18181B;border-color:#D4D4D8;background:#FAFAFA}
/* skin:137 收起的板块 → unified-ui.css:165-166 */
html body.crm-ui .g-boss-nav button.g-off{color:#71717A;background:#fff}
html body.crm-ui .g-boss-nav button.g-off b{color:#A1A1AA}
html body.crm-ui .g-boss-nav-all button{color:#3F3F46}
/* 顶栏 52 后，板块标题跳转留白同步（unified-ui.css:169 的 130px，顾问 10 条） */
html body.crm-ui .boss-dashboard-heading.g-fold-head{scroll-margin-top:114px}

/* D4 配色定义：蓝＝基本信息、绿＝跟进、紫＝成交/订单、橙＝学情、红＝提醒/异常。只在客户详情、学生档案的对象分块上用 */
html body.crm-ui{--d4-info:#3B82F6;--d4-follow:#22A55A;--d4-deal:#7C5CFC;--d4-xq:#F5A524;--d4-alert:#E5484D}
/* D4 基本信息（蓝）→ #leadDetailBasicInfo（app.js:1615） */
html body.crm-ui #pageRoot #leadDetailBasicInfo.panel{border-top:3px solid var(--d4-info)!important}
html body.crm-ui #pageRoot #leadDetailBasicInfo>.panel-head h2::before{content:"";display:inline-block;width:8px;height:8px;margin-right:8px;border-radius:2px;background:var(--d4-info);vertical-align:middle}
/* D4 机构课订单（紫）→ [data-org-customer-orders]（org-trial.js:44） */
html body.crm-ui #pageRoot [data-org-customer-orders].panel{border-top:3px solid var(--d4-deal)!important}
html body.crm-ui #pageRoot [data-org-customer-orders]>.panel-head h2::before{content:"";display:inline-block;width:8px;height:8px;margin-right:8px;border-radius:2px;background:var(--d4-deal);vertical-align:middle}
/* D4 位置相关 → .lead-location-panel（app.js:1637）：不在五色里，用中性灰块，只统一样式 */
html body.crm-ui #pageRoot .lead-location-panel.panel{border-top:3px solid #A1A1AA!important}
html body.crm-ui #pageRoot .lead-location-panel>.panel-head h2::before{content:"";display:inline-block;width:8px;height:8px;margin-right:8px;border-radius:2px;background:#A1A1AA;vertical-align:middle}

/* D5 侧栏图标（纯 CSS）：字符留在 DOM 里（font-size:0 看不见，innerText 还在），用 ::before＋mask 画 16px 线性图标；平时灰，选中变白 */
html body.crm-ui #mainNav .nav-icon{--ico:var(--ui2-i-dot);display:inline-block;flex:0 0 16px;width:16px;height:16px;font-size:0;line-height:0;opacity:1;color:#71717A;overflow:hidden}
html body.crm-ui #mainNav .nav-icon::before{content:"";display:block;width:16px;height:16px;background-color:currentColor;-webkit-mask:var(--ico) center/16px 16px no-repeat;mask:var(--ico) center/16px 16px no-repeat}
html body.crm-ui #mainNav button.active .nav-icon{color:#fff}
html body.crm-ui #mainNav :is([data-page=workbench],[data-page=dashboard],[data-page=recruitDashboard],[data-page=trafficDashboard])>.nav-icon{--ico:var(--ui2-i-home)}
html body.crm-ui .boss-workbench-shell #mainNav [data-page=dashboard]>.nav-icon{--ico:var(--ui2-i-dash)}
html body.crm-ui #mainNav :is([data-page=deals],[data-page=auditPerformance])>.nav-icon{--ico:var(--ui2-i-yen)}
html body.crm-ui #mainNav [data-org-settlements-nav]>.nav-icon{--ico:var(--ui2-i-wallet)}
html body.crm-ui #mainNav [data-page=leads]>.nav-icon{--ico:var(--ui2-i-user)}
html body.crm-ui .boss-workbench-shell #mainNav [data-page=leads]>.nav-icon{--ico:var(--ui2-i-users)}
html body.crm-ui #mainNav :is([data-page=xueqing],[data-page=xq])>.nav-icon{--ico:var(--ui2-i-book)}
html body.crm-ui #mainNav [data-page=visits]>.nav-icon{--ico:var(--ui2-i-cycle)}
html body.crm-ui #mainNav :is([data-page=teacherManagement],[data-page=recruit],[data-page=adminTeachers])>.nav-icon{--ico:var(--ui2-i-card)}
html body.crm-ui #mainNav [data-page=students]>.nav-icon{--ico:var(--ui2-i-cap)}
html body.crm-ui #mainNav [data-page=dispatch]>.nav-icon{--ico:var(--ui2-i-arrow)}
html body.crm-ui #mainNav [data-tx-queue]>.nav-icon{--ico:var(--ui2-i-history)}
html body.crm-ui #mainNav [data-page=customerAnalysis]>.nav-icon{--ico:var(--ui2-i-pie)}
html body.crm-ui #mainNav [data-page=trafficAnalysis]>.nav-icon{--ico:var(--ui2-i-up)}
html body.crm-ui #mainNav [data-page=cityBusiness]>.nav-icon{--ico:var(--ui2-i-building)}
html body.crm-ui #mainNav [data-page=refunds]>.nav-icon{--ico:var(--ui2-i-down)}
html body.crm-ui #mainNav :is([data-page=performance],[data-page=auditClosed])>.nav-icon{--ico:var(--ui2-i-clipcheck)}
html body.crm-ui #mainNav [data-page=unifiedPerformance]>.nav-icon{--ico:var(--ui2-i-bars)}
html body.crm-ui #mainNav :is([data-page=supervisorOperations],[data-page=audit])>.nav-icon{--ico:var(--ui2-i-checks)}
html body.crm-ui #mainNav [data-page=targets]>.nav-icon{--ico:var(--ui2-i-target)}
html body.crm-ui #mainNav [data-page=channelPerformance]>.nav-icon{--ico:var(--ui2-i-share)}
html body.crm-ui #mainNav [data-page=customerMap]>.nav-icon{--ico:var(--ui2-i-map)}
html body.crm-ui #mainNav [data-page=geocodeRepair]>.nav-icon{--ico:var(--ui2-i-pin)}
html body.crm-ui #mainNav [data-page=teacherOverview]>.nav-icon{--ico:var(--ui2-i-board)}
html body.crm-ui #mainNav [data-page=teacherMap]>.nav-icon{--ico:var(--ui2-i-pinline)}
html body.crm-ui #mainNav [data-page=teacherQuality]>.nav-icon{--ico:var(--ui2-i-library)}
html body.crm-ui #mainNav :is([data-page=reportHistory],[data-page=myReports])>.nav-icon{--ico:var(--ui2-i-doc)}
html body.crm-ui #mainNav [data-page=reportApprovals]>.nav-icon{--ico:var(--ui2-i-pen)}
html body.crm-ui #mainNav [data-page=workCitySettings]>.nav-icon{--ico:var(--ui2-i-gear)}
html body.crm-ui #mainNav [data-page=accounts]>.nav-icon{--ico:var(--ui2-i-usercog)}
html body.crm-ui #mainNav [data-page=traffic]>.nav-icon{--ico:var(--ui2-i-plus)}

}

/* --sidew 侧栏 224→196，和主区白面板一起改（顾问 10 条）。只在侧栏展开时（≥1051px）生效；761–1050 宽的 76px 收窄侧栏（index.html:15）不动 */
@media (min-width:1051px){
/* skin:4 --sidew → index.html:11 .shell、.sidebar */
html body.crm-ui .shell{grid-template-columns:196px minmax(0,1fr)}
html body.crm-ui .sidebar{width:196px}
}

/* 停点 2 顾问定（11-14）：只改外观，不改 DOM/class */
@media (min-width:761px){
/* ② 「更多」（app.js reportingPeriod 的 details>summary）选中时也只用普通白按钮，那一行只有「查询」是紫 */
html body.crm-ui #pageRoot .reporting-period-more>summary.btn.primary{background:#fff!important;border-color:#E4E4E7!important;color:#18181B!important;box-shadow:none!important}
html body.crm-ui #pageRoot .reporting-period-more>summary.btn.primary:hover{background:#FAFAFA!important;border-color:#D4D4D8!important}
/* ③ D6 今日待办「已逾期」：去红框，改红字数字；点击和键盘焦点框（outline）照旧 */
html body.crm-ui #pageRoot .btn.danger[data-today-urgency=overdue]{border-color:transparent!important;background:transparent!important;color:#E5484D!important;font-weight:600;box-shadow:none!important}
html body.crm-ui #pageRoot .btn.danger[data-today-urgency=overdue]:hover{background:#FAFAFA!important}
}

/* 第 2 层 D9/D10/D11：今日待办加宽，右侧放机构课待办（客服再加老客户回访任务）；跟进规则表在下面整行宽 */
html body.crm-ui #pageRoot .today-side:empty{display:none}
@media (min-width:761px){
html body.crm-ui #pageRoot :is(.service-workbench-today-area,.supervisor-workbench-today-area){display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px}
html body.crm-ui #pageRoot :is(.service-workbench-today-area,.supervisor-workbench-today-area)>#todayCompactTasks{flex:1.6 1 560px;min-width:0;margin:0!important}
html body.crm-ui #pageRoot .today-side{flex:1 1 300px;min-width:0;display:grid;gap:12px}
html body.crm-ui #pageRoot .today-side>.panel{margin:0!important}
html body.crm-ui #pageRoot .today-rule-panel{margin:12px 0 0!important}
html body.crm-ui #pageRoot .service-workbench-flow>.today-rule-panel{margin:0!important}
/* 老客户回访任务挪走后，经营区只剩业绩面板，铺满整行 */
html body.crm-ui #pageRoot .service-compact-workbench .service-workbench-operating-grid{grid-template-columns:minmax(0,1fr)}
}

/* ===== UI2 批3 ===== */
/* 第 2 层 D15 学生档案、D8/D17 成交与退费（客服、主管 renderDeals）。老板成交页 .boss-deals-faithful 不吃这里的规则 */
@media (min-width:761px){
/* D15 8 张卡收成一排两组：蓝「档案与定位」、紫「业务状态」（D4 配色） */
html body.crm-ui #pageRoot .student-stat-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
html body.crm-ui #pageRoot .student-stat-group{min-width:0;background:#fff;border:1px solid #E4E4E7;border-top:3px solid var(--d4-info);border-radius:10px;padding:8px 12px 10px}
html body.crm-ui #pageRoot .student-stat-group.is-business{border-top-color:var(--d4-deal)}
html body.crm-ui #pageRoot .student-stat-group-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 6px;font-size:13px}
html body.crm-ui #pageRoot .student-stat-group-head b::before{content:"";display:inline-block;width:8px;height:8px;margin-right:8px;border-radius:2px;background:var(--d4-info);vertical-align:middle}
html body.crm-ui #pageRoot .student-stat-group.is-business .student-stat-group-head b::before{background:var(--d4-deal)}
html body.crm-ui #pageRoot .student-stat-group-head small{font-size:12px;color:#71717A;font-weight:400}
html body.crm-ui #pageRoot .student-stat-group .student-archive-stats,html body.crm-ui #pageRoot .student-stat-group .customer-records-student-categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0}
html body.crm-ui #pageRoot .student-stat-group .student-archive-stats .stat,html body.crm-ui #pageRoot .student-stat-group .student-drilldown-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;min-width:0;min-height:0;padding:6px 10px;text-align:left}
html body.crm-ui #pageRoot .student-stat-group .student-archive-stats .stat-icon{display:none}
html body.crm-ui #pageRoot .student-stat-group .student-archive-stats .stat small,html body.crm-ui #pageRoot .student-stat-group .student-drilldown-card span b{font-size:12px;font-weight:400;color:#52525B}
html body.crm-ui #pageRoot .student-stat-group .student-archive-stats .stat strong,html body.crm-ui #pageRoot .student-stat-group .student-drilldown-card>b{font-size:20px;line-height:1.2}
/* 「年级与定位口径」缩成右侧小链接，内容不变 */
html body.crm-ui #pageRoot [data-customer-records-page=students]>.customer-records-student-note{align-self:flex-end;text-align:right;margin:-4px 0 0;padding:0;border:0;background:transparent}
html body.crm-ui #pageRoot [data-customer-records-page=students]>.customer-records-student-note>summary{font-size:12.5px;color:#71717A;cursor:pointer}
html body.crm-ui #pageRoot [data-customer-records-page=students]>.customer-records-student-note[open]{text-align:left;align-self:stretch}
/* 筛选收成一行：搜索、年级、业务状态、学业状态 4 标签、清除 */
html body.crm-ui #pageRoot .customer-records-student-filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 10px}
html body.crm-ui #pageRoot .customer-records-student-filters .student-filter-toolbar{display:contents}
html body.crm-ui #pageRoot .customer-records-student-filters .student-filter-toolbar input{flex:1 1 260px;width:auto;min-height:34px}
html body.crm-ui #pageRoot .customer-records-student-filters .student-filter-toolbar select{flex:0 1 160px;width:auto;min-height:34px}
html body.crm-ui #pageRoot .customer-records-student-filters .student-academic-filters{order:1;display:flex;align-items:center;gap:6px;margin:0}
html body.crm-ui #pageRoot .customer-records-student-filters [data-clear-student-filters]{order:2;margin-left:auto}
/* 学生列表绿色标题块；当前年级、年龄改正常字号（原 20/18px） */
html body.crm-ui #pageRoot #studentListPanel.panel{border-top:3px solid var(--d4-follow)!important}
html body.crm-ui #pageRoot #studentListPanel>.panel-head h2::before{content:"";display:inline-block;width:8px;height:8px;margin-right:8px;border-radius:2px;background:var(--d4-follow);vertical-align:middle}
html body.crm-ui #pageRoot .student-archive-table td{vertical-align:top}
html body.crm-ui #pageRoot .student-archive-table .student-grade-cell small{color:#71717A}
/* 学情图（橙，D4）：点开前是标签，点开后显示「诊断 N · 规划 N · 进度 N」 */
html body.crm-ui #pageRoot .student-xq-chip{border:1px solid var(--d4-xq);background:#FFF7ED;color:#B45309;border-radius:6px;padding:1px 8px;font-size:12px;line-height:20px;cursor:pointer;white-space:nowrap}
html body.crm-ui #pageRoot .student-xq-chip:disabled{opacity:.6;cursor:wait}
html body.crm-ui #pageRoot .student-xq-counts{color:#B45309;font-size:12.5px;white-space:nowrap}

/* D8 营收表（紫）＋ D17 客户与成交（蓝）并排 */
html body.crm-ui #pageRoot .deal-overview-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:12px;align-items:stretch}
html body.crm-ui #pageRoot .deal-overview-grid>*{margin:0!important;min-width:0}
html body.crm-ui #pageRoot .deal-revenue-table.panel{border-top:3px solid var(--d4-deal)!important}
html body.crm-ui #pageRoot .deal-overview-grid>#businessLeadMetrics.panel{border-top:3px solid var(--d4-info)!important}
html body.crm-ui #pageRoot :is(.deal-revenue-table,.deal-lead-metrics)>.panel-head h2::before{content:"";display:inline-block;width:8px;height:8px;margin-right:8px;border-radius:2px;background:var(--d4-deal);vertical-align:middle}
html body.crm-ui #pageRoot .deal-lead-metrics>.panel-head h2::before{background:var(--d4-info)}
html body.crm-ui #pageRoot .deal-revenue-table table{width:100%;border-collapse:collapse}
html body.crm-ui #pageRoot .deal-revenue-table>.table-wrap{max-height:none;overflow:visible}
html body.crm-ui #pageRoot .deal-revenue-table :is(th,td){text-align:right;padding:5px 10px;white-space:nowrap;font-variant-numeric:tabular-nums}
html body.crm-ui #pageRoot .deal-revenue-table tbody th{text-align:left;font-weight:500}
html body.crm-ui #pageRoot .deal-revenue-table thead th{font-size:12.5px;color:#71717A;font-weight:400;background:transparent}
html body.crm-ui #pageRoot .deal-revenue-table tr.is-main :is(th,td){font-size:22px;font-weight:700;color:#18181B;padding-top:8px;padding-bottom:8px}
html body.crm-ui #pageRoot .deal-revenue-table td.is-hi{color:var(--d4-deal)!important;background:#F5F3FF}
html body.crm-ui #pageRoot .deal-revenue-table tr.is-zero :is(th,td,button){color:#A1A1AA}
html body.crm-ui #pageRoot .deal-rev-drill,html body.crm-ui #pageRoot .deal-org-mini{background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer}
html body.crm-ui #pageRoot :is(.deal-rev-drill,.deal-org-mini):hover{color:var(--d4-deal)}
html body.crm-ui #pageRoot :is(.deal-rev-drill,.deal-org-mini):focus-visible{outline:2px solid var(--d4-deal);outline-offset:2px}
html body.crm-ui #pageRoot .deal-rev-folds{display:flex;flex-wrap:wrap;gap:6px 20px;padding:4px 10px 8px}
html body.crm-ui #pageRoot .deal-rev-folds>details[open]{flex-basis:100%}
html body.crm-ui #pageRoot .deal-rev-folds summary{font-size:12.5px;color:#52525B;cursor:pointer}
html body.crm-ui #pageRoot .deal-rev-folds p{margin:6px 0;font-size:12.5px;color:#52525B;line-height:1.6}
html body.crm-ui #pageRoot .deal-org-grid{width:100%;margin-top:6px}
html body.crm-ui #pageRoot .deal-org-grid :is(th,td){text-align:left;padding:4px 8px;font-size:12.5px;vertical-align:top}
html body.crm-ui #pageRoot .deal-org-grid small{display:block;color:#A1A1AA;font-weight:400}
html body.crm-ui #pageRoot .deal-org-mini{display:inline-flex;gap:6px;margin:0 14px 2px 0}
html body.crm-ui #pageRoot .deal-org-mini.is-zero{color:#A1A1AA}
html body.crm-ui #pageRoot .deal-org-mini.is-ref{opacity:.75}
/* 客户与成交三档：大字、小字、灰字 */
html body.crm-ui #pageRoot .deal-lead-metrics>.panel-body{display:grid;gap:6px;padding:8px 12px}
html body.crm-ui #pageRoot .deal-metric-tier{display:flex;flex-wrap:wrap;gap:4px 22px}
html body.crm-ui #pageRoot .deal-metric-card.lead-metric-card{display:flex!important;flex-direction:column;align-items:flex-start;min-height:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;text-align:left;cursor:pointer;color:#18181B}
html body.crm-ui #pageRoot .deal-metric-card>span{font-size:12.5px;color:#52525B}
html body.crm-ui #pageRoot .deal-metric-card.is-big>strong{font-size:24px;line-height:1.25}
html body.crm-ui #pageRoot .deal-metric-tier:is(.is-small,.is-muted) .deal-metric-card{flex-direction:row;align-items:baseline;gap:6px}
html body.crm-ui #pageRoot .deal-metric-card.is-small>strong{font-size:14px}
html body.crm-ui #pageRoot .deal-metric-card.is-muted>:is(span,strong){font-size:12.5px;color:#A1A1AA;font-weight:400}
html body.crm-ui #pageRoot .deal-metric-note>summary{font-size:12.5px;color:#71717A;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body.crm-ui #pageRoot .deal-metric-note small{display:block;font-size:12px;color:#71717A;margin-top:4px}
/* 成交记录：单号、电话、老师账号、地址、频次、合作类型灰色小字 */
html body.crm-ui #pageRoot .deals-customer-layout:not(.boss-deals-faithful) #customerOrderResults td small{color:#71717A;font-size:12px}
/* 跨客服成交审计：成交记录下面，默认收起 */
html body.crm-ui #pageRoot .deal-audit-fold>summary{cursor:pointer;padding:10px 14px;background:#fff;border:1px solid #E4E4E7;border-radius:10px;font-weight:600;font-size:13px}
html body.crm-ui #pageRoot .deal-audit-fold[open]>summary{margin-bottom:8px}
/* ===== UI2 批4 ===== */
/* 学情页（public/xueqing/panel.js 画）、今日待办「学情待出」行、老板看板「学情该出未出」行；出图面板本身的样式在 /xueqing/panel.css */
html body.crm-ui #pageRoot .xq-toolbar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px}
html body.crm-ui #pageRoot .xq-search{display:flex;gap:6px;flex:1 1 320px}
html body.crm-ui #pageRoot .xq-search input{flex:1;min-width:0}
html body.crm-ui #pageRoot .xq-toolbar label{display:flex;flex-direction:column;gap:2px;font-size:12px;color:#71717A}
html body.crm-ui #pageRoot .xq-tabs{display:flex;gap:6px;padding:10px 16px 0}
html body.crm-ui #pageRoot .xq-tab-count{margin-left:6px;font-weight:600}
html body.crm-ui #pageRoot .xq-note{margin:6px 16px;font-size:12px;color:#71717A}
html body.crm-ui #pageRoot .xq-hit>td{background:#FFFBEB}
html body.crm-ui #pageRoot .xq-boss-row{width:100%;margin:0 0 14px;display:flex;justify-content:space-between;align-items:center;text-align:left}
@media (min-width:761px){
html body.crm-ui #pageRoot .today-xq-row td{border-top:1px solid #E4E4E7}
html body.crm-ui #pageRoot .today-xq-row small{color:#71717A}
/* ===== UI2 批2 ===== */
/* D12 客户详情：固定抬头（返回栏 + 姓名/状态 + 顶部按钮 + 缺资料提示）一起 sticky，返回栏不再单独浮在按钮上面；所有宽度都要能用 */
html body #pageRoot .lead-detail-fixed-head{position:sticky;top:68px;z-index:19;flex:1 1 100%;display:flex;flex-wrap:wrap;align-items:flex-start;gap:6px 10px;min-width:0;padding:0 0 8px;background:var(--bg,#f5f7fb)}
html body #pageRoot .lead-detail-fixed-head>.customer-detail-return-bar{position:relative;top:auto;flex:0 1 auto;max-width:min(100%,360px);margin:0!important}
html body #pageRoot .lead-detail-fixed-head>.lead-detail-topline-head{flex:1 1 420px;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;min-width:0;margin:0!important;padding:0!important}
html body #pageRoot .lead-detail-fixed-head>.lead-detail-topline-head>div:first-child{flex:1 1 260px;min-width:0}
html body #pageRoot .lead-detail-fixed-head h1{margin:0!important;font-size:18px!important;line-height:1.3!important;overflow-wrap:anywhere}
html body #pageRoot .lead-detail-head-summary{margin-top:2px;font-size:12px;line-height:1.6;color:var(--muted)}
html body #pageRoot .lead-detail-fixed-head .head-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px;width:auto;margin:0!important}
html body #pageRoot .lead-detail-fixed-head .head-actions .btn{flex:0 0 auto}
html body #pageRoot .lead-detail-fixed-head .lead-info-reminder{flex:1 1 100%;display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 8px;min-width:0;margin:0!important;padding:4px 10px!important;font-size:12px;line-height:1.5!important}
html body #pageRoot .lead-detail-columns,html body #pageRoot .lead-detail-col-main,html body #pageRoot .lead-detail-col-side{display:grid;gap:10px;align-content:start;min-width:0}
html body #pageRoot .lead-detail-columns{flex:1 1 100%}
html body #pageRoot .lead-detail-group{display:grid;gap:0;min-width:0}
html body #pageRoot .lead-detail-columns .panel{margin:0!important}
html body #pageRoot .lead-detail-followup-group .customer-detail-followup-layout{grid-template-columns:minmax(0,1fr)}
html body #pageRoot .lead-location-panel.is-collapsed{margin-top:0}
html body #pageRoot .lead-location-panel>.panel-head>[data-lead-location-toggle]{margin-left:auto}
html body #pageRoot .lead-detail-more-menu{position:relative}
html body #pageRoot .lead-detail-more-menu>summary{list-style:none;cursor:pointer}
html body #pageRoot .lead-detail-more-menu>summary::-webkit-details-marker{display:none}
html body #pageRoot .lead-detail-more-list{position:absolute;right:0;top:calc(100% + 4px);z-index:30;display:grid;gap:4px;min-width:150px;padding:6px;background:#fff;border:1px solid #E4E4E7;border-radius:8px;box-shadow:0 10px 24px rgba(15,23,42,.14)}
html body #pageRoot .lead-detail-popup-tools{display:inline-flex;gap:6px}
@media(max-width:700px){html body #pageRoot .lead-detail-fixed-head{top:56px}}
/* D12/D16 半屏弹窗：右侧约 58% 宽，左边露出列表；≤760 铺满 */
html body #pageRoot .lead-detail-popup{position:fixed;inset:0;z-index:50;display:flex;justify-content:flex-end}
html body #pageRoot .lead-detail-popup-mask{position:absolute;inset:0;background:rgba(24,24,27,.32)}
html body #pageRoot .lead-detail-popup-panel{position:relative;width:100%;height:100%;overflow:auto;overscroll-behavior:contain;padding:0 16px 24px;background:var(--bg,#f5f7fb);box-shadow:-12px 0 32px rgba(15,23,42,.18);outline:none}
html body #pageRoot .lead-detail-popup .lead-detail-fixed-head{top:0;padding-top:12px}
/* D7 跟进筛选下拉与服务端分页 */
html body #pageRoot .lead-followup-filter{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:var(--muted)}
html body #pageRoot .lead-followup-filter select{height:28px;padding:0 6px;border:1px solid var(--line);border-radius:6px;background:#fff;font-size:12px}
html body #pageRoot .lead-followup-pager{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:6px 0;font-size:12px}
@media (min-width:761px){
html body.crm-ui #pageRoot .lead-detail-fixed-head{top:52px;background:#F7F7F8}
html body.crm-ui #pageRoot .lead-detail-popup .lead-detail-fixed-head{top:0;border-bottom:1px solid #E4E4E7;margin:0 -16px;padding:12px 16px 8px}
html body.crm-ui #pageRoot .lead-detail-popup-panel{width:58%;min-width:720px;max-width:calc(100% - 120px);background:#F7F7F8}
html body.crm-ui #pageRoot .lead-detail-fixed-head .lead-info-reminder.warn{background:#FFF7ED!important;border-color:#FED7AA!important;color:#C2410C}
/* 整页（不在弹窗里）分两栏：左 基本信息+跟进，右 成交组+位置 */
@media (min-width:1280px){html body.crm-ui #pageRoot>.lead-detail-page .lead-detail-columns{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}}
/* 色条：基本信息蓝、跟进绿、成交组紫、位置灰 */
html body.crm-ui #pageRoot #leadDetailBasicInfo{border-top:3px solid #3B82F6}
html body.crm-ui #pageRoot .lead-detail-group{border:1px solid #E4E4E7;border-radius:10px;background:#fff;overflow:visible}
html body.crm-ui #pageRoot .lead-detail-followup-group{border-top:3px solid #22A55A}
html body.crm-ui #pageRoot .lead-detail-deal-group{border-top:3px solid #7C5CFC}
html body.crm-ui #pageRoot .lead-detail-group .panel{border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent}
html body.crm-ui #pageRoot .lead-detail-group .panel+.panel,html body.crm-ui #pageRoot .lead-detail-group>.customer-detail-followup-layout+.panel{border-top:1px solid #F0F0F2!important}
html body.crm-ui #pageRoot .lead-location-panel{border-top:3px solid #A1A1AA}
/* 基本信息：缺项橙字＋紫色「补充」常驻；已有值的「修改」悬停或键盘聚焦才出现 */
html body.crm-ui #pageRoot #leadDetailBasicInfo .lead-info-item.is-missing .lead-info-missing{color:#EA580C}
html body.crm-ui #pageRoot #leadDetailBasicInfo .lead-info-item.is-missing [data-edit-lead-info]{color:#7C5CFC;border-color:#C4B5FD}
html body.crm-ui #pageRoot #leadDetailBasicInfo .lead-info-item:not(.is-missing) [data-edit-lead-info]{opacity:0;transition:opacity .12s}
html body.crm-ui #pageRoot #leadDetailBasicInfo .lead-info-item:not(.is-missing):is(:hover,:focus-within) [data-edit-lead-info]{opacity:1}
@media (hover:none){html body.crm-ui #pageRoot #leadDetailBasicInfo .lead-info-item:not(.is-missing) [data-edit-lead-info]{opacity:1}}
}
}}
/* 上面两个 } 补上批3(:335)、批4(:425) 没闭合的 @media(min-width:761px)，与文件结尾自动闭合效果相同；下面的 ≤760 规则必须在所有 min-width 块之外 */
/* ===== UI2 批3 手机端（≤760）：学生档案统计卡包进 .student-stat-group 后，customer-records.css:210-215/:234-235、unified-ui-type.css:378-379 的子选择器不再命中，这里照原样补回 ===== */
@media (max-width:760px){
:is(body.customer-service-role,.city-supervisor-shell) #pageRoot .customer-records-page :is(.student-stat-groups,.student-stat-group){display:contents}
:is(body.customer-service-role,.city-supervisor-shell) #pageRoot .customer-records-page .student-stat-group-head{display:none}
:is(body.customer-service-role,.city-supervisor-shell) #pageRoot .customer-records-page .student-stat-group>.student-archive-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
:is(body.customer-service-role,.city-supervisor-shell) #pageRoot .customer-records-page .student-stat-group>.student-archive-stats .stat{display:flex;align-items:center;gap:7px;min-width:0;min-height:54px;padding:7px 9px}
:is(body.customer-service-role,.city-supervisor-shell) #pageRoot .customer-records-page .student-stat-group>.student-archive-stats .stat-icon{width:24px;height:24px;flex:0 0 24px;font-size:11px}
:is(body.customer-service-role,.city-supervisor-shell) #pageRoot .customer-records-page .student-stat-group>.student-archive-stats .stat>div:last-child{display:flex;align-items:baseline;justify-content:space-between;gap:7px;min-width:0;flex:1}
:is(body.customer-service-role,.city-supervisor-shell) #pageRoot .customer-records-page .student-stat-group>.student-archive-stats .stat small{font-size:11px;line-height:1.35}
:is(body.customer-service-role,.city-supervisor-shell) #pageRoot .customer-records-page .student-stat-group>.student-archive-stats .stat strong{font-size:16px;line-height:1.2;white-space:nowrap}
}
@media (max-width:700px){
:is(body.customer-service-role,.city-supervisor-shell) #pageRoot .customer-records-page .student-stat-group>.student-archive-stats{grid-template-columns:minmax(0,1fr)}
:is(body.customer-service-role,.city-supervisor-shell) #pageRoot .customer-records-page .student-stat-group>.student-archive-stats .stat{min-height:44px;padding:6px 8px}
}
/* ===== CDB 客户详情方案 B：单栏（头部→操作条→基本信息→状态→跟进→历史(折)→库存历史(折)→成交与退费→机构课→派单→地址附近(折)）；锌灰底、紫色只做强调、无阴影、小圆点表示状态 ===== */
html body #pageRoot .lead-detail-stack{flex:1 1 100%;display:grid;grid-template-columns:minmax(0,1fr);gap:10px;min-width:0;align-content:start}
html body #pageRoot .lead-detail-stack>.panel,html body #pageRoot .lead-detail-stack>.panel .panel{margin:0!important;box-shadow:none!important}
html body #pageRoot .lead-detail-stack>.panel{background:#fff!important;border:1px solid #E4E4E7!important;border-radius:10px!important;overflow:visible;min-width:0}
html body #pageRoot .lead-detail-stack .panel-head{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;min-height:0;padding:9px 14px 6px!important;border:0!important;background:transparent!important}
html body #pageRoot .lead-detail-stack .panel-head h2{margin:0;font-size:13px!important;font-weight:700;color:#18181B}
html body #pageRoot .lead-detail-stack .panel-head>span{color:#71717A;font-size:11.5px}
html body #pageRoot .lead-detail-stack .panel-body{padding:2px 14px 12px!important}
/* 头部一行：姓名、状态点、负责人、报价、未跟进、资料 x/7；按钮靠右 */
html body #pageRoot .lead-detail-head-main{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;min-width:0}
html body #pageRoot .lead-detail-head-main{flex:1 1 260px}
html body #pageRoot .lead-detail-head-main h1{max-width:100%;font-size:17px!important;white-space:nowrap;overflow:hidden!important;text-overflow:ellipsis;overflow-wrap:normal!important}
html body #pageRoot .lead-detail-head-summary{display:flex;flex-wrap:wrap;align-items:center;gap:2px 10px;margin:0!important;font-size:12px;color:#71717A}
html body #pageRoot .lead-detail-head-summary .tag{display:inline-flex;align-items:center;gap:5px;margin:0;padding:0!important;border:0!important;background:transparent!important;color:#3F3F46!important;font-size:12px;font-weight:500}
html body #pageRoot .lead-detail-head-summary .tag::before{content:"";width:7px;height:7px;border-radius:50%;background:#A1A1AA;flex:none}
html body #pageRoot .lead-detail-head-summary .tag.green::before{background:#22A55A}
html body #pageRoot .lead-detail-head-summary .tag.red::before{background:#E5484D}
html body #pageRoot .lead-detail-head-summary .tag.amber::before{background:#F5A524}
html body #pageRoot .lead-detail-head-summary .tag.blue::before{background:#7C5CFC}
html body #pageRoot .lead-detail-head-status{display:inline-flex;align-items:center;gap:8px}
html body #pageRoot .lead-detail-info-count{display:inline-flex;align-items:center;gap:5px;color:#3F3F46;cursor:help}
html body #pageRoot .lead-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#F5A524;flex:none;vertical-align:middle}
html body #pageRoot .lead-detail-info-count.is-complete .lead-dot{background:#22A55A}
/* 基本信息属性表：三列「标签｜值」，细线；缺项橙点＋待补＋紫色「补」常驻，有值的「修改」悬停才出现 */
html body #pageRoot #leadDetailBasicInfo{padding:0!important}
html body #pageRoot #leadDetailBasicInfo>.panel-head{align-items:center;padding:9px 14px 6px!important}
html body #pageRoot #leadDetailBasicInfo>.panel-head>span{flex-basis:auto;font-size:11.5px}
html body #pageRoot #leadDetailBasicInfo>.panel-body{padding:2px 14px 12px!important}
/* 详情里不用批4的彩色顶边（示意图：锌灰、无色条） */
html body.crm-ui #pageRoot #leadDetailBasicInfo.panel.lead-detail-block,html body.crm-ui #pageRoot .lead-detail-stack [data-org-customer-orders].panel,html body.crm-ui #pageRoot .lead-detail-stack .lead-location-panel.panel{border-top:1px solid #E4E4E7!important}
html body #pageRoot #leadDetailBasicInfo .panel-head .lead-notes-add{margin-left:auto}
html body #pageRoot .lead-props{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:20px;min-width:0}
html body #pageRoot .lead-props>.lead-prop{position:relative;display:flex;align-items:baseline;gap:8px;min-width:0;min-height:0;margin:0;padding:6px 0;border:0;border-bottom:1px solid #F1F1F3;border-radius:0;background:transparent;font-size:13px;line-height:1.5}
html body #pageRoot .lead-props>.lead-prop.is-wide{grid-column:1/-1}
html body #pageRoot .lead-prop-label{flex:none;width:58px;margin:0!important;color:#71717A!important;font-size:12px!important}
html body #pageRoot .lead-prop-value{flex:1 1 auto;min-width:0;font-weight:500;color:#18181B;overflow-wrap:anywhere}
html body #pageRoot #leadDetailBasicInfo .lead-prop .btn.small[data-copy]{display:inline-block;width:auto!important;min-width:0!important;min-height:0!important;height:auto!important;padding:0 4px!important;margin:0 0 0 5px!important;border:1px solid #E4E4E7!important;border-radius:4px!important;background:#fff!important;color:#71717A!important;font-size:10.5px!important;font-weight:400!important;line-height:16px!important;vertical-align:1px;box-shadow:none!important}
html body #pageRoot .lead-prop-sub{color:#71717A;font-size:11.5px;font-weight:400}
html body #pageRoot .lead-info-missing{white-space:nowrap;display:inline-flex;align-items:center;gap:5px;color:#C98A12!important;font-weight:600}
html body #pageRoot .lead-prop-actions{display:inline-flex;flex:none;gap:6px;margin-left:auto}
html body #pageRoot .lead-info-action{flex:none;margin-left:auto;padding:0 2px;border:0!important;background:transparent!important;color:#7C5CFC!important;font-size:11px;font-weight:600;line-height:1.5;cursor:pointer;height:auto;min-height:0}
html body #pageRoot .lead-prop-actions .lead-info-action{margin-left:0}
html body #pageRoot .lead-props>.lead-prop:not(.is-missing) .lead-info-action:not(.is-plain){opacity:0;transition:opacity .12s}
html body #pageRoot .lead-props>.lead-prop:not(.is-missing):is(:hover,:focus-within) .lead-info-action{opacity:1}
@media (hover:none){html body #pageRoot .lead-props>.lead-prop:not(.is-missing) .lead-info-action{opacity:1}}
html body #pageRoot .lead-info-action.is-plain{color:#71717A!important;font-weight:500}
html body #pageRoot .lead-info-action.is-plain:hover,html body #pageRoot .lead-info-action.lead-notes-add{color:#7C5CFC!important}
/* 企业微信格：占两格，内容和按钮原样 */
html body #pageRoot .lead-props>.lead-detail-work-wechat-cell{grid-column:span 2;display:block;min-width:0;min-height:0;margin:0;padding:6px 0;border:0;border-bottom:1px solid #F1F1F3;border-radius:0;background:transparent}
html body #pageRoot .lead-props>.lead-detail-work-wechat-cell .lead-info-label{display:flex;align-items:baseline;gap:8px;margin:0 0 2px}
html body #pageRoot .lead-props>.lead-detail-work-wechat-cell .lead-info-label small{color:#71717A;font-size:12px}
html body #pageRoot .lead-props>.lead-detail-work-wechat-cell .lead-work-wechat-count{color:#71717A;font-size:11.5px}
html body #pageRoot .lead-props>.lead-detail-work-wechat-cell .lead-work-wechat-immutable{margin:2px 0 0;color:#A1A1AA;font-size:11px}
/* 状态分段（系统七态）＋跟进卡 */
html body #pageRoot .lead-detail-stack>.lead-detail-follow-section{display:grid;gap:10px;padding:0!important;border:0!important;background:transparent!important}
html body #pageRoot .lead-detail-status-card,html body #pageRoot .lead-detail-follow-card{min-width:0;background:#fff;border:1px solid #E4E4E7;border-radius:10px}
html body #pageRoot .lead-detail-status-card{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px;padding:8px 14px}
html body #pageRoot .lead-detail-status-card>b{font-size:13px}
html body #pageRoot .lead-status-seg{display:inline-flex;flex-wrap:wrap;gap:2px;padding:2px;border-radius:8px;background:#F1F1F3;min-width:0}
html body #pageRoot .lead-status-seg>button{border:0;background:transparent;padding:4px 10px;border-radius:6px;color:#3F3F46;font-size:12px;cursor:pointer}
html body #pageRoot .lead-status-seg>button.is-on{background:#fff;color:#18181B;font-weight:600;box-shadow:0 0 0 1px #E4E4E7}
html body #pageRoot .lead-status-seg>button:focus-visible{outline:2px solid #DCD3FE}
html body #pageRoot .lead-detail-status-hint{color:#71717A;font-size:11.5px}
html body #pageRoot .lead-status-select-field{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important}
html body #pageRoot .lead-detail-latest{margin:0 0 10px;padding:8px 11px;border:1px solid #DCD3FE;border-radius:8px;background:#F7F5FF;font-size:13px}
html body #pageRoot .lead-detail-latest-meta{color:#71717A;font-size:11.5px}
html body #pageRoot .lead-detail-latest .tag{margin-left:6px;padding:0 4px;border:1px solid #DCD3FE;border-radius:4px;background:#fff;color:#7C5CFC;font-size:10.5px}
html body #pageRoot .lead-detail-latest p{margin:3px 0 0;color:#3F3F46;white-space:pre-wrap;overflow-wrap:anywhere}
html body #pageRoot #leadDetailFollowForm textarea[name=followupContent]{min-height:130px;resize:vertical}
/* 折叠块：跟进历史、库存历史互动、地址附近信息 */
html body #pageRoot .lead-detail-stack details[data-lead-detail-fold]>summary{list-style:none;cursor:pointer}
html body #pageRoot .lead-detail-stack details[data-lead-detail-fold]>summary::-webkit-details-marker{display:none}
html body #pageRoot .lead-detail-stack details[data-lead-detail-fold]>summary>span::after{content:" ▾"}
html body #pageRoot .lead-detail-stack details[data-lead-detail-fold][open]>summary>span::after{content:" ▴"}
html body #pageRoot .lead-detail-stack details[data-lead-detail-fold]>summary>span{margin-left:auto}
html body #pageRoot .lead-detail-stack>:is(.lead-detail-history,.lead-detail-inventory-history,.lead-detail-nearby){padding:0!important}
html body #pageRoot .lead-detail-nearby-body{display:grid;gap:8px;padding:0 14px 12px}
html body #pageRoot .lead-detail-nearby-body>.panel{border:1px solid #F1F1F3!important;border-radius:8px!important;background:#fff}
html body #pageRoot .lead-detail-nearby-body .lead-location-panel{border-top:1px solid #F1F1F3!important}
html body #pageRoot .lead-detail-stack .table-wrap{max-width:100%;overflow-x:auto}
/* ≤760：属性表两列；企业微信、备注整行；390 宽不横滑 */
@media (max-width:760px){
html body #pageRoot .lead-props{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row dense;column-gap:14px}
html body #pageRoot .lead-props>.lead-detail-work-wechat-cell{grid-column:1/-1}
html body #pageRoot .lead-prop-label{width:52px}
html body #pageRoot .lead-props>.lead-prop{flex-wrap:wrap;gap:2px 8px}
html body #pageRoot .lead-props>.lead-prop.lead-prop-school{grid-column:1/-1}
}

/* ===== UIB（11-15）：老板/主管换皮页、行政/HRBP/流量/派单残留、1440 宽表提示。只改外观，不改 DOM/class/文字；只在 ≥761 生效。停点 1：~/交接/2026-11-15-锐兴-UIB-停点1.md ===== */
/* 横滑表右缘渐隐的宽度：滚到最右时变 0；表不需要横滑时滚动时间线不生效，保持初值 0（不渐隐） */
@property --uib-fade{syntax:"<length>";inherits:false;initial-value:0px}
@keyframes uib-fade{from{--uib-fade:36px}to{--uib-fade:0px}}
@media (min-width:761px){
/* —— 表格宽度（停点 1 第一节）—— */
/* 超出 ≤140px 的三种表塞进卡片：我的日报（app.js:3927 行内 min-width:1280px，只此页用）、成交与退费营收表、今日待办（index.html:14 全局 table min-width:760px） */
html body.crm-ui #pageRoot .table-wrap>table[style*="min-width:1280px"]{min-width:0!important}
html body.crm-ui #pageRoot :is(.deal-revenue-table,#todayCompactTasks) .table-wrap>table{min-width:0!important}
html body.crm-ui #pageRoot .deal-revenue-table .table-wrap>table :is(th,td){padding-left:8px;padding-right:8px}
/* 其余横滑表：滚动条常显（Mac 默认隐藏，用户看不出能滑），右缘淡渐隐提示右边还有内容；有右侧粘住操作列（.g-stick）的表不渐隐（会盖住操作按钮），改在粘列左边加一道细阴影 */
html body.crm-ui #pageRoot :is(.table-wrap,.lead-sheet-wrap)::-webkit-scrollbar{width:8px;height:8px}
html body.crm-ui #pageRoot :is(.table-wrap,.lead-sheet-wrap)::-webkit-scrollbar-track{background:#FAFAFA}
html body.crm-ui #pageRoot :is(.table-wrap,.lead-sheet-wrap)::-webkit-scrollbar-thumb{background:#D4D4D8;border-radius:4px}
html body.crm-ui #pageRoot :is(.table-wrap,.lead-sheet-wrap)::-webkit-scrollbar-thumb:hover{background:#A1A1AA}
@supports (animation-timeline:scroll()){
html body.crm-ui #pageRoot :is(.table-wrap,.lead-sheet-wrap):not(:has(.g-stick,.c-op)){animation:uib-fade linear both;animation-timeline:scroll(self inline);-webkit-mask-image:linear-gradient(to right,#000 calc(100% - var(--uib-fade)),transparent);mask-image:linear-gradient(to right,#000 calc(100% - var(--uib-fade)),transparent)}
}
/* —— 共用数字和弱化色（A11、A12）：旧深藏青/灰蓝写死在 crm-ui.css:218、crm-components.css:8/30、crm-ui.css:261/263 —— */
html body.crm-ui #pageRoot td b:not([class]){color:#18181B}
html body.crm-ui #pageRoot .stat strong:not([class]){color:#18181B}
html body.crm-ui #pageRoot .stat.g-zero strong{color:#A1A1AA}
html body.crm-ui #pageRoot .boss-dashboard-heading p{color:#71717A}
html body.crm-ui #pageRoot .btn.is-zero{color:#A1A1AA;border-color:#E4E4E7;background:#FAFAFA}
html body.crm-ui #pageRoot .table-wrap .btn.is-zero{color:#A1A1AA;background:transparent;border-color:transparent}
html body.crm-ui #pageRoot :is(.metric-row,.boss-supervisor-lead,.boss-supervisor-grid .done){background:#FAFAFA}
/* —— 老板经营看板：HRBP 异常摘要四块（crm-components .admin-task）去彩色底，标题前圆点 —— */
html body.crm-ui #pageRoot .admin-task-grid>.admin-task{background:#fff!important;border:1px solid #E4E4E7!important}
html body.crm-ui #pageRoot .admin-task-grid>.admin-task>b::before{content:"";display:inline-block;width:6px;height:6px;margin-right:8px;border-radius:50%;background:var(--dot-gray);vertical-align:middle}
html body.crm-ui #pageRoot .admin-task-grid>.admin-task.danger>b::before{background:var(--dot-red)}
html body.crm-ui #pageRoot .admin-task-grid>.admin-task.warn>b::before{background:var(--dot-amber)}
/* —— 选中态统一浅紫（照本文件 :126）：主管经营跟进主管卡、学生档案统计卡和业务状态卡、HRBP 页签、回访页签、成交明细信息费/机构课切换 —— */
html body.crm-ui #pageRoot :is(.service-scope-button.active,.student-archive-stats .stat.active,.student-drilldown-card.active,.hrbp-workbench-tabs>button.active,.old-customer-visit-tab.active,.customer-records-tabs>button[aria-pressed="true"]){background:#F7F5FF!important;border-color:#DCD3FE!important;color:#7C5CFC!important;box-shadow:none!important}
html body.crm-ui #pageRoot :is(.service-scope-button.active,.student-archive-stats .stat.active,.student-drilldown-card.active,.hrbp-workbench-tabs>button.active) :is(b,strong){color:#18181B!important}
html body.crm-ui #pageRoot .old-customer-visit-tab:hover:not(.active){color:#7C5CFC;background:#F7F5FF}
/* —— 表格行内亮蓝链接 → 紫（照 :121 只统一颜色）：学生档案、老客户回访；线索表格只改亮蓝按钮链接（D13 渠道标签和状态胶囊不动） —— */
html body.crm-ui #pageRoot :is(.student-customer-link,.student-teacher-link,.customer-records-student-name,.old-customer-visit-name-button:not(:disabled),.lead-sheet-link){color:#7C5CFC!important}
html body.crm-ui #pageRoot :is(.lead-sheet-add-button,.lead-sheet-follow-edit){color:#7C5CFC;border-color:#DCD3FE}
html body.crm-ui #pageRoot .lead-sheet-add-button{background:#F7F5FF}
html body.crm-ui #pageRoot .lead-sheet-follow-edit:is(:hover,:focus-visible){background:#F7F5FF}
/* —— 老客户回访统计条（city-supervisor.css:302）：白底细边、数字近黑、说明前圆点（照 :203/:220） —— */
html body.crm-ui #pageRoot .visit-summary-card{border-color:#E4E4E7!important;color:#18181B!important;background:#fff!important}
html body.crm-ui #pageRoot .visit-summary-card>b{color:#18181B!important;font-weight:650!important}
html body.crm-ui #pageRoot .visit-summary-card>span{color:#3F3F46;font-weight:500}
html body.crm-ui #pageRoot .visit-summary-card>span::before{content:"";display:inline-block;width:6px;height:6px;margin-right:6px;border-radius:50%;background:var(--dot-gray);vertical-align:middle}
html body.crm-ui #pageRoot .visit-summary-card.visit-tone-overdue>span::before{background:var(--dot-red)}
html body.crm-ui #pageRoot .visit-summary-card.visit-tone-today>span::before{background:var(--dot-amber)}
html body.crm-ui #pageRoot .visit-summary-card.visit-tone-refund>span::before{background:var(--dot-info)}
html body.crm-ui #pageRoot .visit-summary-card.active{outline:2px solid #7C5CFC;outline-offset:-2px}
/* —— 客户分析漏斗（crm-ui.css:73 亮蓝）→ 紫色阶；环形图分类色保留 —— */
html body.crm-ui #pageRoot .cohort-funnel-stage{background:#7C5CFC!important}
html body.crm-ui #pageRoot .cohort-funnel-row:nth-child(2) .cohort-funnel-stage{background:#9479FD!important}
html body.crm-ui #pageRoot .cohort-funnel-row:nth-child(3) .cohort-funnel-stage{background:#AC97FD!important}
html body.crm-ui #pageRoot .cohort-funnel-row:nth-child(n+4) .cohort-funnel-stage{background:#C4B5FE!important;color:#18181B!important}
/* —— 成交明细 —— */
html body.crm-ui #pageRoot .boss-deals-faithful .customer-records-query{background:#fff!important;border:1px solid #E4E4E7!important;border-radius:10px!important}
html body.crm-ui #pageRoot .boss-deals-faithful .customer-records-query>label{color:#18181B}
html body.crm-ui #pageRoot .customer-records-feedback.is-error{background:#FAFAFA!important;color:#3F3F46!important;border:1px solid #E4E4E7!important;border-radius:10px}
html body.crm-ui #pageRoot .customer-records-feedback.is-error::before{content:"";display:inline-block;width:6px;height:6px;margin-right:8px;border-radius:50%;background:var(--dot-red);vertical-align:middle}
html body.crm-ui #pageRoot .boss-deal-ranking-card .panel-head small{color:#71717A}
html body.crm-ui #pageRoot .boss-deal-rank-number{background:transparent!important;color:#71717A!important;font-weight:600}
html body.crm-ui #pageRoot tr:first-child>td>.boss-deal-rank-number{color:#7C5CFC!important}
/* —— 派单工具（老板/主管/客服共用组件，customer-service.css:525-536） —— */
html body.crm-ui #pageRoot .pdtab-entry{background:#fff!important;border-color:#E4E4E7!important;color:#3F3F46!important}
html body.crm-ui #pageRoot:has(>#page-dispatch.dispatch-host-toolbar) .dispatch-bucket-count{background:transparent!important;color:#18181B!important;border-radius:0!important;padding:0 2px!important}
html body.crm-ui #pageRoot:has(>#page-dispatch.dispatch-host-toolbar) .dispatch-bucket-count:is(.within2,.within7,.over7)::before{content:"";display:inline-block;width:6px;height:6px;margin-right:4px;border-radius:50%;vertical-align:middle;background:var(--dot-ok)}
html body.crm-ui #pageRoot:has(>#page-dispatch.dispatch-host-toolbar) .dispatch-bucket-count.within7::before{background:var(--dot-amber)}
html body.crm-ui #pageRoot:has(>#page-dispatch.dispatch-host-toolbar) .dispatch-bucket-count.over7::before{background:var(--dot-red)}
html body.crm-ui #pageRoot:has(>#page-dispatch.dispatch-host-toolbar) #dispatchPendingRows td[class^=dispatch-age-]{color:#18181B}
html body.crm-ui #pageRoot:has(>#page-dispatch.dispatch-host-toolbar) #dispatchPendingRows td.dispatch-age-within2::before{background:var(--dot-ok)}
html body.crm-ui #pageRoot:has(>#page-dispatch.dispatch-host-toolbar) #dispatchPendingRows td.dispatch-age-within7::before{background:var(--dot-amber)}
html body.crm-ui #pageRoot:has(>#page-dispatch.dispatch-host-toolbar) #dispatchPendingRows td.dispatch-age-over7::before{background:var(--dot-red)}
html body.crm-ui #pageRoot td .btn.small.danger{border-color:#E4E4E7!important}
/* —— HRBP 工作台「今日必须完成」四格：标题数字近黑，序号前圆点（完成绿、待补橙） —— */
html body.crm-ui #pageRoot .hrbp-workbench-task>b{color:#18181B!important}
html body.crm-ui #pageRoot .hrbp-workbench-task:is(.complete,.warn)>small::before{content:"";display:inline-block;width:6px;height:6px;margin-right:6px;border-radius:50%;background:var(--dot-ok);vertical-align:middle}
html body.crm-ui #pageRoot .hrbp-workbench-task.warn>small::before{background:var(--dot-amber)}
html body.crm-ui #pageRoot .hrbp-metric-grid{border-color:#E4E4E7!important}
html body.crm-ui #pageRoot .hrbp-metric-card>small{color:#71717A!important}
/* —— 行政今日督办（admin-supervision.css:1 旧色写死） —— */
html body.crm-ui #pageRoot .admin-supervision{color:#18181B}
html body.crm-ui #pageRoot :is(.admin-help,.admin-subtitle,.admin-note,.admin-people-filters,.admin-task-filters){color:#71717A}
html body.crm-ui #pageRoot .admin-note{background:#FAFAFA;border-top-color:#E4E4E7}
html body.crm-ui #pageRoot .admin-help summary{color:#7C5CFC}
/* —— 流量运营录入线索（crm-ui.css:86） —— */
html body.crm-ui #trafficPaste{border-color:#E4E4E7}
}
