.auth-gate { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 30%, #fff 0, #f7f6f2 58%, #edf3ea 100%); }
.auth-gate[hidden] { display: none; }
.test-switch[hidden] { display: none !important; }
.auth-card { position: relative; width: min(430px, 100%); padding: 42px 38px 34px; border: 1px solid #e5e9e1; border-radius: 14px; background: #fff; box-shadow: 0 24px 70px #526c4b1c; text-align: center; }
.auth-close { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f3f5f1; color: #7d887f; font-size: 22px; line-height: 1; }
.auth-brand-mark { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 15px; background: #f6d376; color: #343b32; font-size: 39px; transform: rotate(-7deg); }
.auth-kicker { margin: 0; color: #4c9874; font: 700 10px 'DM Mono', monospace; letter-spacing: 2.3px; }
.auth-card h1 { margin: 16px 0 10px; color: #222c2a; font-size: 28px; }
.auth-description { margin: 0 auto 26px; max-width: 310px; color: #7f8b83; font-size: 14px; line-height: 1.8; }
.wechat-login { width: 100%; min-height: 48px; border: 0; border-radius: 7px; background: #20a53a; color: #fff; font-weight: 900; box-shadow: 0 6px 18px #20a53a28; }
.wechat-login:hover { background: #178d2e; }
.wechat-login:disabled { cursor: wait; opacity: .66; }
.wechat-login span { margin-right: 8px; font-size: 19px; }
.auth-status { min-height: 21px; margin: 16px 0 0; color: #88938c; font-size: 12px; line-height: 1.7; }
.auth-status.error { color: #bd5c50; }
.auth-retry { margin-top: 8px; border: 0; background: transparent; color: #397c5a; font-weight: 800; }
.auth-privacy { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid #edf0eb; color: #a1aaa3; font-size: 11px; line-height: 1.7; }
.user-menu { display: flex; align-items: center; gap: 9px; color: #657169; font-size: 12px; font-weight: 800; }
.user-menu button { border: 0; border-radius: 5px; padding: 6px 8px; background: #f1f4ef; color: #7b877e; font-size: 11px; font-weight: 800; }
.save-label.sync-error { color: #bd5c50; }
.save-label.sync-error .save-dot { background: #d87968; }
@media (max-width: 680px) {
  .auth-card { padding: 34px 24px 28px; }
  .topbar-right { gap: 10px; }
  .save-label { display: none; }
  .user-menu span { display: none; }
}
