:root {
  --primary: #3b7cff;
  --primary-dark: #2a63d6;
  --bg: #f4f6fb;
  --panel: #ffffff;
  --line: #e6e9f2;
  --text: #1f2430;
  --muted: #8a91a3;
  --bubble-me: #3b7cff;
  --bubble-other: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; font-size: 14px; }
a { text-decoration: none; }

/* ========== 登录 / 注册 ========== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef3ff 0%, #f7f9fd 55%, #eef7f4 100%);
  padding: 20px;
}

.auth-card {
  width: 360px;
  max-width: 100%;
  background: var(--panel);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(31, 45, 80, .1);
  padding: 32px 28px 26px;
}

.auth-logo {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
  margin: 0 auto 14px;
  overflow: hidden;
}
.auth-logo img { width: 100%; height: 100%; object-fit: cover; }

.auth-title { text-align: center; font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 24px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  background: #fbfcff;
  outline: none;
  transition: border-color .15s;
}
.field input:focus { border-color: var(--primary); background: #fff; }

.btn {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: background .15s;
}
.btn:hover { background: var(--primary-dark); }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.auth-tip { min-height: 20px; margin: 10px 0 4px; font-size: 13px; color: #e0453b; }
.auth-tip.ok { color: #1a9b63; }

.auth-switch { text-align: center; margin-top: 16px; font-size: 13px; color: var(--muted); }
.auth-switch a { color: var(--primary); font-weight: 600; }

/* ========== 聊天页 ========== */
.chat-page { height: 100vh; display: flex; flex-direction: column; }

