/* 상담사/전문가 페이지 확대/축소 방지 */
body:not(.customer-page) {
	zoom: 1 !important;
	-ms-zoom: 1 !important;
	-webkit-zoom: 1 !important;
	transform: scale(1) !important;
	transform-origin: 0 0 !important;
	-moz-transform: scale(1) !important;
	-moz-transform-origin: 0 0 !important;
}

/* Noto Sans KR 폰트 정의 (오프라인 환경 지원) */
@font-face {
  font-family: 'Noto Sans KR';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: local('Noto Sans KR Light'),
       url('../fonts/NotoSansKR-Light.woff2') format('woff2'),
       url('../fonts/NotoSansKR-Light.woff') format('woff');
}

@font-face {
  font-family: 'Noto Sans KR';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Noto Sans KR Regular'),
       url('../fonts/NotoSansKR-Regular.woff2') format('woff2'),
       url('../fonts/NotoSansKR-Regular.woff') format('woff');
}

@font-face {
  font-family: 'Noto Sans KR';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local('Noto Sans KR Medium'),
       url('../fonts/NotoSansKR-Medium.woff2') format('woff2'),
       url('../fonts/NotoSansKR-Medium.woff') format('woff');
}

@font-face {
  font-family: 'Noto Sans KR';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Noto Sans KR SemiBold'),
       url('../fonts/NotoSansKR-SemiBold.woff2') format('woff2'),
       url('../fonts/NotoSansKR-SemiBold.woff') format('woff');
}

@font-face {
  font-family: 'Noto Sans KR';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Noto Sans KR Bold'),
       url('../fonts/NotoSansKR-Bold.woff2') format('woff2'),
       url('../fonts/NotoSansKR-Bold.woff') format('woff');
}

.container {
	display: flex;
	align-items: center;
}

.container>* {
	margin: 5px;
}

video {
	width: 100%;
	height: 100%;
  
	/* aspect-ratio: inherit; */
}

video.video_agent{
  z-index: 1;
  background-color: rgb(0, 0, 0);
  object-fit: cover;
}
video.video_customer{
  z-index: 2;
  background-color: rgb(49, 49, 49);
  object-fit: cover;
}

video.video_expert{
  z-index: 3;
  background-color: rgb(54 54 54);
  object-fit: cover;
}

.div_content{width: 100%; height: 100%; z-index: 7; background-color: rgb(54 54 54);}
.div_content_panel{
  z-index: 7;
}
#div_content_panel.cx-panel {
  z-index: 15; /* 화면공유 창이 최상위에 오도록 설정 (채팅창 10보다 높음) */
}
/* 모바일에서 화면공유 창이 최상위에 오도록 보장 */
@media (max-width: 768px) {
  #div_content_panel.cx-panel {
    z-index: 15 !important;
  }
  .div_content {
    z-index: 15 !important;
  }
}
.cx-panel .cx-move-resize .div_chat
{
  width: 100%; height: 100%; z-index: 5;
  display:flex; flex-direction:column;
}
/* 채팅 패널이 content div 위에 오도록 z-index 설정 */
#div_chat.cx-panel {
  z-index: 20;
  padding:0.3%;
  background-color: #f1f1f1d0;
}

/* 고객 페이지에서 채팅 창을 최상위로 */
body.customer-page #div_chat.cx-panel {
  z-index: 20 !important;
}

/* customer.html 채팅창 투명도 조정 (기본값, JavaScript로 동적 조절 가능) */
body.customer-page #div_chat.cx-panel {
  background-color: rgba(241, 241, 241, 0.12); /* 전체 배경 약간 투명 (40% * 0.3) */
}

/* customer.html 채팅 메시지 영역만 더 투명하게 (비디오가 잘 보이도록) */
body.customer-page .chat__body {
  background: rgba(240, 242, 245, 0.16) !important; /* 메시지 영역만 더 투명 (40% * 0.4) */
}

/* customer.html 채팅 헤더와 입력창은 불투명하게 유지 */
body.customer-page .chat__header {
  background: rgba(241, 241, 241, 0.95) !important; /* 헤더는 거의 불투명 */
  backdrop-filter: blur(4px); /* 약간의 블러 효과로 가독성 향상 */
}

body.customer-page .chat_input_wrapper {
  background: rgba(241, 241, 241, 0.95) !important; /* 입력창 래퍼도 거의 불투명 */
  backdrop-filter: blur(4px);
}

body.customer-page .input_chat {
  background-color: rgba(232, 232, 232, 0.95) !important; /* 입력창도 거의 불투명 */
  backdrop-filter: blur(2px);
  padding-right: 60px !important; /* 이모티콘 버튼, 송신 버튼, 스크롤바 공간 확보 */
}

/* div_chat_wrapper가 cx-panel div_chat 안을 가득 채우도록 */
.div_chat_wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 2px;
  min-width: 0;
  min-height: 0;
}

.main {
	width: 100%;
	aspect-ratio: 3/2;
	/* max-height: 80vh; */
	grid-template-columns: 1fr 1fr 1fr;
	grid-template-rows: 40px 1fr 1fr 1fr 40px;
	gap: 10px;
	padding: 0 !important;
	margin: 0;
	box-sizing: border-box;
}

.device-setting {
	width: 100%;
	height: 30px;
	display: flex;
	flex-direction: row;
	align-items: center;
	margin-top: 5px;
	margin-bottom: 5px;
}

.device-volume-slider {
	height: 6px;
	border-radius: 3px;
	background: #e5e7eb;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.device-volume-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #2563eb;
	cursor: pointer;
}

.device-volume-slider::-moz-range-thumb {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #2563eb;
	cursor: pointer;
	border: none;
}

button {
	width: 72px;
	height: 30px;
	/* height: 28px; */
	font-size: 14px;
}

select {
	width: 100px;
	height: 30px;
	/* height: 28px; */
	font-size: 14px;
}

input {
	height: 24px;
}


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}



@import url("css/koino.theme.css");
/* ===== Waiting overlay/card (scoped & overrides koino.css) ===== */
#div_customer_waiting.waiting-overlay {
  /* 'container' makes display:flex, but inline style controls show/hide; when shown, we want a fixed overlay */
  position: fixed;
  inset: 0;
  z-index: 1000;
  /* allow our children to stack nicely even if parent is flex */
  align-items: center;
  justify-content: center;
}

#div_customer_waiting.waiting-overlay::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(2px);
}

/* Center card and neutralize .container>* margins */
#div_customer_waiting.waiting-overlay > .waiting-card {
  margin: 0; /* override .container>* { margin:5px } */
}

.waiting-card {
  position: relative;
  width: min(520px, 92vw);
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  padding: 40px 36px 28px;
  text-align: center;
}

.waiting-title {
  font-size: 28px;
  font-weight: 800;
  color: #111827;
  margin: 8px 0 18px;
}

