:root {
  --brand: #12b7f5;
  --brand-deep: #0a9ed8;
  --brand-soft: #e8f7ff;
  --bg: #f2f5f9;
  --panel: #ffffff;
  --rail: #e9eef6;
  --text: #1c2333;
  --text-2: #6b7684;
  --text-3: #98a2b3;
  --line: #e9edf3;
  --danger: #f04452;
  --shadow-sm: 0 1px 2px rgba(23, 43, 77, 0.06);
  --shadow-md: 0 8px 28px rgba(23, 43, 77, 0.1);
  --shadow-lg: 0 24px 70px rgba(23, 43, 77, 0.18);
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; font-size: 14px; color: var(--text); outline: none; }
.hidden { display: none !important; }
svg { fill: currentColor; width: 100%; height: 100%; display: block; }

/* ============================ 登录 / 注册 ============================ */
.auth-screen {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e9f4ff 0%, #f7fafd 48%, #e8f9f4 100%);
  overflow: hidden;
  z-index: 10;
}
.auth-bg .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; }
.auth-bg .b1 { width: 420px; height: 420px; background: #9fd8ff; top: -120px; left: -80px; }
.auth-bg .b2 { width: 380px; height: 380px; background: #b6f0e2; bottom: -140px; right: -60px; }
.auth-bg .b3 { width: 300px; height: 300px; background: #c9d8ff; bottom: 20%; left: 12%; opacity: 0.35; }

.auth-card {
  position: relative;
  width: 400px;
  padding: 30px 32px 22px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
}
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.auth-brand .logo {
  width: 48px; height: 48px; border-radius: 14px; flex: none;
  background: linear-gradient(135deg, #2fc9ff, #0a9ed8);
  color: #fff; font-size: 26px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(18, 183, 245, 0.35);
}
.auth-brand h1 { font-size: 21px; margin: 0; letter-spacing: 0.3px; }
.auth-brand p { margin: 3px 0 0; font-size: 12.5px; color: var(--text-3); }

.auth-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.auth-tabs .tab {
  padding: 0 0 10px; font-size: 15px; color: var(--text-2);
  position: relative; font-weight: 500;
}
.auth-tabs .tab.active { color: var(--text); font-weight: 700; }
.auth-tabs .tab.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.5px;
  background: var(--brand); border-radius: 2px;
}

.auth-form { display: flex; flex-direction: column; gap: 13px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.field input, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: #f8fafc; transition: all 0.16s;
}
.field input:focus, .field textarea:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(18, 183, 245, 0.12); }
.field textarea { resize: vertical; min-height: 68px; line-height: 1.6; }
.field .tag {
  font-style: normal; font-size: 11px; color: var(--text-3);
  background: #f1f4f8; border-radius: 6px; padding: 1px 6px;
}
.hint { color: var(--text-3); font-size: 11.5px; }

.captcha-row { display: flex; gap: 10px; }
.captcha-row input { flex: 1; }
.captcha-box {
  width: 132px; height: 46px; flex: none; border-radius: 10px;
  overflow: hidden; cursor: pointer; border: 1px solid var(--line); background: #f1f6ff;
}
.captcha-box svg { width: 100%; height: 100%; }

.btn-primary {
  padding: 11px 18px; border-radius: 10px; color: #fff; font-size: 14.5px; font-weight: 600;
  background: linear-gradient(135deg, #21c1ff, #0a9ed8);
  box-shadow: 0 8px 18px rgba(18, 183, 245, 0.3);
  transition: transform 0.12s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(18, 183, 245, 0.38); }
.btn-primary:active { transform: translateY(0); }
.btn-primary[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-ghost {
  padding: 9px 16px; border-radius: 10px; background: #f3f6fa; color: var(--text-2);
  font-size: 13.5px; border: 1px solid var(--line); transition: all 0.15s;
}
.btn-ghost:hover { background: #eaf1f8; color: var(--text); }

.auth-hint { text-align: center; font-size: 12.5px; color: var(--text-3); margin: 2px 0 0; }
.auth-hint a { color: var(--brand-deep); text-decoration: none; }
.auth-error { min-height: 16px; margin: 10px 0 0; color: var(--danger); font-size: 12.5px; text-align: center; }

/* ============================ 主框架 ============================ */
.app-screen {
  display: grid;
  grid-template-columns: 66px 288px 1fr;
  height: 100vh;
  background: var(--bg);
}

/* ---- 左侧导航 ---- */
.rail {
  background: var(--rail);
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 0 14px; gap: 8px;
}
.rail-avatar {
  width: 40px; height: 40px; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, #7dd3fc, #12b7f5);
  color: #fff; font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px; transition: transform 0.15s;
  box-shadow: 0 4px 10px rgba(18, 183, 245, 0.3);
  overflow: hidden;
}
.rail-avatar:hover { transform: scale(1.06); }
.rail-nav { display: flex; flex-direction: column; gap: 6px; }
.rail-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.rail-btn {
  width: 42px; height: 42px; border-radius: 12px; padding: 10px;
  color: #7d8798; transition: all 0.15s; position: relative;
}
.rail-btn:hover { background: rgba(255, 255, 255, 0.75); color: var(--brand-deep); }
.rail-btn.active { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }

/* ---- 列表区 ---- */
.list-panel {
  background: var(--panel);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  min-width: 0;
  position: relative;
}
.list-head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 8px; }
.search-box {
  flex: 1; display: flex; align-items: center; gap: 6px;
  background: #f2f5f9; border-radius: 9px; padding: 7px 10px;
  border: 1px solid transparent; transition: all 0.15s;
}
.search-box:focus-within { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(18, 183, 245, 0.1); }
.search-box svg { width: 15px; height: 15px; color: var(--text-3); flex: none; }
.search-box input { border: none; background: none; width: 100%; font-size: 13px; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 9px; padding: 8px; color: var(--text-2);
  transition: all 0.15s; flex: none;
}
.icon-btn:hover { background: #eef4fb; color: var(--brand-deep); }

.list-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 16px 8px; font-size: 12px; color: var(--text-3); letter-spacing: 0.5px;
}
.list-count { font-size: 11px; color: var(--text-3); }

.list-body { flex: 1; overflow-y: auto; padding: 0 8px 12px; }
.list-body::-webkit-scrollbar, .msg-scroll::-webkit-scrollbar, .pick-list::-webkit-scrollbar { width: 6px; }
.list-body::-webkit-scrollbar-thumb, .msg-scroll::-webkit-scrollbar-thumb, .pick-list::-webkit-scrollbar-thumb {
  background: #d6dde7; border-radius: 3px;
}

.conv-item {
  display: flex; gap: 10px; align-items: center;
  padding: 9px 8px; border-radius: 10px; cursor: pointer;
  transition: background 0.12s; position: relative;
}
.conv-item:hover { background: #f5f8fc; }
.conv-item.active { background: #e9f6ff; }
.conv-item.active::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px;
  background: var(--brand); border-radius: 0 3px 3px 0;
}
.avatar {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 16px; position: relative;
  background: linear-gradient(135deg, #8ecdf7, #4aa8e8);
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sq { border-radius: 12px; }
.avatar.group { background: linear-gradient(135deg, #9fd6ff, #5b9cf5); }
.avatar.official { background: linear-gradient(135deg, #ffd479, #f5a623); }
.avatar .dot {
  position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px;
  border-radius: 50%; background: #26d07c; border: 2px solid #fff;
}
.conv-main { flex: 1; min-width: 0; }
.conv-row1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.conv-name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-time { font-size: 11px; color: var(--text-3); flex: none; }
.conv-row2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 3px; }
.conv-preview {
  font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; flex: 1; min-width: 0;
}
.badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.badge.mute { background: #c6cfdb; }

.empty-list { text-align: center; color: var(--text-3); font-size: 12.5px; padding: 40px 16px; line-height: 1.9; }

/* ---- 搜索结果 ---- */
.search-results {
  position: absolute; left: 8px; right: 8px; top: 58px;
  background: #fff; border-radius: 12px; box-shadow: var(--shadow-md);
  border: 1px solid var(--line); z-index: 30; max-height: 62vh; overflow-y: auto;
  padding: 8px;
}
.sr-group { font-size: 11px; color: var(--text-3); padding: 6px 8px 4px; letter-spacing: 0.5px; }
.sr-item {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 9px; cursor: pointer;
}
.sr-item:hover { background: #f4f8fc; }
.sr-item .name { font-size: 13.5px; font-weight: 500; }
.sr-item .sub { font-size: 11.5px; color: var(--text-3); }
.sr-item .sr-action { margin-left: auto; font-size: 11.5px; color: var(--brand-deep); }

/* ---- 联系人 ---- */
.contact-section { font-size: 11.5px; color: var(--text-3); padding: 12px 10px 6px; letter-spacing: 0.5px; }
.contact-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; cursor: pointer; }
.contact-item:hover { background: #f5f8fc; }
.contact-item .name { font-size: 13.5px; }
.contact-item .sub { font-size: 11.5px; color: var(--text-3); }

/* ============================ 聊天区 ============================ */
.chat-panel { position: relative; display: flex; flex-direction: column; min-width: 0; background: #f6f8fb; }
.empty-state {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text-3); gap: 6px;
}
.empty-logo {
  width: 76px; height: 76px; border-radius: 22px; font-size: 40px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #2fc9ff, #0a9ed8); display: flex; align-items: center;
  justify-content: center; margin-bottom: 10px; box-shadow: 0 16px 34px rgba(18, 183, 245, 0.28);
}
.empty-state h2 { margin: 0; font-size: 18px; color: var(--text); letter-spacing: 0.5px; }
.empty-state p { margin: 2px 0 0; font-size: 13px; }

.chat { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.chat-head {
  height: 62px; flex: none; display: flex; align-items: center; gap: 12px;
  padding: 0 18px; background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.chat-head-main { min-width: 0; flex: 1; }
.chat-head h2 { margin: 0; font-size: 15.5px; font-weight: 600; }
.chat-head p { margin: 3px 0 0; font-size: 12px; color: var(--text-3); }
.chat-head-actions { display: flex; gap: 4px; }

.msg-scroll {
  flex: 1; overflow-y: auto; padding: 16px 20px 8px; scroll-behavior: smooth;
  display: flex; flex-direction: column;
}
#msg-list { margin-top: auto; }
.load-more {
  text-align: center; font-size: 12px; color: var(--brand-deep); cursor: pointer;
  padding: 6px 0 14px; opacity: 0.8;
}
.load-more:hover { opacity: 1; }

.msg-row { display: flex; gap: 10px; margin-bottom: 16px; align-items: flex-start; }
.msg-row.mine { flex-direction: row-reverse; }
.msg-col { max-width: min(62%, 560px); min-width: 0; }
.msg-meta { font-size: 11.5px; color: var(--text-3); margin-bottom: 4px; display: flex; gap: 8px; }
.msg-row.mine .msg-meta { justify-content: flex-end; }
.bubble {
  padding: 9px 13px; border-radius: 12px; background: #fff; font-size: 14px;
  line-height: 1.62; word-break: break-word; white-space: pre-wrap;
  box-shadow: var(--shadow-sm); border: 1px solid #eef1f6;
  border-top-left-radius: 4px;
}
.msg-row.mine .bubble {
  background: linear-gradient(135deg, #23c3ff, #0f9fe0); color: #fff; border: none;
  border-top-left-radius: 12px; border-top-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(18, 183, 245, 0.28);
}
.bubble img { max-width: 260px; max-height: 320px; border-radius: 8px; display: block; cursor: zoom-in; }
.bubble.image { padding: 4px; background: #fff; }
.msg-row.mine .bubble.image { background: #eaf7ff; }
.msg-time-sep {
  text-align: center; font-size: 11.5px; color: var(--text-3); margin: 14px 0 12px;
}
.msg-system {
  text-align: center; font-size: 12px; color: var(--text-3); margin: 12px auto;
  background: #eef2f8; border-radius: 10px; padding: 5px 12px; max-width: 78%; line-height: 1.6;
}
.pending { opacity: 0.55; }
.typing-hint { font-size: 12px; color: var(--text-3); padding: 0 0 8px 4px; min-height: 18px; }

/* ---- 输入区 ---- */
.composer { flex: none; background: #fff; border-top: 1px solid var(--line); padding: 6px 16px 10px; position: relative; }
.composer-tools { display: flex; align-items: center; gap: 4px; }
.tool-btn { width: 30px; height: 30px; padding: 6px; border-radius: 8px; color: var(--text-2); }
.tool-btn:hover { background: #eef4fb; color: var(--brand-deep); }
.composer-tip { margin-left: auto; font-size: 11px; color: var(--text-3); }
#msg-input {
  width: 100%; border: none; resize: none; max-height: 132px; min-height: 42px;
  padding: 6px 2px 2px; font-size: 14px; line-height: 1.6; background: transparent;
}
.composer-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 2px; }
.char-count { font-size: 11px; color: var(--text-3); }
.btn-send {
  padding: 7px 22px; border-radius: 9px; color: #fff; font-weight: 600; font-size: 13.5px;
  background: linear-gradient(135deg, #21c1ff, #0a9ed8); box-shadow: 0 6px 14px rgba(18, 183, 245, 0.28);
}
.btn-send[disabled] { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

.emoji-panel {
  position: absolute; bottom: 96px; left: 14px; width: 296px;
  background: #fff; border-radius: 12px; box-shadow: var(--shadow-md);
  border: 1px solid var(--line); padding: 8px; display: grid;
  grid-template-columns: repeat(10, 1fr); gap: 2px; z-index: 20;
}
.emoji-panel button { font-size: 18px; padding: 4px 0; border-radius: 6px; line-height: 1.2; }
.emoji-panel button:hover { background: #f1f6fb; }

/* ============================ 弹窗 ============================ */
.modal-mask {
  position: fixed; inset: 0; background: rgba(18, 28, 45, 0.42);
  display: flex; align-items: center; justify-content: center; z-index: 60;
  backdrop-filter: blur(2px); padding: 24px;
}
.modal {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  width: 460px; max-width: 100%; max-height: 88vh; overflow-y: auto;
  padding: 22px; position: relative; animation: pop 0.18s ease-out;
}
@keyframes pop { from { transform: translateY(10px) scale(0.98); opacity: 0; } }
.modal-title { margin: 0 0 16px; font-size: 16px; }
.modal-close {
  position: absolute; right: 14px; top: 12px; width: 28px; height: 28px;
  border-radius: 8px; color: var(--text-3); font-size: 14px; z-index: 3;
}
.modal-close:hover { background: #f1f5fa; color: var(--text); }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.modal .field { margin-bottom: 14px; }

.profile-modal { width: 520px; padding: 0; overflow: hidden; }
.cover-wrap { position: relative; height: 148px; background: #dfe8f3; }
.cover {
  height: 100%; background-size: cover; background-position: center;
  background-image: linear-gradient(120deg, #cbe9ff, #e8f7ff 45%, #d8f3ea);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.cover-empty { font-size: 12.5px; color: #5b7a94; background: rgba(255, 255, 255, 0.7); padding: 5px 12px; border-radius: 20px; }
.cover-edit {
  position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px;
  background: rgba(20, 30, 45, 0.55); color: #fff; font-size: 12px;
  padding: 6px 12px; border-radius: 20px; cursor: pointer; backdrop-filter: blur(4px);
}
.cover-edit svg { width: 13px; height: 13px; }
.profile-body { padding: 0 24px 20px; }
.profile-head { display: flex; gap: 14px; align-items: flex-end; margin-top: -30px; margin-bottom: 18px; }
.big-avatar {
  width: 76px; height: 76px; border-radius: 20px; border: 3px solid #fff; flex: none;
  background: linear-gradient(135deg, #7dd3fc, #12b7f5); color: #fff;
  font-size: 30px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.profile-id { padding-bottom: 4px; min-width: 0; }
.profile-id h3 { margin: 0; font-size: 17px; }
.profile-id p { margin: 4px 0 0; font-size: 12.5px; color: var(--text-2); }
.link-btn { color: var(--brand-deep); font-size: 12px; margin-left: 6px; }
.inline-row { display: flex; gap: 8px; }
.inline-row input { flex: 1; }

.pick-list { border: 1px solid var(--line); border-radius: 10px; max-height: 210px; overflow-y: auto; padding: 6px; }
.pick-item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.pick-item:hover { background: #f5f8fc; }
.pick-item input { width: 16px; height: 16px; accent-color: var(--brand); }
.pick-item .avatar { width: 30px; height: 30px; font-size: 13px; border-radius: 9px; }
.pick-empty { color: var(--text-3); font-size: 12.5px; text-align: center; padding: 18px; }

.info-modal { width: 420px; }
.info-cover { height: 96px; border-radius: 12px; background: linear-gradient(120deg, #d9f0ff, #e9fbf5); margin-bottom: 14px; display: flex; align-items: center; justify-content: center; }
.info-cover .avatar { width: 60px; height: 60px; font-size: 24px; border-radius: 16px; }
.info-name { font-size: 17px; font-weight: 600; text-align: center; }
.info-id { text-align: center; font-size: 12.5px; color: var(--text-3); margin: 5px 0 14px; }
.info-row { display: flex; justify-content: space-between; padding: 9px 2px; border-bottom: 1px dashed var(--line); font-size: 13px; }
.info-row span:first-child { color: var(--text-3); }
.info-notice { background: #f6f9fc; border-radius: 10px; padding: 10px 12px; font-size: 12.5px; color: var(--text-2); line-height: 1.7; margin: 12px 0; }
.info-members { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; max-height: 168px; overflow-y: auto; }
.member-chip {
  display: flex; align-items: center; gap: 6px; background: #f4f8fc; border-radius: 20px;
  padding: 4px 10px 4px 5px; font-size: 12px; color: var(--text-2);
}
.member-chip .avatar { width: 22px; height: 22px; font-size: 11px; border-radius: 7px; }

.lightbox {
  position: fixed; inset: 0; background: rgba(10, 16, 26, 0.86); z-index: 90;
  display: flex; align-items: center; justify-content: center; cursor: zoom-out;
}
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 8px; }

.toast-stack { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: rgba(28, 35, 51, 0.92); color: #fff; font-size: 13px; padding: 9px 16px;
  border-radius: 10px; box-shadow: var(--shadow-md); animation: toastIn 0.2s ease-out;
}
.toast.err { background: rgba(220, 55, 70, 0.95); }
@keyframes toastIn { from { transform: translateY(-8px); opacity: 0; } }

/* ============================ 窄屏 ============================ */
@media (max-width: 940px) {
  .app-screen { grid-template-columns: 58px 232px 1fr; }
  .msg-col { max-width: 74%; }
}
@media (max-width: 720px) {
  .app-screen { grid-template-columns: 54px 1fr; }
  .list-panel { border-right: none; }
  .chat-panel { position: fixed; inset: 0 0 0 54px; z-index: 40; }
  .app-screen:not(.chat-open) .chat-panel { display: none; }
}

/* ============================ 头像 / 头衔 / 后台入口 ============================ */
.auth-foot { text-align: center; margin: 12px 0 0; font-size: 12px; }
.auth-foot a { color: var(--text-3); text-decoration: none; border-bottom: 1px dashed #c9d3e0; padding-bottom: 1px; }
.auth-foot a:hover { color: var(--brand-deep); border-color: var(--brand); }

.title-chip {
  display: inline-block; margin-left: 5px; padding: 0 5px; border-radius: 4px;
  font-size: 10.5px; line-height: 15px; font-weight: 500; vertical-align: 1px;
  color: #b26a00; background: linear-gradient(135deg, #fff3d6, #ffe7bd);
  border: 1px solid #f6d99a; white-space: nowrap;
}
.msg-meta .title-chip { vertical-align: 0; }

.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.avatar-edit { position: relative; display: block; cursor: pointer; }
.avatar-edit-badge {
  position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--brand); color: #fff; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; box-shadow: var(--shadow-sm);
}
.big-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-title { margin: 3px 0 0; font-size: 12px; color: var(--text-2); }

.info-cover { position: relative; overflow: hidden; }
.info-cover .avatar { width: 64px; height: 64px; font-size: 26px; border-radius: 18px; }
.info-avatar-edit {
  position: absolute; right: 8px; bottom: 8px; padding: 4px 10px; border-radius: 14px;
  font-size: 11.5px; color: #fff; background: rgba(28, 35, 51, 0.55);
  backdrop-filter: blur(4px);
}
.info-avatar-edit:hover { background: rgba(18, 183, 245, 0.9); }
.member-chip em {
  font-style: normal; font-size: 10px; color: #b26a00; background: #fff3d6;
  border-radius: 4px; padding: 0 4px; margin-left: 2px;
}
