.center-tabs {
  display: flex;
  gap: 4px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(9, 10, 15, 0.45);
  flex-shrink: 0;
}

.center-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.15s ease;
}

.center-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.center-tab-btn.active {
  color: var(--text-main);
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
}

.center-tab-btn.active .ui-icon {
  color: var(--accent-indigo-light);
}

.center-view-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.world-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  flex: 1;
  min-height: 0;
}

.globe-pane {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-subtle);
  min-height: 0;
  overflow: hidden;
  background: radial-gradient(circle at center, #13182b 0%, #080a10 82%);
}

/* 행성 캔버스 래퍼: 내부 텍스트와 무관하게 독립 픽셀 크기를 유지하여 찌그러짐 원천 차단 */
.globe-canvas-wrap {
  position: relative;
  flex: 1 1 0;
  min-height: 240px;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

#globe-canvas {
  position: absolute;
  top: 0;
  left: 0;
  cursor: grab;
  display: block;
}

#globe-canvas:active {
  cursor: grabbing;
}

.globe-hint {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(12, 14, 21, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  pointer-events: none;
  z-index: 2;
}

.globe-zoom-controls {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 5px;
  z-index: 2;
}

.globe-zoom-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(17, 19, 27, 0.85);
  backdrop-filter: blur(10px);
  color: var(--text-main);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.14s ease;
}

.globe-zoom-btn:hover {
  border-color: var(--accent-indigo-light);
  color: var(--accent-indigo-light);
}

/* 하단 타일 상세창을 고정 높이 + 내부 스크롤로 잠가 행성 영역 높이가 절대 출렁이지 않게 함 */
.tile-inspector {
  height: 112px;
  min-height: 112px;
  max-height: 112px;
  flex-shrink: 0;
  overflow-y: auto;
  border-top: 1px solid var(--border-subtle);
  padding: 10px 14px;
  background: rgba(15, 17, 25, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
}

.tile-stationed-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.tile-entity-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-size: 11.5px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.14s ease;
}

.tile-entity-btn:hover {
  border-color: var(--accent-indigo-light);
  background: rgba(99, 102, 241, 0.16);
}

.tile-entity-btn.active {
  border-color: #f5c451;
  background: rgba(245, 196, 81, 0.18);
  color: #fde68a;
  font-weight: 600;
}

.events-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.embed-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  white-space: nowrap;
}

.embed-badge.online {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.1);
  color: var(--accent-emerald);
}

.embed-badge.offline {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.1);
  color: var(--accent-amber);
}