.waiting-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px auto 14px;
  height: 120px;
}

.waiting-spinner .ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, #ffffff 79%, transparent 80% 100%),
    conic-gradient(#3b82f6 0% 30%, #e5edff 30% 100%);
  mask: radial-gradient(closest-side, transparent 65%, black 66%);
  animation: spin 1.2s linear infinite;
  box-shadow: inset 0 0 0 8px rgba(59,130,246,.08);
}
@keyframes spin { to { transform: rotate(1turn); } }


/* Override koino.css button defaults (width:72px; height:30px) only inside waiting card */
#div_customer_waiting.waiting-overlay #button_cancel {
  width: 100% !important;
  height: auto !important;
  padding: 16px !important;
  font-size: 16px !important;
  border-radius: 12px !important;
}

/* Visual style for the cancel button */
.waiting-cancel {
  background: #3b82f6;
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 0 rgba(59,130,246,0.3);
  transition: transform .02s ease, filter .15s ease;
}
.waiting-cancel:hover { filter: brightness(1.05); }
.waiting-cancel:active { transform: translateY(1px); box-shadow: 0 6px 0 rgba(59,130,246,0.3); }


/* === No-scroll initial fit for #div_main (scoped override) === */
html, body { height: 100%; margin: 0; }
#div_main.main {
  height: 100vh;           /* fill viewport vertically */
  max-height: 100vh;
  overflow: hidden;        /* hide accidental overflow from tracks/margins */
  box-sizing: border-box;
  padding: 0 1% 1% 1%;     /* 상단 패딩 제거 */
  background-color: #1f1f1f;
}
#div_main.main > * {       /* prevent intrinsic min-content overflow in grid children */
  min-width: 0;
  min-height: 0;
}
/* videos/content should not exceed grid cells */
#div_main.main video[name]{ width: 100%; height: 100%; }



/* ===== Customer Login - start ===== */

.customer-login-wrap {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1e3a8a 100%);
  position: relative;
  overflow: hidden;
}

.customer-login-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  animation: gradientShift 15s ease infinite;
}

.customer-login-card {
  width: min(480px, 90vw);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.5),
    0 10px 30px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.3) inset;
  position: relative;
  z-index: 1;
  animation: slideUp 0.6s ease-out;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.customer-login-header {
  text-align: center;
  margin-bottom: 40px;
}

.customer-login-title {
  color: #1a1a1a;
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 8px 0;
  letter-spacing: -0.8px;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1e3a8a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.customer-login-subtitle {
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.5px;
}

.customer-login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-field input,
.login-field select {
	box-sizing: border-box;
	display: block;
	height: auto;
	width: 100%;
	padding: 16px 20px;
	border: 2px solid #d1d5db;
	border-radius: 12px;
	font-size: 15px;
	background: #ffffff;
	color: #1a1a1a;
	transition: all 0.3s ease;
	outline: none;
	font-weight: 500;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	margin-bottom: 0;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
}

/* input 필드 스타일 (드롭다운 화살표 없음) */
.login-field input {
	cursor: text;
	background-image: none;
	padding-right: 20px;
}

/* select 필드 스타일 (드롭다운 화살표 표시) */
.login-field select {
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 18px center;
	padding-right: 45px;
}

/* input 필드의 드롭다운 화살표 숨기기 */
.login-field input::-webkit-calendar-picker-indicator {
	display: none;
	-webkit-appearance: none;
}

.login-field input::-webkit-list-button {
	display: none;
	-webkit-appearance: none;
}

.login-field input::-webkit-inner-spin-button,
.login-field input::-webkit-outer-spin-button {
	display: none;
	-webkit-appearance: none;
}

.login-field input:focus,
.login-field select:focus {
  border-color: #1e40af;
  border-width: 3px;
  box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.login-field input::placeholder {
  color: #9ca3af;
}

.login-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: #374151;
  font-size: 15px;
}


.login-option {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 8px 0;
  padding: 12px 0;
}

.permission-label {
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  order: 1;
}

.permission-toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
  order: 2;
}

.permission-checkbox {
  opacity: 0;
  width: 0;
  height: 0;
}

.permission-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 28px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.permission-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.permission-checkbox:checked + .permission-slider {
  background-color: #1e40af;
}

.permission-checkbox:checked + .permission-slider:before {
  transform: translateX(24px);
}

.permission-toggle:hover .permission-slider {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 0 0 4px rgba(30, 64, 175, 0.1);
}
.div_button_call{
  text-align: center;
}
.button_call {
  background: #2563eb;
  color: white;
  border: none;
  font-size: 17px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
  justify-content: center;
  min-width: 200px;
  min-height: 40px;
}

.button_call.customer-login-btn {
  width: 100% !important;
  height: 56px !important;
  border: none !important;
  border-radius: 12px;
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #fff !important;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1e3a8a 100%) !important;
  box-shadow: 
    0 6px 20px rgba(30, 64, 175, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.button_call.customer-login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.button_call.customer-login-btn:hover::before {
  left: 100%;
}

.button_call.customer-login-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 
    0 8px 25px rgba(30, 64, 175, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #1e40af 100%);
}

.button_call.customer-login-btn:active:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 
    0 4px 15px rgba(30, 64, 175, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.button_call:disabled,
.button_call.customer-login-btn:disabled {
  background: #9ca3af !important;
  background-image: none !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  cursor: not-allowed !important;
  opacity: 0.6;
  color: #ffffff !important;
}

.button_call.customer-login-btn:disabled::before {
  display: none !important;
}

.button_call.customer-login-btn:disabled:hover {
  background: #9ca3af !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  transform: none !important;
}

.button_call.customer-login-btn:disabled .btn-arrow {
  transform: none !important;
}

.button_call.customer-login-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.login-agreements {
  border-top: 2px solid #e5e7eb;
  margin-top: 24px;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: #374151;
}

.agreement-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: color 0.2s ease;
  font-weight: 500;
}

.agreement-label:hover {
  color: #1e40af;
}

.agreement-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #1e40af;
}






/* 절대 배치 패널: 기본 크기와 보조 배경(비디오가 안 떠도 박스가 보이게) */
/* position: relative는 내부 .video-label 절대 배치를 위해 필요 */
.cx-panel { 
  position: absolute; 
  box-sizing: border-box; 
  min-width: 200px; 
  min-height: 120px; 
  outline: 1px dashed rgba(0,0,0,.25); 
  background: rgba(0,0,0,.03);
}

/* 비디오 라벨을 위한 상대 위치 - 내부 요소 절대 배치를 위해 */
.cx-panel {
  position: relative;
}

.video-label {
  position: absolute;
  bottom: 6%;
  left: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
}

.video-capture-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.cx-panel:hover .video-capture-btn {
  opacity: 1;
}

.video-capture-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.video-capture-btn:active {
  transform: scale(0.95);
}

.video-label {
  position: absolute;
  bottom: 6%;
  left: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  z-index: 6;
  pointer-events: none;
  align-items: center;
  display: flex;
  overflow: hidden;
}

/* video-label 배경: 가운데에서 양쪽으로 퍼지는 볼륨 바 (0=가운데 1선, 100=전체 배경) */
.video-label-volume-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 0;
  border-radius: 4px;
}
.video-label-volume-bar {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  width: 1px;
  min-width: 1px;
  background: rgba(74, 222, 128, 0.5); /* 기본: 상담사 색 */
  border-radius: 4px;
  transition: width 0.05s ease-out;
}

