/* live.css — 接入后端后新增的少量样式：上传进度条、撤回占位 */
.up-bar { height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--accent) 20%, transparent); overflow: hidden; margin: 2px 0 6px; }
.up-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s ease; }
.bubble.media { position: relative; }
.bubble.media .up-bar { position: absolute; left: 8px; right: 8px; bottom: 8px; margin: 0; }
.sys-msg.recalled span { font-style: italic; }

/* 动图 / 贴纸气泡：发送方与接收方同尺寸（GIF 短边 160px，贴纸 128px），手机与列表布局一致 */
.msg .bubble.media.gif, :root[data-layout="list"] .msg .bubble.media.gif { width: auto; max-width: min(100%, 320px); }
.msg .bubble.media.gif .photo.gif-img { width: auto; height: 160px; min-width: 160px; max-width: 320px; object-fit: cover; }
.msg .bubble.media.gif .photo.gif-img.tall { width: 160px; height: auto; min-width: 0; min-height: 160px; max-height: 320px; }
.msg .sticker-msg .sticker-img { width: 128px; height: 128px; object-fit: contain; }

/* 图片 / GIF 气泡没有内边距：发送人、「转发自」、引用条单独留边 */
.bubble.media > .sender, .bubble.media > .fwd, .bubble.media > .reply { margin: 6px 10px 4px; }

/* 群信息「+ 添加成员」；手机上选人页要盖在全屏的群信息之上 */
.mem-add { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 16px; color: var(--accent); font-weight: 500; text-align: left; border-radius: var(--radius-sm); }
.mem-add .ti { font-size: 22px; width: 40px; text-align: center; }
.mem-add:hover { background: var(--hover, rgba(0,0,0,.04)); }
@media (width < 900px) { #newPanel[data-mode="add"] { z-index: 35; } }
#botCatalog .fw-item { width: 100%; text-align: left; }
#botCatalog .fw-item .m-body { flex: 1; min-width: 0; }

/* 功能开关（js/features.js）：关闭的功能入口隐藏 */
.no-feat-location [data-feature="location"], .no-feat-contact [data-feature="contact"], .no-feat-poll [data-feature="poll"],
.no-feat-schedule [data-feature="schedule"], .no-feat-videoMsg [data-feature="videoMsg"], .no-feat-calls [data-feature="calls"] { display: none !important; }

/* TG 影子用户：头像右下角小角标 */

.avatar .tg-badge { position: absolute; right: 0; bottom: 0; width: 40%; height: 40%; min-width: 12px; min-height: 12px; max-width: 20px; max-height: 20px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #229ed9; color: #fff; font-size: 70%; box-shadow: 0 0 0 2px var(--bg); }
.avatar .tg-badge::before { font-size: 0.8em; }
/* TG 桥接子页 */
.bridge-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bridge-status .st-dot { position: static; }
.bridge-err { color: var(--danger, #e5484d); font-size: 13px; margin: 6px 0 0; }
#bridgeForm .btn, #bridgeBound .btn { margin-top: 10px; }

/* 群成员：「来自 Telegram 的成员 N」分组（可展开） */
.mem-tg > summary { display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; }
.mem-tg > summary::-webkit-details-marker { display: none; }
.mem-tg > summary .ti-brand-telegram { color: #229ed9; }
.mem-tg-chev { margin-left: auto; transition: transform .15s; }
.mem-tg[open] .mem-tg-chev { transform: rotate(180deg); }

/* 许可证失效横幅：压在最上面，页面整体下移 */
.lic-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 200; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 36px; padding: 6px 16px; background: #b3261e; color: #fff; font-size: 14px; text-align: center; }
body.has-lic-banner { padding-top: 36px; }
body.has-lic-banner .app, body.has-lic-banner .login { height: calc(100dvh - 36px); }
