/* 设计原则（2026-11-09 用户从三套风格里选定，不要再改回白底黑按钮的极简风）：
   国产企业软件的样子，对标企业微信、钉钉后台。浅灰底上放白色面板，品牌蓝 #1664ff 做主按钮、选中态和主要数字，
   内容排得紧，表头有底色，状态带颜色。圆角 4px 为主，弹窗和卡片 8px。
   字重：正文 400，按钮和导航 500，标题 600。 */
/* 开通进度分三段 */
.stage { padding: 12px 0; border-top: 1px solid var(--line); }
.stage:first-of-type { border-top: 0; padding-top: 0; }
.stage h3 { margin-bottom: 4px; }
.stage.done h3 { color: var(--text-3); }
/* 随系统打包的思源黑体（Noto Sans SC 可变字体，裁到 GB2312 加项目用字，OFL 授权见 fonts/OFL.txt），
   保证没装这套字体的电脑看到的也一样。swap：字体下载完之前先用系统字显示，不白屏。 */
@font-face {
  font-family: "XG Sans SC";
  src: url("fonts/NotoSansSC-sub.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
:root {
  /* 11-07 再调：辅助字深一档（原来太淡，整页发虚）；侧栏改浅色，不再黑白硬对比 */
  /* 2026-11-09 用户选定 A：国产企业软件风格（对标企业微信、钉钉后台） */
  --canvas: #f2f3f5; --bg: #fff; --bg-2: #f7f8fa; --bg-3: #e8ebf0; --text: #1d2129; --text-2: #4e5969; --text-3: #667080;
  --line: #e5e6eb; --line-2: #c9cdd4;
  --ink: #1664ff; --rail: #fff; --rail-2: #f2f3f5; --rail-text: #4e5969;
  --dark: #141518; --dark-2: #26282c; --dark-text: #a3a6ad;
  --blue: #1664ff; --blue-dark: #0e4fd1; --blue-bg: #e8f0ff; --blue-soft: #f5f8ff;
  --red: #b42318; --red-bg: #fdf2f1; --orange: #9a5b00; --orange-bg: #fdf6ea; --green: #22703a; --green-bg: #eff7f1;
  --wx-bg: #ededed; --wx-self: #95ec69;
  /* 中文统一用打包的思源黑体（可变字体，能用 500 这种中间字重）；拉丁字母先用系统 UI 字体 */
  --font: "Segoe UI Variable Text", "XG Sans SC", -apple-system, BlinkMacSystemFont, "Noto Sans SC", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --num: "Segoe UI Variable Display", -apple-system, "SF Pro Display", "Segoe UI", var(--font);
  --bar: 56px;
  --r: 4px;
  --pop: 0 1px 2px rgba(16,17,20,.06), 0 8px 24px rgba(16,17,20,.10);
  --gutter: 32px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--text); font: 14px/22px var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 26px; font-weight: 650; line-height: 34px; letter-spacing: .3px; }
h2 { font-size: 15px; font-weight: 600; line-height: 22px; }
h3 { font-size: 14px; font-weight: 600; line-height: 22px; }
b, strong { font-weight: 600; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
/* 焦点框不改元素自己的圆角（原来写了 border-radius:2px，输入框一聚焦就变方角）；输入框有自己的焦点环，不再套一层 */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 0; }
::selection { background: rgba(44,79,143,.16); }
* { scrollbar-width: thin; scrollbar-color: #d4d5d8 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #d4d5d8; border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background-color: #b9babe; }
::-webkit-scrollbar-track { background: transparent; }

#bar { position: fixed; inset: 0 0 auto 0; height: 2px; background: var(--ink); z-index: 50; transform: scaleX(0); transform-origin: left; }
#bar.on { transform: scaleX(.8); transition: transform 8s cubic-bezier(.1,.7,.2,1); }

/* 外壳：深色导航通顶，顶栏只占内容列 */
.shell { display: grid; grid-template: "side bar" var(--bar) "side main" 1fr / 216px minmax(0, 1fr); min-height: 100dvh; }
.appbar { grid-area: bar; position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 0 var(--gutter); background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 15px; font-weight: 600; flex: none; }
.brand:hover { color: var(--text); }
.appbar .brand { display: none; }
.logo { width: 26px; height: 26px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 14px; line-height: 26px; text-align: center; font-weight: 600; flex: none; box-shadow: inset 0 -2px 0 rgba(255,255,255,.08); }
.orgname { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.demo-tag { flex: none; background: var(--orange-bg); color: var(--orange); }
.barsearch { margin-left: auto; width: 260px; flex: 0 1 260px; min-width: 120px; }
.barsearch { position: relative; }
.barsearch input { height: 32px; background: var(--bg-2); border-color: transparent; padding-right: 56px; }
.barsearch kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 500 11px/18px var(--num); color: var(--text-3); background: var(--bg); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 5px; pointer-events: none; }
.barsearch input:focus + kbd { display: none; }
.barsearch input:hover { border-color: var(--line-2); }
.barsearch input:focus { background: var(--bg); }
.bell { position: relative; display: flex; color: var(--text-2); padding: 7px; border-radius: var(--r); flex: none; }
.bell:hover { background: var(--bg-2); color: var(--text); }
.bell .ico { width: 18px; height: 18px; }
.bell .count { position: absolute; top: 1px; right: -2px; }
.usermenu { position: relative; flex: none; }
.usermenu summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; padding: 4px 8px 4px 4px; border-radius: var(--r); }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover { background: var(--bg-2); }
.usermenu .role { color: var(--text-3); font-size: 12px; }
.usermenu .menu { position: absolute; right: 0; top: calc(100% + 6px); width: 160px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 4px; z-index: 30; box-shadow: var(--pop); }
.usermenu .menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 7px 10px; border-radius: 4px; cursor: pointer; color: var(--text); }
.usermenu .menu button:hover { background: var(--bg-2); }
/* 头像：中性灰底，不按人上五种颜色 */
.av { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-3); color: var(--text-2); font-size: 12px; font-weight: 600; flex: none; }
.av.a0, .av.a1, .av.a2, .av.a3, .av.a4 { background: var(--bg-3); }
.appbar .av, .usermenu .av { background: var(--ink); color: #fff; }
.who-cell { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }

/* 侧栏：浅灰底加一条细线，选中项是白底带细边和极轻投影，像一张压在纸上的签 */
.side { grid-area: side; background: var(--rail); color: var(--rail-text); padding: 0 10px 12px; position: sticky; top: 0; height: 100dvh; overflow-y: auto; scrollbar-width: none; border-right: 1px solid var(--line); }
.side .brand { color: var(--text); height: var(--bar); padding: 0 10px; margin-bottom: 6px; }
.side h6 { margin: 20px 10px 6px; font-size: 12px; font-weight: 500; color: var(--text-3); letter-spacing: .5px; }
.side nav a { display: flex; justify-content: space-between; align-items: center; height: 34px; padding: 0 10px; border-radius: 6px; color: var(--rail-text); margin-bottom: 2px; border: 1px solid transparent; }
.side nav a .ico { color: var(--text-3); }
.side nav a:hover { background: var(--rail-2); color: var(--text); }
.side nav a.on { background: var(--bg); color: var(--text); font-weight: 500; border-color: var(--line); box-shadow: 0 1px 2px rgba(16,17,20,.05); }
.side nav a.on .ico { color: var(--text); }
.count { background: var(--red); color: #fff; font-size: 11px; line-height: 16px; min-width: 16px; padding: 0 5px; text-align: center; border-radius: 8px; font-weight: 600; font-family: var(--num); font-variant-numeric: tabular-nums; }
.side .count { background: var(--bg-3); color: var(--text-2); }
.side nav a.on .count { background: var(--ink); color: #fff; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--blue); cursor: pointer; white-space: nowrap; }
.linkbtn:hover { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:disabled { color: var(--text-3); cursor: default; text-decoration: none; }
.linkbtn.gray { color: var(--text-2); }
.linkbtn.gray:hover { color: var(--text); }
.main { grid-area: main; min-width: 0; background: var(--bg); }
.notice { padding: 7px var(--gutter); font-size: 13px; color: var(--orange); background: var(--orange-bg); }
.tabbar { display: none; }
/* 宽屏上内容列居中，不再贴左、右边空一大片；长段文字另有行宽上限，太长读不动 */
.page { padding: 0 var(--gutter) 64px; max-width: 1280px; margin-inline: auto; }
.page p.pre, .page .verdict p, .page .empty p, .page .lead p { max-width: 46em; }
/* 换页时内容轻轻浮上来，不是硬闪 */
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.page > * { animation: rise .18s ease-out both; }
dialog[open] { animation: rise .16s ease-out; }
@media (prefers-reduced-motion: reduce) { .page > *, dialog[open] { animation: none; } }

/* 页头：标题本身就是层次，不再单独做一条白色横栏 */
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 32px 0 20px; min-height: 0; }
.head p { color: var(--text-3); font-size: 13px; margin-top: 4px; }
.head > .row { flex: none; flex-wrap: nowrap; }
.crumb { font-size: 13px; color: var(--text-3); display: block; margin-bottom: 6px; }
.crumb a { color: var(--text-2); }
.crumb a:hover { color: var(--text); }
.crumb i { font-style: normal; margin: 0 6px; color: var(--line-2); }

/* 区块：不加框，靠上方一条淡线和留白隔开；小标题就是一行字 */
section, .page > .scroll, .guide, .briefbox { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 24px 0 28px; margin: 0; }
/* 紧跟页头或标签栏的第一块不再画线，免得和标签底线叠成双线 */
.head + section, .tabs + section, .head + .scroll, .tabs + .scroll, .head + .briefbox { border-top: 0; padding-top: 16px; }
.head + .tabs, .head + .pagetabs { margin-top: -4px; }
section section { border: 0; padding: 0; margin-bottom: 20px; }
section section:last-child { margin-bottom: 0; }
.panel-head, section > .between:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 14px; padding: 0; background: none; border: 0; }
section > h2:first-child { margin: 0 0 14px; padding: 0; background: none; border: 0; }
section > h2 { margin-bottom: 12px; }
section > .between:first-child:last-child { margin-bottom: 0; }
section section > h2:first-child, section section > .between:first-child { margin: 0 0 10px; }
.sub { color: var(--text-3); font-weight: 400; font-size: 13px; margin-left: 8px; font-variant-numeric: tabular-nums; }
.gray { color: var(--text-2); } .light { color: var(--text-3); } .sm { font-size: 13px; } .xs { font-size: 12px; }
.red { color: var(--red); } .green { color: var(--green); } .orange { color: var(--orange); }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.mt { margin-top: 8px; } .mt2 { margin-top: 12px; } .mb { margin-bottom: 12px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.between { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; }
.grow { flex: 1 1 180px; min-width: 0; width: auto; }
.none { color: var(--text-3); padding: 32px 0; text-align: center; }
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
/* 标签：浅底无边框的小方块，不做胶囊 */
.tag { display: inline-block; padding: 0 6px; height: 20px; line-height: 20px; background: var(--bg-3); color: var(--text-2); border-radius: 4px; font-size: 12px; white-space: nowrap; font-weight: 400; vertical-align: 1px; }
.tag.blue { background: var(--blue-bg); color: var(--blue-dark); }
.tag.red { background: var(--red-bg); color: var(--red); }
/* “演示数据，均为虚构”是合规声明，必须是醒目的橙色；写在 .tag 之后，免得被灰色盖掉 */
.tag.demo-tag { background: var(--orange-bg); color: var(--orange); font-weight: 500; }
/* 空状态：说清现在的情况、能做什么，给一个入口 */
.empty { padding: 48px 0 56px; text-align: left; max-width: 560px; }
.empty h2 { font-size: 16px; }
.empty p { color: var(--text-2); margin-top: 6px; }
.empty .row { margin-top: 16px; }

/* 控件 */
.btn { background: var(--bg); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r); padding: 0 14px; height: 32px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; font-weight: 500; box-shadow: 0 1px 1px rgba(16,17,20,.04); transition: background .12s, border-color .12s; }
.btn:hover { background: var(--bg-2); color: var(--text); border-color: #c9cace; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 500; }
.btn.primary:hover { background: #34363b; border-color: #34363b; color: #fff; }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: var(--red-bg); color: var(--red); border-color: #e7b4ae; }
.btn:disabled { opacity: .5; cursor: default; }
summary.btn { list-style: none; width: fit-content; }
summary.btn::-webkit-details-marker { display: none; }
details[open] > summary.btn { display: none; }
input, textarea, select { background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r); padding: 5px 10px; width: 100%; transition: border-color .12s, box-shadow .12s; }
input, select { height: 34px; }
input[type=checkbox], input[type=radio] { width: auto; height: auto; accent-color: var(--ink); }
textarea { resize: vertical; display: block; line-height: 22px; }
input:hover, textarea:hover, select:hover { border-color: #c9cace; }
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(44,79,143,.14); }
::placeholder { color: var(--text-3); }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.field em { font-style: normal; font-weight: 400; color: var(--text-3); font-size: 12px; margin-left: 6px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 16px; }
.check { display: flex; gap: 8px; align-items: flex-start; padding: 3px 0; }
.check input { margin-top: 5px; flex: none; }
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 4px; overflow-x: auto; }
.tabs button, .tabs a { background: none; border: 0; border-bottom: 2px solid transparent; padding: 0 0 10px; margin-bottom: -1px; cursor: pointer; color: var(--text-3); white-space: nowrap; }
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs .on { color: var(--text); border-bottom-color: var(--ink); font-weight: 500; }
.tabs .on:hover { color: var(--text); }
.tabs .n { color: var(--text-3); margin-left: 5px; font-weight: 400; font-size: 12px; font-family: var(--num); font-variant-numeric: tabular-nums; }

/* 指标：一行数字，竖线隔开；不画格子，排不满也不留灰洞 */
.metrics { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 20px 0; padding: 4px 0 28px; margin: 0; background: none; border: 0; }
.metric { background: none; padding: 0 24px; min-width: 0; border-left: 1px solid var(--line); }
.metric:first-child { padding-left: 0; border-left: 0; }
.metric > span:first-child { display: block; font-size: 13px; color: var(--text-2); font-weight: 500; }
.metric b { display: block; font-family: var(--num); font-size: 32px; line-height: 40px; font-weight: 600; margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -.6px; }
/* 第二排是培养类的数，字小一号，主次分开 */
.metrics-sm { padding-top: 22px; border-top: 1px solid var(--line); }
.metrics-sm .metric b { font-size: 22px; line-height: 30px; letter-spacing: -.3px; margin-top: 4px; }
.mbar { display: block; height: 3px; background: var(--bg-3); border-radius: 2px; margin: 8px 0 2px; max-width: 160px; overflow: hidden; }
.mbar i { display: block; height: 100%; background: var(--text); border-radius: 2px; }
.metric.bad .mbar i { background: var(--red); }
.metric b i { font-style: normal; font-family: var(--font); font-weight: 400; font-size: 13px; color: var(--text-3); margin-left: 4px; letter-spacing: 0; }
.metric small { display: block; font-size: 12px; line-height: 18px; color: var(--text-3); margin-top: 2px; overflow-wrap: anywhere; }
.metric small a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.metric.bad b { color: var(--red); }

/* 工作台 */
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0 48px; align-items: start; }
.kv > div { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; font-family: var(--num); font-weight: 600; font-variant-numeric: tabular-nums; }
.dl-reset { margin: 0; }
.checklist li { padding: 5px 0; color: var(--text-3); display: flex; gap: 8px; }
.checklist li::before { content: "○"; color: var(--line-2); flex: none; }
.checklist li.done::before { content: "✓"; color: var(--green); }

/* 待办：左边类别图标，右边一个箭头；整行可点，悬停时整行微微变灰 */
.todo-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) 16px; gap: 14px; align-items: center; padding: 11px 10px; margin: 0 -10px; border-radius: 8px; color: var(--text); position: relative; }
.todo-row + .todo-row::before { content: ""; position: absolute; left: 56px; right: 10px; top: 0; border-top: 1px solid var(--line); }
.todo-row:hover { color: var(--text); background: var(--bg-2); }
.todo-row:hover::before, .todo-row:hover + .todo-row::before { border-color: transparent; }
.todo-ico { width: 32px; height: 32px; border-radius: 8px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; color: var(--text-2); }
.todo-row:hover .todo-ico { background: var(--bg); }
.todo-ico .ico { width: 16px; height: 16px; }
.todo-t { font-weight: 500; min-width: 0; }
.todo-row small { display: block; color: var(--text-3); font-size: 12px; line-height: 18px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { color: var(--line-2); transition: color .12s, transform .12s; }
.todo-row:hover .chev { color: var(--text-2); transform: translateX(2px); }

/* 列表和表格 */
.list > li, .list > a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); color: inherit; }
.list > li:last-child, .list > a:last-child { border-bottom: 0; }
.list > a:hover { color: var(--blue); }
.list > li.between { display: flex; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th { text-align: left; font-weight: 400; color: var(--text-3); font-size: 12px; padding: 0 12px 8px; background: none; border: 0; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td:first-child > a, .who-cell a { font-weight: 500; color: var(--text); }
tr.go { cursor: pointer; }
tr.go:hover td { background: var(--blue-soft); }
tr.go:hover td:first-child > a, tr.go:hover .who-cell a { color: var(--blue); }
th.r, td.r { text-align: right; }
/* 列少的表不铺满整页：三列拉到 1000px 宽，眼睛要横跨半个屏幕才能对上一行 */
table.fit { width: auto; min-width: min(560px, 100%); }
/* 图标按钮：悬停行时才显示；触屏没有悬停，就一直显示 */
.iconbtn { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; color: var(--text-3); cursor: pointer; vertical-align: middle; opacity: 0; transition: opacity .12s, background .12s; }
.iconbtn .ico { width: 15px; height: 15px; }
.iconbtn:hover { background: var(--bg-3); color: var(--text); }
.iconbtn:focus-visible { opacity: 1; }
.kvrow:hover .iconbtn, .promises li:hover .iconbtn, .facts > div:hover .iconbtn { opacity: 1; }
@media (hover: none) { .iconbtn { opacity: 1; width: 36px; height: 36px; } }
.btn.small { height: 26px; padding: 0 10px; font-size: 13px; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; font-weight: 600; }
/* 约定：一行一件，右边“做了”和作废，不再在正文下面平铺四个文字链 */
.promises li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.promises li:last-child { border-bottom: 0; }
.promises .pr-act { display: flex; align-items: center; gap: 2px; flex: none; }
/* 客户资料：字段和值两列对齐，修改和删除收进行尾图标 */
.facts { margin: 8px 0 0; }
.facts > div { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 0 10px; align-items: baseline; padding: 5px 0; font-size: 13px; }
.facts dt { color: var(--text-3); }
.facts dd { margin: 0; }
.facts .f-act { display: flex; }
/* 标签栏和右侧的筛选下拉放在同一行 */
.tabs-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.tabs-row .tabs { border-bottom: 0; margin-bottom: 0; }
.tabs-row select { width: auto; min-width: 128px; height: 30px; margin-bottom: 6px; }
table.fit td, table.fit th { padding-right: 40px; }
table.fit td:last-child, table.fit th:last-child { padding-right: 0; }
td.r { font-family: var(--num); white-space: nowrap; }
.c-next { width: 28%; }
.scroll { overflow-x: auto; }
.tablefoot { color: var(--text-3); font-size: 12px; padding-top: 12px; }
.todo > a { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
/* 结论条：一道墨色竖线压住左边，不再整块黑底 */
.first { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 4px 0 4px 18px; background: none; color: var(--text); border-left: 3px solid var(--ink); border-radius: 0; margin: 4px 0 28px; }
.first a:not(.btn) { color: var(--blue); }
.first small { color: var(--text-3); }
/* 结论条里的按钮降为次要，页面只留页头一个主按钮 */
.first .btn.primary { background: var(--bg); border-color: var(--line-2); color: var(--text); font-weight: 500; }
.first .btn.primary:hover { background: var(--bg-2); border-color: #c9cace; color: var(--text); }
.first small { display: inline; font-size: 13px; margin-left: 8px; }
.verdict { padding: 2px 0 2px 18px; align-items: center; }
.verdict h2 { font-size: 18px; line-height: 28px; }
.verdict p { color: var(--text-2); font-size: 14px; line-height: 22px; margin-top: 2px; max-width: 760px; }
/* 首页结论：一句标题，下面是能点的几件事，用细竖线隔开，不再是一长段分号 */
.lead { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 2px 0 28px; }
.lead h2 { font-size: 20px; line-height: 28px; font-weight: 600; }
.lead p { margin-top: 8px; color: var(--text-2); }
.lead-list { display: flex; flex-wrap: wrap; margin-top: 10px; row-gap: 6px; }
.lead-list li { display: flex; align-items: center; font-size: 14px; }
.lead-list li + li::before { content: ""; width: 1px; height: 12px; background: var(--line-2); margin: 0 14px; }
.lead-list a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.lead-list a:hover { color: var(--text); text-decoration-color: var(--text-2); }
.lead-list a.bad { color: var(--red); text-decoration-color: rgba(180,35,24,.3); font-weight: 500; }
.pagetabs { margin-top: 0; margin-bottom: 8px; }
.stat-line { color: var(--text-2); font-size: 13px; }
.stat-line b { color: var(--text); font-family: var(--num); }

/* 状态：小圆点加文字 */
.st { font-size: 13px; white-space: nowrap; color: var(--text-2); }
.st::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); margin-right: 7px; vertical-align: 2px; }
.st.ok { color: var(--text); } .st.ok::before { background: var(--green); }
.st.warn { color: var(--text); } .st.warn::before { background: #c98a12; }
.st.bad { color: var(--red); } .st.bad::before { background: var(--red); }
.st.blue { color: var(--text); } .st.blue::before { background: var(--blue); }
.meta { font-size: 12px; color: var(--text-3); line-height: 18px; }
.src { border-left: 2px solid var(--line-2); padding: 2px 10px; color: var(--text-2); font-size: 13px; margin-top: 6px; overflow-wrap: anywhere; }
.alert { padding: 9px 12px; border-radius: var(--r); font-size: 13px; margin-top: 8px; border: 0; }
.alert.block { background: var(--red-bg); color: var(--red); }
.alert.escalate, .alert.warn { background: var(--orange-bg); color: var(--orange); }
.alert.info { background: var(--bg-2); color: var(--text-2); }
.alert.good { background: var(--green-bg); color: var(--green); }
.alert.hit { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; border-left: 3px solid currentColor; }
.alert.hit .ico { width: 16px; height: 16px; margin-top: 2px; }
.alert.hit b { font-weight: 600; }

/* 打法库 */
.pb { display: grid !important; grid-template-columns: 76px minmax(0, 1fr); gap: 0 12px; padding: 16px 0 !important; }
.pb-type { padding-top: 1px; }
.logic { margin-top: 8px; }
.logic > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 12px; padding: 3px 0; }
.logic > div > span { font-size: 13px; color: var(--text-3); }
.logic li { padding: 1px 0; }
.logic li b { font-weight: 400; color: var(--text-2); }
.logic li i { font-style: normal; color: var(--text-3); margin: 0 6px; }
.logic .avoid > span, .logic .avoid p { color: var(--red); }
.pb .between > .row { flex: none; flex-wrap: nowrap; }

/* 步骤 */
.steps { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--text-3); margin: 0 0 20px; background: none; border: 0; padding: 0; }
.steps i { font-style: normal; color: var(--line-2); }
.steps .on { color: var(--text); font-weight: 600; }
.steps .done { color: var(--text-2); }

/* 客户工作区：客户列表 / 聊天和分析 / 跟进和档案。各栏独立滚动，靠细线分开 */
.judge { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 14px; padding: 6px 0; }
.judge > span { color: var(--text-3); font-size: 13px; }
.draft { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.draft.block { background: var(--red-bg); border-color: #f3d3cf; }
.draft .text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 25px; font-size: 15px; }
.minis > li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.minis > li:last-child { border-bottom: 0; }
.score5 div { display: grid; grid-template-columns: 56px 1fr 18px; gap: 10px; align-items: center; padding: 4px 0; font-size: 13px; }
.score5 span:first-child { color: var(--text-2); }
.score5 span:last-child { font-family: var(--num); text-align: right; color: var(--text-2); }
.bar { height: 4px; background: var(--bg-3); overflow: hidden; display: block; border-radius: 2px; }
.bar i { display: block; height: 100%; background: var(--text); border-radius: 2px; }
.bar i.low { background: #c98a12; }
.wk-list { display: none; }
.wk-center { min-width: 0; }
.kvrow { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0 12px; align-items: baseline; padding: 7px 0; }
.kvrow > span { color: var(--text-3); font-size: 13px; }
.kvrow select { height: 30px; padding: 2px 8px; }
.slides { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; }
.slide { background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; padding: 20px 24px; min-height: 240px; min-width: 0; }
.slide h3 { font-size: 18px; line-height: 26px; padding-bottom: 8px; margin-bottom: 8px; width: 100%; }
.slide > .between { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.slide > .between h3 { border: 0; margin: 0; }
.slide .pathlist li.on { font-weight: 400; padding: 6px 0; }
.slide.cover { background: var(--ink); border-color: var(--ink); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.slide.cover h2 { font-size: 26px; line-height: 36px; }
.slide.cover p { color: #b9bcc2; margin-top: 8px; }
.handover { background: var(--orange-bg) !important; border-left: 3px solid #c98a12 !important; padding-left: 16px !important; padding-right: 16px !important; }
.chatlog { background: var(--bg-2); border-radius: var(--r); padding: 12px 14px; font-size: 13px; line-height: 22px; }
.rl { display: flex; gap: 10px; padding: 12px 16px; color: var(--text); border-bottom: 1px solid var(--line); position: relative; }
.rl:hover { background: var(--bg-2); color: var(--text); }
.rl.on { background: var(--bg-3); }
.rl.on::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: var(--ink); border-radius: 1px; }
.rl-b { min-width: 0; flex: 1; }
.rl-t { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rl-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-s { font-size: 12px; line-height: 18px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.rl-tools { padding: 14px 16px 0; border-bottom: 1px solid var(--line); background: var(--bg); flex: none; }
.rl-tools .between { align-items: center; margin-bottom: 10px; }
.rl-tools .tabs { gap: 16px; margin: 10px 0 0; border: 0; }
.rl-tools .tabs button { padding-bottom: 8px; font-size: 13px; }
.rl-body { flex: 1; min-height: 0; overflow-y: auto; }

/* 对练：和微信聊天一样 */
.practice { height: 100dvh; display: flex; flex-direction: column; background: var(--wx-bg); }
.p-head { background: var(--bg-2); border-bottom: 1px solid #d9d9d9; padding: 8px 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.p-head b { font-weight: 600; }
.p-head small { display: block; font-size: 12px; color: var(--text-2); line-height: 1.4; }
.p-body { flex: 1; overflow-y: auto; padding: 14px; }
.p-wrap { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 76%; padding: 8px 11px; background: #fff; border-radius: 4px; align-self: flex-start; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.msg.sales { background: var(--wx-self); align-self: flex-end; }
/* 客户方有两个人时，气泡上方一行小字写是谁 */
.msg .who { display: block; font-size: 12px; line-height: 16px; color: var(--text-3); margin-bottom: 2px; }
.why-text { color: var(--text); }
/* 企业列表：名称不被挤成一字一行，窄屏时横向滚动 */
.orgtable td:first-child { min-width: 180px; }
.orgtable td:nth-child(2), .orgtable td:nth-child(6), .orgtable td:last-child { white-space: nowrap; }
.datatab { padding-top: 20px; max-width: 640px; }
.datatab h2 + p { margin-top: 6px; }
.datatab h2:not(:first-child) { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.msg.wait { color: var(--text-3); }
.sys { align-self: center; font-size: 12px; padding: 2px 8px; border-radius: 3px; background: #dadada; color: #555; max-width: 90%; text-align: center; }
.sys.block { background: var(--red-bg); color: var(--red); }
.sys.escalate, .sys.warn { background: var(--orange-bg); color: var(--orange); }
.p-foot { background: var(--bg-2); border-top: 1px solid #d9d9d9; padding: 8px 14px calc(8px + env(safe-area-inset-bottom)); }
.p-foot > div { max-width: 760px; margin: 0 auto; }
.p-foot textarea { border-color: #d9d9d9; }
.p-foot .row { margin-top: 6px; justify-content: space-between; }
.drawer { background: var(--bg); border-bottom: 1px solid #d9d9d9; padding: 10px 14px; max-height: 45dvh; overflow-y: auto; }
.drawer > div { max-width: 760px; margin: 0 auto; }
.practice-log { background: var(--wx-bg); padding: 12px; border-radius: var(--r); }

/* 评分结果 */
.result-top { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; background: none; border: 0; border-top: 1px solid var(--line); padding: 24px 0; margin: 0; }
.big { font-family: var(--num); font-size: 44px; line-height: 50px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.focus h2 { margin-bottom: 4px; }
.progress { margin-bottom: 6px; }
.progress b { font-weight: 600; }
.dim small { font-size: 12px; }
.seewho { font-size: 13px; color: var(--text-2); }
.seewho summary { cursor: pointer; }
.seewho ul { margin-top: 6px; }
.seewho li { padding: 3px 0; }
.seewho b { color: var(--text); }
.dim { border-bottom: 1px solid var(--line); }
.dim:last-child { border-bottom: 0; }
.dim summary { display: grid; grid-template-columns: 84px minmax(60px, 180px) 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 11px 0; cursor: pointer; list-style: none; }
.dim summary::-webkit-details-marker { display: none; }
.dim summary .why { color: var(--text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dim[open] summary .why { visibility: hidden; }
.dim .body { padding: 0 0 12px 96px; font-size: 13px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 0; }
.seg span { display: block; padding: 3px 12px; border-right: 1px solid var(--line); }
.seg label:last-child span { border-right: 0; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: -2px; }

/* 登录、弹窗、提示 */
.login { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; background: var(--rail); }
.login .brand { margin-bottom: 24px; font-size: 20px; color: var(--text); }
.login .brand .logo { width: 34px; height: 34px; line-height: 34px; font-size: 19px; border-radius: 8px; }
.login form { width: min(400px, 100%); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 36px 32px; box-shadow: 0 1px 2px rgba(16,17,20,.04), 0 12px 32px rgba(16,17,20,.06); }
.login h1 { margin-bottom: 24px; font-size: 22px; }
.login .btn { width: 100%; height: 40px; }
.demo { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
dialog { border: 1px solid var(--line); border-radius: 8px; padding: 24px 28px; width: min(480px, calc(100vw - 24px)); color: var(--text); box-shadow: 0 24px 64px rgba(16,17,20,.22); }
dialog::backdrop { background: rgba(16,17,20,.42); }
dialog h2 { margin-bottom: 18px; font-size: 18px; line-height: 26px; }
.pick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.pick button { background: var(--bg-2); border: 0; border-radius: 4px; padding: 2px 9px; cursor: pointer; font-size: 13px; color: var(--text-2); }
.pick button:hover { background: var(--bg-3); color: var(--text); }
.err { color: var(--red); font-size: 13px; margin-bottom: 8px; }
.actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
#toast { position: fixed; top: 68px; left: 50%; transform: translateX(-50%) translateY(-4px); background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 8px; max-width: min(92vw, 560px); opacity: 0; pointer-events: none; z-index: 60; font-size: 13px; box-shadow: var(--pop); transition: opacity .15s, transform .15s; }
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast.err { background: var(--red); }

/* 培养路径 */
.pathlist li { display: flex; gap: 12px; padding: 8px 0; color: var(--text-3); }
.pathlist li .num { flex: none; width: 24px; height: 24px; line-height: 22px; text-align: center; border: 1px solid var(--line-2); border-radius: 50%; font-size: 12px; color: inherit; font-family: var(--num); }
.pathlist li.on { color: var(--text); font-weight: 600; }
.pathlist li.on .num { background: var(--ink); border-color: var(--ink); color: #fff; }
.pathlist li.done { color: var(--text-2); }
.pathlist li.done .num { border-color: var(--text-2); color: var(--text-2); }
.pathlist li p { font-weight: 400; }
.briefbox > summary { cursor: pointer; }

/* 快练 */
.drill-line { background: var(--wx-bg); padding: 14px; border-radius: var(--r); }
.drill-line .msg { max-width: 100%; }
.recording { color: var(--red) !important; border-color: var(--red) !important; }
.tools { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 6px 0; font-size: 13px; }
.filelink { color: var(--blue); cursor: pointer; }
.btn.filelink { color: #fff; }
.filelink input { display: none; }

.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.navlabel { display: inline-flex; align-items: center; gap: 10px; }
.nowrap { flex-wrap: nowrap; white-space: nowrap; }
.show-m { display: none; }
.railfold > summary { display: none; }
.railfold { display: contents; }
.rail { min-width: 0; }
td .st { display: block; }
td .st + .st { margin-top: 2px; }
.tabs { scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }

/* 素材：开头三选一、分镜表、小红书图卡、提词器 */
.hooks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.hook { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hook p { font-size: 15px; line-height: 23px; flex: 1; }
.hook.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.hook .st, .hook .linkbtn { align-self: flex-start; }
table.shots td.num { font-family: var(--num); width: 36px; color: var(--text-3); }
table.shots tr.open td { background: var(--bg-2); font-weight: 600; }
.xcards { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.xcards img { width: 150px; aspect-ratio: 3 / 4; flex: none; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-2); }
dialog.wide { width: min(620px, calc(100vw - 24px)); }
.prompter { position: fixed; inset: 0; z-index: 100; background: #000; color: #fff; display: flex; flex-direction: column; }
.pr-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--dark); }
.pr-bar .btn { background: var(--dark-2); border-color: var(--dark-2); color: #fff; box-shadow: none; }
.pr-bar .btn.primary { background: #fff; color: var(--ink); border-color: #fff; min-width: 72px; }
.pr-ctl { display: flex; align-items: center; gap: 6px; }
.pr-rate { color: var(--dark-text); font-size: 13px; min-width: 70px; text-align: center; }
.pr-view { flex: 1; overflow-y: auto; padding: 35vh 8vw 60vh; scrollbar-width: none; cursor: pointer; }
.pr-view::-webkit-scrollbar { display: none; }
.pr-text { max-width: 900px; margin: 0 auto; font-weight: 600; line-height: 1.6; }
.pr-text p { margin-bottom: .8em; }
.pr-end { color: #6b7280; font-size: 60%; text-align: center; }
.pr-line { position: fixed; left: 0; right: 0; top: 38vh; border-top: 2px solid rgba(255,255,255,.35); pointer-events: none; }
.pr-count { position: fixed; inset: 0; display: grid; place-items: center; font: 600 160px/1 var(--num); background: rgba(0,0,0,.6); pointer-events: none; }

/* ---------- 企业软件风格：灰底白面板、品牌蓝、内容紧、表头有底色 ---------- */
.main { background: var(--canvas); }
/* 宽屏不拉满：1920 屏上待办一行横跨 1750px，眼睛要横跨半个屏。数据页最宽 1440，阅读页（评分、训练任务）收到 880 */
.page { max-width: 1440px; margin-inline: auto; padding: 0 24px 32px; }
.page.reading { max-width: 880px; }
.head { padding: 16px 0 12px; align-items: center; }
h1 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: 0; }
.appbar { background: #fff; }
.side nav a.on { background: var(--blue-bg); color: var(--blue); border-color: transparent; box-shadow: none; font-weight: 600; }
.side nav a.on .ico { color: var(--blue); }
.side nav a.on .count { background: var(--blue); }
.logo { background: var(--blue); border-radius: 4px; box-shadow: none; }
.btn { border-radius: 4px; box-shadow: none; }
.btn.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.page section, .page > .scroll, .guide, .briefbox, .lead, .page > .metrics, .result-top, .page > .first { background: #fff; border: 0; border-radius: 4px; padding: 16px 20px; margin-bottom: 12px; }
.page section section { background: none; padding: 0; margin-bottom: 20px; }
.page > .empty { max-width: none; padding: 40px 24px; }
.page > .first { border-left: 3px solid var(--blue); }
.lead { align-items: center; }
.lead h2 { font-size: 16px; }
.metric b { font-size: 26px; line-height: 34px; color: var(--blue); letter-spacing: 0; }
.metric.bad b { color: #f53f3f; }
.metrics-sm { border-top: 0; padding-top: 16px; }
.metrics-sm .metric b { color: var(--text); }
.metric.bad .mbar i { background: #f53f3f; }
.mbar i { background: var(--blue); }
th { background: var(--bg-2); color: var(--text-2); font-size: 13px; font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { padding-left: 12px; }
th:last-child, td:last-child { padding-right: 12px; }
td { padding: 10px 12px; }
.tag { background: var(--blue-bg); color: var(--blue); border-radius: 3px; }
.todo-ico { background: var(--blue-bg); color: var(--blue); box-shadow: none; border-radius: 4px; }
.st.bad { color: #f53f3f; } .st.bad::before { background: #f53f3f; } .st.ok::before { background: #00b42a; } .st.warn::before { background: #ff7d00; }
.tabs .on { color: var(--blue); border-bottom-color: var(--blue); }
#toast { background: var(--dark); }
.bar i { background: var(--blue); }

/* 客户工作区的窄导航：图标在上、字在下 */
@media (min-width: 641px) {
  .shell.work { grid-template-columns: 68px minmax(0, 1fr); }
  .shell.work .side { padding: 0 6px 10px; }
  .shell.work .side .brand { justify-content: center; padding: 0; font-size: 0; gap: 0; }
  .shell.work .side h6 { height: 1px; margin: 8px 8px; background: var(--line); font-size: 0; }
  .shell.work .side nav a { position: relative; flex-direction: column; justify-content: center; height: 52px; padding: 0 2px; margin-bottom: 2px; }
  .shell.work .navlabel { flex-direction: column; gap: 3px; font-size: 11px; line-height: 14px; text-align: center; }
  .shell.work .side .ico { width: 18px; height: 18px; }
  .shell.work .side .count { position: absolute; top: 3px; right: 6px; }
}
/* 宽屏：各栏铺满一屏、独立滚动 */
@media (min-width: 861px) {
  .shell.work { height: 100dvh; min-height: 0; grid-template-rows: var(--bar) minmax(0, 1fr); }
  .shell.work .main { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
  .shell.work .page { flex: 1; min-height: 0; padding: 0; max-width: none; }
  .wk { display: grid; height: 100%; grid-template-columns: minmax(0, 1fr) 320px; background: var(--bg); }
  .wk-center { display: flex; flex-direction: column; min-height: 0; }
  .wk-top .head { margin: 0; padding: 18px 28px 16px; align-items: center; border-bottom: 1px solid var(--line); }
  .wk-top .head h1 { font-size: 20px; line-height: 28px; }
  .wk-scroll { flex: 1; min-height: 0; overflow-y: auto; }
  .wk-compose { flex: none; padding: 14px 28px; background: var(--bg); border-top: 1px solid var(--line); }
  .wk-right { min-height: 0; overflow-y: auto; border-left: 1px solid var(--line); background: var(--bg-2); }
  .wk section, .wk .briefbox { margin: 0; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 20px 28px 22px; }
  .wk section > h2:first-child, .wk section > .between:first-child { margin: 0 0 12px; padding: 0; }
  .wk section > h2:first-child, .wk section > .between:first-child h2 { font-size: 13px; color: var(--text-3); font-weight: 600; }
  .wk-right section, .wk-right .briefbox { padding: 18px 20px; }
  .wk-right section > h2:first-child, .wk-right section > .between:first-child { margin: 0 0 10px; padding: 0; }
  .chatlog { max-height: 360px; overflow-y: auto; }
}
@media (min-width: 1100px) {
  .wk { grid-template-columns: 280px minmax(0, 1fr) 320px; }
  .wk-list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--bg); }
  .wk-top .crumb { display: none; }
}
@media (max-width: 1000px) {
  :root { --gutter: 24px; }
  .dash { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .metrics { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(n) { padding-left: 24px; border-left: 1px solid var(--line); }
  .metric:nth-child(2n+1) { padding-left: 0; border-left: 0; }
  .barsearch { flex-basis: 180px; }
  .usermenu .role { display: none; }
}
/* 窄屏退回一栏，靠 order 把粘贴框提到最前、聊天记录和资料放最后 */
@media (max-width: 860px) {
  .wk { display: flex; flex-direction: column; }
  .wk-center, .wk-scroll, .wk-right { display: contents; }
  .wk-top { order: 0; }
  .wk-compose { order: 1; background: var(--bg); padding: 0 0 20px; }
  .wk-scroll > * { order: 2; }
  .wk-right > .wk-now { order: 3; }
  .wk-scroll > .wk-judge { order: 4; }
  .wk-scroll > .wk-chats { order: 5; }
  .wk-right > .railfold { order: 6; }
  .columns { grid-template-columns: minmax(0, 1fr); }
  .railfold { display: block; }
  .railfold > summary { display: block; cursor: pointer; border-top: 1px solid var(--line); color: var(--text-2); padding: 16px 0; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; }
  .shell { display: block; }
  .appbar { height: var(--bar); gap: 10px; padding: 0 var(--gutter); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
  .appbar .brand { display: flex; color: var(--text); }
  .orgname, .barsearch, .usermenu .uname { display: none; }
  .bell { margin-left: auto; }
  .side { display: none; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; inset: auto 0 0 0; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: 10; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px 5px; font-size: 11px; line-height: 16px; color: var(--text-3); position: relative; }
  .tabbar a.on { color: var(--ink); font-weight: 600; }
  .tabbar .ico { width: 20px; height: 20px; }
  .tabbar .count { position: absolute; top: 2px; left: 54%; margin: 0; }
  .page { padding: 0 var(--gutter) 80px; }
  .head { padding: 20px 0 14px; gap: 8px 12px; align-items: flex-start; flex-wrap: wrap; }
  /* 标题不能被右边的按钮挤成一字一行：按钮放不下就换到下一行 */
  .head h1 { white-space: nowrap; }
  .head > .row { flex-wrap: wrap; }
  h1 { font-size: 21px; line-height: 29px; }
  section, .page > .scroll, .guide, .briefbox { padding: 20px 0 22px; }
  .result-top { padding: 20px 0; }
  .notice { padding: 5px var(--gutter); }
  input, textarea, select { font-size: 16px; }
  input, select { height: 40px; }
  .btn { height: 40px; }
  .msg { max-width: 86%; }
  .metrics { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 0; }
  .metric:nth-child(n) { padding-left: 16px; padding-right: 0; }
  .metric:nth-child(2n+1) { padding-left: 0; }
  .metric b { font-size: 24px; line-height: 32px; }
  th, td { padding-left: 8px; padding-right: 8px; }
  .pb { grid-template-columns: minmax(0, 1fr); }
  .logic > div { grid-template-columns: minmax(0, 1fr); }
  .dim summary { grid-template-columns: 70px minmax(40px, 1fr) 58px; }
  .dim summary .why { display: none; }
  .dim .body { padding-left: 0; }
  .first { flex-direction: column; align-items: stretch; padding-left: 14px; }
  /* 窄屏一行一件，不用竖线分隔（换行后竖线会落到行首） */
  .lead { flex-direction: column; align-items: stretch; gap: 14px; }
  .page section, .page > .scroll, .guide, .briefbox, .lead, .page > .metrics, .result-top, .page > .first { padding: 14px 16px; }
  .page section section { padding: 0; }
  .lead h2 { font-size: 18px; line-height: 26px; }
  .lead-list { flex-direction: column; row-gap: 0; margin-top: 8px; }
  .lead-list li { padding: 7px 0; border-bottom: 1px solid var(--line); }
  .lead-list li:last-child { border-bottom: 0; }
  .lead-list li + li::before { display: none; }
  .lead-list a { text-decoration: none; }
  .lead > .btn { align-self: flex-start; }
  .first small { display: block; margin-left: 0; }
  .verdict { padding-left: 14px; }
  .slides { grid-template-columns: minmax(0, 1fr); }
  .hide-m { display: none; }
  .show-m { display: block; }
  .draft .row .btn.primary { flex: 1; }
  /* 手机客户卡片：三行封顶，摘要最多两行 */
  .ccards.show-m { display: block; margin-top: 8px; }
  .ccard { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .ccard:active { background: var(--bg-2); }
  .ccard-t { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .ccard-t b { font-size: 16px; font-weight: 600; }
  .ccard-s { color: var(--text-2); font-size: 14px; line-height: 21px; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ccard-f { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-top: 6px; }
  .ccard-f > span:first-child { display: flex; flex-wrap: wrap; gap: 4px 12px; min-width: 0; }
  /* 状态多了折到下一行，金额不换行（原来 2.8 和“万”被挤成两行） */
  .ccard-f .num { flex: none; white-space: nowrap; font-family: var(--num); font-variant-numeric: tabular-nums; font-weight: 600; }
  /* 手指点得准：文字按钮在手机上至少 32px 高、左右有余量 */
  .linkbtn { padding: 6px 8px; min-height: 32px; margin: -6px -8px; }
  .row .linkbtn, td .linkbtn { margin: 0; }
  #toast { top: 60px; }
}

/* 客户工作区三栏用灰缝隔开，放在最后，压过上面工作区的白底 */
@media (min-width: 861px) {
  .wk { background: var(--canvas); gap: 8px; }
  .wk-center, .wk-list, .wk-right { background: #fff; }
  .wk-right, .wk-list { border: 0; }
}

/* 客户心理、推进效果、客户可能怎么回 */
.psy { border-left: 3px solid var(--blue) !important; }
.psy-main { font-size: 16px; font-weight: 500; line-height: 24px; }
.dprog { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); }
.dprog span { display: inline-flex; align-items: center; gap: 5px; }
.dprog span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--text-3); box-sizing: border-box; }
.dprog span + span { padding-left: 18px; background: linear-gradient(var(--line), var(--line)) 3px center / 12px 1px no-repeat; }
.dprog .past::before { background: var(--blue-bg); border-color: var(--blue); }
.dprog .now { color: var(--text); font-weight: 600; }
.dprog .now::before { background: var(--blue); border-color: var(--blue); }
.psy summary { cursor: pointer; list-style: none; font-size: 14px; line-height: 22px; }
.psy summary::-webkit-details-marker { display: none; }
.psy summary::after { content: "展开"; color: var(--blue); font-size: 12px; margin-left: 8px; }
.psy details[open] summary::after { content: "收起"; }
.psy-k { color: var(--text-3); font-size: 12px; margin-right: 8px; }
.more-r summary { cursor: pointer; padding: 4px 0; }
.forecast { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.fc-h { font-size: 13px; color: var(--text-2); margin-top: 8px; }
.fc-h .xs { margin-left: 8px; }
.reacts { margin-top: 6px; }
.reacts li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; padding: 6px 0; font-size: 14px; line-height: 22px; }
.reacts li + li { border-top: 1px solid var(--line); }
.lk { width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 3px; font-size: 12px; margin-top: 1px; }
.lk-h { background: var(--blue); color: #fff; } .lk-m { background: var(--blue-bg); color: var(--blue-dark); } .lk-l { background: var(--bg-3); color: var(--text-3); }
.rl-more { display: block; padding: 12px 16px; font-size: 13px; color: var(--text-3); }
.rl-more:hover { color: var(--blue); }
/* AI 写的摘要和能追到原话的客户资料分开放，免得把推断当事实 */
.aisum p { color: var(--text-2); }
.aisum h2 .sub { font-weight: 400; }
.login-legal { margin-top: 16px; text-align: center; font-size: 12px; color: var(--text-3); }
.login-legal a { color: var(--text-2); }
#join p { margin: 12px 0; }
#join .btn { min-height: 46px; margin-top: 8px; }
#join #status:empty { display: none; }