/* 역할별 볼륨 바 색상: 고객=파랑, 상담사=초록, 전문가=보라 */
#div_customer .video-label-volume-bar {
  background: rgba(59, 130, 246, 0.65);
}
#div_agent .video-label-volume-bar {
  background: rgba(34, 197, 94, 0.65);
}
#div_expert .video-label-volume-bar {
  background: rgba(139, 92, 246, 0.65);
}
.video-label-text {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

/* 카메라 OFF 시 대체 이미지 (video 위에 오버레이) */
.video-panel-placeholder {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: #1a1a2e;
  z-index: 2;
  pointer-events: none;
}
.video-panel-placeholder img {
  max-width: 40%;
  max-height: 40%;
  opacity: 0.85;
}
.cx-panel.camera-off .video-panel-placeholder {
  display: flex;
}

/* 고객 비디오 라벨이 하단 메뉴와 겹치지 않도록 조정 */
#div_customer .video-label {
  bottom: 10%;
}

/* 드래그/리사이즈 동작 안정화 */
.cx-move-resize { touch-action: none; text-align: center;}
.cx-resize-handle { position:absolute; width:10px; height:10px; background: rgba(0,0,0,.35); }
.cx-resize-handle.n { top:-5px; left:50%; transform:translateX(-50%); cursor: ns-resize; }
.cx-resize-handle.s { bottom:-5px; left:50%; transform:translateX(-50%); cursor: ns-resize; }
.cx-resize-handle.w { left:-5px; top:50%; transform:translateY(-50%); cursor: ew-resize; }
.cx-resize-handle.e { right:-5px; top:50%; transform:translateY(-50%); cursor: ew-resize; }
.cx-resize-handle.nw{ top:-5px; left:-5px; cursor:nwse-resize; }
.cx-resize-handle.ne{ top:-5px; right:-5px; cursor:nesw-resize; }
.cx-resize-handle.sw{ bottom:-5px; left:-5px; cursor:nesw-resize; }
.cx-resize-handle.se{ bottom:-5px; right:-5px; cursor:nwse-resize; }
.cx-dragging { user-select: none; cursor: move; }

/* 스테이지: div_main의 그리드를 전부 가로질러 하나로 쓰기 */
.cx-stage {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  /* 화면 전체 영역처럼 보이도록 */
  width: 100%;
  height: 90%;
  margin-top: 0;            /* 상단 마진 제거 */
  padding-top: 0;          /* 상단 패딩 제거 */
  background: #1f1f1f;
}

/* 패널이 움직일 캔버스(툴바 제외 영역) */
.cx-layer-panels {
  position: relative;
  flex: 1 1 auto;           /* 남는 공간을 모두 차지 */
  overflow: hidden;         /* 패널이 벗어나 보이지 않게 */
}


/* 이동/리사이즈 대상 공통 — 절대배치이되 레이어 내부에서만 */
.cx-layer-panels .cx-panel {
  position: absolute;
  box-sizing: border-box;
  min-width: 200px;
  min-height: 120px;
  outline: 1px rgba(255,255,255,.15);
  background: rgba(255,255,255,.04);
  border-radius: 10px;
  z-index: 1; /* 기본 비디오 패널 z-index */
}
.cx-move-resize { touch-action: none; padding:5px;}
.cx-resize-handle { position:absolute; width:10px; height:10px; background: rgba(255,255,255,.35); }
.cx-resize-handle.n { top:-5px; left:50%; transform:translateX(-50%); cursor: ns-resize; }
.cx-resize-handle.s { bottom:-5px; left:50%; transform:translateX(-50%); cursor: ns-resize; }
.cx-resize-handle.w { left:-5px; top:50%; transform:translateY(-50%); cursor: ew-resize; }
.cx-resize-handle.e { right:-5px; top:50%; transform:translateY(-50%); cursor: ew-resize; }
.cx-resize-handle.nw{ top:-5px; left:-5px; cursor:nwse-resize; }
.cx-resize-handle.ne{ top:-5px; right:-5px; cursor:nesw-resize; }
.cx-resize-handle.sw{ bottom:-5px; left:-5px; cursor:nesw-resize; }
.cx-resize-handle.se{ bottom:-5px; right:-5px; cursor:nwse-resize; }
.cx-dragging { user-select: none; cursor: move; }

/* div_main 그리드 영향 최소화(원본 규칙 유지하되 스테이지가 전칸 차지) */
#div_main.main > * { min-width:0; min-height:0; }

/* 스테이지가 항상 부모의 크기를 채우게 강제 */
#div_main.main .cx-stage {
  position: absolute;
  inset: 0 0 0 0;          /* 상단 여백 제거 */
  width: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  background: #1f1f1f;
  overflow: hidden;
  transition: width 0.2s ease, height 0.2s ease;
}

/* 내부 패널 이동/리사이즈 영역 */
.cx-layer-panels {
  position: relative;
  flex: 1 1 auto;
  overflow: visible;
  min-height: 100%;
  transition: all 0.2s ease;
}

/* 툴바 컨트롤러 */
.div_menu2-wrapper {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;

  z-index: 10000;
  box-sizing: border-box;
}

.div_menu2 {
  pointer-events: auto;
  width: 100%;
  background: #302f2f;
  padding-left: 4%;
  padding-right: 4%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  border-radius: 10px;
  border-top: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 -12px 28px rgba(0,0,0,.38);
  color: white;
  flex-wrap: wrap;
  transition: transform .24s ease, opacity .2s ease;
}

.div_menu2 > * {
  margin: 4px 6px;
}

/* menu2-buttons와 버튼들은 margin 제거 */
.menu2-buttons,
.menu2-button,
.menu2-button-end {
  margin: 0 !important;
}

.div_menu2.is-collapsed {
  transform: translateY(calc(100% + 28px));
  opacity: 0;
  pointer-events: none;
}

.div_menu2-toggle {
  pointer-events: auto;
  position: absolute;
  bottom: 15%;
  left: 34px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: #464646;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 -6px 20px rgba(0,0,0,.45);
  transition: filter .2s ease;
  padding: 0;
}

.div_menu2-toggle:hover {
  filter: brightness(1.1);
}

