.wa-top-account { position: fixed; z-index: 10010; top: 22px; right: max(32px, env(safe-area-inset-right, 0px)); }
.wa-top-account[hidden], .wa-login-mask [hidden] { display: none !important; }
.wa-entry-button { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 5px 12px 5px 6px; border: 1px solid #dce3e2; border-radius: 6px; color: #293631; background: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: 0 2px 7px rgba(22,39,35,.04); }
.wa-entry-button:hover { border-color: #8faf9f; background: #f9fcfa; }
.wa-avatar { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 5px; background: #eef4f1; color: #296c52; font-size: 12px; font-weight: 700; }
.wa-entry-button.is-signed-in .wa-avatar { background: #247657; color: #fff; }
.wa-toast { position: absolute; top: 46px; right: 0; padding: 8px 12px; background: #247657; color: #fff; border-radius: 6px; font-size: 12px; white-space: nowrap; }
body.wa-login-enabled .page-header { padding-right: 112px; }
body.wa-login-enabled .nav-bar { padding-right: 116px; padding-left: 116px; }
body.wa-dialog-open { overflow: hidden; }
.wa-login-mask { position: fixed; inset: 0; z-index: 100100; display: grid; place-items: center; padding: 20px; background: rgba(17,27,25,.48); overscroll-behavior: contain; }
.wa-login-dialog { position: relative; width: min(740px, 100%); max-height: calc(100dvh - 40px); overflow: auto; border-radius: 8px; background: #fff; color: #24332e; box-shadow: 0 24px 72px rgba(17,31,25,.22); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: 0; }
.wa-login-dialog *, .wa-login-dialog *::before, .wa-login-dialog *::after { box-sizing: border-box; letter-spacing: 0; }
.wa-close { position: absolute; z-index: 2; top: 14px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 5px; background: #f2f5f3; color: #5e6d64; font-size: 25px; font-weight: 400; line-height: 1; }
.wa-close:hover { background: #e7eee9; color: #263b30; }
.wa-login-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); }
.wa-intro { display: flex; flex-direction: column; padding: 32px 28px 0; background: #f0f5f2; overflow: hidden; }
.wa-brand { display: flex; align-items: center; gap: 10px; color: #244735; font-size: 17px; font-weight: 700; }
.wa-brand img { width: 30px; height: 30px; object-fit: contain; border-radius: 5px; }
.wa-intro h2 { margin: 28px 0 12px; font-size: 28px; line-height: 1.35; font-weight: 700; }
.wa-intro > p { margin: 0; color: #586d60; font-size: 15px; line-height: 1.8; white-space: pre-line; }
.wa-intro > .wa-intro-note { margin-top: 18px; font-size: 12px; color: #6f8175; }
.wa-bead-photo { display: block; flex: 1 1 auto; width: calc(100% + 56px); min-height: 150px; height: 174px; margin: 26px -28px 0; object-fit: cover; object-position: 70% 60%; }
.wa-login-content { display: flex; flex-direction: column; align-items: center; padding: 30px 24px 22px; text-align: center; }
.wa-wechat-label { display: inline-flex; align-items: center; gap: 6px; color: #288359; font-size: 12px; line-height: 18px; }
.wa-wechat-label i { width: 6px; height: 6px; border-radius: 50%; background: #2ca56a; }
.wa-login-content h2 { margin: 6px 0 6px; font-size: 23px; line-height: 1.35; font-weight: 700; }
.wa-scan-instruction { margin: 0 0 14px; color: #7d8882; font-size: 12px; line-height: 1.6; }
.wa-code-frame { position: relative; display: grid; place-items: center; width: 224px; height: 224px; flex-shrink: 0; padding: 8px; border: 1px solid #e4eae6; border-radius: 6px; background: #fff; }
.wa-code-frame img { display: block; width: 208px; height: 208px; image-rendering: pixelated; }
.wa-code-loading { max-width: 170px; color: #85938b; font-size: 13px; }
.wa-code-frame.is-expired img { opacity: .12; }
#websiteLoginRetry { position: absolute; padding: 10px 14px; border: 0; border-radius: 6px; background: #267653; color: #fff; font-size: 13px; font-weight: 600; }
.wa-status { width: 100%; min-height: 20px; margin: 12px 0 0; color: #839087; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.wa-status.is-error { color: #ba5146; }
.wa-bind-instruction { max-width: 300px; margin: 12px 0 0; color: #6f8175; font-size: 12px; line-height: 1.7; }
.wa-code-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 8px; }
.wa-code-actions a, .wa-code-actions button { border: 0; padding: 3px 0; background: none; color: #347d58; font-size: 12px; text-decoration: none; cursor: pointer; }
.wa-direct-login { width: 100%; margin-top: 12px; min-height: 40px; padding: 8px 12px; border: 1px solid #bad7c4; border-radius: 6px; background: #eff7f1; color: #24764e; font-size: 13px; font-weight: 600; }
.wa-login-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 15px 22px; border-top: 1px solid #e8eeea; color: #86918a; font-size: 11px; line-height: 1.6; }
.wa-login-footer a { color: #658272; text-decoration: none; }
.wa-login-mask button:disabled { opacity: .6; cursor: wait; }
.wa-login-mask button:focus-visible, .wa-login-mask a:focus-visible, .wa-entry-button:focus-visible { outline: 3px solid #72b895; outline-offset: 3px; }
@media (max-width: 768px) {
  .wa-top-account { top: max(13px, env(safe-area-inset-top, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); }
  .wa-entry-button { min-height: 34px; font-size: 12px; gap: 6px; }
  body.wa-login-enabled .page-header { padding-right: 96px; }
  body.wa-login-enabled .nav-bar { padding-right: 105px; padding-left: 85px; }
  .wa-login-mask { padding: 14px; }
  .wa-login-dialog { max-width: 400px; max-height: calc(100dvh - 28px); }
  .wa-login-layout { grid-template-columns: minmax(0, 1fr); }
  .wa-intro { padding: 20px 22px 16px; }
  .wa-brand { font-size: 15px; }
  .wa-brand img { width: 25px; height: 25px; }
  .wa-intro h2 { margin: 12px 0 4px; font-size: 23px; }
  .wa-intro > p { font-size: 13px; white-space: normal; }
  .wa-intro > .wa-intro-note, .wa-bead-photo { display: none; }
  .wa-close { top: 14px; right: 14px; }
  .wa-login-content { padding: 18px 18px 16px; }
  .wa-login-content h2 { font-size: 21px; }
  .wa-login-footer { justify-content: center; padding: 12px 16px; text-align: center; }
}
