.worldbook-active-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-bg-secondary);
}

.tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: var(--color-bg-tertiary);
  border-bottom: 1px solid var(--color-border);
  min-height: 36px;
}

.title-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.entry-count {
  font-size: 11px;
  color: var(--color-text-muted);
  background: var(--color-bg-secondary);
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

.btn-clear {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s;
  opacity: 0.6;
}

.btn-clear:hover {
  opacity: 1;
  background: var(--color-bg-hover);
}

.empty-state {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 12px;
}

.active-entries-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.position-group {
  margin-bottom: 4px;
}

.position-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  background: var(--color-bg-tertiary);
  border-radius: 3px;
  margin-bottom: 4px;
  font-size: 11px;
}

.position-number {
  font-weight: 600;
  color: var(--color-primary);
}

.position-name {
  flex: 1;
  color: var(--color-text-primary);
}

.position-count {
  color: var(--color-text-muted);
  font-size: 10px;
}

.active-entry-item {
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border-light);
  border-radius: 4px;
  padding: 6px 8px;
  margin-bottom: 4px;
  transition: all 0.2s;
}

.active-entry-item:hover {
  background: var(--color-bg-hover);
  border-color: var(--color-border);
}

.entry-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 10px;
}

.entry-uid {
  color: var(--color-text-muted);
  font-family: monospace;
}

.entry-depth {
  color: var(--color-accent);
}

.entry-keywords {
  margin-bottom: 4px;
}

.keyword-tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 6px;
  background: rgba(var(--color-primary-rgb), 0.1);
  border: 1px solid var(--color-primary);
  border-radius: 3px;
  color: var(--color-primary);
}

.trigger-type {
  font-size: 10px;
  color: var(--color-text-muted);
}

.entry-preview {
  font-size: 11px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  word-break: break-word;
}
