/* Direct Object Edit & Clean ROI styling */
.direct-roi-controls{padding:8px 10px;border:1px solid var(--line,#dce4ee);border-radius:var(--radius-md,7px);background:#f8fafc;margin-bottom:8px}
.direct-roi-controls label,.direct-roi-controls h3{display:block;font-size:11px;font-weight:700;color:#475569;margin:0 0 4px}
.direct-roi-controls h3{margin-top:8px;margin-bottom:4px}
.direct-roi-row{display:flex;gap:6px;align-items:center}
.direct-roi-row select{flex:1;height:var(--control-height,30px);border:1px solid var(--line,#c7d8e9);border-radius:var(--radius-sm,5px);background:#fff;padding:0 8px;font-size:12px;font-weight:600;color:#1e3555;box-sizing:border-box}
.direct-roi-row #directDeleteSelection{height:var(--control-height,30px);padding:0 8px;font-size:11px;box-sizing:border-box}
.direct-device-list{display:flex;flex-wrap:wrap;gap:4px;min-height:24px;align-items:center}
.direct-device-chip{display:inline-flex;align-items:center;height:24px;gap:4px;border:1px solid #cbd9e7;background:#fff;border-radius:4px;padding:0 7px;font-size:11px;font-weight:600;color:#334d6e;cursor:pointer;white-space:nowrap;transition:all .15s}
.direct-device-chip:hover{border-color:#1671c5;background:#f0f6ff;color:#0b5cad}
.direct-device-chip.selected{border-color:#1671c5;background:#1671c5;color:#fff;box-shadow:0 1px 4px rgba(22,113,197,.3)}

/* 인라인 이름 편집 스타일 */
.node-label.inline-editing,.zone-box span.inline-editing{background:#fff!important;color:#0b4182!important;border:1.5px solid #00b4ff!important;outline:2px solid rgba(0,180,255,.35)!important;cursor:text;padding:0!important;border-radius:4px;box-shadow:0 3px 10px rgba(0,180,255,.3)!important;z-index:100!important}
.zone-name-inline-input{font-family:inherit;font-size:11px;font-weight:700;color:#0369a1;background:#fff;border:none;outline:none;padding:2px 6px;margin:0;width:auto;min-width:60px;max-width:140px;box-sizing:border-box;border-radius:3px;cursor:text}

/* ROI 단일 외곽선 및 영역 강조 (첨부 이미지 기반 네온 시안 / 일렉트릭 스카이블루 톤) */
.zone-box{box-sizing:border-box!important;overflow:visible!important;border-radius:0!important;border:2px dashed #00b4ff!important;background:rgba(0,180,255,.14)!important;box-shadow:0 0 8px rgba(0,180,255,.35)!important;transition:border-color .15s,background .15s,box-shadow .15s}
.zone-box.shape-circle{border-radius:50%!important}
.zone-box:hover{border-style:solid!important;border-color:#00e5ff!important;background:rgba(0,210,255,.22)!important;box-shadow:0 0 14px rgba(0,229,255,.55)!important}
.zone-box.selected{border-style:solid!important;border-width:2.5px!important;border-color:#00f0ff!important;background:rgba(0,210,255,.26)!important;box-shadow:0 0 18px rgba(0,240,255,.65)!important}

/* ========================================================================== */
/* 경보 발생 시 ROI 붉은색 계열 (첨부 이미지의 웜 네온 레드/오렌지-레드 히트맵 톤)   */
/* ========================================================================== */
.zone-box.alarm {
  border-color: #ef4444 !important;
  border-style: solid !important;
  background: rgba(239, 68, 68, 0.24) !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.55), inset 0 0 12px rgba(239, 68, 68, 0.18) !important;
}
.zone-box.alarm:hover {
  border-color: #ff4d4f !important;
  background: rgba(255, 77, 79, 0.3) !important;
  box-shadow: 0 0 18px rgba(255, 77, 79, 0.75), inset 0 0 16px rgba(255, 77, 79, 0.25) !important;
}
.zone-box.alarm.selected {
  border-color: #ff3333 !important;
  border-width: 2.5px !important;
  background: rgba(239, 68, 68, 0.35) !important;
  box-shadow: 0 0 22px rgba(239, 68, 68, 0.85), inset 0 0 18px rgba(239, 68, 68, 0.3) !important;
}

/* 다각형 ROI: 버튼 자체는 투명화하고 SVG 다각형이 실제 영역 및 테두리 렌더링 */
.zone-box.shape-polygon,
.zone-box.shape-polygon:hover,
.zone-box.shape-polygon.selected{border:none!important;outline:none!important;background:transparent!important;box-shadow:none!important;clip-path:none!important;pointer-events:none!important}

/* 다각형 SVG 단일 외곽선 (통합감시 및 환경설정 공통: 선명한 네온 시안 테두리와 채움) */
.polygon-outline-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.polygon-outline-svg polygon{fill:rgba(0,180,255,.14);stroke:#00b4ff;stroke-width:2.2;stroke-dasharray:none;filter:drop-shadow(0 0 4px rgba(0,180,255,.45));vector-effect:non-scaling-stroke;pointer-events:auto!important;cursor:pointer;transition:fill .15s,stroke .15s,filter .15s}
.polygon-outline-svg polygon:hover{fill:rgba(0,210,255,.22);stroke:#00e5ff;stroke-dasharray:none;stroke-width:2.6;filter:drop-shadow(0 0 8px rgba(0,229,255,.65))}
.zone-box.selected .polygon-outline-svg polygon{fill:rgba(0,210,255,.26);stroke:#00f0ff;stroke-width:3;stroke-dasharray:none;filter:drop-shadow(0 0 12px rgba(0,240,255,.75))}

/* 다각형 경보 상태: 붉은 네온 외곽선 및 채움 */
.zone-box.alarm .polygon-outline-svg polygon {
  fill: rgba(239, 68, 68, 0.24) !important;
  stroke: #ef4444 !important;
  stroke-dasharray: none !important;
  stroke-width: 2.5 !important;
  filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.7)) !important;
}
.zone-box.alarm:hover .polygon-outline-svg polygon {
  fill: rgba(255, 77, 79, 0.3) !important;
  stroke: #ff4d4f !important;
  stroke-width: 3 !important;
  filter: drop-shadow(0 0 14px rgba(255, 77, 79, 0.85)) !important;
}
.zone-box.alarm.selected .polygon-outline-svg polygon {
  fill: rgba(239, 68, 68, 0.35) !important;
  stroke: #ff3333 !important;
  stroke-width: 3.5 !important;
  filter: drop-shadow(0 0 18px rgba(239, 68, 68, 0.95)) !important;
}
.roi-polygon-preview, #roiPolygonPreview, #buildingPolygonPreview{position:absolute;pointer-events:none;z-index:10;overflow:visible}
.roi-draw-preview, #roiDrawPreview, #buildingDrawPreview{position:absolute;pointer-events:none;z-index:10;box-sizing:border-box}
.roi-polygon-preview polyline{fill:rgba(0,180,255,.14);stroke:#00b4ff;stroke-width:2;stroke-dasharray:6 4;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke!important}

/* ROI 그리기 모드 시 캔버스 내 기존 요소 클릭 차단 방지 */
#canvas.roi-mode #zoneLayer .zone-box,
#canvas.roi-mode .polygon-outline-svg polygon,
#canvas.roi-mode #zoneLayer .zone-box > span,
#canvas.roi-mode #deviceLayer,
#canvas.roi-mode #deviceLayer .device-node {
  pointer-events: none !important;
}

.designer-roi-handle {
  z-index: 50 !important;
  pointer-events: auto !important;
  cursor: crosshair !important;
}

/* ROI 이름 배치: 도면 위 ROI 이름표시 객체 컴팩트화 */
.zone-box>span{position:absolute!important;right:auto!important;bottom:auto!important;max-width:calc(100% - 12px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:4px!important;background:#ffffff!important;border:1.5px solid #00b4ff!important;color:#0284c7!important;padding:2.5px 7px!important;font-size:11px!important;font-weight:700!important;line-height:1.25!important;box-shadow:0 2px 6px rgba(0,180,255,.25)!important;cursor:pointer;pointer-events:auto!important;z-index:60!important;transition:all .15s}
#configView #zoneLayer .zone-box>span,
#canvas #zoneLayer .zone-box>span{padding:2.5px 7px!important;font-size:11px!important;font-weight:700!important;border-radius:4px!important}
.zone-box.shape-rect>span{left:6px!important;top:6px!important;transform:none!important}
.zone-box.shape-circle>span{left:15%!important;top:15%!important;transform:none!important}
.zone-box.shape-polygon>span{transform:translate(4px, 4px)!important}
.zone-box>small{display:none!important}
.building-roi:hover>span{border-color:#00e5ff!important;box-shadow:0 3px 10px rgba(0,210,255,.4)!important}
.building-roi.selected>span{background:#00b4ff!important;color:#ffffff!important;border-color:#00b4ff!important;box-shadow:0 3px 12px rgba(0,180,255,.55)!important}

/* ========================================================================== */
/* 통합관제 화면: ROI 이름 및 사용모드 네임태그 (A방식: 일체형 네임태그 [ 구역명 │ 모드 ]) */
/* ========================================================================== */
.zone-box-header {
  position: absolute !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  z-index: 90 !important;
  pointer-events: auto !important;
  white-space: nowrap !important;
  max-width: calc(100% - 8px) !important;
  right: auto !important;
  bottom: auto !important;
  height: 24px !important;
  line-height: 20px !important;
  padding: 0 8px !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  border: 1.5px solid #0284c7 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16) !important;
  cursor: pointer !important;
  user-select: none !important;
  transition: all .15s ease !important;
}

.zone-box.shape-rect .zone-box-header {
  left: 6px !important;
  top: 6px !important;
  transform: none !important;
}
.zone-box.shape-circle .zone-box-header {
  left: 15% !important;
  top: 15% !important;
  transform: none !important;
}
.zone-box.shape-polygon .zone-box-header {
  transform: translate(6px, 6px) !important;
}
.zone-box-header.narrow-zone {
  flex-direction: column !important;
  align-items: flex-start !important;
  height: auto !important;
  padding: 3px 6px !important;
  gap: 2px !important;
}

.zone-box-header:hover {
  border-color: #0284c7 !important;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.35) !important;
  transform: translateY(-1px);
}
.zone-box.shape-polygon .zone-box-header:hover {
  transform: translate(6px, 5px) !important;
}

.zone-box.selected .zone-box-header {
  background: #ffffff !important;
  border-color: #00b4ff !important;
  box-shadow: 0 3px 12px rgba(0, 180, 255, 0.5) !important;
}

/* 네임태그 내부: 구역 이름 */
.zone-box-header .zone-name {
  display: inline-flex !important;
  align-items: center !important;
  position: static !important;
  white-space: nowrap !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #0f172a !important;
  padding: 0 !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: -0.2px;
  cursor: pointer !important;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 네임태그 내부: 구분선 (│) */
.zone-box-header .zone-mode-sep {
  display: inline-flex !important;
  align-items: center !important;
  color: #cbd5e1 !important;
  font-size: 10px !important;
  font-weight: 300 !important;
  user-select: none !important;
  pointer-events: none !important;
  margin: 0 1px !important;
}

/* 네임태그 내부: 현재 사용모드 읽기 전용 표시 */
.zone-box-header .zone-mode-badge {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 3.5px !important;
  height: auto !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  text-shadow: none !important;
  padding: 0 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  color: #475569 !important;
  cursor: inherit !important;
  pointer-events: none !important;
  user-select: none !important;
  white-space: nowrap !important;
}

.zone-box-header .zone-mode-badge .zone-mode-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-style: normal;
  width: 13px;
  height: 13px;
  line-height: 1;
}

.zone-box-header .zone-mode-badge .zone-mode-icon svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.2;
  display: block;
}

.zone-box-header .zone-mode-badge .zone-mode-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

/* 모드 프리셋별 차분한 톤 액센트 */
.zone-mode-badge.preset-meeting {
  color: #1d4ed8 !important;
}
.zone-mode-badge.preset-presentation {
  color: #7c3aed !important;
}
.zone-mode-badge.preset-normal {
  color: #059669 !important;
}
.zone-mode-badge.preset-break {
  color: #d97706 !important;
}
.zone-mode-badge.preset-unused {
  color: #64748b !important;
}
.zone-mode-badge.preset-custom {
  color: #4338ca !important;
}

/* 경보 발생 시 ROI 라벨 태그 (붉은 계열 톤 & 경보 마크) */
.zone-box.alarm > span,
.zone-box.alarm .zone-box-header {
  border: 2px solid #ef4444 !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.45) !important;
}
.zone-box.alarm .zone-box-header .zone-name {
  color: #b91c1c !important;
}
.zone-box.alarm:hover > span,
.zone-box.alarm:hover .zone-box-header {
  border-color: #dc2626 !important;
  box-shadow: 0 3px 12px rgba(239, 68, 68, 0.6) !important;
}
.zone-box.alarm > span::before,
.zone-box.alarm .zone-box-header .zone-name::before {
  content: '🚨 ';
  font-size: 10px;
}

/* 사용모드 즉시 전환 팝업 드롭다운 메뉴 */
.zone-mode-menu-popup {
  position: fixed;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 180, 255, 0.25);
  min-width: 175px;
  overflow: hidden;
  animation: modePopupFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modePopupFadeIn {
  from { opacity: 0; transform: translateY(-4px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.zone-mode-menu-header {
  padding: 8px 12px 6px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.zone-mode-menu-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #f1f5f9;
}
.zone-mode-menu-sub {
  display: block;
  font-size: 9.5px;
  color: var(--muted, #64748b);
  margin-top: 1px;
}

.zone-mode-menu-list {
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.zone-mode-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #e2e8f0;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.12s ease;
  width: 100%;
}

.zone-mode-menu-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: translateX(2px);
}

.zone-mode-menu-item.active {
  background: rgba(0, 180, 255, 0.22);
  color: #38bdf8;
  font-weight: 700;
}

.zone-mode-menu-item .menu-item-icon {
  font-size: 12px;
  width: 16px;
  text-align: center;
}

.zone-mode-menu-item .menu-item-name {
  flex: 1;
}

.zone-mode-menu-item .menu-item-check {
  font-size: 11px;
  color: #38bdf8;
  font-weight: bold;
}

/* 우측 설정란 접고 펴기 (아코디언) */
.collapsible-card{transition:margin-bottom .15s}
.collapsible-card .section-head{cursor:pointer;user-select:none;transition:background .15s}
.collapsible-card .section-head:hover{background:#f8fafc}
.collapsible-card .toggle-arrow{display:inline-block;font-size:9px;color:#64748b;transition:transform .2s ease;margin-left:4px}
.collapsible-card.collapsed .section-body{display:none!important}
.collapsible-card.collapsed{margin-bottom:6px!important}
.collapsible-card.collapsed .section-head{border-bottom:none!important}
.collapsible-card:not(.collapsed) .toggle-arrow{transform:rotate(180deg)}

/* 장비 미선택 안내 영역 컴팩트화 */
#propertyPanel .empty-inspector,
.right-panel .empty-inspector{
  padding:10px 10px!important;
  margin:6px 0!important;
  border:1px dashed #cbd5e1;
  border-radius:6px;
  background:#f8fafc;
  text-align:center;
}
#propertyPanel .empty-inspector .big,
.right-panel .empty-inspector .big{
  display:none!important;
}
#propertyPanel .empty-inspector h3,
.right-panel .empty-inspector h3{
  font-size:12px!important;
  font-weight:700!important;
  color:#3b5677!important;
  margin:0 0 3px!important;
}
#propertyPanel .empty-inspector p,
.right-panel .empty-inspector p{
  font-size:11px!important;
  color:#7e92a8!important;
  margin:0!important;
  line-height:1.4!important;
}

/* =========================================
   도면상 장비 선택(Selected) 명확한 시각 표시
   ========================================= */
.device-node.selected {
  z-index: 30 !important;
}

/* 선택된 장비 원형 아이콘: 선명한 3중 링 + 푸른빛 입체 그림자 */
.device-node.selected .node-circle {
  border-color: #1267e8 !important;
  background: #f0f6ff !important;
  color: #0b57c7 !important;
  box-shadow: 0 0 0 2.5px #ffffff, 0 0 0 6px #1267e8, 0 8px 24px rgba(18, 103, 232, 0.5) !important;
  outline: none !important;
  transform: scale(1.08);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
}

/* 선택된 장비 외곽의 회전하는 점선 셀렉션 타겟 링 */
.device-node.selected .node-circle::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px dashed #1267e8;
  opacity: 0.85;
  pointer-events: none;
  animation: deviceSelectedRotate 10s linear infinite;
}

@keyframes deviceSelectedRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 선택된 장비의 라벨(이름 박스) 강조 표시 */
.device-node.selected .node-label {
  background: #1267e8 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border: 1.5px solid #ffffff !important;
  box-shadow: 0 3px 10px rgba(18, 103, 232, 0.45) !important;
  transform: scale(1.05);
  transition: transform 0.18s ease, background 0.18s ease;
}

/* 선택 표시 상단 마커 뱃지 (선택됨 인디케이터) */
.device-node.selected .node-circle::after {
  content: '✓';
  position: absolute;
  top: -6px;
  left: -5px;
  width: 18px;
  height: 18px;
  background: #1267e8;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  line-height: 1;
  z-index: 5;
}

/* ========================================================================== */
/* 경보 발생 시 장비 객체(Device Node) 색상 - ROI 색상과 동일한 붉은 계열 톤       */
/* ========================================================================== */
.device-node.state-alarm .node-circle,
.device-node.alarm .node-circle {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.24) !important;
  color: #ef4444 !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.55), inset 0 0 10px rgba(239, 68, 68, 0.22) !important;
  transition: all .2s ease;
}

.device-node.state-alarm:hover .node-circle,
.device-node.alarm:hover .node-circle {
  border-color: #ff4d4f !important;
  background: rgba(255, 77, 79, 0.3) !important;
  box-shadow: 0 0 18px rgba(255, 77, 79, 0.75), inset 0 0 12px rgba(255, 77, 79, 0.28) !important;
}

/* 경보 시 우측 상단 상태 뱃지 점 */
.device-node.state-alarm .node-badge,
.device-node.alarm .node-badge {
  background: #ef4444 !important;
  box-shadow: 0 0 8px #ef4444 !important;
}

/* 경보 시 장비 명칭/데이터 라벨 박스 */
.device-node.state-alarm .node-label,
.device-node.alarm .node-label,
.device-node.state-alarm .node-data-label,
.device-node.alarm .node-data-label {
  background: #ef4444 !important;
  color: #ffffff !important;
  border: 1px solid #ff7875 !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5) !important;
}

/* 경보 시 선택 상태의 장비 원형 아이콘: 강렬한 붉은색 3중 링 */
.device-node.state-alarm.selected .node-circle,
.device-node.alarm.selected .node-circle {
  border-color: #ff3333 !important;
  background: rgba(239, 68, 68, 0.35) !important;
  color: #ff3333 !important;
  box-shadow: 0 0 0 2.5px #ffffff, 0 0 0 6px #ef4444, 0 8px 24px rgba(239, 68, 68, 0.75) !important;
}

.device-node.state-alarm.selected .node-circle::before,
.device-node.alarm.selected .node-circle::before {
  border-color: #ef4444 !important;
}

.device-node.state-alarm.selected .node-circle::after,
.device-node.alarm.selected .node-circle::after {
  background: #ef4444 !important;
}

.device-node.state-alarm.selected .node-label,
.device-node.alarm.selected .node-label {
  background: #ff3333 !important;
  border-color: #ffffff !important;
  box-shadow: 0 3px 12px rgba(239, 68, 68, 0.65) !important;
}

/* 경보 시 장비 주변 은은한 펄스 링 애니메이션 */
.device-node.state-alarm:not(.selected) .node-circle::before,
.device-node.alarm:not(.selected) .node-circle::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid #ef4444;
  opacity: 0.85;
  animation: alarmDevicePulse 1.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes alarmDevicePulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.18); opacity: 0.35; }
}

/* 시나리오 카드: 장비별 출력 목록(mode-actions) 및 작은 글씨 숨김, 이름·설정·실행시험만 표시 */
.mode-card .mode-actions {
  display: none !important;
}
.mode-card .mode-title small {
  display: none !important;
}
.mode-card .mode-title {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 0 6px 0 !important;
}
.mode-card .mode-title .mode-name,
.mode-card .mode-title b {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
}
.mode-card .mode-title .icon-btn {
  margin-left: auto !important;
}
.mode-card .mode-footer {
  display: flex !important;
  gap: 6px !important;
  margin-top: 6px !important;
  padding-top: 6px !important;
  border-top: 1px solid #f1f5f9 !important;
}
.mode-card .mode-footer .btn {
  flex: 1 !important;
  text-align: center !important;
  justify-content: center !important;
  height: 28px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 0 8px !important;
}

/* 환경설정 우측: 장비 선택 시 API 포인트 매핑 표시 간소화 (설정 내용 및 READ_WRITE 배지 숨김) */
#propertyPanel .source-chip small {
  display: none !important;
}

#propertyPanel .source-chip span {
  flex: 1 !important;
  min-width: 0 !important;
}

#propertyPanel .source-chip button {
  flex-shrink: 0 !important;
}

/* 환경설정 우측 장비설정 하부 영역: API 포인트 & 개별 제어 시험 */
.device-sub-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line, #e2e8f0);
}

.device-sub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.device-sub-header h4 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--text, #1e293b);
  letter-spacing: -0.01em;
}

.device-sub-header .count {
  font-size: 11px;
  color: #64748b;
  background: #f1f5f9;
  padding: 1px 7px;
  border-radius: 10px;
  font-weight: 600;
}

.device-sub-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.device-sub-body .source-chip {
  margin-bottom: 2px;
}

.device-sub-body .control-grid {
  margin-top: 2px;
}


/* A quiet selection ring keeps the blind glyph and adjacent labels readable. */
.device-node.blind-node.selected .node-circle::before,.device-node.blind-node.selected .node-circle::after{content:none;display:none;animation:none}
.device-node.blind-node.selected .node-circle{transform:none;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--blue,#1267e8)!important}
.device-node.blind-node.selected .node-label{transform:none;font-weight:600!important;box-shadow:none!important}
