/* 문제: 회원 대화가 lounge.html 전체면·기기별 안 맞음 /
   이유: 사령관 — 팝업형 · 기기 자동맞춤 · 크기조절 /
   수정: 고정 팝업 셸 + 맞춤·리사이즈 */
.mcc-pop-shell {
  position: fixed;
  z-index: 40000;
  display: flex;
  flex-direction: column;
  background: #f4f5f7;
  color: #1c1f24;
  border: 1px solid #d8dbe2;
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(28, 31, 36, 0.18);
  overflow: hidden;
  min-width: 280px;
  min-height: 360px;
  max-width: 100vw;
  max-height: 100dvh;
  max-height: 100vh;
}
.mcc-pop-shell[data-lane="commander"] {
  border-color: #9aa3b2;
}
.mcc-pop-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px;
  flex-shrink: 0;
  background: #eceef2;
  border-bottom: 1px solid #d8dbe2;
  cursor: move;
  user-select: none;
  -webkit-app-region: drag;
}
.mcc-pop-title {
  font-size: 12px;
  font-weight: 600;
  color: #5c6370;
  margin-right: auto;
}
.mcc-pop-chrome button {
  -webkit-app-region: no-drag;
  border: 0;
  background: transparent;
  color: #1c1f24;
  font: inherit;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
}
.mcc-pop-chrome button:hover {
  background: rgba(0, 0, 0, 0.06);
}
.mcc-pop-body {
  position: relative;
  flex: 1;
  min-height: 0;
}
.mcc-pop-dim {
  position: fixed;
  inset: 0;
  z-index: 39999;
  background: rgba(8, 12, 18, 0.48);
}
.mcc-pop-body #wbpc-member-cursor-chat,
.mcc-pop-body #wbpc-member-cursor-chat.mcc-open {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1;
  display: flex !important;
  pointer-events: auto;
  width: 100%;
  height: 100%;
}
.mcc-pop-shell[data-fill="1"] .mcc-pop-resize {
  display: none;
}
.mcc-pop-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  cursor: nwse-resize;
  background: linear-gradient(135deg, transparent 50%, #9aa3b2 50%);
  z-index: 5;
}
@media (max-width: 1024px) {
  .mcc-pop-shell {
    border-radius: 0;
    left: var(--app-left, 0px) !important;
    top: var(--app-top, 0px) !important;
    width: var(--app-w, 100dvw) !important;
    height: var(--app-h, 100dvh) !important;
    max-width: var(--app-w, 100dvw);
    max-height: var(--app-h, 100dvh);
  }
  .mcc-pop-resize {
    display: none;
  }
  .mcc-pop-shell .mcc-preview {
    display: none;
  }
}
html.wbpc-chat-standalone,
body.lounge-member-shell {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #f4f5f7;
}
html.wbpc-chat-standalone body,
body.wbpc-chat-standalone {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #f4f5f7;
}
body.lounge-member-shell .soft-public-nav,
body.lounge-member-shell .dh-nav,
body.lounge-member-shell header:not(.mcc-top),
body.wbpc-chat-standalone .soft-public-nav,
body.wbpc-chat-standalone .dh-nav,
body.wbpc-chat-standalone header:not(.mcc-top) {
  display: none !important;
}
body.lounge-member-shell header.mcc-top,
body.wbpc-chat-standalone header.mcc-top {
  display: block;
}
#djetora-cursor-host {
  position: fixed;
  inset: 0;
  z-index: 1;
}
html.mcc-compact #djetora-cursor-host {
  inset: auto;
  box-sizing: border-box;
  width: var(--app-w, 100%);
  max-width: 100%;
  overflow-x: hidden;
}
.mcc-pop-shell[data-fill="1"] {
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0;
  box-shadow: none;
  border: 0;
}
@media (max-width: 1024px) {
  #djetora-cursor-host {
    box-sizing: border-box;
    width: var(--app-w, 100%);
    max-width: 100%;
    overflow-x: hidden;
  }
}