.div_menu2-toggle-icon {
  display: block;
}

.div_menu2-toggle.is-collapsed .div_menu2-toggle-icon-up {
  display: none;
}

.div_menu2-toggle.is-collapsed .div_menu2-toggle-icon-down {
  display: block !important;
}

.div_menu2-toggle:not(.is-collapsed) .div_menu2-toggle-icon-up {
  display: block;
}

/* 공유 버튼 비활성화 스타일 */
/* 3자 모드에서 PIP/Split 버튼 비활성화 */
.menu2-button.layout-toggle-disabled,
#button_layout_toggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* 전문가 로그인 시 PIP/Split 메뉴 숨김 (agent 페이지) */
#div_menu2.expert-user #button_layout_toggle {
  display: none !important;
}

.menu2-button.share-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.div_menu2-toggle:not(.is-collapsed) .div_menu2-toggle-icon-down {
  display: none !important;
}

.div_menu2-toggle:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* 네모 핸들 완전 비노출(기능 유지) */
.cx-resize-handle{
  opacity: 0;              /* 눈에만 안 보이게 */
  background: transparent; /* 배경 제거 */
}

/* 마우스 커서만 유지해서 가장자리에 갖다대면 커서가 바뀜 */
.cx-resize-handle.n,
.cx-resize-handle.s{ cursor: ns-resize; }
.cx-resize-handle.w,
.cx-resize-handle.e{ cursor: ew-resize; }
.cx-resize-handle.nw,
.cx-resize-handle.se{ cursor: nwse-resize; }
.cx-resize-handle.ne,
.cx-resize-handle.sw{ cursor: nesw-resize; }

/* (선택) 패널에 마우스 올리면 점선만 진하게 표시 */
.cx-panel:hover { outline-color: rgba(255,255,255,.35); }
.cx-panel input,
.cx-panel textarea,
.cx-panel button {
  pointer-events: auto !important;
  cursor: text;
}



/* ===== Agent Login - start ===== */

.agent-login-wrap {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1e3a8a 100%);
  position: relative;
  overflow: hidden;
}

.agent-login-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.agent-login-card {
  width: min(420px, 90vw);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.5),
    0 10px 30px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.3) inset;
  position: relative;
  z-index: 1;
  animation: slideUp 0.6s ease-out;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.agent-login-header {
  text-align: center;
  margin-bottom: 40px;
}

.agent-login-title {
  color: #1a1a1a;
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 8px 0;
  letter-spacing: -0.8px;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1e3a8a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.agent-login-subtitle {
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.5px;
}


.agent-login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-label {
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.login-input {
  box-sizing: border-box;
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #d1d5db;
  border-radius: 12px;
  font-size: 15px;
  background: #ffffff;
  color: #1a1a1a;
  transition: all 0.3s ease;
  outline: none;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* 드롭다운 화살표 숨기기 */
.login-input::-webkit-calendar-picker-indicator {
  display: none;
  -webkit-appearance: none;
}

.login-input::-webkit-list-button {
  display: none;
  -webkit-appearance: none;
}

.login-input::-webkit-inner-spin-button,
.login-input::-webkit-outer-spin-button {
  display: none;
  -webkit-appearance: none;
}

.login-input:focus {
  border-color: #1e40af;
  border-width: 3px;
  box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.login-input::placeholder {
  color: #9ca3af;
}

.agent-login-btn {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1e3a8a 100%);
  box-shadow: 
    0 6px 20px rgba(30, 64, 175, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.agent-login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.agent-login-btn:hover::before {
  left: 100%;
}

.agent-login-btn:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 8px 25px rgba(30, 64, 175, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #1e40af 100%);
}

.agent-login-btn:active {
  transform: translateY(-1px);
  box-shadow: 
    0 4px 15px rgba(30, 64, 175, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-text {
  position: relative;
  z-index: 1;
}

.btn-arrow {
  position: relative;
  z-index: 1;
  font-size: 18px;
  transition: transform 0.3s ease;
}

.agent-login-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.login-option {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d6e5f5;
  font-size: 14px;
  margin: 2px 0 12px;
}
.login-option input { width: 16px; height: 16px; }

.div_menu1-wrapper {
  position: absolute;
  top: 0;
  left: 0vw;
  right: 7vw;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  pointer-events: none;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  z-index: 10000;
  box-sizing: border-box;
}

.div_menu1 {
  pointer-events: auto;
  width: 68%;
  min-width: 1120px;
  background: #204688;
  color: #fff;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 0%;
  padding-right: 0%;

  box-shadow: 0 4px 12px rgba(13,42,120,0.35);
  font-size: 15px;
  font-weight: 700;
  z-index: 10;
  position: relative;
  min-height: 56px;
  gap: 0;
  row-gap: 8px;
  margin: 0;
  box-sizing: border-box;
  border-radius: 0px 0px 10px 10px;
  border-bottom: 1px solid rgba(255,255,255,.15);
  transition: transform .24s ease, opacity .2s ease;
}

/* 전문가 계정 로그인 시 div_menu1 배경색 변경 (보라색 계열) */
.div_menu1.expert-user {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

/* 전문가일 때 상태창 on/off 버튼 색상 변경 (배경색 제거, 아이콘 보라색 계열) */
.div_menu1-toggle.expert-user {
  background: transparent;
  border: none;
}

.div_menu1-toggle.expert-user:hover {
  background: transparent;
  filter: brightness(1.1);
}

.div_menu1-toggle.expert-user:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
}


/* 전문가일 때 로그아웃 버튼 스타일 (대기 버튼과 동일한 배경색, 밝은 흰색 아이콘) */
.div_menu1.expert-user #button_logout {
  background: rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 7px 12px;
  transition: all 0.2s ease;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.18);
}

.div_menu1.expert-user #button_logout:hover {
  background: rgba(255,255,255,0.24);
  opacity: 1;
}

.div_menu1.is-collapsed {
  transform: translateY(calc(-100% - 28px));
  opacity: 0;
  pointer-events: none;
}

.div_menu1-toggle {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  left: 13.5vw;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: filter .2s ease;
  z-index: 10001;
}

.div_menu1-toggle:hover {
  filter: brightness(1.1);
}

.div_menu1-toggle-icon {
  display: block;
}

/* 상태창 열렸을 때: 위쪽 화살표 표시 */
.div_menu1-toggle:not(.is-collapsed) .div_menu1-toggle-icon-up {
  display: block;
}

.div_menu1-toggle:not(.is-collapsed) .div_menu1-toggle-icon-down {
  display: none !important;
}

/* 상태창 접혔을 때: 아래쪽 화살표 표시 */
.div_menu1-toggle.is-collapsed .div_menu1-toggle-icon-up {
  display: none;
}

.div_menu1-toggle.is-collapsed .div_menu1-toggle-icon-down {
  display: block !important;
}

.div_menu1-toggle:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.menu-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex: 1 1 520px;
  min-width: 0;
  width: 100%;
  justify-content: center;
  user-select: none;
  cursor: default;
  font-family: 'Noto Sans KR', sans-serif;
}

.menu-status__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 34px;
  color: #ffffff;
  font-family: 'Noto Sans KR', sans-serif;
}

.menu-status__metric {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
  padding-left: 18px;
  padding-right: 18px;
  font-size: 14px;
  line-height: 34px;
  color: #f3f6ff;
  white-space: nowrap;
  font-family: 'Noto Sans KR', sans-serif;
}

.menu-status__metric > .menu-status__button {
  margin: 0;
}

.menu-status__metric > .menu-status__metric-waiting {
  margin-left: 4px;
}
.menu-status__bluebox{
  background-color: #00286E;
  padding: 1px 10px 1px 10px;
  margin-left:3px;
  margin-right:3px;
  border-radius: 4px;
  align-items: center;
}

.menu-status__metric:not(.menu-status__title)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.35);
}

