[v-cloak] { display: none; }
:root {
  --primary: #3370ff;
  --primary-soft: #e8efff;
  --text: #1f2329;
  --text-2: #646a73;
  --text-3: #8f959e;
  --line: #e8eaed;
  --line-soft: #f2f3f5;
  --bg: #f4f6f9;
  --card: #ffffff;
  --danger: #f54a45;
  --warn: #ff8800;
  --success: #1f9d55;
  --nav-bg: #1b2232;
  --nav-hover: #263047;
  --nav-text: #a9b2c3;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(31, 35, 41, .04), 0 2px 8px rgba(31, 35, 41, .04);
  --el-color-primary: #3370ff;
  --el-border-radius-base: 6px;
}
html, body { margin: 0; background: var(--bg); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif; color: var(--text); font-size: 14px; }
a { color: var(--primary); text-decoration: none; }
* { box-sizing: border-box; }

/* ---------- 登录 ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: radial-gradient(1200px 600px at 10% -10%, #dfe8ff 0%, transparent 60%), radial-gradient(900px 500px at 110% 110%, #e3f5ea 0%, transparent 60%), var(--bg); }
.login-card { background: #fff; padding: 36px 32px; border-radius: 14px; width: 360px; max-width: 100%; box-shadow: 0 10px 40px rgba(31,35,41,.08); }
.login-card h2 { margin: 0 0 24px; text-align: center; font-size: 22px; }

/* ---------- 外框 ---------- */
.shell { display: flex; min-height: 100vh; }
.sidenav { width: 216px; flex: 0 0 216px; background: var(--nav-bg); color: var(--nav-text); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; transition: width .18s, flex-basis .18s; z-index: 30; }
.sidenav-brand { height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 18px; color: #fff; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; }
.logo { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px; background: linear-gradient(135deg, #4f86ff, #2557e0); display: grid; place-items: center; font-weight: 800; }
.sidenav-list { flex: 1; overflow-y: auto; padding: 6px 10px; }
.nav-group { font-size: 11px; letter-spacing: .08em; color: #6b7690; padding: 14px 10px 6px; white-space: nowrap; }
.nav-item, .nav-collapse { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 8px; color: var(--nav-text); cursor: pointer; white-space: nowrap; overflow: hidden; margin-bottom: 2px; user-select: none; }
.nav-item:hover, .nav-collapse:hover { background: var(--nav-hover); color: #fff; }
.nav-item.active { background: var(--primary); color: #fff; }
.nav-icon { display: inline-flex; width: 18px; flex: 0 0 18px; }
.nav-badge { margin-left: auto; font-size: 10px; padding: 1px 6px; border-radius: 8px; background: rgba(255,255,255,.12); color: #cfd6e4; }
.nav-collapse { margin: 8px 10px 12px; }
.shell.collapsed .sidenav { width: 64px; flex-basis: 64px; }
.shell.collapsed .brand-text, .shell.collapsed .nav-label, .shell.collapsed .nav-badge, .shell.collapsed .nav-group { display: none; }
.shell.collapsed .nav-item, .shell.collapsed .nav-collapse { justify-content: center; padding: 0; }
.nav-mask { display: none; }

.workspace { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 56px; display: flex; align-items: center; gap: 16px; padding: 0 20px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.menu-btn { display: none; color: var(--text); cursor: pointer; }
.page-title { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.global-search { display: flex; align-items: center; gap: 6px; background: var(--line-soft); border-radius: 8px; padding: 0 10px; height: 34px; width: 340px; max-width: 40vw; border: 1px solid transparent; transition: .15s; }
.global-search:focus-within { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.global-search input { border: none; background: transparent; outline: none; flex: 1; font-size: 13px; color: var(--text); min-width: 0; }
.gs-icon { color: var(--text-3); display: inline-flex; }
.user-chip { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 8px; border-radius: 8px; outline: none; }
.user-chip:hover { background: var(--line-soft); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #5b8cff, #3370ff); color: #fff; display: inline-grid; place-items: center; font-size: 13px; font-weight: 600; flex: 0 0 auto; }
.avatar.sm { width: 26px; height: 26px; font-size: 12px; }
.avatar.xs { width: 18px; height: 18px; font-size: 10px; margin-right: 5px; }
.user-name { font-weight: 500; white-space: nowrap; }
.role-tag { font-size: 11px; color: var(--text-3); background: var(--line-soft); padding: 1px 6px; border-radius: 4px; }
.main { padding: 20px; flex: 1; }

/* ---------- 通用 ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.card-body { padding: 8px 18px 16px; }
.el-card { border-radius: var(--radius) !important; border-color: var(--line) !important; box-shadow: var(--shadow) !important; }
.el-card__header { padding: 14px 18px !important; border-bottom-color: var(--line-soft) !important; }
.list-card { padding: 16px 18px; }
.list-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.list-title { font-size: 15px; }
.block { margin-bottom: 16px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.spacer { flex: 1; }
.toolbar .el-button + .el-button, .head-actions .el-button + .el-button { margin-left: 0; }
.pager { margin-top: 14px; justify-content: flex-end; }
.clickable { cursor: pointer; }
.muted { color: var(--text-3); }
.small { font-size: 12px; }
.xs { font-size: 11px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link { color: var(--primary); cursor: pointer; }
.overdue { color: var(--danger); font-weight: 600; }
.c-danger { color: var(--danger); }
.c-warn { color: var(--warn); }
.narrow { max-width: 920px; }
.pre { white-space: pre-wrap; word-break: break-word; line-height: 1.6; }

.stage-tag { display: inline-block; font-size: 12px; line-height: 20px; padding: 0 8px; border-radius: 10px; font-weight: 500; white-space: nowrap; }
.pool-tag { display: inline-block; font-size: 12px; line-height: 20px; padding: 0 8px; border-radius: 10px; color: var(--text-2); background: var(--line-soft); border: 1px dashed #d0d3d8; }
.owner { display: inline-flex; align-items: center; }
.co-name { font-weight: 500; color: var(--text); }
.wa { color: #25a244; font-weight: 600; margin-right: 4px; }
.wa-mini { display: inline-flex; vertical-align: -3px; color: #25a244; margin-right: 6px; }
.wa-mini:hover { color: #128c3e; }

/* Element 表格 */
.el-table { --el-table-header-bg-color: #f7f8fa; --el-table-row-hover-bg-color: #f5f8ff; --el-table-border-color: var(--line-soft); font-size: 13px; border-radius: 8px; }
.el-table th.el-table__cell { color: var(--text-2); font-weight: 500; height: 40px; }
.el-table td.el-table__cell { height: 44px; }
.el-table--border { border-radius: 8px; overflow: hidden; }

/* ---------- 工作台 ---------- */
.welcome { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; padding: 18px 22px;
  border-radius: var(--radius); background: linear-gradient(120deg, #eef3ff 0%, #f6f9ff 60%, #eefaf3 100%); border: 1px solid #e1e8fb; }
.welcome h2 { margin: 0 0 4px; font-size: 19px; }
.welcome-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.stat-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: var(--radius); padding: 16px; cursor: pointer;
  border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.stat:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(31,35,41,.08); }
.stat-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 44px; }
.stat .num { font-size: 26px; font-weight: 700; line-height: 1.1; color: var(--text); }
.stat-label { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.tone-blue .stat-icon { background: #e8efff; color: #3370ff; }
.tone-cyan .stat-icon { background: #e2f6fa; color: #0fa5c4; }
.tone-red .stat-icon { background: #feeceb; color: #f54a45; }
.tone-red .num { color: #f54a45; }
.tone-purple .stat-icon { background: #efebff; color: #7b61ff; }
.tone-orange .stat-icon { background: #fef1e4; color: #f5871f; }

.todo-group { margin-top: 8px; }
.grp-title { display: flex; align-items: center; gap: 6px; font-weight: 600; margin: 12px 0 8px; font-size: 13px; }
.grp-count { font-size: 12px; color: var(--text-3); font-weight: 400; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-danger { background: var(--danger); } .dot-warning { background: var(--warn); } .dot-info { background: var(--primary); }
.empty-line { font-size: 12px; color: var(--text-3); padding: 10px 12px; background: #fafbfc; border-radius: 8px; border: 1px dashed var(--line); }
.todo { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; cursor: pointer; border: 1px solid var(--line); border-left: 3px solid var(--primary); margin-bottom: 8px; background: #fff; transition: .12s; }
.todo:hover { background: #f8faff; box-shadow: var(--shadow); }
.todo-danger { border-left-color: var(--danger); } .todo-warning { border-left-color: var(--warn); }
.todo-main { flex: 1; min-width: 0; }
.todo-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--text-3); margin-top: 4px; flex-wrap: wrap; }
.wa-btn { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #1f9d55; background: #e3f5ea; padding: 4px 10px; border-radius: 14px; font-weight: 500; white-space: nowrap; }
.wa-btn:hover { background: #cdeedb; }
.recent { display: flex; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.recent:last-child { border-bottom: none; }
.recent:hover { background: #fafbfc; }
.recent-body { min-width: 0; flex: 1; font-size: 13px; }
.bar-row { display: flex; align-items: center; gap: 10px; margin: 9px 0; font-size: 13px; }
.bar-label { width: 70px; color: var(--text-2); }
.bar { flex: 1; background: var(--line-soft); height: 8px; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; transition: width .3s; }
.bar-num { width: 36px; text-align: right; font-weight: 600; }

/* ---------- 客户详情 ---------- */
.detail { padding: 0 0 24px; }
.detail-card { position: relative; margin: -20px -20px 12px; padding: 20px 22px 14px; background: linear-gradient(180deg, #f3f6ff 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.detail-close { position: absolute; top: 14px; right: 14px; color: var(--text-3); cursor: pointer; padding: 4px; border-radius: 6px; display: inline-flex; }
.detail-close:hover { background: var(--line-soft); color: var(--text); }
.detail-top { display: flex; gap: 14px; align-items: center; padding-right: 30px; }
.co-avatar { width: 52px; height: 52px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-size: 28px; flex: 0 0 52px; box-shadow: var(--shadow); color: var(--primary); font-weight: 700; }
.detail-title { min-width: 0; }
.detail-title h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.3; word-break: break-word; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.detail-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.fact-k { display: block; font-size: 11px; color: var(--text-3); margin-bottom: 2px; }
.fact-v { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.quick { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; height: 28px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--text); }
.quick:hover { border-color: var(--primary); color: var(--primary); }
.quick.wa-q { background: #25a244; border-color: #25a244; color: #fff; }
.quick.wa-q:hover { background: #1e8f3b; color: #fff; }
.dup-alert { margin-bottom: 10px; }
.act-form { background: #f7f8fa; padding: 12px; border-radius: 8px; border: 1px solid var(--line-soft); }
.act-form .el-select { width: 100%; }
.info-form .el-select { width: 100%; }
.links { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; margin-top: 4px; }
.items .el-input__wrapper { box-shadow: none; }

/* ---------- 占位页 ---------- */
.placeholder-page { display: flex; justify-content: center; padding-top: 60px; }
.ph-card { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 40px 36px; max-width: 520px; box-shadow: var(--shadow); }
.ph-icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 18px; background: #e3f5ea; color: #25a244; display: grid; place-items: center; }
.ph-icon svg { width: 32px; height: 32px; }
.ph-card h3 { margin: 4px 0 12px; }
.ph-card p { line-height: 1.7; margin: 6px 0; }
.ph-card .el-button { margin-top: 14px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .sidenav { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; width: 230px !important; flex-basis: 230px !important; }
  .shell.nav-open .sidenav { transform: none; }
  .shell.nav-open .nav-mask { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 25; }
  .shell.collapsed .brand-text, .shell.collapsed .nav-label, .shell.collapsed .nav-badge, .shell.collapsed .nav-group { display: initial; }
  .shell.collapsed .nav-item { justify-content: flex-start; padding: 0 10px; }
  .nav-collapse { display: none; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 0 12px; gap: 10px; }
  .page-title { display: none; }
  .global-search { flex: 1; max-width: none; width: auto; }
  .topbar > .spacer { display: none; }
  .act-form .el-col { margin-bottom: 8px; }
  .user-name, .role-tag { display: none; }
  .main { padding: 12px; }
  .list-card { padding: 12px; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 12px; gap: 10px; }
  .stat-icon { width: 36px; height: 36px; flex-basis: 36px; border-radius: 10px; }
  .stat .num { font-size: 22px; }
  .welcome { padding: 14px 16px; }
  .welcome h2 { font-size: 17px; }
  .toolbar > .el-input { width: 100% !important; }
  .toolbar > .el-select { width: calc(50% - 4px) !important; }
  .detail-card { margin: -20px -20px 12px; padding: 16px; }
  .detail-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 二期：提醒 / 聊天 / 话术 / 导入 / 报表 ---------- */
.nav-badge.unread { background: var(--danger); color: #fff; font-weight: 600; }
.shell.collapsed .nav-badge.unread { display: block; position: absolute; margin: -18px 0 0 18px; }
.inline-icon { display: inline-flex; vertical-align: -3px; }
.inline-icon svg { width: 15px; height: 15px; }
.alert-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.alert-row:hover { background: var(--line-soft); }
.al-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; background: var(--primary); }
.al-danger .al-dot { background: var(--danger); }
.al-warning .al-dot { background: var(--warn); }
.al-name { font-weight: 600; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-text { color: var(--text-2); }
.setup-steps { text-align: left; line-height: 1.8; color: var(--text-2); padding-left: 20px; }
.form-hint { margin-left: 10px; }

.prod-thumb { width: 44px; height: 44px; border-radius: 6px; background: #fff; display: block; }
.prod-opt { display: flex !important; align-items: center; gap: 8px; height: 44px !important; line-height: 1.2 !important; }
.opt-thumb { width: 34px; height: 34px; object-fit: contain; border-radius: 4px; }
.opt-model { font-weight: 600; min-width: 90px; }
.opt-price { margin-left: auto; color: var(--primary); }

.chat-shell { display: grid; grid-template-columns: 320px 1fr; gap: 12px; height: calc(100vh - 56px - 32px); min-height: 480px; }
.chat-list, .chat-main { display: flex; flex-direction: column; overflow: hidden; padding: 0 !important; }
.chat-list-head { display: flex; gap: 8px; align-items: center; padding: 10px; border-bottom: 1px solid var(--line); }
.chat-items { flex: 1; overflow-y: auto; }
.chat-item { display: flex; gap: 10px; padding: 10px 12px; cursor: pointer; border-bottom: 1px solid var(--line-soft); }
.chat-item:hover { background: #f7f8fa; }
.chat-item.active { background: var(--primary-soft); }
.ci-avatar { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; background: #e3f5ea; color: #1f7a45; display: grid; place-items: center; font-size: 18px; font-weight: 600; }
.ci-body { flex: 1; min-width: 0; }
.ci-top, .ci-bottom { display: flex; justify-content: space-between; gap: 6px; }
.ci-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-time { color: var(--text-3); font-size: 11px; flex: 0 0 auto; }
.ci-text { color: var(--text-2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-unread { background: #25a244; color: #fff; border-radius: 10px; font-size: 11px; padding: 0 6px; min-width: 18px; text-align: center; }
.ci-meta { display: flex; gap: 6px; margin-top: 3px; font-size: 11px; color: var(--text-3); align-items: center; }
.win-open, .win-closed { font-size: 11px; padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.win-open { background: #e3f5ea; color: #1f9d55; }
.win-closed { background: #fef1e4; color: #c26a00; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chat-back { display: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--text-2); }
.ch-title { flex: 1; min-width: 0; }
.ch-name { font-weight: 600; font-size: 15px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; background: #efeae2; }
.msg { display: flex; margin-bottom: 8px; }
.msg.out { justify-content: flex-end; }
.bubble { max-width: 70%; background: #fff; border-radius: 10px; padding: 7px 10px 5px; box-shadow: 0 1px 1px rgba(0,0,0,.06); word-break: break-word; }
.msg.out .bubble { background: #d9fdd3; }
.msg-text { white-space: pre-wrap; line-height: 1.5; }
.msg-tr { margin-top: 5px; padding-top: 5px; border-top: 1px dashed #d5d9de; color: #3a5f8f; font-size: 13px; white-space: pre-wrap; }
.msg.out .msg-tr { color: #4b6b48; border-top-color: #b7dfb0; }
.msg-tr-btn { font-size: 12px; margin-top: 3px; }
.msg-tr-btn a { cursor: pointer; }
.msg-meta { text-align: right; font-size: 11px; color: var(--text-3); margin-top: 2px; }
.msg-status { margin-left: 3px; }
.msg-status.read { color: #53bdeb; }
.msg-status.failed { color: var(--danger); font-weight: 700; }
.msg-err { color: var(--danger); font-size: 12px; }
.msg-img { width: 220px; max-width: 100%; height: 160px; border-radius: 6px; display: block; }
.msg-file a { font-weight: 500; }
.composer { border-top: 1px solid var(--line); padding: 10px 12px; background: #fff; }
.composer-tools, .composer-actions { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.composer-actions { margin: 8px 0 0; }
.draft-tr { margin-top: 8px; }
.file-btn { cursor: pointer; }
.window-closed-box { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 13px; }
.chat-empty { align-items: center; justify-content: center; gap: 8px; }
.snip-pop { max-height: 360px; overflow-y: auto; }
.snip-cat { font-size: 11px; color: var(--text-3); margin: 8px 0 2px; }
.snip-item { padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.snip-item:hover { background: var(--primary-soft); }
.snip-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.snip-main { flex: 1; min-width: 0; }
.snip-title { font-weight: 600; margin-bottom: 4px; }
.snip-actions { flex: 0 0 auto; }
.tpl-list { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.tpl-item { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.tpl-item.active { border-color: var(--primary); background: var(--primary-soft); }
.tpl-preview { margin-top: 10px; background: #d9fdd3; border-radius: 8px; padding: 10px; }

.map-table-wrap { overflow-x: auto; }
.map-table { border-collapse: collapse; font-size: 12px; }
.map-table th, .map-table td { border: 1px solid var(--line); padding: 5px 6px; max-width: 160px; text-align: left; }
.map-table th { background: #f7f8fa; white-space: nowrap; }
.c-danger { color: var(--danger); }
.c-warn { color: var(--warn); }
.day-bars { display: flex; align-items: flex-end; gap: 3px; height: 160px; }
.day-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 8px; }
.day-fill { width: 100%; background: var(--primary); border-radius: 3px 3px 0 0; }
.day-label { font-size: 10px; color: var(--text-3); margin-top: 3px; }

@media (max-width: 767px) {
  .chat-shell { grid-template-columns: 1fr; height: calc(100vh - 56px - 20px); }
  .chat-shell.has-chat .chat-list { display: none; }
  .chat-shell:not(.has-chat) .chat-main { display: none; }
  .chat-back { display: block; }
  .chat-head { gap: 6px; padding: 8px 10px; }
  .ch-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
  .bubble { max-width: 85%; }
  .window-closed-box { flex-direction: column; align-items: flex-start; }
}
