/* 老板后台"在线咨询"（chat.js） */
.ch-split { display: grid; grid-template-columns: 340px 1fr; gap: 16px; align-items: start; }
.ch-left { padding: 14px; }
.ch-filters { display: flex; gap: 8px; margin-bottom: 10px; }
.ch-filters select { width: 120px; }
.ch-search { flex: 1; min-width: 0; }
.ch-list { display: grid; gap: 2px; max-height: 640px; overflow: auto; margin: 0 -6px; }
.ch-conv { display: block; padding: 10px; border-radius: 10px; color: inherit; text-decoration: none; }
.ch-conv:hover { background: var(--bg); }
.ch-conv.on { background: var(--blue-soft); }
.ch-conv-top { display: flex; align-items: center; gap: 6px; }
.ch-time { margin-left: auto; }
.ch-conv-prev { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.ch-ellipsis { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-dot { flex-shrink: 0; min-width: 20px; height: 20px; line-height: 20px; border-radius: 10px; background: var(--red); color: #fff; font-size: 12px; text-align: center; padding: 0 6px; }
.ch-empty { padding: 20px 6px; }
.ch-placeholder { display: flex; align-items: center; justify-content: center; min-height: 420px; }
.ch-right { padding: 0; overflow: hidden; }
.ch-room { display: grid; grid-template-columns: 1fr 260px; min-height: 560px; }
.ch-chat { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--line); }
.ch-tip { background: #fff3e8; color: #b45a19; padding: 8px 14px; }
.ch-msgs { flex: 1; overflow: auto; padding: 14px; max-height: 520px; min-height: 360px; background: #f7f9fc; }
.ch-line { display: flex; flex-direction: column; align-items: flex-start; margin: 10px 0; }
.ch-line.mine { align-items: flex-end; }
.ch-who { margin-bottom: 2px; }
.ch-bubble { background: #fff; border-radius: 4px 14px 14px 14px; padding: 8px 12px; max-width: 70%; white-space: pre-wrap; word-break: break-all; box-shadow: 0 2px 8px rgba(31, 79, 216, .05); }
.ch-line.mine .ch-bubble { background: var(--blue); color: #fff; border-radius: 14px 4px 14px 14px; }
.ch-pic { max-width: 220px; max-height: 260px; border-radius: 10px; background: #e8edf5; }
.ch-card { display: flex; gap: 10px; background: #fff; border-radius: 12px; padding: 10px; width: 300px; box-shadow: 0 2px 8px rgba(31, 79, 216, .06); }
.ch-card img, .ch-card-noimg { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: #eef1f6; flex-shrink: 0; }
.ch-price { color: var(--red); }
.ch-sys { text-align: center; margin: 10px 0; }
.ch-blocked { padding: 6px 14px; background: #fdecec; }
.ch-compose { border-top: 1px solid var(--line); padding: 10px 14px; display: grid; gap: 8px; }
.ch-compose textarea { width: 100%; resize: vertical; }
.ch-compose-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.ch-compose-bar .btn { flex: none; white-space: nowrap; }
.ch-compose-bar select { flex: 1 1 140px; min-width: 0; max-width: 260px; margin-right: auto; }
.ch-info { padding: 14px; display: grid; gap: 6px; align-content: start; }
.ch-info-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 15px; }
.ch-info-h { margin-top: 8px; font-weight: 600; color: var(--sub); }
.ch-devices { margin: 0; padding-left: 16px; }
.ch-ops { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
@media (max-width: 1100px) {
  .ch-split { grid-template-columns: 1fr; }
  .ch-room { grid-template-columns: 1fr; }
  .ch-chat { border-right: 0; border-bottom: 1px solid var(--line); }
}
.nav-dot { display: inline-block; margin-left: 6px; min-width: 18px; height: 18px; line-height: 18px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; text-align: center; padding: 0 5px; vertical-align: 1px; }
