/* Shared document scrolling and mobile shell; independent of page content. */
/* Intrinsic image dimensions reserve space; CSS keeps the header logo proportional. */
#kt_header .header-top a>img{width:auto;height:60px;max-width:100%;object-fit:contain}
#kt_header_mobile>a img{width:auto;height:30px;max-width:160px;object-fit:contain}
body:has(#kt_login.login-3) #kt_login{min-height:100vh;min-height:100dvh;height:auto!important;overflow:visible!important}
#kt_login.login-3 .register-maritime-image{background-size:cover;background-position:center;min-height:360px}
#kt_login.login-3 .login-content{height:auto!important;max-height:none!important;overflow:visible!important;padding-bottom:32px!important}
/* Login remains a full-height split screen; registration keeps natural document flow. */
@media(min-width:992px){
 body:has(#kt_login.login-1) #kt_login{min-height:100vh;min-height:100dvh}
 body:has(#kt_login.login-1) .login-content>.flex-center{flex:1 0 auto!important;align-items:center!important}
}
/* Keep the desktop header in document flow: scroll must not change page height. */
@media(min-width:992px){
 body#kt_body #kt_header{position:relative!important;top:auto!important;height:auto!important;animation:none!important;transition:none!important}
 body#kt_body #kt_header .header-bottom{display:flex!important}
 body#kt_body #kt_wrapper{padding-top:0!important}
 body#kt_body #kt_content{padding-top:0!important}
}
html{overscroll-behavior-y:none}
html:has(#kt_login),body#kt_body:has(#kt_login){height:auto!important;overflow-y:auto!important;overflow-x:clip;max-height:none!important}
body:has(#kt_login)>.flex-root{display:block!important;height:auto!important;min-height:100vh;overflow:visible!important}
body:has(#kt_login) .login-content>.flex-center{flex:0 0 auto!important;align-items:flex-start!important;height:auto!important;overflow:visible!important}
html{height:auto;min-height:100%;scroll-padding-top:80px}
body#kt_body{height:auto;min-height:100vh;min-height:100dvh;margin-bottom:0}
body#kt_body>.flex-root{flex:1 0 auto;min-width:0}
#kt_wrapper,#kt_content{min-width:0}
.account-entry{align-self:center;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:10px 16px!important;border-radius:7px;white-space:nowrap;line-height:20px}
@media(max-width:991.98px){
 #kt_header_mobile{position:sticky!important;top:0;flex-shrink:0;height:auto;min-height:56px;padding:10px 16px;z-index:1001}
 #kt_header_mobile>a{margin-right:12px!important;min-width:0}
 #kt_header_mobile>a img{max-width:160px;width:100%;height:auto}
 #kt_header_mobile .burger-icon{min-width:32px;min-height:40px}
 #kt_wrapper{padding-top:0!important}
 #kt_content{padding-top:16px!important;padding-bottom:24px!important}
 #kt_content>.container-fluid{padding-left:12px;padding-right:12px}
 #kt_content main.container,#kt_content #market.container{padding-left:0;padding-right:0}
 #market .filter-toggle{position:static;z-index:auto}
 #market #kt_profile_aside{position:static!important;left:auto!important;top:auto!important;transform:none!important;height:auto!important;overflow:visible!important;z-index:auto!important}
 body:has(#kt_login) #kt_login{height:auto!important;min-height:100dvh;overflow:visible!important}
 body:has(#kt_login) .login-content,body:has(#kt_login) .login-form{height:auto!important;max-height:none!important;overflow:visible!important}
 body:has(#kt_login) .login-content{justify-content:flex-start!important;padding:24px 20px calc(32px + env(safe-area-inset-bottom))!important}
 body:has(#kt_login) .login-aside{min-height:0!important;height:auto!important}
 body:has(#kt_login) #kt_login{display:block!important}
 body:has(#kt_login) .aside-img-wizard{display:none!important}
 body:has(#kt_login) .login-content{display:block!important;flex:none!important}
 body:has(#kt_login.login-3) .login-aside .flex-column-fluid{display:none!important}
 #kt_login.login-1 .login-welcome{display:flex!important;flex:0 0 auto;margin-top:24px}
 #kt_login.login-1 .login-welcome h3{font-size:22px;line-height:1.35;margin-bottom:10px!important}
 #kt_login.login-1 .login-welcome p{font-size:13px;line-height:1.6;margin-bottom:0}
 body:has(#kt_login) .login-logo img{max-height:64px!important}
 body:has(#kt_login) .login-form{width:100%!important;max-width:500px!important;margin:auto}
}