.menu-status__metric:first-of-type {
  padding-left: 0;
}

.menu-status__metric:first-of-type::before {
  display: none;  /* 첫 번째 항목의 구분선 제거 */
}

.menu-status__metric-waiting {
  background-color: #204688;
  padding: 4px 4px 4px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}


.menu-status__separator-inline {
  margin: 0 6px;
  color: rgba(255,255,255,0.6);
}

.menu-status__value {
  font-weight: 600;
  color: #e5ecff;
  min-width: 32px;
  text-align: left;
  white-space: nowrap;
  padding: 4px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-family: 'Noto Sans KR', sans-serif;
}

/* 대기중 상태 차별화 스타일 */
.menu-status__value.status-waiting {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
  border: 1px solid transparent;
  animation: pulse-waiting 2s ease-in-out infinite;
}

@keyframes pulse-waiting {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
  }
  50% {
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.6);
  }
}

/* 다른 상태 스타일 (선택사항) */
.menu-status__value.status-working {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.menu-status__value.status-absent {
  background: rgba(156, 163, 175, 0.2);
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.3);
}

.menu-status__value.status-processing {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.menu-status__value.status-login {
  background: rgba(99, 102, 241, 0.2);
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.menu-status__value-total {
  background-color: #00286E;
  padding: 2px 4px;
  border-radius: 4px;
  margin-right: 0;
}

.menu-status__value-consulting {
  background-color: #00286E;
  padding: 2px 4px;
  border-radius: 4px;
  margin-right: 0;
}

.menu-status__time-icon {
  width: 16px;
  height: 16px;
  margin-right: 4px;
  display: inline-block;
  vertical-align: middle;
}

.menu-status__button {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Noto Sans KR', sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.18);
  height: 34px;
  line-height: 34px;
  white-space: nowrap;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-status__button img {
  width: 20px;
  height: 20px;
  display: block;
}

img.menu-status__button {
  width: auto;
  height: 20px;
  padding: 7px 12px;
  object-fit: contain;
}

.menu-status__button:hover {
  background: rgba(255,255,255,0.24);
}

.menu-status__button.active {
  background: #2b6bff;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.22);
}

.menu-status__button:active {
  transform: translateY(1px);
}

.menu-status__button-logout {
  margin-right: 0;
}

.menu-status__button-invite {
  background-color: #2D68CF;
}

.menu-status__button-invite:hover {
  background-color: #3d7ae0;
}

#button_invite.invite-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.menu-status__separator {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.35);
  margin: 0 2px;
  flex-shrink: 0;
}

.menu-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.div_menu1 button {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  font-family: 'Noto Sans KR', sans-serif;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.18);
  margin-left: 8px;
  height: 34px;
  line-height: 34px;
  white-space: nowrap;
}

.div_menu1 button:first-of-type {
  margin-left: auto;
}

.div_menu1 button:hover {
  background: rgba(255,255,255,0.24);
}

.div_menu1 button.active {
  background: #2b6bff;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.22);
}

.div_menu1 button:active {
  transform: translateY(1px);
}

@media (max-width: 1080px) {
  .div_menu1 {
    column-gap: 16px;
    row-gap: 10px;
    flex-wrap: wrap;
    min-width: auto;
    max-width: 100%;
  }
  .div_menu1 button:first-of-type {
    margin-left: 0;
  }
  .div_menu1 button {
    order: 2;
  }
  .div_menu1 span {
    order: 1;
  }
}
/* ===== Agent Login - end ===== */




/* 채팅css */

  .chat__header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 12px;
    color: #fff;
    border-radius: 10px 10px 0 0;
    margin-bottom: 8px;
    flex-shrink: 0;
    gap: 8px;
  }
  .chat__opacity-control{
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    max-width: 120px;
    margin: 0 8px;
  }
  .chat__opacity-slider{
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: rgba(116, 116, 116, 0.3);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
  }
  .chat__opacity-slider::-webkit-slider-thumb{
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #747474;
    cursor: pointer;
    transition: background 0.2s;
  }
  .chat__opacity-slider::-webkit-slider-thumb:hover{
    background: #5a5a5a;
  }
  .chat__opacity-slider::-moz-range-thumb{
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #747474;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
  }
  .chat__opacity-slider::-moz-range-thumb:hover{
    background: #5a5a5a;
  }
  .chat__opacity-value{
    font-size: 11px;
    color: #747474;
    min-width: 32px;
    text-align: right;
    font-weight: 500;
  }
  .chat__title{
    font-size: 16px;
    font-weight: 600;
    color:#747474;
  }
  .chat__close{
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
  }
  .chat__close:hover{
    background-color: rgba(255, 255, 255, 0.2);
  }
  .chat__close:active{
    background-color: rgba(255, 255, 255, 0.3);
  }
  .chat__body{
    padding: 12px;
    overflow-y: auto;
    background: #f0f2f5;
    flex: 1;
    min-height: 0;
    min-width: 0;
    border-radius: 10px 10px 0px 0px;
  }
  .chat__body_mobile{
    padding: 12px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.7);
    flex: 1;
    min-height: 0;
    min-width: 0;
    border-radius: 10px 10px 0px 0px;
  }

  .msg-row{
    display:flex;
    margin: 8px 0;
  }
  .msg-row--left   { justify-content: flex-start; }
  .msg-row--right  { 
    justify-content: flex-end;
  }
  .msg-row--right > div {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    max-width: 100%;
  }
  .msg-row--left .msg{
    background: #f0f0f0;
  }
  .msg{
    max-width: 90%;
    background: var(--bubble-left);
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #cfd6dd;
    position: relative;
    box-shadow: 0 1px 0 rgba(0,0,0,.03) inset;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
    flex-shrink: 0;
    text-align: left; /* 버블 내부 텍스트 왼쪽 정렬 */
  }
  .msg--left{
    background: #f0f0f0;
    border: #e0e0e0;
  }
  .msg--right{
    background: rgb(212 243 255);
    border:rgb(212 243 255);
  }
  .msg--expert{
    background: #c4b5fd !important;
    border-color: #a78bfa !important;
  }
  .msg--expert-self{
    background: #c4b5fd !important;
    border-color: #a78bfa !important;
  }
  .msg--agent{
    background: rgb(212 243 255) !important;
    border-color: rgb(212 243 255) !important;
  }

  .meta_name{
    margin-top:4px;
    font-size: 12px;
    color:#606770;
    display:flex; gap:8px;
    justify-content: left;
  }
  .msg-row--right .meta_name {
    justify-content: right;
  }
  .meta_time{
    margin-top:4px;
    font-size: 12px;
    color:#606770;
    display:flex; gap:8px;
    justify-content: right;
  }
  .name{ font-weight:600; }
  
  .chat_input_wrapper{
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    min-height: 0;
    min-width: 0;
    flex-shrink: 0;
    overflow: visible; /* 이모티콘 패널이 보이도록 visible로 변경 */
  }
  .input_chat{
    width: 100%;
    border-radius: 0px 0px 10px 10px;
    padding-right: 60px; /* 이모티콘 버튼, 송신 버튼, 스크롤바 공간 최소한만 확보하여 텍스트 영역 확대 */
    padding-left: 5px;
    box-sizing: border-box;
    background-color: #e8e8e8;
    border:0px solid #000;
    resize: none;
    overflow-y: auto; /* 스크롤 가능하도록 변경 */
    line-height: 1.4;
    font-family: inherit;
    font-size: inherit;
    min-width: 0;
    flex-shrink: 1;
  }
  .input_chat_mobile{
    width: 100%;
    min-height: 100%;
    height: auto;
    border-radius: 0px 0px 10px 10px;
    padding-right: 45px; /* 버튼 공간 확보 */
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.6);
    resize: none;
    overflow-y: hidden;
    line-height: 1.4;
    font-family: inherit;
    font-size: inherit;
    min-width: 0;
    flex-shrink: 1;
  }
  .button_emoji{
    position: absolute;
    right: 15px; /* 스크롤바와의 간격 최소화하여 텍스트 영역 확대 */
    top: 25%; /* 입력창의 1/4 지점에 위치하여 위아래 공간을 동일하게 */
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    border-radius: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    padding: 0;
    transition: background-color 0.2s;
    filter: grayscale(100%); /* 흑백 버튼 */
    z-index: 10;
  }
  .button_emoji:hover{
    background-color: rgba(0, 0, 0, 0.1);
    filter: grayscale(0%); /* 호버 시 컬러 */
  }
  .button_emoji:active{
    background-color: rgba(0, 0, 0, 0.2);
  }
  .button_chat{
    position: absolute;
    right: 15px; /* 스크롤바와의 간격 최소화하여 텍스트 영역 확대 */
    top: 75%; /* 입력창의 3/4 지점에 위치하여 위아래 공간을 동일하게 */
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    border-radius: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    padding: 0;
    transition: background-color 0.2s;
    z-index: 10;
  }
  .button_chat:hover{
    background-color: rgba(0, 0, 0, 0.1);
  }
  .button_chat:active{
    background-color: rgba(0, 0, 0, 0.2);
  }
  /* 이모티콘 패널 스타일 */
  .emoji-panel{
    position: absolute;
    bottom: calc(100% + 2px); /* 입력창 위에 위치 (약간의 간격) */
    left: 0;
    right: 0;
    display: none; /* 기본적으로 숨김, JavaScript로 토글 */
    grid-template-columns: repeat(5, 1fr); /* 10개를 5열로 배치 */
    gap: 8px;
    padding: 12px;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 10px 10px 0 0;
    max-height: 120px;
    overflow-y: auto;
    z-index: 30; /* 높은 z-index로 다른 요소 위에 표시 */
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  }
  .emoji-panel[style*="grid"] {
    display: grid !important; /* JavaScript로 grid 설정 시 강제 표시 */
  }
  .emoji-item{
    width: 100%;
    aspect-ratio: 1;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .emoji-item:hover{
    background-color: rgba(0, 0, 0, 0.1);
  }
  .emoji-item:active{
    background-color: rgba(0, 0, 0, 0.2);
  }


/* ===== 하단 메뉴 버튼 스타일 ===== */
.menu2-time-button {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px;
  background: transparent;
  border: none;
  color: white;
  cursor: default;
  padding: 8px !important;
  border-radius: 6px;
  transition: background 0.2s ease;
  min-width: 60px;
  width: auto !important;
  height: auto !important;
  margin-left: 44px;
  margin-right: 8px;
  text-align: center !important;
  font-size: inherit;
  flex-shrink: 0;
}

.menu2-time-button .menu2-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0;
  box-sizing: border-box;
}

