/* 27 · 头像库 / 壁纸库 / 聊天库 */
.avl-row{display:flex;align-items:center;gap:12px}
.avl-row i,.avl-so i{width:22px;height:22px;display:inline-flex;flex:none;color:var(--sub)}
.avl-row i svg,.avl-so i svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.avl-row .k{flex:1}
.avl-n{font-size:12px;color:var(--sub)}
.avl-ar{color:var(--faint,#bbb);font-size:18px;line-height:1}
.avl-page{padding-bottom:40px}
.avl-hd{margin:6px 4px 16px;display:flex;flex-direction:column;gap:4px}
.avl-hd small{font-size:10px;letter-spacing:2.5px;color:var(--sub);opacity:.7}
.avl-hd span{font-size:12px;color:var(--sub)}
.avl-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px 10px}
.avl-grid.wp{grid-template-columns:repeat(3,1fr)}
.avl-it{display:flex;flex-direction:column;gap:6px;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;min-width:0}
.avl-grid.wp .avl-th{aspect-ratio:9/16;border-radius:16px}
.avl-th img{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.avl-it span{font-size:11px;color:var(--sub);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.avl-it.add .avl-th{background:none;border:1px dashed var(--faint,#c8c8c8)}
.avl-it.add .avl-th svg{width:24px;height:24px;fill:none;stroke:var(--sub);stroke-width:1.4;stroke-linecap:round}
.avl-it:active .avl-th{opacity:.7}
.avl-empty{text-align:center;color:var(--sub);font-size:13px;line-height:1.8;padding:34px 10px}
.avl-empty small{font-size:11px;opacity:.8}
.avl-ml{display:flex;flex-direction:column;gap:10px}
.avl-mi{background:var(--paper);border-radius:18px;padding:14px 16px;cursor:pointer;-webkit-user-select:none;user-select:none}
.avl-mi b,.avl-mr b{display:block;font-size:11px;font-weight:500;color:var(--sub);letter-spacing:.5px;margin-bottom:4px}
.avl-mi p,.avl-mr p{margin:0;font-size:14px;line-height:1.6;color:var(--ink);white-space:pre-wrap;word-break:break-all;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
/* sheet 里的 */
.so.avl-so{display:flex;align-items:center;justify-content:center;gap:8px}
.so.avl-so small{font-size:11px;color:var(--sub);margin-left:4px}
.sq.avl-sq{display:flex;flex-direction:column;align-items:center;gap:8px;white-space:normal}
.sq.avl-sq img{width:72px;height:72px;border-radius:22px;object-fit:cover}
.sq.avl-sq.wp img{width:66px;height:116px;border-radius:12px}
.avl-pick{background:var(--paper);max-height:46vh;overflow-y:auto;padding:14px 14px 10px}
.avl-grid.sm{grid-template-columns:repeat(4,1fr);gap:12px 8px}
.avl-grid.sm .avl-th{border-radius:18px}
.avl-mr{display:flex;align-items:center;gap:10px;padding:10px 2px;border-bottom:1px solid var(--line,rgba(0,0,0,.06))}
.avl-mr:last-child{border-bottom:none}
.avl-mr .t{flex:1;min-width:0;cursor:pointer}
.avl-mr p{-webkit-line-clamp:2;font-size:14px}
.avl-mr .go{width:34px;height:34px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;border:1px solid var(--line,rgba(0,0,0,.1));cursor:pointer;color:var(--ink)}
.avl-mr .go svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.sbox textarea.hbin.avl-ta{background:var(--paper);border:none;padding:14px 16px;font:inherit;font-size:15px;outline:none;color:var(--ink);resize:none;line-height:1.5}
/* 聊天里的头像卡片 */
.wavc{width:150px;background:var(--wxcell,#fff);border-radius:18px;overflow:hidden;cursor:pointer;border:1px solid rgba(0,0,0,.05)}
.wavc .avc-im{padding:12px 12px 0}
.wavc .avc-im img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:14px;display:block}
.wavc .avc-f{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:9px 13px 11px;font-size:11px;color:var(--wxsub,#999)}
.wavc .avc-f em{font-style:normal;max-width:60px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:.8}
/* 换了头像的提示 */
#chatWin .wsys.avl-sys{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap}
.wsys.avl-sys img{width:20px;height:20px;border-radius:50%;object-fit:cover}
.wsys.avl-sys a{cursor:pointer;text-decoration:underline;text-underline-offset:2px;color:inherit;opacity:.85}
/* 夜间 */
.phone.night .avl-th{border-color:rgba(255,255,255,.08)}
.phone.night .avl-it.add .avl-th{border-color:#4a4a4a}
.phone.night .avl-mr,.phone.night .avl-mr .go{border-color:rgba(255,255,255,.1)}
.phone.night .wavc{border-color:rgba(255,255,255,.06)}

/* 我在此聊天中的头像 */
.wxcellrow .rlbav{margin-left:auto;display:flex;align-items:center}.wxcellrow .rlbav img{width:30px;height:30px;border-radius:50%;margin-right:6px;object-fit:cover}.wxcellrow .rlbav em{font-style:normal;color:var(--wxsub);font-size:14px}
.avsq .wxcellrow .rlbav img{border-radius:8px}

.avl-th{width:100%;aspect-ratio:1;border-radius:22px;overflow:hidden;background:var(--paper);border:1px solid var(--line,rgba(0,0,0,.06));display:flex;align-items:center;justify-content:center;box-sizing:border-box;position:relative}
.avl-ck{position:absolute;right:7px;top:7px;width:20px;height:20px;border-radius:50%;border:1.5px solid #fff;background:rgba(0,0,0,.18);box-shadow:0 1px 3px rgba(0,0,0,.2);font:600 11px/17px -apple-system,sans-serif;color:#fff;text-align:center;box-sizing:border-box}
.avl-it.on .avl-ck{background:#1c1c1e;border-color:#1c1c1e}
.avl-it.on .avl-th img{opacity:.85}
.avl-go.dis{opacity:.35;pointer-events:none}
.avl-go em{font-style:normal}
.phone.night .avl-it.on .avl-ck{background:#e5e5e5;border-color:#e5e5e5;color:#1c1c1e}
