*{box-sizing:border-box}
:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#1f1f1f;background:#ededed;font-synthesis:none;--runtime-safe-top:0px;--app-safe-top:max(env(safe-area-inset-top,0px),var(--runtime-safe-top))}
html,body{margin:0;height:100%;height:100dvh;overflow:hidden}
body.booting #auth,body.booting #app{visibility:hidden}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
button:focus{outline:none}
button:focus-visible{outline:2px solid rgba(7,193,96,.38);outline-offset:-2px}
.header-icon:focus-visible,.choice-setting-row:focus-visible{outline:none}
.hidden{display:none!important}
.muted{color:#8c8c8c}
.secondary{color:#999;font-size:12px}
.error{min-height:18px;margin-top:8px;color:#d93025;font-size:13px}
.primary{border:0;background:#07c160;color:#fff;border-radius:8px;padding:10px 16px}
.ghost{border:1px solid #ddd;background:#fff;color:#333;border-radius:8px;padding:9px 14px}
.danger{border:0;background:#fff;color:#d33;border-radius:8px;padding:11px 14px}
.wide{width:100%;margin-top:10px}
.field{margin:14px 0}
.field label{display:block;margin:0 0 7px;color:#777;font-size:13px}
input,textarea,select{width:100%;border:1px solid #ddd;background:#fff;border-radius:8px;padding:10px 12px;outline:0}
input:focus,textarea:focus,select:focus{border-color:#a8a8a8}
textarea{resize:none}
.auth-shell{height:100%;display:grid;place-items:center;padding:22px;background:#f5f5f5}
.auth-card{width:min(410px,100%);padding:30px;background:#fff;border-radius:16px;box-shadow:0 10px 36px rgba(0,0,0,.08)}
.brand-mark{width:50px;height:50px;border-radius:14px;display:grid;place-items:center;background:#07c160;color:#fff;font-size:22px;font-weight:700}
.brand-mark img{display:block;width:100%;height:100%;border-radius:inherit;object-fit:cover}
.brand-mark.large{width:70px;height:70px;font-size:30px;margin:20px auto 12px}
.auth-card h1{margin:17px 0 4px;font-size:25px}
.seg{display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:3px;background:#f2f2f2;border-radius:9px;margin:20px 0}
.seg button{border:0;background:transparent;padding:9px;border-radius:7px;color:#777}
.seg button.active{background:#fff;color:#111;box-shadow:0 1px 4px rgba(0,0,0,.07)}
.code-line{display:flex;gap:8px}
.code-line input{flex:1}
.link-btn{display:block;margin:13px auto 0;border:0;background:transparent;color:#666}
.dev-code{margin-top:12px;padding:9px 10px;background:#f5f5f5;border-radius:8px;color:#666;font-size:13px}

.app{position:relative;width:min(520px,100%);height:100%;margin:auto;padding-top:var(--app-safe-top);background:#f5f5f5;box-shadow:0 0 30px rgba(0,0,0,.08);overflow:hidden}
.network-banner{position:absolute;z-index:30;left:0;right:0;top:var(--app-safe-top);padding:6px 10px;background:#fff3cd;color:#765b00;text-align:center;font-size:12px}
.page-stack{height:calc(100% - 64px)}
.main-page{display:none;height:100%;overflow:hidden}
.main-page.active{display:flex;flex-direction:column}
.page-header{height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:#f5f5f5;flex:0 0 auto}
.page-header h1{font-size:20px;margin:0;font-weight:650}
.header-actions{display:flex;gap:4px}
.header-icon{width:38px;height:38px;border:0;background:transparent;border-radius:8px;font-size:23px;display:grid;place-items:center}
.header-icon:hover{background:#e9e9e9}
.page-body{flex:1;min-height:0;overflow:auto;padding-bottom:16px}
.me-body{padding:10px 12px 24px}
.search-box{height:38px;margin:4px 12px 10px;padding:0 10px;display:flex;gap:7px;align-items:center;background:#fff;border-radius:8px;color:#999}
.search-box input{border:0;background:transparent;padding:0;height:100%;box-shadow:none}
.conversation-list,.contact-list{background:#fff}
.conversation-swipe{position:relative;overflow:hidden;background:#fa5151}
.conversation-row{position:relative;z-index:1;display:flex;gap:11px;align-items:center;padding:11px 13px;border-bottom:1px solid #f0f0f0;min-height:66px;cursor:pointer;background:#fff;transition:transform .18s ease;touch-action:pan-y}
.conversation-delete-trigger{position:absolute;z-index:0;inset:0 0 0 auto;width:72px;border:0;background:#fa5151;color:#fff;font-size:15px}
.conversation-swipe.revealed .conversation-row{transform:translateX(-72px)}
.conversation-swipe:last-child .conversation-row{border-bottom:0}
.conversation-row:hover{background:#fafafa}
.conversation-row.pinned{background:#f1f1f1}
.message-loading{padding:28px 16px;text-align:center;color:#999;font-size:13px}
.conv-main{min-width:0;flex:1}
.conv-top,.conv-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px}
.conv-name{min-width:0;font-size:16px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.conv-time{flex:0 0 auto;color:#aaa;font-size:11px}
.conv-preview{min-width:0;flex:1;color:#999;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:5px}
.draft-text{color:#e25c4b}
.muted-icon{font-size:12px;color:#aaa}
.avatar{width:44px;height:44px;flex:0 0 auto;border-radius:6px;background:#ddd;color:#fff;display:grid;place-items:center;overflow:hidden;font-weight:600}
.avatar img{width:100%;height:100%;object-fit:cover;display:block}
.avatar-large{width:62px;height:62px;border-radius:9px;font-size:20px}
.avatar-xlarge{width:72px;height:72px;border-radius:10px;font-size:23px}
.small-avatar{width:38px;height:38px}
.red-badge,.nav-badge{display:grid;place-items:center;background:#fa5151;color:#fff;border-radius:99px;font-style:normal;font-size:10px;line-height:1}
.red-badge{min-width:18px;height:18px;padding:0 5px}
.quick-list{background:#fff;margin-bottom:10px}
.quick-row{width:100%;height:56px;border:0;border-bottom:1px solid #f0f0f0;background:#fff;padding:0 14px;display:flex;align-items:center;gap:11px;text-align:left}
.quick-row:last-child{border-bottom:0}
.quick-icon{width:35px;height:35px;border-radius:7px;background:#f2f2f2;display:grid;place-items:center;font-size:18px}
.quick-row>span:nth-child(2){flex:1;font-size:15px}
.chevron{color:#bbb;font-size:22px;font-weight:300}
.section-title{padding:11px 14px 7px;color:#888;font-size:12px}
.contact-row{display:flex;align-items:center;gap:11px;padding:10px 14px;border-bottom:1px solid #f1f1f1;min-height:58px;background:#fff}
.contact-row:last-child{border-bottom:0}
.contact-row.clickable{cursor:pointer}
.contact-main{min-width:0;flex:1}
.contact-main b,.contact-main small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.contact-main b{font-size:15px;font-weight:500}
.contact-main small{margin-top:3px;color:#999;font-size:12px}
.online-dot{width:8px;height:8px;border-radius:50%;background:#07c160}
.group-tag{font-size:10px;color:#888;background:#f2f2f2;padding:2px 5px;border-radius:4px}
.profile-card{width:100%;border:0;background:#fff;padding:18px 16px;display:flex;align-items:center;gap:14px;border-radius:10px;text-align:left;margin-bottom:12px}
.profile-card-main{min-width:0;flex:1}
.profile-card-main b,.profile-card-main small,.profile-card-main em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-card-main b{font-size:19px}
.profile-card-main small{margin-top:4px;color:#777}
.profile-card-main em{margin-top:6px;color:#999;font-size:12px;font-style:normal}
.settings-card{background:#fff;border-radius:10px;overflow:hidden;margin-bottom:12px}
.setting-row{width:100%;min-height:54px;border:0;border-bottom:1px solid #f0f0f0;background:#fff;padding:9px 14px;display:grid;grid-template-columns:26px auto 1fr 18px;align-items:center;gap:8px;text-align:left}
.setting-row:last-child{border-bottom:0}
.setting-row b{font-weight:500}
.setting-row small{text-align:right;color:#999;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.logout-button{width:100%;border:0;background:#fff;color:#d33;border-radius:10px;padding:13px}
.bottom-nav{height:64px;position:absolute;z-index:20;left:0;right:0;bottom:0;background:rgba(250,250,250,.97);border-top:1px solid #ddd;display:grid;grid-template-columns:repeat(3,1fr);padding-bottom:env(safe-area-inset-bottom)}
.nav-item{position:relative;border:0;background:transparent;color:#777;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11px}
.nav-item:focus{outline:none}
.nav-item.active{color:#07c160}
.nav-icon{font-size:22px;line-height:24px;filter:grayscale(1)}
.nav-item.active .nav-icon{filter:none}
.nav-badge{position:absolute;top:5px;left:calc(50% + 9px);min-width:17px;height:17px;padding:0 4px;border:2px solid #fafafa}

.screen{position:fixed;z-index:50;inset:0;margin:auto;width:min(760px,100%);height:100%;padding-top:var(--app-safe-top);background:#ededed;display:flex;flex-direction:column;box-shadow:0 0 30px rgba(0,0,0,.12)}
.screen-header{height:58px;flex:0 0 auto;display:flex;align-items:center;gap:8px;padding:0 10px;background:#f5f5f5;border-bottom:1px solid #e6e6e6}
.back-button{width:36px;height:40px;border:0;background:transparent;font-size:34px;line-height:1;font-weight:300}
.screen-title{min-width:0;flex:1}
.screen-title b,.screen-title small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.screen-title b{font-size:17px}
.screen-title small{font-size:11px;color:#888;margin-top:2px}
.chat-header .avatar{width:36px;height:36px}
.info-banner{flex:0 0 auto;width:100%;border:0;background:#fff9e8;padding:8px 13px;display:flex;gap:8px;align-items:center;font-size:12px;color:#6a5817;text-align:left}
.info-banner span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.info-banner.pinned{background:#f8f8f8;color:#666}
.message-list{flex:1;min-height:0;overflow:auto;padding:15px 12px 20px;display:flex;flex-direction:column;gap:11px}
.scroll-to-latest{position:absolute;z-index:18;right:13px;bottom:var(--scroll-latest-bottom,70px);height:34px;padding:0 11px 0 8px;border:1px solid rgba(0,0,0,.08);border-radius:18px;display:flex;align-items:center;gap:4px;background:rgba(255,255,255,.96);color:#4e5451;font-size:12px;box-shadow:0 3px 12px rgba(0,0,0,.12);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.scroll-to-latest:active{background:#f3f4f3}.scroll-to-latest .ui-icon{width:18px;height:18px;color:#07c160;stroke-width:1.9}.scroll-to-latest i{position:absolute;right:-4px;top:-6px;min-width:18px;height:18px;padding:0 5px;border:2px solid #ededed;border-radius:10px;display:grid;place-items:center;background:#fa5151;color:#fff;font-size:9px;font-style:normal;line-height:1}
.message-row{display:flex;gap:8px;align-items:flex-start}
.message-row.mine{flex-direction:row-reverse}
.message-row.system{justify-content:center}
.message-avatar{width:38px;height:38px;border-radius:5px;touch-action:pan-y;-webkit-user-select:none;user-select:none}
.message-body{max-width:min(72%,520px)}
.message-sender{font-size:11px;color:#777;margin:0 0 4px 2px}
.mine .message-sender{text-align:right;margin-right:2px}
.message-sender{display:flex;align-items:center;gap:5px;min-height:16px;line-height:16px}
.mine .message-sender{justify-content:flex-end;margin-left:2px}
.message-role-badge{height:16px;padding:0 5px;border-radius:3px;display:inline-flex;align-items:center;font-size:9px;line-height:16px;font-weight:500;letter-spacing:.1px;white-space:nowrap}
.message-role-badge.owner{color:#8a5a17;background:#f4e9d5}
.message-role-badge.admin{color:#477260;background:#e2eee8}
.bubble{position:relative;padding:9px 11px;background:#fff;border-radius:5px;line-height:1.45;word-break:break-word;box-shadow:0 1px 1px rgba(0,0,0,.03)}
.mine .bubble{background:#95ec69}
.system-bubble{max-width:80%;padding:4px 8px;border-radius:4px;background:rgba(0,0,0,.08);color:#888;font-size:11px;text-align:center}
.message-meta{margin-top:3px;font-size:10px;color:#999}
.mine .message-meta{text-align:right}
.message-status.failed{color:#d33}
.message-image{display:block;max-width:min(330px,65vw);max-height:330px;border-radius:4px;object-fit:contain}
.message-video{display:block;max-width:min(360px,68vw);max-height:300px;border-radius:5px;background:#111}
.file-message{min-width:210px;display:flex;gap:10px;align-items:center;text-decoration:none;color:inherit}
.file-message .file-icon{font-size:28px}
.file-message span:last-child{min-width:0}
.file-message b,.file-message small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.file-message small{color:#888;font-size:11px;margin-top:3px}
.voice-message{display:flex;gap:8px;align-items:center;min-width:100px}
.voice-message audio{width:220px;max-width:55vw}
.reply-quote{margin-bottom:6px;padding:5px 7px;border-left:3px solid rgba(0,0,0,.2);background:rgba(0,0,0,.04);font-size:11px;color:#666;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.forward-tag{display:flex;align-items:center;gap:3px;margin:-1px 0 6px;padding-bottom:5px;border-bottom:1px solid rgba(0,0,0,.08);font-size:10px;line-height:14px;color:#8a8a8a}
.forward-tag .ui-icon{width:12px;height:12px;stroke-width:1.6}
.message-check{width:22px;height:22px;border:1px solid #bbb;border-radius:50%;display:grid;place-items:center;margin-top:9px;color:#07c160;background:#fff}
.message-check.selected{border-color:#07c160}
.typing-indicator{flex:0 0 auto;padding:5px 14px;color:#888;font-size:11px;background:#f5f5f5}
.reply-bar{flex:0 0 auto;display:flex;align-items:center;gap:10px;padding:7px 12px;background:#f8f8f8;border-top:1px solid #e5e5e5}
.reply-bar>div{min-width:0;flex:1}
.reply-bar small,.reply-bar b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.reply-bar small{font-size:10px;color:#888}
.reply-bar b{font-size:12px;font-weight:500}
.reply-bar button{border:0;background:transparent;font-size:20px;color:#888}
.multi-bar{flex:0 0 auto;display:flex;align-items:center;gap:8px;padding:8px 10px;background:#fff;border-top:1px solid #ddd}
.multi-bar span{flex:1;font-size:12px}
.multi-bar button{border:0;background:#f3f3f3;border-radius:6px;padding:7px 11px}
.emoji-panel{flex:0 0 auto;padding:9px;background:#fff;border-top:1px solid #ddd;display:grid;grid-template-columns:repeat(8,1fr);gap:4px;max-height:150px;overflow:auto}
.emoji-panel button{border:0;background:transparent;font-size:22px;padding:5px}
.attach-menu{flex:0 0 auto;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:12px;background:#f7f7f7;border-top:1px solid #ddd}
.attach-menu button{border:0;background:#fff;border-radius:8px;padding:12px 8px;display:flex;flex-direction:column;gap:5px;align-items:center}
.attach-menu button span{font-size:23px}
.composer{flex:0 0 auto;display:flex;gap:5px;align-items:flex-end;padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:#f7f7f7;border-top:1px solid #ddd}
.composer-icon{width:36px;height:38px;border:0;background:transparent;border-radius:6px;font-size:21px}
.composer textarea{flex:1;min-height:38px;max-height:104px;border:0;border-radius:6px;padding:9px 10px;background:#fff}
.send-button{height:38px;border:0;border-radius:6px;padding:0 13px;background:#07c160;color:#fff}

.modal{position:fixed;z-index:100;inset:0;background:rgba(0,0,0,.35);display:grid;place-items:center;padding:14px}
.modal-card{width:min(430px,100%);max-height:88vh;overflow:auto;background:#fff;border-radius:12px;padding:17px}
.modal-tall{width:min(520px,100%);max-height:92vh}
.modal-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.modal-title b{font-size:17px}
.modal-close{width:34px;height:34px;border:0;background:#f3f3f3;border-radius:50%;font-size:20px}
.sheet-backdrop{position:fixed;z-index:150;inset:0;background:rgba(0,0,0,.35);display:flex;align-items:flex-end;justify-content:center}
.action-sheet{width:min(520px,100%);padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:#f5f5f5;border-radius:14px 14px 0 0}
.action-sheet button{width:100%;border:0;background:#fff;padding:13px 14px;display:flex;align-items:center;gap:12px;text-align:left;border-bottom:1px solid #eee}
.action-sheet button:first-child{border-radius:10px 10px 0 0}
.action-sheet button:nth-last-child(2){border-radius:0 0 10px 10px;border-bottom:0}
.action-sheet button.sheet-cancel{margin-top:8px;justify-content:center;border-radius:10px;color:#555}
.action-sheet button>span:first-child{font-size:21px}
.action-sheet button span span,.action-sheet button span b,.action-sheet button span small{display:block}
.action-sheet button b{font-weight:500}
.action-sheet button small{color:#999;margin-top:2px}
.action-sheet.compact button{padding:12px 16px}
.picker-list{border:1px solid #eee;border-radius:8px;max-height:350px;overflow:auto}
.picker-row{width:100%;border:0;border-bottom:1px solid #eee;background:#fff;padding:10px 11px;display:flex;align-items:center;gap:10px;text-align:left}
.picker-row:last-child{border-bottom:0}
.picker-row.selected{background:#f0faf3}
.mention-all-row{margin-bottom:10px;border:1px solid #eee;border-radius:8px}
.mention-all-avatar{background:#07c160;font-size:20px}
.mention-modal .picker-main small{display:block;color:#999;font-size:11px;margin-top:2px}
@media(max-width:600px){
  .mention-modal{align-items:end;padding:0}
  .mention-picker-card{width:100%;max-height:82vh;border-radius:14px 14px 0 0;padding-bottom:calc(17px + env(safe-area-inset-bottom))}
}
.picker-main{min-width:0;flex:1}
.picker-main b,.picker-main small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.picker-main b{font-weight:500}
.picker-main small{margin-top:3px;color:#999}
.picker-check{width:24px;text-align:center;color:#07c160;font-weight:700}
.selection-footer{display:flex;align-items:center;justify-content:space-between;margin-top:12px}
.profile-preview{margin:12px 0;padding:12px;background:#f7f7f7;border-radius:9px}
.profile-preview .contact-row{padding:0;border:0;background:transparent}
.request-list{display:flex;flex-direction:column;gap:1px;background:#eee}
.request-row{padding:11px;background:#fff;display:flex;gap:10px;align-items:center}
.request-actions{display:flex;gap:5px}
.request-actions button{border:0;border-radius:6px;padding:6px 9px}
.accept-btn{background:#07c160;color:#fff}
.reject-btn{background:#eee;color:#666}
.detail-profile{text-align:center;padding:10px 0 15px}
.detail-profile .avatar{margin:auto}
.detail-profile h2{margin:10px 0 4px;font-size:19px}
.detail-profile p{margin:0;color:#888}
.online-state{margin-top:5px;font-size:12px;color:#07c160}
.detail-lines{margin:10px 0;background:#f7f7f7;border-radius:8px;overflow:hidden}
.detail-lines div{display:flex;justify-content:space-between;gap:10px;padding:10px 12px;border-bottom:1px solid #eee;font-size:13px}
.detail-lines div:last-child{border-bottom:0}
.detail-lines span{color:#888}
.detail-lines b{text-align:right;font-weight:400}
.settings-scroll{flex:1;overflow:auto;padding:12px}
.member-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px 7px;background:#fff;border-radius:10px;padding:14px;margin-bottom:12px}
.member-grid button{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}
.member-grid button small{width:100%;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.member-grid-avatar{position:relative;display:block}.member-grid-role{position:absolute;right:-7px;bottom:-3px;height:16px;padding:0 5px;border:2px solid #fff;border-radius:8px;display:flex;align-items:center;background:#e4f2ea;color:#39705a;font-size:8px;line-height:12px;font-style:normal;font-weight:600;white-space:nowrap}.member-grid-role.owner{background:#f3ead8;color:#8a5b19}.group-member-visibility-hint{min-height:52px;margin:-2px 0 10px;padding:9px 13px;display:flex;align-items:center;gap:10px;background:#fff;color:#6e7471}.group-member-visibility-hint .ui-icon{width:20px;height:20px;flex:0 0 auto;color:#5a8d72}.group-member-visibility-hint span{min-width:0}.group-member-visibility-hint b,.group-member-visibility-hint small{display:block}.group-member-visibility-hint b{font-size:12px;font-weight:500}.group-member-visibility-hint small{margin-top:3px;color:#999;font-size:10px;line-height:1.45}
.switch-row{min-height:54px;padding:10px 14px;display:flex;align-items:center;gap:10px;border-bottom:1px solid #eee;background:#fff}
.switch-row:last-child{border-bottom:0}
.switch-row>span{flex:1}
.switch-row b,.switch-row small{display:block}
.switch-row b{font-weight:500}
.switch-row small{margin-top:3px;color:#999;font-size:11px}
.switch-row input{display:none}
.switch-row i{width:44px;height:25px;border-radius:13px;background:#d9d9d9;padding:2px;transition:.18s}
.switch-row i:before{content:"";display:block;width:21px;height:21px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.18);transition:.18s}
.switch-row input:checked+i{background:#07c160}
.switch-row input:checked+i:before{transform:translateX(19px)}
.filter-tabs{display:flex;gap:5px;margin:8px 0 12px}
.filter-tabs button{border:0;background:#f1f1f1;border-radius:15px;padding:6px 11px;color:#666}
.filter-tabs button.active{background:#07c160;color:#fff}
.search-results{display:flex;flex-direction:column;gap:1px;background:#eee}
.search-result{padding:10px;background:#fff}
.search-result b,.search-result small,.search-result span{display:block}
.search-result small{color:#999;margin-top:3px}
.profile-avatar-button{display:flex;flex-direction:column;align-items:center;gap:6px;border:0;background:transparent;margin:4px auto 14px}
.profile-avatar-button small{color:#07c160}
.device-list{background:#f7f7f7;border-radius:8px;overflow:hidden}
.device-row{padding:10px 12px;background:#fff;border-bottom:1px solid #eee;display:flex;gap:8px;align-items:center}
.device-row:last-child{border-bottom:0}
.device-row-main{min-width:0;flex:1}
.device-row-main b,.device-row-main small{display:block}
.device-row-main small{margin-top:3px;color:#999;font-size:11px}
.storage-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.storage-stat{padding:14px;background:#f7f7f7;border-radius:8px}
.storage-stat b,.storage-stat small{display:block}
.storage-stat b{font-size:20px}
.storage-stat small{margin-top:4px;color:#888}
.member-list{display:flex;flex-direction:column;background:#fff}
.member-row{display:flex;align-items:center;gap:9px;padding:9px 3px;border-bottom:1px solid #eee}
.member-main{min-width:0;flex:1}
.member-main b,.member-main small{display:block}
.member-main small{font-size:11px;color:#999;margin-top:3px}
.member-actions{display:flex;gap:3px;flex-wrap:wrap;justify-content:flex-end}
.member-actions button{border:0;background:#f2f2f2;border-radius:5px;padding:5px 7px;font-size:11px}
.member-actions .red{color:#d33}
.announcement-list{display:flex;flex-direction:column;gap:8px}
.announcement-item{padding:11px;background:#f7f7f7;border-radius:8px}
.announcement-item p{margin:5px 0 0;white-space:pre-wrap}
.announcement-item small{color:#888}
.center-card{text-align:center}
.toast{position:fixed;z-index:200;left:50%;bottom:80px;transform:translateX(-50%);max-width:80%;padding:9px 14px;border-radius:7px;background:rgba(0,0,0,.78);color:#fff;font-size:13px;text-align:center}
.empty-state{padding:40px 20px;color:#aaa;text-align:center;font-size:13px}

@media(min-width:760px){
  body{background:#ddd}
  .app{height:calc(100vh - 32px);margin-top:16px;border-radius:14px}
  .screen{height:calc(100vh - 32px);top:16px;bottom:16px;border-radius:14px;overflow:hidden}
  .modal-card{box-shadow:0 15px 50px rgba(0,0,0,.18)}
}
@media(max-width:420px){
  .member-grid{grid-template-columns:repeat(5,1fr);gap:10px 4px;padding:12px 8px}
  .composer-icon{width:32px}
  .message-body{max-width:76%}
}

/* WeChat-style v12 visual system */
:root{
  --wx-green:#07c160;--wx-green-pressed:#06ad56;--wx-red:#fa5151;
  --wx-bg:#ededed;--wx-surface:#fff;--wx-header:#f5f5f5;
  --wx-text:#191919;--wx-secondary:#7f7f7f;--wx-tertiary:#b2b2b2;--wx-line:#e5e5e5;
  color:var(--wx-text);background:var(--wx-bg)
}
.svg-sprite{position:absolute!important;width:0!important;height:0!important;overflow:hidden!important}
.ui-icon,.nav-icon{width:22px;height:22px;display:block;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
button{-webkit-tap-highlight-color:transparent}
button:active{opacity:.72}
.app{width:min(460px,100%);background:var(--wx-bg)}
.page-stack{height:calc(100% - 58px)}
.page-header{height:52px;padding:0 15px;background:var(--wx-header)}
.page-header h1{font-size:21px;font-weight:650;letter-spacing:.01em}
.header-icon{width:36px;height:36px;color:#111}
.header-icon .ui-icon{width:22px;height:22px}
.page-body{background:var(--wx-bg);padding-bottom:12px}
.search-box{height:36px;margin:6px 10px 10px;padding:0 9px;gap:6px;border-radius:5px;background:#fff;color:#a0a0a0}
.search-box .ui-icon{width:17px;height:17px;stroke-width:1.8}
.search-box input{font-size:14px;color:var(--wx-text)}
.search-box input::placeholder{color:#a0a0a0}
.conversation-list,.contact-list{background:var(--wx-surface)}
.conversation-row{min-height:68px;padding:10px 12px;gap:11px;border-bottom-color:var(--wx-line)}
.conversation-row:hover{background:#f7f7f7}
.conversation-row.pinned{background:#f1f1f1}
.conv-name{font-size:16px;font-weight:500}
.conv-time{font-size:11px;color:#b0b0b0}
.conv-preview{font-size:13px;color:#999;margin-top:4px}
.avatar{border-radius:5px;background:#d6d6d6}
.red-badge,.nav-badge{background:var(--wx-red)}
.quick-list{margin:0 0 10px}
.quick-row{height:56px;padding:0 13px;border-bottom-color:var(--wx-line);font-size:16px}
.quick-icon{width:38px;height:38px;border-radius:5px;color:#fff}
.quick-icon .ui-icon{width:23px;height:23px;stroke-width:1.6}
.quick-icon.orange{background:#f3a13b}.quick-icon.green{background:#07c160}
.section-title{padding:11px 13px 6px;color:#888;font-size:12px}
.contact-title{padding-top:2px}
.indexed-contacts{position:relative;min-height:100px}
.contact-index-title{height:25px;padding:5px 13px 4px;background:var(--wx-bg);color:#777;font-size:12px;line-height:16px}
.contact-index-rail{position:fixed;z-index:8;right:max(3px,calc((100vw - 460px)/2 + 3px));top:142px;bottom:70px;width:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;pointer-events:none}
.contact-index-rail button{pointer-events:auto;border:0;background:transparent;color:#555;font-size:9px;line-height:12px;width:18px;height:12px;padding:0}
.contact-index-rail button.unavailable{color:#aaa}
.contact-index-rail button.active{color:var(--wx-green);font-weight:700;transform:scale(1.18)}
.contact-row{min-height:56px;padding:9px 28px 9px 13px;border-bottom-color:var(--wx-line)}
.contact-main b{font-size:16px;font-weight:400}
.contact-main small{font-size:11px}
.group-list-body{padding:6px 0 16px;overflow:auto;background:var(--wx-bg)}
.group-list-body .contact-list{margin-top:5px}
.chevron{position:relative;width:12px;height:20px;color:transparent;font-size:0}
.chevron:after{content:"";position:absolute;width:7px;height:7px;border-top:1.5px solid #b6b6b6;border-right:1.5px solid #b6b6b6;transform:rotate(45deg);top:6px;left:0}

.me-body{padding:0 0 24px;background:var(--wx-bg)}
#mePage .page-header{display:none}
.profile-card{border-radius:0;margin:0 0 10px;padding:26px 20px 24px;min-height:116px;gap:16px}
.profile-card-main b{font-size:21px;font-weight:600}
.profile-card-main small{font-size:14px;color:#777}
.profile-card-main em{font-size:13px;color:#999}
.settings-card{border-radius:0;margin:0 0 10px;background:#fff}
.setting-row{min-height:56px;padding:10px 15px;grid-template-columns:minmax(0,1fr) auto 18px;gap:8px;border-bottom-color:var(--wx-line)}
.setting-row b{font-size:16px;font-weight:400;min-width:0}
.setting-row small{max-width:210px;font-size:13px;color:#888}
.setting-row.text-only{grid-template-columns:minmax(0,1fr) auto 18px}
.setting-row.with-icon{grid-template-columns:34px minmax(0,1fr) auto 18px;gap:10px}
.setting-icon{width:30px;height:30px;border-radius:5px;display:grid;place-items:center;color:#fff}
.setting-icon .ui-icon{width:18px;height:18px;stroke-width:1.65}
.setting-icon.blue{background:#4f86d9}.setting-icon.orange{background:#e39a42}.setting-icon.green{background:#55a96b}.setting-icon.gray{background:#7c8795}.setting-icon.cyan{background:#3b9ea8}.setting-icon.slate{background:#74808e}
.setting-row.text-only.centered-row{display:flex;justify-content:center;color:#576b95}
.logout-button{border-radius:0;margin-top:0;height:56px;color:var(--wx-red);font-size:16px}
.bottom-nav{height:58px;background:rgba(247,247,247,.98);border-top-color:#d5d5d5}
.nav-item{font-size:10px;gap:1px;color:#777}
.nav-icon{width:25px;height:25px;stroke-width:1.55}
.nav-item.active{color:var(--wx-green)}
.nav-item.active .nav-icon{stroke-width:2}
.nav-badge{top:3px}

.screen{width:min(460px,100%);background:var(--wx-bg)}
.screen-header{height:52px;padding:0 8px;background:var(--wx-header);border-bottom:0}
.secondary-header{display:grid;grid-template-columns:42px 1fr 42px;align-items:center}
.secondary-header .screen-title{text-align:center}
.secondary-header .screen-title b{font-size:17px;font-weight:600}
.secondary-header .screen-title b span{font-weight:400}
.header-spacer{width:42px}
.back-button{width:38px;height:42px;display:grid;place-items:center;color:#111}
.back-button .ui-icon{width:27px;height:27px;stroke-width:1.55}
.chat-header{display:grid;grid-template-columns:38px minmax(0,1fr) 36px;gap:2px}
.chat-header #chatHeaderAvatar{display:none}
.chat-header .screen-title{text-align:center}
.chat-header .screen-title b{font-size:17px;font-weight:600}
.chat-header .screen-title small{font-size:10px;color:#888}
.chat-subtitle-line{min-height:16px;display:flex;align-items:center;justify-content:center;gap:4px}.official-verified-badge{width:14px;height:14px;border-radius:50%;display:inline-grid;place-items:center;background:#07c160;color:#fff;font-size:9px;line-height:1;font-style:normal;font-weight:700;box-shadow:0 0 0 1px rgba(7,193,96,.14)}
.info-banner{min-height:38px;padding:8px 12px;background:#fff;color:#765f20;border-bottom:1px solid #eee}
.info-banner .ui-icon{width:18px;height:18px;flex:0 0 auto}
.info-banner.pinned{background:#fff;color:#666}
.message-list{padding:13px 11px 20px;gap:13px}
.message-row{gap:8px}
.message-avatar{width:38px;height:38px;border-radius:4px}
.message-row.mine.own-no-avatar{padding-right:1px}
.message-row.mine.own-no-avatar .message-body{max-width:min(80%,360px)}
.message-body{max-width:min(72%,330px)}
.message-sender{font-size:11px;color:#777;margin-bottom:4px}
.bubble{padding:9px 11px;border-radius:5px;box-shadow:none;font-size:15px;line-height:1.42}
.message-row:not(.system) .bubble{width:fit-content;max-width:100%;overflow-wrap:anywhere}
.message-row.mine .bubble{margin-left:auto}
.message-row:not(.mine):not(.system) .bubble{margin-right:auto}
.message-row:not(.mine):not(.system) .bubble:before{content:"";position:absolute;left:-6px;top:11px;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:7px solid #fff}
.mine .bubble{background:#95ec69}
.mine .bubble:after{content:"";position:absolute;right:-6px;top:11px;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:7px solid #95ec69}
.system-bubble{background:rgba(0,0,0,.08);color:#999;border-radius:3px;font-size:11px;padding:3px 7px}
.revoked-notice .system-bubble{background:transparent;color:#999;padding:2px 4px}
.message-meta{font-size:9px;color:#aaa}
.composer{min-height:54px;gap:7px;align-items:center;padding:7px 8px calc(7px + env(safe-area-inset-bottom));background:#f7f7f7;border-top-color:#d7d7d7}
.composer-icon{width:34px;height:38px;display:grid;place-items:center;color:#111;padding:0}
.composer-icon .ui-icon{width:28px;height:28px;stroke-width:1.55}
.composer textarea{min-height:38px;border-radius:5px;padding:9px 10px;font-size:15px}
.send-button{height:34px;border-radius:4px;padding:0 12px;font-size:14px}
.attach-menu{grid-template-columns:repeat(3,56px);justify-content:space-around;gap:0;padding:14px 24px 16px;background:#f5f5f5;border-top-color:#ddd}
.attach-menu button{min-width:0;background:transparent;border-radius:0;padding:0;gap:6px;color:#555;font-size:13px;line-height:18px}
.attach-menu button>span:last-child{font-size:13px;line-height:18px;color:#555}
.attach-icon{width:52px;height:52px;border-radius:9px;background:#fff;display:grid;place-items:center;color:#111}
.attach-icon .ui-icon{width:24px;height:24px;stroke-width:1.5}
.emoji-panel{grid-template-columns:repeat(8,minmax(0,1fr));gap:2px;max-height:224px;background:#f5f5f5;border-top-color:#ddd;padding:10px 9px 12px;overscroll-behavior:contain}
.emoji-panel button{min-width:0;height:38px;padding:3px;border-radius:5px;font-size:23px;line-height:32px}
.emoji-panel button:active{background:#e7e7e7}
.emoji-panel .sticker-char img{display:block;margin:auto;border-radius:4px}
.multi-bar{min-height:54px;padding:7px 9px calc(7px + env(safe-area-inset-bottom));gap:5px;background:#f7f7f7;border-top-color:#d7d7d7;box-shadow:0 -1px 0 rgba(0,0,0,.02)}
.multi-bar span{padding-left:4px;color:#666;font-size:13px;white-space:nowrap}
.multi-bar button{height:36px;min-width:58px;padding:0 10px;border-radius:5px;background:#fff;color:#222;font-size:13px;line-height:36px}
.multi-bar #multiForward{background:#e8f7ee;color:#079b4e}
.multi-bar #multiDelete{color:#fa5151}
#chatScreen.multi-selecting .composer,#chatScreen.multi-selecting .emoji-panel,#chatScreen.multi-selecting .attach-menu,#chatScreen.multi-selecting .reply-bar{display:none!important}

.sheet-backdrop{background:rgba(0,0,0,.2)}
#newActionSheet{display:block;background:transparent}
#newActionSheet .action-sheet{position:absolute;top:50px;right:max(8px,calc((100vw - 460px)/2 + 8px));width:128px;padding:3px 0;background:#4b4b4b;border-radius:5px;color:#fff;box-shadow:0 5px 16px rgba(0,0,0,.2)}
#newActionSheet .action-sheet:before{content:"";position:absolute;right:15px;top:-7px;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:8px solid #4b4b4b}
#newActionSheet .action-sheet button{min-height:42px;padding:6px 8px;background:transparent;color:#fff;border-bottom:1px solid rgba(255,255,255,.13);border-radius:0;gap:7px;white-space:nowrap}
#newActionSheet .action-sheet button>.ui-icon{width:18px;height:18px;flex:0 0 auto}
#newActionSheet .action-sheet small{color:rgba(255,255,255,.58);font-size:11px}
#newActionSheet .sheet-cancel{display:none}
#newActionSheet .action-sheet b{font-size:14px;font-weight:400}
#messageActionSheet{display:block;background:transparent}
.message-action-menu{position:fixed;width:auto;max-width:min(390px,calc(100vw - 20px));display:grid;grid-template-columns:repeat(4,64px);padding:5px 6px;background:#4b4b4b;border-radius:6px;color:#fff;box-shadow:0 5px 18px rgba(0,0,0,.22)}
.message-action-menu:after{content:"";position:absolute;left:var(--arrow-left,30px);bottom:-7px;border-left:7px solid transparent;border-right:7px solid transparent;border-top:8px solid #4b4b4b}
.message-action-menu.below:after{top:-7px;bottom:auto;border-top:0;border-bottom:8px solid #4b4b4b}
.message-action-menu button,.message-action-menu button:first-child,.message-action-menu button:nth-last-child(2){width:64px;min-height:52px;border:0;border-radius:0;background:transparent;color:#fff;padding:6px 2px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;text-align:center}
.message-action-menu button>.ui-icon{width:21px;height:21px;stroke-width:1.55}
.message-action-menu button b{font-size:11px;font-weight:400}

.modal{padding:12px}
.modal-card{border-radius:10px;padding:16px}
.modal-title b{font-size:17px;font-weight:600}
.modal-close{background:transparent;color:#333}
.subpage-modal{padding:0;background:var(--wx-bg);place-items:center;z-index:125}
.settings-page-card{width:min(460px,100%);height:100%;padding-top:var(--app-safe-top);display:flex;flex-direction:column;background:var(--wx-bg);overflow:hidden}
.subpage-header{height:52px;flex:0 0 auto;display:grid;grid-template-columns:42px 1fr 42px;align-items:center;background:var(--wx-header)}
.subpage-header>b{text-align:center;font-size:17px;font-weight:600}
.subpage-back{width:40px;height:42px;border:0;background:transparent;display:grid;place-items:center;color:#111;padding:0}
.subpage-back .ui-icon{width:27px;height:27px;stroke-width:1.55}
.settings-page-body{flex:1;min-height:0;overflow:auto;padding:12px 0 28px;background:var(--wx-bg)}
.settings-page-body .settings-card{margin-bottom:10px}
.settings-footnote{margin:7px 16px 20px;color:#999;font-size:12px;line-height:1.55}
.profile-setting-row{width:100%;min-height:82px;border:0;border-bottom:1px solid var(--wx-line);background:#fff;padding:10px 15px;display:grid;grid-template-columns:1fr auto 18px;align-items:center;text-align:left}
.profile-setting-row b,.form-setting-row b{font-size:16px;font-weight:400}
.form-setting-row{min-height:56px;border-bottom:1px solid var(--wx-line);padding:8px 15px;background:#fff;display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center}
.form-setting-row:last-child{border-bottom:0}
.form-setting-row input{border:0;border-radius:0;padding:7px 0;text-align:right;background:transparent;font-size:15px}
.form-setting-row.readonly input{color:#999}
.wechat-primary{display:block;width:calc(100% - 32px);height:46px;margin:24px 16px 0;border:0;border-radius:5px;background:var(--wx-green);color:#fff;font-size:16px}
.wechat-primary:active{background:var(--wx-green-pressed)}
.form-card{background:#fff;margin-bottom:18px}
.wechat-field{min-height:56px;padding:7px 15px;display:grid;grid-template-columns:94px minmax(0,1fr);align-items:center;border-bottom:1px solid var(--wx-line)}
.wechat-field:last-child{border-bottom:0}
.wechat-field>span{font-size:15px}
.wechat-field input{border:0;border-radius:0;padding:8px 0;font-size:15px}
.code-field{grid-template-columns:94px minmax(0,1fr) auto}
.text-button{border:0;border-left:1px solid var(--wx-line);background:transparent;color:#576b95;padding:7px 0 7px 12px;font-size:13px}
.device-list{border-radius:0;background:#fff}
.device-row{min-height:66px;padding:10px 15px;border-bottom-color:var(--wx-line)}
.device-icon{width:34px;height:34px;border-radius:5px;background:#f2f2f2;display:grid;place-items:center;color:#333;flex:0 0 auto}
.device-icon .ui-icon{width:22px;height:22px}
.device-row .ghost{border:0;color:#576b95;background:transparent;padding:7px 0 7px 8px}
.switch-row{min-height:56px;padding:10px 15px;border-bottom-color:var(--wx-line)}
.switch-row b{font-size:16px;font-weight:400}
.switch-row small{font-size:12px}
.switch-row i{width:49px;height:29px;border-radius:15px;padding:2px}
.switch-row i:before{width:25px;height:25px}
.switch-row input:checked+i:before{transform:translateX(20px)}
.danger-card{margin-top:10px}
.danger-row{width:100%;height:56px;border:0;background:#fff;color:var(--wx-red);font-size:16px;text-align:center}
.storage-stats{display:block;background:#fff;margin-bottom:10px}
.storage-stat{min-height:64px;padding:11px 15px;border-radius:0;background:#fff;border-bottom:1px solid var(--wx-line)}
.storage-stat:last-child{border-bottom:0}
.storage-stat b{font-size:19px;font-weight:500}
.about-page{text-align:center;position:relative;padding-top:70px}
.about-page .brand-mark{margin:0 auto 14px}
.about-page h2{margin:0;font-size:20px}.about-page p{margin:6px 0}
.about-footer{position:absolute;left:0;right:0;bottom:28px;color:#aaa;font-size:12px}

.settings-scroll{padding:12px 0 24px;background:var(--wx-bg)}
.member-grid{grid-template-columns:repeat(5,1fr);gap:14px 5px;border-radius:0;margin:0 0 10px;padding:17px 12px 16px;background:#fff}
.member-grid .small-avatar{width:47px;height:47px;border-radius:5px}
.member-grid button small{font-size:11px;color:#555}
.member-grid-add .avatar{background:#fff;border:1px dashed #bbb;color:#999}
#groupIdRow{grid-template-columns:minmax(0,1fr) auto 34px}
#groupIdRow>span:last-child{white-space:nowrap;color:#576b95;text-align:right;font-size:13px}
.single-member-grid{grid-template-columns:repeat(5,1fr);min-height:104px;align-content:start}
.single-member-grid .small-avatar{width:52px;height:52px}
.friend-detail-page{padding-top:12px}
.friend-profile-card{min-height:126px;margin-bottom:10px;padding:21px 20px;display:flex;align-items:center;gap:17px;background:#fff}
.friend-profile-card .avatar-xlarge{width:76px;height:76px;border-radius:6px}
.friend-profile-main{min-width:0;flex:1}
.friend-profile-main h2{margin:0;font-size:21px;font-weight:600}
.friend-profile-main p{margin:7px 0 0;color:#777;font-size:14px}
.friend-profile-main .online-state{margin-top:7px;color:var(--wx-green);font-size:13px}
.settings-text-action{width:100%;height:50px;margin:-10px 0 10px;border:0;background:#fff;color:#576b95;font-size:15px}
.friend-detail-page>.wechat-primary{margin-top:16px;margin-bottom:16px}
.friend-danger-actions{margin-top:16px}
.friend-danger-actions .danger-row+ .danger-row{border-top:1px solid var(--wx-line)}

@media(min-width:760px){
  .app{height:calc(100vh - 32px);border-radius:12px}
  .screen,.settings-page-card{height:calc(100vh - 32px);border-radius:12px;overflow:hidden}
  .subpage-modal{background:rgba(0,0,0,.24)}
}
@media(max-width:480px){
  .contact-index-rail{right:1px}
  .attach-menu{grid-template-columns:repeat(3,52px);padding:12px 18px 14px}
  .attach-icon{width:48px;height:48px;border-radius:8px}
  .attach-icon .ui-icon{width:22px;height:22px}
  .message-action-menu{grid-template-columns:repeat(4,60px)}
  .message-action-menu button,.message-action-menu button:first-child,.message-action-menu button:nth-last-child(2){width:60px}
}

/* WeChat-style v13 authentication flow */
.auth-shell{height:100%;display:grid;place-items:center;padding:16px;background:#dcdcdc}
.auth-card{width:min(460px,100%);height:min(100%,844px);padding:0;border-radius:12px;background:#f5f5f5;box-shadow:0 0 30px rgba(0,0,0,.1);overflow:hidden}
.auth-view{height:100%;min-height:0;padding:0 16px;display:flex;flex-direction:column;background:#fff}
.auth-header{height:52px;flex:0 0 auto;margin:0 -16px;display:grid;grid-template-columns:48px 1fr 48px;align-items:center;background:#fff}
.auth-header>b{text-align:center;font-size:18px;font-weight:600}
.auth-back{width:44px;height:44px;border:0;background:transparent;display:grid;place-items:center;color:#111}
.auth-back .ui-icon{width:29px;height:29px;stroke-width:1.5}
.auth-brand{text-align:center;padding-top:82px}
.auth-brand .brand-mark{width:80px;height:80px;margin:0 auto;border-radius:19px;background:var(--wx-green);color:#fff}
.auth-brand .brand-mark .ui-icon{width:47px;height:47px;stroke-width:1.45}
.auth-brand h1{margin:18px 0 5px;font-size:28px;line-height:1.2;font-weight:650;letter-spacing:.04em}
.auth-brand p{margin:0;color:#999;font-size:15px}
.auth-form{margin-top:66px;background:#fff}
.auth-field{min-height:58px;margin:0;display:grid;grid-template-columns:84px minmax(0,1fr);align-items:center;border-bottom:1px solid var(--wx-line);color:var(--wx-text)}
.auth-field>span{font-size:16px}
.auth-field input{height:57px;border:0;border-radius:0;background:transparent;padding:0;font-size:16px;box-shadow:none}
.auth-field input::placeholder{color:#b2b2b2}
.auth-field input:focus{border:0}
.auth-code-field{grid-template-columns:84px minmax(0,1fr) auto}
.auth-code-field button{min-width:92px;height:36px;border:1px solid var(--wx-green);border-radius:5px;background:#fff;color:var(--wx-green);font-size:13px;padding:0 10px}
.auth-primary{width:100%;height:48px;margin-top:42px;border:0;border-radius:5px;background:var(--wx-green);color:#fff;font-size:17px}
.auth-primary:active{background:var(--wx-green-pressed)}
.auth-secondary-actions{margin-top:16px;display:flex;justify-content:space-between}
.auth-secondary-actions button,.register-entry{border:0;background:transparent;color:#576b95;font-size:14px;padding:6px 3px}
.register-entry{margin:auto auto 34px;font-size:15px}
.register-entry span{color:#999}
.register-consent{margin:22px 0 0;text-align:center;color:#999;font-size:12px}
.register-consent a{color:#576b95;text-decoration:none}
.auth-error{margin:8px 0 0;text-align:center;min-height:20px}
.auth-view>.dev-code{margin:8px 0 0;border-radius:4px;text-align:center}
.auth-shell.register-mode #authBrand,.auth-shell.register-mode #loginSecondaryActions,.auth-shell.register-mode #tabRegister{display:none!important}
.auth-shell.register-mode #authFormView>.auth-form{margin-top:76px}
.auth-shell.register-mode #authSubmit{margin-top:42px}

.reset-stepper{position:relative;margin:57px 16px 56px;display:grid;grid-template-columns:repeat(3,1fr)}
.reset-stepper:before{content:"";position:absolute;left:16.66%;right:16.66%;top:15px;height:1px;background:#d6d6d6}
.reset-step{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:9px;color:#999;font-size:13px}
.reset-step i{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#e6e6e6;color:#888;font-style:normal;font-size:14px;box-shadow:0 0 0 6px #fff}
.reset-step.active,.reset-step.completed{color:var(--wx-green)}
.reset-step.active i,.reset-step.completed i{background:var(--wx-green);color:#fff}
.reset-panel .auth-form{margin-top:0}
.reset-panel .auth-primary{margin-top:36px}
.reset-hint{text-align:center;color:#999;font-size:13px;margin:14px 0 0}
.reset-done{padding-top:76px;text-align:center}
.reset-success-icon{width:66px;height:66px;margin:0 auto 18px;border-radius:50%;display:grid;place-items:center;color:var(--wx-green)}
.reset-success-icon .ui-icon{width:66px;height:66px;stroke-width:1.5}
.reset-done h2{margin:0;font-size:21px}.reset-done p{margin:9px 0 0;color:#999;font-size:14px}
.reset-done .auth-primary{margin-top:48px}

@media(max-width:480px){
  .auth-shell{padding:0;background:#fff}
  .auth-card{width:100%;height:100%;max-height:none;border-radius:0;box-shadow:none}
  .auth-brand{padding-top:max(70px,10vh)}
}

/* v18 — unified native-style detail flows */
.subpage-more,.header-text-action{width:42px;height:42px;border:0;background:transparent;display:grid;place-items:center;padding:0;color:var(--wx-text)}
.subpage-more .ui-icon{width:24px;height:24px}
.header-text-action{color:var(--wx-green);font-size:15px;font-weight:500}
.static-row{cursor:default}

.mention-alert{flex:0 0 auto;min-height:54px;margin:8px 10px 0;background:#fff;border:1px solid #e2e2e2;border-radius:6px;display:flex;align-items:stretch;box-shadow:0 1px 2px rgba(0,0,0,.025)}
.mention-alert>button{border:0;background:transparent}
#mentionAlertView{min-width:0;flex:1;padding:8px 8px 8px 11px;display:flex;align-items:center;gap:9px;text-align:left}
.mention-alert-mark{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--wx-green);color:#fff;font-size:16px;font-weight:600}
#mentionAlertView>span:nth-child(2){min-width:0;flex:1}
#mentionAlertView b,#mentionAlertView small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#mentionAlertView b{font-size:14px;font-weight:500}#mentionAlertView small{margin-top:2px;color:#999;font-size:11px}
#mentionAlertView em{color:var(--wx-green);font-style:normal;font-size:13px}
#mentionAlertClose{width:36px;color:#999;font-size:20px}
.conversation-mention{color:var(--wx-red)}
.muted-composer{flex:0 0 auto;min-height:55px;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:#f7f7f7;border-top:1px solid #d7d7d7;display:flex;align-items:center;justify-content:center;gap:7px;color:#888;font-size:13px;text-align:center}
.muted-composer .ui-icon{width:18px;height:18px;flex:0 0 auto}

.friend-detail-page{padding-top:12px}
.friend-profile-card{min-height:136px;padding:22px 20px;align-items:flex-start}
.friend-profile-main h2{line-height:1.25;overflow-wrap:anywhere}
.friend-profile-main p{margin-top:5px}.friend-profile-main .friend-original-name{color:#8a8a8a;font-size:13px}
.friend-detail-page .settings-card{margin-bottom:10px}
.friend-detail-page>.wechat-primary{margin-top:22px}
.remark-page .section-title{padding:12px 16px 7px}
.remark-input-row{min-height:56px;padding:0 15px;display:flex;align-items:center;background:#fff}
.remark-input-row input{height:55px;border:0;border-radius:0;padding:0;background:transparent;font-size:16px}
.remark-input-row button{width:34px;height:34px;border:0;border-radius:50%;background:transparent;color:#aaa;font-size:20px}
.friend-settings-page{padding-top:12px}

.invite-page-card{padding-bottom:env(safe-area-inset-bottom)}
.invite-page-body{flex:1;min-height:0;overflow:auto;background:var(--wx-bg)}
.invite-page-body>.search-box{margin-top:8px}
.selected-contact-strip{min-height:76px;padding:9px 12px;display:flex;gap:10px;overflow-x:auto;background:#fff;border-bottom:1px solid var(--wx-line)}
.selected-contact-strip button{position:relative;width:48px;flex:0 0 48px;border:0;background:transparent;padding:0;display:flex;flex-direction:column;align-items:center;gap:4px}
.selected-contact-strip small{width:100%;font-size:10px;color:#666;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.selected-contact-strip i{position:absolute;right:-2px;top:-4px;width:17px;height:17px;border-radius:50%;display:grid;place-items:center;background:#777;color:#fff;border:2px solid #fff;font-size:10px;font-style:normal}
.contact-picker-list{max-height:none;border:0;border-radius:0;background:#fff;overflow:visible}
.picker-letter-section .contact-index-title{position:sticky;top:0;z-index:1}
.contact-picker-list .picker-row{min-height:58px;padding:9px 15px;gap:11px}
.contact-picker-list .picker-check{order:0;width:22px;height:22px;border:1px solid #c8c8c8;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:13px}
.contact-picker-list .picker-row.selected{background:#fff}.contact-picker-list .picker-row.selected .picker-check{border-color:var(--wx-green);background:var(--wx-green)}
.invite-fixed-footer{flex:0 0 auto;height:62px;margin:0;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:#f7f7f7;border-top:1px solid #d7d7d7}
.invite-fixed-footer span{font-size:14px}.invite-fixed-footer .primary{height:38px;min-width:82px;border-radius:4px;padding:0 14px}
.invite-fixed-footer .primary:disabled{background:#a8dfb9;color:rgba(255,255,255,.9);cursor:default}

.group-manage-page .settings-page-body{padding-top:12px}
.group-manage-settings .setting-row{grid-template-columns:minmax(0,1fr) minmax(120px,auto) 18px}
.select-setting-row select{height:38px;border:0;background:transparent;padding:0 2px;color:#888;text-align:right;direction:rtl;font-size:13px;appearance:none}
.admin-limit-row small{max-width:none}
.member-section-title{display:flex;align-items:center;justify-content:space-between;padding-top:5px}
.member-section-title small{font-size:11px;color:#999}
.group-manage-page .search-box{margin-top:0}
.group-manage-page .member-list{margin-bottom:10px}
.member-row{width:100%;min-height:68px;border:0;border-bottom:1px solid var(--wx-line);background:#fff;padding:10px 15px;display:flex;align-items:center;gap:11px;text-align:left}
.member-row:last-child{border-bottom:0}.member-row.no-action{cursor:default}
.member-row .small-avatar{width:44px;height:44px}
.member-main b{font-size:16px;font-weight:400}.member-main small{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.member-row-trailing{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.member-role{padding:2px 5px;border-radius:3px;background:#f0f0f0;color:#777;font-size:10px;font-style:normal}.member-role.admin{background:#e9f7ed;color:#3a8f53}.member-role.owner{background:#fff4df;color:#a56b12}
.member-action-sheet{padding:0 0 calc(8px + env(safe-area-inset-bottom));background:var(--wx-bg);border-radius:10px 10px 0 0;overflow:hidden}
.member-action-head{min-height:72px;padding:12px 16px;display:flex;align-items:center;gap:11px;background:#fff;border-bottom:1px solid var(--wx-line)}
.member-action-head>span:last-child{min-width:0}.member-action-head b,.member-action-head small{display:block}.member-action-head b{font-size:16px}.member-action-head small{margin-top:3px;color:#999;font-size:12px}
#memberActionButtons button{height:52px;padding:0 18px;justify-content:flex-start;border-radius:0;font-size:16px}
#memberActionButtons button.danger{color:var(--wx-red)}
.member-action-sheet .sheet-cancel{height:54px;margin:8px 8px 0;width:calc(100% - 16px);padding:0;justify-content:center;border-radius:5px;background:#fff;font-size:16px}
.mute-duration-sheet{padding:0 0 calc(8px + env(safe-area-inset-bottom));background:var(--wx-bg);border-radius:10px 10px 0 0;overflow:hidden}
.mute-duration-head{min-height:66px;padding:13px 16px;background:#fff;border-bottom:1px solid var(--wx-line);text-align:center}.mute-duration-head b,.mute-duration-head small{display:block}.mute-duration-head b{font-size:16px}.mute-duration-head small{margin-top:4px;color:#999;font-size:12px}
.mute-duration-sheet>button{height:51px;padding:0 18px;justify-content:center;border-radius:0;font-size:16px}.mute-duration-sheet>button.danger{color:var(--wx-red)}.mute-duration-sheet>.sheet-cancel{height:54px;margin:8px 8px 0;width:calc(100% - 16px);border-radius:5px;justify-content:center}

#groupInfoScreen .setting-row{grid-template-columns:minmax(0,1fr) minmax(0,auto) 18px}
#groupInfoScreen .setting-row>.chevron{grid-column:3;justify-self:end}

.announcement-page-body{padding:12px 12px 28px}
.announcement-editor{margin-bottom:12px;background:#fff;border-radius:6px;overflow:hidden}
.announcement-editor textarea{display:block;min-height:124px;border:0;border-radius:0;padding:14px;font-size:15px;line-height:1.55}
.announcement-editor-footer{height:50px;padding:7px 10px 7px 14px;border-top:1px solid var(--wx-line);display:flex;align-items:center;justify-content:space-between}
.announcement-editor-footer span{color:#aaa;font-size:11px}.announcement-editor-footer .primary{height:36px;border-radius:4px;padding:0 18px}
.announcement-list{gap:10px}.announcement-item{padding:0;background:#fff;border-radius:6px;overflow:hidden}
.announcement-meta{min-height:60px;padding:10px 12px;display:flex;align-items:center;gap:9px;border-bottom:1px solid var(--wx-line)}
.announcement-meta>span:nth-child(2){min-width:0;flex:1}.announcement-meta b,.announcement-meta small{display:block}.announcement-meta b{font-size:14px;font-weight:500}.announcement-meta small{margin-top:2px;font-size:11px;color:#999}
.announcement-meta button{border:0;background:transparent;color:var(--wx-red);padding:8px;font-size:13px}.announcement-item p{margin:0;padding:14px 13px 17px;line-height:1.6;font-size:15px}

.storage-stats{display:block;background:transparent;margin:0}
.storage-overview{margin-bottom:10px;padding:20px 16px 16px;background:#fff;display:block}
.storage-overview>small{display:block;color:#666;font-size:13px}.storage-overview>b{display:block;margin-top:2px;font-size:31px;font-weight:600;line-height:1.25}
.storage-bar{height:10px;margin:15px 0 13px;border-radius:2px;overflow:hidden;display:flex;background:#e5e5e5}.storage-bar i{display:block;min-width:0;height:100%}
.storage-bar .media,.storage-legend i.media{background:#3478f6}.storage-bar .text,.storage-legend i.text{background:#07c160}.storage-bar .system,.storage-legend i.system{background:#a8a8a8}.storage-bar .upload,.storage-legend i.upload{background:#f3b313}
.storage-legend{display:grid;grid-template-columns:1fr 1fr;gap:9px 12px}.storage-legend span{min-width:0;color:#555;font-size:12px;white-space:nowrap}.storage-legend span>i{display:inline-block;width:9px;height:9px;margin-right:6px;border-radius:50%}.storage-legend em{color:#999;font-style:normal}
.storage-category-list{margin-bottom:10px;background:#fff}.storage-category-row{min-height:64px;padding:10px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--wx-line)}.storage-category-row:last-child{border-bottom:0}
.storage-category-row span{min-width:0}.storage-category-row b,.storage-category-row small{display:block}.storage-category-row b{font-size:16px;font-weight:400}.storage-category-row small{margin-top:4px;color:#999;font-size:12px}.storage-category-row>em{color:#555;font-size:14px;font-style:normal}

.app-dialog-backdrop{position:fixed;z-index:300;inset:0;padding:20px;background:rgba(0,0,0,.38);display:grid;place-items:center}
.app-dialog-card{width:min(300px,calc(100vw - 48px));overflow:hidden;border-radius:8px;background:#fff;box-shadow:0 8px 26px rgba(0,0,0,.18)}
.app-dialog-content{padding:23px 20px 19px;text-align:center}.app-dialog-content>b{display:block;font-size:17px;font-weight:600}.app-dialog-content p{margin:9px 0 0;color:#777;font-size:13px;line-height:1.55;white-space:pre-wrap}
.app-dialog-input{display:block;margin-top:15px}.app-dialog-input input{height:40px;border:1px solid #d8d8d8;border-radius:4px;padding:0 10px;text-align:left;font-size:15px}
.app-dialog-actions{height:50px;display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--wx-line)}
.app-dialog-actions button{border:0;background:#fff;color:#333;font-size:16px}.app-dialog-actions button+button{border-left:1px solid var(--wx-line);color:var(--wx-green);font-weight:500}.app-dialog-actions button.danger{color:var(--wx-red)}
.reply-quote{display:block;width:100%;margin:0 0 6px;padding:5px 7px;border:0;border-left:3px solid rgba(0,0,0,.2);border-radius:0;background:rgba(0,0,0,.04);color:#666;font-size:11px;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mention-highlight .bubble,.mention-highlight .system-bubble{animation:message-locate 1.15s ease-out}
@keyframes message-locate{0%,35%{box-shadow:0 0 0 3px rgba(7,193,96,.24)}100%{box-shadow:0 0 0 0 rgba(7,193,96,0)}}
.message-status.failed{border:0;background:transparent;color:var(--wx-red);padding:2px 0;font-size:10px}
.simple-action-sheet{padding:8px 8px calc(8px + env(safe-area-inset-bottom))}.simple-action-sheet>button{height:52px;padding:0;justify-content:center;border-radius:0;font-size:16px}.simple-action-sheet>button:first-child{border-radius:5px 5px 0 0}.simple-action-sheet>button:nth-child(2){border-radius:0 0 5px 5px}.simple-action-sheet>button.danger{color:var(--wx-red)}
.conversation-action-sheet>button{gap:9px}.conversation-action-sheet>button .ui-icon{width:20px;height:20px}.conversation-action-sheet>.sheet-cancel{border-radius:5px;margin-top:8px}
.media-page-body{flex:1;min-height:0;overflow:auto;background:var(--wx-bg)}
.media-tabs{height:48px;display:grid;grid-template-columns:repeat(3,1fr);background:#fff;border-bottom:1px solid var(--wx-line)}
.media-tabs button{position:relative;border:0;background:#fff;color:#777;font-size:14px}.media-tabs button.active{color:var(--wx-text);font-weight:500}.media-tabs button.active:after{content:"";position:absolute;left:28%;right:28%;bottom:0;height:2px;background:var(--wx-green)}
.chat-media-list{padding:10px}.media-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:3px}.media-tile{position:relative;aspect-ratio:1;background:#ddd;overflow:hidden}.media-tile img,.media-tile video{width:100%;height:100%;display:block;object-fit:cover}.media-tile>span{position:absolute;right:6px;bottom:6px;color:#fff;filter:drop-shadow(0 1px 2px #000)}
.media-file-row,.media-link-row{min-height:66px;padding:10px 13px;display:flex;align-items:center;gap:11px;background:#fff;border-bottom:1px solid var(--wx-line);color:inherit;text-decoration:none}.media-file-icon{width:40px;height:40px;display:grid;place-items:center;background:#f3f3f3;color:#555}.media-file-row>span:nth-child(2){min-width:0;flex:1}.media-file-row b,.media-file-row small,.media-link-row b,.media-link-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.media-file-row b,.media-link-row b{font-size:14px;font-weight:500}.media-file-row small,.media-link-row small{margin-top:4px;color:#999;font-size:11px}.media-link-row{display:block}
.storage-conversation-title{padding-top:3px}.storage-conversation-list{margin-bottom:10px}.storage-conversation-list>button{width:100%;min-height:60px;padding:8px 15px;border:0;border-bottom:1px solid var(--wx-line);background:#fff;display:flex;align-items:center;gap:10px;text-align:left}.storage-conversation-list>button:last-child{border-bottom:0}.storage-conversation-list>button>span:nth-child(2){min-width:0;flex:1}.storage-conversation-list b,.storage-conversation-list small{display:block}.storage-conversation-list b{font-size:15px;font-weight:400}.storage-conversation-list small{margin-top:3px;color:#999;font-size:11px}.storage-conversation-list em{color:#777;font-size:13px;font-style:normal}
.storage-action-head{padding:16px;background:#fff;border-bottom:1px solid var(--wx-line);text-align:center}.storage-action-head b,.storage-action-head small{display:block}.storage-action-head b{font-size:16px}.storage-action-head small{margin-top:4px;color:#999;font-size:11px}.storage-action-sheet>button{height:52px;padding:0 16px;border-radius:0;font-size:15px}.storage-action-sheet>button.danger{color:var(--wx-red)}
.current-device-tag{margin-left:6px;padding:1px 4px;border-radius:3px;background:#e8f7ed;color:#3a8f53;font-size:10px;font-style:normal;font-weight:400}.security-event-list{background:#fff}.security-event-row{min-height:72px;padding:11px 15px;display:flex;align-items:flex-start;gap:10px;border-bottom:1px solid var(--wx-line)}.security-event-row:last-child{border-bottom:0}.security-event-row>span:last-child{min-width:0;flex:1}.security-event-row b,.security-event-row small{display:block}.security-event-row b{font-size:15px;font-weight:500}.security-event-row b em{margin-left:6px;color:var(--wx-red);font-size:10px;font-style:normal}.security-event-row small{margin-top:3px;color:#999;font-size:11px}

@media(max-width:480px){
  .subpage-modal{padding:0}.settings-page-card{width:100%;height:100%;border-radius:0}
  .announcement-page-body{padding-left:10px;padding-right:10px}
  .member-main small{max-width:190px}
}

/* v28 — refined group management, search and request flows */
#newActionSheet .action-sheet{width:100px}
#newActionSheet .action-sheet button{min-height:40px;padding:5px 7px;gap:6px}
#newActionSheet .action-sheet button>.ui-icon{width:17px;height:17px}
#newActionSheet .action-sheet b{font-size:13px}

.announcement-banner{cursor:pointer;overflow:hidden}
.announcement-marquee{min-width:0;flex:1;overflow:hidden;white-space:nowrap;mask-image:linear-gradient(90deg,transparent 0,#000 7px,#000 calc(100% - 7px),transparent 100%)}
#announcementTrack{display:inline-flex;align-items:center;gap:48px;min-width:max-content;white-space:nowrap;will-change:transform}
#announcementTrack.is-scrolling{animation:announcement-marquee var(--announcement-duration,12s) linear infinite}
#announcementText,#announcementRepeat{white-space:nowrap}
.banner-chevron{flex:0 0 auto;color:#a28d55;font-size:19px;line-height:1}
@keyframes announcement-marquee{to{transform:translateX(calc(-50% - 24px))}}
@media(prefers-reduced-motion:reduce){#announcementTrack.is-scrolling{animation:none}.announcement-marquee{mask-image:none;text-overflow:ellipsis}}

#groupIdRow{grid-template-columns:minmax(0,1fr) auto auto;gap:9px}
.group-id-copy{height:28px;padding:0 8px;display:inline-flex;align-items:center;justify-content:center;gap:4px;border-radius:4px;background:#f1f3f5;color:#576b95}
.group-id-copy .ui-icon{width:14px;height:14px;stroke-width:1.7}.group-id-copy em{font-size:12px;font-style:normal;white-space:nowrap}

.group-manage-header{grid-template-columns:48px 1fr 76px;padding-right:10px}
.group-manage-save{justify-self:end;min-width:58px;height:34px;border:0;border-radius:4px;padding:0 13px;background:var(--wx-green);color:#fff;font-size:14px;font-weight:500}
.group-manage-save:active{background:var(--wx-green-pressed)}
.group-manage-save:disabled{background:#a8dfb9}
.choice-setting-row{grid-template-columns:minmax(0,1fr) minmax(0,auto) 18px}
.choice-setting-row:disabled{color:#999}.choice-setting-row:disabled small{color:#bbb}
.choice-action-sheet{padding:0 0 calc(8px + env(safe-area-inset-bottom));overflow:hidden;background:var(--wx-bg);border-radius:10px 10px 0 0}
.choice-sheet-head{padding:17px 18px 14px;text-align:center;background:#fff;border-bottom:1px solid var(--wx-line)}
.choice-sheet-head b,.choice-sheet-head small{display:block}.choice-sheet-head b{font-size:17px;font-weight:600}.choice-sheet-head small{margin-top:5px;color:#999;font-size:12px}
.choice-action-sheet>button{min-height:58px;padding:9px 18px;border-radius:0;background:#fff}
.choice-action-sheet>button>span{min-width:0;flex:1}.choice-action-sheet>button b,.choice-action-sheet>button small{display:block}.choice-action-sheet>button b{font-size:16px;font-weight:400}.choice-action-sheet>button small{margin-top:3px;color:#999;font-size:12px}
.choice-action-sheet>button>i{display:none;color:var(--wx-green);font-size:18px;font-style:normal}.choice-action-sheet>button.selected>i{display:block}
.choice-action-sheet>.sheet-cancel{height:54px;min-height:54px;margin:8px 8px 0;width:calc(100% - 16px);padding:0;justify-content:center;border-radius:5px;background:#fff;font-size:16px}

.search-page-card,.request-page-card,.pins-page-card{background:var(--wx-bg)}
.search-page-body{flex:1;min-height:0;overflow:auto;padding:10px 0 28px;background:var(--wx-bg)}
.search-page-box{margin:0 10px 10px;height:38px;border-radius:5px}
.search-date-section{position:relative;margin-bottom:10px;background:#fff}
.search-date-heading{height:39px;padding:0 15px;display:flex;align-items:center;justify-content:space-between;background:var(--wx-bg);color:#888}
.search-date-heading b{font-size:12px;font-weight:400}.search-date-heading button{border:0;background:transparent;color:#576b95;font-size:12px;padding:6px 0}
.search-date-row{width:100%;height:52px;padding:0 15px;border:0;border-bottom:1px solid var(--wx-line);background:#fff;display:grid;grid-template-columns:1fr auto 18px;align-items:center;gap:8px;text-align:left}
.search-date-row:last-of-type{border-bottom:0}.search-date-row>span:first-child{font-size:15px}.search-date-row small{color:#888;font-size:14px}.search-date-row .chevron{justify-self:end}
.search-native-date{position:fixed;left:-10000px;top:0;width:1px;height:1px;opacity:0;pointer-events:none}
.chat-search-results{background:#fff}
.chat-search-empty{padding:82px 28px;text-align:center;color:#aaa}.chat-search-empty .ui-icon{width:38px;height:38px;margin-bottom:12px;color:#c8c8c8}.chat-search-empty b,.chat-search-empty small{display:block}.chat-search-empty b{color:#777;font-size:15px;font-weight:400}.chat-search-empty small{margin-top:6px;font-size:12px;line-height:1.55}
.chat-search-result{width:100%;min-height:76px;padding:11px 15px;border:0;border-bottom:1px solid var(--wx-line);background:#fff;display:flex;align-items:flex-start;gap:11px;text-align:left}
.chat-search-result .small-avatar{width:42px;height:42px;flex:0 0 auto}.chat-search-result-main{min-width:0;flex:1}.chat-search-result-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.chat-search-result-head b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:500}.chat-search-result-head time{flex:0 0 auto;color:#aaa;font-size:11px}.chat-search-result p{margin:5px 0 0;color:#555;font-size:14px;line-height:1.42;overflow-wrap:anywhere;word-break:break-word;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

.pins-list{flex:1;min-height:0;overflow:auto;padding:10px;background:var(--wx-bg)}
.pin-card{margin-bottom:10px;background:#fff;border-radius:6px;overflow:hidden}
.pin-card-head{min-height:58px;padding:9px 12px;display:flex;align-items:center;gap:9px;border-bottom:1px solid var(--wx-line)}
.pin-card-head .small-avatar{width:39px;height:39px}.pin-card-head>span:last-child{min-width:0;flex:1}.pin-card-head b,.pin-card-head small{display:block}.pin-card-head b{font-size:14px;font-weight:500}.pin-card-head small{margin-top:3px;color:#999;font-size:11px}
.pin-card-content{max-width:100%;margin:0;padding:14px 13px;color:#222;font-size:15px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}
.pin-card-foot{min-height:48px;padding:7px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--wx-line)}.pin-card-foot small{min-width:0;color:#999;font-size:11px}.pin-card-foot button{flex:0 0 auto;border:0;background:transparent;color:#576b95;padding:7px 0;font-size:13px}

.request-page-list{flex:1;min-height:0;overflow:auto;background:#fff;padding:0 0 28px}
.request-page-list .request-row{min-height:76px;padding:11px 15px;border-bottom:1px solid var(--wx-line);gap:11px;cursor:pointer;outline:0}
.request-page-list .request-row:active,.request-page-list .request-row:focus-visible{background:#f5f5f5}
.request-page-list .request-row>.avatar{width:46px;height:46px;flex:0 0 auto}.request-page-list .contact-main{min-width:0;flex:1}.request-page-list .contact-main b{font-size:15px;font-weight:500}.request-page-list .contact-main small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.45}.request-page-list .request-message{margin-top:4px;color:#777;font-size:12px}.request-page-list .request-source{margin-top:2px;color:#aaa;font-size:11px}
.request-page-list .accept-btn{width:54px;height:32px;flex:0 0 54px;border:0;border-radius:4px;background:var(--wx-green);color:#fff;padding:0;font-size:13px;font-weight:500}.request-page-list .accept-btn:active{background:var(--wx-green-pressed)}.request-page-list .accept-btn:disabled{background:#a7ddb7;color:rgba(255,255,255,.9)}
.request-empty{padding:110px 28px 40px;text-align:center;color:#aaa}.request-empty-icon{width:64px;height:64px;margin:0 auto 17px;border-radius:50%;display:grid;place-items:center;background:#e5e5e5;color:#aaa}.request-empty-icon .ui-icon{width:31px;height:31px}.request-empty b,.request-empty small{display:block}.request-empty b{color:#777;font-size:16px;font-weight:400}.request-empty small{margin-top:7px;font-size:12px}

.friend-request-detail-body{flex:1;min-height:0;overflow:auto;padding:12px 0 28px;background:var(--wx-bg)}
.friend-request-detail-profile{min-height:122px;padding:20px;display:flex;align-items:center;gap:16px;background:#fff}
.friend-request-detail-profile .avatar-xlarge{width:72px;height:72px;flex:0 0 72px;border-radius:6px}
.friend-request-detail-profile h2{min-width:0;margin:0;font-size:20px;font-weight:600;overflow-wrap:anywhere}
.friend-request-message-card{margin-top:10px;padding:16px;background:#fff}
.friend-request-message-card small{display:block;color:#999;font-size:12px}
.friend-request-message-card p{margin:9px 0 0;color:#222;font-size:16px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.friend-request-meta-card{margin-top:10px}
.friend-request-meta-card>div{min-height:55px;padding:9px 15px;display:grid;grid-template-columns:80px minmax(0,1fr);align-items:center;gap:10px;border-bottom:1px solid var(--wx-line)}
.friend-request-meta-card>div:last-child{border-bottom:0}.friend-request-meta-card span{font-size:15px}.friend-request-meta-card b{color:#888;font-size:13px;font-weight:400;text-align:right;overflow-wrap:anywhere}
.friend-request-detail-actions{padding-top:10px}.friend-request-detail-actions .wechat-primary{margin-top:12px}
.friend-request-reject{width:100%;height:54px;margin-top:12px;border:0;background:#fff;color:var(--wx-red);font-size:16px}
.friend-request-detail-actions button:disabled{opacity:.6}
.friend-request-detail-status{height:54px;margin-top:20px;display:grid;place-items:center;background:#fff;color:#999;font-size:15px}
.friend-request-detail-status.accepted{color:#6d927a}.friend-request-detail-status.rejected{color:#999}

.friend-settings-page .settings-footnote{margin-top:9px}
.blacklist-row{min-height:64px;padding:9px 14px;display:flex;align-items:center;gap:11px;background:#fff;border-bottom:1px solid var(--wx-line)}
.blacklist-row:last-child{border-bottom:0}.blacklist-main{min-width:0;flex:1}.blacklist-main b,.blacklist-main small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.blacklist-main b{font-size:15px;font-weight:500}.blacklist-main small{margin-top:3px;color:#999;font-size:11px}.blacklist-row>button{height:31px;padding:0 11px;border:1px solid #d6d6d6;border-radius:4px;background:#fff;color:#555;font-size:13px}.blacklist-empty{padding-top:56px;padding-bottom:56px}

/* v30 — production polish and complete account flows */
.auth-captcha-field{grid-template-columns:84px minmax(0,1fr) 104px}
.auth-captcha-field input{min-width:0}
.auth-captcha-field button{height:40px;border:0;border-radius:4px;background:#f2f2f2;padding:0;overflow:hidden}
.auth-captcha-field img{display:block;width:104px;height:40px;object-fit:cover}
.register-consent{display:flex;align-items:flex-start;justify-content:center;gap:7px;line-height:1.55;text-align:left}
.register-consent>input{width:17px;height:17px;margin:1px 0 0;accent-color:var(--wx-green);flex:0 0 auto}
.register-consent button{border:0;background:transparent;color:#576b95;padding:0;font-size:inherit}
.official-avatar{background:#07c160;color:#fff;box-shadow:inset 0 0 0 1px rgba(0,0,0,.04)}
.official-badge{display:inline-flex;align-items:center;height:17px;margin-left:6px;padding:0 5px;border-radius:3px;background:#e8f8ee;color:#2c9251;font-size:10px;font-style:normal;font-weight:500;vertical-align:2px}
.official-certificate{display:inline-flex;align-items:center;gap:6px;color:#777}.friend-profile-main .official-certificate .official-verified-badge{width:16px;height:16px;font-size:10px}
.group-id-value{min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:7px;color:#777}
#groupInfoId{font-size:14px;color:#777;font-variant-numeric:tabular-nums;letter-spacing:.03em}
.group-id-copy{width:28px;height:28px;padding:0;border:0;border-radius:50%;background:transparent;color:#576b95}
.group-id-copy:active{background:#ededed}.group-id-copy .ui-icon{width:17px;height:17px}
.create-group-page{padding-bottom:env(safe-area-inset-bottom)}
.create-group-body{flex:1;min-height:0;overflow:auto;background:var(--wx-bg)}
.create-group-search{margin-top:8px}.create-group-summary{height:36px;padding:0 15px;display:flex;align-items:center;justify-content:space-between;color:#777;font-size:12px}
.create-group-next{justify-self:end;min-width:58px;height:34px;border:0;border-radius:4px;padding:0 10px;background:var(--wx-green);color:#fff;font-size:13px}
.create-group-next:disabled{background:#a8dfb9}
.group-invite-selected{min-height:80px;padding:9px 12px;display:flex;gap:10px;overflow-x:auto;background:#fff;border-bottom:1px solid var(--wx-line)}
.group-invite-selected button{position:relative;width:48px;flex:0 0 48px;border:0;background:transparent;padding:0;display:flex;flex-direction:column;align-items:center;gap:4px}
.group-invite-selected small{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#666;font-size:10px}
.group-invite-selected i{position:absolute;right:-3px;top:-4px;width:17px;height:17px;border-radius:50%;display:grid;place-items:center;background:#777;color:#fff;border:2px solid #fff;font-size:10px;font-style:normal}
.app-dialog-backdrop.alert-only .app-dialog-actions{grid-template-columns:1fr}.app-dialog-backdrop.alert-only .app-dialog-confirm{border-left:0}
.app-dialog-backdrop.alert-only #appDialogConfirm{border-left:0}

.version-update-backdrop,.home-popup-backdrop{position:fixed;z-index:340;inset:0;padding:24px;background:rgba(0,0,0,.42);display:grid;place-items:center}
.version-update-card{width:min(320px,100%);overflow:hidden;border-radius:12px;background:#fff;box-shadow:0 12px 38px rgba(0,0,0,.18)}
.version-update-head{padding:28px 24px 16px;text-align:center}.version-update-logo{width:54px;height:54px;margin:0 auto 16px;border-radius:15px;background:var(--wx-green);color:#fff;display:grid;place-items:center;overflow:hidden;font-size:25px;font-weight:700;letter-spacing:-1px}.version-update-logo img{display:block;width:100%;height:100%;object-fit:cover}
.version-update-head h2{margin:0;font-size:19px;font-weight:650}.version-update-head small{display:block;margin-top:5px;color:#999;font-size:12px}
.version-update-notes{margin:0 24px 24px;padding:13px 15px;border-radius:8px;background:#f7f7f7;color:#666;font-size:14px;line-height:1.7;white-space:pre-line;overflow-wrap:anywhere}
.version-update-safety{margin:-11px 24px 22px;color:#999;text-align:center;font-size:12px}
.version-update-actions{height:52px;border-top:1px solid #e8e8e8;display:grid;grid-template-columns:1fr 1fr}.version-update-actions button{border:0;background:#fff;color:#555;font-size:16px}.version-update-actions button+button{border-left:1px solid #e8e8e8;color:var(--wx-green);font-weight:600}.version-update-actions.forced{grid-template-columns:1fr}.version-update-actions.forced #versionUpdateNow{border-left:0}
.home-popup-backdrop{z-index:330}.home-popup-card{position:relative;width:min(330px,100%);overflow:hidden;border-radius:14px;background:#fff;box-shadow:0 12px 38px rgba(0,0,0,.2)}
.home-popup-close{position:absolute;z-index:2;right:4px;top:4px;width:40px;height:40px;border:0;background:transparent;color:#888;font-size:25px}.home-popup-body{padding:27px 24px 21px;text-align:center}.home-popup-mark{width:42px;height:42px;margin:0 auto 14px;border-radius:13px;background:#e9f8ef;color:var(--wx-green);display:grid;place-items:center;font-size:21px}
.home-popup-body h2{margin:0;font-size:19px;font-weight:650}.home-popup-body p{margin:13px 0 2px;text-align:left;color:#666;font-size:14px;line-height:1.75;white-space:pre-line;overflow-wrap:anywhere}.home-popup-body p:empty{display:none}
.home-popup-image{display:block;width:100%;max-height:260px;object-fit:cover;background:#e9f8ef}.home-popup-card.image-mode .home-popup-close{border-radius:50%;background:rgba(0,0,0,.34);color:#fff}.home-popup-card.image-mode .home-popup-body{padding:20px 22px 12px}.home-popup-card.image-mode .home-popup-mark{display:none}.home-popup-card.image-mode .home-popup-body h2{font-size:18px}.home-popup-card.image-mode .home-popup-body p{margin-top:9px;text-align:center;color:#777;font-size:13px;line-height:1.6}.home-popup-card.image-only .home-popup-body{display:none}
.home-popup-confirm{width:calc(100% - 40px);height:45px;margin:0 20px 20px;border:0;border-radius:7px;background:var(--wx-green);color:#fff;font-size:16px;font-weight:550}.home-popup-confirm:active{background:var(--wx-green-pressed)}
#reportModal{z-index:180}.report-card{width:min(360px,100%)}.report-hint{margin:0 0 13px;color:#888;font-size:13px;line-height:1.55}
.report-reasons{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:13px}.report-reasons button{min-height:40px;border:1px solid #e4e4e4;border-radius:5px;background:#fff;color:#444}.report-reasons button.selected{border-color:var(--wx-green);background:#effaf3;color:#15914f}
.report-card textarea{border-radius:5px;line-height:1.5}.report-card .primary:disabled{background:#a8dfb9}
.backup-page{padding-top:0}
.backup-intro{padding:26px 24px 22px;text-align:center;background:#fff;margin-bottom:10px}.backup-icon{width:54px;height:54px;margin:0 auto 12px;border-radius:50%;display:grid;place-items:center;background:#e9f8ef;color:var(--wx-green)}.backup-icon .ui-icon{width:29px;height:29px}.backup-intro h2{margin:0;font-size:18px}.backup-intro p{margin:8px auto 0;max-width:320px;color:#888;font-size:12px;line-height:1.6}
.backup-page>.form-card,.backup-page>.wechat-primary{margin-left:12px;margin-right:12px;width:calc(100% - 24px)}
.about-page{padding:0 0 30px;text-align:initial}.about-hero{padding:42px 20px 24px;text-align:center;background:#fff}.about-hero .brand-mark{margin:0 auto 13px}.about-hero h2{margin:0;font-size:22px}.about-hero p{margin:7px 0 8px;color:#777}.about-hero small{color:#aaa}.about-values{height:48px;display:flex;align-items:center;justify-content:center;gap:13px;background:#fff;border-top:1px solid var(--wx-line);color:#777;font-size:12px;margin-bottom:10px}.about-values i{width:1px;height:12px;background:#ddd}.about-links{border-radius:0}.about-links a{text-decoration:none;color:inherit}.about-footer{position:static;margin:28px 0 0!important;text-align:center;color:#aaa;font-size:11px}
.policy-page-card{background:#fff}.policy-content{flex:1;min-height:0;overflow:auto;padding:25px 22px 45px;background:#fff;color:#333}.policy-content h1{margin:0;font-size:24px}.policy-date{margin:8px 0 28px;color:#999;font-size:12px}.policy-content h2{margin:25px 0 8px;font-size:16px}.policy-content p{font-size:14px;line-height:1.78}.policy-sources{margin-top:28px;padding:14px;background:#f7f7f7}.policy-sources b,.policy-sources a{display:block}.policy-sources b{margin-bottom:8px}.policy-sources a{padding:5px 0;color:#576b95;text-decoration:none;font-size:13px}.policy-note{margin-top:24px;padding-top:15px;border-top:1px solid #eee;color:#999;font-size:12px!important}
.page-load-hint{min-height:42px;padding:12px 16px 18px;text-align:center;color:#aaa;font-size:12px}
.moderation-page-card{background:var(--wx-bg)}.moderation-page-body{padding:10px 0 30px;overflow:auto}.moderation-page-note{margin:0;padding:2px 16px 12px;color:#8a8a8a;font-size:12px;line-height:1.55}
.moderation-list{margin:0;background:#fff}.moderation-row{min-height:70px;padding:10px 15px;display:flex;align-items:center;gap:11px;border-bottom:1px solid var(--wx-line);background:#fff}.moderation-row:last-child{border-bottom:0}
.moderation-row .small-avatar{width:43px;height:43px;flex:0 0 auto}.moderation-row-main{min-width:0;flex:1}.moderation-row-main b,.moderation-row-main small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.moderation-row-main b{font-size:15px;font-weight:500}.moderation-row-main small{margin-top:4px;color:#999;font-size:11px}.moderation-row-action{height:31px;min-width:54px;padding:0 10px;border:1px solid #d8d8d8;border-radius:4px;background:#fff;color:#576b95;font-size:12px}.moderation-empty{padding:105px 24px;text-align:center;color:#aaa;font-size:14px}
@media(max-width:360px){.auth-field{grid-template-columns:74px minmax(0,1fr)}.auth-code-field{grid-template-columns:74px minmax(0,1fr) auto}.auth-captcha-field{grid-template-columns:74px minmax(0,1fr) 94px}.auth-captcha-field img{width:94px}.report-reasons{grid-template-columns:1fr}}

/* v30.10 — receipts, stable subpages and final UI consistency */
.conv-trailing{flex:0 0 auto;display:inline-flex;align-items:center;gap:5px}
.conversation-pin-mark{width:15px;height:15px;display:inline-grid;place-items:center;color:#9a9a9a}
.conversation-pin-mark .ui-icon{width:13px;height:13px;stroke-width:1.8}

.message-meta{min-height:14px;margin-top:4px;display:flex;align-items:center;gap:7px;color:#999;font-size:9px;line-height:14px;white-space:nowrap;font-variant-numeric:tabular-nums}
.mine .message-meta{justify-content:flex-end;text-align:right}
.message-read-state{display:inline-flex;align-items:center;gap:2px;color:#999;font-size:9px;line-height:14px}
.message-read-state i{font-style:normal;font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;font-size:10px;letter-spacing:-3px;padding-right:3px}
.message-read-state.compact i{padding-right:0}
.message-read-state.read{color:#179e55}.message-read-state.pending{color:#aaa}

.reply-quote{max-width:100%;display:flex;align-items:center;gap:8px;padding:6px 7px;white-space:normal;overflow:hidden}
.reply-quote-copy{min-width:0;flex:1;display:block;text-align:left}
.reply-quote-copy b,.reply-quote-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.reply-quote-copy b{color:#4e7e66;font-size:10px;font-weight:600;line-height:14px}
.reply-quote-copy small{margin-top:1px;color:#777;font-size:11px;line-height:15px}
.reply-quote>img{width:34px;height:34px;flex:0 0 34px;border-radius:3px;object-fit:cover;background:#ddd}
.reply-quote.reply-unavailable span{min-width:0}.reply-quote.reply-unavailable b,.reply-quote.reply-unavailable small{display:block}

#groupInfoScreen #groupIdRow{grid-template-columns:minmax(0,1fr) auto;gap:8px}
#groupInfoScreen #groupIdRow .group-id-value{grid-column:2;justify-self:end;gap:8px}
.group-id-copy{width:auto;height:25px;padding:0 8px;border:1px solid #e1e3e5;border-radius:4px;background:#f7f7f7;color:#576b95;box-shadow:none}
.group-id-copy:active{background:#eceeef}.group-id-copy em{display:block;font-size:11px;font-style:normal;line-height:23px;white-space:nowrap}

.request-page-list .request-resolved{opacity:1}
.request-page-list .request-status{flex:0 0 auto;min-width:48px;color:#999;font-size:13px;text-align:right}
.request-page-list .request-status.accepted{color:#888}
.request-page-list .request-status.pending{color:#aaa}
.request-page-list .request-source{color:#aaa!important}

.message-time-divider{width:100%;min-height:18px;margin:2px 0 0;display:flex;align-items:center;justify-content:center;color:#aaa;font-size:10px;line-height:18px;text-align:center;font-variant-numeric:tabular-nums;pointer-events:none;user-select:none}
.message-time-divider time{padding:0 5px}

.subpage-modal.data-loading .settings-page-card{position:relative}
.subpage-modal.data-loading .settings-page-card>:not(.subpage-header){visibility:hidden}
.subpage-modal.data-loading .settings-page-card:after{content:"正在加载…";position:absolute;left:50%;top:calc(var(--app-safe-top) + 112px);transform:translateX(-50%);color:#aaa;font-size:12px;letter-spacing:.02em}
.subpage-modal.data-loading .settings-page-card:before{content:"";position:absolute;z-index:1;left:calc(50% - 9px);top:calc(var(--app-safe-top) + 78px);width:18px;height:18px;border:2px solid #ddd;border-top-color:#8d8d8d;border-radius:50%;animation:subpage-loading .72s linear infinite}
@keyframes subpage-loading{to{transform:rotate(360deg)}}

.member-grid-loading{grid-column:1/-1;min-height:70px;display:grid;grid-template-columns:repeat(3,42px);justify-content:center;align-content:center;gap:10px}
.member-grid-loading i{width:42px;height:42px;border-radius:5px;background:linear-gradient(100deg,#eee 20%,#f7f7f7 45%,#eee 70%);background-size:220% 100%;animation:member-skeleton 1.15s linear infinite}
.member-grid-loading small{grid-column:1/-1;text-align:center;color:#aaa;font-size:10px}
@keyframes member-skeleton{to{background-position:-220% 0}}

.storage-overview>p{margin:9px 0 0;color:#999;font-size:12px;line-height:1.55}

@media(max-width:360px){
  .message-body{max-width:78%}.message-row.mine.own-no-avatar .message-body{max-width:86%}
  .message-meta{font-size:8px;gap:5px}.message-read-state{font-size:8px}
}
