/* ============================================================
   多人标注同步 · 增量样式（不覆盖原有样式）
   ============================================================ */

/* 顶栏：当前用户 / 在线人数 / 同步状态 */
.mmuser, .mmonline, .mmsync {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; line-height: 18px; padding: 3px 9px;
  border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink2); background: #fff; white-space: nowrap;
}
.mmuser { cursor: pointer; }
.mmuser:hover { border-color: #B9C2CC; }
.mmuser.on { border-color: #C6E3D6; background: #F1FAF7; color: #1F7A6B; font-weight: 600; }
.mmonline { cursor: default; color: var(--ink3); }
.mmsync { cursor: default; color: var(--ink3); }
.mmsync.on { color: #1F7A6B; border-color: #C6E3D6; background: #F1FAF7; }

/* 侧栏：筛选链接 */
.mmlink {
  margin-left: auto; font-size: 11px; color: #8A929B;
  background: none; border: none; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.mmlink:hover { color: var(--ink2); }
.mmlink.on { color: #D64545; font-weight: 600; }

/* 列表里的作者标签 */
.mmau { color: #8A929B; font-size: 10.5px; margin-left: 4px; white-space: nowrap; }
.mmme { color: #1F7A6B; font-size: 10.5px; margin-left: 2px; }

/* 抽屉：其他人标注 */
.mmoth { display: flex; flex-direction: column; gap: 6px; }
.mmoth .row2 {
  border: 1px solid var(--line2); border-radius: 7px; background: #FBFCFD;
  padding: 7px 9px; font-size: 12px; line-height: 1.55; color: var(--ink2);
}
.mmoth .row2 .hd { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.mmoth .row2 .who { font-weight: 600; color: var(--ink); font-size: 11.5px; }
.mmoth .row2 .st2 { font-size: 10.5px; color: #fff; border-radius: 4px; padding: 0 5px; line-height: 15px; }
.mmoth .row2 .tm2 { margin-left: auto; font-size: 10px; color: #A8B0B8; }
.mmoth .empty2 { font-size: 11.5px; color: #B4BBC4; }
.mmauthhint {
  font-size: 11.5px; color: var(--ink3); background: #F6F7F9;
  border: 1px dashed var(--line); border-radius: 8px;
  padding: 9px 10px; margin-bottom: 10px; line-height: 1.7;
}
.mmauthhint .btn { margin-top: 7px; }
.mmro { font-size: 11px; color: var(--ink3); margin-top: 6px; }

/* 昵称弹窗 */
.mmmodal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(16, 24, 40, .45);
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(1.5px);
}
.mmmodal.on { display: flex; }
.mmcard {
  width: 350px; max-width: calc(100vw - 40px);
  background: #fff; border-radius: 14px; padding: 22px 22px 18px;
  box-shadow: 0 22px 70px rgba(16, 24, 40, .32);
}
.mmcard h3 { margin: 0 0 8px; font-size: 16px; color: var(--ink); }
.mmcard p { margin: 0 0 14px; font-size: 12.5px; color: var(--ink3); line-height: 1.65; }
.mmcard input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 14px; outline: none; color: var(--ink);
}
.mmcard input:focus { border-color: #9AA6B4; box-shadow: 0 0 0 3px rgba(90, 110, 140, .08); }
.mmcard .mmerr { color: #AC2128; font-size: 12px; margin: 8px 0 0; min-height: 16px; }
.mmbtns { display: flex; gap: 8px; margin-top: 14px; }
.mmbtns .btn { flex: 1; justify-content: center; }

/* 高亮卡片上的作者数 */
.hlc .cnt2 { opacity: .85; margin-left: 3px; font-weight: 600; }

/* 状态提示（未同步） */
.mmoffline { color: #AC2128 !important; border-color: #EFD3D3 !important; background: #FDF4F4 !important; }

/* 窄屏隐藏次要信息，避免顶栏换行过多 */
@media (max-width: 1360px) {
  #statTop { display: none; }
}
@media (max-width: 860px) {
  #mmOnline { display: none !important; }
  .mmuser, .mmsync { font-size: 11px; padding: 2px 7px; }
}
