@charset "UTF-8";
/* Owner approved V2, source design SHA256 721be40d08385e8c678dfa2f5f102377d48dc785220a55b550fafce2565a7406. */

html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) {
  color-scheme: light;
  --app:light-dark(#f6f7f5,#141a17);
  --panel:light-dark(#fff,#1c2520);
  --ink:light-dark(#1c2921,#ebf5ef);
  --sub:light-dark(#58685d,#a5b6ac);
  --line:light-dark(#dde6de,#38473e);
  --wash:light-dark(#e8f4eb,#284233);
  --green:light-dark(#12613d,#a3e4b7);
  --bubble:light-dark(#cbf1d4,#224e37);
  --wallet:light-dark(#183f32,#213c34);
  --walletInk:#effaf4;
  --red:light-dark(#992e28,#f89d92);
  color:var(--ink);font:14px/1.46 "Microsoft YaHei UI","Noto Sans SC",system-ui,sans-serif;
}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) * {box-sizing:border-box}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) [hidden]{display:none!important}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) h2,html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) h3,html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) p {margin:0}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) button,html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) input {font:inherit;color:inherit}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) button {background:var(--panel);border:1px solid var(--line);border-radius:9px;min-height:38px;padding:6px 10px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) button:focus-visible,html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) summary:focus-visible {outline:2px solid var(--green);outline-offset:2px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-nav {display:flex;flex-wrap:wrap;gap:7px;margin-bottom:14px;padding-right:24px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-nav button[aria-selected=true],html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-primary {background:var(--wash);color:var(--green);border-color:var(--green)}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-stack {display:grid;gap:14px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-phone,html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-desktop {background:var(--app);border:1px solid var(--line);border-radius:16px;overflow:hidden}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-frame-title {font-size:13px;font-weight:650;color:var(--sub);margin:0 0 6px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-bar {display:flex;align-items:center;gap:10px;min-height:56px;padding:8px 13px;border-bottom:1px solid var(--line);background:var(--panel)}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-bar h2 {font-size:16px;font-weight:650;line-height:1.35}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-grow {flex:1;min-width:0}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-sub {color:var(--sub);font-size:12px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-icon {display:inline-flex;align-items:center;justify-content:center;width:35px;height:35px;min-height:35px;flex:0 0 35px;padding:0}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-icon i {display:inline-flex}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-pad {padding:13px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-inline {display:flex;flex-wrap:wrap;align-items:center;gap:8px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-dot {display:inline-block;width:8px;height:8px;border-radius:50%;background:#20aa57;margin-right:5px;vertical-align:1px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-dot.off {background:var(--sub)}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-messages {display:flex;flex-direction:column;gap:10px;padding:13px;min-height:173px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-bubble {max-width:88%;margin:0;padding:9px 11px;border-radius:12px;background:var(--panel);overflow-wrap:anywhere}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-mine {align-self:flex-end;text-align:right}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-mine .amx-bubble {max-width:none;text-align:left;background:var(--bubble)}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-stamp {margin-top:4px;color:var(--sub);font-size:12px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-photo-tile {display:flex;align-items:center;gap:8px;min-width:90px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-unread {flex:none;padding:0 7px;border-radius:12px;background:light-dark(#b53230,#9c3636);color:#fff;min-width:20px;text-align:center}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-composer {display:flex;align-items:center;gap:7px;padding:9px 11px;background:var(--panel);border-top:1px solid var(--line)}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-composer input {width:100%;min-width:0;background:var(--app);border:1px solid var(--line);border-radius:8px;padding:8px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) #referenceAttach {font-size:24px;line-height:1}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .ref-attachment-inline .ref-attachment-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:13px 9px 14px;border-top:1px solid var(--line);background:var(--panel)}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .ref-attachment-inline .ref-attachment-grid button {display:grid;justify-items:center;align-content:center;gap:4px;min-height:58px;padding:4px;font-size:12px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-surface {background:var(--panel);border:1px solid var(--line);border-radius:11px;padding:11px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-row {display:flex;align-items:center;gap:9px;padding:9px 0;border-bottom:1px solid var(--line)}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-row:last-child {border-bottom:0}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-month {display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-calendar {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-calendar span {min-height:27px;display:grid;place-items:center;border-radius:6px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-calendar .done {background:var(--wash);color:var(--green)}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-calendar .today {background:var(--wash);color:var(--green);outline:1px solid var(--green);outline-offset:-1px;font-weight:650}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-hero {background:var(--wallet);color:var(--walletInk);border-radius:12px;padding:16px;margin-bottom:9px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-amount {display:block;font-size:28px;font-weight:650;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-services {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-services button {display:flex;align-items:center;text-align:left;gap:6px;min-width:0;padding:7px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-avatar {display:inline-flex;flex:0 0 34px;width:34px;height:34px;align-items:center;justify-content:center;border-radius:50%;background:var(--wash);color:var(--green);overflow:hidden}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-avatar:nth-child(2n) {background:light-dark(#e9edf9,#2f3653);color:light-dark(#36476f,#cad8ff)}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-avatar:nth-child(3n) {background:light-dark(#f8eade,#4d3627);color:light-dark(#753c24,#ffcbb4)}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-avatar.amx-large {width:52px;height:52px;flex-basis:52px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) button.amx-avatar[aria-pressed=true] {outline:2px solid var(--green);outline-offset:2px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-options {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:8px 0}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-options button {text-align:left}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-actions {justify-content:flex-end;margin-top:10px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-red {color:var(--red)}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-envelope {padding:15px;text-align:center;background:light-dark(#a92f28,#732c26);color:#fff3dc}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-envelope .amx-amount {font-size:24px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-info {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 10px;margin:0}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-info dt {color:var(--sub);font-size:12px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-info dd {margin:2px 0 0;overflow-wrap:anywhere}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-field {display:grid;gap:4px;min-width:0}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-field input {width:100%;min-width:0;padding:7px 8px;border:1px solid var(--line);border-radius:7px;background:var(--panel)}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-sections {display:grid;gap:9px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-headspace {padding:10px 13px;border-bottom:1px solid var(--line)}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-detail {margin:8px 0 0}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-detail summary {color:var(--green);min-height:34px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-toast {padding:6px 9px;background:var(--wash);border-radius:7px;color:var(--green);margin:4px 0}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-signin {max-width:380px}
@media(max-width:610px){html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-pair{grid-template-columns:1fr}html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-nav{padding-right:0}}
@media(pointer:coarse){html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) button{min-height:44px}html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-icon{min-height:44px;width:44px;height:44px;flex-basis:44px}html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) button.amx-avatar{width:44px;height:44px;flex-basis:44px}}

/* Shared app surfaces and input feedback */
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) {
  --app:#eff5f3; --panel:#fff; --ink:#142d27; --sub:#526e64;
  --line:#dbe9e3; --wash:#ddf7eb; --green:#005b40; --bubble:#bbf1d5;
  --wallet:#073e35; --red:#a52240;
  --brand:#00734e; --brand-deep:#00583d; --brand-press:#004730;
  --active-fill:linear-gradient(155deg,#00845b 0%,#006247 100%);
  --soft-shadow:0 3px 7px #183d2810,0 1px 2px #183d280a;
  --frame-shadow:0 10px 25px #174c3221,0 2px 4px #174c3210;
  color-scheme:light dark;
  color:light-dark(#142d27,#e5f3ec);
  font:14px/1.47 "Microsoft YaHei UI","Noto Sans SC",system-ui,sans-serif;
}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-nav {gap:8px;margin-bottom:19px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-nav button {
  display:inline-flex;align-items:center;gap:7px;
  background:#f2f7f4;color:#234d40;border:1px solid #e5efe9;font-weight:650;
  border-radius:999px;padding:8px 13px;min-height:42px;
}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-nav button[aria-selected=true],
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-primary {
  background:var(--active-fill);color:#fff;border-color:transparent;font-weight:700;
  box-shadow:0 3px 0 var(--brand-press),0 5px 10px #07573b2b;
}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-nav button[aria-selected=true] {box-shadow:0 3px 8px #07573b34;}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) button {
  background:#fcfdfc;color:#214b3d;border-color:#deeae3;
  border-radius:12px;min-height:42px;padding:7px 11px;
  transition:transform .12s ease,box-shadow .12s ease,background .12s ease,filter .12s ease;
}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) button:hover:not(:disabled) {filter:brightness(.97)}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) button:active:not(:disabled) {
  transform:translateY(2px) scale(.98);box-shadow:inset 0 2px 5px #143d2922;filter:brightness(.91);
}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) button:focus-visible,html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) summary:focus-visible {outline:3px solid #00665c;outline-offset:3px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) button:disabled {opacity:.58;box-shadow:none}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-label-icon {display:inline-flex;justify-content:center;align-items:center;gap:6px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-label-icon svg.lucide {width:17px;height:17px;flex:none}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) button[aria-pressed=true]:not(.amx-avatar):not(.amx-primary) {
  background:#d3f3e4;border-color:#4a9d7b;color:#014934;font-weight:700;
}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-frame-title {
  color:light-dark(#406257,#c1dace);font-size:12px;font-weight:660;letter-spacing:.025em;margin:0 0 8px 3px;
}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-pair {gap:20px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-phone,html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-desktop {
  color-scheme:light;color:var(--ink);
  border-radius:24px;background:var(--app);border-color:#d9e8e1;
  box-shadow:var(--frame-shadow);
}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-bar {
  min-height:62px;padding:9px 14px;gap:11px;
  background:linear-gradient(105deg,#075342,#006f50 58%,#08735e);
  color:#fff;border-bottom:1px solid #00533d;
}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-bar h2 {font-size:17px;font-weight:710;letter-spacing:.01em}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-bar .amx-sub {color:#e5fff2}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-bar button,
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-bar .amx-header-action {
  background:#ffffff20;color:#fff;border-color:#ffffff2e;
}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-bar .amx-avatar {background:#ffffff25;color:#fff}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-bar svg.lucide {width:20px;height:20px;stroke-width:1.85}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-bar .amx-back {
  display:grid;place-items:center;flex:0 0 32px;
  width:32px;height:32px;border-radius:11px;line-height:1;font-size:24px;background:#ffffff1a;
}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-bar .amx-emblem {
  display:grid;place-items:center;width:37px;height:37px;border-radius:12px;background:#ffffff20;flex:none;
}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-pad {padding:15px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-sub {color:#4f6a61}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-dot {width:9px;height:9px;background:#25c76d;box-shadow:0 0 0 3px #36d78333}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-dot.off {background:#879791;box-shadow:none}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-bar .amx-dot {background:#64f29b}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-bar .amx-dot.off {background:#c7d2cc}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-surface {
  color-scheme:light;color:var(--ink);
  background:var(--panel);border-color:#e5efe9;border-radius:17px;padding:13px;box-shadow:var(--soft-shadow);
}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-row {gap:10px;padding:11px 0;border-color:#e8f0ec}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-detail summary {color:light-dark(#00573b,#a3e5c6);font-weight:620}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-detail > .amx-inline .amx-sub {color:light-dark(#4f6a61,#bcd1c8)}

/* Chat, composer and action sheet */
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-messages {
  min-height:168px;gap:12px;padding:16px 14px;
  background:linear-gradient(166deg,#e2f2ec,#f2f7f4 74%);
}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-bubble {
  width:fit-content;max-width:87%;border-radius:15px 15px 15px 5px;
  padding:9px 13px;box-shadow:0 2px 4px #193e2012;background:#fff;
}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-mine .amx-bubble {
  margin-left:auto;border-radius:15px 15px 5px 15px;
  background:linear-gradient(125deg,#c3f8db,#a2ebbd);color:#104735;
}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-stamp {color:#547068;font-weight:520;font-size:12px;margin-top:5px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-stamp[data-state] {
  display:inline-flex;align-items:center;gap:5px;padding:2px 7px;border-radius:99px;
}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-stamp[data-state=sent] {background:#daf1e5;color:#16503a}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-stamp[data-state=pending] {background:#fff0c9;color:#7f4c09}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-stamp[data-state=error] {background:#ffe4e9;color:#8d1e36}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-composer {gap:7px;padding:10px;border-top-color:#dae8e0;}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-composer input {
  background:#eef5f1;border-color:#e3eee6;border-radius:14px;
  min-height:44px;padding:8px 11px;font-size:16px;
}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-icon {width:44px;height:44px;min-height:44px;flex:0 0 44px;padding:0;border-radius:14px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-icon svg.lucide {width:21px;height:21px;stroke-width:1.9}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-composer .amx-icon:not(.amx-primary) {background:#e1f7ed;color:#005942;border-color:#d2f0e1}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) #referenceAttach {font-size:27px;line-height:1}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) #referenceAttach[aria-expanded=true] {background:#075947;color:#fff;box-shadow:inset 0 2px 4px #002e2688,0 2px 7px #06534022}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .ref-attachment-inline .ref-attachment-grid {
  background:#fff;gap:6px 4px;padding:13px 8px 16px;
  border-top:1px solid #d8e7df;
}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .ref-attachment-inline .ref-attachment-grid button {
  display:flex;flex-direction:column;justify-content:flex-start;align-items:center;gap:6px;
  min-height:76px;padding:4px 2px 5px;border:0;border-radius:14px;background:transparent;
  text-align:center;line-height:1.22;color:#1b3b31;font-weight:620;
  box-shadow:none;overflow-wrap:anywhere;
}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .ref-attachment-inline .ref-attachment-grid button:hover {background:#f0f6f2}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .ref-attachment-inline .ref-attachment-grid button:active:not(:disabled) {background:#e3efe9;box-shadow:inset 0 1px 3px #102e2316}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-action-icon {
  flex:none;display:grid;place-items:center;width:43px;height:43px;border-radius:14px;
  background:var(--tile,#daf6e8);color:var(--glyph,#005d41);
  box-shadow:inset 0 1px 0 #ffffffa4,0 2px 4px #183c2921;
}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-action-icon svg.lucide {width:23px;height:23px;stroke-width:1.9}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) [data-tone=aqua] {--tile:#c8f4f0;--glyph:#005c65}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) [data-tone=blue] {--tile:#d8eaff;--glyph:#184ca4}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) [data-tone=violet] {--tile:#e9e1ff;--glyph:#5a36a3}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) [data-tone=amber] {--tile:#ffe8bd;--glyph:#8a4804}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) [data-tone=rose] {--tile:#ffe0e7;--glyph:#9c2543}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-unread {background:#c13754;box-shadow:0 2px 4px #7a19314d}

/* Calendar, wallet and business pages */
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-month strong {font-size:16px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-month button {background:#e7f6ee;color:#005741;min-width:42px;font-size:21px;padding:4px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-calendar {gap:3px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-calendar span {min-height:30px;border-radius:9px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-calendar span.amx-sub {color:#526c62;font-weight:640}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-calendar .done {color:#07533a;background:#daf5e4;font-weight:650}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-calendar .today {
  background:var(--active-fill);color:#fff;outline:0;box-shadow:0 3px 6px #135e3544;
}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-check-status {
  background:linear-gradient(110deg,#d9f7e7,#effbf3);border:1px solid #d3efe2;
  padding:10px 12px;border-radius:13px;margin-bottom:7px;
}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-check-status strong {color:#00583d}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-check-status svg.lucide {width:21px;height:21px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-hero {
  position:relative;overflow:hidden;isolation:isolate;
  padding:19px;border-radius:19px;min-height:116px;
  background:linear-gradient(124deg,#0b4339,#085e49 63%,#008169);
  box-shadow:0 8px 16px #164d3e35;margin-bottom:13px;
}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-hero::after {
  content:"";position:absolute;z-index:-1;
  width:152px;height:152px;border:1px solid #8cfae867;border-radius:50%;
  box-shadow:0 0 0 13px #a7fce421,0 0 0 27px #a7fce419,0 0 0 41px #a7fce412;
  top:-57px;right:-31px;
}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-hero p {color:#d7fff2;font-size:13px;font-weight:650}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-amount {font-size:31px;letter-spacing:-.025em;margin-top:3px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-services {gap:8px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-services button {
  gap:8px;min-height:53px;padding:7px 8px;border-radius:14px;
  box-shadow:var(--soft-shadow);border-color:#e3eee8;font-weight:630;
}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-services .amx-action-icon {width:32px;height:32px;border-radius:10px;box-shadow:none}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-services svg.lucide {width:18px;height:18px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-avatar {
  background:linear-gradient(145deg,#d6f9e8,#bdebd1);color:#0a6045;
  border:1px solid #ffffffbd;box-shadow:0 2px 6px #18453222;
}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) button.amx-avatar {width:44px;height:44px;flex:0 0 44px;min-height:44px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) button.amx-avatar[aria-pressed=true] {outline:2px solid #08764f;outline-offset:2px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-avatar svg.lucide {width:21px;height:21px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-avatar.amx-large svg.lucide {width:27px;height:27px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-options button {background:#edf7f2;font-weight:630}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-red {color:#9c2240;background:#fff1f4;border-color:#f4d3dc}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-recalled {color:#58736a;background:#eef5f1;border-radius:10px;padding:8px 10px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-envelope {
  background:radial-gradient(ellipse at 50% 0%,#d84437 0%,#b22c30 54%,#a3222b 100%);
  color:#fff1d3;padding:19px 15px 21px;
}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-envelope svg.lucide {width:26px;height:26px;color:#fff0b7}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-envelope .amx-amount {font-size:28px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-info {gap:12px 15px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-field input {
  min-height:44px;padding:8px 10px;border-radius:12px;background:#f8fbf9;
  font-size:16px;
}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-toast {background:#fff1cf;color:#714516;font-weight:650;border:1px solid #f8e3b8;margin-top:8px}
@media(max-width:610px) {
  html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-pair {gap:22px}
  html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-phone,html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-desktop {border-radius:19px}
  html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-pad {padding:12px}
  html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-nav {gap:6px}
  html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-nav button {min-height:44px;padding:7px 11px}
  html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .amx-services button {font-size:13px}
}
@media(prefers-reduced-motion:reduce){
  html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) *,html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) *::before,html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) *::after {transition:none!important;animation:none!important}
}


/* Bind the approved components to the existing shared application. */
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]){--ref-bg:var(--app);--ref-panel:var(--panel);--ref-text:var(--ink);--ref-secondary:var(--sub);--ref-line:var(--line);--ref-accent:var(--brand);--ref-accent-ink:var(--green);--ref-hover:var(--wash)}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) :is(.chat-heading,.panel-heading,.ref-page-head){min-height:62px;height:auto;gap:11px;padding:9px 14px;background:linear-gradient(105deg,#075342,#006f50 58%,#08735e);color:#fff;border-bottom:1px solid #00533d}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) :is(.chat-heading,.panel-heading,.ref-page-head) :is(h1,h2,#conversationName){font-size:17px;font-weight:710;letter-spacing:.01em;color:#fff;line-height:1.35}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) :is(.chat-heading,.panel-heading,.ref-page-head) :is(.ref-icon,.icon-button,button){border-radius:14px;background:#ffffff20;color:#fff;border:1px solid #ffffff2e;min-height:38px;box-shadow:none}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .chat-heading .chat-title{text-align:left;min-width:0}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) :is(.chat-heading,.ref-page-head) :is(p,small,.chat-subtitle){color:#e5fff2}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) :is(.ref-primary,.primary-button,.send-button){background:var(--active-fill);color:#fff;border-color:transparent;font-weight:700;box-shadow:0 3px 0 var(--brand-press),0 5px 10px #07573b2b;border-radius:12px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .message-list{background:linear-gradient(166deg,#e2f2ec,#f2f7f4 74%);padding:16px 14px;gap:12px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .message-row{gap:10px;margin:0;width:100%;align-items:flex-start}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .message-content{max-width:calc(100% - 44px);min-width:0}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .message-bubble{background:#fff;border-radius:15px 15px 15px 5px;padding:9px 13px;box-shadow:0 2px 4px #193e2012;min-width:0;max-width:100%}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .message-row.own .message-bubble{background:linear-gradient(125deg,#c3f8db,#a2ebbd);color:#104735;border-radius:15px 15px 5px 15px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .message-bubble::before,html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .message-bubble::after{display:none}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .message-body{font-size:var(--ref-message-size,14px);line-height:1.47;letter-spacing:normal;text-align:left;text-indent:0;word-break:normal;overflow-wrap:anywhere;line-break:strict;white-space:pre-wrap}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .message-meta{display:flex;gap:5px;align-items:center;margin:5px 0 0;padding:2px 7px;border-radius:99px;font-size:12px;color:#547068;width:fit-content;min-height:22px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .message-row.own .message-meta{margin-left:auto}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .message-meta[data-state=sent]{background:#daf1e5;color:#16503a}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .message-meta[data-state=pending]{background:#fff0c9;color:#7f4c09}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .message-meta[data-state=error]{background:#ffe4e9;color:#8d1e36}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .message-meta time::after{content:' \00b7'}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .message-meta button{font:inherit;color:inherit;padding:0;min-height:0;border:0;background:transparent;box-shadow:none}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .message-avatar{width:34px;height:34px;border-radius:50%;overflow:hidden}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) #composer{background:#fff;border-color:#dae8e0;gap:7px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) #composer textarea{background:#eef5f1;border:1px solid #e3eee6;border-radius:14px;min-height:44px!important;padding:8px 11px!important;font-size:16px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) #composer .ref-icon{width:44px;height:44px;border-radius:14px;background:#e1f7ed;color:#005942;border:1px solid #d2f0e1;box-shadow:0 2px 4px #183c2921}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .settings-group-rows,html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .settings-profile{border:1px solid #e5efe9;border-radius:17px;background:#fff;box-shadow:var(--soft-shadow)}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .settings-profile{margin:15px;padding:13px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .settings-row{color:#142d27;background:#fff;border-color:#e8f0ec}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .ref-avatar{border-radius:50%;background:linear-gradient(145deg,#d6f9e8,#bdebd1);box-shadow:0 2px 6px #18453222;border:1px solid #ffffffbd}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .wallet-balance-card{background:linear-gradient(124deg,#0b4339,#085e49 63%,#008169);border-radius:19px;padding:19px;min-height:116px;box-shadow:0 8px 16px #164d3e35}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .wallet-balance-card>span{font-size:13px;font-weight:650;color:#d7fff2}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .wallet-balance-card>strong{display:block;font-size:31px;font-weight:650;letter-spacing:-.025em;color:#effaf4;margin-top:3px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .wallet-balance-card em{font-size:inherit;font-style:normal;margin:0 5px 0 0}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .wallet-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;background:transparent;border:0;box-shadow:none;padding:0}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .wallet-action-grid>button{display:flex;gap:8px;align-items:center;text-align:left;min-height:53px;padding:7px 8px;border:1px solid #e3eee8;border-radius:14px;background:#fff;box-shadow:var(--soft-shadow);font-size:14px;font-weight:630}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .wallet-action-grid .amx-action-icon{width:32px;height:32px;border-radius:10px;box-shadow:none}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .wallet-action-grid .amx-action-icon svg{width:18px;height:18px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .wallet-ledger>div{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #e8f0ec}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .wallet-ledger>div:last-child{border-bottom:0}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .wallet-ledger-copy{display:grid;gap:3px;flex:1;min-width:0}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .wallet-ledger-copy small{font-size:12px;color:#4f6a61}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .checkin-calendar{padding:0;background:transparent;border:0;box-shadow:none}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .checkin-calendar table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:3px;text-align:center}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .checkin-calendar th{font-size:12px;color:#526c62;font-weight:640}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .checkin-calendar td{height:30px;padding:0;border:0;border-radius:9px;font-size:14px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .checkin-calendar td>span{display:grid;place-items:center;height:30px;min-height:30px;border-radius:9px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .checkin-calendar .checkin-done{background:#daf5e4;color:#07533a;font-weight:650}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .checkin-calendar [aria-current=date]{background:var(--active-fill);color:#fff;box-shadow:0 3px 6px #135e3544}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .checkin-calendar-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:9px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .checkin-calendar-head button{min-width:42px;background:#e7f6ee;color:#005741;font-size:21px;padding:4px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .checkin-calendar-head strong{font-size:16px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .business-checkin-hero{display:flex;gap:10px;align-items:center;text-align:left;background:linear-gradient(110deg,#d9f7e7,#effbf3);border:1px solid #d3efe2;padding:10px 12px;border-radius:13px;box-shadow:none;min-height:64px;margin-bottom:7px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .business-checkin-hero h2{font-size:14px;font-weight:650;color:#00583d;margin:0}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .business-checkin-hero p{font-size:12px;color:#4f6a61;margin:3px 0 0}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .business-checkin-hero>svg{width:21px;height:21px;flex:none;color:#005b40}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .auth-content label,html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .auth-content input{font-size:14px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .auth-content input{min-height:44px;padding:8px 10px;border:1px solid #dbe9e3;border-radius:12px;background:#f8fbf9;font-size:16px}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .auth-dialog{border-radius:19px;background:#eff5f3}
/* Keep Android native selection from racing the app's message long press. */
html:root[data-client-variant=wechat] #messageList :is(.message-body,.message-meta,.sender-name){-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
html:root[data-client-variant=wechat] .ref-attachment-inline{grid-column:1/-1;grid-row:3;min-width:0;max-width:100%;overflow:auto;max-height:min(46dvh,360px);overscroll-behavior:contain}
html:root[data-client-variant=wechat] .ref-attachment-inline[hidden]{display:none!important}
html:root[data-client-variant=wechat] .ref-attachment-inline .ref-attachment-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px 4px;margin:0;padding:13px 8px 16px;background:var(--ref-panel);border-top:1px solid var(--ref-line)}
html:root[data-client-variant=wechat] .ref-attachment-inline .ref-attachment{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;gap:6px;min-height:76px;padding:4px 2px 5px;border:0;border-radius:14px;background:transparent;text-align:center;line-height:1.22;color:var(--ref-text);font-size:12px;font-weight:620;box-shadow:none;overflow-wrap:anywhere}
html:root[data-client-variant=wechat] .amx-action-icon{display:grid;place-items:center;flex:none;width:43px;height:43px;border-radius:14px;background:var(--tile,#daf6e8);color:var(--glyph,#005d41);box-shadow:inset 0 1px 0 #ffffffa4,0 2px 4px #183c2921}
html:root[data-client-variant=wechat] .amx-action-icon svg{width:23px;height:23px;stroke-width:1.9}
html:root[data-client-variant=wechat] [data-tone=aqua]{--tile:#c8f4f0;--glyph:#005c65}
html:root[data-client-variant=wechat] [data-tone=blue]{--tile:#d8eaff;--glyph:#184ca4}
html:root[data-client-variant=wechat] [data-tone=violet]{--tile:#e9e1ff;--glyph:#5a36a3}
html:root[data-client-variant=wechat] [data-tone=amber]{--tile:#ffe8bd;--glyph:#8a4804}
html:root[data-client-variant=wechat] [data-tone=rose]{--tile:#ffe0e7;--glyph:#9c2543}
html:root[data-client-variant=wechat][data-desktop-original-first=true] #composer>.ref-attachment-inline{grid-row:4}
html:root[data-client-variant=wechat]:not([data-desktop-original-first=true]) #composer{grid-template-columns:44px minmax(0,1fr) 44px 44px;padding:10px;gap:7px}
html:root[data-client-variant=wechat]:not([data-desktop-original-first=true]) #composer:has(.composer-bottom:not([hidden])){grid-template-columns:44px minmax(0,1fr) 44px 44px auto}
html:root[data-client-variant=wechat]:not([data-desktop-original-first=true]) #composer .composer-bottom{grid-column:5}
@media(max-width:610px){html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .wallet-action-grid>button{font-size:13px}html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .ref-page-body{padding-top:12px}}
@media(prefers-reduced-motion:reduce){html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) *,html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) *::before,html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) *::after{transition:none!important;animation:none!important}}

html:root[data-client-variant=wechat] .packet-claim-records .packet-claim-record{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid var(--ref-border)}
html:root[data-client-variant=wechat] .packet-claim-avatar{width:36px;height:36px;border-radius:50%;overflow:hidden;background:var(--ref-surface-alt);display:grid;place-items:center}
html:root[data-client-variant=wechat] .packet-claim-avatar img{width:100%;height:100%;object-fit:cover}
html:root[data-client-variant=wechat] .packet-claim-copy{min-width:0;display:flex;flex-direction:column;gap:5px;text-align:left;font-size:14px;overflow-wrap:anywhere}
html:root[data-client-variant=wechat] .packet-claim-copy small{color:var(--ref-muted);font-size:11px}

/* The login source is shown only in the compact authorized chat header. */
html:root[data-client-variant=wechat] .peer-origin-card{display:none!important}
html:root[data-client-variant=wechat] #conversationMeta{display:flex;align-items:center;gap:6px;min-height:15px}
.amx-presence-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#9cad9f;flex:0 0 auto}
.amx-presence-dot[data-online=true]{background:#58dc8d;box-shadow:0 0 0 3px #6fe4a124}
html:root[data-client-variant=wechat] .member-online{color:#13855c}

html:root[data-client-variant=wechat][data-settings-page=wx-me] .ref-page-head h1{visibility:visible}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) dialog.product-business{background:#eff5f3;border-color:#d8e7e0}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .product-business>.ref-sheet-head{min-height:62px;padding:8px 12px;box-sizing:border-box;background:linear-gradient(110deg,#075342,#08765b);color:#fff;border-bottom:1px solid #ffffff12}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .product-business>.ref-sheet-head h2{font-size:17px;font-weight:700;color:#fff}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) .product-business>.ref-sheet-head button{border:1px solid #ffffff26;background:#ffffff14;color:#fff;box-shadow:none;min-height:42px;border-radius:12px}
html:root[data-client-variant=wechat] .product-business .ref-favorite{border-radius:16px;border-color:var(--ref-border,#dce8e2);box-shadow:0 2px 7px #173e3106}

/* Controlled refinement 7: reset the old padded SVG tiles and narrow bubble radius. */
html:root[data-client-variant=wechat] #wechatAttachmentPanel .amx-action-icon>svg{box-sizing:content-box;width:23px;height:23px;min-width:0;min-height:0;max-width:23px;max-height:23px;padding:0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--glyph,#005d41);stroke:currentColor}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) #messageView{background:linear-gradient(180deg,#eff5f3,#f4f8f5)}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) #messageList{background:transparent}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) #messageList .message-row .message-bubble:not(:has(.ref-inline-video,.ref-media-message[data-attachment-kind="image"])){border-radius:15px 15px 15px 5px!important}
html:root[data-client-variant=wechat]:is([data-theme=light],[data-theme=dark]) #messageList .message-row.own .message-bubble:not(:has(.ref-inline-video,.ref-media-message[data-attachment-kind="image"])){border-radius:15px 15px 5px 15px!important}
html:root[data-client-variant=wechat] #composer #messageInput{border-radius:14px;padding:10px 11px;box-sizing:border-box}

/* Controlled refinement 8: reserve a usable composer field on small Android screens. */
@media(max-width:360px){
html:root[data-client-variant=wechat]:not([data-desktop-original-first=true]) #composer{grid-template-columns:36px minmax(0,1fr) 36px 36px;padding:8px 6px;gap:5px}
html:root[data-client-variant=wechat]:not([data-desktop-original-first=true]) #composer:has(.composer-bottom:not([hidden])){grid-template-columns:36px minmax(0,1fr) 36px 36px 48px}
html:root[data-client-variant=wechat] #composer .ref-icon{width:36px;height:42px;min-width:0;min-height:0;border-radius:12px}
html:root[data-client-variant=wechat] #composer #messageInput{padding:9px 7px!important;min-width:0}
html:root[data-client-variant=wechat] #composer .composer-bottom{min-width:0;width:48px}
html:root[data-client-variant=wechat] #composer #sendButton{min-width:0;width:48px;padding:0 5px}
}

/* Controlled refinement 9: keep the existing mention action visible and on the composer row. */
html:root[data-client-variant=wechat] #composer #referenceMention>span{display:inline;font-size:20px;font-weight:700}
html:root[data-client-variant=wechat]:not([data-desktop-original-first=true]) #composer:has(#referenceMention:not([hidden])){grid-template-columns:40px minmax(0,1fr) 36px 36px 36px;gap:5px}
html:root[data-client-variant=wechat]:not([data-desktop-original-first=true]) #composer:has(#referenceMention:not([hidden])):has(.composer-bottom:not([hidden])){grid-template-columns:40px minmax(0,1fr) 36px 36px 36px 52px}
html:root[data-client-variant=wechat]:not([data-desktop-original-first=true]) #composer:has(#referenceMention:not([hidden])) #referenceEmoji{grid-column:3;grid-row:2;width:36px;min-width:0;padding:5px}
html:root[data-client-variant=wechat]:not([data-desktop-original-first=true]) #composer:has(#referenceMention:not([hidden])) #referenceMention{grid-column:4;grid-row:2;width:36px;min-width:0;padding:5px}
html:root[data-client-variant=wechat]:not([data-desktop-original-first=true]) #composer:has(#referenceMention:not([hidden])) #referenceAttach{grid-column:5;grid-row:2;width:36px;min-width:0;padding:5px}
html:root[data-client-variant=wechat]:not([data-desktop-original-first=true]) #composer:has(#referenceMention:not([hidden])) .composer-bottom{grid-column:6;grid-row:2;min-width:0;width:52px}
html:root[data-client-variant=wechat]:not([data-desktop-original-first=true]) #composer:has(#referenceMention:not([hidden])) #sendButton{width:52px;min-width:0;padding:0 5px}
@media(max-width:360px){
html:root[data-client-variant=wechat]:not([data-desktop-original-first=true]) #composer:has(#referenceMention:not([hidden])){grid-template-columns:32px minmax(0,1fr) 32px 32px 32px;gap:4px}
html:root[data-client-variant=wechat]:not([data-desktop-original-first=true]) #composer:has(#referenceMention:not([hidden])):has(.composer-bottom:not([hidden])){grid-template-columns:32px minmax(0,1fr) 32px 32px 32px 42px}
html:root[data-client-variant=wechat]:not([data-desktop-original-first=true]) #composer #referenceVoice,html:root[data-client-variant=wechat]:not([data-desktop-original-first=true]) #composer #referenceEmoji,html:root[data-client-variant=wechat]:not([data-desktop-original-first=true]) #composer #referenceMention,html:root[data-client-variant=wechat]:not([data-desktop-original-first=true]) #composer #referenceAttach{width:32px;min-width:0;padding:4px}
html:root[data-client-variant=wechat]:not([data-desktop-original-first=true]) #composer:has(#referenceMention:not([hidden])) .composer-bottom,html:root[data-client-variant=wechat]:not([data-desktop-original-first=true]) #composer:has(#referenceMention:not([hidden])) #sendButton{width:42px}
}

html:root[data-client-variant=wechat]:not([data-desktop-original-first=true]) #composer:has(#referenceMention:not([hidden])) #referenceVoice{width:100%;min-width:0;max-width:40px;padding:5px}

/* Customer wave 2: the photograph itself is the message surface. */
html:root[data-client-variant=wechat] #messageList .message-row .message-bubble:has(.ref-media-message[data-attachment-kind="image"]){background:transparent!important;background-image:none!important;padding:0!important;border:0!important;box-shadow:none!important}
html:root[data-client-variant=wechat] #messageList .message-row .ref-media-message[data-attachment-kind="image"]{background:transparent!important;padding:0!important;border:0!important;box-shadow:none!important}

/* Native desktop text selection; mobile long-press selection policy is retained. */
html:root[data-client-variant=wechat][data-platform=desktop] #messageList .message-body{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
/* The same authorized login source, adjacent to name and live presence. */
html:root[data-client-variant=wechat] .chat-heading.has-peer-origin-summary{height:auto;min-height:62px}
html:root[data-client-variant=wechat] .chat-heading .peer-origin-summary{display:block;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:break-word;text-overflow:clip;line-height:1.4;margin-top:2px}

/* AMX physical mobile media must fit the message body and keep avatar space. */
@media (max-width:900px){
html:root[data-client-variant=wechat]:not([data-platform=desktop]) #messageList .message-body > .ref-media-message{max-width:100%!important}
}