.topbar {
  height: 58px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
  flex-shrink: 0;
}
.topbar .app-logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; overflow: hidden;
}
.topbar .app-logo img { width: 100%; height: 100%; object-fit: cover; }
.topbar .app-name { font-weight: 700; font-size: 15px; }
.topbar .spacer { flex: 1; }
.topbar .who { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.topbar .who b { color: var(--text); }
.topbar .avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #dfe6f5; }
.icon-btn {
  border: 1px solid var(--line);
  background: #fff;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  color: #555e73;
  font-size: 13px;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }

.chat-main { flex: 1; display: flex; min-height: 0; }

/* 左侧栏 */
.sidebar {
  width: 300px;
  background: var(--panel);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.sidebar-head { padding: 14px 14px 10px; border-bottom: 1px solid var(--line); }
.search-box { display: flex; gap: 8px; }
.search-box input {
  flex: 1; height: 36px; border: 1px solid var(--line); border-radius: 9px;
  padding: 0 12px; background: #f8fafe; outline: none;
}
.search-box input:focus { border-color: var(--primary); background: #fff; }
.search-box button {
  width: 60px; border: none; border-radius: 9px; background: var(--primary); color: #fff; font-weight: 600;
}

.search-result { max-height: 220px; overflow: auto; padding: 0 4px 6px; }
.search-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px;
}
.search-item:hover { background: #f5f8ff; }
.search-item .avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #dfe6f5; }
.search-item .info { flex: 1; min-width: 0; }
.search-item .nm { font-weight: 600; font-size: 13px; }
.search-item .id { color: var(--muted); font-size: 12px; }
.search-item .act {
  border: none; border-radius: 8px; height: 30px; padding: 0 10px; font-size: 12px;
  background: #eef3ff; color: var(--primary); font-weight: 600;
}
.search-item .act[disabled] { background: #f1f2f5; color: var(--muted); }
.search-empty { color: var(--muted); font-size: 12px; text-align: center; padding: 12px; }

.panel-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 8px; font-size: 13px; font-weight: 700; color: #4a5266;
}
.badge {
  min-width: 18px; height: 18px; border-radius: 9px; background: #ff4d4f; color: #fff;
  font-size: 11px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
}
.badge.hide { display: none; }

.req-list { padding: 0 8px 6px; }
.req-item {
  display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 9px; background: #fbfcff;
  margin-bottom: 6px;
}
.req-item .avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #dfe6f5; }
.req-item .nm { flex: 1; font-size: 13px; font-weight: 600; }
.req-item .ok, .req-item .no {
  height: 28px; padding: 0 9px; border-radius: 7px; font-size: 12px; border: none;
}
.req-item .ok { background: var(--primary); color: #fff; }
.req-item .no { background: #f1f2f5; color: #666; }

.friend-list { flex: 1; overflow: auto; padding: 4px 8px 12px; }
.friend-item {
  display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; cursor: pointer;
}
.friend-item:hover { background: #f5f8ff; }
.friend-item.active { background: #eaf1ff; }
.friend-item .avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #dfe6f5; }
.friend-item .meta { flex: 1; min-width: 0; }
.friend-item .row1 { display: flex; justify-content: space-between; gap: 6px; }
.friend-item .nm { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-item .tm { font-size: 11px; color: var(--muted); flex-shrink: 0; }
.friend-item .row2 { display: flex; justify-content: space-between; gap: 6px; margin-top: 3px; }
.friend-item .msg { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-item .dot {
  min-width: 17px; height: 17px; border-radius: 9px; background: #ff4d4f; color: #fff;
  font-size: 11px; display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* 右侧聊天 */
.chat-area { flex: 1; display: flex; flex-direction: column; min-width: 0; background: #f7f9fd; }
.chat-head {
  height: 56px; background: var(--panel); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; padding: 0 16px; flex-shrink: 0;
}
.chat-head .avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #dfe6f5; }
.chat-head .nm { font-weight: 700; }
.chat-head .uid { color: var(--muted); font-size: 12px; }
.chat-head .spacer { flex: 1; }
.chat-head .danger {
  border: 1px solid #ffd3d1; background: #fff5f5; color: #e0453b; height: 30px;
  padding: 0 10px; border-radius: 8px; font-size: 12px;
}

.msg-scroll { flex: 1; overflow-y: auto; padding: 18px 16px 8px; }
.msg-row { display: flex; gap: 8px; margin-bottom: 14px; }
.msg-row.mine { flex-direction: row-reverse; }
.msg-row .avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #dfe6f5; flex-shrink: 0; }
.bubble-wrap { max-width: 62%; display: flex; flex-direction: column; }
.msg-row.mine .bubble-wrap { align-items: flex-end; }
.bubble {
  padding: 9px 12px; border-radius: 12px; background: var(--bubble-other);
  box-shadow: 0 1px 3px rgba(31, 45, 80, .06); line-height: 1.55; word-break: break-word;
  white-space: pre-wrap;
}
.msg-row.mine .bubble { background: var(--bubble-me); color: #fff; }
.bubble.recalled { background: #f0f1f4; color: var(--muted); font-size: 12px; box-shadow: none; font-style: normal; }
.msg-row.mine .bubble.recalled { background: #f0f1f4; color: var(--muted); }
.bubble img { max-width: 220px; max-height: 220px; border-radius: 8px; display: block; }
.bubble .file-link { display: flex; align-items: center; gap: 8px; }
.bubble .file-link a { color: inherit; text-decoration: underline; }
.msg-meta { font-size: 11px; color: var(--muted); margin-top: 4px; display: flex; gap: 8px; align-items: center; }
.msg-meta .recall { color: var(--primary); cursor: pointer; }
.msg-row.mine .msg-meta .recall { color: #9db8e8; }
.msg-row.mine.recalled-row .msg-meta { display: none; }

.chat-empty {
  flex: 1; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px;
}

.input-bar {
  background: var(--panel); border-top: 1px solid var(--line); padding: 10px 14px;
  display: flex; align-items: flex-end; gap: 8px; flex-shrink: 0;
}
.input-bar .attach {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  font-size: 18px; color: #6b7383; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.input-bar .attach:hover { border-color: var(--primary); color: var(--primary); }
.input-bar textarea {
  flex: 1; resize: none; height: 38px; max-height: 110px; border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 12px; outline: none; background: #f8fafe; line-height: 1.4;
}
.input-bar textarea:focus { border-color: var(--primary); background: #fff; }
.input-bar .send {
  height: 38px; padding: 0 18px; border: none; border-radius: 10px; background: var(--primary);
  color: #fff; font-weight: 600; flex-shrink: 0;
}
.input-bar .send:hover { background: var(--primary-dark); }

/* 头像设置弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(20, 28, 45, .4); display: none;
  align-items: center; justify-content: center; z-index: 50;
}
.modal-mask.show { display: flex; }
.modal {
  width: 320px; background: #fff; border-radius: 14px; padding: 22px; text-align: center;
  box-shadow: 0 18px 50px rgba(20, 28, 45, .22);
}
.modal h3 { font-size: 16px; margin-bottom: 8px; }
.modal p { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.modal .avatar-preview { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; background: #dfe6f5; }
.modal .btn { height: 40px; }
.modal .close { margin-top: 8px; background: #f1f2f5; color: #555; }

/* ========== 后台 ========== */
.admin-page { min-height: 100vh; background: var(--bg); padding: 26px 16px; }
.admin-card {
  max-width: 640px; margin: 0 auto 18px; background: #fff; border-radius: 14px; padding: 24px;
  box-shadow: 0 8px 26px rgba(31, 45, 80, .07);
}
.admin-card h2 { font-size: 16px; margin-bottom: 4px; }
.admin-card .desc { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.admin-row { display: flex; gap: 10px; align-items: center; }
.admin-row input {
  flex: 1; height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; outline: none;
}
.admin-row input:focus { border-color: var(--primary); }
.admin-row button {
  height: 42px; padding: 0 18px; border: none; border-radius: 10px; background: var(--primary);
  color: #fff; font-weight: 600;
}
.admin-tip { min-height: 18px; font-size: 12px; margin-top: 10px; color: #1a9b63; }
.admin-tip.err { color: #e0453b; }
.icon-preview {
  width: 72px; height: 72px; border-radius: 16px; object-fit: cover; background: #eef3ff;
  display: flex; align-items: center; justify-content: center; color: var(--primary); font-weight: 700;
}
.admin-icon-line { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.uid-line { display: flex; gap: 10px; margin-bottom: 12px; }
.uid-line input { flex: 1; height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
.warn { font-size: 12px; color: #b57b00; background: #fff8e6; border-radius: 8px; padding: 9px 12px; margin-bottom: 12px; }
.danger-btn { background: #e0453b !important; }

/* ========== 表情面板 ========== */
.attach.emoji-btn { font-size: 16px; line-height: 1; }
.emoji-panel {
  display: none; flex-wrap: wrap; gap: 4px; padding: 10px 12px; background: #fff;
  border-top: 1px solid var(--line); max-height: 176px; overflow-y: auto;
}
.emoji-panel.show { display: flex; }
.emoji-panel span {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; border-radius: 8px; cursor: pointer; user-select: none;
}
.emoji-panel span:hover { background: #f1f4fd; }

/* ========== 语音条 ========== */
.attach.voice-btn { font-size: 15px; }
.attach.voice-btn.rec {
  background: #ff4d4f; color: #fff; font-size: 11px; font-weight: 600; width: auto; padding: 0 8px;
  border-radius: 14px; animation: recPulse 1.1s infinite;
}
@keyframes recPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,77,79,.5); } 50% { box-shadow: 0 0 0 8px rgba(255,77,79,0); } }

.voice-bar {
  display: flex; align-items: center; gap: 8px; height: 34px; cursor: pointer;
  color: inherit; user-select: none;
}
.voice-bar .voice-icon {
  width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center; font-size: 10px; flex: 0 0 22px;
}
.msg-row:not(.mine) .voice-bar .voice-icon { background: #eef3ff; color: var(--primary); }
.voice-bar .voice-wave {
  flex: 1; height: 14px; border-radius: 7px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 2px, transparent 2px 5px);
  opacity: .75;
}
.msg-row:not(.mine) .voice-bar .voice-wave {
  background: repeating-linear-gradient(90deg, #c9d6f3 0 2px, transparent 2px 5px);
}
.voice-bar.playing .voice-wave { animation: waveMove .6s linear infinite; }
@keyframes waveMove { from { background-position-x: 0; } to { background-position-x: 5px; } }
.voice-bar .voice-dur { font-size: 12px; opacity: .8; flex: 0 0 auto; }

/* ========== 通话界面 ========== */
.call-mask {
  position: fixed; inset: 0; z-index: 60; display: none;
  align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 30%, #2b3550, #10131c 70%);
}
.call-mask.show { display: flex; }

.call-box { width: 100%; height: 100%; display: flex; flex-direction: column; position: relative; }
.call-top { padding: 22px 0 8px; text-align: center; color: #fff; z-index: 2; }
.call-kind { font-size: 12px; color: rgba(255,255,255,.55); letter-spacing: 1px; }
.call-status { font-size: 15px; margin-top: 6px; }
.call-peer { font-size: 22px; font-weight: 600; margin-top: 8px; }

.call-media { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; }
.remote-video { max-width: 100%; max-height: 100%; background: #000; border-radius: 12px; }
.local-video {
  position: absolute; right: 16px; bottom: 16px; width: 108px; height: 148px;
  object-fit: cover; border-radius: 10px; background: #000; box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.audio-avatar { display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.audio-avatar img {
  width: 132px; height: 132px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.25);
    background: #1b2334;
}
.ring-anim {
  width: 132px; height: 132px; border-radius: 50%; position: absolute; top: 0;
  border: 2px solid rgba(90,150,255,.55); animation: ringPulse 1.8s infinite;
}
@keyframes ringPulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }

.call-btns {
  padding: 24px 0 44px; display: flex; gap: 26px; justify-content: center; align-items: center;
}
.call-btn-round {
  width: 56px; height: 56px; border-radius: 50%; border: none; font-size: 20px; color: #fff;
  background: rgba(255,255,255,.16); backdrop-filter: blur(4px);
}
.call-btn-round.off { background: rgba(255,255,255,.34); }
.call-btn-round.hangup { background: #e0453b; width: 64px; height: 64px; font-size: 24px; }

/* 来电弹窗 */
.incoming-mask {
  position: fixed; inset: 0; z-index: 70; display: none; align-items: center; justify-content: center;
  background: rgba(10,14,22,.72);
}
.incoming-mask.show { display: flex; }
.incoming-box {
  width: 300px; background: #fff; border-radius: 18px; padding: 26px 20px 22px;
  text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.3);
}
.avatar-lg { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: #eef3ff; }
.incoming-name { font-size: 17px; font-weight: 700; margin-top: 12px; }
.incoming-tip { font-size: 13px; color: var(--muted); margin-top: 6px; }
.incoming-btns { display: flex; gap: 12px; margin-top: 22px; }
.incoming-btn { flex: 1; height: 46px; border: none; border-radius: 23px; font-weight: 600; font-size: 14px; }
.incoming-btn.reject { background: #f1f2f5; color: #555; }
.incoming-btn.accept { background: var(--primary); color: #fff; }

/* 窄屏适配（手机浏览器） */
@media (max-width: 560px) {
  .call-btn { padding: 0 8px; font-size: 12px; }
  .local-video { width: 84px; height: 116px; }
  .call-btns { padding-bottom: 28px; }
}

/* ========== 已读回执 / 正在输入 ========== */
.read-tip { font-size: 11px; margin-left: 6px; }
.read-tip.read { color: var(--primary); }
.read-tip.unread { color: #b0b6c4; }

.typing-tip {
  display: none; font-size: 11px; color: var(--primary); margin-top: 3px;
}
.typing-tip.show { display: block; }

/* 拉黑按钮（描边红） */
button.danger.ghost {
  background: #fff; color: #e0453b; border: 1px solid #f5bcb8;
}
button.danger.ghost:hover { background: #fff4f4; }

/* ========== 我的面板 ========== */
.me-mask {
  position: fixed; inset: 0; z-index: 50; display: none;
  background: rgba(15, 20, 32, .38);
}
.me-mask.show { display: block; }
.me-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 340px; max-width: 92vw;
  background: #fff; box-shadow: -10px 0 40px rgba(20, 30, 60, .16);
  display: flex; flex-direction: column; padding: 0 0 16px; overflow-y: auto;
  animation: slideIn .22s ease-out;
}
@keyframes slideIn { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }

.me-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px 12px; font-size: 16px; font-weight: 700;
  position: sticky; top: 0; background: #fff; z-index: 2;
}
.me-close { border: none; background: transparent; font-size: 16px; color: var(--muted); }

.me-avatar-line { display: flex; gap: 14px; align-items: center; padding: 4px 18px 16px; border-bottom: 1px solid var(--line); }
.me-avatar-info .me-name { font-size: 16px; font-weight: 600; }
.me-avatar-info .me-uid { font-size: 12px; color: var(--muted); margin: 4px 0 8px; }

.me-section { padding: 16px 18px 4px; border-bottom: 1px solid #f3f5fa; }
.me-label { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.me-row { display: flex; gap: 8px; }
.me-row input {
  flex: 1; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; outline: none;
  min-width: 0;
}
.me-row input:focus { border-color: var(--primary); }
.me-mini {
  height: 40px; padding: 0 14px; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; color: #555; font-size: 13px; white-space: nowrap;
}
.me-mini.primary { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.me-btn {
  width: 100%; height: 42px; margin-top: 10px; border: none; border-radius: 10px;
  background: var(--primary); color: #fff; font-weight: 600;
}
.me-tip { min-height: 18px; font-size: 12px; margin-top: 8px; }
.me-block-list { max-height: 190px; overflow-y: auto; }
.me-empty { font-size: 12px; color: var(--muted); padding: 6px 0 10px; }
.me-block-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.me-block-item .avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #eef3ff; }
.me-block-item .nm { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-block-item .uid { color: var(--muted); font-size: 11px; margin-left: 6px; font-weight: 400; }
.me-logout {
  margin: 22px 18px 0; height: 44px; border-radius: 12px; border: 1px solid #f5bcb8;
  background: #fff; color: #e0453b; font-weight: 600; font-size: 14px;
}
.me-logout:hover { background: #fff5f5; }

/* ========== 确认小方框 ========== */
.confirm-mask {
  position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center;
  background: rgba(15, 20, 32, .45);
}
.confirm-mask.show { display: flex; }
.confirm-box {
  width: 288px; background: #fff; border-radius: 16px; padding: 24px 20px 16px;
  text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.22);
  animation: popIn .16s ease-out;
}
@keyframes popIn { from { transform: scale(.94); opacity: .5; } to { transform: scale(1); opacity: 1; } }
.confirm-text { font-size: 14px; line-height: 1.6; color: var(--text); margin-bottom: 20px; }
.confirm-btns { display: flex; gap: 10px; }
.confirm-btns button {
  flex: 1; height: 42px; border: none; border-radius: 10px; font-size: 14px; font-weight: 600;
}
.confirm-cancel { background: #f1f2f5; color: #555; }
.confirm-ok { background: var(--primary); color: #fff; }

/* ========== 群聊 ========== */
.mini-plus {
  width: 22px; height: 22px; border-radius: 50%; border: none; background: #eef3ff;
  color: var(--primary); font-size: 14px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.group-list { max-height: 210px; overflow-y: auto; }
.group-avatar {
  width: 38px; height: 38px; border-radius: 10px; flex: 0 0 38px;
  background: linear-gradient(135deg, #7d97ff, #4b6ef5); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.sender-name { font-size: 11px; color: var(--muted); margin: 0 0 3px 4px; }

.modal.wide { width: 340px; max-height: 84vh; overflow-y: auto; text-align: left; }
.modal.wide h3 { text-align: center; }
.modal.wide p { text-align: center; }
.modal input, .modal .pick-list input { font-family: inherit; }
#groupNameInput {
  width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 10px;
  padding: 0 12px; margin: 12px 0 4px; outline: none;
}
#groupNameInput:focus { border-color: var(--primary); }
.pick-title { font-size: 12px; color: var(--muted); margin: 14px 0 6px; }
.pick-list { max-height: 210px; overflow-y: auto; border: 1px solid #f0f2f8; border-radius: 10px; padding: 6px; }
.pick-list.small { max-height: 150px; }
.pick-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 6px; border-radius: 8px; cursor: pointer;
}
.pick-item:hover { background: #f6f8fe; }
.pick-item.static { cursor: default; }
.pick-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); }
.pick-item .avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #eef3ff; }
.pick-item span { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-item small { color: var(--muted); font-size: 11px; }
.pick-item .me-mini { height: 30px; padding: 0 10px; font-size: 12px; }
.tip-line { min-height: 16px; font-size: 12px; color: #e0453b; margin-top: 8px; }

.member-list { max-height: 260px; overflow-y: auto; border-top: 1px solid #f2f4fa; border-bottom: 1px solid #f2f4fa; }
.member-item { display: flex; align-items: center; gap: 8px; padding: 8px 2px; }
.member-item .avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #eef3ff; }
.member-item .nm { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-item .uid { font-size: 11px; color: var(--muted); }
.member-item .me-mini { height: 28px; padding: 0 10px; font-size: 12px; }
.owner-tag {
  font-size: 10px; color: #b57b00; background: #fff5d6; border-radius: 6px;
  padding: 1px 5px; margin-left: 6px; font-weight: 500;
}
.owner-tag.me { color: var(--primary); background: #eef3ff; }
