/* V2.3 — Preserve the established V1 visitor Messenger geometry. Only data, friendships
   and live-media panes differ between a visitor and a registered member. */
.world-v2-window.messenger-window .window-body,
.world-v2-window.msn-chat-window .window-body{
  display:flex!important;flex-direction:column!important;min-height:0!important;
  overflow:hidden!important;padding:0!important;
}
.world-v2-window .msn-real.world-msn-roster,
.world-v2-window .msn-chat-real.world-msn-chat{
  width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;
  flex:1 1 0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;
}
.world-v2-window .msn-real.world-msn-roster .msn-contact-list{
  flex:1 1 0!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain;
  border:1px solid #b6cbe1;background:#fff;padding:5px 0;margin:0 10px 10px;
}
.world-v2-window .msn-real.world-msn-roster .msn-brand-footer{flex:0 0 auto!important;margin:0 12px 10px}
.world-v2-window .msn-real.world-msn-roster .msn-card-profile,
.world-v2-window .msn-real.world-msn-roster .msn-topbar,
.world-v2-window .msn-real.world-msn-roster .msn-real-header{flex:none!important}
/* All history scrolling stays within this one pane. Top toolbar, photo column,
   Wizz/emoticon controls, composer and typing-status always stay in view. */
.world-v2-window .world-msn-chat .msn-chat-address.world-chat-title{flex:0 0 auto!important}
.world-v2-window .world-msn-chat .msn-chat-toolbar.world-chat-toolbar{flex:0 0 auto!important;overflow-x:auto!important;overflow-y:hidden!important}
.world-v2-window .world-msn-chat .msn-chat-shell.world-chat-columns{
  display:flex!important;flex:1 1 0!important;min-height:0!important;max-height:none!important;
  overflow:hidden!important;gap:12px!important;padding:10px 12px 0!important;
}
.world-v2-window .world-msn-chat .msn-chat-main.world-chat-left{
  display:flex!important;flex-direction:column!important;flex:1 1 0!important;
  min-width:0!important;min-height:0!important;max-height:none!important;overflow:hidden!important;
}
.world-v2-window .world-msn-chat .msn-chat-log.world-chat-log{
  display:block!important;flex:1 1 0!important;min-height:0!important;max-height:none!important;
  overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;
  margin:0!important;padding:12px!important;scrollbar-width:thin;
  border:1px solid #aebfd5;border-radius:12px;background:#fff;
}
.world-v2-window .world-msn-chat .msn-chat-formatbar.world-chat-format{flex:0 0 auto!important;padding:7px 0!important;min-height:37px!important}
.world-v2-window .world-msn-chat .msn-message-form.world-chat-form{display:block!important;flex:0 0 102px!important;min-height:0!important;height:102px!important;overflow:hidden!important}
.world-v2-window .world-msn-chat .msn-chat-inputrow{display:flex!important;min-height:0!important;height:100%!important;gap:8px!important}
.world-v2-window .world-msn-chat .msn-chat-inputrow textarea{
  display:block!important;min-width:0!important;min-height:0!important;height:100%!important;
  flex:1 1 auto!important;resize:none!important;overflow-y:auto!important;
}
.world-v2-window .world-msn-chat .msn-chat-inputrow button{display:block!important;flex:0 0 76px!important;align-self:flex-end!important;margin:0!important}
.world-v2-window .world-msn-chat .msn-typing.world-chat-status{
  flex:0 0 auto!important;margin:8px 12px 10px!important;min-height:28px!important;
  max-height:44px!important;overflow:hidden!important;
}
/* Historical V1 visitor placement: contact photo at top, own photo at bottom. */
.world-v2-window .world-msn-chat .msn-chat-sidebar.world-chat-side{
  display:flex!important;flex-direction:column!important;flex:0 0 176px!important;
  width:176px!important;min-height:0!important;max-height:none!important;
  align-self:stretch!important;justify-content:space-between!important;
  gap:12px!important;padding:30px 0 18px!important;
  overflow:hidden!important;
}
.world-v2-window .world-msn-chat .msn-sidebar-top,
.world-v2-window .world-msn-chat .msn-sidebar-bottom{
  flex:0 0 155px!important;height:155px!important;min-height:0!important;max-height:155px!important;
  border:1px solid #b6cbe1!important;border-radius:12px!important;
  padding:8px!important;display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:center!important;gap:5px!important;
}
.world-v2-window .world-msn-chat .world-person-video.msn-display-card{
  position:relative!important;width:118px!important;height:118px!important;
  flex:0 0 118px!important;min-width:118px!important;min-height:118px!important;
  border-radius:9px!important;overflow:hidden!important;background:#fff!important;
}
.world-v2-window .world-msn-chat .msn-avatar-caption{display:block!important;font-size:10px;line-height:1.2;text-align:center;max-width:152px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.world-v2-window .world-msn-chat .world-person-video>.world-picture,
.world-v2-window .world-msn-chat .world-person-video>video{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important}
.world-v2-window .world-msn-chat .world-person-video.camera-on>video{display:block!important}
.world-v2-window .world-msn-chat .world-person-video.camera-on>.world-picture{display:none!important}
.world-v2-window .world-msn-chat .world-call-controls{
  flex:0 0 auto!important;display:flex;position:absolute;right:8px;top:50%;
  transform:translateY(-50%);padding:4px;border:1px solid #a9c5df;
  border-radius:5px;background:#f7fbff;box-shadow:0 2px 8px #253f5f33;z-index:2;
}
.world-v2-window .world-msn-chat .world-call-controls[hidden]{display:none!important}
/* Same V1 message appearance (no further modern chat-card redesign). */
.world-v2-window .world-msn-chat .msn-message{
  padding:7px 10px!important;margin:0 0 14px!important;border-radius:10px!important;
  background:#f3f7fc!important;border:1px solid #dae6f3!important;
}
.world-v2-window .world-msn-chat .msn-message.received{background:#fffceb!important;border-color:#efe5b4!important}
.world-v2-window .world-msn-chat .msn-message strong{font-size:10px!important;letter-spacing:.02em!important;text-transform:uppercase!important;color:#2a4f79!important}
.world-v2-window .world-msn-chat .msn-message.own strong{color:#277a3a!important}
.world-v2-window .world-msn-chat .msn-message p{margin:5px 0 0!important;line-height:1.45!important;overflow-wrap:anywhere}
@media(max-width:700px){
  .world-v2-window .world-msn-chat .msn-chat-shell.world-chat-columns{padding:6px!important;gap:6px!important}
  .world-v2-window .world-msn-chat .msn-chat-sidebar.world-chat-side{
    width:86px!important;flex-basis:86px!important;padding:10px 0 8px!important;gap:7px!important;
  }
  .world-v2-window .world-msn-chat .msn-sidebar-top,
  .world-v2-window .world-msn-chat .msn-sidebar-bottom{
    flex:0 0 112px!important;height:112px!important;max-height:112px!important;padding:4px!important;border-radius:5px!important;
  }
  .world-v2-window .world-msn-chat .world-person-video.msn-display-card{
    width:70px!important;height:72px!important;flex-basis:72px!important;min-width:70px!important;min-height:72px!important;border-radius:3px!important;
  }
  .world-v2-window .world-msn-chat .msn-avatar-caption{font-size:9px!important;max-width:78px!important}
  .world-v2-window .world-msn-chat .msn-chat-inputrow{display:flex!important}
  .world-v2-window .world-msn-chat .msn-chat-inputrow button{display:block!important;width:50px!important;flex-basis:50px!important}
  .world-v2-window .world-msn-chat .msn-message-form.world-chat-form{height:92px!important;flex-basis:92px!important}
  .world-v2-window .world-msn-chat .world-call-controls{right:2px;max-width:92px;flex-wrap:wrap}
  .world-v2-window .world-msn-chat .msn-chat-toolbar.world-chat-toolbar .msn-toolbar-btn{min-width:47px!important;padding:5px 4px!important}
  .world-v2-window .world-msn-chat .msn-chat-toolbar.world-chat-toolbar .msn-toolbar-btn svg{width:20px!important;height:20px!important}
}
@media(max-height:600px){
  .world-v2-window .world-msn-chat .msn-chat-sidebar.world-chat-side{padding:7px 0!important}
  .world-v2-window .world-msn-chat .msn-sidebar-top,
  .world-v2-window .world-msn-chat .msn-sidebar-bottom{flex-basis:104px!important;height:104px!important;max-height:104px!important}
  .world-v2-window .world-msn-chat .world-person-video.msn-display-card{height:72px!important;width:72px!important;flex-basis:72px!important;min-width:72px!important;min-height:72px!important}
}
