.wechat-app {
  --wechat-side: var(--app-inline-inset);
  --wechat-line: var(--vie-page-divider);
  --wechat-soft: var(--vie-page-soft-surface);
  --wechat-muted: var(--vie-text-muted);
  --wechat-ink: var(--vie-text-primary);
  --wechat-icon: var(--vie-page-icon-color);
  --wechat-active: var(--vie-page-icon-color);
  --wechat-icon-size: 16px;
  --wechat-chat-side: var(--wechat-side);
  --wechat-chat-edge-gap: var(--wechat-chat-side);
  --wechat-composer-control-size: 38px;
  --wechat-composer-control-track: 38px;
  --wechat-composer-base-height: 60px;
  --vie-chat-background: var(--vie-page-background-color);
  --vie-chat-header: #ffffff;
  --vie-chat-header-ink: #101820;
  --vie-chat-header-muted: rgba(20,39,62,.64);
  --vie-chat-header-press: rgba(16,24,32,.06);
  --vie-chat-green: #dedee2;
  --vie-chat-white: #ffffff;
  --vie-chat-incoming-ink: #111820;
  --vie-chat-outgoing-ink: #2c2c30;
  --vie-chat-meta: rgba(78,78,84,.72);
  --vie-chat-scroll-glow: rgba(255,255,255,.075);
  --vie-chat-scroll-depth: rgba(0,0,0,.018);
  --vie-chat-date-ink: #000000;
  --vie-chat-date-surface: rgba(255,255,255,.68);
  --vie-chat-date-shadow: 0 1px 3px rgba(0,0,0,.08);
  --vie-chat-avatar-shadow: 0 1px 2px rgba(25,52,87,.14);
  --vie-chat-bubble-shadow: 0 1px 1px rgba(36,62,94,.08);
  --vie-chat-reaction-ink: #34485f;
  --vie-chat-reaction-strong: #142333;
  --vie-chat-reaction-surface: rgba(255,255,255,.9);
  --vie-chat-reaction-shadow: 0 1px 3px rgba(24,52,86,.16);
  --vie-chat-quick-backdrop: rgba(242,242,244,.72);
  --vie-chat-quick-surface: rgba(255,255,255,.9);
  --vie-chat-quick-border: rgba(177,177,184,.46);
  --vie-chat-quick-icon: #74747a;
  --vie-chat-quick-active: #202024;
  --vie-chat-quick-text: #29292d;
  --vie-chat-quick-muted: #77777d;
  --vie-chat-quick-divider: rgba(205,205,210,.62);
  --vie-chat-quick-press: rgba(225,225,229,.62);
  --vie-chat-quick-destructive: #765f62;
  --vie-chat-quick-destructive-icon: #80686b;
  --vie-chat-quick-spinner-track: rgba(90,90,96,.2);
  --vie-chat-quick-spinner-head: rgba(40,40,44,.78);
  --vie-chat-card-surface: #ffffff;
  --vie-chat-card-ink: #29292d;
  --vie-chat-card-strong: #242428;
  --vie-chat-card-muted: #74747a;
  --vie-chat-card-faint: #8d8d93;
  --vie-chat-card-soft: #e7e7ea;
  --vie-chat-card-soft-ink: #626267;
  --vie-chat-card-divider: #dddde1;
  --vie-chat-card-shadow: 0 1px 2px rgba(48,48,54,.14);
  --vie-chat-image-placeholder: #e1e1e5;
  --vie-chat-money-gradient: linear-gradient(135deg, rgba(112,112,118,.16), rgba(112,112,118,.05));
  --vie-chat-transcript-divider: rgba(72,72,78,.16);
  --vie-chat-map-surface-a: #dedee2;
  --vie-chat-map-surface-b: #ececef;
  --vie-chat-map-surface-c: #d7d7dc;
  --vie-chat-map-road: rgba(255,255,255,.9);
  --vie-chat-map-road-border: rgba(158,158,164,.55);
  --vie-chat-map-road-ring: rgba(255,255,255,.4);
  --vie-chat-map-grid: rgba(82,82,88,.14);
  --vie-chat-map-label-ink: #5f5f65;
  --vie-chat-map-label-surface: rgba(255,255,255,.94);
  --vie-chat-panel-surface: rgba(249,250,251,.985);
  --vie-chat-panel-border: #d9dfe6;
  --vie-chat-panel-shadow: 0 -4px 12px rgba(26,53,83,.07);
  --vie-chat-panel-pill: #edf1f4;
  --vie-chat-panel-pill-ink: #68686e;
  --vie-chat-panel-press: #eef2f5;
  --vie-chat-panel-icon: #55555b;
  --vie-chat-composer-surface: rgba(255,255,255,.985);
  --vie-chat-composer-border: rgba(211,218,226,.9);
  --vie-chat-composer-shadow: 0 -2px 8px rgba(27,53,82,.045);
  --vie-chat-composer-ink: #3f3f44;
  --vie-chat-composer-field: var(--vie-input-glass-surface);
  --vie-chat-composer-field-border: var(--vie-input-glass-border);
  --vie-chat-composer-input: #2d2d31;
  --vie-chat-composer-placeholder: #8c8c92;
  --vie-chat-composer-press: #edf1f4;
  --vie-chat-tool-ink: #626268;
  --vie-chat-tool-icon: #47474c;
  --vie-chat-tool-surface: rgba(255,255,255,.20);
  --vie-chat-tool-border: rgba(255,255,255,.40);
  --vie-chat-detail-background: #f6f6f8;
  --vie-chat-detail-surface: rgba(255,255,255,.92);
  --vie-chat-detail-header: rgba(255,255,255,.98);
  --vie-chat-detail-border: rgba(197,197,202,.62);
  --vie-chat-detail-divider: rgba(205,205,210,.62);
  --vie-chat-detail-shadow: 0 1px 5px rgba(0,0,0,.035);
  --vie-chat-detail-control-track: #d7d7dc;
  --vie-chat-detail-control-thumb: #ffffff;
  --vie-chat-detail-preview: #f1f1f3;
  --vie-chat-wallpaper-scrim: rgba(0,0,0,.025);
  --vie-chat-accent: #249d25;
  --vie-chat-accent-soft: rgba(139,230,99,.28);
  --vie-chat-card-accent: #77777c;
  --vie-chat-focus-ring: rgba(203,203,203,.30);
  --vie-chat-glass-surface: rgba(255,255,255,.20);
  --vie-chat-glass-surface-strong: rgba(255,255,255,.20);
  --vie-chat-glass-control: transparent;
  --vie-chat-glass-border: rgba(255,255,255,.40);
  --vie-chat-glass-border-soft: rgba(255,255,255,.40);
  --vie-chat-glass-shadow: var(--vie-input-glass-shadow);
  --vie-chat-glass-control-shadow: none;
  -webkit-tap-highlight-color: transparent;
  background: transparent;
}

.theme-dark .wechat-app {
  --vie-chat-background: var(--vie-page-background-color);
  --vie-chat-header: #202126;
  --vie-chat-header-ink: #f4f5f7;
  --vie-chat-header-muted: rgba(214,220,227,.66);
  --vie-chat-header-press: rgba(255,255,255,.08);
  --vie-chat-green: #44444a;
  --vie-chat-white: #2d3035;
  --vie-chat-incoming-ink: #f3f4f6;
  --vie-chat-outgoing-ink: #f2f2f4;
  --vie-chat-meta: rgba(210,210,214,.68);
  --vie-chat-scroll-glow: rgba(255,255,255,.035);
  --vie-chat-scroll-depth: rgba(0,0,0,.12);
  --vie-chat-date-ink: #ffffff;
  --vie-chat-date-surface: rgba(0,0,0,.36);
  --vie-chat-date-shadow: 0 1px 3px rgba(0,0,0,.18);
  --vie-chat-avatar-shadow: 0 1px 3px rgba(0,0,0,.34);
  --vie-chat-bubble-shadow: 0 1px 2px rgba(0,0,0,.22);
  --vie-chat-reaction-ink: #d3d9df;
  --vie-chat-reaction-strong: #ffffff;
  --vie-chat-reaction-surface: rgba(39,41,46,.94);
  --vie-chat-reaction-shadow: 0 2px 7px rgba(0,0,0,.32);
  --vie-chat-quick-backdrop: rgba(8,9,11,.76);
  --vie-chat-quick-surface: rgba(38,39,44,.94);
  --vie-chat-quick-border: rgba(255,255,255,.12);
  --vie-chat-quick-icon: #b8b9bf;
  --vie-chat-quick-active: #ffffff;
  --vie-chat-quick-text: #f2f2f4;
  --vie-chat-quick-muted: #b6b7bd;
  --vie-chat-quick-divider: rgba(255,255,255,.1);
  --vie-chat-quick-press: rgba(255,255,255,.075);
  --vie-chat-quick-destructive: #d6a0a6;
  --vie-chat-quick-destructive-icon: #dca7ad;
  --vie-chat-quick-spinner-track: rgba(255,255,255,.15);
  --vie-chat-quick-spinner-head: rgba(255,255,255,.82);
  --vie-chat-card-surface: #2b2e33;
  --vie-chat-card-ink: #f1f3f5;
  --vie-chat-card-strong: #f4f5f7;
  --vie-chat-card-muted: #b0b0b5;
  --vie-chat-card-faint: #96969c;
  --vie-chat-card-soft: #3b3b40;
  --vie-chat-card-soft-ink: #d0d0d4;
  --vie-chat-card-divider: #45454b;
  --vie-chat-card-shadow: 0 1px 3px rgba(0,0,0,.3);
  --vie-chat-image-placeholder: #3d3d43;
  --vie-chat-money-gradient: linear-gradient(135deg, rgba(145,145,151,.22), rgba(145,145,151,.07));
  --vie-chat-transcript-divider: rgba(255,255,255,.14);
  --vie-chat-map-surface-a: #39393f;
  --vie-chat-map-surface-b: #414147;
  --vie-chat-map-surface-c: #34343a;
  --vie-chat-map-road: rgba(220,226,232,.42);
  --vie-chat-map-road-border: rgba(198,198,204,.24);
  --vie-chat-map-road-ring: rgba(255,255,255,.08);
  --vie-chat-map-grid: rgba(206,206,212,.10);
  --vie-chat-map-label-ink: #d2d2d6;
  --vie-chat-map-label-surface: rgba(32,35,40,.92);
  --vie-chat-panel-surface: rgba(30,31,35,.985);
  --vie-chat-panel-border: rgba(255,255,255,.11);
  --vie-chat-panel-shadow: 0 -5px 16px rgba(0,0,0,.25);
  --vie-chat-panel-pill: #30333a;
  --vie-chat-panel-pill-ink: #bdbdc2;
  --vie-chat-panel-press: #383b42;
  --vie-chat-panel-icon: #d0d0d4;
  --vie-chat-composer-surface: rgba(29,30,34,.99);
  --vie-chat-composer-border: rgba(255,255,255,.11);
  --vie-chat-composer-shadow: 0 -3px 10px rgba(0,0,0,.2);
  --vie-chat-composer-ink: #dedee2;
  --vie-chat-composer-field: var(--vie-input-glass-surface);
  --vie-chat-composer-field-border: var(--vie-input-glass-border);
  --vie-chat-composer-input: #f0f0f2;
  --vie-chat-composer-placeholder: #96969c;
  --vie-chat-composer-press: #35383e;
  --vie-chat-tool-ink: #c2c2c7;
  --vie-chat-tool-icon: #e0e0e4;
  --vie-chat-tool-surface: rgba(255,255,255,.10);
  --vie-chat-tool-border: rgba(255,255,255,.18);
  --vie-chat-detail-background: #18191c;
  --vie-chat-detail-surface: rgba(40,41,46,.94);
  --vie-chat-detail-header: rgba(31,32,36,.98);
  --vie-chat-detail-border: rgba(255,255,255,.12);
  --vie-chat-detail-divider: rgba(255,255,255,.1);
  --vie-chat-detail-shadow: 0 1px 7px rgba(0,0,0,.28);
  --vie-chat-detail-control-track: #4b4d53;
  --vie-chat-detail-control-thumb: #e6e7e9;
  --vie-chat-detail-preview: #292b30;
  --vie-chat-wallpaper-scrim: rgba(0,0,0,.2);
  --vie-chat-accent: #78d071;
  --vie-chat-accent-soft: rgba(92,154,88,.34);
  --vie-chat-card-accent: #94949a;
  --vie-chat-focus-ring: rgba(255,255,255,.18);
  --vie-chat-glass-surface: rgba(255,255,255,.20);
  --vie-chat-glass-surface-strong: rgba(255,255,255,.20);
  --vie-chat-glass-control: transparent;
  --vie-chat-glass-border: rgba(255,255,255,.40);
  --vie-chat-glass-border-soft: rgba(255,255,255,.40);
  --vie-chat-glass-shadow: var(--vie-input-glass-shadow);
  --vie-chat-glass-control-shadow: none;
}

/* 微信父级壳层不再重复消费页面留白。
   横向间距只允许由导航栏与实际滚动容器各自消费一次，避免 app → content → pages → page → scroll 连续叠加。 */
.wechat-content {
  background: transparent;
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.wechat-pages,
.wechat-page,
.wechat-page-scroll {
  background: transparent;
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 0;
}
.wechat-pages {
  overflow: hidden;
}
.wechat-page {
  overflow: hidden;
}
.wechat-page-scroll {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 var(--wechat-side) calc(64px + 15px + 28px);
  scroll-padding-bottom: calc(64px + 15px + 28px);
}

.wechat-subpage {
  background: transparent;
  position: absolute;
  z-index: 5;
  inset: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.wechat-subview {
  background: transparent;
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.wechat-header,
.wechat-saved-scroll {
  background: transparent;
}
.wechat-saved-message-list { display: grid; gap: 8px; }
.wechat-saved-message-card {
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 12px;
  gap: 7px 10px;
  padding: 11px 12px;
  border: .5px solid var(--wechat-line);
  border-radius: 14px;
  color: var(--wechat-ink);
  background: var(--wechat-card);
  text-align: left;
}
.wechat-saved-message-card > span { min-width: 0; }
.wechat-saved-message-card strong,
.wechat-saved-message-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wechat-saved-message-card strong {
  font-size: calc(12px * var(--vie-font-scale));
}
.wechat-saved-message-card small {
  margin-top: 2px;
  color: var(--wechat-muted);
  font-size: calc(9px * var(--vie-font-scale));
}

.wechat-saved-message-card p { grid-column: 1; margin: 0; color: var(--wechat-muted); font-size:calc(10px * var(--vie-font-scale)); line-height: 1.45; white-space: normal; overflow-wrap: anywhere; }
.wechat-saved-message-card > i { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--wechat-muted); font-size: 8px; }
.wechat-saved-empty { min-height: 280px; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--wechat-muted); text-align: center; }
.wechat-saved-empty[hidden] { display: none; }
.wechat-saved-empty i { font-size: 26px; }
.wechat-saved-empty strong { color: var(--wechat-ink); font-size:calc(12px * var(--vie-font-scale)); }
.wechat-saved-empty small { max-width: 220px; font-size:calc(10px * var(--vie-font-scale)); line-height: 1.5; }

.wechat-subpage-scroll {
  background: transparent;
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 var(--wechat-side) 18px;
}

.wechat-conversation {
  background: transparent;
  position: absolute;
  z-index: 24;
  inset: 0;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--vie-chat-header-ink);
  background-color: var(--vie-chat-background);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.wechat-chat-body {
  background: transparent;
  position: relative;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0,1fr) auto;
  overflow: hidden;
}

.wechat-chat-header {
  background: transparent;
}

:where(.wechat-app) :where(button, input) { font-family: inherit; -webkit-tap-highlight-color: transparent; }
:where(.wechat-app) :where(button) {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}
.wechat-app input { user-select: text; -webkit-user-select: text; }
.wechat-app svg { display: block; overflow: visible; fill: currentColor; }
.wechat-app .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.wechat-header.vie-app-navbar {
  width: 100%;
  min-width: 0;
  flex: 0 0 auto;
  padding-right: var(--wechat-side);
  padding-left: var(--wechat-side);
}
.wechat-nav-leading { max-width: calc(100% - 82px); }
.wechat-title-stack {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  overflow: hidden;
}
.wechat-title-stack > span,
.wechat-title-stack > small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wechat-title-stack > span {
  color: var(--wechat-ink);
  font-size: var(--vie-nav-title-size);
  line-height: var(--vie-nav-title-line-height);
  padding-block: 3px 4px;
  font-weight: 600;
}
.wechat-title-stack > small {
  color: var(--wechat-muted);
  font-size: calc(10px * var(--vie-font-scale));
  line-height: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.wechat-header-actions {
  min-width: 0;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.wechat-header-action,
.wechat-header-notification,
.wechat-header-tertiary,
.wechat-chat-header-action { position: relative; color: var(--wechat-icon); }
.wechat-search-card > svg {
  width: var(--wechat-icon-size);
  height: var(--wechat-icon-size); color: var(--wechat-icon);
}
.wechat-header-action svg,
.wechat-header-notification svg,
.wechat-header-tertiary svg,
.wechat-chat-header-action svg,
.wechat-search-clear svg,
.wechat-contact-call svg,
.wechat-post-menu svg,
.wechat-post-actions svg,
.wechat-profile-edit svg,
.wechat-icon-frame,
.wechat-icon-frame svg {
  width: var(--wechat-icon-size);
  height: var(--wechat-icon-size);
}
.wechat-header .vie-app-nav-icon svg,
.wechat-chat-header .vie-app-nav-icon svg {
  width: var(--vie-nav-action-icon-size);
  height: var(--vie-nav-action-icon-size);
}

.wechat-search-card {
  min-height: 44px;
  display: grid;
  grid-template-columns: var(--wechat-icon-size) minmax(0,1fr) 32px;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0 7px 0 14px;
  overflow: hidden;
}
.wechat-search-card input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--wechat-ink);
  background: transparent;
  font-size: calc(13px * var(--vie-font-scale));
  -webkit-appearance: none;
  appearance: none;
}
.wechat-search-card input::placeholder { color: var(--wechat-muted); }
.wechat-search-card input::-webkit-search-cancel-button { display: none; }

.wechat-search-clear,
.wechat-contact-call,
.wechat-post-menu,
.wechat-profile-edit {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--wechat-icon);
  background: transparent;
}

.wechat-avatar,
.wechat-profile-avatar {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  color: var(--logo-color);
  background: var(--vie-page-surface-strong) center / cover no-repeat;
  box-shadow: inset 0 0 0 .5px rgba(203,203,203,.30), 0 2px 7px rgba(0,0,0,.035);
}
.wechat-avatar {
  width: 46px;
  height: 46px;
}
.wechat-profile-avatar {
  width: 70px;
  height: 70px;
  padding: 0;
}