.menu2-time-button .menu2-label {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0;
  box-sizing: border-box;
  font-size: 12px;
  font-weight: 600;
}

.menu2-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  margin: 0 !important;
  justify-content: center;
}

.menu2-button {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px !important;
  border-radius: 6px;
  transition: background 0.2s ease;
  min-width: 60px;
  width: auto !important;
  height: auto !important;
  position: relative;
  text-align: center !important;
  font-size: inherit;
  margin: 0 !important;
  box-sizing: border-box;
  font-family: 'Noto Sans KR', sans-serif;
}

.menu2-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.menu2-button-active {
  background: rgba(255, 255, 255, 0.15) !important;
}

.menu2-button-inactive {
  opacity: 0.5;
  filter: grayscale(50%);
}

.menu2-button-inactive:hover {
  opacity: 0.7;
  filter: grayscale(30%);
}

.menu2-button.muted {
  opacity: 0.5;
  background: rgba(255, 0, 0, 0.1) !important;
}

.menu2-button.muted:hover {
  background: rgba(255, 0, 0, 0.2) !important;
}

.menu2-button.muted .menu2-icon {
  position: relative;
  filter: grayscale(100%) brightness(0.7);
}

.menu2-button.muted .menu2-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 4px;
  height: 24px;
  background: #ff4444;
  border-radius: 2px;
  box-shadow: 0 0 4px rgba(255, 68, 68, 0.6);
  pointer-events: none;
  z-index: 1;
}

.menu2-icon {
  font-size: 20px;
  line-height: 1;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* 레이아웃 모드 토글 아이콘 크기 통일 */
#layout_mode_icon {
  font-size: 20px;
  line-height: 1;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px;
  overflow: hidden;
  text-align: center;
}

.menu2-label {
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  text-align: center !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Noto Sans KR', sans-serif;
  box-sizing: border-box;
}

