/* WS43 一客户一卡片 · 组件样式（从定稿效果图 mockup.html 的浅色那组抽出来）
 * 🔴 防撞规矩：class 全部 w43- 前缀；变量全部 --w43- 前缀，定义在 .w43 根上（不定义在 :root——现有页面已经有 --bg --red --text 等，值不一样）。
 * 🔴 WS43 画的每个容器根节点都带 class="w43"（变量靠继承）。只做浅色（现有页面没有深色模式）。
 * 🔴 #app 上有 w43-on 才启用（游客 / 没登录时 #app 没有这个 class，页面跟改之前一模一样）。
 */
.w43, .mc-app.w43-on {
  --w43-paper:#ffffff; --w43-fg:#1d2321; --w43-mute:#6b7470; --w43-line:#dfe3e0; --w43-bg:#f5f6f4;
  --w43-accent:#1f5fbf; --w43-accent-soft:#e6eefb; --w43-red:#c2322c; --w43-red-soft:#fbe9e7; --w43-red-deep:#8e1f1a;
  --w43-amber:#9a6400; --w43-amber-soft:#fff3d6; --w43-green:#2b7a3f; --w43-green-soft:#e4f3e7; --w43-purple:#6b43a8; --w43-purple-soft:#efe8fa;
  --w43-rowsel:#eef4fd; --w43-nav:#f2f4f2; --w43-unseen:#f4f8ff; --w43-mono:"SF Mono",Menlo,Consolas,monospace;
}
.w43, .w43 * { box-sizing: border-box; }
.w43-clk { cursor: pointer; }
.w43 .w43-clk:focus-visible, .w43 [tabindex]:focus-visible { outline: 2px solid var(--w43-accent); outline-offset: -2px; }

/* ---------- 启用时：老左栏 / 窄条不出（内容也被 JS 清空）；#ws43Top 在 JS 里用 .hidden 控制显隐 ---------- */
.mc-app.w43-on #nav, .mc-app.w43-on #navRail { display: none !important; }
#ws43Top.hidden, #ws43Seg.hidden, #ws43Dock.hidden, #rail.hidden, #ws43Chips[hidden] { display: none !important; }

/* ---------- 顶部：状态标签 + 筛选胶囊 ---------- */
.w43-top { flex: none; background: var(--w43-paper); color: var(--w43-fg); position: relative; z-index: 4; }
.w43-tabs { display: flex; gap: 4px; align-items: flex-end; padding: 8px 18px 0; border-bottom: 1px solid var(--w43-line); background: var(--w43-paper); }
.w43-tab { padding: 8px 14px 10px; font-size: 14px; line-height: 20px; color: var(--w43-mute); border-bottom: 3px solid transparent; display: flex; gap: 8px; align-items: center; white-space: nowrap; user-select: none; flex: none; }
.w43-tab.w43-on { color: var(--w43-fg); font-weight: 600; border-bottom-color: var(--w43-accent); }
.w43-tab.w43-sp { margin-left: auto; }
.w43-cnt { font-size: 12px; padding: 0 7px; border-radius: 999px; background: var(--w43-nav); color: var(--w43-mute); font-weight: 600; min-width: 22px; text-align: center; line-height: 18px; }
.w43-cnt.w43-r { background: var(--w43-red); color: #fff; }
.w43-cnt.w43-a { background: var(--w43-amber); color: #fff; }
.w43-chips { display: flex; gap: 8px; padding: 9px 18px; flex-wrap: wrap; align-items: center; background: var(--w43-paper); border-bottom: 1px solid var(--w43-line); }
.w43-chips .w43-lab { font-size: 12px; color: var(--w43-mute); margin-right: 2px; }
.w43-chips .w43-sort { margin-left: auto; margin-right: 0; user-select: none; white-space: nowrap; }
.w43-chips .w43-sort:hover { color: var(--w43-fg); }
.w43-chip { font-size: 12.5px; line-height: 18px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--w43-line); color: var(--w43-fg); white-space: nowrap; user-select: none; flex: none; background: var(--w43-paper); }
.w43-chip.w43-on { background: var(--w43-fg); color: var(--w43-paper); border-color: var(--w43-fg); }
.w43-chip.w43-zero { color: var(--w43-mute); }
.w43-chip[data-ws43-chip="owe"] { color: var(--w43-amber); border-color: var(--w43-amber); }
.w43-chip[data-ws43-chip="owe"].w43-on { background: var(--w43-amber); color: #fff; }
.w43-chip .w43-n { opacity: .6; margin-left: 4px; }
.w43-divider { width: 1px; height: 18px; background: var(--w43-line); margin: 0 4px; flex: none; }
.w43-weekrow { padding: 7px 18px; font-size: 12px; color: var(--w43-mute); background: var(--w43-paper); border-bottom: 1px solid var(--w43-line); }

/* ---------- 顶栏切换「官网邮箱｜开发信回复 N」（放在 .mc-header 里搜索框左边） ---------- */
.w43-seg { display: flex; border: 1px solid var(--w43-line); border-radius: 8px; overflow: hidden; font-size: 13px; flex: none; background: var(--w43-paper); }
.w43-segi { padding: 6px 12px; color: var(--w43-mute); white-space: nowrap; user-select: none; }
.w43-segi.w43-on { background: var(--w43-fg); color: var(--w43-paper); font-weight: 600; }

/* ---------- 中间列表：头 / 分组 / 卡片 ---------- */
.w43-lhead { flex: none; padding: 8px 16px 6px; font-size: 12.5px; color: var(--w43-mute); border-bottom: 1px solid var(--w43-line); background: var(--w43-paper); }
.w43-lhead-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 24px; }
.w43-lhead-row > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w43-week { font-size: 11.5px; color: var(--w43-mute); padding-top: 2px; }
.w43-sbtn { height: 24px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--w43-line); font-size: 11.5px; display: inline-flex; align-items: center; gap: 5px; background: var(--w43-paper); white-space: nowrap; color: var(--w43-fg); flex: none; }
.w43-sbtn:hover { background: var(--w43-nav); }
.w43-grp { font-size: 11.5px; color: var(--w43-mute); padding: 8px 16px 4px; font-weight: 600; background: var(--w43-bg); display: flex; gap: 6px; align-items: center; }
.w43-grp.w43-hot { color: var(--w43-red); }
.w43-empty { padding: 40px 16px; text-align: center; color: var(--w43-mute); font-size: 13px; }
.w43-botgrp { display: block; width: 100%; padding: 10px 16px; border: 0; border-top: 1px solid var(--w43-line); background: var(--w43-paper); text-align: left; font-size: 12.5px; color: var(--w43-mute); cursor: pointer; font-family: inherit; }
.w43-botgrp:hover { background: var(--w43-nav); }
.w43-footnote { flex: none; border-top: 1px solid var(--w43-line); background: var(--w43-paper); padding: 4px 0 6px; }
.w43-footnote:empty { display: none; }

