/* chat-mobile.css — chat-core 的手机端（< 900px）差异（由 chat.css 按顺序拆出，层叠顺序不变） */
/* ==========================================================
   手机（< 900px）
   ========================================================== */
@media (width < 900px) {
  .head-select { gap: 4px; }
  .head-select .btn span { display: none; }
  .head-select .btn { padding: 0 10px; }
  .jump-btn { right: 10px; bottom: 76px; }
  .compose-ctx { margin: 0 8px -2px; }
  .viewer-stage { padding-left: 8px; padding-right: 8px; }
  .viewer-nav { display: none; }
  .msg-menu { width: min(280px, calc(100vw - 16px)); }

  /* 登录记录：表格 → 卡片 */
  .rec-table thead { display: none; }
  .rec-table, .rec-table tbody, .rec-table tr, .rec-table td { display: block; width: 100%; }
  .rec-table tr { margin: 0 12px 8px; width: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
  .rec-table td { display: flex; justify-content: space-between; gap: 12px; padding: 6px 12px; border-bottom: 0; text-align: right; }
  .rec-table td:first-child { padding-left: 12px; font-weight: 600; }
  .rec-table td::before { content: attr(data-label); color: var(--text-2); font-weight: 400; text-align: left; flex-shrink: 0; }
  .cur-grid { grid-template-columns: 1fr; gap: 0; }
  .cur-grid dt { font-size: 12px; margin-top: 6px; }
}

/* 文件气泡是按钮：文字左对齐 */
.bubble .file { width: 100%; text-align: left; cursor: pointer; }

/* “你：”“林晓：”前缀：中文用全角冒号，其他语言补一个空格宽度 */
:root:not(:lang(zh)) .ci-from { margin-inline-end: .3em; }

/* 让消息的 offsetTop 以滚动容器为基准（跳转、未读定位、回到底部计数都依赖它） */
.messages { position: relative; }