.menu2-button-end {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px;
  background: #dc2626;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px !important;
  border-radius: 6px;
  transition: background 0.2s ease;
  min-width: 60px;
  width: auto !important;
  height: auto !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  text-align: center;
  font-size: inherit;
  flex-shrink: 0;
}

.menu2-button-end .menu2-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0;
  box-sizing: border-box;
}

.menu2-button-end .menu2-label {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0;
  box-sizing: border-box;
}

.menu2-button-end:hover {
  background: #b91c1c;
}

.menu2-share-section {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
  color: white;
}

.menu2-share-section > * {
  margin: 0;
}

/* ===== 공유 드롭다운 메뉴 ===== */
.share-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: #0f0f0f;
  border-radius: 8px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  min-width: 160px;
  z-index: 200;
  overflow: visible;
  pointer-events: auto;
}

.share-dropdown-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.share-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.share-arrow {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  margin-left: 8px;
}

.share-submenu {
  position: absolute;
  left: 100%;
  top: 0;
  background: #0f0f0f;
  border-radius: 8px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  min-width: 200px;
  max-width: 300px;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  z-index: 201;
  margin-left: 0;
  white-space: nowrap;
}

.share-dropdown-item:hover .share-submenu {
  display: block;
}

.share-submenu-item {
  padding: 10px 16px;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.share-submenu-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.share-submenu-item.selected {
  background: rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}

/* ===== 볼륨 조절 오버레이 ===== */
.volume-control-overlay {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  pointer-events: none;
  display: none;
}

.cx-stage {
  position: relative;
}

.volume-control-panel {
  background: rgba(15, 15, 15, 0.95);
  border-radius: 12px;
  min-width: 300px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: auto;
}


.volume-control-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
}

.volume-icon-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}


.volume-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.volume-slider {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.1s ease;
  margin-top: -6px;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.volume-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.1s ease;
  margin-top: -6px;
}

.volume-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
}

.volume-slider::-webkit-slider-runnable-track {
  background: rgba(255, 255, 255, 0.2);
  height: 6px;
  border-radius: 3px;
}

.volume-slider::-moz-range-track {
  background: rgba(255, 255, 255, 0.2);
  height: 6px;
  border-radius: 3px;
}

.volume-value {
  color: white;
  font-size: 14px;
  font-weight: 500;
  flex-shrink: 0;
  min-width: 45px;
  text-align: right;
}

/* 모바일 환경에서 하단 메뉴 최적화 */
@media (max-width: 768px) {
  .div_menu2 {
    padding-left: 1%;
    padding-right: 1%;
    gap: 4px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .menu2-time-button {
    margin-left: 40px;
    margin-right: 4px;
    min-width: 50px;
    padding: 4px 2px !important;
    gap: 2px;
  }

  .menu2-time-button .menu2-icon {
    font-size: 16px;
  }

  .menu2-time-button .menu2-label {
    font-size: 10px;
  }

  .menu2-buttons {
    gap: 2px;
    flex-wrap: wrap;
  }

  .menu2-button {
    min-width: 45px;
    padding: 4px 2px !important;
    gap: 1px;
  }

  .menu2-button .menu2-icon {
    font-size: 16px;
  }

  .menu2-button .menu2-label {
    font-size: 10px;
    white-space: nowrap;
  }

  .menu2-button-end {
    min-width: 45px;
    padding: 4px 2px !important;
    gap: 1px;
  }

  .menu2-button-end .menu2-icon {
    font-size: 16px;
  }

  .menu2-button-end .menu2-label {
    font-size: 10px;
    white-space: nowrap;
  }

  /* 모바일 고객 메뉴에서 PIP와 설정 버튼 숨기기 */
  .customer-page #button_layout_toggle,
  .customer-page #button_device_settings {
    display: none !important;
  }
}

/* 채팅 메뉴 알림 배지 스타일 */
.chat-notification-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background-color: #ff4444;
  border-radius: 50%;
  border: 2px solid #1a1a1a;
  display: none;
  z-index: 10;
  box-shadow: 0 0 4px rgba(255, 68, 68, 0.8);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

/* 모바일에서 알림 배지 위치 조정 */
@media (max-width: 768px) {
  .chat-notification-badge {
    top: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    border-width: 1.5px;
  }
}

/* ===== 상담수락 다이얼로그 스타일 ===== */
.dialog-call {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.35),
    0 10px 30px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  padding: 32px 28px;
  gap: 24px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}

.dialog-call-title {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px 0;
  text-align: left;
  padding-bottom: 20px;
  border-bottom: 2px solid #e5e7eb;
  letter-spacing: -0.3px;
}

.dialog-call-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 4px;
}

.dialog-call-row {
  display: flex;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s ease;
}

.dialog-call-row:hover {
  background-color: #fafafa;
}

.dialog-call-row:last-child {
  border-bottom: none;
}

.dialog-call-key {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  padding: 14px 18px;
  font-size: 14px;
  color: #6b7280;
  font-weight: 600;
  min-width: 110px;
  text-align: left;
  border-right: 1px solid #e5e7eb;
  letter-spacing: 0.2px;
}

.dialog-call-value {
  background: #ffffff;
  padding: 14px 18px;
  font-size: 15px;
  color: #111827;
  font-weight: 500;
  flex: 1;
  text-align: left;
}

.dialog-call-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.dialog-call-button {
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 100px;
  white-space: nowrap;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.3px;
}

.dialog-call-button-reject {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dialog-call-button-reject:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.dialog-call-button-reject:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.dialog-call-button-accept {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  box-shadow: 
    0 4px 12px rgba(37, 99, 235, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dialog-call-button-accept:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 
    0 6px 16px rgba(37, 99, 235, 0.5),
    0 3px 6px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.dialog-call-button-accept:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 8px rgba(37, 99, 235, 0.4),
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 캡처 다이얼로그 스타일 */
.dialog-capture {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.35),
    0 10px 30px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  padding: 28px;
  border: none;
  max-width: 420px;
  z-index: 10000;
}

.dialog-capture-title {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 20px 0;
  text-align: left;
  padding-bottom: 16px;
  border-bottom: 2px solid #f3f4f6;
}

.dialog-capture-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.dialog-capture-row {
  display: flex;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s ease;
}

.dialog-capture-row:hover {
  background-color: #fafafa;
}

.dialog-capture-row:last-child {
  border-bottom: none;
}

.dialog-capture-button {
  width: 100%;
  background: #ffffff;
  border: none;
  padding: 14px 18px;
  font-size: 15px;
  color: #111827;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  border-radius: 8px;
}

.dialog-capture-button:hover {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  color: #2563eb;
}

.dialog-capture-button:active {
  background: #e5e7eb;
}

.dialog-capture-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid #f3f4f6;
}

.dialog-capture-button-cancel {
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
  min-width: fit-content;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dialog-capture-button-cancel:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.dialog-capture-button-cancel:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ===== 전문가 초대 다이얼로그 스타일 ===== */
.dialog-invite {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 24px;
  gap: 20px;
}

.dialog-invite-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0;
  text-align: left;
  padding-bottom: 16px;
}

.dialog-invite-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #e5e7eb;
}

