.xm-auth-button{white-space:nowrap}
.xm-auth-menu{position:fixed;z-index:80;min-width:200px;padding:8px;border:1px solid #dfe3e8;border-radius:12px;background:#fff;box-shadow:0 12px 36px #17202f22}
.xm-auth-menu[hidden]{display:none}
.xm-auth-email{display:block;padding:8px 10px 10px;border-bottom:1px solid #eef0f3;margin-bottom:6px;color:#5b6675;font-size:12px;word-break:break-all}
.xm-auth-menu button{width:100%;padding:9px 10px;border:0;border-radius:8px;background:transparent;color:#263041;font:inherit;font-size:13px;text-align:left;cursor:pointer}
.xm-auth-menu button:hover{background:#f1f4f8}

.xm-auth-dialog{width:min(420px,calc(100vw - 32px));padding:0;border:1px solid #dfe3e8;border-radius:18px;background:#fff;color:#263041;box-shadow:0 24px 90px #17202f30;font-family:inherit}
.xm-auth-dialog::backdrop{background:#17202f70}
.xm-auth-head{display:flex;align-items:flex-start;justify-content:space-between;padding:24px 24px 14px}
.xm-auth-head h2{margin:0;font-size:22px;line-height:1.3}
.xm-auth-head p{margin:6px 0 0;color:#687386;font-size:13px}
.xm-auth-close{border:0;background:transparent;color:#687386;font-size:24px;line-height:1;cursor:pointer;padding:0 2px}
.xm-auth-tabs{display:flex;gap:6px;padding:0 24px 16px;border-bottom:1px solid #eef0f3}
.xm-auth-tabs button{flex:1;padding:9px;border:0;border-radius:9px;background:#f2f4f7;color:#5b6675;font:inherit;font-size:13px;cursor:pointer}
.xm-auth-tabs button.active{background:#2f6fed;color:#fff}
.xm-auth-form{padding:20px 24px 24px}
.xm-auth-field{margin-bottom:14px}
.xm-auth-field label{display:block;margin-bottom:6px;color:#3b4552;font-size:13px;font-weight:600}
.xm-auth-field input{width:100%;box-sizing:border-box;padding:11px 12px;border:1px solid #d9dee5;border-radius:10px;background:#fff;color:#263041;font:inherit;font-size:14px;outline:none}
.xm-auth-field input:focus{border-color:#2f6fed;box-shadow:0 0 0 3px #2f6fed1a}
.xm-auth-hint{margin-top:6px;color:#8590a0;font-size:12px}
.xm-auth-status{min-height:18px;margin:2px 0 12px;color:#c62828;font-size:13px;line-height:1.5}
.xm-auth-submit{width:100%;padding:12px 16px;border:0;border-radius:10px;background:#2f6fed;color:#fff;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.xm-auth-submit:disabled{opacity:.6;cursor:not-allowed}
.xm-auth-note{margin:12px 0 0;color:#8590a0;font-size:12px;line-height:1.6;text-align:center}

.xm-auth-toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);z-index:90;padding:10px 16px;border-radius:10px;background:#263041;color:#fff;font-size:13px;box-shadow:0 10px 30px #17202f30}
.xm-auth-toast[hidden]{display:none}
