/* 聊天列表（窗口 / 通话 / 醒来记录）。class 一律 cl- 开头 */
.cl { position: relative; min-height: 100%; padding: 0 0 calc(32px + var(--safe-b)); }
.cl .lace-edge { top: 0; }

.cl-top { position: sticky; top: 0; z-index: 3; padding: calc(var(--status-h) + 6px) 22px 0; background: linear-gradient(var(--paper) 82%, rgba(248, 243, 236, 0)); }
.cl-bar { height: 44px; display: flex; align-items: center; justify-content: space-between; }
.cl-btn { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--mauve-deep); background: var(--card); border: 1px solid var(--lace); padding: 0; }
.cl-bar h1 { margin: 0; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.cl-bar h1 b { font-size: 18px; font-weight: 600; letter-spacing: 2px; }
.cl-bar h1 i { font-family: var(--font-script); font-style: normal; font-weight: 400; font-size: 18px; color: var(--mauve-btn); margin-top: 2px; }

.cl-tabs { display: flex; justify-content: center; gap: 30px; margin-top: 10px; padding-bottom: 8px; }
.cl-tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 14px; color: var(--ink-2); padding: 4px 2px; }
.cl-tabs a .wave { visibility: hidden; }
.cl-tabs a[aria-current="page"] { color: var(--mauve-deep); font-weight: 500; }
.cl-tabs a[aria-current="page"] .wave { visibility: visible; }

.cl-list { padding: 8px var(--gutter) 0; display: flex; flex-direction: column; gap: 12px; }

/* 窗口卡 */
.cl-win { position: relative; display: flex; gap: 12px; padding: 14px 14px 14px 12px; border-radius: var(--radius-lg); color: var(--ink); }
.cl-win .hm-av { width: 50px; height: 50px; }
.cl-win .on { position: absolute; left: 50px; top: 50px; width: 10px; height: 10px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 2px var(--card); }
.cl-win .mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cl-win .l1 { display: flex; align-items: center; gap: 6px; }
.cl-win .name { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-win .kind { font-size: 10px; color: var(--teal); border: 1px solid var(--teal-pale); border-radius: 7px; padding: 0 6px; line-height: 16px; flex: none; }
.cl-win .time { margin-left: auto; font-family: var(--font-serif); font-size: 13px; color: var(--ink-2); flex: none; }
.cl-win .model { font-size: 11px; color: var(--mauve-deep); }
.cl-win .l3 { display: flex; align-items: center; gap: 8px; }
.cl-win .last { flex: 1; min-width: 0; font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-win .badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--mauve-btn); color: var(--paper); font-size: 11px; display: flex; align-items: center; justify-content: center; }
.cl-win .busy { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--sage); flex: none; }
.cl-win .busy i { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); animation: cl-pulse 1.6s ease-in-out infinite; }
@keyframes cl-pulse { 50% { opacity: .35 } }

.cl-win.slot { background: transparent; border: 1px dashed var(--mauve); box-shadow: none; }
.cl-win.slot .hm-av { background: transparent; box-shadow: none; border: 1px dashed var(--mauve); color: var(--mauve-btn); font-size: 22px; font-weight: 300; }
.cl-win.slot .tag { margin-left: auto; font-size: 11px; color: var(--mauve-btn); border: 1px solid var(--mauve-pale); border-radius: 8px; padding: 1px 7px; }

.cl-add { margin-top: 4px; height: 46px; border-radius: 23px; border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--mauve-deep); background: rgba(252, 250, 246, .5); }

/* 通话 */
.cl-call { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius-lg); }
.cl-call .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: var(--on-dark); display: flex; align-items: center; justify-content: center; flex: none; }
.cl-call .mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cl-call .l1 { display: flex; justify-content: space-between; align-items: baseline; }
.cl-call b { font-size: 15px; font-weight: 500; }
.cl-call .when { font-size: 12px; color: var(--ink-2); }
.cl-call .l2 { display: flex; gap: 10px; font-size: 12px; color: var(--ink-2); }
.cl-call .dur { font-family: var(--font-serif); font-size: 14px; color: var(--teal); }
.cl-call .star { color: var(--mauve-btn); display: flex; align-items: center; gap: 3px; }

/* 醒来记录：一条竖线串起来 */
.cl-wakes { position: relative; padding: 10px calc(var(--gutter) + 4px) 0 calc(var(--gutter) + 26px); }
.cl-wakes::before { content: ''; position: absolute; left: calc(var(--gutter) + 9px); top: 18px; bottom: 10px; width: 1px; background: var(--mauve-pale); }
.cl-wake { position: relative; padding: 0 0 18px; }
.cl-wake::before { content: ''; position: absolute; left: -21px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--mauve-btn); }
.cl-wake .l1 { display: flex; align-items: center; gap: 8px; }
.cl-wake time { font-family: var(--font-serif); font-size: 14px; color: var(--teal); }
.cl-wake .drive { font-size: 11px; color: var(--paper); background: var(--mauve); border-radius: 8px; padding: 1px 8px; }
.cl-wake p { margin: 8px 0 0; padding: 12px 14px; font-size: 13px; line-height: 1.7; border-radius: var(--radius); }

.cl-empty { padding: 60px 20px; text-align: center; font-size: 13px; color: var(--ink-2); }
