/* ============================================================
   OmniDesk 手机端样式（仿 SaleSmartly 浅色风格）
   只在 html.m-mobile 时生效；桌面端完全不受影响
   ============================================================ */
html.m-mobile, html.m-mobile body {
  margin: 0; padding: 0;
  background: #f2f5f9;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  height: 100%; overflow: hidden;
}
/* x238: 声明"只有浅色"，阻止手机浏览器（华为/Chrome 等）跟随系统深色模式
   自动把浅色界面强制涂黑（Auto Dark Mode），否则整屏发黑、气泡变色 */
html.m-mobile { color-scheme: only light; }
html.m-mobile #app { display: none !important; }
html.m-mobile #od-err { display: none !important; }
#m-app { display: none; }
html.m-mobile #m-app { display: block; height: 100%; }
html.m-mobile * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* ---------- 登录页 ---------- */
.m-login {
  height: 100%; width: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px; box-sizing: border-box;
  background: linear-gradient(160deg, #eaf2ff 0%, #f6f9ff 55%, #eef7f0 100%);
}
.m-logo {
  width: 84px; height: 84px; border-radius: 22px;
  background: linear-gradient(135deg, #1677ff, #4096ff);
  display: flex; align-items: center; justify-content: center;
  font-size: 42px; color: #fff; margin-bottom: 14px;
  box-shadow: 0 10px 26px rgba(22,119,255,.28);
}
.m-login h1 { font-size: 22px; margin: 0 0 4px; color: #1f2733; }
.m-login .sub { font-size: 12px; color: #8a97a8; margin-bottom: 30px; }
.m-login .card {
  width: 100%; max-width: 360px; background: #fff; border-radius: 14px;
  padding: 22px 18px; box-shadow: 0 6px 22px rgba(31,45,61,.08);
}
.m-login label { font-size: 12px; color: #5b6b7d; display: block; margin: 0 0 6px 2px; }
.m-login input {
  width: 100%; border: 1px solid #dde5ee; border-radius: 10px;
  padding: 12px 14px; font-size: 15px; margin-bottom: 14px; outline: none;
  background: #f8fafc; color: #1f2733;
}
.m-login input:focus { border-color: #1677ff; background: #fff; }
.m-login .err { color: #e5484d; font-size: 12.5px; margin: -6px 0 10px; min-height: 16px; }
.m-login button {
  width: 100%; border: 0; border-radius: 10px; padding: 13px;
  font-size: 16px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #1677ff, #4096ff);
}
.m-login button:disabled { opacity: .6; }

/* ---------- 主框架 ---------- */
.m-shell { height: 100%; display: flex; flex-direction: column; }
.m-page { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }

/* 顶栏 */
.m-topbar {
  background: #fff; padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid #eef1f6; flex-shrink: 0;
}
.m-topbar .t { font-size: 18px; font-weight: 700; color: #1f2733; flex: 1; }
.m-topbar .back { border: 0; background: none; font-size: 26px; color: #1677ff; padding: 2px 8px 2px 0; line-height: 1; }

/* 搜索框 */
.m-search {
  margin: 10px 12px 4px; position: relative; flex-shrink: 0;
}
.m-search input {
  width: 100%; border: 0; border-radius: 10px; background: #e9eef6;
  padding: 10px 14px 10px 36px; font-size: 14px; outline: none; color: #1f2733;
}
.m-search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); opacity: .45; font-size: 14px; }

/* 过滤 Tab */
.m-tabs {
  display: flex; gap: 8px; padding: 8px 12px; flex-shrink: 0;
}
.m-tabs button {
  border: 0; border-radius: 16px; padding: 6px 14px; font-size: 13px;
  background: #e9eef6; color: #5b6b7d;
}
.m-tabs button.on { background: #1677ff; color: #fff; font-weight: 600; }

/* 会话列表 */
.m-conv-list { padding: 4px 0 calc(env(safe-area-inset-bottom, 0px) + 74px); }
.m-conv {
  display: flex; gap: 12px; padding: 12px 14px; background: #fff;
  align-items: center; cursor: pointer; position: relative;
}
.m-conv:active { background: #f0f6ff; }
.m-conv + .m-conv { border-top: 1px solid #f1f4f8; }
.m-conv.unread-row { background: #f5f9ff; }
.m-conv.unread-row + .m-conv { border-top-color: #eef4fd; }

.m-av {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 17px; font-weight: 700; overflow: hidden;
  position: relative; background: #1677ff;
}
.m-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-av .wa-badge {
  position: absolute; right: -1px; bottom: -1px; width: 16px; height: 16px;
  border-radius: 50%; background: #22c15e; color: #fff; font-size: 10px;
  display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.m-conv .body { flex: 1; min-width: 0; }
.m-conv .r1 { display: flex; align-items: center; gap: 6px; }
.m-conv .name { font-size: 15.5px; font-weight: 600; color: #1f2733; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.m-conv .time { font-size: 11.5px; color: #9aa7b5; flex-shrink: 0; }
.m-conv .r2 { font-size: 13px; color: #7d8a99; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-conv .r2 .flag { margin-right: 3px; }
.m-conv .r3 { display: flex; gap: 6px; margin-top: 4px; align-items: center; }
.m-tag { font-size: 10.5px; padding: 1.5px 7px; border-radius: 9px; background: #eef3fb; color: #4a6b96; }
.m-tag.overdue { background: #fdecec; color: #d54941; }
.m-tag.ai { background: #ede9fe; color: #7c5cd6; }
.m-badge {
  min-width: 20px; height: 20px; border-radius: 10px; background: #f43f5e;
  color: #fff; font-size: 11.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 6px; flex-shrink: 0;
}
.m-empty { text-align: center; padding: 60px 0; color: #9aa7b5; font-size: 13px; }
.m-empty .ic { font-size: 40px; margin-bottom: 8px; }

/* ---------- 聊天页 ---------- */
.m-chat { height: 100%; display: flex; flex-direction: column; background: #eef1f6; }
.m-chat-head {
  background: #fff; padding: calc(env(safe-area-inset-top, 0px) + 8px) 10px 8px;
  display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #eef1f6; flex-shrink: 0;
}
.m-chat-head .back { border: 0; background: none; font-size: 26px; color: #1677ff; padding: 0 6px; line-height: 1; }
.m-chat-head .who { flex: 1; min-width: 0; }
.m-chat-head .nm { font-size: 16px; font-weight: 700; color: #1f2733; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-chat-head .sub { font-size: 11px; color: #8a97a8; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-chat-head .hbtn {
  border: 0; background: #eef4ff; color: #1677ff; font-size: 12.5px;
  border-radius: 9px; padding: 7px 11px; flex-shrink: 0; font-weight: 600;
}
.m-chat-head .hbtn.on { background: #1677ff; color: #fff; }
.m-chat-head .hbtn.claim { background: #fff7e8; color: #d48806; }

.m-msgs { flex: 1; overflow-y: auto; padding: 12px 12px 6px; -webkit-overflow-scrolling: touch; }
.m-day { text-align: center; font-size: 11px; color: #9aa7b5; margin: 10px 0 6px; }
.m-row { display: flex; margin: 5px 0; align-items: flex-end; gap: 8px; }
.m-row.out { flex-direction: row-reverse; }
.m-row .mav {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  background: #1677ff; color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; user-select: none;
}
.m-row .mav img { width: 100%; height: 100%; object-fit: cover; }
/* 客户消息的中文译文行（x240，翻译开关打开时显示在气泡内） */
.m-tr {
  margin-top: 6px; padding: 7px 9px; background: #f4f6fb; border-radius: 9px;
  font-size: 12.5px; line-height: 1.45; color: #44506a; text-align: left;
}
.m-tr-tag {
  display: inline-block; background: #eef0ff; color: #4f46e5; font-size: 10px;
  font-weight: 700; border-radius: 5px; padding: 1px 5px; margin-right: 5px; vertical-align: 1px;
}
.m-bubble {
  max-width: 76%; padding: 9px 12px; border-radius: 14px; font-size: 14.5px;
  line-height: 1.45; color: #1f2733; background: #fff;
  border-top-left-radius: 4px; word-break: break-word; box-shadow: 0 1px 2px rgba(31,45,61,.05);
}
.m-row.out .m-bubble { background: #1677ff; color: #fff; border-top-left-radius: 14px; border-top-right-radius: 4px; }
.m-row.note .m-bubble { background: #fff8db; color: #6b5b16; border-top-left-radius: 4px; }
.m-bubble img.pic { max-width: 100%; max-height: 220px; border-radius: 8px; display: block; margin: 2px 0; }
.m-bubble .mfile {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
  background: rgba(22,119,255,.1); color: #1677ff; border-radius: 8px; padding: 6px 10px;
  text-decoration: none;
}
.m-row.out .m-bubble .mfile { background: rgba(255,255,255,.22); color: #fff; }
.m-bubble .tm { display: block; font-size: 10px; opacity: .55; margin-top: 3px; text-align: right; }
/* x229：AI 回复一键停手（锁人工），低调但可以点到 */
.m-bubble .stop-ai {
  display: block; margin-top: 5px; border: 1px solid rgba(239,68,68,.35); background: rgba(239,68,68,.06);
  color: #dc2626; border-radius: 6px; font-size: 10.5px; padding: 3px 8px; cursor: pointer;
}
.m-row.out .m-bubble .stop-ai { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.4); }
.m-bubble .st { font-size: 10px; opacity: .7; }
.m-sys { text-align: center; font-size: 11px; color: #9aa7b5; margin: 6px 0; }

/* 输入区 */
.m-composer {
  background: #fff; padding: 8px 10px calc(env(safe-area-inset-bottom, 0px) + 8px);
  border-top: 1px solid #eef1f6; flex-shrink: 0;
}
.m-composer.notemode { background: #fffbe8; }
.m-composer .mode-tip { font-size: 11px; color: #b58a00; margin-bottom: 5px; }
.m-composer .box { display: flex; align-items: flex-end; gap: 8px; }
.m-composer textarea {
  flex: 1; border: 1px solid #dde5ee; border-radius: 12px; padding: 10px 12px;
  font-size: 15px; resize: none; outline: none; max-height: 110px; min-height: 42px;
  line-height: 1.4; background: #f8fafc; color: #1f2733;
}
.m-composer textarea:focus { border-color: #1677ff; background: #fff; }
.m-composer .send {
  border: 0; border-radius: 12px; width: 44px; height: 42px; flex-shrink: 0;
  background: #1677ff; color: #fff; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.m-composer .send:disabled { opacity: .5; }
.m-composer .tools { display: flex; gap: 14px; padding: 6px 4px 0; }
.m-composer .tools button { border: 0; background: none; font-size: 20px; padding: 0; opacity: .55; }
.m-composer .tools button.on { opacity: 1; }

/* ---------- 联系人 ---------- */
.m-ct-list { padding: 4px 0 calc(env(safe-area-inset-bottom, 0px) + 74px); }
.m-ct { display: flex; gap: 12px; padding: 12px 14px; background: #fff; align-items: center; }
.m-ct + .m-ct { border-top: 1px solid #f1f4f8; }
.m-ct .body { flex: 1; min-width: 0; }
.m-ct .nm { font-size: 15.5px; font-weight: 600; color: #1f2733; }
.m-ct .sub { font-size: 12.5px; color: #7d8a99; margin-top: 3px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.m-ct .sub .country { color: #4a6b96; }

/* ---------- 我的 ---------- */
.m-me-head {
  background: linear-gradient(160deg, #1677ff 0%, #4a9bff 100%);
  padding: calc(env(safe-area-inset-top, 0px) + 30px) 20px 26px; text-align: center; color: #fff;
}
.m-me-head .big {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 10px;
  background: rgba(255,255,255,.25); border: 2px solid rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700;
  overflow: hidden; position: relative;
}
.m-me-head .big img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-me-head .nm { font-size: 19px; font-weight: 700; }
.m-me-head .role { font-size: 12px; opacity: .85; margin-top: 3px; }
.m-me-card { margin: 12px; background: #fff; border-radius: 14px; overflow: hidden; }
.m-me-item {
  display: flex; align-items: center; gap: 12px; padding: 15px 16px; width: 100%;
  border: 0; background: none; text-align: left; cursor: pointer;
}
.m-me-item + .m-me-item { border-top: 1px solid #f1f4f8; }
.m-me-item .ic { font-size: 19px; width: 24px; text-align: center; }
.m-me-item .tt { flex: 1; font-size: 15px; color: #1f2733; }
.m-me-item .arrow { color: #c2cdd9; font-size: 14px; }
.m-me-item.danger .tt { color: #e5484d; }
.m-ver { text-align: center; color: #b3bfcd; font-size: 11px; padding: 18px 0 8px; }

/* ---------- 底部 Tab ---------- */
.m-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: #fff; border-top: 1px solid #e8edf3;
  display: flex; padding: 6px 0 calc(env(safe-area-inset-bottom, 0px) + 6px);
}
.m-tabbar button {
  flex: 1; border: 0; background: none; display: flex; flex-direction: column;
  align-items: center; gap: 2px; color: #8a97a8; font-size: 10.5px; position: relative;
}
.m-tabbar button .ic { font-size: 21px; line-height: 1; }
.m-tabbar button.on { color: #1677ff; font-weight: 600; }
.m-tabbar .dot {
  position: absolute; top: -3px; right: calc(50% - 22px);
  min-width: 17px; height: 17px; border-radius: 9px; background: #f43f5e;
  color: #fff; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* ---------- 消息通知设置（仿微信） ---------- */
.m-notif-tip {
  margin: 12px; padding: 11px 13px; border-radius: 10px; font-size: 12px; line-height: 1.6;
  color: #6b5b12; background: #fff9e6; border: 1px solid #ffe9a8;
}
.m-notif-tip.ok { color: #116149; background: #eafaf3; border-color: #b7ecd4; }
.m-notif-tip.bad { color: #9b2c2c; background: #fff1f1; border-color: #ffc9c9; }
.m-switch {
  width: 46px; height: 27px; border: 0; border-radius: 14px; background: #d8dfe8;
  position: relative; flex: 0 0 auto; cursor: pointer; transition: background .2s;
}
.m-switch i {
  position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .2s;
}
.m-switch.on { background: #1677ff; }
.m-switch.on i { left: 22px; }
.m-notif-dnd {
  display: flex; align-items: center; gap: 8px; padding: 4px 16px 15px; font-size: 13px; color: #5b6b7d;
}
.m-notif-dnd input {
  flex: 1; border: 1px solid #dde5ee; border-radius: 8px; padding: 8px 10px;
  font-size: 14px; color: #1f2733; background: #f8fafc; outline: none;
}
.m-notif-foot { padding: 4px 18px 24px; font-size: 11.5px; color: #9aa7b5; line-height: 1.7; }
.m-badge-txt { font-size: 11px; color: #1677ff; background: #eaf2ff; border-radius: 8px; padding: 2px 8px; }
.m-topbar .back {
  border: 0; background: none; font-size: 28px; line-height: 1; color: #1677ff;
  padding: 0 12px 0 4px; cursor: pointer;
}

/* 加载中 */
.m-loading { text-align: center; padding: 26px 0; color: #9aa7b5; font-size: 12.5px; }

/* ============================================================
   x226 浅色外贸微信式界面（业务员视角）
   主色靛紫 #4f46e5，与 index.html theme-color 一致
   ============================================================ */
:root { --od-primary:#4f46e5; --od-primary2:#6366f1; --od-teal:#22c3a6; }
html.m-mobile, html.m-mobile body { background:#f4f6fb; }

/* 渐变头部 */
.hdr-grad {
  background:linear-gradient(135deg,#4f46e5 0%,#6366f1 55%,#22c3a6 140%);
  color:#fff; padding:calc(env(safe-area-inset-top,0px) + 10px) 18px 12px; flex-shrink:0;
}
.hdr-grad.sm { padding-bottom:14px; }
.hdr-row { display:flex; justify-content:space-between; align-items:center; height:34px; }
.hdr-t { font-size:20px; font-weight:700; letter-spacing:-.3px; }
.hdr-chip { font-size:11px; background:rgba(255,255,255,.2); padding:4px 11px; border-radius:14px; font-weight:600; }
.hdr-search {
  margin-top:6px; height:38px; background:rgba(255,255,255,.96); border-radius:11px;
  display:flex; align-items:center; gap:8px; padding:0 13px; color:#9aa3b2; font-size:13px;
  box-shadow:0 4px 12px rgba(20,25,45,.10);
}
.hdr-search input { flex:1; border:0; outline:none; background:none; font-size:13.5px; color:#1f2733; }
.hdr-search input::placeholder { color:#a2aab8; }

/* 文件夹切换 */
.fold-tabs {
  display:flex; gap:24px; padding:11px 18px 9px; background:#fff; border-bottom:1px solid #eef0f5; flex-shrink:0;
}
.fold-tabs button {
  border:0; background:none; font-size:13px; color:#9aa2b1; font-weight:600; padding:0 0 8px;
  position:relative;
}
.fold-tabs button.on { color:var(--od-primary); }
.fold-tabs button.on::after {
  content:""; position:absolute; left:50%; transform:translateX(-50%); bottom:0;
  height:3px; width:22px; background:var(--od-primary); border-radius:3px;
}

/* 摘要条 */
.sum-bar {
  margin:11px 14px 2px; background:linear-gradient(100deg,#eef0ff,#f4fbff); border:1px solid #e3e8ff;
  border-radius:12px; padding:10px 13px; font-size:12px; color:#4a5470;
  display:flex; justify-content:space-between; align-items:center;
}
.sum-bar b { color:var(--od-primary); }

/* 客户/联系人列表行 */
.c-list { padding:6px 0 calc(env(safe-area-inset-bottom,0px) + 76px); }
.c-row {
  display:flex; gap:11px; padding:12px 15px; background:#fff; align-items:center; position:relative;
}
.c-row:active { background:#f5f6ff; }
.c-row + .c-row { border-top:1px solid #f1f3f7; }
.c-row.unread-row { background:#fafaff; }
.c-av {
  width:46px; height:46px; border-radius:50%; flex-shrink:0; overflow:hidden; position:relative;
  display:flex; align-items:center; justify-content:center; color:#fff; font-size:17px; font-weight:700;
}
.c-av img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.c-av .wa-badge {
  position:absolute; right:-1px; bottom:-1px; width:16px; height:16px; border-radius:50%;
  background:#22c15e; color:#fff; font-size:10px; display:flex; align-items:center; justify-content:center;
  border:2px solid #fff; z-index:2;
}
.c-body { flex:1; min-width:0; }
.c-r1 { display:flex; justify-content:space-between; align-items:baseline; gap:8px; }
.c-nm { font-size:14.5px; font-weight:700; color:#1f2733; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.c-tm { font-size:11px; color:#a2aab8; flex-shrink:0; }
.c-msg { font-size:12px; color:#8b93a3; margin:3px 0 5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.c-r3 { display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.c-geo { font-size:10.5px; color:#a2aab8; }
.c-pending { font-size:10.5px; font-weight:700; color:#f04438; }
.c-ai { font-size:10px; font-weight:700; color:#7c5cd6; background:#ede9fe; border-radius:5px; padding:1px 5px; }

/* 分级标签 A–F */
.g-tag { display:inline-flex; align-items:center; font-size:10px; font-weight:700; padding:2px 7px; border-radius:5px; line-height:1.5; }
.g-tag.t-A, .dist-lb.t-A { background:#fff1e6; color:#e07a1f; }
.g-tag.t-B, .dist-lb.t-B { background:#e7efff; color:#3b6fd4; }
.g-tag.t-C, .dist-lb.t-C { background:#e6f7f0; color:#17916a; }
.g-tag.t-D, .dist-lb.t-D { background:#eef0f4; color:#7b8494; }
.g-tag.t-E, .dist-lb.t-E { background:#f4eefe; color:#8b5cf6; }
.g-tag.t-F, .dist-lb.t-F { background:#f2f3f5; color:#98a0ad; }

/* 聊天页顶栏（浅色） */
.m-chat { background:#f5f7fc; }
.chat-head2 {
  background:#fff; display:flex; align-items:center; gap:10px; padding:calc(env(safe-area-inset-top,0px) + 8px) 14px 8px;
  border-bottom:1px solid #f0f2f6; flex-shrink:0;
}
.chat-head2 .back { border:0; background:none; font-size:26px; color:#5a6372; padding:0 4px; line-height:1; }
/* 头部客户头像（x238 按设计稿补上），点它/点姓名 = 看客户资料 */
.chat-head2 .head-av {
  width:36px; height:36px; border-radius:50%; flex-shrink:0; cursor:pointer;
  display:flex; align-items:center; justify-content:center; overflow:hidden;
  color:#fff; font-size:13.5px; font-weight:700; user-select:none;
}
.chat-head2 .head-av img { width:100%; height:100%; object-fit:cover; display:block; }
.chat-head2 .who { flex:1; min-width:0; cursor:pointer; }
.chat-head2 .nm { font-size:14.5px; font-weight:700; color:#1f2733; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.chat-head2 .sub { font-size:10.5px; color:#9aa2b1; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hbtn2 { border:0; background:#eef0ff; color:var(--od-primary); font-size:12px; border-radius:9px; padding:6px 10px; font-weight:600; flex-shrink:0; }
.hbtn2.claim { background:#fff7e8; color:#d48806; }

/* 聊天页当地信息条 + AI 记忆条 */
.info-bar {
  margin:9px 12px 0; background:linear-gradient(100deg,#e9fbf4,#eef7ff); border:1px solid #dbf0e9;
  border-radius:11px; padding:8px 11px; font-size:11px; color:#2c7a63; font-weight:600; flex-shrink:0;
}
.ai-sug {
  margin:7px 12px 0; background:#fff; border:1px solid #e6e9f5; border-radius:11px; padding:9px 11px;
  font-size:11px; color:#5b6480; display:flex; justify-content:space-between; align-items:center;
  box-shadow:0 3px 10px rgba(30,40,80,.05); flex-shrink:0;
}
.ai-sug b { color:var(--od-primary); white-space:nowrap; }
.ai-sug span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* 我方气泡改靛紫 */
.m-row.out .m-bubble { background:linear-gradient(135deg,#5b52ef,#6d64f5); color:#fff; }
.m-composer .send { background:linear-gradient(135deg,#22c55e,#16a34a); border-radius:50%; width:38px; height:38px; }
/* 发图片/发文件按钮（与输入框同排） */
.m-composer .att {
  border:0; background:none; flex-shrink:0; width:30px; height:42px; padding:0;
  font-size:19px; opacity:.85; display:flex; align-items:center; justify-content:center;
}
.m-composer .att:disabled { opacity:.4; }

/* 快捷工具栏 */
.quick-tools { display:flex; justify-content:space-between; margin-top:8px; padding:0 4px; }
.quick-tools button {
  border:0; background:none; font-size:10.5px; color:#6b7486; display:flex; flex-direction:column;
  align-items:center; gap:2px; padding:0 6px; opacity:.9;
}
.quick-tools button i { font-style:normal; font-size:17px; color:var(--od-primary); }
.quick-tools button.on { color:var(--od-primary); font-weight:700; opacity:1; }

/* ===== 客户资料页 ===== */
.pf-head {
  height:52px; flex-shrink:0; display:flex; align-items:center; gap:8px; padding:calc(env(safe-area-inset-top,0px)) 14px 0;
  background:linear-gradient(135deg,#4f46e5,#6366f1); color:#fff;
}
.pf-back { border:0; background:none; color:#fff; font-size:26px; line-height:1; padding:0 6px; }
.pf-title { flex:1; font-size:17px; font-weight:700; }
.pf-edit { font-size:12px; opacity:.85; }
.pf-body { padding-bottom:80px; }
.pf-hero {
  background:linear-gradient(135deg,#4f46e5 0%,#6366f1 55%,#22c3a6 140%); color:#fff;
  padding:16px 18px 26px; display:flex; gap:12px; align-items:center;
}
.pf-avatar {
  width:58px; height:58px; border-radius:50%; border:3px solid rgba(255,255,255,.4);
  flex-shrink:0; overflow:hidden; position:relative; display:flex; align-items:center; justify-content:center;
  font-size:20px; font-weight:700;
}
.pf-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.pf-who { min-width:0; }
.pf-nm { font-size:18px; font-weight:700; }
.pf-sub { font-size:11px; opacity:.85; margin-top:4px; }
.pf-kv { display:grid; grid-template-columns:1fr 1fr; gap:9px; padding:13px 14px; }
.pf-cell { background:#fff; border:1px solid #eef0f5; border-radius:12px; padding:11px 12px; box-shadow:0 3px 10px rgba(30,40,80,.04); }
.pf-l { font-size:10.5px; color:#9aa2b1; }
.pf-v { font-size:13px; font-weight:700; color:#283044; margin-top:4px; }
.pf-work { font-size:9.5px; font-weight:500; color:#17916a; }
.pf-ai {
  margin:0 14px 10px; background:linear-gradient(135deg,#f3f1ff,#f7f4ff); border:1px solid #e6e1ff;
  border-radius:13px; padding:11px 12px;
}
.pf-ai-h { font-size:12px; font-weight:700; color:var(--od-primary); margin-bottom:9px; }
.pf-ai-h em { font-style:normal; font-size:9.5px; font-weight:600; color:#8b83c9; background:#e9e5ff; padding:2px 6px; border-radius:8px; }
.pf-mem { display:flex; gap:6px; align-items:flex-start; margin-bottom:6px; font-size:10.5px; line-height:1.45; }
.pf-mem:last-child { margin-bottom:0; }
.pf-k { flex:0 0 42px; color:#6d66a6; font-weight:700; background:#fff; border:1px solid #e6e1ff; border-radius:5px; padding:1px 4px; text-align:center; }
.pf-vv { color:#4b5470; flex:1; }
.pf-src { font-size:9px; color:#a29bd0; margin-left:3px; }
.pf-stage { padding:4px 14px 10px; }
.pf-h { font-size:12px; font-weight:700; color:#283044; margin-bottom:10px; }
.pf-track { display:flex; align-items:center; justify-content:space-between; position:relative; }
.pf-track::before { content:""; position:absolute; left:12px; right:12px; top:9px; height:3px; background:#e8ebf2; z-index:0; }
.pf-node { position:relative; z-index:1; text-align:center; flex:1; }
.pf-node i { width:18px; height:18px; border-radius:50%; background:#e8ebf2; border:3px solid #f4f6fb; display:block; margin:0 auto 5px; font-style:normal; font-size:10px; line-height:12px; color:#fff; }
.pf-node.done i { background:var(--od-primary); }
.pf-node.cur i { background:var(--od-teal); box-shadow:0 0 0 4px #d9f5ee; }
.pf-lb { font-size:9.5px; color:#9aa2b1; }
.pf-node.cur .pf-lb { color:#12866a; font-weight:700; }
.pf-foot { height:70px; flex-shrink:0; background:#fff; border-top:1px solid #eef0f5; display:flex; gap:10px; align-items:center; padding:0 14px calc(env(safe-area-inset-bottom,0px)); }
.pf-btn { flex:1; text-align:center; padding:12px; border-radius:12px; font-size:12.5px; font-weight:600; }
.pf-btn.ghost { border:1px solid #dfe3ec; color:var(--od-primary); background:#fff; }
.pf-btn.primary { border:0; color:#fff; background:linear-gradient(135deg,#4f46e5,#6366f1); }

/* ===== 跟进页 ===== */
.follow-page { padding-bottom:calc(env(safe-area-inset-bottom,0px) + 76px); }
.todo-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; padding:14px; }
.todo-card { background:#fff; border:1px solid #eef0f5; border-radius:14px; padding:16px; text-align:center; box-shadow:0 3px 10px rgba(30,40,80,.04); }
.todo-n { font-size:24px; font-weight:800; color:var(--od-primary); }
.todo-l { font-size:10.5px; color:#9aa2b1; margin-top:3px; }
.dist-card { margin:0 14px; background:#fff; border:1px solid #eef0f5; border-radius:14px; padding:14px; }
.dist-row { display:flex; align-items:center; gap:9px; margin:9px 0; }
.dist-lb { flex:0 0 52px; font-size:10px; font-weight:700; padding:3px 5px; border-radius:5px; text-align:center; }
.dist-bar { flex:1; height:8px; background:#eef0f5; border-radius:4px; overflow:hidden; }
.dist-bar i { display:block; height:100%; border-radius:4px; }
.dist-bar i.t-A { background:#e07a1f; } .dist-bar i.t-B { background:#3b6fd4; }
.dist-bar i.t-C { background:#17916a; } .dist-bar i.t-D { background:#7b8494; }
.dist-bar i.t-E { background:#8b5cf6; } .dist-bar i.t-F { background:#98a0ad; }
.dist-n { flex:0 0 26px; text-align:right; font-size:11px; color:#697283; font-weight:700; }
.follow-note { margin:12px 14px; font-size:11px; color:#9aa2b1; text-align:center; }

/* ===== 我的页 ===== */
.me-page { padding-bottom:calc(env(safe-area-inset-bottom,0px) + 76px); }
.me-head2 {
  background:linear-gradient(135deg,#0ea5e9,#4f46e5); color:#fff; display:flex; align-items:center; gap:14px;
  padding:calc(env(safe-area-inset-top,0px) + 30px) 20px 40px;
}
.me-avatar { width:62px; height:62px; border-radius:50%; border:3px solid rgba(255,255,255,.45); overflow:hidden; position:relative; display:flex; align-items:center; justify-content:center; font-size:22px; font-weight:700; flex-shrink:0; }
.me-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.me-nm { font-size:20px; font-weight:700; }
.me-sb { font-size:11.5px; opacity:.85; margin-top:6px; }
.me-statcard { margin:-24px 14px 0; position:relative; z-index:2; background:#fff; border-radius:16px; padding:15px; box-shadow:0 8px 24px rgba(30,40,80,.10); }
.me-stat-t { font-size:12px; font-weight:700; color:#283044; margin-bottom:12px; }
.me-stats { display:flex; justify-content:space-around; text-align:center; }
.me-stat-n { font-size:22px; font-weight:800; color:var(--od-primary); }
.me-stat-l { font-size:10.5px; color:#9aa2b1; margin-top:3px; }
.me-menu { margin:14px 14px 0; background:#fff; border-radius:14px; overflow:hidden; box-shadow:0 4px 16px rgba(30,40,80,.06); }
.me-menu.logout { margin-top:10px; }
.me-menu .m-me-item { border:0; }
.me-menu .m-me-item + .m-me-item { border-top:1px solid #f2f4f8; }
.me-menu .m-me-item .ic { width:28px; height:28px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:14px; flex:0 0 auto; }

/* 底部 Tab（浅色 4 宫格） */
.tabbar {
  position:fixed; left:0; right:0; bottom:0; z-index:50; background:#fff;
  border-top:1px solid #eef0f5; display:flex; padding:6px 0 calc(env(safe-area-inset-bottom,0px) + 6px);
}
.tabbar button {
  flex:1; border:0; background:none; display:flex; flex-direction:column; align-items:center; gap:3px;
  color:#a2aab8; font-size:10.5px; font-weight:600; position:relative;
}
.tabbar button svg { width:22px; height:22px; stroke:currentColor; fill:none; stroke-width:2; }
.tabbar button.on { color:var(--od-primary); }
.tabbar .dot {
  position:absolute; top:-2px; right:calc(50% - 20px); min-width:16px; height:16px; border-radius:8px;
  background:#ff3b30; color:#fff; font-size:10px; font-weight:700; display:flex; align-items:center; justify-content:center; padding:0 4px;
}

/* 全局开关/登录主色统一 */
.m-switch.on { background:var(--od-primary); }
.m-login .m-logo, .m-login button { background:linear-gradient(135deg,#4f46e5,#6366f1); }
.m-login input:focus { border-color:var(--od-primary); }

/* ---------- 话术库页（x234） ---------- */
.m-brief-card {
  margin: 10px 12px; background: #fff; border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 1px 4px rgba(31,39,51,.06); cursor: pointer;
}
.m-brief-card:active { background: #f0f6ff; }
.m-brief-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.m-brief-t { font-size: 15px; font-weight: 600; color: #1f2733; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-brief-cat {
  font-size: 11px; color: #1677ff; background: #eaf2ff;
  border-radius: 6px; padding: 2px 8px; flex-shrink: 0;
}
.m-brief-use { font-size: 11px; color: #12866a; flex-shrink: 0; }
.m-brief-c { font-size: 13px; color: #5b6472; line-height: 1.55; word-break: break-word; }