.wechat-avatar.has-custom-image,
.wechat-profile-avatar.has-custom-image {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.wechat-message-list { display: block; }
.wechat-message-row {
  content-visibility: auto;
  contain-intrinsic-size: 74px;
  position: relative;
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: 46px minmax(0,1fr) 38px;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 10px 8px 10px 10px;
  text-align: left;
}
.wechat-message-row:not(:last-child)::after {
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 72px;
  height: .5px;
  background: var(--wechat-line);
  content: "";
}
.wechat-message-copy { min-width: 0;
  display: grid;
  align-content: center;
  gap: 4px;
  overflow: hidden;
}
.wechat-contact-copy,
.wechat-post-author-copy,
.wechat-profile-copy,
.wechat-menu-copy { min-width: 0; }
.wechat-message-title-line,
.wechat-contact-name-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.wechat-message-title-line strong,
.wechat-contact-name-line strong {
  min-width: 0;
  overflow: hidden;
  color: var(--wechat-ink);
  font-size:calc(14px * var(--vie-font-scale));
  line-height: 19px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wechat-message-owner {
  flex: 0 0 auto;
  max-width: 42%;
  overflow: hidden;
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--wechat-muted);
  background: var(--wechat-soft);
  font-size:calc(8px * var(--vie-font-scale));
  line-height: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wechat-message-preview {
  min-width: 0;
  display: block;
  overflow: hidden;
  margin-top: 0;
  color: var(--wechat-muted);
  font-size:calc(10px * var(--vie-font-scale));
  line-height: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wechat-message-meta {
  width: 38px;
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  padding: 2px 0;
}
.wechat-message-time {
  max-width: 100%;
  overflow: hidden;
  color: var(--wechat-muted);
  font-size:calc(9px * var(--vie-font-scale));
  line-height: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wechat-unread {
  min-width: 18px;
  height: 13px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 9px;
  color: #fff;
  background: var(--wechat-active);
  font-size:calc(9px * var(--vie-font-scale));
  font-style: normal;
}

.wechat-chip-row,
.wechat-discover-filter {
  align-items: center;
  margin-bottom: 14px;
  overflow: hidden;
}
.wechat-chip-row {
  grid-auto-flow: column;
}
.wechat-discover-filter {
  grid-template-columns: repeat(3,minmax(0,1fr));
  grid-auto-flow: row;
}

.wechat-chip,
.wechat-discover-filter > button { min-width: 0; white-space: nowrap; }
.wechat-contact-groups { display: grid; gap: 0; }
.wechat-contact-section { margin-bottom: 14px; }
.wechat-contact-section-title {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: .5px solid var(--wechat-line);
  color: var(--wechat-muted);
  font-size:calc(10px * var(--vie-font-scale));
}
.wechat-contact-section-title strong { color: var(--wechat-muted); font-weight: 500; }
.wechat-contact-row {
  position: relative;
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 38px;
  align-items: center;
  padding: 0 8px 0 10px;
}
.wechat-contact-row:not(:last-child)::after {
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 65px;
  height: .5px;
  background: var(--wechat-line);
  content: "";
}
.wechat-contact-main {
  min-width: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: 43px minmax(0,1fr);
  align-items: center;
  gap: 11px;
  padding: 7px 4px;
  text-align: left;
}
.wechat-contact-main .wechat-avatar { width: 43px; height: 43px; }
.wechat-contact-tag {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--wechat-muted);
  background: var(--wechat-soft);
  font-size:calc(8px * var(--vie-font-scale));
  line-height: 12px;
}
.wechat-contact-copy p {
  overflow: hidden;
  margin: 3px 0 0;
  color: var(--wechat-muted);
  font-size:calc(10px * var(--vie-font-scale));
  line-height: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wechat-alpha-rail {
  position: absolute;
  top: 154px;
  right: 4px;
  display: grid;
  gap: 4px;
  color: var(--wechat-muted);
  font-size:calc(7px * var(--vie-font-scale));
  line-height: 1;
  pointer-events: none;
}
.wechat-feed { display: grid; gap: 14px; }
.wechat-post-card { margin: 0; padding: 14px; }
.wechat-post-head {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) 34px;
  align-items: center;
  gap: 10px;
}
.wechat-post-head .wechat-avatar { width: 42px; height: 42px; }
.wechat-post-author-copy strong { display: block;
  overflow: hidden;
  color: var(--wechat-ink);
  font-size:calc(13px * var(--vie-font-scale));
  line-height: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wechat-post-author-copy time { display: block; margin-top: 2px; color: var(--wechat-muted); font-size:calc(9px * var(--vie-font-scale)); line-height: 13px;
}
.wechat-post-text {
  margin: 11px 0 12px 52px;
  color: var(--wechat-ink);
  font-size:calc(12px * var(--vie-font-scale));
  line-height: 1.62;
  white-space: pre-line;
}
.wechat-media-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 7px;
  margin-left: 52px;
}
.wechat-media-grid.media-count-1 { grid-template-columns: minmax(0, 68%); }
.wechat-media-grid.media-count-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.wechat-media-tile {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  color: var(--wechat-icon);
  background: var(--wechat-soft);
  box-shadow: inset 0 0 0 .5px rgba(203,203,203,.24);
}
.wechat-media-tile svg { width: 17px; height: 17px; }
.wechat-post-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 12px 0 0 52px;
  padding-top: 10px;
  border-top: .5px solid var(--vie-page-divider);
}
.wechat-post-actions button {
  min-width: 36px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 0;
  color: var(--wechat-icon);
  background: transparent;
  font-size:calc(9px * var(--vie-font-scale));
}
.wechat-post-actions button[aria-pressed="true"] { color: var(--wechat-active); background: transparent; }

.wechat-profile-card { margin: 0 0 10px; }
.wechat-profile-hero {
  min-height: 100px;
  display: grid;
  grid-template-columns: 70px minmax(0,1fr) 34px;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
}
.wechat-profile-copy h2,
.wechat-profile-copy p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wechat-profile-copy h2 {
  margin: 0;
  color: var(--wechat-ink);
  font-size: calc(17px * var(--vie-font-scale));
  line-height: 23px;
  font-weight: 600;
  letter-spacing: -.2px;
}
.wechat-profile-copy p {
  margin: 5px 0 0;
  color: var(--wechat-muted);
  font-size: calc(10px * var(--vie-font-scale));
  line-height: 15px;
}

.wechat-profile-stats {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  border-top: .5px solid var(--wechat-line);
}
.wechat-profile-stats button { min-height: 50px; display: grid; place-content: center; gap: 2px; }
.wechat-profile-stats button + button { border-left: .5px solid var(--wechat-line); }
.wechat-profile-stats strong { color: var(--wechat-ink); font-size:calc(15px * var(--vie-font-scale)); line-height: 20px; font-weight: 600; }
.wechat-profile-stats span { color: var(--wechat-muted); font-size:calc(9px * var(--vie-font-scale)); }
.wechat-badge-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 0;
  margin: 0 0 10px;
  overflow: hidden;
}
.wechat-badge-grid > button {
  position: relative;
  min-height: 56px;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 9px 14px;
  color: var(--wechat-icon);
  text-align: left;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.wechat-badge-grid > button:not(:last-child)::after {
  position: absolute;
  top: 10px;
  right: 0;
  bottom: 10px;
  width: .5px;
  background: var(--wechat-line);
  content: "";
}
.wechat-badge-grid .vie-global-list-icon { width: 34px; height: 34px; }
.wechat-badge-grid strong { display: block; color: var(--wechat-ink); font-size:calc(13px * var(--vie-font-scale)); line-height: 13px; font-weight: 500;
}
.wechat-badge-grid small { display: block; margin-top: 2px; color: var(--wechat-muted); font-size:calc(9px * var(--vie-font-scale)); line-height: 13px;
}
.wechat-memo-card {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 10px;
  padding: 7px 14px;
}
.wechat-memo-copy {
  flex: 1 1 auto;
  min-width: 0;
}
.wechat-memo-card small { display: block; color: var(--wechat-muted); font-size:calc(9px * var(--vie-font-scale)); line-height: 13px;
}
.wechat-memo-card strong { display: block; margin-top: 3px; color: var(--wechat-ink); font-size:calc(12px * var(--vie-font-scale)); line-height: 17px; font-weight: 500;
}
.wechat-memo-polaroid {
  position: relative;
  flex: 0 0 auto;
  width: 58px;
  height: 72px;
  padding: 6px 6px 18px;
  border: 0;
  border-radius: 2px;
  background-color: var(--vie-page-surface-strong);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-origin: content-box;
  background-clip: content-box;
  box-shadow: 0 9px 18px rgba(0, 0, 0, 0.11);
  transform: rotate(-3deg);
  color: var(--logo-color);
  overflow: visible;
}
.wechat-memo-polaroid::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 24px;
  height: 10px;
  border-radius: 2px;
  background: rgba(176, 176, 181, 0.42);
  transform: translateX(-50%) rotate(3deg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}
.wechat-memo-polaroid .avatar-user-icon {
  position: absolute;
  left: 50%;
  top: 26px;
  width: 24px;
  height: 24px;
  fill: currentColor;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.wechat-memo-polaroid .avatar-star {
  position: absolute;
  fill: currentColor;
  opacity: 0.92;
  z-index: 1;
}

.wechat-memo-polaroid .star-f { width: 5px; height: 5px; left: 12px; bottom: 20px; transform: rotate(12deg); }
.wechat-memo-polaroid.has-custom-image .avatar-user-icon,
.wechat-memo-polaroid.has-custom-image .avatar-star { display: none; }
.wechat-menu-card,
.wechat-menu-card .vie-global-list-row {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.wechat-menu-card {
  margin: 0;
}
.wechat-menu-card .vie-global-list-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 8px;
  align-items: center;
  column-gap: 12px;
  padding: 9px 14px;
  overflow: hidden;
}

.wechat-menu-card .wechat-menu-copy { min-width: 0; width: 100%; max-width: 100%;
}
.wechat-menu-card .vie-global-chevron { min-width: 0; justify-self: end;
}
.wechat-menu-card .vie-global-list-icon { min-width: 0; }
.wechat-menu-card .vie-global-list-icon svg {
  width: var(--wechat-menu-glyph-width, 18px);
  height: var(--wechat-menu-glyph-height, 18px);
  transform: none;
}
.wechat-menu-card [data-wechat-menu-icon="assets"] { --wechat-menu-glyph-width: 18.5px; --wechat-menu-glyph-height: 18.5px; }
.wechat-menu-card [data-wechat-menu-icon="stickers"] { --wechat-menu-glyph-width: 17px; --wechat-menu-glyph-height: 17px; }
.wechat-menu-card [data-wechat-menu-icon="diary"] { --wechat-menu-glyph-width: 18px; --wechat-menu-glyph-height: 13px; }
.wechat-menu-card [data-wechat-menu-icon="beautify"] { --wechat-menu-glyph-width: 19.5px; --wechat-menu-glyph-height: 17.3px; }
.wechat-menu-card [data-wechat-menu-icon="online"] { --wechat-menu-glyph-width: 18.5px; --wechat-menu-glyph-height: 18.5px; }
.wechat-menu-copy strong,
.wechat-menu-copy small { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.wechat-empty {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 24px;
  color: var(--wechat-muted);
  text-align: center;
}
.wechat-empty > svg { width: 32px; height: 32px; margin-bottom: 3px; color: var(--logo-color); }
.wechat-empty strong { color: var(--wechat-ink); font-size:calc(14px * var(--vie-font-scale)); line-height: 19px; font-weight: 500; }
.wechat-empty span { font-size:calc(10px * var(--vie-font-scale)); line-height: 15px; }

.wechat-dock {
  position: absolute;
  z-index: 7;
  right: auto;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: min(74%, 300px);
  height: 64px;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  align-items: center;
  padding: 0 8px;
  overflow: hidden;
  border: .5px solid var(--vie-page-divider-soft);
  border-radius: 23px;
  background: var(--vie-page-surface);
  box-shadow: 0 10px 24px rgba(48,48,54,.07), inset 0 1px 0 rgba(255,255,255,.86);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.wechat-dock button {
  position: relative;
  min-width: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 15px;
  color: var(--wechat-icon);
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}
.wechat-dock button.is-active {
  color: var(--wechat-active);
  background: var(--vie-page-surface-strong);
}
.wechat-dock button:active { transform: scale(.94); }
.wechat-dock-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}
.wechat-dock-icon svg {
  width: 24px;
  height: 24px;
  transition: transform .2s cubic-bezier(.22,.82,.26,1);
}
.wechat-dock button.is-active .wechat-dock-icon svg { transform: scale(1.04); }
.wechat-chat-header.vie-app-navbar {
  position: absolute;
  z-index: 12;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  min-width: 0;
  height: calc(var(--status-bar-space) + var(--app-navbar-height) + 9px);
  min-height: calc(var(--status-bar-space) + var(--app-navbar-height) + 9px);
  flex: 0 0 calc(var(--status-bar-space) + var(--app-navbar-height) + 9px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: calc(var(--status-bar-space) + 1px) var(--wechat-chat-side) 5px;
  overflow: hidden;
  border: 1px solid var(--vie-chat-glass-border);
  border-top: 0;
  border-left: 0;
  border-bottom-left-radius: 28px 18px;
  border-bottom-right-radius: 7px 5px;
  box-shadow: var(--vie-chat-glass-shadow);
}
.wechat-chat-nav-leading {
  min-width: 0;
  max-width: calc(100% - 128px);
  height: 42px;
  display: grid;
  grid-template-columns: 25px minmax(0,1fr);
  align-items: center;
  gap: 5px;
  color: var(--vie-chat-header-ink);
  text-align: left;
}
.wechat-chat-nav-leading > svg {
  width: 25px;
  height: 25px;
}
.wechat-chat-header .wechat-title-stack { gap: 0; }
.wechat-chat-header .wechat-title-stack > span {
  overflow: hidden;
  color: var(--vie-chat-header-ink);
  font-size:calc(16.5px * var(--vie-font-scale));
  line-height: 25px;
  padding-block: 2px 3px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wechat-chat-header .wechat-title-stack > small {
  overflow: hidden;
  color: var(--vie-chat-header-muted);
  font-size:calc(9px * var(--vie-font-scale));
  line-height: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wechat-chat-header .wechat-title-stack > small:empty { display: none; }
.wechat-chat-header .wechat-header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
}
.wechat-chat-selection-head {
  position: absolute;
  right: var(--wechat-chat-side);
  bottom: 5px;
  left: var(--wechat-chat-side);
  height: 42px;
  display: grid;
  grid-template-columns: 64px minmax(0,1fr) 64px;
  align-items: center;
  color: var(--vie-chat-header-ink);
}
.wechat-chat-selection-head[hidden] { display: none; }
.wechat-chat-selection-head button {
  min-width: 0;
  height: 38px;
  padding: 0 5px;
  border: 0;
  border-radius: 10px;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size:calc(13px * var(--vie-font-scale));
  font-weight: 560;
}
.wechat-chat-selection-head button:first-child { text-align: left; }
.wechat-chat-selection-head button:last-child { text-align: right; }
.wechat-chat-selection-head button:active { background: var(--vie-chat-header-press); }
.wechat-chat-selection-head strong {
  min-width: 0;
  overflow: hidden;
  text-align: center;
  font-size:calc(14px * var(--vie-font-scale));
  line-height: 20px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wechat-chat-header.is-selection-mode > .wechat-chat-nav-leading,
.wechat-chat-header.is-selection-mode > .wechat-header-actions {
  visibility: hidden;
  pointer-events: none;
}
.wechat-chat-header .wechat-chat-header-action {
  width: 31px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--vie-chat-header-ink);
  background: transparent;
}
.wechat-chat-header .wechat-chat-header-action:active { background: var(--vie-chat-header-press); transform: scale(.94); }
.wechat-chat-header .wechat-chat-header-action svg {
  width: 22px;
  height: 22px;
  overflow: visible;
}
.wechat-chat-header .wechat-chat-header-action > i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 19px;
  line-height: 22px;
}
.wechat-line-icon { width:22px; height:22px; display:grid; place-items:center; overflow:visible; font-size:19px; line-height:1; }
.wechat-new-friends-scroll { padding-top: 2px; }
.wechat-friend-requests { min-width: 0; }
.wechat-friend-requests-head {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3px 8px;
  color: var(--wechat-ink);
}
.wechat-friend-requests-head strong {
  font-size:calc(13px * var(--vie-font-scale));
  line-height: 13px;
  font-weight: 600;
}
.wechat-friend-request-empty {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  text-align: center;
}
.wechat-friend-request-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 13px;
  border-radius: 50%;
  color: #fff;
  background: var(--logo-color);
}
.wechat-friend-request-icon svg { width: 19px; height: 19px; }
.wechat-friend-request-empty strong {
  color: var(--wechat-ink);
  font-size:calc(14px * var(--vie-font-scale));
  line-height: 20px;
  font-weight: 550;
}
.wechat-friend-request-empty small {
  max-width: 250px;
  margin-top: 6px;
  color: var(--wechat-muted);
  font-size:calc(10px * var(--vie-font-scale));
  line-height: 16px;
}
.wechat-friend-requests-head span {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  color: var(--wechat-muted);
  background: var(--wechat-soft);
  font-size:calc(10px * var(--vie-font-scale));
  line-height: 13px;
  text-align: center;
}
.wechat-friend-request-list {
  display: grid;
  gap: 10px;
}
.wechat-friend-request-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 13px;
  border-radius: 16px;
  background: var(--vie-page-surface-strong);
  box-shadow: 0 7px 20px rgba(0,0,0,.045), 0 2px 5px rgba(0,0,0,.025);
}
.wechat-friend-request-row .wechat-avatar {
  width: 46px;
  height: 46px;
}
.wechat-friend-request-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.wechat-friend-request-copy strong {
  overflow: hidden;
  color: var(--wechat-ink);
  font-size:calc(13px * var(--vie-font-scale));
  line-height: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wechat-friend-request-copy small,
.wechat-friend-request-copy p {
  overflow: hidden;
  margin: 0;
  color: var(--wechat-muted);
  font-size:calc(10px * var(--vie-font-scale));
  line-height: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wechat-friend-request-actions {
  display: grid;
  gap: 6px;
}
.wechat-friend-request-actions button {
  min-width: 48px;
  min-height: 28px;
  padding: 0 9px;
  border: 0;
  border-radius: 9px;
  color: var(--wechat-muted);
  background: var(--wechat-soft);
  font-size:calc(10px * var(--vie-font-scale));
}
.wechat-friend-request-actions button.is-primary {
  color: #fff;
  background: var(--vie-action-color);
}
.wechat-friend-request-actions button:disabled {
  opacity: .55;
}

.wechat-contact-profile-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  text-align: center;
}
.wechat-contact-profile-card .wechat-avatar { width: 76px; height: 76px; }
.wechat-contact-profile-card .wechat-avatar.has-custom-image .avatar-user-icon,
.wechat-contact-profile-card .wechat-avatar.has-custom-image .avatar-star,
.wechat-choice-row .wechat-avatar.has-custom-image .avatar-user-icon,
.wechat-choice-row .wechat-avatar.has-custom-image .avatar-star { display: none; }
.wechat-contact-profile-card > strong {
  margin-top: 13px;
  color: var(--wechat-ink);
  font-size:calc(17px * var(--vie-font-scale));
  line-height: 22px;
  font-weight: 600;
}
.wechat-contact-profile-card > span {
  margin-top: 5px;
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--wechat-muted);
  background: var(--wechat-soft);
  font-size:calc(9px * var(--vie-font-scale));
  line-height: 13px;
}
.wechat-contact-profile-card > p {
  margin: 18px 0 0;
  color: var(--wechat-muted);
  font-size:calc(10px * var(--vie-font-scale));
  line-height: 15px;
}
.wechat-choice-drawer {
  max-height: min(76%, 590px);
}
.wechat-choice-list {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0;
}
.wechat-choice-options { min-width: 0; }
.wechat-choice-empty { min-height: 188px; }
.wechat-choice-row {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: 40px minmax(0,1fr) 20px;
  align-items: center;
  gap: 11px;
  padding: 7px 14px;
  text-align: left;
}
.wechat-choice-row:not(:last-child)::after {
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 65px;
  height: .5px;
  background: var(--wechat-line);
  content: "";
}
.wechat-choice-row:disabled { opacity: .45; pointer-events: none; }
.wechat-choice-visual {
  position: relative;
  width: 40px;
  height: 40px;
}
.wechat-choice-visual > .wechat-avatar,
.wechat-choice-visual > .wechat-choice-icon {
  position: absolute;
  inset: 0;
}
.wechat-choice-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--logo-color);
}
.wechat-choice-row .wechat-avatar {
  width: 40px;
  height: 40px;
}
.wechat-choice-icon svg { width: 17px; height: 17px; }
.wechat-choice-copy { min-width: 0; }
.wechat-choice-copy strong,
.wechat-choice-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wechat-choice-copy strong {
  color: var(--wechat-ink);
  font-size: calc(13px * var(--vie-font-scale));
  line-height: 13px;
  font-weight: 500;
}
.wechat-choice-copy small {
  margin-top: 2px;
  color: var(--wechat-muted);
  font-size: calc(9px * var(--vie-font-scale));
  line-height: 13px;
}

.wechat-choice-trailing {
  width: 20px;
  min-width: 20px;
  display: grid;
  place-items: center;
}
.wechat-choice-trailing > * { grid-area: 1 / 1; }
.wechat-choice-check {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: .5px solid rgba(143,143,149,.42);
  border-radius: 50%;
  color: transparent;
  background: transparent;
}
.wechat-choice-check svg { width: 10px; height: 10px; }
.wechat-choice-check.is-selected {
  border-color: var(--vie-action-color);
  color: #fff;
  background: var(--vie-action-color);
}
.wechat-choice-pagination {
  flex: 0 0 auto;
  min-height: 34px;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) 38px;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 7px;
  border-top: .5px solid var(--wechat-line);
}
.wechat-choice-pagination[hidden] { display: none; }
.wechat-choice-pagination button {
  width: 34px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--wechat-icon);
  background: var(--wechat-soft);
}
.wechat-choice-pagination button:disabled { opacity: .35; }
.wechat-choice-pagination button svg { width: 11px; height: 11px; }
#wechat-choice-next svg { transform: rotate(180deg); }
.wechat-choice-pagination span {
  color: var(--wechat-muted);
  font-size:calc(9px * var(--vie-font-scale));
  line-height: 14px;
  text-align: center;
}
.wechat-choice-footer {
  flex: 0 0 auto;
  padding: 10px 14px calc(12px + var(--vie-safe-bottom));
  border-top: .5px solid var(--wechat-line);
}
.wechat-choice-footer button {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  color: #fff;
  background: var(--vie-action-color);
  font-size:calc(13px * var(--vie-font-scale));
  font-weight: 600;
}
.wechat-choice-footer button:disabled { opacity: .55; }
.wechat-chat-scroll {
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  grid-row: 1;
  padding: calc(var(--status-bar-space) + var(--app-navbar-height) + 17px) var(--wechat-chat-side) calc(var(--wechat-composer-live-height, var(--wechat-composer-base-height)) + 18px);
  background:
    radial-gradient(circle at 15% 0%, var(--vie-chat-scroll-glow), transparent 31%),
    linear-gradient(180deg, transparent, var(--vie-chat-scroll-depth));
}
.wechat-chat-date-separator {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 9px 0 12px;
  pointer-events: none;
}
.wechat-chat-system-notice {
  width: 100%;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.wechat-chat-date-separator span,
.wechat-chat-system-notice span {
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border: .5px solid color-mix(in srgb,var(--vie-chat-date-ink) 10%,transparent);
  border-radius: 9px;
  color: var(--vie-chat-date-ink);
  background: var(--vie-chat-date-surface);
  font-size:calc(10.5px * var(--vie-font-scale));
  line-height: 16px;
  font-weight: 600;
  box-shadow: var(--vie-chat-date-shadow);
}
.wechat-chat-system-notice { margin: 7px 0 10px; }
.wechat-chat-system-notice span { max-width: 88%; gap: 7px; }
.wechat-chat-system-notice time { opacity: .62; font-size: .82em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wechat-chat-narration {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 6px 0 9px;
  padding: 0 18px;
  color: var(--vie-chat-meta);
  pointer-events: none;
}
.wechat-chat-narration span {
  max-width: min(88%, 320px);
  font-size: calc(9px * var(--vie-font-scale));
  line-height: 15px;
  font-weight: 500;
  text-align: center;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.wechat-chat-message {
  --line-bubble: var(--vie-chat-white);
  --line-bubble-ink: var(--vie-chat-incoming-ink);
  position: relative;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0 0 4px;
}
.wechat-chat-message.is-group-end { margin-bottom: 10px; }
.wechat-chat-message.is-outgoing {
  --line-bubble: var(--vie-chat-green);
  --line-bubble-ink: var(--vie-chat-outgoing-ink);
  --vie-chat-card-surface: var(--vie-chat-green);
  --vie-chat-card-soft: #e7e7ea;
  --vie-chat-card-soft-ink: #626267;
  --vie-chat-card-accent: #77777c;
  --vie-chat-money-gradient: linear-gradient(135deg, rgba(112,112,118,.15), rgba(112,112,118,.04));
  justify-content: flex-end;
}
.theme-dark .wechat-chat-message.is-outgoing {
  --vie-chat-card-soft: #49494e;
  --vie-chat-card-soft-ink: #dddddf;
  --vie-chat-card-accent: #8d8d92;
  --vie-chat-money-gradient: linear-gradient(135deg, rgba(174,174,180,.17), rgba(174,174,180,.05));
}
.wechat-chat-message.is-outgoing .wechat-anonymous-card > i { background: var(--vie-chat-card-accent); }
.wechat-chat-avatar-column {
  width: 35px;
  min-height: 35px;
  flex: 0 0 35px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.wechat-chat-avatar-column.is-placeholder { visibility: hidden; pointer-events: none; }
.wechat-chat-avatar-column .wechat-avatar {
  width: 35px;
  height: 35px;
  border: 0;
  box-shadow: var(--vie-chat-avatar-shadow);
}
.wechat-chat-message-core {
  min-width: 0;
  max-width: calc(100% - 41px);
  display: flex;
  align-items: flex-end;
  gap: 5px;
}
.wechat-chat-message.is-outgoing .wechat-chat-message-core {
  max-width: 88%;
  margin-left: auto;
}
.wechat-chat-content-column {
  min-width: 0;
  width: fit-content;
  max-width: min(72vw, 310px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.wechat-chat-message.is-outgoing .wechat-chat-content-column { align-items: flex-end; }
.wechat-chat-message-meta {
  min-width: 29px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  padding-bottom: 1px;
  color: var(--vie-chat-meta);
  font-size:calc(8.5px * var(--vie-font-scale));
  line-height: 11px;
  white-space: nowrap;
}
.wechat-chat-message.is-incoming .wechat-chat-message-meta { align-items: flex-start; }
.wechat-chat-message-time,
.wechat-chat-read-state {
  display: block;
  color: inherit;
  font-size:calc(8.5px * var(--vie-font-scale));
  line-height: 11px;
  font-weight: 500;
}
.wechat-chat-bubble,
.wechat-chat-special-bubble .wechat-voice-message {
  position: relative;
  min-height: 34px;
  padding: 7px 11px;
  border: 0;
  border-radius: 18px;
  color: var(--line-bubble-ink);
  background: var(--line-bubble);
  box-shadow: var(--vie-chat-bubble-shadow);
  font-size: calc(14px * var(--vie-font-scale));
  line-height: 1.45;
}
.wechat-chat-bubble {
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wechat-chat-text {
  display: block;
  min-width: 0;
  white-space: pre-wrap;
}
.wechat-chat-special-bubble {
  position: relative;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
}
.wechat-message-reactions {
  min-height: 21px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 3px;
  padding: 2px 6px;
  border: 0;
  border-radius: 999px;
  color: var(--vie-chat-reaction-ink);
  background: var(--vie-chat-reaction-surface);
  box-shadow: var(--vie-chat-reaction-shadow);
}
.wechat-message-reactions span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size:calc(10px * var(--vie-font-scale));
  line-height: 1;
}
.wechat-message-reactions span.is-mine { color: var(--vie-chat-reaction-strong); }
.wechat-message-reactions .wechat-quick-reaction-glyph { width: 11px; min-width: 11px; height: 11px; text-align: center; font-size: 10px; }
.wechat-message-reactions b { font-size:calc(8px * var(--vie-font-scale)); font-weight: 600; }

/* 消息快捷层按“反应条—消息—操作板”组织，并统一使用 Vie 灰白磨砂变量。 */
.wechat-chat-message[data-chat-message] {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.wechat-chat-message[data-chat-message]:focus-visible {
  outline: 1px solid var(--vie-chat-focus-ring);
  outline-offset: 3px;
  border-radius: 14px;
}
.wechat-chat-message.is-quick-menu-source { opacity: 0; }
.wechat-message-quick-menu {
  position: absolute;
  z-index: 38;
  inset: 0;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 18px var(--wechat-chat-edge-gap);
}
.wechat-message-quick-menu[hidden] { display: none; }
.wechat-quick-backdrop {
  position: fixed;
  z-index: 0;
  inset: 0;
  border: 0;
  border-radius: 0;
  background: var(--vie-chat-quick-backdrop);
  backdrop-filter: blur(8px) saturate(0);
  -webkit-backdrop-filter: blur(8px) saturate(0);
}
.wechat-quick-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 0;
  animation: wechat-quick-stage-in .16s cubic-bezier(.2,.76,.25,1);
  pointer-events: none;
}
.wechat-quick-reactions { pointer-events: auto;
  width: max-content;
  max-width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 7px;
  padding: 4px 7px;
  border: .5px solid var(--vie-chat-quick-border);
  border-radius: 999px;
  background: var(--vie-chat-quick-surface);
  box-shadow: 0 7px 20px rgba(0,0,0,.09), 0 2px 5px rgba(0,0,0,.04);
  backdrop-filter: blur(24px) saturate(0);
  -webkit-backdrop-filter: blur(24px) saturate(0);
}
.wechat-quick-actions { pointer-events: auto;
  position: relative;
  width: min(54%, 190px);
  overflow: hidden;
  margin-top: 8px;
  border: .5px solid var(--vie-chat-quick-border);
  border-radius: 13px;
  background: var(--vie-chat-quick-surface);
  box-shadow: 0 9px 25px rgba(0,0,0,.095), 0 2px 7px rgba(0,0,0,.045);
  backdrop-filter: blur(24px) saturate(0);
  -webkit-backdrop-filter: blur(24px) saturate(0);
}
.wechat-quick-stage.is-incoming .wechat-quick-reactions { margin-right: auto; margin-left: var(--wechat-quick-reaction-offset, 0px); }
.wechat-quick-stage.is-incoming .wechat-quick-actions { margin-right: auto; margin-left: var(--wechat-quick-action-offset, 0px); }
.wechat-quick-stage.is-outgoing .wechat-quick-reactions { margin-right: var(--wechat-quick-reaction-offset, 0px); margin-left: auto; }
.wechat-quick-stage.is-outgoing .wechat-quick-actions { margin-right: var(--wechat-quick-action-offset, 0px); margin-left: auto; }
.wechat-quick-reactions button {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  border: 0;
  border-radius: 0;
  color: var(--vie-chat-quick-icon);
  background: transparent;
  box-shadow: none;
}
.wechat-quick-reaction-glyph {
  min-width: 18px;
  height: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  font-size: 17px;
  line-height: 1;
  transition: transform .14s ease, color .14s ease;
}
.wechat-quick-reaction-glyph.is-exclamation {
  width: 23px;
  gap: 2px;
}
.wechat-quick-reaction-glyph.is-exclamation i {
  width: auto;
  display: block;
  font-size: 14px;
  line-height: 1;
  transform: none;
}
.wechat-quick-reaction-glyph.is-question {
  font-size: 17px;
  line-height: 1;
}
.wechat-message-reactions .wechat-quick-reaction-glyph.is-exclamation { gap: 1px; }
.wechat-message-reactions .wechat-quick-reaction-glyph.is-exclamation i { font-size:calc(9px * var(--vie-font-scale)); }
.wechat-message-reactions .wechat-quick-reaction-glyph.is-question { font-size: 10px; }
.wechat-quick-reactions button:is(:active,.is-selected) .wechat-quick-reaction-glyph {
  color: var(--vie-chat-quick-active);
  transform: scale(1.16);
}
.wechat-quick-reactions button.is-selected::after {
  position: absolute;
  right: 50%;
  bottom: 1px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--vie-chat-quick-active);
  transform: translateX(50%);
  content: "";
}
.wechat-quick-message-slot { width: 100%; min-width: 0; }
.wechat-quick-message-slot .wechat-chat-message {
  margin: 0;
  opacity: 1;
  pointer-events: none;
}
.wechat-quick-message-slot .wechat-message-reactions { display: none; }
.wechat-quick-action-panel[hidden] { display: none; }
.wechat-quick-action-panel {
  width: 100%;
  animation: wechat-quick-panel-in .13s ease-out;
}
.wechat-quick-actions button {
  position: relative;
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  color: var(--vie-chat-quick-text);
  background: transparent;
  text-align: left;
}
.wechat-quick-actions button:not(:last-child)::after {
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: .5px;
  background: var(--vie-chat-quick-divider);
  content: "";
}
.wechat-quick-actions button span { font-size:calc(11px * var(--vie-font-scale)); line-height: 12px; font-weight: 500; }
.wechat-quick-actions button i {
  width: 16px;
  flex: 0 0 16px;
  color: var(--vie-chat-quick-muted);
  font-size: 12px;
  text-align: center;
}
.wechat-quick-actions button:active { background: var(--vie-chat-quick-press); }
.wechat-quick-actions button.is-destructive { color: var(--vie-chat-quick-destructive); }
.wechat-quick-actions button.is-destructive i { color: var(--vie-chat-quick-destructive-icon); }
.wechat-message-quick-menu.is-busy .wechat-quick-stage { opacity: .72; }
.wechat-message-quick-menu.is-busy .wechat-quick-actions::after {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 2px solid var(--vie-chat-quick-spinner-track);
  border-top-color: var(--vie-chat-quick-spinner-head);
  border-radius: 50%;
  animation: wechat-quick-spin .72s linear infinite;
  content: "";
}
@keyframes wechat-quick-panel-in {
  from { opacity: 0; transform: translateX(5px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes wechat-quick-stage-in {
  from { opacity: 0; transform: scale(.975) translateY(5px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes wechat-quick-spin { to { transform: rotate(360deg); } }
@media (max-width: 360px) {
  .wechat-quick-reactions button { width: 33px; flex-basis: 33px; }
  .wechat-quick-actions { width: min(58%, 186px); }
}
@media (prefers-reduced-motion: reduce) {
  .wechat-quick-stage { animation: none; }
  .wechat-quick-reaction-glyph { transition: none; }
  .wechat-quick-action-panel { animation: none; }
}

/* 图片与表情消息不绘制通用文本气泡。 */
.wechat-chat-special-bubble button { font: inherit; text-align: left; }
.wechat-chat-special-bubble button:active { transform: scale(.985); }
.wechat-money-card,
.wechat-location-card,
.wechat-compact-card,
.wechat-anonymous-card,
.wechat-camera-card {
  border: 0;
  background: var(--vie-chat-card-surface);
  box-shadow: var(--vie-chat-card-shadow);
}
.wechat-money-card {
  width: min(58vw, 210px);
  display: block;
  overflow: hidden;
  border-radius: 12px;
  color: var(--vie-chat-card-ink);
}
.wechat-location-card {
  width: min(64vw, 226px);
  display: block;
  overflow: hidden;
  border-radius: 12px;
}
.wechat-compact-card {
  min-width: 194px;
  min-height: 60px;
  display: grid;
  grid-template-columns: 40px minmax(0,1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  color: var(--vie-chat-card-ink);
}
.wechat-anonymous-card {
  min-width: 200px;
  min-height: 62px;
  display: grid;
  grid-template-columns: 40px minmax(0,1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  color: var(--vie-chat-card-ink);
}

.wechat-chat-special-bubble .wechat-camera-card {
  width: min(40vw, 150px);
  aspect-ratio: 1;
  display: grid;
  grid-template-rows: minmax(0,1fr) auto;
  gap: 7px;
  padding: 7px;
  overflow: hidden;
  border-radius: 13px;
  color: var(--vie-chat-card-ink);
  text-align: center;
}
.wechat-camera-card-image {
  width: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  color: var(--vie-chat-card-soft-ink);
  background: var(--vie-chat-card-soft);
  font-size:calc(18px * var(--vie-font-scale));
}
.wechat-camera-card-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.wechat-camera-card-copy { min-width: 0; display: grid; justify-items: center; gap: 1px; padding: 0 3px 2px; }
.wechat-camera-card-copy strong,
.wechat-camera-card-copy small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}
.wechat-camera-card-copy strong {
  font-size: calc(11px * var(--vie-font-scale));
  line-height: 15px;
  font-weight: 700;
}
.wechat-camera-card-copy small {
  color: var(--vie-chat-card-muted);
  font-size: calc(9px * var(--vie-font-scale));
  line-height: 12px;
}

.wechat-image-message {
  position: relative;
  width: min(64vw, 250px);
  display: block;
  overflow: hidden;
  border: 0;
  border-radius: 13px;
  background: var(--vie-chat-image-placeholder);
  box-shadow: var(--vie-chat-card-shadow);
}
.wechat-image-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.wechat-image-track::-webkit-scrollbar { display: none; }
.wechat-image-slide { position: relative; width: 100%; min-width: 100%; aspect-ratio: 4 / 5; display: block; overflow: hidden; scroll-snap-align: start; background: var(--vie-chat-image-placeholder); }
.wechat-image-slide img { width: 100%; height: 100%; display: block; object-fit: cover; }
.wechat-image-progress { position: absolute; right: 8px; bottom: 8px; left: 8px; display: flex; gap: 3px; pointer-events: none; }
.wechat-image-progress i { height: 3px; flex: 1 1 0; border-radius: 999px; background: rgba(255,255,255,.45); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.wechat-image-progress i.is-active { background: rgba(255,255,255,.98); }

.wechat-voice-message {
  width: 104px;
  max-width: 100%;
  display: block;
  overflow: visible;
  margin: 0;
  text-align: left;
}
.wechat-voice-message[aria-expanded="true"] { width: fit-content; min-width: 104px; }
.wechat-voice-main { width: 100%; min-width: 0; min-height: 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wechat-voice-wave { height: 13px; display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-start; gap: 3px; color: currentColor; }
.wechat-voice-wave i { width: 2px; min-width: 2px; flex: 0 0 2px; border-radius: 999px; background: currentColor; transform-origin: center; }
.wechat-voice-message[aria-expanded="true"] .wechat-voice-wave i { animation: vie-voice-wave 1.04s ease-in-out infinite; }
.wechat-voice-message[aria-expanded="true"] .wechat-voice-wave i:nth-child(1) { animation-delay: -.32s; animation-duration: .94s; }
.wechat-voice-message[aria-expanded="true"] .wechat-voice-wave i:nth-child(2) { animation-delay: -.17s; animation-duration: 1.08s; }
.wechat-voice-message[aria-expanded="true"] .wechat-voice-wave i:nth-child(3) { animation-delay: -.43s; animation-duration: .88s; }
.wechat-voice-message[aria-expanded="true"] .wechat-voice-wave i:nth-child(4) { animation-delay: -.08s; animation-duration: 1.12s; }
.wechat-voice-message[aria-expanded="true"] .wechat-voice-wave i:nth-child(5) { animation-delay: -.25s; animation-duration: .98s; }
@keyframes vie-voice-wave { 0%,100% { transform: scaleY(.66); opacity: .76; } 34% { transform: scaleY(1.08); opacity: 1; } 68% { transform: scaleY(.84); opacity: .9; } }
.wechat-voice-wave i:nth-child(1),
.wechat-voice-wave i:nth-child(5) { height: 7px; }
.wechat-voice-wave i:nth-child(2),
.wechat-voice-wave i:nth-child(4) { height: 12px; }
.wechat-voice-wave i:nth-child(3) { height: 17px; }
.wechat-voice-duration { flex: 0 0 auto; color: currentColor; font-size:calc(13px * var(--vie-font-scale)); line-height: 13px; font-weight: 600; white-space: nowrap; }
.wechat-voice-transcript { width: 100%; min-width: 0; max-width: 100%; display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--vie-chat-transcript-divider); color: inherit; font-size:calc(13px * var(--vie-font-scale)); line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.wechat-voice-transcript[hidden] { display: none; }
.wechat-money-card-main { min-height: 72px; display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 10px; padding: 11px 12px; background: var(--vie-chat-money-gradient); }
.wechat-money-card-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: var(--vie-chat-card-accent); font-size: 16px; }
.wechat-money-card.is-transfer .wechat-money-card-icon { border-radius: 50%; }
.wechat-money-card-copy { min-width: 0; display: grid; gap: 2px; }
.wechat-money-card-copy strong { overflow: hidden; color: var(--vie-chat-card-ink); font-size:calc(17px * var(--vie-font-scale)); line-height: 21px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.wechat-money-card-copy small { overflow: hidden; color: var(--vie-chat-card-muted); font-size:calc(10px * var(--vie-font-scale)); line-height: 14px; text-overflow: ellipsis; white-space: nowrap; }
.wechat-money-card-footer { min-height: 25px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 10px; border-top: 1px solid var(--vie-chat-card-divider); color: var(--vie-chat-card-faint); background: var(--vie-chat-card-surface); font-size:calc(9px * var(--vie-font-scale)); }
.wechat-money-card-footer small { overflow: hidden; color: inherit; font-size:calc(8px * var(--vie-font-scale)); text-overflow: ellipsis; white-space: nowrap; }
.wechat-forward-bundle-card {
  width: min(66vw, 250px);
  display: grid;
  gap: 9px;
  padding: 13px;
  border: .5px solid var(--vie-chat-card-divider);
  border-radius: 14px;
  color: var(--vie-chat-card-ink);
  background: var(--vie-chat-card-surface);
  box-shadow: var(--vie-chat-bubble-shadow);
  text-align: left;
}
.wechat-forward-bundle-card > strong { font-size:calc(12px * var(--vie-font-scale)); line-height: 17px; font-weight: 680; }
.wechat-forward-bundle-preview { min-width: 0; display: grid; gap: 5px; }
.wechat-forward-bundle-preview span { min-width: 0; overflow: hidden; color: var(--vie-chat-card-muted); font-size:calc(9px * var(--vie-font-scale)); line-height: 14px; text-overflow: ellipsis; white-space: nowrap; }
.wechat-forward-bundle-preview b { margin-right: 5px; color: var(--vie-chat-card-ink); font-weight: 650; }
.wechat-forward-bundle-card > small { padding-top: 8px; border-top: .5px solid var(--vie-chat-card-divider); color: var(--vie-chat-card-faint); font-size:calc(8px * var(--vie-font-scale)); }
.wechat-forward-bundle-detail { display: grid; gap: 10px; }
.wechat-forward-bundle-record { padding: 12px 13px; border: .5px solid var(--vie-page-divider-soft); border-radius: 14px; background: var(--vie-page-surface-strong); }
.wechat-forward-bundle-record header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wechat-forward-bundle-record strong { font-size:calc(11px * var(--vie-font-scale)); font-weight: 650; }
.wechat-forward-bundle-record time { color: var(--wechat-muted); font-size:calc(8px * var(--vie-font-scale)); }
.wechat-forward-bundle-record p { margin: 7px 0 0; color: var(--wechat-ink); font-size:calc(11px * var(--vie-font-scale)); line-height: 17px; white-space: pre-wrap; overflow-wrap: anywhere; }
.wechat-money-dialog {
  position: absolute;
  z-index: 46;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}
.wechat-money-dialog[hidden] { display: none; }
.wechat-money-dialog-backdrop { position: absolute; inset: 0; border: 0; background: rgba(10,10,12,.46); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.wechat-money-dialog-card {
  position: relative;
  z-index: 1;
  width: min(100%, 292px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px 22px 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 24px;
  color: var(--vie-text-primary);
  background: var(--vie-page-surface-strong);
  box-shadow: 0 24px 70px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.72);
  backdrop-filter: blur(22px) saturate(115%);
  -webkit-backdrop-filter: blur(22px) saturate(115%);
}
.wechat-money-dialog-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 18px;
  color: #fff;
  background: var(--logo-color);
  box-shadow: 0 9px 24px rgba(0,0,0,.13);
  font-size: 21px;
}
.wechat-money-dialog.is-transfer .wechat-money-dialog-icon { border-radius: 50%; }
.wechat-money-dialog-card > strong { font-size:calc(15px * var(--vie-font-scale)); line-height: 21px; font-weight: 680; }
.wechat-money-dialog-amount { margin-top: 8px; font-size:calc(31px * var(--vie-font-scale)); line-height: 38px; font-weight: 760; letter-spacing: -.8px; }
.wechat-money-dialog-card > p { max-width: 100%; margin: 8px 0 0; overflow: hidden; color: var(--vie-text-muted); font-size:calc(11px * var(--vie-font-scale)); line-height: 17px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.wechat-money-dialog-card > small { margin-top: 5px; color: var(--vie-text-faint); font-size:calc(9px * var(--vie-font-scale)); line-height: 14px; text-align: center; }
.wechat-money-dialog-actions { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-top: 21px; }
.wechat-money-dialog.is-status-only .wechat-money-dialog-actions { grid-template-columns: 1fr; }
.wechat-money-dialog-actions button {
  min-height: 43px;
  border: .5px solid var(--vie-page-divider-soft);
  border-radius: 14px;
  color: var(--vie-text-primary);
  background: var(--vie-page-soft-surface);
  font: inherit;
  font-size:calc(12px * var(--vie-font-scale));
  font-weight: 600;
}
.wechat-money-dialog-actions button.is-primary { border-color: transparent; color: #fff; background: var(--vie-action-color); }
.wechat-money-dialog.is-red-packet .wechat-money-dialog-actions button.is-primary { background: var(--vie-action-color); }
.wechat-money-dialog-actions button:disabled { opacity: .46; }
.wechat-money-dialog.is-busy .wechat-money-dialog-card { pointer-events: none; }
.wechat-location-copy { min-height: 58px; display: grid; grid-template-columns: minmax(0,1fr) 30px; align-items: center; gap: 9px; padding: 9px 11px; }
.wechat-location-copy > span { min-width: 0; }
.wechat-location-copy strong,
.wechat-location-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wechat-location-copy strong {
  color: var(--vie-chat-card-strong);
  font-size: calc(12px * var(--vie-font-scale));
  line-height: 13px;
  font-weight: 700;
}
.wechat-location-copy small {
  margin-top: 2px;
  color: var(--vie-chat-card-muted);
  font-size: calc(9px * var(--vie-font-scale));
  line-height: 13px;
}

.wechat-location-copy > i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--vie-chat-card-accent); font-size: 11px; }
.wechat-location-map { position: relative; height: 91px; display: block; overflow: hidden; border-top: 1px solid var(--vie-chat-card-divider); background: linear-gradient(30deg, transparent 0 30%, var(--vie-chat-map-road) 31% 38%, transparent 39% 100%), linear-gradient(145deg, var(--vie-chat-map-surface-a) 0 32%, var(--vie-chat-map-surface-b) 33% 62%, var(--vie-chat-map-surface-c) 63% 100%); }
.wechat-location-map::before { position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, var(--vie-chat-map-grid) 1px, transparent 0); background-size: 18px 18px; content: ""; }
.wechat-map-road { position: absolute; height: 5px; border: 1px solid var(--vie-chat-map-road-border); border-radius: 999px; background: var(--vie-chat-map-road); box-shadow: 0 0 0 2px var(--vie-chat-map-road-ring); }
.wechat-map-road.road-a { width: 140px; top: 31px; left: -18px; transform: rotate(-18deg); }
.wechat-map-road.road-b { width: 126px; right: -30px; bottom: 21px; transform: rotate(22deg); }
.wechat-map-road.road-c { width: 88px; top: 41px; right: 40px; transform: rotate(82deg); }
.wechat-location-pin { position: absolute; top: 27px; left: 54%; width: 27px; height: 27px; display: grid; place-items: center; transform: translateX(-50%); border: 3px solid #fff; border-radius: 50% 50% 50% 6px; color: #fff; background: var(--vie-chat-card-accent); box-shadow: 0 4px 9px rgba(48,48,54,.18); font-size:calc(11px * var(--vie-font-scale)); }
.wechat-location-map-label { position: absolute; top: 59px; left: 54%; transform: translateX(-50%); padding: 2px 7px; border-radius: 999px; color: var(--vie-chat-map-label-ink); background: var(--vie-chat-map-label-surface); box-shadow: 0 2px 6px rgba(48,48,54,.10); font-size:calc(8px * var(--vie-font-scale)); white-space: nowrap; }
.wechat-location-meta { min-height: 24px; display: flex; align-items: center; padding: 4px 10px; color: var(--vie-chat-card-faint); font-size:calc(8px * var(--vie-font-scale)); }
.wechat-sticker-message { position: relative; max-width: min(38vw, 132px); display: block; overflow: visible; border-radius: 0; padding: 0; }
.wechat-sticker-message img { max-width: 100%; max-height: 132px; display: block; border-radius: 0; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(48,48,54,.12)); }
.wechat-sticker-message > i { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 16px; color: var(--vie-chat-card-muted); background: var(--vie-chat-card-surface); font-size: 22px; }
.wechat-compact-card.wechat-interactive-card { grid-template-columns: 40px minmax(0,1fr) 12px; border: 0; background: var(--vie-chat-card-surface); box-shadow: var(--vie-chat-card-shadow); }
.wechat-compact-card.wechat-interactive-card > i:last-child,
.wechat-anonymous-card.wechat-interactive-card > i:last-child { color: var(--vie-chat-card-faint); font-size:calc(9px * var(--vie-font-scale)); }
.wechat-compact-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--vie-chat-card-accent); font-size: 14px; }
.wechat-compact-icon.is-together,
.wechat-compact-icon.is-offline { border-radius: 13px; }
.wechat-compact-card > span:nth-child(2) { min-width: 0; }
.wechat-compact-card strong,
.wechat-compact-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wechat-compact-card strong {
  color: var(--vie-chat-card-strong);
  font-size: calc(12px * var(--vie-font-scale));
  line-height: 17px;
  font-weight: 700;
}
.wechat-compact-card small {
  margin-top: 2px;
  color: var(--vie-chat-card-muted);
  font-size: calc(9px * var(--vie-font-scale));
  line-height: 13px;
}

.wechat-anonymous-card.wechat-interactive-card { grid-template-columns: 40px minmax(0,1fr) 12px; border: 0; background: var(--vie-chat-card-surface); box-shadow: var(--vie-chat-card-shadow); }
.wechat-anonymous-card > i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--vie-chat-card-accent); font-size: 14px; }
.wechat-anonymous-card strong,
.wechat-anonymous-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wechat-anonymous-card strong {
  font-size: calc(12px * var(--vie-font-scale));
  line-height: 17px;
  font-weight: 700;
}
.wechat-anonymous-card small {
  margin-top: 2px;
  max-width: 130px;
  color: var(--vie-chat-card-muted);
  font-size: calc(9px * var(--vie-font-scale));
}

.wechat-chat-panel-stack {
  position: absolute;
  z-index: 10;
  right: 12px;
  bottom: calc(var(--wechat-composer-base-height) + 8px + var(--vie-safe-bottom));
  left: 12px;
  min-width: 0;
  pointer-events: none;
}
.wechat-chat-panel-stack > * { pointer-events: auto; }
.wechat-chat-sticker-panel {
  height: min(32vh, 224px);
  min-height: 176px;
  margin: 0;
  padding: 10px 10px 11px;
  overflow: hidden;
  border: 1px solid var(--vie-chat-glass-border-soft);
  border-radius: 22px;
  background: var(--vie-chat-glass-surface-strong);
  box-shadow: var(--vie-chat-glass-shadow);
  backdrop-filter: blur(12px) saturate(0);
  -webkit-backdrop-filter: blur(12px) saturate(0);
}
.wechat-chat-sticker-panel:not([hidden]) { display: grid; grid-template-rows: 36px minmax(0,1fr); }
.wechat-chat-sticker-groups { display: flex; gap: 7px; overflow-x: auto; padding: 0 2px 7px; scrollbar-width: none; }
.wechat-chat-sticker-groups::-webkit-scrollbar { display: none; }
.wechat-chat-sticker-groups button { flex: 0 0 auto; min-height: 25px; padding: 0 9px; border: 0; border-radius: 999px; color: var(--vie-chat-panel-pill-ink); background: transparent; box-shadow: none; opacity: .72; font-size:calc(9px * var(--vie-font-scale)); }
.wechat-chat-sticker-groups button.is-active { color: inherit; background: transparent; opacity: 1; font-weight: 700; }
.wechat-chat-sticker-grid { min-width: 0; min-height: 0; height: 100%; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); grid-auto-rows: 62px; align-content: start; gap: 5px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 3px 3px 10px; scrollbar-width: thin; }
.wechat-chat-sticker-grid[hidden] { display: none; }
.wechat-chat-sticker-grid button { min-width: 0; width: 100%; height: 62px; display: grid; place-items: center; overflow: visible; padding: 4px; border: 0; border-radius: 12px; background: transparent; }
.wechat-chat-sticker-grid button:active { transform: scale(.96); background: transparent; }
.wechat-chat-sticker-grid img { width: 100%; height: 100%; max-width: 54px; max-height: 54px; display: block; border-radius: 8px; object-fit: contain; }
.wechat-chat-sticker-grid button > span { display: none; }
.wechat-chat-sticker-grid button > i { color: var(--vie-chat-panel-icon); font-size: 20px; }
.wechat-chat-sticker-empty { min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: var(--vie-chat-card-muted); font-size:calc(10px * var(--vie-font-scale)); }
.wechat-chat-sticker-empty[hidden] { display: none; }
.wechat-chat-sticker-empty i { font-size: 24px; }

.wechat-chat-image-viewer {
  position: absolute;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  touch-action: none;
  background: rgba(7,8,11,.96);
}
.wechat-chat-image-viewer[hidden] { display: none; }
.wechat-chat-image-viewer > img { max-width: 100%; max-height: 100%; display: block; object-fit: contain; transition: transform .18s ease; will-change: transform; }
.wechat-chat-image-viewer.is-dragging > img { transition: none; }
.wechat-chat-image-viewer-close,
.wechat-chat-image-viewer-actions button {
  display: grid;
  place-items: center;
  border: .5px solid rgba(255,255,255,.14);
  color: #fff;
  background: rgba(30,32,37,.62);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.wechat-chat-image-viewer-close {
  position: absolute;
  z-index: 2;
  top: calc(12px + env(safe-area-inset-top,0px));
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.wechat-chat-image-viewer-actions button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: calc(13px * var(--vie-font-scale));
}

.wechat-chat-image-viewer-progress { position: absolute; z-index: 2; top: calc(16px + env(safe-area-inset-top,0px)); right: 62px; left: 62px; display: flex; gap: 4px; pointer-events: none; }
.wechat-chat-image-viewer-progress[hidden] { display: none; }
.wechat-chat-image-viewer-progress i { height: 2px; flex: 1 1 0; border-radius: 999px; background: rgba(255,255,255,.28); }
.wechat-chat-image-viewer-progress i.is-active { background: rgba(255,255,255,.96); }
.wechat-chat-image-viewer-count { position: absolute; top: calc(25px + env(safe-area-inset-top,0px)); left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.78); font-size:calc(9px * var(--vie-font-scale)); }
.wechat-chat-image-viewer-actions { position: absolute; right: 12px; bottom: calc(14px + var(--vie-safe-bottom)); display: flex; gap: 8px; }

.wechat-conversation.has-chat-wallpaper {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.wechat-chat-scroll.has-chat-wallpaper::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--vie-chat-wallpaper-scrim);
}
.wechat-chat-scroll.has-chat-wallpaper > * { position: relative; z-index: 1; }

/* 电话入口与通话页：图标统一使用 Font Awesome Classic Solid。 */
.wechat-call-sheet-handle {
  width: 38px;
  height: 4px;
  margin: 0 auto 7px;
  border-radius: 999px;
  background: var(--vie-page-divider);
}
.wechat-call-page {
  position: absolute;
  z-index: 70;
  inset: 0;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  overflow: hidden;
}
.wechat-call-page[hidden] { display: none; }
.wechat-call-top {
  min-width: 0;
  justify-content: space-between;
}
.wechat-call-state,
.wechat-call-contact {
  min-width: 0;
}
.wechat-call-state {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
#wechat-call-scale {
  place-items: center;
  border: 1px solid var(--vie-page-divider-soft);
  border-radius: 50%;
  font-size: 13px;
}
.wechat-call-state > i {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  margin-bottom: 5px;
  font-size: 13px;
  line-height: 17px;
}
.wechat-call-state strong {
  max-width: 100%;
  overflow: hidden;
  font-size: calc(13px * var(--vie-font-scale));
  line-height: 17px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wechat-call-state small {
  max-width: 100%;
  overflow: hidden;
  margin-top: 3px;
  font-size: calc(8.5px * var(--vie-font-scale));
  line-height: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.wechat-call-contact {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wechat-call-contact > strong {
  min-width: 0;
  overflow: hidden;
  font-size: calc(14px * var(--vie-font-scale));
  line-height: 19px;
  font-weight: 700;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wechat-call-avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--vie-page-divider-soft);
  border-radius: 50%;
  color: var(--vie-page-icon-color);
  background: var(--vie-page-soft-surface);
  box-shadow: var(--vie-chat-avatar-shadow);
  font-size: 19px;
}
.wechat-call-avatar img {
  width: 100%;
  height: 100%;
  display: block;
}
.wechat-call-avatar video,
.wechat-call-avatar > span {
  width: 100%;
  height: 100%;
}
.wechat-call-avatar img,
.wechat-call-avatar video { object-fit: cover; }
.wechat-call-avatar video { display: none; transform: scaleX(-1); background: #111; }
.wechat-call-avatar > span { display: grid; place-items: center; }
.wechat-call-avatar.is-camera-on video { display: block; }
.wechat-call-avatar.is-camera-on > span { display: none; }
.wechat-call-stage {
  flex-direction: column;
}
.wechat-call-stage > i { font-size: clamp(54px, 17vw, 86px); transform: scaleX(1.35); }
.wechat-call-page.is-connected .wechat-call-stage > i { animation: wechat-call-wave 1.8s ease-in-out infinite; }
@keyframes wechat-call-wave { 0%,100% { opacity: .34; transform: scaleX(1.25) scaleY(.92); } 50% { opacity: .72; transform: scaleX(1.45) scaleY(1.06); } }
.wechat-call-peer-visual { display: none; }

.wechat-call-transcript[hidden] { display: none; }
.wechat-call-transcript p {
  max-width: 88%;
  border-radius: 14px 14px 4px 14px;
}

.wechat-call-bottom {
  display: flex;
  flex-direction: column;
}
.wechat-call-input {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 42px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--vie-input-glass-border);
  border-radius: 23px;
}
.wechat-call-input label { min-width: 0; display: block; }
.wechat-call-input input {
  width: 100%;
  height: 42px;
  padding: 0 5px 0 15px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: calc(12px * var(--vie-font-scale));
}

.wechat-call-input button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
}
.wechat-call-input button:disabled,
.wechat-call-input input:disabled { opacity: .46; }
.wechat-call-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  align-items: start;
  gap: 12px;
}
.wechat-call-controls > button {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: calc(9px * var(--vie-font-scale));
}
.wechat-call-controls > button > i {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--vie-page-divider-soft);
  border-radius: 50%;
  font-size: 18px;
}

.wechat-call-controls > button.is-hangup > i {
  border-color: transparent;
}
.wechat-call-controls > button:disabled { opacity: .42; }
.wechat-call-controls > button:active > i { transform: scale(.94); }
.wechat-call-page[data-call-type="phone"] [data-wechat-call-control="camera"],
.wechat-call-page[data-call-type="video"] [data-wechat-call-control="microphone"] { display: none; }
.wechat-call-page[data-call-type="phone"] [data-wechat-call-control="speaker"] { order: 1; }
.wechat-call-page[data-call-type="phone"] [data-wechat-call-control="hangup"] { order: 2; }
.wechat-call-page[data-call-type="phone"] [data-wechat-call-control="microphone"] { order: 3; }
.wechat-call-page[data-call-type="video"] [data-wechat-call-control="camera"] { order: 1; }
.wechat-call-page[data-call-type="video"] [data-wechat-call-control="hangup"] { order: 2; }
.wechat-call-page[data-call-type="video"] [data-wechat-call-control="speaker"] { order: 3; }
.wechat-call-live-status {
  min-height: 14px;
  margin: -11px 4px 0;
  overflow: hidden;
  font-size: calc(8px * var(--vie-font-scale));
  line-height: 14px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 视频通话：对方头像作为主画面，我方头像/真实相机固定为右上角 3:4 预览。 */

.wechat-call-page[data-call-type="video"] .wechat-call-top {
  position: relative;
  z-index: 3;
}

.wechat-call-page[data-call-type="video"] .wechat-call-state > i { display: none; }
.wechat-call-page[data-call-type="video"] .wechat-call-state strong {
  font-size: calc(14px * var(--vie-font-scale));
  line-height: 19px;
}

.wechat-call-page[data-call-type="video"] .wechat-call-contact > strong { display: none; }
.wechat-call-page[data-call-type="video"] .wechat-call-avatar {
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.13);
  box-shadow: 0 9px 26px rgba(0,0,0,.24);
  font-size: 22px;
}

.wechat-call-page[data-call-type="video"] .wechat-call-transcript:not([hidden]) {
  position: absolute;
  z-index: 2;
  inset: auto 15px 14px;
  width: auto;
  max-height: min(32vh,230px);
  display: flex;
  align-items: stretch;
  gap: 6px;
  pointer-events: none;
  color: #fff;
  -webkit-mask-image: linear-gradient(180deg,transparent 0,#000 18px,#000 100%);
  mask-image: linear-gradient(180deg,transparent 0,#000 18px,#000 100%);
}
.wechat-call-page[data-call-type="video"] .wechat-call-transcript p {
  align-self: flex-end;
  border-color: rgba(255,255,255,.16);
}

.wechat-call-page[data-call-type="video"] .wechat-call-transcript p.is-visual { color: rgba(255,255,255,.94); font-style: italic; }

.wechat-call-page[data-call-type="video"] .wechat-call-peer-visual img {
  display: block;
}
.wechat-call-page[data-call-type="video"] .wechat-call-bottom {
  padding-top: 4px;
}

.wechat-call-page[data-call-type="video"].is-minimized .wechat-call-top {
  position: absolute;
  z-index: 5;
  inset: 0 auto auto 0;
}

.wechat-call-page[data-call-type="video"].is-minimized .wechat-call-state > strong,
.wechat-call-page[data-call-type="video"].is-minimized .wechat-call-state > small,
.wechat-call-page[data-call-type="video"].is-minimized .wechat-call-contact,
.wechat-call-page[data-call-type="video"].is-minimized .wechat-call-bottom { display: none; }
.wechat-call-page[data-call-type="video"].is-minimized .wechat-call-stage {
  width: 100%;
  height: 100%;
}

.wechat-call-voice-dialog {
  position: absolute;
  z-index: 78;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.wechat-call-voice-dialog[hidden] { display: none; }
.wechat-call-voice-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(0,0,0,.38);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.theme-dark .wechat-call-voice-backdrop { background: rgba(0,0,0,.58); }
.wechat-call-voice-sheet {
  position: relative;
  width: min(100%, 560px);
  max-height: min(82vh, 620px);
  padding: 7px 12px calc(12px + var(--vie-safe-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--vie-page-divider-soft);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  color: var(--vie-text-primary);
  background: var(--vie-page-background-color);
  box-shadow: 0 -18px 48px rgba(0,0,0,.18);
}
.wechat-call-voice-sheet > header {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 6px 8px;
}
.wechat-call-voice-sheet > header > span { min-width: 0; }
.wechat-call-voice-sheet > header strong,
.wechat-call-voice-sheet > header small { display: block; }
.wechat-call-voice-sheet > header strong { font-size: calc(14px * var(--vie-font-scale)); line-height: 20px; font-weight: 680; }
.wechat-call-voice-sheet > header small { margin-top: 2px; color: var(--vie-text-muted); font-size: calc(8.5px * var(--vie-font-scale)); line-height: 13px; }
.wechat-call-voice-sheet > header button {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--vie-text-secondary);
  background: var(--vie-page-soft-surface);
  font-size: 15px;
}
.wechat-call-voice-section { margin-top: 4px; padding: 12px; border: 1px solid var(--vie-page-divider-soft); border-radius: 17px; background: var(--vie-page-surface-strong); }
.wechat-call-voice-section > strong { display: block; margin: 0 2px 9px; font-size: calc(10px * var(--vie-font-scale)); line-height: 15px; font-weight: 680; }
.wechat-call-language-bar {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 1px 1px 4px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.wechat-call-language-bar::-webkit-scrollbar { display: none; }
.wechat-call-language-bar > button {
  min-height: 32px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid var(--vie-page-divider-soft);
  border-radius: 999px;
  color: var(--vie-text-secondary);
  background: var(--vie-page-soft-surface);
  font-size: calc(9px * var(--vie-font-scale));
  font-weight: 600;
  scroll-snap-align: start;
}
.wechat-call-language-bar > button[aria-selected="true"] { border-color: var(--vie-page-icon-color); color: var(--vie-page-background-color); background: var(--vie-page-icon-color); }
.wechat-call-voice-options { margin-top: 9px; overflow: hidden; border: 1px solid var(--vie-page-divider-soft); border-radius: 17px; background: var(--vie-page-surface-strong); }
.wechat-call-voice-options > button {
  position: relative;
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 28px;
  align-items: center;
  gap: 12px;
  padding: 9px 13px;
  color: var(--vie-text-primary);
  text-align: left;
}
.wechat-call-voice-options > button + button::before { position: absolute; top: 0; right: 13px; left: 13px; height: 1px; background: var(--vie-page-divider-soft); content: ""; }
.wechat-call-voice-options strong,
.wechat-call-voice-options small { display: block; }
.wechat-call-voice-options strong { font-size: calc(11px * var(--vie-font-scale)); line-height: 17px; font-weight: 650; }
.wechat-call-voice-options small { margin-top: 2px; color: var(--vie-text-muted); font-size: calc(8.5px * var(--vie-font-scale)); line-height: 13px; }
.wechat-call-voice-options > button > i { justify-self: end; color: var(--vie-text-faint); font-size: 22px; }
.wechat-call-voice-options > button[aria-checked="true"] > i { color: var(--vie-page-icon-color); }
.wechat-call-voice-status { min-height: 15px; margin: 8px 4px 0; color: var(--vie-text-muted); font-size: calc(8.5px * var(--vie-font-scale)); line-height: 15px; text-align: center; overflow-wrap: anywhere; }
.wechat-call-voice-done { width: 100%; min-height: 44px; margin-top: 7px; border-radius: 14px; color: var(--vie-page-background-color); background: var(--vie-page-icon-color); font-size: calc(12px * var(--vie-font-scale)); font-weight: 680; }

.wechat-chat-tts-status {
  min-width: 22px;
  height: 18px;
  display: none;
  place-items: center;
  margin-top: 3px;
  border-radius: 999px;
  color: var(--vie-chat-meta);
  background: color-mix(in srgb,var(--vie-chat-card-surface) 78%,transparent);
  font-size: 9px;
}
.wechat-chat-message.is-tts-generating .wechat-chat-tts-status,
.wechat-chat-message.is-tts-playing .wechat-chat-tts-status { display: grid; }
.wechat-chat-message.is-tts-playing .wechat-chat-tts-status { color: var(--vie-page-icon-color); }

/* 聊天设置是会话内部的独立页面，与聊天正文共用同一页面栈。 */
.vie-viewport.wechat-chat-detail-global-page-open:not(.page-decorations-hidden) .star-field:not([hidden]) {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.wechat-chat-detail-page {
  position: absolute;
  z-index: 42;
  inset: 0;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--wechat-ink);
  background: transparent;
}
.wechat-app.is-chat-detail-open .wechat-conversation { background-color: transparent; background-image: none; }
.wechat-app.is-chat-detail-open .wechat-chat-header,
.wechat-app.is-chat-detail-open .wechat-chat-body { visibility: hidden; }
.wechat-app.is-chat-detail-open .wechat-chat-detail-page,
.wechat-app.is-chat-detail-open .wechat-chat-detail-page * { visibility: visible; }
.wechat-chat-detail-page[hidden] { display: none; }
.wechat-chat-detail-head.vie-app-navbar {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  height: calc(var(--status-bar-space) + var(--app-navbar-height));
  min-height: calc(var(--status-bar-space) + var(--app-navbar-height));
  flex: 0 0 calc(var(--status-bar-space) + var(--app-navbar-height));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 14px;
  padding: var(--status-bar-space) var(--wechat-chat-side) 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.wechat-chat-detail-back {
  min-width: 0;
  max-width: 100%;
  min-height: 38px;
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 0 2px;
  overflow: hidden;
}
.wechat-chat-detail-back span {
  min-width: 0;
  overflow: hidden;
  color: var(--vie-text-primary);
  font-size: var(--vie-nav-title-size);
  line-height: var(--vie-nav-title-line-height);
  font-weight: 600;
  letter-spacing: -.2px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wechat-chat-detail-back svg {
  width: var(--vie-nav-leading-icon-size);
  height: var(--vie-nav-leading-icon-size);
  flex: 0 0 auto;
  fill: currentColor;
  stroke: none;
  opacity: .9;
}
.wechat-chat-detail-head-actions {
  min-width: 0;
  height: var(--app-navbar-control-height);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}
.wechat-chat-detail-head-actions[hidden] { display: none; }
.wechat-chat-detail-head-actions button {
  width: var(--vie-nav-action-hit-size);
  min-width: var(--vie-nav-action-hit-size);
  height: var(--vie-nav-action-hit-size);
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: var(--vie-nav-icon-color);
  background: transparent;
}
.wechat-chat-detail-head-actions button svg {
  width: var(--vie-nav-action-icon-size);
  height: var(--vie-nav-action-icon-size);
}
.wechat-chat-detail-head-actions button.is-active {
  color: var(--vie-text-primary);
  background: var(--vie-page-soft-surface);
}
.wechat-chat-detail-content {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px var(--wechat-side) calc(24px + var(--vie-safe-bottom));
  outline: 0;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.wechat-chat-detail-participants {
  min-height: 124px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 52px minmax(0,1fr);
  align-items: center;
  padding: 8px 18px 14px;
}
.wechat-chat-detail-person {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.wechat-chat-detail-person .wechat-avatar { width: 58px; height: 58px; }
.wechat-chat-detail-person strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--wechat-ink);
  font-size:calc(11px * var(--vie-font-scale));
  line-height: 16px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wechat-chat-detail-link {
  height: .5px;
  background: repeating-linear-gradient(90deg, rgba(142,142,147,.65) 0 4px, transparent 4px 8px);
}
.wechat-chat-detail-group { width: 100%; }
.wechat-chat-detail-row {
  position: relative;
  width: 100%;
  min-height: 61px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  color: var(--vie-text-primary);
  text-align: left;
}
.wechat-chat-detail-row:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: .5px;
  background: rgba(203,203,203,.55);
}
.wechat-chat-detail-row-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 2px;
}
.wechat-chat-detail-row .settings-row-title { font-size:calc(15px * var(--vie-font-scale)); line-height: 20px; font-weight: 400; }
.wechat-chat-detail-row .settings-row-detail { display: block; margin-top: 2px; color: var(--vie-text-muted); font-size:calc(11px * var(--vie-font-scale)); line-height: 15px; font-weight: 400; }
.wechat-chat-detail-row-copy strong { display: block; font-size:calc(12px * var(--vie-font-scale)); line-height: 13px; font-weight: 560;
}
.wechat-chat-detail-row-copy small { display: block;
  max-width: 246px;
  margin-top: 1px;
  overflow: hidden;
  color: var(--wechat-muted);
  font-size:calc(9px * var(--vie-font-scale));
  line-height: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wechat-chat-detail-row.is-destructive .wechat-chat-detail-row-copy strong { color: #cf4f4a; }
.wechat-chat-detail-trailing { display: inline-flex; align-items: center; gap: 8px; color: var(--wechat-muted); }
.wechat-chat-detail-empty { padding: 42px 12px; color: var(--wechat-muted); text-align: center; font-size:calc(11px * var(--vie-font-scale)); }
.wechat-chat-detail-value { color: var(--vie-text-muted); font-size:calc(13px * var(--vie-font-scale)); line-height: 19px; white-space: nowrap; }
.wechat-chat-detail-centered-actions {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 4px 0 16px;
}
.wechat-chat-detail-standalone {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: .5px solid var(--vie-page-divider-soft);
  border-radius: 14px;
  color: var(--vie-text-primary);
  background: var(--vie-page-surface-strong);
  box-shadow: 0 7px 20px rgba(0,0,0,.055), 0 2px 5px rgba(0,0,0,.035);
  font: inherit;
  font-size:calc(14px * var(--vie-font-scale));
  font-weight: 560;
  text-align: center;
}
.wechat-chat-detail-standalone.is-highlighted {
  border-color: transparent;
  color: #fff;
  background: var(--vie-action-color);
}
.wechat-chat-detail-standalone.is-destructive { color: var(--vie-danger, #cf4f4a); }
.wechat-chat-detail-standalone.is-highlighted.is-destructive { color: #fff; background: var(--vie-danger, #cf4f4a); }
.wechat-chat-summary-type {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin-right: 7px;
  padding: 1px 7px;
  border-radius: 999px;
  color: var(--vie-text-primary);
  background: var(--vie-page-soft-surface);
  font-size:calc(8px * var(--vie-font-scale));
  font-weight: 650;
}

.wechat-chat-summary-settings .wechat-chat-detail-row:last-child::after { display: none; }
.wechat-chat-summary-threshold {
  position: relative;
  width: 100%;
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 12px 14px 14px;
  color: var(--vie-text-primary);
}
.wechat-chat-summary-threshold::before,
.wechat-chat-summary-threshold::after {
  content: "";
  position: absolute;
  right: 14px;
  left: 14px;
  height: .5px;
  background: rgba(203,203,203,.55);
}
.wechat-chat-summary-threshold::before {
  top: 0;
}
.wechat-chat-summary-threshold::after {
  bottom: 0;
}

.wechat-chat-summary-threshold-label {
  min-width: 0;
  font-size:calc(15px * var(--vie-font-scale));
  line-height: 20px;
  font-weight: 400;
}
.wechat-chat-summary-threshold-input-row {
  width: 100%;
  padding-right: 0;
}
.wechat-chat-summary-threshold-input-row .global-input-field {
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.wechat-chat-summary-list { display: grid; gap: 12px; }
.wechat-chat-summary-card {
  padding: 14px;
  border: .5px solid var(--vie-page-divider-soft);
  border-radius: 14px;
  background: var(--vie-page-surface-strong);
  box-shadow: 0 7px 20px rgba(0,0,0,.055), 0 2px 5px rgba(0,0,0,.035);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.wechat-chat-summary-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.wechat-chat-summary-meta time { min-width: 0; margin: 0; }
.wechat-chat-summary-memory { display: inline-flex; align-items: center; gap: 4px; color: var(--vie-text-muted); font-size:calc(9px * var(--vie-font-scale)); white-space: nowrap; }
.wechat-chat-summary-memory i { font-size: 8px; }
.wechat-chat-summary-card p { margin: 0; color: var(--vie-text-primary); font-size:calc(12px * var(--vie-font-scale)); line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.wechat-chat-summary-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.wechat-chat-summary-actions button { min-height: 36px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 11px; color: var(--vie-text-secondary); background: var(--vie-page-soft-surface); font-size:calc(11px * var(--vie-font-scale)); font-weight: 560; }
.wechat-chat-summary-actions button.is-destructive { color: var(--vie-danger, #cf4f4a); }
.wechat-chat-detail-content > .wechat-chat-detail-centered-actions:last-child { padding-bottom: 4px; }
.wechat-chat-detail-row.is-static { cursor: default; }
.wechat-chat-detail-row.is-static.is-ok .wechat-chat-detail-value { color: var(--vie-text-secondary); }
.wechat-chat-detail-row.is-static.is-warning .wechat-chat-detail-value { color: var(--vie-danger, #cf4f4a); }
.wechat-chat-summary-report-result {
  margin-top: 14px;
  padding: 14px 16px;
  border: .5px solid var(--vie-page-divider-soft);
  border-radius: 14px;
  color: var(--vie-text-secondary);
  background: var(--vie-page-surface-strong);
  text-align: center;
  font-size:calc(12px * var(--vie-font-scale));
  line-height: 18px;
}
.wechat-chat-summary-report-result.has-issues { color: var(--vie-danger, #cf4f4a); }
.wechat-chat-summary-duplicate-list { display: grid; gap: 12px; }
.wechat-chat-summary-duplicate-group {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: .5px solid var(--vie-page-divider-soft);
  border-radius: 14px;
  background: var(--vie-page-surface-strong);
  box-shadow: 0 7px 20px rgba(0,0,0,.055), 0 2px 5px rgba(0,0,0,.035);
}
.wechat-chat-summary-duplicate-group > strong {
  color: var(--vie-text-secondary);
  font-size:calc(11px * var(--vie-font-scale));
  line-height: 16px;
  font-weight: 650;
}
.wechat-chat-summary-duplicate-group > p {
  margin: 0;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--vie-text-primary);
  background: var(--vie-page-soft-surface);
  font-size:calc(11px * var(--vie-font-scale));
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}
.wechat-chat-summary-card.is-managing {
  outline: 1px solid color-mix(in srgb, var(--logo-color) 58%, transparent);
  outline-offset: -1px;
}
.wechat-message-selection-bar {
  position: absolute;
  z-index: 13;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: calc(76px + var(--vie-safe-bottom));
  padding: 8px 8px calc(8px + var(--vie-safe-bottom));
  border-top: 1px solid var(--vie-chat-glass-border);
  background: var(--vie-chat-glass-surface);
  box-shadow: 0 -8px 26px rgba(0,0,0,.08);
  backdrop-filter: blur(14px) saturate(0);
  -webkit-backdrop-filter: blur(14px) saturate(0);
}
.wechat-message-selection-bar[hidden] { display: none; }
.wechat-message-selection-bar > div {
  min-height: 58px;
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  align-items: stretch;
  gap: 3px;
}
.wechat-message-selection-bar > div button {
  position: relative;
  min-width: 0;
  min-height: 56px;
  display: grid;
  grid-template-rows: 25px 14px;
  place-items: center;
  align-content: center;
  gap: 3px;
  padding: 4px 2px;
  border: 0;
  border-radius: 13px;
  color: var(--wechat-ink);
  background: transparent;
  font-size:calc(9px * var(--vie-font-scale));
}
.wechat-message-selection-bar > div button i { font-size: 17px; }
.wechat-message-selection-bar > div button.is-active {
  color: var(--vie-chat-quick-active);
  background: var(--vie-chat-quick-press);
}
.wechat-message-selection-bar > div button[data-chat-selection-action="range"].is-active::after {
  position: absolute;
  right: 10px;
  bottom: 4px;
  left: 10px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}
.wechat-message-selection-bar > div button.is-destructive { color: var(--vie-chat-quick-destructive); }
.wechat-message-selection-bar button:disabled { opacity: .36; }
.wechat-conversation.is-message-selecting .wechat-chat-scroll { padding-bottom: calc(94px + var(--vie-safe-bottom)); }
.wechat-message-select-check {
  width: 28px;
  min-width: 28px;
  height: 34px;
  display: grid;
  place-items: center;
  align-self: center;
  border: 0;
  color: var(--vie-chat-quick-muted);
  background: transparent;
  font-size:calc(17px * var(--vie-font-scale));
}
.wechat-chat-message.is-selected .wechat-message-select-check { color: var(--vie-chat-quick-active); }
.wechat-chat-message.is-chat-highlight,
.wechat-chat-message.is-selected {
  width: calc(100% + var(--wechat-chat-side) + var(--wechat-chat-side));
  margin-left: calc(0px - var(--wechat-chat-side));
  padding-right: var(--wechat-chat-side);
  padding-left: var(--wechat-chat-side);
  border-radius: 0;
  background: var(--vie-chat-quick-press);
}
.wechat-chat-message.is-chat-highlight {
  animation: wechat-chat-full-row-highlight 1.5s ease both;
}

@keyframes wechat-chat-full-row-highlight {
  0%,100% { background: transparent; }
  14%,76% { background: var(--vie-chat-quick-press); }
}
.wechat-conversation.is-message-selecting .wechat-chat-message { cursor: pointer; }
.wechat-conversation.is-message-selecting .wechat-chat-message.is-outgoing { justify-content: flex-start; }
.wechat-conversation.is-message-selecting .wechat-chat-message.is-outgoing .wechat-chat-message-core { margin-left: auto; }

.wechat-composer {
  position: absolute;
  z-index: 12;
  right: 0;
  bottom: 0;
  left: 0;
  grid-row: 2;
  min-width: 0;
  min-height: calc(var(--wechat-composer-base-height) + var(--vie-safe-bottom));
  display: grid;
  grid-template-columns: 35px 35px 35px minmax(74px,1fr) 37px;
  align-items: end;
  gap: 1px;
  margin: 0;
  padding: 7px 6px calc(6px + var(--vie-safe-bottom));
  overflow: visible;
  border: 1px solid var(--vie-chat-glass-border);
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 7px 5px;
  border-top-right-radius: 28px 18px;
  box-shadow: var(--vie-chat-glass-shadow);
}

.wechat-composer-quote {
  position: absolute;
  right: 8px;
  bottom: calc(100% + 7px);
  left: 8px;
  min-width: 0;
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 32px;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 12px;
  border: 1px solid var(--vie-chat-glass-border);
  border-radius: 12px;
  background: var(--vie-chat-glass-surface);
  box-shadow: var(--vie-chat-glass-shadow);
  backdrop-filter: blur(14px) saturate(0);
  -webkit-backdrop-filter: blur(14px) saturate(0);
}
.wechat-composer-quote[hidden] { display: none; }
.wechat-composer-quote-copy { min-width: 0; display: grid; gap: 2px; padding-left: 9px; border-left: 2px solid currentColor; }
.wechat-composer-quote-copy strong,
.wechat-composer-quote-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wechat-composer-quote-copy strong {
  font-size: calc(10px * var(--vie-font-scale));
  font-weight: 650;
}
.wechat-composer-quote-copy small {
  color: var(--wechat-muted);
  font-size: calc(9px * var(--vie-font-scale));
}

.wechat-composer-quote > button { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; color: inherit; background: transparent; }
.wechat-chat-quote {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 2px;
  margin: -1px 0 6px;
  padding: 6px 8px 6px 9px;
  border: 0;
  border-left: 2px solid currentColor;
  border-radius: 7px;
  color: inherit;
  background: rgba(127,127,127,.11);
  text-align: left;
}
.wechat-chat-quote strong,
.wechat-chat-quote span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wechat-chat-quote strong {
  font-size: calc(9px * var(--vie-font-scale));
  font-weight: 650;
}
.wechat-chat-quote span {
  opacity: .66;
  font-size: calc(9px * var(--vie-font-scale));
}

.wechat-chat-message.is-quote-target { animation: wechat-quote-target-pulse 1.2s ease; }
@keyframes wechat-quote-target-pulse { 0%,100% { filter: none; } 35% { filter: brightness(.78); } }

.wechat-composer-action,
.wechat-composer-shortcut,
.wechat-chat-send {
  width: 35px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--vie-chat-composer-ink);
  background: transparent;
  box-shadow: none;
}
.wechat-composer-action:active,
.wechat-composer-shortcut:active,
.wechat-chat-send:active { transform: none; background: transparent; }
.wechat-composer-action .wechat-icon-frame,
.wechat-composer-action .wechat-icon-frame svg { width: 25px; height: 25px; }
.wechat-composer-shortcut svg { width: 23px; height: 23px; }
.wechat-chat-send .wechat-icon-frame {
  position: relative;
  width: 24px;
  height: 24px;
  display: block;
}
.wechat-chat-send .wechat-icon-frame > i {
  position: absolute;
  inset: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  line-height: 1;
  transition: opacity .12s ease, transform .12s ease;
}
.wechat-composer-send-icon { opacity: 0; transform: scale(.72); }
.wechat-composer-mic-icon { opacity: 1; transform: scale(1); }
.wechat-composer.has-text .wechat-composer-send-icon { opacity: 1; transform: scale(1); }
.wechat-composer.has-text .wechat-composer-mic-icon { opacity: 0; transform: scale(.72); }
.wechat-composer-field {
  min-width: 0;
  min-height: 38px;
  max-height: 98px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 36px;
  align-items: end;
  overflow: hidden;
  border: 1px solid var(--vie-chat-composer-field-border);
  border-radius: 20px;
  background: var(--vie-chat-composer-field);
  box-shadow: var(--vie-chat-glass-shadow);
}
.wechat-composer-input-wrap { min-width: 0; display: block; align-self: stretch; }
.wechat-composer-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  max-height: 96px;
  box-sizing: border-box;
  padding: 8px 5px 8px 13px;
  overflow-y: hidden;
  resize: none;
  border: 0;
  outline: 0;
  color: var(--vie-chat-composer-input);
  background: transparent;
  font: inherit;
  font-size: calc(14px * var(--vie-font-scale));
  line-height: 20px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-appearance: none;
  appearance: none;
}
.wechat-composer-field textarea::placeholder { color: var(--vie-chat-composer-placeholder); }
.wechat-composer-sticker {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--vie-chat-composer-ink);
  background: transparent;
}
.wechat-composer-sticker svg { width: 23px; height: 23px; }
.wechat-composer-sticker:active,
.wechat-composer-sticker[aria-expanded="true"] { color: var(--vie-chat-composer-ink); background: transparent; transform: none; }
.wechat-chat-tools {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 4px 0;
  margin: 0;
  padding: 11px 8px 12px;
  overflow: hidden;
  border: 1px solid var(--vie-chat-glass-border-soft);
  border-radius: 22px;
  background: var(--vie-chat-glass-surface-strong);
  box-shadow: var(--vie-chat-glass-shadow);
  backdrop-filter: blur(12px) saturate(0);
  -webkit-backdrop-filter: blur(12px) saturate(0);
}
.wechat-chat-tools:not([hidden]) { display: grid; }
.wechat-chat-tools button { min-width: 0; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 2px 0; border-radius: 10px; color: var(--vie-chat-tool-ink); background: transparent; font-size:calc(9px * var(--vie-font-scale)); line-height: 1.2; }
.wechat-chat-tools button:active { transform: none; background: transparent; }
.wechat-tool-icon { width: 40px; height: 40px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--vie-chat-tool-border); border-radius: 12px; color: var(--vie-chat-tool-icon); background: var(--vie-chat-tool-surface); box-shadow: var(--vie-chat-glass-shadow); backdrop-filter: blur(12px) saturate(0); -webkit-backdrop-filter: blur(12px) saturate(0); }
.wechat-tool-icon svg,
.wechat-tool-icon i {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: var(--vie-chat-tool-icon);
  font-size: 16px;
  line-height: 18px;
}
.wechat-tool-icon svg {
  fill: none;
}
.wechat-tool-icon i {
  fill: currentColor;
}

#wechat-chat-more[aria-expanded="true"] .wechat-icon-frame { transform: rotate(45deg); }
#wechat-chat-more .wechat-icon-frame { transition: transform .18s ease; }

.wechat-app button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--vie-chat-focus-ring);
}

@media (min-width: 700px) {
  .wechat-message-list.vie-global-page-group { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wechat-message-list.vie-global-page-group .wechat-message-row:nth-child(even)::after { display: none; }
  .wechat-profile-hero { grid-template-columns: 78px minmax(0,1fr) 34px; }
  .wechat-profile-avatar { width: 78px; height: 78px; }
}

@media (max-width: 380px) {
  .wechat-post-text,
  .wechat-media-grid,
  .wechat-post-actions { margin-left: 0; }
}

@media (max-height: 650px) {
  .wechat-header.vie-app-navbar { margin-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .wechat-app *,
  .wechat-app *::before,
  .wechat-app *::after { scroll-behavior: auto; }
}

/* 服务：固定子页面；四项入口仅采用独立四列排列，不建立整块功能外壳。 */
.wechat-menu-card + .wechat-menu-card { margin-top: 14px; }
.wechat-menu-card [data-wechat-menu-icon="service"] { --wechat-menu-glyph-width: 18.5px; --wechat-menu-glyph-height: 18.5px; }
.wechat-service-scroll,
.wechat-bills-scroll,
.wechat-payment-settings-scroll { padding-top: 2px; }

.wechat-service-asset-card {
  position: relative;
  overflow: hidden;
  margin: 0 0 19px;
  padding: 18px 18px 0;
  border: .5px solid rgba(255,255,255,.58);
  border-radius: 22px;
  color: #fff;
  background: var(--logo-color);
  box-shadow: 0 10px 25px rgba(0,0,0,.055), 0 2px 6px rgba(0,0,0,.025);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.wechat-service-asset-card::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 0;
  width: 3px;
  height: 42px;
  border-radius: 0 3px 3px 0;
  background: var(--vie-page-surface);
  opacity: .72;
  pointer-events: none;
}
.wechat-service-asset-head {
  position: relative;
  z-index: 1;
  min-height: 32px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.wechat-service-asset-head small { display: block;
  color: rgba(255,255,255,.72);
  font-size:calc(10px * var(--vie-font-scale));
  line-height: 14px;
  font-weight: 400;
}
.wechat-service-asset-head strong { display: block;
  margin-top: 2px;
  color: #fff;
  font-size:calc(12px * var(--vie-font-scale));
  line-height: 17px;
  font-weight: 500;
}
.wechat-service-asset-head > span { display: block; }
.wechat-service-wand {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
}
.wechat-service-wand svg { display:block; width: 20px; height: 20px; fill: currentColor; }
.wechat-service-balance-block {
  position: relative;
  z-index: 1;
  padding: 13px 0 12px;
}
.wechat-service-asset-amount {
  display: flex;
  align-items: baseline;
  min-height: 49px;
  font-variant-numeric: tabular-nums;
}
.wechat-service-asset-amount > span {
  margin-right: 3px;
  color: #fff;
  font-size:calc(19px * var(--vie-font-scale));
  line-height: 27px;
  font-weight: 500;
}
.wechat-service-asset-amount > strong {
  min-width: 0;
  color: #fff;
  font-size: calc(clamp(34px, 9.2vw, 40px) * var(--vie-font-scale));
  line-height: 46px;
  font-weight: 500;
  letter-spacing: -1.1px;
  overflow-wrap: anywhere;
}
.wechat-service-balance-block > small {
  display: block;
  margin-top: 1px;
  color: rgba(255,255,255,.68);
  font-size:calc(9px * var(--vie-font-scale));
  line-height: 13px;
  font-weight: 400;
}
.wechat-service-asset-meta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  padding: 11px 0 14px;
  border-top: .5px solid rgba(255,255,255,.30);
}
.wechat-service-asset-meta > span {
  min-width: 0;
  display: block;
}
.wechat-service-asset-meta > span + span {
  padding-left: 14px;
  border-left: .5px solid rgba(255,255,255,.30);
}
.wechat-service-asset-meta small,
.wechat-service-asset-meta strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wechat-service-asset-meta small {
  color: rgba(255,255,255,.68);
  font-size: calc(9px * var(--vie-font-scale));
  line-height: 13px;
  font-weight: 400;
}
.wechat-service-asset-meta strong {
  margin-top: 2px;
  color: #fff;
  font-size: calc(11px * var(--vie-font-scale));
  line-height: 16px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.wechat-service-money-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  margin: 0 -18px;
  border-top: .5px solid rgba(255,255,255,.30);
  background: var(--vie-chat-wallpaper-scrim);
}
.wechat-service-money-actions button {
  position: relative;
  min-width: 0;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
  font: inherit;
  text-align: left;
}
.wechat-service-money-actions button + button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  bottom: 13px;
  width: .5px;
  background: rgba(255,255,255,.30);
}
.wechat-service-money-action-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: .5px solid rgba(255,255,255,.42);
  border-radius: 9px;
  color: #fff;
  background: rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24);
}
.wechat-service-money-actions button[data-service-action="withdraw"] .wechat-service-money-action-icon {
  color: #fff;
  background: rgba(255,255,255,.16);
}
.wechat-service-money-action-icon svg { display:block; width: 14px; height: 14px; fill: currentColor; }
.wechat-service-money-action-copy strong { display:block; min-width:0; color:#fff; font-size:calc(11px * var(--vie-font-scale)); line-height:15px; font-weight:500;
}
.wechat-service-money-action-copy small { display:block; min-width:0; margin-top:1px; color:rgba(255,255,255,.68); font-size:calc(8.5px * var(--vie-font-scale)); line-height:12px; font-weight:400;
}
.wechat-service-money-action-copy { display:block; min-width:0; }

.wechat-service-shortcuts {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  align-items: start;
  gap: 10px;
  margin: 0 0 21px;
  padding: 0 1px;
}
.wechat-service-shortcuts button {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  padding: 0;
  border: 0;
  color: var(--wechat-ink);
  background: transparent;
  font: inherit;
}
.wechat-service-shortcut-icon {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: .5px solid rgba(255,255,255,.72);
  border-radius: 15px;
  color: #fff;
  background: var(--logo-color);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 5px 13px rgba(0,0,0,.06);
}
.wechat-service-shortcut-icon svg { display:block; width: 19px; height: 19px; fill: currentColor; transform-origin:center; }
.wechat-service-shortcuts button[data-service-action="charity"] svg { width: 19px; height: 17px; }
.wechat-service-shortcuts button[data-service-action="finance"] svg { width: 18px; height: 13px; }
.wechat-service-shortcuts button[data-service-action="family-card"] svg { width: 21px; height: 17px; }
.wechat-service-shortcuts button[data-service-action="payment-settings"] svg { width: 20px; height: 13px; }
.wechat-service-shortcuts strong {
  overflow: hidden;
  max-width: 100%;
  color: var(--wechat-ink);
  font-size:calc(10px * var(--vie-font-scale));
  line-height: 14px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wechat-service-section-head {
  min-height: 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 3px 6px 13px;
}
.wechat-service-section-head > strong {
  color: var(--wechat-muted);
  font-size:calc(12px * var(--vie-font-scale));
  line-height: 17px;
  font-weight: 400;
}
.wechat-service-section-head > button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  padding: 0 2px 0 8px;
  border: 0;
  color: var(--wechat-muted);
  background: transparent;
  font: inherit;
  font-size:calc(10px * var(--vie-font-scale));
  line-height: 14px;
}
.wechat-service-section-head .vie-global-chevron { width: 7px; height: 7px; margin-right: 2px; }
.wechat-service-empty {
  width: 100%;
  min-height: 165px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 20px;
  border: 0;
  border-radius: 0;
  color: var(--wechat-muted);
  background: transparent;
  box-shadow: none;
  text-align: center;
  font: inherit;
}
.wechat-service-empty svg { width: 28px; height: 28px; margin-bottom: 11px; color: var(--logo-color); fill: currentColor; }
.wechat-service-empty strong { color: var(--wechat-ink); font-size:calc(13px * var(--vie-font-scale)); line-height: 19px; font-weight: 500; }
.wechat-service-empty small { margin-top: 4px; color: var(--wechat-muted); font-size:calc(10px * var(--vie-font-scale)); line-height: 15px; font-weight: 400; }
.wechat-bills-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  padding: 5px 13px 9px;
  border-bottom: .5px solid var(--vie-page-divider-soft);
}
.wechat-bills-summary span { color: var(--wechat-muted); font-size:calc(11px * var(--vie-font-scale)); line-height: 16px; }
.wechat-bills-summary strong { color: var(--wechat-ink); font-size:calc(18px * var(--vie-font-scale)); line-height: 24px; font-weight: 500; font-variant-numeric: tabular-nums; }
.wechat-service-record-list { overflow: hidden; border: .5px solid var(--vie-page-divider-soft); border-radius: 14px; background: var(--vie-page-surface-strong); box-shadow: 0 7px 20px rgba(0,0,0,.045); }
.wechat-service-record { position: relative; min-height: 61px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 9px 13px; }
.wechat-service-record:not(:last-child)::after { content: ""; position: absolute; left: 58px; right: 13px; bottom: 0; height: .5px; background: var(--vie-page-divider-soft); }
.wechat-service-record-icon { width: 34px; height: 34px; display: grid; place-items: center; overflow:hidden; border-radius: 9px; color: #fff; background: var(--logo-color); border:.5px solid transparent; }
.wechat-service-record.is-expense .wechat-service-record-icon { color: #fff; background: var(--logo-color); border-color: transparent; }
.wechat-service-record-icon svg { display:block; width: 11px; height: 15px; fill: currentColor; }
.wechat-service-record-copy { min-width: 0; }
.wechat-service-record-copy strong,
.wechat-service-record-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wechat-service-record-copy strong {
  color: var(--wechat-ink);
  font-size: calc(12px * var(--vie-font-scale));
  line-height: 17px;
  font-weight: 500;
}
.wechat-service-record-copy small {
  margin-top: 1px;
  color: var(--wechat-muted);
  font-size: calc(9px * var(--vie-font-scale));
  line-height: 13px;
}

.wechat-service-record-amount { color: var(--wechat-ink); font-size:calc(12px * var(--vie-font-scale)); line-height: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }
.wechat-service-record.is-income .wechat-service-record-amount::before { content: "+"; }
.wechat-service-record.is-expense .wechat-service-record-amount::before { content: "−"; }
.wechat-service-all-records { margin-top: 12px; }

.wechat-payment-settings-scroll .vie-global-section-label { margin-left: 2px; }
.wechat-payment-settings-scroll .settings-group { margin-bottom: 16px; }
.wechat-payment-settings-scroll .settings-row { min-width:0; overflow:hidden; }
.wechat-payment-settings-scroll .settings-row-copy { min-width:0; display: block; }
.wechat-payment-settings-scroll .settings-row-detail,
.wechat-payment-settings-scroll .settings-row-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wechat-payment-settings-scroll .settings-row-detail {
  display: block;
  margin-top: 1px;
  color: var(--wechat-muted);
  font-size: calc(9px * var(--vie-font-scale));
  line-height: 13px;
  font-weight: 400;
}

.wechat-payment-settings-scroll .settings-item-icon { width:34px; height:34px; display:grid; place-items:center; overflow:hidden; }
.wechat-payment-settings-scroll .settings-item-icon svg { display:block; width:18px; height:18px; max-width:18px; max-height:18px; fill:currentColor; transform:none; transform-origin:center; }
.wechat-payment-settings-scroll [data-payment-setting="method"] .settings-item-icon svg { width:17px; height:17px; }
.wechat-payment-settings-scroll [data-payment-setting="order"] .settings-item-icon svg { width:17px; height:17px; }
.wechat-payment-settings-scroll [data-payment-setting="verify"] .settings-item-icon svg { width:16px; height:18px; }
.wechat-payment-settings-scroll [data-payment-setting="passwordless"] .settings-item-icon svg { width:17px; height:17px; }

/* ==========================================
   表情包库：唯一固定子页面壳
   ========================================== */
.wechat-sticker-layout {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 13px;
  padding: 0 var(--app-inline-inset) 12px;
  overflow: hidden;
}
.wechat-sticker-sidebar {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-right: 9px;
  border-right: .5px solid var(--vie-page-divider-soft);
  background: transparent;
}
.wechat-sticker-main {
  min-width: 0;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.wechat-sticker-sidebar-head {
  min-height: 54px;
  flex: 0 0 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 2px 0 4px 3px;
}
.wechat-sticker-sidebar-title {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.wechat-sticker-sidebar-title strong {
  color: var(--vie-text-primary);
  font-size:calc(13px * var(--vie-font-scale));
  line-height: 13px;
  font-weight: 600;
}
.wechat-sticker-sidebar-title small {
  margin-top: 1px;
  color: var(--vie-text-muted);
  font-size:calc(8.5px * var(--vie-font-scale));
  line-height: 11px;
  font-weight: 400;
  white-space: nowrap;
}
.wechat-sticker-sidebar-head button {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  display: grid;
  place-items: center;
  padding: 0;
  border: .5px solid var(--vie-page-divider-soft);
  border-radius: 10px;
  background: var(--vie-page-soft-surface);
  color: var(--vie-page-icon-color);
}
.wechat-sticker-sidebar-head button:active { transform: scale(.95); }
.wechat-sticker-sidebar-head svg { width: 12px; height: 12px; fill: currentColor; }
.wechat-sticker-groups {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 1px 0 10px;
}
.wechat-sticker-groups::-webkit-scrollbar { display: none; }
.wechat-sticker-group {
  position: relative;
  width: 100%;
  min-height: 39px;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  padding: 0 5px 0 6px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--vie-text-muted);
  text-align: left;
}
.wechat-sticker-group + .wechat-sticker-group { margin-top: 3px; }
.wechat-sticker-group::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: transparent;
}
.wechat-sticker-group.is-active {
  background: var(--vie-page-soft-surface);
  color: var(--vie-text-primary);
}
.wechat-sticker-group.is-active::before { background: var(--theme-gray); }
.wechat-sticker-group-icon {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  color: var(--theme-gray);
}
.wechat-sticker-group-icon svg {
  width: 12px;
  height: 12px;
  display: block;
  fill: currentColor;
}
.wechat-sticker-group-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size:calc(10.5px * var(--vie-font-scale));
  line-height: 15px;
  font-weight: 400;
}
.wechat-sticker-group.is-active .wechat-sticker-group-label { font-weight: 500; }
.wechat-sticker-group small {
  min-width: 12px;
  color: var(--vie-text-muted);
  font-size:calc(8.5px * var(--vie-font-scale));
  line-height: 12px;
  text-align: right;
}
.wechat-sticker-main-head {
  min-height: 54px;
  flex: 0 0 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 1px 4px;
  border-bottom: .5px solid var(--vie-page-divider-soft);
}
.wechat-sticker-main-head > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.wechat-sticker-main-head strong {
  color: var(--vie-text-primary);
  font-size:calc(14px * var(--vie-font-scale));
  line-height: 19px;
  font-weight: 600;
}
.wechat-sticker-main-head small {
  margin-top: 1px;
  color: var(--vie-text-muted);
  font-size:calc(9px * var(--vie-font-scale));
  line-height: 12px;
}
.wechat-sticker-main-head button {
  min-width: 34px;
  height: 27px;
  padding: 0 8px;
  border: .5px solid var(--vie-page-divider-soft);
  border-radius: 10px;
  background: var(--vie-page-soft-surface);
  color: var(--vie-text-muted);
  font-size:calc(9.5px * var(--vie-font-scale));
}
.wechat-sticker-grid {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: start;
  justify-items: center;
  gap: 14px 7px;
  padding: 12px 0 76px;
}
.wechat-sticker-grid::-webkit-scrollbar { display: none; }
.wechat-sticker-item {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--vie-text-muted);
}
.wechat-sticker-image {
  position: relative;
  width: min(100%, 52px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: var(--vie-page-soft-surface);
  border: .5px solid var(--vie-page-divider-soft);
}
.wechat-sticker-image > img { width: 100%; height: 100%; display: block; border-radius: 7px; object-fit: cover; }
.wechat-sticker-image > svg { width: 21px; height: 21px; color: var(--theme-gray); fill: currentColor; }
.wechat-sticker-description {
  width: 100%;
  min-height: 25px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--vie-text-muted);
  font-size:calc(9px * var(--vie-font-scale));
  line-height: 12.5px;
  font-weight: 400;
  text-align: center;
  overflow-wrap: anywhere;
}
.wechat-sticker-check {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--vie-page-surface-strong);
  border: 1px solid rgba(143,143,149,.4);
  color: transparent;
}
.wechat-sticker-check svg { width: 9px; height: 9px; fill: currentColor; }
.wechat-sticker-item.is-selected .wechat-sticker-check { background: var(--theme-gray); border-color: var(--theme-gray); color: #fff; }
.wechat-sticker-item.is-selected .wechat-sticker-image { box-shadow: 0 0 0 2px rgba(143,143,149,.28); }
.wechat-sticker-empty {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 8px 58px;
  color: var(--vie-text-muted);
  text-align: center;
}
.wechat-sticker-empty svg { width: 31px; height: 31px; margin-bottom: 9px; fill: var(--theme-gray); }
.wechat-sticker-empty strong { color: var(--vie-text-muted); font-size:calc(12px * var(--vie-font-scale)); line-height: 17px; font-weight: 500; }
.wechat-sticker-empty small { margin-top: 3px; font-size:calc(9px * var(--vie-font-scale)); line-height: 13px; }
.wechat-sticker-batch-bar {
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 8px;
  height: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 4px;
  border-radius: 18px;
  background: var(--vie-page-surface-strong);
  border: .5px solid var(--vie-page-divider-soft);
  box-shadow: 0 7px 20px rgba(0,0,0,.09);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.wechat-sticker-batch-bar button {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--vie-text-muted);
  font-size:calc(9.5px * var(--vie-font-scale));
}
.wechat-sticker-batch-bar svg { width: 12px; height: 12px; fill: var(--theme-gray); }
@media (max-width: 365px) {
  .wechat-sticker-layout { grid-template-columns: 100px minmax(0, 1fr); gap: 9px; }
  .wechat-sticker-sidebar { padding-right: 7px; }
  .wechat-sticker-grid { gap-inline: 5px; }
  .wechat-sticker-group { padding-left: 6px; padding-right: 5px; gap: 4px; }
  .wechat-sticker-description { font-size:calc(8.5px * var(--vie-font-scale)); }
}

/* 日记使用轻量时间线，并保持 Vie 单一微信页面壳与主题变量。 */
.wechat-diary-subview { min-height: 0; overflow: hidden; }
.wechat-diary-shell { position: relative; width: 100%; height: 100%; min-height: 0; }
.wechat-diary-timeline,
.wechat-diary-editor {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.wechat-diary-timeline {
  padding: 8px var(--wechat-side) 34px;
}
.wechat-diary-editor {
  padding: 14px var(--wechat-side) 30px;
}

.wechat-diary-timeline::-webkit-scrollbar,
.wechat-diary-editor::-webkit-scrollbar { display: none; }
.wechat-diary-hero {
  position: relative;
  overflow: hidden;
  padding: 20px 18px 15px;
  border: .5px solid var(--vie-page-divider-soft);
  border-radius: 24px;
  background: linear-gradient(145deg, var(--vie-page-surface-strong), var(--vie-page-soft-surface));
  box-shadow: 0 12px 30px rgba(0,0,0,.055);
}
.wechat-diary-hero::after {
  content: "";
  position: absolute;
  top: -35px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 22px solid color-mix(in srgb, var(--theme-gray) 10%, transparent);
  pointer-events: none;
}
.wechat-diary-hero-copy { position: relative; z-index: 1; }
.wechat-diary-hero-copy > small { color: var(--wechat-muted); font-size:calc(8px * var(--vie-font-scale)); line-height: 12px; font-weight: 700; letter-spacing: .17em; }
.wechat-diary-hero-copy h2 { margin: 6px 0 4px; color: var(--wechat-ink); font-size:calc(21px * var(--vie-font-scale)); line-height: 28px; font-weight: 680; letter-spacing: -.025em; }
.wechat-diary-hero-copy p { margin: 0; color: var(--wechat-muted); font-size:calc(10px * var(--vie-font-scale)); line-height: 16px; }
.wechat-diary-hero-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; padding-top: 13px; border-top: .5px solid var(--vie-page-divider-soft); }
.wechat-diary-hero-stats span { display: flex; flex-direction: column; gap: 1px; }
.wechat-diary-hero-stats span + span { padding-left: 13px; border-left: .5px solid var(--vie-page-divider-soft); }
.wechat-diary-hero-stats strong { color: var(--wechat-ink); font-size:calc(16px * var(--vie-font-scale)); line-height: 20px; font-weight: 650; }
.wechat-diary-hero-stats small { color: var(--wechat-muted); font-size:calc(8.5px * var(--vie-font-scale)); line-height: 13px; }
.wechat-diary-search { height: 39px; display: flex; align-items: center; gap: 9px; margin: 14px 0 9px; padding: 0 12px; border: .5px solid var(--vie-page-divider-soft); border-radius: 15px; background: var(--vie-page-surface-strong); }
.wechat-diary-search > svg { width: 13px; height: 13px; flex: 0 0 auto; color: var(--wechat-muted); }
.wechat-diary-search input { min-width: 0; flex: 1; height: 100%; padding: 0; border: 0; outline: 0; color: var(--wechat-ink); background: transparent; font-size:calc(10.5px * var(--vie-font-scale)); }
.wechat-diary-search input::placeholder { color: var(--wechat-muted); opacity: .72; }
.wechat-diary-search button { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: var(--wechat-muted); }
.wechat-diary-search button svg { width: 10px; height: 10px; }
.wechat-diary-filters { display: flex; gap: 7px; overflow-x: auto; padding: 0 1px 12px; scrollbar-width: none; }
.wechat-diary-filters::-webkit-scrollbar { display: none; }
.wechat-diary-filters button { flex: 0 0 auto; height: 28px; padding: 0 12px; border: .5px solid var(--vie-page-divider-soft); border-radius: 999px; background: var(--vie-page-surface-strong); color: var(--wechat-muted); font-size:calc(9px * var(--vie-font-scale)); font-weight: 550; }
.wechat-diary-filters button.is-active { border-color: var(--theme-gray); background: var(--theme-gray); color: #fff; }
.wechat-diary-feed { display: flex; flex-direction: column; gap: 11px; }
.wechat-diary-card { position: relative; padding: 15px 14px 12px; border: .5px solid var(--vie-page-divider-soft); border-radius: 21px; background: var(--vie-page-surface-strong); box-shadow: 0 7px 22px rgba(0,0,0,.035); }
.wechat-diary-card-head { display: flex; align-items: center; gap: 9px; }
.wechat-diary-card-avatar { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: var(--vie-page-soft-surface); color: var(--wechat-muted); background-position: center; background-size: cover; }
.wechat-diary-card-avatar svg { width: 14px; height: 14px; }
.wechat-diary-card-author { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.wechat-diary-card-author strong { overflow: hidden; color: var(--wechat-ink); font-size:calc(10.5px * var(--vie-font-scale)); line-height: 15px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.wechat-diary-card-author span { display: flex; align-items: center; gap: 4px; color: var(--wechat-muted); font-size:calc(8px * var(--vie-font-scale)); line-height: 12px; }
.wechat-diary-card-author span svg { width: 8px; height: 8px; }
.wechat-diary-card-menu { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: var(--wechat-muted); }
.wechat-diary-card-menu svg { width: 13px; height: 13px; }
.wechat-diary-card-content { margin: 13px 1px 0; color: var(--wechat-ink); font-size:calc(11px * var(--vie-font-scale)); line-height: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.wechat-diary-images { display: grid; gap: 3px; margin-top: 11px; overflow: hidden; border-radius: 15px; }
.wechat-diary-images[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.wechat-diary-images[data-count="2"],
.wechat-diary-images[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wechat-diary-images:not([data-count="1"]):not([data-count="2"]):not([data-count="4"]) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wechat-diary-image { position: relative; min-width: 0; aspect-ratio: 1; overflow: hidden; background: var(--vie-page-soft-surface); }
.wechat-diary-images[data-count="1"] .wechat-diary-image { aspect-ratio: 16/10; max-height: 240px; }
.wechat-diary-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.wechat-diary-card-actions { display: flex; align-items: center; gap: 5px; margin-top: 11px; padding-top: 9px; border-top: .5px solid var(--vie-page-divider-soft); }
.wechat-diary-card-actions button { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 9px; border-radius: 11px; color: var(--wechat-muted); font-size:calc(9px * var(--vie-font-scale)); }
.wechat-diary-card-actions button svg { width: 12px; height: 12px; }
.wechat-diary-card-actions button.is-liked { color: var(--vie-danger, #ff5b6e); }
.wechat-diary-card-visibility { margin-left: auto; color: var(--wechat-muted); font-size:calc(8px * var(--vie-font-scale)); }
.wechat-diary-comments { display: flex; flex-direction: column; gap: 6px; margin-top: 7px; padding: 9px 10px; border-radius: 13px; background: var(--vie-page-soft-surface); }
.wechat-diary-comment { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; color: var(--wechat-ink); font-size:calc(9px * var(--vie-font-scale)); line-height: 14px; }
.wechat-diary-comment strong { font-weight: 650; }
.wechat-diary-comment small { color: var(--wechat-muted); font-size:calc(7.5px * var(--vie-font-scale)); white-space: nowrap; }
.wechat-diary-comment-form { display: flex; align-items: center; gap: 7px; margin-top: 7px; }
.wechat-diary-comment-form input { min-width: 0; flex: 1; height: 32px; padding: 0 11px; border: .5px solid var(--vie-page-divider-soft); border-radius: 12px; outline: 0; color: var(--wechat-ink); background: var(--vie-page-soft-surface); font-size:calc(9px * var(--vie-font-scale)); }
.wechat-diary-comment-form button { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 12px; background: var(--theme-gray); color: #fff; }
.wechat-diary-comment-form button svg { width: 11px; height: 11px; }
.wechat-diary-empty { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 26px; text-align: center; color: var(--wechat-muted); }
.wechat-diary-empty > span { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 11px; border-radius: 17px; background: var(--vie-page-soft-surface); }
.wechat-diary-empty svg { width: 19px; height: 19px; }
.wechat-diary-empty strong { color: var(--wechat-ink); font-size:calc(12px * var(--vie-font-scale)); line-height: 13px; }
.wechat-diary-empty small { margin-top: 3px; font-size:calc(9px * var(--vie-font-scale)); line-height: 14px; }
.wechat-diary-empty button { height: 34px; margin-top: 14px; padding: 0 16px; border-radius: 13px; background: var(--theme-gray); color: #fff; font-size:calc(9.5px * var(--vie-font-scale)); font-weight: 600; }
.wechat-diary-paper { padding: 16px 14px 14px; border: .5px solid var(--vie-page-divider-soft); border-radius: 21px; background: var(--vie-page-surface-strong); }
.wechat-diary-paper textarea { width: 100%; min-height: 190px; resize: none; padding: 0; border: 0; outline: 0; color: var(--wechat-ink); background: transparent; font: inherit; font-size:calc(11px * var(--vie-font-scale)); line-height: 19px; }
.wechat-diary-paper textarea::placeholder { color: var(--wechat-muted); opacity: .68; }
.wechat-diary-editor-images { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.wechat-diary-editor-image { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--vie-page-soft-surface); }
.wechat-diary-editor-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.wechat-diary-editor-image button { position: absolute; top: 4px; right: 4px; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.58); color: #fff; }
.wechat-diary-editor-image button svg { width: 9px; height: 9px; }
.wechat-diary-add-image { width: 100%; min-height: 47px; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-top: 9px; padding: 0 11px; border: 1px dashed var(--vie-page-divider); border-radius: 14px; color: var(--wechat-muted); text-align: left; }
.wechat-diary-add-image svg { width: 11px; height: 15px; }
.wechat-diary-add-image span { font-size:calc(9.5px * var(--vie-font-scale)); }
.wechat-diary-add-image small { font-size:calc(8px * var(--vie-font-scale)); }
.wechat-diary-editor-settings { margin-top: 11px; border: .5px solid var(--vie-page-divider-soft); border-radius: 18px; overflow: hidden; background: var(--vie-page-surface-strong); }
.wechat-diary-editor-settings label { min-height: 47px; display: grid; grid-template-columns: 102px minmax(0, 1fr); align-items: center; gap: 8px; padding: 0 13px; }
.wechat-diary-editor-settings label + label { border-top: .5px solid var(--vie-page-divider-soft); }
.wechat-diary-editor-settings span { display: flex; align-items: center; gap: 7px; color: var(--wechat-ink); font-size:calc(9.5px * var(--vie-font-scale)); }
.wechat-diary-editor-settings span svg { width: 12px; height: 12px; color: var(--wechat-muted); }
.wechat-diary-editor-settings input,
.wechat-diary-editor-settings select { min-width: 0; width: 100%; height: 34px; padding: 0 8px; border: 0; outline: 0; color: var(--wechat-muted); background: transparent; font-family: inherit; font-size: 9px; text-align: right; }
.wechat-diary-delete {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 11px;
  border: .5px solid color-mix(in srgb, var(--vie-danger, #ff5b6e) 30%, var(--vie-page-divider-soft));
  border-radius: 15px;
  background: color-mix(in srgb, var(--vie-danger, #ff5b6e) 7%, var(--vie-page-surface-strong));
  color: var(--vie-danger, #ff5b6e);
  font-size:calc(9.5px * var(--vie-font-scale));
  font-weight: 600;
}
.wechat-diary-delete svg { width: 12px; height: 12px; }
.wechat-diary-delete[hidden] { display: none; }
.wechat-diary-lightbox { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; padding: 30px 16px; background: rgba(0,0,0,.88); }
.wechat-diary-lightbox[hidden] { display: none; }
.wechat-diary-lightbox > button { position: absolute; top: 16px; right: 14px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; }
.wechat-diary-lightbox > button svg { width: 14px; height: 14px; }
.wechat-diary-lightbox img { max-width: 100%; max-height: 100%; display: block; object-fit: contain; border-radius: 13px; }
@media (max-width: 365px) {
  .wechat-diary-timeline, .wechat-diary-editor { padding-left: var(--wechat-side); padding-right: var(--wechat-side); }
  .wechat-diary-hero { padding-left: 15px; padding-right: 15px; }
  .wechat-diary-card { padding-left: 12px; padding-right: 12px; }
}

@media (max-width: 340px) {
  .wechat-composer { grid-template-columns: 32px 32px 32px minmax(58px,1fr) 34px; padding-inline: 4px; }
  .wechat-composer-action, .wechat-composer-shortcut, .wechat-chat-send { width: 32px; }
  .wechat-composer-shortcut svg { width: 21px; height: 21px; }
  .wechat-chat-content-column { max-width: min(70vw, 270px); }
}

.wechat-chat-history-fold {
  width:max-content;
  max-width:calc(100% - 36px);
  min-height:31px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  margin:3px auto 12px;
  padding:6px 12px;
  border:.5px solid rgba(0,0,0,.08);
  border-radius:10px;
  color:#000;
  background:rgba(255,255,255,.7);
  box-shadow:0 2px 8px rgba(0,0,0,.045);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  font:inherit;
  font-size:calc(10.5px * var(--vie-font-scale));
  font-weight:600;
}
:root.theme-dark .wechat-chat-history-fold { border-color:rgba(255,255,255,.1); color:#fff; background:rgba(0,0,0,.38); }
.wechat-chat-history-fold i { font-size:10px; }

/* ========================================================================== */
/* 通话页、通话记录与磨砂玻璃样式 */
/* ========================================================================== */
.wechat-chat-header.vie-app-navbar {
  background: color-mix(in srgb,var(--vie-chat-glass-surface) 92%,rgba(255,255,255,.12));
  backdrop-filter: blur(20px) saturate(138%);
  -webkit-backdrop-filter: blur(20px) saturate(138%);
}
.wechat-composer {
  background: color-mix(in srgb,var(--vie-chat-glass-surface) 94%,rgba(255,255,255,.10));
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}
.wechat-composer-field {
  backdrop-filter: blur(14px) saturate(132%);
  -webkit-backdrop-filter: blur(14px) saturate(132%);
}
#wechat-chat-call .wechat-line-icon { width: 24px; height: 24px; }

#wechat-call-page {
  isolation: isolate;
  color: #fff;
  background: #101116;
}
#wechat-call-page::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -2px;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(8,9,12,.64),rgba(8,9,12,.72)),
    var(--wechat-call-wallpaper-image,none);
  background-repeat: repeat,repeat;
  background-size: auto,138px 138px;
  background-position: center,center;
  filter: saturate(.72) brightness(.86);
  transform: scale(1.015);
}
#wechat-call-page > * { position: relative; z-index: 1; }
#wechat-call-page .wechat-call-top {
  min-height: 90px;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  align-items: stretch;
  gap: 12px;
  padding: calc(var(--status-bar-space) + 12px) 16px 6px;
}
#wechat-call-page .wechat-call-state,
#wechat-call-page .wechat-call-contact {
  min-height: 72px;
  max-width: none;
  align-self: stretch;
}
#wechat-call-page .wechat-call-state {
  position: relative;
  justify-content: center;
  padding-left: 44px;
}
#wechat-call-page #wechat-call-scale {
  position: absolute;
  top: 50%;
  left: 0;
  width: 34px;
  height: 34px;
  display: grid;
  margin: 0;
  transform: translateY(-50%);
  border-color: rgba(255,255,255,.16);
  color: #fff;
  background: rgba(18,19,24,.42);
  box-shadow: 0 7px 20px rgba(0,0,0,.16);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
}
#wechat-call-page .wechat-call-state > i { color: rgba(255,255,255,.78); }
#wechat-call-page .wechat-call-state strong,
#wechat-call-page .wechat-call-contact > strong { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.28); }
#wechat-call-page .wechat-call-state small { color: rgba(255,255,255,.68); text-shadow: 0 1px 7px rgba(0,0,0,.24); }
#wechat-call-page .wechat-call-contact { justify-content: flex-end; }
#wechat-call-page[data-call-type="phone"] .wechat-call-avatar {
  width: 68px;
  height: 68px;
  flex-basis: 68px;
  border-color: rgba(255,255,255,.18);
  color: rgba(255,255,255,.74);
  background: rgba(18,19,24,.38);
  box-shadow: 0 10px 26px rgba(0,0,0,.2);
}
#wechat-call-page[data-call-type="video"] .wechat-call-state,
#wechat-call-page[data-call-type="video"] .wechat-call-contact { min-height: 94px; }
#wechat-call-page[data-call-type="video"] .wechat-call-state { padding-left: 44px; justify-content: center; }
#wechat-call-page[data-call-type="video"] .wechat-call-contact { align-items: center; }
#wechat-call-page[data-call-type="video"] .wechat-call-avatar {
  width: 72px;
  height: 96px;
  flex: 0 0 72px;
  border-radius: 9px;
}

#wechat-call-page .wechat-call-stage,
#wechat-call-page[data-call-type="video"] .wechat-call-stage {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  color: #fff;
}
#wechat-call-page .wechat-call-stage > i { display: none; }
#wechat-call-page[data-call-type="video"] .wechat-call-peer-visual {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: rgba(255,255,255,.42);
  background: transparent;
  font-size: clamp(68px,22vw,116px);
}
#wechat-call-page[data-call-type="video"] .wechat-call-peer-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,rgba(8,9,12,.26),rgba(8,9,12,.38));
}
#wechat-call-page[data-call-type="video"] .wechat-call-peer-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .48;
  filter: brightness(.68) saturate(.82);
}
#wechat-call-page .wechat-call-transcript,
#wechat-call-page[data-call-type="video"] .wechat-call-transcript,
#wechat-call-page[data-call-type="video"] .wechat-call-transcript:not([hidden]) {
  position: relative;
  z-index: 2;
  inset: auto;
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  padding: 8px 14px 12px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  pointer-events: auto;
  color: #fff;
  -webkit-mask-image: linear-gradient(180deg,transparent 0,#000 12px,#000 calc(100% - 10px),transparent 100%);
  mask-image: linear-gradient(180deg,transparent 0,#000 12px,#000 calc(100% - 10px),transparent 100%);
}
#wechat-call-page .wechat-call-transcript p,
#wechat-call-page[data-call-type="video"] .wechat-call-transcript p {
  width: fit-content;
  max-width: min(84%,360px);
  margin: 0;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.13);
  color: #fff;
  background: rgba(26,27,32,.48);
  box-shadow: 0 5px 18px rgba(0,0,0,.13);
  backdrop-filter: blur(12px) saturate(125%);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
  font-size: calc(11.5px * var(--vie-font-scale));
  line-height: 17px;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#wechat-call-page .wechat-call-transcript p.is-speech {
  align-self: flex-start;
  border-radius: 14px 14px 14px 4px;
}
#wechat-call-page .wechat-call-transcript p.is-user-speech {
  align-self: flex-end;
  border-color: rgba(64,224,112,.20);
  border-radius: 14px 14px 4px 14px;
  background: rgba(52,199,89,.76);
}
#wechat-call-page .wechat-call-transcript p.is-narration,
#wechat-call-page[data-call-type="video"] .wechat-call-transcript p.is-narration {
  max-width: 94%;
  align-self: center;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  color: #f5dc72;
  background: rgba(8,9,12,.34);
  box-shadow: none;
  font-size: calc(10px * var(--vie-font-scale));
  line-height: 15px;
  font-weight: 500;
  font-style: italic;
  text-align: center;
  text-shadow: 0 1px 7px rgba(0,0,0,.28);
}
#wechat-call-page .wechat-call-transcript p.is-user-narration {
  align-self: flex-end;
  max-width: min(84%,360px);
  color: rgba(255,255,255,.92);
  background: rgba(52,199,89,.54);
  font-style: normal;
  text-align: left;
}
#wechat-call-page .wechat-call-bottom,
#wechat-call-page[data-call-type="video"] .wechat-call-bottom {
  position: relative;
  z-index: 3;
  gap: 14px;
  padding: 7px 16px calc(15px + var(--vie-safe-bottom));
  background: linear-gradient(180deg,transparent,rgba(5,6,8,.24));
}
#wechat-call-page .wechat-call-input,
#wechat-call-page[data-call-type="video"] .wechat-call-input {
  border-color: rgba(255,255,255,.17);
  color: #fff;
  background: rgba(20,21,26,.48);
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  backdrop-filter: blur(16px) saturate(132%);
  -webkit-backdrop-filter: blur(16px) saturate(132%);
}
#wechat-call-page .wechat-call-input input { color: #fff; }
#wechat-call-page .wechat-call-input input::placeholder,
#wechat-call-page .wechat-call-live-status,
#wechat-call-page .wechat-call-controls > button { color: rgba(255,255,255,.7); }
#wechat-call-page .wechat-call-input button { color: #111318; background: rgba(255,255,255,.94); }
#wechat-call-page .wechat-call-controls > button > i {
  border-color: rgba(255,255,255,.15);
  color: #fff;
  background: rgba(20,21,26,.5);
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  backdrop-filter: blur(13px) saturate(125%);
  -webkit-backdrop-filter: blur(13px) saturate(125%);
}
#wechat-call-page .wechat-call-controls > button[aria-pressed="false"] > i { color: rgba(255,255,255,.62); background: rgba(20,21,26,.4); }
#wechat-call-page .wechat-call-controls > button.is-hangup > i { color: #fff; background: #d84a4a; }

/* 语音 / 视频统一缩小胶囊 */
.wechat-call-mini-summary { display: none; }
#wechat-call-page.is-minimized,
#wechat-call-page[data-call-type].is-minimized {
  position: absolute;
  inset: auto 8px calc(82px + var(--vie-safe-bottom)) auto;
  width: 156px;
  max-width: calc(100% - 16px);
  height: 40px;
  min-width: 0;
  min-height: 0;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 999px;
  background: rgba(18,19,24,.76);
  box-shadow: 0 10px 26px rgba(0,0,0,.27);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
#wechat-call-page.is-minimized.is-mini-dragging {
  cursor: grabbing;
  box-shadow: 0 14px 32px rgba(0,0,0,.32);
}
#wechat-call-page.is-minimized::before { display: none; }
#wechat-call-page.is-minimized > *:not(.wechat-call-mini-summary) { display: none; }
#wechat-call-page.is-minimized .wechat-call-mini-summary:not([hidden]) {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 5px;
  border: 0;
  border-radius: inherit;
  color: #fff;
  background: transparent;
  text-align: left;
}
.wechat-call-mini-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.wechat-call-mini-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 50%;
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.08);
}
.wechat-call-mini-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.wechat-call-mini-copy { min-width: 0; display: grid; gap: 0; flex: 1 1 auto; }
.wechat-call-mini-copy strong,
.wechat-call-mini-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wechat-call-mini-copy strong { font-size: calc(10.5px * var(--vie-font-scale)); line-height: 14px; font-weight: 700; }
.wechat-call-mini-copy small { color: rgba(255,255,255,.68); font-size: calc(7.5px * var(--vie-font-scale)); line-height: 11px; font-variant-numeric: tabular-nums; }
.wechat-call-mini-wave {
  width: 36px;
  height: 26px;
  flex: 0 0 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 999px;
  background: #34C759;
  box-shadow: 0 4px 12px rgba(52,199,89,.26);
}
.theme-dark .wechat-call-mini-wave { background: #30D158; }
.wechat-call-mini-wave i {
  width: 2px;
  height: 8px;
  border-radius: 999px;
  background: #fff;
  transform-origin: center;
  animation: wechat-call-mini-wave 1s ease-in-out infinite;
}
.wechat-call-mini-wave i:nth-child(2) { height: 12px; animation-delay: -.18s; }
.wechat-call-mini-wave i:nth-child(3) { height: 16px; animation-delay: -.34s; }
.wechat-call-mini-wave i:nth-child(4) { height: 11px; animation-delay: -.52s; }
.wechat-call-mini-wave i:nth-child(5) { height: 7px; animation-delay: -.7s; }
@keyframes wechat-call-mini-wave { 0%,100% { transform: scaleY(.55); opacity: .78; } 50% { transform: scaleY(1); opacity: 1; } }

/* 通话内长按复用消息快捷面板。 */
.wechat-app.is-call-open .wechat-message-quick-menu { z-index: 88; }
.wechat-call-message.is-quick-menu-source { opacity: 0; }
.wechat-quick-message-slot .wechat-call-message {
  width: fit-content;
  max-width: min(84%,360px);
  margin: 0;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  color: #fff;
  background: rgba(30,31,36,.92);
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  font-size: calc(11.5px * var(--vie-font-scale));
  line-height: 17px;
  white-space: pre-wrap;
}
.wechat-quick-message-slot .wechat-call-message.is-outgoing { margin-left: auto; background: rgba(52,199,89,.88); }
.wechat-quick-message-slot .wechat-call-message.is-narration { margin-inline: auto; color: #f5dc72; background: rgba(20,21,25,.92); font-style: italic; }

/* 通话卡片完整聊天记录 */
.wechat-call-history-dialog {
  position: absolute;
  z-index: 92;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.wechat-call-history-dialog[hidden] { display: none; }
.wechat-call-history-backdrop { position: absolute; inset: 0; border: 0; border-radius: 0; background: rgba(0,0,0,.28); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.wechat-call-history-sheet {
  position: relative;
  width: min(100%,460px);
  max-height: min(76vh,620px);
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
  overflow: hidden;
  border: 1px solid var(--vie-chat-glass-border);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  color: var(--vie-text-primary);
  background: color-mix(in srgb,var(--vie-page-background-color) 72%,transparent);
  box-shadow: 0 -18px 52px rgba(0,0,0,.18);
  backdrop-filter: blur(26px) saturate(145%);
  -webkit-backdrop-filter: blur(26px) saturate(145%);
}
.wechat-call-history-sheet > header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 8px 18px;
  border-bottom: 1px solid var(--vie-page-divider-soft);
}
.wechat-call-history-sheet > header > span { min-width: 0; display: grid; gap: 2px; }
.wechat-call-history-sheet > header strong { font-size: calc(14px * var(--vie-font-scale)); }
.wechat-call-history-sheet > header small { color: var(--vie-text-muted); font-size: calc(9px * var(--vie-font-scale)); }
.wechat-call-history-sheet > header button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--vie-text-primary); background: var(--vie-page-soft-surface); }
.wechat-call-history-scroll {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 14px calc(18px + var(--vie-safe-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.wechat-call-history-line { width: 100%; display: flex; }
.wechat-call-history-line > span {
  max-width: 84%;
  padding: 8px 11px;
  border: 1px solid var(--vie-page-divider-soft);
  border-radius: 14px;
  background: var(--vie-page-surface-strong);
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
  font-size: calc(11px * var(--vie-font-scale));
  line-height: 17px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.wechat-call-history-line.is-incoming { justify-content: flex-start; }
.wechat-call-history-line.is-incoming > span { border-radius: 14px 14px 14px 4px; }
.wechat-call-history-line.is-outgoing { justify-content: flex-end; }
.wechat-call-history-line.is-outgoing > span { border-color: color-mix(in srgb,#34c759 30%,transparent); border-radius: 14px 14px 4px 14px; color: #fff; background: #34c759; }
.wechat-call-history-line.is-narration { justify-content: center; }
.wechat-call-history-line.is-narration > span { max-width: 94%; padding: 4px 8px; border: 0; color: var(--vie-text-muted); background: transparent; box-shadow: none; font-size: calc(9.5px * var(--vie-font-scale)); font-style: italic; text-align: center; }

/* 通话记录卡：白色卡片与圆形通话按钮。 */
.wechat-call-card {
  min-width: 188px;
  border: .5px solid rgba(0,0,0,.07);
  color: #111;
  background: #fff;
  box-shadow: 0 5px 18px rgba(0,0,0,.08);
}
.wechat-call-card .wechat-call-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  background: #34c759;
  box-shadow: 0 5px 13px rgba(52,199,89,.25);
}
.wechat-call-card strong { color:#111; }
.wechat-call-card small { color:#7c7c80; }
.wechat-call-card > i:last-child { color:#c7c7cc; }

/* 相机文字画面与文字图片。 */
.wechat-camera-card-image.is-camera-text {
  position: relative;
  align-content: center;
  gap: 7px;
  padding: 10px;
  color: #fff;
  background: linear-gradient(145deg,#8d929b,#494e57);
}
.wechat-camera-card-image.is-camera-text > i { font-size:22px; opacity:.94; }
.wechat-camera-card-image.is-camera-text > em {
  width:100%; max-height:48px; overflow:hidden; color:rgba(255,255,255,.94);
  font-size:9px; line-height:12px; font-style:normal; text-align:center;
}
.wechat-polaroid-card {
  width:min(44vw,164px); display:grid; gap:7px; padding:8px 8px 11px;
  border:0; border-radius:13px; color:#181818; background:#fff;
  box-shadow:0 5px 18px rgba(0,0,0,.10); text-align:left;
}
.wechat-polaroid-cover {
  aspect-ratio:1; display:grid; place-items:center; align-content:center; gap:7px;
  overflow:hidden; border-radius:9px; color:#fff;
  background:linear-gradient(145deg,#89919a,#353a42);
}
.wechat-polaroid-cover i { font-size:25px; }
.wechat-polaroid-cover span { font-size:10px; font-weight:700; letter-spacing:.04em; }
.wechat-polaroid-caption {
  display:-webkit-box; overflow:hidden; color:#343434; font-size:10px; line-height:14px;
  -webkit-box-orient:vertical; -webkit-line-clamp:2;
}

.wechat-polaroid-cover { position:relative; }
.wechat-polaroid-overlay {
  position:absolute; inset:0; display:grid; place-items:center; padding:14px;
  color:#1d1d1f; background:rgba(255,255,255,.94); opacity:0; transform:scale(.98);
  transition:opacity .18s ease,transform .18s ease; backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
}
.wechat-polaroid-overlay em {
  max-height:100%; overflow:auto; font-size:11px; line-height:16px; font-style:normal;
  text-align:left; white-space:pre-wrap; overflow-wrap:anywhere;
}
.wechat-polaroid-card.is-revealed .wechat-polaroid-overlay { opacity:1; transform:scale(1); }
.wechat-polaroid-card.is-revealed .wechat-polaroid-caption { color:#111; }

/* 服务、钱包、亲属卡与支付安全。 */
.wechat-app {
  --wechat-service-surface: var(--vie-page-surface-strong);
  --wechat-service-soft: var(--vie-page-soft-surface);
  --wechat-service-ink: var(--vie-text-primary);
  --wechat-service-muted: var(--vie-text-muted);
  --wechat-service-line: var(--vie-page-divider-soft);
  --wechat-service-accent: var(--logo-color);
  --wechat-service-accent-soft: color-mix(in srgb, var(--logo-color) 15%, var(--vie-page-surface-strong));
  --wechat-service-positive: color-mix(in srgb, var(--logo-color) 64%, #e85d89);
  --wechat-service-negative: color-mix(in srgb, var(--logo-color) 44%, #31a77b);
  --wechat-service-shadow: 0 12px 30px color-mix(in srgb, var(--vie-text-primary) 8%, transparent);
}

.wechat-finance-scroll,
.wechat-family-card-scroll { padding-top: 8px; }

.wechat-finance-warning {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr);
  gap: 11px;
  align-items: start;
  margin-bottom: 12px;
  padding: 14px;
  border: .5px solid color-mix(in srgb, var(--wechat-service-accent) 28%, var(--wechat-service-line));
  border-radius: 20px;
  background:
    radial-gradient(circle at 14% 0%, color-mix(in srgb, var(--wechat-service-accent) 18%, transparent), transparent 44%),
    linear-gradient(145deg, var(--wechat-service-surface), color-mix(in srgb, var(--wechat-service-soft) 78%, var(--wechat-service-surface)));
  box-shadow: var(--wechat-service-shadow);
}
.wechat-finance-warning > span {
  width: 38px; height: 38px; display:grid; place-items:center; border-radius: 14px;
  background: var(--wechat-service-accent-soft); font-size: 19px; line-height:1;
}
.wechat-finance-warning strong,
.wechat-finance-warning p { display:block; margin:0; }
.wechat-finance-warning strong { color:var(--wechat-service-ink); font-size:calc(11px * var(--vie-font-scale)); letter-spacing:.12em; text-transform:uppercase; font-weight:650; }
.wechat-finance-warning p { margin-top:5px; color:var(--wechat-service-muted); font-size:calc(9px * var(--vie-font-scale)); line-height:1.6; }

.wechat-finance-overview {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); overflow:hidden;
  margin-bottom: 15px; border:.5px solid var(--wechat-service-line); border-radius:18px;
  background:var(--wechat-service-surface); box-shadow:0 8px 22px color-mix(in srgb, var(--vie-text-primary) 5%, transparent);
}
.wechat-finance-overview > div { position:relative; min-width:0; padding:13px 10px 12px; text-align:center; }
.wechat-finance-overview > div + div::before { content:""; position:absolute; top:12px; bottom:12px; left:0; width:.5px; background:var(--wechat-service-line); }
.wechat-finance-overview small,
.wechat-finance-overview strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.wechat-finance-overview small { color:var(--wechat-service-muted); font-size:calc(8px * var(--vie-font-scale)); line-height:13px; }
.wechat-finance-overview strong { margin-top:4px; color:var(--wechat-service-ink); font-size:calc(11px * var(--vie-font-scale)); line-height:16px; font-weight:650; font-variant-numeric:tabular-nums; }
.wechat-finance-overview strong.is-positive { color:var(--wechat-service-positive); }
.wechat-finance-overview strong.is-negative { color:var(--wechat-service-negative); }
.wechat-finance-head { margin-bottom:8px; }
.wechat-finance-head > small { color:var(--wechat-service-muted); font-size:calc(8px * var(--vie-font-scale)); letter-spacing:.06em; }
.wechat-finance-market-board { display:grid; gap:9px; margin-bottom:14px; }
.wechat-finance-board-head { margin-bottom:0; }
.wechat-finance-overview-chart-card {
  position:relative; overflow:hidden; min-height:168px; padding:10px 10px 34px;
  border:.5px solid color-mix(in srgb, var(--wechat-service-accent) 18%, var(--wechat-service-line)); border-radius:22px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--wechat-service-accent-soft) 58%, transparent), transparent 54%),
    linear-gradient(145deg, var(--wechat-service-surface), color-mix(in srgb, var(--wechat-service-soft) 72%, var(--wechat-service-surface)));
  box-shadow:var(--wechat-service-shadow);
}
.wechat-finance-overview-chart-card::before {
  content:""; position:absolute; inset:12px 10px 34px; border-radius:16px;
  background:
    linear-gradient(to bottom, color-mix(in srgb, var(--wechat-service-line) 55%, transparent) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(to right, color-mix(in srgb, var(--wechat-service-line) 40%, transparent) 1px, transparent 1px) 0 0 / 16.666% 100%;
  opacity:.7; pointer-events:none;
}
.wechat-finance-overview-chart { position:relative; z-index:1; display:block; width:100%; height:124px; overflow:visible; }
.wechat-finance-overview-chart path,
.wechat-finance-overview-chart polyline {
  fill:none; stroke-width:2.15; stroke-linecap:round; stroke-linejoin:round; vector-effect:non-scaling-stroke;
}
.wechat-finance-overview-chart .is-shadow { opacity:.16; stroke-width:5.6; }
.wechat-finance-chart-legend {
  position:absolute; right:11px; bottom:11px; z-index:2; display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px;
  max-width:min(72%, 236px);
}
.wechat-finance-chart-legend span {
  display:inline-flex; align-items:center; gap:5px; min-width:0; padding:4px 8px; border-radius:999px;
  background:color-mix(in srgb, var(--wechat-service-surface) 88%, transparent);
  color:var(--wechat-service-ink); font-size:calc(7.6px * var(--vie-font-scale));
  box-shadow:0 3px 10px color-mix(in srgb, var(--vie-text-primary) 6%, transparent);
}
.wechat-finance-chart-legend i { width:8px; height:8px; border-radius:50%; flex:0 0 auto; }
.wechat-finance-chart-legend b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:650; }
.wechat-finance-event-card {
  display:grid; gap:4px; padding:13px 14px; border:.5px solid color-mix(in srgb, var(--wechat-service-accent) 12%, var(--wechat-service-line));
  border-radius:18px; background:color-mix(in srgb, var(--wechat-service-surface) 85%, var(--wechat-service-accent-soft));
}
.wechat-finance-event-card small { color:var(--wechat-service-muted); font-size:calc(7.4px * var(--vie-font-scale)); letter-spacing:.12em; text-transform:uppercase; }
.wechat-finance-event-card strong { color:var(--wechat-service-ink); font-size:calc(11px * var(--vie-font-scale)); font-weight:650; }
.wechat-finance-event-card p { margin:0; color:var(--wechat-service-muted); font-size:calc(8.3px * var(--vie-font-scale)); line-height:1.55; }

.wechat-finance-stock-list { display:grid; gap:9px; padding-bottom:18px; }
.wechat-finance-stock {
  display:grid; grid-template-columns:minmax(0,1fr) 86px; gap:11px; align-items:center;
  padding:13px; border:.5px solid var(--wechat-service-line); border-radius:19px;
  background:var(--wechat-service-surface); box-shadow:0 7px 22px color-mix(in srgb, var(--vie-text-primary) 4%, transparent);
}
.wechat-finance-stock-main { min-width:0; }
.wechat-finance-stock-title { display:flex; align-items:baseline; gap:7px; min-width:0; }
.wechat-finance-stock-title strong { color:var(--wechat-service-ink); font-size:calc(12px * var(--vie-font-scale)); font-weight:650; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.wechat-finance-stock-title small { color:var(--wechat-service-muted); font-size:calc(8px * var(--vie-font-scale)); letter-spacing:.08em; }
.wechat-finance-stock-quote { display:flex; align-items:center; gap:8px; margin-top:5px; }
.wechat-finance-stock-price { color:var(--wechat-service-ink); font-size:calc(14px * var(--vie-font-scale)); font-weight:700; font-variant-numeric:tabular-nums; }
.wechat-finance-stock-change { font-size:calc(9px * var(--vie-font-scale)); font-weight:650; font-variant-numeric:tabular-nums; }
.wechat-finance-stock-change.is-positive { color:var(--wechat-service-positive); }
.wechat-finance-stock-change.is-negative { color:var(--wechat-service-negative); }
.wechat-finance-stock-position { margin-top:5px; color:var(--wechat-service-muted); font-size:calc(8px * var(--vie-font-scale)); line-height:13px; }
.wechat-finance-stock-side { min-width:0; display:grid; gap:7px; }
.wechat-finance-sparkline { width:86px; height:30px; overflow:visible; }
.wechat-finance-sparkline polyline { fill:none; stroke:var(--finance-stock-color,var(--wechat-service-accent)); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; vector-effect:non-scaling-stroke; }
.wechat-finance-trade-actions { display:grid; grid-template-columns:1fr 1fr; gap:5px; }
.wechat-finance-trade-actions button {
  min-width:0; height:28px; border:0; border-radius:10px; color:var(--wechat-service-ink);
  background:var(--wechat-service-soft); font:inherit; font-size:calc(8px * var(--vie-font-scale)); font-weight:650;
}
.wechat-finance-trade-actions button[data-finance-action="buy"] { background:var(--wechat-service-accent-soft); }
.wechat-finance-trade-actions button:disabled { opacity:.38; }

.wechat-family-card-hero {
  display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:12px; padding:17px;
  border:.5px solid color-mix(in srgb, var(--wechat-service-accent) 22%, var(--wechat-service-line)); border-radius:22px;
  background:linear-gradient(145deg,var(--wechat-service-surface),var(--wechat-service-accent-soft)); box-shadow:var(--wechat-service-shadow);
}
.wechat-family-card-hero small { display:block; color:var(--wechat-service-muted); font-size:calc(8px * var(--vie-font-scale)); letter-spacing:.14em; text-transform:uppercase; }
.wechat-family-card-hero strong { display:block; margin-top:4px; color:var(--wechat-service-ink); font-size:calc(17px * var(--vie-font-scale)); line-height:22px; }
.wechat-family-card-hero p { max-width:220px; margin:5px 0 0; color:var(--wechat-service-muted); font-size:calc(8.5px * var(--vie-font-scale)); line-height:1.5; }
.wechat-family-card-hero button { flex:0 0 auto; display:flex; align-items:center; gap:5px; height:32px; padding:0 11px; border:0; border-radius:12px; color:var(--wechat-service-ink); background:var(--wechat-service-surface); box-shadow:0 5px 16px color-mix(in srgb, var(--vie-text-primary) 6%, transparent); font:inherit; font-size:calc(8px * var(--vie-font-scale)); font-weight:650; }
.wechat-family-card-list { display:grid; gap:10px; padding-bottom:18px; }
.wechat-family-card {
  position:relative; overflow:hidden; padding:15px; border:.5px solid var(--wechat-service-line); border-radius:20px;
  background:var(--wechat-service-surface); box-shadow:0 8px 24px color-mix(in srgb, var(--vie-text-primary) 5%, transparent);
}
.wechat-family-card::after { content:""; position:absolute; width:90px; height:90px; right:-34px; top:-38px; border-radius:50%; background:var(--wechat-service-accent-soft); pointer-events:none; }
.wechat-family-card.is-paused { opacity:.62; }
.wechat-family-card-head { position:relative; z-index:1; display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.wechat-family-card-head strong { display:block; color:var(--wechat-service-ink); font-size:calc(13px * var(--vie-font-scale)); font-weight:650; }
.wechat-family-card-head small { display:block; margin-top:2px; color:var(--wechat-service-muted); font-size:calc(8px * var(--vie-font-scale)); }
.wechat-family-card-badge { padding:4px 7px; border-radius:999px; color:var(--wechat-service-accent); background:var(--wechat-service-accent-soft); font-size:calc(7px * var(--vie-font-scale)); font-weight:700; }
.wechat-family-card.is-paused .wechat-family-card-badge { color:var(--wechat-service-muted); background:var(--wechat-service-soft); }
.wechat-family-card-meter { margin-top:14px; }
.wechat-family-card-meter-copy { display:flex; justify-content:space-between; gap:10px; color:var(--wechat-service-muted); font-size:calc(8px * var(--vie-font-scale)); }
.wechat-family-card-meter-copy b { color:var(--wechat-service-ink); font-weight:650; }
.wechat-family-card-meter-track { height:6px; margin-top:7px; overflow:hidden; border-radius:999px; background:var(--wechat-service-soft); }
.wechat-family-card-meter-track i { display:block; height:100%; width:var(--family-progress,0%); border-radius:inherit; background:var(--wechat-service-accent); }
.wechat-family-card-actions { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; margin-top:13px; }
.wechat-family-card-actions button { min-width:0; height:29px; padding:0 3px; border:0; border-radius:10px; color:var(--wechat-service-ink); background:var(--wechat-service-soft); font:inherit; font-size:calc(7.5px * var(--vie-font-scale)); }
.wechat-family-card-actions button:first-child { background:var(--wechat-service-accent-soft); font-weight:650; }
.wechat-family-card-actions button.is-danger { color:var(--wechat-service-negative); }
.wechat-family-card-empty { min-height:190px; display:grid; place-items:center; align-content:center; text-align:center; padding:24px; border:.5px dashed var(--wechat-service-line); border-radius:20px; color:var(--wechat-service-muted); background:color-mix(in srgb,var(--wechat-service-soft) 70%,transparent); }
.wechat-family-card-empty i { margin-bottom:10px; font-size:22px; color:var(--wechat-service-accent); }
.wechat-family-card-empty strong { color:var(--wechat-service-ink); font-size:calc(12px * var(--vie-font-scale)); }
.wechat-family-card-empty small { max-width:240px; margin-top:4px; font-size:calc(8.5px * var(--vie-font-scale)); line-height:1.5; }

.wechat-payment-security-banner {
  display:grid; grid-template-columns:42px minmax(0,1fr); gap:11px; align-items:center; margin:6px 0 18px; padding:14px;
  border:.5px solid color-mix(in srgb,var(--wechat-service-accent) 22%,var(--wechat-service-line)); border-radius:20px;
  background:linear-gradient(145deg,var(--wechat-service-surface),var(--wechat-service-accent-soft)); box-shadow:var(--wechat-service-shadow);
}
.wechat-payment-security-banner > span { width:42px; height:42px; display:grid; place-items:center; border-radius:15px; color:var(--wechat-service-accent); background:var(--wechat-service-surface); font-size:18px; }
.wechat-payment-security-banner small { display:block; color:var(--wechat-service-muted); font-size:calc(7.5px * var(--vie-font-scale)); text-transform:uppercase; letter-spacing:.12em; }
.wechat-payment-security-banner strong { display:block; margin-top:2px; color:var(--wechat-service-ink); font-size:calc(12px * var(--vie-font-scale)); }
.wechat-payment-security-banner p { margin:3px 0 0; color:var(--wechat-service-muted); font-size:calc(8.5px * var(--vie-font-scale)); line-height:1.45; }

.theme-dark .wechat-app {
  --wechat-service-shadow: 0 12px 30px rgba(0,0,0,.18);
}

/* 线下消息排版与文本比例。 */
.wechat-offline-page[hidden] { display:none; }
.wechat-offline-page {
  --wechat-offline-page-bg:#fff;
  --wechat-offline-wallpaper-image:none;
  --wechat-offline-decor:#4a4a50;
  --wechat-offline-control:#4a4a50;
  --wechat-offline-dialogue:#111318;
  --wechat-offline-narration:#45484f;
  --wechat-offline-dialogue-style:normal;
  --wechat-offline-narration-style:italic;
  --wechat-offline-dialogue-weight:400;
  --wechat-offline-narration-weight:400;
  position:absolute;
  inset:0;
  z-index:40;
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  min-width:0;
  min-height:0;
  overflow:hidden;
  isolation:isolate;
  color:var(--wechat-offline-decor);
  background-color:var(--wechat-offline-page-bg);
  background-image:var(--wechat-offline-wallpaper-image);
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  font-family:var(--vie-font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}
.vie-viewport.wechat-offline-open .system-status-bar {
  color:var(--wechat-offline-control,#18191c);
  text-shadow:none;
}
.vie-viewport.wechat-offline-settings-open .system-status-bar {
  color:var(--vie-text-primary);
}
.wechat-offline-page::before,
.wechat-offline-page::after {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
}
.wechat-offline-page::before {
  z-index:-2;
  opacity:.78;
  background:
    radial-gradient(ellipse at 18% 14%, color-mix(in srgb,var(--wechat-offline-decor) 4.5%,transparent), transparent 24%),
    radial-gradient(ellipse at 82% 44%, color-mix(in srgb,var(--wechat-offline-decor) 3.5%,transparent), transparent 29%),
    radial-gradient(ellipse at 42% 83%, color-mix(in srgb,var(--wechat-offline-decor) 2.8%,transparent), transparent 34%),
    linear-gradient(112deg, transparent 0 27%, color-mix(in srgb,var(--wechat-offline-decor) 2.4%,transparent) 39%, transparent 52% 100%);
  filter:blur(22px);
  transform:scale(1.08);
}
.wechat-offline-page::after {
  z-index:-1;
  opacity:.46;
  background:
    radial-gradient(circle at 15% 42%, color-mix(in srgb,var(--wechat-offline-decor) 38%,transparent) 0 1px, transparent 1.5px),
    radial-gradient(circle at 73% 29%, color-mix(in srgb,var(--wechat-offline-decor) 30%,transparent) 0 1px, transparent 1.5px),
    radial-gradient(circle at 88% 67%, color-mix(in srgb,var(--wechat-offline-decor) 32%,transparent) 0 1px, transparent 1.5px),
    radial-gradient(circle at 48% 74%, color-mix(in srgb,var(--wechat-offline-decor) 22%,transparent) 0 1px, transparent 1.5px),
    linear-gradient(180deg, transparent, color-mix(in srgb,var(--wechat-offline-decor) 2.8%,transparent));
}
.wechat-offline-page[data-ambience="sun"] {
  background-color:var(--wechat-offline-page-bg);
}
.wechat-offline-page[data-ambience="rain"] {
  background-color:var(--wechat-offline-page-bg);
}
.wechat-offline-atmosphere {
  position:absolute;
  z-index:1;
  inset:0;
  overflow:hidden;
  pointer-events:none;
}
.wechat-offline-atmosphere::before {
  content:"";
  position:absolute;
  inset:-22% -10%;
  opacity:0;
  background:repeating-linear-gradient(106deg, transparent 0 16px, color-mix(in srgb,var(--wechat-offline-control) 12%,transparent) 17px 18px, transparent 19px 31px);
  transform:translate3d(0,-18%,0);
}
.wechat-offline-page[data-ambience="rain"] .wechat-offline-atmosphere::before {
  opacity:.55;
  animation:wechat-offline-rain 1.1s linear infinite;
}
.wechat-offline-atmosphere > i {
  position:absolute;
  top:-8%;
  color:color-mix(in srgb,var(--wechat-offline-control) 28%,transparent);
  font-size:8px;
  animation:wechat-offline-snow 10s linear infinite;
}
.wechat-offline-atmosphere > i:nth-child(1) { left:8%; animation-delay:-1s; animation-duration:11s; }
.wechat-offline-atmosphere > i:nth-child(2) { left:24%; font-size:5px; animation-delay:-7s; animation-duration:13s; }
.wechat-offline-atmosphere > i:nth-child(3) { left:43%; font-size:9px; animation-delay:-4s; animation-duration:12s; }
.wechat-offline-atmosphere > i:nth-child(4) { left:61%; font-size:6px; animation-delay:-9s; animation-duration:14s; }
.wechat-offline-atmosphere > i:nth-child(5) { left:78%; font-size:8px; animation-delay:-5s; animation-duration:11.5s; }
.wechat-offline-atmosphere > i:nth-child(6) { left:92%; font-size:5px; animation-delay:-2s; animation-duration:13.5s; }
.wechat-offline-page:not([data-ambience="snow"]) .wechat-offline-atmosphere > i { display:none; }
@keyframes wechat-offline-snow {
  0% { transform:translate3d(-7px,-5vh,0) rotate(0deg); opacity:0; }
  10% { opacity:.8; }
  55% { transform:translate3d(9px,52vh,0) rotate(150deg); }
  100% { transform:translate3d(-4px,108vh,0) rotate(310deg); opacity:.1; }
}
@keyframes wechat-offline-rain {
  to { transform:translate3d(-3%,22%,0); }
}

.wechat-offline-floating-nav {
  position:relative;
  z-index:3;
  min-height:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  padding:calc(var(--status-bar-space) + 14px) 18px 0;
  background:transparent;
}
.wechat-offline-pair-name:focus-visible,
.wechat-offline-control-bar button:focus-visible,
.wechat-offline-composer button:focus-visible,
.wechat-offline-bubble button:focus-visible {
  outline:2px solid color-mix(in srgb,var(--wechat-offline-control) 62%,transparent);
  outline-offset:2px;
}
.wechat-offline-pair-name {
  display:block;
  max-width:min(82vw,310px);
  margin:0;
  padding:0;
  overflow:hidden;
  border:0;
  color:color-mix(in srgb,var(--wechat-offline-decor) 84%,transparent);
  background:transparent;
  font-family:"Noto Serif SC", "Songti SC", STSong, serif;
  font-size:clamp(10px, 3vw, 12.5px);
  font-weight:500;
  line-height:1.45;
  letter-spacing:.04em;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-align:center;
  -webkit-tap-highlight-color:transparent;
}
.wechat-offline-pair-name em { color:color-mix(in srgb,var(--wechat-offline-decor) 42%,transparent); font-style:normal; font-weight:400; }
.wechat-offline-motto {
  display:block;
  max-width:92vw;
  margin:7px 0 0;
  color:color-mix(in srgb,var(--wechat-offline-decor) 68%,transparent);
  font-family:"Noto Serif TC", "Songti TC", "Songti SC", STSong, serif;
  font-size:clamp(9px, 2.65vw, 11px);
  line-height:1.4;
  letter-spacing:.09em;
  text-align:center;
  white-space:nowrap;
}
.wechat-offline-motto > span { display:inline-block; width:1.25em; }
.wechat-offline-control-bar {
  position:absolute;
  z-index:5;
  top:0;
  left:17px;
  width:148px;
  max-width:calc(100% - 34px);
  height:26px;
  margin:0;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:0;
  padding:0;
  overflow:visible;
  box-sizing:border-box;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
.wechat-offline-control-bar button {
  position:relative;
  width:auto;
  min-width:0;
  flex:1 1 0;
  height:100%;
  display:grid;
  place-items:center;
  margin:0;
  padding:0;
  border:0;
  color:color-mix(in srgb,var(--wechat-offline-control) 48%,transparent);
  background:transparent;
  font:inherit;
  font-size:14.5px;
}
.wechat-offline-control-bar button::after {
  content:"";
  position:absolute;
  left:50%;
  bottom:1px;
  width:2px;
  height:2px;
  border-radius:50%;
  background:currentColor;
  opacity:0;
  transform:translateX(-50%);
}
.wechat-offline-control-bar button.is-active,
.wechat-offline-control-bar button[aria-pressed="true"] { color:var(--wechat-offline-control); }
.wechat-offline-control-bar button.is-active::after,
.wechat-offline-control-bar button[aria-pressed="true"]::after { opacity:.72; }

.wechat-offline-stage {
  position:relative;
  z-index:2;
  min-width:0;
  min-height:0;
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  padding:12px 0 0;
  overflow:hidden;
}
.wechat-offline-hero {
  position:relative;
  width:min(calc(100% - 36px), 430px);
  height:clamp(158px,22vh,180px);
  margin:0 auto;
  padding:0;
  overflow:visible;
  color:var(--wechat-offline-decor);
  font-family:"Noto Serif SC", "Songti SC", STSong, serif;
  text-shadow:none;
}
.wechat-offline-hero::before {
  content:"";
  position:absolute;
  top:60px;
  left:29%;
  width:86px;
  height:86px;
  border:1px solid color-mix(in srgb,var(--wechat-offline-decor) 14%,transparent);
  border-radius:50%;
  box-shadow:0 0 0 1px rgba(255,255,255,.42) inset;
}
.wechat-offline-hero::after {
  content:"";
  position:absolute;
  z-index:0;
  right:-9%;
  bottom:-18px;
  left:-9%;
  height:62px;
  pointer-events:none;
  background:linear-gradient(180deg, transparent 0%, color-mix(in srgb,var(--wechat-offline-page-bg) 42%,transparent) 48%, transparent 100%);
  filter:blur(12px);
}
.wechat-offline-hero p { margin:0; }
.wechat-offline-ghost-word {
  position:absolute;
  z-index:0;
  top:57px;
  left:5%;
  color:color-mix(in srgb,var(--wechat-offline-decor) 7%,transparent);
  font-family:Arial, Helvetica, sans-serif;
  font-size:clamp(27px,8.8vw,38px);
  font-weight:800;
  line-height:1;
  letter-spacing:.08em;
  filter:blur(2.6px);
  transform:rotate(-5deg) scaleY(.88);
}
.wechat-offline-script-word {
  position:absolute;
  z-index:3;
  top:27px;
  right:8%;
  color:color-mix(in srgb,var(--wechat-offline-decor) 18%,transparent);
  font-family:"Noto Serif Math", "Cambria Math", "Snell Roundhand", "Segoe Script", cursive;
  font-size:clamp(20px,6.8vw,30px);
  font-style:normal;
  font-weight:400;
  line-height:1;
  letter-spacing:.01em;
  text-shadow:none;
  transform:rotate(-4deg);
}
.wechat-offline-decor-dot {
  position:absolute;
  z-index:4;
  width:4px;
  height:4px;
  border-radius:50%;
  background:color-mix(in srgb,var(--wechat-offline-decor) 48%,transparent);
  box-shadow:none;
}
.wechat-offline-decor-dot.is-one { top:62px; left:9%; }
.wechat-offline-decor-dot.is-two { top:120px; left:63%; width:3px; height:3px; opacity:.72; }
.wechat-offline-decor-dot.is-three { top:151px; right:13%; width:3px; height:3px; opacity:.6; }
.wechat-offline-hero .is-primary {
  position:absolute;
  z-index:2;
  inset:0;
}
.wechat-offline-hero .is-secondary {
  position:absolute;
  z-index:3;
  inset:0;
}
.wechat-offline-glyph {
  position:absolute;
  display:block;
  color:color-mix(in srgb,var(--wechat-offline-decor) 76%,transparent);
  font-size:22px;
  font-weight:360;
  letter-spacing:-.1em;
  line-height:1;
  text-shadow:none;
}
.wechat-offline-glyph.is-fade-corner {
  -webkit-mask-image:linear-gradient(135deg, #000 0 52%, rgba(0,0,0,.78) 70%, transparent 100%);
  mask-image:linear-gradient(135deg, #000 0 52%, rgba(0,0,0,.78) 70%, transparent 100%);
}
.wechat-offline-glyph.is-p1 { top:16px; left:11%; font-size:24px; opacity:.78; }
.wechat-offline-glyph.is-p2 { top:23px; left:18.5%; font-size:16px; opacity:.67; }
.wechat-offline-glyph.is-p3 { top:6px; left:27%; color:var(--wechat-offline-decor); font-size:36px; font-weight:760; }
.wechat-offline-glyph.is-p4 { top:15px; left:37%; color:color-mix(in srgb,var(--wechat-offline-decor) 92%,transparent); font-size:31px; font-weight:720; }
.wechat-offline-glyph.is-p5 { top:22px; left:46.5%; font-size:16px; opacity:.63; }
.wechat-offline-glyph.is-p6 { top:28px; left:53%; font-size:14px; opacity:.58; }
.wechat-offline-glyph.is-p7 { top:16px; left:60%; font-size:24px; opacity:.83; }
.wechat-offline-glyph.is-p8 { top:25px; left:69%; font-size:17px; opacity:.62; }
.wechat-offline-glyph.is-s1 { top:75px; left:30%; font-size:18px; opacity:.59; }
.wechat-offline-glyph.is-s2 { top:66px; left:37%; font-size:26px; opacity:.74; }
.wechat-offline-glyph.is-s3 { top:61px; left:45%; color:var(--wechat-offline-decor); font-size:35px; font-weight:760; }
.wechat-offline-glyph.is-s4 { top:73px; left:55%; color:color-mix(in srgb,var(--wechat-offline-decor) 88%,transparent); font-size:29px; font-weight:700; }
.wechat-offline-hero small {
  position:absolute;
  z-index:4;
  right:1%;
  top:128px;
  bottom:auto;
  left:1%;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0;
  color:color-mix(in srgb,var(--wechat-offline-decor) 52%,transparent);
  font-family:Georgia, "Times New Roman", serif;
  font-size:clamp(9px,2.8vw,12px);
  line-height:1;
  letter-spacing:.06em;
  white-space:nowrap;
}
.wechat-offline-content {
  min-width:0;
  min-height:0;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:34px 0 calc(var(--wechat-offline-composer-height, 96px) + 28px);
  scroll-padding-block:34px calc(var(--wechat-offline-composer-height, 96px) + 28px);
  scrollbar-width:none;
  -webkit-mask-image:linear-gradient(180deg, transparent 0, rgba(0,0,0,.18) 7px, #000 36px, #000 100%);
  mask-image:linear-gradient(180deg, transparent 0, rgba(0,0,0,.18) 7px, #000 36px, #000 100%);
}
.wechat-offline-content::-webkit-scrollbar { display:none; }
.wechat-offline-bubble {
  position:relative;
  width:calc(100% - 70px);
  margin:0 35px 28px;
  padding:22px 22px 0;
  box-sizing:border-box;
  overflow:visible;
  border:.5px solid color-mix(in srgb,var(--wechat-offline-decor) 13%,transparent);
  border-radius:18px;
  color:var(--wechat-offline-dialogue);
  background:color-mix(in srgb,var(--wechat-offline-page-bg) 96%,#fff 4%);
  box-shadow:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
.wechat-offline-bubble:last-child { margin-bottom:0; }
.wechat-offline-bubble-head {
  min-width:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) 28px;
  align-items:start;
  gap:12px;
}
.wechat-offline-bubble-identity {
  min-width:0;
  display:flex;
  align-items:center;
  gap:12px;
}
.wechat-offline-bubble-identity .wechat-avatar {
  width:40px;
  height:40px;
  flex:0 0 40px;
  border:.5px solid color-mix(in srgb,var(--wechat-offline-decor) 13%,transparent);
  border-radius:50%;
  box-shadow:none;
}
.wechat-offline-bubble-person {
  min-width:0;
  display:grid;
  gap:3px;
  align-content:center;
}
.wechat-offline-bubble-person > strong {
  overflow:hidden;
  color:color-mix(in srgb,var(--wechat-offline-decor) 90%,transparent);
  font-size:13px;
  font-weight:680;
  line-height:1.28;
  letter-spacing:.01em;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.wechat-offline-signature {
  max-width:100%;
  margin:0;
  padding:0;
  overflow:hidden;
  border:0;
  color:color-mix(in srgb,var(--wechat-offline-decor) 50%,transparent);
  background:transparent;
  box-shadow:none;
  font:inherit;
  font-size:10px;
  font-weight:400;
  line-height:1.42;
  text-align:left;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.wechat-offline-bubble-more {
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  margin:-2px -4px 0 0;
  padding:0;
  border:0;
  color:color-mix(in srgb,var(--wechat-offline-decor) 60%,transparent);
  background:transparent;
  box-shadow:none;
  font:inherit;
  font-size:15px;
}
.wechat-offline-message-menu {
  position:absolute;
  z-index:8;
  top:48px;
  right:16px;
  width:132px;
  padding:5px;
  border:.5px solid color-mix(in srgb,var(--wechat-offline-decor) 16%,transparent);
  border-radius:14px;
  background:color-mix(in srgb,var(--wechat-offline-page-bg) 97%,#fff 3%);
  box-shadow:none;
}
.wechat-offline-message-menu[hidden] { display:none; }
.wechat-offline-message-menu button {
  width:100%;
  min-height:38px;
  display:flex;
  align-items:center;
  gap:10px;
  margin:0;
  padding:0 11px;
  border:0;
  border-radius:10px;
  color:color-mix(in srgb,var(--wechat-offline-decor) 82%,transparent);
  background:transparent;
  box-shadow:none;
  font:inherit;
  font-size:11px;
  text-align:left;
}
.wechat-offline-message-menu button i {
  width:14px;
  flex:0 0 14px;
  font-size:12px;
  text-align:center;
}
.wechat-offline-message-menu button + button {
  border-top:.5px solid color-mix(in srgb,var(--wechat-offline-decor) 10%,transparent);
}
.wechat-offline-message-menu button.is-destructive { color:#b34b4b; }
.wechat-offline-bubble-actions {
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:16px 0 0;
  padding:0;
  overflow:hidden;
  pointer-events:none;
  user-select:none;
}
.wechat-offline-bubble-actions span {
  min-width:max-content;
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:color-mix(in srgb,var(--wechat-offline-decor) 58%,transparent);
  font-size:10.5px;
  font-weight:620;
  line-height:1.05;
  letter-spacing:.045em;
}
.wechat-offline-bubble-actions span i { font-size:14px; }
.wechat-offline-bubble-copy {
  width:100%;
  max-width:560px;
  margin:21px auto 0;
  color:var(--wechat-offline-dialogue);
  font-family:var(--vie-font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size:15px;
  line-height:1.88;
  letter-spacing:.012em;
  text-align:left;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.wechat-offline-bubble-copy > span { white-space:pre-wrap; }
.wechat-offline-bubble-decoration {
  position:relative;
  width:calc(100% + 44px);
  height:138px;
  display:block;
  margin:22px -22px 0;
  padding:0;
  overflow:hidden;
  border:0;
  border-radius:0 0 18px 18px;
  background:var(--wechat-offline-page-bg);
  box-shadow:none;
  -webkit-mask-image:linear-gradient(180deg, transparent 0%, rgba(0,0,0,.08) 8%, rgba(0,0,0,.34) 24%, rgba(0,0,0,.72) 44%, #000 68%, #000 100%);
  mask-image:linear-gradient(180deg, transparent 0%, rgba(0,0,0,.08) 8%, rgba(0,0,0,.34) 24%, rgba(0,0,0,.72) 44%, #000 68%, #000 100%);
}
.wechat-offline-bubble-decoration img {
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center 58%;
  opacity:.9;
}

.wechat-offline-composer {
  position:absolute;
  z-index:4;
  right:0;
  bottom:0;
  left:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) 92px;
  column-gap:10px;
  row-gap:0;
  align-items:end;
  padding:32px 17px calc(env(safe-area-inset-bottom, 0px) + 15px);
}
.wechat-offline-input-shell,
.wechat-offline-action-capsule {
  min-height:49px;
  border:.5px solid rgba(255,255,255,.46);
  border-radius:999px;
  background:rgba(255,255,255,.16);
  box-shadow:none;
  backdrop-filter:blur(22px) saturate(1.16);
  -webkit-backdrop-filter:blur(22px) saturate(1.16);
}
.wechat-offline-input-shell {
  min-width:0;
  max-height:108px;
  display:flex;
  align-items:stretch;
  padding:0 18px;
  overflow:hidden;
}
.wechat-offline-input-shell:focus-within {
  outline:0;
  border-color:rgba(255,255,255,.46);
  background:rgba(255,255,255,.16);
  box-shadow:none;
}
.wechat-offline-input-shell textarea {
  width:100%;
  min-width:0;
  min-height:47px;
  max-height:106px;
  box-sizing:border-box;
  padding:13px 0;
  overflow-y:hidden;
  resize:none;
  border:0;
  outline:0;
  color:var(--wechat-offline-control);
  background:transparent;
  caret-color:var(--wechat-offline-control);
  font:inherit;
  font-size:14px;
  line-height:21px;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  word-break:break-word;
  -webkit-tap-highlight-color:transparent;
}
.wechat-offline-input-shell textarea::placeholder { color:color-mix(in srgb,var(--wechat-offline-control) 38%,transparent); }
.wechat-offline-action-capsule {
  position:relative;
  display:block;
  width:92px;
  height:49px;
  overflow:visible;
}
.wechat-offline-action-capsule button {
  position:absolute;
  top:0;
  width:49px;
  height:49px;
  display:grid;
  place-items:center;
  margin:0;
  padding:0;
  border:0;
  color:color-mix(in srgb,var(--wechat-offline-control) 90%,transparent);
  background:transparent;
  font:inherit;
}
.wechat-offline-action-capsule .wechat-offline-send { left:0; z-index:1; font-size:17px; }
.wechat-offline-action-capsule .wechat-offline-heart {
  top:2px;
  right:2px;
  z-index:3;
  width:45px;
  height:45px;
  border:.5px solid rgba(255,255,255,.3);
  border-radius:50%;
  color:#fff;
  background:rgba(0,0,0,.15);
  box-shadow:none;
  backdrop-filter:blur(18px) saturate(1.16);
  -webkit-backdrop-filter:blur(18px) saturate(1.16);
  font-size:19px;
  text-shadow:none;
}
.wechat-offline-dialogue-text { color:var(--wechat-offline-dialogue); font-style:var(--wechat-offline-dialogue-style); font-weight:var(--wechat-offline-dialogue-weight); }
.wechat-offline-narration-text { color:var(--wechat-offline-narration); font-style:var(--wechat-offline-narration-style); font-weight:var(--wechat-offline-narration-weight); }
.wechat-offline-action-capsule::after { content:none; }

.wechat-offline-settings[hidden] { display:none; }
.wechat-offline-settings {
  position:absolute;
  z-index:30;
  inset:0;
  min-width:0;
  min-height:0;
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  overflow:hidden;
  color:var(--vie-text-primary);
  background:var(--vie-page-background-color);
  font-family:var(--vie-font-family,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);
}
.wechat-offline-settings-head {
  min-height:56px;
  display:grid;
  grid-template-columns:40px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:calc(var(--status-bar-space) + 8px) 16px 10px;
  border-bottom:.5px solid var(--vie-page-divider-soft);
  background:color-mix(in srgb,var(--vie-page-background-color) 92%,transparent);
}
.wechat-offline-settings-head > button {
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  padding:0;
  border:.5px solid var(--vie-page-divider-soft);
  border-radius:50%;
  color:var(--vie-text-primary);
  background:var(--vie-page-surface-strong);
  font:inherit;
  font-size:13px;
}
.wechat-offline-settings-head > span { min-width:0; }
.wechat-offline-settings-head small,
.wechat-offline-settings-head strong { display:block; }
.wechat-offline-settings-head small { color:var(--vie-text-muted); font-size:7px; letter-spacing:.16em; line-height:1.2; }
.wechat-offline-settings-head strong { margin-top:2px; font-family:"Noto Serif SC","Songti SC",STSong,serif; font-size:16px; font-weight:650; line-height:1.2; }
.wechat-offline-settings-head > em { color:var(--vie-text-muted); font-size:8px; font-style:normal; white-space:nowrap; }
.wechat-offline-settings-form {
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
  padding:14px 15px calc(env(safe-area-inset-bottom,0px) + 26px);
  scrollbar-width:none;
}
.wechat-offline-settings-form::-webkit-scrollbar { display:none; }
.wechat-offline-settings-card {
  margin:0 0 13px;
  padding:14px;
  border:.5px solid var(--vie-page-divider-soft);
  border-radius:20px;
  background:var(--vie-page-surface-strong);
}
.wechat-offline-settings-card > header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:11px; }
.wechat-offline-settings-card > header span { min-width:0; }
.wechat-offline-settings-card > header small,
.wechat-offline-settings-card > header strong { display:block; }
.wechat-offline-settings-card > header small { color:var(--vie-text-muted); font-size:7px; letter-spacing:.14em; line-height:1.2; }
.wechat-offline-settings-card > header strong { margin-top:3px; font-family:"Noto Serif SC","Songti SC",STSong,serif; font-size:14px; line-height:1.25; }
.wechat-offline-settings-card > header em { flex:0 0 auto; padding:4px 7px; border:.5px solid var(--vie-page-divider-soft); border-radius:999px; color:var(--vie-text-muted); font-size:7px; font-style:normal; line-height:1; }
.wechat-offline-settings-card > p { margin:-2px 0 11px; color:var(--vie-text-muted); font-size:8.5px; line-height:1.55; }
.wechat-offline-settings-card > p code { color:var(--vie-text-secondary); font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:8px; }
.wechat-offline-settings-card > label,
.wechat-offline-settings-dual > label,
.wechat-offline-settings-colors > label {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  color: var(--vie-text-secondary);
  font-size: 9px;
  font-weight: 600;
}
.wechat-offline-text-style fieldset > label {
  display: grid;
  gap: 6px;
  color: var(--vie-text-secondary);
  font-size: 9px;
  font-weight: 600;
}
.wechat-offline-settings-card input:not([type="radio"]):not([type="checkbox"]):not([type="color"]),
.wechat-offline-settings-card select,
.wechat-offline-settings-card textarea {
  width:100%;
  min-width:0;
  box-sizing:border-box;
  border:.5px solid var(--vie-page-divider-soft);
  border-radius:13px;
  outline:0;
  color:var(--vie-text-primary);
  background:var(--vie-page-soft-surface);
  box-shadow:none;
  font:inherit;
  font-size:11px;
}
.wechat-offline-settings-card input:not([type="radio"]):not([type="checkbox"]):not([type="color"]),
.wechat-offline-settings-card select { height:40px; padding:0 11px; }
.wechat-offline-settings-card textarea { min-height:92px; resize:vertical; padding:10px 11px; line-height:1.55; }
.wechat-offline-settings-card input:focus,
.wechat-offline-settings-card select:focus,
.wechat-offline-settings-card textarea:focus { border-color:color-mix(in srgb,var(--logo-color) 52%,var(--vie-page-divider)); }
.wechat-offline-settings-dual { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.wechat-offline-style-presets { display:grid; gap:8px; }
.wechat-offline-style-presets > label,
.wechat-offline-theme-presets > label { position:relative; display:block; }
.wechat-offline-style-presets input,
.wechat-offline-theme-presets input { position:absolute; opacity:0; pointer-events:none; }
.wechat-offline-style-presets label > span {
  min-height:58px;
  display:grid;
  align-content:center;
  gap:4px;
  padding:10px 12px;
  border:.5px solid var(--vie-page-divider-soft);
  border-radius:15px;
  background:var(--vie-page-soft-surface);
}
.wechat-offline-style-presets label > span strong { font-family:"Noto Serif SC","Songti SC",STSong,serif; font-size:11px; }
.wechat-offline-style-presets label > span small { color:var(--vie-text-muted); font-size:8px; font-weight:400; line-height:1.5; }
.wechat-offline-style-presets input:checked + span,
.wechat-offline-theme-presets input:checked + span { border-color:color-mix(in srgb,var(--logo-color) 58%,var(--vie-page-divider)); background:color-mix(in srgb,var(--logo-color) 10%,var(--vie-page-soft-surface)); }
.wechat-offline-theme-presets { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.wechat-offline-theme-presets label > span { min-height:68px; display:grid; place-items:center; align-content:center; gap:7px; padding:8px 5px; border:.5px solid var(--vie-page-divider-soft); border-radius:15px; background:var(--vie-page-soft-surface); }
.wechat-offline-theme-presets label > span i { width:25px; height:25px; border:.5px solid var(--vie-page-divider); border-radius:50%; }
.wechat-offline-theme-presets label > span i.is-paper { background:#fff; box-shadow:inset 8px 0 0 #4a4a50; }
.wechat-offline-theme-presets label > span i.is-night { background:#111318; box-shadow:inset 8px 0 0 #f5f5f5; }
.wechat-offline-theme-presets label > span i.is-custom { background:conic-gradient(#8896ff,#f28ab2,#f2c96d,#68c9a8,#8896ff); }
.wechat-offline-theme-presets label > span strong { font-size:8px; text-align:center; }
.wechat-offline-settings-colors { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.wechat-offline-settings-colors > label { place-items:center; padding:9px 6px; border:.5px solid var(--vie-page-divider-soft); border-radius:14px; background:var(--vie-page-soft-surface); text-align:center; }
.wechat-offline-settings-colors input[type="color"],
.wechat-offline-text-style input[type="color"] { width:34px; height:34px; padding:0; overflow:hidden; border:.5px solid var(--vie-page-divider); border-radius:50%; background:transparent; }
.wechat-offline-settings .wechat-offline-wallpaper-value { display:none; }
.wechat-offline-settings-wallpaper { margin-top:10px; }
.wechat-offline-wallpaper-preview {
  width:100%;
  min-height:112px;
  display:grid;
  place-items:center;
  align-content:center;
  gap:7px;
  padding:12px;
  border:.5px solid var(--vie-page-divider-soft);
  border-radius:16px;
  color:var(--vie-text-secondary);
  background-color:var(--vie-page-soft-surface);
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  box-shadow:none;
  font:inherit;
}
.wechat-offline-wallpaper-preview > i { font-size:19px; }
.wechat-offline-wallpaper-preview > span { display:grid; gap:3px; text-align:center; }
.wechat-offline-wallpaper-preview strong { font-size:10px; }
.wechat-offline-wallpaper-preview small { color:var(--vie-text-muted); font-size:8px; }
.wechat-offline-wallpaper-preview.has-image { align-content:end; color:#fff; text-shadow:0 1px 5px rgba(0,0,0,.7); }
.wechat-offline-wallpaper-preview.has-image > i { display:none; }
.wechat-offline-wallpaper-preview.has-image > span { padding:6px 9px; border-radius:10px; background:rgba(0,0,0,.34); }
.wechat-offline-wallpaper-preview.has-image small { color:rgba(255,255,255,.78); }
.wechat-offline-wallpaper-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:8px; }
.wechat-offline-wallpaper-actions button { min-height:38px; display:flex; align-items:center; justify-content:center; gap:6px; padding:0 10px; border:.5px solid var(--vie-page-divider-soft); border-radius:13px; color:var(--vie-text-secondary); background:var(--vie-page-soft-surface); box-shadow:none; font:inherit; font-size:9px; }
.wechat-offline-wallpaper-actions button:disabled { opacity:.38; }
.wechat-offline-text-style { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.wechat-offline-text-style fieldset { min-width:0; margin:0; padding:11px; border:.5px solid var(--vie-page-divider-soft); border-radius:16px; background:var(--vie-page-soft-surface); }
.wechat-offline-text-style legend { padding:0 4px; color:var(--vie-text-primary); font-family:"Noto Serif SC","Songti SC",STSong,serif; font-size:10px; font-weight:650; }
.wechat-offline-text-style fieldset > label { grid-template-columns:minmax(0,1fr) auto; align-items:center; margin-top:8px; }
.wechat-offline-text-style label.is-check { min-height:28px; grid-template-columns:auto minmax(0,1fr); justify-content:start; }
.wechat-offline-text-style label.is-check input { width:16px; height:16px; margin:0; accent-color:var(--logo-color); }
.wechat-offline-settings-card > .wechat-offline-settings-note { margin-top:12px; padding-top:10px; border-top:.5px solid var(--vie-page-divider-soft); }
.wechat-offline-page.is-heartbeat .wechat-offline-heart i { animation:wechat-offline-heartbeat .48s cubic-bezier(.2,.8,.2,1); }
.wechat-offline-page.is-music-on .wechat-offline-atmosphere { filter:saturate(1.16) brightness(1.05); }
@keyframes wechat-offline-heartbeat {
  0%,100% { transform:scale(1); }
  35% { transform:scale(1.34); }
  65% { transform:scale(.92); }
}

@media (max-width:350px) {
  .wechat-offline-floating-nav { padding-right:14px; padding-left:14px; }
  .wechat-offline-bubble { width:calc(100% - 70px); margin-right:35px; margin-left:35px; }
  .wechat-offline-bubble-actions { gap:3px; }
  .wechat-offline-bubble-actions span { gap:5px; }
  .wechat-offline-control-bar { left:13px; width:144px; height:25px; max-width:calc(100% - 26px); padding:0; }
  .wechat-offline-control-bar button { width:auto; flex:1 1 0; font-size:14px; }
  .wechat-offline-composer { grid-template-columns:minmax(0,1fr) 86px; padding-left:13px; padding-right:13px; }
  .wechat-offline-action-capsule { width:86px; }
  .wechat-offline-settings-head { grid-template-columns:36px minmax(0,1fr) auto; gap:8px; padding-right:13px; padding-left:13px; }
  .wechat-offline-settings-form { padding-right:12px; padding-left:12px; }
  .wechat-offline-text-style { grid-template-columns:1fr; }
}
@media (max-height:650px) {
  .wechat-offline-floating-nav { padding-top:calc(var(--status-bar-space) + 6px); }
  .wechat-offline-pair-name { margin-top:0; }
  .wechat-offline-motto { margin-top:4px; }
  .wechat-offline-control-bar { height:24px; margin-top:0; }
  .wechat-offline-control-bar button { font-size:14px; }
  .wechat-offline-stage { padding-top:12px; }
  .wechat-offline-hero { height:156px; }
  .wechat-offline-hero small { top:124px; bottom:auto; }
}
@media (prefers-reduced-motion:reduce) {
  .wechat-offline-atmosphere::before,
  .wechat-offline-atmosphere > i,
  .wechat-offline-page.is-heartbeat .wechat-offline-heart i { animation:none; }
}

/* 心声是聊天内居中面板，不再建立独立全屏页面坐标系。 */
.wechat-heart-panel[hidden]{display:none}
.wechat-heart-panel{position:absolute;inset:0;z-index:48;display:grid;place-items:center;overflow:hidden;padding:max(12px,var(--app-inline-inset));background:var(--modal-backdrop-color);color:var(--vie-text-primary)}
.wechat-heart-backdrop{position:absolute;inset:-10%;background-position:center;background-size:cover;opacity:.14;filter:blur(18px) saturate(.82) contrast(.95);transform:scale(1.03)}
.wechat-heart-dialog{position:relative;z-index:1;width:min(360px,100%);min-height:0;max-height:min(78vh,calc(100% - 8px));display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;border-radius:24px;background:var(--vie-page-surface-strong);box-shadow:var(--modal-surface-shadow)}
.wechat-heart-nav{min-height:var(--app-navbar-control-height);padding:8px 10px;display:grid;grid-template-columns:42px 1fr 42px;align-items:center;gap:10px}
.wechat-heart-nav>button{width:38px;height:38px;border:0;border-radius:50%;background:var(--vie-input-glass-surface);color:var(--vie-text-primary);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);display:grid;place-items:center}.wechat-heart-nav>span{text-align:center;line-height:1.05}.wechat-heart-nav small,.wechat-heart-identity small,.wechat-heart-note small,.wechat-heart-mood small{display:block;font-size:9px;letter-spacing:.16em;color:var(--vie-text-muted);font-weight:700}.wechat-heart-nav strong{font-size:15px}
.wechat-heart-refresh.is-loading i{animation:wechat-online-spin .7s linear infinite}.wechat-heart-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:0 12px 16px;display:flex;flex-direction:column;gap:12px}
.wechat-heart-identity{display:flex;align-items:center;gap:14px;padding:18px;background:color-mix(in srgb,var(--vie-page-card-color,var(--vie-page-background-color)) 78%,transparent);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.wechat-heart-avatar{width:66px;height:66px;border-radius:50%;overflow:hidden;flex:none;display:grid;place-items:center;background:var(--vie-page-soft-surface);background-position:center;background-size:cover}.wechat-heart-avatar svg{width:100%;height:100%}.wechat-heart-identity>div{min-width:0}.wechat-heart-identity strong{display:block;margin:4px 0 5px;font-size:22px;line-height:1.05}.wechat-heart-identity p{margin:0;color:var(--vie-text-muted);font-size:12px;line-height:1.5}
.wechat-heart-mood,.wechat-heart-note{padding:18px;background:var(--vie-page-card-color,var(--vie-page-soft-surface));border:1px solid var(--vie-page-divider);box-shadow:none}.wechat-heart-mood-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}.wechat-heart-mood-head strong,.wechat-heart-note strong{display:block;margin-top:3px;font-size:15px}.wechat-heart-mood-head em{font-style:normal;font-size:30px;font-weight:800;letter-spacing:-.04em}.wechat-heart-mood-track{height:7px;border-radius:999px;background:var(--vie-page-soft-surface);overflow:hidden;margin:14px 0 9px}.wechat-heart-mood-track i{display:block;height:100%;width:0;border-radius:inherit;background:var(--vie-text-primary);transition:width .35s ease}.wechat-heart-mood>p{margin:0;color:var(--vie-text-muted);font-size:11px}.wechat-heart-note header{display:flex;align-items:center;gap:10px}.wechat-heart-note header>i{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--vie-page-soft-surface)}.wechat-heart-note>p{margin:14px 0 0;font-size:14px;line-height:1.85;white-space:pre-wrap}.wechat-heart-footnote{text-align:center;padding:6px 16px;color:var(--vie-text-muted);font-size:10px;line-height:1.55}
.wechat-online-subview{height:100%;position:relative;overflow:hidden;background-color:var(--vie-page-background-color);background-image:var(--vie-page-wallpaper-image,none);background-size:var(--vie-page-wallpaper-size,cover);background-position:var(--vie-page-wallpaper-position,center);background-repeat:var(--vie-page-wallpaper-repeat,no-repeat)}
.wechat-online-scroll{height:100%;overflow:auto;overscroll-behavior:contain;padding:14px var(--wechat-side) calc(30px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px;scroll-behavior:smooth}
.wechat-online-profile-card{position:relative;overflow:hidden;border-radius:28px;padding:15px;background:color-mix(in srgb,var(--vie-page-card-color,var(--vie-page-surface)) 88%,transparent);border:1px solid color-mix(in srgb,var(--vie-page-divider) 80%,transparent);box-shadow:0 18px 48px color-mix(in srgb,var(--vie-text-primary) 10%,transparent);backdrop-filter:blur(22px) saturate(1.15);-webkit-backdrop-filter:blur(22px) saturate(1.15)}
.wechat-online-profile-glow{position:absolute;width:180px;height:180px;right:-48px;top:-72px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--vie-decoration-color,var(--vie-text-primary)) 20%,transparent),transparent 70%);pointer-events:none}
.wechat-online-profile-topline{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;min-height:34px}.wechat-online-kicker{display:flex;align-items:center;gap:7px;font-size:9px;font-weight:800;letter-spacing:.16em;color:var(--vie-text-muted)}.wechat-online-kicker i{font-size:10px;color:var(--vie-page-icon-color,var(--vie-text-primary))}.wechat-online-edit{width:34px;height:34px;border:1px solid color-mix(in srgb,var(--vie-page-divider) 75%,transparent);border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--vie-page-soft-surface) 86%,transparent);color:var(--vie-text-primary);box-shadow:none}
.wechat-online-profile-main{position:relative;z-index:1;display:flex;align-items:center;gap:14px;padding:12px 2px 17px}.wechat-online-avatar{position:relative;flex:none;width:78px;height:78px;border:0;border-radius:25px;overflow:hidden;background:var(--vie-page-soft-surface);background-position:center;background-size:cover;display:grid;place-items:center;box-shadow:0 10px 24px color-mix(in srgb,var(--vie-text-primary) 12%,transparent)}.wechat-online-avatar svg{width:100%;height:100%}.wechat-online-avatar-edit{position:absolute;right:5px;bottom:5px;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--vie-page-surface-strong,var(--vie-page-card-color)) 92%,transparent);color:var(--vie-text-primary);font-size:8px;border:1px solid color-mix(in srgb,var(--vie-page-divider) 70%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.wechat-online-profile-copy{min-width:0;flex:1}.wechat-online-profile-copy strong{display:block;font-size:21px;line-height:1.2;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wechat-online-profile-copy p{margin:7px 0 0;color:var(--vie-text-muted);font-size:11px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.wechat-online-profile-meta{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(116px,.75fr);gap:8px}.wechat-online-number,.wechat-online-switch-row{min-height:64px;border:1px solid color-mix(in srgb,var(--vie-page-divider) 70%,transparent);border-radius:19px;background:color-mix(in srgb,var(--vie-page-soft-surface) 74%,transparent);color:inherit;padding:11px 13px}.wechat-online-number{display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left}.wechat-online-number span{min-width:0}.wechat-online-number small,.wechat-online-switch-row small{display:block;color:var(--vie-text-muted);font-size:9px;line-height:1.2}.wechat-online-number strong{display:block;margin-top:4px;font-size:18px;letter-spacing:.12em;font-variant-numeric:tabular-nums}.wechat-online-number>i{font-size:12px;color:var(--vie-text-muted)}
.wechat-online-switch-row{position:relative;display:flex;align-items:center;justify-content:space-between;gap:9px}.wechat-online-switch-row>span:first-child strong{display:block;font-size:12px}.wechat-online-switch-row>span:first-child small{margin-top:4px}.wechat-online-switch-row>input{position:absolute;opacity:0;pointer-events:none}.wechat-online-switch{width:42px;height:24px;border-radius:999px;background:var(--vie-control-track,var(--vie-page-divider));padding:3px;transition:.2s;flex:none}.wechat-online-switch i{display:block;width:18px;height:18px;border-radius:50%;background:var(--vie-control-thumb,var(--vie-page-background-color));transition:.2s;box-shadow:0 2px 8px color-mix(in srgb,var(--vie-text-primary) 15%,transparent)}.wechat-online-switch-row>input:checked+.wechat-online-switch{background:var(--vie-action-color,var(--vie-text-primary))}.wechat-online-switch-row>input:checked+.wechat-online-switch i{transform:translateX(18px)}
.wechat-online-connect-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px 5px 3px}.wechat-online-connect-copy{display:flex;align-items:center;gap:9px;min-width:0}.wechat-online-status-dot{width:8px;height:8px;border-radius:50%;background:var(--vie-text-faint,var(--vie-text-muted));box-shadow:0 0 0 4px color-mix(in srgb,var(--vie-text-muted) 8%,transparent);flex:none}.wechat-online-status-dot.is-online{background:var(--vie-action-color,var(--vie-text-primary));box-shadow:0 0 0 4px color-mix(in srgb,var(--vie-action-color,var(--vie-text-primary)) 12%,transparent)}.wechat-online-connect-copy>span:last-child{min-width:0}.wechat-online-connect-copy strong{display:block;font-size:11px}.wechat-online-connect-copy small{display:block;margin-top:2px;color:var(--vie-text-muted);font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wechat-online-connect-row>button{width:30px;height:30px;border:0;border-radius:50%;display:grid;place-items:center;background:transparent;color:var(--vie-text-muted);font-size:11px}
@media (max-width:360px){.wechat-online-profile-meta{grid-template-columns:1fr}.wechat-online-switch-row{min-height:54px}.wechat-online-profile-main{gap:11px}.wechat-online-avatar{width:70px;height:70px;border-radius:22px}}
@keyframes wechat-online-spin{to{transform:rotate(360deg)}}
.wechat-online-avatar.has-custom-image>.avatar-user-icon{display:none}
.wechat-online-integrated-note{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:11px;padding:14px 15px;background:color-mix(in srgb,var(--vie-page-card-color,var(--vie-page-surface)) 84%,transparent);border:1px solid color-mix(in srgb,var(--vie-page-divider) 72%,transparent);box-shadow:none}.wechat-online-integrated-note>i{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--vie-page-soft-surface);color:var(--vie-page-icon-color,var(--vie-text-primary));font-size:12px}.wechat-online-integrated-note span{min-width:0}.wechat-online-integrated-note strong{display:block;font-size:12px}.wechat-online-integrated-note small{display:block;margin-top:4px;color:var(--vie-text-muted);font-size:9px;line-height:1.5}
