.wechat-app {
  /* 微信只负责内容与交互；全屏页面背景由 .vie-viewport::before 唯一提供。 */
  --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);
  /* Echoes 桌面应用图标外壳原始质感：white/20 + blur-md + white/40 + shadow-sm。 */
  --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;
}

.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-app,
.wechat-header,
.wechat-content,
.wechat-pages,
.wechat-page,
.wechat-page-scroll,
.wechat-subpage,
.wechat-subview,
.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,
.wechat-conversation,
.wechat-chat-header,
.wechat-chat-body,
.wechat-chat-scroll {
  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-header-action svg,
.wechat-header-notification svg,
.wechat-header-tertiary svg,
.wechat-chat-header-action svg,
.wechat-search-card > 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,
.wechat-tool-icon 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-content {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.wechat-pages,
.wechat-page {
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.wechat-page-scroll {
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  /* 页面层本身延伸到屏幕底部，Dock 仅悬浮覆盖其上；
     末尾内容仍可继续上滑越过 Dock，不再由 Dock 挤短显示窗口。 */
  padding: 0 var(--wechat-side) calc(64px + 15px + 28px);
  scroll-padding-bottom: calc(64px + 15px + 28px);
}

.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 > svg { color: var(--wechat-icon); }
.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,
.wechat-composer-action,
.wechat-chat-send {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}
.wechat-search-clear,
.wechat-contact-call,
.wechat-post-menu,
.wechat-profile-edit,
.wechat-composer-action { background: transparent; }
.wechat-search-clear,
.wechat-contact-call,
.wechat-post-menu,
.wechat-profile-edit { color: var(--wechat-icon); }

.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-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 {
  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,
.wechat-contact-copy,
.wechat-post-author-copy,
.wechat-profile-copy,
.wechat-menu-copy { min-width: 0; }
.wechat-message-copy {
  display: grid;
  align-content: center;
  gap: 4px;
  overflow: hidden;
}
.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,
.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-chip-row { grid-auto-flow: column; }
.wechat-discover-filter {
  grid-template-columns: repeat(3,minmax(0,1fr));
  grid-auto-flow: row;
}
.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,
.wechat-post-author-copy time { display: block; }
.wechat-post-author-copy strong {
  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 { 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-avatar { width: 70px; height: 70px; padding: 0; }
.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,
.wechat-badge-grid small { display: block; }
.wechat-badge-grid strong { color: var(--wechat-ink); font-size:calc(13px * var(--vie-font-scale)); line-height: 13px; font-weight: 500; }
.wechat-badge-grid small { 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,
.wechat-memo-card strong { display: block; }
.wechat-memo-card small { color: var(--wechat-muted); font-size:calc(9px * var(--vie-font-scale)); line-height: 13px; }
.wechat-memo-card strong { 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-a { width: 6px; height: 6px; left: 10px; top: 11px; transform: rotate(-14deg); }
.wechat-memo-polaroid .star-b { width: 4px; height: 4px; left: 19px; top: 9px; transform: rotate(23deg); }
.wechat-memo-polaroid .star-c { width: 7px; height: 7px; right: 10px; top: 13px; transform: rotate(-8deg); }
.wechat-memo-polaroid .star-d { width: 5px; height: 5px; right: 9px; top: 29px; transform: rotate(19deg); }
.wechat-memo-polaroid .star-e { width: 6px; height: 6px; right: 12px; bottom: 23px; transform: rotate(-17deg); }
.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 {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}
.wechat-menu-card .vie-global-list-row {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  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 .vie-global-list-icon,
.wechat-menu-card .wechat-menu-copy,
.wechat-menu-card .vie-global-chevron { min-width: 0; }
.wechat-menu-card .wechat-menu-copy { width: 100%; max-width: 100%; }
.wechat-menu-card .vie-global-chevron { justify-self: end; }
.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: blur(14px) saturate(118%);
  backdrop-filter: blur(14px) saturate(118%);
}
.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-subpage {
  position: absolute;
  z-index: 5;
  inset: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.wechat-subview {
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.wechat-conversation {
  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-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;
  background: var(--vie-chat-glass-surface);
  box-shadow: var(--vie-chat-glass-shadow);
  backdrop-filter: blur(12px) saturate(0);
  -webkit-backdrop-filter: blur(12px) saturate(0);
}
.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-line-icon { display: block; overflow: visible; fill: none; }
.wechat-chat-body {
  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-subpage-scroll {
  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-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(--logo-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-row .wechat-avatar,
.wechat-choice-icon {
  width: 40px;
  height: 40px;
}
.wechat-choice-icon {
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--logo-color);
}
.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(--logo-color);
  color: #fff;
  background: var(--logo-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(--logo-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-base-height) + 18px + var(--vie-safe-bottom));
  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-date-separator 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-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; }

/* LINE 式消息快捷层：保留其“反应条—消息—操作板”层级，视觉改为 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,
.wechat-quick-actions { pointer-events: auto; }
.wechat-quick-reactions {
  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-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-actions {
  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-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: 38px;
  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; }
}

/* LINE 特殊消息：图片与表情不绘制通用气泡。 */
.wechat-chat-special-bubble button { font: inherit; text-align: left; }
.wechat-chat-special-bubble button:active { transform: scale(.985); }
.wechat-camera-card,
.wechat-money-card,
.wechat-location-card,
.wechat-compact-card,
.wechat-anonymous-card {
  border: 0;
  background: var(--vie-chat-card-surface);
  box-shadow: var(--vie-chat-card-shadow);
}
.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-image-message-empty { min-width: 152px; min-height: 74px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border: 0; border-radius: 13px; color: var(--vie-chat-card-muted); background: var(--vie-chat-card-surface); font-size:calc(11px * var(--vie-font-scale)); }
.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 { width: min(58vw, 210px); display: block; overflow: hidden; border-radius: 12px; color: var(--vie-chat-card-ink); }
.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(--logo-color); }
.wechat-money-dialog.is-red-packet .wechat-money-dialog-actions button.is-primary { background: var(--logo-color); }
.wechat-money-dialog-actions button:disabled { opacity: .46; }
.wechat-money-dialog.is-busy .wechat-money-dialog-card { pointer-events: none; }
.wechat-location-card { width: min(64vw, 226px); display: block; overflow: hidden; border-radius: 12px; }
.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 { 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-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 { 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-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-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-chat-image-viewer-actions button { width: 38px; height: 38px; border-radius: 50%; font-size:calc(13px * var(--vie-font-scale)); }

.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; }

/* 聊天设置是会话内部的独立页面，与聊天正文共用同一页面栈。 */
.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: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  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,
.wechat-chat-detail-row-copy small { display: block; }
.wechat-chat-detail-row-copy strong { font-size:calc(12px * var(--vie-font-scale)); line-height: 13px; font-weight: 560; }
.wechat-chat-detail-row-copy small {
  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-form { display: grid; gap: 14px; padding: 8px 2px 2px; }
.wechat-chat-detail-label { display: grid; gap: 7px; color: var(--wechat-muted); font-size:calc(10px * var(--vie-font-scale)); }
.wechat-chat-detail-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-top: 4px; }
.wechat-chat-detail-actions button {
  min-height: 42px;
  padding: 0 12px;
  border: .5px solid var(--vie-chat-detail-border);
  border-radius: 12px;
  background: var(--vie-chat-detail-surface);
  font-size:calc(11px * var(--vie-font-scale));
  font-weight: 600;
}
.wechat-chat-detail-actions button[type="submit"] { color: #fff; border-color: transparent; background: #6e6e73; }
.wechat-chat-detail-actions .is-destructive { color: #fff; border-color: transparent; background: #cf4f4a; }
.wechat-chat-detail-copy {
  padding: 8px 3px 4px;
  color: var(--wechat-ink);
  font-size:calc(12px * var(--vie-font-scale));
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}
.wechat-chat-wallpaper-preview {
  min-height: 210px;
  margin: 6px 0 14px;
  border: .5px solid var(--vie-chat-detail-border);
  border-radius: 14px;
  background-position: center;
  background-size: cover;
  background-color: var(--vie-chat-detail-preview);
}
.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(--logo-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: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
}
.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-form .global-input-row { padding-right: 0; }
.wechat-chat-detail-form .global-input-field { color: var(--vie-text-primary); }
.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-selected,
.wechat-chat-message.is-chat-highlight {
  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: center;
  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;
  background: var(--vie-chat-glass-surface);
  box-shadow: var(--vie-chat-glass-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.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 { color: var(--vie-chat-composer-ink); }
.wechat-chat-send .wechat-icon-frame {
  position: relative;
  width: 24px;
  height: 24px;
  display: block;
}
.wechat-chat-send .wechat-icon-frame svg {
  position: absolute;
  inset: 0;
  width: 24px;
  height: 24px;
  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;
  height: 38px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 36px;
  align-items: center;
  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);
  backdrop-filter: blur(12px) saturate(0);
  -webkit-backdrop-filter: blur(12px) saturate(0);
}
.wechat-composer-input-wrap { min-width: 0; display: block; }
.wechat-composer-field input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 5px 0 13px;
  border: 0;
  outline: 0;
  color: var(--vie-chat-composer-input);
  background: transparent;
  font-size: calc(14px * var(--vie-font-scale));
  -webkit-appearance: none;
  appearance: none;
}
.wechat-composer-field input::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 i { fill: currentColor; }
.wechat-tool-icon svg { fill: none; }
#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: blur(12px) saturate(118%);
  backdrop-filter: blur(12px) saturate(118%);
}
.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 > span,
.wechat-service-asset-head small,
.wechat-service-asset-head strong { display: block; }
.wechat-service-asset-head small {
  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 {
  margin-top: 2px;
  color: #fff;
  font-size:calc(12px * var(--vie-font-scale));
  line-height: 17px;
  font-weight: 500;
}
.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,
.wechat-service-money-action-copy strong,
.wechat-service-money-action-copy small { display:block; min-width:0; }
.wechat-service-money-action-copy strong { color:#fff; font-size:calc(11px * var(--vie-font-scale)); line-height:15px; font-weight:500; }
.wechat-service-money-action-copy small { 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-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-title,
.wechat-payment-settings-scroll .settings-row-detail { 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,
.wechat-sticker-main {
  min-width: 0;
  min-height: 0;
}
.wechat-sticker-sidebar {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-right: 9px;
  border-right: .5px solid var(--vie-page-divider-soft);
  background: transparent;
}
.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 {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.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: blur(15px) saturate(116%);
  -webkit-backdrop-filter: blur(15px) saturate(116%);
}
.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)); }
}

/* 日记：iCity 启发的轻量时间线，保持 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::-webkit-scrollbar,
.wechat-diary-editor::-webkit-scrollbar { display: none; }
.wechat-diary-timeline { padding: 8px var(--wechat-side) 34px; }
.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-editor { padding: 14px var(--wechat-side) 30px; }
.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; }
