html,body { margin:0; height:100%; background:#e5e7eb; }
button,input,textarea,select { font:inherit; }
button { cursor:pointer; }
button:disabled { cursor:default; opacity:.45; }
[hidden] { display:none!important; }
#wechat-8079-reference-preview { width:100%; height:100%; }
#wechat-8079-reference-preview .wxi-device { width:min(100%,590px); height:100dvh; height:var(--app-height,100dvh); aspect-ratio:auto; }
.wxi-conversation-list,.wxi-contacts-body,.wxi-me-body { overflow-y:auto; }
.wxi-topbar h1 { max-width:65%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.wxi-profile { width:100%; text-align:left; border:0; }
.wxi-profile-copy span { white-space:normal; overflow-wrap:anywhere; font-size:14px; }
.wxi-page { width:100%; }
.wxi-chat-flow { padding-bottom:10px; overscroll-behavior:contain; }
.message-body { max-width:calc(100% - 84px); min-width:0; }
.message-body .wxi-editor-bubble { max-width:100%; }
.message-body .wxi-editor-photo { max-width:min(210px,100%); max-height:250px; min-width:70px; min-height:70px; object-fit:contain; }
.wxi-editor-message.is-self .message-body { align-items:flex-end; }
.message-meta { display:block; margin-top:5px; color:#8e8e8e; font-size:11px; line-height:1.3; }
.is-self .message-meta { text-align:right; }
.wxi-editor-avatar { display:grid; place-items:center; background:#dfe8e2; color:#5c7c68; font-size:20px; }
.wxi-profile-image.wxi-editor-avatar { width:63px; height:63px; flex-basis:63px; }
[data-message] { touch-action:pan-y; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; }
.wxi-chat-icon,.wxi-contact-icon { background:#dfe8e2; color:#5c7c68; font-size:22px; }
.wxi-chat-avatar { background:#dfe8e2; }
.wxi-chat-time { margin:16px 0 8px; font-size:11px; }
.connection { z-index:4; padding:6px; text-align:center; background:#fff1d1; font-size:12px; color:#8b6318; flex-shrink:0; }
.empty { padding:64px 24px; text-align:center; color:#999; font-size:14px; line-height:1.9; }
.modal { position:absolute; inset:0; background:#0006; z-index:45; display:grid; place-items:center; padding:24px; }
.modal-card { box-sizing:border-box; width:min(100%,360px); max-height:85%; overflow:auto; padding:24px; border-radius:12px; background:#fff; }
.modal-card.wide { width:min(100%,500px); }
.modal-card h2 { margin:0 0 18px; font-size:20px; font-weight:500; }
.modal-card p,.help { color:#999; font-size:12px; line-height:1.6; }
.modal-card label,.login-card label { display:grid; gap:8px; margin:14px 0; font-size:14px; color:#666; }
.modal-card input,.modal-card textarea,.modal-card select,.login-card input { box-sizing:border-box; width:100%; border:1px solid #ddd; border-radius:6px; padding:12px; color:#181818; outline-color:#07c160; background:white; }
.modal-card textarea { min-height:140px; resize:vertical; }
.actions { display:flex; justify-content:flex-end; align-items:center; gap:10px; margin-top:22px; }
.btn { border:0; padding:10px 19px; border-radius:6px; color:#555; background:#f0f0f0; }
.btn.primary { background:#07c160; color:white; }
.btn.danger { color:#c33; }
.error { color:#e34d59!important; font-size:13px; min-height:18px; }
.login { display:grid; place-items:center; height:100%; width:100%; background:#f7f7f7; }
.login-card { box-sizing:border-box; width:min(100%,370px); padding:28px; }
.login-card h1 { margin:0 0 12px; font-size:26px; font-weight:500; }
.login-card .btn { width:100%; padding:13px; }
.login-logo { width:60px; height:60px; display:grid; place-items:center; background:#07c160; color:#fff; border-radius:16px; margin-bottom:28px; }
.login-logo svg { width:36px; height:36px; }
.pick-row { display:flex; align-items:center; gap:12px; width:100%; border:0; border-bottom:1px solid #eee; background:#fff; padding:12px 0; text-align:left; }
.pick-row .wxi-chat-icon { flex-shrink:0; }
.pick-copy { min-width:0; overflow-wrap:anywhere; }
.pick-copy small { display:block; color:#999; margin-top:6px; }
.wxi-composer { height:auto; min-height:61px; padding-bottom:max(8px,env(safe-area-inset-bottom)); }
.send-btn { border:0; border-radius:5px; background:#07c160; color:#fff; padding:9px 12px; font-size:14px; }
.wxi-tabs { height:auto; min-height:50px; padding-bottom:env(safe-area-inset-bottom); }
.wxi-message-menu { width:min(90%,470px); }
.wxi-message-menu-grid { grid-template-columns:repeat(5,minmax(0,1fr)); }
.wxi-message-menu-item { font-size:12px; }
.wxi-discover-row { width:100%; border:0; text-align:left; }
.load-more { display:block; margin:12px auto; border:0; background:transparent; color:#738ba9; font-size:13px; }
.version { padding:12px 0; border-bottom:1px solid #eee; }
.version small { color:#999; }
.version pre { font:inherit; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.5; font-size:14px; }
.admin-body { margin:0; background:#f3f5f4; color:#181818; font-family:"Segoe UI","Microsoft YaHei",sans-serif; height:auto; }
.admin-header { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:20px 5vw; background:#fff; border-bottom:1px solid #e3e8e5; }
.admin-header h1 { margin:0; font-size:21px; font-weight:600; }
.admin-header a { color:#07a957; text-decoration:none; font-size:14px; }
.admin-wrap { max-width:1100px; margin:30px auto; padding:0 20px; }
.admin-toolbar { display:flex; justify-content:space-between; align-items:center; margin:20px 0; }
.admin-panel { padding:22px; border:1px solid #e3e8e5; border-radius:12px; background:#fff; margin-bottom:20px; overflow:auto; }
.admin-panel h2 { font-size:17px; margin:0 0 20px; }
table { width:100%; border-collapse:collapse; font-size:14px; }
th,td { padding:14px 10px; border-bottom:1px solid #edf0ee; text-align:left; white-space:nowrap; }
th { color:#999; font-weight:400; }
td .btn { padding:7px 10px; }
.admin-modal { position:fixed; }
.pill { font-size:12px; padding:4px 8px; border-radius:4px; background:#edf6ef; color:#228453; }
.audit-detail { max-width:400px; white-space:normal; overflow-wrap:anywhere; font-size:12px; color:#777; }
.admin-login { min-height:80vh; }
.admin-modal .modal-card { max-height:90vh; }
