.guest-header-auth{display:flex;align-items:center;gap:10px;white-space:nowrap}
.guest-header-auth a{font-size:16px;font-weight:400;line-height:1.2;color:#74273f;padding:9px 14px;border:1px solid #e6cbd6;border-radius:20px}
.guest-header-auth a:last-child{background:#ed326b;color:#fff;border-color:#ed326b}
.registration-header img{width:240px;height:auto;max-height:none;max-width:calc(100vw - 112px);object-fit:contain}
.registration-header>a:first-child{min-width:0;flex-shrink:1}
.registration-header .registration-login{flex-shrink:0}
/* Tighten only the empty vertical space around the registration wordmark. */
.registration-header>a:first-child{display:flex;align-items:flex-start;height:79px;overflow:hidden}
.registration-header>a:first-child img{margin-top:-6px}
header:has(.guest-header-auth) .desktop a[href="/login"]{display:none}
@media(min-width:701px){.profiles-heading h1{font-size:20px;font-weight:400}.profiles-heading{margin-bottom:10px}.profiles-main .filter-summary{margin:10px 0 16px}}
@media(max-width:700px){
 header .brand:has(.guest-brand-picture){width:44px}
 header .brand .guest-brand-picture img{width:44px;height:52px;object-fit:contain}
 .guest-header-auth{display:flex;align-items:center;justify-content:center;flex:1;gap:8px;margin:0;white-space:nowrap}
 .guest-header-auth a{font-size:14px;line-height:1.2;color:#74273f;padding:9px 10px;border:1px solid #e6cbd6;border-radius:20px}
 .guest-header-auth a:last-child{background:#ed326b;color:#fff;border-color:#ed326b}
 .guest-header-auth~.header-menu{margin-left:0}
 header .top{gap:8px}
 main.profiles-main{margin-top:10px;padding-top:0}
 .profiles-main .profiles-heading{margin-bottom:8px}
 .profiles-main .profiles-heading h1{font-size:19px;font-weight:400;line-height:1.3}
 .profiles-main .filter-summary{margin:8px 0 12px;padding-bottom:0}
 .profiles-main .filter-open{padding:10px 16px}
 .profiles-main .filter-status{margin:6px 0}
 .auth-brand{position:static;width:190px;margin:0 0 10px}
 .auth-brand img{width:100%;height:auto}
 .auth-layout{display:flex;flex-direction:column;min-height:100svh}
 .auth-main{order:1;display:flex;flex:1;align-items:center;padding:20px 20px 24px}
 .auth-form-wrap{max-width:none}
 .auth-form-wrap h1{margin:0 0 10px;font-size:22px}
 .auth-profile-notice{font-size:13px;line-height:1.35;margin:0 0 10px}
 .auth-field{margin-bottom:10px;min-height:44px}
 .auth-field input{padding-top:11px;padding-bottom:11px}
 .auth-help{font-size:12px;margin:0 0 12px}
 .auth-actions{gap:12px;flex-wrap:nowrap}
 .auth-submit{min-width:0;padding:13px 24px}
 .auth-actions a{font-size:14px}
 .auth-aside{order:0;padding:16px 20px 18px}
 .auth-aside-content{max-width:none;margin:0}
 .auth-aside h2{font-size:20px;line-height:1.3;margin-bottom:10px}
 .auth-aside p{font-size:14px;line-height:1.4;margin-bottom:8px}
 .auth-close{display:none}
 .auth-main{position:static}
 .registration-header .guest-brand-picture img{width:44px;height:52px;object-fit:contain}
}
@media(max-width:700px) and (max-height:620px){.auth-aside{padding:6px 16px 8px}.auth-brand{width:135px;margin-bottom:3px}.auth-aside h2{font-size:17px;margin-bottom:5px}.auth-aside p{font-size:12px;line-height:1.25;margin-bottom:4px}.auth-main{padding:10px 16px 14px}.auth-help{margin-bottom:8px}.auth-field{margin-bottom:8px}}

/* Keep the last owner action above the fixed mobile navigation. */
@media(max-width:700px){body:not(.messenger-page)>.account-shell>main:has(.profile-owner-edit-bottom){padding-bottom:calc(90px + env(safe-area-inset-bottom,0px))}.profile-owner-edit-bottom{min-height:44px;text-align:center}}

/* Keep mobile balance content close to its footer. */
@media(max-width:700px){body:not(.messenger-page)>.account-shell.with-cabinet>main.balance-page{padding-bottom:0}.balance-page .balance-method:last-child{padding-bottom:8px}.balance-page [data-demo-topup] button{min-height:44px;scroll-margin-bottom:100px}}

/* Give guest sign-in a little more room alongside registration. */
.guest-header-auth a[href="/login"]{min-width:90px;box-sizing:border-box;text-align:center}
@media(max-width:700px){.guest-header-auth a[href="/login"]{min-width:82px}}

/* Keep the footer close to the content throughout the mobile cabinet. */
@media(max-width:700px){
 body:not(.messenger-page)>.account-shell.with-cabinet>main{padding-bottom:0}
 .account-shell.with-cabinet + .site-age-footer.sponsa-footer{margin-top:12px}
}

@media(max-width:700px){
 body:not(.messenger-page) > .site-age-footer:has(~ .mobile-nav){
  padding-bottom:calc(28px + 56px + env(safe-area-inset-bottom,0px));
 }
}
