/* Familiar phone registration, using Faymoo's identity and real auth controls. */
#modal.phoneAuth.authReference{--auth-accent:#7a1d5e;--auth-ink:#17191c;--auth-muted:#697078;position:fixed;inset:0;margin:auto;width:min(460px,100%);height:min(760px,calc(var(--visible-height,100dvh) - 32px));max-width:100%;max-height:calc(var(--visible-height,100dvh) - 32px);padding:0;border:0;border-radius:24px;background:#fff;color:var(--auth-ink);overflow:auto;box-shadow:0 12px 70px #26142114;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
#modal.authReference::backdrop{background:#f4f5f6}
#modal.authReference #closeModal,#modal.authReference>button{display:none}
#modal.authReference #modalBody{padding:0;height:100%}
#modal.authReference *{box-sizing:border-box}
#modal.authReference .phoneScreen{display:flex;flex-direction:column;min-height:100%;padding:16px 28px 28px;background:#fff;text-align:center;position:relative}
#modal.authReference .phoneScreen:before,#modal.authReference .phoneScreen:after{display:none}
#modal.authReference .phoneTop{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;min-height:44px;margin:0 -12px 22px;flex:none}
#modal.authReference .phoneTop button{display:grid;place-items:center;width:44px;height:44px;background:none;border:0;border-radius:50%;color:var(--auth-accent);padding:10px}
#modal.authReference .phoneTop svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#modal.authReference .phoneStepLabel{font-size:12px;color:var(--auth-muted);font-weight:500}
#modal.authReference h2{font:600 24px/1.25 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:-.45px;color:var(--auth-ink);margin:0 0 18px}
#modal.authReference p{font-size:15px;line-height:1.6;color:var(--auth-muted);margin:0 0 18px}
#modal.authReference .phoneIntro{max-width:330px;margin:0 auto 22px}
#modal.authReference .phoneIntro strong{font-weight:600;color:var(--auth-ink)}
#modal.authReference form{display:flex;flex-direction:column;gap:14px;min-width:0;margin:0}
#modal.authReference #phoneForm{flex:1}
#modal.authReference :is(input,select){font:400 17px/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--auth-ink);border:0;border-bottom:1.5px solid var(--auth-accent);border-radius:0;box-shadow:none;background:transparent;padding:10px 4px;min-height:48px;min-width:0;width:100%;margin:0;outline-offset:4px}
#modal.authReference :is(input,select):focus-visible{outline:2px solid #e996d0;outline-offset:4px}
#modal.authReference #phoneCountry{width:100%;text-align:center;text-align-last:center;padding-right:24px;background:#fff;cursor:pointer}
#modal.authReference .phoneRow{display:grid;grid-template-columns:76px minmax(0,1fr);gap:16px;max-width:100%;padding:0;border:0;box-shadow:none;background:none}
#modal.authReference .phoneRow>div{min-width:0}
#modal.authReference #countryCode{text-align:center}
#modal.authReference .phoneRates{font-size:12px;margin:0;color:var(--auth-muted)}
#modal.authReference .primary{min-height:48px;flex:none;width:100%;border:0;border-radius:26px;background:var(--auth-accent);color:#fff;font:600 16px/1.3 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;box-shadow:none;padding:14px 22px;margin:14px 0 0;cursor:pointer}
#modal.authReference #phoneForm>.primary{margin-top:auto}
#modal.authReference .phoneLink{display:block;color:var(--auth-accent);font:500 15px/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;padding:12px 6px;min-height:44px;background:transparent;box-shadow:none;border:0;border-radius:10px;cursor:pointer}
#modal.authReference button:disabled{opacity:.45;cursor:default}
#modal.authReference .phoneFoot{margin-top:auto;padding-top:26px;display:flex;flex-direction:column;align-items:stretch}
#modal.authReference .phoneDisclosure{font-size:11px;line-height:1.6;margin:16px 0 0;color:var(--auth-muted)}
#modal.authReference .phoneNumberReview{font-size:24px;line-height:1.4;font-weight:600;padding:14px 0 22px;overflow-wrap:anywhere}
#modal.authReference #phoneCaptcha{display:flex;justify-content:center;max-width:100%;overflow:auto}
#modal.authReference #phoneError{color:#ae2844;background:#fff3f5;border-radius:12px;padding:12px;font-size:14px;line-height:1.5;white-space:pre-wrap;text-align:left;margin:0}
#modal.authReference #phoneProgress{color:var(--auth-accent);font-size:14px;margin:0}
#modal.authReference :is(#phoneError,#phoneProgress):empty{display:none}
#modal.authReference #smsCode{align-self:center;width:250px;max-width:100%;min-height:64px;text-align:center;font-size:29px;letter-spacing:12px;text-indent:12px;font-variant-numeric:tabular-nums;border-bottom-width:2px}
#modal.authReference #smsCode::placeholder{font-size:20px;letter-spacing:0;text-indent:0;color:#9b9fa5}
#modal.authReference .phoneAvatar{width:100px;height:100px;flex:none;border-radius:50%;background:#f8eef5;color:var(--auth-accent);display:grid;place-items:center;font-size:30px;margin:22px auto 32px}
#modal.authReference label:not(.phoneSrOnly){font-size:13px;text-align:left;font-weight:500}
#modal.authReference .phoneSrOnly{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#modal.authReference[data-auth-screen=welcome] .phoneTop{visibility:hidden;margin-bottom:4px}
#modal.authReference .phoneWelcome{display:flex;flex-direction:column;align-items:center}
#modal.authReference .phoneWelcomeArt{width:min(100%,292px);height:auto;aspect-ratio:1;display:block;margin:0 auto 28px}
#modal.authReference .phoneWelcome h2{font-size:28px;margin-bottom:18px;letter-spacing:-.7px}
#modal.authReference .phoneTagline{font-size:17px;color:var(--auth-ink);line-height:1.5;margin:0}
#modal.authReference .phoneWelcomeNote{font-size:13px;max-width:280px;margin:0 auto 8px}
#modal.authReference .phoneCompany{font-size:11px;line-height:1.6;color:#878a90;margin-top:26px}
#modal.authReference .phoneCompany strong{display:block;font-size:13px;font-weight:500;letter-spacing:.2px;color:var(--auth-muted)}
#faymooSplash{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;background:#fff;color:#1e1c1d;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
#faymooSplash[hidden]{display:none!important}
#faymooSplash .fmSplashMark{width:96px;height:96px;display:block}
#faymooSplash .fmSplashFooter{position:absolute;bottom:max(42px,env(safe-area-inset-bottom));left:20px;right:20px;text-align:center;color:#938d91;font-size:11px;line-height:1.7}
#faymooSplash .fmSplashFooter strong{display:block;font-size:16px;color:#7a1d5e;font-weight:500;letter-spacing:.2px}
#faymooSplash .fmSplashFooter p{font-size:10px;color:#8c858a;margin:8px 0 0}
#faymooSplash .fmSplashRecovery{position:absolute;left:24px;right:24px;top:65%;text-align:center;color:#697078;font-size:14px}
#faymooSplash .fmSplashRecovery[hidden]{display:none}
#faymooSplash .fmSplashRecovery button{border:0;border-radius:24px;background:#7a1d5e;color:#fff;padding:12px 22px;min-height:44px;font:inherit}
@media(max-width:600px){
 #modal.phoneAuth.authReference{width:100%;height:var(--visible-height,100dvh);max-height:var(--visible-height,100dvh);border-radius:0;box-shadow:none;top:var(--visible-top,0px);bottom:auto;margin:0}
 #modal.authReference .phoneScreen{padding:calc(12px + env(safe-area-inset-top)) 28px calc(24px + env(safe-area-inset-bottom))}
}
@media(max-height:680px){
 #modal.authReference .phoneTop{margin-bottom:12px}
 #modal.authReference .phoneWelcomeArt{width:min(52vw,200px);margin-bottom:16px}
 #modal.authReference .phoneWelcome h2{font-size:26px}
 #modal.authReference .phoneFoot{padding-top:18px}
 #modal.authReference .phoneCompany{margin-top:16px}
}
@media(max-height:450px){#modal.authReference .phoneScreen{min-height:410px}#modal.authReference .phoneWelcomeArt{width:90px}.phoneWelcome .phoneTagline br{display:none}#modal.authReference .phoneTop{margin-bottom:8px}#modal.authReference .phoneFoot{padding-top:12px}}

#modal.authReference button:focus-visible{outline:2px solid #e59ed0;outline-offset:3px}

/* Premium Faymoo welcome and authentication shell. */
#modal.phoneAuth.authReference{--auth-ink:#371c2f;--auth-muted:#7f6f7a;--auth-line:#efe3ec;width:min(1040px,calc(100% - 64px));height:min(744px,calc(var(--visible-height,100dvh) - 64px));max-height:calc(var(--visible-height,100dvh) - 64px);border:1px solid #fff;border-radius:32px;box-shadow:0 28px 100px #58234815;color-scheme:light}
#modal.authReference::backdrop{background:radial-gradient(ellipse at 12% 12%,#f9e1f2,transparent 55%),radial-gradient(ellipse at 90% 95%,#f1e8ee,transparent 60%),#f8f4f7}
#modal.authReference .authLayout{display:grid;grid-template-columns:1fr 1fr;min-height:100%;height:100%}
#modal.authReference .authBrand{display:flex;flex-direction:column;position:relative;overflow:hidden;background:radial-gradient(ellipse at 10% 80%,#fddff4,transparent 65%),linear-gradient(135deg,#fef5fb,#faecf6);padding:40px 44px;border-right:1px solid #f6eaf3}
#modal.authReference .authWordmark{display:flex;align-items:center;font-size:30px;font-weight:750;letter-spacing:-1.2px;z-index:1}
#modal.authReference .authWordmark img{width:52px;height:52px;margin-left:-8px;margin-right:4px}
#modal.authReference .authWordmark span{align-self:flex-start;font-size:10px;letter-spacing:0;margin:12px 0 0 3px}
#modal.authReference .authBrandStory{margin-top:58px;position:relative;z-index:1}
#modal.authReference .authEyebrow{display:block;font-size:10px;line-height:1.5;font-weight:700;letter-spacing:1.7px;color:#916684;margin:0 0 15px}
#modal.authReference .authBrandStory .authEyebrow{font-size:11px;letter-spacing:.5px;text-transform:none}
#modal.authReference .authBrand h1{font-size:42px;line-height:1.16;letter-spacing:-1.8px;font-weight:650;margin:0 0 24px;color:var(--auth-ink)}
#modal.authReference .authBrand h1 em{font-style:normal;color:var(--auth-accent)}
#modal.authReference .authBrand p{font-size:14px;line-height:1.8;color:#7f6878;margin:0}
#modal.authReference .authBrandArt{position:absolute;bottom:40px;right:-24px;width:270px;height:245px;transform:rotate(-11deg);opacity:.85}
#modal.authReference .authBrandArt:before{content:'';position:absolute;inset:10px;border-radius:50%;border:1px solid #f1c9e5;box-shadow:0 0 0 34px #f6dcee50,0 0 0 35px #efd0e640}
#modal.authReference .authBrandArt img{width:100%;height:100%;filter:drop-shadow(0 12px 22px #ae589420);position:relative}
#modal.authReference .authBrandCompany{margin-top:auto;position:relative;z-index:1;font-size:9px;letter-spacing:2px;font-weight:600;color:#96748c;padding-top:36px}
#modal.authReference .phoneScreen{padding:24px 46px 32px}
#modal.authReference .phoneTop{margin:0 -12px 24px}
#modal.authReference .phoneTop button{background:#faf5f8;border:1px solid #f6edf3;color:var(--auth-ink);padding:11px}
#modal.authReference .phoneTop svg{width:21px;height:21px}
#modal.authReference .authMobileBrand{display:flex;align-items:center;justify-content:center;font-size:19px;font-weight:750;letter-spacing:-.6px;color:#503247}
#modal.authReference .authMobileBrand img{width:33px;height:33px;margin-right:2px}
#modal.authReference .phoneStepLabel{font-size:11px;font-variant-numeric:tabular-nums}
#modal.authReference .authSteps{display:flex;gap:6px;padding:0;margin:0 auto 28px;width:84px;list-style:none}
#modal.authReference .authSteps li{height:3px;flex:1;border-radius:5px;background:#f2e8ef}
#modal.authReference .authSteps li.active{background:#a82e83}
#modal.authReference h2{font-size:29px;font-weight:650;line-height:1.2;letter-spacing:-1px;margin:0 0 14px;outline:none}
#modal.authReference p{font-size:14px;line-height:1.65}
#modal.authReference .phoneIntro{max-width:340px;margin:0 auto 28px}
#modal.authReference .authScreenIcon{display:grid;place-items:center;width:60px;height:60px;border:1px solid #f9e4f3;background:linear-gradient(150deg,#fff9fd,#faeaf5);border-radius:19px;margin:0 auto 22px;color:var(--auth-accent);flex:none}
#modal.authReference .authScreenIcon svg{width:27px;height:27px}
#modal.authReference form{gap:18px}
#modal.authReference #phoneForm{flex:none}
#modal.authReference .authField{text-align:left}
#modal.authReference label:not(.phoneSrOnly){display:block;font-size:12px;line-height:1.5;font-weight:600;margin:0 0 8px;color:#5f4758}
#modal.authReference :is(input,select){border:1px solid var(--auth-line);border-radius:13px;box-shadow:0 2px 4px #3a183002;background:#fefbfd;padding:14px 16px;min-height:54px;outline-offset:3px}
#modal.authReference input::placeholder{color:#9e919a}
#modal.authReference :is(input,select):focus-visible{outline:2px solid #d880be;outline-offset:2px;border-color:#dc9ec9;background:#fff}
#modal.authReference #phoneCountry{text-align:left;text-align-last:left;padding-right:12px;background:#fefbfd}
#modal.authReference .phoneRow{grid-template-columns:82px minmax(0,1fr);gap:0;border:1px solid var(--auth-line);border-radius:13px;box-shadow:0 2px 4px #3a183002;background:#fefbfd}
#modal.authReference .phoneRow input{background:none;border:0;box-shadow:none}
#modal.authReference #countryCode{padding-left:10px;padding-right:10px}
#modal.authReference #phoneNumber{border-left:1px solid var(--auth-line);border-top-left-radius:0;border-bottom-left-radius:0}
#modal.authReference .phoneRates{font-size:11px}
#modal.authReference .primary,#modal.authReference .authSecondary{display:flex;align-items:center;justify-content:center;gap:14px;min-height:54px;flex:none;width:100%;border:1px solid transparent;border-radius:15px;background:linear-gradient(110deg,#a1247b,#822566);color:#fff;font:600 15px/1.3 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;box-shadow:0 6px 15px #7a1d5e1a;padding:16px 20px;margin:6px 0 0;cursor:pointer;transition:background .15s,transform .15s}
#modal.authReference .primary span{font-size:20px;line-height:1;position:absolute;right:20px}
#modal.authReference .primary{position:relative}
#modal.authReference .authSecondary{background:#fff;color:var(--auth-accent);border-color:#efd4e7;box-shadow:none;margin-top:12px}
#modal.authReference .phoneLink{font-size:13px;font-weight:600}
#modal.authReference .authSwitch{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:3px;font-size:12px;margin:18px 0 0}
#modal.authReference .authSwitch .phoneLink{display:inline-block}
#modal.authReference button:disabled{opacity:.5}
#modal.authReference .phoneFoot{padding-top:24px}
#modal.authReference .phoneDisclosure{font-size:10px;line-height:1.65;margin:18px 0 0;color:#8f818b}
#modal.authReference .phoneNumberReview{font-size:26px;padding:22px 12px;background:#fdf5fa;border:1px solid #f7e7f2;border-radius:17px;letter-spacing:-.6px;margin:4px 0 20px}
#modal.authReference .phoneNumberReview span{display:block;font-size:11px;font-weight:400;letter-spacing:0;color:var(--auth-muted);margin-top:6px}
#modal.authReference #phoneError{color:#a02643;background:#fff1f4;border:1px solid #f7dce4;font-size:13px}
#modal.authReference #phoneProgress{font-size:13px;margin:12px 0}
#modal.authReference #smsCode{width:100%;max-width:320px;min-height:68px;font-weight:500;letter-spacing:13px;text-indent:13px;border-bottom-width:1px}
#modal.authReference #smsCode::placeholder{font-size:29px;letter-spacing:13px;text-indent:13px;color:#d9c5d3}
#modal.authReference[data-auth-screen=code] .phoneIntro{margin-bottom:10px}
#modal.authReference #codeForm{margin-top:20px}
#modal.authReference .phoneAvatar{width:96px;height:96px;border:6px solid #fff7fc;border-radius:30px;background:linear-gradient(145deg,#fee5f6,#f8d5ed);font-size:29px;font-weight:600;margin:12px auto 30px;box-shadow:0 0 0 1px #f7e7f2}
#modal.authReference #phoneProfile{gap:8px}
#modal.authReference #phoneProfile .primary{margin-top:22px}
#modal.authReference[data-auth-screen=welcome] .phoneTop{visibility:visible;margin-bottom:0}
#modal.authReference[data-auth-screen=welcome] .authMobileBrand{visibility:hidden}
#modal.authReference .phoneWelcome{margin:auto 0 0}
#modal.authReference .authWelcomeMark{width:150px;height:150px;display:grid;place-items:center;border-radius:44px;background:radial-gradient(circle,#fee4f6,transparent 72%);margin:0 auto 16px;position:relative}
#modal.authReference .authWelcomeMark:before{content:'';position:absolute;inset:14px;border-radius:37px;background:linear-gradient(145deg,#fff,#fef1fa);border:1px solid #f7e2f1;transform:rotate(-10deg);box-shadow:0 12px 24px #9949810b}
#modal.authReference .authWelcomeMark img{position:relative;width:126px;height:126px}
#modal.authReference .phoneWelcome h2{font-size:30px;letter-spacing:-1px}
#modal.authReference .phoneTagline{font-size:19px;letter-spacing:-.4px}
#modal.authReference .phoneTagline strong{color:var(--auth-accent);font-weight:600}
#modal.authReference .phoneWelcomeNote{margin:16px auto 0;color:#93828e}
#modal.authReference .authWelcomeActions{padding-top:32px;margin-top:auto}
#modal.authReference .phoneCompany{font-size:9px;line-height:1.7;color:#ab96a5;margin-top:24px}
#modal.authReference .phoneCompany strong{font-size:11px;letter-spacing:.3px;color:#8e7687}
#faymooSplash{background:radial-gradient(ellipse at 50% 45%,#fcebf7,transparent 55%),#fffbfe;color:#371c2f}
#faymooSplash .fmSplashMark{width:128px;height:128px;filter:drop-shadow(0 12px 20px #7a1d5e10)}
#faymooSplash .fmSplashFooter{font-size:10px;color:#ab96a5}
#faymooSplash .fmSplashFooter strong{font-size:13px;color:#8b637f;letter-spacing:.4px}
#faymooSplash .fmSplashRecovery button{border-radius:15px}
@media(hover:hover){#modal.authReference .primary:not(:disabled):hover{background:#601247;transform:translateY(-1px)}#modal.authReference .authSecondary:hover{background:#fff7fc}#modal.authReference .phoneLink:hover{background:#fff6fc}}
@media(max-width:850px){#modal.phoneAuth.authReference{width:min(480px,calc(100% - 32px));height:min(780px,calc(var(--visible-height,100dvh) - 32px));max-height:calc(var(--visible-height,100dvh) - 32px)}#modal.authReference .authLayout{display:block}#modal.authReference .authBrand{display:none}#modal.authReference .phoneScreen{padding:20px 32px 28px}}
@media(max-width:600px){#modal.phoneAuth.authReference{width:100%;height:var(--visible-height,100dvh);max-height:var(--visible-height,100dvh);border:0;border-radius:0;box-shadow:none;top:var(--visible-top,0px);bottom:auto;margin:0}#modal.authReference .phoneScreen{padding:calc(16px + env(safe-area-inset-top)) 28px calc(24px + env(safe-area-inset-bottom))}#modal.authReference[data-auth-screen=welcome] .phoneScreen{background:radial-gradient(ellipse at 50% 28%,#fef2fb,transparent 52%),#fff}#modal.authReference .authWelcomeMark{width:170px;height:170px;margin-bottom:24px}#modal.authReference .authWelcomeMark img{width:142px;height:142px}#modal.authReference .phoneWelcome h2{font-size:30px}}
@media(max-height:740px){#modal.authReference .phoneTop{margin-bottom:14px}#modal.authReference .authSteps{margin-bottom:20px}#modal.authReference .authScreenIcon{width:48px;height:48px;border-radius:15px;margin-bottom:16px}#modal.authReference .authEyebrow{margin-bottom:10px}#modal.authReference .phoneIntro{margin-bottom:20px}#modal.authReference .authWelcomeMark{width:110px;height:110px;margin-bottom:12px}#modal.authReference .authWelcomeMark img{width:100px;height:100px}#modal.authReference .authWelcomeMark:before{inset:5px;border-radius:30px}#modal.authReference .phoneFoot{padding-top:20px}#modal.authReference .phoneCompany{margin-top:16px}#modal.authReference .authBrandStory{margin-top:34px}#modal.authReference .authBrandArt{width:200px;height:180px}}
@media(max-height:520px){#modal.authReference .phoneScreen{min-height:540px}#modal.authReference .authBrandArt{display:none}#modal.authReference .authBrandStory{margin-top:20px}#modal.authReference .authBrand h1{font-size:34px}}
@media(prefers-reduced-motion:reduce){#modal.authReference button{transition:none!important}}

/* Leave Google’s external challenge above the temporary modeless auth dialog. */
#faymooVerificationBackdrop{position:fixed;inset:0;background:#f9f0f7;z-index:1998}
#modal.phoneAuth.authReference.webVerification{z-index:1999}



/* Faymoo's connected world: a continuous illustrated canvas across sign-in. */
#modal.phoneAuth.authReference{--auth-accent:#7a1d5e;--auth-ink:#2e212a;--auth-muted:#7f6f7a;width:min(1140px,calc(100% - 56px));height:min(810px,calc(var(--visible-height,100dvh) - 56px));border:1px solid #fff;border-radius:30px;box-shadow:0 24px 90px #4225391c;background:#fff}
#modal.authReference::backdrop{background:linear-gradient(#f7eef4d9,#f7eef4d9),url('/messenger/art/faymoo-conversation-pattern.svg') center/740px 600px #f7eef4}
#modal.authReference .authLayout{grid-template-columns:1.08fr 1fr;background:#fdf7fb;position:relative;isolation:isolate;min-height:100%}
#modal.authReference .authLayout:before{content:"";position:absolute;inset:0;background:url('/messenger/art/faymoo-conversation-pattern.svg') center/620px auto;opacity:.14;pointer-events:none;z-index:-1}
#modal.authReference .authBrand{position:relative;padding:34px 38px 25px;background:linear-gradient(150deg,#f8e6f388,#f9edf633);border-right:1px solid #efdfea44;color:var(--auth-ink);overflow:hidden}
#modal.authReference .authWordmark{display:flex;align-items:center;gap:4px;font-size:30px;font-weight:700;letter-spacing:-1.2px;color:#3d2536;position:relative;z-index:1}
#modal.authReference .authWordmark img{width:48px;height:48px;margin:0 0 0 -7px}
#modal.authReference .authBrandStory{margin-top:36px;position:relative;z-index:1}
#modal.authReference .authBrandStory .authEyebrow{font-size:9px;font-weight:600;letter-spacing:1.8px;color:#9b7690;margin-bottom:20px}
#modal.authReference .authBrand h1{font-size:43px;line-height:1.15;letter-spacing:-1.8px;font-weight:650;color:#3e2536;margin:0 0 22px}
#modal.authReference .authBrand h1 em{font:inherit;font-style:normal;color:#7a1d5e}
#modal.authReference .authBrandStory p{color:#876b7f;font-size:14px;line-height:1.8;margin:0}
#modal.authReference .brandScene{display:grid;place-items:center;flex:1;min-height:180px;margin:8px -27px 0;position:relative}
#modal.authReference .connectedWorld{display:block;width:100%;height:auto;max-height:320px;object-fit:contain}
#modal.authReference .authBrandFooter{display:block;border-top:1px solid #e7cddf4d;padding-top:15px;margin-top:auto;flex:none;text-align:left}
#modal.authReference .authBrandFooter span{font-size:10px;letter-spacing:.1px;line-height:1.5;color:#977a8e}
#modal.authReference .phoneScreen{padding:24px 46px 29px;background:#ffffffed;position:relative;isolation:isolate}
#modal.authReference .phoneScreen:before{display:block;content:"";position:absolute;inset:0;background:url('/messenger/art/faymoo-conversation-pattern.svg') center/500px auto;opacity:.07;pointer-events:none;z-index:-1}
#modal.authReference .phoneScreen:after{display:block;content:"";position:absolute;inset:0;background:radial-gradient(ellipse at center,#ffffffed 25%,#ffffff33 75%,transparent);pointer-events:none;z-index:-1}
#modal.authReference[data-auth-screen=welcome] .phoneTop{height:22px;min-height:22px;margin:0;visibility:hidden}
#modal.authReference .phoneWelcome{margin:auto 0 0;position:relative}
#modal.authReference .welcomeWorld{display:none}
#modal.authReference .welcomeMark{display:grid;place-items:center;width:106px;height:106px;margin:0 auto 31px;background:#fff;border:1px solid #faeef7;border-radius:31px;box-shadow:0 12px 26px #7a1d5e12}
#modal.authReference .welcomeMark img{width:123px;height:123px;max-width:none}
#modal.authReference .welcomeEyebrow{font-size:9px;font-weight:600;letter-spacing:1.8px;line-height:1.5;color:#b484a6;margin-bottom:16px}
#modal.authReference .phoneWelcome h2{font-size:31px;font-weight:650;letter-spacing:-1px;line-height:1.2;margin:0 0 18px}
#modal.authReference .phoneTagline{font-size:20px;line-height:1.55;letter-spacing:-.3px;color:#7a6172;margin:0}
#modal.authReference .phoneTagline strong{font:inherit;font-weight:600;font-style:normal;color:#7a1d5e}
#modal.authReference .phoneWelcomeNote{font-size:13px;line-height:1.8;color:#8e7386;margin:19px auto 0;max-width:100%}
#modal.authReference .welcomePossibilities{font-size:10px;line-height:1.5;letter-spacing:.8px;color:#a9889f;margin:22px 0 0}
#modal.authReference .authWelcomeActions{margin-top:auto;padding-top:34px;padding-bottom:7px}
#modal.authReference .primary{background:#7a1d5e;border:1px solid #7a1d5e;box-shadow:0 5px 12px #7a1d5e14;border-radius:28px;min-height:54px;font-size:15px;font-weight:600;letter-spacing:.05px}
#modal.authReference .primary span{font-size:22px;color:#fee8f7;right:22px}
#modal.authReference .welcomeLogin{display:flex;align-items:center;justify-content:center;gap:3px;flex-wrap:wrap;color:#947e8d;font-size:12px;margin:10px 0 0;line-height:1.5}
#modal.authReference .welcomeLogin .phoneLink{display:inline-flex;align-items:center;min-height:44px;font-size:12px;font-weight:600;padding:10px 5px;color:#7a1d5e}
#modal.authReference .authWelcomeActions .phoneDisclosure{font-size:10px;line-height:1.6;color:#9e8697;margin:3px 0 0}
#modal.authReference button:focus-visible{outline:3px solid #d495c1;outline-offset:4px}
@media(hover:hover){#modal.authReference .primary:not(:disabled):hover{background:#601247;box-shadow:0 7px 17px #7a1d5e23}#modal.authReference .welcomeLogin .phoneLink:hover{background:#fdf4fa}}
@media(min-width:851px) and (max-width:1060px){#modal.authReference .authBrand{padding:30px}#modal.authReference .authBrand h1{font-size:36px}#modal.authReference .phoneScreen{padding-inline:30px}#modal.authReference .phoneWelcome h2{font-size:28px}}
@media(max-width:850px){
 #modal.phoneAuth.authReference{width:min(480px,calc(100% - 32px));height:min(860px,calc(var(--visible-height,100dvh) - 32px));max-height:calc(var(--visible-height,100dvh) - 32px)}
 #modal.authReference .authLayout{display:block;height:100%}
 #modal.authReference .authBrand{display:none}
 #modal.authReference .phoneScreen{padding:22px 30px 25px}
 #modal.authReference[data-auth-screen=welcome] .phoneTop{visibility:visible;min-height:36px;height:36px}
 #modal.authReference[data-auth-screen=welcome] .authMobileBrand{visibility:visible;color:#513549;font-size:21px}
 #modal.authReference[data-auth-screen=welcome] .phoneScreen{background:#fef8fc}
 #modal.authReference[data-auth-screen=welcome] .phoneScreen:before{opacity:.16;background-size:450px auto}
 #modal.authReference[data-auth-screen=welcome] .phoneScreen:after{background:linear-gradient(180deg,transparent 28%,#fef8fcf0 49%,#fef8fce6 88%,#fef8fc55)}
 #modal.authReference .phoneWelcome{margin:auto 0 0}
 #modal.authReference .welcomeWorld{display:block;flex:none;width:calc(100% + 42px);max-width:none;height:auto;aspect-ratio:1.5;margin:20px -21px 16px}
 #modal.authReference .welcomeMark{display:none}
 #modal.authReference .welcomeEyebrow{font-size:8px;letter-spacing:1.6px;margin-bottom:11px}
 #modal.authReference .phoneWelcome h2{font-size:29px;margin-bottom:15px}
 #modal.authReference .phoneTagline{font-size:19px}
 #modal.authReference .phoneWelcomeNote{font-size:12px;margin-top:15px}
 #modal.authReference .welcomePossibilities{font-size:9px;letter-spacing:.6px;margin-top:16px}
 #modal.authReference .authWelcomeActions{padding-top:26px}
}
@media(max-width:600px){
 #modal.phoneAuth.authReference{width:100%;height:var(--visible-height,100dvh);max-height:var(--visible-height,100dvh);border:0;border-radius:0;box-shadow:none;top:var(--visible-top,0px);bottom:auto;margin:0}
 #modal.authReference .phoneScreen{padding:calc(18px + env(safe-area-inset-top)) 26px calc(23px + env(safe-area-inset-bottom))}
}
@media(max-height:740px){
 #modal.authReference .authBrandStory{margin-top:22px}
 #modal.authReference .authBrand h1{font-size:36px;margin-bottom:16px}
 #modal.authReference .authBrandStory .authEyebrow{margin-bottom:14px}
 #modal.authReference .welcomeMark{width:86px;height:86px;margin-bottom:23px}
 #modal.authReference .welcomeMark img{width:108px;height:108px}
 #modal.authReference .phoneWelcome h2{font-size:28px;margin-bottom:13px}
 #modal.authReference .phoneWelcomeNote{margin-top:12px}
 #modal.authReference .welcomePossibilities{margin-top:14px}
 #modal.authReference .authWelcomeActions{padding-top:20px}
 #modal.authReference .welcomeWorld{width:calc(100% + 16px);margin:10px -8px 10px;max-height:215px;object-fit:contain}
}
@media(max-height:650px){
 #modal.authReference .authBrand{padding:24px 30px}
 #modal.authReference .authBrand h1{font-size:31px}
 #modal.authReference .authBrandFooter{padding-top:10px}
 #modal.authReference .brandScene{min-height:155px}
 #modal.authReference[data-auth-screen=welcome] .phoneScreen{padding-top:12px;padding-bottom:16px}
 #modal.authReference .welcomeWorld{max-height:175px;margin:6px -8px 7px}
 #modal.authReference .phoneWelcome h2{font-size:26px;margin-bottom:12px}
 #modal.authReference .phoneTagline{font-size:17px}
 #modal.authReference .phoneWelcomeNote{font-size:11px;margin-top:11px}
 #modal.authReference .welcomePossibilities{margin-top:12px}
 #modal.authReference .authWelcomeActions{padding-top:18px;padding-bottom:0}
 #modal.authReference .authWelcomeActions .primary{min-height:48px;padding-block:13px}
 #modal.authReference .welcomeLogin{margin-top:6px}
}
@media(max-height:520px){#modal.authReference[data-auth-screen=welcome] .phoneScreen{min-height:600px}#modal.authReference .authBrandStory{margin-top:20px}}
@media(prefers-reduced-motion:reduce){#modal.authReference *{scroll-behavior:auto!important;transition:none!important}}

/* Five welcome stories. Registration stays available on every story. */
#modal[data-auth-screen="welcome"] .phoneScreen{padding-top:22px;padding-bottom:20px;gap:0}
#modal[data-auth-screen="welcome"] .phoneWelcome.storyWelcome{margin:0;flex:1;display:flex;flex-direction:column;justify-content:center;padding:0;min-height:0}
#modal[data-auth-screen="welcome"] .welcomeEyebrow{margin:10px 0;font-size:10px}
#modal[data-auth-screen="welcome"] .storyWelcome h2{font-size:clamp(27px,3vw,36px);margin:0;letter-spacing:-1.2px}
#modal[data-auth-screen="welcome"] .phoneTagline{font-size:16px;line-height:1.45;margin:12px 0 0}
.welcomeShowcase{width:100%;touch-action:pan-y}
.storyArt{height:205px;margin:6px auto 0;max-width:380px}
.storyArt img{display:block;width:100%;height:100%;object-fit:contain}
.storyText{min-height:68px;text-align:center;margin:0 auto;max-width:350px}
.storyText h3{font-size:20px;line-height:1.2;letter-spacing:-.5px;margin:0 0 8px;color:#351329}
.storyText p{font-size:13px;line-height:1.5;margin:0;color:#675561}
.storyNavigation{display:flex;align-items:center;justify-content:center;gap:12px;margin:8px 0}
.storyNavigation>button{border:1px solid #e4ccdc!important;background:#fff8fc!important;color:#7a1d5e!important;width:36px;height:36px;min-height:36px;padding:0;border-radius:50%;font-size:18px;box-shadow:none!important}
.storyDots{display:flex;align-items:center}
.storyDots button{background:transparent!important;border:0!important;box-shadow:none!important;padding:0;width:30px;height:36px;min-height:36px;display:grid;place-items:center}
.storyDots span{width:6px;height:6px;border-radius:9px;background:#d8bdcf;transition:width .2s}
.storyDots [aria-pressed="true"] span{width:22px;background:#7a1d5e}
.storyNavigation button:focus-visible,.welcomeConsent a:focus-visible{outline:3px solid #af438c;outline-offset:3px}
#modal[data-auth-screen="welcome"] .authWelcomeActions{margin-top:8px;gap:0}
.welcomeConsent{font-size:11px;line-height:1.6;text-align:center;color:#675561;max-width:360px;margin:0 auto 14px}
.welcomeConsent a{color:#7a1d5e;text-decoration:underline;text-underline-offset:3px;font-weight:600}
#modal[data-auth-screen="welcome"] #beginPhone{min-height:52px;border-radius:18px;background:linear-gradient(125deg,#972b76,#6b174f)!important;box-shadow:0 10px 24px #7a1d5e26!important}
#modal[data-auth-screen="welcome"] .welcomeLogin{margin:12px 0 0;font-size:12px}
@media(max-width:600px){
 #modal[data-auth-screen="welcome"] .phoneScreen{padding:12px 24px max(20px,env(safe-area-inset-bottom));min-height:100dvh}
 #modal[data-auth-screen="welcome"] .phoneTop{margin-bottom:8px;min-height:30px}
 #modal[data-auth-screen="welcome"] .storyWelcome h2{font-size:30px}
 #modal[data-auth-screen="welcome"] .phoneTagline{font-size:16px;margin-top:10px}
 .storyArt{height:clamp(180px,27dvh,250px);margin-top:6px}
 .storyText h3{font-size:21px}.storyText{min-height:76px}.storyText p{font-size:13px}
 .welcomeConsent{font-size:11px;max-width:315px}
 #modal[data-auth-screen="welcome"] .authWelcomeActions{padding-top:8px;margin-top:auto}
}
@media(max-height:700px){#modal[data-auth-screen="welcome"] .welcomeEyebrow{display:none}.storyArt{height:155px}#modal[data-auth-screen="welcome"] .phoneTagline{font-size:14px;margin:8px 0 0}.storyText{min-height:62px}.storyText h3{font-size:18px}.storyText p{font-size:12px}.storyNavigation{margin:4px 0}.welcomeConsent{margin-bottom:8px}#modal[data-auth-screen="welcome"] .phoneScreen{overflow-y:auto;justify-content:flex-start}#modal[data-auth-screen="welcome"] .phoneWelcome.storyWelcome{flex:none}}
@media(prefers-reduced-motion:reduce){.storyDots span{transition:none}}

/* Calm welcome: one message and one primary action. Stories are optional. */
#modal[data-auth-screen="welcome"]{max-width:520px!important;width:calc(100% - 32px)!important;background:#fffcfe!important}
#modal[data-auth-screen="welcome"]::before,#modal[data-auth-screen="welcome"]::after,#modal[data-auth-screen="welcome"] .phoneScreen::before,#modal[data-auth-screen="welcome"] .phoneScreen::after{display:none!important}
#modal[data-auth-screen="welcome"] .authLayout{display:block!important;background:#fffcfe!important}
#modal[data-auth-screen="welcome"] .authBrand,#modal[data-auth-screen="welcome"] .welcomeEyebrow{display:none!important}
#modal[data-auth-screen="welcome"] .phoneScreen{background:#fffcfe!important;min-height:700px;padding:28px 38px!important}
/* The welcome heading is the sole top-level brand; no repeated corner logo. */
#modal[data-auth-screen="welcome"] .phoneTop{display:none!important}
#modal[data-auth-screen="welcome"] .authMobileBrand{display:flex!important}
#modal[data-auth-screen="welcome"] .storyWelcome h2{font-size:30px;letter-spacing:-1px}
#modal[data-auth-screen="welcome"] .phoneTagline{font-size:16px;margin-top:14px}
#modal[data-auth-screen="welcome"] .storyArt{height:240px;margin:20px auto 0;max-width:310px}
#modal[data-auth-screen="welcome"][data-exploring="false"] .storyText,#modal[data-auth-screen="welcome"][data-exploring="false"] .storyNavigation{display:none!important}
.welcomeExplore{margin:8px auto 16px!important;font-size:13px!important;min-height:40px;display:block}
#modal[data-auth-screen="welcome"] .welcomeConsent{font-size:11px;max-width:320px;color:#766671}
#modal[data-auth-screen="welcome"] #beginPhone{box-shadow:none!important}
#modal[data-auth-screen="welcome"] .authWelcomeActions{margin-top:20px}
#modal[data-auth-screen="welcome"][data-exploring="true"] .storyArt{height:180px;margin-top:10px}
@media(max-width:600px){#modal[data-auth-screen="welcome"]{width:100%!important;max-width:none!important}#modal[data-auth-screen="welcome"] .phoneScreen{min-height:100dvh;padding:24px 28px!important}#modal[data-auth-screen="welcome"] .phoneTop{margin-bottom:24px}#modal[data-auth-screen="welcome"] .authWelcomeActions{margin-top:auto}#modal[data-auth-screen="welcome"] .storyArt{height:clamp(180px,28dvh,250px)}}
@media(max-height:700px){#modal[data-auth-screen="welcome"] .phoneScreen{min-height:100dvh;padding:16px 24px!important}#modal[data-auth-screen="welcome"] .phoneTop{margin-bottom:14px}#modal[data-auth-screen="welcome"] .storyArt{height:170px;margin-top:8px}#modal[data-auth-screen="welcome"] .welcomeExplore{margin:0 auto 8px!important}#modal[data-auth-screen="welcome"] .authWelcomeActions{margin-top:8px}}

/* Registration reference flow: Faymoo colours, readable forms, keyboard-safe scrolling. */
#modal.authReference:not([data-auth-screen=welcome]){max-width:560px;width:calc(100% - 32px);background:#fff9fd}
#modal.authReference:not([data-auth-screen=welcome]) .authLayout{display:block;background:#fff9fd}
#modal.authReference:not([data-auth-screen=welcome]) .authBrand{display:none}
#modal.authReference:not([data-auth-screen=welcome]) .phoneScreen{background:#fff9fd;padding:28px;min-height:660px;overflow:auto}
#modal.authReference:not([data-auth-screen=welcome]) .phoneScreen:before,
#modal.authReference:not([data-auth-screen=welcome]) .phoneScreen:after{display:none}
#modal.authReference .phoneTop{display:flex;justify-content:space-between;margin-bottom:36px}
#modal.authReference .authMobileBrand{display:flex;color:#870e66}
#modal.authReference .phoneScreen h2{font-size:30px;line-height:1.18;letter-spacing:-.6px;color:#291822}
#modal.authReference .phoneIntro{font-size:16px;line-height:1.5;margin-bottom:32px;color:#62515d}
#modal.authReference .authScreenIcon,#modal.authReference .phoneScreen>.authEyebrow{display:none}
#modal.authReference .authField{margin:0 0 22px}
#modal.authReference .authField label{display:block;font-size:14px;font-weight:500;margin-bottom:9px;color:#62515d}
#modal.authReference input:not([type=checkbox]),#modal.authReference select{box-sizing:border-box;width:100%;min-width:0;height:58px;border:1px solid #870e66;border-radius:12px;background:transparent;padding:14px 16px;color:#291822;font:inherit;font-size:16px}
#modal.authReference input:focus,#modal.authReference select:focus{outline:2px solid #870e6650;outline-offset:3px}
#modal.authReference .phoneRow{display:grid;grid-template-columns:84px minmax(0,1fr);gap:10px}
#modal.authReference .phoneRow>div{min-width:0}
#modal.authReference .passwordRow{position:relative}
#modal.authReference .passwordRow input{padding-right:68px}
#modal.authReference .passwordToggle{position:absolute;right:4px;top:6px;min-height:46px;border:0;background:transparent;color:#870e66;padding:10px;font-size:13px}
#modal.authReference .registrationPair{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#modal.authReference .primary{width:100%;border-radius:12px;background:#870e66;box-shadow:none;min-height:54px}
#modal.authReference .primary:disabled{opacity:.4}
#modal.authReference .registrationConsent{display:flex;gap:10px;font-size:12px;line-height:1.5;margin:16px 0}
#modal.authReference .registrationConsent input{width:18px;height:18px;flex:none;accent-color:#870e66}
#modal.authReference .registrationConsent a{color:#870e66}
#modal.authReference .registrationSuccess{margin:56px auto 24px;background:#f4deed;color:#870e66;width:88px;height:88px;border-radius:50%;display:grid;place-items:center;font-size:48px}
#modal.authReference[data-auth-screen=success] h2,#modal.authReference[data-auth-screen=success] .phoneIntro{text-align:center}
#modal.authReference #smsCode{font-size:28px;text-align:center;letter-spacing:.55em;padding-left:1em;height:66px;font-variant-numeric:tabular-nums}
#modal.authReference #passwordLogin{display:flex;flex-direction:column;flex:1}
#modal.authReference #loginContinue{margin-top:auto}
#modal.authReference #forgotPassword{align-self:flex-start;margin:0 0 16px;padding-left:0}
#modal.authReference .authSwitch{text-align:center;margin:18px 0 0}
@media(max-width:600px){
 #modal.phoneAuth.authReference:not([data-auth-screen=welcome]){width:100%;max-width:none;height:var(--visible-height,100dvh);max-height:var(--visible-height,100dvh)}
 #modal.authReference:not([data-auth-screen=welcome]) .phoneScreen{padding:calc(22px + env(safe-area-inset-top)) 20px calc(22px + env(safe-area-inset-bottom));min-height:100%;height:auto}
 #modal.authReference .phoneScreen h2{font-size:27px}
 #modal.authReference .phoneTop{margin-bottom:28px}
}
@media(max-height:650px){#modal.authReference #loginContinue{margin-top:24px}#modal.authReference .phoneTop{margin-bottom:16px}}