.dialog-invite-row {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
}

.dialog-invite-row:last-child {
  border-bottom: none;
}

.dialog-invite-key {
  background: #f3f4f6;
  padding: 12px 16px;
  font-size: 14px;
  color: #374151;
  font-weight: 500;
  min-width: 100px;
  text-align: left;
  border-right: 1px solid #e5e7eb;
}

.dialog-invite-value {
  background: #ffffff;
  padding: 12px 16px;
  font-size: 14px;
  color: #111827;
  flex: 1;
  text-align: left;
  display: flex;
  align-items: center;
}

.dialog-invite-select {
  width: 100%;
  padding: 6px 8px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #ffffff;
  color: #111827;
}

.dialog-invite-message {
  padding: 12px 16px;
  font-size: 14px;
  color: #374151;
  text-align: center;
  background: #f3f4f6;
  border-radius: 6px;
  margin-top: 8px;
}

.dialog-invite-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.dialog-invite-button {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  min-width: 80px;
  white-space: nowrap;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dialog-invite-button-cancel {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.dialog-invite-button-cancel:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

.dialog-invite-button-invite {
  background: #2563eb;
  color: #ffffff;
  border: 1px solid #2563eb;
}

.dialog-invite-button-invite:hover:not(:disabled) {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.dialog-invite-button-invite:disabled {
  background: #9ca3af;
  color: #ffffff;
  border: 1px solid #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

/* ===== 장치 설정 모달 스타일 ===== */
#device-setting-modal-div {
  border-radius: 6px;
  box-shadow: 0 3px 9px rgba(0,0,0,.5);
  font-size: 15px;
}

#device-setting-modal-div .modal-header {
  display: flex;
  height: 40px;
  align-items: center;
}

#device-setting-modal-div .modal-title {
  line-height: 100%;
  text-align: left;
}

#device-setting-modal-div .modal-body {
  margin-top: 15px;
  margin-bottom: 15px;
}

#device-setting-modal-div #setting-video {
  width: 640px;
  height: 360px;
  transform: scaleX(-1);
}

#device-setting-modal-div #setting-novideo {
  display: none;
}

#device-setting-modal-div .device-setting-mic-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

#device-setting-modal-div .device-setting-mic-row label {
  margin: 0;
}

#device-setting-modal-div .device-setting-mic-icon {
  font-size: 18px;
}

#device-setting-modal-div .device-setting-mic-slider {
  flex: 1;
}

#device-setting-modal-div .device-setting-checkboxes-wrapper {
  display: flex;
  gap: 16px;
}

#device-setting-modal-div .device-setting-checkbox-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

#device-setting-modal-div .device-setting-checkbox-item label {
  margin: 0;
}

#device-setting-modal-div .device-setting-spk-row {
  gap: 12px;
}

#device-setting-modal-div .device-setting-spk-select {
  flex: 1;
}

#device-setting-modal-div .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid #e5e7eb;
}

#device-setting-modal-div .device-setting-button {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 80px;
  white-space: nowrap;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d1d5db;
}

#device-setting-modal-div .device-setting-button-cancel {
  background: #ffffff;
  color: #374151;
  border: 1px solid #d1d5db;
}

#device-setting-modal-div .device-setting-button-cancel:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

#device-setting-modal-div .device-setting-button-apply {
  background: #2563eb;
  color: #ffffff;
  border: 1px solid #2563eb;
}

#device-setting-modal-div .device-setting-button-apply:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}


/* 2025-12-10-markup 관련추가 */
.hidden {
	display: none !important;
}

.toolbar-btn {
	background: none;
	outline: none;
	line-height: normal;
	overflow: visible;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	display: block;
	width: 100%;
	/*height: 48px;*/
	height: 44px;
	color: #8F8F8F;
	cursor: pointer;
	border: 1px solid transparent;
	white-space: nowrap;
	padding: 6px 6px;
}

.toolbar-btn:hover {
	outline: none;
	/*background-color: #3B78E7;*/
	/*background-color: #1E73FC;*/
	background-color: #0062FE;
	color: white;
}

.toolbar-btn.selected {
	background-color: #0062FE;
	color: white;
}

.content-toolbar-div {
	/*border: 1px solid;*/
	position: absolute;
	/*margin: 0px;*/
	top: auto;
	bottom: 0;
	/* left: 50%; */
	width: auto;
	height: 36px;
	background-color: #242424;
	z-index: 2147483647;
	opacity: 0.75;
	border-radius: 2px;
	/*transform: translateX(-50%);*/
	font-size: 16px;
}

.content-toolbar-div .icon {
	display: inline-block;
	width: 24px;
	height: 24px;
	background-position: center;
	background-repeat: no-repeat;
	vertical-align: middle;
	background-size: contain;
}

.content-toolbar-btn {
	display: inline-block;
	width: 36px !important;
	height: 36px !important;
	padding: 4px;
	margin-right: 0px;
}

.content-sidetoolbar-div {
	position: absolute;
	top: auto;
	bottom: 36px;
	width: auto;
	height: auto;
	background-color: #000000;
	z-index: 2147483647;
	opacity: 0.75;
	/*border-radius: 2px;*/
	/*transform: translateX(-50%);*/
}

.content-sideformat-div {
	width: 144px;
	background-color: #242424;
	opacity: 0.9;
}

.content-sidetoolbar-div .icon {
	display: inline-block;
	width: 24px;
	height: 24px;
	background-position: center;
	background-repeat: no-repeat;
	vertical-align: middle;
	background-size: contain;
}

.content-sidetoolbar-btn {
	display: inline-block !important;
	width: 36px !important;
	height: 36px !important;
	padding: 4px;
}

input.page-number {
	width: 30px !important;
	height: 22px !important;
	display: inline-block;
	font-size: 13px;
	text-align: right;
	border-radius: 2px !important;
	padding-left: 1px !important;
	padding-right: 1px !important;
	font-weight: 700;
	box-sizing: border-box;
}

select.doc-view {
  width: 100px;
  height: 22px;
  margin-top: 6px;
  margin-right: 8px;
  margin-left: 2px;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  border-radius: 2px;
}

input[type=page] {
  border: 1px solid #a6a6a6;
}

span.page-number {
  margin: 7px 0 0 0;
  padding-left: 2px;
  padding-bottom: 2px;
  font-size: 13px;
  line-height: 19px;
	/* margin-top: 7px; */
  height: 20px;
  color: #FFFFFF;
  /* margin-right: 0px; */
  user-select: none;
}
