/* One visible-viewport owner for phone messenger and room; no page-scroll focus fixes. */
body.ed61-phone.ed61-keyboard #academicsFooter,
body.ed61-phone.ed61-keyboard #academicsTopbar,
body.ed61-phone.ed61-keyboard .w50-header,
body.ed61-phone.ed61-keyboard #footer{display:none!important}
body.ed61-keyboard #edRoom{position:fixed!important;top:var(--ed61-room-top)!important;left:8px!important;right:8px!important;width:auto!important;height:var(--ed61-room-height)!important;max-width:none!important;margin:0!important;z-index:900}
body.ed61-keyboard #edRoom:has(.ed-room-chat)>.ed-room-head,
body.ed61-keyboard #edRoom:has(.ed-room-chat)>.ed-room-identity,
body.ed61-keyboard #edRoom:has(.ed-room-chat)>.ed-room-nav{display:none!important}
#essaydewMessenger[data-ed61-child]{position:relative!important;inset:auto!important;width:100%!important;height:100%!important;min-height:0!important}
#essaydewMessenger[data-ed61-phone][data-ed61-phone]{position:fixed!important;top:var(--ed-phone-top)!important;left:0!important;right:0!important;bottom:auto!important;width:auto!important;max-width:none!important;height:var(--ed-phone-height)!important;min-height:0!important;margin:0!important;overflow:hidden!important;z-index:60!important}
#essaydewMessenger[data-ed61-phone][data-ed61-phone] .ed-msg__app{position:relative!important;display:block!important;inset:auto!important;width:100%!important;height:100%!important;min-height:0!important;border:0!important;border-radius:0!important;overflow:hidden!important}
#essaydewMessenger[data-ed61-phone][data-ed61-phone] :is(.ed-msg__inbox,.ed-msg__conversation){position:absolute!important;inset:0!important;height:100%!important;min-height:0!important;overflow:hidden!important}
#essaydewMessenger[data-ed61-phone][data-ed61-phone] .ed-msg__chat,
#essaydewMessenger[data-ed61-child] .ed-msg__chat{display:flex!important;flex-direction:column!important;height:100%!important;min-height:0!important;overflow:hidden!important}
#essaydewMessenger[data-ed61-phone][data-ed61-phone] .ed-msg__messages,
#essaydewMessenger[data-ed61-child] .ed-msg__messages{flex:1 1 0!important;height:0!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain}
#essaydewMessenger[data-ed61-phone][data-ed61-phone] .ed-msg__composer,
#essaydewMessenger[data-ed61-child] .ed-msg__composer{position:relative!important;inset:auto!important;flex:0 0 auto!important;transform:none!important;margin:0!important}
#essaydewMessenger[data-ed61-phone][data-ed61-phone] #edMsgInput,
#essaydewMessenger[data-ed61-child] #edMsgInput{font-size:16px!important}
#essaydewMessenger[data-ed61-phone][data-ed61-phone].ed-keyboard-open .ed-msg__composer,
#essaydewMessenger[data-ed61-child].ed-keyboard-open .ed-msg__composer{padding-bottom:6px!important}
body.ed61-room .ed-room-overlay>section{max-height:100%}
@media(max-width:767px),(pointer:coarse) and (max-height:500px){
 body.ed61-room #edRoom{padding:10px;border-radius:16px}
 body.ed61-room #edRoom h1{font-size:20px;margin:7px 0 4px}
 body.ed61-room #edRoom>.ed-room-identity p{margin-bottom:6px}
 body.ed61-room #edRoom>.ed-room-nav{margin-bottom:8px}
 body.ed61-room #edRoom>.ed-room-nav a{min-height:40px}
 #essaydewMessenger[data-ed61-phone][data-ed61-phone] .ed-msg__mobileBar{display:none!important}
 #essaydewMessenger[data-ed61-phone][data-ed61-phone] .ed-msg__inbox{display:flex!important;flex-direction:column!important}
 #essaydewMessenger[data-ed61-phone][data-ed61-phone] .ed-msg__conversationList{flex:1 1 0!important;min-height:0!important;overflow:auto!important}
 #essaydewMessenger[data-ed61-phone][data-ed61-phone]:not(.is-chat-open) .ed-msg__conversation{display:none!important}
 #essaydewMessenger[data-ed61-phone][data-ed61-phone].is-chat-open:not([data-embedded="1"]) .ed-msg__inbox{display:none!important}
}