.w43-card { display: grid; grid-template-columns: 42px 1fr auto; gap: 11px; padding: 11px 16px 10px; border-bottom: 1px solid var(--w43-line); position: relative; background: var(--w43-paper); color: var(--w43-fg); text-align: left; }
.w43-card:hover { background: #fafbfa; }
.w43-card.w43-unseen { background: var(--w43-unseen); }
.w43-card.w43-unseen:hover { background: #ecf3ff; }
.w43-card.w43-sel, .w43-card.w43-sel:hover { background: var(--w43-rowsel); }
.w43-card.w43-sel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--w43-accent); }
.w43-wrap { display: flex; align-items: stretch; background: var(--w43-paper); }
.w43-wrap.w43-unseen { background: var(--w43-unseen); }
.w43-wrap.w43-sel { background: var(--w43-rowsel); }
.w43-wrap > .w43-card { flex: 1; min-width: 0; padding-left: 8px; background: transparent !important; }
.w43-wrap > .w43-card.w43-sel::before { left: -34px; }
.w43-check { flex: none; width: 34px; padding: 15px 0 0 12px; display: block; cursor: pointer; border-bottom: 1px solid var(--w43-line); }
.w43-check input { margin: 0; width: 16px; height: 16px; cursor: pointer; }
.w43-av { width: 42px; height: 42px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13.5px; position: relative; flex: none; overflow: hidden; }
.w43-av.w43-sm { width: 30px; height: 30px; font-size: 11px; }
.w43-c1 { min-width: 0; }
.w43-nm { font-size: 14.5px; font-weight: 600; display: flex; gap: 6px; align-items: center; white-space: nowrap; overflow: hidden; }
.w43-card.w43-unseen .w43-nm { font-weight: 800; }
.w43-nmt { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.w43-nm .w43-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--w43-accent); flex: none; }
.w43-nm .w43-new { font-size: 10.5px; background: var(--w43-red); color: #fff; border-radius: 4px; padding: 0 4px; font-weight: 700; flex: none; }
.w43-nm .w43-cnum { font-size: 11px; color: var(--w43-mute); font-weight: 500; border: 1px solid var(--w43-line); border-radius: 4px; padding: 0 5px; flex: none; }
.w43-nm .w43-old { font-size: 10.5px; color: var(--w43-green); background: var(--w43-green-soft); border-radius: 4px; padding: 0 5px; font-weight: 600; flex: none; }
.w43-co { font-size: 12.5px; color: var(--w43-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w43-sn { font-size: 13px; color: var(--w43-fg); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w43-sn b { font-weight: 600; color: var(--w43-mute); }
.w43-sn .w43-me { color: var(--w43-accent); font-weight: 600; }
.w43-pills { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.w43-pill { font-size: 11.5px; padding: 1px 8px; border-radius: 5px; background: var(--w43-nav); color: var(--w43-mute); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.w43-pill.w43-r { background: var(--w43-red-soft); color: var(--w43-red); font-weight: 600; }
.w43-pill.w43-rr { background: var(--w43-red); color: #fff; font-weight: 600; }
.w43-pill.w43-a { background: var(--w43-amber-soft); color: var(--w43-amber); font-weight: 600; }
.w43-pill.w43-b { background: var(--w43-accent-soft); color: var(--w43-accent); font-weight: 600; }
.w43-pill.w43-g { background: var(--w43-green-soft); color: var(--w43-green); font-weight: 600; }
.w43-pill.w43-p { background: var(--w43-purple-soft); color: var(--w43-purple); font-weight: 600; }
.w43-c3 { text-align: right; font-size: 12px; color: var(--w43-mute); display: flex; flex-direction: column; align-items: flex-end; gap: 5px; min-width: 54px; }
.w43-c3 .w43-wait { font-weight: 700; color: var(--w43-red); white-space: nowrap; }
.w43-c3 .w43-wait.w43-deep { color: var(--w43-red-deep); }
.w43-who { width: 22px; height: 22px; border-radius: 50%; font-size: 10px; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.w43-who.w43-none { background: transparent; border: 1.5px dashed var(--w43-red); color: var(--w43-red); font-size: 9px; }
.w43-who.w43-soft { background: #fff; }
.w43-whos { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--w43-mute); }

/* ---------- 读信时列表变窄（WS31 的 mc-compact）：每张卡只留前两行；「两个人都回了 / 有人正在写 / 等点头 / 定时」那几种草稿标签照样留着（藏了会撞车） ---------- */
.mc-app.mc-compact .w43-card { padding: 9px 12px; gap: 10px; }
.mc-app.mc-compact .w43-wrap > .w43-card { padding-left: 6px; }
.mc-app.mc-compact .w43-check { padding-top: 12px; }
.mc-app.mc-compact .w43-sn, .mc-app.mc-compact .w43-co { display: none; }
.mc-app.mc-compact .w43-pills:not(.w43-hk) { display: none; }
.mc-app.mc-compact .w43-pills.w43-hk .w43-pill:not(.w43-keep) { display: none; }
.mc-app.mc-compact .w43-pills { margin-top: 2px; }
.mc-app.mc-compact .w43-av { width: 34px; height: 34px; font-size: 12px; }
.mc-app.mc-compact .w43-card { grid-template-columns: 34px 1fr auto; }

/* ---------- 手机底部 dock（只在列表屏出） ---------- */
.w43-dock { display: none; flex: none; background: var(--w43-paper); border-top: 1px solid var(--w43-line); font-size: 12px; color: var(--w43-mute); padding-bottom: env(safe-area-inset-bottom, 0px); }
.w43-dk { flex: 1; text-align: center; padding: 9px 2px 10px; user-select: none; white-space: nowrap; }
.w43-dk.w43-on { color: var(--w43-accent); font-weight: 600; }
.w43-dk b { background: var(--w43-red); color: #fff; border-radius: 999px; padding: 0 6px; font-size: 11px; font-weight: 700; margin-left: 2px; }

/* ---------- 手机（<900px）：标签 / 胶囊一行可横滑不换行；列表屏出 dock；读信屏不出顶部标签和 dock ---------- */
@media (max-width: 899px) {
  .w43-tabs { padding: 4px 10px 0; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .w43-tabs::-webkit-scrollbar, .w43-chips::-webkit-scrollbar { display: none; }
  .w43-tab { padding: 8px 10px 9px; font-size: 13px; }
  .w43-chips { padding: 8px 10px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .w43-chips .w43-sort { margin-left: 8px; flex: none; }
  .w43-weekrow { padding: 6px 10px; }
  .w43-seg { display: none; }
  .mc-app.w43-on.step-list #ws43Dock:not(.hidden) { display: flex; }
  .mc-app.w43-on.step-detail #ws43Top { display: none !important; }
  .mc-app.w43-on.step-list .mc-back-btn { display: none !important; }
  .w43-card { padding: 10px 12px; grid-template-columns: 38px 1fr auto; gap: 9px; }
  .w43-av { width: 38px; height: 38px; font-size: 12px; }
  .w43-wrap > .w43-card { padding-left: 6px; }
}

/* ---------- 客户页头 / 时间线 / 资料栏（下一段 PB 用；这一段只放着，不接线） ---------- */
.w43-chead { background: var(--w43-paper); border-bottom: 1px solid var(--w43-line); padding: 14px 20px 0; }
.w43-crow { display: flex; gap: 12px; align-items: flex-start; }
.w43-ctitle { font-size: 18px; font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; line-height: 1.3; }
.w43-ctitle .w43-sub, .w43-sub { font-weight: 400; font-size: 14px; color: var(--w43-mute); }
.w43-cmeta { font-size: 12.5px; color: var(--w43-mute); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.w43-cmeta .w43-mono, .w43-mono { font-family: var(--w43-mono); font-size: 12px; }
.w43-cact { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.w43-sbtn.w43-pri { background: var(--w43-accent); color: #fff; border-color: var(--w43-accent); font-weight: 600; }
.w43-sbtn.w43-warn { border-color: var(--w43-red); color: var(--w43-red); }
.w43-status { display: flex; gap: 8px; margin: 12px 0 0; flex-wrap: wrap; align-items: center; }
.w43-stat { font-size: 12.5px; padding: 5px 10px; border-radius: 7px; display: flex; gap: 6px; align-items: center; }
.w43-stat.w43-r { background: var(--w43-red-soft); color: var(--w43-red); font-weight: 600; }
.w43-stat.w43-a { background: var(--w43-amber-soft); color: var(--w43-amber); font-weight: 600; }
.w43-stat.w43-b { background: var(--w43-accent-soft); color: var(--w43-accent); font-weight: 600; }
.w43-stat.w43-p { background: var(--w43-purple-soft); color: var(--w43-purple); font-weight: 600; }
.w43-stat.w43-n { background: var(--w43-nav); color: var(--w43-mute); }
.w43-ctabs { display: flex; gap: 18px; margin-top: 12px; font-size: 13.5px; align-items: center; }
.w43-ctabs span { padding-bottom: 9px; color: var(--w43-mute); border-bottom: 3px solid transparent; }
.w43-ctabs span.w43-on { color: var(--w43-fg); font-weight: 600; border-bottom-color: var(--w43-accent); }
.w43-ctabs small { color: var(--w43-mute); font-size: 12px; margin-left: 4px; }
.w43-ctabs .w43-right { margin-left: auto; font-size: 12px; color: var(--w43-mute); padding-bottom: 9px; }
.w43-msg { background: var(--w43-paper); border: 1px solid var(--w43-line); border-radius: 10px; margin-bottom: 8px; }
.w43-msg.w43-out { border-color: var(--w43-accent-soft); }
.w43-msg.w43-out .w43-msg-h .w43-from { color: var(--w43-accent); }
.w43-msg-h { display: flex; gap: 9px; align-items: center; padding: 9px 14px; font-size: 13px; }
.w43-msg-h .w43-from { font-weight: 600; white-space: nowrap; }
.w43-msg-h .w43-arrow { color: var(--w43-mute); white-space: nowrap; }
.w43-msg-h .w43-subj { color: var(--w43-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.w43-msg-h .w43-t { margin-left: auto; color: var(--w43-mute); font-size: 12px; white-space: nowrap; }
.w43-msg-h .w43-via { font-size: 10.5px; background: var(--w43-nav); color: var(--w43-mute); border-radius: 4px; padding: 0 5px; white-space: nowrap; }
.w43-msg-h .w43-seen { font-size: 10.5px; color: var(--w43-green); white-space: nowrap; }
.w43-msg.w43-open .w43-msg-b { padding: 0 14px 12px 53px; font-size: 13.5px; line-height: 1.55; }
.w43-msg.w43-open .w43-msg-b p { margin: 0 0 7px; }
.w43-cn { display: none; color: var(--w43-mute); font-size: 13px; background: var(--w43-bg); border-left: 3px solid var(--w43-line); padding: 5px 10px; margin: -2px 0 8px; border-radius: 0 6px 6px 0; }
.w43-zh .w43-cn { display: block; }
.w43-att { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--w43-line); border-radius: 6px; padding: 3px 8px 3px 3px; font-size: 12px; margin-right: 6px; background: var(--w43-bg); }
.w43-att i { width: 30px; height: 22px; border-radius: 3px; background: linear-gradient(135deg, #b6c8a6, #6d8a5c); display: inline-block; }
.w43-att i.w43-pdf { background: linear-gradient(135deg, #f0a7a1, #c74d45); }
.w43-att i.w43-xls { background: linear-gradient(135deg, #9bd3a8, #2f7a4a); }
.w43-daybar { font-size: 11.5px; color: var(--w43-mute); text-align: center; margin: 10px 0 8px; display: flex; align-items: center; gap: 10px; }
.w43-daybar::before, .w43-daybar::after { content: ""; flex: 1; height: 1px; background: var(--w43-line); }
.w43-topic { font-size: 11.5px; color: var(--w43-mute); margin: 6px 0 6px 4px; display: flex; gap: 6px; align-items: center; }
.w43-topic b { font-weight: 600; color: var(--w43-fg); }
.w43-topic::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--w43-line); display: inline-block; }
.w43-rail { border-left: 1px solid var(--w43-line); background: var(--w43-paper); overflow: hidden; font-size: 12.5px; color: var(--w43-fg); }
.w43-rail-h { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--w43-line); font-weight: 600; font-size: 13px; }
.w43-rail-h span.w43-sub { font-weight: 400; font-size: 11.5px; }
.w43-rsec { padding: 10px 14px; border-bottom: 1px solid var(--w43-line); }
.w43-rsec h5 { margin: 0 0 6px; font-size: 12px; color: var(--w43-mute); font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.w43-rsec h5 a { color: var(--w43-accent); font-weight: 500; font-size: 11.5px; }
.w43-kv { display: grid; grid-template-columns: 62px 1fr; gap: 3px 8px; font-size: 12.5px; margin: 0; }
.w43-kv dt { color: var(--w43-mute); margin: 0; }
.w43-kv dd { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w43-kv .w43-mono { font-size: 11.5px; }
.w43-steps { display: flex; gap: 3px; margin-top: 4px; }
.w43-step { flex: 1; text-align: center; font-size: 10.5px; color: var(--w43-mute); padding: 3px 0; background: var(--w43-nav); border-radius: 3px; white-space: nowrap; }
.w43-step.w43-done { background: var(--w43-accent-soft); color: var(--w43-accent); font-weight: 600; }
.w43-step.w43-cur { background: var(--w43-accent); color: #fff; font-weight: 600; }
.w43-owe { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; font-size: 12.5px; }
.w43-owe i { width: 14px; height: 14px; border: 1.5px solid var(--w43-amber); border-radius: 3px; flex: none; margin-top: 2px; }
.w43-owe.w43-done i { background: var(--w43-green); border-color: var(--w43-green); }
.w43-owe.w43-done span { color: var(--w43-mute); text-decoration: line-through; }
.w43-owe small { display: block; color: var(--w43-mute); font-size: 11px; }
.w43-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.w43-thumb { aspect-ratio: 1; border-radius: 6px; background: linear-gradient(135deg, #c9d3bf, #7f9a70); position: relative; overflow: hidden; }
.w43-thumb.w43-pdf { background: linear-gradient(135deg, #f3c3bf, #c74d45); }
.w43-thumb.w43-xls { background: linear-gradient(135deg, #bfe3c9, #2f7a4a); }
.w43-thumb span { position: absolute; left: 0; right: 0; bottom: 0; font-size: 9.5px; background: rgba(0,0,0,.45); color: #fff; padding: 1px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w43-hist { font-size: 12px; color: var(--w43-mute); line-height: 1.6; }
.w43-hist b { color: var(--w43-fg); font-weight: 600; }
.w43-memo { border: 1px dashed var(--w43-line); border-radius: 6px; padding: 6px 8px; color: var(--w43-mute); font-size: 12px; min-height: 40px; }

/* 预制件 listHtml 用的简单列表头（页面里自己画的是 .w43-lhead，两个长得一样） */
.w43-list-head { padding: 8px 16px; font-size: 12.5px; color: var(--w43-mute); border-bottom: 1px solid var(--w43-line); display: flex; justify-content: space-between; align-items: center; }

/* ==================================================================
 * WS43-PB：客户页头 / 合并时间线 / 右侧资料栏 / 布局按钮「资料」/ 手机
 * ================================================================== */

/* ---------- 客户页头（两种读信模式共用；.mc-detail-head 的外框样式照旧，这里只管里面） ---------- */
.w43-chead { padding: 14px 0 0; gap: 0; min-width: 0; }
.w43-chead .mc-detail-title-row { padding: 0 20px; gap: 8px; align-items: center; flex-wrap: wrap; row-gap: 6px; }
.w43-chead .mc-detail-title-row h1 { flex: 0 1 auto; max-width: 46%; }
.w43-chead .w43-csub { font-size: 14px; color: var(--w43-mute); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w43-cact { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.w43-crow { display: flex; gap: 12px; align-items: flex-start; padding: 6px 20px 0; }
.w43-cmain { min-width: 0; flex: 1; }
.w43-av50 { width: 50px; height: 50px; font-size: 16px; }
.w43-chead .w43-ctitle { gap: 6px; }
.w43-chead .w43-pill { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--w43-nav); color: var(--w43-mute); }
.w43-chead .w43-status { padding: 12px 20px 0; margin: 0; }
.w43-chead .w43-ctabs { padding: 12px 20px 0; margin: 0; }
.w43-chead .w43-sameco { font-size: 12.5px; }
.w43-red { color: var(--w43-red); }
.w43-mute { color: var(--w43-mute); }
.w43-skel { display: inline-block; height: 11px; width: 88px; border-radius: 4px; background: linear-gradient(90deg, #eef0f2 25%, #e3e6e9 37%, #eef0f2 63%); background-size: 400% 100%; animation: w43skel 1.2s ease infinite; }
@keyframes w43skel { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
/* 负责人下拉 / 手机「⋯」菜单 */
.w43-omenu, .w43-mobmenu { position: absolute; right: 20px; top: 44px; z-index: 20; min-width: 170px; padding: 6px; background: var(--w43-paper); border: 1px solid var(--w43-line); border-radius: 10px; box-shadow: 0 14px 40px rgba(0,0,0,.14); display: flex; flex-direction: column; gap: 2px; }
.w43-mobmenu { top: 64px; }
.w43-omenu-h { font-size: 11.5px; color: var(--w43-mute); padding: 4px 8px 6px; }
.w43-omenu-i { font-size: 13px; padding: 7px 9px; border-radius: 7px; white-space: nowrap; }
.w43-omenu-i:hover { background: var(--w43-nav); }
.w43-omenu-i.w43-on { color: var(--w43-accent); font-weight: 600; }
.w43-morebtn { display: none; }
.w43-onlymob { display: none; }

/* ---------- 合并时间线 ---------- */
.w43-msg-b { padding: 0 14px 6px 53px; min-width: 0; }
.w43-msg-b .mc-msg, .w43-msg-b .rd-msg, .w43-msg-b article { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; margin: 0 !important; padding: 0 !important; background: transparent !important; }
.w43-msg.w43-peer { background: #f4f5f7; }
.w43-msg.w43-peer .w43-msg-h .w43-from { color: #5f6672; }
.w43-foldbar { text-align: right; font-size: 11.5px; color: var(--w43-mute); padding: 2px 0 4px; }
.w43-foldbar span:hover { color: var(--w43-fg); }
.w43-tail { margin-top: 4px; }
.w43-otherdraft { font-size: 12.5px; color: var(--w43-amber); background: var(--w43-amber-soft); border-radius: 8px; padding: 8px 12px; }
.w43-otherdraft:hover { filter: brightness(.97); }
.w43-empty { padding: 40px 16px; text-align: center; color: var(--w43-mute); font-size: 13px; }
/* 回复框上方「回复到：<主题>」那一行 */
.w43-route { display: flex; align-items: center; gap: 8px; padding: 7px 24px; font-size: 12.5px; color: var(--w43-mute); background: var(--w43-paper); border-top: 1px solid var(--w43-line); flex: none; }
.w43-route b { color: var(--w43-fg); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w43-route.w43-warn { background: var(--w43-amber-soft); color: var(--w43-amber); }
.w43-route.w43-warn b { color: var(--w43-amber); }
/* 中文回信模式「往来」块顶上的主题小胶囊 */
.w43-topicpills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.w43-tpill { font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--w43-line); background: var(--w43-paper); color: var(--w43-mute); white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.w43-tpill.w43-on { background: var(--w43-fg); border-color: var(--w43-fg); color: var(--w43-paper); }
.w43-tpill .w43-reddot { width: 6px; height: 6px; border-radius: 50%; background: var(--w43-red); display: inline-block; }
/* 附件页 / 欠他的事页 / 备注页（都在 #detailStream 里） */
.w43-attshead, .w43-pagehead { font-size: 12.5px; color: var(--w43-mute); padding: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.w43-attsgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.w43-attsgrid .w43-attcell { min-width: 0; }
.w43-attcell .mc-att-thumb { width: 100%; }
.w43-attmeta { font-size: 11px; color: var(--w43-mute); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w43-owespage, .w43-notepage { font-size: 13px; }
.w43-owespage .w43-owe, .w43-rsec .w43-owe { padding: 7px 0; border-bottom: 1px dashed var(--w43-line); }
.w43-donesep { margin-top: 14px; }
.w43-owe-addrow { display: flex; gap: 6px; align-items: center; margin: 8px 0; }
.w43-input { flex: 1; min-width: 0; height: 30px; padding: 0 10px; border: 1px solid var(--w43-line); border-radius: 8px; background: var(--w43-paper); color: var(--w43-fg); font-size: 13px; font-family: inherit; }
.w43-memo-edit { width: 100%; min-height: 120px; padding: 8px 10px; border: 1px solid var(--w43-line); border-radius: 8px; font-size: 13px; font-family: inherit; line-height: 1.6; resize: vertical; color: var(--w43-fg); }
.w43-notepage-f { display: flex; align-items: center; gap: 10px; margin-top: 8px; }

/* ---------- 右侧资料栏：#list | #detail | #rail 三种形态 ---------- */
.mc-app.w43-on .mc-body { position: relative; overflow: hidden; }
#rail.w43-rail-col { flex: none; width: 272px; min-width: 0; display: flex; flex-direction: column; overflow-y: auto; }
#rail.w43-rail-float { position: absolute; top: 0; right: 0; bottom: 0; width: 272px; z-index: 8; display: flex; flex-direction: column; overflow-y: auto; box-shadow: -8px 0 24px rgba(16,24,40,.12); }
#rail.w43-rail-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 88vw); z-index: 40; display: flex; flex-direction: column; overflow-y: auto; box-shadow: -10px 0 30px rgba(0,0,0,.2); }
.w43-scrim { position: fixed; inset: 0; background: rgba(16,24,40,.18); z-index: 39; }
.w43-scrim.hidden { display: none !important; }
.w43-rsec .w43-step { border-radius: 3px; }
.w43-steptip { font-size: 11.5px; margin-top: 4px; }
.w43-memowho { font-size: 11px; margin-top: 4px; }
.w43-merge-row { display: flex; gap: 6px; align-items: center; margin: 5px 0; font-size: 12px; }
.w43-merge-row .w43-mono { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.w43-merge-row a { color: var(--w43-accent); font-size: 11.5px; }
.w43-merge-tip { font-size: 11px; margin-top: 4px; line-height: 1.5; }
.w43-thumbs .w43-attcell { min-width: 0; }
.w43-thumbs .mc-att-thumb { width: 100%; }
.w43-thumbs .mc-att-thumb .cap { font-size: 9.5px; }
.w43-rsec .w43-owe i { cursor: pointer; }
.w43-rsec .w43-owe i:hover { border-color: var(--w43-green); }
.w43-rsec .w43-owe.w43-done i { background: var(--w43-green); border-color: var(--w43-green); }
.w43-rsec .w43-owe.w43-done span { color: var(--w43-mute); text-decoration: line-through; }

/* ---------- 手机（<900px）：页头压缩、按钮收进「⋯」、状态条/小标签横滑、资料栏抽屉 ---------- */
@media (max-width: 899px) {
  .w43-chead { padding: 8px 0 0; }
  .w43-chead .mc-detail-title-row { padding: 0 12px; gap: 6px; }
  .w43-chead .mc-detail-title-row h1 { font-size: 16px; max-width: 52%; }
  .w43-chead .w43-crow { padding: 4px 12px 0; gap: 9px; }
  .w43-chead .w43-status, .w43-chead .w43-ctabs { padding-left: 12px; padding-right: 12px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .w43-chead .w43-status::-webkit-scrollbar, .w43-chead .w43-ctabs::-webkit-scrollbar { display: none; }
  .w43-av50 { width: 38px; height: 38px; font-size: 13px; }
  .w43-chead .w43-cact { gap: 5px; }
  .w43-chead .w43-cact > .w43-sbtn:not(#ws43RailBtn):not(.w43-morebtn), .w43-chead .w43-cact > #openProfileBtn { display: none; }
  .w43-morebtn { display: inline-flex; }
  .w43-onlydesk { display: none; }
  .w43-onlymob { display: inline; }
  .w43-ctabs .w43-right { display: none; }
  .w43-route { padding: 7px 12px; }
  .w43-msg-b { padding: 0 8px 6px 8px; }
  .w43-attsgrid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}
@media (min-width: 900px) { .w43-mobmenu { display: none; } }
/* 2026-10-08: 对话卡片。方向、正文摘要与操作固定在卡片上。 */
.w43-reading-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0 14px;font-size:12px;color:var(--w43-mute)}
.w43-reading-tools>div{display:flex;gap:8px;flex-shrink:0}
.w43-reading-tools button,.w43-foldbar button,.w43-history-more{border:1px solid var(--w43-line);border-radius:7px;background:var(--w43-paper);color:var(--w43-fg);padding:6px 10px;cursor:pointer;font:inherit}
.w43-conversation.w43-msg{border:1px solid var(--w43-line);border-left:4px solid #4788bd;border-radius:10px;background:var(--w43-paper);margin-bottom:12px;overflow:hidden}
.w43-conversation.w43-out{border-left-color:#3e9579}
.w43-conversation.w43-peer{border-left-color:#9299a4}
.w43-conversation .w43-msg-h{width:100%;border:0;border-radius:0;background:transparent;color:var(--w43-fg);text-align:left;font:inherit;cursor:pointer;padding:12px 14px;gap:10px;min-height:54px}
.w43-conversation .w43-msg-h:hover,.w43-preview:hover{background:var(--w43-bg)}
.w43-sender{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}
.w43-conversation .w43-from{font-size:13px;overflow:hidden;text-overflow:ellipsis;max-width:230px}
.w43-direction{font-size:11px;color:#326f9d;background:#eaf3fa;border-radius:5px;padding:2px 6px;white-space:nowrap}
.w43-out .w43-direction{color:#26765b;background:#e8f4ee}
.w43-peer .w43-direction{color:#67707d;background:#edf0f3}
.w43-latest{color:#287099;font-size:11px;white-space:nowrap}
.w43-expand{color:var(--w43-mute);font-size:12px;white-space:nowrap;margin-left:6px}
.w43-preview{display:block;width:100%;border:0;background:transparent;text-align:left;color:var(--w43-fg);font:inherit;font-size:13px;line-height:1.7;padding:0 18px 5px 57px;cursor:pointer}
.w43-preview>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.w43-card-tools{display:flex;gap:12px;align-items:center;padding:0 18px 10px 57px;min-height:27px}
.w43-card-tools button{font:inherit;font-size:12px;border:0;background:transparent;padding:3px 0;color:#397ba9;cursor:pointer}
.w43-reply-link{margin-left:auto}
.w43-peer-label{font-size:11px;color:var(--w43-mute)}
.w43-conversation .w43-msg-b{padding:0 16px 10px 53px;overflow-wrap:anywhere}
.w43-conversation .mc-msg,.w43-conversation .rd-msg{margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
.w43-conversation .mc-msg-main{padding:8px 0 0}
.w43-conversation .rd-msg>.rd-bi,.w43-conversation .rd-msg>.rd-thumbs{margin:8px 0}
.w43-mail-meta{margin:0 0 8px;font-size:12px;color:var(--w43-mute)}
.w43-mail-meta>summary{cursor:pointer;padding:3px 0;width:fit-content}
.w43-conversation .w43-mail-meta .mc-msg-top,.w43-conversation .w43-mail-meta .rd-msg-top{margin-top:6px;padding:8px;border-radius:6px;flex-wrap:wrap}
.w43-conversation .w43-foldbar{text-align:right;padding-top:8px;font-size:12px}
.w43-history-more{display:block;width:100%;padding:12px;font-size:13px}
.w43-conversation :is(button,summary):focus-visible,.w43-reading-tools button:focus-visible{outline:2px solid #3984b8;outline-offset:-2px}
@media(max-width:600px){
 .w43-reading-tools{align-items:flex-start;flex-wrap:wrap;gap:8px}
 .w43-conversation .w43-msg-h{padding:10px;gap:7px;flex-wrap:wrap}
 .w43-conversation .w43-sender{flex:1;max-width:calc(100% - 50px)}
 .w43-conversation .w43-from{max-width:175px}
 .w43-conversation .w43-t{margin-left:0;padding-left:40px;font-size:11px}
 .w43-conversation .w43-expand{margin-left:auto}
 .w43-conversation .w43-latest{font-size:10px}
 .w43-conversation .w43-preview{padding:0 12px 5px;font-size:13px}
 .w43-conversation .w43-card-tools{padding:0 12px 8px}
 .w43-conversation .w43-msg-b{padding:0 12px 10px}
}

/* Flex stream must scroll full-height cards instead of shrinking clipped cards to zero. */
.mc-detail-stream>.w43-conversation,.mc-detail-stream>.w43-reading-tools,.mc-detail-stream>.w43-daybar,.mc-detail-stream>.w43-topic{flex-shrink:0}

.mc-app.w43-on #detailStream{gap:8px}
.w43-conversation .mc-att-thumb{width:104px}
.w43-conversation .mc-att-thumb .img{width:104px;height:84px}

/* 来信靠左白底；已发送回信靠右绿底，不只靠细边区分。 */
.w43-conversation.w43-msg{margin-right:40px}
.w43-conversation.w43-msg.w43-out{margin-left:40px;margin-right:0;background:#e8f5ee;border:1px solid #8abda0;border-right:6px solid #248453}
.w43-conversation.w43-out .w43-msg-h{background:#d7eddf}
.w43-conversation.w43-out .w43-msg-h:hover,.w43-conversation.w43-out .w43-preview:hover{background:#cce6d6}
.w43-conversation.w43-out .w43-msg-h .w43-from{color:#175b3d;font-weight:700}
.w43-conversation.w43-out .w43-direction{background:#237d4f;color:#fff;font-weight:700;font-size:12px;padding:4px 9px;border-radius:6px}
.w43-conversation.w43-out .w43-av{background:#237d4f!important}
.w43-conversation.w43-out .w43-card-tools button{color:#20633f}
@media(max-width:600px){
 .w43-conversation.w43-msg{margin-right:12px}
 .w43-conversation.w43-msg.w43-out{margin-left:12px;margin-right:0}
}

/* 精简客户页头：身份、待办、阅读导航分层；资料和低频操作按需打开。 */
.w43-compact-head{position:relative;overflow:visible}
.w43-compact-head .mc-detail-title-row{gap:12px;flex-wrap:nowrap}
.w43-compact-head .w43-head-avatar{width:36px;height:36px;font-size:13px;flex:none}
.w43-head-identity{flex:1;min-width:0}
.w43-head-name{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.w43-compact-head .w43-head-name h1{max-width:100%;margin:0;overflow-wrap:anywhere;font-size:18px}
.w43-compact-head .w43-csub{white-space:normal;overflow-wrap:anywhere}
.w43-head-source{font-size:12px;color:var(--w43-mute);margin-top:2px}
.w43-compact-head .w43-morebtn{display:inline-flex;flex:none;background:transparent;color:var(--w43-mute);border:0;font:inherit;cursor:pointer}
.w43-head-second{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;padding:12px 20px 0}
.w43-compact-head .w43-status{padding:0;margin:0;gap:6px}
.w43-head-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-left:auto}
.w43-head-tools .w43-sbtn{background:transparent}
.w43-head-info{position:relative;font-size:12.5px;color:var(--w43-mute)}
.w43-head-info summary{cursor:pointer;padding:5px 8px;border-radius:7px;white-space:nowrap}
.w43-head-info-body{position:absolute;right:0;top:calc(100% + 6px);z-index:50;width:min(340px,calc(100vw - 56px));padding:14px;background:var(--w43-paper);border:1px solid var(--w43-line);border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.12)}
.w43-head-info-body .w43-cmeta{display:flex;flex-direction:column;gap:8px;overflow-wrap:anywhere}
.w43-head-info-body .w43-mono{overflow-wrap:anywhere}
.w43-head-tags{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0}
.w43-compact-head .w43-mobmenu{display:flex;top:48px;max-width:calc(100% - 32px)}
.w43-compact-head .w43-mobmenu button{font:inherit;text-align:left;border:0;background:transparent;color:var(--w43-fg);cursor:pointer;white-space:normal}
.w43-compact-head .w43-mobmenu button:hover{background:var(--w43-nav)}
.w43-compact-head .w43-ctabs{gap:18px}
@media(max-width:899px){
 .w43-compact-head .mc-detail-title-row{padding:0 12px}
 .w43-head-second{padding:10px 12px 0;gap:8px}
 .w43-head-tools{gap:5px}
 .w43-compact-head .w43-ctabs{gap:14px;flex-wrap:wrap}
 .w43-compact-head .w43-omenu,.w43-compact-head .w43-mobmenu{right:12px}
 .w43-compact-head .w43-head-name h1{font-size:16px}
 .w43-compact-head .mc-detail-title-row:has(.ws31-zoomnav){flex-wrap:wrap}
}

/* 桌面客户页头压缩到两行：身份与操作一行，导航与状态一行。 */
.w43-two-row{padding-top:10px}
.w43-two-row .mc-detail-title-row{gap:10px}
.w43-two-row .w43-head-avatar{width:30px;height:30px;font-size:12px}
.w43-two-row .w43-head-name{flex-wrap:nowrap;min-width:0}
.w43-two-row .w43-head-name h1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:0 1 auto;min-width:0;font-size:17px}
.w43-two-row .w43-head-name .w43-csub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:0 1 auto;font-size:13px}
.w43-two-row .w43-head-tools{flex:none;flex-wrap:nowrap;margin-left:0;gap:7px}
.w43-head-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 20px 0}
.w43-two-row .w43-ctabs{padding:0;margin:0;flex:none;gap:18px}
.w43-two-row .w43-status{padding:0 0 6px;margin:0;gap:6px;justify-content:flex-end}
.w43-two-row .w43-stat{font-size:12px;padding:3px 8px}
.w43-two-row .w43-ctabs>span{padding-bottom:7px}
.w43-two-row .w43-sbtn,.w43-two-row .mc-btn{font-size:12px}
.w43-two-row .w43-mobmenu{top:42px}
@media(max-width:760px){
 .w43-two-row .mc-detail-title-row{flex-wrap:wrap}
 .w43-two-row .w43-head-identity{flex:1;min-width:120px}
 .w43-two-row .w43-head-tools{margin-left:auto;flex-wrap:wrap;gap:5px}
 .w43-head-bottom{padding:7px 12px 0;flex-wrap:wrap;gap:4px}
 .w43-two-row .w43-status{justify-content:flex-start}
 .w43-two-row .w43-head-name .w43-csub{display:none}
}

/* 一页滚动：蓝色待发回复置顶，红色客户来信，绿色我方已发送。 */
#detail.ws43-flow:not(.cn-mode){overflow-y:auto;overflow-x:hidden;background:#eef0f4}
#detail.ws43-flow>.mc-detail-head{position:sticky;top:0;z-index:25;flex-shrink:0}
#detail.ws43-flow:not(.cn-mode) #detailStream{display:flex!important;overflow:visible;flex:none;min-height:0;height:auto;max-height:none;padding-top:0}
/* Keep rounded clipping without a scroll container, so the send footer sticks to the reading pane. */
#detail.ws43-flow .w43-flow-reply{margin:16px 24px;border:1px solid #a8c4e8;border-right:5px solid #1263ce;border-radius:14px;background:#fff;overflow:clip;flex-shrink:0}
#detail.ws43-flow .w43-flow-head{padding:11px 16px;display:flex;gap:12px;align-items:center;flex-wrap:wrap;background:#edf4ff;color:#174c8f}
#detail.ws43-flow .w43-flow-head>span{font-size:12px;padding:2px 7px;background:#fff3da;color:#8a570d;border-radius:5px}
#detail.ws43-flow #composerHost{display:block!important;max-height:none;overflow:visible;flex:none;border:0;box-shadow:none;padding:12px 16px;background:#fff}
#detail.ws43-flow #composerHost .mw-body{max-height:none!important;min-height:160px;overflow-y:hidden!important;resize:none;border:0;border-radius:0}
#detail.ws43-flow #composerHost [data-mw-role="maximize"]{display:none!important}
#detail.ws43-flow #composerHost .mw-body:focus-visible{outline:2px solid #8bb4e8;outline-offset:2px}
#detail.ws43-flow #ws43Route{margin:0;padding:8px 16px}
#detail.ws43-flow .w43-flow-ai{padding:0 16px 12px;background:#fff;color:var(--w43-mute);font-size:12px}
#detail.ws43-flow .w43-flow-ai>summary{cursor:pointer;padding:6px 0;color:#1762bf}
#detail.ws43-flow .w43-flow-ai .mc-ai-card{margin:6px 0 0;border:0;padding:10px;background:#f2f6fc}
#detail.ws43-flow.cn-mode #blkSend{margin:14px 0 0}
#detail.ws43-flow.cn-mode #blkMessages{margin-top:0;background:transparent;padding:0;border:0}
#detail.ws43-flow.cn-mode #cnScroll{background:#eef0f4}
#detail.ws43-flow.cn-mode .w43-flow-extras{margin-top:4px;color:var(--w43-mute);font-size:13px}
#detail.ws43-flow.cn-mode .w43-flow-extras>summary{padding:10px 2px;cursor:pointer}
#detail.ws43-flow.cn-mode #blkDraft{padding:10px;background:#f6f8fb;border-radius:8px}
:is(#detail.ws43-flow,.pool-conversation) .w43-conversation:not(.w43-out):not(.w43-peer){border-left:4px solid #c44747;background:#fff7f6}
:is(#detail.ws43-flow,.pool-conversation) .w43-conversation:not(.w43-out):not(.w43-peer) .w43-msg-h{background:#fde9e6}
:is(#detail.ws43-flow,.pool-conversation) .w43-conversation:not(.w43-out):not(.w43-peer) .w43-direction{background:#f8d9d5;color:#a32d29}
:is(#detail.ws43-flow,.pool-conversation) .w43-conversation:not(.w43-out):not(.w43-peer) .w43-av{background:#ad4141!important}
:is(#detail.ws43-flow,.pool-conversation) .w43-conversation:not(.w43-out):not(.w43-peer) .w43-from{color:#842f2b}
#detail.ws43-flow .w43-msg-b{scroll-margin-top:95px}
#detail.ws43-flow #detailStream,#detail.ws43-flow #blkMessages{scroll-margin-top:95px}
@media(max-width:899px){
 #detail.ws43-flow .w43-flow-reply{margin:12px 14px}
 #detail.ws43-flow.cn-mode #blkSend{margin:12px 0 0}
 #detail.ws43-flow #composerHost{padding:10px 12px}
 #detail.ws43-flow .w43-flow-head{padding:10px 12px}
}

#detail.ws43-flow>#ws35OweHost{flex-shrink:0}

/* Mail metadata and attachment counts belong to the card title, not the body. */
.w43-titlebar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:12px;padding-right:14px}
.w43-titlebar>.w43-msg-h{grid-column:1;grid-row:1;min-width:0;background:transparent!important}
.w43-titlebar>.w43-att-hint{grid-column:2;grid-row:1;font:inherit;font-size:12px;white-space:nowrap;color:#586773;cursor:pointer;padding:4px 0;border:0;background:transparent}
.w43-envelope{grid-column:1/-1;grid-row:2;display:flex;flex-wrap:wrap;gap:3px 18px;padding:0 0 10px 53px;font-size:12px;line-height:1.65;min-width:0;overflow-wrap:anywhere}
.w43-envelope-field{min-width:0;max-width:100%}
.w43-envelope-label{color:var(--w43-mute)}
.w43-envelope-value{color:var(--w43-fg);user-select:text}
.w43-conversation:not(.w43-out):not(.w43-peer)>.w43-titlebar{background:#fde9e6}
.w43-conversation.w43-out>.w43-titlebar{background:#d7eddf}
.w43-conversation.w43-peer>.w43-titlebar{background:#eceef2}
@media(max-width:600px){
 .w43-titlebar{column-gap:10px;padding-right:10px}
 .w43-titlebar>.w43-msg-h{grid-column:1/-1}
 .w43-titlebar>.w43-att-hint{grid-column:2;grid-row:2;margin-bottom:6px}
 .w43-titlebar>.w43-envelope{grid-row:3;padding-left:14px}
}

/* Group attachments by their exact source message, newest first. */
.w43-attgroup{background:#fff;border:1px solid #e1d8d7;border-left:4px solid #c44747;border-radius:12px;padding:14px 16px;margin:12px 0 18px}
.w43-attgroup-out{border-left-color:#238253}.w43-attgroup-peer{border-left-color:#89919b}
.w43-att-source-head{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;font-size:13px;overflow-wrap:anywhere}
.w43-att-source-head>b{color:#3d4854;font-size:14px}
.w43-att-source-dir{color:#a23838;background:#fde9e6;border-radius:4px;padding:2px 6px;font-size:11px}
.w43-attgroup-out .w43-att-source-dir{color:#216e47;background:#e8f5ee}
.w43-attgroup-peer .w43-att-source-dir{color:#65707d;background:#eef0f3}
.w43-att-source-count{color:#717c87;margin-left:auto;font-size:12px}
.w43-att-source-subject{display:flex;align-items:flex-start;gap:12px;margin:9px 0 14px;font-size:12px;color:#606b77;line-height:1.6}
.w43-att-source-subject>span{flex:1;min-width:0;overflow-wrap:anywhere}
.w43-att-source-subject>button{flex:none;border:1px solid #cbdced;border-radius:6px;background:#f5f9ff;color:#235e9f;padding:5px 10px;font:inherit;cursor:pointer;white-space:nowrap}
.w43-attgroup .w43-attsgrid{display:flex;flex-wrap:wrap;gap:12px}
.w43-attgroup .w43-attcell{width:168px;max-width:100%}
.w43-attgroup .mc-att-thumb .cap{white-space:normal;overflow-wrap:anywhere;line-height:1.5;height:auto}
.w43-source-target{animation:w43-source-highlight 3s ease-out}
@keyframes w43-source-highlight{0%,50%{box-shadow:0 0 0 3px #297cda}100%{box-shadow:none}}
@media(max-width:600px){
 .w43-attgroup{padding:12px;margin:10px 0 14px}
 .w43-att-source-head>b{flex-basis:100%;font-size:13px}
 .w43-att-source-subject{flex-wrap:wrap;gap:8px}.w43-att-source-subject>span{flex-basis:100%}
 .w43-attgroup .w43-attcell{width:calc((100% - 12px)/2)}
}
@media(prefers-reduced-motion:reduce){.w43-source-target{animation:none;outline:2px solid #297cda}}

.w43-research{font-size:12px;line-height:1.65;overflow-wrap:anywhere}
.w43-research h5{display:flex;align-items:center;justify-content:space-between}
.w43-research-state{color:#60748a;font-size:11px;margin-bottom:8px}
.w43-research-summary{margin:8px 0;color:#273846}
.w43-research-section{margin:9px 0}.w43-research-section summary{cursor:pointer;color:#3e5d7a;font-weight:600}
.w43-research-section ul,.w43-research-section ol{padding-left:20px;margin:7px 0}
.w43-research-section li{margin:6px 0;scroll-margin-top:12px}
.w43-research-section a,.w43-research-section button{color:#256ab3;font:inherit;overflow-wrap:anywhere}
.w43-research-section button{background:transparent;border:0;padding:0;text-align:left;cursor:pointer}

/* Keep the customer website at the start of research, including narrow drawers. */
.w43-research-website{margin:8px 0;padding:8px 10px;background:#f4f7fc;border-radius:6px;overflow-wrap:anywhere;line-height:1.6}
.w43-research-website a{color:#1464c8;text-decoration:underline}
.w43-research-website small{display:block;margin-top:2px}

/* First actions above the collapsed reply draft, in both reading modes. */
#detail.ws43-flow .w43-flow-tools{margin:0 24px;flex-shrink:0}
#detail.ws43-flow .w43-flow-tools .w43-reading-tools{padding:10px 0 0}
#detail.ws43-flow .w43-flow-reply{margin-top:10px}
#detail.ws43-flow .w43-flow-head{cursor:pointer;list-style:none}
#detail.ws43-flow .w43-flow-head::-webkit-details-marker{display:none}
#detail.ws43-flow .w43-draft-fold-label{margin-left:auto;font-size:12px;font-style:normal}
#detail.ws43-flow .w43-draft-fold-label:after{content:'展开编辑 ▾'}
#detail.ws43-flow .w43-flow-reply[open] .w43-draft-fold-label:after{content:'收起草稿 ▴'}
#detail.ws43-flow.cn-mode .w43-flow-tools{margin:0}
@media(max-width:899px){#detail.ws43-flow .w43-flow-tools{margin:0 14px}}

/* Reading actions share the fixed white navigation row. */
.w43-head-reading{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-left:auto;min-width:0;padding-bottom:6px}
.w43-head-reading .w43-reading-tools{padding:0;gap:0;white-space:nowrap}
.w43-head-reading .w43-reading-tools>div{gap:6px}
.w43-head-reading .w43-reading-tools button{padding:4px 9px;font-size:12px}
.w43-two-row .w43-head-reading .w43-status{padding:0;flex-wrap:wrap}
.w43-head-reading [hidden]{display:none!important}
@media(max-width:760px){
 .w43-two-row .w43-ctabs{gap:12px;flex-wrap:wrap;min-width:0}
 .w43-head-bottom{column-gap:8px}
 .w43-head-reading{gap:8px;flex-wrap:wrap;justify-content:flex-end;padding-bottom:6px;max-width:100%}
 .w43-head-reading .w43-reading-tools{flex-wrap:nowrap}
}

/* Owner menu follows its trigger when the header wraps or resizes. */
.w43-owner-anchor{position:relative;display:inline-flex;flex:none}
.w43-chead .w43-owner-anchor > .w43-omenu{left:0;right:auto;top:100%;margin-top:0}

/* Inline customer assignment; active owner toggles off on a second click. */
.w43-owner-inline{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.w43-owner-inline .w43-owner-btn.w43-on{background:var(--w43-accent);border-color:var(--w43-accent);color:#fff;font-weight:600}
.w43-owner-inline button:disabled{opacity:.6;cursor:wait}

/* Available reading-pane width can be narrow even on desktop. */
.w43-two-row .mc-detail-title-row{flex-wrap:wrap}
.w43-two-row .w43-head-tools{flex:0 1 auto;min-width:0;max-width:100%;flex-wrap:wrap}
.w43-two-row .w43-owner-inline{flex:0 1 auto;min-width:0;max-width:100%}

.w43-owner-inline{position:relative}.w43-pool-confirm{position:absolute;right:0;top:calc(100% + 6px);z-index:60;background:#fff;border:1px solid #ccd5e1;border-radius:8px;box-shadow:0 5px 20px #20304025;padding:12px;box-sizing:border-box;width:260px;max-width:100%;overflow-wrap:anywhere;font-size:13px;line-height:1.6}.w43-pool-confirm-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:8px}

/* Garbage-folder monitor; independent of the message reader and composer. */
.w43-junk-monitor { display:flex; flex:none; align-items:center; gap:8px 16px; flex-wrap:wrap; padding:7px 18px; background:#fffaf0; border-bottom:1px solid #eadbb9; }
.w43-junk-monitor.hidden, .w43-junk-overlay.hidden { display:none; }
.w43-junk-entry { border:0; background:transparent; color:#775414; font-size:12.5px; font-weight:600; padding:2px 0; cursor:pointer; text-align:left; }
.w43-junk-entry.has-alerts { color:#b42318; font-weight:700; }
.w43-junk-entry span { margin-left:8px; text-decoration:underline; font-weight:400; }
.w43-junk-status { color:#777; font-size:11.5px; }
.w43-junk-status.warn { color:#995c00; }
.w43-junk-overlay { position:fixed; inset:0; z-index:20020; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,.35); padding:20px; }
.w43-junk-modal { width:min(780px,100%); max-height:86vh; display:flex; flex-direction:column; min-width:0; border-radius:16px; background:#fff; box-shadow:0 24px 60px rgba(0,0,0,.25); }
.w43-junk-head { display:flex; align-items:center; gap:8px; padding:16px 20px; border-bottom:1px solid #e5e7eb; flex:none; flex-wrap:wrap; }
.w43-junk-head h2 { margin:0; flex:1; font-size:17px; min-width:130px; }
.w43-junk-body { overflow:auto; padding:16px 20px; min-height:0; font-size:13px; line-height:1.7; overflow-wrap:anywhere; }
.w43-junk-meta { font-size:12px; color:#777; }
.w43-junk-warning { background:#fff4d6; border:1px solid #eacb81; border-radius:8px; padding:10px 12px; color:#835000; }
.w43-junk-guide { color:#595d66; margin:10px 0 16px; }
.w43-junk-item { border:1px solid #eadbb9; border-left:4px solid #d49531; border-radius:10px; margin:10px 0; background:#fffdfa; }
.w43-junk-item summary { padding:12px 14px; cursor:pointer; }
.w43-junk-item summary b { font-size:14px; }
.w43-junk-item summary span { display:block; padding-left:16px; margin-top:3px; color:#74777f; font-size:12px; }
.w43-junk-item-body { padding:0 14px 12px; }
.w43-junk-summary { white-space:pre-wrap; margin:10px 0; padding:10px 12px; background:#f5f5f7; border-radius:6px; }
.w43-junk-item ul { margin:4px 0 0; padding-left:20px; }
.w43-junk-empty { color:#777; }
.w43-junk-actions { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
.w43-junk-actions [aria-pressed="true"] { background:#e8f3ed; color:#23623a; border-color:#8bb99d; }
.w43-junk-confirm { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:10px; background:#fff4d6; border-radius:6px; }
.w43-junk-notice { color:#23623a; }
@media(max-width:899px) { .w43-junk-monitor { padding:6px 12px; gap:2px 12px; } .w43-junk-status { flex-basis:100%; } .w43-junk-overlay { padding:12px; } .w43-junk-head { padding:12px; } .w43-junk-body { padding:12px; } }

/* Internal labels are edited only within customer information. */
.customer-display-name-editor{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap;min-width:0}.customer-display-name-editor label{display:flex;flex:1 1 160px;flex-direction:column;gap:6px;min-width:0;font-size:12px}.customer-display-name-editor input{box-sizing:border-box;width:100%;min-width:0;border:1px solid #d1d1d6;border-radius:7px;padding:8px;font:inherit;background:#fff}.customer-display-name-editor small,.customer-display-name-editor [role=status]{flex-basis:100%;font-size:12px;overflow-wrap:anywhere;color:#6e6e73}.w43-original-name{font-size:12px;color:#6e6e73;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:180px}

/* 卡片紧凑计时：右上只放收信时间，等待紧邻回复状态，不增加时间行。 */
.w43-card.w43-time-card { grid-template-columns: 42px minmax(0, 1fr); }
.w43-time-card .w43-nm { padding-right: 94px; min-height: 20px; }
.w43-time-card .w43-co, .w43-time-card .w43-sn { padding-right: 31px; }
.w43-time-card .w43-c3 { position: absolute; top: 12px; right: 16px; min-width: 0; gap: 0; }
.w43-time-card .w43-received-time { white-space: nowrap; font-size: 11.5px; }
.w43-time-card .w43-c3 > .w43-whos { position: absolute; top: 38px; right: 0; }
.w43-time-card .w43-reply-status { display: flex; align-items: center; gap: 6px; flex-basis: 100%; min-width: 0; white-space: nowrap; }
.w43-time-card .w43-reply-status > .w43-pill { flex: none; }
.w43-time-card .w43-reply-age { font-size: 11.5px; color: var(--w43-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w43-time-card .w43-reply-age.w43-fresh { color: var(--w43-green); background: var(--w43-green-soft); padding: 1px 6px; border-radius: 5px; }
.w43-time-card .w43-reply-age.w43-late { color: var(--w43-red); font-weight: 600; }
.w43-time-card .w43-reply-age.w43-deep { color: var(--w43-red-deep); }
.mc-app.mc-compact .w43-card.w43-time-card { grid-template-columns: 34px minmax(0, 1fr); }
.mc-app.mc-compact .w43-time-card .w43-c3 { top: 10px; right: 12px; }
.mc-app.mc-compact .w43-time-card .w43-c3 > .w43-whos { top: 18px; }
.mc-app.mc-compact .w43-time-card .w43-pills.w43-hk .w43-reply-status { display: none; }
@media (max-width: 899px) {
  .w43-card.w43-time-card { grid-template-columns: 38px minmax(0, 1fr); }
  .w43-time-card .w43-c3 { top: 11px; right: 12px; }
}

/* 常驻重命名入口：小图标、圆润浅色，保留易点的透明点击区。 */
.w43-rename-pencil{display:inline-flex;align-items:center;justify-content:center;flex:none;align-self:center;width:24px;height:24px;padding:5px;border:0;border-radius:6px;background:transparent;color:#c3c9cc;cursor:pointer;vertical-align:middle}
.w43-rename-pencil svg{display:block;flex:none;width:14px;height:14px}
.w43-rename-pencil:hover{color:#9fa9ae;background:#f6f7f8}
.w43-rename-pencil:focus-visible{outline:2px solid #a8bcca;outline-offset:1px}
.w43-head-name .w43-rename-pencil{margin-left:-5px}
.customer-rename-card h2{font-size:17px;margin:0 0 16px}
.customer-rename-card .customer-display-name-editor{margin:0}
.customer-rename-card .customer-display-name-editor>button{padding:8px 14px}

/* 草稿两种编辑入口靠右并排，使用同一按钮样式。 */
#detail.ws43-flow .w43-draft-actions{display:flex;align-items:center;gap:8px;margin-left:auto;flex:none}
#detail.ws43-flow .w43-draft-actions .w43-draft-action{display:inline-flex;align-items:center;justify-content:center;margin:0;padding:6px 10px;min-height:30px;border:1px solid #d9e1ea;border-radius:8px;background:#fff;color:#285a91;font-size:12px;font-weight:400;font-style:normal;line-height:16px;white-space:nowrap;cursor:pointer}
#detail.ws43-flow .w43-draft-actions .w43-draft-action:hover{background:#f7faff;border-color:#b5c9e1}
#detail.ws43-flow .w43-draft-actions .w43-draft-action:focus-visible{outline:2px solid #82acd9;outline-offset:2px}

/* 官网邮箱大分类：状态与客户范围在首行，负责人待回在第二行。开发信仍沿用单行标签。 */
.w43-tabs:has(.w43-tabrow) { display:block; padding:0 18px; overflow:hidden; }
.w43-tabrow { display:flex; align-items:center; gap:4px; min-width:0; overflow-x:auto; scrollbar-width:thin; }
.w43-main-tabs { padding-top:5px; }
.w43-tabarchive { display:flex; margin-left:auto; flex:none; }
.w43-owner-tabs { border-top:1px solid var(--w43-line); background:var(--w43-paper); }
.w43-owner-tabs .w43-tab { font-size:13px; padding-top:6px; padding-bottom:6px; }
.w43-tabgroup-label { flex:none; color:var(--w43-mute); font-size:12px; padding:0 12px 0 3px; }
.w43-tabs:has(.w43-tabrow) .w43-tab { gap:6px; padding-left:11px; padding-right:11px; }
@media(max-width:899px) {
  .w43-tabs:has(.w43-tabrow) { padding:0 10px; }
  .w43-tabrow { -webkit-overflow-scrolling:touch; scrollbar-width:none; }
  .w43-tabrow::-webkit-scrollbar { display:none; }
  .w43-tabs:has(.w43-tabrow) .w43-tab { padding-left:9px; padding-right:9px; }
  .w43-tabgroup-label { padding-right:6px; font-size:11px; }
}

/* Customer progress and customer ownership are separate systems. */
.w43-progress-filters{display:flex;align-items:center;gap:6px;padding:7px 16px;background:#f0f8f7;border-bottom:1px solid #d1e8e3;overflow-x:auto;white-space:nowrap;min-width:0}
.w43-progress-filters[hidden]{display:none}
.w43-progress-filters>b,.w43-progress-group>b,.w43-ownership-group>b{font-size:12px;white-space:nowrap;margin-right:4px;color:#426961;flex-shrink:0}
.w43-progress-filter,.w43-progress-btn{border:1px solid #c9dfd9;background:#fff;color:#426961;border-radius:6px;padding:5px 9px;font-size:12px;white-space:nowrap;cursor:pointer;flex-shrink:0;line-height:1.4}
.w43-progress-filter small{font:inherit;opacity:.75;margin-left:3px}
.w43-progress-filter.w43-on,.w43-progress-btn.w43-on{background:#167a65;border-color:#167a65;color:white}
.w43-progress-btn:disabled{opacity:.65;cursor:wait}
.w43-progress-btn:focus-visible,.w43-progress-filter:focus-visible{outline:2px solid #167a65;outline-offset:2px}
.w43-customer-labels{display:flex;flex-wrap:wrap;gap:10px;margin:7px 0;align-items:stretch}
.w43-progress-group{display:flex;align-items:center;flex-wrap:wrap;gap:5px;background:#edf7f4;border:1px solid #cce3db;border-radius:8px;padding:7px 9px;min-width:0}
.w43-progress-hint{font-size:11px;color:#6c8b81;margin-left:3px}
.w43-ownership-group{display:flex;align-items:center;gap:6px;flex-wrap:wrap;background:#f5f6f8;border:1px solid #e1e4e8;border-radius:8px;padding:7px 9px}
.w43-ownership-group>b{color:#707987}.w43-ownership-group .w43-owner-inline{display:flex;flex-wrap:wrap;gap:5px}
.w43-progress-card{display:inline-block;background:#e5f2ed;color:#24705b;border-radius:4px;font-size:11px;padding:2px 5px;margin-top:4px}
@media(max-width:899px){.w43-customer-labels{display:block}.w43-progress-group{margin-bottom:7px}.w43-progress-hint{width:100%;margin-top:2px}.w43-progress-filters{padding-left:10px}.w43-progress-group,.w43-ownership-group{padding:6px}.w43-compact-head.w43-two-row{max-height:none}}

/* Approved V2: identity + independent progress/owner groups, navigation + actions below. */
.w43-chead.w43-two-row{container-type:inline-size;padding:9px 19px 0;max-height:none}
.w43-two-row .mc-detail-title-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:0;min-height:43px}
.w43-two-row .w43-head-identity{flex:0 1 150px;min-width:40px;margin-right:12px}
.w43-two-row .w43-head-name{align-items:center;gap:8px}
.w43-two-row .w43-head-name h1{line-height:24px;flex:0 1 auto}
.w43-two-row .w43-head-name .w43-csub,.w43-two-row .w43-head-name .w43-original-name{display:none}
.w43-two-row .w43-progress-group,.w43-two-row .w43-ownership-group{flex:0 1 auto;gap:5px;margin:0;padding:6px 8px;min-height:42px;max-width:100%}
.w43-two-row .w43-progress-group>b,.w43-two-row .w43-ownership-group>b{margin-right:3px}
.w43-two-row .w43-progress-btn{padding:5px 8px;font-size:12px}
.w43-two-row .w43-progress-hint:empty{display:none}
.w43-two-row .w43-sbtn{height:auto;padding:4px 8px;font-size:12px;line-height:1.35}
.w43-two-row .w43-ownership-group .w43-owner-inline{gap:5px}
.w43-two-row .w43-head-bottom{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:12px;margin-top:5px;padding:0;min-height:42px}
.w43-two-row .w43-ctabs{align-items:center;align-self:stretch;gap:18px;flex-wrap:nowrap;padding:0;margin:0}
.w43-two-row .w43-ctabs>span{font-size:13px;white-space:nowrap;padding:10px 0 9px;line-height:20px;border-bottom-width:3px}
.w43-two-row .w43-ctabs small{font-size:12px;margin-left:5px}
.w43-two-row .w43-head-reading{margin:0 0 0 auto;padding:0;gap:12px;flex:0 1 auto}
.w43-two-row .w43-head-reading .w43-status{gap:6px;flex-wrap:wrap;margin:0;padding:0}
.w43-two-row .w43-stat{font-size:12px;padding:4px 7px;line-height:18px}
.w43-two-row .w43-head-tools{display:flex;align-items:center;flex:0 0 auto;flex-wrap:nowrap;gap:7px;margin:0;padding-left:12px;border-left:1px solid #e5e8e6}
.w43-two-row .w43-head-tools .w43-morebtn{font-size:12px;padding:4px 2px}
.w43-two-row #ws43FlowTools{flex:none;padding:0}
.w43-two-row #ws43FlowTools[hidden]{display:none!important}
.w43-two-row #ws43FlowTools .w43-reading-tools{padding:0;margin:0;gap:0;flex-wrap:nowrap}
.w43-two-row #ws43FlowTools button{font-size:12px;padding:5px 8px;white-space:nowrap;line-height:1.35}
@container (max-width:1050px){
 .w43-two-row .w43-head-reading{margin-left:0}
 .w43-two-row .w43-head-bottom{gap:6px 10px}
 .w43-two-row .w43-head-tools{margin-left:auto}
}
@media(max-width:899px){
 .w43-chead.w43-two-row{padding:8px 12px 0}
 .w43-two-row .mc-detail-title-row{gap:6px 10px;padding:0}
 .w43-two-row .w43-head-identity{flex:1 1 150px;min-width:0;margin-right:0}
 .w43-two-row .w43-progress-group,.w43-two-row .w43-ownership-group{max-width:100%;flex-wrap:wrap}
 .w43-two-row .w43-head-bottom{padding:0;gap:6px 8px}
 .w43-two-row .w43-ctabs{gap:12px}
 .w43-two-row .w43-head-reading{justify-content:flex-start;max-width:100%}
 .w43-two-row .w43-head-reading .w43-status{justify-content:flex-start;max-width:100%}
 .w43-two-row .w43-stat{white-space:normal;overflow-wrap:anywhere}
 .w43-two-row .w43-head-tools{margin-left:0;padding-left:0;border-left:0;max-width:100%;flex-wrap:wrap}
 .w43-two-row #ws43FlowTools{margin-left:auto;padding-bottom:5px}
}
.w43-chead.w43-two-row{gap:0;padding-top:13px}
@media(max-width:899px){.w43-chead.w43-two-row{padding-top:8px}}
.w43-chead.w43-two-row{padding-top:12px}
.w43-two-row .w43-head-identity{flex:0 1 auto;max-width:150px}
@media(max-width:899px){.w43-chead.w43-two-row{padding-top:8px}.w43-two-row .w43-head-identity{flex:1 1 150px;max-width:none}}

/* Two-row inbox filters: status views above, independent AND conditions below. */
.w43-main-tabs { padding-top:3px; min-height:45px; flex-wrap:nowrap; overflow:visible; }
.w43-main-tabs button.w43-tab { appearance:none; border:0; border-bottom:3px solid transparent; border-radius:0; background:transparent; font-family:inherit; cursor:pointer; }
.w43-main-tabs button.w43-tab.w43-on { border-bottom-color:var(--w43-accent); }
.w43-main-tabs .w43-tabarchive .w43-tab { font-size:13px; }
.w43-pool-entry { display:flex; border-left:1px solid var(--w43-line); margin-left:8px; padding-left:4px; }
.w43-chips:has(.w43-filterbar) { display:block; padding:0; overflow:visible; background:#f0f8f6; }
.w43-filterbar { display:flex; align-items:center; gap:10px; min-height:46px; padding:7px 20px; flex-wrap:wrap; color:var(--w43-fg); }
.w43-filter-select { display:inline-flex; flex:none; min-width:0; }
.w43-filter-select select { appearance:auto; font:inherit; font-size:13px; color:#43534d; line-height:20px; min-height:30px; width:118px; max-width:100%; border:1px solid #d8e1dd; border-radius:6px; background:#fff; padding:4px 7px; cursor:pointer; }
.w43-filter-progress { margin-left:3px; }
.w43-filter-progress select { color:#167a65; border-color:#62aa9b; width:140px; }
.w43-filter-owner select { background:#fafbfc; }
.w43-filter-select.w43-filter-active select { border-color:#2f7c6a; background:#edf8f3; color:#135e4d; }
.w43-filter-button,.w43-filter-clear,.w43-filter-sort { appearance:none; font:inherit; font-size:13px; line-height:20px; min-height:30px; padding:4px 9px; border:1px solid #d8e1dd; border-radius:6px; color:#43534d; background:#fff; white-space:nowrap; cursor:pointer; }
.w43-filter-button.w43-filter-active { border-color:#2f7c6a; background:#dff2e9; color:#135e4d; }
.w43-filter-clear { padding-left:0; padding-right:0; border-color:transparent; background:transparent; }
.w43-filter-clear:disabled { opacity:.5; cursor:default; }
.w43-filter-sort { margin-left:auto; padding-left:0; padding-right:0; border-color:transparent; background:transparent; color:var(--w43-mute); }
.w43-filter-more { position:relative; min-width:0; }
.w43-filter-popover { position:absolute; left:0; top:calc(100% + 7px); z-index:20; display:flex; flex-direction:column; gap:12px; min-width:206px; padding:14px; background:#fff; border:1px solid var(--w43-line); border-radius:8px; box-shadow:0 6px 20px #203a2e24; }
.w43-filter-popover[hidden] { display:none; }
.w43-filter-popover select { width:176px; }
.w43-filter-check { display:flex; align-items:center; gap:6px; font-size:13px; cursor:pointer; white-space:nowrap; }
.w43-filter-check input { width:15px; height:15px; accent-color:#167a65; }
.w43-filterbar button:focus-visible,.w43-filterbar select:focus-visible,.w43-filterbar input:focus-visible,.w43-main-tabs button:focus-visible { outline:2px solid var(--w43-accent); outline-offset:2px; }
.w43-filter-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.w43-owner-conflict { color:#9a6400; font-size:12px; white-space:nowrap; }
@media(max-width:899px) {
 .w43-tabs:has(.w43-main-tabs) { overflow:visible; }
 .w43-main-tabs { flex-wrap:wrap; gap:0 3px; }
 .w43-main-tabs .w43-tabarchive { margin-left:auto; flex-wrap:wrap; }
 .w43-tabs:has(.w43-main-tabs) .w43-tab { font-size:13px; padding-left:8px; padding-right:8px; }
 .w43-filterbar { padding:7px 10px; gap:7px; }
 .w43-filter-select select { width:117px; }
 .w43-filter-progress { margin-left:0; }
 .w43-filter-progress select { width:140px; }
 .w43-filterbar .w43-filter-more > button { max-width:calc(100vw - 28px); white-space:normal; text-align:left; }
 .w43-filter-popover { position:fixed; left:10px; right:10px; top:auto; max-width:none; }
 .w43-filter-sort { margin-left:auto; }
}

.w43-filterbar select[data-ws43-filter="type"]{width:140px}

/* Monitor lives beside the header tools; scan details stay in its existing dialog. */
.mc-header .w43-junk-monitor{display:inline-flex;flex:0 0 auto;gap:0;padding:0;background:transparent;border:0;white-space:nowrap}
.mc-header .w43-junk-monitor.hidden{display:none}
.mc-header .w43-junk-entry{display:inline-flex;align-items:center;height:32px;max-width:180px;padding:0 11px;border:1px solid var(--w43-line);border-radius:16px;background:var(--w43-paper);color:var(--w43-mute);font:inherit;font-size:12px;line-height:20px;font-weight:400;text-decoration:none;white-space:nowrap}
.mc-header .w43-junk-entry.has-alerts,.mc-header .w43-junk-entry.scan-warning{border-color:#e7c890;background:#fff8e9;color:#8b5c14}
.mc-header .w43-junk-entry:focus-visible{outline:2px solid var(--w43-accent);outline-offset:2px}
@media(max-width:899px){.mc-header .w43-junk-entry{padding:0 8px}.mc-header .w43-junk-short-status{display:none}.mc-header .w43-junk-entry.has-alerts::after,.mc-header .w43-junk-entry.scan-warning::after{content:'•';margin-left:3px;color:#b27719}}

.mc-header .w43-junk-entry .w43-junk-short-status{margin-left:0;text-decoration:none}

.mc-header .w43-junk-entry .w43-junk-word,.mc-header .w43-junk-entry .w43-junk-icon{margin:0;text-decoration:none}
.mc-header .w43-junk-icon{display:none}
@media(max-width:480px){.mc-header .w43-junk-entry{justify-content:center;width:30px;padding:0}.mc-header .w43-junk-word{display:none}.mc-header .w43-junk-icon{display:inline;font-size:17px}}
@media(max-width:360px){.mc-header:has(#junkMonitor:not(.hidden)){gap:4px}}

/* One compact list row: sort, assignment, confirmed bulk read and weekly context. */
.w43.w43-lhead.w43-list-actions{display:flex;align-items:center;gap:5px;padding:6px 8px;height:36px;min-height:36px;white-space:nowrap}
.w43-list-actions .w43-sbtn{height:24px;line-height:22px;padding:0 6px;flex:none;font-size:11.5px}
.w43-list-actions .w43-sbtn[disabled]{opacity:.45;cursor:default}
.w43-list-stats{margin-left:auto;min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:11px;line-height:20px;color:var(--w43-mute)}
.w43-filter-result{margin-left:auto;color:var(--w43-mute);font-size:12px;line-height:20px;white-space:nowrap}
.w43-seen-confirm{width:390px;max-width:calc(100vw - 32px);box-sizing:border-box;border:1px solid #dde4df;border-radius:12px;padding:24px;background:var(--w43-paper);color:var(--w43-fg);box-shadow:0 20px 60px #17251b33;font:14px/1.8 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}
.w43-seen-confirm::backdrop{background:#18221c44}
.w43-seen-confirm h2{font-size:17px;line-height:1.5;margin:0 0 12px;font-weight:600}
.w43-seen-confirm p{margin:0 0 8px;overflow-wrap:anywhere}
.w43-seen-scope{font-size:12px;color:var(--w43-mute)}
.w43-seen-error{font-size:12px;color:var(--w43-red)}
.w43-seen-error[hidden]{display:none}
.w43-seen-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}
.w43-seen-actions button{font-family:inherit;font-size:13px;line-height:30px;padding:0 14px;border:1px solid var(--w43-line);border-radius:7px;background:var(--w43-paper);color:var(--w43-fg)}
.w43-seen-actions .w43-seen-submit{background:var(--w43-accent);border-color:var(--w43-accent);color:#fff}
.w43-seen-actions button[disabled]{opacity:.55;cursor:wait}
.w43-seen-actions button:focus-visible{outline:2px solid var(--w43-accent);outline-offset:3px}

/* One toolbar row. Narrow layouts scroll the toolbar without widening the page. */
.w43-one-row{display:flex;align-items:center;min-width:0;min-height:47px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;border-bottom:1px solid var(--w43-line)}
.w43-one-row::-webkit-scrollbar{display:none}
.w43-one-row .w43-tabs:has(.w43-main-tabs){display:block;flex:none;padding:0 0 0 14px;border:0;overflow:visible;background:transparent}
.w43-one-row .w43-main-tabs{min-height:46px;padding:0;overflow:visible;flex-wrap:nowrap;gap:0}
.w43-one-row .w43-main-tabs .w43-tabarchive{margin-left:8px;flex-wrap:nowrap;gap:0}
.w43-one-row .w43-tabs .w43-tab{font-size:14px;padding:12px 9px 11px;line-height:20px;gap:5px}
.w43-one-row .w43-tabs .w43-tabarchive .w43-tab{font-size:13px}
.w43-one-row .w43-chips.w43-filters-host{flex:none;margin-left:auto;padding:0;background:transparent;border:0;overflow:visible}
.w43-one-row .w43-filterbar{min-height:46px;padding:0 12px 0 4px;gap:4px;flex-wrap:nowrap}
.w43-one-row .w43-filter-progress{margin:0}
.w43-one-row .w43-filter-progress select{appearance:none;-webkit-appearance:none;background:transparent;border:0;border-bottom:3px solid transparent;border-radius:0;color:var(--w43-mute);font-size:14px;line-height:20px;min-height:46px;padding:12px 10px 11px;width:auto;max-width:140px;text-align:center}
.w43-one-row .w43-filter-progress.w43-filter-active select{border-bottom-color:var(--w43-accent);color:var(--w43-fg);font-weight:600;background:transparent}
.w43-one-row .w43-filter-button{background:transparent;border:0;border-radius:0;min-height:46px;padding:12px 9px 11px;line-height:20px;font-size:14px;color:var(--w43-mute);white-space:nowrap}
.w43-one-row .w43-filter-button.w43-filter-active{color:#135e4d;background:#edf8f3}
.w43-one-row .w43-filter-panel{position:relative;flex:none}
.w43-one-row .w43-filter-panel-toggle{display:flex;align-items:center;gap:3px;min-width:34px;justify-content:center}
.w43-filter-panel-toggle>span{font-size:21px;line-height:20px}
.w43-filter-panel-toggle>small{font-size:11px;background:#dff2e9;border-radius:9px;min-width:16px;line-height:16px;text-align:center}
.w43-one-row .w43-filter-popover{position:fixed;z-index:50;box-sizing:border-box;max-width:calc(100vw - 20px)}
.w43-one-row .w43-filter-popover .w43-filter-select select{width:100%;max-width:100%}
.w43-one-row .w43-filter-popover .w43-filter-select{display:block;width:100%}
.w43-one-row .w43-filter-clear{text-align:left;color:#43534d;min-height:30px}
.w43-one-row .w43-unread-tab.w43-on{color:#135e4d;border-bottom-color:var(--w43-accent);font-weight:600}

/* Keep the six customer tabs and daily filters together; archives sit at the right. */
.w43-one-row .w43-tabs:has(.w43-main-tabs),.w43-one-row .w43-main-tabs,
.w43-one-row .w43-chips.w43-filters-host,.w43-one-row .w43-filterbar{display:contents}
.w43-one-row{padding:0 12px 0 14px}
.w43-one-row .w43-filter-progress,.w43-one-row .w43-filter-more{order:1}
.w43-one-row .w43-main-tabs .w43-tabarchive{order:2;margin-left:auto;padding-left:12px}
.w43-one-row .w43-filter-panel{order:3}
.w43-one-row .w43-filter-more{padding-left:3px}
.w43-one-row .w43-pool-entry{flex:none}

.w43-one-row .w43-filter-more{flex:none}
.w43-one-row .w43-filterbar .w43-filter-more>button{white-space:nowrap}

/* Mailbox navigation shares the customer toolbar. The header keeps search/tools. */
.w43-toolbar{display:flex;align-items:center;min-width:0;min-height:47px;padding:0 12px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;border-bottom:1px solid var(--w43-line)}
.w43-toolbar::-webkit-scrollbar{display:none}
.w43-toolbar #ws43Seg:not(.hidden){display:flex;order:-1;margin-right:12px;flex:none;align-self:center}
.w43-toolbar .w43-segi{font-size:13px;padding:5px 10px;line-height:20px}
.w43-toolbar>.w43-tabs:not(:has(.w43-main-tabs)){flex:none;min-height:46px;padding:0;border:0;align-items:center}
.w43-toolbar>.w43-weekrow{flex:none;white-space:nowrap;min-height:46px;box-sizing:border-box;display:flex;align-items:center;padding:0 0 0 16px;margin-left:auto;border:0}
.w43-one-row .w43-progress-trigger{min-width:62px;border-bottom:3px solid transparent;border-radius:0}
.w43-one-row .w43-progress-trigger.w43-filter-active{border-bottom-color:var(--w43-accent);color:var(--w43-fg);font-weight:600;background:transparent}
.w43-filter-popover[popover]{inset:auto;margin:0;overflow-y:auto;color:var(--w43-fg);font-family:inherit}
.w43-progress-menu{padding:5px;gap:2px}
.w43-progress-choice{appearance:none;text-align:left;font:inherit;font-size:14px;line-height:20px;border:0;background:transparent;color:var(--w43-fg);padding:9px 12px;border-radius:4px;cursor:pointer;white-space:nowrap}
.w43-progress-choice.w43-on{color:#135e4d;background:#edf8f3;font-weight:600}
.w43-progress-choice:hover,.w43-progress-choice:focus-visible{background:#edf3fa;outline:2px solid var(--w43-accent);outline-offset:-2px}

/* Channel navigation uses the same text tabs and badges as the customer tabs. */
.w43-toolbar #ws43Seg:not(.hidden){order:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;gap:0;align-self:stretch;align-items:stretch}
.w43-toolbar #ws43Seg .w43-segi{display:inline-flex;align-items:center;gap:5px;box-sizing:border-box;height:46px;padding:12px 9px 11px;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;font-size:14px;line-height:20px;color:var(--w43-mute)}
.w43-toolbar #ws43Seg .w43-segi.w43-on{background:transparent;color:var(--w43-fg);font-weight:600;border-bottom-color:var(--w43-accent)}

/* Customer identity stays left; progress and ownership share a right-aligned group. */
.w43-two-row .w43-head-identity{flex:1 1 180px;max-width:none;margin-right:0;min-width:120px}
.w43-two-row .w43-head-labels{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin-left:auto;max-width:100%}
.w43-two-row .w43-head-name .w43-original-name{display:block;flex:0 1 auto;min-width:0;max-width:260px;font-size:12px;color:#6e6e73;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.w43-two-row .w43-head-name .w43-original-name[hidden]{display:none}
@media(max-width:899px){.w43-two-row .w43-head-labels{gap:7px}.w43-two-row .w43-head-name{flex-wrap:wrap}.w43-two-row .w43-head-name .w43-original-name{max-width:100%}}

/* Outreach uses the same customer cards, identity head, conversation and draft shell. */
.w43-outreach-head .w43-head-labels:empty,.w43-outreach-head .w43-head-tools:empty{display:none}
.w43-outreach-head .w43-ownership-group #assigneeChip{appearance:none;font:inherit;font-size:12px;line-height:20px;padding:3px 9px;border:1px solid #dce3e8;border-radius:6px;background:#fff;color:var(--w43-fg);white-space:nowrap}
.w43-outreach-head .w43-head-tools #openProfileBtn{white-space:nowrap}
.w43-outreach-head .w43-ctabs [data-ws43-outreach-subtab]{cursor:pointer;white-space:nowrap}
.w43-outreach-head .w43-ctabs [data-ws43-outreach-subtab]:focus-visible{outline:2px solid var(--w43-accent);outline-offset:2px}
#detail.ws43-flow .w43-outreach-draft .w43-flow-head{cursor:pointer;list-style:none}
#detail.ws43-flow .w43-outreach-draft .w43-flow-head::-webkit-details-marker{display:none}
#detail.ws43-flow .w43-outreach-draft:not([open]) .w43-draft-fold-label::after{content:'展开草稿 ▾'}
#detail.ws43-flow .w43-outreach-draft[open] .w43-draft-fold-label::after{content:'收起草稿 ▴'}
#detail.ws43-flow .w43-outreach-draft #composerHost{min-height:0}

#detail.w43-outreach-detail .w43-outreach-flow{flex:none;overflow:visible;padding:12px 20px}
#detail.w43-outreach-detail #detailStream{flex-direction:column}
#detail.w43-outreach-detail #detailStream[hidden],#detail.w43-outreach-detail .w43-outreach-draft[hidden]{display:none!important}
.w43-outreach-head .w43-ownership-group{position:relative}
@media(max-width:899px){#detail.w43-outreach-detail .w43-outreach-flow{padding:10px 12px}}

/* 只调整客户卡片排版：复用原有字号、配色、头像和标签。 */
.w43-card.w43-layout-only, .mc-app.mc-compact .w43-card.w43-layout-only { grid-template-columns:84px minmax(0,1fr); gap:5px; padding-top:3px; padding-bottom:3px; min-height:80px; }
.w43-layout-only .w43-identity { display:flex; flex-direction:column; align-items:center; width:84px; min-width:0; }
.w43-layout-only .w43-avatar-status { flex:none; line-height:14.5px; margin:0; }
.w43-layout-only .w43-avatar-wait { line-height:14.5px; max-width:100%; }
.w43-layout-only .w43-c1 { align-self:center; }
.w43-layout-only .w43-nm { min-height:20px; }
.w43-layout-only .w43-co, .mc-app.mc-compact .w43-layout-only .w43-co { display:flex; align-items:center; gap:5px; min-height:18px; padding-right:31px; }
.w43-layout-only .w43-card-source { flex:none; }
.w43-layout-only .w43-card-company { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.w43-layout-only .w43-co .w43-progress-card { flex:none; margin-top:0; }
.w43-layout-only .w43-sn, .mc-app.mc-compact .w43-layout-only .w43-sn { display:block; }
.w43-layout-only .w43-c3, .mc-app.mc-compact .w43-layout-only .w43-c3 { top:5px; }
.w43-layout-only .w43-c3 > .w43-whos, .mc-app.mc-compact .w43-layout-only .w43-c3 > .w43-whos { top:38px; }
.w43-layout-only .w43-card-notices, .mc-app.mc-compact .w43-layout-only .w43-card-notices { display:flex; margin-top:3px; }
.w43-wrap:has(> .w43-layout-only) > .w43-check { padding-top:15px; }

/* 老板指定：仅头像下状态/时长按确认图显示，其余沿用原UI。 */
.w43-layout-only .w43-avatar-status { font-size:10px; font-weight:400; line-height:15px; padding:0 3px; border-radius:3px; background:#f4f6ef; color:#919b84; }
.w43-layout-only .w43-avatar-status.w43-r { background:#fcf2f2; color:#c97979; }
.w43-layout-only .w43-avatar-wait { font-size:10px; line-height:13px; color:#969fa5; background:transparent; padding:0; font-weight:400; }

/* Low-frequency customer management stays inside the profile rail. */
.w43-customer-management .w43-sbtn{color:#5f6875;background:#f5f6f8;border:1px solid #dfe3e8;margin-top:8px}
.w43-customer-management p{font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.w43-invalid-banner{background:#f3f4f6;color:#667085;padding:12px 18px;font-size:13px;border-bottom:1px solid #e5e7eb}
.w43-invalid-dialog label{display:block;margin:16px 0;font-size:13px}
.w43-invalid-dialog select,.w43-invalid-dialog textarea{display:block;box-sizing:border-box;width:100%;margin-top:8px;border:1px solid #d7dce2;border-radius:6px;padding:9px;font:inherit}
.w43-invalid-dialog .w43-invalid-name,.w43-invalid-confirm-text{overflow-wrap:anywhere;line-height:1.7}
.w43-invalid-dialog [hidden]{display:none!important}

#detail .w43-flow-reply[hidden],#detail .w43-invalid-banner[hidden],#detail [data-reply][hidden],#detail [data-replyall][hidden],#detail [data-ws43-reply][hidden]{display:none!important}

/* 客户资料与往来/附件同级：整块读区展示，旧侧栏不再占位。 */
#detail.w43-profile-active{overflow-y:auto!important;overflow-x:hidden!important;background:#f4f6f8}
#detail.w43-profile-active > :not(.mc-detail-head):not(#ws43ProfilePanel){display:none!important}
#ws43ProfilePanel[hidden]{display:none!important}
#ws43ProfilePanel{flex:none;min-width:0;width:auto;margin:20px 22px 28px;background:var(--w43-paper);border:1px solid var(--w43-line);border-radius:8px;color:var(--w43-fg);font-size:13px;overflow-wrap:anywhere}
#ws43ProfilePanel .w43-rail-h{padding:14px 22px;font-size:14px}
#ws43ProfilePanel .w43-rsec{padding:18px 22px}
#ws43ProfilePanel .w43-rsec:last-child{border-bottom:0}
#ws43ProfilePanel .w43-rsec h5{margin-bottom:12px;font-size:13px;color:var(--w43-fg);gap:12px;flex-wrap:wrap}
#ws43ProfilePanel .w43-kv{grid-template-columns:80px minmax(0,1fr) 80px minmax(0,1fr);gap:14px 16px;font-size:13px}
#ws43ProfilePanel .w43-kv dd{overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere}
#ws43ProfilePanel .w43-kv .w43-mono{font-size:13px}
#ws43ProfilePanel .w43-steps{max-width:640px}
#ws43ProfilePanel .w43-research-summary{font-size:13px;line-height:1.8}
#ws43ProfilePanel .w43-research-section{font-size:13px}
#ws43ProfilePanel .w43-memo-edit{min-height:120px;max-width:100%}
#ws43ProfilePanel .w43-merge-row{max-width:660px}
#ws43ProfilePanel .w43-merge-row input{min-width:0;flex:1}
#detail.w43-profile-active .w43-reading-tools,#detail.w43-profile-active #ws43FlowTools{display:none!important}
@media(max-width:760px){
 #ws43ProfilePanel{margin:14px 12px 22px}
 #ws43ProfilePanel .w43-rsec{padding:16px 14px}
 #ws43ProfilePanel .w43-rail-h{padding:12px 14px}
 #ws43ProfilePanel .w43-kv{grid-template-columns:72px minmax(0,1fr);gap:12px 10px}
 .w43-two-row .w43-ctabs{flex-wrap:wrap;gap:12px}
}

/* Profile actions stay at the top; notes live in their dedicated tab. */
#ws43ProfilePanel .w43-rail-h{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
#ws43ProfilePanel .w43-profile-management{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px;font-weight:400}
#ws43ProfilePanel .w43-profile-management .w43-sbtn{margin-top:0}
#ws43ProfilePanel .w43-profile-auto{margin-top:12px;font-size:12px}
#ws43ProfilePanel [data-profile-display-name]{margin-right:6px}
#ws43ProfilePanel .w43-kv dd small{display:block;margin-top:3px}

/* Server drafting status reuses the card preview and existing header status row. */
.w43-drafting-notice{color:#94621b;overflow-wrap:anywhere}
.w43-sn .w43-drafting-notice{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.w43-two-row .w43-stat.w43-drafting-notice{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
@media(max-width:480px){.w43-two-row .w43-stat.w43-drafting-notice{max-width:min(240px,70vw)}}

/* A generated reply remains an unsent draft; this row does not resize the editor. */
.w43-generation-row{display:flex;align-items:center;gap:10px;padding:10px 14px;flex-wrap:wrap;border-bottom:1px solid #e5eaf0;background:#f7faff;}
.w43-generation-row button{flex:none;min-height:34px;}
.w43-generation-reason{font-size:12px;line-height:1.5;color:#667589;overflow-wrap:anywhere;flex:1;min-width:150px;}
.w43-generate-reply:disabled{cursor:wait;opacity:.65;}

/* Ownership: solid blue is saved; the dashed ring is only a pending choice. */
.w43-owner-inline .w43-owner-btn.w43-owner-pending{outline:2px dashed #2563eb;outline-offset:2px;}

/* Compact assignment strip: each group stays on one row inside its own scroll area. */
.w43-two-row .w43-head-labels{flex:1 1 auto;min-width:0;max-width:100%;flex-wrap:nowrap;justify-content:flex-start;gap:6px;overflow-x:auto;overflow-y:hidden;padding:3px 2px 4px;scrollbar-width:thin}
.w43-two-row .w43-head-labels>.w43-progress-group,.w43-two-row .w43-head-labels>.w43-ownership-group{flex:0 0 auto;width:auto;min-width:0;max-width:none;flex-wrap:nowrap;gap:4px;min-height:32px;padding:4px 6px;box-sizing:border-box}
.w43-two-row .w43-head-labels b{font-size:11px;margin-right:2px;white-space:nowrap}
.w43-two-row .w43-head-labels .w43-owner-inline{flex-wrap:nowrap;gap:3px}
.w43-two-row .w43-head-labels .w43-sbtn,.w43-two-row .w43-head-labels .w43-progress-btn{font-size:11px;line-height:17px;padding:3px 6px;min-height:24px;white-space:nowrap}


@media(max-width:899px){.w43-two-row .w43-head-labels{flex-basis:100%;width:100%;gap:5px}}

/* Exclusion toggles remain visible on narrow customer lists. */
.w43.w43-lhead.w43-list-actions:has(.w43-exclude-toggle){height:auto;flex-wrap:wrap}
.w43-exclude-toggle[aria-pressed="true"]{color:var(--w43-accent);border-color:var(--w43-accent);background:#edf4ff;font-weight:600}

/* 2026-11 邮件卡片改版：国家块、一句话描述、归属/进展标签、收信时间放大 */
.w43-country{width:48px;height:44px;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;flex:none;line-height:1.1;overflow:hidden}
.w43-country b{font-size:15px;font-weight:700;letter-spacing:.4px;max-width:44px;overflow:hidden;white-space:nowrap;text-overflow:clip}
.w43-country small{font-size:10px;max-width:44px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.w43-head-country{width:40px;height:36px;border-radius:7px}
.w43-head-country b{font-size:13px}
.w43-head-country small{font-size:9px}
.mc-app.mc-compact .w43-country{width:40px;height:36px}
.w43-nm .w43-form-tag{font-size:11px;color:#1f5c8c;background:#e6f0f8;border-radius:4px;padding:0 5px;flex:none;font-weight:500}
.w43-brief{font-size:13.5px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:31px}
.w43-brief-own{color:#1a1a1a;font-weight:500}
.w43-brief-ai{color:#767676;font-weight:400}
.w43-brief-none{color:#8a8a8a;font-size:12.5px}
.w43-tags{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:5px}
.w43-owner-tag{display:inline-flex;align-items:center;gap:3px;font-size:11.5px;color:#3a3a3a;border:1px solid #d6d6d3;border-radius:10px;padding:0 7px 0 5px;line-height:18px;background:#fff;white-space:nowrap}
.w43-owner-tag.w43-owner-none{color:#a3261b;border-color:#f0c4bf;padding:0 7px}
.w43-stage-tag{font-size:11.5px;font-weight:500;border-radius:10px;padding:0 8px;line-height:20px;white-space:nowrap;color:#3a3a3a;background:#f0f0ee}
.w43-stage-discussion{color:#1f5c8c;background:#e6f0f8}
.w43-stage-high_intent{color:#8a4b00;background:#fff0da}
.w43-stage-high_quality{color:#86304f;background:#f6e6ef}
.w43-stage-sampling{color:#5b3a8c;background:#efe7f7}
.w43-stage-ordered{color:#2e6b43;background:#e2f2e7}
.w43-time-card .w43-received-time{display:flex;align-items:baseline;gap:4px;font-size:12px}
.w43-time-card .w43-received-time .w43-rt-day{font-size:11.5px;color:#5a5a5a}
.w43-time-card .w43-received-time .w43-rt-hm{font-size:16px;font-weight:700;color:#1a1a1a;font-variant-numeric:tabular-nums;letter-spacing:.2px}
.w43-two-row .w43-head-name:has(.w43-brief-input) h1{flex:0 0 auto;max-width:260px}
.w43-head-name .w43-brief-input{flex:1 1 180px;min-width:120px;max-width:420px;height:30px;box-sizing:border-box;border:1px solid #e0e0dd;border-radius:6px;padding:0 9px;font:inherit;font-size:14px;font-weight:500;color:#1a1a1a;background:#fafaf9;align-self:center}
.w43-head-name .w43-brief-input.w43-brief-input-ai{color:#767676;font-weight:400}
.w43-head-name .w43-brief-input::placeholder{color:#8a8a8a;font-weight:400}
.w43-head-name .w43-brief-input:focus{outline:none;border-color:#7a5ea8;box-shadow:0 0 0 3px #ece6f5;background:#fff}
@media(max-width:899px){.w43-head-name .w43-brief-input{flex-basis:100%;max-width:none}}
.w43-owner-tag.w43-owner-solid{color:#fff;border-color:transparent;font-weight:600;padding:0 8px 0 6px;line-height:20px}
/* 2026-11 列表顶部：标题+排序、归属多选、进展常驻 */
.w43.w43-lhead.w43-list-head2{height:auto;display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:10px 14px 8px}
.w43-list-titlerow{display:flex;align-items:center;gap:8px;min-width:0}
.w43-list-title{flex:1;min-width:0;font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.w43-sortseg{display:flex;border:1px solid #d6d6d3;border-radius:6px;overflow:hidden;flex:none}
.w43-sortseg button{height:26px;padding:0 9px;border:0;background:#fff;color:#3a3a3a;font:inherit;font-size:12px;cursor:pointer}
.w43-sortseg button+button{border-left:1px solid #d6d6d3}
.w43-sortseg button.w43-on{background:#3a3a3a;color:#fff}
.w43-linkbtn{height:26px;padding:0 6px;border:0;background:transparent;color:#2f5fa0;font:inherit;font-size:12px;cursor:pointer;flex:none}
.w43-linkbtn:hover{text-decoration:underline}
.w43-filter-rows{display:flex;flex-direction:column;gap:6px}
.w43-frow{display:flex;align-items:flex-start;gap:8px}
.w43-flab{font-size:12px;color:#5a5a5a;width:28px;flex:none;line-height:26px}
.w43-fchips{display:flex;flex-wrap:wrap;gap:5px;min-width:0}
.w43-fchip{display:inline-flex;align-items:center;gap:4px;height:26px;padding:0 9px;border-radius:13px;border:1.5px solid #d6d6d3;background:#fff;font:inherit;font-size:12.5px;font-weight:600;cursor:pointer;white-space:nowrap}
.w43-fchip-stage{font-weight:500}
.w43-fchip-group{margin-left:6px}
.w43-fchip:focus-visible,.w43-sortseg button:focus-visible{outline:2px solid #2f5fa0;outline-offset:1px}
.w43-fdot{width:8px;height:8px;border-radius:50%;flex:none}
.w43-fn{font-weight:400;opacity:.85}
.w43-list-stats2{font-size:11.5px;color:#6b6b6b}
.w43-list-title{color:var(--w43-fg)}
/* 2026-11 我方邮件按发信人着色（与左侧归属标签同色） */
.w43-conversation.w43-msg.w43-out[style*="--w43-who"]{background:color-mix(in srgb,var(--w43-who) 6%,#fff);border-color:color-mix(in srgb,var(--w43-who) 40%,#fff);border-right-color:var(--w43-who);border-left-color:color-mix(in srgb,var(--w43-who) 40%,#fff)}
.w43-conversation.w43-out[style*="--w43-who"]>.w43-titlebar,.w43-conversation.w43-out[style*="--w43-who"] .w43-msg-h{background:color-mix(in srgb,var(--w43-who) 14%,#fff)}
.w43-conversation.w43-out[style*="--w43-who"] .w43-msg-h:hover,.w43-conversation.w43-out[style*="--w43-who"] .w43-preview:hover{background:color-mix(in srgb,var(--w43-who) 20%,#fff)}
.w43-conversation.w43-out[style*="--w43-who"] .w43-msg-h .w43-from{color:color-mix(in srgb,var(--w43-who) 80%,#000)}
.w43-conversation.w43-out[style*="--w43-who"] .w43-direction{background:var(--w43-who);color:#fff}
.w43-conversation.w43-out[style*="--w43-who"] .w43-av{background:var(--w43-who)!important}
.w43-conversation.w43-out[style*="--w43-who"] .w43-card-tools button{color:color-mix(in srgb,var(--w43-who) 85%,#000)}

/* Outreach status stays on one horizontal toolbar row on narrow screens. */
.w43-outreach-filterbar .w43-frow{flex:none;align-items:center}
.w43-outreach-filterbar .w43-fchips{flex-wrap:nowrap}
